@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
30 lines (29 loc) • 2.18 kB
TypeScript
import { TableLayout, PivotLayout, Layout } from '../../types';
import { LayoutModel, TableLayoutModel, PivotLayoutModel } from '../../layout-manager/src/LayoutManagerModel';
export declare function columnWidthsToColumnSizing(columnWidths: Record<string, number>): TableLayout['ColumnSizing'];
export declare const layoutStateToLayoutModel: (layout: TableLayout | PivotLayout) => LayoutModel;
export declare const layoutModelToLayoutState: (layoutModel: LayoutModel) => TableLayout | PivotLayout;
/**
* Compares 2 Layouts for equality
* @param layout1 First Layout
* @param layout2 Second Layout
*/
export declare const areLayoutsEqual: (layout1: Layout, layout2: Layout) => boolean;
export declare const normalizeLayout: (layout: TableLayout | PivotLayout, options?: {
isTree: boolean;
}) => TableLayout | PivotLayout;
export declare const normalizeTableLayout: (tableLayout: TableLayout, options?: {
isTree: boolean;
}) => TableLayout;
export declare const normalizePivotLayout: (pivotLayout: PivotLayout) => PivotLayout;
/** Clears module-scoped dedupe state when a new Adaptable instance starts (e.g. Playwright retries). */
export declare const resetLayoutHelperErrorOnceMessages: () => void;
export declare const getLayoutRowGroupValuesExceptionGroupKeys: (layout: TableLayout | PivotLayout) => any[][];
export declare const toRowGroupValuesForLayoutState: (rowGroupValuesModel: TableLayoutModel["RowGroupValues"]) => TableLayout["RowGroupValues"];
export declare const toRowGroupValuesForLayoutModel: (rowGroupValuesState: TableLayout["RowGroupValues"]) => TableLayoutModel["RowGroupValues"];
export declare const checkForDuplicateColumns: (layout: TableLayout) => void;
export declare const tableLayoutToTableLayoutModel: (tableLayout: TableLayout) => TableLayoutModel;
export declare const pivotLayoutToPivotLayoutModel: (pivotLayout: PivotLayout) => PivotLayoutModel;
export declare const tableLayoutModelToTableLayout: (layoutModel: TableLayoutModel) => TableLayout;
export declare const pivotLayoutModelToPivotLayout: (layoutModel: PivotLayoutModel) => PivotLayout;
export declare const isPivotLayout: (layout: Partial<Layout>) => layout is PivotLayout;