diff --git a/CHANGELOG.md b/CHANGELOG.md index d9914d2..f11a9eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [2.1.0-3](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.1.0-2...v2.1.0-3) (2024-08-20) + +### Bug Fixes + +* :construction: handle default and not default for usage in browser ([479eb2f](https://github.com/nodecfdi/cfdi-to-pdf/commit/479eb2f34943bc6d65ede93020a49df17ab8aa0a)) ## [2.1.0-2](https://github.com/nodecfdi/cfdi-to-pdf/compare/v2.1.0-1...v2.1.0-2) (2024-08-20) ### Bug Fixes diff --git a/docs/classes/abstract_invoice_data.default.html b/docs/classes/abstract_invoice_data.default.html index 63e852a..98d74b8 100644 --- a/docs/classes/abstract_invoice_data.default.html +++ b/docs/classes/abstract_invoice_data.default.html @@ -156,7 +156,7 @@ --md-sys-color-surface-container-high: #eae8e0; --md-sys-color-surface-container-highest: #e4e3db } -

Hierarchy (view full)

Constructors

constructor +

Hierarchy (view full)

Constructors

Properties

_additionalFields: undefined | {
    title: string;
    value: string;
}[]
_emisor: XmlNodeInterface
_legendFooter: string
_logo: undefined | string
_qrUrl: string
_receptor: XmlNodeInterface
_tfdSourceString: string
_timbreFiscalDigital: XmlNodeInterface

Methods

  • Returns undefined | {
        title: string;
        value: string;
    }[]

Type Parameters

Hierarchy (view full)

Constructors

constructor +

Type Parameters

Hierarchy (view full)

Constructors

Properties

_bgGrayColor: string = '#f8f8f8'
_catalogs: CatalogsData
_defaultPageMargins: Margins = ...
_documentOptions: DocumentOptions
_documentTranslator: DocumentTranslatorInterface<T>
_options?: BufferOptions
_primaryColor: string = '#359136'

Methods

Type Parameters

Hierarchy (view full)

Constructors

constructor +

Type Parameters

Hierarchy (view full)

Constructors

Properties

_bgGrayColor: string = '#f8f8f8'
_catalogs: CatalogsData
_defaultPageMargins: Margins = ...
_documentOptions: DocumentOptions
_documentTranslator: DocumentTranslatorInterface<T>
_options?: BufferOptions
_primaryColor: string = '#359136'

Methods

Type Parameters

Hierarchy (view full)

Constructors

constructor +

Type Parameters

Hierarchy (view full)

Constructors

Properties

_bgGrayColor: string = '#f8f8f8'
_catalogs: CatalogsData
_defaultPageMargins: Margins = ...
_documentOptions: DocumentOptions
_documentTranslator: DocumentTranslatorInterface<T>
_options?: BufferOptions
_primaryColor: string = '#359136'

Methods

Hierarchy (view full)

Constructors

constructor +

Hierarchy (view full)

Constructors

  • Parameters

    • comprobante: XmlNodeInterface
    • OptionalqrUrl: null | string
    • OptionaltfdSourceString: null | string
    • Optionallogo: string
    • Optionaladdress: string
    • OptionaladditionalFields: {
          title: string;
          value: string;
      }[]

    Returns default

Properties

_additionalFields: undefined | {
    title: string;
    value: string;
}[]
_emisor: XmlNodeInterface
_legendFooter: string
_logo: undefined | string
_qrUrl: string
_receptor: XmlNodeInterface
_tfdSourceString: string
_timbreFiscalDigital: XmlNodeInterface

Methods

  • Returns undefined | string

  • Returns XmlNodeInterface

Hierarchy (view full)

Constructors

constructor +

Hierarchy (view full)

Constructors

  • Parameters

    • retenciones: XmlNodeInterface
    • OptionalqrUrl: null | string
    • OptionaltfdSourceString: null | string
    • Optionallogo: string
    • OptionaladditionalFields: {
          title: string;
          value: string;
      }[]

    Returns default

Properties

_additionalFields: undefined | {
    title: string;
    value: string;
}[]
_emisor: XmlNodeInterface
_legendFooter: string
_logo: undefined | string
_qrUrl: string
_receptor: XmlNodeInterface
_tfdSourceString: string
_timbreFiscalDigital: XmlNodeInterface

Methods

Hierarchy (view full)

Constructors

