@progress/kendo-angular-excel-export 4.0.4 → 5.0.0-next.202203101813

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.
Files changed (82) hide show
  1. package/bundles/kendo-angular-excel-export.umd.js +5 -0
  2. package/{dist/es2015/columns → columns}/column-base.d.ts +4 -1
  3. package/{dist/es2015/columns → columns}/column-group.component.d.ts +3 -0
  4. package/{dist/es2015/columns → columns}/column.component.d.ts +3 -0
  5. package/{dist/es2015/columns → columns}/footer-template.directive.d.ts +3 -0
  6. package/{dist/es2015/columns → columns}/group-footer-template.directive.d.ts +3 -0
  7. package/{dist/es2015/columns → columns}/group-header-column-template.directive.d.ts +3 -0
  8. package/{dist/es2015/columns → columns}/group-header-template.directive.d.ts +3 -0
  9. package/esm2015/columns/column-base.js +41 -0
  10. package/esm2015/columns/column-group.component.js +43 -0
  11. package/esm2015/columns/column.component.js +68 -0
  12. package/esm2015/columns/footer-template.directive.js +26 -0
  13. package/esm2015/columns/group-footer-template.directive.js +26 -0
  14. package/esm2015/columns/group-header-column-template.directive.js +25 -0
  15. package/esm2015/columns/group-header-template.directive.js +26 -0
  16. package/{dist/es → esm2015}/excel-export-data.js +1 -0
  17. package/{dist/es2015 → esm2015}/excel-export.component.js +54 -69
  18. package/{dist/es2015 → esm2015}/excel-export.module.js +25 -10
  19. package/{dist/es2015/excel-export-data.js → esm2015/kendo-angular-excel-export.js} +4 -0
  20. package/{dist/es2015 → esm2015}/main.js +1 -0
  21. package/{dist/es2015 → esm2015}/ooxml/cell-options.interface.js +1 -0
  22. package/{dist/es2015 → esm2015}/ooxml/exporter-columns.js +2 -7
  23. package/{dist/es2015 → esm2015}/ooxml/workbook.js +0 -0
  24. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  25. package/{dist/es2015/excel-export-data.d.ts → excel-export-data.d.ts} +0 -0
  26. package/{dist/es2015/excel-export.component.d.ts → excel-export.component.d.ts} +3 -0
  27. package/{dist/es2015/excel-export.module.d.ts → excel-export.module.d.ts} +11 -0
  28. package/fesm2015/kendo-angular-excel-export.js +606 -0
  29. package/{dist/es2015/index.d.ts → kendo-angular-excel-export.d.ts} +1 -1
  30. package/{dist/es2015/main.d.ts → main.d.ts} +1 -0
  31. package/{dist/es2015/ooxml → ooxml}/cell-options.interface.d.ts +0 -0
  32. package/{dist/es2015/ooxml → ooxml}/exporter-columns.d.ts +0 -0
  33. package/{dist/es2015/ooxml → ooxml}/workbook.d.ts +0 -0
  34. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  35. package/package.json +30 -88
  36. package/schematics/ngAdd/index.js +5 -2
  37. package/schematics/ngAdd/index.js.map +1 -1
  38. package/dist/cdn/js/kendo-angular-excel-export.js +0 -20
  39. package/dist/cdn/main.js +0 -5
  40. package/dist/es/columns/column-base.js +0 -50
  41. package/dist/es/columns/column-group.component.js +0 -36
  42. package/dist/es/columns/column.component.js +0 -74
  43. package/dist/es/columns/footer-template.directive.js +0 -25
  44. package/dist/es/columns/group-footer-template.directive.js +0 -25
  45. package/dist/es/columns/group-header-column-template.directive.js +0 -24
  46. package/dist/es/columns/group-header-template.directive.js +0 -25
  47. package/dist/es/excel-export.component.js +0 -170
  48. package/dist/es/excel-export.module.js +0 -65
  49. package/dist/es/index.js +0 -9
  50. package/dist/es/main.js +0 -14
  51. package/dist/es/ooxml/cell-options.interface.js +0 -4
  52. package/dist/es/ooxml/exporter-columns.js +0 -126
  53. package/dist/es/ooxml/workbook.js +0 -45
  54. package/dist/es/package-metadata.js +0 -15
  55. package/dist/es2015/columns/column-base.js +0 -44
  56. package/dist/es2015/columns/column-group.component.js +0 -32
  57. package/dist/es2015/columns/column.component.js +0 -71
  58. package/dist/es2015/columns/footer-template.directive.js +0 -24
  59. package/dist/es2015/columns/group-footer-template.directive.js +0 -24
  60. package/dist/es2015/columns/group-header-column-template.directive.js +0 -23
  61. package/dist/es2015/columns/group-header-template.directive.js +0 -24
  62. package/dist/es2015/index.js +0 -9
  63. package/dist/es2015/index.metadata.json +0 -1
  64. package/dist/fesm2015/index.js +0 -585
  65. package/dist/fesm5/index.js +0 -606
  66. package/dist/npm/columns/column-base.js +0 -52
  67. package/dist/npm/columns/column-group.component.js +0 -38
  68. package/dist/npm/columns/column.component.js +0 -76
  69. package/dist/npm/columns/footer-template.directive.js +0 -27
  70. package/dist/npm/columns/group-footer-template.directive.js +0 -27
  71. package/dist/npm/columns/group-header-column-template.directive.js +0 -26
  72. package/dist/npm/columns/group-header-template.directive.js +0 -27
  73. package/dist/npm/excel-export-data.js +0 -6
  74. package/dist/npm/excel-export.component.js +0 -172
  75. package/dist/npm/excel-export.module.js +0 -67
  76. package/dist/npm/index.js +0 -13
  77. package/dist/npm/main.js +0 -25
  78. package/dist/npm/ooxml/cell-options.interface.js +0 -6
  79. package/dist/npm/ooxml/exporter-columns.js +0 -131
  80. package/dist/npm/ooxml/workbook.js +0 -47
  81. package/dist/npm/package-metadata.js +0 -17
  82. package/dist/systemjs/kendo-angular-excel-export.js +0 -5
