@zvndev/yable-react 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +712 -151
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -7
- package/dist/index.d.ts +52 -7
- package/dist/index.js +710 -152
- package/dist/index.js.map +1 -1
- package/package.json +34 -16
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Table as Table$1, RowData, Cell, Header, Row, TableOptions, ColumnDef, SortDirection, CellContext, ClipboardOptions, CellFlashInfo } from '@zvndev/yable-core';
|
|
1
|
+
import { Table as Table$1, RowData, Cell, Header, Row, TableOptions, Column, ColumnDef, SortDirection, CellContext, ClipboardOptions, CellFlashInfo } from '@zvndev/yable-core';
|
|
2
2
|
export { AccessorFnColumnDef, AccessorKeyColumnDef, AggregationFn, Cell, CellStatus as CellCommitStatus, CellContext, CellFlashEvent, CellPatch, ClipboardOptions, Column, ColumnDef, ColumnDefBase, ColumnFiltersState, ColumnMeta, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, CommitError, CommitErrorCells, CommitRecord, CommitResult, CommitsSlice, DisplayColumnDef, EditingState, ExpandedState, FillHandleState, FilterFn, FormulaEngine, FormulaError, FormulaFunction, FormulaState, GroupColumnDef, Header, HeaderContext, HeaderGroup, KeyboardNavigationAction, KeyboardNavigationCell, KeyboardNavigationDirection, KeyboardNavigationState, OnChangeFn, OnCommitFn, PaginationState, PartialLocale, PivotColumn, PivotConfig, PivotEngine, PivotFieldConfig, PivotRow, PivotState, PivotValueConfig, Row, RowData, RowDragEndEvent, RowDragEvent, RowDragState, RowEditCommitEvent, RowEditEvent, RowPinningState, RowReorderEvent, RowSelectionState, SortDirection, SortingFn, SortingState, Table as TableInstance, TableOptions, TableOptionsResolved, TableState, UndoAction, UndoRedoOptions, UndoRedoState, UndoStack, Updater, VisibilityState, YableLocale, aggregationFns, createColumnHelper, createLocale, createUndoRedoIntegration, en, filterFns, formulaFunctions, functionalUpdate, generatePivotColumnDefs, getDefaultLocale, getInitialPivotState, getPivotRowModel, resetLocale, setDefaultLocale, sortingFns } from '@zvndev/yable-core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
@@ -53,6 +53,14 @@ interface TableProps<TData extends RowData> extends Omit<HTMLAttributes<HTMLDivE
|
|
|
53
53
|
sidebarPanels?: ('columns' | 'filters')[];
|
|
54
54
|
/** Default sidebar panel */
|
|
55
55
|
defaultSidebarPanel?: 'columns' | 'filters';
|
|
56
|
+
/** Render a second header row with per-column floating filters */
|
|
57
|
+
floatingFilters?: boolean;
|
|
58
|
+
/** Virtualize wide tables horizontally when safe to do so */
|
|
59
|
+
columnVirtualization?: boolean;
|
|
60
|
+
/** Additional columns rendered beyond the viewport when column virtualization is enabled */
|
|
61
|
+
columnVirtualizationOverscan?: number;
|
|
62
|
+
/** Accessible label for the grid container. Default: "Data table" */
|
|
63
|
+
ariaLabel?: string;
|
|
56
64
|
}
|
|
57
65
|
/** Status bar panel configuration */
|
|
58
66
|
interface StatusBarPanelConfig {
|
|
@@ -127,6 +135,31 @@ interface UseVirtualizationResult {
|
|
|
127
135
|
*/
|
|
128
136
|
declare function useVirtualization({ containerRef, totalRows, rowHeight, overscan, estimateRowHeight: _estimateRowHeight, pretextHeights, pretextPrefixSums, }: UseVirtualizationOptions): UseVirtualizationResult;
|
|
129
137
|
|
|
138
|
+
interface VirtualColumn<TData extends RowData> {
|
|
139
|
+
column: Column<TData, unknown>;
|
|
140
|
+
index: number;
|
|
141
|
+
start: number;
|
|
142
|
+
size: number;
|
|
143
|
+
}
|
|
144
|
+
interface UseColumnVirtualizationOptions<TData extends RowData> {
|
|
145
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
146
|
+
columns: Column<TData, unknown>[];
|
|
147
|
+
overscan?: number;
|
|
148
|
+
enabled?: boolean;
|
|
149
|
+
}
|
|
150
|
+
interface UseColumnVirtualizationResult<TData extends RowData> {
|
|
151
|
+
virtualColumns: VirtualColumn<TData>[];
|
|
152
|
+
startOffset: number;
|
|
153
|
+
endOffset: number;
|
|
154
|
+
totalWidth: number;
|
|
155
|
+
visibleWidth: number;
|
|
156
|
+
startIndex: number;
|
|
157
|
+
endIndex: number;
|
|
158
|
+
isVirtualized: boolean;
|
|
159
|
+
scrollToIndex: (index: number) => void;
|
|
160
|
+
}
|
|
161
|
+
declare function useColumnVirtualization<TData extends RowData>({ containerRef, columns, overscan, enabled, }: UseColumnVirtualizationOptions<TData>): UseColumnVirtualizationResult<TData>;
|
|
162
|
+
|
|
130
163
|
interface CellMeasurement {
|
|
131
164
|
/** Column ID */
|
|
132
165
|
columnId: string;
|
|
@@ -360,18 +393,19 @@ declare function getRegisteredCellTypes(): readonly string[];
|
|
|
360
393
|
declare const TableProvider: React$1.Provider<Table$1<any> | null>;
|
|
361
394
|
declare function useTableContext<TData extends RowData>(): Table$1<TData>;
|
|
362
395
|
|
|
363
|
-
declare function Table<TData extends RowData>({ table, stickyHeader, striped, bordered, compact, theme, clickableRows, footer, loading, loadingComponent, loadingText, emptyMessage, emptyComponent, emptyIcon, emptyDetail, renderEmpty, renderLoading, children, className, direction, statusBar, statusBarPanels, sidebar, sidebarPanels, defaultSidebarPanel, ...rest }: TableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
396
|
+
declare function Table<TData extends RowData>({ table, stickyHeader, striped, bordered, compact, theme, clickableRows, footer, loading, loadingComponent, loadingText, emptyMessage, emptyComponent, emptyIcon, emptyDetail, renderEmpty, renderLoading, children, className, direction, statusBar, statusBarPanels, sidebar, sidebarPanels, defaultSidebarPanel, floatingFilters, columnVirtualization, columnVirtualizationOverscan, ariaLabel, ...rest }: TableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
364
397
|
|
|
365
398
|
interface TableHeaderProps<TData extends RowData> {
|
|
366
399
|
table: Table$1<TData>;
|
|
400
|
+
floatingFilters?: boolean;
|
|
367
401
|
}
|
|
368
|
-
declare function TableHeader<TData extends RowData>({ table, }: TableHeaderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
402
|
+
declare function TableHeader<TData extends RowData>({ table, floatingFilters, }: TableHeaderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
369
403
|
|
|
370
404
|
interface TableBodyProps<TData extends RowData> {
|
|
371
405
|
table: Table$1<TData>;
|
|
372
406
|
clickableRows?: boolean;
|
|
373
407
|
}
|
|
374
|
-
declare function TableBody<TData extends RowData>({ table, clickableRows
|
|
408
|
+
declare function TableBody<TData extends RowData>({ table, clickableRows }: TableBodyProps<TData>): react_jsx_runtime.JSX.Element;
|
|
375
409
|
|
|
376
410
|
interface TableCellProps<TData extends RowData> {
|
|
377
411
|
cell: Cell<TData, unknown>;
|
|
@@ -386,7 +420,7 @@ declare function TableCell<TData extends RowData>({ cell, table, rowIndex, colum
|
|
|
386
420
|
interface TableFooterProps<TData extends RowData> {
|
|
387
421
|
table: Table$1<TData>;
|
|
388
422
|
}
|
|
389
|
-
declare function TableFooter<TData extends RowData>({ table
|
|
423
|
+
declare function TableFooter<TData extends RowData>({ table }: TableFooterProps<TData>): react_jsx_runtime.JSX.Element | null;
|
|
390
424
|
|
|
391
425
|
interface PaginationProps<TData extends RowData> {
|
|
392
426
|
table: Table$1<TData>;
|
|
@@ -412,6 +446,17 @@ interface GlobalFilterProps<TData extends RowData> {
|
|
|
412
446
|
}
|
|
413
447
|
declare function GlobalFilter<TData extends RowData>({ table, placeholder, debounce, className, }: GlobalFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
414
448
|
|
|
449
|
+
interface FloatingFilterProps<TData extends RowData> {
|
|
450
|
+
column: Column<TData, unknown>;
|
|
451
|
+
}
|
|
452
|
+
declare function FloatingFilter<TData extends RowData>({ column }: FloatingFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
453
|
+
|
|
454
|
+
interface SetFilterProps<TData extends RowData> {
|
|
455
|
+
column: Column<TData, unknown>;
|
|
456
|
+
className?: string;
|
|
457
|
+
}
|
|
458
|
+
declare function SetFilter<TData extends RowData>({ column, className }: SetFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
459
|
+
|
|
415
460
|
interface SortIndicatorProps {
|
|
416
461
|
direction: SortDirection | false;
|
|
417
462
|
index?: number;
|
|
@@ -956,7 +1001,7 @@ interface UsePrintLayoutOptions {
|
|
|
956
1001
|
*/
|
|
957
1002
|
additionalCSS?: string;
|
|
958
1003
|
}
|
|
959
|
-
declare function usePrintLayout<TData extends RowData>(
|
|
1004
|
+
declare function usePrintLayout<TData extends RowData>(_table: Table$1<TData>, options?: UsePrintLayoutOptions): {
|
|
960
1005
|
preparePrint: () => void;
|
|
961
1006
|
isPrinting: boolean;
|
|
962
1007
|
};
|
|
@@ -977,4 +1022,4 @@ declare function useTheme(options?: UseThemeOptions): {
|
|
|
977
1022
|
containerRef: React$1.RefObject<HTMLElement | null>;
|
|
978
1023
|
};
|
|
979
1024
|
|
|
980
|
-
export { type AutoMeasurementsOptions, CellBadge, type CellBadgeProps, CellBoolean, type CellBooleanProps, CellCheckbox, CellCurrency, type CellCurrencyProps, CellDate, CellDatePicker, type CellDateProps, CellErrorBoundary, CellInput, CellLink, type CellLinkProps, type CellMeasureRecipe, type CellMeasurement, CellNumeric, type CellNumericProps, CellProgress, type CellProgressProps, CellRating, type CellRatingProps, CellSelect, CellStatus, CellStatusBadge, type CellStatusBadgeProps, type CellStatusProps, CellToggle, ColumnsPanel, ContextMenu, ContextMenuItem, type ContextMenuItemDef, DEFAULT_TEXT_RECIPE, DragHandle, ErrorBoundary, ExpandIcon, FillHandle, type FillHandleDragState, type FillHandleProps, FiltersPanel, FlashCell, GlobalFilter, LoadingOverlay, type LoadingOverlayProps, MasterDetail, NoRowsOverlay, type NoRowsOverlayProps, Pagination, PivotConfigPanel, type PivotConfigProps, type PivotFieldItem, type PivotValueItem, PrintLayout, Sidebar, SortIndicator, StatusBar, StatusBarPanelComponent, type StatusBarPanelComponentProps, type StatusBarPanelConfig, type StatusBarPanelProps, Table, TableBody, TableCell, type TableCellProps$1 as TableCellProps, TableFooter, TableHeader, type TableHeaderCellProps, type TableProps, TableProvider, type TableRowProps, Tooltip, type TooltipPosition, type TooltipProps, TreeToggle, type UseCellFlashOptions, type UseClipboardOptions, type UseFillHandleOptions, type UseFillHandleReturn, type UseKeyboardNavigationOptions, type UsePretextMeasurementOptions, type UsePretextMeasurementResult, type UsePrintLayoutOptions, type UseRowAnimationOptions, type UseRowDragOptions, type UseRowDragReturn, type UseTableRowHeightsOptions, type UseThemeOptions, type UseTooltipOptions, type UseVirtualizationOptions, type UseVirtualizationResult, type VirtualRow, getMeasureRecipeForCellType, getRegisteredCellTypes, resolveMeasureRecipe, useAutoMeasurements, useCellFlash, useClipboard, useContextMenu, useFillHandle, useKeyboardNavigation, usePretextMeasurement, usePrintLayout, useRowAnimation, useRowDrag, useTable, useTableContext, useTableRowHeights, useTheme, useTooltip, useVirtualization };
|
|
1025
|
+
export { type AutoMeasurementsOptions, CellBadge, type CellBadgeProps, CellBoolean, type CellBooleanProps, CellCheckbox, CellCurrency, type CellCurrencyProps, CellDate, CellDatePicker, type CellDateProps, CellErrorBoundary, CellInput, CellLink, type CellLinkProps, type CellMeasureRecipe, type CellMeasurement, CellNumeric, type CellNumericProps, CellProgress, type CellProgressProps, CellRating, type CellRatingProps, CellSelect, CellStatus, CellStatusBadge, type CellStatusBadgeProps, type CellStatusProps, CellToggle, ColumnsPanel, ContextMenu, ContextMenuItem, type ContextMenuItemDef, DEFAULT_TEXT_RECIPE, DragHandle, ErrorBoundary, ExpandIcon, FillHandle, type FillHandleDragState, type FillHandleProps, FiltersPanel, FlashCell, FloatingFilter, GlobalFilter, LoadingOverlay, type LoadingOverlayProps, MasterDetail, NoRowsOverlay, type NoRowsOverlayProps, Pagination, PivotConfigPanel, type PivotConfigProps, type PivotFieldItem, type PivotValueItem, PrintLayout, SetFilter, Sidebar, SortIndicator, StatusBar, StatusBarPanelComponent, type StatusBarPanelComponentProps, type StatusBarPanelConfig, type StatusBarPanelProps, Table, TableBody, TableCell, type TableCellProps$1 as TableCellProps, TableFooter, TableHeader, type TableHeaderCellProps, type TableProps, TableProvider, type TableRowProps, Tooltip, type TooltipPosition, type TooltipProps, TreeToggle, type UseCellFlashOptions, type UseClipboardOptions, type UseColumnVirtualizationOptions, type UseColumnVirtualizationResult, type UseFillHandleOptions, type UseFillHandleReturn, type UseKeyboardNavigationOptions, type UsePretextMeasurementOptions, type UsePretextMeasurementResult, type UsePrintLayoutOptions, type UseRowAnimationOptions, type UseRowDragOptions, type UseRowDragReturn, type UseTableRowHeightsOptions, type UseThemeOptions, type UseTooltipOptions, type UseVirtualizationOptions, type UseVirtualizationResult, type VirtualColumn, type VirtualRow, getMeasureRecipeForCellType, getRegisteredCellTypes, resolveMeasureRecipe, useAutoMeasurements, useCellFlash, useClipboard, useColumnVirtualization, useContextMenu, useFillHandle, useKeyboardNavigation, usePretextMeasurement, usePrintLayout, useRowAnimation, useRowDrag, useTable, useTableContext, useTableRowHeights, useTheme, useTooltip, useVirtualization };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Table as Table$1, RowData, Cell, Header, Row, TableOptions, ColumnDef, SortDirection, CellContext, ClipboardOptions, CellFlashInfo } from '@zvndev/yable-core';
|
|
1
|
+
import { Table as Table$1, RowData, Cell, Header, Row, TableOptions, Column, ColumnDef, SortDirection, CellContext, ClipboardOptions, CellFlashInfo } from '@zvndev/yable-core';
|
|
2
2
|
export { AccessorFnColumnDef, AccessorKeyColumnDef, AggregationFn, Cell, CellStatus as CellCommitStatus, CellContext, CellFlashEvent, CellPatch, ClipboardOptions, Column, ColumnDef, ColumnDefBase, ColumnFiltersState, ColumnMeta, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, CommitError, CommitErrorCells, CommitRecord, CommitResult, CommitsSlice, DisplayColumnDef, EditingState, ExpandedState, FillHandleState, FilterFn, FormulaEngine, FormulaError, FormulaFunction, FormulaState, GroupColumnDef, Header, HeaderContext, HeaderGroup, KeyboardNavigationAction, KeyboardNavigationCell, KeyboardNavigationDirection, KeyboardNavigationState, OnChangeFn, OnCommitFn, PaginationState, PartialLocale, PivotColumn, PivotConfig, PivotEngine, PivotFieldConfig, PivotRow, PivotState, PivotValueConfig, Row, RowData, RowDragEndEvent, RowDragEvent, RowDragState, RowEditCommitEvent, RowEditEvent, RowPinningState, RowReorderEvent, RowSelectionState, SortDirection, SortingFn, SortingState, Table as TableInstance, TableOptions, TableOptionsResolved, TableState, UndoAction, UndoRedoOptions, UndoRedoState, UndoStack, Updater, VisibilityState, YableLocale, aggregationFns, createColumnHelper, createLocale, createUndoRedoIntegration, en, filterFns, formulaFunctions, functionalUpdate, generatePivotColumnDefs, getDefaultLocale, getInitialPivotState, getPivotRowModel, resetLocale, setDefaultLocale, sortingFns } from '@zvndev/yable-core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
@@ -53,6 +53,14 @@ interface TableProps<TData extends RowData> extends Omit<HTMLAttributes<HTMLDivE
|
|
|
53
53
|
sidebarPanels?: ('columns' | 'filters')[];
|
|
54
54
|
/** Default sidebar panel */
|
|
55
55
|
defaultSidebarPanel?: 'columns' | 'filters';
|
|
56
|
+
/** Render a second header row with per-column floating filters */
|
|
57
|
+
floatingFilters?: boolean;
|
|
58
|
+
/** Virtualize wide tables horizontally when safe to do so */
|
|
59
|
+
columnVirtualization?: boolean;
|
|
60
|
+
/** Additional columns rendered beyond the viewport when column virtualization is enabled */
|
|
61
|
+
columnVirtualizationOverscan?: number;
|
|
62
|
+
/** Accessible label for the grid container. Default: "Data table" */
|
|
63
|
+
ariaLabel?: string;
|
|
56
64
|
}
|
|
57
65
|
/** Status bar panel configuration */
|
|
58
66
|
interface StatusBarPanelConfig {
|
|
@@ -127,6 +135,31 @@ interface UseVirtualizationResult {
|
|
|
127
135
|
*/
|
|
128
136
|
declare function useVirtualization({ containerRef, totalRows, rowHeight, overscan, estimateRowHeight: _estimateRowHeight, pretextHeights, pretextPrefixSums, }: UseVirtualizationOptions): UseVirtualizationResult;
|
|
129
137
|
|
|
138
|
+
interface VirtualColumn<TData extends RowData> {
|
|
139
|
+
column: Column<TData, unknown>;
|
|
140
|
+
index: number;
|
|
141
|
+
start: number;
|
|
142
|
+
size: number;
|
|
143
|
+
}
|
|
144
|
+
interface UseColumnVirtualizationOptions<TData extends RowData> {
|
|
145
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
146
|
+
columns: Column<TData, unknown>[];
|
|
147
|
+
overscan?: number;
|
|
148
|
+
enabled?: boolean;
|
|
149
|
+
}
|
|
150
|
+
interface UseColumnVirtualizationResult<TData extends RowData> {
|
|
151
|
+
virtualColumns: VirtualColumn<TData>[];
|
|
152
|
+
startOffset: number;
|
|
153
|
+
endOffset: number;
|
|
154
|
+
totalWidth: number;
|
|
155
|
+
visibleWidth: number;
|
|
156
|
+
startIndex: number;
|
|
157
|
+
endIndex: number;
|
|
158
|
+
isVirtualized: boolean;
|
|
159
|
+
scrollToIndex: (index: number) => void;
|
|
160
|
+
}
|
|
161
|
+
declare function useColumnVirtualization<TData extends RowData>({ containerRef, columns, overscan, enabled, }: UseColumnVirtualizationOptions<TData>): UseColumnVirtualizationResult<TData>;
|
|
162
|
+
|
|
130
163
|
interface CellMeasurement {
|
|
131
164
|
/** Column ID */
|
|
132
165
|
columnId: string;
|
|
@@ -360,18 +393,19 @@ declare function getRegisteredCellTypes(): readonly string[];
|
|
|
360
393
|
declare const TableProvider: React$1.Provider<Table$1<any> | null>;
|
|
361
394
|
declare function useTableContext<TData extends RowData>(): Table$1<TData>;
|
|
362
395
|
|
|
363
|
-
declare function Table<TData extends RowData>({ table, stickyHeader, striped, bordered, compact, theme, clickableRows, footer, loading, loadingComponent, loadingText, emptyMessage, emptyComponent, emptyIcon, emptyDetail, renderEmpty, renderLoading, children, className, direction, statusBar, statusBarPanels, sidebar, sidebarPanels, defaultSidebarPanel, ...rest }: TableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
396
|
+
declare function Table<TData extends RowData>({ table, stickyHeader, striped, bordered, compact, theme, clickableRows, footer, loading, loadingComponent, loadingText, emptyMessage, emptyComponent, emptyIcon, emptyDetail, renderEmpty, renderLoading, children, className, direction, statusBar, statusBarPanels, sidebar, sidebarPanels, defaultSidebarPanel, floatingFilters, columnVirtualization, columnVirtualizationOverscan, ariaLabel, ...rest }: TableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
364
397
|
|
|
365
398
|
interface TableHeaderProps<TData extends RowData> {
|
|
366
399
|
table: Table$1<TData>;
|
|
400
|
+
floatingFilters?: boolean;
|
|
367
401
|
}
|
|
368
|
-
declare function TableHeader<TData extends RowData>({ table, }: TableHeaderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
402
|
+
declare function TableHeader<TData extends RowData>({ table, floatingFilters, }: TableHeaderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
369
403
|
|
|
370
404
|
interface TableBodyProps<TData extends RowData> {
|
|
371
405
|
table: Table$1<TData>;
|
|
372
406
|
clickableRows?: boolean;
|
|
373
407
|
}
|
|
374
|
-
declare function TableBody<TData extends RowData>({ table, clickableRows
|
|
408
|
+
declare function TableBody<TData extends RowData>({ table, clickableRows }: TableBodyProps<TData>): react_jsx_runtime.JSX.Element;
|
|
375
409
|
|
|
376
410
|
interface TableCellProps<TData extends RowData> {
|
|
377
411
|
cell: Cell<TData, unknown>;
|
|
@@ -386,7 +420,7 @@ declare function TableCell<TData extends RowData>({ cell, table, rowIndex, colum
|
|
|
386
420
|
interface TableFooterProps<TData extends RowData> {
|
|
387
421
|
table: Table$1<TData>;
|
|
388
422
|
}
|
|
389
|
-
declare function TableFooter<TData extends RowData>({ table
|
|
423
|
+
declare function TableFooter<TData extends RowData>({ table }: TableFooterProps<TData>): react_jsx_runtime.JSX.Element | null;
|
|
390
424
|
|
|
391
425
|
interface PaginationProps<TData extends RowData> {
|
|
392
426
|
table: Table$1<TData>;
|
|
@@ -412,6 +446,17 @@ interface GlobalFilterProps<TData extends RowData> {
|
|
|
412
446
|
}
|
|
413
447
|
declare function GlobalFilter<TData extends RowData>({ table, placeholder, debounce, className, }: GlobalFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
414
448
|
|
|
449
|
+
interface FloatingFilterProps<TData extends RowData> {
|
|
450
|
+
column: Column<TData, unknown>;
|
|
451
|
+
}
|
|
452
|
+
declare function FloatingFilter<TData extends RowData>({ column }: FloatingFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
453
|
+
|
|
454
|
+
interface SetFilterProps<TData extends RowData> {
|
|
455
|
+
column: Column<TData, unknown>;
|
|
456
|
+
className?: string;
|
|
457
|
+
}
|
|
458
|
+
declare function SetFilter<TData extends RowData>({ column, className }: SetFilterProps<TData>): react_jsx_runtime.JSX.Element;
|
|
459
|
+
|
|
415
460
|
interface SortIndicatorProps {
|
|
416
461
|
direction: SortDirection | false;
|
|
417
462
|
index?: number;
|
|
@@ -956,7 +1001,7 @@ interface UsePrintLayoutOptions {
|
|
|
956
1001
|
*/
|
|
957
1002
|
additionalCSS?: string;
|
|
958
1003
|
}
|
|
959
|
-
declare function usePrintLayout<TData extends RowData>(
|
|
1004
|
+
declare function usePrintLayout<TData extends RowData>(_table: Table$1<TData>, options?: UsePrintLayoutOptions): {
|
|
960
1005
|
preparePrint: () => void;
|
|
961
1006
|
isPrinting: boolean;
|
|
962
1007
|
};
|
|
@@ -977,4 +1022,4 @@ declare function useTheme(options?: UseThemeOptions): {
|
|
|
977
1022
|
containerRef: React$1.RefObject<HTMLElement | null>;
|
|
978
1023
|
};
|
|
979
1024
|
|
|
980
|
-
export { type AutoMeasurementsOptions, CellBadge, type CellBadgeProps, CellBoolean, type CellBooleanProps, CellCheckbox, CellCurrency, type CellCurrencyProps, CellDate, CellDatePicker, type CellDateProps, CellErrorBoundary, CellInput, CellLink, type CellLinkProps, type CellMeasureRecipe, type CellMeasurement, CellNumeric, type CellNumericProps, CellProgress, type CellProgressProps, CellRating, type CellRatingProps, CellSelect, CellStatus, CellStatusBadge, type CellStatusBadgeProps, type CellStatusProps, CellToggle, ColumnsPanel, ContextMenu, ContextMenuItem, type ContextMenuItemDef, DEFAULT_TEXT_RECIPE, DragHandle, ErrorBoundary, ExpandIcon, FillHandle, type FillHandleDragState, type FillHandleProps, FiltersPanel, FlashCell, GlobalFilter, LoadingOverlay, type LoadingOverlayProps, MasterDetail, NoRowsOverlay, type NoRowsOverlayProps, Pagination, PivotConfigPanel, type PivotConfigProps, type PivotFieldItem, type PivotValueItem, PrintLayout, Sidebar, SortIndicator, StatusBar, StatusBarPanelComponent, type StatusBarPanelComponentProps, type StatusBarPanelConfig, type StatusBarPanelProps, Table, TableBody, TableCell, type TableCellProps$1 as TableCellProps, TableFooter, TableHeader, type TableHeaderCellProps, type TableProps, TableProvider, type TableRowProps, Tooltip, type TooltipPosition, type TooltipProps, TreeToggle, type UseCellFlashOptions, type UseClipboardOptions, type UseFillHandleOptions, type UseFillHandleReturn, type UseKeyboardNavigationOptions, type UsePretextMeasurementOptions, type UsePretextMeasurementResult, type UsePrintLayoutOptions, type UseRowAnimationOptions, type UseRowDragOptions, type UseRowDragReturn, type UseTableRowHeightsOptions, type UseThemeOptions, type UseTooltipOptions, type UseVirtualizationOptions, type UseVirtualizationResult, type VirtualRow, getMeasureRecipeForCellType, getRegisteredCellTypes, resolveMeasureRecipe, useAutoMeasurements, useCellFlash, useClipboard, useContextMenu, useFillHandle, useKeyboardNavigation, usePretextMeasurement, usePrintLayout, useRowAnimation, useRowDrag, useTable, useTableContext, useTableRowHeights, useTheme, useTooltip, useVirtualization };
|
|
1025
|
+
export { type AutoMeasurementsOptions, CellBadge, type CellBadgeProps, CellBoolean, type CellBooleanProps, CellCheckbox, CellCurrency, type CellCurrencyProps, CellDate, CellDatePicker, type CellDateProps, CellErrorBoundary, CellInput, CellLink, type CellLinkProps, type CellMeasureRecipe, type CellMeasurement, CellNumeric, type CellNumericProps, CellProgress, type CellProgressProps, CellRating, type CellRatingProps, CellSelect, CellStatus, CellStatusBadge, type CellStatusBadgeProps, type CellStatusProps, CellToggle, ColumnsPanel, ContextMenu, ContextMenuItem, type ContextMenuItemDef, DEFAULT_TEXT_RECIPE, DragHandle, ErrorBoundary, ExpandIcon, FillHandle, type FillHandleDragState, type FillHandleProps, FiltersPanel, FlashCell, FloatingFilter, GlobalFilter, LoadingOverlay, type LoadingOverlayProps, MasterDetail, NoRowsOverlay, type NoRowsOverlayProps, Pagination, PivotConfigPanel, type PivotConfigProps, type PivotFieldItem, type PivotValueItem, PrintLayout, SetFilter, Sidebar, SortIndicator, StatusBar, StatusBarPanelComponent, type StatusBarPanelComponentProps, type StatusBarPanelConfig, type StatusBarPanelProps, Table, TableBody, TableCell, type TableCellProps$1 as TableCellProps, TableFooter, TableHeader, type TableHeaderCellProps, type TableProps, TableProvider, type TableRowProps, Tooltip, type TooltipPosition, type TooltipProps, TreeToggle, type UseCellFlashOptions, type UseClipboardOptions, type UseColumnVirtualizationOptions, type UseColumnVirtualizationResult, type UseFillHandleOptions, type UseFillHandleReturn, type UseKeyboardNavigationOptions, type UsePretextMeasurementOptions, type UsePretextMeasurementResult, type UsePrintLayoutOptions, type UseRowAnimationOptions, type UseRowDragOptions, type UseRowDragReturn, type UseTableRowHeightsOptions, type UseThemeOptions, type UseTooltipOptions, type UseVirtualizationOptions, type UseVirtualizationResult, type VirtualColumn, type VirtualRow, getMeasureRecipeForCellType, getRegisteredCellTypes, resolveMeasureRecipe, useAutoMeasurements, useCellFlash, useClipboard, useColumnVirtualization, useContextMenu, useFillHandle, useKeyboardNavigation, usePretextMeasurement, usePrintLayout, useRowAnimation, useRowDrag, useTable, useTableContext, useTableRowHeights, useTheme, useTooltip, useVirtualization };
|