/// import type { ClassNamesFn, LocaleProps, ThemeProps } from 'jamis-core'; export interface ColumnProps { title: string | React.ReactNode | Function; name: string; className?: Function; children?: Array; render: Function; fixed?: boolean | string; width?: number | string; sorter?: (a: any, b: any) => number | boolean; sortOrder?: string; filters?: Array; filterMode?: string; filterMultiple?: boolean; filteredValue?: Array; filtered?: boolean; filterDropdown?: Function | React.ReactNode; align?: string; breakpoint?: '*' | 'xs' | 'sm' | 'md' | 'lg'; } export interface ThProps extends ColumnProps { rowSpan: number; colSpan: number; groupId: string; depth: number; } export interface TdProps extends ColumnProps { rowSpan: number; colSpan: number; groupId: string; } export interface RowSelectionOptionProps { key: string; text: string; onSelect: Function; } export interface RowSelectionProps { type: string; rowClick?: boolean; fixed: boolean; selectedRowKeys: Array; keyField?: string; columnWidth?: number; selections?: Array; onChange?: Function; getCheckboxProps: Function; } export interface ExpandableProps { expandedRowKeys?: Array; keyField: string; columnWidth?: number; rowExpandable: Function; defaultExpandedRowKeys?: Array; onExpand?: Function; onExpandedRowsChange?: Function; expandedRowRender?: Function; expandedRowClassName?: Function; expandIcon?: Function; fixed?: boolean; } export interface SummaryProps { colSpan: number; fixed: string | boolean; render: Function | React.ReactNode; } export interface OnRowProps { onRowMouseEnter?: Function; onRowMouseLeave?: Function; onRowClick?: Function; } export interface SortProps { orderBy: string; order: string; } export interface TableCompProps extends ThemeProps, LocaleProps { title: string | React.ReactNode | Function; footer: string | React.ReactNode | Function; className?: string; dataSource: Array; classnames: ClassNamesFn; columns: Array; scroll?: ScrollProps; rowSelection?: RowSelectionProps; onSort?: Function; expandable?: ExpandableProps; bordered?: boolean; size?: string; headSummary?: Function | React.ReactNode | Array>; footSummary?: Function | React.ReactNode | Array>; draggable?: boolean; onDrag?: Function; resizable?: boolean; placeholder?: string | React.ReactNode | Function; loading?: boolean | string | React.ReactNode; sticky?: boolean; onFilter?: Function; childrenColumnName?: string; keyField?: string; indentSize: number; onRow?: OnRowProps; rowClassName?: Function; lineHeight?: string; showHeader?: boolean; onSelect?: Function; onSelectAll?: Function; itemActions?: Function; } export interface ScrollProps { x: number | string | true; y: number | string; } export interface FilterPayload { closeDropdown?: boolean; } export interface FilterDropdownProps { setSelectedKeys?: (keys: Array | string) => void; selectedKeys?: Array | string; confirm: (payload: FilterPayload) => void; clearFilters?: () => void; } export interface HeadCellDropDownProps extends ThemeProps, LocaleProps { filterIcon: Function | React.ReactNode; className: string; layerClassName: string; active: boolean; popOverContainer?: () => Element | Text | null; filterDropdown: (payload: FilterDropdownProps) => JSX.Element | null; selectedKeys?: Array | string; setSelectedKeys?: (keys: Array | string) => void; classnames: ClassNamesFn; classPrefix: string; }