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