@progress/kendo-vue-pdf 7.0.3-develop.1 → 7.1.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/dist/cdn/js/kendo-vue-pdf.js +1 -1
- package/grid/GridPDFExport.js +1 -1
- package/grid/GridPDFExport.mjs +16 -13
- package/grid/provideSaveGridPDF.js +1 -1
- package/grid/provideSaveGridPDF.mjs +24 -24
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +3 -3
- package/treelist/TreeListPDFExport.js +1 -1
- package/treelist/TreeListPDFExport.mjs +16 -13
- package/treelist/provideSaveTreeListPDF.js +1 -1
- package/treelist/provideSaveTreeListPDF.mjs +19 -19
|
@@ -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,p=s.createApp;class l{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&&p&&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=p({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 d={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1620290455,version:"7.0.3-develop.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 l(o.drawDOM,o.exportPDF,n.saveAs,this.$el,this.$props).savePDF(e)}},created:function(){r.validatePackage(d)},render(){const e=r.getDefaultSlots(this);return t.createVNode("div",null,[e])}});function u(e,t={},r){new l(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]),y=(e,t,o=!0)=>{if(e){if(o&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){const o=y(e,t);if(o)return o}e=e.nextSibling}}},S="k-grid-header",v="k-grid-footer",b=f("TABLE"),x=e=>e?"locked":"wrap";let k=class{constructor(e){this.element=e,this.list=y(e,m("k-grid-container"))}content(e){return y(this.list,m("k-grid-content"+(e?"-locked":"")))}header(e){return this.headerWrap=this.headerWrap||y(this.element,m(S)),y(this.headerWrap,m(`${S}-${x(e)}`))}footer(e){return this.footerWrap=this.footerWrap||y(this.element,m(v)),y(this.footerWrap,m(`${v}-${x(e)}`))}table(){return y(this.element,b)}};const O="k-first",D=(e,t)=>{const o=t.length;for(let n=0;n<o;n++)e.appendChild(t[n].cloneNode(!0))},w=e=>{const t=document.createElement("div");return t.className="k-grid k-grid-md",t.appendChild(e),t},P=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++)D(o.rows[r],e[n].rows[r].cells);return o},$=(e,t,o,n)=>{const r=document.createElement("table"),i=e[0].cloneNode(!0);for(let t=1;t<e.length;t++)D(i,e[t].querySelectorAll("col"));const s=P(t),a=P(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(O)&&(r.className+=` ${O}`)}})(s,t),r.appendChild(i),r.appendChild(s),r.appendChild(a),n.length){const e=P(n);e.className="k-grid-footer",r.appendChild(e)}return w(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=$(e,r,i,a)}else n=w(t.table().cloneNode(!0));return n};function N(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let p,l,d,c;function u(){if(!r.canUseDOM)return;p=document.createElement("div");const e={position:"absolute",left:"-5000px",top:"0px"};Object.assign(p.style,e),l=document.createElement("div"),p.appendChild(l),document.body.appendChild(p);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(l)}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(l)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(p),document.body.removeChild(d),p=d=void 0,i&&i()}function m(){d=document.createElement("div"),d.className="k-grid-pdf-export-element";const e=C(this.$el);return d.appendChild(e),document.body.appendChild(d),e}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=>e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("grid")||e.type&&e.type.name&&-1!==e.type.name.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",F=f("TABLE");class E{constructor(e){this.element=e,this.list=y(e,m("k-grid"))}content(){return y(this.list,m("k-grid"))}header(){return this.headerWrap=this.headerWrap||y(this.element,m(j)),y(this.headerWrap,m(`${j}`))}footer(){return this.footerWrap=this.footerWrap||y(this.element,m(L)),y(this.footerWrap,m(`${L}`))}table(){return y(this.element,F)}}const B=e=>{const t=new E(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(),p=a?[a.querySelector("tfoot")]:[];n=$(e,i,s,p)}else n=w(t.table().cloneNode(!0));return n};function U(e){return(o,n={},i,s,a)=>function(e,o,n={},i,s,a){let p,l,d,c;function u(){if(!r.canUseDOM)return;p=document.createElement("div"),p.setAttribute("style","position:absolute; left: -5000px; top: 0px;"),l=document.createElement("div"),p.appendChild(l),document.body.appendChild(p);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(l)}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(l)}}function h(){e(m.call(this),n,g)}function g(){c.unmount?c.unmount():c.$destroy(),document.body.removeChild(p),document.body.removeChild(d),p=d=void 0,i&&i()}function m(){d=document.createElement("div"),d.className="k-treelist-pdf-export-element";const e=B(this.$el);return d.appendChild(e),document.body.appendChild(d),e}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=>e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("treelist")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("treelist")||e.type&&e.type.name&&-1!==e.type.name.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:"7.1.0-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/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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),d=require("../savePDF.js"),p=require("./provideSaveGridPDF.js"),s=require("@progress/kendo-vue-common"),S=a.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=p.provideSaveGridPDF(this.getSavePDF())},methods:{save(t,g){const r=s.getDefaultSlots(this).filter(e=>{var o,n,i;return e.tag&&e.tag.toLowerCase().indexOf("grid")!==-1||e.componentOptions&&((o=e.componentOptions.tag)==null?void 0:o.toLowerCase().indexOf("grid"))!==-1||((i=(n=e.type)==null?void 0:n.name)==null?void 0:i.toLowerCase().indexOf("grid"))!==-1});r.length&&(this.gridComponent=r[0],this.saveGridPDF(this.gridComponent,this.$props,g,t,!0))},getSavePDF(){return d.savePDF}},render(){const t=s.getDefaultSlots(this);return a.createVNode("div",null,[t])}});exports.GridPdfExport=S;
|
package/grid/GridPDFExport.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { savePDF as
|
|
10
|
-
import { provideSaveGridPDF as
|
|
11
|
-
import { getDefaultSlots as
|
|
12
|
-
const
|
|
8
|
+
import { defineComponent as p, createVNode as s } from "vue";
|
|
9
|
+
import { savePDF as d } from "../savePDF.mjs";
|
|
10
|
+
import { provideSaveGridPDF as S } from "./provideSaveGridPDF.mjs";
|
|
11
|
+
import { getDefaultSlots as a } from "@progress/kendo-vue-common";
|
|
12
|
+
const v = /* @__PURE__ */ p({
|
|
13
13
|
name: "grid-pdf-export",
|
|
14
14
|
props: {
|
|
15
15
|
author: String,
|
|
@@ -36,22 +36,25 @@ const l = /* @__PURE__ */ i({
|
|
|
36
36
|
title: String
|
|
37
37
|
},
|
|
38
38
|
created() {
|
|
39
|
-
this.saveGridPDF =
|
|
39
|
+
this.saveGridPDF = S(this.getSavePDF());
|
|
40
40
|
},
|
|
41
41
|
methods: {
|
|
42
|
-
save(t,
|
|
43
|
-
const r =
|
|
44
|
-
|
|
42
|
+
save(t, g) {
|
|
43
|
+
const r = a(this).filter((e) => {
|
|
44
|
+
var o, i, n;
|
|
45
|
+
return e.tag && e.tag.toLowerCase().indexOf("grid") !== -1 || e.componentOptions && ((o = e.componentOptions.tag) == null ? void 0 : o.toLowerCase().indexOf("grid")) !== -1 || ((n = (i = e.type) == null ? void 0 : i.name) == null ? void 0 : n.toLowerCase().indexOf("grid")) !== -1;
|
|
46
|
+
});
|
|
47
|
+
r.length && (this.gridComponent = r[0], this.saveGridPDF(this.gridComponent, this.$props, g, t, !0));
|
|
45
48
|
},
|
|
46
49
|
getSavePDF() {
|
|
47
|
-
return
|
|
50
|
+
return d;
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
render() {
|
|
51
|
-
const t =
|
|
52
|
-
return
|
|
54
|
+
const t = a(this);
|
|
55
|
+
return s("div", null, [t]);
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
58
|
export {
|
|
56
|
-
|
|
59
|
+
v as GridPdfExport
|
|
57
60
|
};
|
|
@@ -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 v=require("@progress/kendo-vue-common"),b=require("./export-element.js"),f=require("vue");function C(d){return(t,c={},
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@progress/kendo-vue-common"),b=require("./export-element.js"),f=require("vue");function C(d){return(t,c={},l,n,p)=>x(d,t,c,l,n,p)}function x(d,t,c={},l,n,p){let o,i,r,e;h();function h(){if(!v.canUseDOM)return;o=document.createElement("div");const u={position:"absolute",left:"-5000px",top:"0px"};Object.assign(o.style,u),i=document.createElement("div"),o.appendChild(i),document.body.appendChild(o);const s=n&&{dataItems:n,total:n.length,pageSize:n.length,skip:0};if(p){const a={render:function(){return f.h(t.type,{...t.props,...s},t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),m.call(this)}};e=f.createApp(a),e.mount(i)}else{const a=Object.getPrototypeOf(t).constructor;e=new a({propsData:Object.assign({},t.$props,s),store:t.$store,mounted:()=>{e.$el.style&&(e.$el.style.width="1000px"),m.call(e)}}),e.$slots=t.$slots,e.$scopedSlots=t.$scopedSlots,e.$mount(i)}}function m(){d(y.call(this),c,$)}function $(){e.unmount?e.unmount():e.$destroy(),document.body.removeChild(o),document.body.removeChild(r),o=r=void 0,l&&l()}function y(){r=document.createElement("div"),r.className="k-grid-pdf-export-element";const u=this.$el&&(this.$el.nodeType===3||this.$el.nodeType===8)?this.$el.nextElementSibling:this.$el,s=b.exportElement(u);return r.appendChild(s),document.body.appendChild(r),s}}exports.provideSaveGridPDF=C;
|
|
@@ -6,67 +6,67 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { canUseDOM as y } from "@progress/kendo-vue-common";
|
|
9
|
-
import { exportElement as
|
|
10
|
-
import { createApp as
|
|
11
|
-
function
|
|
12
|
-
return (t, d = {},
|
|
9
|
+
import { exportElement as b } from "./export-element.mjs";
|
|
10
|
+
import { createApp as v, h as x } from "vue";
|
|
11
|
+
function F(p) {
|
|
12
|
+
return (t, d = {}, l, n, c) => C(p, t, d, l, n, c);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
let o,
|
|
14
|
+
function C(p, t, d = {}, l, n, c) {
|
|
15
|
+
let o, i, r, e;
|
|
16
16
|
f();
|
|
17
17
|
function f() {
|
|
18
18
|
if (!y)
|
|
19
19
|
return;
|
|
20
20
|
o = document.createElement("div");
|
|
21
|
-
const
|
|
21
|
+
const u = {
|
|
22
22
|
position: "absolute",
|
|
23
23
|
left: "-5000px",
|
|
24
24
|
top: "0px"
|
|
25
25
|
};
|
|
26
|
-
Object.assign(o.style,
|
|
27
|
-
const
|
|
26
|
+
Object.assign(o.style, u), i = document.createElement("div"), o.appendChild(i), document.body.appendChild(o);
|
|
27
|
+
const s = n && {
|
|
28
28
|
dataItems: n,
|
|
29
29
|
total: n.length,
|
|
30
30
|
pageSize: n.length,
|
|
31
31
|
skip: 0
|
|
32
32
|
};
|
|
33
33
|
if (c) {
|
|
34
|
-
const
|
|
34
|
+
const m = {
|
|
35
35
|
render: function() {
|
|
36
|
-
return
|
|
36
|
+
return x(t.type, {
|
|
37
37
|
...t.props,
|
|
38
|
-
...
|
|
38
|
+
...s
|
|
39
39
|
}, t.children);
|
|
40
40
|
},
|
|
41
41
|
store: t.$store,
|
|
42
42
|
mounted: function() {
|
|
43
|
-
this.$el.style && (this.$el.style.width = "1000px"),
|
|
43
|
+
this.$el.style && (this.$el.style.width = "1000px"), a.call(this);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
e =
|
|
46
|
+
e = v(m), e.mount(i);
|
|
47
47
|
} else {
|
|
48
|
-
const
|
|
49
|
-
e = new
|
|
50
|
-
propsData: Object.assign({}, t.$props,
|
|
48
|
+
const m = Object.getPrototypeOf(t).constructor;
|
|
49
|
+
e = new m({
|
|
50
|
+
propsData: Object.assign({}, t.$props, s),
|
|
51
51
|
store: t.$store,
|
|
52
52
|
mounted: () => {
|
|
53
|
-
e.$el.style && (e.$el.style.width = "1000px"),
|
|
53
|
+
e.$el.style && (e.$el.style.width = "1000px"), a.call(e);
|
|
54
54
|
}
|
|
55
|
-
}), e.$slots = t.$slots, e.$scopedSlots = t.$scopedSlots, e.$mount(
|
|
55
|
+
}), e.$slots = t.$slots, e.$scopedSlots = t.$scopedSlots, e.$mount(i);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function a() {
|
|
59
59
|
p($.call(this), d, h);
|
|
60
60
|
}
|
|
61
61
|
function h() {
|
|
62
|
-
e.unmount ? e.unmount() : e.$destroy(), document.body.removeChild(o), document.body.removeChild(r), o = r = void 0,
|
|
62
|
+
e.unmount ? e.unmount() : e.$destroy(), document.body.removeChild(o), document.body.removeChild(r), o = r = void 0, l && l();
|
|
63
63
|
}
|
|
64
64
|
function $() {
|
|
65
65
|
r = document.createElement("div"), r.className = "k-grid-pdf-export-element";
|
|
66
|
-
const
|
|
67
|
-
return r.appendChild(
|
|
66
|
+
const u = this.$el && (this.$el.nodeType === 3 || this.$el.nodeType === 8) ? this.$el.nextElementSibling : this.$el, s = b(u);
|
|
67
|
+
return r.appendChild(s), document.body.appendChild(r), s;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
F as provideSaveGridPDF
|
|
72
72
|
};
|
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: 1766490977,version:"7.1.0-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: "7.0
|
|
13
|
+
publishDate: 1766490977,
|
|
14
|
+
version: "7.1.0-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": "7.0
|
|
3
|
+
"version": "7.1.0-develop.2",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@progress/kendo-drawing": "^1.21.1",
|
|
22
22
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
23
23
|
"@progress/kendo-licensing": "^1.7.2",
|
|
24
|
-
"@progress/kendo-vue-common": "7.0
|
|
24
|
+
"@progress/kendo-vue-common": "7.1.0-develop.2",
|
|
25
25
|
"vue": "^3.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"package": {
|
|
42
42
|
"productName": "Kendo UI for Vue",
|
|
43
43
|
"productCode": "KENDOUIVUE",
|
|
44
|
-
"publishDate":
|
|
44
|
+
"publishDate": 1766490977,
|
|
45
45
|
"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
46
|
}
|
|
47
47
|
},
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("../savePDF.js"),l=require("./provideSaveTreeListPDF.js"),a=require("@progress/kendo-vue-common"),S=s.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=l.provideSaveTreeListPDF(this.getSavePDF())},methods:{save(t,g){const r=a.getDefaultSlots(this).filter(e=>{var o,n,i;return e.tag&&e.tag.toLowerCase().indexOf("treelist")!==-1||e.componentOptions&&((o=e.componentOptions.tag)==null?void 0:o.toLowerCase().indexOf("treelist"))!==-1||((i=(n=e.type)==null?void 0:n.name)==null?void 0:i.toLowerCase().indexOf("treelist"))!==-1});r.length&&(this.treeListComponent=r[0],this.saveTreeListPDF(this.treeListComponent,this.$props,g,t,!0))},getSavePDF(){return p.savePDF}},render(){const t=a.getDefaultSlots(this);return s.createVNode("div",null,[t])}});exports.TreeListPDFExport=S;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { savePDF as
|
|
10
|
-
import { provideSaveTreeListPDF as
|
|
11
|
-
import { getDefaultSlots as
|
|
12
|
-
const
|
|
8
|
+
import { defineComponent as p, createVNode as g } from "vue";
|
|
9
|
+
import { savePDF as l } from "../savePDF.mjs";
|
|
10
|
+
import { provideSaveTreeListPDF as S } from "./provideSaveTreeListPDF.mjs";
|
|
11
|
+
import { getDefaultSlots as a } from "@progress/kendo-vue-common";
|
|
12
|
+
const L = /* @__PURE__ */ p({
|
|
13
13
|
name: "treelist-pdf-export",
|
|
14
14
|
props: {
|
|
15
15
|
author: String,
|
|
@@ -36,22 +36,25 @@ const u = /* @__PURE__ */ i({
|
|
|
36
36
|
title: String
|
|
37
37
|
},
|
|
38
38
|
created() {
|
|
39
|
-
this.saveTreeListPDF =
|
|
39
|
+
this.saveTreeListPDF = S(this.getSavePDF());
|
|
40
40
|
},
|
|
41
41
|
methods: {
|
|
42
|
-
save(t,
|
|
43
|
-
const r =
|
|
44
|
-
|
|
42
|
+
save(t, s) {
|
|
43
|
+
const r = a(this).filter((e) => {
|
|
44
|
+
var o, i, n;
|
|
45
|
+
return e.tag && e.tag.toLowerCase().indexOf("treelist") !== -1 || e.componentOptions && ((o = e.componentOptions.tag) == null ? void 0 : o.toLowerCase().indexOf("treelist")) !== -1 || ((n = (i = e.type) == null ? void 0 : i.name) == null ? void 0 : n.toLowerCase().indexOf("treelist")) !== -1;
|
|
46
|
+
});
|
|
47
|
+
r.length && (this.treeListComponent = r[0], this.saveTreeListPDF(this.treeListComponent, this.$props, s, t, !0));
|
|
45
48
|
},
|
|
46
49
|
getSavePDF() {
|
|
47
|
-
return
|
|
50
|
+
return l;
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
render() {
|
|
51
|
-
const t =
|
|
52
|
-
return
|
|
54
|
+
const t = a(this);
|
|
55
|
+
return g("div", null, [t]);
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
58
|
export {
|
|
56
|
-
|
|
59
|
+
L as TreeListPDFExport
|
|
57
60
|
};
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@progress/kendo-vue-common"),m=require("vue"),v=require("./export-element.js");function b(p){return(t,u={},l,n,c)=>C(p,t,u,l,n,c)}function C(p,t,u={},l,n,c){let o,i,r,e;f();function f(){if(!y.canUseDOM)return;o=document.createElement("div"),o.setAttribute("style","position:absolute; left: -5000px; top: 0px;"),i=document.createElement("div"),o.appendChild(i),document.body.appendChild(o);const d=n&&{dataItems:n,total:n.length,pageSize:n.length,skip:0};if(c){const s={render:function(){return m.h(t.type,{...t.props,...d},t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),a.call(this)}};e=m.createApp(s),e.mount(i)}else{const s=Object.getPrototypeOf(t).constructor;e=new s({propsData:Object.assign({},t.$props,d),store:t.$store,mounted:()=>{e.$el.style&&(e.$el.style.width="1000px"),a.call(e)}}),e.$slots=t.$slots,e.$scopedSlots=t.$scopedSlots,e.$mount(i)}}function a(){p($.call(this),u,h)}function h(){e.unmount?e.unmount():e.$destroy(),document.body.removeChild(o),document.body.removeChild(r),o=r=void 0,l&&l()}function $(){r=document.createElement("div"),r.className="k-treelist-pdf-export-element";const d=this.$el&&(this.$el.nodeType===3||this.$el.nodeType===8)?this.$el.nextElementSibling:this.$el,s=v.exportElement(d);return r.appendChild(s),document.body.appendChild(r),s}}exports.provideSaveTreeListPDF=b;
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { canUseDOM as $ } from "@progress/kendo-vue-common";
|
|
9
|
-
import { createApp as y, h as
|
|
10
|
-
import { exportElement as
|
|
11
|
-
function
|
|
12
|
-
return (t,
|
|
9
|
+
import { createApp as y, h as b } from "vue";
|
|
10
|
+
import { exportElement as v } from "./export-element.mjs";
|
|
11
|
+
function D(d) {
|
|
12
|
+
return (t, c = {}, s, n, u) => x(d, t, c, s, n, u);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function x(d, t, c = {}, s, n, u) {
|
|
15
15
|
let o, i, r, e;
|
|
16
16
|
a();
|
|
17
17
|
function a() {
|
|
18
18
|
if (!$)
|
|
19
19
|
return;
|
|
20
20
|
o = document.createElement("div"), o.setAttribute("style", "position:absolute; left: -5000px; top: 0px;"), i = document.createElement("div"), o.appendChild(i), document.body.appendChild(o);
|
|
21
|
-
const
|
|
21
|
+
const p = n && {
|
|
22
22
|
dataItems: n,
|
|
23
23
|
total: n.length,
|
|
24
24
|
pageSize: n.length,
|
|
25
25
|
skip: 0
|
|
26
26
|
};
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
27
|
+
if (u) {
|
|
28
|
+
const l = {
|
|
29
29
|
render: function() {
|
|
30
|
-
return
|
|
30
|
+
return b(t.type, {
|
|
31
31
|
...t.props,
|
|
32
|
-
...
|
|
32
|
+
...p
|
|
33
33
|
}, t.children);
|
|
34
34
|
},
|
|
35
35
|
store: t.$store,
|
|
@@ -37,11 +37,11 @@ function b(p, t, d = {}, l, n, c) {
|
|
|
37
37
|
this.$el.style && (this.$el.style.width = "1000px"), m.call(this);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
e = y(
|
|
40
|
+
e = y(l), e.mount(i);
|
|
41
41
|
} else {
|
|
42
|
-
const
|
|
43
|
-
e = new
|
|
44
|
-
propsData: Object.assign({}, t.$props,
|
|
42
|
+
const l = Object.getPrototypeOf(t).constructor;
|
|
43
|
+
e = new l({
|
|
44
|
+
propsData: Object.assign({}, t.$props, p),
|
|
45
45
|
store: t.$store,
|
|
46
46
|
mounted: () => {
|
|
47
47
|
e.$el.style && (e.$el.style.width = "1000px"), m.call(e);
|
|
@@ -50,17 +50,17 @@ function b(p, t, d = {}, l, n, c) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
function m() {
|
|
53
|
-
|
|
53
|
+
d(h.call(this), c, f);
|
|
54
54
|
}
|
|
55
55
|
function f() {
|
|
56
|
-
e.unmount ? e.unmount() : e.$destroy(), document.body.removeChild(o), document.body.removeChild(r), o = r = void 0,
|
|
56
|
+
e.unmount ? e.unmount() : e.$destroy(), document.body.removeChild(o), document.body.removeChild(r), o = r = void 0, s && s();
|
|
57
57
|
}
|
|
58
58
|
function h() {
|
|
59
59
|
r = document.createElement("div"), r.className = "k-treelist-pdf-export-element";
|
|
60
|
-
const
|
|
61
|
-
return r.appendChild(
|
|
60
|
+
const p = this.$el && (this.$el.nodeType === 3 || this.$el.nodeType === 8) ? this.$el.nextElementSibling : this.$el, l = v(p);
|
|
61
|
+
return r.appendChild(l), document.body.appendChild(r), l;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
D as provideSaveTreeListPDF
|
|
66
66
|
};
|