@progress/kendo-react-pdf 9.0.0-develop.1 → 9.0.0-develop.3
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/PDFExport.mjs +20 -16
- package/README.md +31 -30
- package/grid/GridPDFExport.js +1 -1
- package/grid/GridPDFExport.mjs +21 -11
- package/grid/provideSaveGridPDF.mjs +1 -6
- package/package-metadata.mjs +1 -1
- package/package.json +2 -2
- package/savePDF.mjs +1 -7
- package/treelist/TreeListPDFExport.mjs +12 -8
- package/treelist/provideSaveTreeListPDF.mjs +1 -6
package/PDFExport.mjs
CHANGED
|
@@ -22,9 +22,15 @@ const t = class t extends o.Component {
|
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
24
|
render() {
|
|
25
|
-
return /* @__PURE__ */ o.createElement(
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
return /* @__PURE__ */ o.createElement(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref: (r) => {
|
|
29
|
+
this.rootElForPDF = r;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
this.props.children
|
|
33
|
+
);
|
|
28
34
|
}
|
|
29
35
|
/**
|
|
30
36
|
* Saves the content as a PDF file.
|
|
@@ -32,13 +38,7 @@ const t = class t extends o.Component {
|
|
|
32
38
|
* @param callback - The callback to be executed after the PDF is saved.
|
|
33
39
|
*/
|
|
34
40
|
save(r) {
|
|
35
|
-
new g(
|
|
36
|
-
s,
|
|
37
|
-
i,
|
|
38
|
-
a,
|
|
39
|
-
this.rootElForPDF,
|
|
40
|
-
this.getOptions()
|
|
41
|
-
).savePDF(r);
|
|
41
|
+
new g(s, i, a, this.rootElForPDF, this.getOptions()).savePDF(r);
|
|
42
42
|
}
|
|
43
43
|
getOptions() {
|
|
44
44
|
return Object.assign({}, this.props, { margin: p(this.props) });
|
|
@@ -56,12 +56,16 @@ t.propTypes = {
|
|
|
56
56
|
forceProxy: e.bool,
|
|
57
57
|
keywords: e.string,
|
|
58
58
|
landscape: e.bool,
|
|
59
|
-
margin: e.oneOfType([
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
margin: e.oneOfType([
|
|
60
|
+
e.string,
|
|
61
|
+
e.number,
|
|
62
|
+
e.shape({
|
|
63
|
+
left: e.oneOfType([e.number, e.string]),
|
|
64
|
+
top: e.oneOfType([e.number, e.string]),
|
|
65
|
+
right: e.oneOfType([e.number, e.string]),
|
|
66
|
+
bottom: e.oneOfType([e.number, e.string])
|
|
67
|
+
})
|
|
68
|
+
]),
|
|
65
69
|
pageTemplate: e.any,
|
|
66
70
|
paperSize: e.any,
|
|
67
71
|
repeatHeaders: e.bool,
|
package/README.md
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
# KendoReact PDF Processing Component for React (React PDF Generator)
|
|
6
6
|
|
|
7
7
|
> **Important**
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
>
|
|
8
|
+
>
|
|
9
|
+
> - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—a commercial UI library.
|
|
10
|
+
> - You will need to install a license key when adding the package to your project. For more information, please refer to the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf).
|
|
11
|
+
> - To receive a license key, you need to either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf) or register for a [free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf). Doing so indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf).
|
|
12
|
+
> - The 30-day free trial gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
|
|
12
13
|
>
|
|
13
14
|
> [Start using KendoReact](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf) and speed up your development process!
|
|
14
15
|
|
|
@@ -18,45 +19,45 @@ The [React PDF Generator](https://www.telerik.com/kendo-react-ui/pdfprocessing),
|
|
|
18
19
|
|
|
19
20
|
Among the features which the KendoReact PDF Processing component delivers are:
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
- [Image resolution](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/embedded-images/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—By default, images get embedded at their original resolution. However, this can be changed in order to limit the resolution for better performance.
|
|
23
|
+
- [Hyperlinks](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/hyperlinks/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—You can choose if the hyperlinks should be clickable or not in the exported PDF file.
|
|
24
|
+
- [Scaling of content](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/content-scaling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—The PDF Processing enables you to export a PDF document that is bigger or smaller than its original elements.
|
|
25
|
+
- [Configuration of margins](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/setting-margin/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—The PDF Processing package delivers options for setting the margins of the output PDF files.
|
|
26
|
+
- [Repeated table headers](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/table-headers/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—The PDF Processing component enables you to render recurrent table headers.
|
|
27
|
+
- [Multi-page content](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/multi-page-content/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—The PDF Processing component provides options for generating multi-page content in PDF, preventing the page-split, and rendering page templates.
|
|
28
|
+
- [Hidden content](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/hidden-content/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—You can generate content in PDF which is otherwise not visible to the user during the PDF export itself.
|
|
29
|
+
- [Base64 Strings](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/base64string/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—You can create base64 string during the PDF export.
|
|
30
|
+
- [Styling of content](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/content-styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—You can change the appearance of the content with CSS rules that apply only to the PDF file.
|
|
31
|
+
- [Theme support](https://www.telerik.com/kendo-react-ui/components/styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)—The KendoReact PDF Processing, as well as all 100+ components in the KendoReact suite, are styled in three polished themes (Bootstrap, Material, and Default) and can be further customized to match your specific design guidelines.
|
|
31
32
|
|
|
32
33
|
## Support Options
|
|
33
34
|
|
|
34
35
|
For any issues you might encounter while working with the KendoReact PDF Processing, use any of the available support channels:
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
- Industry-leading technical support—KendoReact paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated KendoReact support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf).
|
|
38
|
+
- Product forums—The [KendoReact forums](https://www.telerik.com/forums/kendo-ui-react?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf) are part of the free support you can get from the community and from the KendoReact team.
|
|
39
|
+
- Feedback portal—The [KendoReact feedback portal](https://feedback.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf) is where you can request and vote for new features to be added.
|
|
39
40
|
|
|
40
41
|
## React PDF Generator Video Tutorial
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
- [How to Export to PDF in React with KendoReact Part 1: Methods](https://www.telerik.com/videos/how-to-export-to-pdf-in-react-methods-react-pdf-generator-part-1)
|
|
44
|
+
- [How to Export to PDF in React with KendoReact Part 2: Exporting Scenarios](https://www.telerik.com/videos/how-to-export-to-pdf-in-react-invoices-and-charts-react-pdf-generator-part-2)
|
|
44
45
|
|
|
45
46
|
## Resources
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
- [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
49
|
+
- [Get Started with the KendoReact PDF Processing](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
50
|
+
- [API Reference of the KendoReact PDF Processing](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
51
|
+
- [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
52
|
+
- [Blogs](https://www.telerik.com/blogs/tag/kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
53
|
+
- [Demos, documentation, and component reference](https://www.telerik.com/kendo-react-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
54
|
+
- [KendoReact pricing and licensing](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
55
|
+
- [Changelog](https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-pdf)
|
|
55
56
|
|
|
56
57
|
High-level component overview pages
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
- [React PDF Generator Component](https://www.telerik.com/kendo-react-ui/pdfprocessing)
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
_Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved._
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
_Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._
|
package/grid/GridPDFExport.js
CHANGED
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),e=require("prop-types"),g=require("../getPageMargin.js"),u=require("../savePDF.js"),d=require("./provideSaveGridPDF.js"),h=require("react-dom");function m(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}return t.default=n,Object.freeze(t)}const s=m(c),a=class a extends s.Component{constructor(t){super(t),this.state={show:!1},this.saveGridPDF=d.provideSaveGridPDF(this.getSavePDF()),this.gridInnerWrapperRef=s.createRef()}componentDidUpdate(t,r){this.state.show&&this.state.show!==r.show&&this.saveGridPDF(this.gridInnerWrapperRef.current,Object.assign({},this.props,{margin:g.getPageMargin(this.props)}),this.callback)}render(){return this.state.show&&h.createPortal(s.createElement("div",{style:{position:"absolute",left:"-5000px",top:"0px"}},s.createElement("div",{ref:this.gridInnerWrapperRef},this.prepareRawGridForExport(this.data))),document.body)}save(t,r){this.grid=this.getGrid(),this.columns=this.getCustomColumns(),this.data=t,this.callback=()=>{this.setState({show:!1}),r&&r()},this.setState({show:!0})}getSavePDF(){return u.savePDF}getGrid(){return s.Children.toArray(this.props.children).find(t=>t&&t.type.displayName==="KendoReactGrid")}getCustomColumns(){return s.Children.toArray(this.props.children).filter(t=>t&&t.type.displayName==="KendoReactGridColumn")}prepareRawGridForExport(t){const r=t&&{data:t,total:t.length,pageSize:t.length,skip:0},i={style:Object.assign({},this.grid.props.style,{width:"1000px"})},p=Object.assign({},r,i);if(this.columns&&this.columns.length>0){const l=this.getGridNotColumnChildren(this.grid);return s.cloneElement(this.grid,p,this.columns.concat(l))}
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),e=require("prop-types"),g=require("../getPageMargin.js"),u=require("../savePDF.js"),d=require("./provideSaveGridPDF.js"),h=require("react-dom");function m(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}return t.default=n,Object.freeze(t)}const s=m(c),a=class a extends s.Component{constructor(t){super(t),this.state={show:!1},this.saveGridPDF=d.provideSaveGridPDF(this.getSavePDF()),this.gridInnerWrapperRef=s.createRef()}componentDidUpdate(t,r){this.state.show&&this.state.show!==r.show&&this.saveGridPDF(this.gridInnerWrapperRef.current,Object.assign({},this.props,{margin:g.getPageMargin(this.props)}),this.callback)}render(){return this.state.show&&h.createPortal(s.createElement("div",{style:{position:"absolute",left:"-5000px",top:"0px"}},s.createElement("div",{ref:this.gridInnerWrapperRef},this.prepareRawGridForExport(this.data))),document.body)}save(t,r){this.grid=this.getGrid(),this.columns=this.getCustomColumns(),this.data=t,this.callback=()=>{this.setState({show:!1}),r&&r()},this.setState({show:!0})}getSavePDF(){return u.savePDF}getGrid(){return s.Children.toArray(this.props.children).find(t=>t&&t.type.displayName==="KendoReactGrid")}getCustomColumns(){return s.Children.toArray(this.props.children).filter(t=>t&&t.type.displayName==="KendoReactGridColumn")}prepareRawGridForExport(t){const r=t&&{data:t,total:t.length,pageSize:t.length,skip:0},i={style:Object.assign({},this.grid.props.style,{width:"1000px"})},p=Object.assign({},r,i);if(this.columns&&this.columns.length>0){const l=this.getGridNotColumnChildren(this.grid);return s.cloneElement(this.grid,p,this.columns.concat(l))}return s.cloneElement(this.grid,p)}getGridNotColumnChildren(t){return s.Children.toArray(t.props.children).filter(r=>r&&r.type&&r.type.displayName!=="KendoReactGridColumn")}};a.propTypes={author:e.string,avoidLinks:e.oneOfType([e.bool,e.string]),forcePageBreak:e.string,keepTogether:e.string,creator:e.string,date:e.instanceOf(Date),imageResolution:e.number,fileName:e.string,forceProxy:e.bool,keywords:e.string,landscape:e.bool,margin:e.oneOfType([e.string,e.number,e.shape({left:e.oneOfType([e.number,e.string]),top:e.oneOfType([e.number,e.string]),right:e.oneOfType([e.number,e.string]),bottom:e.oneOfType([e.number,e.string])})]),pageTemplate:e.any,paperSize:e.any,repeatHeaders:e.bool,scale:e.number,proxyData:e.any,proxyURL:e.string,proxyTarget:e.string,producer:e.string,subject:e.string,title:e.string};let o=a;exports.GridPDFExport=o;
|
package/grid/GridPDFExport.mjs
CHANGED
|
@@ -64,21 +64,27 @@ const i = class i extends s.Component {
|
|
|
64
64
|
return h;
|
|
65
65
|
}
|
|
66
66
|
getGrid() {
|
|
67
|
-
return s.Children.toArray(this.props.children).find(
|
|
67
|
+
return s.Children.toArray(this.props.children).find(
|
|
68
|
+
(t) => t && t.type.displayName === "KendoReactGrid"
|
|
69
|
+
);
|
|
68
70
|
}
|
|
69
71
|
getCustomColumns() {
|
|
70
|
-
return s.Children.toArray(this.props.children).filter(
|
|
72
|
+
return s.Children.toArray(this.props.children).filter(
|
|
73
|
+
(t) => t && t.type.displayName === "KendoReactGridColumn"
|
|
74
|
+
);
|
|
71
75
|
}
|
|
72
76
|
prepareRawGridForExport(t) {
|
|
73
77
|
const r = t && { data: t, total: t.length, pageSize: t.length, skip: 0 }, a = { style: Object.assign({}, this.grid.props.style, { width: "1000px" }) }, o = Object.assign({}, r, a);
|
|
74
78
|
if (this.columns && this.columns.length > 0) {
|
|
75
79
|
const p = this.getGridNotColumnChildren(this.grid);
|
|
76
80
|
return s.cloneElement(this.grid, o, this.columns.concat(p));
|
|
77
|
-
}
|
|
78
|
-
|
|
81
|
+
}
|
|
82
|
+
return s.cloneElement(this.grid, o);
|
|
79
83
|
}
|
|
80
84
|
getGridNotColumnChildren(t) {
|
|
81
|
-
return s.Children.toArray(t.props.children).filter(
|
|
85
|
+
return s.Children.toArray(t.props.children).filter(
|
|
86
|
+
(r) => r && r.type && r.type.displayName !== "KendoReactGridColumn"
|
|
87
|
+
);
|
|
82
88
|
}
|
|
83
89
|
};
|
|
84
90
|
i.propTypes = {
|
|
@@ -93,12 +99,16 @@ i.propTypes = {
|
|
|
93
99
|
forceProxy: e.bool,
|
|
94
100
|
keywords: e.string,
|
|
95
101
|
landscape: e.bool,
|
|
96
|
-
margin: e.oneOfType([
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
margin: e.oneOfType([
|
|
103
|
+
e.string,
|
|
104
|
+
e.number,
|
|
105
|
+
e.shape({
|
|
106
|
+
left: e.oneOfType([e.number, e.string]),
|
|
107
|
+
top: e.oneOfType([e.number, e.string]),
|
|
108
|
+
right: e.oneOfType([e.number, e.string]),
|
|
109
|
+
bottom: e.oneOfType([e.number, e.string])
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
102
112
|
pageTemplate: e.any,
|
|
103
113
|
paperSize: e.any,
|
|
104
114
|
repeatHeaders: e.bool,
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-pdf",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1729494829,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-pdf",
|
|
3
|
-
"version": "9.0.0-develop.
|
|
3
|
+
"version": "9.0.0-develop.3",
|
|
4
4
|
"description": "React PDF Processing enables you to export single- and multi-page content in PDF. KendoReact PDF Processing package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@progress/kendo-drawing": "^1.20.4",
|
|
26
26
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
27
27
|
"@progress/kendo-licensing": "^1.3.4",
|
|
28
|
-
"@progress/kendo-react-common": "9.0.0-develop.
|
|
28
|
+
"@progress/kendo-react-common": "9.0.0-develop.3",
|
|
29
29
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
30
30
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
31
31
|
},
|
package/savePDF.mjs
CHANGED
|
@@ -10,13 +10,7 @@ import { drawDOM as t, exportPDF as a } from "@progress/kendo-drawing";
|
|
|
10
10
|
import { saveAs as i } from "@progress/kendo-file-saver";
|
|
11
11
|
import m from "./KendoDrawingAdapter.mjs";
|
|
12
12
|
function D(r, e = {}, o) {
|
|
13
|
-
new m(
|
|
14
|
-
t,
|
|
15
|
-
a,
|
|
16
|
-
i,
|
|
17
|
-
r,
|
|
18
|
-
e
|
|
19
|
-
).savePDF(o);
|
|
13
|
+
new m(t, a, i, r, e).savePDF(o);
|
|
20
14
|
}
|
|
21
15
|
export {
|
|
22
16
|
D as savePDF
|
|
@@ -11,7 +11,7 @@ import e from "prop-types";
|
|
|
11
11
|
import { getPageMargin as a } from "../getPageMargin.mjs";
|
|
12
12
|
import { savePDF as p } from "../savePDF.mjs";
|
|
13
13
|
import { provideSaveTreeListPDF as h } from "./provideSaveTreeListPDF.mjs";
|
|
14
|
-
import { createPortal as
|
|
14
|
+
import { createPortal as c } from "react-dom";
|
|
15
15
|
const o = class o extends s.Component {
|
|
16
16
|
constructor(t) {
|
|
17
17
|
super(t), this.state = {
|
|
@@ -32,7 +32,7 @@ const o = class o extends s.Component {
|
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
34
|
render() {
|
|
35
|
-
return this.state.show &&
|
|
35
|
+
return this.state.show && c(
|
|
36
36
|
/* @__PURE__ */ s.createElement(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
@@ -86,12 +86,16 @@ o.propTypes = {
|
|
|
86
86
|
forceProxy: e.bool,
|
|
87
87
|
keywords: e.string,
|
|
88
88
|
landscape: e.bool,
|
|
89
|
-
margin: e.oneOfType([
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
margin: e.oneOfType([
|
|
90
|
+
e.string,
|
|
91
|
+
e.number,
|
|
92
|
+
e.shape({
|
|
93
|
+
left: e.oneOfType([e.number, e.string]),
|
|
94
|
+
top: e.oneOfType([e.number, e.string]),
|
|
95
|
+
right: e.oneOfType([e.number, e.string]),
|
|
96
|
+
bottom: e.oneOfType([e.number, e.string])
|
|
97
|
+
})
|
|
98
|
+
]),
|
|
95
99
|
pageTemplate: e.any,
|
|
96
100
|
paperSize: e.any,
|
|
97
101
|
repeatHeaders: e.bool,
|