@@ -1,606 +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 { __decorate, __metadata, __param, __extends } from 'tslib';
6
- import { Input, ContentChildren, QueryList, Component, NgZone, Directive, Optional, TemplateRef, ContentChild, forwardRef, SkipSelf, Host, NgModule } from '@angular/core';
7
- import { saveAs } from '@progress/kendo-file-saver';
8
- import { IntlService, ExcelExporter, Workbook } from '@progress/kendo-ooxml';
9
- export * from '@progress/kendo-ooxml';
10
- import { toString } from '@telerik/kendo-intl';
11
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
12
- import { validatePackage } from '@progress/kendo-licensing';
13
-
14
- /* tslint:disable align */
15
- /* tslint:disable:no-use-before-declare */
16
- var compileTemplate = function (templateRef, context, updateContext) {
17
- var embeddedView = templateRef.createEmbeddedView(context);
18
- var result = function (data) {
19
- updateContext(context, data);
20
- embeddedView.detectChanges();
21
- return embeddedView.rootNodes.reduce(function (content, rootNode) {
22
- return content + rootNode.textContent;
23
- }, '').trim();
24
- };
25
- result.destroy = function () {
26
- embeddedView.destroy();
27
- embeddedView = null;
28
- };
29
- return result;
30
- };
31
- var updateGroupHeaderContext = function (context, data) {
32
- context.$implicit = context.group = data;
33
- context.field = data.field;
34
- context.value = data.value;
35
- context.aggregates = data.aggregates;
36
- };
37
- var updateGroupFooterContext = function (context, data) {
38
- context.group = data.group;
39
- context.$implicit = context.aggregates = data;
40
- };
41
- var updateFooterContext = function (context, data) {
42
- context.aggregates = data.aggregates;
43
- };
44
- /**
45
- * @hidden
46
- */
47
- var toExporterColumns = function (sourceColumns) {
48
- var exporterColumns = [];
49
- var columnIndex = 0;
50
- var addColumns = function (columns, result, level) {
51
- columns.forEach(function (column) {
52
- if (column.level === level) {
53
- var exporterColumn = new ExporterColumn(column, columnIndex);
54
- result.push(exporterColumn);
55
- if (column.children && column.children.some(function (c) { return c !== column; })) {
56
- var children = exporterColumn.columns = [];
57
- addColumns(column.children, children, level + 1);
58
- }
59
- else {
60
- columnIndex++;
61
- }
62
- }
63
- });
64
- };
65
- addColumns(sourceColumns, exporterColumns, 0);
66
- return exporterColumns;
67
- };
68
- /**
69
- * @hidden
70
- */
71
- var destroyColumns = function (columns) {
72
- if (columns) {
73
- columns.forEach(function (column) {
74
- column.destroy();
75
- });
76
- }
77
- };
78
- /**
79
- * @hidden
80
- */
81
- var ExporterColumn = /** @class */ (function () {
82
- function ExporterColumn(column, columnIndex) {
83
- this.title = column.title;
84
- this.field = column.field;
85
- this.hidden = column.hidden;
86
- this.locked = column.locked;
87
- this.width = column.width;
88
- this.headerCellOptions = column.headerCellOptions;
89
- this.cellOptions = column.cellOptions;
90
- this.groupHeaderCellOptions = column.groupHeaderCellOptions;
91
- this.groupFooterCellOptions = column.groupFooterCellOptions;
92
- this.footerCellOptions = column.footerCellOptions;
93
- if (column.footerTemplate) {
94
- this.footerTemplate = compileTemplate(column.footerTemplate.templateRef, {
95
- $implicit: column,
96
- column: column,
97
- columnIndex: columnIndex
98
- }, updateFooterContext);
99
- }
100
- if (column.groupFooterTemplate) {
101
- this.groupFooterTemplate = compileTemplate(column.groupFooterTemplate.templateRef, {
102
- column: column,
103
- field: column.field
104
- }, updateGroupFooterContext);
105
- }
106
- if (column.groupHeaderTemplate) {
107
- this.groupHeaderTemplate = compileTemplate(column.groupHeaderTemplate.templateRef, {}, updateGroupHeaderContext);
108
- }
109
- if (column.groupHeaderColumnTemplate) {
110
- this.groupHeaderColumnTemplate = compileTemplate(column.groupHeaderColumnTemplate.templateRef, {}, updateGroupHeaderContext);
111
- }
112
- }
113
- ExporterColumn.prototype.destroy = function () {
114
- if (this.footerTemplate) {
115
- this.footerTemplate.destroy();
116
- }
117
- if (this.groupFooterTemplate) {
118
- this.groupFooterTemplate.destroy();
119
- }
120
- if (this.groupHeaderTemplate) {
121
- this.groupHeaderTemplate.destroy();
122
- }
123
- if (this.groupHeaderColumnTemplate) {
124
- this.groupHeaderColumnTemplate.destroy();
125
- }
126
- destroyColumns(this.columns);
127
- };
128
- return ExporterColumn;
129
- }());
130
-
131
- IntlService.register({ toString: toString });
132
- /**
133
- *
134
- * @hidden
135
- */
136
- var workbookOptions = function (options) {
137
- var columns = toExporterColumns(options.columns);
138
- var exporter = new ExcelExporter({
139
- columns: columns,
140
- data: options.data,
141
- filterable: options.filterable,
142
- groups: options.group,
143
- paddingCellOptions: options.paddingCellOptions,
144
- headerPaddingCellOptions: options.headerPaddingCellOptions,
145
- collapsible: options.collapsible,
146
- hierarchy: options.hierarchy,
147
- aggregates: options.aggregates
148
- });
149
- var result = exporter.workbook();
150
- result.creator = options.creator;
151
- result.date = options.date;
152
- result.rtl = options.rtl;
153
- destroyColumns(columns);
154
- return result;
155
- };
156
- /**
157
- * @hidden
158
- */
159
- var toDataURL = function (options) {
160
- var workbook = new Workbook(options);
161
- return workbook.toDataURL();
162
- };
163
- /**
164
- * @hidden
165
- */
166
- var isWorkbookOptions = function (value) {
167
- return value && value.sheets;
168
- };
169
-
170
- /**
171
- * @hidden
172
- */
173
- var ColumnBase = /** @class */ (function () {
174
- function ColumnBase(parent) {
175
- this.parent = parent;
176
- }
177
- Object.defineProperty(ColumnBase.prototype, "level", {
178
- /**
179
- * @hidden
180
- */
181
- get: function () {
182
- return this.parent ? this.parent.level + 1 : 0;
183
- },
184
- enumerable: true,
185
- configurable: true
186
- });
187
- __decorate([
188
- Input(),
189
- __metadata("design:type", String)
190
- ], ColumnBase.prototype, "title", void 0);
191
- __decorate([
192
- Input(),
193
- __metadata("design:type", Number)
194
- ], ColumnBase.prototype, "width", void 0);
195
- __decorate([
196
- Input(),
197
- __metadata("design:type", Boolean)
198
- ], ColumnBase.prototype, "locked", void 0);
199
- __decorate([
200
- Input(),
201
- __metadata("design:type", Boolean)
202
- ], ColumnBase.prototype, "hidden", void 0);
203
- __decorate([
204
- Input(),
205
- __metadata("design:type", Object)
206
- ], ColumnBase.prototype, "headerCellOptions", void 0);
207
- __decorate([
208
- ContentChildren(ColumnBase),
209
- __metadata("design:type", QueryList)
210
- ], ColumnBase.prototype, "children", void 0);
211
- return ColumnBase;
212
- }());
213
-
214
- /**
215
- * @hidden
216
- */
217
- var packageMetadata = {
218
- name: '@progress/kendo-angular-excel-export',
219
- productName: 'Kendo UI for Angular',
220
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
221
- publishDate: 1646218926,
222
- version: '',
223
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
224
- };
225
-
226
- /**
227
- * Represents the [Kendo UI Excel Export component for Angular]({% slug overview_excelexport %}).
228
- * Configures the settings for the Excel export of the Kendo UI Grid.
229
- */
230
- var ExcelExportComponent = /** @class */ (function () {
231
- function ExcelExportComponent(localization, zone) {
232
- this.localization = localization;
233
- this.zone = zone;
234
- /**
235
- * Specifies the name of the file that is exported to Excel.
236
- * @default "Export.xlsx"
237
- */
238
- this.fileName = 'Export.xlsx';
239
- /**
240
- * @hidden
241
- */
242
- this.columns = new QueryList();
243
- validatePackage(packageMetadata);
244
- this.saveFile = this.saveFile.bind(this);
245
- }
246
- /**
247
- * Saves the data to Excel.
248
- *
249
- * @param exportData - An optional parameter. Can be the data that will be exported or [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
250
- */
251
- ExcelExportComponent.prototype.save = function (exportData) {
252
- this.toDataURL(exportData).then(this.saveFile);
253
- };
254
- /**
255
- * Based on the specified columns and data, returns
256
- * [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %})
257
- * ([see example]({% slug customrowsandcells_excelexport %})).
258
- *
259
- * @param exportData - The optional data to be exported.
260
- * @returns {WorkbookOptions} - The workbook options.
261
- */
262
- ExcelExportComponent.prototype.workbookOptions = function (exportData) {
263
- var currentData = this.getExportData(exportData);
264
- var options = workbookOptions({
265
- columns: this.columns,
266
- data: currentData.data,
267
- group: currentData.group,
268
- filterable: this.filterable,
269
- creator: this.creator,
270
- date: this.date,
271
- rtl: this.localization.rtl,
272
- paddingCellOptions: this.paddingCellOptions,
273
- headerPaddingCellOptions: this.headerPaddingCellOptions,
274
- collapsible: this.collapsible
275
- });
276
- return options;
277
- };
278
- /**
279
- * Returns a promise which will be resolved with the file data URI
280
- * ([see example]({% slug filesaving_excelexport %})).
281
- *
282
- * @param exportData - The optional data or [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) that will be used to generate the data URI.
283
- * @returns {Promise<string>} - The promise that will be resolved by the file data URI.
284
- */
285
- ExcelExportComponent.prototype.toDataURL = function (exportData) {
286
- var options = isWorkbookOptions(exportData) ?
287
- exportData :
288
- this.workbookOptions(exportData);
289
- return this.zone.runOutsideAngular(function () { return toDataURL(options); });
290
- };
291
- ExcelExportComponent.prototype.getExportData = function (exportData) {
292
- var result;
293
- if (exportData) {
294
- if (Array.isArray(exportData)) {
295
- result = {
296
- data: exportData
297
- };
298
- }
299
- else {
300
- result = exportData;
301
- }
302
- }
303
- else {
304
- result = {
305
- data: this.data,
306
- group: this.group
307
- };
308
- }
309
- return result;
310
- };
311
- ExcelExportComponent.prototype.saveFile = function (dataURL) {
312
- saveAs(dataURL, this.fileName, {
313
- forceProxy: this.forceProxy,
314
- proxyURL: this.proxyURL
315
- });
316
- };
317
- __decorate([
318
- Input(),
319
- __metadata("design:type", String)
320
- ], ExcelExportComponent.prototype, "fileName", void 0);
321
- __decorate([
322
- Input(),
323
- __metadata("design:type", Boolean)
324
- ], ExcelExportComponent.prototype, "filterable", void 0);
325
- __decorate([
326
- Input(),
327
- __metadata("design:type", Boolean)
328
- ], ExcelExportComponent.prototype, "collapsible", void 0);
329
- __decorate([
330
- Input(),
331
- __metadata("design:type", String)
332
- ], ExcelExportComponent.prototype, "creator", void 0);
333
- __decorate([
334
- Input(),
335
- __metadata("design:type", Date)
336
- ], ExcelExportComponent.prototype, "date", void 0);
337
- __decorate([
338
- Input(),
339
- __metadata("design:type", Boolean)
340
- ], ExcelExportComponent.prototype, "forceProxy", void 0);
341
- __decorate([
342
- Input(),
343
- __metadata("design:type", String)
344
- ], ExcelExportComponent.prototype, "proxyURL", void 0);
345
- __decorate([
346
- Input(),
347
- __metadata("design:type", Array)
348
- ], ExcelExportComponent.prototype, "data", void 0);
349
- __decorate([
350
- Input(),
351
- __metadata("design:type", Array)
352
- ], ExcelExportComponent.prototype, "group", void 0);
353
- __decorate([
354
- Input(),
355
- __metadata("design:type", Object)
356
- ], ExcelExportComponent.prototype, "paddingCellOptions", void 0);
357
- __decorate([
358
- Input(),
359
- __metadata("design:type", Object)
360
- ], ExcelExportComponent.prototype, "headerPaddingCellOptions", void 0);
361
- __decorate([
362
- ContentChildren(ColumnBase, { descendants: true }),
363
- __metadata("design:type", QueryList)
364
- ], ExcelExportComponent.prototype, "columns", void 0);
365
- ExcelExportComponent = __decorate([
366
- Component({
367
- exportAs: 'kendoExcelExport',
368
- selector: 'kendo-excelexport',
369
- providers: [
370
- LocalizationService,
371
- {
372
- provide: L10N_PREFIX,
373
- useValue: 'kendo.excelexport'
374
- }
375
- ],
376
- template: ""
377
- }),
378
- __metadata("design:paramtypes", [LocalizationService, NgZone])
379
- ], ExcelExportComponent);
380
- return ExcelExportComponent;
381
- }());
382
-
383
- /**
384
- * Represents the group header cell template of the Excel Export column component
385
- * ([see example]({% slug columns_excel-export %}#toc-group-header-template)).
386
- * Enables you to customize the content of the group header item.
387
- */
388
- var GroupHeaderTemplateDirective = /** @class */ (function () {
389
- function GroupHeaderTemplateDirective(templateRef) {
390
- this.templateRef = templateRef;
391
- }
392
- GroupHeaderTemplateDirective = __decorate([
393
- Directive({
394
- selector: '[kendoExcelExportGroupHeaderTemplate]'
395
- }),
396
- __param(0, Optional()),
397
- __metadata("design:paramtypes", [TemplateRef])
398
- ], GroupHeaderTemplateDirective);
399
- return GroupHeaderTemplateDirective;
400
- }());
401
-
402
- /**
403
- * Represents the group header column template of the Excel Export column component
404
- * ([see example]({% slug columns_excel-export %}#toc-group-header-column-template)).
405
- */
406
- var GroupHeaderColumnTemplateDirective = /** @class */ (function () {
407
- function GroupHeaderColumnTemplateDirective(templateRef) {
408
- this.templateRef = templateRef;
409
- }
410
- GroupHeaderColumnTemplateDirective = __decorate([
411
- Directive({
412
- selector: '[kendoExcelExportGroupHeaderColumnTemplate]'
413
- }),
414
- __param(0, Optional()),
415
- __metadata("design:paramtypes", [TemplateRef])
416
- ], GroupHeaderColumnTemplateDirective);
417
- return GroupHeaderColumnTemplateDirective;
418
- }());
419
-
420
- /**
421
- * Represents the group footer cell template of the Excel Export column component
422
- * ([see example]({% slug columns_excel-export %}#toc-group-footer-template)).
423
- * Enables you to customize the group footer cell of the column.
424
- */
425
- var GroupFooterTemplateDirective = /** @class */ (function () {
426
- function GroupFooterTemplateDirective(templateRef) {
427
- this.templateRef = templateRef;
428
- }
429
- GroupFooterTemplateDirective = __decorate([
430
- Directive({
431
- selector: '[kendoExcelExportGroupFooterTemplate]'
432
- }),
433
- __param(0, Optional()),
434
- __metadata("design:paramtypes", [TemplateRef])
435
- ], GroupFooterTemplateDirective);
436
- return GroupFooterTemplateDirective;
437
- }());
438
-
439
- /**
440
- * Represents the footer cell template of the Excel Export column component
441
- * ([see example]({% slug columns_excel-export %}#toc-footer-template)).
442
- * Enables you to customize the footer cell of the column.
443
- */
444
- var FooterTemplateDirective = /** @class */ (function () {
445
- function FooterTemplateDirective(templateRef) {
446
- this.templateRef = templateRef;
447
- }
448
- FooterTemplateDirective = __decorate([
449
- Directive({
450
- selector: '[kendoExcelExportFooterTemplate]'
451
- }),
452
- __param(0, Optional()),
453
- __metadata("design:paramtypes", [TemplateRef])
454
- ], FooterTemplateDirective);
455
- return FooterTemplateDirective;
456
- }());
457
-
458
- /**
459
- * Represents the columns of the Kendo UI Excel Export component for Angular.
460
- */
461
- var ColumnComponent = /** @class */ (function (_super) {
462
- __extends(ColumnComponent, _super);
463
- function ColumnComponent(parent) {
464
- return _super.call(this, parent) || this;
465
- }
466
- ColumnComponent_1 = ColumnComponent;
467
- var ColumnComponent_1;
468
- __decorate([
469
- Input(),
470
- __metadata("design:type", String)
471
- ], ColumnComponent.prototype, "field", void 0);
472
- __decorate([
473
- Input(),
474
- __metadata("design:type", Object)
475
- ], ColumnComponent.prototype, "cellOptions", void 0);
476
- __decorate([
477
- Input(),
478
- __metadata("design:type", Object)
479
- ], ColumnComponent.prototype, "groupHeaderCellOptions", void 0);
480
- __decorate([
481
- Input(),
482
- __metadata("design:type", Object)
483
- ], ColumnComponent.prototype, "groupFooterCellOptions", void 0);
484
- __decorate([
485
- Input(),
486
- __metadata("design:type", Object)
487
- ], ColumnComponent.prototype, "footerCellOptions", void 0);
488
- __decorate([
489
- ContentChild(GroupHeaderTemplateDirective, { static: false }),
490
- __metadata("design:type", GroupHeaderTemplateDirective)
491
- ], ColumnComponent.prototype, "groupHeaderTemplate", void 0);
492
- __decorate([
493
- ContentChild(GroupHeaderColumnTemplateDirective, { static: false }),
494
- __metadata("design:type", GroupHeaderColumnTemplateDirective)
495
- ], ColumnComponent.prototype, "groupHeaderColumnTemplate", void 0);
496
- __decorate([
497
- ContentChild(GroupFooterTemplateDirective, { static: false }),
498
- __metadata("design:type", GroupFooterTemplateDirective)
499
- ], ColumnComponent.prototype, "groupFooterTemplate", void 0);
500
- __decorate([
501
- ContentChild(FooterTemplateDirective, { static: false }),
502
- __metadata("design:type", FooterTemplateDirective)
503
- ], ColumnComponent.prototype, "footerTemplate", void 0);
504
- ColumnComponent = ColumnComponent_1 = __decorate([
505
- Component({
506
- providers: [
507
- {
508
- provide: ColumnBase,
509
- useExisting: forwardRef(function () { return ColumnComponent_1; }) // tslint:disable-line:no-forward-ref
510
- }
511
- ],
512
- selector: 'kendo-excelexport-column',
513
- template: ""
514
- }),
515
- __param(0, SkipSelf()), __param(0, Host()), __param(0, Optional()),
516
- __metadata("design:paramtypes", [ColumnBase])
517
- ], ColumnComponent);
518
- return ColumnComponent;
519
- }(ColumnBase));
520
-
521
- /**
522
- * Represents the column group component of the Kendo UI Excel Export component.
523
- */
524
- var ColumnGroupComponent = /** @class */ (function (_super) {
525
- __extends(ColumnGroupComponent, _super);
526
- function ColumnGroupComponent(parent) {
527
- var _this = _super.call(this, parent) || this;
528
- _this.parent = parent;
529
- return _this;
530
- }
531
- ColumnGroupComponent_1 = ColumnGroupComponent;
532
- var ColumnGroupComponent_1;
533
- ColumnGroupComponent = ColumnGroupComponent_1 = __decorate([
534
- Component({
535
- providers: [
536
- {
537
- provide: ColumnBase,
538
- useExisting: forwardRef(function () { return ColumnGroupComponent_1; }) // tslint:disable-line:no-forward-ref
539
- }
540
- ],
541
- selector: 'kendo-excelexport-column-group',
542
- template: ""
543
- }),
544
- __param(0, SkipSelf()), __param(0, Host()), __param(0, Optional()),
545
- __metadata("design:paramtypes", [ColumnBase])
546
- ], ColumnGroupComponent);
547
- return ColumnGroupComponent;
548
- }(ColumnBase));
549
-
550
- var declarations = [
551
- ExcelExportComponent,
552
- ColumnComponent,
553
- ColumnGroupComponent,
554
- FooterTemplateDirective,
555
- GroupFooterTemplateDirective,
556
- GroupHeaderTemplateDirective,
557
- GroupHeaderColumnTemplateDirective
558
- ];
559
- /**
560
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
561
- * definition for the Excel Export component.
562
- *
563
- * @example
564
- *
565
- * ```ts-no-run
566
- * // Import the ExcelExportModule module
567
- * import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
568
- *
569
- * // The browser platform with a compiler
570
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
571
- *
572
- * import { NgModule } from '@angular/core';
573
- *
574
- * // Import the app component
575
- * import { AppComponent } from './app.component';
576
- *
577
- * // Define the app module
578
- * _@NgModule({
579
- * declarations: [AppComponent], // declare app component
580
- * imports: [BrowserModule, ExcelExportModule], // import ExcelExportModule module
581
- * bootstrap: [AppComponent]
582
- * })
583
- * export class AppModule {}
584
- *
585
- * // Compile and launch the module
586
- * platformBrowserDynamic().bootstrapModule(AppModule);
587
- *
588
- * ```
589
- */
590
- var ExcelExportModule = /** @class */ (function () {
591
- function ExcelExportModule() {
592
- }
593
- ExcelExportModule = __decorate([
594
- NgModule({
595
- declarations: [declarations],
596
- exports: [declarations]
597
- })
598
- ], ExcelExportModule);
599
- return ExcelExportModule;
600
- }());
601
-
602
- /**
603
- * Generated bundle index. Do not edit.
604
- */
605
-
606
- export { GroupHeaderColumnTemplateDirective, ExcelExportComponent, ExcelExportModule, ColumnBase, ColumnComponent, ColumnGroupComponent, FooterTemplateDirective, GroupFooterTemplateDirective, GroupHeaderTemplateDirective, workbookOptions, toDataURL, isWorkbookOptions };
@@ -1,52 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- /**
10
- * @hidden
11
- */
12
- var ColumnBase = /** @class */ (function () {
13
- function ColumnBase(parent) {
14
- this.parent = parent;
15
- }
16
- Object.defineProperty(ColumnBase.prototype, "level", {
17
- /**
18
- * @hidden
19
- */
20
- get: function () {
21
- return this.parent ? this.parent.level + 1 : 0;
22
- },
23
- enumerable: true,
24
- configurable: true
25
- });
26
- tslib_1.__decorate([
27
- core_1.Input(),
28
- tslib_1.__metadata("design:type", String)
29
- ], ColumnBase.prototype, "title", void 0);
30
- tslib_1.__decorate([
31
- core_1.Input(),
32
- tslib_1.__metadata("design:type", Number)
33
- ], ColumnBase.prototype, "width", void 0);
34
- tslib_1.__decorate([
35
- core_1.Input(),
36
- tslib_1.__metadata("design:type", Boolean)
37
- ], ColumnBase.prototype, "locked", void 0);
38
- tslib_1.__decorate([
39
- core_1.Input(),
40
- tslib_1.__metadata("design:type", Boolean)
41
- ], ColumnBase.prototype, "hidden", void 0);
42
- tslib_1.__decorate([
43
- core_1.Input(),
44
- tslib_1.__metadata("design:type", Object)
45
- ], ColumnBase.prototype, "headerCellOptions", void 0);
46
- tslib_1.__decorate([
47
- core_1.ContentChildren(ColumnBase),
48
- tslib_1.__metadata("design:type", core_1.QueryList)
49
- ], ColumnBase.prototype, "children", void 0);
50
- return ColumnBase;
51
- }());
52
- exports.ColumnBase = ColumnBase;
@@ -1,38 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var column_base_1 = require("./column-base");
10
- /**
11
- * Represents the column group component of the Kendo UI Excel Export component.
12
- */
13
- var ColumnGroupComponent = /** @class */ (function (_super) {
14
- tslib_1.__extends(ColumnGroupComponent, _super);
15
- function ColumnGroupComponent(parent) {
16
- var _this = _super.call(this, parent) || this;
17
- _this.parent = parent;
18
- return _this;
19
- }
20
- ColumnGroupComponent_1 = ColumnGroupComponent;
21
- var ColumnGroupComponent_1;
22
- ColumnGroupComponent = ColumnGroupComponent_1 = tslib_1.__decorate([
23
- core_1.Component({
24
- providers: [
25
- {
26
- provide: column_base_1.ColumnBase,
27
- useExisting: core_1.forwardRef(function () { return ColumnGroupComponent_1; }) // tslint:disable-line:no-forward-ref
28
- }
29
- ],
30
- selector: 'kendo-excelexport-column-group',
31
- template: ""
32
- }),
33
- tslib_1.__param(0, core_1.SkipSelf()), tslib_1.__param(0, core_1.Host()), tslib_1.__param(0, core_1.Optional()),
34
- tslib_1.__metadata("design:paramtypes", [column_base_1.ColumnBase])
35
- ], ColumnGroupComponent);
36
- return ColumnGroupComponent;
37
- }(column_base_1.ColumnBase));
38
- exports.ColumnGroupComponent = ColumnGroupComponent;