@progress/kendo-react-pdf 13.3.0 → 13.4.0-develop.2
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/KendoDrawingAdapter.d.ts +27 -0
- package/PDFExport.d.ts +62 -0
- package/PDFExportProps.d.ts +186 -0
- package/PDFMargin.d.ts +74 -0
- package/PageTemplateProps.d.ts +20 -0
- package/common/dom-queries.d.ts +51 -0
- package/common/table-query.d.ts +29 -0
- package/common/utils.d.ts +27 -0
- package/dist/cdn/js/kendo-react-pdf.js +1 -1
- package/getPageMargin.d.ts +13 -0
- package/grid/GridPDFExport.d.ts +113 -0
- package/grid/export-element.d.ts +11 -0
- package/grid/grid-query.d.ts +29 -0
- package/grid/grid-query.mjs +1 -1
- package/grid/provideSaveGridPDF.d.ts +17 -0
- package/index.d.mts +11 -577
- package/index.d.ts +11 -577
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +3 -3
- package/savePDF.d.ts +16 -0
- package/treelist/TreeListPDFExport.d.ts +117 -0
- package/treelist/export-element.d.ts +11 -0
- package/treelist/provideSaveTreeListPDF.d.ts +12 -0
|
@@ -0,0 +1,117 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { savePDF } from '../savePDF.js';
|
|
10
|
+
import { PDFExportProps } from '../PDFExportProps.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The props of the TreeListPDFExport component
|
|
14
|
+
* ([more information and examples in the documentation on PDF export](https://www.telerik.com/kendo-react-ui/components/treelist/pdf-export)).
|
|
15
|
+
*/
|
|
16
|
+
export interface TreeListPDFExportProps extends PDFExportProps {
|
|
17
|
+
/**
|
|
18
|
+
* If set to true it will export all pages of the TreeList data. By default allPages is set to `false`.
|
|
19
|
+
*/
|
|
20
|
+
allPages?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export interface TreeListPDFExportState {
|
|
26
|
+
show: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A React component which facilitates the PDF export of the TreeList.
|
|
30
|
+
*/
|
|
31
|
+
export declare class TreeListPDFExport extends React.Component<TreeListPDFExportProps, TreeListPDFExportState> {
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
static propTypes: {
|
|
36
|
+
author: PropTypes.Requireable<string>;
|
|
37
|
+
avoidLinks: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
38
|
+
forcePageBreak: PropTypes.Requireable<string>;
|
|
39
|
+
keepTogether: PropTypes.Requireable<string>;
|
|
40
|
+
creator: PropTypes.Requireable<string>;
|
|
41
|
+
date: PropTypes.Requireable<Date>;
|
|
42
|
+
imageResolution: PropTypes.Requireable<number>;
|
|
43
|
+
fileName: PropTypes.Requireable<string>;
|
|
44
|
+
forceProxy: PropTypes.Requireable<boolean>;
|
|
45
|
+
keywords: PropTypes.Requireable<string>;
|
|
46
|
+
landscape: PropTypes.Requireable<boolean>;
|
|
47
|
+
margin: PropTypes.Requireable<NonNullable<string | number | PropTypes.InferProps<{
|
|
48
|
+
left: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
49
|
+
top: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
50
|
+
right: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
51
|
+
bottom: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
52
|
+
}> | null | undefined>>;
|
|
53
|
+
pageTemplate: PropTypes.Requireable<any>;
|
|
54
|
+
paperSize: PropTypes.Requireable<any>;
|
|
55
|
+
repeatHeaders: PropTypes.Requireable<boolean>;
|
|
56
|
+
scale: PropTypes.Requireable<number>;
|
|
57
|
+
proxyData: PropTypes.Requireable<any>;
|
|
58
|
+
proxyURL: PropTypes.Requireable<string>;
|
|
59
|
+
proxyTarget: PropTypes.Requireable<string>;
|
|
60
|
+
producer: PropTypes.Requireable<string>;
|
|
61
|
+
subject: PropTypes.Requireable<string>;
|
|
62
|
+
title: PropTypes.Requireable<string>;
|
|
63
|
+
allPages: PropTypes.Requireable<boolean>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
saveTreeListPDF: any;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
treeList: any;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
columns: any;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
data?: any[];
|
|
81
|
+
/**
|
|
82
|
+
* @hidden
|
|
83
|
+
*/
|
|
84
|
+
callback?: any;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
treeListInnerWrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
92
|
+
readonly state: {
|
|
93
|
+
show: boolean;
|
|
94
|
+
};
|
|
95
|
+
private readonly showLicenseWatermark;
|
|
96
|
+
private readonly licenseMessage?;
|
|
97
|
+
constructor(props: any);
|
|
98
|
+
/**
|
|
99
|
+
* @hidden
|
|
100
|
+
*/
|
|
101
|
+
componentDidUpdate(_prevProps: any, prevState: any): void;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
render(): React.JSX.Element;
|
|
106
|
+
/**
|
|
107
|
+
* Saves the content of the TreeList as a PDF file.
|
|
108
|
+
*
|
|
109
|
+
* @param data - The data that will be exported to the PDF. The data can be different from the currently displayed data in the TreeList.
|
|
110
|
+
* @param columns - The columns that will be exported to the PDF. The columns collection can be different from the currently displayed in the TreeList.
|
|
111
|
+
* @param callback - The callback that will be executed after the PDF is saved.
|
|
112
|
+
*/
|
|
113
|
+
save(data?: any[], columns?: any[], callback?: () => void): void;
|
|
114
|
+
protected getSavePDF(): typeof savePDF;
|
|
115
|
+
private getTreeList;
|
|
116
|
+
private prepareRawTreeListForExport;
|
|
117
|
+
}
|
|
@@ -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 { TreeListPDFExportProps } from './TreeListPDFExport.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function provideSaveTreeListPDF(savePDF: (domElement: HTMLElement, options?: TreeListPDFExportProps, callback?: () => void) => void): (treeListInnerWrapper: any, pdfExportOptions?: TreeListPDFExportProps, callback?: () => void) => void;
|