Socket
Socket
Sign inDemoInstall

@progress/kendo-angular-pdf-export

Package Overview
Dependencies
Maintainers
1
Versions
692
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-pdf-export - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0-dev.201902131513

dist/fesm2015/index.js

2

dist/cdn/js/kendo-angular-pdf-export.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-drawing"],t):"object"==typeof exports?exports.KendoAngularPdfExport=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing")):e.KendoAngularPdfExport=t(e.tslib,e["@angular/core"],e["@progress/kendo-drawing"])}(this,function(e,t,o){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1);t.PDFExportComponent=r.PDFExportComponent;var n=o(9);t.PDFExportModule=n.PDFExportModule;var a=o(7);t.PDFMarginComponent=a.PDFMarginComponent;var i=o(6);t.PDFTemplateDirective=i.PDFTemplateDirective;var p=o(8);t.compileTemplate=p.compileTemplate},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),n=o(3),a=o(4),i=o(5),p=o(6),d=o(7),s=o(8),c=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=s.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return a.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return a.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){i.saveAs(e,t,o)},r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([n.ContentChild(p.PDFTemplateDirective),r.__metadata("design:type",p.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([n.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[n.ElementRef])],e)}();t.PDFExportComponent=c},function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){"use strict";function o(e,t,o){void 0===o&&(o={});var i=a;if(o.forceProxy&&!o.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");o.forceProxy||(s()&&(i=n),navigator.msSaveBlob&&(i=r)),i(e,t,o)}function r(e,t){var o=e;if("string"==typeof e){for(var r=e.split(";base64,"),n=r[0],a=atob(r[1]),i=new Uint8Array(a.length),p=0;p<a.length;p++)i[p]=a.charCodeAt(p);o=new Blob([i.buffer],{type:n})}navigator.msSaveBlob(o,t)}function n(e,t){var o=e;window.Blob&&e instanceof Blob&&(o=URL.createObjectURL(e));var r=d();r.download=t,r.href=o;var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(n),setTimeout(function(){return URL.revokeObjectURL(o)})}function a(e,t,o){if(o.proxyURL){var r=document.createElement("form");r.setAttribute("action",o.proxyURL),r.setAttribute("method","POST"),r.setAttribute("target",o.proxyTarget||"_self");var n=o.proxyData||{};n.fileName=t;var a=e.split(";base64,");n.contentType=a[0].replace("data:",""),n.base64=a[1];for(var i in n)if(n.hasOwnProperty(i)){var p=document.createElement("input");p.setAttribute("type","hidden"),p.setAttribute("name",i),p.setAttribute("value",n[i]),r.appendChild(p)}document.body.appendChild(r),r.submit(),document.body.removeChild(r)}}function i(e){for(var t,o,r,n,a,i,d,s=p(e),u="",l=0;l<s.length;)t=s.charCodeAt(l++),o=s.charCodeAt(l++),r=s.charCodeAt(l++),n=t>>2,a=(3&t)<<4|o>>4,i=(15&o)<<2|r>>6,d=63&r,isNaN(o)?i=d=64:isNaN(r)&&(d=64),u=u+c.charAt(n)+c.charAt(a)+c.charAt(i)+c.charAt(d);return u}function p(e){for(var t="",o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?t+=u(r):r<2048?(t+=u(192|r>>>6),t+=u(128|63&r)):r<65536&&(t+=u(224|r>>>12),t+=u(128|r>>>6&63),t+=u(128|63&r))}return t}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){return document.createElement("a")},s=function(){return"download"in d()},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=String.fromCharCode;t.saveAs=o,t.encodeBase64=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),n=o(3),a=function(){function e(e){this.templateRef=e}return e=r.__decorate([n.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PDFTemplateDirective=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),n=o(3),a=["bottom","left","right","top"],i=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<a.length;t++){var o=a[t],r=this[o];"undefined"!=typeof r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var t={},o=e.createEmbeddedView(t),r=function(e){Object.assign(t,e),o.detectChanges();var r=document.createElement("span");return o.rootNodes.forEach(function(e){r.appendChild(e.cloneNode(!0))}),r};return r.destroy=function(){o.destroy(),o=null},r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),n=o(3),a=o(1),i=o(7),p=o(6),d=[a.PDFExportComponent,i.PDFMarginComponent,p.PDFTemplateDirective],s=function(){function e(){}return e=r.__decorate([n.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=s}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-drawing"],t):"object"==typeof exports?exports.KendoAngularPdfExport=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing")):e.KendoAngularPdfExport=t(e.tslib,e["@angular/core"],e["@progress/kendo-drawing"])}(window,function(e,t,o){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},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=6)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=function(){function e(e){this.templateRef=e}return e=r.__decorate([n.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PDFTemplateDirective=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=["bottom","left","right","top"],i=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<a.length;t++){var o=a[t],r=this[o];void 0!==r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=o(7),i=o(9),p=o(2),d=o(3),c=o(5),u=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=c.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return a.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return a.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){i.saveAs(e,t,o)},r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([n.ContentChild(p.PDFTemplateDirective),r.__metadata("design:type",p.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([n.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[n.ElementRef])],e)}();t.PDFExportComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var t={},o=e.createEmbeddedView(t),r=function(e){Object.assign(t,e),o.detectChanges();var r=document.createElement("span");return o.rootNodes.forEach(function(e){r.appendChild(e.cloneNode(!0))}),r};return r.destroy=function(){o.destroy(),o=null},r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.PDFExportComponent=r.PDFExportComponent;var n=o(8);t.PDFExportModule=n.PDFExportModule;var a=o(3);t.PDFMarginComponent=a.PDFMarginComponent;var i=o(2);t.PDFTemplateDirective=i.PDFTemplateDirective;var p=o(5);t.compileTemplate=p.compileTemplate},function(e,t){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=o(4),i=o(3),p=o(2),d=[a.PDFExportComponent,i.PDFMarginComponent,p.PDFTemplateDirective],c=function(){function e(){}return e=r.__decorate([n.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=c},function(e,t,o){"use strict";function r(e,t,o){void 0===o&&(o={});var r=d;if(o.forceProxy&&!o.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");o.forceProxy||(a()&&(r=p),navigator.msSaveBlob&&(r=i)),r(e,t,o)}o.r(t);var n=function(){return document.createElement("a")},a=function(){return"download"in n()};function i(e,t){var o=e;if("string"==typeof e){for(var r=e.split(";base64,"),n=r[0],a=atob(r[1]),i=new Uint8Array(a.length),p=0;p<a.length;p++)i[p]=a.charCodeAt(p);o=new Blob([i.buffer],{type:n})}navigator.msSaveBlob(o,t)}function p(e,t){var o=e;window.Blob&&e instanceof Blob&&(o=URL.createObjectURL(e));var r=n();r.download=t,r.href=o;var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(a),setTimeout(function(){return URL.revokeObjectURL(o)})}function d(e,t,o){if(o.proxyURL){var r=document.createElement("form");r.setAttribute("action",o.proxyURL),r.setAttribute("method","POST"),r.setAttribute("target",o.proxyTarget||"_self");var n=o.proxyData||{};n.fileName=t;var a=e.split(";base64,");for(var i in n.contentType=a[0].replace("data:",""),n.base64=a[1],n)if(n.hasOwnProperty(i)){var p=document.createElement("input");p.setAttribute("type","hidden"),p.setAttribute("name",i),p.setAttribute("value",n[i]),r.appendChild(p)}document.body.appendChild(r),r.submit(),document.body.removeChild(r)}}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=String.fromCharCode;function s(e){for(var t,o,r,n,a,i,p,d=function(e){for(var t="",o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?t+=u(r):r<2048?(t+=u(192|r>>>6),t+=u(128|63&r)):r<65536&&(t+=u(224|r>>>12),t+=u(128|r>>>6&63),t+=u(128|63&r))}return t}(e),s="",l=0;l<d.length;)n=(t=d.charCodeAt(l++))>>2,a=(3&t)<<4|(o=d.charCodeAt(l++))>>4,i=(15&o)<<2|(r=d.charCodeAt(l++))>>6,p=63&r,isNaN(o)?i=p=64:isNaN(r)&&(p=64),s=s+c.charAt(n)+c.charAt(a)+c.charAt(i)+c.charAt(p);return s}o.d(t,"saveAs",function(){return r}),o.d(t,"encodeBase64",function(){return s})}])});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-drawing","@progress/kendo-file-saver"],t):"object"==typeof exports?exports.KendoAngularPdfExport=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):e.KendoAngularPdfExport=t(e.tslib,e["@angular/core"],e["@progress/kendo-drawing"],e["@progress/kendo-file-saver"])}(this,function(e,t,o,r){return function(e){function t(r){if(o[r])return o[r].exports;var a=o[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1);t.PDFExportComponent=r.PDFExportComponent;var a=o(9);t.PDFExportModule=a.PDFExportModule;var n=o(7);t.PDFMarginComponent=n.PDFMarginComponent;var p=o(6);t.PDFTemplateDirective=p.PDFTemplateDirective;var i=o(8);t.compileTemplate=i.compileTemplate},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=o(4),p=o(5),i=o(6),d=o(7),s=o(8),c=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=s.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return n.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return n.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){p.saveAs(e,t,o)},r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([a.ContentChild(i.PDFTemplateDirective),r.__metadata("design:type",i.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([a.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),e=r.__decorate([a.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[a.ElementRef])],e)}();t.PDFExportComponent=c},function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=function(){function e(e){this.templateRef=e}return e=r.__decorate([a.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,a.Optional()),r.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.PDFTemplateDirective=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=["bottom","left","right","top"],p=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<n.length;t++){var o=n[t],r=this[o];"undefined"!=typeof r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),e=r.__decorate([a.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var t={},o=e.createEmbeddedView(t),r=function(e){Object.assign(t,e),o.detectChanges();var r=document.createElement("span");return o.rootNodes.forEach(function(e){r.appendChild(e.cloneNode(!0))}),r};return r.destroy=function(){o.destroy(),o=null},r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=o(1),p=o(7),i=o(6),d=[n.PDFExportComponent,p.PDFMarginComponent,i.PDFTemplateDirective],s=function(){function e(){}return e=r.__decorate([a.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=s}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-drawing","@progress/kendo-file-saver"],t):"object"==typeof exports?exports.KendoAngularPdfExport=t(require("tslib"),require("@angular/core"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):e.KendoAngularPdfExport=t(e.tslib,e["@angular/core"],e["@progress/kendo-drawing"],e["@progress/kendo-file-saver"])}(window,function(e,t,o,r){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},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=6)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=function(){function e(e){this.templateRef=e}return e=r.__decorate([n.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PDFTemplateDirective=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=["bottom","left","right","top"],i=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<a.length;t++){var o=a[t],r=this[o];void 0!==r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=o(7),i=o(8),p=o(2),d=o(3),s=o(5),u=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=s.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return a.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return a.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){i.saveAs(e,t,o)},r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([n.ContentChild(p.PDFTemplateDirective),r.__metadata("design:type",p.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([n.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),e=r.__decorate([n.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[n.ElementRef])],e)}();t.PDFExportComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var t={},o=e.createEmbeddedView(t),r=function(e){Object.assign(t,e),o.detectChanges();var r=document.createElement("span");return o.rootNodes.forEach(function(e){r.appendChild(e.cloneNode(!0))}),r};return r.destroy=function(){o.destroy(),o=null},r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.PDFExportComponent=r.PDFExportComponent;var n=o(9);t.PDFExportModule=n.PDFExportModule;var a=o(3);t.PDFMarginComponent=a.PDFMarginComponent;var i=o(2);t.PDFTemplateDirective=i.PDFTemplateDirective;var p=o(5);t.compileTemplate=p.compileTemplate},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(1),a=o(4),i=o(3),p=o(2),d=[a.PDFExportComponent,i.PDFMarginComponent,p.PDFTemplateDirective],s=function(){function e(){}return e=r.__decorate([n.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=s}])});

@@ -1,1 +0,1 @@

System.register("@progress/kendo-angular-pdf-export",["tslib","@progress/kendo-drawing","@angular/core","@progress/kendo-file-saver"],function(d){var o,r,a,n;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){r=t(e)},function(e){a=t(e)},function(e){n=t(e)}],execute:function(){!function(o){var r={};function a(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return o[e].call(t.exports,t,t.exports,a),t.loaded=!0,t.exports}a.m=o,a.c=r,a.p="",a(0)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1);t.PDFExportComponent=r.PDFExportComponent;var a=o(9);t.PDFExportModule=a.PDFExportModule;var n=o(7);t.PDFMarginComponent=n.PDFMarginComponent;var p=o(6);t.PDFTemplateDirective=p.PDFTemplateDirective;var i=o(8);t.compileTemplate=i.compileTemplate,function(e){for(var t in e)d(t,e[t])}(t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=o(4),p=o(5),i=o(6),d=o(7),s=o(8),c=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=s.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return n.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return n.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){p.saveAs(e,t,o)},r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([a.ContentChild(i.PDFTemplateDirective),r.__metadata("design:type",i.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([a.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),e=r.__decorate([a.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[a.ElementRef])],e)}();t.PDFExportComponent=c},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=function(){function e(e){this.templateRef=e}return e=r.__decorate([a.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,a.Optional()),r.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.PDFTemplateDirective=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=["bottom","left","right","top"],p=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<n.length;t++){var o=n[t],r=this[o];void 0!==r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),e=r.__decorate([a.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var o={},r=e.createEmbeddedView(o),t=function(e){Object.assign(o,e),r.detectChanges();var t=document.createElement("span");return r.rootNodes.forEach(function(e){t.appendChild(e.cloneNode(!0))}),t};return t.destroy=function(){r.destroy(),r=null},t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),a=o(3),n=o(1),p=o(7),i=o(6),d=[n.PDFExportComponent,p.PDFMarginComponent,i.PDFTemplateDirective],s=function(){function e(){}return e=r.__decorate([a.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=s}])}}});
System.register("@progress/kendo-angular-pdf-export",["tslib","@angular/core","@progress/kendo-drawing","@progress/kendo-file-saver"],function(d){var o,r,n,a;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){r=t(e)},function(e){n=t(e)},function(e){a=t(e)}],execute:function(){!function(o){var r={};function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=o,n.c=r,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=o(0),a=["bottom","left","right","top"],p=function(){function e(){}return Object.defineProperty(e.prototype,"options",{get:function(){for(var e={},t=0;t<a.length;t++){var o=a[t],r=this[o];void 0!==r&&(e[o]=r)}return e},enumerable:!0,configurable:!0}),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"left",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"top",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"right",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"bottom",void 0),r.__decorate([n.Component({selector:"kendo-pdf-export-margin",template:""})],e)}();t.PDFMarginComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=o(0),a=function(){function e(e){this.templateRef=e}return r.__decorate([n.Directive({selector:"[kendoPDFTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PDFTemplateDirective=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileTemplate=function(e){var o={},r=e.createEmbeddedView(o),t=function(e){Object.assign(o,e),r.detectChanges();var t=document.createElement("span");return r.rootNodes.forEach(function(e){t.appendChild(e.cloneNode(!0))}),t};return t.destroy=function(){r.destroy(),r=null},t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=o(0),a=o(8),p=o(7),i=o(3),d=o(2),s=o(4),c=function(){function e(e){this.element=e,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf"}return Object.defineProperty(e.prototype,"drawMargin",{get:function(){var e=this.marginComponent,t=this.margin;return e&&(t=Object.assign(t||{},e.options)),t},enumerable:!0,configurable:!0}),e.prototype.saveAs=function(e){void 0===e&&(e=this.fileName),this.save(this.element.nativeElement,e)},e.prototype.export=function(){return this.exportElement(this.element.nativeElement)},e.prototype.save=function(e,t){var o=this;this.exportElement(e).then(function(e){return o.exportGroup(e,o.pdfOptions())}).then(function(e){return o.saveDataUri(e,t,o.saveOptions())})},e.prototype.exportElement=function(e){var t=this.drawElement(e,this.drawOptions()),o=this.cleanup.bind(this);return t.then(o,o),t},e.prototype.cleanup=function(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)},e.prototype.drawOptions=function(){return this.pageTemplateDirective&&(this.pageTemplate=s.compileTemplate(this.pageTemplateDirective.templateRef)),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}},e.prototype.pdfOptions=function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}},e.prototype.saveOptions=function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},e.prototype.drawElement=function(e,t){return a.drawDOM(e,t)},e.prototype.exportGroup=function(e,t){return a.exportPDF(e,t)},e.prototype.saveDataUri=function(e,t,o){p.saveAs(e,t,o)},r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"forcePageBreak",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keepTogether",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"landscape",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"paperSize",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],e.prototype,"repeatHeaders",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([n.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),r.__decorate([n.ContentChild(i.PDFTemplateDirective),r.__metadata("design:type",i.PDFTemplateDirective)],e.prototype,"pageTemplateDirective",void 0),r.__decorate([n.ContentChild(d.PDFMarginComponent),r.__metadata("design:type",d.PDFMarginComponent)],e.prototype,"marginComponent",void 0),r.__decorate([n.Component({selector:"kendo-pdf-export",template:"<div><ng-content></ng-content></div>"}),r.__metadata("design:paramtypes",[n.ElementRef])],e)}();t.PDFExportComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),n=o(0),a=o(5),p=o(2),i=o(3),d=[a.PDFExportComponent,p.PDFMarginComponent,i.PDFTemplateDirective],s=function(){function e(){}return r.__decorate([n.NgModule({declarations:[d],exports:[d]})],e)}();t.PDFExportModule=s},function(e,t){e.exports=a},function(e,t){e.exports=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(5);t.PDFExportComponent=r.PDFExportComponent;var n=o(6);t.PDFExportModule=n.PDFExportModule;var a=o(2);t.PDFMarginComponent=a.PDFMarginComponent;var p=o(3);t.PDFTemplateDirective=p.PDFTemplateDirective;var i=o(4);t.compileTemplate=i.compileTemplate,function(e){for(var t in e)d(t,e[t])}(t)}])}}});

@@ -7,6 +7,6 @@ # Kendo UI for Angular

This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI Complete**](http://www.telerik.com/purchase/license-agreement/kendo-ui-complete). If you do not own a commercial license, this file shall be governed by the trial license terms.
This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI**](http://www.telerik.com/purchase/license-agreement/kendo-ui). If you do not own a commercial license, this file shall be governed by the trial license terms.
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
*Copyright © 2018 Telerik EAD. All rights reserved.*
*Copyright © 2019 Progress Software EAD. All rights reserved.*

@@ -5,8 +5,10 @@ {

"author": "Progress",
"license": "SEE LICENSE IN LICENSE.md",
"version": "1.2.0",
"license": "SEE LICENSE in LICENSE.md",
"version": "1.3.0-dev.201902131513",
"main": "dist/npm/index.js",
"module": "dist/es/index.js",
"module": "dist/fesm5/index.js",
"es2015": "dist/fesm2015/index.js",
"esm5": "dist/es/index.js",
"esm2015": "dist/es2015/index.js",
"jsnext:main": "dist/es/index.js",
"es2015": "dist/es2015/index.js",
"typings": "dist/es2015/index.d.ts",

@@ -17,3 +19,4 @@ "jsdelivr": "dist/cdn/main.js",

"scripts": {
"test": "gulp test",
"test": "jest",
"test:watch": "jest --watch",
"e2e": "gulp e2e",

@@ -38,17 +41,17 @@ "start": "gulp start",

"@progress/kendo-file-saver": "^1.0.1",
"@progress/kendo-schematics": "^0.2.0",
"tslib": "^1.7.0"
},
"devDependencies": {
"@angular/animations": "^4.3.0",
"@angular/common": "^4.3.0",
"@angular/compiler": "^4.3.0",
"@angular/compiler-cli": "^4.3.0",
"@angular/core": "^4.3.0",
"@angular-devkit/core": "^0.8.9",
"@angular-devkit/schematics": "^0.8.9",
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.3.0",
"@angular/platform-browser": "^4.3.0",
"@angular/platform-browser-dynamic": "^4.3.0",
"@angular/platform-server": "^4.3.0",
"@angular-devkit/core": "^0.6.0",
"@angular-devkit/schematics": "^0.6.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "^4.0.0",
"@krux/condition-jenkins": "1.0.1",

@@ -62,9 +65,11 @@ "@progress/kendo-angular-buttons": "^1.0.5",

"@progress/kendo-angular-intl": "^1.2.1",
"@progress/kendo-angular-jest-preset": "^1.1.4",
"@progress/kendo-angular-l10n": "^1.0.1",
"@progress/kendo-angular-tasks": "^10.2.0",
"@progress/kendo-angular-tasks": "^13.1.0",
"@progress/kendo-data-query": "^1.0.5",
"@progress/kendo-drawing": "^1.2.0",
"@progress/kendo-schematics": "^0.2.5",
"@progress/kendo-theme-default": "^2.38.2",
"@telerik/semantic-prerelease": "^1.0.0",
"@types/jasmine": "2.2.34",
"@types/jest": "^21.1.8",
"@types/zone.js": "0.0.27",

@@ -76,6 +81,7 @@ "codelyzer": "^3.0.0",

"gulp": "^3.9.0",
"rxjs": "^5.0.1",
"jest-cli": "^21.2.1",
"rxjs": "^5.5.0",
"rxjs-tslint-rules": "^3.6.0",
"semantic-release": "^6.3.6",
"tslint": "^5.0.0",
"tslint": "^5.4.3",
"typescript": "~2.5.0",

@@ -108,2 +114,5 @@ "validate-commit-msg": "^1.1.1",

},
"jest": {
"preset": "@progress/kendo-angular-jest-preset"
},
"repository": {

@@ -110,0 +119,0 @@ "type": "git",

@@ -11,3 +11,3 @@ <a href="https://www.telerik.com/kendo-angular-ui/" target="_blank">

This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI Complete**](http://www.telerik.com/purchase/license-agreement/kendo-ui-complete). If you do not own a commercial license, this file shall be governed by the trial license terms.
This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI**](http://www.telerik.com/purchase/license-agreement/kendo-ui). If you do not own a commercial license, this file shall be governed by the trial license terms.

@@ -29,4 +29,4 @@ All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.

*Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
*Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc