import * as react_jsx_runtime from 'react/jsx-runtime'; import { DataTableProps } from './types.js'; import * as React from 'react'; import { ResponsiveAction } from '../ui/responsive-action-row.js'; import { LeoLoadingConfig } from './leo-loading-row.js'; export { LeoLoadingRow, LeoLoadingRowProps, LeoLoadingRowSpec, LeoLoadingState } from './leo-loading-row.js'; import { useTableState } from './use-table-state.js'; export { DataTableToolbar } from './data-table-toolbar.js'; export { ROW_DRAG_COLUMN, withRowDragColumn } from './row-reorder-handle.js'; import { ConditionalRule } from '../../lib/table-properties-types.js'; import '../../lib/column-cell-kind.js'; import '../../lib/status-badge-tints.js'; import '../../lib/leo-generation.js'; import '../ui/leo-icon.js'; import '../../lib/column-filter-context.js'; import '../../lib/column-filter-person-options.js'; import '../../lib/row-height.js'; interface DataTableExtendedProps> extends DataTableProps { /** Slot for a toolbar drawer button + drawer itself (e.g. TablePropertiesDrawer) */ toolbarSlot?: (state: ReturnType>) => React.ReactNode; /** Record commands rendered after Properties. See `HubTableProps.toolbarActions`. */ toolbarActions?: ResponsiveAction[]; /** Slot rendered inside the floating bulk-action bar (after the count badge) */ bulkActionsSlot?: (selected: Set, rows: TData[]) => React.ReactNode; /** * Opt in to manual row order. Each row gets a grip that drags, moves with * Alt+↑/↓, or opens a Move menu. Called with the full dataset in its new order * (rows hidden by search or filters keep their slots); the caller owns `data`. * The grip is inert while the table is sorted or grouped, because a manual * order would be hidden by the sort. */ onRowsReorder?: (next: TData[], change: { rowId: string | number; from: number; to: number; }) => void; /** Optional "add new row" row text — pass false to hide */ addRowLabel?: string | false; /** Custom option-value renderer for filter pills */ renderFilterOptionValue?: (fieldKey: string, value: string) => React.ReactNode; /** When set by DataTablePaginated — drives row slicing inside useTableState */ paginationOverride?: { page: number; pageSize: number; }; /** When true, removes rounded bottom corners so a pagination bar can attach flush */ hasFooter?: boolean; /** * Chrome rendered under the grid in a sticky foot stack (bulk bar + this node). * Prefer this over a sibling footer so selection actions stick with pagination. */ stickyFooter?: React.ReactNode; /** * When false, table toolbar and grid omit `mx-4 lg:mx-6` / `px-4 lg:px-6` insets. * Use on embedded surfaces where the page shell or content rail already pads horizontally. */ edgeInset?: boolean; /** * When false, hides toolbar search/filter chrome (e.g. catalog API prop matrices). * Grid column resize, sort, and header menus still work. */ showQueryControls?: boolean; /** Conditional formatting rules — apply bg color to cells based on value */ conditionalRules?: ConditionalRule[]; /** When false, the column header row is hidden (Display options). */ showColumnHeaders?: boolean; /** When set, table uses this state (e.g. shared with board view) instead of internal useTableState. */ state?: ReturnType>; /** * Incremental row rendering for very large datasets. Keeps initial paint fast * and appends remaining rows in idle slices while showing a loading hint. */ lazyLoading?: { enabled?: boolean; threshold?: number; chunkSize?: number; intervalMs?: number; loadingLabel?: string; }; /** * Appends Leo loading rows (blob wash + thinking animation) after the data * rows while Leo is generating more. `count` rows, the first carrying `label`. */ leoLoading?: LeoLoadingConfig | boolean; } declare function DataTable>(props: DataTableExtendedProps): react_jsx_runtime.JSX.Element; export { DataTable, type DataTableExtendedProps, LeoLoadingConfig };