taxtank-core 2.0.12 → 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/README.md +5 -5
- package/fesm2022/taxtank-core-common.mjs.map +1 -1
- package/fesm2022/taxtank-core.mjs +66 -27
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +15 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -2166,6 +2166,10 @@ declare class ServicePromoCode extends AbstractModel {
|
|
2166
2166
|
durationMonths?: number;
|
2167
2167
|
customer?: string;
|
2168
2168
|
id?: number;
|
2169
|
+
products: ServiceProduct[];
|
2170
|
+
getProductsIds(): number[];
|
2171
|
+
hasProduct(product: ServiceProduct): boolean;
|
2172
|
+
isProductPercentOff(product: ServiceProduct): boolean;
|
2169
2173
|
isDurationForever(): boolean;
|
2170
2174
|
isDurationOnce(): boolean;
|
2171
2175
|
isDurationRepeating(): boolean;
|
@@ -3389,6 +3393,7 @@ declare class ExportDataTable {
|
|
3389
3393
|
header: string[];
|
3390
3394
|
body: ExportCell[][];
|
3391
3395
|
footer: ExportCell[][];
|
3396
|
+
pageBreak?: boolean;
|
3392
3397
|
}
|
3393
3398
|
|
3394
3399
|
declare abstract class ExportableCollection<Model extends AbstractModel> extends Collection<Model> {
|
@@ -8434,11 +8439,20 @@ declare class PdfFromTableService {
|
|
8434
8439
|
/**
|
8435
8440
|
* Set basic options for PDF table
|
8436
8441
|
*/
|
8437
|
-
protected setTableOptions(pdf: JsPdf
|
8442
|
+
protected setTableOptions(pdf: JsPdf): object;
|
8438
8443
|
protected setDocumentTitle(doc: JsPdf, title?: string): void;
|
8439
8444
|
protected setDocumentLogo(doc: JsPdf): void;
|
8440
8445
|
protected setDocumentSubtitle(doc: JsPdf, subtitle?: string): void;
|
8441
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;
|
8442
8456
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfFromTableService, never>;
|
8443
8457
|
static ɵprov: i0.ɵɵInjectableDeclaration<PdfFromTableService>;
|
8444
8458
|
}
|