@progress/kendo-angular-excel-export 17.0.0-develop.9 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/columns/column-base.d.ts +1 -1
- package/columns/column.component.d.ts +1 -1
- package/{esm2020 → esm2022}/columns/column-base.mjs +35 -6
- package/{esm2020 → esm2022}/columns/column-group.component.mjs +9 -8
- package/{esm2020 → esm2022}/columns/column.component.mjs +48 -8
- package/{esm2020 → esm2022}/columns/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/group-footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/group-header-column-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/columns/group-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/excel-export.component.mjs +77 -18
- package/{esm2020 → esm2022}/excel-export.module.mjs +4 -4
- package/{esm2020 → esm2022}/ooxml/exporter-columns.mjs +15 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/excel-export.component.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-excel-export.mjs +206 -58
- package/package.json +12 -18
- package/fesm2015/progress-kendo-angular-excel-export.mjs +0 -616
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/excel-export-data.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ooxml/cell-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/ooxml/workbook.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-excel-export.mjs +0 -0
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": "title"; "width": "width"; "locked": "locked"; "hidden": "hidden"; "headerCellOptions": "headerCellOptions"; }, {}, ["children"], never, false, 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, false, never>;
|
|
48
48
|
}
|
|
@@ -55,5 +55,5 @@ export declare class ColumnComponent extends ColumnBase {
|
|
|
55
55
|
footerTemplate: FooterTemplateDirective;
|
|
56
56
|
constructor(parent?: ColumnBase);
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnComponent, [{ optional: true; host: true; skipSelf: true; }]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnComponent, "kendo-excelexport-column", never, { "field": "field"; "cellOptions": "cellOptions"; "groupHeaderCellOptions": "groupHeaderCellOptions"; "groupFooterCellOptions": "groupFooterCellOptions"; "footerCellOptions": "footerCellOptions"; }, {}, ["groupHeaderTemplate", "groupHeaderColumnTemplate", "groupFooterTemplate", "footerTemplate"], never, true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnComponent, "kendo-excelexport-column", never, { "field": { "alias": "field"; "required": false; }; "cellOptions": { "alias": "cellOptions"; "required": false; }; "groupHeaderCellOptions": { "alias": "groupHeaderCellOptions"; "required": false; }; "groupFooterCellOptions": { "alias": "groupFooterCellOptions"; "required": false; }; "footerCellOptions": { "alias": "footerCellOptions"; "required": false; }; }, {}, ["groupHeaderTemplate", "groupHeaderColumnTemplate", "groupFooterTemplate", "footerTemplate"], never, true, never>;
|
|
59
59
|
}
|
|
@@ -8,19 +8,48 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class ColumnBase {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
14
40
|
/**
|
|
15
41
|
* @hidden
|
|
16
42
|
*/
|
|
17
43
|
get level() {
|
|
18
44
|
return this.parent ? this.parent.level + 1 : 0;
|
|
19
45
|
}
|
|
46
|
+
constructor(parent) {
|
|
47
|
+
this.parent = parent;
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnBase, deps: [{ token: ColumnBase }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
20
51
|
}
|
|
21
|
-
|
|
22
|
-
ColumnBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColumnBase, selector: "ng-component", inputs: { title: "title", width: "width", locked: "locked", hidden: "hidden", headerCellOptions: "headerCellOptions" }, queries: [{ propertyName: "children", predicate: ColumnBase }], ngImport: i0, template: '', isInline: true });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnBase, decorators: [{
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnBase, decorators: [{
|
|
24
53
|
type: Component,
|
|
25
54
|
args: [{
|
|
26
55
|
template: ''
|
|
@@ -10,19 +10,20 @@ import * as i1 from "./column-base";
|
|
|
10
10
|
* Represents the column group component of the Kendo UI Excel Export component.
|
|
11
11
|
*/
|
|
12
12
|
export class ColumnGroupComponent extends ColumnBase {
|
|
13
|
+
parent;
|
|
13
14
|
constructor(parent) {
|
|
14
15
|
super(parent);
|
|
15
16
|
this.parent = parent;
|
|
16
17
|
}
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnGroupComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColumnGroupComponent, isStandalone: true, selector: "kendo-excelexport-column-group", providers: [
|
|
20
|
+
{
|
|
21
|
+
provide: ColumnBase,
|
|
22
|
+
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
23
|
+
}
|
|
24
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
17
25
|
}
|
|
18
|
-
|
|
19
|
-
ColumnGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColumnGroupComponent, isStandalone: true, selector: "kendo-excelexport-column-group", providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: ColumnBase,
|
|
22
|
-
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
23
|
-
}
|
|
24
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
26
27
|
type: Component,
|
|
27
28
|
args: [{
|
|
28
29
|
providers: [
|
|
@@ -14,18 +14,58 @@ import * as i1 from "./column-base";
|
|
|
14
14
|
* Represents the columns of the Kendo UI Excel Export component for Angular.
|
|
15
15
|
*/
|
|
16
16
|
export class ColumnComponent extends ColumnBase {
|
|
17
|
+
/**
|
|
18
|
+
* The field to which the column is bound.
|
|
19
|
+
*/
|
|
20
|
+
field;
|
|
21
|
+
/**
|
|
22
|
+
* The options of the column data cells
|
|
23
|
+
* ([see example]({% slug cells_excelexport %}#toc-data-cells)).
|
|
24
|
+
*/
|
|
25
|
+
cellOptions;
|
|
26
|
+
/**
|
|
27
|
+
* The options of the column group header cells
|
|
28
|
+
* ([see example]({% slug cells_excelexport %}#toc-header-cells)).
|
|
29
|
+
*/
|
|
30
|
+
groupHeaderCellOptions;
|
|
31
|
+
/**
|
|
32
|
+
* The options of the column group footer cells
|
|
33
|
+
* ([see example]({% slug cells_excelexport %}#toc-group-footer-cells)).
|
|
34
|
+
*/
|
|
35
|
+
groupFooterCellOptions;
|
|
36
|
+
/**
|
|
37
|
+
* The options of the column footer cell
|
|
38
|
+
* ([see example]({% slug cells_excelexport %}#toc-footer-cells)).
|
|
39
|
+
*/
|
|
40
|
+
footerCellOptions;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
groupHeaderTemplate;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
groupHeaderColumnTemplate;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
groupFooterTemplate;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
footerTemplate;
|
|
17
57
|
constructor(parent) {
|
|
18
58
|
super(parent);
|
|
19
59
|
}
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColumnComponent, isStandalone: true, selector: "kendo-excelexport-column", inputs: { field: "field", cellOptions: "cellOptions", groupHeaderCellOptions: "groupHeaderCellOptions", groupFooterCellOptions: "groupFooterCellOptions", footerCellOptions: "footerCellOptions" }, providers: [
|
|
62
|
+
{
|
|
63
|
+
provide: ColumnBase,
|
|
64
|
+
useExisting: forwardRef(() => ColumnComponent)
|
|
65
|
+
}
|
|
66
|
+
], 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 });
|
|
20
67
|
}
|
|
21
|
-
|
|
22
|
-
ColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColumnComponent, isStandalone: true, selector: "kendo-excelexport-column", inputs: { field: "field", cellOptions: "cellOptions", groupHeaderCellOptions: "groupHeaderCellOptions", groupFooterCellOptions: "groupFooterCellOptions", footerCellOptions: "footerCellOptions" }, providers: [
|
|
23
|
-
{
|
|
24
|
-
provide: ColumnBase,
|
|
25
|
-
useExisting: forwardRef(() => ColumnComponent)
|
|
26
|
-
}
|
|
27
|
-
], 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 });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
29
69
|
type: Component,
|
|
30
70
|
args: [{
|
|
31
71
|
providers: [
|
|
@@ -10,13 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Enables you to customize the footer cell of the column.
|
|
11
11
|
*/
|
|
12
12
|
export class FooterTemplateDirective {
|
|
13
|
+
templateRef;
|
|
13
14
|
constructor(templateRef) {
|
|
14
15
|
this.templateRef = templateRef;
|
|
15
16
|
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
FooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
20
21
|
type: Directive,
|
|
21
22
|
args: [{
|
|
22
23
|
selector: '[kendoExcelExportFooterTemplate]',
|
|
@@ -10,13 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Enables you to customize the group footer cell of the column.
|
|
11
11
|
*/
|
|
12
12
|
export class GroupFooterTemplateDirective {
|
|
13
|
+
templateRef;
|
|
13
14
|
constructor(templateRef) {
|
|
14
15
|
this.templateRef = templateRef;
|
|
15
16
|
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GroupFooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
GroupFooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: GroupFooterTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
20
21
|
type: Directive,
|
|
21
22
|
args: [{
|
|
22
23
|
selector: '[kendoExcelExportGroupFooterTemplate]',
|
|
@@ -9,13 +9,14 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* ([see example]({% slug columns_excel-export %}#toc-group-header-column-template)).
|
|
10
10
|
*/
|
|
11
11
|
export class GroupHeaderColumnTemplateDirective {
|
|
12
|
+
templateRef;
|
|
12
13
|
constructor(templateRef) {
|
|
13
14
|
this.templateRef = templateRef;
|
|
14
15
|
}
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupHeaderColumnTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GroupHeaderColumnTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
GroupHeaderColumnTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: GroupHeaderColumnTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
19
20
|
type: Directive,
|
|
20
21
|
args: [{
|
|
21
22
|
selector: '[kendoExcelExportGroupHeaderColumnTemplate]',
|
|
@@ -10,13 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Enables you to customize the content of the group header item.
|
|
11
11
|
*/
|
|
12
12
|
export class GroupHeaderTemplateDirective {
|
|
13
|
+
templateRef;
|
|
13
14
|
constructor(templateRef) {
|
|
14
15
|
this.templateRef = templateRef;
|
|
15
16
|
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GroupHeaderTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
GroupHeaderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: GroupHeaderTemplateDirective, isStandalone: true, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
20
21
|
type: Directive,
|
|
21
22
|
args: [{
|
|
22
23
|
selector: '[kendoExcelExportGroupHeaderTemplate]',
|
|
@@ -17,18 +17,77 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
17
17
|
* Configures the settings for the Excel export of the Kendo UI Grid.
|
|
18
18
|
*/
|
|
19
19
|
export class ExcelExportComponent {
|
|
20
|
+
localization;
|
|
21
|
+
zone;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the name of the file that is exported to Excel.
|
|
24
|
+
* @default "Export.xlsx"
|
|
25
|
+
*/
|
|
26
|
+
fileName = 'Export.xlsx';
|
|
27
|
+
/**
|
|
28
|
+
* Enables or disables the column filtering in the Excel file
|
|
29
|
+
* ([see example]({% slug filtering_excelexport %})).
|
|
30
|
+
*/
|
|
31
|
+
filterable;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies if groups are collapsible in the excel file.
|
|
34
|
+
*/
|
|
35
|
+
collapsible;
|
|
36
|
+
/**
|
|
37
|
+
* The author of the workbook.
|
|
38
|
+
*/
|
|
39
|
+
creator;
|
|
40
|
+
/**
|
|
41
|
+
* The date on which the workbook is created.
|
|
42
|
+
* The default value is `new Date()`.
|
|
43
|
+
*/
|
|
44
|
+
date;
|
|
45
|
+
/**
|
|
46
|
+
* If `forceProxy` is set to `true`, the content is forwarded to `proxyURL`
|
|
47
|
+
* even if the browser supports the local saving of files.
|
|
48
|
+
*/
|
|
49
|
+
forceProxy;
|
|
50
|
+
/**
|
|
51
|
+
* The URL of the server-side proxy which will stream the file to the end user. When the browser is not
|
|
52
|
+
* capable of saving files locally—for example, Internet Explorer 9 and earlier, and Safari—a
|
|
53
|
+
* proxy is used. The implementation of the server-side proxy has to be done by you.
|
|
54
|
+
*
|
|
55
|
+
* The proxy receives a POST request with the following parameters in the request body:
|
|
56
|
+
* - `contentType`—The MIME type of the file.
|
|
57
|
+
* - `base64`—The base-64 encoded file content.
|
|
58
|
+
* - `fileName`—The file name, as requested by the caller.
|
|
59
|
+
* The proxy is expected to return the decoded file with the **Content-Disposition** header set to `attachment; filename="<fileName.xslx>"`.
|
|
60
|
+
*/
|
|
61
|
+
proxyURL;
|
|
62
|
+
/**
|
|
63
|
+
* The exported data. If grouped, the data must be structured as described by the
|
|
64
|
+
* [`GroupResult`]({% slug api_kendo-data-query_groupresult %}) option of the Kendo UI Data Query component.
|
|
65
|
+
*/
|
|
66
|
+
data;
|
|
67
|
+
/**
|
|
68
|
+
* The exported data groups. The groups must be compatible with the
|
|
69
|
+
* [`GroupDescriptor`]({% slug api_kendo-data-query_groupdescriptor %}) option of the Kendo UI Data Query component.
|
|
70
|
+
*/
|
|
71
|
+
group;
|
|
72
|
+
/**
|
|
73
|
+
* The options of the cells that are inserted before the data, group, and footer cells
|
|
74
|
+
* to indicate the group hierarchy when the data is grouped
|
|
75
|
+
* ([see example]({% slug cells_excelexport %}#toc-padding-cells)).
|
|
76
|
+
*/
|
|
77
|
+
paddingCellOptions;
|
|
78
|
+
/**
|
|
79
|
+
* The options of the cells that are inserted before the header cells
|
|
80
|
+
* to align the headers and the column values when the data is grouped
|
|
81
|
+
* ([see example]({% slug cells_excelexport %}#toc-header-padding-cells)).
|
|
82
|
+
*/
|
|
83
|
+
headerPaddingCellOptions;
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
columns = new QueryList();
|
|
20
88
|
constructor(localization, zone) {
|
|
21
89
|
this.localization = localization;
|
|
22
90
|
this.zone = zone;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the name of the file that is exported to Excel.
|
|
25
|
-
* @default "Export.xlsx"
|
|
26
|
-
*/
|
|
27
|
-
this.fileName = 'Export.xlsx';
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
this.columns = new QueryList();
|
|
32
91
|
validatePackage(packageMetadata);
|
|
33
92
|
this.saveFile = this.saveFile.bind(this);
|
|
34
93
|
}
|
|
@@ -103,16 +162,16 @@ export class ExcelExportComponent {
|
|
|
103
162
|
proxyURL: this.proxyURL
|
|
104
163
|
});
|
|
105
164
|
}
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelExportComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
167
|
+
LocalizationService,
|
|
168
|
+
{
|
|
169
|
+
provide: L10N_PREFIX,
|
|
170
|
+
useValue: 'kendo.excelexport'
|
|
171
|
+
}
|
|
172
|
+
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true });
|
|
106
173
|
}
|
|
107
|
-
|
|
108
|
-
ExcelExportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExcelExportComponent, isStandalone: true, selector: "kendo-excelexport", inputs: { fileName: "fileName", filterable: "filterable", collapsible: "collapsible", creator: "creator", date: "date", forceProxy: "forceProxy", proxyURL: "proxyURL", data: "data", group: "group", paddingCellOptions: "paddingCellOptions", headerPaddingCellOptions: "headerPaddingCellOptions" }, providers: [
|
|
109
|
-
LocalizationService,
|
|
110
|
-
{
|
|
111
|
-
provide: L10N_PREFIX,
|
|
112
|
-
useValue: 'kendo.excelexport'
|
|
113
|
-
}
|
|
114
|
-
], queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], exportAs: ["kendoExcelExport"], ngImport: i0, template: ``, isInline: true });
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
116
175
|
type: Component,
|
|
117
176
|
args: [{
|
|
118
177
|
exportAs: 'kendoExcelExport',
|
|
@@ -45,11 +45,11 @@ import * as i7 from "./columns/group-header-template.directive";
|
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
export class ExcelExportModule {
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelExportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", 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] });
|
|
50
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelExportModule });
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
ExcelExportModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", 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] });
|
|
51
|
-
ExcelExportModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelExportModule, imports: [i1.ExcelExportComponent, i2.ColumnComponent, i3.ColumnGroupComponent] });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
53
53
|
type: NgModule,
|
|
54
54
|
args: [{
|
|
55
55
|
imports: [...KENDO_EXCELEXPORT],
|
|
@@ -68,6 +68,21 @@ export const destroyColumns = (columns) => {
|
|
|
68
68
|
* @hidden
|
|
69
69
|
*/
|
|
70
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;
|
|
71
86
|
constructor(column, columnIndex) {
|
|
72
87
|
this.title = column.title;
|
|
73
88
|
this.field = column.field;
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-excel-export',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '17.0.0
|
|
12
|
+
publishDate: 1731413986,
|
|
13
|
+
version: '17.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -109,5 +109,5 @@ export declare class ExcelExportComponent {
|
|
|
109
109
|
protected getExportData(exportData?: ExcelExportData | any[]): ExcelExportData;
|
|
110
110
|
protected saveFile(dataURL: string): void;
|
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExcelExportComponent, never>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExcelExportComponent, "kendo-excelexport", ["kendoExcelExport"], { "fileName": "fileName"; "filterable": "filterable"; "collapsible": "collapsible"; "creator": "creator"; "date": "date"; "forceProxy": "forceProxy"; "proxyURL": "proxyURL"; "data": "data"; "group": "group"; "paddingCellOptions": "paddingCellOptions"; "headerPaddingCellOptions": "headerPaddingCellOptions"; }, {}, ["columns"], never, true, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExcelExportComponent, "kendo-excelexport", ["kendoExcelExport"], { "fileName": { "alias": "fileName"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "creator": { "alias": "creator"; "required": false; }; "date": { "alias": "date"; "required": false; }; "forceProxy": { "alias": "forceProxy"; "required": false; }; "proxyURL": { "alias": "proxyURL"; "required": false; }; "data": { "alias": "data"; "required": false; }; "group": { "alias": "group"; "required": false; }; "paddingCellOptions": { "alias": "paddingCellOptions"; "required": false; }; "headerPaddingCellOptions": { "alias": "headerPaddingCellOptions"; "required": false; }; }, {}, ["columns"], never, true, never>;
|
|
113
113
|
}
|