@tanstack/table-core 9.0.0-alpha.42 → 9.0.0-alpha.46
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/dist/core/cells/constructCell.cjs +5 -0
- package/dist/core/cells/constructCell.cjs.map +1 -1
- package/dist/core/cells/constructCell.d.cts +5 -0
- package/dist/core/cells/constructCell.d.ts +5 -0
- package/dist/core/cells/constructCell.js +5 -0
- package/dist/core/cells/constructCell.js.map +1 -1
- package/dist/core/cells/coreCellsFeature.cjs +5 -0
- package/dist/core/cells/coreCellsFeature.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.d.cts +5 -0
- package/dist/core/cells/coreCellsFeature.d.ts +5 -0
- package/dist/core/cells/coreCellsFeature.js +5 -0
- package/dist/core/cells/coreCellsFeature.js.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.cjs +30 -0
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.d.cts +30 -0
- package/dist/core/cells/coreCellsFeature.utils.d.ts +30 -0
- package/dist/core/cells/coreCellsFeature.utils.js +30 -0
- package/dist/core/cells/coreCellsFeature.utils.js.map +1 -1
- package/dist/core/columns/constructColumn.cjs +16 -9
- package/dist/core/columns/constructColumn.cjs.map +1 -1
- package/dist/core/columns/constructColumn.d.cts +5 -0
- package/dist/core/columns/constructColumn.d.ts +5 -0
- package/dist/core/columns/constructColumn.js +16 -9
- package/dist/core/columns/constructColumn.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.cjs +9 -0
- package/dist/core/columns/coreColumnsFeature.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.d.cts +5 -0
- package/dist/core/columns/coreColumnsFeature.d.ts +5 -0
- package/dist/core/columns/coreColumnsFeature.js +10 -1
- package/dist/core/columns/coreColumnsFeature.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.types.d.cts +4 -0
- package/dist/core/columns/coreColumnsFeature.types.d.ts +4 -0
- package/dist/core/columns/coreColumnsFeature.utils.cjs +99 -4
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +92 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +92 -1
- package/dist/core/columns/coreColumnsFeature.utils.js +99 -5
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
- package/dist/core/coreFeatures.cjs +5 -0
- package/dist/core/coreFeatures.cjs.map +1 -1
- package/dist/core/coreFeatures.d.cts +5 -0
- package/dist/core/coreFeatures.d.ts +5 -0
- package/dist/core/coreFeatures.js +5 -0
- package/dist/core/coreFeatures.js.map +1 -1
- package/dist/core/headers/buildHeaderGroups.cjs +6 -1
- package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
- package/dist/core/headers/buildHeaderGroups.d.cts +5 -0
- package/dist/core/headers/buildHeaderGroups.d.ts +5 -0
- package/dist/core/headers/buildHeaderGroups.js +6 -1
- package/dist/core/headers/buildHeaderGroups.js.map +1 -1
- package/dist/core/headers/constructHeader.cjs +5 -0
- package/dist/core/headers/constructHeader.cjs.map +1 -1
- package/dist/core/headers/constructHeader.d.cts +5 -0
- package/dist/core/headers/constructHeader.d.ts +5 -0
- package/dist/core/headers/constructHeader.js +5 -0
- package/dist/core/headers/constructHeader.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.cjs +5 -0
- package/dist/core/headers/coreHeadersFeature.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.d.cts +5 -0
- package/dist/core/headers/coreHeadersFeature.d.ts +5 -0
- package/dist/core/headers/coreHeadersFeature.js +5 -0
- package/dist/core/headers/coreHeadersFeature.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.cjs +71 -2
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +60 -0
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +60 -0
- package/dist/core/headers/coreHeadersFeature.utils.js +72 -3
- package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -1
- package/dist/core/reactivity/coreReactivityFeature.types.d.cts +1 -0
- package/dist/core/reactivity/coreReactivityFeature.types.d.ts +1 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs +5 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs.map +1 -1
- package/dist/core/reactivity/coreReactivityFeature.utils.d.cts +10 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.d.ts +10 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.js +5 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.js.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.cjs +5 -0
- package/dist/core/row-models/coreRowModelsFeature.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.d.cts +5 -0
- package/dist/core/row-models/coreRowModelsFeature.d.ts +5 -0
- package/dist/core/row-models/coreRowModelsFeature.js +5 -0
- package/dist/core/row-models/coreRowModelsFeature.js.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.types.d.cts +2 -1
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +2 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -1
- package/dist/core/row-models/createCoreRowModel.cjs +5 -0
- package/dist/core/row-models/createCoreRowModel.cjs.map +1 -1
- package/dist/core/row-models/createCoreRowModel.d.cts +5 -0
- package/dist/core/row-models/createCoreRowModel.d.ts +5 -0
- package/dist/core/row-models/createCoreRowModel.js +5 -0
- package/dist/core/row-models/createCoreRowModel.js.map +1 -1
- package/dist/core/rows/constructRow.cjs +5 -0
- package/dist/core/rows/constructRow.cjs.map +1 -1
- package/dist/core/rows/constructRow.d.cts +5 -0
- package/dist/core/rows/constructRow.d.ts +5 -0
- package/dist/core/rows/constructRow.js +5 -0
- package/dist/core/rows/constructRow.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.cjs +5 -0
- package/dist/core/rows/coreRowsFeature.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.d.cts +5 -0
- package/dist/core/rows/coreRowsFeature.d.ts +5 -0
- package/dist/core/rows/coreRowsFeature.js +5 -0
- package/dist/core/rows/coreRowsFeature.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.types.d.cts +3 -0
- package/dist/core/rows/coreRowsFeature.types.d.ts +3 -0
- package/dist/core/rows/coreRowsFeature.utils.cjs +104 -4
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +101 -0
- package/dist/core/rows/coreRowsFeature.utils.d.ts +101 -0
- package/dist/core/rows/coreRowsFeature.utils.js +104 -4
- package/dist/core/rows/coreRowsFeature.utils.js.map +1 -1
- package/dist/core/table/constructTable.cjs +34 -19
- package/dist/core/table/constructTable.cjs.map +1 -1
- package/dist/core/table/constructTable.d.cts +10 -0
- package/dist/core/table/constructTable.d.ts +10 -0
- package/dist/core/table/constructTable.js +34 -19
- package/dist/core/table/constructTable.js.map +1 -1
- package/dist/core/table/coreTablesFeature.cjs +5 -0
- package/dist/core/table/coreTablesFeature.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.d.cts +5 -0
- package/dist/core/table/coreTablesFeature.d.ts +5 -0
- package/dist/core/table/coreTablesFeature.js +5 -0
- package/dist/core/table/coreTablesFeature.js.map +1 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +23 -10
- package/dist/core/table/coreTablesFeature.types.d.ts +23 -10
- package/dist/core/table/coreTablesFeature.utils.cjs +60 -1
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +46 -1
- package/dist/core/table/coreTablesFeature.utils.d.ts +46 -1
- package/dist/core/table/coreTablesFeature.utils.js +60 -2
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.cjs +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.d.cts +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.d.ts +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.js +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +12 -6
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +12 -6
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.cjs +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.js +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.js.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.cjs +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.d.cts +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.d.ts +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.js +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +7 -4
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +7 -4
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +113 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +111 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +111 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +113 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.cjs +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.d.cts +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.d.ts +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.js +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.js.map +1 -1
- package/dist/features/column-filtering/filterRowsUtils.cjs +5 -0
- package/dist/features/column-filtering/filterRowsUtils.cjs.map +1 -1
- package/dist/features/column-filtering/filterRowsUtils.js +5 -0
- package/dist/features/column-filtering/filterRowsUtils.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.cjs +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.d.cts +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.d.ts +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.js +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +7 -3
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +7 -3
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -1
- package/dist/features/column-grouping/createGroupedRowModel.cjs +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.cjs.map +1 -1
- package/dist/features/column-grouping/createGroupedRowModel.d.cts +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.d.ts +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.js +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.cjs +12 -3
- package/dist/features/column-ordering/columnOrderingFeature.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.d.cts +9 -1
- package/dist/features/column-ordering/columnOrderingFeature.d.ts +9 -1
- package/dist/features/column-ordering/columnOrderingFeature.js +12 -3
- package/dist/features/column-ordering/columnOrderingFeature.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +4 -2
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +4 -2
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +98 -8
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +81 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +81 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +98 -8
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.cjs +17 -30
- package/dist/features/column-pinning/columnPinningFeature.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.d.cts +9 -1
- package/dist/features/column-pinning/columnPinningFeature.d.ts +9 -1
- package/dist/features/column-pinning/columnPinningFeature.js +17 -30
- package/dist/features/column-pinning/columnPinningFeature.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +6 -2
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +6 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +360 -17
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +314 -3
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +314 -3
- package/dist/features/column-pinning/columnPinningFeature.utils.js +361 -18
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.cjs +9 -2
- package/dist/features/column-resizing/columnResizingFeature.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.d.cts +9 -2
- package/dist/features/column-resizing/columnResizingFeature.d.ts +9 -2
- package/dist/features/column-resizing/columnResizingFeature.js +9 -2
- package/dist/features/column-resizing/columnResizingFeature.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +14 -6
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +14 -6
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.cjs +50 -12
- package/dist/features/column-sizing/columnSizingFeature.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.d.cts +10 -2
- package/dist/features/column-sizing/columnSizingFeature.d.ts +10 -2
- package/dist/features/column-sizing/columnSizingFeature.js +51 -13
- package/dist/features/column-sizing/columnSizingFeature.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +6 -3
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +6 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +151 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +141 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +141 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.js +151 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +26 -25
- package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.d.cts +9 -1
- package/dist/features/column-visibility/columnVisibilityFeature.d.ts +9 -1
- package/dist/features/column-visibility/columnVisibilityFeature.js +27 -26
- package/dist/features/column-visibility/columnVisibilityFeature.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +4 -3
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +4 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +172 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +143 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +143 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +173 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.cjs +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.d.cts +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.d.ts +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.js +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +4 -2
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +4 -2
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
- package/dist/features/row-expanding/createExpandedRowModel.cjs +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.cjs.map +1 -1
- package/dist/features/row-expanding/createExpandedRowModel.d.cts +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.d.ts +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.js +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.cjs +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.d.cts +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.d.ts +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.js +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +10 -5
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +10 -5
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -1
- package/dist/features/row-pagination/createPaginatedRowModel.cjs +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.cjs.map +1 -1
- package/dist/features/row-pagination/createPaginatedRowModel.d.cts +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.d.ts +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.cjs +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.d.cts +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.d.ts +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.js +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +11 -7
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +11 -7
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.cjs +9 -1
- package/dist/features/row-pinning/rowPinningFeature.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.d.cts +9 -1
- package/dist/features/row-pinning/rowPinningFeature.d.ts +9 -1
- package/dist/features/row-pinning/rowPinningFeature.js +9 -1
- package/dist/features/row-pinning/rowPinningFeature.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +4 -2
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +4 -2
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.cjs +9 -1
- package/dist/features/row-selection/rowSelectionFeature.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.d.cts +9 -1
- package/dist/features/row-selection/rowSelectionFeature.d.ts +9 -1
- package/dist/features/row-selection/rowSelectionFeature.js +9 -1
- package/dist/features/row-selection/rowSelectionFeature.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +4 -2
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +4 -2
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.cjs +5 -0
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.d.cts +5 -0
- package/dist/features/row-sorting/createSortedRowModel.d.ts +5 -0
- package/dist/features/row-sorting/createSortedRowModel.js +5 -0
- package/dist/features/row-sorting/createSortedRowModel.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.cjs +11 -3
- package/dist/features/row-sorting/rowSortingFeature.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.d.cts +9 -1
- package/dist/features/row-sorting/rowSortingFeature.d.ts +9 -1
- package/dist/features/row-sorting/rowSortingFeature.js +11 -3
- package/dist/features/row-sorting/rowSortingFeature.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +7 -3
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +7 -3
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -1
- package/dist/features/stockFeatures.cjs +5 -0
- package/dist/features/stockFeatures.cjs.map +1 -1
- package/dist/features/stockFeatures.d.cts +5 -0
- package/dist/features/stockFeatures.d.ts +5 -0
- package/dist/features/stockFeatures.js +5 -0
- package/dist/features/stockFeatures.js.map +1 -1
- package/dist/flex-render.cjs +10 -0
- package/dist/flex-render.cjs.map +1 -1
- package/dist/flex-render.d.cts +10 -0
- package/dist/flex-render.d.ts +10 -0
- package/dist/flex-render.js +10 -0
- package/dist/flex-render.js.map +1 -1
- package/dist/fns/aggregationFns.cjs +5 -0
- package/dist/fns/aggregationFns.cjs.map +1 -1
- package/dist/fns/aggregationFns.d.cts +5 -0
- package/dist/fns/aggregationFns.d.ts +5 -0
- package/dist/fns/aggregationFns.js +5 -0
- package/dist/fns/aggregationFns.js.map +1 -1
- package/dist/fns/filterFns.cjs +5 -0
- package/dist/fns/filterFns.cjs.map +1 -1
- package/dist/fns/filterFns.d.cts +5 -0
- package/dist/fns/filterFns.d.ts +5 -0
- package/dist/fns/filterFns.js +5 -0
- package/dist/fns/filterFns.js.map +1 -1
- package/dist/fns/sortFns.cjs +49 -4
- package/dist/fns/sortFns.cjs.map +1 -1
- package/dist/fns/sortFns.d.cts +41 -0
- package/dist/fns/sortFns.d.ts +41 -0
- package/dist/fns/sortFns.js +49 -4
- package/dist/fns/sortFns.js.map +1 -1
- package/dist/helpers/columnHelper.cjs.map +1 -1
- package/dist/helpers/columnHelper.js.map +1 -1
- package/dist/helpers/tableFeatures.cjs.map +1 -1
- package/dist/helpers/tableFeatures.js.map +1 -1
- package/dist/helpers/tableOptions.cjs +6 -0
- package/dist/helpers/tableOptions.cjs.map +1 -1
- package/dist/helpers/tableOptions.d.cts +26 -0
- package/dist/helpers/tableOptions.d.ts +26 -0
- package/dist/helpers/tableOptions.js +6 -0
- package/dist/helpers/tableOptions.js.map +1 -1
- package/dist/reactivity.cjs +1 -3
- package/dist/reactivity.d.cts +1 -2
- package/dist/reactivity.d.ts +1 -2
- package/dist/reactivity.js +1 -2
- package/dist/static-functions.cjs +2 -1
- package/dist/static-functions.d.cts +4 -4
- package/dist/static-functions.d.ts +4 -4
- package/dist/static-functions.js +4 -4
- package/dist/store-reactivity-bindings.cjs +36 -0
- package/dist/store-reactivity-bindings.cjs.map +1 -0
- package/dist/store-reactivity-bindings.d.cts +22 -0
- package/dist/store-reactivity-bindings.d.ts +22 -0
- package/dist/store-reactivity-bindings.js +35 -0
- package/dist/store-reactivity-bindings.js.map +1 -0
- package/dist/utils.cjs +45 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +45 -0
- package/dist/utils.d.ts +45 -0
- package/dist/utils.js +45 -0
- package/dist/utils.js.map +1 -1
- package/package.json +5 -1
- package/src/core/cells/constructCell.ts +5 -0
- package/src/core/cells/coreCellsFeature.ts +5 -0
- package/src/core/cells/coreCellsFeature.utils.ts +30 -0
- package/src/core/columns/constructColumn.ts +7 -1
- package/src/core/columns/coreColumnsFeature.ts +10 -0
- package/src/core/columns/coreColumnsFeature.types.ts +4 -0
- package/src/core/columns/coreColumnsFeature.utils.ts +109 -8
- package/src/core/coreFeatures.ts +5 -0
- package/src/core/headers/buildHeaderGroups.ts +7 -1
- package/src/core/headers/constructHeader.ts +5 -0
- package/src/core/headers/coreHeadersFeature.ts +5 -0
- package/src/core/headers/coreHeadersFeature.utils.ts +86 -8
- package/src/core/reactivity/coreReactivityFeature.types.ts +1 -0
- package/src/core/reactivity/coreReactivityFeature.utils.ts +15 -0
- package/src/core/row-models/coreRowModelsFeature.ts +5 -0
- package/src/core/row-models/coreRowModelsFeature.types.ts +2 -1
- package/src/core/row-models/coreRowModelsFeature.utils.ts +120 -0
- package/src/core/row-models/createCoreRowModel.ts +5 -0
- package/src/core/rows/constructRow.ts +5 -0
- package/src/core/rows/coreRowsFeature.ts +5 -0
- package/src/core/rows/coreRowsFeature.types.ts +3 -0
- package/src/core/rows/coreRowsFeature.utils.ts +106 -7
- package/src/core/table/constructTable.ts +37 -19
- package/src/core/table/coreTablesFeature.ts +5 -0
- package/src/core/table/coreTablesFeature.types.ts +23 -10
- package/src/core/table/coreTablesFeature.utils.ts +74 -1
- package/src/features/column-faceting/columnFacetingFeature.ts +9 -1
- package/src/features/column-faceting/columnFacetingFeature.types.ts +12 -6
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +60 -0
- package/src/features/column-faceting/createFacetedMinMaxValues.ts +5 -0
- package/src/features/column-faceting/createFacetedRowModel.ts +5 -0
- package/src/features/column-faceting/createFacetedUniqueValues.ts +5 -0
- package/src/features/column-filtering/columnFilteringFeature.ts +10 -2
- package/src/features/column-filtering/columnFilteringFeature.types.ts +7 -4
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +113 -2
- package/src/features/column-filtering/createFilteredRowModel.ts +5 -0
- package/src/features/column-filtering/filterRowsUtils.ts +5 -0
- package/src/features/column-grouping/columnGroupingFeature.ts +9 -1
- package/src/features/column-grouping/columnGroupingFeature.types.ts +7 -3
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +151 -0
- package/src/features/column-grouping/createGroupedRowModel.ts +5 -0
- package/src/features/column-ordering/columnOrderingFeature.ts +10 -1
- package/src/features/column-ordering/columnOrderingFeature.types.ts +4 -2
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +110 -18
- package/src/features/column-pinning/columnPinningFeature.ts +11 -12
- package/src/features/column-pinning/columnPinningFeature.types.ts +6 -2
- package/src/features/column-pinning/columnPinningFeature.utils.ts +390 -57
- package/src/features/column-resizing/columnResizingFeature.ts +9 -2
- package/src/features/column-resizing/columnResizingFeature.types.ts +14 -6
- package/src/features/column-resizing/columnResizingFeature.utils.ts +81 -0
- package/src/features/column-sizing/columnSizingFeature.ts +38 -18
- package/src/features/column-sizing/columnSizingFeature.types.ts +6 -3
- package/src/features/column-sizing/columnSizingFeature.utils.ts +168 -9
- package/src/features/column-visibility/columnVisibilityFeature.ts +15 -21
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +4 -3
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +179 -23
- package/src/features/global-filtering/globalFilteringFeature.ts +9 -2
- package/src/features/global-filtering/globalFilteringFeature.types.ts +4 -2
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +51 -0
- package/src/features/row-expanding/createExpandedRowModel.ts +10 -0
- package/src/features/row-expanding/rowExpandingFeature.ts +9 -1
- package/src/features/row-expanding/rowExpandingFeature.types.ts +10 -5
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +151 -0
- package/src/features/row-pagination/createPaginatedRowModel.ts +5 -0
- package/src/features/row-pagination/rowPaginationFeature.ts +9 -1
- package/src/features/row-pagination/rowPaginationFeature.types.ts +11 -7
- package/src/features/row-pagination/rowPaginationFeature.utils.ts +175 -0
- package/src/features/row-pinning/rowPinningFeature.ts +9 -1
- package/src/features/row-pinning/rowPinningFeature.types.ts +4 -2
- package/src/features/row-pinning/rowPinningFeature.utils.ts +112 -0
- package/src/features/row-selection/rowSelectionFeature.ts +9 -1
- package/src/features/row-selection/rowSelectionFeature.types.ts +4 -2
- package/src/features/row-selection/rowSelectionFeature.utils.ts +259 -0
- package/src/features/row-sorting/createSortedRowModel.ts +5 -0
- package/src/features/row-sorting/rowSortingFeature.ts +11 -3
- package/src/features/row-sorting/rowSortingFeature.types.ts +7 -3
- package/src/features/row-sorting/rowSortingFeature.utils.ts +151 -0
- package/src/features/stockFeatures.ts +5 -0
- package/src/flex-render.ts +10 -0
- package/src/fns/aggregationFns.ts +5 -0
- package/src/fns/filterFns.ts +5 -0
- package/src/fns/sortFns.ts +50 -5
- package/src/helpers/tableOptions.ts +32 -0
- package/src/reactivity.ts +0 -1
- package/src/store-reactivity-bindings.ts +35 -0
- package/src/types/Table.ts +1 -1
- package/src/utils.ts +45 -0
- package/dist/core/reactivity/constructReactivityBindings.cjs +0 -19
- package/dist/core/reactivity/constructReactivityBindings.cjs.map +0 -1
- package/dist/core/reactivity/constructReactivityBindings.d.cts +0 -7
- package/dist/core/reactivity/constructReactivityBindings.d.ts +0 -7
- package/dist/core/reactivity/constructReactivityBindings.js +0 -19
- package/dist/core/reactivity/constructReactivityBindings.js.map +0 -1
- package/src/core/reactivity/constructReactivityBindings.ts +0 -19
|
@@ -4,6 +4,52 @@ import type { TableFeatures } from '../../types/TableFeatures'
|
|
|
4
4
|
import type { Table_Internal } from '../../types/Table'
|
|
5
5
|
import type { TableOptions } from '../../types/TableOptions'
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Synchronizes externally controlled state slices into the table's base atoms.
|
|
9
|
+
*
|
|
10
|
+
* This keeps legacy `options.state` values reflected in the atom graph so
|
|
11
|
+
* derived atoms, stores, and table APIs read a consistent snapshot.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const value = table_syncExternalStateToBaseAtoms(table)
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export function table_syncExternalStateToBaseAtoms<
|
|
19
|
+
TFeatures extends TableFeatures,
|
|
20
|
+
TData extends RowData,
|
|
21
|
+
>(table: Table_Internal<TFeatures, TData>): void {
|
|
22
|
+
const state = table.options.state
|
|
23
|
+
if (!state) {
|
|
24
|
+
return
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
table._reactivity.batch(() => {
|
|
28
|
+
for (const key in state) {
|
|
29
|
+
const baseAtom = (table.baseAtoms as Record<string, any>)[key]
|
|
30
|
+
if (!baseAtom) {
|
|
31
|
+
continue
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const externalState = state[key as keyof typeof state]
|
|
35
|
+
if (externalState !== baseAtom.get()) {
|
|
36
|
+
baseAtom.set(() => externalState)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Resets all internal table base atoms to `table.initialState`.
|
|
44
|
+
*
|
|
45
|
+
* This resets internally owned state slices in a single reactivity batch. Use
|
|
46
|
+
* feature-specific reset APIs when a slice may be externally owned.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* table_reset(table)
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
7
53
|
export function table_reset<
|
|
8
54
|
TFeatures extends TableFeatures,
|
|
9
55
|
TData extends RowData,
|
|
@@ -16,6 +62,17 @@ export function table_reset<
|
|
|
16
62
|
})
|
|
17
63
|
}
|
|
18
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Merges new table options with the current resolved options.
|
|
67
|
+
*
|
|
68
|
+
* If `options.mergeOptions` is provided, it owns the merge behavior; otherwise
|
|
69
|
+
* options are shallow-merged.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const value = table_mergeOptions(table)
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
19
76
|
export function table_mergeOptions<
|
|
20
77
|
TFeatures extends TableFeatures,
|
|
21
78
|
TData extends RowData,
|
|
@@ -33,6 +90,17 @@ export function table_mergeOptions<
|
|
|
33
90
|
}
|
|
34
91
|
}
|
|
35
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Updates the table options object.
|
|
95
|
+
*
|
|
96
|
+
* The updater receives the current resolved options and the merged result is
|
|
97
|
+
* immediately assigned to the table instance.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* table_setOptions(table, (old) => old)
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
36
104
|
export function table_setOptions<
|
|
37
105
|
TFeatures extends TableFeatures,
|
|
38
106
|
TData extends RowData,
|
|
@@ -42,5 +110,10 @@ export function table_setOptions<
|
|
|
42
110
|
): void {
|
|
43
111
|
const newOptions = functionalUpdate(updater, table.options)
|
|
44
112
|
const mergedOptions = table_mergeOptions(table, newOptions)
|
|
45
|
-
table.optionsStore
|
|
113
|
+
if (table.optionsStore) {
|
|
114
|
+
table.optionsStore.set(() => mergedOptions)
|
|
115
|
+
} else {
|
|
116
|
+
table.options = mergedOptions
|
|
117
|
+
}
|
|
118
|
+
table_syncExternalStateToBaseAtoms(table)
|
|
46
119
|
}
|
|
@@ -29,6 +29,11 @@ export interface ColumnFacetingFeatureConstructors<
|
|
|
29
29
|
// CreateRowModels: CreateRowModel_Faceted<TFeatures, TData>
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Creates the stock column faceting feature.
|
|
34
|
+
*
|
|
35
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
36
|
+
*/
|
|
32
37
|
export function constructColumnFacetingFeature<
|
|
33
38
|
TFeatures extends TableFeatures,
|
|
34
39
|
TData extends RowData,
|
|
@@ -107,6 +112,9 @@ export function constructColumnFacetingFeature<
|
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
/**
|
|
110
|
-
* The
|
|
115
|
+
* The stock column faceting feature.
|
|
116
|
+
*
|
|
117
|
+
* Register this feature to add faceted row model, unique value, and min/max
|
|
118
|
+
* helpers for column and global filter UIs.
|
|
111
119
|
*/
|
|
112
120
|
export const columnFacetingFeature = constructColumnFacetingFeature()
|
|
@@ -27,17 +27,17 @@ export interface Table_RowModels_Faceted<
|
|
|
27
27
|
> {
|
|
28
28
|
/**
|
|
29
29
|
* A function that **computes and returns** a min/max tuple derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
|
|
30
|
-
* >
|
|
30
|
+
* > Requires that you pass a valid `facetedMinMaxValues` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedMinMaxValues` function.
|
|
31
31
|
*/
|
|
32
32
|
getFacetedMinMaxValues: () => undefined | [number, number]
|
|
33
33
|
/**
|
|
34
34
|
* Returns the row model with all other column filters applied, excluding its own filter. Useful for displaying faceted result counts.
|
|
35
|
-
* >
|
|
35
|
+
* > Requires that you pass a valid `facetedRowModel` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedRowModel` function.
|
|
36
36
|
*/
|
|
37
37
|
getFacetedRowModel: () => RowModel<TFeatures, TData>
|
|
38
38
|
/**
|
|
39
39
|
* A function that **computes and returns** a `Map` of unique values and their occurrences derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
|
|
40
|
-
* >
|
|
40
|
+
* > Requires that you pass a valid `facetedUniqueValues` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedUniqueValues` function.
|
|
41
41
|
*/
|
|
42
42
|
getFacetedUniqueValues: () => Map<any, number>
|
|
43
43
|
}
|
|
@@ -47,21 +47,27 @@ export interface CreateRowModel_Faceted<
|
|
|
47
47
|
TData extends RowData,
|
|
48
48
|
> {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Factory used to retrieve faceted min/max values. If using server-side
|
|
51
|
+
* faceting, this is not required. To use client-side faceting, pass
|
|
52
|
+
* `createFacetedMinMaxValues()` or implement your own factory.
|
|
51
53
|
*/
|
|
52
54
|
facetedMinMaxValues?: (
|
|
53
55
|
table: Table<TFeatures, TData>,
|
|
54
56
|
columnId: string,
|
|
55
57
|
) => () => [number, number] | undefined
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
59
|
+
* Factory used to retrieve the faceted row model. If using server-side
|
|
60
|
+
* faceting, this is not required. To use client-side faceting, pass
|
|
61
|
+
* `createFacetedRowModel()` or implement your own factory.
|
|
58
62
|
*/
|
|
59
63
|
facetedRowModel?: (
|
|
60
64
|
table: Table<TFeatures, TData>,
|
|
61
65
|
columnId: string,
|
|
62
66
|
) => () => RowModel<TFeatures, TData>
|
|
63
67
|
/**
|
|
64
|
-
*
|
|
68
|
+
* Factory used to retrieve faceted unique values. If using server-side
|
|
69
|
+
* faceting, this is not required. To use client-side faceting, pass
|
|
70
|
+
* `createFacetedUniqueValues()` or implement your own factory.
|
|
65
71
|
*/
|
|
66
72
|
facetedUniqueValues?: (
|
|
67
73
|
table: Table<TFeatures, TData>,
|
|
@@ -4,6 +4,16 @@ import type { RowModel } from '../../core/row-models/coreRowModelsFeature.types'
|
|
|
4
4
|
import type { Table_Internal } from '../../types/Table'
|
|
5
5
|
import type { Column_Internal } from '../../types/Column'
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Returns faceted min max values for a column.
|
|
9
|
+
*
|
|
10
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const value = column_getFacetedMinMaxValues(column)
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
7
17
|
export function column_getFacetedMinMaxValues<
|
|
8
18
|
TFeatures extends TableFeatures,
|
|
9
19
|
TData extends RowData,
|
|
@@ -18,6 +28,16 @@ export function column_getFacetedMinMaxValues<
|
|
|
18
28
|
return facetedMinMaxValuesFn()
|
|
19
29
|
}
|
|
20
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Returns faceted row model for a column.
|
|
33
|
+
*
|
|
34
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const value = column_getFacetedRowModel(column)
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
21
41
|
export function column_getFacetedRowModel<
|
|
22
42
|
TFeatures extends TableFeatures,
|
|
23
43
|
TData extends RowData,
|
|
@@ -32,6 +52,16 @@ export function column_getFacetedRowModel<
|
|
|
32
52
|
return facetedRowModelFn()
|
|
33
53
|
}
|
|
34
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Returns faceted unique values for a column.
|
|
57
|
+
*
|
|
58
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const value = column_getFacetedUniqueValues(column)
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
35
65
|
export function column_getFacetedUniqueValues<
|
|
36
66
|
TFeatures extends TableFeatures,
|
|
37
67
|
TData extends RowData,
|
|
@@ -46,6 +76,16 @@ export function column_getFacetedUniqueValues<
|
|
|
46
76
|
return facetedUniqueValuesFn()
|
|
47
77
|
}
|
|
48
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Returns global faceted min max values for the table.
|
|
81
|
+
*
|
|
82
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const value = table_getGlobalFacetedMinMaxValues(table)
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
49
89
|
export function table_getGlobalFacetedMinMaxValues<
|
|
50
90
|
TFeatures extends TableFeatures,
|
|
51
91
|
TData extends RowData,
|
|
@@ -56,6 +96,16 @@ export function table_getGlobalFacetedMinMaxValues<
|
|
|
56
96
|
return facetedMinMaxValuesFn()
|
|
57
97
|
}
|
|
58
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Returns global faceted row model for the table.
|
|
101
|
+
*
|
|
102
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const value = table_getGlobalFacetedRowModel(table)
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
59
109
|
export function table_getGlobalFacetedRowModel<
|
|
60
110
|
TFeatures extends TableFeatures,
|
|
61
111
|
TData extends RowData,
|
|
@@ -66,6 +116,16 @@ export function table_getGlobalFacetedRowModel<
|
|
|
66
116
|
return facetedRowModelFn()
|
|
67
117
|
}
|
|
68
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Returns global faceted unique values for the table.
|
|
121
|
+
*
|
|
122
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```ts
|
|
126
|
+
* const value = table_getGlobalFacetedUniqueValues(table)
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
69
129
|
export function table_getGlobalFacetedUniqueValues<
|
|
70
130
|
TFeatures extends TableFeatures,
|
|
71
131
|
TData extends RowData,
|
|
@@ -5,6 +5,11 @@ import type { Table, Table_Internal } from '../../types/Table'
|
|
|
5
5
|
import type { TableFeatures } from '../../types/TableFeatures'
|
|
6
6
|
import type { RowData } from '../../types/type-utils'
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Creates a memoized faceted min max values helper for faceted filtering.
|
|
10
|
+
*
|
|
11
|
+
* The returned function derives facet data from the table row model and relevant filter state so filter UIs can display available values.
|
|
12
|
+
*/
|
|
8
13
|
export function createFacetedMinMaxValues<
|
|
9
14
|
TFeatures extends TableFeatures,
|
|
10
15
|
TData extends RowData = any,
|
|
@@ -10,6 +10,11 @@ import type { RowModel } from '../../core/row-models/coreRowModelsFeature.types'
|
|
|
10
10
|
import type { Row } from '../../types/Row'
|
|
11
11
|
import type { RowData } from '../../types/type-utils'
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Creates a memoized faceted row model factory.
|
|
15
|
+
*
|
|
16
|
+
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
17
|
+
*/
|
|
13
18
|
export function createFacetedRowModel<
|
|
14
19
|
TFeatures extends TableFeatures,
|
|
15
20
|
TData extends RowData = any,
|
|
@@ -5,6 +5,11 @@ import type { Table, Table_Internal } from '../../types/Table'
|
|
|
5
5
|
import type { TableFeatures } from '../../types/TableFeatures'
|
|
6
6
|
import type { RowData } from '../../types/type-utils'
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Creates a memoized faceted unique values helper for faceted filtering.
|
|
10
|
+
*
|
|
11
|
+
* The returned function derives facet data from the table row model and relevant filter state so filter UIs can display available values.
|
|
12
|
+
*/
|
|
8
13
|
export function createFacetedUniqueValues<
|
|
9
14
|
TFeatures extends TableFeatures,
|
|
10
15
|
TData extends RowData = any,
|
|
@@ -44,6 +44,11 @@ export interface ColumnFilteringFeatureConstructors<
|
|
|
44
44
|
// TableState: TableState_ColumnFiltering
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Creates the stock column filtering feature.
|
|
49
|
+
*
|
|
50
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
51
|
+
*/
|
|
47
52
|
export function constructColumnFilteringFeature<
|
|
48
53
|
TFeatures extends TableFeatures,
|
|
49
54
|
TData extends RowData,
|
|
@@ -115,7 +120,10 @@ export function constructColumnFilteringFeature<
|
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
/**
|
|
118
|
-
* The
|
|
119
|
-
*
|
|
123
|
+
* The stock column filtering feature.
|
|
124
|
+
*
|
|
125
|
+
* Register this feature to add column filter state, filter defaults, and
|
|
126
|
+
* table/row/column APIs for client-side or manual column filtering. Global
|
|
127
|
+
* filtering is provided by `globalFilteringFeature`.
|
|
120
128
|
*/
|
|
121
129
|
export const columnFilteringFeature = constructColumnFilteringFeature()
|
|
@@ -167,7 +167,9 @@ export interface TableOptions_ColumnFiltering<
|
|
|
167
167
|
*/
|
|
168
168
|
maxLeafRowFilterDepth?: number
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Called with an updater when column filter state changes. Pair this with
|
|
171
|
+
* `state.columnFilters` when using external state; external atoms can own the
|
|
172
|
+
* slice without this callback.
|
|
171
173
|
*/
|
|
172
174
|
onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>
|
|
173
175
|
}
|
|
@@ -178,7 +180,7 @@ export interface Table_ColumnFiltering {
|
|
|
178
180
|
*/
|
|
179
181
|
resetColumnFilters: (defaultState?: boolean) => void
|
|
180
182
|
/**
|
|
181
|
-
* Sets
|
|
183
|
+
* Sets column filter state using a value or updater.
|
|
182
184
|
*/
|
|
183
185
|
setColumnFilters: (updater: Updater<ColumnFiltersState>) => void
|
|
184
186
|
}
|
|
@@ -202,9 +204,10 @@ export interface CreateRowModel_Filtered<
|
|
|
202
204
|
TData extends RowData,
|
|
203
205
|
> {
|
|
204
206
|
/**
|
|
205
|
-
* If provided, this
|
|
207
|
+
* If provided, this factory is called once per table and should return a
|
|
208
|
+
* function that calculates the filtered row model.
|
|
206
209
|
* - For server-side filtering, this function is unnecessary and can be ignored since the server should already return the filtered row model.
|
|
207
|
-
* - For client-side filtering,
|
|
210
|
+
* - For client-side filtering, pass the exported `createFilteredRowModel()` or implement your own factory.
|
|
208
211
|
*/
|
|
209
212
|
filteredRowModel?: (
|
|
210
213
|
table: Table<TFeatures, TData>,
|
|
@@ -8,10 +8,30 @@ import type {
|
|
|
8
8
|
FilterFn,
|
|
9
9
|
} from './columnFilteringFeature.types'
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Returns the default column filters state.
|
|
13
|
+
*
|
|
14
|
+
* Feature constructors use this value to initialize the table state or option defaults when no user value is provided.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const initialValue = getDefaultColumnFiltersState()
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
11
21
|
export function getDefaultColumnFiltersState(): ColumnFiltersState {
|
|
12
22
|
return []
|
|
13
23
|
}
|
|
14
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Infers filter fn for a column.
|
|
27
|
+
*
|
|
28
|
+
* The inference uses the column definition, table options, and sampled row values when needed.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const value = column_getAutoFilterFn(column)
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
15
35
|
export function column_getAutoFilterFn<
|
|
16
36
|
TFeatures extends TableFeatures,
|
|
17
37
|
TData extends RowData,
|
|
@@ -47,6 +67,16 @@ export function column_getAutoFilterFn<
|
|
|
47
67
|
return filterFns?.weakEquals
|
|
48
68
|
}
|
|
49
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Returns filter fn for a column.
|
|
72
|
+
*
|
|
73
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const value = column_getFilterFn(column)
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
50
80
|
export function column_getFilterFn<
|
|
51
81
|
TFeatures extends TableFeatures,
|
|
52
82
|
TData extends RowData,
|
|
@@ -72,6 +102,16 @@ export function column_getFilterFn<
|
|
|
72
102
|
return filterFn
|
|
73
103
|
}
|
|
74
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Returns whether a column can use filter.
|
|
107
|
+
*
|
|
108
|
+
* This combines column options, table options, and any required accessor or feature state for the capability.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* const value = column_getCanFilter(column)
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
75
115
|
export function column_getCanFilter<
|
|
76
116
|
TFeatures extends TableFeatures,
|
|
77
117
|
TData extends RowData,
|
|
@@ -85,6 +125,16 @@ export function column_getCanFilter<
|
|
|
85
125
|
)
|
|
86
126
|
}
|
|
87
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Returns is filtered for a column.
|
|
130
|
+
*
|
|
131
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const value = column_getIsFiltered(column)
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
88
138
|
export function column_getIsFiltered<
|
|
89
139
|
TFeatures extends TableFeatures,
|
|
90
140
|
TData extends RowData,
|
|
@@ -93,6 +143,16 @@ export function column_getIsFiltered<
|
|
|
93
143
|
return column_getFilterIndex(column) > -1
|
|
94
144
|
}
|
|
95
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Returns filter value for a column.
|
|
148
|
+
*
|
|
149
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const value = column_getFilterValue(column)
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
96
156
|
export function column_getFilterValue<
|
|
97
157
|
TFeatures extends TableFeatures,
|
|
98
158
|
TData extends RowData,
|
|
@@ -103,6 +163,16 @@ export function column_getFilterValue<
|
|
|
103
163
|
?.find((d) => d.id === column.id)?.value
|
|
104
164
|
}
|
|
105
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Returns filter index for a column.
|
|
168
|
+
*
|
|
169
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* const value = column_getFilterIndex(column)
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
106
176
|
export function column_getFilterIndex<
|
|
107
177
|
TFeatures extends TableFeatures,
|
|
108
178
|
TData extends RowData,
|
|
@@ -115,6 +185,16 @@ export function column_getFilterIndex<
|
|
|
115
185
|
)
|
|
116
186
|
}
|
|
117
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Updates filter value for a column.
|
|
190
|
+
*
|
|
191
|
+
* This delegates to the owning table state updater so external state, external atoms, and internal state stay synchronized.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```ts
|
|
195
|
+
* column_setFilterValue(column, (old) => old)
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
118
198
|
export function column_setFilterValue<
|
|
119
199
|
TFeatures extends TableFeatures,
|
|
120
200
|
TData extends RowData,
|
|
@@ -152,6 +232,16 @@ export function column_setFilterValue<
|
|
|
152
232
|
})
|
|
153
233
|
}
|
|
154
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Updates the table's column filters state slice.
|
|
237
|
+
*
|
|
238
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```ts
|
|
242
|
+
* table_setColumnFilters(table, (old) => old)
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
155
245
|
export function table_setColumnFilters<
|
|
156
246
|
TFeatures extends TableFeatures,
|
|
157
247
|
TData extends RowData,
|
|
@@ -159,11 +249,11 @@ export function table_setColumnFilters<
|
|
|
159
249
|
table: Table_Internal<TFeatures, TData>,
|
|
160
250
|
updater: Updater<ColumnFiltersState>,
|
|
161
251
|
) {
|
|
162
|
-
const
|
|
252
|
+
const leafColumnsById = table.getAllLeafColumnsById()
|
|
163
253
|
|
|
164
254
|
const updateFn = (old: ColumnFiltersState) => {
|
|
165
255
|
return functionalUpdate(updater, old).filter((filter) => {
|
|
166
|
-
const column =
|
|
256
|
+
const column = leafColumnsById[filter.id]
|
|
167
257
|
|
|
168
258
|
if (column) {
|
|
169
259
|
const filterFn = column_getFilterFn(column)
|
|
@@ -180,6 +270,17 @@ export function table_setColumnFilters<
|
|
|
180
270
|
table.options.onColumnFiltersChange?.(updateFn)
|
|
181
271
|
}
|
|
182
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Resets the table's column filters state slice.
|
|
275
|
+
*
|
|
276
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
277
|
+
*
|
|
278
|
+
* @example
|
|
279
|
+
* ```ts
|
|
280
|
+
* table_resetColumnFilters(table)
|
|
281
|
+
* table_resetColumnFilters(table, true)
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
183
284
|
export function table_resetColumnFilters<
|
|
184
285
|
TFeatures extends TableFeatures,
|
|
185
286
|
TData extends RowData,
|
|
@@ -190,6 +291,16 @@ export function table_resetColumnFilters<
|
|
|
190
291
|
)
|
|
191
292
|
}
|
|
192
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Returns whether a filter value should be removed from filter state.
|
|
296
|
+
*
|
|
297
|
+
* This checks the filter function's `autoRemove` hook and built-in empty-value rules.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```ts
|
|
301
|
+
* const removeFilter = shouldAutoRemoveFilter(filterFn, value, column)
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
193
304
|
export function shouldAutoRemoveFilter<
|
|
194
305
|
TFeatures extends TableFeatures,
|
|
195
306
|
TData extends RowData,
|
|
@@ -19,6 +19,11 @@ import type {
|
|
|
19
19
|
Row_ColumnFiltering,
|
|
20
20
|
} from './columnFilteringFeature.types'
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Creates a memoized filtered row model factory.
|
|
24
|
+
*
|
|
25
|
+
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
26
|
+
*/
|
|
22
27
|
export function createFilteredRowModel<
|
|
23
28
|
TFeatures extends TableFeatures,
|
|
24
29
|
TData extends RowData = any,
|
|
@@ -6,6 +6,11 @@ import type { Table_Internal } from '../../types/Table'
|
|
|
6
6
|
import type { TableFeatures } from '../../types/TableFeatures'
|
|
7
7
|
import type { RowData } from '../../types/type-utils'
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Filters a row model with the supplied row predicate.
|
|
11
|
+
*
|
|
12
|
+
* The helper supports both filtering from leaf rows upward and filtering parents before descendants, depending on table options.
|
|
13
|
+
*/
|
|
9
14
|
export function filterRows<
|
|
10
15
|
TFeatures extends TableFeatures,
|
|
11
16
|
TData extends RowData,
|
|
@@ -51,6 +51,11 @@ export interface ColumnGroupingFeatureConstructors<
|
|
|
51
51
|
// TableState: TableState_ColumnGrouping
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Creates the stock column grouping feature.
|
|
56
|
+
*
|
|
57
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
58
|
+
*/
|
|
54
59
|
export function constructColumnGroupingFeature<
|
|
55
60
|
TFeatures extends TableFeatures,
|
|
56
61
|
TData extends RowData,
|
|
@@ -146,6 +151,9 @@ export function constructColumnGroupingFeature<
|
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
/**
|
|
149
|
-
* The
|
|
154
|
+
* The stock column grouping feature.
|
|
155
|
+
*
|
|
156
|
+
* Register this feature to add grouping state, aggregation defaults, grouped
|
|
157
|
+
* row-model support, and table/row/column/cell grouping APIs.
|
|
150
158
|
*/
|
|
151
159
|
export const columnGroupingFeature = constructColumnGroupingFeature()
|
|
@@ -163,7 +163,9 @@ export interface TableOptions_ColumnGrouping {
|
|
|
163
163
|
*/
|
|
164
164
|
manualGrouping?: boolean
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Called with an updater when grouping state changes. Pair this with
|
|
167
|
+
* `state.grouping` when using external state; external atoms can own the
|
|
168
|
+
* slice without this callback.
|
|
167
169
|
*/
|
|
168
170
|
onGroupingChange?: OnChangeFn<GroupingState>
|
|
169
171
|
}
|
|
@@ -179,7 +181,7 @@ export interface Table_ColumnGrouping<
|
|
|
179
181
|
*/
|
|
180
182
|
resetGrouping: (defaultState?: boolean) => void
|
|
181
183
|
/**
|
|
182
|
-
*
|
|
184
|
+
* Sets grouping state using a value or updater.
|
|
183
185
|
*/
|
|
184
186
|
setGrouping: (updater: Updater<GroupingState>) => void
|
|
185
187
|
}
|
|
@@ -203,7 +205,9 @@ export interface CreateRowModel_Grouped<
|
|
|
203
205
|
TData extends RowData,
|
|
204
206
|
> {
|
|
205
207
|
/**
|
|
206
|
-
*
|
|
208
|
+
* Factory used to retrieve the grouped row model. If using server-side
|
|
209
|
+
* grouping, this is not required. To use client-side grouping, pass
|
|
210
|
+
* `createGroupedRowModel()` or implement your own factory.
|
|
207
211
|
*/
|
|
208
212
|
groupedRowModel?: (
|
|
209
213
|
table: Table<TFeatures, TData>,
|