@progress/kendo-react-pdf 7.2.4-develop.2 → 7.2.4-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/KendoDrawingAdapter.js +8 -0
- package/KendoDrawingAdapter.mjs +65 -0
- package/PDFExport.js +8 -0
- package/PDFExport.mjs +79 -0
- package/PDFMargin.js +8 -0
- package/PDFMargin.mjs +25 -0
- package/common/dom-queries.js +8 -0
- package/common/dom-queries.mjs +31 -0
- package/common/table-query.js +8 -0
- package/common/table-query.mjs +32 -0
- package/common/utils.js +8 -0
- package/common/utils.mjs +46 -0
- package/dist/cdn/js/kendo-react-pdf.js +8 -5
- package/getPageMargin.js +8 -0
- package/getPageMargin.mjs +26 -0
- package/grid/GridPDFExport.js +8 -0
- package/grid/GridPDFExport.mjs +83 -0
- package/grid/export-element.js +8 -0
- package/grid/export-element.mjs +23 -0
- package/grid/grid-query.js +8 -0
- package/grid/grid-query.mjs +32 -0
- package/grid/provideSaveGridPDF.js +8 -0
- package/grid/provideSaveGridPDF.mjs +53 -0
- package/index.d.mts +439 -5
- package/index.d.ts +439 -14
- package/index.js +8 -5
- package/index.mjs +21 -476
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +2 -2
- package/savePDF.js +8 -0
- package/savePDF.mjs +23 -0
- package/treelist/TreeListPDFExport.js +8 -0
- package/treelist/TreeListPDFExport.mjs +84 -0
- package/treelist/export-element.js +8 -0
- package/treelist/export-element.mjs +23 -0
- package/treelist/provideSaveTreeListPDF.js +8 -0
- package/treelist/provideSaveTreeListPDF.mjs +46 -0
- package/KendoDrawingAdapter.d.ts +0 -24
- package/PDFExport.d.ts +0 -57
- package/PDFExportProps.d.ts +0 -127
- package/PDFMargin.d.ts +0 -71
- package/PageTemplateProps.d.ts +0 -17
- package/common/dom-queries.d.ts +0 -48
- package/common/table-query.d.ts +0 -26
- package/common/utils.d.ts +0 -24
- package/getPageMargin.d.ts +0 -10
- package/grid/GridPDFExport.d.ts +0 -70
- package/grid/export-element.d.ts +0 -8
- package/grid/grid-query.d.ts +0 -26
- package/grid/provideSaveGridPDF.d.ts +0 -9
- package/package-metadata.d.ts +0 -9
- package/savePDF.d.ts +0 -13
- package/treelist/TreeListPDFExport.d.ts +0 -75
- package/treelist/export-element.d.ts +0 -8
- package/treelist/provideSaveTreeListPDF.d.ts +0 -9
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { savePDF } from '../savePDF';
|
|
8
|
-
import { PDFExportProps } from '../PDFExportProps';
|
|
9
|
-
/**
|
|
10
|
-
* The props of the TreeListPDFExport component
|
|
11
|
-
* ([more information and examples in the documentation on PDF export]({% slug overview_pdfexport_treelist %})).
|
|
12
|
-
*/
|
|
13
|
-
export interface TreeListPDFExportProps extends PDFExportProps {
|
|
14
|
-
/**
|
|
15
|
-
* If set to true it will export all pages of the TreeList data. By default allPages is set to `false`.
|
|
16
|
-
*/
|
|
17
|
-
allPages?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A React component which facilitates the PDF export of the TreeList.
|
|
21
|
-
*/
|
|
22
|
-
export declare class TreeListPDFExport extends React.Component<TreeListPDFExportProps, {}> {
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
static propTypes: {
|
|
27
|
-
author: PropTypes.Requireable<string>;
|
|
28
|
-
avoidLinks: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
29
|
-
forcePageBreak: PropTypes.Requireable<string>;
|
|
30
|
-
keepTogether: PropTypes.Requireable<string>;
|
|
31
|
-
creator: PropTypes.Requireable<string>;
|
|
32
|
-
date: PropTypes.Requireable<Date>;
|
|
33
|
-
imageResolution: PropTypes.Requireable<number>;
|
|
34
|
-
fileName: PropTypes.Requireable<string>;
|
|
35
|
-
forceProxy: PropTypes.Requireable<boolean>;
|
|
36
|
-
keywords: PropTypes.Requireable<string>;
|
|
37
|
-
landscape: PropTypes.Requireable<boolean>;
|
|
38
|
-
margin: PropTypes.Requireable<NonNullable<string | number | PropTypes.InferProps<{
|
|
39
|
-
left: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
40
|
-
top: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
41
|
-
right: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
42
|
-
bottom: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
43
|
-
}> | null | undefined>>;
|
|
44
|
-
pageTemplate: PropTypes.Requireable<any>;
|
|
45
|
-
paperSize: PropTypes.Requireable<any>;
|
|
46
|
-
repeatHeaders: PropTypes.Requireable<boolean>;
|
|
47
|
-
scale: PropTypes.Requireable<number>;
|
|
48
|
-
proxyData: PropTypes.Requireable<any>;
|
|
49
|
-
proxyURL: PropTypes.Requireable<string>;
|
|
50
|
-
proxyTarget: PropTypes.Requireable<string>;
|
|
51
|
-
producer: PropTypes.Requireable<string>;
|
|
52
|
-
subject: PropTypes.Requireable<string>;
|
|
53
|
-
title: PropTypes.Requireable<string>;
|
|
54
|
-
allPages: PropTypes.Requireable<boolean>;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
saveTreeListPDF: any;
|
|
60
|
-
constructor(props: any);
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
render(): null;
|
|
65
|
-
/**
|
|
66
|
-
* Saves the content of the TreeList as a PDF file.
|
|
67
|
-
*
|
|
68
|
-
* @param data - The data that will be exported to the PDF. The data can be different from the currently displayed data in the TreeList.
|
|
69
|
-
* @param columns - The columns that will be exported to the PDF. The columns collection can be different from the currently displayed in the TreeList.
|
|
70
|
-
* @param callback - The callback that will be executed after the PDF is saved.
|
|
71
|
-
*/
|
|
72
|
-
save(data?: any[], columns?: any[], callback?: () => void): void;
|
|
73
|
-
protected getSavePDF(): typeof savePDF;
|
|
74
|
-
private getTreeList;
|
|
75
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const exportElement: (wrapper: HTMLElement) => HTMLElement;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TreeListPDFExportProps } from './TreeListPDFExport';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare function provideSaveTreeListPDF(savePDF: (domElement: HTMLElement, options?: TreeListPDFExportProps, callback?: () => void) => void): (treeList: any, pdfExportOptions?: TreeListPDFExportProps, callback?: () => void, data?: any, columns?: any) => void;
|