@progress/kendo-vue-pdf 8.1.1 → 8.1.2-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/NOTICE.txt +117 -53
- package/dist/cdn/js/kendo-vue-pdf.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +3 -3
package/NOTICE.txt
CHANGED
|
@@ -1,67 +1,131 @@
|
|
|
1
|
-
Progress Kendo UI for Vue 6
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
Progress Kendo UI for Vue 2026* Updated April 2026
|
|
3
|
+
|
|
4
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
5
|
+
NOTICES REPORT
|
|
6
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
Portions of the Products include certain open source and commercial third-party components listed below ("Third-Party
|
|
9
|
+
Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include the
|
|
10
|
+
following notices and additional licensing terms as a condition of PSC's use of such Third-Party Components. You
|
|
11
|
+
acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-Party
|
|
12
|
+
Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party
|
|
13
|
+
Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Progress
|
|
14
|
+
Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for these
|
|
15
|
+
technologies, such terms and conditions are offered by PSC alone and not by any other party.
|
|
16
|
+
|
|
17
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
18
|
+
Report Content
|
|
19
|
+
- General License Information
|
|
20
|
+
- Components
|
|
21
|
+
- License Data and Text
|
|
22
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
23
|
+
|
|
24
|
+
General License Information:
|
|
25
|
+
|
|
26
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
27
|
+
|
|
28
|
+
GENERATIVE ARTIFICIAL INTELLIGENCE INTEGRATION
|
|
29
|
+
If the Software documentation specifies integration with some form of generative artificial intelligence (AI), then the Software
|
|
30
|
+
will include a configuration to connect to AI. You acknowledge that a separate license or subscription access to AI governed
|
|
31
|
+
by the terms and conditions of a license agreement from AI licensor will be required for use and access of AI capabilities
|
|
32
|
+
integrated with the Software. You will be responsible to comply with the terms of such license agreement for a valid use of
|
|
33
|
+
AI. You acknowledge and accept that Progress is not a party to the license agreement between You and AI licensor for AI
|
|
34
|
+
use, and as a result Progress does not have any control over AI and its availability, and Progress disclaims any and all
|
|
35
|
+
liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI integrated with the Software.
|
|
36
|
+
|
|
37
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
Components:
|
|
40
|
+
|
|
41
|
+
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
42
|
+
| Component | Origin | License |
|
|
43
|
+
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
44
|
+
| axios 1.13.6 | https://github.com/axios/axios | MIT License |
|
|
45
|
+
| @progress/jszip-esm 1.0.4 | https://github.com/telerik/jszip-esm# | MIT License |
|
|
46
|
+
| | readme | |
|
|
47
|
+
| @progress/pako-esm 1.0.1 | https://github.com/telerik/pako-esm#r | MIT License |
|
|
48
|
+
| | eadme | |
|
|
49
|
+
| prosemirror-commands 1.7.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
50
|
+
| | irror-commands#readme | |
|
|
51
|
+
| prosemirror-dropcursor 1.8.2 | https://github.com/prosemirror/prosem | MIT License |
|
|
52
|
+
| | irror-dropcursor#readme | |
|
|
53
|
+
| prosemirror-gapcursor 1.4.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
54
|
+
| | irror-gapcursor#readme | |
|
|
55
|
+
| prosemirror-history 1.5.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
56
|
+
| | irror-history#readme | |
|
|
57
|
+
| prosemirror-inputrules 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
58
|
+
| | irror-inputrules#readme | |
|
|
59
|
+
| prosemirror-keymap 1.2.3 | https://github.com/prosemirror/prosem | MIT License |
|
|
60
|
+
| | irror-keymap#readme | |
|
|
61
|
+
| prosemirror-model 1.25.4 | https://github.com/prosemirror/prosem | MIT License |
|
|
62
|
+
| | irror-model#readme | |
|
|
63
|
+
| prosemirror-schema-list 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
64
|
+
| | irror-schema-list#readme | |
|
|
65
|
+
| prosemirror-state 1.4.4 | https://github.com/prosemirror/prosem | MIT License |
|
|
66
|
+
| | irror-state#readme | |
|
|
67
|
+
| prosemirror-tables 1.8.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
68
|
+
| | irror-tables#readme | |
|
|
69
|
+
| prosemirror-transform 1.10.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
70
|
+
| | irror-transform#readme | |
|
|
71
|
+
| prosemirror-view 1.41.6 | https://github.com/prosemirror/prosem | MIT License |
|
|
72
|
+
| | irror-view#readme | |
|
|
73
|
+
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
74
|
+
|
|
75
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
76
|
+
License Data and Text:
|
|
77
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
78
|
+
|
|
79
|
+
MIT License
|
|
80
|
+
(@progress/pako-esm 1.0.1)
|
|
4
81
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-------------------------------------------------------------------------
|
|
8
|
-
SUMMARY OF COMPONENTS:
|
|
82
|
+
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
9
83
|
|
|
10
|
-
|
|
84
|
+
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
11
85
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
ProseMirror | prosemirror-dropcursor | 1.8.1 - Open Source | MIT-style License
|
|
19
|
-
ProseMirror | prosemirror-gapcursor | 1.3.2 - Open Source | MIT-style License
|
|
20
|
-
ProseMirror | prosemirror-history | 1.4.1 - Open Source | MIT-style License
|
|
21
|
-
ProseMirror | prosemirror-keymap | 1.2.2 - Open Source | MIT-style License
|
|
22
|
-
ProseMirror | prosemirror-model | 1.23.0 - Open Source | MIT-style License
|
|
23
|
-
ProseMirror | prosemirror-schema-list | 1.4.1 - Open Source | MIT-style License
|
|
24
|
-
ProseMirror | prosemirror-state | 1.4.3 - Open Source | MIT-style License
|
|
25
|
-
ProseMirror | prosemirror-tables | 1.6.1 - Open Source | MIT-style License
|
|
26
|
-
ProseMirror | prosemirror-transform | 1.10.2 - Open Source | MIT-style License
|
|
27
|
-
ProseMirror | prosemirror-view | 1.35.0 - Open Source | MIT-style License
|
|
28
|
-
-------------------------------------------------------------------------
|
|
86
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
87
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
88
|
+
in the Software without restriction, including without limitation the rights
|
|
89
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
90
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
91
|
+
furnished to do so, subject to the following conditions:
|
|
29
92
|
|
|
30
|
-
|
|
93
|
+
The above copyright notice and this permission notice shall be included in
|
|
94
|
+
all copies or substantial portions of the Software.
|
|
31
95
|
|
|
32
|
-
|
|
96
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
101
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
102
|
+
THE SOFTWARE
|
|
33
103
|
|
|
34
|
-
|
|
35
|
-
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
36
|
-
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, Ant�nio Afonso
|
|
37
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
38
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
39
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
40
|
-
|
|
41
|
-
(b) Progress Kendo UI for Vue 6 incorporates pako-esm v1.0. Such technology is subject to the following terms and conditions:
|
|
42
|
-
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
43
|
-
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
44
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
45
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
46
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
104
|
+
---
|
|
47
105
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
51
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
52
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
106
|
+
MIT License
|
|
107
|
+
(@progress/jszip-esm 1.0.4, axios 1.13.6, prosemirror-commands 1.7.1, prosemirror-dropcursor 1.8.2, prosemirror-gapcursor 1.4.0, prosemirror-history 1.5.0, prosemirror-inputrules 1.5.1, prosemirror-keymap 1.2.3, prosemirror-model 1.25.4, prosemirror-schema-list 1.5.1, prosemirror-state 1.4.4, prosemirror-tables 1.8.5, prosemirror-transform 1.10.5, prosemirror-view 1.41.6)
|
|
53
108
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
57
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
109
|
+
The MIT License
|
|
110
|
+
===============
|
|
58
111
|
|
|
59
|
-
|
|
112
|
+
Copyright (c) <year> <copyright holders>
|
|
60
113
|
|
|
61
|
-
|
|
114
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
115
|
+
this software and associated documentation files (the "Software"), to deal in the
|
|
116
|
+
Software without restriction, including without limitation the rights to use,
|
|
117
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
|
118
|
+
Software, and to permit persons to whom the Software is furnished to do so,
|
|
119
|
+
subject to the following conditions:
|
|
62
120
|
|
|
63
|
-
|
|
121
|
+
The above copyright notice and this permission notice shall be included in all
|
|
122
|
+
copies or substantial portions of the Software.
|
|
64
123
|
|
|
65
|
-
|
|
124
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
126
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
127
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
128
|
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
129
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
66
130
|
|
|
67
|
-
|
|
131
|
+
---
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-drawing","@progress/kendo-file-saver","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVuePdf={},e.Vue,e.KendoDrawing,e.KendoFileSaver,e.KendoVueCommon)}(this,function(e,t,o,n,r){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}const s=i(t),a=s.h,l=s.createApp;let d=class{constructor(e,t,o,n,i={}){this.drawDOM=e,this.exportPDF=t,this.saveAs=o,this.domElement=n,this.options=i,this.convertPageTemplateToHtml=e=>{if(a&&l&&r.canUseDOM){const t=this,o=document.createElement("div");o.setAttribute("style","position:absolute; left: -5000px; top: 0px;");const n=document.createElement("div");let r;return o.appendChild(n),document.body.appendChild(o),r=l({render:function(){return a(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick(function(){document.body.removeChild(o),r.unmount()})}}),r.mount(n),n.outerHTML}{const t=s.extend?s:s.default,o=new(t.extend.call(t,this.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return o.$mount(),o.$nextTick(function(){o.$destroy()}),o.$el.outerHTML}}}savePDF(e){const t=this.drawDOM(this.domElement,this.getDrawOptions()).then(e=>this.exportPDF(e,this.getPDFOptions())).then(e=>this.saveAs(e,this.options.fileName||"export.pdf",this.getSaveOptions()));e&&t.then(e,e)}getDrawOptions(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}}getPDFOptions(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}}getSaveOptions(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}}};const p={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1620290455,version:"8.1.1",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"},c=t.defineComponent({name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save(e){new d(o.drawDOM,o.exportPDF,n.saveAs,this.$el,this.$props).savePDF(e)}},created:function(){r.validatePackage(p)},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}});function u(e,t={},r){new d(o.drawDOM,o.exportPDF,n.saveAs,e,t).savePDF(r)}const h={},g=e=>String(e).trim().split(" "),m=e=>t=>((e,t)=>{const o=g(t);return!!g(e.className).find(e=>o.indexOf(e)>=0)})(t,e),f=e=>(h[e]||(h[e]=t=>String(t.nodeName).toLowerCase()===e.toLowerCase()),h[e]),S=(e,t,o=!0)=>{if(e){if(o&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){const o=S(e,t);if(o)return o}e=e.nextSibling}}},y="k-grid-header",v="k-grid-footer",b=f("TABLE"),x=e=>e?"locked":"wrap";class k{constructor(e){this.element=e,this.list=S(e,m("k-grid-container"))}content(e){return S(this.list,m("k-grid-content"+(e?"-locked":"")))}header(e){return this.headerWrap=this.headerWrap||S(this.element,m(y)),S(this.headerWrap,m(`${y}-${x(e)}`))}footer(e){return this.footerWrap=this.footerWrap||S(this.element,m(v)),S(this.footerWrap,m(`${v}-${x(e)}`))}table(){return S(this.element,b)}}const D="k-first",O=(e,t)=>{const o=t.length;for(let n=0;n<o;n++)e.appendChild(t[n].cloneNode(!0))},$=e=>{const t=document.createElement("div");return t.className="k-grid k-grid-md",t.appendChild(e),t},w=e=>{const t=e.length,o=e[0].cloneNode(!0),n=o.rows.length;if(t>1)for(let r=0;r<n;r++)for(let n=1;n<t;n++)O(o.rows[r],e[n].rows[r].cells);return o},P=(e,t,o,n)=>{const r=document.createElement("table"),i=e[0].cloneNode(!0);for(let t=1;t<e.length;t++)O(i,e[t].querySelectorAll("col"));const s=w(t),a=w(o);if(s.className="k-grid-header",((e,t)=>{if(t.length>1&&e.rows.length>1)for(let o=1;o<e.rows.length;o++){const n=t[0].rows[o].cells.length,r=e.rows[o].cells[n];-1===String(r.className).indexOf(D)&&(r.className+=` ${D}`)}})(s,t),r.appendChild(i),r.appendChild(s),r.appendChild(a),n.length){const e=w(n);e.className="k-grid-footer",r.appendChild(e)}return $(r)},C=e=>{const t=new k(e),o=t.content();let n;if(o){const e=[o.querySelector("colgroup")],r=[t.header().querySelector("thead")],i=[o.querySelector("tbody")],s=t.footer(),a=s?[s.querySelector("tfoot")]:[];n=P(e,r,i,a)}else n=$(t.table().cloneNode(!0));return n};function N(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let l,d,p,c;function u(){if(!r.canUseDOM)return;l=document.createElement("div");const e={position:"absolute",left:"-5000px",top:"0px"};Object.assign(l.style,e),d=document.createElement("div"),l.appendChild(d),document.body.appendChild(l);const n=s&&{dataItems:s,total:s.length,pageSize:s.length,skip:0};if(a){const e={render:function(){return t.h(o.type,{...o.props,...n},o.children)},store:o.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),h.call(this)}};c=t.createApp(e),c.mount(d)}else{const e=Object.getPrototypeOf(o).constructor;c=new e({propsData:Object.assign({},o.$props,n),store:o.$store,mounted:()=>{c.$el.style&&(c.$el.style.width="1000px"),h.call(c)}}),c.$slots=o.$slots,c.$scopedSlots=o.$scopedSlots,c.$mount(d)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(l),document.body.removeChild(p),l=p=void 0,i&&i()}function m(){p=document.createElement("div"),p.className="k-grid-pdf-export-element";const e=!this.$el||3!==this.$el.nodeType&&8!==this.$el.nodeType?this.$el:this.$el.nextElementSibling,t=C(e);return p.appendChild(t),document.body.appendChild(p),t}u()}(e,o,n,i,s,a)}const T=t.defineComponent({name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created(){this.saveGridPDF=N(this.getSavePDF())},methods:{save(e,t){const o=r.getDefaultSlots(this).filter(e=>{var t,o,n;return e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&-1!==(null==(t=e.componentOptions.tag)?void 0:t.toLowerCase().indexOf("grid"))||-1!==(null==(n=null==(o=e.type)?void 0:o.name)?void 0:n.toLowerCase().indexOf("grid"))});o.length&&(this.gridComponent=o[0],this.saveGridPDF(this.gridComponent,this.$props,t,e,!0))},getSavePDF:()=>u},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}}),j="k-grid-header",L="k-grid-footer",E=f("TABLE");class F{constructor(e){this.element=e,this.list=S(e,m("k-grid"))}content(){return S(this.list,m("k-grid"))}header(){return this.headerWrap=this.headerWrap||S(this.element,m(j)),S(this.headerWrap,m(`${j}`))}footer(){return this.footerWrap=this.footerWrap||S(this.element,m(L)),S(this.footerWrap,m(`${L}`))}table(){return S(this.element,E)}}const B=e=>{const t=new F(e),o=t.content();let n,r=t.header();if(r.children.length>1&&r.removeChild(r.children[1]),r.children[0].childNodes.forEach(function(e){if(e.style)return e.style.top=0}),o){const e=[o.querySelector("colgroup")],i=[r],s=[o.querySelector("tbody")],a=t.footer(),l=a?[a.querySelector("tfoot")]:[];n=P(e,i,s,l)}else n=$(t.table().cloneNode(!0));return n};function U(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let l,d,p,c;function u(){if(!r.canUseDOM)return;l=document.createElement("div"),l.setAttribute("style","position:absolute; left: -5000px; top: 0px;"),d=document.createElement("div"),l.appendChild(d),document.body.appendChild(l);const e=s&&{dataItems:s,total:s.length,pageSize:s.length,skip:0};if(a){const n={render:function(){return t.h(o.type,{...o.props,...e},o.children)},store:o.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),h.call(this)}};c=t.createApp(n),c.mount(d)}else{const t=Object.getPrototypeOf(o).constructor;c=new t({propsData:Object.assign({},o.$props,e),store:o.$store,mounted:()=>{c.$el.style&&(c.$el.style.width="1000px"),h.call(c)}}),c.$slots=o.$slots,c.$scopedSlots=o.$scopedSlots,c.$mount(d)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(l),document.body.removeChild(p),l=p=void 0,i&&i()}function m(){p=document.createElement("div"),p.className="k-treelist-pdf-export-element";const e=!this.$el||3!==this.$el.nodeType&&8!==this.$el.nodeType?this.$el:this.$el.nextElementSibling,t=B(e);return p.appendChild(t),document.body.appendChild(p),t}u()}(e,o,n,i,s,a)}const q=t.defineComponent({name:"treelist-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created(){this.saveTreeListPDF=U(this.getSavePDF())},methods:{save(e,t){const o=r.getDefaultSlots(this).filter(e=>{var t,o,n;return e.tag&&-1!==e.tag.toLowerCase().indexOf("treelist")||e.componentOptions&&-1!==(null==(t=e.componentOptions.tag)?void 0:t.toLowerCase().indexOf("treelist"))||-1!==(null==(n=null==(o=e.type)?void 0:o.name)?void 0:n.toLowerCase().indexOf("treelist"))});o.length&&(this.treeListComponent=o[0],this.saveTreeListPDF(this.treeListComponent,this.$props,t,e,!0))},getSavePDF:()=>u},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}});e.GridPdfExport=T,e.PDFExport=c,e.TreeListPDFExport=q,e.savePDF=u});
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-drawing","@progress/kendo-file-saver","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVuePdf={},e.Vue,e.KendoDrawing,e.KendoFileSaver,e.KendoVueCommon)}(this,function(e,t,o,n,r){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}const s=i(t),a=s.h,l=s.createApp;let d=class{constructor(e,t,o,n,i={}){this.drawDOM=e,this.exportPDF=t,this.saveAs=o,this.domElement=n,this.options=i,this.convertPageTemplateToHtml=e=>{if(a&&l&&r.canUseDOM){const t=this,o=document.createElement("div");o.setAttribute("style","position:absolute; left: -5000px; top: 0px;");const n=document.createElement("div");let r;return o.appendChild(n),document.body.appendChild(o),r=l({render:function(){return a(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick(function(){document.body.removeChild(o),r.unmount()})}}),r.mount(n),n.outerHTML}{const t=s.extend?s:s.default,o=new(t.extend.call(t,this.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return o.$mount(),o.$nextTick(function(){o.$destroy()}),o.$el.outerHTML}}}savePDF(e){const t=this.drawDOM(this.domElement,this.getDrawOptions()).then(e=>this.exportPDF(e,this.getPDFOptions())).then(e=>this.saveAs(e,this.options.fileName||"export.pdf",this.getSaveOptions()));e&&t.then(e,e)}getDrawOptions(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}}getPDFOptions(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}}getSaveOptions(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}}};const p={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1620290455,version:"8.1.2-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"},c=t.defineComponent({name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save(e){new d(o.drawDOM,o.exportPDF,n.saveAs,this.$el,this.$props).savePDF(e)}},created:function(){r.validatePackage(p)},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}});function u(e,t={},r){new d(o.drawDOM,o.exportPDF,n.saveAs,e,t).savePDF(r)}const h={},g=e=>String(e).trim().split(" "),m=e=>t=>((e,t)=>{const o=g(t);return!!g(e.className).find(e=>o.indexOf(e)>=0)})(t,e),f=e=>(h[e]||(h[e]=t=>String(t.nodeName).toLowerCase()===e.toLowerCase()),h[e]),S=(e,t,o=!0)=>{if(e){if(o&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){const o=S(e,t);if(o)return o}e=e.nextSibling}}},y="k-grid-header",v="k-grid-footer",b=f("TABLE"),x=e=>e?"locked":"wrap";class k{constructor(e){this.element=e,this.list=S(e,m("k-grid-container"))}content(e){return S(this.list,m("k-grid-content"+(e?"-locked":"")))}header(e){return this.headerWrap=this.headerWrap||S(this.element,m(y)),S(this.headerWrap,m(`${y}-${x(e)}`))}footer(e){return this.footerWrap=this.footerWrap||S(this.element,m(v)),S(this.footerWrap,m(`${v}-${x(e)}`))}table(){return S(this.element,b)}}const D="k-first",O=(e,t)=>{const o=t.length;for(let n=0;n<o;n++)e.appendChild(t[n].cloneNode(!0))},$=e=>{const t=document.createElement("div");return t.className="k-grid k-grid-md",t.appendChild(e),t},w=e=>{const t=e.length,o=e[0].cloneNode(!0),n=o.rows.length;if(t>1)for(let r=0;r<n;r++)for(let n=1;n<t;n++)O(o.rows[r],e[n].rows[r].cells);return o},P=(e,t,o,n)=>{const r=document.createElement("table"),i=e[0].cloneNode(!0);for(let t=1;t<e.length;t++)O(i,e[t].querySelectorAll("col"));const s=w(t),a=w(o);if(s.className="k-grid-header",((e,t)=>{if(t.length>1&&e.rows.length>1)for(let o=1;o<e.rows.length;o++){const n=t[0].rows[o].cells.length,r=e.rows[o].cells[n];-1===String(r.className).indexOf(D)&&(r.className+=` ${D}`)}})(s,t),r.appendChild(i),r.appendChild(s),r.appendChild(a),n.length){const e=w(n);e.className="k-grid-footer",r.appendChild(e)}return $(r)},C=e=>{const t=new k(e),o=t.content();let n;if(o){const e=[o.querySelector("colgroup")],r=[t.header().querySelector("thead")],i=[o.querySelector("tbody")],s=t.footer(),a=s?[s.querySelector("tfoot")]:[];n=P(e,r,i,a)}else n=$(t.table().cloneNode(!0));return n};function N(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let l,d,p,c;function u(){if(!r.canUseDOM)return;l=document.createElement("div");const e={position:"absolute",left:"-5000px",top:"0px"};Object.assign(l.style,e),d=document.createElement("div"),l.appendChild(d),document.body.appendChild(l);const n=s&&{dataItems:s,total:s.length,pageSize:s.length,skip:0};if(a){const e={render:function(){return t.h(o.type,{...o.props,...n},o.children)},store:o.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),h.call(this)}};c=t.createApp(e),c.mount(d)}else{const e=Object.getPrototypeOf(o).constructor;c=new e({propsData:Object.assign({},o.$props,n),store:o.$store,mounted:()=>{c.$el.style&&(c.$el.style.width="1000px"),h.call(c)}}),c.$slots=o.$slots,c.$scopedSlots=o.$scopedSlots,c.$mount(d)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(l),document.body.removeChild(p),l=p=void 0,i&&i()}function m(){p=document.createElement("div"),p.className="k-grid-pdf-export-element";const e=!this.$el||3!==this.$el.nodeType&&8!==this.$el.nodeType?this.$el:this.$el.nextElementSibling,t=C(e);return p.appendChild(t),document.body.appendChild(p),t}u()}(e,o,n,i,s,a)}const T=t.defineComponent({name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created(){this.saveGridPDF=N(this.getSavePDF())},methods:{save(e,t){const o=r.getDefaultSlots(this).filter(e=>{var t,o,n;return e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&-1!==(null==(t=e.componentOptions.tag)?void 0:t.toLowerCase().indexOf("grid"))||-1!==(null==(n=null==(o=e.type)?void 0:o.name)?void 0:n.toLowerCase().indexOf("grid"))});o.length&&(this.gridComponent=o[0],this.saveGridPDF(this.gridComponent,this.$props,t,e,!0))},getSavePDF:()=>u},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}}),j="k-grid-header",L="k-grid-footer",E=f("TABLE");class F{constructor(e){this.element=e,this.list=S(e,m("k-grid"))}content(){return S(this.list,m("k-grid"))}header(){return this.headerWrap=this.headerWrap||S(this.element,m(j)),S(this.headerWrap,m(`${j}`))}footer(){return this.footerWrap=this.footerWrap||S(this.element,m(L)),S(this.footerWrap,m(`${L}`))}table(){return S(this.element,E)}}const B=e=>{const t=new F(e),o=t.content();let n,r=t.header();if(r.children.length>1&&r.removeChild(r.children[1]),r.children[0].childNodes.forEach(function(e){if(e.style)return e.style.top=0}),o){const e=[o.querySelector("colgroup")],i=[r],s=[o.querySelector("tbody")],a=t.footer(),l=a?[a.querySelector("tfoot")]:[];n=P(e,i,s,l)}else n=$(t.table().cloneNode(!0));return n};function U(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let l,d,p,c;function u(){if(!r.canUseDOM)return;l=document.createElement("div"),l.setAttribute("style","position:absolute; left: -5000px; top: 0px;"),d=document.createElement("div"),l.appendChild(d),document.body.appendChild(l);const e=s&&{dataItems:s,total:s.length,pageSize:s.length,skip:0};if(a){const n={render:function(){return t.h(o.type,{...o.props,...e},o.children)},store:o.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),h.call(this)}};c=t.createApp(n),c.mount(d)}else{const t=Object.getPrototypeOf(o).constructor;c=new t({propsData:Object.assign({},o.$props,e),store:o.$store,mounted:()=>{c.$el.style&&(c.$el.style.width="1000px"),h.call(c)}}),c.$slots=o.$slots,c.$scopedSlots=o.$scopedSlots,c.$mount(d)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(l),document.body.removeChild(p),l=p=void 0,i&&i()}function m(){p=document.createElement("div"),p.className="k-treelist-pdf-export-element";const e=!this.$el||3!==this.$el.nodeType&&8!==this.$el.nodeType?this.$el:this.$el.nextElementSibling,t=B(e);return p.appendChild(t),document.body.appendChild(p),t}u()}(e,o,n,i,s,a)}const q=t.defineComponent({name:"treelist-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created(){this.saveTreeListPDF=U(this.getSavePDF())},methods:{save(e,t){const o=r.getDefaultSlots(this).filter(e=>{var t,o,n;return e.tag&&-1!==e.tag.toLowerCase().indexOf("treelist")||e.componentOptions&&-1!==(null==(t=e.componentOptions.tag)?void 0:t.toLowerCase().indexOf("treelist"))||-1!==(null==(n=null==(o=e.type)?void 0:o.name)?void 0:n.toLowerCase().indexOf("treelist"))});o.length&&(this.treeListComponent=o[0],this.saveTreeListPDF(this.treeListComponent,this.$props,t,e,!0))},getSavePDF:()=>u},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}});e.GridPdfExport=T,e.PDFExport=c,e.TreeListPDFExport=q,e.savePDF=u});
|
package/package-metadata.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 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:
|
|
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: 1776342520,version:"8.1.2-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;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "8.1.
|
|
13
|
+
publishDate: 1776342520,
|
|
14
|
+
version: "8.1.2-develop.2",
|
|
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.1.
|
|
3
|
+
"version": "8.1.2-develop.2",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@progress/kendo-drawing": "^1.21.1",
|
|
28
28
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
29
29
|
"@progress/kendo-licensing": "^1.7.2",
|
|
30
|
-
"@progress/kendo-vue-common": "8.1.
|
|
30
|
+
"@progress/kendo-vue-common": "8.1.2-develop.2",
|
|
31
31
|
"vue": "^3.0.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"package": {
|
|
48
48
|
"productName": "Kendo UI for Vue",
|
|
49
49
|
"productCode": "KENDOUIVUE",
|
|
50
|
-
"publishDate":
|
|
50
|
+
"publishDate": 1776342520,
|
|
51
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"
|
|
52
52
|
}
|
|
53
53
|
},
|