import { t as PivotPanel } from "./PivotPanel-DqLEzB1K.js"; import { BatchEditBarProps, ChecklistFilterProps, ColumnGroupToggleProps, DataModeProps, DataModeProps as DataModeProps$1, FillHandleChromeProps, FilterHeaderControlProps, FilterHeaderRowProps, FilterTreeBuilderProps, FindBarProps, GroupMoreButtonProps, RowEditActionsProps, RowReorderButtonsProps, RowReorderHandleProps, SavedViewsPanelChromeProps, SelectionStatsChromeProps, TreeCellProps, TreeToggleProps, deriveSortByOptions } from "@adapttable/core/adapter"; import { ActionConfirm, ActiveFilterChip, BaseDataTableProps, BaseDataTableProps as BaseDataTableProps$1, BulkAction, BulkActionContext, CellEditor, CellProps, ChipLabelResolver, ColorScheme, ColumnDef, ColumnFilter, ColumnGroupDef, ColumnGroupShow, ColumnInput, ColumnLayoutState, ConfirmHandler, ConfirmRequest, CustomCellEditorCtrl, CustomCellEditorRender, Direction, EditConflict, EditConflictChoice, EditConflictHandler, EditConflictPolicy, EditConflictState, EditEvent, EditEventHandler, EditLifecycle, EditUnit, ExportCsvOptions, ExtraFilters, FILTER_TYPES, FilterDef, FilterOption, FilterType, FilterTypeRegistry, FilterTypeSpec, FilterValue, InfiniteQueryLike, PageSelector, PaginatedResponse, PaginationMode, RowAction, SavedView, Slot, SortByOption, SortDirection, SortableValue, TableErrorState, TableLabels, TableLabels as TableLabels$1, TableQuery, TableSource, TableSource as TableSource$1, UrlStateAdapter, UrlStateAdapter as UrlStateAdapter$1, UseDataTableResult, UseFrontendDataOptions, UseQuerySourceOptions, UseSavedViewsOptions, UseSavedViewsOptions as UseSavedViewsOptions$1, UseSavedViewsResult, UseServerDataOptions, UseTableDataOptions, UseTableUrlStateOptions, UseTableUrlStateResult, createFilterRegistry, createHistoryAdapter, createMemoryAdapter, defaultConfirm, defaultFilterRegistry, defaultLabels, getHistoryAdapter, resolveFilterRegistry, useDataTable, useFrontendData, useQuerySource, useSavedViews, useTableUrlState } from "@adapttable/core"; import { ReactNode } from "react"; //#region src/components/ChecklistFilter.d.ts /** MUI checklist — wrapping kit checkboxes, not one value per row. */ declare function ChecklistFilter(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/components/FillHandle.d.ts /** MUI-owned fill handle; core only decides which cell receives it. */ declare function FillHandle(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/components/FilterTreeBuilder.d.ts /** MUI AND/OR builder — compact kit Select / TextField / Button, no stacked labels. */ declare function FilterTreeBuilder(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/components/kitControls.d.ts declare function FilterHeaderRow(props: Readonly>): import("react").JSX.Element; declare function FilterHeaderControl(props: Readonly>): import("react").JSX.Element; declare function FindBar(props: Readonly): import("react").JSX.Element; declare function RowEditActions(props: Readonly>): import("react").JSX.Element; declare function BatchEditBar(props: Readonly>): import("react").JSX.Element; declare function TreeToggle(props: Readonly>): import("react").JSX.Element; declare function TreeCell(props: Readonly>): import("react").JSX.Element; declare function ColumnGroupToggle(props: Readonly): import("react").JSX.Element; declare function GroupMoreButton(props: Readonly): import("react").JSX.Element; declare function RowReorderHandle(props: Readonly>): import("react").JSX.Element; declare function RowReorderButtons(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/components/SavedViewsMenu.d.ts /** The label strings the saved-views menu renders. */ type SavedViewsLabels = Pick, "savedViews" | "saveView" | "viewName" | "deleteView">; /** Props for the saved-views menu. */ interface SavedViewsMenuProps { /** Storage + URL backend wiring, forwarded to core's `useSavedViews`. */ options: UseSavedViewsOptions$1; /** Resolved table labels (trigger, save row, delete action). */ labels: SavedViewsLabels; } /** * MUI saved-views menu: a toolbar button opening a popover that lists the * saved views — click applies one and closes, the trailing × deletes it — * above a save row that captures the table's CURRENT URL state (search, * sort, page, filters, column layout) under a typed name. */ declare function SavedViewsMenu({ options, labels }: Readonly): import("react").JSX.Element; //#endregion //#region src/components/SavedViewsPanel.d.ts /** Manage saved views: apply, rename, reorder, default, delete. */ declare function SavedViewsPanel(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/components/SelectionStatsBar.d.ts /** MUI-owned status bar for the headless selection statistics. */ declare function SelectionStatsBar(props: Readonly>): import("react").JSX.Element; //#endregion //#region src/types.d.ts /** Overridable sub-components. */ interface DataTableSlots { /** Replace the loading skeleton. */ skeleton?: ReactNode; /** Replace the empty-state. */ empty?: ReactNode; /** * Replace the empty-state shown when a search or filter matched nothing. * * Falls back to `empty` when unset, so passing only `empty` keeps covering * both states. Set this when the filtered case needs its own message — the * built-in one carries a working "clear all filters" action that a custom * `empty` would otherwise replace in both situations. */ noResults?: ReactNode; /** * Replace the load-failure state. * * Unlike the other slots this one also takes a function, because an error * state is about something: the function receives the error being reported * and the retry the source can actually perform, so a replacement can offer * both. Pass a plain node when the message is fixed. */ error?: Slot; } /** Props for the Material UI ``. */ /** * Structural class hooks for the MUI adapter. Fine-grained per-part * styling belongs to `@adapttable/unstyled` / `@adapttable/shadcn`; here * the kit owns the visuals and these hooks target the wrapper elements. */ interface DataTableClassNames { /** The root `` (also reachable via `className`). */ root?: string; /** The toolbar row (search, filters, export, menus). */ toolbar?: string; /** The desktop table region. */ table?: string; /** One mobile card (merged with `rowClassName`). */ card?: string; /** The pagination footer region. */ footer?: string; } interface DataTablePropsBase extends Omit, "source"> { /** * Full-control data tier: a prebuilt source (`useFrontendData` / * `useQuerySource`). Omit it and pass `data` instead for the zero-ceremony * tiers below. */ source?: TableSource$1; /** * Frontend tier: the raw rows — the table filters/sorts/pages them. * With `onQueryChange` it becomes the server tier: the current page of * rows, exactly as the server returned them. */ data?: readonly TRow[]; /** Server tier: total row count across all pages (drives the pager). */ total?: number; /** Server tier: request in flight. */ loading?: boolean; /** Forwarded error to display in the table's error state. */ error?: Error | null; /** * URL-state backend for the built-in tiers. Defaults to the browser * History API; supply a router adapter (react-router / Next.js) — or a * memory adapter in tests — to integrate with an existing stack. */ urlAdapter?: UrlStateAdapter$1; /** * Sync table state (search, sort, page, filters) to the URL. `false` * keeps everything in memory — the table works identically, the address * bar never changes, and any `urlAdapter` is ignored. * * @default true */ urlSync?: boolean; /** * Namespace for this table's URL params (`left.q`, `left.f_status`, …) so * multiple tables can share one URL without colliding. */ urlKey?: string; /** * Mount a saved-views menu in the toolbar: name and capture the table's * current URL state (search, sort, page, filters, column layout), then * re-apply it on demand. `adapter`/`urlKey` default to the table's own * `urlAdapter`/`urlKey`, so usually only `storageKey` is needed. */ savedViews?: UseSavedViewsOptions$1; /** Replace sub-components (skeleton, empty-state). */ slots?: DataTableSlots; /** Class name applied to the root ``. */ className?: string; /** Per-part class hooks for the structural elements. */ classNames?: DataTableClassNames; /** * Explicit MUI table size override. When omitted, the size is derived from * `density`: `"comfortable"` → `"medium"`, `"compact"` → `"small"`. * * @deprecated Use `density` instead. Removed at v3. */ size?: "small" | "medium"; /** * Animate rows/cards on mount (dependency-free; honors reduced motion). * Off by default. */ animate?: boolean; } /** * Props for the MUI ``: the base surface intersected * with core's data-mode union, so `mode="server"` requires * `onQueryChange` at compile time and `mode="frontend"` turns it into a * pure notification. */ type DataTableProps = DataTablePropsBase & DataModeProps$1; //#endregion //#region src/DataTable.d.ts /** * Batteries-included Material UI data table. Drop in `columns`, `data` (or * `data` + `onQueryChange` for server fetching, or a full `source`), and a * `rowKey` for a fully styled, sortable, filterable, paginated MUI table * with selection, bulk actions, RTL, and dark mode — a free DataGrid-style * experience on the headless `@adapttable/core` engine. Declarative * `filters` (and column `filter` shorthands) render an auto-built form. * * @typeParam TRow - The row type. */ declare function DataTable(incoming: Readonly>): import("react").JSX.Element; //#endregion export { type ActionConfirm, type ActiveFilterChip, type BaseDataTableProps, BatchEditBar, type BatchEditBarProps, type BulkAction, type BulkActionContext, type CellEditor, type CellProps, ChecklistFilter, type ChecklistFilterProps, type ChipLabelResolver, type ColorScheme, type ColumnDef, type ColumnFilter, type ColumnGroupDef, type ColumnGroupShow, ColumnGroupToggle, type ColumnGroupToggleProps, type ColumnInput, type ColumnLayoutState, type ConfirmHandler, type ConfirmRequest, type CustomCellEditorCtrl, type CustomCellEditorRender, type DataModeProps, DataTable, type DataTableClassNames, type DataTableProps, type DataTableSlots, type Direction, type EditConflict, type EditConflictChoice, type EditConflictHandler, type EditConflictPolicy, type EditConflictState, type EditEvent, type EditEventHandler, type EditLifecycle, type EditUnit, type ExportCsvOptions, type ExtraFilters, FILTER_TYPES, FillHandle, type FilterDef, FilterHeaderControl, type FilterHeaderControlProps, FilterHeaderRow, type FilterHeaderRowProps, type FilterOption, FilterTreeBuilder, type FilterTreeBuilderProps, type FilterType, type FilterTypeRegistry, type FilterTypeSpec, type FilterValue, FindBar, type FindBarProps, GroupMoreButton, type GroupMoreButtonProps, type InfiniteQueryLike, type PageSelector, type PaginatedResponse, type PaginationMode, PivotPanel, type RowAction, RowEditActions, type RowEditActionsProps, RowReorderButtons, type RowReorderButtonsProps, RowReorderHandle, type RowReorderHandleProps, type SavedView, type SavedViewsLabels, SavedViewsMenu, type SavedViewsMenuProps, SavedViewsPanel, SelectionStatsBar, type SortByOption, type SortDirection, type SortableValue, type TableLabels, type TableQuery, type TableSource, TreeCell, type TreeCellProps, TreeToggle, type TreeToggleProps, type UrlStateAdapter, type UseDataTableResult, type UseFrontendDataOptions, type UseQuerySourceOptions, type UseSavedViewsOptions, type UseSavedViewsResult, type UseServerDataOptions, type UseTableDataOptions, type UseTableUrlStateOptions, type UseTableUrlStateResult, createFilterRegistry, createHistoryAdapter, createMemoryAdapter, defaultConfirm, defaultFilterRegistry, defaultLabels, deriveSortByOptions, getHistoryAdapter, resolveFilterRegistry, useDataTable, useFrontendData, useQuerySource, useSavedViews, useTableUrlState }; //# sourceMappingURL=index.d.ts.map