constructor +

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

Hierarchy (view full)

Implements

Constructors

constructor +

Hierarchy (view full)

Implements

Constructors

Methods

Constructors

Methods

Hierarchy (view full)

Implements

Constructors

constructor +

Hierarchy (view full)

Implements

Constructors

Methods

Constructors

Methods

  • Parameters

    • impLocal10: XmlNodeInterface
    • primaryColor: string
    • bgGrayColor: string
    • tableTotales: TableCell[][]
    • totalesContent: TableCell[]

    Returns void

  • Parameters

    • impLocal10: XmlNodeInterface
    • primaryColor: string
    • bgGrayColor: string
    • tableTotales: TableCell[][]
    • totalesContent: TableCell[]

    Returns void

  • Parameters

    • raw: string
    • separator: string = '\u{200B}'

    Returns string

  • Parameters

    • raw: string
    • separator: string = '\u{200B}'

    Returns string

  • Parameters

    • currency: string | number
    • currencyDisplay: "symbol" | "code" = 'symbol'

    Returns string

  • Parameters

    • currency: string | number
    • currencyDisplay: "symbol" | "code" = 'symbol'

    Returns string

  • Parameters

    • initial: number
    • moneda: string = 'MXN'

    Returns string

  • Parameters

    • initial: number
    • moneda: string = 'MXN'

    Returns string

  • Parameters

    • currency: string | number

    Returns number

  • Parameters

    • currency: string | number

    Returns number

interface CatalogItem {
    id: string;
    texto: string;
}

Properties

id +
interface CatalogItem {
    id: string;
    texto: string;
}

Properties

Properties

id: string
texto: string

Properties

cfdi40Exportaciones +

Properties

cfdi40Exportaciones: CatalogItem[]
cfdi40FormasPago: CatalogItem[]
cfdi40Impuestos: CatalogItem[]
cfdi40Meses: CatalogItem[]
cfdi40MetodosPago: CatalogItem[]
cfdi40ObjetosImpuestos: CatalogItem[]
cfdi40Periodicidades: CatalogItem[]
cfdi40RegimenesFiscales: CatalogItem[]
cfdi40TiposComprobantes: CatalogItem[]
cfdi40TiposRelaciones: CatalogItem[]
cfdi40UsosCfdi: CatalogItem[]
pagosTiposCadenaPago: CatalogItem[]
retenciones20ClavesRetencion: CatalogItem[]
retenciones20Periodicidades: CatalogItem[]
retenciones20Periodos: CatalogItem[]
retenciones20TiposPago: CatalogItem[]

Module abstract_invoice_data

Index

Classes

default +

Module abstract_invoice_data

Index

Classes

Module builders/abstract_pdf_maker_builder

Index

Classes

default +

References

PdfMakerBuilder +

References

References

Renames and re-exports default

Module builders/browser/pdf_maker_builder

Index

Classes

default +

References

PdfMakerBuilder +

References

References

Renames and re-exports default

Module builders/node/pdf_maker_builder

Index

Classes

default +

Module catalogs/catalogs_source

Index

Variables

catalogsSource +

Module catalogs/cfdi40_exportaciones

Index

Variables

default +

Module catalogs/cfdi40_exportaciones

Index

Variables

Module catalogs/cfdi40_formas_pago

Index

Variables

default +

Module catalogs/cfdi40_formas_pago

Index

Variables

Module catalogs/cfdi40_impuestos

Index

Variables

default +

Module catalogs/cfdi40_impuestos

Index

Variables

Module catalogs/cfdi40_meses

Index

Variables

default +

Module catalogs/cfdi40_meses

Index

Variables

Module catalogs/cfdi40_metodos_pago

Index

Variables

default +

Module catalogs/cfdi40_metodos_pago

Index

Variables

Module catalogs/cfdi40_objetos_impuestos

Index

Variables

default +

Module catalogs/cfdi40_objetos_impuestos

Index

Variables

Module catalogs/cfdi40_periodicidades

Index

Variables

default +

Module catalogs/cfdi40_periodicidades

Index

Variables

Module catalogs/cfdi40_regimenes_fiscales

Index

Variables

default +

Module catalogs/cfdi40_tipos_comprobantes

Index

Variables

default +

Module catalogs/cfdi40_tipos_relaciones

Index

Variables

default +

Module catalogs/cfdi40_tipos_relaciones

Index

