UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

43 lines (42 loc) 3.51 kB
import type { AgPropertyChangedSource } from '../agStack/interfaces/iProperties'; import type { BeanCollection } from '../context/context'; import type { AgColumn } from '../entities/agColumn'; import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup'; import type { ColDef, ColKey } from '../entities/colDef'; import type { ColumnEventType } from '../events'; import type { ColumnCollections } from './columnModel'; import type { ColumnState, ColumnStateParams } from './columnStateUtils'; export declare const GROUP_AUTO_COLUMN_ID = "ag-Grid-AutoColumn"; export declare const SELECTION_COLUMN_ID = "ag-Grid-SelectionColumn"; export declare const ROW_NUMBERS_COLUMN_ID = "ag-Grid-RowNumbersColumn"; export declare const GROUP_HIERARCHY_COLUMN_ID_PREFIX = "ag-Grid-HierarchyColumn"; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _getColumnsFromTree(rootColumns: (AgColumn | AgProvidedColumnGroup)[]): AgColumn[]; export declare function getWidthOfColsInList(columnList: AgColumn[]): number; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _destroyColumnTree(beans: BeanCollection, oldTree: (AgColumn | AgProvidedColumnGroup)[] | null | undefined, newTree?: (AgColumn | AgProvidedColumnGroup)[] | null): void; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function isColumnGroupAutoCol(col: AgColumn): boolean; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function isColumnSelectionCol(col: ColKey): boolean; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function isRowNumberCol(col: ColKey): boolean; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function isSpecialCol(col: ColKey): boolean; export declare function convertColumnTypes(type: string | string[]): string[]; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _areColIdsEqual(colsA: AgColumn[] | null, colsB: AgColumn[] | null): boolean; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _updateColsMap(cols: ColumnCollections): void; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _convertColumnEventSourceType(source: AgPropertyChangedSource): ColumnEventType; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _columnsMatch(column: AgColumn, key: ColKey): boolean; export declare const getValueFactory: (stateItem: ColumnState | null, defaultState: ColumnStateParams | undefined) => <U extends keyof ColumnStateParams, S extends keyof ColumnStateParams>(key1: U, key2?: S) => { value1: ColumnStateParams[U] | undefined; value2: ColumnStateParams[S] | undefined; }; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _getColumnStateFromColDef(colDef: ColDef, colId: string): ColumnState; /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare function _getSortDefFromColDef(colDef: ColDef): import("../main-umd-noStyles").SortDef | null;