UNPKG

@anglr/grid

Version:
74 lines 3.63 kB
import { Component, ChangeDetectionStrategy, Input, TemplateRef, ContentChild } from '@angular/core'; import { TableGridBodyCellTemplateDirective, TableGridHeaderCellTemplateDirective } from '../../directives'; import * as i0 from "@angular/core"; /** * Component for gathering information about table grid column */ export class TableGridColumnComponent { constructor() { /** * @inheritdoc */ this.titleVisible = true; /** * @inheritdoc */ this.visible = true; } /** * @inheritdoc */ get headerTemplate() { return this.headerTemplateNew ?? this.headerTemplateLegacy; } /** * @inheritdoc */ get bodyTemplate() { return this.bodyTemplateNew ?? this.bodyTemplateLegacy; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TableGridColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: TableGridColumnComponent, isStandalone: true, selector: "basic-table-column, table-column", inputs: { id: "id", name: "name", title: "title", headerTooltip: "headerTooltip", titleVisible: "titleVisible", ordering: "ordering", visible: "visible", width: "width", headerClass: "headerClass", cellClass: "cellClass" }, queries: [{ propertyName: "headerTemplateLegacy", first: true, predicate: ["headerTemplate"], descendants: true }, { propertyName: "bodyTemplateLegacy", first: true, predicate: ["bodyTemplate"], descendants: true }, { propertyName: "headerTemplateNew", first: true, predicate: TableGridHeaderCellTemplateDirective, descendants: true, read: (TemplateRef) }, { propertyName: "bodyTemplateNew", first: true, predicate: TableGridBodyCellTemplateDirective, descendants: true, read: (TemplateRef) }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TableGridColumnComponent, decorators: [{ type: Component, args: [{ selector: 'basic-table-column, table-column', template: '', changeDetection: ChangeDetectionStrategy.OnPush }] }], propDecorators: { id: [{ type: Input, args: [{ required: true }] }], name: [{ type: Input }], title: [{ type: Input }], headerTooltip: [{ type: Input }], titleVisible: [{ type: Input }], ordering: [{ type: Input }], visible: [{ type: Input }], width: [{ type: Input }], headerClass: [{ type: Input }], cellClass: [{ type: Input }], headerTemplateLegacy: [{ type: ContentChild, args: ['headerTemplate'] }], bodyTemplateLegacy: [{ type: ContentChild, args: ['bodyTemplate'] }], headerTemplateNew: [{ type: ContentChild, args: [TableGridHeaderCellTemplateDirective, { read: (TemplateRef) }] }], bodyTemplateNew: [{ type: ContentChild, args: [TableGridBodyCellTemplateDirective, { read: (TemplateRef) }] }] } }); //# sourceMappingURL=tableGridColumn.component.js.map