Variables

Module catalogs/cfdi40_usos_cfdi

Index

Variables

default +

Module catalogs/cfdi40_usos_cfdi

Index

Variables

Module catalogs/define_catalog

Index

Functions

buildItem +

Module catalogs/pagos_tipos_cadena_pago

Index

Variables

default +

Module catalogs/pagos_tipos_cadena_pago

Index

Variables

Module catalogs/retenciones20_claves_retencion

Index

Variables

default +

Module catalogs/retenciones20_periodicidades

Index

Variables

default +

Module catalogs/retenciones20_periodos

Index

Variables

default +

Module catalogs/retenciones20_periodos

Index

Variables

Module catalogs/retenciones20_tipos_pago

Index

Variables

default +

Module catalogs/retenciones20_tipos_pago

Index

Variables

Index

Classes

default +

Index

Classes

References

AbstractGenericTraslator +

References

AbstractGenericTraslator AbstractInvoiceData AbstractPdfMakerBuilder CfdiData diff --git a/docs/modules/retenciones_data.html b/docs/modules/retenciones_data.html index 34719a3..8cd4cc1 100644 --- a/docs/modules/retenciones_data.html +++ b/docs/modules/retenciones_data.html @@ -156,7 +156,7 @@ --md-sys-color-surface-container-high: #eae8e0; --md-sys-color-surface-container-highest: #e4e3db } -

Index

Classes

default +

Index

Classes

Module templates/abstract_generic_translator

Index

Classes

default +

Module templates/complements/implocal10_complement

Index

Functions

default +

Module templates/complements/pago10_complement

Index

Functions

default +

Module templates/complements/pago20_complement

Index

Functions

default +

Module templates/generic_cfdi_translator

Index

Classes

default +

Module templates/generic_retenciones_translator

Index

Classes

default +

Module templates/sections/generic_cfdi_concepto_impuestos_content

Index

Functions

default +

Module templates/sections/generic_cfdi_conceptos_contents

Index

Functions

default +

Module templates/sections/generic_cfdi_details_info_content

Index

Functions

default +

Module templates/sections/generic_cfdi_informacion_global_content

Index

Functions

default +

Module templates/sections/generic_cfdi_relacionados_content

Index

Functions

default +

Module templates/sections/generic_cfdi_totales_content

Index

Functions

default +

Module templates/sections/generic_emisor_content

Index

Functions

default +

Module templates/sections/generic_footer

Index

Functions

default +

Module templates/sections/generic_footer

Index

Functions

Module templates/sections/generic_receptor_content

Index

Functions

default +

Module templates/sections/generic_retencion_periodo_content

Index

Functions

default +

Module templates/sections/generic_retencion_totales_content

Index

Functions

default +

Module templates/sections/generic_stamp_content

Index

Functions

default +

Module templates/sections/generic_top_content

Index

Functions

default +

Index

Interfaces

CatalogItem +

Index

Interfaces

Type Aliases

DocumentOptions DocumentTranslatorInterface diff --git a/docs/modules/utils_break_characters.html b/docs/modules/utils_break_characters.html index 0fd7b99..b0c0bef 100644 --- a/docs/modules/utils_break_characters.html +++ b/docs/modules/utils_break_characters.html @@ -156,7 +156,7 @@ --md-sys-color-surface-container-high: #eae8e0; --md-sys-color-surface-container-highest: #e4e3db } -

Module utils/break_characters

Index

Functions

default +

Module utils/break_characters

Index

Functions

Index

Functions

formatCurrency +

Module utils/normalize_space

Index

Functions

default +

Module utils/normalize_space

Index

Functions

DocumentOptions: Omit<TDocumentDefinitions, "content" | "footer">
DocumentOptions: Omit<TDocumentDefinitions, "content" | "footer">

Type Alias DocumentTranslatorInterface<T>

DocumentTranslatorInterface<T>: {
    translate(data: T, documentDefinitionsOptions: DocumentOptions, catalogs: CatalogsData, primaryColor: string, bgGrayColor: string): TDocumentDefinitions;
}

Type Parameters

Type Alias DocumentTranslatorInterface<T>

DocumentTranslatorInterface<T>: {
    translate(data: T, documentDefinitionsOptions: DocumentOptions, catalogs: CatalogsData, primaryColor: string, bgGrayColor: string): TDocumentDefinitions;
}

Type Parameters