/**----------------------------------------------------------------------------------------- * Copyright © 2024 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { OnChanges, QueryList, TemplateRef } from '@angular/core'; import { ColumnMenuTemplateDirective } from '../column-menu/column-menu-template.directive'; import { OptionChangesService } from '../common/option-changes.service'; import { FooterTemplateDirective } from '../rendering/footer-template.directive'; import { HeaderTemplateDirective } from '../rendering/header/header-template.directive'; import * as i0 from "@angular/core"; /** * @hidden */ export declare const isSpanColumn: (column: any) => any; /** * @hidden */ export declare const isCheckboxColumn: (column: any) => any; /** * @hidden */ export declare const isRowReorderColumn: (column: any) => any; /** * The base class for the column components of the TreeList. */ export declare class ColumnBase implements OnChanges { parent?: ColumnBase; protected optionChanges?: OptionChangesService; /** * @hidden */ matchesMedia: boolean; /** * The column index after reordering. * The orderIndex` is a read-only property. Setting this field does not affect column order. * @default 0 */ orderIndex: number; /** * @hidden */ set leafIndex(value: number); /** * @hidden */ get leafIndex(): number; protected _leafIndex: number; /** * @hidden */ isColumnGroup: boolean; /** * @hidden */ isSpanColumn: boolean; /** * Indicates whether the column is resizable. * @default true */ resizable: boolean; /** * Indicates whether the column is reorderable. * @default true */ reorderable: boolean; /** * The width (in pixels) below which the user is not able to resize the column by using the UI. * @default 10 */ minResizableWidth: number; /** * The title of the column. */ title: string; /** * The width of the column (in pixels). */ set width(value: number); get width(): number; /** * Indicates whether the column will be resized during initialization so that it fits its header and row content. */ autoSize: boolean; /** * Toggles the locked (frozen) state of the columns ([more information and example](slug:locked_columns_treelist)). * * @default false */ set locked(value: boolean); get locked(): boolean; protected _locked: boolean; /** * Sets the visibility of the column ([see example]({% slug hidden_columns_treelist %}#toc-using-built-in-options)). * * @default false */ hidden: boolean; /** * Sets the condition that needs to be satisfied for a column to remain visible ([see example](slug:responsive_treelist#toc-columns)). * If you set the `hidden` property, the behavior of `media` is overridden. */ media: string; /** * Specifies if the column can be locked or unlocked from the column menu or by reordering the columns. * @default true */ lockable: boolean; /** * Specifies if the column menu will be shown for the column. * @default true */ columnMenu: boolean; /** * Specifies if the column will be included in the column-chooser list. * @default true */ includeInChooser: boolean; /** * Allows setting the `role` attribute for the table cells (excluding the footer and header ones) of the column. * @default "gridcell" */ tableCellsRole: string; /** * Sets the custom styles for the table cells (excluding the footer and header ones) of the column. Under the hood, * to apply the property, the `style` option uses the * [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist). */ style: { [key: string]: string; }; /** * Sets the custom styles for the header cell of the column. Under the hood, to apply the property, * the `headerStyle` option uses the * [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist). */ headerStyle: { [key: string]: string; }; /** * Sets the custom styles for the footer cell of the column. Under the hood, to apply the property, * the `footerStyle` option uses the * [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist). */ footerStyle: { [key: string]: string; }; /** * Sets the custom CSS classes to the column cells. Under the hood, to apply the property, the `class` option uses the * [NgClass](link:site.data.urls.angular['ngclassapi']) directive. * To customize header and footer column cells, use the [`headerClass`]({% slug api_treelist_columncomponent %}#toc-headerclass) * and [`footerClass`]({% slug api_treelist_columncomponent %}#toc-footerclass) inputs. */ cssClass: string | string[] | Set | { [key: string]: any; }; /** * Sets the custom CSS classes to the column header cell. Under the hood, to apply the property, * the `headerClass` option uses the * [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist). */ headerClass: string | string[] | Set | { [key: string]: any; }; /** * Sets the custom CSS classes to the column footer cell. Under the hood, to apply the property, * the `footerClass` option uses the * [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist). */ footerClass: string | string[] | Set | { [key: string]: any; }; /** * @hidden */ headerTemplates: QueryList; /** * @hidden */ footerTemplate: FooterTemplateDirective; /** * @hidden */ columnMenuTemplates: QueryList; /** * @hidden */ resizeStartWidth: number; /** * @hidden */ get level(): number; /** * @hidden */ get isLocked(): boolean; protected _width: number; /** * @hidden */ get colspan(): number; /** * @hidden */ rowspan(totalColumnLevels: number): number; /** * @hidden */ get headerTemplateRef(): TemplateRef; /** * @hidden */ get footerTemplateRef(): TemplateRef; /** * @hidden */ get columnMenuTemplateRef(): TemplateRef; /** * @hidden */ get displayTitle(): string; /** * @hidden */ get isVisible(): boolean; /** * @hidden */ get isEditable(): boolean; /** * @hidden */ constructor(parent?: ColumnBase, optionChanges?: OptionChangesService); ngOnChanges(_changes: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }