@kong-ui-public/dashboard-renderer 8.12.26 → 8.13.0

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.
@@ -17,6 +17,16 @@ type __VLS_Slots = {} & {
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
18
18
  refresh: () => void;
19
19
  toggleFullscreen: () => void;
20
+ exportPdf: (options?: import("../types").PdfExportOptions) => Promise<Blob | undefined>;
21
+ pdfExportState: Readonly<import("vue").Ref<{
22
+ readonly status: import("../types").PdfExportStatus;
23
+ readonly pageCount?: number | undefined;
24
+ readonly error?: Readonly<unknown> | undefined;
25
+ }, {
26
+ readonly status: import("../types").PdfExportStatus;
27
+ readonly pageCount?: number | undefined;
28
+ readonly error?: Readonly<unknown> | undefined;
29
+ }>>;
20
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
31
  "update:modelValue": (value: {
22
32
  columns?: number | undefined;
@@ -168,7 +178,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
168
178
  field: string;
169
179
  operator: string;
170
180
  })[] | undefined;
171
- datasource: "platform" | "platform_usage";
181
+ datasource: "platform_usage" | "platform";
172
182
  };
173
183
  chart: {
174
184
  stacked?: boolean | undefined;
@@ -250,7 +260,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
250
260
  columns?: string[] | undefined;
251
261
  cursor?: string | undefined;
252
262
  page_size?: number | undefined;
253
- datasource: "platform" | "platform_usage";
263
+ datasource: "platform_usage" | "platform";
254
264
  };
255
265
  chart: {
256
266
  chart_title?: string | undefined;
@@ -406,7 +416,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
406
416
  field: string;
407
417
  operator: string;
408
418
  })[] | undefined;
409
- datasource: "platform" | "platform_usage";
419
+ datasource: "platform_usage" | "platform";
410
420
  };
411
421
  chart: {
412
422
  stacked?: boolean | undefined;
@@ -488,7 +498,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
488
498
  columns?: string[] | undefined;
489
499
  cursor?: string | undefined;
490
500
  page_size?: number | undefined;
491
- datasource: "platform" | "platform_usage";
501
+ datasource: "platform_usage" | "platform";
492
502
  };
493
503
  chart: {
494
504
  chart_title?: string | undefined;
@@ -496,6 +506,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
496
506
  };
497
507
  }>) => any;
498
508
  "tile-time-range-zoom": (newTimeRange: TileZoomEvent) => any;
509
+ "tiles-loaded": (done: boolean) => any;
499
510
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
500
511
  "onEdit-tile"?: ((tile: GridTile<{
501
512
  query: {
@@ -632,7 +643,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
632
643
  field: string;
633
644
  operator: string;
634
645
  })[] | undefined;
635
- datasource: "platform" | "platform_usage";
646
+ datasource: "platform_usage" | "platform";
636
647
  };
637
648
  chart: {
638
649
  stacked?: boolean | undefined;
@@ -714,7 +725,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
714
725
  columns?: string[] | undefined;
715
726
  cursor?: string | undefined;
716
727
  page_size?: number | undefined;
717
- datasource: "platform" | "platform_usage";
728
+ datasource: "platform_usage" | "platform";
718
729
  };
719
730
  chart: {
720
731
  chart_title?: string | undefined;
@@ -722,6 +733,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
722
733
  };
723
734
  }>) => any) | undefined;
724
735
  "onTile-time-range-zoom"?: ((newTimeRange: TileZoomEvent) => any) | undefined;
736
+ "onTiles-loaded"?: ((done: boolean) => any) | undefined;
725
737
  "onUpdate:modelValue"?: ((value: {
726
738
  columns?: number | undefined;
727
739
  tile_height?: number | undefined;
@@ -872,7 +884,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
872
884
  field: string;
873
885
  operator: string;
874
886
  })[] | undefined;
875
- datasource: "platform" | "platform_usage";
887
+ datasource: "platform_usage" | "platform";
876
888
  };
