@progress/kendo-angular-excel-export 24.2.2 → 25.0.0-develop.12
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/fesm2022/progress-kendo-angular-excel-export.mjs +192 -62
- package/index.d.ts +506 -13
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/columns/column-base.d.ts +0 -48
- package/columns/column-group.component.d.ts +0 -24
- package/columns/column.component.d.ts +0 -65
- package/columns/footer-template.directive.d.ts +0 -24
- package/columns/group-footer-template.directive.d.ts +0 -24
- package/columns/group-header-column-template.directive.d.ts +0 -24
- package/columns/group-header-template.directive.d.ts +0 -24
- package/directives.d.ts +0 -15
- package/excel-export-data.d.ts +0 -23
- package/excel-export.component.d.ts +0 -128
- package/excel-export.module.d.ts +0 -39
- package/ooxml/cell-options.interface.d.ts +0 -84
- package/ooxml/exporter-columns.d.ts +0 -35
- package/ooxml/workbook.d.ts +0 -18
- package/package-metadata.d.ts +0 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { ContentChildren, Input, Component, QueryList, Optional, Directive, forwardRef, ContentChild, SkipSelf, Host, NgModule } from '@angular/core';
|
|
6
|
+
import { signal, ContentChildren, Input, ChangeDetectionStrategy, Component, QueryList, Optional, Directive, forwardRef, ContentChild, SkipSelf, Host, NgModule } from '@angular/core';
|
|
7
7
|
import { saveAs } from '@progress/kendo-file-saver';
|
|
8
8
|
import { IntlService, ExcelExporter, Workbook } from '@progress/kendo-ooxml';
|
|
9
9
|
export * from '@progress/kendo-ooxml';
|
|
@@ -188,27 +188,52 @@ class ColumnBase {
|
|
|
188
188
|
/**
|
|
189
189
|
* The title of the column.
|
|
190
190
|
*/
|
|
191
|
-
title
|
|
191
|
+
set title(value) {
|
|
192
|
+
this._title.set(value);
|
|
193
|
+
}
|
|
194
|
+
get title() {
|
|
195
|
+
return this._title();
|
|
196
|
+
}
|
|
192
197
|
/**
|
|
193
198
|
* The width of the column in pixels.
|
|
194
199
|
*/
|
|
195
|
-
width
|
|
200
|
+
set width(value) {
|
|
201
|
+
this._width.set(value);
|
|
202
|
+
}
|
|
203
|
+
get width() {
|
|
204
|
+
return this._width();
|
|
205
|
+
}
|
|
196
206
|
/**
|
|
197
207
|
* Toggles the locked (frozen) state of the column ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/columns#locked-state)).
|
|
198
208
|
*
|
|
199
209
|
* @default false
|
|
200
210
|
*/
|
|
201
|
-
locked
|
|
211
|
+
set locked(value) {
|
|
212
|
+
this._locked.set(value);
|
|
213
|
+
}
|
|
214
|
+
get locked() {
|
|
215
|
+
return this._locked();
|
|
216
|
+
}
|
|
202
217
|
/**
|
|
203
218
|
* Sets the visibility of the column ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/columns#hidden-state)).
|
|
204
219
|
*
|
|
205
220
|
* @default false
|
|
206
221
|
*/
|
|
207
|
-
hidden
|
|
222
|
+
set hidden(value) {
|
|
223
|
+
this._hidden.set(value);
|
|
224
|
+
}
|
|
225
|
+
get hidden() {
|
|
226
|
+
return this._hidden();
|
|
227
|
+
}
|
|
208
228
|
/**
|
|
209
229
|
* The options of the column header cell.
|
|
210
230
|
*/
|
|
211
|
-
headerCellOptions
|
|
231
|
+
set headerCellOptions(value) {
|
|
232
|
+
this._headerCellOptions.set(value);
|
|
233
|
+
}
|
|
234
|
+
get headerCellOptions() {
|
|
235
|
+
return this._headerCellOptions();
|
|
236
|
+
}
|
|
212
237
|
/**
|
|
213
238
|
* @hidden
|
|
214
239
|
*/
|
|
@@ -219,16 +244,22 @@ class ColumnBase {
|
|
|
219
244
|
get level() {
|
|
220
245
|
return this.parent ? this.parent.level + 1 : 0;
|
|
221
246
|
}
|
|
247
|
+
_title = signal(undefined, ...(ngDevMode ? [{ debugName: "_title" }] : []));
|
|
248
|
+
_width = signal(undefined, ...(ngDevMode ? [{ debugName: "_width" }] : []));
|
|
249
|
+
_locked = signal(undefined, ...(ngDevMode ? [{ debugName: "_locked" }] : []));
|
|
250
|
+
_hidden = signal(undefined, ...(ngDevMode ? [{ debugName: "_hidden" }] : []));
|
|
251
|
+
_headerCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_headerCellOptions" }] : []));
|
|
222
252
|
constructor(parent) {
|
|
223
253
|
this.parent = parent;
|
|
224
254
|
}
|
|
225
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
226
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
255
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnBase, deps: [{ token: ColumnBase }], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: ColumnBase, isStandalone: true, selector: "ng-component", inputs: { title: "title", width: "width", locked: "locked", hidden: "hidden", headerCellOptions: "headerCellOptions" }, queries: [{ propertyName: "children", predicate: ColumnBase }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
227
257
|
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnBase, decorators: [{
|
|
229
259
|
type: Component,
|
|
230
260
|
args: [{
|
|
231
|
-
template: ''
|
|
261
|
+
template: '',
|
|
262
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
232
263
|
}]
|
|
233
264
|
}], ctorParameters: () => [{ type: ColumnBase }], propDecorators: { title: [{
|
|
234
265
|
type: Input
|
|
@@ -253,8 +284,8 @@ const packageMetadata = {
|
|
|
253
284
|
productName: 'Kendo UI for Angular',
|
|
254
285
|
productCode: 'KENDOUIANGULAR',
|
|
255
286
|
productCodes: ['KENDOUIANGULAR'],
|
|
256
|
-
publishDate:
|
|
257
|
-
version: '
|
|
287
|
+
publishDate: 1785317873,
|
|
288
|
+
version: '25.0.0-develop.12',
|
|
258
289
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
259
290
|
};
|
|
260
291
|
|
|
@@ -282,32 +313,62 @@ class ExcelExportComponent {
|
|
|
282
313
|
*
|
|
283
314
|
* @default "Export.xlsx"
|
|
284
315
|
*/
|
|
285
|
-
fileName
|
|
316
|
+
set fileName(value) {
|
|
317
|
+
this._fileName.set(value);
|
|
318
|
+
}
|
|
319
|
+
get fileName() {
|
|
320
|
+
return this._fileName();
|
|
321
|
+
}
|
|
286
322
|
/**
|
|
287
323
|
* Determines whether to enable column filtering in the exported Excel file
|
|
288
324
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/filtering)).
|
|
289
325
|
*/
|
|
290
|
-
filterable
|
|
326
|
+
set filterable(value) {
|
|
327
|
+
this._filterable.set(value);
|
|
328
|
+
}
|
|
329
|
+
get filterable() {
|
|
330
|
+
return this._filterable();
|
|
331
|
+
}
|
|
291
332
|
/**
|
|
292
333
|
* Determines whether groups in the Excel file are collapsible.
|
|
293
334
|
*/
|
|
294
|
-
collapsible
|
|
335
|
+
set collapsible(value) {
|
|
336
|
+
this._collapsible.set(value);
|
|
337
|
+
}
|
|
338
|
+
get collapsible() {
|
|
339
|
+
return this._collapsible();
|
|
340
|
+
}
|
|
295
341
|
/**
|
|
296
342
|
* Specifies the author of the workbook.
|
|
297
343
|
*/
|
|
298
|
-
creator
|
|
344
|
+
set creator(value) {
|
|
345
|
+
this._creator.set(value);
|
|
346
|
+
}
|
|
347
|
+
get creator() {
|
|
348
|
+
return this._creator();
|
|
349
|
+
}
|
|
299
350
|
/**
|
|
300
351
|
* Specifies the creation date of the workbook.
|
|
301
352
|
* The default value is `new Date()`.
|
|
302
353
|
*
|
|
303
354
|
* @default `new Date()`
|
|
304
355
|
*/
|
|
305
|
-
date
|
|
356
|
+
set date(value) {
|
|
357
|
+
this._date.set(value);
|
|
358
|
+
}
|
|
359
|
+
get date() {
|
|
360
|
+
return this._date();
|
|
361
|
+
}
|
|
306
362
|
/**
|
|
307
363
|
* Determines whether to force the use of a proxy server for file downloads.
|
|
308
364
|
* When set to `true`, the component sends content to `proxyURL` even if the browser supports local file saving.
|
|
309
365
|
*/
|
|
310
|
-
forceProxy
|
|
366
|
+
set forceProxy(value) {
|
|
367
|
+
this._forceProxy.set(value);
|
|
368
|
+
}
|
|
369
|
+
get forceProxy() {
|
|
370
|
+
return this._forceProxy();
|
|
371
|
+
}
|
|
311
372
|
/**
|
|
312
373
|
* Specifies the URL of the server-side proxy that streams the file to the user.
|
|
313
374
|
* When the browser cannot save files locally (for example, Internet Explorer 9 and earlier, and Safari), the component uses a proxy.
|
|
@@ -319,35 +380,71 @@ class ExcelExportComponent {
|
|
|
319
380
|
* - `fileName`—The requested file name.
|
|
320
381
|
* The proxy must return the decoded file with the `Content-Disposition` header set to `attachment; filename="<fileName.xslx>"`.
|
|
321
382
|
*/
|
|
322
|
-
proxyURL
|
|
383
|
+
set proxyURL(value) {
|
|
384
|
+
this._proxyURL.set(value);
|
|
385
|
+
}
|
|
386
|
+
get proxyURL() {
|
|
387
|
+
return this._proxyURL();
|
|
388
|
+
}
|
|
323
389
|
/**
|
|
324
390
|
* Specifies the data to export.
|
|
325
391
|
* When the data is grouped, structure it as described by the
|
|
326
392
|
* [`GroupResult`](https://www.telerik.com/kendo-angular-ui/components/data-query/api/groupresult) option of the Kendo UI Data Query component.
|
|
327
393
|
*/
|
|
328
|
-
data
|
|
394
|
+
set data(value) {
|
|
395
|
+
this._data.set(value);
|
|
396
|
+
}
|
|
397
|
+
get data() {
|
|
398
|
+
return this._data();
|
|
399
|
+
}
|
|
329
400
|
/**
|
|
330
401
|
* Specifies the exported data groups.
|
|
331
402
|
* The groups must match the
|
|
332
403
|
* [`GroupDescriptor`](https://www.telerik.com/kendo-angular-ui/components/data-query/api/groupdescriptor) option of the Kendo UI Data Query component.
|
|
333
404
|
*/
|
|
334
|
-
group
|
|
405
|
+
set group(value) {
|
|
406
|
+
this._group.set(value);
|
|
407
|
+
}
|
|
408
|
+
get group() {
|
|
409
|
+
return this._group();
|
|
410
|
+
}
|
|
335
411
|
/**
|
|
336
412
|
* Specifies the options for cells inserted before data, group, and footer cells
|
|
337
413
|
* to show group hierarchy when the data is grouped
|
|
338
414
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#padding-cells)).
|
|
339
415
|
*/
|
|
340
|
-
paddingCellOptions
|
|
416
|
+
set paddingCellOptions(value) {
|
|
417
|
+
this._paddingCellOptions.set(value);
|
|
418
|
+
}
|
|
419
|
+
get paddingCellOptions() {
|
|
420
|
+
return this._paddingCellOptions();
|
|
421
|
+
}
|
|
341
422
|
/**
|
|
342
423
|
* Specifies the options for cells inserted before header cells
|
|
343
424
|
* to align headers and column values when the data is grouped
|
|
344
425
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#header-padding-cells)).
|
|
345
426
|
*/
|
|
346
|
-
headerPaddingCellOptions
|
|
427
|
+
set headerPaddingCellOptions(value) {
|
|
428
|
+
this._headerPaddingCellOptions.set(value);
|
|
429
|
+
}
|
|
430
|
+
get headerPaddingCellOptions() {
|
|
431
|
+
return this._headerPaddingCellOptions();
|
|
432
|
+
}
|
|
347
433
|
/**
|
|
348
434
|
* @hidden
|
|
349
435
|
*/
|
|
350
436
|
columns = new QueryList();
|
|
437
|
+
_fileName = signal('Export.xlsx', ...(ngDevMode ? [{ debugName: "_fileName" }] : []));
|
|
438
|
+
_filterable = signal(undefined, ...(ngDevMode ? [{ debugName: "_filterable" }] : []));
|
|
439
|
+
_collapsible = signal(undefined, ...(ngDevMode ? [{ debugName: "_collapsible" }] : []));
|
|
440
|
+
_creator = signal(undefined, ...(ngDevMode ? [{ debugName: "_creator" }] : []));
|
|
441
|
+
_date = signal(undefined, ...(ngDevMode ? [{ debugName: "_date" }] : []));
|
|
442
|
+
_forceProxy = signal(undefined, ...(ngDevMode ? [{ debugName: "_forceProxy" }] : []));
|
|
443
|
+
_proxyURL = signal(undefined, ...(ngDevMode ? [{ debugName: "_proxyURL" }] : []));
|
|
444
|
+
_data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : []));
|
|
445
|
+
_group = signal(undefined, ...(ngDevMode ? [{ debugName: "_group" }] : []));
|
|
446
|
+
_paddingCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_paddingCellOptions" }] : []));
|
|
447
|
+
_headerPaddingCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_headerPaddingCellOptions" }] : []));
|
|
351
448
|
constructor(localization, zone) {
|
|
352
449
|
this.localization = localization;
|
|
353
450
|
this.zone = zone;
|
|
@@ -424,20 +521,20 @@ class ExcelExportComponent {
|
|
|
424
521
|
proxyURL: this.proxyURL
|
|
425
522
|
});
|
|
426
523
|
}
|
|
427
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
428
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
525
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", 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: [
|
|
429
526
|
LocalizationService,
|
|
430
527
|
{
|
|
431
528
|
provide: L10N_PREFIX,
|
|
432
529
|
useValue: 'kendo.excelexport'
|
|
433
530
|
}
|
|
434
|
-
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true });
|
|
531
|
+
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
435
532
|
}
|
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
437
534
|
type: Component,
|
|
438
535
|
args: [{
|
|
439
|
-
exportAs: 'kendoExcelExport',
|
|
440
536
|
selector: 'kendo-excelexport',
|
|
537
|
+
exportAs: 'kendoExcelExport',
|
|
441
538
|
providers: [
|
|
442
539
|
LocalizationService,
|
|
443
540
|
{
|
|
@@ -446,7 +543,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
446
543
|
}
|
|
447
544
|
],
|
|
448
545
|
template: ``,
|
|
449
|
-
standalone: true
|
|
546
|
+
standalone: true,
|
|
547
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
450
548
|
}]
|
|
451
549
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.NgZone }], propDecorators: { fileName: [{
|
|
452
550
|
type: Input
|
|
@@ -492,10 +590,10 @@ class FooterTemplateDirective {
|
|
|
492
590
|
constructor(templateRef) {
|
|
493
591
|
this.templateRef = templateRef;
|
|
494
592
|
}
|
|
495
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
496
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
593
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
594
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
497
595
|
}
|
|
498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
499
597
|
type: Directive,
|
|
500
598
|
args: [{
|
|
501
599
|
selector: '[kendoExcelExportFooterTemplate]',
|
|
@@ -522,10 +620,10 @@ class GroupHeaderTemplateDirective {
|
|
|
522
620
|
constructor(templateRef) {
|
|
523
621
|
this.templateRef = templateRef;
|
|
524
622
|
}
|
|
525
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
526
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
623
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
624
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: GroupHeaderTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
527
625
|
}
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
529
627
|
type: Directive,
|
|
530
628
|
args: [{
|
|
531
629
|
selector: '[kendoExcelExportGroupHeaderTemplate]',
|
|
@@ -552,10 +650,10 @@ class GroupHeaderColumnTemplateDirective {
|
|
|
552
650
|
constructor(templateRef) {
|
|
553
651
|
this.templateRef = templateRef;
|
|
554
652
|
}
|
|
555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
556
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
653
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupHeaderColumnTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
654
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: GroupHeaderColumnTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
557
655
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
559
657
|
type: Directive,
|
|
560
658
|
args: [{
|
|
561
659
|
selector: '[kendoExcelExportGroupHeaderColumnTemplate]',
|
|
@@ -582,10 +680,10 @@ class GroupFooterTemplateDirective {
|
|
|
582
680
|
constructor(templateRef) {
|
|
583
681
|
this.templateRef = templateRef;
|
|
584
682
|
}
|
|
585
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
586
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
684
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: GroupFooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
587
685
|
}
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
589
687
|
type: Directive,
|
|
590
688
|
args: [{
|
|
591
689
|
selector: '[kendoExcelExportGroupFooterTemplate]',
|
|
@@ -608,27 +706,52 @@ class ColumnComponent extends ColumnBase {
|
|
|
608
706
|
/**
|
|
609
707
|
* Specifies the field that the column displays.
|
|
610
708
|
*/
|
|
611
|
-
field
|
|
709
|
+
set field(value) {
|
|
710
|
+
this._field.set(value);
|
|
711
|
+
}
|
|
712
|
+
get field() {
|
|
713
|
+
return this._field();
|
|
714
|
+
}
|
|
612
715
|
/**
|
|
613
716
|
* Specifies options for the column's data cells
|
|
614
717
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#data-cells)).
|
|
615
718
|
*/
|
|
616
|
-
cellOptions
|
|
719
|
+
set cellOptions(value) {
|
|
720
|
+
this._cellOptions.set(value);
|
|
721
|
+
}
|
|
722
|
+
get cellOptions() {
|
|
723
|
+
return this._cellOptions();
|
|
724
|
+
}
|
|
617
725
|
/**
|
|
618
726
|
* Specifies options for the group header cells of the column
|
|
619
727
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#header-cells)).
|
|
620
728
|
*/
|
|
621
|
-
groupHeaderCellOptions
|
|
729
|
+
set groupHeaderCellOptions(value) {
|
|
730
|
+
this._groupHeaderCellOptions.set(value);
|
|
731
|
+
}
|
|
732
|
+
get groupHeaderCellOptions() {
|
|
733
|
+
return this._groupHeaderCellOptions();
|
|
734
|
+
}
|
|
622
735
|
/**
|
|
623
736
|
* Specifies options for the group footer cells of the column
|
|
624
737
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#group-footer-cells)).
|
|
625
738
|
*/
|
|
626
|
-
groupFooterCellOptions
|
|
739
|
+
set groupFooterCellOptions(value) {
|
|
740
|
+
this._groupFooterCellOptions.set(value);
|
|
741
|
+
}
|
|
742
|
+
get groupFooterCellOptions() {
|
|
743
|
+
return this._groupFooterCellOptions();
|
|
744
|
+
}
|
|
627
745
|
/**
|
|
628
746
|
* Specifies options for the footer cell of the column
|
|
629
747
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/excel-export/cells#footer-cells)).
|
|
630
748
|
*/
|
|
631
|
-
footerCellOptions
|
|
749
|
+
set footerCellOptions(value) {
|
|
750
|
+
this._footerCellOptions.set(value);
|
|
751
|
+
}
|
|
752
|
+
get footerCellOptions() {
|
|
753
|
+
return this._footerCellOptions();
|
|
754
|
+
}
|
|
632
755
|
/**
|
|
633
756
|
* @hidden
|
|
634
757
|
*/
|
|
@@ -645,29 +768,35 @@ class ColumnComponent extends ColumnBase {
|
|
|
645
768
|
* @hidden
|
|
646
769
|
*/
|
|
647
770
|
footerTemplate;
|
|
771
|
+
_field = signal(undefined, ...(ngDevMode ? [{ debugName: "_field" }] : []));
|
|
772
|
+
_cellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_cellOptions" }] : []));
|
|
773
|
+
_groupHeaderCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_groupHeaderCellOptions" }] : []));
|
|
774
|
+
_groupFooterCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_groupFooterCellOptions" }] : []));
|
|
775
|
+
_footerCellOptions = signal(undefined, ...(ngDevMode ? [{ debugName: "_footerCellOptions" }] : []));
|
|
648
776
|
constructor(parent) {
|
|
649
777
|
super(parent);
|
|
650
778
|
}
|
|
651
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
652
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
779
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnComponent, deps: [{ token: ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
780
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: ColumnComponent, isStandalone: true, selector: "kendo-excelexport-column", inputs: { field: "field", cellOptions: "cellOptions", groupHeaderCellOptions: "groupHeaderCellOptions", groupFooterCellOptions: "groupFooterCellOptions", footerCellOptions: "footerCellOptions" }, providers: [
|
|
653
781
|
{
|
|
654
782
|
provide: ColumnBase,
|
|
655
783
|
useExisting: forwardRef(() => ColumnComponent)
|
|
656
784
|
}
|
|
657
|
-
], 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 });
|
|
785
|
+
], 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, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
658
786
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
660
788
|
type: Component,
|
|
661
789
|
args: [{
|
|
790
|
+
selector: 'kendo-excelexport-column',
|
|
662
791
|
providers: [
|
|
663
792
|
{
|
|
664
793
|
provide: ColumnBase,
|
|
665
794
|
useExisting: forwardRef(() => ColumnComponent)
|
|
666
795
|
}
|
|
667
796
|
],
|
|
668
|
-
selector: 'kendo-excelexport-column',
|
|
669
797
|
template: ``,
|
|
670
|
-
standalone: true
|
|
798
|
+
standalone: true,
|
|
799
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
671
800
|
}]
|
|
672
801
|
}], ctorParameters: () => [{ type: ColumnBase, decorators: [{
|
|
673
802
|
type: SkipSelf
|
|
@@ -717,26 +846,27 @@ class ColumnGroupComponent extends ColumnBase {
|
|
|
717
846
|
super(parent);
|
|
718
847
|
this.parent = parent;
|
|
719
848
|
}
|
|
720
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
721
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
849
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnGroupComponent, deps: [{ token: ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
850
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: ColumnGroupComponent, isStandalone: true, selector: "kendo-excelexport-column-group", providers: [
|
|
722
851
|
{
|
|
723
852
|
provide: ColumnBase,
|
|
724
853
|
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
725
854
|
}
|
|
726
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
855
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
727
856
|
}
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
729
858
|
type: Component,
|
|
730
859
|
args: [{
|
|
860
|
+
selector: 'kendo-excelexport-column-group',
|
|
731
861
|
providers: [
|
|
732
862
|
{
|
|
733
863
|
provide: ColumnBase,
|
|
734
864
|
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
735
865
|
}
|
|
736
866
|
],
|
|
737
|
-
selector: 'kendo-excelexport-column-group',
|
|
738
867
|
template: ``,
|
|
739
|
-
standalone: true
|
|
868
|
+
standalone: true,
|
|
869
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
740
870
|
}]
|
|
741
871
|
}], ctorParameters: () => [{ type: ColumnBase, decorators: [{
|
|
742
872
|
type: SkipSelf
|
|
@@ -783,11 +913,11 @@ const KENDO_EXCELEXPORT = [
|
|
|
783
913
|
* ```
|
|
784
914
|
*/
|
|
785
915
|
class ExcelExportModule {
|
|
786
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
787
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
788
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
916
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
917
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportModule, imports: [ExcelExportComponent, ColumnComponent, ColumnGroupComponent, FooterTemplateDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderTemplateDirective], exports: [ExcelExportComponent, ColumnComponent, ColumnGroupComponent, FooterTemplateDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderTemplateDirective] });
|
|
918
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportModule });
|
|
789
919
|
}
|
|
790
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
791
921
|
type: NgModule,
|
|
792
922
|
args: [{
|
|
793
923
|
imports: [...KENDO_EXCELEXPORT],
|