@progress/kendo-react-pdf 5.4.0-dev.202205200719 → 5.4.0-dev.202205250548

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-drawing"),require("react-dom"),require("react-dom/server"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-drawing","react-dom","react-dom/server","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactPdf=t(require("react"),require("prop-types"),require("@progress/kendo-drawing"),require("react-dom"),require("react-dom/server"),require("@progress/kendo-licensing")):e.KendoReactPdf=t(e.React,e.PropTypes,e.KendoDrawing,e.ReactDOM,e.ReactDOMServer,e.KendoLicensing)}(window,(function(e,t,r,n,o,i){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(5),i=["bottom","left","right","top"];t.getPageMargin=function(e){var t=n.Children.toArray(e.children).find((function(e){return e&&e.type===o.PDFMargin}));return t?function(e){for(var t={},r=0;r<i.length;r++){var n=i[r],o=e.props[n];void 0!==o&&(t[n]=o)}return t}(t):e.margin}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=r(10),i=r(6);t.savePDF=function(e,t,r){void 0===t&&(t={}),new i.default(n.drawDOM,n.exportPDF,o.saveAs,e,t).savePDF(r)}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return null},t.propTypes={left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])},t}(i.Component);t.PDFMargin=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(13),i=function(){function e(e,t,r,i,a){void 0===a&&(a={});var s=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=r,this.domElement=i,this.options=a,this.convertPageTemplateToHtml=function(e){return"<span>"+o.renderToStaticMarkup(n.createElement(s.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages}))+"</span>"}}return e.prototype.savePDF=function(e){var t=this,r=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&r.then(e,e)},e.prototype.getDrawOptions=function(){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}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact 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}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}();t.default=i},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/^(?:a|input|select|option|textarea|button|object)$/i,o={},i=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var r=i(t);return Boolean(i(e.className).find((function(e){return r.indexOf(e)>=0})))},t.matchesClasses=function(e){return function(r){return t.hasClasses(r,e)}},t.matchesNodeName=function(e){return o[e]||(o[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),o[e]},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,r){for(;e&&e!==r&&!t(e);)e=e.parentNode;if(e!==r)return e},t.contains=function(e,r,n){if(void 0===n&&(n=!1),!t.closest(r,(function(t){return t===e})))return!1;var o=t.closest(r,(function(e){return e===r}));return o&&(n||o!==e)},t.isVisible=function(e){var t=e.getBoundingClientRect(),r=t.width>0&&t.height>0,n=0!==t.x&&0!==t.y;return(r||n)&&"hidden"!==window.getComputedStyle(e).visibility},t.isFocusable=function(e,r){if(void 0===r&&(r=!0),e.tagName){var o=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),a="-1"===i,s=null!==i&&!a;return n.test(o)&&(s=!e.disabled&&!a),s&&(!r||t.isVisible(e))}return!1},t.findElement=function(e,r,n){if(void 0===n&&(n=!0),e){if(n&&r(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var o=t.findElement(e,r);if(o)return o}e=e.nextSibling}}},t.findFocusable=function(e,r){return void 0===r&&(r=!0),t.findElement(e,(function(e){return t.isFocusable(e,r)}))},t.findFocusableChild=function(e,r){return void 0===r&&(r=!0),t.findElement(e,(function(e){return t.isFocusable(e,r)}),!1)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.appendNodes=function(e,t){for(var r=t.length,n=0;n<r;n++)e.appendChild(t[n].cloneNode(!0))},t.wrapTable=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},t.createTableElement=function(e){var r=e.length,n=e[0].cloneNode(!0),o=n.rows.length;if(r>1)for(var i=0;i<o;i++)for(var a=1;a<r;a++)t.appendNodes(n.rows[i],e[a].rows[i].cells);return n},t.setFirstCellClass=function(e,t){if(t.length>1&&e.rows.length>1)for(var r=1;r<e.rows.length;r++){var n=t[0].rows[r].cells.length,o=e.rows[r].cells[n];-1===String(o.className).indexOf("k-first")&&(o.className+=" k-first")}},t.createTable=function(e,r,n,o){for(var i=document.createElement("table"),a=e[0].cloneNode(!0),s=1;s<e.length;s++)t.appendNodes(a,e[s].querySelectorAll("col"));var u=t.createTableElement(r),c=t.createTableElement(n);if(u.className="k-grid-header",t.setFirstCellClass(u,r),i.appendChild(a),i.appendChild(u),i.appendChild(c),o.length){var p=t.createTableElement(o);p.className="k-grid-footer",i.appendChild(p)}return t.wrapTable(i)}},function(e,t,r){"use strict";function n(e,t,r){void 0===r&&(r={});var n=u;if(r.forceProxy&&!r.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");r.forceProxy||(i()&&(n=s),navigator.msSaveBlob&&(n=a)),n(e,t,r)}r.r(t),r.d(t,"saveAs",(function(){return n})),r.d(t,"encodeBase64",(function(){return l}));var o=function(){return document.createElement("a")},i=function(){return"download"in o()};function a(e,t){var r=e;if("string"==typeof e){for(var n=e.split(";base64,"),o=n[0],i=atob(n[1]),a=new Uint8Array(i.length),s=0;s<i.length;s++)a[s]=i.charCodeAt(s);r=new Blob([a.buffer],{type:o})}navigator.msSaveBlob(r,t)}function s(e,t){var r=e;window.Blob&&e instanceof Blob&&(r=URL.createObjectURL(e));var n=o();n.download=t,n.href=r;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i),setTimeout((function(){return URL.revokeObjectURL(r)}))}function u(e,t,r){if(r.proxyURL){var n=document.createElement("form");n.setAttribute("action",r.proxyURL),n.setAttribute("method","POST"),n.setAttribute("target",r.proxyTarget||"_self");var o=r.proxyData||{};o.fileName=t;var i=e.split(";base64,");for(var a in o.contentType=i[0].replace("data:",""),o.base64=i[1],o)if(o.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",o[a]),n.appendChild(s)}document.body.appendChild(n),n.submit(),document.body.removeChild(n)}}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=String.fromCharCode;function l(e){for(var t,r,n,o,i,a,s,u=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=p(n):n<2048?(t+=p(192|n>>>6),t+=p(128|63&n)):n<65536&&(t+=p(224|n>>>12),t+=p(128|n>>>6&63),t+=p(128|63&n))}return t}(e),l="",d=0;d<u.length;)o=(t=u.charCodeAt(d++))>>2,i=(3&t)<<4|(r=u.charCodeAt(d++))>>4,a=(15&r)<<2|(n=u.charCodeAt(d++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),l=l+c.charAt(o)+c.charAt(i)+c.charAt(a)+c.charAt(s);return l}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.PDFExport=n.default;var o=r(5);t.PDFMargin=o.PDFMargin;var i=r(3);t.savePDF=i.savePDF;var a=r(2);t.getPageMargin=a.getPageMargin;var s=r(16);t.GridPDFExport=s.GridPDFExport;var u=r(20);t.TreeListPDFExport=u.TreeListPDFExport},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(4),u=r(10),c=r(2),p=r(6),l=r(14),d=r(15),f=function(e){function t(t){var r=e.call(this,t)||this;if(void 0!==l)l.validatePackage(d.packageMetadata);else{var n="License activation failed for "+d.packageMetadata.name+"\n";n+="The @progress/kendo-licensing script is not loaded.\n",n+="See "+d.packageMetadata.licensingDocsUrl+" for more information.\n",console.warn(n)}return r}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{ref:function(t){e.rootElForPDF=t}},this.props.children)},t.prototype.save=function(e){new p.default(s.drawDOM,s.exportPDF,u.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){return Object.assign({},this.props,{margin:c.getPageMargin(this.props)})},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},t}(i.Component);t.default=f},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030247,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(2),u=r(3),c=r(17),p=function(e){function t(t){var r=e.call(this,t)||this;return r.saveGridPDF=c.provideSaveGridPDF(r.getSavePDF()),r}return o(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:s.getPageMargin(this.props)}),t,e,this.getCustomColumns())},t.prototype.getSavePDF=function(){return u.savePDF},t.prototype.getGrid=function(){return i.Children.toArray(this.props.children).find((function(e){return e&&"KendoReactGrid"===e.type.displayName}))},t.prototype.getCustomColumns=function(){return i.Children.toArray(this.props.children).filter((function(e){return e&&"KendoReactGridColumn"===e.type.displayName}))},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},t}(i.Component);t.GridPDFExport=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),o=r(0),i=r(18);t.provideSaveGridPDF=function(e){return function(t,r,a,s,u){return void 0===r&&(r={}),function(e,t,r,a,s,u){void 0===r&&(r={});var c,p,l;function d(){e(function(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=i.exportElement(p);return l.appendChild(e),document.body.appendChild(l),e}(),r,f)}function f(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,a&&a()}(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),p=document.createElement("div"),c.appendChild(p),document.body.appendChild(c),n.render(function(){var e=s&&{data:s,total:s.length,pageSize:s.length,skip:0},r={style:Object.assign({},t.props.style,{width:"1000px"})},n=Object.assign({},e,r);if(u&&u.length>0){var i=function(e){return o.Children.toArray(e.props.children).filter((function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}))}(t);return o.cloneElement(t,n,u.concat(i))}return o.cloneElement(t,n)}(),p,d)}(e,t,r,a,s,u)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(19),o=r(9);t.exportElement=function(e){var t,r=new n.GridQuery(e),i=r.content();if(i){var a=[i.querySelector("colgroup")],s=[r.header().querySelector("thead")],u=[i.querySelector("tbody")],c=r.footer(),p=c?[c.querySelector("tfoot")]:[];t=o.createTable(a,s,u,p)}else t=o.wrapTable(r.table().cloneNode(!0));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=n.matchesNodeName("TABLE"),i=function(e){return e?"locked":"wrap"},a=function(){function e(e){this.element=e,this.list=n.findElement(e,n.matchesClasses("k-grid-container"))}return e.prototype.content=function(e){return n.findElement(this.list,n.matchesClasses("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||n.findElement(this.element,n.matchesClasses(t.HEADER_CLASS)),n.findElement(this.headerWrap,n.matchesClasses(t.HEADER_CLASS+"-"+i(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||n.findElement(this.element,n.matchesClasses(t.FOOTER_CLASS)),n.findElement(this.footerWrap,n.matchesClasses(t.FOOTER_CLASS+"-"+i(e)))},e.prototype.table=function(){return n.findElement(this.element,o)},e}();t.GridQuery=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(2),u=r(3),c=r(21),p=function(e){function t(t){var r=e.call(this,t)||this;return r.saveTreeListPDF=c.provideSaveTreeListPDF(r.getSavePDF()),r}return o(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t,r){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:s.getPageMargin(this.props)}),r,e,t||[])},t.prototype.getSavePDF=function(){return u.savePDF},t.prototype.getTreeList=function(){var e=this.props.children;if(e&&e.props.data&&e.props.columns)return this.props.children},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string,allPages:a.bool},t}(i.Component);t.TreeListPDFExport=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),o=r(0),i=r(22);t.provideSaveTreeListPDF=function(e){return function(t,r,a,s,u){return void 0===r&&(r={}),function(e,t,r,a,s,u){void 0===r&&(r={});var c,p,l;function d(){e(function(){(l=document.createElement("div")).className="k-treelist-pdf-export-element";var e=i.exportElement(p);return l.appendChild(e),document.body.appendChild(l),l}(),r,f)}function f(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,a&&a()}(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),p=document.createElement("div"),c.appendChild(p),document.body.appendChild(c),n.render((h=r.allPages&&s?{data:s,take:Number.MAX_VALUE,skip:0}:{},g={style:Object.assign({},t.props.style,{width:"1000px"})},m=Object.assign({},h,g),u&&u.length>0?o.cloneElement(t,Object.assign({},m,{columns:u})):o.cloneElement(t,m)),p,d);var h,g,m}(e,t,r,a,s,u)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23),o=r(9);t.exportElement=function(e){var t,r=new n.GridQuery(e),i=r.content(),a=r.header();if(a.childNodes.length>1&&a.removeChild(a.childNodes[1]),a.childNodes[0].childNodes.forEach((function(e){return e.style.top=0})),i){var s=[i.querySelector("colgroup")],u=[a],c=[i.querySelector("tbody")],p=r.footer(),l=p?[p.querySelector("tfoot")]:[];t=o.createTable(s,u,c,l)}else t=o.wrapTable(r.table().cloneNode(!0));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=n.matchesNodeName("TABLE"),i=function(){function e(e){this.element=e,this.list=n.findElement(e,n.matchesClasses("k-grid"))}return e.prototype.content=function(){return n.findElement(this.list,n.matchesClasses("k-grid"))},e.prototype.header=function(){return this.headerWrap=this.headerWrap||n.findElement(this.element,n.matchesClasses(t.HEADER_CLASS)),n.findElement(this.headerWrap,n.matchesClasses(""+t.HEADER_CLASS))},e.prototype.footer=function(){return this.footerWrap=this.footerWrap||n.findElement(this.element,n.matchesClasses(t.FOOTER_CLASS)),n.findElement(this.footerWrap,n.matchesClasses(""+t.FOOTER_CLASS))},e.prototype.table=function(){return n.findElement(this.element,o)},e}();t.GridQuery=i}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-drawing"),require("react-dom"),require("react-dom/server"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-drawing","react-dom","react-dom/server","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactPdf=t(require("react"),require("prop-types"),require("@progress/kendo-drawing"),require("react-dom"),require("react-dom/server"),require("@progress/kendo-licensing")):e.KendoReactPdf=t(e.React,e.PropTypes,e.KendoDrawing,e.ReactDOM,e.ReactDOMServer,e.KendoLicensing)}(window,(function(e,t,r,n,o,i){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(5),i=["bottom","left","right","top"];t.getPageMargin=function(e){var t=n.Children.toArray(e.children).find((function(e){return e&&e.type===o.PDFMargin}));return t?function(e){for(var t={},r=0;r<i.length;r++){var n=i[r],o=e.props[n];void 0!==o&&(t[n]=o)}return t}(t):e.margin}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=r(10),i=r(6);t.savePDF=function(e,t,r){void 0===t&&(t={}),new i.default(n.drawDOM,n.exportPDF,o.saveAs,e,t).savePDF(r)}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return null},t.propTypes={left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])},t}(i.Component);t.PDFMargin=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(13),i=function(){function e(e,t,r,i,a){void 0===a&&(a={});var s=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=r,this.domElement=i,this.options=a,this.convertPageTemplateToHtml=function(e){return"<span>"+o.renderToStaticMarkup(n.createElement(s.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages}))+"</span>"}}return e.prototype.savePDF=function(e){var t=this,r=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&r.then(e,e)},e.prototype.getDrawOptions=function(){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}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact 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}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}();t.default=i},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/^(?:a|input|select|option|textarea|button|object)$/i,o={},i=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var r=i(t);return Boolean(i(e.className).find((function(e){return r.indexOf(e)>=0})))},t.matchesClasses=function(e){return function(r){return t.hasClasses(r,e)}},t.matchesNodeName=function(e){return o[e]||(o[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),o[e]},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,r){for(;e&&e!==r&&!t(e);)e=e.parentNode;if(e!==r)return e},t.contains=function(e,r,n){if(void 0===n&&(n=!1),!t.closest(r,(function(t){return t===e})))return!1;var o=t.closest(r,(function(e){return e===r}));return o&&(n||o!==e)},t.isVisible=function(e){var t=e.getBoundingClientRect(),r=t.width>0&&t.height>0,n=0!==t.x&&0!==t.y;return(r||n)&&"hidden"!==window.getComputedStyle(e).visibility},t.isFocusable=function(e,r){if(void 0===r&&(r=!0),e.tagName){var o=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),a="-1"===i,s=null!==i&&!a;return n.test(o)&&(s=!e.disabled&&!a),s&&(!r||t.isVisible(e))}return!1},t.findElement=function(e,r,n){if(void 0===n&&(n=!0),e){if(n&&r(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var o=t.findElement(e,r);if(o)return o}e=e.nextSibling}}},t.findFocusable=function(e,r){return void 0===r&&(r=!0),t.findElement(e,(function(e){return t.isFocusable(e,r)}))},t.findFocusableChild=function(e,r){return void 0===r&&(r=!0),t.findElement(e,(function(e){return t.isFocusable(e,r)}),!1)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.appendNodes=function(e,t){for(var r=t.length,n=0;n<r;n++)e.appendChild(t[n].cloneNode(!0))},t.wrapTable=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},t.createTableElement=function(e){var r=e.length,n=e[0].cloneNode(!0),o=n.rows.length;if(r>1)for(var i=0;i<o;i++)for(var a=1;a<r;a++)t.appendNodes(n.rows[i],e[a].rows[i].cells);return n},t.setFirstCellClass=function(e,t){if(t.length>1&&e.rows.length>1)for(var r=1;r<e.rows.length;r++){var n=t[0].rows[r].cells.length,o=e.rows[r].cells[n];-1===String(o.className).indexOf("k-first")&&(o.className+=" k-first")}},t.createTable=function(e,r,n,o){for(var i=document.createElement("table"),a=e[0].cloneNode(!0),s=1;s<e.length;s++)t.appendNodes(a,e[s].querySelectorAll("col"));var u=t.createTableElement(r),c=t.createTableElement(n);if(u.className="k-grid-header",t.setFirstCellClass(u,r),i.appendChild(a),i.appendChild(u),i.appendChild(c),o.length){var p=t.createTableElement(o);p.className="k-grid-footer",i.appendChild(p)}return t.wrapTable(i)}},function(e,t,r){"use strict";function n(e,t,r){void 0===r&&(r={});var n=u;if(r.forceProxy&&!r.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");r.forceProxy||(i()&&(n=s),navigator.msSaveBlob&&(n=a)),n(e,t,r)}r.r(t),r.d(t,"saveAs",(function(){return n})),r.d(t,"encodeBase64",(function(){return l}));var o=function(){return document.createElement("a")},i=function(){return"download"in o()};function a(e,t){var r=e;if("string"==typeof e){for(var n=e.split(";base64,"),o=n[0],i=atob(n[1]),a=new Uint8Array(i.length),s=0;s<i.length;s++)a[s]=i.charCodeAt(s);r=new Blob([a.buffer],{type:o})}navigator.msSaveBlob(r,t)}function s(e,t){var r=e;window.Blob&&e instanceof Blob&&(r=URL.createObjectURL(e));var n=o();n.download=t,n.href=r;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i),setTimeout((function(){return URL.revokeObjectURL(r)}))}function u(e,t,r){if(r.proxyURL){var n=document.createElement("form");n.setAttribute("action",r.proxyURL),n.setAttribute("method","POST"),n.setAttribute("target",r.proxyTarget||"_self");var o=r.proxyData||{};o.fileName=t;var i=e.split(";base64,");for(var a in o.contentType=i[0].replace("data:",""),o.base64=i[1],o)if(o.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",o[a]),n.appendChild(s)}document.body.appendChild(n),n.submit(),document.body.removeChild(n)}}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=String.fromCharCode;function l(e){for(var t,r,n,o,i,a,s,u=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=p(n):n<2048?(t+=p(192|n>>>6),t+=p(128|63&n)):n<65536&&(t+=p(224|n>>>12),t+=p(128|n>>>6&63),t+=p(128|63&n))}return t}(e),l="",d=0;d<u.length;)o=(t=u.charCodeAt(d++))>>2,i=(3&t)<<4|(r=u.charCodeAt(d++))>>4,a=(15&r)<<2|(n=u.charCodeAt(d++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),l=l+c.charAt(o)+c.charAt(i)+c.charAt(a)+c.charAt(s);return l}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.PDFExport=n.default;var o=r(5);t.PDFMargin=o.PDFMargin;var i=r(3);t.savePDF=i.savePDF;var a=r(2);t.getPageMargin=a.getPageMargin;var s=r(16);t.GridPDFExport=s.GridPDFExport;var u=r(20);t.TreeListPDFExport=u.TreeListPDFExport},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(4),u=r(10),c=r(2),p=r(6),l=r(14),d=r(15),f=function(e){function t(t){var r=e.call(this,t)||this;if(void 0!==l)l.validatePackage(d.packageMetadata);else{var n="License activation failed for "+d.packageMetadata.name+"\n";n+="The @progress/kendo-licensing script is not loaded.\n",n+="See "+d.packageMetadata.licensingDocsUrl+" for more information.\n",console.warn(n)}return r}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{ref:function(t){e.rootElForPDF=t}},this.props.children)},t.prototype.save=function(e){new p.default(s.drawDOM,s.exportPDF,u.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){return Object.assign({},this.props,{margin:c.getPageMargin(this.props)})},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},t}(i.Component);t.default=f},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653456947,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(2),u=r(3),c=r(17),p=function(e){function t(t){var r=e.call(this,t)||this;return r.saveGridPDF=c.provideSaveGridPDF(r.getSavePDF()),r}return o(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:s.getPageMargin(this.props)}),t,e,this.getCustomColumns())},t.prototype.getSavePDF=function(){return u.savePDF},t.prototype.getGrid=function(){return i.Children.toArray(this.props.children).find((function(e){return e&&"KendoReactGrid"===e.type.displayName}))},t.prototype.getCustomColumns=function(){return i.Children.toArray(this.props.children).filter((function(e){return e&&"KendoReactGridColumn"===e.type.displayName}))},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},t}(i.Component);t.GridPDFExport=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),o=r(0),i=r(18);t.provideSaveGridPDF=function(e){return function(t,r,a,s,u){return void 0===r&&(r={}),function(e,t,r,a,s,u){void 0===r&&(r={});var c,p,l;function d(){e(function(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=i.exportElement(p);return l.appendChild(e),document.body.appendChild(l),e}(),r,f)}function f(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,a&&a()}(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),p=document.createElement("div"),c.appendChild(p),document.body.appendChild(c),n.render(function(){var e=s&&{data:s,total:s.length,pageSize:s.length,skip:0},r={style:Object.assign({},t.props.style,{width:"1000px"})},n=Object.assign({},e,r);if(u&&u.length>0){var i=function(e){return o.Children.toArray(e.props.children).filter((function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}))}(t);return o.cloneElement(t,n,u.concat(i))}return o.cloneElement(t,n)}(),p,d)}(e,t,r,a,s,u)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(19),o=r(9);t.exportElement=function(e){var t,r=new n.GridQuery(e),i=r.content();if(i){var a=[i.querySelector("colgroup")],s=[r.header().querySelector("thead")],u=[i.querySelector("tbody")],c=r.footer(),p=c?[c.querySelector("tfoot")]:[];t=o.createTable(a,s,u,p)}else t=o.wrapTable(r.table().cloneNode(!0));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=n.matchesNodeName("TABLE"),i=function(e){return e?"locked":"wrap"},a=function(){function e(e){this.element=e,this.list=n.findElement(e,n.matchesClasses("k-grid-container"))}return e.prototype.content=function(e){return n.findElement(this.list,n.matchesClasses("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||n.findElement(this.element,n.matchesClasses(t.HEADER_CLASS)),n.findElement(this.headerWrap,n.matchesClasses(t.HEADER_CLASS+"-"+i(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||n.findElement(this.element,n.matchesClasses(t.FOOTER_CLASS)),n.findElement(this.footerWrap,n.matchesClasses(t.FOOTER_CLASS+"-"+i(e)))},e.prototype.table=function(){return n.findElement(this.element,o)},e}();t.GridQuery=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(2),u=r(3),c=r(21),p=function(e){function t(t){var r=e.call(this,t)||this;return r.saveTreeListPDF=c.provideSaveTreeListPDF(r.getSavePDF()),r}return o(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t,r){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:s.getPageMargin(this.props)}),r,e,t||[])},t.prototype.getSavePDF=function(){return u.savePDF},t.prototype.getTreeList=function(){var e=this.props.children;if(e&&e.props.data&&e.props.columns)return this.props.children},t.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string,allPages:a.bool},t}(i.Component);t.TreeListPDFExport=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),o=r(0),i=r(22);t.provideSaveTreeListPDF=function(e){return function(t,r,a,s,u){return void 0===r&&(r={}),function(e,t,r,a,s,u){void 0===r&&(r={});var c,p,l;function d(){e(function(){(l=document.createElement("div")).className="k-treelist-pdf-export-element";var e=i.exportElement(p);return l.appendChild(e),document.body.appendChild(l),l}(),r,f)}function f(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,a&&a()}(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),p=document.createElement("div"),c.appendChild(p),document.body.appendChild(c),n.render((h=r.allPages&&s?{data:s,take:Number.MAX_VALUE,skip:0}:{},g={style:Object.assign({},t.props.style,{width:"1000px"})},m=Object.assign({},h,g),u&&u.length>0?o.cloneElement(t,Object.assign({},m,{columns:u})):o.cloneElement(t,m)),p,d);var h,g,m}(e,t,r,a,s,u)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23),o=r(9);t.exportElement=function(e){var t,r=new n.GridQuery(e),i=r.content(),a=r.header();if(a.childNodes.length>1&&a.removeChild(a.childNodes[1]),a.childNodes[0].childNodes.forEach((function(e){return e.style.top=0})),i){var s=[i.querySelector("colgroup")],u=[a],c=[i.querySelector("tbody")],p=r.footer(),l=p?[p.querySelector("tfoot")]:[];t=o.createTable(s,u,c,l)}else t=o.wrapTable(r.table().cloneNode(!0));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=n.matchesNodeName("TABLE"),i=function(){function e(e){this.element=e,this.list=n.findElement(e,n.matchesClasses("k-grid"))}return e.prototype.content=function(){return n.findElement(this.list,n.matchesClasses("k-grid"))},e.prototype.header=function(){return this.headerWrap=this.headerWrap||n.findElement(this.element,n.matchesClasses(t.HEADER_CLASS)),n.findElement(this.headerWrap,n.matchesClasses(""+t.HEADER_CLASS))},e.prototype.footer=function(){return this.footerWrap=this.footerWrap||n.findElement(this.element,n.matchesClasses(t.FOOTER_CLASS)),n.findElement(this.footerWrap,n.matchesClasses(""+t.FOOTER_CLASS))},e.prototype.table=function(){return n.findElement(this.element,o)},e}();t.GridQuery=i}])}));
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-pdf',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653030247,
8
+ publishDate: 1653456947,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-pdf',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1653030247,
10
+ publishDate: 1653456947,
11
11
  version: '',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