877
889
  chart: {
878
890
  stacked?: boolean | undefined;
@@ -954,7 +966,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
954
966
  columns?: string[] | undefined;
955
967
  cursor?: string | undefined;
956
968
  page_size?: number | undefined;
957
- datasource: "platform" | "platform_usage";
969
+ datasource: "platform_usage" | "platform";
958
970
  };
959
971
  chart: {
960
972
  chart_title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DashboardRenderer.vue"],"names":[],"mappings":"AAmWA,OAAO,KAAK,EAAE,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACjF,OAAO,KAAK,EAIV,eAAe,EAIhB,MAAM,qCAAqC,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,wBAAwB,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0MF,KAAK,gBAAgB,GAAG;IACxB,UAAU,EAAE,eAAe,CAAC;CAC3B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAwNxD,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,oBAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AASxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -159,7 +159,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
159
159
  field: string;
160
160
  operator: string;
161
161
  })[] | undefined;
162
- datasource: "platform" | "platform_usage";
162
+ datasource: "platform_usage" | "platform";
163
163
  };
164
164
  chart: {
165
165
  stacked?: boolean | undefined;
@@ -241,13 +241,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
241
241
  columns?: string[] | undefined;
242
242
  cursor?: string | undefined;
243
243
  page_size?: number | undefined;
244
- datasource: "platform" | "platform_usage";
244
+ datasource: "platform_usage" | "platform";
245
245
  };
246
246
  chart: {
247
247
  chart_title?: string | undefined;
248
248
  type: "table";
249
249
  };
250
250
  }) => any;
251
+ "tile-loaded": () => any;
251
252
  "duplicate-tile": (tile: {
252
253
  query: {
253
254
  granularity?: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend" | undefined;
@@ -383,7 +384,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
383
384
  field: string;
384
385
  operator: string;
385
386
  })[] | undefined;
386
- datasource: "platform" | "platform_usage";
387
+ datasource: "platform_usage" | "platform";
387
388
  };
388
389
  chart: {
389
390
  stacked?: boolean | undefined;
@@ -465,7 +466,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
465
466
  columns?: string[] | undefined;
466
467
  cursor?: string | undefined;
467
468
  page_size?: number | undefined;
468
- datasource: "platform" | "platform_usage";
469
+ datasource: "platform_usage" | "platform";
469
470
  };
470
471
  chart: {
471
472
  chart_title?: string | undefined;
@@ -607,7 +608,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
607
608
  field: string;
608
609
  operator: string;
609
610
  })[] | undefined;
610
- datasource: "platform" | "platform_usage";
611
+ datasource: "platform_usage" | "platform";
611
612
  };
612
613
  chart: {
613
614
  stacked?: boolean | undefined;
@@ -689,7 +690,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
689
690
  columns?: string[] | undefined;
690
691
  cursor?: string | undefined;
691
692
  page_size?: number | undefined;
692
- datasource: "platform" | "platform_usage";
693
+ datasource: "platform_usage" | "platform";
693
694
  };
694
695
  chart: {
695
696
  chart_title?: string | undefined;
@@ -835,7 +836,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
835
836
  field: string;
836
837
  operator: string;
837
838
  })[] | undefined;
838
- datasource: "platform" | "platform_usage";
839
+ datasource: "platform_usage" | "platform";
839
840
  };
840
841
  chart: {
841
842
  stacked?: boolean | undefined;
@@ -917,13 +918,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
917
918
  columns?: string[] | undefined;
918
919
  cursor?: string | undefined;
919
920
  page_size?: number | undefined;
920
- datasource: "platform" | "platform_usage";
921
+ datasource: "platform_usage" | "platform";
921
922
  };
922
923
  chart: {
923
924
  chart_title?: string | undefined;
924
925
  type: "table";
925
926
  };
926
927
  }) => any) | undefined;
