@progress/kendo-angular-pdf-export 3.0.4 → 4.0.0-next.202203281310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-pdf-export.umd.js +5 -0
- package/{dist/es2015/compile-template.d.ts → compile-template.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/compile-template.js +0 -0
- package/{dist/es/index.js → esm2015/kendo-angular-pdf-export.js} +0 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/pdf-export-margin.component.js +43 -0
- package/esm2015/pdf-export-template.directive.js +21 -0
- package/{dist/es2015 → esm2015}/pdf-export.component.js +63 -108
- package/esm2015/pdf-export.module.js +33 -0
- package/fesm2015/kendo-angular-pdf-export.js +318 -0
- package/{dist/es2015/index.js → kendo-angular-pdf-export.d.ts} +1 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +33 -101
- package/{dist/es2015/pdf-export-margin.component.d.ts → pdf-export-margin.component.d.ts} +4 -1
- package/{dist/es2015/pdf-export-template.directive.d.ts → pdf-export-template.directive.d.ts} +3 -0
- package/{dist/es2015/pdf-export.component.d.ts → pdf-export.component.d.ts} +4 -1
- package/pdf-export.module.d.ts +16 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-pdf-export.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/compile-template.js +0 -25
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/pdf-export-margin.component.js +0 -56
- package/dist/es/pdf-export-template.directive.js +0 -20
- package/dist/es/pdf-export.component.js +0 -253
- package/dist/es/pdf-export.module.js +0 -29
- package/dist/es2015/index.d.ts +0 -8
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -9
- package/dist/es2015/pdf-export-margin.component.js +0 -49
- package/dist/es2015/pdf-export-template.directive.js +0 -19
- package/dist/es2015/pdf-export.module.d.ts +0 -9
- package/dist/es2015/pdf-export.module.js +0 -26
- package/dist/fesm2015/index.js +0 -355
- package/dist/fesm5/index.js +0 -373
- package/dist/npm/compile-template.js +0 -27
- package/dist/npm/index.js +0 -11
- package/dist/npm/main.js +0 -16
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/pdf-export-margin.component.js +0 -58
- package/dist/npm/pdf-export-template.directive.js +0 -22
- package/dist/npm/pdf-export.component.js +0 -255
- package/dist/npm/pdf-export.module.js +0 -31
- package/dist/systemjs/kendo-angular-pdf-export.js +0 -5
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ContentChild, ElementRef, Input } from '@angular/core';
|
|
7
|
-
import { drawDOM, exportPDF } from '@progress/kendo-drawing';
|
|
8
|
-
import { saveAs } from '@progress/kendo-file-saver';
|
|
9
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
|
-
import { packageMetadata } from './package-metadata';
|
|
11
|
-
import { PDFExportTemplateDirective } from './pdf-export-template.directive';
|
|
12
|
-
import { PDFExportMarginComponent } from './pdf-export-margin.component';
|
|
13
|
-
import { compileTemplate } from './compile-template';
|
|
14
|
-
/**
|
|
15
|
-
* Represents the [Kendo UI PDF Export component for Angular]({% slug overview_pdfexport %}).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts-preview
|
|
19
|
-
* _@Component({
|
|
20
|
-
* selector: 'my-app',
|
|
21
|
-
* template: `
|
|
22
|
-
* <div class="example-config">
|
|
23
|
-
* <button kendoButton (click)="pdf.saveAs('document.pdf')">
|
|
24
|
-
* Save As PDF...
|
|
25
|
-
* </button>
|
|
26
|
-
* </div>
|
|
27
|
-
*
|
|
28
|
-
* <kendo-pdf-export #pdf paperSize="A4" margin="2cm">
|
|
29
|
-
* Content goes here
|
|
30
|
-
* </kendo-pdf-export>
|
|
31
|
-
* `
|
|
32
|
-
* })
|
|
33
|
-
* export class AppComponent {
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
var PDFExportComponent = /** @class */ (function () {
|
|
38
|
-
function PDFExportComponent(element) {
|
|
39
|
-
this.element = element;
|
|
40
|
-
/**
|
|
41
|
-
* The creator of the PDF document.
|
|
42
|
-
* @default "Kendo UI PDF Generator"
|
|
43
|
-
*/
|
|
44
|
-
this.creator = 'Kendo UI PDF Generator';
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the name of the exported PDF file.
|
|
47
|
-
* @default "Export.pdf"
|
|
48
|
-
*/
|
|
49
|
-
this.fileName = 'export.pdf';
|
|
50
|
-
validatePackage(packageMetadata);
|
|
51
|
-
}
|
|
52
|
-
Object.defineProperty(PDFExportComponent.prototype, "drawMargin", {
|
|
53
|
-
get: function () {
|
|
54
|
-
var marginComponent = this.marginComponent;
|
|
55
|
-
var margin = this.margin;
|
|
56
|
-
if (marginComponent) {
|
|
57
|
-
margin = Object.assign(margin || {}, marginComponent.options);
|
|
58
|
-
}
|
|
59
|
-
return margin;
|
|
60
|
-
},
|
|
61
|
-
enumerable: true,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* Saves the content as a PDF file with the specified name.
|
|
66
|
-
* @param fileName - The name of the exported file.
|
|
67
|
-
*/
|
|
68
|
-
PDFExportComponent.prototype.saveAs = function (fileName) {
|
|
69
|
-
if (fileName === void 0) { fileName = this.fileName; }
|
|
70
|
-
this.save(this.element.nativeElement, fileName);
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Exports the content as a `Group` for further processing.
|
|
74
|
-
*
|
|
75
|
-
* @return - The root group of the exported scene.
|
|
76
|
-
*/
|
|
77
|
-
PDFExportComponent.prototype.export = function () {
|
|
78
|
-
return this.exportElement(this.element.nativeElement);
|
|
79
|
-
};
|
|
80
|
-
PDFExportComponent.prototype.save = function (element, fileName) {
|
|
81
|
-
var _this = this;
|
|
82
|
-
this.exportElement(element)
|
|
83
|
-
.then(function (group) { return _this.exportGroup(group, _this.pdfOptions()); })
|
|
84
|
-
.then(function (dataUri) { return _this.saveDataUri(dataUri, fileName, _this.saveOptions()); });
|
|
85
|
-
};
|
|
86
|
-
PDFExportComponent.prototype.exportElement = function (element) {
|
|
87
|
-
var promise = this.drawElement(element, this.drawOptions());
|
|
88
|
-
var cleanup = this.cleanup.bind(this);
|
|
89
|
-
promise.then(cleanup, cleanup);
|
|
90
|
-
return promise;
|
|
91
|
-
};
|
|
92
|
-
PDFExportComponent.prototype.cleanup = function () {
|
|
93
|
-
if (this.pageTemplate) {
|
|
94
|
-
this.pageTemplate.destroy();
|
|
95
|
-
delete this.pageTemplate;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
PDFExportComponent.prototype.drawOptions = function () {
|
|
99
|
-
if (this.pageTemplateDirective) {
|
|
100
|
-
this.pageTemplate = compileTemplate(this.pageTemplateDirective.templateRef);
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
avoidLinks: this.avoidLinks,
|
|
104
|
-
forcePageBreak: this.forcePageBreak,
|
|
105
|
-
keepTogether: this.keepTogether,
|
|
106
|
-
margin: this.drawMargin,
|
|
107
|
-
paperSize: this.paperSize,
|
|
108
|
-
landscape: this.landscape,
|
|
109
|
-
repeatHeaders: this.repeatHeaders,
|
|
110
|
-
scale: this.scale,
|
|
111
|
-
template: this.pageTemplate
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
PDFExportComponent.prototype.pdfOptions = function () {
|
|
115
|
-
return {
|
|
116
|
-
autoPrint: this.autoPrint,
|
|
117
|
-
author: this.author,
|
|
118
|
-
creator: this.creator,
|
|
119
|
-
date: this.date,
|
|
120
|
-
imgDPI: this.imageResolution,
|
|
121
|
-
keywords: this.keywords,
|
|
122
|
-
landscape: this.landscape,
|
|
123
|
-
margin: this.drawMargin,
|
|
124
|
-
multiPage: true,
|
|
125
|
-
paperSize: this.paperSize,
|
|
126
|
-
producer: this.producer,
|
|
127
|
-
subject: this.subject,
|
|
128
|
-
title: this.title
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
PDFExportComponent.prototype.saveOptions = function () {
|
|
132
|
-
return {
|
|
133
|
-
forceProxy: this.forceProxy,
|
|
134
|
-
proxyData: this.proxyData,
|
|
135
|
-
proxyTarget: this.proxyTarget,
|
|
136
|
-
proxyURL: this.proxyURL
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
PDFExportComponent.prototype.drawElement = function (element, options) {
|
|
140
|
-
return drawDOM(element, options);
|
|
141
|
-
};
|
|
142
|
-
PDFExportComponent.prototype.exportGroup = function (group, options) {
|
|
143
|
-
return exportPDF(group, options);
|
|
144
|
-
};
|
|
145
|
-
PDFExportComponent.prototype.saveDataUri = function (dataUri, fileName, options) {
|
|
146
|
-
saveAs(dataUri, fileName, options);
|
|
147
|
-
};
|
|
148
|
-
tslib_1.__decorate([
|
|
149
|
-
Input(),
|
|
150
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
151
|
-
], PDFExportComponent.prototype, "autoPrint", void 0);
|
|
152
|
-
tslib_1.__decorate([
|
|
153
|
-
Input(),
|
|
154
|
-
tslib_1.__metadata("design:type", String)
|
|
155
|
-
], PDFExportComponent.prototype, "author", void 0);
|
|
156
|
-
tslib_1.__decorate([
|
|
157
|
-
Input(),
|
|
158
|
-
tslib_1.__metadata("design:type", Object)
|
|
159
|
-
], PDFExportComponent.prototype, "avoidLinks", void 0);
|
|
160
|
-
tslib_1.__decorate([
|
|
161
|
-
Input(),
|
|
162
|
-
tslib_1.__metadata("design:type", String)
|
|
163
|
-
], PDFExportComponent.prototype, "forcePageBreak", void 0);
|
|
164
|
-
tslib_1.__decorate([
|
|
165
|
-
Input(),
|
|
166
|
-
tslib_1.__metadata("design:type", String)
|
|
167
|
-
], PDFExportComponent.prototype, "keepTogether", void 0);
|
|
168
|
-
tslib_1.__decorate([
|
|
169
|
-
Input(),
|
|
170
|
-
tslib_1.__metadata("design:type", String)
|
|
171
|
-
], PDFExportComponent.prototype, "creator", void 0);
|
|
172
|
-
tslib_1.__decorate([
|
|
173
|
-
Input(),
|
|
174
|
-
tslib_1.__metadata("design:type", Date)
|
|
175
|
-
], PDFExportComponent.prototype, "date", void 0);
|
|
176
|
-
tslib_1.__decorate([
|
|
177
|
-
Input(),
|
|
178
|
-
tslib_1.__metadata("design:type", Number)
|
|
179
|
-
], PDFExportComponent.prototype, "imageResolution", void 0);
|
|
180
|
-
tslib_1.__decorate([
|
|
181
|
-
Input(),
|
|
182
|
-
tslib_1.__metadata("design:type", String)
|
|
183
|
-
], PDFExportComponent.prototype, "fileName", void 0);
|
|
184
|
-
tslib_1.__decorate([
|
|
185
|
-
Input(),
|
|
186
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
187
|
-
], PDFExportComponent.prototype, "forceProxy", void 0);
|
|
188
|
-
tslib_1.__decorate([
|
|
189
|
-
Input(),
|
|
190
|
-
tslib_1.__metadata("design:type", String)
|
|
191
|
-
], PDFExportComponent.prototype, "keywords", void 0);
|
|
192
|
-
tslib_1.__decorate([
|
|
193
|
-
Input(),
|
|
194
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
195
|
-
], PDFExportComponent.prototype, "landscape", void 0);
|
|
196
|
-
tslib_1.__decorate([
|
|
197
|
-
Input(),
|
|
198
|
-
tslib_1.__metadata("design:type", Object)
|
|
199
|
-
], PDFExportComponent.prototype, "margin", void 0);
|
|
200
|
-
tslib_1.__decorate([
|
|
201
|
-
Input(),
|
|
202
|
-
tslib_1.__metadata("design:type", Object)
|
|
203
|
-
], PDFExportComponent.prototype, "paperSize", void 0);
|
|
204
|
-
tslib_1.__decorate([
|
|
205
|
-
Input(),
|
|
206
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
207
|
-
], PDFExportComponent.prototype, "repeatHeaders", void 0);
|
|
208
|
-
tslib_1.__decorate([
|
|
209
|
-
Input(),
|
|
210
|
-
tslib_1.__metadata("design:type", Number)
|
|
211
|
-
], PDFExportComponent.prototype, "scale", void 0);
|
|
212
|
-
tslib_1.__decorate([
|
|
213
|
-
Input(),
|
|
214
|
-
tslib_1.__metadata("design:type", Object)
|
|
215
|
-
], PDFExportComponent.prototype, "proxyData", void 0);
|
|
216
|
-
tslib_1.__decorate([
|
|
217
|
-
Input(),
|
|
218
|
-
tslib_1.__metadata("design:type", String)
|
|
219
|
-
], PDFExportComponent.prototype, "proxyURL", void 0);
|
|
220
|
-
tslib_1.__decorate([
|
|
221
|
-
Input(),
|
|
222
|
-
tslib_1.__metadata("design:type", String)
|
|
223
|
-
], PDFExportComponent.prototype, "proxyTarget", void 0);
|
|
224
|
-
tslib_1.__decorate([
|
|
225
|
-
Input(),
|
|
226
|
-
tslib_1.__metadata("design:type", String)
|
|
227
|
-
], PDFExportComponent.prototype, "producer", void 0);
|
|
228
|
-
tslib_1.__decorate([
|
|
229
|
-
Input(),
|
|
230
|
-
tslib_1.__metadata("design:type", String)
|
|
231
|
-
], PDFExportComponent.prototype, "subject", void 0);
|
|
232
|
-
tslib_1.__decorate([
|
|
233
|
-
Input(),
|
|
234
|
-
tslib_1.__metadata("design:type", String)
|
|
235
|
-
], PDFExportComponent.prototype, "title", void 0);
|
|
236
|
-
tslib_1.__decorate([
|
|
237
|
-
ContentChild(PDFExportTemplateDirective, { static: false }),
|
|
238
|
-
tslib_1.__metadata("design:type", PDFExportTemplateDirective)
|
|
239
|
-
], PDFExportComponent.prototype, "pageTemplateDirective", void 0);
|
|
240
|
-
tslib_1.__decorate([
|
|
241
|
-
ContentChild(PDFExportMarginComponent, { static: false }),
|
|
242
|
-
tslib_1.__metadata("design:type", PDFExportMarginComponent)
|
|
243
|
-
], PDFExportComponent.prototype, "marginComponent", void 0);
|
|
244
|
-
PDFExportComponent = tslib_1.__decorate([
|
|
245
|
-
Component({
|
|
246
|
-
selector: 'kendo-pdf-export',
|
|
247
|
-
template: "<div><ng-content></ng-content></div>"
|
|
248
|
-
}),
|
|
249
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef])
|
|
250
|
-
], PDFExportComponent);
|
|
251
|
-
return PDFExportComponent;
|
|
252
|
-
}());
|
|
253
|
-
export { PDFExportComponent };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { PDFExportComponent } from './pdf-export.component';
|
|
8
|
-
import { PDFExportMarginComponent } from './pdf-export-margin.component';
|
|
9
|
-
import { PDFExportTemplateDirective } from './pdf-export-template.directive';
|
|
10
|
-
var COMPONENT_DIRECTIVES = [
|
|
11
|
-
PDFExportComponent,
|
|
12
|
-
PDFExportMarginComponent,
|
|
13
|
-
PDFExportTemplateDirective
|
|
14
|
-
];
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
|
|
17
|
-
*/
|
|
18
|
-
var PDFExportModule = /** @class */ (function () {
|
|
19
|
-
function PDFExportModule() {
|
|
20
|
-
}
|
|
21
|
-
PDFExportModule = tslib_1.__decorate([
|
|
22
|
-
NgModule({
|
|
23
|
-
declarations: [COMPONENT_DIRECTIVES],
|
|
24
|
-
exports: [COMPONENT_DIRECTIVES]
|
|
25
|
-
})
|
|
26
|
-
], PDFExportModule);
|
|
27
|
-
return PDFExportModule;
|
|
28
|
-
}());
|
|
29
|
-
export { PDFExportModule };
|
package/dist/es2015/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"PDFExportComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":42,"character":1},"arguments":[{"selector":"kendo-pdf-export","template":"<div><ng-content></ng-content></div>"}]}],"members":{"autoPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"author":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"avoidLinks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":3}}]}],"forcePageBreak":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":74,"character":3}}]}],"keepTogether":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"creator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":94,"character":3}}]}],"imageResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":102,"character":3}}]}],"fileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":3}}]}],"forceProxy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":116,"character":3}}]}],"keywords":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":122,"character":3}}]}],"landscape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":132,"character":3}}]}],"margin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":147,"character":3}}]}],"paperSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":162,"character":3}}]}],"repeatHeaders":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":169,"character":3}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":179,"character":3}}]}],"proxyData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":186,"character":3}}]}],"proxyURL":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":201,"character":3}}]}],"proxyTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":210,"character":3}}]}],"producer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":216,"character":3}}]}],"subject":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":222,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":228,"character":3}}]}],"pageTemplateDirective":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":234,"character":3},"arguments":[{"__symbolic":"reference","name":"PDFExportTemplateDirective"},{"static":false}]}]}],"marginComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":240,"character":3},"arguments":[{"__symbolic":"reference","name":"PDFExportMarginComponent"},{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":256,"character":33}]}],"saveAs":[{"__symbolic":"method"}],"export":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"exportElement":[{"__symbolic":"method"}],"cleanup":[{"__symbolic":"method"}],"drawOptions":[{"__symbolic":"method"}],"pdfOptions":[{"__symbolic":"method"}],"saveOptions":[{"__symbolic":"method"}],"drawElement":[{"__symbolic":"method"}],"exportGroup":[{"__symbolic":"method"}],"saveDataUri":[{"__symbolic":"method"}]}},"PDFExportModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":14,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"PDFExportComponent"},{"__symbolic":"reference","name":"PDFExportMarginComponent"},{"__symbolic":"reference","name":"PDFExportTemplateDirective"}]],"exports":[[{"__symbolic":"reference","name":"PDFExportComponent"},{"__symbolic":"reference","name":"PDFExportMarginComponent"},{"__symbolic":"reference","name":"PDFExportTemplateDirective"}]]}]}],"members":{}},"PDFExportMarginComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"kendo-pdf-export-margin","template":""}]}],"members":{"left":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"top":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"right":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"bottom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":3}}]}]}},"PDFExportTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[kendoPDFTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":6,"character":15}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"compileTemplate":{"__symbolic":"error","message":"Lambda not supported","line":5,"character":31,"module":"./compile-template"}},"origins":{"PDFExportComponent":"./pdf-export.component","PDFExportModule":"./pdf-export.module","PDFExportMarginComponent":"./pdf-export-margin.component","PDFExportTemplateDirective":"./pdf-export-template.directive","compileTemplate":"./compile-template"},"importAs":"@progress/kendo-angular-pdf-export"}
|
package/dist/es2015/main.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { PDFExportComponent } from './pdf-export.component';
|
|
6
|
-
export { PDFExportModule } from './pdf-export.module';
|
|
7
|
-
export { PDFExportMarginComponent } from './pdf-export-margin.component';
|
|
8
|
-
export { PDFExportTemplateDirective } from './pdf-export-template.directive';
|
|
9
|
-
export { compileTemplate } from './compile-template';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
const FIELDS = ['bottom', 'left', 'right', 'top'];
|
|
8
|
-
/**
|
|
9
|
-
* Represents the Kendo UI PDFMargin component for Angular.
|
|
10
|
-
*/
|
|
11
|
-
let PDFExportMarginComponent = class PDFExportMarginComponent {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
get options() {
|
|
16
|
-
const options = {};
|
|
17
|
-
for (let idx = 0; idx < FIELDS.length; idx++) {
|
|
18
|
-
const field = FIELDS[idx];
|
|
19
|
-
const value = this[field];
|
|
20
|
-
if (typeof value !== 'undefined') {
|
|
21
|
-
options[field] = value;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return options;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
Input(),
|
|
29
|
-
tslib_1.__metadata("design:type", Object)
|
|
30
|
-
], PDFExportMarginComponent.prototype, "left", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
Input(),
|
|
33
|
-
tslib_1.__metadata("design:type", Object)
|
|
34
|
-
], PDFExportMarginComponent.prototype, "top", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
Input(),
|
|
37
|
-
tslib_1.__metadata("design:type", Object)
|
|
38
|
-
], PDFExportMarginComponent.prototype, "right", void 0);
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
Input(),
|
|
41
|
-
tslib_1.__metadata("design:type", Object)
|
|
42
|
-
], PDFExportMarginComponent.prototype, "bottom", void 0);
|
|
43
|
-
PDFExportMarginComponent = tslib_1.__decorate([
|
|
44
|
-
Component({
|
|
45
|
-
selector: 'kendo-pdf-export-margin',
|
|
46
|
-
template: ``
|
|
47
|
-
})
|
|
48
|
-
], PDFExportMarginComponent);
|
|
49
|
-
export { PDFExportMarginComponent };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
let PDFExportTemplateDirective = class PDFExportTemplateDirective {
|
|
8
|
-
constructor(templateRef) {
|
|
9
|
-
this.templateRef = templateRef;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
PDFExportTemplateDirective = tslib_1.__decorate([
|
|
13
|
-
Directive({
|
|
14
|
-
selector: '[kendoPDFTemplate]'
|
|
15
|
-
}),
|
|
16
|
-
tslib_1.__param(0, Optional()),
|
|
17
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
18
|
-
], PDFExportTemplateDirective);
|
|
19
|
-
export { PDFExportTemplateDirective };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PDFExportModule {
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { PDFExportComponent } from './pdf-export.component';
|
|
8
|
-
import { PDFExportMarginComponent } from './pdf-export-margin.component';
|
|
9
|
-
import { PDFExportTemplateDirective } from './pdf-export-template.directive';
|
|
10
|
-
const COMPONENT_DIRECTIVES = [
|
|
11
|
-
PDFExportComponent,
|
|
12
|
-
PDFExportMarginComponent,
|
|
13
|
-
PDFExportTemplateDirective
|
|
14
|
-
];
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the PDF Export directive.
|
|
17
|
-
*/
|
|
18
|
-
let PDFExportModule = class PDFExportModule {
|
|
19
|
-
};
|
|
20
|
-
PDFExportModule = tslib_1.__decorate([
|
|
21
|
-
NgModule({
|
|
22
|
-
declarations: [COMPONENT_DIRECTIVES],
|
|
23
|
-
exports: [COMPONENT_DIRECTIVES]
|
|
24
|
-
})
|
|
25
|
-
], PDFExportModule);
|
|
26
|
-
export { PDFExportModule };
|