13
13
  };
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-pdf",["react","@progress/kendo-drawing","@progress/kendo-licensing","@progress/kendo-file-saver","react-dom","react-dom/server"],function(s){var i,a,p,c,u,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){a=t(e)},function(e){p=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)}],execute:function(){function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r;n=[function(e,t){e.exports=i},function(e,t,n){e.exports=n(13)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),p=n(6),c=["bottom","left","right","top"];t.getPageMargin=function(e){var t=a.Children.toArray(e.children).find(function(e){return e&&e.type===p.PDFMargin});if(t){for(var n=t,r={},o=0;o<c.length;o++){var i=c[o],s=n.props[i];void 0!==s&&(r[i]=s)}return r}return e.margin}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(5),i=n(7);t.savePDF=function(e,t,n){new i.default(r.drawDOM,r.exportPDF,o.saveAs,e,t=void 0===t?{}:t).savePDF(n)}},function(e,t){e.exports=a},function(e,t){e.exports=c},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),n=n(1),s=(o=s.Component,i(a,o),a.prototype.render=function(){return null},a.propTypes={left:n.oneOfType([n.number,n.string]),top:n.oneOfType([n.number,n.string]),right:n.oneOfType([n.number,n.string]),bottom:n.oneOfType([n.number,n.string])},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.PDFMargin=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(15);function r(e,t,n,r,o){void 0===o&&(o={});var i=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=r,this.options=o,this.convertPageTemplateToHtml=function(e){return"<span>"+a.renderToStaticMarkup(s.createElement(i.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages}))+"</span>"}}r.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then(function(e){return t.exportPDF(e,t.getPDFOptions())}).then(function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())});e&&n.then(e,e)},r.prototype.getDrawOptions=function(){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}},r.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact 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}},r.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},t.default=r},function(e,t){e.exports=u},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function r(e){return String(e).trim().split(" ")}var s=/^(?:a|input|select|option|textarea|button|object)$/i,n={};i.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},i.matchesClasses=function(t){return function(e){return i.hasClasses(e,t)}},i.matchesNodeName=function(t){return n[t]||(n[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),n[t]},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},i.contains=function(t,n,e){if(void 0===e&&(e=!1),!i.closest(n,function(e){return e===t}))return!1;var r=i.closest(n,function(e){return e===n});return r&&(e||r!==t)},i.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility},i.isFocusable=function(e,t){var n,r,o;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),r="-1"===(o=e.getAttribute("tabIndex")),o=null!==o&&!r,(o=s.test(n)?!e.disabled&&!r:o)&&(!t||i.isVisible(e)))},i.findElement=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=i.findElement(e,t);if(r)return r}e=e.nextSibling}}},i.findFocusable=function(e,t){return void 0===t&&(t=!0),i.findElement(e,function(e){return i.isFocusable(e,t)})},i.findFocusableChild=function(e,t){return void 0===t&&(t=!0),i.findElement(e,function(e){return i.isFocusable(e,t)},!1)}},function(e,p,t){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.appendNodes=function(e,t){for(var n=t.length,r=0;r<n;r++)e.appendChild(t[r].cloneNode(!0))},p.wrapTable=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},p.createTableElement=function(e){var t=e.length,n=e[0].cloneNode(!0),r=n.rows.length;if(1<t)for(var o=0;o<r;o++)for(var i=1;i<t;i++)p.appendNodes(n.rows[o],e[i].rows[o].cells);return n},p.setFirstCellClass=function(e,t){if(1<t.length&&1<e.rows.length)for(var n=1;n<e.rows.length;n++){var r=t[0].rows[n].cells.length,r=e.rows[n].cells[r];-1===String(r.className).indexOf("k-first")&&(r.className+=" k-first")}},p.createTable=function(e,t,n,r){for(var o=document.createElement("table"),i=e[0].cloneNode(!0),s=1;s<e.length;s++)p.appendNodes(i,e[s].querySelectorAll("col"));var a=p.createTableElement(t),n=p.createTableElement(n);return a.className="k-grid-header",p.setFirstCellClass(a,t),o.appendChild(i),o.appendChild(a),o.appendChild(n),r.length&&((t=p.createTableElement(r)).className="k-grid-footer",o.appendChild(t)),p.wrapTable(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(12),o=(t.PDFExport=o.default,n(6)),o=(t.PDFMargin=o.PDFMargin,n(3)),o=(t.savePDF=o.savePDF,n(2)),o=(t.getPageMargin=o.getPageMargin,n(18)),o=(t.GridPDFExport=o.GridPDFExport,n(22)),i=(t.TreeListPDFExport=o.TreeListPDFExport,t);for(r in i)s(r,i[r])},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(4),c=n(5),u=n(2),l=n(7),d=n(16),f=n(17),n=(o=s.Component,i(h,o),h.prototype.render=function(){var t=this;return s.createElement("div",{ref:function(e){t.rootElForPDF=e}},this.props.children)},h.prototype.save=function(e){new l.default(p.drawDOM,p.exportPDF,c.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},h.prototype.getOptions=function(){return Object.assign({},this.props,{margin:u.getPageMargin(this.props)})},h.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},h);function h(e){var t,e=o.call(this,e)||this;return void 0!==d?d.validatePackage(f.packageMetadata):(t=(t="License activation failed for "+f.packageMetadata.name+"\n")+"The @progress/kendo-licensing script is not loaded.\nSee "+f.packageMetadata.licensingDocsUrl+" for more information.\n",console.warn(t)),e}t.default=n},function(e,t,n){"use strict";var s=n(14);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==s)throw(i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",i}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=l},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030247,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(2),c=n(3),u=n(19),n=(o=s.Component,i(l,o),l.prototype.render=function(){return null},l.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:p.getPageMargin(this.props)}),t,e,this.getCustomColumns())},l.prototype.getSavePDF=function(){return c.savePDF},l.prototype.getGrid=function(){return s.Children.toArray(this.props.children).find(function(e){return e&&"KendoReactGrid"===e.type.displayName})},l.prototype.getCustomColumns=function(){return s.Children.toArray(this.props.children).filter(function(e){return e&&"KendoReactGridColumn"===e.type.displayName})},l.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},l);function l(e){e=o.call(this,e)||this;return e.saveGridPDF=u.provideSaveGridPDF(e.getSavePDF()),e}t.GridPDFExport=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(8),h=n(0),g=n(20);t.provideSaveGridPDF=function(d){return function(e,t,n,r,o){return s=d,e=e,p=n,n=r,r=o,void 0===(a=t=void 0===t?{}:t)&&(a={}),(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),c.appendChild(u),document.body.appendChild(c),void f.render((n=n&&{data:n,total:n.length,pageSize:n.length,skip:0},o={style:Object.assign({},e.props.style,{width:"1000px"})},n=Object.assign({},n,o),r&&0<r.length?(o=h.Children.toArray(e.props.children).filter(function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}),h.cloneElement(e,n,r.concat(o))):h.cloneElement(e,n)),u,function(){var e;s(((l=document.createElement("div")).className="k-grid-pdf-export-element",e=g.exportElement(u),l.appendChild(e),document.body.appendChild(l),e),a,i)});function i(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,p&&p()}var s,a,p,c,u,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),s=n(10);t.exportElement=function(e){var t,n,r,e=new i.GridQuery(e),o=e.content();return o?(t=[o.querySelector("colgroup")],n=[e.header().querySelector("thead")],o=[o.querySelector("tbody")],r=(r=e.footer())?[r.querySelector("tfoot")]:[],s.createTable(t,n,o,r)):s.wrapTable(e.table().cloneNode(!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return e?"locked":"wrap"}var o=n(9),i=(t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer",o.matchesNodeName("TABLE"));function s(e){this.element=e,this.list=o.findElement(e,o.matchesClasses("k-grid-container"))}s.prototype.content=function(e){return o.findElement(this.list,o.matchesClasses("k-grid-content"+(e?"-locked":"")))},s.prototype.header=function(e){return this.headerWrap=this.headerWrap||o.findElement(this.element,o.matchesClasses(t.HEADER_CLASS)),o.findElement(this.headerWrap,o.matchesClasses(t.HEADER_CLASS+"-"+r(e)))},s.prototype.footer=function(e){return this.footerWrap=this.footerWrap||o.findElement(this.element,o.matchesClasses(t.FOOTER_CLASS)),o.findElement(this.footerWrap,o.matchesClasses(t.FOOTER_CLASS+"-"+r(e)))},s.prototype.table=function(){return o.findElement(this.element,i)},t.GridQuery=s},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(2),c=n(3),u=n(23),n=(o=s.Component,i(l,o),l.prototype.render=function(){return null},l.prototype.save=function(e,t,n){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:p.getPageMargin(this.props)}),n,e,t||[])},l.prototype.getSavePDF=function(){return c.savePDF},l.prototype.getTreeList=function(){var e=this.props.children;if(e&&e.props.data&&e.props.columns)return this.props.children},l.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string,allPages:a.bool},l);function l(e){e=o.call(this,e)||this;return e.saveTreeListPDF=u.provideSaveTreeListPDF(e.getSavePDF()),e}t.TreeListPDFExport=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(8),h=n(0),g=n(24);t.provideSaveTreeListPDF=function(d){return function(e,t,n,r,o){return s=d,e=e,p=n,n=r,r=o,void 0===(a=t=void 0===t?{}:t)&&(a={}),(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),c.appendChild(u),document.body.appendChild(c),void f.render((n=a.allPages&&n?{data:n,take:Number.MAX_VALUE,skip:0}:{},o={style:Object.assign({},e.props.style,{width:"1000px"})},n=Object.assign({},n,o),r&&0<r.length?h.cloneElement(e,Object.assign({},n,{columns:r})):h.cloneElement(e,n)),u,function(){var e;s(((l=document.createElement("div")).className="k-treelist-pdf-export-element",e=g.exportElement(u),l.appendChild(e),document.body.appendChild(l),l),a,i)});function i(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,p&&p()}var s,a,p,c,u,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),s=n(10);t.exportElement=function(e){var t,n,e=new i.GridQuery(e),r=e.content(),o=e.header();return 1<o.childNodes.length&&o.removeChild(o.childNodes[1]),o.childNodes[0].childNodes.forEach(function(e){return e.style.top=0}),r?(t=[r.querySelector("colgroup")],o=[o],r=[r.querySelector("tbody")],n=(n=e.footer())?[n.querySelector("tfoot")]:[],s.createTable(t,o,r,n)):s.wrapTable(e.table().cloneNode(!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=(t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer",r.matchesNodeName("TABLE"));function i(e){this.element=e,this.list=r.findElement(e,r.matchesClasses("k-grid"))}i.prototype.content=function(){return r.findElement(this.list,r.matchesClasses("k-grid"))},i.prototype.header=function(){return this.headerWrap=this.headerWrap||r.findElement(this.element,r.matchesClasses(t.HEADER_CLASS)),r.findElement(this.headerWrap,r.matchesClasses(""+t.HEADER_CLASS))},i.prototype.footer=function(){return this.footerWrap=this.footerWrap||r.findElement(this.element,r.matchesClasses(t.FOOTER_CLASS)),r.findElement(this.footerWrap,r.matchesClasses(""+t.FOOTER_CLASS))},i.prototype.table=function(){return r.findElement(this.element,o)},t.GridQuery=i}],r={},o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=11)}}});
1
+ System.register("@progress/kendo-react-pdf",["react","@progress/kendo-drawing","@progress/kendo-file-saver","@progress/kendo-licensing","react-dom","react-dom/server"],function(s){var i,a,p,c,u,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){a=t(e)},function(e){p=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)}],execute:function(){function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r;n=[function(e,t){e.exports=i},function(e,t,n){e.exports=n(13)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),p=n(6),c=["bottom","left","right","top"];t.getPageMargin=function(e){var t=a.Children.toArray(e.children).find(function(e){return e&&e.type===p.PDFMargin});if(t){for(var n=t,r={},o=0;o<c.length;o++){var i=c[o],s=n.props[i];void 0!==s&&(r[i]=s)}return r}return e.margin}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(5),i=n(7);t.savePDF=function(e,t,n){new i.default(r.drawDOM,r.exportPDF,o.saveAs,e,t=void 0===t?{}:t).savePDF(n)}},function(e,t){e.exports=a},function(e,t){e.exports=p},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),n=n(1),s=(o=s.Component,i(a,o),a.prototype.render=function(){return null},a.propTypes={left:n.oneOfType([n.number,n.string]),top:n.oneOfType([n.number,n.string]),right:n.oneOfType([n.number,n.string]),bottom:n.oneOfType([n.number,n.string])},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.PDFMargin=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(15);function r(e,t,n,r,o){void 0===o&&(o={});var i=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=r,this.options=o,this.convertPageTemplateToHtml=function(e){return"<span>"+a.renderToStaticMarkup(s.createElement(i.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages}))+"</span>"}}r.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then(function(e){return t.exportPDF(e,t.getPDFOptions())}).then(function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())});e&&n.then(e,e)},r.prototype.getDrawOptions=function(){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}},r.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact 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}},r.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},t.default=r},function(e,t){e.exports=u},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function r(e){return String(e).trim().split(" ")}var s=/^(?:a|input|select|option|textarea|button|object)$/i,n={};i.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},i.matchesClasses=function(t){return function(e){return i.hasClasses(e,t)}},i.matchesNodeName=function(t){return n[t]||(n[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),n[t]},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},i.contains=function(t,n,e){if(void 0===e&&(e=!1),!i.closest(n,function(e){return e===t}))return!1;var r=i.closest(n,function(e){return e===n});return r&&(e||r!==t)},i.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility},i.isFocusable=function(e,t){var n,r,o;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),r="-1"===(o=e.getAttribute("tabIndex")),o=null!==o&&!r,(o=s.test(n)?!e.disabled&&!r:o)&&(!t||i.isVisible(e)))},i.findElement=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=i.findElement(e,t);if(r)return r}e=e.nextSibling}}},i.findFocusable=function(e,t){return void 0===t&&(t=!0),i.findElement(e,function(e){return i.isFocusable(e,t)})},i.findFocusableChild=function(e,t){return void 0===t&&(t=!0),i.findElement(e,function(e){return i.isFocusable(e,t)},!1)}},function(e,p,t){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.appendNodes=function(e,t){for(var n=t.length,r=0;r<n;r++)e.appendChild(t[r].cloneNode(!0))},p.wrapTable=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},p.createTableElement=function(e){var t=e.length,n=e[0].cloneNode(!0),r=n.rows.length;if(1<t)for(var o=0;o<r;o++)for(var i=1;i<t;i++)p.appendNodes(n.rows[o],e[i].rows[o].cells);return n},p.setFirstCellClass=function(e,t){if(1<t.length&&1<e.rows.length)for(var n=1;n<e.rows.length;n++){var r=t[0].rows[n].cells.length,r=e.rows[n].cells[r];-1===String(r.className).indexOf("k-first")&&(r.className+=" k-first")}},p.createTable=function(e,t,n,r){for(var o=document.createElement("table"),i=e[0].cloneNode(!0),s=1;s<e.length;s++)p.appendNodes(i,e[s].querySelectorAll("col"));var a=p.createTableElement(t),n=p.createTableElement(n);return a.className="k-grid-header",p.setFirstCellClass(a,t),o.appendChild(i),o.appendChild(a),o.appendChild(n),r.length&&((t=p.createTableElement(r)).className="k-grid-footer",o.appendChild(t)),p.wrapTable(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(12),o=(t.PDFExport=o.default,n(6)),o=(t.PDFMargin=o.PDFMargin,n(3)),o=(t.savePDF=o.savePDF,n(2)),o=(t.getPageMargin=o.getPageMargin,n(18)),o=(t.GridPDFExport=o.GridPDFExport,n(22)),i=(t.TreeListPDFExport=o.TreeListPDFExport,t);for(r in i)s(r,i[r])},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(4),c=n(5),u=n(2),l=n(7),d=n(16),f=n(17),n=(o=s.Component,i(h,o),h.prototype.render=function(){var t=this;return s.createElement("div",{ref:function(e){t.rootElForPDF=e}},this.props.children)},h.prototype.save=function(e){new l.default(p.drawDOM,p.exportPDF,c.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},h.prototype.getOptions=function(){return Object.assign({},this.props,{margin:u.getPageMargin(this.props)})},h.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},h);function h(e){var t,e=o.call(this,e)||this;return void 0!==d?d.validatePackage(f.packageMetadata):(t=(t="License activation failed for "+f.packageMetadata.name+"\n")+"The @progress/kendo-licensing script is not loaded.\nSee "+f.packageMetadata.licensingDocsUrl+" for more information.\n",console.warn(t)),e}t.default=n},function(e,t,n){"use strict";var s=n(14);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==s)throw(i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",i}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=l},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653456947,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(2),c=n(3),u=n(19),n=(o=s.Component,i(l,o),l.prototype.render=function(){return null},l.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:p.getPageMargin(this.props)}),t,e,this.getCustomColumns())},l.prototype.getSavePDF=function(){return c.savePDF},l.prototype.getGrid=function(){return s.Children.toArray(this.props.children).find(function(e){return e&&"KendoReactGrid"===e.type.displayName})},l.prototype.getCustomColumns=function(){return s.Children.toArray(this.props.children).filter(function(e){return e&&"KendoReactGridColumn"===e.type.displayName})},l.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string},l);function l(e){e=o.call(this,e)||this;return e.saveGridPDF=u.provideSaveGridPDF(e.getSavePDF()),e}t.GridPDFExport=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(8),h=n(0),g=n(20);t.provideSaveGridPDF=function(d){return function(e,t,n,r,o){return s=d,e=e,p=n,n=r,r=o,void 0===(a=t=void 0===t?{}:t)&&(a={}),(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),c.appendChild(u),document.body.appendChild(c),void f.render((n=n&&{data:n,total:n.length,pageSize:n.length,skip:0},o={style:Object.assign({},e.props.style,{width:"1000px"})},n=Object.assign({},n,o),r&&0<r.length?(o=h.Children.toArray(e.props.children).filter(function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}),h.cloneElement(e,n,r.concat(o))):h.cloneElement(e,n)),u,function(){var e;s(((l=document.createElement("div")).className="k-grid-pdf-export-element",e=g.exportElement(u),l.appendChild(e),document.body.appendChild(l),e),a,i)});function i(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,p&&p()}var s,a,p,c,u,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),s=n(10);t.exportElement=function(e){var t,n,r,e=new i.GridQuery(e),o=e.content();return o?(t=[o.querySelector("colgroup")],n=[e.header().querySelector("thead")],o=[o.querySelector("tbody")],r=(r=e.footer())?[r.querySelector("tfoot")]:[],s.createTable(t,n,o,r)):s.wrapTable(e.table().cloneNode(!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return e?"locked":"wrap"}var o=n(9),i=(t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer",o.matchesNodeName("TABLE"));function s(e){this.element=e,this.list=o.findElement(e,o.matchesClasses("k-grid-container"))}s.prototype.content=function(e){return o.findElement(this.list,o.matchesClasses("k-grid-content"+(e?"-locked":"")))},s.prototype.header=function(e){return this.headerWrap=this.headerWrap||o.findElement(this.element,o.matchesClasses(t.HEADER_CLASS)),o.findElement(this.headerWrap,o.matchesClasses(t.HEADER_CLASS+"-"+r(e)))},s.prototype.footer=function(e){return this.footerWrap=this.footerWrap||o.findElement(this.element,o.matchesClasses(t.FOOTER_CLASS)),o.findElement(this.footerWrap,o.matchesClasses(t.FOOTER_CLASS+"-"+r(e)))},s.prototype.table=function(){return o.findElement(this.element,i)},t.GridQuery=s},function(e,t,n){"use strict";var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(0)),a=n(1),p=n(2),c=n(3),u=n(23),n=(o=s.Component,i(l,o),l.prototype.render=function(){return null},l.prototype.save=function(e,t,n){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:p.getPageMargin(this.props)}),n,e,t||[])},l.prototype.getSavePDF=function(){return c.savePDF},l.prototype.getTreeList=function(){var e=this.props.children;if(e&&e.props.data&&e.props.columns)return this.props.children},l.propTypes={author:a.string,avoidLinks:a.oneOfType([a.bool,a.string]),forcePageBreak:a.string,keepTogether:a.string,creator:a.string,date:a.instanceOf(Date),imageResolution:a.number,fileName:a.string,forceProxy:a.bool,keywords:a.string,landscape:a.bool,margin:a.oneOfType([a.string,a.number,a.shape({left:a.oneOfType([a.number,a.string]),top:a.oneOfType([a.number,a.string]),right:a.oneOfType([a.number,a.string]),bottom:a.oneOfType([a.number,a.string])})]),pageTemplate:a.any,paperSize:a.any,repeatHeaders:a.bool,scale:a.number,proxyData:a.any,proxyURL:a.string,proxyTarget:a.string,producer:a.string,subject:a.string,title:a.string,allPages:a.bool},l);function l(e){e=o.call(this,e)||this;return e.saveTreeListPDF=u.provideSaveTreeListPDF(e.getSavePDF()),e}t.TreeListPDFExport=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(8),h=n(0),g=n(24);t.provideSaveTreeListPDF=function(d){return function(e,t,n,r,o){return s=d,e=e,p=n,n=r,r=o,void 0===(a=t=void 0===t?{}:t)&&(a={}),(c=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),c.appendChild(u),document.body.appendChild(c),void f.render((n=a.allPages&&n?{data:n,take:Number.MAX_VALUE,skip:0}:{},o={style:Object.assign({},e.props.style,{width:"1000px"})},n=Object.assign({},n,o),r&&0<r.length?h.cloneElement(e,Object.assign({},n,{columns:r})):h.cloneElement(e,n)),u,function(){var e;s(((l=document.createElement("div")).className="k-treelist-pdf-export-element",e=g.exportElement(u),l.appendChild(e),document.body.appendChild(l),l),a,i)});function i(){document.body.removeChild(c),document.body.removeChild(l),c=l=void 0,p&&p()}var s,a,p,c,u,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),s=n(10);t.exportElement=function(e){var t,n,e=new i.GridQuery(e),r=e.content(),o=e.header();return 1<o.childNodes.length&&o.removeChild(o.childNodes[1]),o.childNodes[0].childNodes.forEach(function(e){return e.style.top=0}),r?(t=[r.querySelector("colgroup")],o=[o],r=[r.querySelector("tbody")],n=(n=e.footer())?[n.querySelector("tfoot")]:[],s.createTable(t,o,r,n)):s.wrapTable(e.table().cloneNode(!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=(t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer",r.matchesNodeName("TABLE"));function i(e){this.element=e,this.list=r.findElement(e,r.matchesClasses("k-grid"))}i.prototype.content=function(){return r.findElement(this.list,r.matchesClasses("k-grid"))},i.prototype.header=function(){return this.headerWrap=this.headerWrap||r.findElement(this.element,r.matchesClasses(t.HEADER_CLASS)),r.findElement(this.headerWrap,r.matchesClasses(""+t.HEADER_CLASS))},i.prototype.footer=function(){return this.footerWrap=this.footerWrap||r.findElement(this.element,r.matchesClasses(t.FOOTER_CLASS)),r.findElement(this.footerWrap,r.matchesClasses(""+t.FOOTER_CLASS))},i.prototype.table=function(){return r.findElement(this.element,o)},t.GridQuery=i}],r={},o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=11)}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-pdf",
3
3
  "description": "KendoReact PDF Processing package",
4
- "version": "5.4.0-dev.202205200719",
4
+ "version": "5.4.0-dev.202205250548",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-react.git"
@@ -42,8 +42,8 @@
42
42
  "@progress/kendo-date-math": "^1.4.1",
43
43
  "@progress/kendo-drawing": "^1.8.0",
44
44
  "@progress/kendo-licensing": "^1.0.1",
45
- "@progress/kendo-react-charts": "5.4.0-dev.202205200719",
46
- "@progress/kendo-react-grid": "5.4.0-dev.202205200719",
45
+ "@progress/kendo-react-charts": "5.4.0-dev.202205250548",
46
+ "@progress/kendo-react-grid": "5.4.0-dev.202205250548",
47
47
  "prop-types": "^15.6.0"
48
48
  },
49
49
  "@progress": {