@progress/kendo-angular-excel-export 21.4.1 → 22.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/fesm2022/progress-kendo-angular-excel-export.mjs +31 -31
- package/package.json +9 -17
- package/esm2022/columns/column-base.mjs +0 -70
- package/esm2022/columns/column-group.component.mjs +0 -54
- package/esm2022/columns/column.component.mjs +0 -115
- package/esm2022/columns/footer-template.directive.mjs +0 -35
- package/esm2022/columns/group-footer-template.directive.mjs +0 -35
- package/esm2022/columns/group-header-column-template.directive.mjs +0 -35
- package/esm2022/columns/group-header-template.directive.mjs +0 -35
- package/esm2022/directives.mjs +0 -23
- package/esm2022/excel-export-data.mjs +0 -5
- package/esm2022/excel-export.component.mjs +0 -229
- package/esm2022/excel-export.module.mjs +0 -49
- package/esm2022/index.mjs +0 -16
- package/esm2022/ooxml/cell-options.interface.mjs +0 -5
- package/esm2022/ooxml/exporter-columns.mjs +0 -132
- package/esm2022/ooxml/workbook.mjs +0 -45
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-excel-export.mjs +0 -8
package/columns/column-base.d.ts
CHANGED
|
@@ -44,5 +44,5 @@ export declare class ColumnBase {
|
|
|
44
44
|
get level(): number;
|
|
45
45
|
constructor(parent?: ColumnBase);
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnBase, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnBase, "ng-component", never, { "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "locked": { "alias": "locked"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "headerCellOptions": { "alias": "headerCellOptions"; "required": false; }; }, {}, ["children"], never,
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnBase, "ng-component", never, { "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "locked": { "alias": "locked"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "headerCellOptions": { "alias": "headerCellOptions"; "required": false; }; }, {}, ["children"], never, true, never>;
|
|
48
48
|
}
|
|
@@ -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 {
|
|
6
|
+
import { ContentChildren, Input, 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';
|
|
@@ -222,10 +222,10 @@ class ColumnBase {
|
|
|
222
222
|
constructor(parent) {
|
|
223
223
|
this.parent = parent;
|
|
224
224
|
}
|
|
225
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
226
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnBase, deps: [{ token: ColumnBase }], target: i0.ɵɵFactoryTarget.Component });
|
|
226
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", 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 });
|
|
227
227
|
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnBase, decorators: [{
|
|
229
229
|
type: Component,
|
|
230
230
|
args: [{
|
|
231
231
|
template: ''
|
|
@@ -253,8 +253,8 @@ const packageMetadata = {
|
|
|
253
253
|
productName: 'Kendo UI for Angular',
|
|
254
254
|
productCode: 'KENDOUIANGULAR',
|
|
255
255
|
productCodes: ['KENDOUIANGULAR'],
|
|
256
|
-
publishDate:
|
|
257
|
-
version: '
|
|
256
|
+
publishDate: 1768402380,
|
|
257
|
+
version: '22.0.0',
|
|
258
258
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
259
259
|
};
|
|
260
260
|
|
|
@@ -424,8 +424,8 @@ class ExcelExportComponent {
|
|
|
424
424
|
proxyURL: this.proxyURL
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
428
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
427
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
428
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", 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
429
|
LocalizationService,
|
|
430
430
|
{
|
|
431
431
|
provide: L10N_PREFIX,
|
|
@@ -433,7 +433,7 @@ class ExcelExportComponent {
|
|
|
433
433
|
}
|
|
434
434
|
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true });
|
|
435
435
|
}
|
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
437
437
|
type: Component,
|
|
438
438
|
args: [{
|
|
439
439
|
exportAs: 'kendoExcelExport',
|
|
@@ -492,10 +492,10 @@ class FooterTemplateDirective {
|
|
|
492
492
|
constructor(templateRef) {
|
|
493
493
|
this.templateRef = templateRef;
|
|
494
494
|
}
|
|
495
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
496
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
495
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
496
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
497
497
|
}
|
|
498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
499
499
|
type: Directive,
|
|
500
500
|
args: [{
|
|
501
501
|
selector: '[kendoExcelExportFooterTemplate]',
|
|
@@ -522,10 +522,10 @@ class GroupHeaderTemplateDirective {
|
|
|
522
522
|
constructor(templateRef) {
|
|
523
523
|
this.templateRef = templateRef;
|
|
524
524
|
}
|
|
525
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
526
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
525
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
526
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GroupHeaderTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
527
527
|
}
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
529
529
|
type: Directive,
|
|
530
530
|
args: [{
|
|
531
531
|
selector: '[kendoExcelExportGroupHeaderTemplate]',
|
|
@@ -552,10 +552,10 @@ class GroupHeaderColumnTemplateDirective {
|
|
|
552
552
|
constructor(templateRef) {
|
|
553
553
|
this.templateRef = templateRef;
|
|
554
554
|
}
|
|
555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
556
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupHeaderColumnTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
556
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GroupHeaderColumnTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
557
557
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
559
559
|
type: Directive,
|
|
560
560
|
args: [{
|
|
561
561
|
selector: '[kendoExcelExportGroupHeaderColumnTemplate]',
|
|
@@ -582,10 +582,10 @@ class GroupFooterTemplateDirective {
|
|
|
582
582
|
constructor(templateRef) {
|
|
583
583
|
this.templateRef = templateRef;
|
|
584
584
|
}
|
|
585
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
586
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
585
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
586
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GroupFooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
587
587
|
}
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
589
589
|
type: Directive,
|
|
590
590
|
args: [{
|
|
591
591
|
selector: '[kendoExcelExportGroupFooterTemplate]',
|
|
@@ -648,15 +648,15 @@ class ColumnComponent extends ColumnBase {
|
|
|
648
648
|
constructor(parent) {
|
|
649
649
|
super(parent);
|
|
650
650
|
}
|
|
651
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
652
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
651
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnComponent, deps: [{ token: ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
652
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ColumnComponent, isStandalone: true, selector: "kendo-excelexport-column", inputs: { field: "field", cellOptions: "cellOptions", groupHeaderCellOptions: "groupHeaderCellOptions", groupFooterCellOptions: "groupFooterCellOptions", footerCellOptions: "footerCellOptions" }, providers: [
|
|
653
653
|
{
|
|
654
654
|
provide: ColumnBase,
|
|
655
655
|
useExisting: forwardRef(() => ColumnComponent)
|
|
656
656
|
}
|
|
657
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 });
|
|
658
658
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
660
660
|
type: Component,
|
|
661
661
|
args: [{
|
|
662
662
|
providers: [
|
|
@@ -717,15 +717,15 @@ class ColumnGroupComponent extends ColumnBase {
|
|
|
717
717
|
super(parent);
|
|
718
718
|
this.parent = parent;
|
|
719
719
|
}
|
|
720
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
721
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnGroupComponent, deps: [{ token: ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
721
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ColumnGroupComponent, isStandalone: true, selector: "kendo-excelexport-column-group", providers: [
|
|
722
722
|
{
|
|
723
723
|
provide: ColumnBase,
|
|
724
724
|
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
725
725
|
}
|
|
726
726
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
727
727
|
}
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
729
729
|
type: Component,
|
|
730
730
|
args: [{
|
|
731
731
|
providers: [
|
|
@@ -783,11 +783,11 @@ const KENDO_EXCELEXPORT = [
|
|
|
783
783
|
* ```
|
|
784
784
|
*/
|
|
785
785
|
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: "
|
|
786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
787
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportModule, imports: [ExcelExportComponent, ColumnComponent, ColumnGroupComponent, FooterTemplateDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderTemplateDirective], exports: [ExcelExportComponent, ColumnComponent, ColumnGroupComponent, FooterTemplateDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderTemplateDirective] });
|
|
788
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportModule });
|
|
789
789
|
}
|
|
790
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
791
791
|
type: NgModule,
|
|
792
792
|
args: [{
|
|
793
793
|
imports: [...KENDO_EXCELEXPORT],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-excel-export",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"description": "Kendo UI for Angular Excel Export component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -15,27 +15,21 @@
|
|
|
15
15
|
"Kendo UI"
|
|
16
16
|
],
|
|
17
17
|
"@progress": {
|
|
18
|
-
"friendlyName": "ExcelExport"
|
|
19
|
-
"package": {
|
|
20
|
-
"productName": "Kendo UI for Angular",
|
|
21
|
-
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate": 1768393124,
|
|
23
|
-
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
|
-
}
|
|
18
|
+
"friendlyName": "ExcelExport"
|
|
25
19
|
},
|
|
26
20
|
"peerDependencies": {
|
|
27
|
-
"@angular/animations": "
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
30
|
-
"@angular/platform-browser": "
|
|
21
|
+
"@angular/animations": "19 - 21",
|
|
22
|
+
"@angular/common": "19 - 21",
|
|
23
|
+
"@angular/core": "19 - 21",
|
|
24
|
+
"@angular/platform-browser": "19 - 21",
|
|
31
25
|
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
-
"@progress/kendo-angular-common": "
|
|
33
|
-
"@progress/kendo-angular-l10n": "
|
|
26
|
+
"@progress/kendo-angular-common": "22.0.0",
|
|
27
|
+
"@progress/kendo-angular-l10n": "22.0.0",
|
|
34
28
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
35
29
|
},
|
|
36
30
|
"dependencies": {
|
|
37
31
|
"tslib": "^2.3.1",
|
|
38
|
-
"@progress/kendo-angular-schematics": "
|
|
32
|
+
"@progress/kendo-angular-schematics": "22.0.0",
|
|
39
33
|
"@progress/kendo-file-saver": "^1.0.0",
|
|
40
34
|
"@progress/kendo-intl": "^3.0.0",
|
|
41
35
|
"@progress/kendo-ooxml": "^1.9.0"
|
|
@@ -49,8 +43,6 @@
|
|
|
49
43
|
},
|
|
50
44
|
".": {
|
|
51
45
|
"types": "./index.d.ts",
|
|
52
|
-
"esm2022": "./esm2022/progress-kendo-angular-excel-export.mjs",
|
|
53
|
-
"esm": "./esm2022/progress-kendo-angular-excel-export.mjs",
|
|
54
46
|
"default": "./fesm2022/progress-kendo-angular-excel-export.mjs"
|
|
55
47
|
}
|
|
56
48
|
},
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Input, ContentChildren, QueryList, Component } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class ColumnBase {
|
|
11
|
-
parent;
|
|
12
|
-
/**
|
|
13
|
-
* The title of the column.
|
|
14
|
-
*/
|
|
15
|
-
title;
|
|
16
|
-
/**
|
|
17
|
-
* The width of the column in pixels.
|
|
18
|
-
*/
|
|
19
|
-
width;
|
|
20
|
-
/**
|
|
21
|
-
* Toggles the locked (frozen) state of the column ([see example]({% slug columns_excel-export %}#toc-locked-state)).
|
|
22
|
-
*
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
locked;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the visibility of the column ([see example]({% slug columns_excel-export %}#toc-hidden-state)).
|
|
28
|
-
*
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
hidden;
|
|
32
|
-
/**
|
|
33
|
-
* The options of the column header cell.
|
|
34
|
-
*/
|
|
35
|
-
headerCellOptions;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
children;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
get level() {
|
|
44
|
-
return this.parent ? this.parent.level + 1 : 0;
|
|
45
|
-
}
|
|
46
|
-
constructor(parent) {
|
|
47
|
-
this.parent = parent;
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnBase, deps: [{ token: ColumnBase }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", 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 });
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnBase, decorators: [{
|
|
53
|
-
type: Component,
|
|
54
|
-
args: [{
|
|
55
|
-
template: ''
|
|
56
|
-
}]
|
|
57
|
-
}], ctorParameters: () => [{ type: ColumnBase }], propDecorators: { title: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}], width: [{
|
|
60
|
-
type: Input
|
|
61
|
-
}], locked: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], hidden: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], headerCellOptions: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], children: [{
|
|
68
|
-
type: ContentChildren,
|
|
69
|
-
args: [ColumnBase]
|
|
70
|
-
}] } });
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, forwardRef, SkipSelf, Host, Optional } from '@angular/core';
|
|
6
|
-
import { ColumnBase } from './column-base';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./column-base";
|
|
9
|
-
/**
|
|
10
|
-
* Represents a group of columns in the Kendo UI Excel Export component.
|
|
11
|
-
* Use this component to organize columns into groups.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <kendo-excelexport-column-group>
|
|
16
|
-
* <kendo-excelexport-column field="ProductName"></kendo-excelexport-column>
|
|
17
|
-
* <kendo-excelexport-column field="UnitPrice"></kendo-excelexport-column>
|
|
18
|
-
* </kendo-excelexport-column-group>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export class ColumnGroupComponent extends ColumnBase {
|
|
22
|
-
parent;
|
|
23
|
-
constructor(parent) {
|
|
24
|
-
super(parent);
|
|
25
|
-
this.parent = parent;
|
|
26
|
-
}
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnGroupComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColumnGroupComponent, isStandalone: true, selector: "kendo-excelexport-column-group", providers: [
|
|
29
|
-
{
|
|
30
|
-
provide: ColumnBase,
|
|
31
|
-
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
32
|
-
}
|
|
33
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{
|
|
38
|
-
providers: [
|
|
39
|
-
{
|
|
40
|
-
provide: ColumnBase,
|
|
41
|
-
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
selector: 'kendo-excelexport-column-group',
|
|
45
|
-
template: ``,
|
|
46
|
-
standalone: true
|
|
47
|
-
}]
|
|
48
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
49
|
-
type: SkipSelf
|
|
50
|
-
}, {
|
|
51
|
-
type: Host
|
|
52
|
-
}, {
|
|
53
|
-
type: Optional
|
|
54
|
-
}] }] });
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { forwardRef, Component, Input, ContentChild, SkipSelf, Host, Optional } from '@angular/core';
|
|
6
|
-
import { GroupHeaderTemplateDirective } from './group-header-template.directive';
|
|
7
|
-
import { GroupHeaderColumnTemplateDirective } from './group-header-column-template.directive';
|
|
8
|
-
import { GroupFooterTemplateDirective } from './group-footer-template.directive';
|
|
9
|
-
import { FooterTemplateDirective } from './footer-template.directive';
|
|
10
|
-
import { ColumnBase } from './column-base';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./column-base";
|
|
13
|
-
/**
|
|
14
|
-
* Represents a column in the Kendo UI Excel Export component for Angular.
|
|
15
|
-
* Use this component to define the structure and options for each column.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-excelexport-column field="ProductName"></kendo-excelexport-column>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export class ColumnComponent extends ColumnBase {
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the field that the column displays.
|
|
25
|
-
*/
|
|
26
|
-
field;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies options for the column's data cells
|
|
29
|
-
* ([see example]({% slug cells_excelexport %}#toc-data-cells)).
|
|
30
|
-
*/
|
|
31
|
-
cellOptions;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies options for the group header cells of the column
|
|
34
|
-
* ([see example]({% slug cells_excelexport %}#toc-header-cells)).
|
|
35
|
-
*/
|
|
36
|
-
groupHeaderCellOptions;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies options for the group footer cells of the column
|
|
39
|
-
* ([see example]({% slug cells_excelexport %}#toc-group-footer-cells)).
|
|
40
|
-
*/
|
|
41
|
-
groupFooterCellOptions;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies options for the footer cell of the column
|
|
44
|
-
* ([see example]({% slug cells_excelexport %}#toc-footer-cells)).
|
|
45
|
-
*/
|
|
46
|
-
footerCellOptions;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
groupHeaderTemplate;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
groupHeaderColumnTemplate;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
groupFooterTemplate;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
footerTemplate;
|
|
63
|
-
constructor(parent) {
|
|
64
|
-
super(parent);
|
|
65
|
-
}
|
|
66
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColumnComponent, isStandalone: true, selector: "kendo-excelexport-column", inputs: { field: "field", cellOptions: "cellOptions", groupHeaderCellOptions: "groupHeaderCellOptions", groupFooterCellOptions: "groupFooterCellOptions", footerCellOptions: "footerCellOptions" }, providers: [
|
|
68
|
-
{
|
|
69
|
-
provide: ColumnBase,
|
|
70
|
-
useExisting: forwardRef(() => ColumnComponent)
|
|
71
|
-
}
|
|
72
|
-
], 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 });
|
|
73
|
-
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
75
|
-
type: Component,
|
|
76
|
-
args: [{
|
|
77
|
-
providers: [
|
|
78
|
-
{
|
|
79
|
-
provide: ColumnBase,
|
|
80
|
-
useExisting: forwardRef(() => ColumnComponent)
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
selector: 'kendo-excelexport-column',
|
|
84
|
-
template: ``,
|
|
85
|
-
standalone: true
|
|
86
|
-
}]
|
|
87
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
88
|
-
type: SkipSelf
|
|
89
|
-
}, {
|
|
90
|
-
type: Host
|
|
91
|
-
}, {
|
|
92
|
-
type: Optional
|
|
93
|
-
}] }], propDecorators: { field: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], cellOptions: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], groupHeaderCellOptions: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], groupFooterCellOptions: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], footerCellOptions: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], groupHeaderTemplate: [{
|
|
104
|
-
type: ContentChild,
|
|
105
|
-
args: [GroupHeaderTemplateDirective, { static: false }]
|
|
106
|
-
}], groupHeaderColumnTemplate: [{
|
|
107
|
-
type: ContentChild,
|
|
108
|
-
args: [GroupHeaderColumnTemplateDirective, { static: false }]
|
|
109
|
-
}], groupFooterTemplate: [{
|
|
110
|
-
type: ContentChild,
|
|
111
|
-
args: [GroupFooterTemplateDirective, { static: false }]
|
|
112
|
-
}], footerTemplate: [{
|
|
113
|
-
type: ContentChild,
|
|
114
|
-
args: [FooterTemplateDirective, { static: false }]
|
|
115
|
-
}] } });
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the footer cell template of the Excel Export column component
|
|
9
|
-
* ([see example]({% slug columns_excel-export %}#toc-footer-template)).
|
|
10
|
-
* Use this directive to customize the footer cell of a column.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <ng-template kendoExcelExportFooterTemplate let-column let-columnIndex="columnIndex">
|
|
15
|
-
* Footer for {{ column.field }}
|
|
16
|
-
* </ng-template>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class FooterTemplateDirective {
|
|
20
|
-
templateRef;
|
|
21
|
-
constructor(templateRef) {
|
|
22
|
-
this.templateRef = templateRef;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: '[kendoExcelExportFooterTemplate]',
|
|
31
|
-
standalone: true
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
34
|
-
type: Optional
|
|
35
|
-
}] }] });
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the group footer cell template of the Excel Export column component
|
|
9
|
-
* ([see example]({% slug columns_excel-export %}#toc-group-footer-template)).
|
|
10
|
-
* Use this directive to customize the group footer cell of a column.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <ng-template kendoExcelExportGroupFooterTemplate let-group let-field="field">
|
|
15
|
-
* Group Footer for {{ field }}
|
|
16
|
-
* </ng-template>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class GroupFooterTemplateDirective {
|
|
20
|
-
templateRef;
|
|
21
|
-
constructor(templateRef) {
|
|
22
|
-
this.templateRef = templateRef;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GroupFooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: '[kendoExcelExportGroupFooterTemplate]',
|
|
31
|
-
standalone: true
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
34
|
-
type: Optional
|
|
35
|
-
}] }] });
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the group header column template of the Excel Export column component
|
|
9
|
-
* ([see example]({% slug columns_excel-export %}#toc-group-header-column-template)).
|
|
10
|
-
* Use this directive to customize the group header column.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <ng-template kendoExcelExportGroupHeaderColumnTemplate let-group let-field="field">
|
|
15
|
-
* Group Header Column for {{ field }}
|
|
16
|
-
* </ng-template>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class GroupHeaderColumnTemplateDirective {
|
|
20
|
-
templateRef;
|
|
21
|
-
constructor(templateRef) {
|
|
22
|
-
this.templateRef = templateRef;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupHeaderColumnTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GroupHeaderColumnTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: '[kendoExcelExportGroupHeaderColumnTemplate]',
|
|
31
|
-
standalone: true
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
34
|
-
type: Optional
|
|
35
|
-
}] }] });
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the group header cell template of the Excel Export column component
|
|
9
|
-
* ([see example]({% slug columns_excel-export %}#toc-group-header-template)).
|
|
10
|
-
* Use this directive to customize the content of the group header item.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <ng-template kendoExcelExportGroupHeaderTemplate let-group let-field="field">
|
|
15
|
-
* Group Header for {{ field }}
|
|
16
|
-
* </ng-template>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class GroupHeaderTemplateDirective {
|
|
20
|
-
templateRef;
|
|
21
|
-
constructor(templateRef) {
|
|
22
|
-
this.templateRef = templateRef;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GroupHeaderTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: '[kendoExcelExportGroupHeaderTemplate]',
|
|
31
|
-
standalone: true
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
34
|
-
type: Optional
|
|
35
|
-
}] }] });
|
package/esm2022/directives.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { FooterTemplateDirective } from "./columns/footer-template.directive";
|
|
6
|
-
import { GroupHeaderTemplateDirective } from "./columns/group-header-template.directive";
|
|
7
|
-
import { ExcelExportComponent } from "./excel-export.component";
|
|
8
|
-
import { ColumnComponent } from "./columns/column.component";
|
|
9
|
-
import { ColumnGroupComponent } from "./columns/column-group.component";
|
|
10
|
-
import { GroupFooterTemplateDirective } from "./columns/group-footer-template.directive";
|
|
11
|
-
import { GroupHeaderColumnTemplateDirective } from "./columns/group-header-column-template.directive";
|
|
12
|
-
/**
|
|
13
|
-
* Use this utility array to access all `@progress/kendo-angular-excel-export` related components and directives.
|
|
14
|
-
*/
|
|
15
|
-
export const KENDO_EXCELEXPORT = [
|
|
16
|
-
ExcelExportComponent,
|
|
17
|
-
ColumnComponent,
|
|
18
|
-
ColumnGroupComponent,
|
|
19
|
-
FooterTemplateDirective,
|
|
20
|
-
GroupFooterTemplateDirective,
|
|
21
|
-
GroupHeaderColumnTemplateDirective,
|
|
22
|
-
GroupHeaderTemplateDirective
|
|
23
|
-
];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
// eslint-disable max-line-length
|
|
6
|
-
import { Component, ContentChildren, Input, QueryList, NgZone } from '@angular/core';
|
|
7
|
-
import { saveAs } from '@progress/kendo-file-saver';
|
|
8
|
-
import { workbookOptions, toDataURL, isWorkbookOptions } from './ooxml/workbook';
|
|
9
|
-
import { ColumnBase } from './columns/column-base';
|
|
10
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
11
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
|
-
import { packageMetadata } from './package-metadata';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [Kendo UI Excel Export component for Angular]({% slug overview_excelexport %}).
|
|
17
|
-
* Use this component to export data to Excel format.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-excelexport [data]="gridData" fileName="MyExport.xlsx">
|
|
22
|
-
* <kendo-excelexport-column field="ProductID" title="Product ID"></kendo-excelexport-column>
|
|
23
|
-
* <kendo-excelexport-column field="ProductName" title="Product Name"></kendo-excelexport-column>
|
|
24
|
-
* </kendo-excelexport>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* Supported children components are: {@link ColumnComponent}, {@link ColumnGroupComponent}.
|
|
29
|
-
*/
|
|
30
|
-
export class ExcelExportComponent {
|
|
31
|
-
localization;
|
|
32
|
-
zone;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the name of the exported Excel file.
|
|
35
|
-
*
|
|
36
|
-
* @default "Export.xlsx"
|
|
37
|
-
*/
|
|
38
|
-
fileName = 'Export.xlsx';
|
|
39
|
-
/**
|
|
40
|
-
* Determines whether to enable column filtering in the exported Excel file
|
|
41
|
-
* ([see example]({% slug filtering_excelexport %})).
|
|
42
|
-
*/
|
|
43
|
-
filterable;
|
|
44
|
-
/**
|
|
45
|
-
* Determines whether groups in the Excel file are collapsible.
|
|
46
|
-
*/
|
|
47
|
-
collapsible;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the author of the workbook.
|
|
50
|
-
*/
|
|
51
|
-
creator;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the creation date of the workbook.
|
|
54
|
-
* The default value is `new Date()`.
|
|
55
|
-
*
|
|
56
|
-
* @default `new Date()`
|
|
57
|
-
*/
|
|
58
|
-
date;
|
|
59
|
-
/**
|
|
60
|
-
* Determines whether to force the use of a proxy server for file downloads.
|
|
61
|
-
* When set to `true`, the component sends content to `proxyURL` even if the browser supports local file saving.
|
|
62
|
-
*/
|
|
63
|
-
forceProxy;
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the URL of the server-side proxy that streams the file to the user.
|
|
66
|
-
* When the browser cannot save files locally (for example, Internet Explorer 9 and earlier, and Safari), the component uses a proxy.
|
|
67
|
-
* You must implement the server-side proxy.
|
|
68
|
-
*
|
|
69
|
-
* The proxy receives a `POST` request with these parameters in the request body:
|
|
70
|
-
* - `contentType`—The `MIME` type of the file.
|
|
71
|
-
* - `base64`—The `base-64` encoded file content.
|
|
72
|
-
* - `fileName`—The requested file name.
|
|
73
|
-
* The proxy must return the decoded file with the `Content-Disposition` header set to `attachment; filename="<fileName.xslx>"`.
|
|
74
|
-
*/
|
|
75
|
-
proxyURL;
|
|
76
|
-
/**
|
|
77
|
-
* Specifies the data to export.
|
|
78
|
-
* When the data is grouped, structure it as described by the
|
|
79
|
-
* [`GroupResult`]({% slug api_kendo-data-query_groupresult %}) option of the Kendo UI Data Query component.
|
|
80
|
-
*/
|
|
81
|
-
data;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies the exported data groups.
|
|
84
|
-
* The groups must match the
|
|
85
|
-
* [`GroupDescriptor`]({% slug api_kendo-data-query_groupdescriptor %}) option of the Kendo UI Data Query component.
|
|
86
|
-
*/
|
|
87
|
-
group;
|
|
88
|
-
/**
|
|
89
|
-
* Specifies the options for cells inserted before data, group, and footer cells
|
|
90
|
-
* to show group hierarchy when the data is grouped
|
|
91
|
-
* ([see example]({% slug cells_excelexport %}#toc-padding-cells)).
|
|
92
|
-
*/
|
|
93
|
-
paddingCellOptions;
|
|
94
|
-
/**
|
|
95
|
-
* Specifies the options for cells inserted before header cells
|
|
96
|
-
* to align headers and column values when the data is grouped
|
|
97
|
-
* ([see example]({% slug cells_excelexport %}#toc-header-padding-cells)).
|
|
98
|
-
*/
|
|
99
|
-
headerPaddingCellOptions;
|
|
100
|
-
/**
|
|
101
|
-
* @hidden
|
|
102
|
-
*/
|
|
103
|
-
columns = new QueryList();
|
|
104
|
-
constructor(localization, zone) {
|
|
105
|
-
this.localization = localization;
|
|
106
|
-
this.zone = zone;
|
|
107
|
-
validatePackage(packageMetadata);
|
|
108
|
-
this.saveFile = this.saveFile.bind(this);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Exports the data to Excel.
|
|
112
|
-
*
|
|
113
|
-
* @param exportData - Optional. The data to export or [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
|
|
114
|
-
*/
|
|
115
|
-
save(exportData) {
|
|
116
|
-
this.toDataURL(exportData).then(this.saveFile);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Returns [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) based on the specified columns and data.
|
|
120
|
-
* Use this method to customize the workbook options.
|
|
121
|
-
*
|
|
122
|
-
* @param exportData - Optional. The data to export.
|
|
123
|
-
* @returns {WorkbookOptions} The workbook options.
|
|
124
|
-
*/
|
|
125
|
-
workbookOptions(exportData) {
|
|
126
|
-
const currentData = this.getExportData(exportData);
|
|
127
|
-
const options = workbookOptions({
|
|
128
|
-
columns: this.columns,
|
|
129
|
-
data: currentData.data,
|
|
130
|
-
group: currentData.group,
|
|
131
|
-
filterable: this.filterable,
|
|
132
|
-
creator: this.creator,
|
|
133
|
-
date: this.date,
|
|
134
|
-
rtl: this.localization.rtl,
|
|
135
|
-
paddingCellOptions: this.paddingCellOptions,
|
|
136
|
-
headerPaddingCellOptions: this.headerPaddingCellOptions,
|
|
137
|
-
collapsible: this.collapsible
|
|
138
|
-
});
|
|
139
|
-
return options;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Returns a promise that resolves with the file data URI.
|
|
143
|
-
* Use this method to get the Excel file as a data URI.
|
|
144
|
-
*
|
|
145
|
-
* @param exportData - Optional. The data or [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) to use for generating the data URI.
|
|
146
|
-
* @returns {Promise<string>} A promise that resolves with the file data URI.
|
|
147
|
-
*/
|
|
148
|
-
toDataURL(exportData) {
|
|
149
|
-
const options = isWorkbookOptions(exportData) ?
|
|
150
|
-
exportData :
|
|
151
|
-
this.workbookOptions(exportData);
|
|
152
|
-
return this.zone.runOutsideAngular(() => toDataURL(options));
|
|
153
|
-
}
|
|
154
|
-
getExportData(exportData) {
|
|
155
|
-
let result;
|
|
156
|
-
if (exportData) {
|
|
157
|
-
if (Array.isArray(exportData)) {
|
|
158
|
-
result = {
|
|
159
|
-
data: exportData
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
result = exportData;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
result = {
|
|
168
|
-
data: this.data,
|
|
169
|
-
group: this.group
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
return result;
|
|
173
|
-
}
|
|
174
|
-
saveFile(dataURL) {
|
|
175
|
-
saveAs(dataURL, this.fileName, {
|
|
176
|
-
forceProxy: this.forceProxy,
|
|
177
|
-
proxyURL: this.proxyURL
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
181
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", 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: [
|
|
182
|
-
LocalizationService,
|
|
183
|
-
{
|
|
184
|
-
provide: L10N_PREFIX,
|
|
185
|
-
useValue: 'kendo.excelexport'
|
|
186
|
-
}
|
|
187
|
-
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true });
|
|
188
|
-
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
190
|
-
type: Component,
|
|
191
|
-
args: [{
|
|
192
|
-
exportAs: 'kendoExcelExport',
|
|
193
|
-
selector: 'kendo-excelexport',
|
|
194
|
-
providers: [
|
|
195
|
-
LocalizationService,
|
|
196
|
-
{
|
|
197
|
-
provide: L10N_PREFIX,
|
|
198
|
-
useValue: 'kendo.excelexport'
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
template: ``,
|
|
202
|
-
standalone: true
|
|
203
|
-
}]
|
|
204
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.NgZone }], propDecorators: { fileName: [{
|
|
205
|
-
type: Input
|
|
206
|
-
}], filterable: [{
|
|
207
|
-
type: Input
|
|
208
|
-
}], collapsible: [{
|
|
209
|
-
type: Input
|
|
210
|
-
}], creator: [{
|
|
211
|
-
type: Input
|
|
212
|
-
}], date: [{
|
|
213
|
-
type: Input
|
|
214
|
-
}], forceProxy: [{
|
|
215
|
-
type: Input
|
|
216
|
-
}], proxyURL: [{
|
|
217
|
-
type: Input
|
|
218
|
-
}], data: [{
|
|
219
|
-
type: Input
|
|
220
|
-
}], group: [{
|
|
221
|
-
type: Input
|
|
222
|
-
}], paddingCellOptions: [{
|
|
223
|
-
type: Input
|
|
224
|
-
}], headerPaddingCellOptions: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], columns: [{
|
|
227
|
-
type: ContentChildren,
|
|
228
|
-
args: [ColumnBase, { descendants: true }]
|
|
229
|
-
}] } });
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_EXCELEXPORT } from './directives';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./excel-export.component";
|
|
9
|
-
import * as i2 from "./columns/column.component";
|
|
10
|
-
import * as i3 from "./columns/column-group.component";
|
|
11
|
-
import * as i4 from "./columns/footer-template.directive";
|
|
12
|
-
import * as i5 from "./columns/group-footer-template.directive";
|
|
13
|
-
import * as i6 from "./columns/group-header-column-template.directive";
|
|
14
|
-
import * as i7 from "./columns/group-header-template.directive";
|
|
15
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Excel Export component.
|
|
18
|
-
*
|
|
19
|
-
* Use this module to enable Excel export features in your application.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
|
|
24
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
|
-
* import { NgModule } from '@angular/core';
|
|
26
|
-
* import { AppComponent } from './app.component';
|
|
27
|
-
*
|
|
28
|
-
* @NgModule({
|
|
29
|
-
* declarations: [AppComponent],
|
|
30
|
-
* imports: [BrowserModule, ExcelExportModule],
|
|
31
|
-
* bootstrap: [AppComponent]
|
|
32
|
-
* })
|
|
33
|
-
* export class AppModule {}
|
|
34
|
-
*
|
|
35
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export class ExcelExportModule {
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportModule, imports: [i1.ExcelExportComponent, i2.ColumnComponent, i3.ColumnGroupComponent, i4.FooterTemplateDirective, i5.GroupFooterTemplateDirective, i6.GroupHeaderColumnTemplateDirective, i7.GroupHeaderTemplateDirective], exports: [i1.ExcelExportComponent, i2.ColumnComponent, i3.ColumnGroupComponent, i4.FooterTemplateDirective, i5.GroupFooterTemplateDirective, i6.GroupHeaderColumnTemplateDirective, i7.GroupHeaderTemplateDirective] });
|
|
41
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportModule });
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
44
|
-
type: NgModule,
|
|
45
|
-
args: [{
|
|
46
|
-
imports: [...KENDO_EXCELEXPORT],
|
|
47
|
-
exports: [...KENDO_EXCELEXPORT]
|
|
48
|
-
}]
|
|
49
|
-
}] });
|
package/esm2022/index.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { ExcelExportComponent } from './excel-export.component';
|
|
6
|
-
export { ExcelExportModule } from './excel-export.module';
|
|
7
|
-
export { ColumnBase } from './columns/column-base';
|
|
8
|
-
export { ColumnComponent } from './columns/column.component';
|
|
9
|
-
export { ColumnGroupComponent } from './columns/column-group.component';
|
|
10
|
-
export { FooterTemplateDirective } from './columns/footer-template.directive';
|
|
11
|
-
export { GroupFooterTemplateDirective } from './columns/group-footer-template.directive';
|
|
12
|
-
export { GroupHeaderTemplateDirective } from './columns/group-header-template.directive';
|
|
13
|
-
export { GroupHeaderColumnTemplateDirective } from './columns/group-header-column-template.directive';
|
|
14
|
-
export * from './ooxml/workbook';
|
|
15
|
-
export * from '@progress/kendo-ooxml';
|
|
16
|
-
export * from './directives';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
const compileTemplate = (templateRef, context, updateContext) => {
|
|
6
|
-
let embeddedView = templateRef.createEmbeddedView(context);
|
|
7
|
-
const result = (data) => {
|
|
8
|
-
updateContext(context, data);
|
|
9
|
-
embeddedView.detectChanges();
|
|
10
|
-
return embeddedView.rootNodes.reduce((content, rootNode) => {
|
|
11
|
-
return content + rootNode.textContent;
|
|
12
|
-
}, '').trim();
|
|
13
|
-
};
|
|
14
|
-
result.destroy = () => {
|
|
15
|
-
embeddedView.destroy();
|
|
16
|
-
embeddedView = null;
|
|
17
|
-
};
|
|
18
|
-
return result;
|
|
19
|
-
};
|
|
20
|
-
const updateGroupHeaderContext = (context, data) => {
|
|
21
|
-
context.$implicit = context.group = data;
|
|
22
|
-
context.field = data.field;
|
|
23
|
-
context.value = data.value;
|
|
24
|
-
context.aggregates = data.aggregates;
|
|
25
|
-
};
|
|
26
|
-
const updateGroupFooterContext = (context, data) => {
|
|
27
|
-
context.group = data.group;
|
|
28
|
-
context.$implicit = context.aggregates = data;
|
|
29
|
-
};
|
|
30
|
-
const updateFooterContext = (context, data) => {
|
|
31
|
-
context.aggregates = data.aggregates;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export const toExporterColumns = (sourceColumns) => {
|
|
37
|
-
const exporterColumns = [];
|
|
38
|
-
let columnIndex = 0;
|
|
39
|
-
const addColumns = (columns, result, level) => {
|
|
40
|
-
columns.forEach((column) => {
|
|
41
|
-
if (column.level === level) {
|
|
42
|
-
const exporterColumn = new ExporterColumn(column, columnIndex);
|
|
43
|
-
result.push(exporterColumn);
|
|
44
|
-
if (column.children && column.children.some(c => c !== column)) {
|
|
45
|
-
const children = exporterColumn.columns = [];
|
|
46
|
-
addColumns(column.children, children, level + 1);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
columnIndex++;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
addColumns(sourceColumns, exporterColumns, 0);
|
|
55
|
-
return exporterColumns;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
export const destroyColumns = (columns) => {
|
|
61
|
-
if (columns) {
|
|
62
|
-
columns.forEach(column => {
|
|
63
|
-
column.destroy();
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
export class ExporterColumn {
|
|
71
|
-
title;
|
|
72
|
-
field;
|
|
73
|
-
hidden;
|
|
74
|
-
locked;
|
|
75
|
-
width;
|
|
76
|
-
columns;
|
|
77
|
-
groupHeaderTemplate;
|
|
78
|
-
groupHeaderColumnTemplate;
|
|
79
|
-
groupFooterTemplate;
|
|
80
|
-
footerTemplate;
|
|
81
|
-
headerCellOptions;
|
|
82
|
-
cellOptions;
|
|
83
|
-
groupHeaderCellOptions;
|
|
84
|
-
groupFooterCellOptions;
|
|
85
|
-
footerCellOptions;
|
|
86
|
-
constructor(column, columnIndex) {
|
|
87
|
-
this.title = column.title;
|
|
88
|
-
this.field = column.field;
|
|
89
|
-
this.hidden = column.hidden;
|
|
90
|
-
this.locked = column.locked;
|
|
91
|
-
this.width = column.width;
|
|
92
|
-
this.headerCellOptions = column.headerCellOptions;
|
|
93
|
-
this.cellOptions = column.cellOptions;
|
|
94
|
-
this.groupHeaderCellOptions = column.groupHeaderCellOptions;
|
|
95
|
-
this.groupFooterCellOptions = column.groupFooterCellOptions;
|
|
96
|
-
this.footerCellOptions = column.footerCellOptions;
|
|
97
|
-
if (column.footerTemplate) {
|
|
98
|
-
this.footerTemplate = compileTemplate(column.footerTemplate.templateRef, {
|
|
99
|
-
$implicit: column,
|
|
100
|
-
column: column,
|
|
101
|
-
columnIndex: columnIndex
|
|
102
|
-
}, updateFooterContext);
|
|
103
|
-
}
|
|
104
|
-
if (column.groupFooterTemplate) {
|
|
105
|
-
this.groupFooterTemplate = compileTemplate(column.groupFooterTemplate.templateRef, {
|
|
106
|
-
column: column,
|
|
107
|
-
field: column.field
|
|
108
|
-
}, updateGroupFooterContext);
|
|
109
|
-
}
|
|
110
|
-
if (column.groupHeaderTemplate) {
|
|
111
|
-
this.groupHeaderTemplate = compileTemplate(column.groupHeaderTemplate.templateRef, {}, updateGroupHeaderContext);
|
|
112
|
-
}
|
|
113
|
-
if (column.groupHeaderColumnTemplate) {
|
|
114
|
-
this.groupHeaderColumnTemplate = compileTemplate(column.groupHeaderColumnTemplate.templateRef, {}, updateGroupHeaderContext);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
destroy() {
|
|
118
|
-
if (this.footerTemplate) {
|
|
119
|
-
this.footerTemplate.destroy();
|
|
120
|
-
}
|
|
121
|
-
if (this.groupFooterTemplate) {
|
|
122
|
-
this.groupFooterTemplate.destroy();
|
|
123
|
-
}
|
|
124
|
-
if (this.groupHeaderTemplate) {
|
|
125
|
-
this.groupHeaderTemplate.destroy();
|
|
126
|
-
}
|
|
127
|
-
if (this.groupHeaderColumnTemplate) {
|
|
128
|
-
this.groupHeaderColumnTemplate.destroy();
|
|
129
|
-
}
|
|
130
|
-
destroyColumns(this.columns);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { IntlService, ExcelExporter, Workbook } from '@progress/kendo-ooxml';
|
|
6
|
-
import { toExporterColumns, destroyColumns } from './exporter-columns';
|
|
7
|
-
import { toString } from '@progress/kendo-intl';
|
|
8
|
-
IntlService.register({ toString });
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export const workbookOptions = (options) => {
|
|
14
|
-
const columns = toExporterColumns(options.columns);
|
|
15
|
-
const exporter = new ExcelExporter({
|
|
16
|
-
columns: columns,
|
|
17
|
-
data: options.data,
|
|
18
|
-
filterable: options.filterable,
|
|
19
|
-
groups: options.group,
|
|
20
|
-
paddingCellOptions: options.paddingCellOptions,
|
|
21
|
-
headerPaddingCellOptions: options.headerPaddingCellOptions,
|
|
22
|
-
collapsible: options.collapsible,
|
|
23
|
-
hierarchy: options.hierarchy,
|
|
24
|
-
aggregates: options.aggregates
|
|
25
|
-
});
|
|
26
|
-
const result = exporter.workbook();
|
|
27
|
-
result.creator = options.creator;
|
|
28
|
-
result.date = options.date;
|
|
29
|
-
result.rtl = options.rtl;
|
|
30
|
-
destroyColumns(columns);
|
|
31
|
-
return result;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export const toDataURL = (options) => {
|
|
37
|
-
const workbook = new Workbook(options);
|
|
38
|
-
return workbook.toDataURL();
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export const isWorkbookOptions = (value) => {
|
|
44
|
-
return value && value.sheets;
|
|
45
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export const packageMetadata = {
|
|
9
|
-
name: '@progress/kendo-angular-excel-export',
|
|
10
|
-
productName: 'Kendo UI for Angular',
|
|
11
|
-
productCode: 'KENDOUIANGULAR',
|
|
12
|
-
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate: 1768393124,
|
|
14
|
-
version: '21.4.1',
|
|
15
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './index';
|