@progress/kendo-vue-pdf 8.0.3-develop.2 → 8.0.3-develop.4

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
@@ -5,365 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { ComponentOptionsMixin } from 'vue';
9
- import { ComponentProvideOptions } from 'vue';
10
- import { DefineComponent } from 'vue';
11
- import { ExtractPropTypes } from 'vue';
12
- import { PageMargin } from '@progress/kendo-drawing/pdf';
13
- import { PaperSize } from '@progress/kendo-drawing/pdf';
14
- import { PropType } from 'vue';
15
- import { PublicProps } from 'vue';
16
-
17
- /**
18
- * @hidden
19
- */
20
- export declare const GridPdfExport: DefineComponent<ExtractPropTypes< {
21
- author: PropType<string>;
22
- avoidLinks: PropType<string | boolean>;
23
- forcePageBreak: PropType<string>;
24
- keepTogether: PropType<string>;
25
- creator: PropType<string>;
26
- date: PropType<Date>;
27
- imageResolution: PropType<number>;
28
- fileName: PropType<string>;
29
- forceProxy: PropType<boolean>;
30
- keywords: PropType<string>;
31
- landscape: PropType<boolean>;
32
- margin: PropType<string | number | PageMargin>;
33
- pageTemplate: PropType<any>;
34
- paperSize: PropType<PaperSize>;
35
- repeatHeaders: PropType<boolean>;
36
- scale: PropType<number>;
37
- proxyData: PropType<{
38
- [key: string]: string;
39
- }>;
40
- proxyURL: PropType<string>;
41
- proxyTarget: PropType<string>;
42
- producer: PropType<string>;
43
- subject: PropType<string>;
44
- title: PropType<string>;
45
- }>, {}, {}, {}, {
46
- save(data?: any[], callback?: () => void): void;
47
- getSavePDF(): typeof savePDF;
48
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
49
- author: PropType<string>;
50
- avoidLinks: PropType<string | boolean>;
51
- forcePageBreak: PropType<string>;
52
- keepTogether: PropType<string>;
53
- creator: PropType<string>;
54
- date: PropType<Date>;
55
- imageResolution: PropType<number>;
56
- fileName: PropType<string>;
57
- forceProxy: PropType<boolean>;
58
- keywords: PropType<string>;
59
- landscape: PropType<boolean>;
60
- margin: PropType<string | number | PageMargin>;
61
- pageTemplate: PropType<any>;
62
- paperSize: PropType<PaperSize>;
63
- repeatHeaders: PropType<boolean>;
64
- scale: PropType<number>;
65
- proxyData: PropType<{
66
- [key: string]: string;
67
- }>;
68
- proxyURL: PropType<string>;
69
- proxyTarget: PropType<string>;
70
- producer: PropType<string>;
71
- subject: PropType<string>;
72
- title: PropType<string>;
73
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
74
-
75
- export declare interface GridPDFExportProps extends PDFExportProps {
76
- }
77
-
78
- /**
79
- * Represents the props of a page template component that
80
- * can be added to the PDFExport component.
81
- */
82
- export declare interface PageTemplateProps {
83
- /**
84
- * The number of the current page.
85
- */
86
- pageNum: number;
87
- /**
88
- * The total number of pages.
89
- */
90
- totalPages: number;
91
- }
92
-
93
- /**
94
- * @hidden
95
- */
96
- export declare const PDFExport: DefineComponent<ExtractPropTypes< {
97
- author: PropType<string>;
98
- avoidLinks: PropType<string | boolean>;
99
- forcePageBreak: PropType<string>;
100
- keepTogether: PropType<string>;
101
- creator: PropType<string>;
102
- date: PropType<Date>;
103
- imageResolution: PropType<number>;
104
- fileName: PropType<string>;
105
- forceProxy: PropType<boolean>;
106
- keywords: PropType<string>;
107
- landscape: PropType<boolean>;
108
- margin: PropType<string | number | PageMargin>;
109
- pageTemplate: PropType<any>;
110
- paperSize: PropType<PaperSize>;
111
- repeatHeaders: PropType<boolean>;
112
- scale: PropType<number>;
113
- proxyData: PropType<{
114
- [key: string]: string;
115
- }>;
116
- proxyURL: PropType<string>;
117
- proxyTarget: PropType<string>;
118
- producer: PropType<string>;
119
- subject: PropType<string>;
120
- title: PropType<string>;
121
- }>, {}, {}, {}, {
122
- save(callback?: () => void): void;
123
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
124
- author: PropType<string>;
125
- avoidLinks: PropType<string | boolean>;
126
- forcePageBreak: PropType<string>;
127
- keepTogether: PropType<string>;
128
- creator: PropType<string>;
129
- date: PropType<Date>;
130
- imageResolution: PropType<number>;
131
- fileName: PropType<string>;
132
- forceProxy: PropType<boolean>;
133
- keywords: PropType<string>;
134
- landscape: PropType<boolean>;
135
- margin: PropType<string | number | PageMargin>;
136
- pageTemplate: PropType<any>;
137
- paperSize: PropType<PaperSize>;
138
- repeatHeaders: PropType<boolean>;
139
- scale: PropType<number>;
140
- proxyData: PropType<{
141
- [key: string]: string;
142
- }>;
143
- proxyURL: PropType<string>;
144
- proxyTarget: PropType<string>;
145
- producer: PropType<string>;
146
- subject: PropType<string>;
147
- title: PropType<string>;
148
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
149
-
150
- /**
151
- * Represents the props of the KendoVue PDFExport component.
152
- */
153
- export declare interface PDFExportProps {
154
- /**
155
- * The author (metadata) of the PDF document.
156
- */
157
- author?: string;
158
- /**
159
- * A flag that indicates whether to produce actual hyperlinks in the exported PDF file.
160
- * It is also possible to set a CSS selector. All matching links will be ignored.
161
- */
162
- avoidLinks?: boolean | string;
163
- /**
164
- * An optional CSS selector that specifies the elements which cause the page breaks.
165
- */
166
- forcePageBreak?: string;
167
- /**
168
- * An optional CSS selector that specifies the elements which should not be split across the pages.
169
- */
170
- keepTogether?: string;
171
- /**
172
- * The creator of the PDF document.
173
- *
174
- * @default "Kendo UI PDF Generator"
175
- */
176
- creator?: string;
177
- /**
178
- * The date when the PDF document is created. Defaults to `new Date()`.
179
- */
180
- date?: Date;
181
- /**
182
- * The forced resolution of the images in the exported PDF document.
183
- * By default, the images are exported at their full resolution.
184
- */
185
- imageResolution?: number;
186
- /**
187
- * Specifies the name of the exported PDF file.
188
- *
189
- * @default "export.pdf"
190
- */
191
- fileName?: string;
192
- /**
193
- * If set to `true`, the content is forwarded to `proxyURL` even if the
194
- * browser supports local saving of files.
195
- */
196
- forceProxy?: boolean;
197
- /**
198
- * The keywords (metadata) of the PDF document.
199
- */
200
- keywords?: string;
201
- /**
202
- * A flag that indicates if the page will be in a landscape orientation.
203
- * By default, the page is in a portrait orientation.
204
- *
205
- * @default false
206
- */
207
- landscape?: boolean;
208
- /**
209
- * Specifies the margins of the page.
210
- *
211
- * The supported units are:
212
- * * `"mm"`
213
- * * `"cm"`
214
- * * `"in"`
215
- * * `"pt"` (default).
216
- *
217
- * > Numbers are considered to be points (`"pt"`).
218
- */
219
- margin?: string | number | PageMargin;
220
- /**
221
- * A Vue functional or class component which is used as a template that is inserted
222
- * into each page of the PDF document. The number of the current page (`pageNum`)
223
- * and the total number of pages (`totalPages`) are passed to the component as properties.
224
- */
225
- pageTemplate?: any;
226
- /**
227
- * Specifies the paper size of the PDF document. Defaults to `"auto"` which means that the paper size
228
- * is determined by the content.
229
- * The size of the content in pixels matches the size of the output in points (1 pixel = 1/72 inch).
230
- *
231
- * If set, the content will be split across multiple pages.
232
- * This enables the `repeatHeaders` and `scale` options, and allows you to specify a template.
233
- *
234
- * The supported values are:
235
- * * A predefined size. The supported paper sizes are: `A0-A10`, `B0-B10`, `C0-C10`,
236
- * `Executive`, `Folio`, `Legal`, `Letter`, `Tabloid`.
237
- * * An array of two numbers which specify the width and height in points (1pt = 1/72in).
238
- * * An array of two strings which specify the width and height in units.
239
- * The supported units are `"mm"`, `"cm"`, `"in"`, and `"pt"`.
240
- */
241
- paperSize?: PaperSize;
242
- /**
243
- * Specifies if the `<thead>` elements of the tables will be repeated on each page.
244
- */
245
- repeatHeaders?: boolean;
246
- /**
247
- * A scale factor.
248
- * The text size on the screen might be too big for printing.
249
- * To scale down the output in PDF, use this option.
250
- *
251
- * @default 1
252
- */
253
- scale?: number;
254
- /**
255
- * A key/value dictionary of form values which will be sent to the proxy.
256
- * Can be used to submit Anti-Forgery tokens and other metadata.
257
- */
258
- proxyData?: {
259
- [key: string]: string;
260
- };
261
- /**
262
- * The URL of the server-side proxy which streams the file to the end user.
263
- * You need to use a proxy if the browser is not capable of saving files locally&mdash;
264
- * for example, Internet Explorer 9 and Safari.
265
- * It is your responsibility to implement the server-side proxy.
266
- *
267
- * In the request body, the proxy receives a POST request with the following parameters:
268
- *
269
- * - `"contentType"`&mdash;The MIME type of the file.
270
- * - `"base64"`&mdash;The base-64 encoded file content.
271
- * - `"fileName"`&mdash;The file name, as requested by the caller.
272
- *
273
- * The proxy returns the decoded file with the `"Content-Disposition"` header set to `attachment;
274
- * filename="<fileName.pdf>"`.
275
- */
276
- proxyURL?: string;
277
- /**
278
- * A name or keyword which indicates where to display the document that is returned from the proxy.
279
- * To display the document in a new window or iframe,
280
- * the proxy has to have the `"Content-Disposition"` header set to `inline; filename="<fileName.pdf>"`.
281
- *
282
- * @default "_self"
283
- */
284
- proxyTarget?: string;
285
- /**
286
- * The producer (metadata) of the PDF document.
287
- */
288
- producer?: string;
289
- /**
290
- * The subject (metadata) of the PDF document.
291
- */
292
- subject?: string;
293
- /**
294
- * The title (metadata) of the PDF document.
295
- */
296
- title?: string;
297
- }
298
-
299
- /**
300
- * Saves the content of a DOM element to a PDF file.
301
- *
302
- * @param domElement - The root DOM element to save to a PDF file.
303
- * @param options - The export options.
304
- * @param callback - The callback to be executed after the PDF is saved.
305
- */
306
- export declare function savePDF(domElement: HTMLElement, options?: PDFExportProps, callback?: () => void): void;
307
-
308
- /**
309
- * @hidden
310
- */
311
- export declare const TreeListPDFExport: DefineComponent<ExtractPropTypes< {
312
- author: PropType<string>;
313
- avoidLinks: PropType<string | boolean>;
314
- forcePageBreak: PropType<string>;
315
- keepTogether: PropType<string>;
316
- creator: PropType<string>;
317
- date: PropType<Date>;
318
- imageResolution: PropType<number>;
319
- fileName: PropType<string>;
320
- forceProxy: PropType<boolean>;
321
- keywords: PropType<string>;
322
- landscape: PropType<boolean>;
323
- margin: PropType<string | number | PageMargin>;
324
- pageTemplate: PropType<any>;
325
- paperSize: PropType<PaperSize>;
326
- repeatHeaders: PropType<boolean>;
327
- scale: PropType<number>;
328
- proxyData: PropType<{
329
- [key: string]: string;
330
- }>;
331
- proxyURL: PropType<string>;
332
- proxyTarget: PropType<string>;
333
- producer: PropType<string>;
334
- subject: PropType<string>;
335
- title: PropType<string>;
336
- }>, {}, {}, {}, {
337
- save(data?: any[], callback?: () => void): void;
338
- getSavePDF(): typeof savePDF;
339
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
340
- author: PropType<string>;
341
- avoidLinks: PropType<string | boolean>;
342
- forcePageBreak: PropType<string>;
343
- keepTogether: PropType<string>;
344
- creator: PropType<string>;
345
- date: PropType<Date>;
346
- imageResolution: PropType<number>;
347
- fileName: PropType<string>;
348
- forceProxy: PropType<boolean>;
349
- keywords: PropType<string>;
350
- landscape: PropType<boolean>;
351
- margin: PropType<string | number | PageMargin>;
352
- pageTemplate: PropType<any>;
353
- paperSize: PropType<PaperSize>;
354
- repeatHeaders: PropType<boolean>;
355
- scale: PropType<number>;
356
- proxyData: PropType<{
357
- [key: string]: string;
358
- }>;
359
- proxyURL: PropType<string>;
360
- proxyTarget: PropType<string>;
361
- producer: PropType<string>;
362
- subject: PropType<string>;
363
- title: PropType<string>;
364
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
365
-
366
- export declare interface TreeListPDFExportProps extends PDFExportProps {
367
- }
368
-
369
- export { }
8
+ import { PDFExport } from './PDFExport';
9
+ import { PDFExportProps } from './PDFExportProps';
10
+ import { PageTemplateProps } from './PageTemplateProps';
11
+ import { savePDF } from './savePDF';
12
+ import { GridPdfExport, GridPDFExportProps } from './grid/GridPDFExport';
13
+ import { TreeListPDFExport, TreeListPDFExportProps } from './treelist/TreeListPDFExport';
14
+ export { PDFExport, type PDFExportProps, type PageTemplateProps, savePDF, GridPdfExport, type GridPDFExportProps, TreeListPDFExport, type TreeListPDFExportProps };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PackageMetadata } from '@progress/kendo-licensing';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const packageMetadata: PackageMetadata;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773130140,version:"8.0.3-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773755962,version:"8.0.3-develop.4",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1773130140,
14
- version: "8.0.3-develop.2",
13
+ publishDate: 1773755962,
14
+ version: "8.0.3-develop.4",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-pdf",
3
- "version": "8.0.3-develop.2",
3
+ "version": "8.0.3-develop.4",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -9,8 +9,14 @@
9
9
  "types": "./index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "import": "./index.mjs",
13
- "require": "./index.js"
12
+ "import": {
13
+ "types": "./index.d.mts",
14
+ "default": "./index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ }
14
20
  },
15
21
  "./package.json": {
16
22
  "default": "./package.json"
@@ -21,7 +27,7 @@
21
27
  "@progress/kendo-drawing": "^1.21.1",
22
28
  "@progress/kendo-file-saver": "^1.0.1",
23
29
  "@progress/kendo-licensing": "^1.7.2",
24
- "@progress/kendo-vue-common": "8.0.3-develop.2",
30
+ "@progress/kendo-vue-common": "8.0.3-develop.4",
25
31
  "vue": "^3.0.2"
26
32
  },
27
33
  "dependencies": {},
@@ -41,7 +47,7 @@
41
47
  "package": {
42
48
  "productName": "Kendo UI for Vue",
43
49
  "productCode": "KENDOUIVUE",
44
- "publishDate": 1773130140,
50
+ "publishDate": 1773755962,
45
51
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
46
52
  }
47
53
  },
package/savePDF.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PDFExportProps } from './PDFExportProps';
9
+ /**
10
+ * Saves the content of a DOM element to a PDF file.
11
+ *
12
+ * @param domElement - The root DOM element to save to a PDF file.
13
+ * @param options - The export options.
14
+ * @param callback - The callback to be executed after the PDF is saved.
15
+ */
16
+ export declare function savePDF(domElement: HTMLElement, options?: PDFExportProps, callback?: () => void): void;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { savePDF } from '../savePDF';
9
+ import { PDFExportProps } from '../PDFExportProps';
10
+ import { PropType } from 'vue';
11
+ export interface TreeListPDFExportProps extends PDFExportProps {
12
+ }
13
+ /**
14
+ * @hidden
15
+ */
16
+ declare const TreeListPDFExport: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
+ author: PropType<string>;
18
+ avoidLinks: PropType<string | boolean>;
19
+ forcePageBreak: PropType<string>;
20
+ keepTogether: PropType<string>;
21
+ creator: PropType<string>;
22
+ date: PropType<Date>;
23
+ imageResolution: PropType<number>;
24
+ fileName: PropType<string>;
25
+ forceProxy: PropType<boolean>;
26
+ keywords: PropType<string>;
27
+ landscape: PropType<boolean>;
28
+ margin: PropType<string | number | import('@progress/kendo-drawing/pdf').PageMargin>;
29
+ pageTemplate: PropType<any>;
30
+ paperSize: PropType<import('@progress/kendo-drawing/pdf').PaperSize>;
31
+ repeatHeaders: PropType<boolean>;
32
+ scale: PropType<number>;
33
+ proxyData: PropType<{
34
+ [key: string]: string;
35
+ }>;
36
+ proxyURL: PropType<string>;
37
+ proxyTarget: PropType<string>;
38
+ producer: PropType<string>;
39
+ subject: PropType<string>;
40
+ title: PropType<string>;
41
+ }>, {}, {}, {}, {
42
+ save(data?: any[], callback?: () => void): void;
43
+ getSavePDF(): typeof savePDF;
44
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ author: PropType<string>;
46
+ avoidLinks: PropType<string | boolean>;
47
+ forcePageBreak: PropType<string>;
48
+ keepTogether: PropType<string>;
49
+ creator: PropType<string>;
50
+ date: PropType<Date>;
51
+ imageResolution: PropType<number>;
52
+ fileName: PropType<string>;
53
+ forceProxy: PropType<boolean>;
54
+ keywords: PropType<string>;
55
+ landscape: PropType<boolean>;
56
+ margin: PropType<string | number | import('@progress/kendo-drawing/pdf').PageMargin>;
57
+ pageTemplate: PropType<any>;
58
+ paperSize: PropType<import('@progress/kendo-drawing/pdf').PaperSize>;
59
+ repeatHeaders: PropType<boolean>;
60
+ scale: PropType<number>;
61
+ proxyData: PropType<{
62
+ [key: string]: string;
63
+ }>;
64
+ proxyURL: PropType<string>;
65
+ proxyTarget: PropType<string>;
66
+ producer: PropType<string>;
67
+ subject: PropType<string>;
68
+ title: PropType<string>;
69
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
70
+ export { TreeListPDFExport };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare const exportElement: (wrapper: HTMLElement) => HTMLElement;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PDFExportProps } from '../PDFExportProps';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare function provideSaveTreeListPDF(savePDF: (domElement: HTMLElement, options?: PDFExportProps, callback?: () => void) => void): (treeList: any, pdfExportOptions?: PDFExportProps, callback?: () => void, data?: any, columns?: any) => void;