nfets 0.0.139 → 0.0.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2054,8 +2054,10 @@ declare const DanfeMargins: {
2054
2054
  readonly bottom: number;
2055
2055
  readonly left: number;
2056
2056
  };
2057
+ type DanfeLayout = 'portrait' | 'landscape';
2057
2058
  interface DanfeOptions {
2058
2059
  size: keyof typeof DanfeSize;
2060
+ layout: DanfeLayout;
2059
2061
  qComDecimals: number;
2060
2062
  vUnComDecimals: number;
2061
2063
  showCanhoto: boolean;
@@ -2071,6 +2073,7 @@ interface DanfeArea {
2071
2073
  x: number;
2072
2074
  y: number;
2073
2075
  width: number;
2076
+ height?: number;
2074
2077
  }
2075
2078
  interface DanfeFieldCell {
2076
2079
  label: string;
@@ -2088,8 +2091,16 @@ interface DanfeItemsColumn {
2088
2091
  interface DanfeItemsPairsCell {
2089
2092
  pairs: [string, string][];
2090
2093
  columns?: number;
2094
+ muted?: boolean;
2091
2095
  }
2092
- type DanfeItemsCell = string | DanfeItemsPairsCell;
2096
+ interface DanfeTextRun {
2097
+ text: string;
2098
+ color?: string;
2099
+ align?: 'left' | 'center' | 'right';
2100
+ blankBefore?: boolean;
2101
+ fit?: boolean;
2102
+ }
2103
+ type DanfeItemsCell = string | DanfeTextRun[] | DanfeItemsPairsCell;
2093
2104
  interface DanfePageSlice<T> {
2094
2105
  items: T[];
2095
2106
  isFirst: boolean;
@@ -5186,6 +5197,7 @@ declare class DanfeFormatter {
5186
5197
  private readonly context;
5187
5198
  constructor(context: DanfePdfDocument);
5188
5199
  isNotEmpty(value?: DecimalValue): value is DecimalValue;
5200
+ emitted(value: DecimalValue | undefined, max: number): string;
5189
5201
  decimal(value?: DecimalValue, minimumFractionDigits?: number, maximumFractionDigits?: number): string;
5190
5202
  currency(value?: DecimalValue): string;
5191
5203
  percent(value?: DecimalValue): string;
@@ -5194,6 +5206,7 @@ declare class DanfeFormatter {
5194
5206
  phone(value?: string): string;
5195
5207
  number(nNF: string): string;
5196
5208
  serie(serie: string): string;
5209
+ blank(value?: string): string;
5197
5210
  accessKey(): string;
5198
5211
  accessKeyDigits(): string;
5199
5212
  protected tz(value: string): dayjs.Dayjs;
@@ -5208,7 +5221,9 @@ declare class DanfeFormatter {
5208
5221
  interface FieldTextOptions {
5209
5222
  size: number;
5210
5223
  bold?: boolean;
5224
+ color?: string;
5211
5225
  align?: 'left' | 'center' | 'right' | 'justify';
5226
+ lineBreak?: boolean;
5212
5227
  }
5213
5228
  type FieldBoxCell = Omit<DanfeFieldCell, 'weight'>;
5214
5229
  declare class FieldBox {
@@ -5216,7 +5231,8 @@ declare class FieldBox {
5216
5231
  readonly labelSize = 5;
5217
5232
  readonly valueSize = 8;
5218
5233
  readonly titleSize = 6.5;
5219
- readonly padding = 1.5;
5234
+ readonly muted = "#595959";
5235
+ readonly padding = 2.5;
5220
5236
  readonly rowHeight: number;
5221
5237
  readonly radius: number;
5222
5238
  constructor(context: DanfePdfDocument);
@@ -5231,6 +5247,7 @@ declare class FieldBox {
5231
5247
  row(x: number, y: number, width: number, height: number, cells: DanfeFieldCell[]): number;
5232
5248
  grid(x: number, y: number, width: number, cells: FieldBoxCell[], perRow: number, height?: number): number;
5233
5249
  gridRows(count: number, perRow: number): number;
5250
+ widthOf(text: string, options: FieldTextOptions): number;
5234
5251
  title(x: number, y: number, width: number, text: string): number;
5235
5252
  }
5236
5253
 
@@ -5246,7 +5263,7 @@ declare abstract class DanfeBlock implements Builder {
5246
5263
  abstract height(): number;
5247
5264
  protected abstract draw(area: DanfeArea): void;
5248
5265
  setup(): void;
5249
- build(options?: RowBuilderOptions): PdfBuilder;
5266
+ build(options?: DanfeArea): PdfBuilder;
5250
5267
  end(): void;
5251
5268
  }
5252
5269
 
@@ -5292,6 +5309,7 @@ declare class ItemDescription {
5292
5309
  protected get options(): DanfeOptions;
5293
5310
  protected tax(value: DecimalValue | undefined, template: string): string;
5294
5311
  protected taxes(det: Det): string;
5312
+ infAdProd(det: Det): string;
5295
5313
  protected additionalInfo(det: Det): string;
5296
5314
  protected anvisa(det: Det): string;
5297
5315
  protected batch(det: Det): string;
@@ -5300,6 +5318,10 @@ declare class ItemDescription {
5300
5318
  protected lines(entries: [string, string | undefined][]): string;
5301
5319
  vehicle(det: Det): string;
5302
5320
  weapons(det: Det): string;
5321
+ productName(det: Det): string;
5322
+ protected narrative(det: Det): string;
5323
+ extras(det: Det): string;
5324
+ details(det: Det): string;
5303
5325
  build(det: Det): string;
5304
5326
  }
5305
5327
 
@@ -5310,20 +5332,24 @@ declare abstract class DanfeItemsBlock extends DanfeBlock {
5310
5332
  protected readonly title = "DADOS DOS PRODUTOS / SERVI\u00C7OS";
5311
5333
  protected readonly fontSize: number;
5312
5334
  protected readonly headerFontSize: number;
5313
- protected readonly cellPadding: number;
5335
+ protected get cellPadding(): number;
5336
+ protected readonly columnLabelColor: string;
5314
5337
  protected abstract get columns(): DanfeItemsColumn[];
5315
5338
  protected abstract cells(det: Det): DanfeItemsCell[];
5316
5339
  protected widths(): number[];
5317
5340
  protected labelsHeight(): number;
5318
5341
  headerHeight(): number;
5319
- protected isPairs(cell: DanfeItemsCell): cell is Exclude<DanfeItemsCell, string>;
5342
+ protected isRuns(cell: DanfeItemsCell): cell is DanfeTextRun[];
5343
+ protected isPairs(cell: DanfeItemsCell): cell is Exclude<DanfeItemsCell, string | DanfeTextRun[]>;
5320
5344
  protected lineHeight(): number;
5345
+ protected fitSize(text: string, width: number, size: number): number;
5321
5346
  protected cellHeight(cell: DanfeItemsCell, width: number): number;
5322
5347
  itemHeight(det: Det): number;
5323
5348
  height(): number;
5324
5349
  protected drawLabels(x: number, y: number, height: number): void;
5325
5350
  protected drawColumnLines(x: number, top: number, bottom: number): void;
5326
- protected drawPairs(cell: Exclude<DanfeItemsCell, string>, x: number, y: number, width: number): void;
5351
+ protected drawPairs(cell: DanfeItemsPairsCell, x: number, y: number, width: number): void;
5352
+ protected drawRuns(runs: DanfeTextRun[], x: number, y: number, width: number, align: 'left' | 'center' | 'right'): void;
5327
5353
  protected drawItem(det: Det, x: number, y: number, height: number): void;
5328
5354
  protected drawSeparator(x: number, y: number, width: number): void;
5329
5355
  protected draw({ x, y, width }: DanfeArea): void;
@@ -5400,6 +5426,7 @@ declare abstract class DanfePdfDocument {
5400
5426
  protected get blocks(): DanfeBlocks;
5401
5427
  constructor(stream: Writable);
5402
5428
  get bold(): string;
5429
+ protected readonly sideCanhotoWidth: number;
5403
5430
  get contentWidth(): number;
5404
5431
  get det(): Det[];
5405
5432
  asArray<T>(value?: T | T[]): T[];
@@ -5516,4 +5543,4 @@ declare class NFCe implements NFe$1 {
5516
5543
  Signature?: Signature;
5517
5544
  }
5518
5545
 
5519
- export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsChNFe, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaChaveDistribuicaoDFe, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, type DanfeArea, DanfeDefaultPdfDocument, type DanfeFieldCell, type DanfeItemsCell, type DanfeItemsColumn, type DanfeItemsPairsCell, DanfeMargins, type DanfeOptions, type DanfePageSlice, DanfeRtcPdfDocument, DanfeSize, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetEventoManifestacao, type DetGroupBuilder, type DistribuicaoDFePayload, type DistribuicaoDFeRequest, type DistribuicaoDFeResponse, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoManifestacao, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeDistribuicaoDFePipeline, NfeManifestacaoPipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineDistribuicaoDFeResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetDistDFeInt, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TpEventManifestacao, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, mm, ptPerMm, schemas };
5546
+ export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsChNFe, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaChaveDistribuicaoDFe, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, type DanfeArea, DanfeDefaultPdfDocument, type DanfeFieldCell, type DanfeItemsCell, type DanfeItemsColumn, type DanfeItemsPairsCell, type DanfeLayout, DanfeMargins, type DanfeOptions, type DanfePageSlice, DanfeRtcPdfDocument, DanfeSize, type DanfeTextRun, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetEventoManifestacao, type DetGroupBuilder, type DistribuicaoDFePayload, type DistribuicaoDFeRequest, type DistribuicaoDFeResponse, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoManifestacao, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeDistribuicaoDFePipeline, NfeManifestacaoPipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineDistribuicaoDFeResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetDistDFeInt, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TpEventManifestacao, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, mm, ptPerMm, schemas };
@@ -2054,8 +2054,10 @@ declare const DanfeMargins: {
2054
2054
  readonly bottom: number;
2055
2055
  readonly left: number;
2056
2056
  };
2057
+ type DanfeLayout = 'portrait' | 'landscape';
2057
2058
  interface DanfeOptions {
2058
2059
  size: keyof typeof DanfeSize;
2060
+ layout: DanfeLayout;
2059
2061
  qComDecimals: number;
2060
2062
  vUnComDecimals: number;
2061
2063
  showCanhoto: boolean;
@@ -2071,6 +2073,7 @@ interface DanfeArea {
2071
2073
  x: number;
2072
2074
  y: number;
2073
2075
  width: number;
2076
+ height?: number;
2074
2077
  }
2075
2078
  interface DanfeFieldCell {
2076
2079
  label: string;
@@ -2088,8 +2091,16 @@ interface DanfeItemsColumn {
2088
2091
  interface DanfeItemsPairsCell {
2089
2092
  pairs: [string, string][];
2090
2093
  columns?: number;
2094
+ muted?: boolean;
2091
2095
  }
2092
- type DanfeItemsCell = string | DanfeItemsPairsCell;
2096
+ interface DanfeTextRun {
2097
+ text: string;
2098
+ color?: string;
2099
+ align?: 'left' | 'center' | 'right';
2100
+ blankBefore?: boolean;
2101
+ fit?: boolean;
2102
+ }
2103
+ type DanfeItemsCell = string | DanfeTextRun[] | DanfeItemsPairsCell;
2093
2104
  interface DanfePageSlice<T> {
2094
2105
  items: T[];
2095
2106
  isFirst: boolean;
@@ -5186,6 +5197,7 @@ declare class DanfeFormatter {
5186
5197
  private readonly context;
5187
5198
  constructor(context: DanfePdfDocument);
5188
5199
  isNotEmpty(value?: DecimalValue): value is DecimalValue;
5200
+ emitted(value: DecimalValue | undefined, max: number): string;
5189
5201
  decimal(value?: DecimalValue, minimumFractionDigits?: number, maximumFractionDigits?: number): string;
5190
5202
  currency(value?: DecimalValue): string;
5191
5203
  percent(value?: DecimalValue): string;
@@ -5194,6 +5206,7 @@ declare class DanfeFormatter {
5194
5206
  phone(value?: string): string;
5195
5207
  number(nNF: string): string;
5196
5208
  serie(serie: string): string;
5209
+ blank(value?: string): string;
5197
5210
  accessKey(): string;
5198
5211
  accessKeyDigits(): string;
5199
5212
  protected tz(value: string): dayjs.Dayjs;
@@ -5208,7 +5221,9 @@ declare class DanfeFormatter {
5208
5221
  interface FieldTextOptions {
5209
5222
  size: number;
5210
5223
  bold?: boolean;
5224
+ color?: string;
5211
5225
  align?: 'left' | 'center' | 'right' | 'justify';
5226
+ lineBreak?: boolean;
5212
5227
  }
5213
5228
  type FieldBoxCell = Omit<DanfeFieldCell, 'weight'>;
5214
5229
  declare class FieldBox {
@@ -5216,7 +5231,8 @@ declare class FieldBox {
5216
5231
  readonly labelSize = 5;
5217
5232
  readonly valueSize = 8;
5218
5233
  readonly titleSize = 6.5;
5219
- readonly padding = 1.5;
5234
+ readonly muted = "#595959";
5235
+ readonly padding = 2.5;
5220
5236
  readonly rowHeight: number;
5221
5237
  readonly radius: number;
5222
5238
  constructor(context: DanfePdfDocument);
@@ -5231,6 +5247,7 @@ declare class FieldBox {
5231
5247
  row(x: number, y: number, width: number, height: number, cells: DanfeFieldCell[]): number;
5232
5248
  grid(x: number, y: number, width: number, cells: FieldBoxCell[], perRow: number, height?: number): number;
5233
5249
  gridRows(count: number, perRow: number): number;
5250
+ widthOf(text: string, options: FieldTextOptions): number;
5234
5251
  title(x: number, y: number, width: number, text: string): number;
5235
5252
  }
5236
5253
 
@@ -5246,7 +5263,7 @@ declare abstract class DanfeBlock implements Builder {
5246
5263
  abstract height(): number;
5247
5264
  protected abstract draw(area: DanfeArea): void;
5248
5265
  setup(): void;
5249
- build(options?: RowBuilderOptions): PdfBuilder;
5266
+ build(options?: DanfeArea): PdfBuilder;
5250
5267
  end(): void;
5251
5268
  }
5252
5269
 
@@ -5292,6 +5309,7 @@ declare class ItemDescription {
5292
5309
  protected get options(): DanfeOptions;
5293
5310
  protected tax(value: DecimalValue | undefined, template: string): string;
5294
5311
  protected taxes(det: Det): string;
5312
+ infAdProd(det: Det): string;
5295
5313
  protected additionalInfo(det: Det): string;
5296
5314
  protected anvisa(det: Det): string;
5297
5315
  protected batch(det: Det): string;
@@ -5300,6 +5318,10 @@ declare class ItemDescription {
5300
5318
  protected lines(entries: [string, string | undefined][]): string;
5301
5319
  vehicle(det: Det): string;
5302
5320
  weapons(det: Det): string;
5321
+ productName(det: Det): string;
5322
+ protected narrative(det: Det): string;
5323
+ extras(det: Det): string;
5324
+ details(det: Det): string;
5303
5325
  build(det: Det): string;
5304
5326
  }
5305
5327
 
@@ -5310,20 +5332,24 @@ declare abstract class DanfeItemsBlock extends DanfeBlock {
5310
5332
  protected readonly title = "DADOS DOS PRODUTOS / SERVI\u00C7OS";
5311
5333
  protected readonly fontSize: number;
5312
5334
  protected readonly headerFontSize: number;
5313
- protected readonly cellPadding: number;
5335
+ protected get cellPadding(): number;
5336
+ protected readonly columnLabelColor: string;
5314
5337
  protected abstract get columns(): DanfeItemsColumn[];
5315
5338
  protected abstract cells(det: Det): DanfeItemsCell[];
5316
5339
  protected widths(): number[];
5317
5340
  protected labelsHeight(): number;
5318
5341
  headerHeight(): number;
5319
- protected isPairs(cell: DanfeItemsCell): cell is Exclude<DanfeItemsCell, string>;
5342
+ protected isRuns(cell: DanfeItemsCell): cell is DanfeTextRun[];
5343
+ protected isPairs(cell: DanfeItemsCell): cell is Exclude<DanfeItemsCell, string | DanfeTextRun[]>;
5320
5344
  protected lineHeight(): number;
5345
+ protected fitSize(text: string, width: number, size: number): number;
5321
5346
  protected cellHeight(cell: DanfeItemsCell, width: number): number;
5322
5347
  itemHeight(det: Det): number;
5323
5348
  height(): number;
5324
5349
  protected drawLabels(x: number, y: number, height: number): void;
5325
5350
  protected drawColumnLines(x: number, top: number, bottom: number): void;
5326
- protected drawPairs(cell: Exclude<DanfeItemsCell, string>, x: number, y: number, width: number): void;
5351
+ protected drawPairs(cell: DanfeItemsPairsCell, x: number, y: number, width: number): void;
5352
+ protected drawRuns(runs: DanfeTextRun[], x: number, y: number, width: number, align: 'left' | 'center' | 'right'): void;
5327
5353
  protected drawItem(det: Det, x: number, y: number, height: number): void;
5328
5354
  protected drawSeparator(x: number, y: number, width: number): void;
5329
5355
  protected draw({ x, y, width }: DanfeArea): void;
@@ -5400,6 +5426,7 @@ declare abstract class DanfePdfDocument {
5400
5426
  protected get blocks(): DanfeBlocks;
5401
5427
  constructor(stream: Writable);
5402
5428
  get bold(): string;
5429
+ protected readonly sideCanhotoWidth: number;
5403
5430
  get contentWidth(): number;
5404
5431
  get det(): Det[];
5405
5432
  asArray<T>(value?: T | T[]): T[];
@@ -5516,4 +5543,4 @@ declare class NFCe implements NFe$1 {
5516
5543
  Signature?: Signature;
5517
5544
  }
5518
5545
 
5519
- export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsChNFe, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaChaveDistribuicaoDFe, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, type DanfeArea, DanfeDefaultPdfDocument, type DanfeFieldCell, type DanfeItemsCell, type DanfeItemsColumn, type DanfeItemsPairsCell, DanfeMargins, type DanfeOptions, type DanfePageSlice, DanfeRtcPdfDocument, DanfeSize, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetEventoManifestacao, type DetGroupBuilder, type DistribuicaoDFePayload, type DistribuicaoDFeRequest, type DistribuicaoDFeResponse, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoManifestacao, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeDistribuicaoDFePipeline, NfeManifestacaoPipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineDistribuicaoDFeResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetDistDFeInt, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TpEventManifestacao, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, mm, ptPerMm, schemas };
5546
+ export { type AccessKey, AccessKeyBuilder, type AgropecuarioBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsChNFe, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaChaveDistribuicaoDFe, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, type DFeReferenciadoBuilder, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, type DanfeArea, DanfeDefaultPdfDocument, type DanfeFieldCell, type DanfeItemsCell, type DanfeItemsColumn, type DanfeItemsPairsCell, type DanfeLayout, DanfeMargins, type DanfeOptions, type DanfePageSlice, DanfeRtcPdfDocument, DanfeSize, type DanfeTextRun, DefaultDetBuilderAggregator, DefaultSchema, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetEventoManifestacao, type DetGroupBuilder, type DistribuicaoDFePayload, type DistribuicaoDFeRequest, type DistribuicaoDFeResponse, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, EventoCstatToCancelRegister, EventoCstatToProtocol, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoManifestacao, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbsCbsTotBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfPAABuilder, type InfProt, type InfRespTecBuilder, type InfSolicNFFBuilder, InutCstatToProtocol, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IsBuilder, type IsTotBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeComplements, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeDistribuicaoDFePipeline, NfeManifestacaoPipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, PL_009, PL_010, type PagBuilder, type PipelineAuthorizerResponse, type PipelineDistribuicaoDFeResponse, type PipelineEventResponse, type PipelineInutilizacaoResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProcInutNFe, type ProdBuilder, type ProtNFe, type ProtNFeAttributes, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetDistDFeInt, type RetEvento, type RetEventoItem, type RetInutNFe, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, type TotalIncrementHost, TpEmis, TpEvent, type TpEventManifestacao, type TranspBuilder, type VItemBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, mm, ptPerMm, schemas };