928
+ "onTile-loaded"?: (() => any) | undefined;
927
929
  "onDuplicate-tile"?: ((tile: {
928
930
  query: {
929
931
  granularity?: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend" | undefined;
@@ -1059,7 +1061,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
1059
1061
  field: string;
1060
1062
  operator: string;
1061
1063
  })[] | undefined;
1062
- datasource: "platform" | "platform_usage";
1064
+ datasource: "platform_usage" | "platform";
1063
1065
  };
1064
1066
  chart: {
1065
1067
  stacked?: boolean | undefined;
@@ -1141,7 +1143,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
1141
1143
  columns?: string[] | undefined;
1142
1144
  cursor?: string | undefined;
1143
1145
  page_size?: number | undefined;
1144
- datasource: "platform" | "platform_usage";
1146
+ datasource: "platform_usage" | "platform";
1145
1147
  };
1146
1148
  chart: {
1147
1149
  chart_title?: string | undefined;
@@ -1283,7 +1285,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
1283
1285
  field: string;
1284
1286
  operator: string;
1285
1287
  })[] | undefined;
1286
- datasource: "platform" | "platform_usage";
1288
+ datasource: "platform_usage" | "platform";
1287
1289
  };
1288
1290
  chart: {
1289
1291
  stacked?: boolean | undefined;
@@ -1365,7 +1367,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
1365
1367
  columns?: string[] | undefined;
1366
1368
  cursor?: string | undefined;
1367
1369
  page_size?: number | undefined;
1368
- datasource: "platform" | "platform_usage";
1370
+ datasource: "platform_usage" | "platform";
1369
1371
  };
