taxtank-core 2.0.13 → 2.0.14

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.
package/index.d.ts CHANGED
@@ -3393,6 +3393,7 @@ declare class ExportDataTable {
3393
3393
  header: string[];
3394
3394
  body: ExportCell[][];
3395
3395
  footer: ExportCell[][];
3396
+ pageBreak?: boolean;
3396
3397
  }
3397
3398
 
3398
3399
  declare abstract class ExportableCollection<Model extends AbstractModel> extends Collection<Model> {
@@ -8438,11 +8439,20 @@ declare class PdfFromTableService {
8438
8439
  /**
8439
8440
  * Set basic options for PDF table
8440
8441
  */
8441
- protected setTableOptions(pdf: JsPdf, tableCaption?: string): object;
8442
+ protected setTableOptions(pdf: JsPdf): object;
8442
8443
  protected setDocumentTitle(doc: JsPdf, title?: string): void;
8443
8444
  protected setDocumentLogo(doc: JsPdf): void;
8444
8445
  protected setDocumentSubtitle(doc: JsPdf, subtitle?: string): void;
8445
8446
  protected setDocumentDescription(doc: JsPdf, description?: string): void;
8447
+ /**
8448
+ * Renders a caption before a table.
8449
+ * - Implemented via autoTable (not plain text) so that:
8450
+ * • line wrapping and text height are calculated automatically,
8451
+ * • the vertical position (finalY) updates consistently,
8452
+ * • page breaks keep caption and table together.
8453
+ * - If `pageBreak` is true, caption (and table) start on a new page.
8454
+ */
8455
+ protected addCaption(pdf: JsPdf, text: string, pageBreak: boolean): void;
8446
8456
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfFromTableService, never>;
8447
8457
  static ɵprov: i0.ɵɵInjectableDeclaration<PdfFromTableService>;
8448
8458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.1.3",