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