1370
1372
  chart: {
1371
1373
  chart_title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardTile.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DashboardTile.vue"],"names":[],"mappings":"AAyrBA,OAAO,KAAK,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACtG,OAAO,KAAK,EAOV,eAAe,EAEf,UAAU,EACV,cAAc,EACf,MAAM,qCAAqC,CAAA;AAK5C,OAAO,gDAAgD,CAAA;AACvD,OAAO,0DAA0D,CAAA;AAoBjE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gCAAgC,CAAA;IACzC,UAAU,EAAE,cAAc,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAC;AAsWF,KAAK,gBAAgB,GAAG;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAYF,KAAK,iBAAiB,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAhTvC,MAAM;iBAED,OAAO;qBACH,OAAO;iBAEX,OAAO;cAEV,UAAU,CAAC,MAAM,CAAC;6EA03B7B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -3,10 +3,12 @@ import useEvaluateFeatureFlag from './useEvauluateFeatureFlag';
3
3
  import useContextLinks from './useContextLinks';
4
4
  import useIssueQuery from './useIssueQuery';
5
5
  import useDashboardInternalContext from './useDashboardInternalContext';
6
+ import useExportPdf from './useExportPdf';
6
7
  declare const _default: {
7
8
  useContextLinks: typeof useContextLinks;
8
9
  useDashboardInternalContext: typeof useDashboardInternalContext;
9
10
  useEvaluateFeatureFlag: typeof useEvaluateFeatureFlag;
11
+ useExportPdf: typeof useExportPdf;
10
12
  useI18n: typeof useI18n;
11
13
  useIssueQuery: typeof useIssueQuery;
12
14
  useRequestQueue: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAE9D,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;;;;;;;;;AAGvE,wBAOC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAE9D,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,YAAY,MAAM,gBAAgB,CAAA;;;;;;;;;;AAGzC,wBAQC"}
@@ -0,0 +1,28 @@
1
+ import type { Ref } from 'vue';
2
+ import type { PdfExportOptions } from '../types/renderer-types';
3
+ interface RowBoundary {
4
+ top: number;
5
+ bottom: number;
6
+ }
7
+ interface PageSlice {
8
+ startY: number;
9
+ height: number;
10
+ }
11
+ export declare function slugify(value: string): string;
12
+ export declare function buildFilename(filename: string | undefined, title: string | undefined, now: Date): string;
13
+ export declare function getRowBoundaries(container: HTMLElement): RowBoundary[];
14
+ export declare function calculatePageSlices(rows: RowBoundary[], canvasHeight: number, pageHeightPx: number, scale: number): PageSlice[];
15
+ declare function useExportPdf(layoutContainerRef: Ref<HTMLElement | undefined>): {
16
+ exportPdf: (options?: PdfExportOptions) => Promise<Blob | undefined>;
17
+ exportState: Readonly<Ref<{
18
+ readonly status: import("..").PdfExportStatus;
19
+ readonly pageCount?: number | undefined;
20
+ readonly error?: Readonly<unknown> | undefined;
21
+ }, {
22
+ readonly status: import("..").PdfExportStatus;
23
+ readonly pageCount?: number | undefined;
24
+ readonly error?: Readonly<unknown> | undefined;
25
+ }>>;
26
+ };
27
+ export default useExportPdf;
28
+ //# sourceMappingURL=useExportPdf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExportPdf.d.ts","sourceRoot":"","sources":["../../../src/composables/useExportPdf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,yBAAyB,CAAA;AAO/E,UAAU,WAAW;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,SAAS;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAoBD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM7C;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,CAKxG;AAqDD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,GAAG,WAAW,EAAE,CA8BtE;AAGD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,GACZ,SAAS,EAAE,CAkCb;AAED,iBAAS,YAAY,CAAC,kBAAkB,EAAE,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC;0BAIlC,gBAAgB,KAAQ,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;;;;;;;;;;EA4IpF;AAED,eAAe,YAAY,CAAA"}
@@ -16,6 +16,45 @@ export interface DashboardRendererContextInternal extends Required<DashboardRend
16
16
  */
17
17
  showTileZoomActions: boolean;
18
18
  }
19
+ export interface PdfExportOptions {
20
+ /**
21
+ * PDF filename without .pdf extension, a date stamp is always appended.
22
+ * Defaults to a slug of `title`, falling back to 'dashboard-export'.
23
+ */
24
+ filename?: string;
25
+ /** Dashboard name used in the header */
26
+ title?: string;
27
+ /** Second header line */
28
+ subtitle?: string;
29
+ /** URL to the dashboard in the footer. */
30
+ dashboardUrl?: string;
31
+ /** Page orientation. Defaults to 'landscape'. */
32
+ orientation?: 'portrait' | 'landscape';
33
+ /** Page size. Defaults to 'letter'. */
34
+ pageSize?: 'letter' | 'a4';
35
+ /** Page margin in mm. Defaults to 4. */
36
+ margin?: number;
37
+ /** Scale factor for capture resolution. Higher = better quality, larger file. Defaults to 2. */
38
+ scale?: number;
39
+ /** CSS selectors to exclude from capture (e.g. tooltips, dropdowns). */
40
+ exclude?: string[];
41
+ /**
42
+ * 'download' is for client-side generation, 'blob' returns the PDF as a Blob
43
+ * which is needed for headless. Defaults to 'download'.
44
+ */
45
+ output?: 'download' | 'blob';
46
+ /** Called before DOM capture starts (e.g. to hide interactive UI). */
47
+ onBeforeCapture?: () => void | Promise<void>;
48
+ /** Called after DOM capture completes (e.g. to restore UI). */
49
+ onAfterCapture?: () => void | Promise<void>;
50
+ }
51
+ export type PdfExportStatus = 'idle' | 'preparing' | 'capturing' | 'generating' | 'complete' | 'error';
52
+ export interface PdfExportState {
53
+ status: PdfExportStatus;
54
+ /** Number of pages in the generated document. Set when status is 'complete'. */
55
+ pageCount?: number;
56
+ error?: unknown;
57
+ }
19
58
  export interface ChartRendererProps<T> {
20
59
  query: ValidDashboardChartQuery;
21
60
  context: DashboardRendererContextInternal;
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-types.d.ts","sourceRoot":"","sources":["../../../src/types/renderer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AA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AS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,KAAK,EAAE,wBAAwB,CAAA;IAC/B,OAAO,EAAE,gCAAgC,CAAA;IACzC,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,CAAC,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,WAAW,CAAC,EAAE,YAAY,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,wBAAwB,CAAA;IAC/B,OAAO,EAAE,gCAAgC,CAAA;IACzC,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/dashboard-renderer",
3
- "version": "8.12.26",
3
+ "version": "8.13.0",
4
4
  "type": "module",
5
5
  "main": "./dist/dashboard-renderer.umd.js",
6
6
  "module": "./dist/dashboard-renderer.es.js",
@@ -29,15 +29,15 @@
29
29
  "pinia": ">= 3.0.4 < 4",
30
30
  "swrv": "^1.2.0",
31
31
  "vue": "^3.5.35",
32
- "@kong-ui-public/analytics-chart": "^10.19.11",
33
- "@kong-ui-public/analytics-config-store": "^1.3.33",
34
- "@kong-ui-public/analytics-geo-map": "^1.5.50",
35
- "@kong-ui-public/analytics-metric-provider": "^11.4.7",
36
- "@kong-ui-public/analytics-utilities": "^12.20.1",
32
+ "@kong-ui-public/analytics-config-store": "^1.3.35",
33
+ "@kong-ui-public/analytics-chart": "^10.19.13",
34
+ "@kong-ui-public/analytics-utilities": "^12.21.0",
35
+ "@kong-ui-public/analytics-metric-provider": "^11.4.9",
37
36
  "@kong-ui-public/entities-shared": "^3.54.1",
38
- "@kong-ui-public/i18n": "^2.4.6",
37
+ "@kong-ui-public/analytics-geo-map": "^1.6.0",
39
38
  "@kong-ui-public/sandbox-layout": "^2.4.26",
40
- "@kong-ui-public/table-data-grid": "^0.2.2"
39
+ "@kong-ui-public/table-data-grid": "^0.2.2",
40
+ "@kong-ui-public/i18n": "^2.4.6"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",
@@ -61,16 +61,19 @@
61
61
  "@kong/kongponents": "^9.59.0",
62
62
  "swrv": "^1.2.0",
63
63
  "vue": ">= 3.3.13 < 4",
64
- "@kong-ui-public/analytics-chart": "^10.19.11",
65
- "@kong-ui-public/analytics-geo-map": "^1.5.50",
66
- "@kong-ui-public/analytics-metric-provider": "^11.4.7",
67
- "@kong-ui-public/analytics-config-store": "^1.3.33",
68
- "@kong-ui-public/analytics-utilities": "^12.20.1",
69
- "@kong-ui-public/table-data-grid": "^0.2.2",
70
- "@kong-ui-public/i18n": "^2.4.6"
64
+ "@kong-ui-public/analytics-chart": "^10.19.13",
65
+ "@kong-ui-public/analytics-config-store": "^1.3.35",
66
+ "@kong-ui-public/analytics-utilities": "^12.21.0",
67
+ "@kong-ui-public/analytics-metric-provider": "^11.4.9",
68
+ "@kong-ui-public/i18n": "^2.4.6",
69
+ "@kong-ui-public/analytics-geo-map": "^1.6.0",
70
+ "@kong-ui-public/table-data-grid": "^0.2.2"
71
71
  },
72
72
  "dependencies": {
73
+ "@zumer/snapdom": "^2.6.0",
74
+ "date-fns": "^4.4.0",
73
75
  "gridstack": "^11.5.1",
76
+ "jspdf": "^4.2.1",
74
77
  "p-queue": "^8.1.1",
75
78
  "@kong-ui-public/core": "^1.11.29"
76
79
  },