UNPKG

2.37 kBTypeScriptView Raw
1import { Key, ReactElement, ReactNode } from 'react';
2import { DraggingStyle, DropResult, NotDraggingStyle } from 'react-beautiful-dnd';
3import { ColumnProps } from './Column';
4import Record from '../data-set/Record';
5import Field from '../data-set/Field';
6import { ColumnLock, TablePaginationPosition } from './enum';
7import { FormFieldProps } from '../field/FormField';
8import DataSet from '../data-set/DataSet';
9import TableStore from './TableStore';
10import { TablePaginationConfig } from './Table';
11import ColumnGroup from './ColumnGroup';
12export declare function getEditorByField(field: Field, isQueryField?: boolean, isFlat?: boolean): ReactElement<FormFieldProps>;
13export declare function getPlaceholderByField(field?: Field): string | undefined;
14export declare function getEditorByColumnAndRecord(column: ColumnProps, record?: Record): ReactElement<FormFieldProps> | undefined;
15export declare function isInCellEditor(element?: ReactElement<FormFieldProps>): boolean;
16export declare function isStickySupport(): boolean;
17export declare function findCell(tableStore: TableStore, name?: Key, lock?: ColumnLock | boolean, record?: Record): HTMLSpanElement | undefined;
18export declare function isCanEdictingRow(element: any): boolean;
19export declare function findIndexedSibling(element: any, direction: any): HTMLTableRowElement | null;
20export declare function isDisabledRow(record: Record): boolean;
21export declare function isSelectedRow(record: Record): boolean;
22export declare function getHeader(column: ColumnProps, dataSet: DataSet, aggregation?: boolean): ReactNode;
23export declare function getColumnKey({ name, key }: ColumnProps): Key;
24export declare function getColumnLock(lock?: ColumnLock | boolean): ColumnLock | false;
25export declare function getPaginationPosition(pagination?: TablePaginationConfig): TablePaginationPosition;
26export declare function getHeight(el: HTMLElement): number;
27export declare function getTableHeaderRows(columns: ColumnGroup[], currentRow?: number, rows?: ColumnGroup[][]): ColumnGroup[][];
28export declare function isDropresult(dropResult: any): dropResult is DropResult;
29export declare function isDraggingStyle(style?: DraggingStyle | NotDraggingStyle): style is DraggingStyle;
30export declare function getMaxClientWidth(element: Element): number;
31export declare function onlyCustomizedColumn(tableStore: TableStore): boolean;