@progress/kendo-react-pdf 2.7.1-dev.201902271508 → 2.7.1
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
|
-
System.register("@progress/kendo-react-pdf",["react","@progress/kendo-drawing","@progress/kendo-file-saver","react-dom","react-dom/server"],function(u){var n,r,o,i,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var r={};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}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=8)}([function(e,t){e.exports=n},function(e,t,n){e.exports=n(10)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),i=["bottom","left","right","top"];t.getPageMargin=function(e){var t=r.Children.toArray(e.children).find(function(e){return e&&e.type===o.PDFMargin});return t?function(e){for(var t={},n=0;n<i.length;n++){var r=i[n],o=e.props[r];void 0!==o&&(t[r]=o)}return t}(t):e.margin}},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=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:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])},t}(i.Component);t.PDFMargin=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(12),r=function(){function e(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>"}}return e.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)},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||"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}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(4),i=n(6);t.savePDF=function(e,t,n){void 0===t&&(t={}),new i.default(r.drawDOM,r.exportPDF,o.saveAs,e,t).savePDF(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.PDFExport=r.default;var o=n(5);t.PDFMargin=o.PDFMargin;var i=n(7);t.savePDF=i.savePDF;var s=n(2);t.getPageMargin=s.getPageMargin;var a=n(13);t.GridPDFExport=a.GridPDFExport,function(e){for(var t in e)u(t,e[t])}(t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=n(3),u=n(4),p=n(2),c=n(6),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this;return i.createElement("div",{ref:function(e){t.rootElForPDF=e}},this.props.children)},t.prototype.save=function(e){new c.default(a.drawDOM,a.exportPDF,u.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){return Object.assign({},this.props,{margin:p.getPageMargin(this.props)})},t.propTypes={author:s.string,avoidLinks:s.oneOfType([s.bool,s.string]),forcePageBreak:s.string,keepTogether:s.string,creator:s.string,date:s.instanceOf(Date),imageResolution:s.number,fileName:s.string,forceProxy:s.bool,keywords:s.string,landscape:s.bool,margin:s.oneOfType([s.string,s.number,s.shape({left:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])})]),pageTemplate:s.any,paperSize:s.any,repeatHeaders:s.bool,scale:s.number,proxyData:s.any,proxyURL:s.string,proxyTarget:s.string,producer:s.string,subject:s.string,title:s.string},t}(i.Component);t.default=l},function(e,t,n){"use strict";var a=n(11);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=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");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=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=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=n(2),u=n(7),p=n(14),c=function(n){function e(e){var t=n.call(this,e)||this;return t.saveGridPDF=p.provideSaveGridPDF(t.getSavePDF()),t}return o(e,n),e.prototype.render=function(){return null},e.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:a.getPageMargin(this.props)}),t,e,this.getCustomColumns())},e.prototype.getSavePDF=function(){return u.savePDF},e.prototype.getGrid=function(){return i.Children.toArray(this.props.children).find(function(e){return e&&"KendoReactGrid"===e.type.displayName})},e.prototype.getCustomColumns=function(){return i.Children.toArray(this.props.children).filter(function(e){return e&&"KendoReactGridColumn"===e.type.displayName})},e.propTypes={author:s.string,avoidLinks:s.oneOfType([s.bool,s.string]),forcePageBreak:s.string,keepTogether:s.string,creator:s.string,date:s.instanceOf(Date),imageResolution:s.number,fileName:s.string,forceProxy:s.bool,keywords:s.string,landscape:s.bool,margin:s.oneOfType([s.string,s.number,s.shape({left:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])})]),pageTemplate:s.any,paperSize:s.any,repeatHeaders:s.bool,scale:s.number,proxyData:s.any,proxyURL:s.string,proxyTarget:s.string,producer:s.string,subject:s.string,title:s.string},e}(i.Component);t.GridPDFExport=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(15),l=n(0),f=n(16);t.provideSaveGridPDF=function(i){return function(e,t,n,r,o){return void 0===t&&(t={}),function(e,i,t,n,s,a){var r,o,u;function p(){document.body.removeChild(r),document.body.removeChild(u),r=u=void 0,n&&n()}void 0===t&&(t={}),(r=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),o=document.createElement("div"),r.appendChild(o),document.body.appendChild(r),c.render(function(){var e,t=s&&{data:s,total:s.length,pageSize:s.length,skip:0},n={style:Object.assign({},i.props.style,{width:"1000px"})},r=Object.assign({},t,n);if(a&&0<a.length){var o=(e=i,l.Children.toArray(e.props.children).filter(function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}));return l.cloneElement(i,r,a.concat(o))}return l.cloneElement(i,r)}(),o,function(){e(function(){(u=document.createElement("div")).className="k-grid-pdf-export-element";var e=f.exportElement(o);return u.appendChild(e),document.body.appendChild(u),e}(),t,p)})}(i,e,t,n,r,o)}}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(17),l=function(e,t){for(var n=t.length,r=0;r<n;r++)e.appendChild(t[r].cloneNode(!0))},f=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},d=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++)l(n.rows[o],e[i].rows[o].cells);return n};t.exportElement=function(e){var t,n=new c.GridQuery(e),r=n.content();if(r){var o=[r.querySelector("colgroup")],i=[n.header().querySelector("thead")],s=[r.querySelector("tbody")],a=n.footer();t=function(e,t,n,r){for(var o=document.createElement("table"),i=e[0].cloneNode(!0),s=1;s<e.length;s++)l(i,e[s].querySelectorAll("col"));var a=d(t),u=d(n);if(a.className=c.HEADER_CLASS,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,o=e.rows[n].cells[r];-1===String(o.className).indexOf("k-first")&&(o.className+=" k-first")}}(a,t),o.appendChild(i),o.appendChild(a),o.appendChild(u),r.length){var p=d(r);p.className=c.FOOTER_CLASS,o.appendChild(p)}return f(o)}(o,i,s,a?[a.querySelector("tfoot")]:[])}else t=f(n.table().cloneNode(!0));return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=r.matchesNodeName("TABLE"),i=function(e){return e?"locked":"wrap"},s=function(){function e(e){this.element=e,this.list=r.findElement(e,r.matchesClasses("k-grid-container"))}return e.prototype.content=function(e){return r.findElement(this.list,r.matchesClasses("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||r.findElement(this.element,r.matchesClasses(t.HEADER_CLASS)),r.findElement(this.headerWrap,r.matchesClasses(t.HEADER_CLASS+"-"+i(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||r.findElement(this.element,r.matchesClasses(t.FOOTER_CLASS)),r.findElement(this.footerWrap,r.matchesClasses(t.FOOTER_CLASS+"-"+i(e)))},e.prototype.table=function(){return r.findElement(this.element,o)},e}();t.GridQuery=s},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=/^(?:a|input|select|option|textarea|button|object)$/i,n={},r=function(e){return String(e).trim().split(" ")};s.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},s.matchesClasses=function(t){return function(e){return s.hasClasses(e,t)}},s.matchesNodeName=function(t){return n[t]||(n[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),n[t]},s.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},s.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},s.contains=function(t,n,e){if(void 0===e&&(e=!1),!s.closest(n,function(e){return e===t}))return!1;var r=s.closest(n,function(e){return e===n});return r&&(e||r!==t)},s.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},s.isFocusable=function(e,t){if(void 0===t&&(t=!0),e.tagName){var n=e.tagName.toLowerCase(),r=e.getAttribute("tabIndex"),o="-1"===r,i=null!==r&&!o;return a.test(n)&&(i=!e.disabled&&!o),i&&(!t||s.isVisible(e))}return!1},s.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=s.findElement(e,t);if(r)return r}e=e.nextSibling}}},s.findFocusable=function(e,t){return void 0===t&&(t=!0),s.findElement(e,function(e){return s.isFocusable(e,t)})},s.findFocusableChild=function(e,t){return void 0===t&&(t=!0),s.findElement(e,function(e){return s.isFocusable(e,t)},!1)}}])}}});
|
|
1
|
+
System.register("@progress/kendo-react-pdf",["react","@progress/kendo-file-saver","@progress/kendo-drawing","react-dom","react-dom/server"],function(u){var n,r,o,i,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){i=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var r={};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}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=8)}([function(e,t){e.exports=n},function(e,t,n){e.exports=n(10)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),i=["bottom","left","right","top"];t.getPageMargin=function(e){var t=r.Children.toArray(e.children).find(function(e){return e&&e.type===o.PDFMargin});return t?function(e){for(var t={},n=0;n<i.length;n++){var r=i[n],o=e.props[r];void 0!==o&&(t[r]=o)}return t}(t):e.margin}},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=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:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])},t}(i.Component);t.PDFMargin=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(12),r=function(){function e(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>"}}return e.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)},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||"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}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(4),i=n(6);t.savePDF=function(e,t,n){void 0===t&&(t={}),new i.default(r.drawDOM,r.exportPDF,o.saveAs,e,t).savePDF(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.PDFExport=r.default;var o=n(5);t.PDFMargin=o.PDFMargin;var i=n(7);t.savePDF=i.savePDF;var s=n(2);t.getPageMargin=s.getPageMargin;var a=n(13);t.GridPDFExport=a.GridPDFExport,function(e){for(var t in e)u(t,e[t])}(t)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=n(3),u=n(4),p=n(2),c=n(6),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this;return i.createElement("div",{ref:function(e){t.rootElForPDF=e}},this.props.children)},t.prototype.save=function(e){new c.default(a.drawDOM,a.exportPDF,u.saveAs,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){return Object.assign({},this.props,{margin:p.getPageMargin(this.props)})},t.propTypes={author:s.string,avoidLinks:s.oneOfType([s.bool,s.string]),forcePageBreak:s.string,keepTogether:s.string,creator:s.string,date:s.instanceOf(Date),imageResolution:s.number,fileName:s.string,forceProxy:s.bool,keywords:s.string,landscape:s.bool,margin:s.oneOfType([s.string,s.number,s.shape({left:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])})]),pageTemplate:s.any,paperSize:s.any,repeatHeaders:s.bool,scale:s.number,proxyData:s.any,proxyURL:s.string,proxyTarget:s.string,producer:s.string,subject:s.string,title:s.string},t}(i.Component);t.default=l},function(e,t,n){"use strict";var a=n(11);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=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");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=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=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=n(2),u=n(7),p=n(14),c=function(n){function e(e){var t=n.call(this,e)||this;return t.saveGridPDF=p.provideSaveGridPDF(t.getSavePDF()),t}return o(e,n),e.prototype.render=function(){return null},e.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:a.getPageMargin(this.props)}),t,e,this.getCustomColumns())},e.prototype.getSavePDF=function(){return u.savePDF},e.prototype.getGrid=function(){return i.Children.toArray(this.props.children).find(function(e){return e&&"KendoReactGrid"===e.type.displayName})},e.prototype.getCustomColumns=function(){return i.Children.toArray(this.props.children).filter(function(e){return e&&"KendoReactGridColumn"===e.type.displayName})},e.propTypes={author:s.string,avoidLinks:s.oneOfType([s.bool,s.string]),forcePageBreak:s.string,keepTogether:s.string,creator:s.string,date:s.instanceOf(Date),imageResolution:s.number,fileName:s.string,forceProxy:s.bool,keywords:s.string,landscape:s.bool,margin:s.oneOfType([s.string,s.number,s.shape({left:s.oneOfType([s.number,s.string]),top:s.oneOfType([s.number,s.string]),right:s.oneOfType([s.number,s.string]),bottom:s.oneOfType([s.number,s.string])})]),pageTemplate:s.any,paperSize:s.any,repeatHeaders:s.bool,scale:s.number,proxyData:s.any,proxyURL:s.string,proxyTarget:s.string,producer:s.string,subject:s.string,title:s.string},e}(i.Component);t.GridPDFExport=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(15),l=n(0),f=n(16);t.provideSaveGridPDF=function(i){return function(e,t,n,r,o){return void 0===t&&(t={}),function(e,i,t,n,s,a){var r,o,u;function p(){document.body.removeChild(r),document.body.removeChild(u),r=u=void 0,n&&n()}void 0===t&&(t={}),(r=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),o=document.createElement("div"),r.appendChild(o),document.body.appendChild(r),c.render(function(){var e,t=s&&{data:s,total:s.length,pageSize:s.length,skip:0},n={style:Object.assign({},i.props.style,{width:"1000px"})},r=Object.assign({},t,n);if(a&&0<a.length){var o=(e=i,l.Children.toArray(e.props.children).filter(function(e){return e&&"KendoReactGridColumn"!==e.type.displayName}));return l.cloneElement(i,r,a.concat(o))}return l.cloneElement(i,r)}(),o,function(){e(function(){(u=document.createElement("div")).className="k-grid-pdf-export-element";var e=f.exportElement(o);return u.appendChild(e),document.body.appendChild(u),e}(),t,p)})}(i,e,t,n,r,o)}}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(17),l=function(e,t){for(var n=t.length,r=0;r<n;r++)e.appendChild(t[r].cloneNode(!0))},f=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},d=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++)l(n.rows[o],e[i].rows[o].cells);return n};t.exportElement=function(e){var t,n=new c.GridQuery(e),r=n.content();if(r){var o=[r.querySelector("colgroup")],i=[n.header().querySelector("thead")],s=[r.querySelector("tbody")],a=n.footer();t=function(e,t,n,r){for(var o=document.createElement("table"),i=e[0].cloneNode(!0),s=1;s<e.length;s++)l(i,e[s].querySelectorAll("col"));var a=d(t),u=d(n);if(a.className=c.HEADER_CLASS,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,o=e.rows[n].cells[r];-1===String(o.className).indexOf("k-first")&&(o.className+=" k-first")}}(a,t),o.appendChild(i),o.appendChild(a),o.appendChild(u),r.length){var p=d(r);p.className=c.FOOTER_CLASS,o.appendChild(p)}return f(o)}(o,i,s,a?[a.querySelector("tfoot")]:[])}else t=f(n.table().cloneNode(!0));return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var o=r.matchesNodeName("TABLE"),i=function(e){return e?"locked":"wrap"},s=function(){function e(e){this.element=e,this.list=r.findElement(e,r.matchesClasses("k-grid-container"))}return e.prototype.content=function(e){return r.findElement(this.list,r.matchesClasses("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||r.findElement(this.element,r.matchesClasses(t.HEADER_CLASS)),r.findElement(this.headerWrap,r.matchesClasses(t.HEADER_CLASS+"-"+i(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||r.findElement(this.element,r.matchesClasses(t.FOOTER_CLASS)),r.findElement(this.footerWrap,r.matchesClasses(t.FOOTER_CLASS+"-"+i(e)))},e.prototype.table=function(){return r.findElement(this.element,o)},e}();t.GridQuery=s},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=/^(?:a|input|select|option|textarea|button|object)$/i,n={},r=function(e){return String(e).trim().split(" ")};s.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},s.matchesClasses=function(t){return function(e){return s.hasClasses(e,t)}},s.matchesNodeName=function(t){return n[t]||(n[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),n[t]},s.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},s.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},s.contains=function(t,n,e){if(void 0===e&&(e=!1),!s.closest(n,function(e){return e===t}))return!1;var r=s.closest(n,function(e){return e===n});return r&&(e||r!==t)},s.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},s.isFocusable=function(e,t){if(void 0===t&&(t=!0),e.tagName){var n=e.tagName.toLowerCase(),r=e.getAttribute("tabIndex"),o="-1"===r,i=null!==r&&!o;return a.test(n)&&(i=!e.disabled&&!o),i&&(!t||s.isVisible(e))}return!1},s.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=s.findElement(e,t);if(r)return r}e=e.nextSibling}}},s.findFocusable=function(e,t){return void 0===t&&(t=!0),s.findElement(e,function(e){return s.isFocusable(e,t)})},s.findFocusableChild=function(e,t){return void 0===t&&(t=!0),s.findElement(e,function(e){return s.isFocusable(e,t)},!1)}}])}}});
|
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": "2.7.1
|
|
4
|
+
"version": "2.7.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-react.git"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@progress/kendo-drawing": "^1.2.0",
|
|
35
|
-
"@progress/kendo-react-grid": "2.7.1
|
|
35
|
+
"@progress/kendo-react-grid": "2.7.1",
|
|
36
36
|
"prop-types": "^15.6.0"
|
|
37
37
|
},
|
|
38
38
|
"@progress": {
|