@progress/kendo-vue-pdf 6.4.1-develop.2 → 6.4.2-develop.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PDFExport.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { defineComponent as r, createVNode as t } from "vue";
|
|
|
9
9
|
import { drawDOM as o, exportPDF as a } from "@progress/kendo-drawing";
|
|
10
10
|
import { saveAs as n } from "@progress/kendo-file-saver";
|
|
11
11
|
import i from "./KendoDrawingAdapter.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { getDefaultSlots as p, validatePackage as g } from "@progress/kendo-vue-common";
|
|
13
13
|
import { packageMetadata as m } from "./package-metadata.mjs";
|
|
14
14
|
const u = /* @__PURE__ */ r({
|
|
15
15
|
name: "pdf-export",
|
|
@@ -50,11 +50,11 @@ const u = /* @__PURE__ */ r({
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
created: function() {
|
|
53
|
-
|
|
53
|
+
g(m);
|
|
54
54
|
},
|
|
55
55
|
// @ts-ignore
|
|
56
56
|
render() {
|
|
57
|
-
const e =
|
|
57
|
+
const e = p(this);
|
|
58
58
|
return t("div", null, [e]);
|
|
59
59
|
}
|
|
60
60
|
// To do: we should consider whether we need a margin-top, margin-left, etc. props
|
|
@@ -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-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",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1620290455,version:"6.4.1-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"},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}));
|
|
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-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",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1620290455,version:"6.4.2-develop.3",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}));
|
package/grid/grid-query.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { findElement as t,
|
|
8
|
+
import { findElement as t, matchesNodeName as n, matchesClasses as r } from "../common/dom-queries.mjs";
|
|
9
9
|
const o = "k-grid-header", i = "k-grid-footer", h = "TABLE", c = n(h), a = (s) => s ? "locked" : "wrap";
|
|
10
10
|
class l {
|
|
11
11
|
constructor(e) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { canUseDOM as y } from "@progress/kendo-vue-common";
|
|
9
9
|
import { exportElement as v } from "./export-element.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { createApp as C, h as b } from "vue";
|
|
11
11
|
function P(p) {
|
|
12
12
|
return (t, d = {}, s, n, c) => x(p, t, d, s, n, c);
|
|
13
13
|
}
|
|
@@ -33,7 +33,7 @@ function x(p, t, d = {}, s, n, c) {
|
|
|
33
33
|
if (c) {
|
|
34
34
|
const u = {
|
|
35
35
|
render: function() {
|
|
36
|
-
return
|
|
36
|
+
return b(t.type, {
|
|
37
37
|
...t.props,
|
|
38
38
|
...a
|
|
39
39
|
}, t.children);
|
|
@@ -43,7 +43,7 @@ function x(p, t, d = {}, s, n, c) {
|
|
|
43
43
|
this.$el.style && (this.$el.style.width = "1000px"), m.call(this);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
e =
|
|
46
|
+
e = C(u), e.mount(l);
|
|
47
47
|
} else {
|
|
48
48
|
const u = Object.getPrototypeOf(t).constructor;
|
|
49
49
|
e = new 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: 1750421783,version:"6.4.2-develop.3",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: "6.4.
|
|
13
|
+
publishDate: 1750421783,
|
|
14
|
+
version: "6.4.2-develop.3",
|
|
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": "6.4.
|
|
3
|
+
"version": "6.4.2-develop.3",
|
|
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.4.0",
|
|
24
|
-
"@progress/kendo-vue-common": "6.4.
|
|
24
|
+
"@progress/kendo-vue-common": "6.4.2-develop.3",
|
|
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": 1750421783,
|
|
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
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { canUseDOM as $ } from "@progress/kendo-vue-common";
|
|
9
|
-
import {
|
|
9
|
+
import { createApp as y, h as v } from "vue";
|
|
10
10
|
import { exportElement as C } from "./export-element.mjs";
|
|
11
11
|
function F(p) {
|
|
12
12
|
return (t, d = {}, l, n, c) => b(p, t, d, l, n, c);
|
|
@@ -27,7 +27,7 @@ function b(p, t, d = {}, l, n, c) {
|
|
|
27
27
|
if (c) {
|
|
28
28
|
const u = {
|
|
29
29
|
render: function() {
|
|
30
|
-
return
|
|
30
|
+
return v(t.type, {
|
|
31
31
|
...t.props,
|
|
32
32
|
...s
|
|
33
33
|
}, t.children);
|
|
@@ -37,7 +37,7 @@ 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 =
|
|
40
|
+
e = y(u), e.mount(i);
|
|
41
41
|
} else {
|
|
42
42
|
const u = Object.getPrototypeOf(t).constructor;
|
|
43
43
|
e = new u({
|