@progress/kendo-angular-excel-export
Version:
Kendo UI for Angular Excel Export component
110 lines (109 loc) • 5.09 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { forwardRef, Component, Input, ContentChild, SkipSelf, Host, Optional } from '@angular/core';
import { GroupHeaderTemplateDirective } from './group-header-template.directive';
import { GroupHeaderColumnTemplateDirective } from './group-header-column-template.directive';
import { GroupFooterTemplateDirective } from './group-footer-template.directive';
import { FooterTemplateDirective } from './footer-template.directive';
import { ColumnBase } from './column-base';
import * as i0 from "@angular/core";
import * as i1 from "./column-base";
/**
* Represents the columns of the Kendo UI Excel Export component for Angular.
*/
export class ColumnComponent extends ColumnBase {
/**
* The field to which the column is bound.
*/
field;
/**
* The options of the column data cells
* ([see example]({% slug cells_excelexport %}#toc-data-cells)).
*/
cellOptions;
/**
* The options of the column group header cells
* ([see example]({% slug cells_excelexport %}#toc-header-cells)).
*/
groupHeaderCellOptions;
/**
* The options of the column group footer cells
* ([see example]({% slug cells_excelexport %}#toc-group-footer-cells)).
*/
groupFooterCellOptions;
/**
* The options of the column footer cell
* ([see example]({% slug cells_excelexport %}#toc-footer-cells)).
*/
footerCellOptions;
/**
* @hidden
*/
groupHeaderTemplate;
/**
* @hidden
*/
groupHeaderColumnTemplate;
/**
* @hidden
*/
groupFooterTemplate;
/**
* @hidden
*/
footerTemplate;
constructor(parent) {
super(parent);
}
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 });
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: [
{
provide: ColumnBase,
useExisting: forwardRef(() => ColumnComponent)
}
], 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 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnComponent, decorators: [{
type: Component,
args: [{
providers: [
{
provide: ColumnBase,
useExisting: forwardRef(() => ColumnComponent)
}
],
selector: 'kendo-excelexport-column',
template: ``,
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ColumnBase, decorators: [{
type: SkipSelf
}, {
type: Host
}, {
type: Optional
}] }]; }, propDecorators: { field: [{
type: Input
}], cellOptions: [{
type: Input
}], groupHeaderCellOptions: [{
type: Input
}], groupFooterCellOptions: [{
type: Input
}], footerCellOptions: [{
type: Input
}], groupHeaderTemplate: [{
type: ContentChild,
args: [GroupHeaderTemplateDirective, { static: false }]
}], groupHeaderColumnTemplate: [{
type: ContentChild,
args: [GroupHeaderColumnTemplateDirective, { static: false }]
}], groupFooterTemplate: [{
type: ContentChild,
args: [GroupFooterTemplateDirective, { static: false }]
}], footerTemplate: [{
type: ContentChild,
args: [FooterTemplateDirective, { static: false }]
}] } });