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.1.2 to 1.2.0-dev.201810182221

2

dist/es/pdf-export.component.js

@@ -8,3 +8,3 @@ import { Component, ContentChild, ElementRef, Input } from '@angular/core';

/**
* Represents the Kendo UI PDF Export component for Angular.
* Represents the [Kendo UI PDF Export component for Angular]({% slug overview_pdfexport %}).
*

@@ -11,0 +11,0 @@ * @example

@@ -11,3 +11,3 @@ import { NgModule } from '@angular/core';

/**
* Represents the [NgModule](https://angular.io/guide/ngmodule) definition for the PDF Export directive.
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
*/

@@ -14,0 +14,0 @@ var PDFExportModule = /** @class */ (function () {

@@ -8,3 +8,3 @@ import { ElementRef } from '@angular/core';

/**
* Represents the Kendo UI PDF Export component for Angular.
* Represents the [Kendo UI PDF Export component for Angular]({% slug overview_pdfexport %}).
*

@@ -43,7 +43,9 @@ * @example

/**
* An optional CSS selector that specifies the elements which cause the page breaks.
* An optional CSS selector that specifies the elements which cause the page breaks
* ([see example]({% slug multipagecontent_pdfexport %}#toc-manual-page-breaking)).
*/
forcePageBreak: string;
/**
* An optional CSS selector that specifies the elements which should not be split across the pages.
* An optional CSS selector that specifies the elements which should not be split across the pages
* ([see example]({% slug multipagecontent_pdfexport %}#toc-preventing-page-breaking-in-elements)).
*/

@@ -61,3 +63,4 @@ keepTogether: string;

/**
* The forced resolution of the images in the exported PDF document.
* The forced resolution of the images in the exported PDF document
* ([see example]({% slug embeddedimages_pdfexport %})).
* By default, the images are exported at their full resolution.

@@ -81,3 +84,4 @@ */

/**
* A flag that indicates if the page will be in a landscape orientation.
* A flag that indicates if the page will be in a landscape orientation
* ([see example]({% slug hyperlinks_pdfexport %})).
* By default, the page is in a portrait orientation.

@@ -91,2 +95,4 @@ *

*
* > Numbers are treated as points (`"pt"`).
*
* The supported units are:

@@ -98,12 +104,11 @@ * * `"mm"`

*
* > Numbers are considered to be points (`"pt"`).
*/
margin: string | number | PageMargin;
/**
* Specifies the paper size of the PDF document. Defaults to `"auto"` which means that the paper size is determined by the content.
* Specifies the paper size of the PDF document ([see example]({% slug multipagecontent_pdfexport %}#toc-automatic-page-breaking)).
* Defaults to `"auto"` which means that the paper size is determined by the content.
* The size of the content in pixels matches the size of the output in points (1 pixel = 1/72 inch).
* If `paperSize` is set, the content is split across multiple pages. This enables the `repeatHeaders` and
* `scale` options, and allows you to specify a template.
*
* If set, the content will be split across multiple pages.
* This enables the `repeatHeaders` and `scale` options, and allows you to specify a template.
*
* The supported values are:

@@ -116,7 +121,8 @@ * * A predefined size. The supported paper sizes are: `A0-A10`, `B0-B10`, `C0-C10`, `Executive`, `Folio`, `Legal`, `Letter`, `Tabloid`.

/**
* Specifies if the `<thead>` elements of the tables will be repeated on each page.
* Specifies if the `<thead>` elements of the tables will be repeated on each page
* ([see example]({% slug recurrenttableheaders_pdfexport %})).
*/
repeatHeaders: boolean;
/**
* A scale factor.
* A scale factor ([see example]({% slug scalingofcontent_pdfexport %})).
* The text size on the screen might be too big for printing.

@@ -136,8 +142,8 @@ * To scale down the output in PDF, use this option.

/**
* The URL of the server-side proxy which streams the file to the end user.
* You need to use a proxy if the browser is not capable of saving files locally&mdash;for example, Internet Explorer 9 and Safari.
* It is your responsibility to implement the server-side proxy.
* The URL of the server-side proxy which streams the file to the end user. You need to use a proxy if
* the browser is not capable of saving files locally&mdash;for example, Internet Explorer 9 and Safari.
* It is your responsibility to implement the server-side proxy. The proxy returns the decoded file with
* the `"Content-Disposition"` header set to `attachment; filename="<fileName.pdf>"`.
*
* In the request body, the proxy receives a POST request with the following parameters:
*
* - `"contentType"`&mdash;The MIME type of the file.

@@ -147,3 +153,2 @@ * - `"base64"`&mdash;The base-64 encoded file content.

*
* The proxy returns the decoded file with the `"Content-Disposition"` header set to `attachment; filename="<fileName.pdf>"`.
*/

@@ -150,0 +155,0 @@ proxyURL: string;

@@ -8,3 +8,3 @@ import { Component, ContentChild, ElementRef, Input } from '@angular/core';

/**
* Represents the Kendo UI PDF Export component for Angular.
* Represents the [Kendo UI PDF Export component for Angular]({% slug overview_pdfexport %}).
*

@@ -11,0 +11,0 @@ * @example

/**
* Represents the [NgModule](https://angular.io/guide/ngmodule) definition for the PDF Export directive.
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
*/
export declare class PDFExportModule {
}

@@ -11,3 +11,3 @@ import { NgModule } from '@angular/core';

/**
* Represents the [NgModule](https://angular.io/guide/ngmodule) definition for the PDF Export directive.
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
*/

@@ -14,0 +14,0 @@ export class PDFExportModule {

@@ -10,3 +10,3 @@ "use strict";

/**
* Represents the Kendo UI PDF Export component for Angular.
* Represents the [Kendo UI PDF Export component for Angular]({% slug overview_pdfexport %}).
*

@@ -13,0 +13,0 @@ * @example

@@ -13,3 +13,3 @@ "use strict";

/**
* Represents the [NgModule](https://angular.io/guide/ngmodule) definition for the PDF Export directive.
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
*/

@@ -16,0 +16,0 @@ var PDFExportModule = /** @class */ (function () {

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

System.register("@progress/kendo-angular-pdf-export",["tslib","@angular/core","@progress/kendo-drawing","@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=r},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(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","@progress/kendo-file-saver","@angular/core","@progress/kendo-drawing"],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=n},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];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}])}}});

@@ -6,3 +6,3 @@ {

"license": "SEE LICENSE IN LICENSE.md",
"version": "1.1.2",
"version": "1.2.0-dev.201810182221",
"main": "dist/npm/index.js",

@@ -30,4 +30,4 @@ "module": "dist/es/index.js",

"peerDependencies": {
"@angular/common": "4 - 6",
"@angular/core": "4 - 6",
"@angular/common": "4 - 7",
"@angular/core": "4 - 7",
"@progress/kendo-drawing": "^1.2.0",

@@ -34,0 +34,0 @@ "rxjs": "5.5 - 6"

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