import React, { FunctionComponent } from 'react'; import { ColumnProps, TableProps, TableRowSelection } from 'antd/es/table'; import { PaginationMode, WidgetListField, WidgetTableMeta } from '../../../interfaces/widget'; import { RowMetaField } from '../../../interfaces/rowMeta'; import { DataItem, PendingDataItem } from '../../../interfaces/data'; import { ViewSelectedCell } from '../../../interfaces/view'; import { Route } from '../../../interfaces/router'; import { Operation, OperationGroup } from '../../../interfaces/operation'; import { BcFilter, FilterGroup } from '../../../interfaces/filters'; declare type AdditionalAntdTableProps = Partial, 'rowSelection'>>; interface TableWidgetOwnProps extends AdditionalAntdTableProps { columnTitleComponent?: (options?: { widgetName: string; widgetMeta: WidgetListField; rowMeta: RowMetaField; }) => React.ReactNode; meta: WidgetTableMeta; rowSelection?: TableRowSelection; showRowActions?: boolean; allowEdit?: boolean; paginationMode?: PaginationMode; disablePagination?: boolean; disableDots?: boolean; controlColumns?: Array<{ column: ColumnProps; position: 'left' | 'right'; }>; } export interface TableWidgetProps extends TableWidgetOwnProps { data: DataItem[]; rowMetaFields: RowMetaField[]; limitBySelf: boolean; /** * @deprecated TODO: Remove in 2.0 in favor of `widgetName` */ bcName?: string; widgetName?: string; /** * @deprecated TODO: Remove 2.0 as it is accessible from the store */ route?: Route; cursor: string; selectedCell: ViewSelectedCell; /** * @deprecated TODO: Remove 2.0 as it is never used */ pendingDataItem?: PendingDataItem; hasNext: boolean; operations: Array; metaInProgress: boolean; filters: BcFilter[]; filterGroups: FilterGroup[]; /** * @deprecated TODO: Remove 2.0 as it is never used */ onDrillDown?: (widgetName: string, bcName: string, cursor: string, fieldKey: string) => void; onShowAll: (bcName: string, cursor: string, route: Route, widgetName: string) => void; onOperationClick: (bcName: string, operationType: string, widgetName: string) => void; onSelectRow: (bcName: string, cursor: string) => void; onSelectCell: (cursor: string, widgetName: string, fieldKey: string) => void; onRemoveFilters: (bcName: string) => void; onApplyFilter: (bcName: string, filter: BcFilter) => void; onForceUpdate: (bcName: string) => void; } export declare const TableWidget: FunctionComponent; declare const _default: import("react-redux").ConnectedComponentClass, Pick & TableWidgetOwnProps>; export default _default;