@progress/kendo-angular-excel-export 4.0.4 → 5.0.0-next.202204010856
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/bundles/kendo-angular-excel-export.umd.js +5 -0
- package/{dist/es2015/columns → columns}/column-base.d.ts +4 -1
- package/{dist/es2015/columns → columns}/column-group.component.d.ts +3 -0
- package/{dist/es2015/columns → columns}/column.component.d.ts +3 -0
- package/{dist/es2015/columns → columns}/footer-template.directive.d.ts +3 -0
- package/{dist/es2015/columns → columns}/group-footer-template.directive.d.ts +3 -0
- package/{dist/es2015/columns → columns}/group-header-column-template.directive.d.ts +3 -0
- package/{dist/es2015/columns → columns}/group-header-template.directive.d.ts +3 -0
- package/esm2015/columns/column-base.js +41 -0
- package/esm2015/columns/column-group.component.js +43 -0
- package/esm2015/columns/column.component.js +68 -0
- package/esm2015/columns/footer-template.directive.js +26 -0
- package/esm2015/columns/group-footer-template.directive.js +26 -0
- package/esm2015/columns/group-header-column-template.directive.js +25 -0
- package/esm2015/columns/group-header-template.directive.js +26 -0
- package/{dist/es → esm2015}/excel-export-data.js +1 -0
- package/{dist/es2015 → esm2015}/excel-export.component.js +54 -69
- package/{dist/es2015 → esm2015}/excel-export.module.js +25 -10
- package/{dist/es2015/excel-export-data.js → esm2015/kendo-angular-excel-export.js} +4 -0
- package/{dist/es2015 → esm2015}/main.js +1 -0
- package/{dist/es2015 → esm2015}/ooxml/cell-options.interface.js +1 -0
- package/{dist/es2015 → esm2015}/ooxml/exporter-columns.js +0 -7
- package/{dist/es2015 → esm2015}/ooxml/workbook.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015/excel-export-data.d.ts → excel-export-data.d.ts} +0 -0
- package/{dist/es2015/excel-export.component.d.ts → excel-export.component.d.ts} +3 -0
- package/{dist/es2015/excel-export.module.d.ts → excel-export.module.d.ts} +11 -0
- package/fesm2015/kendo-angular-excel-export.js +604 -0
- package/{dist/es2015/index.d.ts → kendo-angular-excel-export.d.ts} +1 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +1 -0
- package/{dist/es2015/ooxml → ooxml}/cell-options.interface.d.ts +0 -0
- package/{dist/es2015/ooxml → ooxml}/exporter-columns.d.ts +0 -0
- package/{dist/es2015/ooxml → ooxml}/workbook.d.ts +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +32 -90
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-excel-export.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/columns/column-base.js +0 -50
- package/dist/es/columns/column-group.component.js +0 -36
- package/dist/es/columns/column.component.js +0 -74
- package/dist/es/columns/footer-template.directive.js +0 -25
- package/dist/es/columns/group-footer-template.directive.js +0 -25
- package/dist/es/columns/group-header-column-template.directive.js +0 -24
- package/dist/es/columns/group-header-template.directive.js +0 -25
- package/dist/es/excel-export.component.js +0 -170
- package/dist/es/excel-export.module.js +0 -65
- package/dist/es/index.js +0 -9
- package/dist/es/main.js +0 -14
- package/dist/es/ooxml/cell-options.interface.js +0 -4
- package/dist/es/ooxml/exporter-columns.js +0 -126
- package/dist/es/ooxml/workbook.js +0 -45
- package/dist/es/package-metadata.js +0 -15
- package/dist/es2015/columns/column-base.js +0 -44
- package/dist/es2015/columns/column-group.component.js +0 -32
- package/dist/es2015/columns/column.component.js +0 -71
- package/dist/es2015/columns/footer-template.directive.js +0 -24
- package/dist/es2015/columns/group-footer-template.directive.js +0 -24
- package/dist/es2015/columns/group-header-column-template.directive.js +0 -23
- package/dist/es2015/columns/group-header-template.directive.js +0 -24
- package/dist/es2015/index.js +0 -9
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/fesm2015/index.js +0 -585
- package/dist/fesm5/index.js +0 -606
- package/dist/npm/columns/column-base.js +0 -52
- package/dist/npm/columns/column-group.component.js +0 -38
- package/dist/npm/columns/column.component.js +0 -76
- package/dist/npm/columns/footer-template.directive.js +0 -27
- package/dist/npm/columns/group-footer-template.directive.js +0 -27
- package/dist/npm/columns/group-header-column-template.directive.js +0 -26
- package/dist/npm/columns/group-header-template.directive.js +0 -27
- package/dist/npm/excel-export-data.js +0 -6
- package/dist/npm/excel-export.component.js +0 -172
- package/dist/npm/excel-export.module.js +0 -67
- package/dist/npm/index.js +0 -13
- package/dist/npm/main.js +0 -25
- package/dist/npm/ooxml/cell-options.interface.js +0 -6
- package/dist/npm/ooxml/exporter-columns.js +0 -131
- package/dist/npm/ooxml/workbook.js +0 -47
- package/dist/npm/package-metadata.js +0 -17
- package/dist/systemjs/kendo-angular-excel-export.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-file-saver"),require("@progress/kendo-ooxml"),require("@telerik/kendo-intl"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define("KendoAngularExcelExport",["exports","@angular/core","@progress/kendo-file-saver","@progress/kendo-ooxml","@telerik/kendo-intl","@progress/kendo-angular-l10n","@progress/kendo-licensing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularExcelExport={},e.ng.core,e.KendoFileSaver,e.KendoOoxml,e.kendoIntl,e.KendoAngularL10N,e.KendoLicensing)}(this,function(t,r,o,n,e,i,a){"use strict";function p(r){if(r&&r.__esModule)return r;var o=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),o.default=r,Object.freeze(o)}function l(e,t,r){function o(e){return r(t,e),n.detectChanges(),n.rootNodes.reduce(function(e,t){return e+t.textContent},"").trim()}var n=e.createEmbeddedView(t);return o.destroy=function(){n.destroy(),n=null},o}function s(e,t){e.$implicit=e.group=t,e.field=t.field,e.value=t.value,e.aggregates=t.aggregates}function c(e,t){e.group=t.group,e.$implicit=e.aggregates=t}function d(e,t){e.aggregates=t.aggregates}function u(e){function n(e,r,o){e.forEach(function(t){var e;t.level===o&&(e=new j(t,i),r.push(e),t.children&&t.children.some(function(e){return e!==t})?(e=e.columns=[],n(t.children,e,o+1)):i++)})}var t=[],i=0;return n(e,t,0),t}function g(e){e&&e.forEach(function(e){e.destroy()})}var m=p(r),f=p(i),j=(y.prototype.destroy=function(){this.footerTemplate&&this.footerTemplate.destroy(),this.groupFooterTemplate&&this.groupFooterTemplate.destroy(),this.groupHeaderTemplate&&this.groupHeaderTemplate.destroy(),this.groupHeaderColumnTemplate&&this.groupHeaderColumnTemplate.destroy(),g(this.columns)},y);function y(e,t){this.title=e.title,this.field=e.field,this.hidden=e.hidden,this.locked=e.locked,this.width=e.width,this.headerCellOptions=e.headerCellOptions,this.cellOptions=e.cellOptions,this.groupHeaderCellOptions=e.groupHeaderCellOptions,this.groupFooterCellOptions=e.groupFooterCellOptions,this.footerCellOptions=e.footerCellOptions,e.footerTemplate&&(this.footerTemplate=l(e.footerTemplate.templateRef,{$implicit:e,column:e,columnIndex:t},d)),e.groupFooterTemplate&&(this.groupFooterTemplate=l(e.groupFooterTemplate.templateRef,{column:e,field:e.field},c)),e.groupHeaderTemplate&&(this.groupHeaderTemplate=l(e.groupHeaderTemplate.templateRef,{},s)),e.groupHeaderColumnTemplate&&(this.groupHeaderColumnTemplate=l(e.groupHeaderColumnTemplate.templateRef,{},s))}n.IntlService.register({toString:e.toString});function h(e){var t=u(e.columns),r=new n.ExcelExporter({columns:t,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,collapsible:e.collapsible,hierarchy:e.hierarchy,aggregates:e.aggregates}).workbook();return r.creator=e.creator,r.date=e.date,r.rtl=e.rtl,g(t),r}function v(e){return new n.Workbook(e).toDataURL()}function C(e){return e&&e.sheets}Object.defineProperty(O.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!1,configurable:!0});var x=O;function O(e){this.parent=e}x.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:x,deps:[{token:x}],target:m.ɵɵFactoryTarget.Component}),x.ɵcmp=m.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"ng-component",inputs:{title:"title",width:"width",locked:"locked",hidden:"hidden",headerCellOptions:"headerCellOptions"},queries:[{propertyName:"children",predicate:x}],ngImport:m,template:"",isInline:!0}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:x,decorators:[{type:r.Component,args:[{template:""}]}],ctorParameters:function(){return[{type:x}]},propDecorators:{title:[{type:r.Input}],width:[{type:r.Input}],locked:[{type:r.Input}],hidden:[{type:r.Input}],headerCellOptions:[{type:r.Input}],children:[{type:r.ContentChildren,args:[x]}]}});var _={name:"@progress/kendo-angular-excel-export",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648803359,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},e=(k.prototype.save=function(e){this.toDataURL(e).then(this.saveFile)},k.prototype.workbookOptions=function(e){e=this.getExportData(e);return h({columns:this.columns,data:e.data,group:e.group,filterable:this.filterable,creator:this.creator,date:this.date,rtl:this.localization.rtl,paddingCellOptions:this.paddingCellOptions,headerPaddingCellOptions:this.headerPaddingCellOptions,collapsible:this.collapsible})},k.prototype.toDataURL=function(e){var t=C(e)?e:this.workbookOptions(e);return this.zone.runOutsideAngular(function(){return v(t)})},k.prototype.getExportData=function(e){e=e?Array.isArray(e)?{data:e}:e:{data:this.data,group:this.group};return e},k.prototype.saveFile=function(e){o.saveAs(e,this.fileName,{forceProxy:this.forceProxy,proxyURL:this.proxyURL})},k);function k(e,t){this.localization=e,this.zone=t,this.fileName="Export.xlsx",this.columns=new r.QueryList,a.validatePackage(_),this.saveFile=this.saveFile.bind(this)}e.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:e,deps:[{token:f.LocalizationService},{token:m.NgZone}],target:m.ɵɵFactoryTarget.Component}),e.ɵcmp=m.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:e,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:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.excelexport"}],queries:[{propertyName:"columns",predicate:x,descendants:!0}],exportAs:["kendoExcelExport"],ngImport:m,template:"",isInline:!0}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:e,decorators:[{type:r.Component,args:[{exportAs:"kendoExcelExport",selector:"kendo-excelexport",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.excelexport"}],template:""}]}],ctorParameters:function(){return[{type:f.LocalizationService},{type:m.NgZone}]},propDecorators:{fileName:[{type:r.Input}],filterable:[{type:r.Input}],collapsible:[{type:r.Input}],creator:[{type:r.Input}],date:[{type:r.Input}],forceProxy:[{type:r.Input}],proxyURL:[{type:r.Input}],data:[{type:r.Input}],group:[{type:r.Input}],paddingCellOptions:[{type:r.Input}],headerPaddingCellOptions:[{type:r.Input}],columns:[{type:r.ContentChildren,args:[x,{descendants:!0}]}]}});var I=function(e,t){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var D,i=function(e){this.templateRef=e},E=(i.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:i,deps:[{token:m.TemplateRef,optional:!0}],target:m.ɵɵFactoryTarget.Directive}),i.ɵdir=m.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"[kendoExcelExportGroupHeaderTemplate]",ngImport:m}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:i,decorators:[{type:r.Directive,args:[{selector:"[kendoExcelExportGroupHeaderTemplate]"}]}],ctorParameters:function(){return[{type:m.TemplateRef,decorators:[{type:r.Optional}]}]}}),function(e){this.templateRef=e}),b=(E.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:E,deps:[{token:m.TemplateRef,optional:!0}],target:m.ɵɵFactoryTarget.Directive}),E.ɵdir=m.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"[kendoExcelExportGroupHeaderColumnTemplate]",ngImport:m}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:E,decorators:[{type:r.Directive,args:[{selector:"[kendoExcelExportGroupHeaderColumnTemplate]"}]}],ctorParameters:function(){return[{type:m.TemplateRef,decorators:[{type:r.Optional}]}]}}),function(e){this.templateRef=e}),F=(b.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:b,deps:[{token:m.TemplateRef,optional:!0}],target:m.ɵɵFactoryTarget.Directive}),b.ɵdir=m.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"[kendoExcelExportGroupFooterTemplate]",ngImport:m}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:b,decorators:[{type:r.Directive,args:[{selector:"[kendoExcelExportGroupFooterTemplate]"}]}],ctorParameters:function(){return[{type:m.TemplateRef,decorators:[{type:r.Optional}]}]}}),function(e){this.templateRef=e}),P=(F.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:F,deps:[{token:m.TemplateRef,optional:!0}],target:m.ɵɵFactoryTarget.Directive}),F.ɵdir=m.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"[kendoExcelExportFooterTemplate]",ngImport:m}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:F,decorators:[{type:r.Directive,args:[{selector:"[kendoExcelExportFooterTemplate]"}]}],ctorParameters:function(){return[{type:m.TemplateRef,decorators:[{type:r.Optional}]}]}}),T(R,D=x),R);function R(e){return D.call(this,e)||this}P.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:P,deps:[{token:x,host:!0,optional:!0,skipSelf:!0}],target:m.ɵɵFactoryTarget.Component}),P.ɵcmp=m.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-excelexport-column",inputs:{field:"field",cellOptions:"cellOptions",groupHeaderCellOptions:"groupHeaderCellOptions",groupFooterCellOptions:"groupFooterCellOptions",footerCellOptions:"footerCellOptions"},providers:[{provide:x,useExisting:r.forwardRef(function(){return P})}],queries:[{propertyName:"groupHeaderTemplate",first:!0,predicate:i,descendants:!0},{propertyName:"groupHeaderColumnTemplate",first:!0,predicate:E,descendants:!0},{propertyName:"groupFooterTemplate",first:!0,predicate:b,descendants:!0},{propertyName:"footerTemplate",first:!0,predicate:F,descendants:!0}],usesInheritance:!0,ngImport:m,template:"",isInline:!0}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:P,decorators:[{type:r.Component,args:[{providers:[{provide:x,useExisting:r.forwardRef(function(){return P})}],selector:"kendo-excelexport-column",template:""}]}],ctorParameters:function(){return[{type:x,decorators:[{type:r.SkipSelf},{type:r.Host},{type:r.Optional}]}]},propDecorators:{field:[{type:r.Input}],cellOptions:[{type:r.Input}],groupHeaderCellOptions:[{type:r.Input}],groupFooterCellOptions:[{type:r.Input}],footerCellOptions:[{type:r.Input}],groupHeaderTemplate:[{type:r.ContentChild,args:[i,{static:!1}]}],groupHeaderColumnTemplate:[{type:r.ContentChild,args:[E,{static:!1}]}],groupFooterTemplate:[{type:r.ContentChild,args:[b,{static:!1}]}],footerTemplate:[{type:r.ContentChild,args:[F,{static:!1}]}]}});T(H,V=x);var V,w=H;function H(e){var t=V.call(this,e)||this;return t.parent=e,t}w.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:w,deps:[{token:x,host:!0,optional:!0,skipSelf:!0}],target:m.ɵɵFactoryTarget.Component}),w.ɵcmp=m.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-excelexport-column-group",providers:[{provide:x,useExisting:r.forwardRef(function(){return w})}],usesInheritance:!0,ngImport:m,template:"",isInline:!0}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:w,decorators:[{type:r.Component,args:[{providers:[{provide:x,useExisting:r.forwardRef(function(){return w})}],selector:"kendo-excelexport-column-group",template:""}]}],ctorParameters:function(){return[{type:x,decorators:[{type:r.SkipSelf},{type:r.Host},{type:r.Optional}]}]}});var N=[e,P,w,F,b,i,E],L=function(){};L.ɵfac=m.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:L,deps:[],target:m.ɵɵFactoryTarget.NgModule}),L.ɵmod=m.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:L,declarations:[e,P,w,F,b,i,E],exports:[e,P,w,F,b,i,E]}),L.ɵinj=m.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:L}),m.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:m,type:L,decorators:[{type:r.NgModule,args:[{declarations:[N],exports:[N]}]}]}),t.ColumnBase=x,t.ColumnComponent=P,t.ColumnGroupComponent=w,t.ExcelExportComponent=e,t.ExcelExportModule=L,t.FooterTemplateDirective=F,t.GroupFooterTemplateDirective=b,t.GroupHeaderColumnTemplateDirective=E,t.GroupHeaderTemplateDirective=i,t.isWorkbookOptions=C,t.toDataURL=v,t.workbookOptions=h,Object.keys(n).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),Object.defineProperty(t,"__esModule",{value:!0})});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { QueryList } from '@angular/core';
|
|
6
6
|
import { CellOptions } from '../ooxml/cell-options.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
@@ -40,6 +41,8 @@ export declare class ColumnBase {
|
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
get level(): number;
|
|
44
45
|
constructor(parent?: ColumnBase);
|
|
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>;
|
|
45
48
|
}
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ColumnBase } from './column-base';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents the column group component of the Kendo UI Excel Export component.
|
|
8
9
|
*/
|
|
9
10
|
export declare class ColumnGroupComponent extends ColumnBase {
|
|
10
11
|
parent?: ColumnBase;
|
|
11
12
|
constructor(parent?: ColumnBase);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnGroupComponent, [{ optional: true; host: true; skipSelf: true; }]>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnGroupComponent, "kendo-excelexport-column-group", never, {}, {}, never, never>;
|
|
12
15
|
}
|
|
@@ -8,6 +8,7 @@ import { GroupFooterTemplateDirective } from './group-footer-template.directive'
|
|
|
8
8
|
import { FooterTemplateDirective } from './footer-template.directive';
|
|
9
9
|
import { ColumnBase } from './column-base';
|
|
10
10
|
import { CellOptions } from '../ooxml/cell-options.interface';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* Represents the columns of the Kendo UI Excel Export component for Angular.
|
|
13
14
|
*/
|
|
@@ -53,4 +54,6 @@ export declare class ColumnComponent extends ColumnBase {
|
|
|
53
54
|
*/
|
|
54
55
|
footerTemplate: FooterTemplateDirective;
|
|
55
56
|
constructor(parent?: ColumnBase);
|
|
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>;
|
|
56
59
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents the footer cell template of the Excel Export column component
|
|
8
9
|
* ([see example]({% slug columns_excel-export %}#toc-footer-template)).
|
|
@@ -11,4 +12,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
11
12
|
export declare class FooterTemplateDirective {
|
|
12
13
|
templateRef: TemplateRef<any>;
|
|
13
14
|
constructor(templateRef: TemplateRef<any>);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterTemplateDirective, [{ optional: true; }]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterTemplateDirective, "[kendoExcelExportFooterTemplate]", never, {}, {}, never>;
|
|
14
17
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents the group footer cell template of the Excel Export column component
|
|
8
9
|
* ([see example]({% slug columns_excel-export %}#toc-group-footer-template)).
|
|
@@ -11,4 +12,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
11
12
|
export declare class GroupFooterTemplateDirective {
|
|
12
13
|
templateRef: TemplateRef<any>;
|
|
13
14
|
constructor(templateRef: TemplateRef<any>);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupFooterTemplateDirective, [{ optional: true; }]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupFooterTemplateDirective, "[kendoExcelExportGroupFooterTemplate]", never, {}, {}, never>;
|
|
14
17
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents the group header column template of the Excel Export column component
|
|
8
9
|
* ([see example]({% slug columns_excel-export %}#toc-group-header-column-template)).
|
|
@@ -10,4 +11,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
10
11
|
export declare class GroupHeaderColumnTemplateDirective {
|
|
11
12
|
templateRef: TemplateRef<any>;
|
|
12
13
|
constructor(templateRef: TemplateRef<any>);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupHeaderColumnTemplateDirective, [{ optional: true; }]>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupHeaderColumnTemplateDirective, "[kendoExcelExportGroupHeaderColumnTemplate]", never, {}, {}, never>;
|
|
13
16
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents the group header cell template of the Excel Export column component
|
|
8
9
|
* ([see example]({% slug columns_excel-export %}#toc-group-header-template)).
|
|
@@ -11,4 +12,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
11
12
|
export declare class GroupHeaderTemplateDirective {
|
|
12
13
|
templateRef: TemplateRef<any>;
|
|
13
14
|
constructor(templateRef: TemplateRef<any>);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupHeaderTemplateDirective, [{ optional: true; }]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupHeaderTemplateDirective, "[kendoExcelExportGroupHeaderTemplate]", never, {}, {}, never>;
|
|
14
17
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Input, ContentChildren, Component } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class ColumnBase {
|
|
11
|
+
constructor(parent) {
|
|
12
|
+
this.parent = parent;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
get level() {
|
|
18
|
+
return this.parent ? this.parent.level + 1 : 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
ColumnBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColumnBase, deps: [{ token: ColumnBase }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
ColumnBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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: "12.2.16", ngImport: i0, type: ColumnBase, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{
|
|
26
|
+
template: ''
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: ColumnBase }]; }, propDecorators: { title: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], width: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], locked: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], hidden: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], headerCellOptions: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}], children: [{
|
|
39
|
+
type: ContentChildren,
|
|
40
|
+
args: [ColumnBase]
|
|
41
|
+
}] } });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { 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 the column group component of the Kendo UI Excel Export component.
|
|
11
|
+
*/
|
|
12
|
+
export class ColumnGroupComponent extends ColumnBase {
|
|
13
|
+
constructor(parent) {
|
|
14
|
+
super(parent);
|
|
15
|
+
this.parent = parent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
ColumnGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColumnGroupComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
ColumnGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColumnGroupComponent, 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: "12.2.16", ngImport: i0, type: ColumnGroupComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{
|
|
28
|
+
providers: [
|
|
29
|
+
{
|
|
30
|
+
provide: ColumnBase,
|
|
31
|
+
useExisting: forwardRef(() => ColumnGroupComponent)
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
selector: 'kendo-excelexport-column-group',
|
|
35
|
+
template: ``
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.ColumnBase, decorators: [{
|
|
38
|
+
type: SkipSelf
|
|
39
|
+
}, {
|
|
40
|
+
type: Host
|
|
41
|
+
}, {
|
|
42
|
+
type: Optional
|
|
43
|
+
}] }]; } });
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { 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 the columns of the Kendo UI Excel Export component for Angular.
|
|
15
|
+
*/
|
|
16
|
+
export class ColumnComponent extends ColumnBase {
|
|
17
|
+
constructor(parent) {
|
|
18
|
+
super(parent);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
ColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
ColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColumnComponent, 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: "12.2.16", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: ColumnBase,
|
|
34
|
+
useExisting: forwardRef(() => ColumnComponent)
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
selector: 'kendo-excelexport-column',
|
|
38
|
+
template: ``
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.ColumnBase, decorators: [{
|
|
41
|
+
type: SkipSelf
|
|
42
|
+
}, {
|
|
43
|
+
type: Host
|
|
44
|
+
}, {
|
|
45
|
+
type: Optional
|
|
46
|
+
}] }]; }, propDecorators: { field: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], cellOptions: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], groupHeaderCellOptions: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], groupFooterCellOptions: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], footerCellOptions: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], groupHeaderTemplate: [{
|
|
57
|
+
type: ContentChild,
|
|
58
|
+
args: [GroupHeaderTemplateDirective, { static: false }]
|
|
59
|
+
}], groupHeaderColumnTemplate: [{
|
|
60
|
+
type: ContentChild,
|
|
61
|
+
args: [GroupHeaderColumnTemplateDirective, { static: false }]
|
|
62
|
+
}], groupFooterTemplate: [{
|
|
63
|
+
type: ContentChild,
|
|
64
|
+
args: [GroupFooterTemplateDirective, { static: false }]
|
|
65
|
+
}], footerTemplate: [{
|
|
66
|
+
type: ContentChild,
|
|
67
|
+
args: [FooterTemplateDirective, { static: false }]
|
|
68
|
+
}] } });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, 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
|
+
* Enables you to customize the footer cell of the column.
|
|
11
|
+
*/
|
|
12
|
+
export class FooterTemplateDirective {
|
|
13
|
+
constructor(templateRef) {
|
|
14
|
+
this.templateRef = templateRef;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
FooterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
FooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FooterTemplateDirective, selector: "[kendoExcelExportFooterTemplate]", ngImport: i0 });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: '[kendoExcelExportFooterTemplate]'
|
|
23
|
+
}]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
+
type: Optional
|
|
26
|
+
}] }]; } });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, 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
|
+
* Enables you to customize the group footer cell of the column.
|
|
11
|
+
*/
|
|
12
|
+
export class GroupFooterTemplateDirective {
|
|
13
|
+
constructor(templateRef) {
|
|
14
|
+
this.templateRef = templateRef;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
GroupFooterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
GroupFooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GroupFooterTemplateDirective, selector: "[kendoExcelExportGroupFooterTemplate]", ngImport: i0 });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupFooterTemplateDirective, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: '[kendoExcelExportGroupFooterTemplate]'
|
|
23
|
+
}]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
+
type: Optional
|
|
26
|
+
}] }]; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, 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
|
+
*/
|
|
11
|
+
export class GroupHeaderColumnTemplateDirective {
|
|
12
|
+
constructor(templateRef) {
|
|
13
|
+
this.templateRef = templateRef;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
GroupHeaderColumnTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupHeaderColumnTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
GroupHeaderColumnTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GroupHeaderColumnTemplateDirective, selector: "[kendoExcelExportGroupHeaderColumnTemplate]", ngImport: i0 });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupHeaderColumnTemplateDirective, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: '[kendoExcelExportGroupHeaderColumnTemplate]'
|
|
22
|
+
}]
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
24
|
+
type: Optional
|
|
25
|
+
}] }]; } });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, 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
|
+
* Enables you to customize the content of the group header item.
|
|
11
|
+
*/
|
|
12
|
+
export class GroupHeaderTemplateDirective {
|
|
13
|
+
constructor(templateRef) {
|
|
14
|
+
this.templateRef = templateRef;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
GroupHeaderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
GroupHeaderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GroupHeaderTemplateDirective, selector: "[kendoExcelExportGroupHeaderTemplate]", ngImport: i0 });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GroupHeaderTemplateDirective, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: '[kendoExcelExportGroupHeaderTemplate]'
|
|
23
|
+
}]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
+
type: Optional
|
|
26
|
+
}] }]; } });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Component, ContentChildren, Input, QueryList, NgZone } from '@angular/core';
|
|
5
|
+
// eslint-disable max-line-length
|
|
6
|
+
import { Component, ContentChildren, Input, QueryList } from '@angular/core';
|
|
8
7
|
import { saveAs } from '@progress/kendo-file-saver';
|
|
9
8
|
import { workbookOptions, toDataURL, isWorkbookOptions } from './ooxml/workbook';
|
|
10
9
|
import { ColumnBase } from './columns/column-base';
|
|
11
10
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
12
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
12
|
import { packageMetadata } from './package-metadata';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
14
15
|
/**
|
|
15
16
|
* Represents the [Kendo UI Excel Export component for Angular]({% slug overview_excelexport %}).
|
|
16
17
|
* Configures the settings for the Excel export of the Kendo UI Grid.
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
export class ExcelExportComponent {
|
|
19
20
|
constructor(localization, zone) {
|
|
20
21
|
this.localization = localization;
|
|
21
22
|
this.zone = zone;
|
|
@@ -102,68 +103,52 @@ let ExcelExportComponent = class ExcelExportComponent {
|
|
|
102
103
|
proxyURL: this.proxyURL
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
],
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
],
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
]
|
|
154
|
-
ExcelExportComponent = tslib_1.__decorate([
|
|
155
|
-
Component({
|
|
156
|
-
exportAs: 'kendoExcelExport',
|
|
157
|
-
selector: 'kendo-excelexport',
|
|
158
|
-
providers: [
|
|
159
|
-
LocalizationService,
|
|
160
|
-
{
|
|
161
|
-
provide: L10N_PREFIX,
|
|
162
|
-
useValue: 'kendo.excelexport'
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
template: ``
|
|
166
|
-
}),
|
|
167
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService, NgZone])
|
|
168
|
-
], ExcelExportComponent);
|
|
169
|
-
export { ExcelExportComponent };
|
|
106
|
+
}
|
|
107
|
+
ExcelExportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExcelExportComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
108
|
+
ExcelExportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ExcelExportComponent, 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: "12.2.16", ngImport: i0, type: ExcelExportComponent, decorators: [{
|
|
116
|
+
type: Component,
|
|
117
|
+
args: [{
|
|
118
|
+
exportAs: 'kendoExcelExport',
|
|
119
|
+
selector: 'kendo-excelexport',
|
|
120
|
+
providers: [
|
|
121
|
+
LocalizationService,
|
|
122
|
+
{
|
|
123
|
+
provide: L10N_PREFIX,
|
|
124
|
+
useValue: 'kendo.excelexport'
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
template: ``
|
|
128
|
+
}]
|
|
129
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { fileName: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], filterable: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], collapsible: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], creator: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], date: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}], forceProxy: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], proxyURL: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], data: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], group: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], paddingCellOptions: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], headerPaddingCellOptions: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}], columns: [{
|
|
152
|
+
type: ContentChildren,
|
|
153
|
+
args: [ColumnBase, { descendants: true }]
|
|
154
|
+
}] } });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { ExcelExportComponent } from './excel-export.component';
|
|
8
7
|
import { ColumnComponent } from './columns/column.component';
|
|
@@ -11,6 +10,7 @@ import { FooterTemplateDirective } from './columns/footer-template.directive';
|
|
|
11
10
|
import { GroupFooterTemplateDirective } from './columns/group-footer-template.directive';
|
|
12
11
|
import { GroupHeaderTemplateDirective } from './columns/group-header-template.directive';
|
|
13
12
|
import { GroupHeaderColumnTemplateDirective } from './columns/group-header-column-template.directive';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
14
|
const declarations = [
|
|
15
15
|
ExcelExportComponent,
|
|
16
16
|
ColumnComponent,
|
|
@@ -51,12 +51,27 @@ const declarations = [
|
|
|
51
51
|
*
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
ExcelExportModule =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
export class ExcelExportModule {
|
|
55
|
+
}
|
|
56
|
+
ExcelExportModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExcelExportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
+
ExcelExportModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExcelExportModule, declarations: [ExcelExportComponent,
|
|
58
|
+
ColumnComponent,
|
|
59
|
+
ColumnGroupComponent,
|
|
60
|
+
FooterTemplateDirective,
|
|
61
|
+
GroupFooterTemplateDirective,
|
|
62
|
+
GroupHeaderTemplateDirective,
|
|
63
|
+
GroupHeaderColumnTemplateDirective], exports: [ExcelExportComponent,
|
|
64
|
+
ColumnComponent,
|
|
65
|
+
ColumnGroupComponent,
|
|
66
|
+
FooterTemplateDirective,
|
|
67
|
+
GroupFooterTemplateDirective,
|
|
68
|
+
GroupHeaderTemplateDirective,
|
|
69
|
+
GroupHeaderColumnTemplateDirective] });
|
|
70
|
+
ExcelExportModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExcelExportModule });
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExcelExportModule, decorators: [{
|
|
72
|
+
type: NgModule,
|
|
73
|
+
args: [{
|
|
74
|
+
declarations: [declarations],
|
|
75
|
+
exports: [declarations]
|
|
76
|
+
}]
|
|
77
|
+
}] });
|
|
@@ -2,3 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
export * from './main';
|