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