@plannco-ppe/ppe-core 1.0.10 → 1.0.13
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/dist/index.iife.js +7 -7
- package/dist/index.js +1262 -1208
- package/dist/index.umd.js +7 -7
- package/dist/lib/plugins/pdf-export-plugin.d.ts +21 -0
- package/dist/lib/plugins/pdf-export-plugin.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PlanEditorPlugin } from '../types.js';
|
|
2
2
|
export type PdfExportInstance = {
|
|
3
3
|
exportToPdf(options?: PdfExportOptions): Promise<void>;
|
|
4
|
+
exportPeriodicPdf(options: PeriodicPdfExportOptions): Promise<void>;
|
|
4
5
|
};
|
|
5
6
|
export type PdfExportInitialState = {};
|
|
6
7
|
export type PdfExportState = {};
|
|
@@ -8,6 +9,26 @@ export type PdfExportOptions = {
|
|
|
8
9
|
format?: 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5';
|
|
9
10
|
resolution?: number;
|
|
10
11
|
orientation?: 'portrait' | 'landscape';
|
|
12
|
+
filename?: string;
|
|
13
|
+
fitContent?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type PeriodicPdfExportOptions = {
|
|
16
|
+
format?: 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5';
|
|
17
|
+
resolution?: number;
|
|
18
|
+
orientation?: 'portrait' | 'landscape';
|
|
19
|
+
filename?: string;
|
|
20
|
+
periods: Array<{
|
|
21
|
+
start: string;
|
|
22
|
+
end: string;
|
|
23
|
+
label: string;
|
|
24
|
+
}>;
|
|
25
|
+
onProgress?: (current: number, total: number, period: string, previewData: string) => void;
|
|
26
|
+
onCancel?: () => boolean;
|
|
27
|
+
updateTasksForPeriod: (period: {
|
|
28
|
+
start: string;
|
|
29
|
+
end: string;
|
|
30
|
+
label: string;
|
|
31
|
+
}) => void | Promise<void>;
|
|
11
32
|
};
|
|
12
33
|
export declare const PdfExportPlugin: PlanEditorPlugin;
|
|
13
34
|
//# sourceMappingURL=pdf-export-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-export-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/pdf-export-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pdf-export-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/pdf-export-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE,CAAC;AAGF,MAAM,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAGvC,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IA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