UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

31 lines (30 loc) 1.93 kB
import type { ColumnType, RowType } from '../types/index.js'; export declare function findMaxDepth(columns: ColumnType[], depth?: number): number; export declare function linkColumnStructure(columns: ColumnType[], parent?: ColumnType, depth?: number): ColumnType[]; export declare function flattenColumns(columns: ColumnType[]): ColumnType[]; export declare function assignColumnAccessor(column: ColumnType): ColumnType; export declare function decorateColumn(column: ColumnType, userDefaultColumn: Record<string, unknown>): ColumnType; export declare function makeHeaderGroups(allColumns: ColumnType[], defaultColumn: Record<string, unknown>, additionalHeaderProperties?: (column: ColumnType) => Record<string, any>): any[]; export declare function getBy(obj: any, path: string | string[], def?: any): any; export declare function getFirstDefined(...args: any[]): any; export declare function getElementDimensions(element: HTMLElement): { left: number; width: number; outerWidth: number; marginLeft: number; marginRight: number; paddingLeft: number; paddingRight: number; scrollWidth: number; }; export declare function isFunction(a: any): ((...args: any[]) => any) | undefined; export declare function flattenBy<T extends Record<string, any>>(arr: T[], key: string): T[]; export declare function expandRows(rows: RowType[], { manualExpandedKey, expanded, expandSubRows, }: { manualExpandedKey: string; expanded: Record<string, any>; expandSubRows?: boolean; }): RowType[]; export declare function getFilterMethod(filter: any, userFilterTypes: Record<string, any>, filterTypes: Record<string, any>): any; export declare function shouldAutoRemoveFilter(autoRemove: ((value: any, column?: ColumnType) => boolean) | undefined, value: any, column?: ColumnType): boolean; export declare function unpreparedAccessWarning(): never; export declare function passiveEventSupported(): boolean;