@tanstack/table-core 9.0.0-alpha.43 → 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.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 +10 -0
- 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 +10 -0
- 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 +22 -12
- package/dist/core/table/coreTablesFeature.types.d.ts +22 -12
- package/dist/core/table/coreTablesFeature.utils.cjs +44 -0
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +44 -0
- package/dist/core/table/coreTablesFeature.utils.d.ts +44 -0
- package/dist/core/table/coreTablesFeature.utils.js +44 -0
- 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/static-functions.cjs +1 -1
- package/dist/static-functions.d.cts +3 -3
- package/dist/static-functions.d.ts +3 -3
- package/dist/static-functions.js +3 -3
- package/dist/store-reactivity-bindings.cjs.map +1 -1
- package/dist/store-reactivity-bindings.js.map +1 -1
- 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 +1 -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.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 +10 -0
- package/src/core/table/coreTablesFeature.ts +5 -0
- package/src/core/table/coreTablesFeature.types.ts +22 -12
- package/src/core/table/coreTablesFeature.utils.ts +44 -0
- 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/utils.ts +45 -0
|
@@ -11,6 +11,16 @@ import type {
|
|
|
11
11
|
|
|
12
12
|
// State Utils
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Returns the default row pinning state.
|
|
16
|
+
*
|
|
17
|
+
* Feature constructors use this value to initialize the table state or option defaults when no user value is provided.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const initialValue = getDefaultRowPinningState()
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
14
24
|
export function getDefaultRowPinningState(): RowPinningState {
|
|
15
25
|
return {
|
|
16
26
|
top: [],
|
|
@@ -18,6 +28,16 @@ export function getDefaultRowPinningState(): RowPinningState {
|
|
|
18
28
|
}
|
|
19
29
|
}
|
|
20
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Updates the table's row pinning state slice.
|
|
33
|
+
*
|
|
34
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* table_setRowPinning(table, (old) => old)
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
21
41
|
export function table_setRowPinning<
|
|
22
42
|
TFeatures extends TableFeatures,
|
|
23
43
|
TData extends RowData,
|
|
@@ -28,6 +48,17 @@ export function table_setRowPinning<
|
|
|
28
48
|
table.options.onRowPinningChange?.(updater)
|
|
29
49
|
}
|
|
30
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Resets the table's row pinning state slice.
|
|
53
|
+
*
|
|
54
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* table_resetRowPinning(table)
|
|
59
|
+
* table_resetRowPinning(table, true)
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
31
62
|
export function table_resetRowPinning<
|
|
32
63
|
TFeatures extends TableFeatures,
|
|
33
64
|
TData extends RowData,
|
|
@@ -44,6 +75,16 @@ export function table_resetRowPinning<
|
|
|
44
75
|
|
|
45
76
|
// Table Utils
|
|
46
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Returns is some rows pinned for the table.
|
|
80
|
+
*
|
|
81
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const value = table_getIsSomeRowsPinned(table)
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
47
88
|
export function table_getIsSomeRowsPinned<
|
|
48
89
|
TFeatures extends TableFeatures,
|
|
49
90
|
TData extends RowData,
|
|
@@ -90,6 +131,16 @@ function table_getPinnedRows<
|
|
|
90
131
|
return filteredRows
|
|
91
132
|
}
|
|
92
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Returns top rows for the table.
|
|
136
|
+
*
|
|
137
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* const value = table_getTopRows(table)
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
93
144
|
export function table_getTopRows<
|
|
94
145
|
TFeatures extends TableFeatures,
|
|
95
146
|
TData extends RowData,
|
|
@@ -97,6 +148,16 @@ export function table_getTopRows<
|
|
|
97
148
|
return table_getPinnedRows(table, 'top')
|
|
98
149
|
}
|
|
99
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Returns bottom rows for the table.
|
|
153
|
+
*
|
|
154
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* const value = table_getBottomRows(table)
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
100
161
|
export function table_getBottomRows<
|
|
101
162
|
TFeatures extends TableFeatures,
|
|
102
163
|
TData extends RowData,
|
|
@@ -104,6 +165,16 @@ export function table_getBottomRows<
|
|
|
104
165
|
return table_getPinnedRows(table, 'bottom')
|
|
105
166
|
}
|
|
106
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Returns center rows for the table.
|
|
170
|
+
*
|
|
171
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```ts
|
|
175
|
+
* const value = table_getCenterRows(table)
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
107
178
|
export function table_getCenterRows<
|
|
108
179
|
TFeatures extends TableFeatures,
|
|
109
180
|
TData extends RowData,
|
|
@@ -118,6 +189,16 @@ export function table_getCenterRows<
|
|
|
118
189
|
|
|
119
190
|
// Row Utils
|
|
120
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Returns whether a row can use pin.
|
|
194
|
+
*
|
|
195
|
+
* This evaluates row data, table options, and feature-specific enablement rules.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* ```ts
|
|
199
|
+
* const value = row_getCanPin(row)
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
121
202
|
export function row_getCanPin<
|
|
122
203
|
TFeatures extends TableFeatures,
|
|
123
204
|
TData extends RowData,
|
|
@@ -129,6 +210,16 @@ export function row_getCanPin<
|
|
|
129
210
|
return enableRowPinning ?? true
|
|
130
211
|
}
|
|
131
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Returns is pinned for a row.
|
|
215
|
+
*
|
|
216
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```ts
|
|
220
|
+
* const value = row_getIsPinned(row)
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
132
223
|
export function row_getIsPinned<
|
|
133
224
|
TFeatures extends TableFeatures,
|
|
134
225
|
TData extends RowData,
|
|
@@ -143,6 +234,16 @@ export function row_getIsPinned<
|
|
|
143
234
|
: false
|
|
144
235
|
}
|
|
145
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Returns pinned index for a row.
|
|
239
|
+
*
|
|
240
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* ```ts
|
|
244
|
+
* const value = row_getPinnedIndex(row)
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
146
247
|
export function row_getPinnedIndex<
|
|
147
248
|
TFeatures extends TableFeatures,
|
|
148
249
|
TData extends RowData,
|
|
@@ -159,6 +260,17 @@ export function row_getPinnedIndex<
|
|
|
159
260
|
return visiblePinnedRowIds.indexOf(row.id)
|
|
160
261
|
}
|
|
161
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Pins or unpins a row.
|
|
265
|
+
*
|
|
266
|
+
* Optional flags let callers include parent rows or leaf rows when updating
|
|
267
|
+
* the row pinning state.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```ts
|
|
271
|
+
* row_pin(row, 'top')
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
162
274
|
export function row_pin<TFeatures extends TableFeatures, TData extends RowData>(
|
|
163
275
|
row: Row<TFeatures, TData>,
|
|
164
276
|
position: RowPinningPosition,
|
|
@@ -47,6 +47,11 @@ export interface RowSelectionFeatureConstructors<
|
|
|
47
47
|
// TableState: TableState_RowSelection
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Creates the stock row selection feature.
|
|
52
|
+
*
|
|
53
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
54
|
+
*/
|
|
50
55
|
export function constructRowSelectionFeature<
|
|
51
56
|
TFeatures extends TableFeatures,
|
|
52
57
|
TData extends RowData,
|
|
@@ -159,6 +164,9 @@ export function constructRowSelectionFeature<
|
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
/**
|
|
162
|
-
* The
|
|
167
|
+
* The stock row selection feature.
|
|
168
|
+
*
|
|
169
|
+
* Register this feature to add row selection state, selected row-model helpers,
|
|
170
|
+
* and table/row APIs for checkbox and bulk-selection UI.
|
|
163
171
|
*/
|
|
164
172
|
export const rowSelectionFeature = constructRowSelectionFeature()
|
|
@@ -29,7 +29,9 @@ export interface TableOptions_RowSelection<
|
|
|
29
29
|
*/
|
|
30
30
|
enableSubRowSelection?: boolean | ((row: Row<TFeatures, TData>) => boolean)
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Called with an updater when row selection state changes. Pair this with
|
|
33
|
+
* `state.rowSelection` when using external state; external atoms can own the
|
|
34
|
+
* slice without this callback.
|
|
33
35
|
*/
|
|
34
36
|
onRowSelectionChange?: OnChangeFn<RowSelectionState>
|
|
35
37
|
// enableGroupingRowSelection?:
|
|
@@ -129,7 +131,7 @@ export interface Table_RowSelection<
|
|
|
129
131
|
*/
|
|
130
132
|
resetRowSelection: (defaultState?: boolean) => void
|
|
131
133
|
/**
|
|
132
|
-
* Sets
|
|
134
|
+
* Sets row selection state using a value or updater.
|
|
133
135
|
*/
|
|
134
136
|
setRowSelection: (updater: Updater<RowSelectionState>) => void
|
|
135
137
|
/**
|
|
@@ -8,10 +8,30 @@ import type { RowSelectionState } from './rowSelectionFeature.types'
|
|
|
8
8
|
|
|
9
9
|
// State APIs
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Returns the default row selection 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 = getDefaultRowSelectionState()
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
11
21
|
export function getDefaultRowSelectionState(): RowSelectionState {
|
|
12
22
|
return {}
|
|
13
23
|
}
|
|
14
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Updates the table's row selection state slice.
|
|
27
|
+
*
|
|
28
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* table_setRowSelection(table, (old) => old)
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
15
35
|
export function table_setRowSelection<
|
|
16
36
|
TFeatures extends TableFeatures,
|
|
17
37
|
TData extends RowData,
|
|
@@ -22,6 +42,17 @@ export function table_setRowSelection<
|
|
|
22
42
|
table.options.onRowSelectionChange?.(updater)
|
|
23
43
|
}
|
|
24
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Resets the table's row selection state slice.
|
|
47
|
+
*
|
|
48
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* table_resetRowSelection(table)
|
|
53
|
+
* table_resetRowSelection(table, true)
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
25
56
|
export function table_resetRowSelection<
|
|
26
57
|
TFeatures extends TableFeatures,
|
|
27
58
|
TData extends RowData,
|
|
@@ -34,6 +65,16 @@ export function table_resetRowSelection<
|
|
|
34
65
|
|
|
35
66
|
// Table APIs
|
|
36
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Toggles all rows selected for the table.
|
|
70
|
+
*
|
|
71
|
+
* This is the table-level convenience API used by UI controls that affect many columns or rows at once.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* table_toggleAllRowsSelected(table)
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
37
78
|
export function table_toggleAllRowsSelected<
|
|
38
79
|
TFeatures extends TableFeatures,
|
|
39
80
|
TData extends RowData,
|
|
@@ -65,6 +106,16 @@ export function table_toggleAllRowsSelected<
|
|
|
65
106
|
})
|
|
66
107
|
}
|
|
67
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Toggles all page rows selected for the table.
|
|
111
|
+
*
|
|
112
|
+
* This is the table-level convenience API used by UI controls that affect many columns or rows at once.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* table_toggleAllPageRowsSelected(table)
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
68
119
|
export function table_toggleAllPageRowsSelected<
|
|
69
120
|
TFeatures extends TableFeatures,
|
|
70
121
|
TData extends RowData,
|
|
@@ -85,6 +136,16 @@ export function table_toggleAllPageRowsSelected<
|
|
|
85
136
|
})
|
|
86
137
|
}
|
|
87
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Returns pre selected row model for the table.
|
|
141
|
+
*
|
|
142
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```ts
|
|
146
|
+
* const value = table_getPreSelectedRowModel(table)
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
88
149
|
export function table_getPreSelectedRowModel<
|
|
89
150
|
TFeatures extends TableFeatures,
|
|
90
151
|
TData extends RowData,
|
|
@@ -92,6 +153,16 @@ export function table_getPreSelectedRowModel<
|
|
|
92
153
|
return table.getCoreRowModel()
|
|
93
154
|
}
|
|
94
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Returns selected row model for the table.
|
|
158
|
+
*
|
|
159
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const value = table_getSelectedRowModel(table)
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
95
166
|
export function table_getSelectedRowModel<
|
|
96
167
|
TFeatures extends TableFeatures,
|
|
97
168
|
TData extends RowData,
|
|
@@ -109,6 +180,16 @@ export function table_getSelectedRowModel<
|
|
|
109
180
|
return selectRowsFn(rowModel)
|
|
110
181
|
}
|
|
111
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Returns filtered selected row model for the table.
|
|
185
|
+
*
|
|
186
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* const value = table_getFilteredSelectedRowModel(table)
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
112
193
|
export function table_getFilteredSelectedRowModel<
|
|
113
194
|
TFeatures extends TableFeatures,
|
|
114
195
|
TData extends RowData,
|
|
@@ -126,6 +207,16 @@ export function table_getFilteredSelectedRowModel<
|
|
|
126
207
|
return selectRowsFn(rowModel)
|
|
127
208
|
}
|
|
128
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Returns grouped selected row model for the table.
|
|
212
|
+
*
|
|
213
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```ts
|
|
217
|
+
* const value = table_getGroupedSelectedRowModel(table)
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
129
220
|
export function table_getGroupedSelectedRowModel<
|
|
130
221
|
TFeatures extends TableFeatures,
|
|
131
222
|
TData extends RowData,
|
|
@@ -143,6 +234,16 @@ export function table_getGroupedSelectedRowModel<
|
|
|
143
234
|
return selectRowsFn(rowModel)
|
|
144
235
|
}
|
|
145
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Returns is all rows selected for the table.
|
|
239
|
+
*
|
|
240
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* ```ts
|
|
244
|
+
* const value = table_getIsAllRowsSelected(table)
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
146
247
|
export function table_getIsAllRowsSelected<
|
|
147
248
|
TFeatures extends TableFeatures,
|
|
148
249
|
TData extends RowData,
|
|
@@ -167,6 +268,16 @@ export function table_getIsAllRowsSelected<
|
|
|
167
268
|
return isAllRowsSelected
|
|
168
269
|
}
|
|
169
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Returns is all page rows selected for the table.
|
|
273
|
+
*
|
|
274
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* ```ts
|
|
278
|
+
* const value = table_getIsAllPageRowsSelected(table)
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
170
281
|
export function table_getIsAllPageRowsSelected<
|
|
171
282
|
TFeatures extends TableFeatures,
|
|
172
283
|
TData extends RowData,
|
|
@@ -188,6 +299,16 @@ export function table_getIsAllPageRowsSelected<
|
|
|
188
299
|
return isAllPageRowsSelected
|
|
189
300
|
}
|
|
190
301
|
|
|
302
|
+
/**
|
|
303
|
+
* Returns is some rows selected for the table.
|
|
304
|
+
*
|
|
305
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```ts
|
|
309
|
+
* const value = table_getIsSomeRowsSelected(table)
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
191
312
|
export function table_getIsSomeRowsSelected<
|
|
192
313
|
TFeatures extends TableFeatures,
|
|
193
314
|
TData extends RowData,
|
|
@@ -201,6 +322,16 @@ export function table_getIsSomeRowsSelected<
|
|
|
201
322
|
)
|
|
202
323
|
}
|
|
203
324
|
|
|
325
|
+
/**
|
|
326
|
+
* Returns is some page rows selected for the table.
|
|
327
|
+
*
|
|
328
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```ts
|
|
332
|
+
* const value = table_getIsSomePageRowsSelected(table)
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
204
335
|
export function table_getIsSomePageRowsSelected<
|
|
205
336
|
TFeatures extends TableFeatures,
|
|
206
337
|
TData extends RowData,
|
|
@@ -213,6 +344,16 @@ export function table_getIsSomePageRowsSelected<
|
|
|
213
344
|
.some((row) => row_getIsSelected(row) || row_getIsSomeSelected(row))
|
|
214
345
|
}
|
|
215
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Returns an event handler for all rows selected handler.
|
|
349
|
+
*
|
|
350
|
+
* The handler calls the matching table toggle API and can be attached directly to checkbox or button UI.
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* ```ts
|
|
354
|
+
* const value = table_getToggleAllRowsSelectedHandler(table)
|
|
355
|
+
* ```
|
|
356
|
+
*/
|
|
216
357
|
export function table_getToggleAllRowsSelectedHandler<
|
|
217
358
|
TFeatures extends TableFeatures,
|
|
218
359
|
TData extends RowData,
|
|
@@ -225,6 +366,16 @@ export function table_getToggleAllRowsSelectedHandler<
|
|
|
225
366
|
}
|
|
226
367
|
}
|
|
227
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Returns an event handler for all page rows selected handler.
|
|
371
|
+
*
|
|
372
|
+
* The handler calls the matching table toggle API and can be attached directly to checkbox or button UI.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```ts
|
|
376
|
+
* const value = table_getToggleAllPageRowsSelectedHandler(table)
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
228
379
|
export function table_getToggleAllPageRowsSelectedHandler<
|
|
229
380
|
TFeatures extends TableFeatures,
|
|
230
381
|
TData extends RowData,
|
|
@@ -239,6 +390,16 @@ export function table_getToggleAllPageRowsSelectedHandler<
|
|
|
239
390
|
|
|
240
391
|
// Row APIs
|
|
241
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Toggles selected for a row.
|
|
395
|
+
*
|
|
396
|
+
* The update is routed through the table state updater for the owning feature state slice.
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```ts
|
|
400
|
+
* row_toggleSelected(row)
|
|
401
|
+
* ```
|
|
402
|
+
*/
|
|
242
403
|
export function row_toggleSelected<
|
|
243
404
|
TFeatures extends TableFeatures,
|
|
244
405
|
TData extends RowData,
|
|
@@ -272,6 +433,16 @@ export function row_toggleSelected<
|
|
|
272
433
|
})
|
|
273
434
|
}
|
|
274
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Returns is selected for a row.
|
|
438
|
+
*
|
|
439
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* ```ts
|
|
443
|
+
* const value = row_getIsSelected(row)
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
275
446
|
export function row_getIsSelected<
|
|
276
447
|
TFeatures extends TableFeatures,
|
|
277
448
|
TData extends RowData,
|
|
@@ -279,6 +450,16 @@ export function row_getIsSelected<
|
|
|
279
450
|
return isRowSelected(row)
|
|
280
451
|
}
|
|
281
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Returns is some selected for a row.
|
|
455
|
+
*
|
|
456
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* ```ts
|
|
460
|
+
* const value = row_getIsSomeSelected(row)
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
282
463
|
export function row_getIsSomeSelected<
|
|
283
464
|
TFeatures extends TableFeatures,
|
|
284
465
|
TData extends RowData,
|
|
@@ -286,6 +467,16 @@ export function row_getIsSomeSelected<
|
|
|
286
467
|
return isSubRowSelected(row) === 'some'
|
|
287
468
|
}
|
|
288
469
|
|
|
470
|
+
/**
|
|
471
|
+
* Returns is all sub rows selected for a row.
|
|
472
|
+
*
|
|
473
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* ```ts
|
|
477
|
+
* const value = row_getIsAllSubRowsSelected(row)
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
289
480
|
export function row_getIsAllSubRowsSelected<
|
|
290
481
|
TFeatures extends TableFeatures,
|
|
291
482
|
TData extends RowData,
|
|
@@ -293,6 +484,16 @@ export function row_getIsAllSubRowsSelected<
|
|
|
293
484
|
return isSubRowSelected(row) === 'all'
|
|
294
485
|
}
|
|
295
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Returns whether a row can use select.
|
|
489
|
+
*
|
|
490
|
+
* This evaluates row data, table options, and feature-specific enablement rules.
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```ts
|
|
494
|
+
* const value = row_getCanSelect(row)
|
|
495
|
+
* ```
|
|
496
|
+
*/
|
|
296
497
|
export function row_getCanSelect<
|
|
297
498
|
TFeatures extends TableFeatures,
|
|
298
499
|
TData extends RowData,
|
|
@@ -305,6 +506,16 @@ export function row_getCanSelect<
|
|
|
305
506
|
return options.enableRowSelection ?? true
|
|
306
507
|
}
|
|
307
508
|
|
|
509
|
+
/**
|
|
510
|
+
* Returns whether a row can use select sub rows.
|
|
511
|
+
*
|
|
512
|
+
* This evaluates row data, table options, and feature-specific enablement rules.
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```ts
|
|
516
|
+
* const value = row_getCanSelectSubRows(row)
|
|
517
|
+
* ```
|
|
518
|
+
*/
|
|
308
519
|
export function row_getCanSelectSubRows<
|
|
309
520
|
TFeatures extends TableFeatures,
|
|
310
521
|
TData extends RowData,
|
|
@@ -317,6 +528,16 @@ export function row_getCanSelectSubRows<
|
|
|
317
528
|
return options.enableSubRowSelection ?? true
|
|
318
529
|
}
|
|
319
530
|
|
|
531
|
+
/**
|
|
532
|
+
* Returns whether a row can use multi select.
|
|
533
|
+
*
|
|
534
|
+
* This evaluates row data, table options, and feature-specific enablement rules.
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* ```ts
|
|
538
|
+
* const value = row_getCanMultiSelect(row)
|
|
539
|
+
* ```
|
|
540
|
+
*/
|
|
320
541
|
export function row_getCanMultiSelect<
|
|
321
542
|
TFeatures extends TableFeatures,
|
|
322
543
|
TData extends RowData,
|
|
@@ -329,6 +550,16 @@ export function row_getCanMultiSelect<
|
|
|
329
550
|
return options.enableMultiRowSelection ?? true
|
|
330
551
|
}
|
|
331
552
|
|
|
553
|
+
/**
|
|
554
|
+
* Returns an event handler for toggling selected handler.
|
|
555
|
+
*
|
|
556
|
+
* The handler is intended for direct use in row-level controls such as expansion or selection buttons.
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* ```ts
|
|
560
|
+
* const value = row_getToggleSelectedHandler(row)
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
332
563
|
export function row_getToggleSelectedHandler<
|
|
333
564
|
TFeatures extends TableFeatures,
|
|
334
565
|
TData extends RowData,
|
|
@@ -374,6 +605,16 @@ const mutateRowIsSelected = <
|
|
|
374
605
|
}
|
|
375
606
|
}
|
|
376
607
|
|
|
608
|
+
/**
|
|
609
|
+
* Builds a row model containing rows selected by the current row selection state.
|
|
610
|
+
*
|
|
611
|
+
* The result is derived from the supplied row model, so selected ids absent from the current data are not materialized as rows.
|
|
612
|
+
*
|
|
613
|
+
* @example
|
|
614
|
+
* ```ts
|
|
615
|
+
* const selectedRows = selectRowsFn(table, rowModel)
|
|
616
|
+
* ```
|
|
617
|
+
*/
|
|
377
618
|
export function selectRowsFn<
|
|
378
619
|
TFeatures extends TableFeatures,
|
|
379
620
|
TData extends RowData,
|
|
@@ -416,6 +657,14 @@ export function selectRowsFn<
|
|
|
416
657
|
}
|
|
417
658
|
}
|
|
418
659
|
|
|
660
|
+
/**
|
|
661
|
+
* Returns whether a row id is selected in the current row selection state.
|
|
662
|
+
*
|
|
663
|
+
* @example
|
|
664
|
+
* ```ts
|
|
665
|
+
* const selected = isRowSelected(row, selection)
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
419
668
|
export function isRowSelected<
|
|
420
669
|
TFeatures extends TableFeatures,
|
|
421
670
|
TData extends RowData,
|
|
@@ -423,6 +672,16 @@ export function isRowSelected<
|
|
|
423
672
|
return (row.table.atoms.rowSelection?.get() ?? {})[row.id] ?? false
|
|
424
673
|
}
|
|
425
674
|
|
|
675
|
+
/**
|
|
676
|
+
* Returns whether all, some, or none of a row's selectable descendants are selected.
|
|
677
|
+
*
|
|
678
|
+
* The result is used to drive indeterminate row selection UI.
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* ```ts
|
|
682
|
+
* const selectedState = isSubRowSelected(row, selection, table)
|
|
683
|
+
* ```
|
|
684
|
+
*/
|
|
426
685
|
export function isSubRowSelected<
|
|
427
686
|
TFeatures extends TableFeatures,
|
|
428
687
|
TData extends RowData,
|
|
@@ -9,6 +9,11 @@ import type { Row } from '../../types/Row'
|
|
|
9
9
|
import type { SortFn, SortFns } from './rowSortingFeature.types'
|
|
10
10
|
import type { RowData } from '../../types/type-utils'
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Creates a memoized sorted row model factory.
|
|
14
|
+
*
|
|
15
|
+
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
16
|
+
*/
|
|
12
17
|
export function createSortedRowModel<
|
|
13
18
|
TFeatures extends TableFeatures,
|
|
14
19
|
TData extends RowData,
|
|
@@ -47,6 +47,11 @@ export interface RowSortingFeatureConstructors<
|
|
|
47
47
|
// TableState: TableState_RowSorting
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Creates the stock row sorting feature.
|
|
52
|
+
*
|
|
53
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
54
|
+
*/
|
|
50
55
|
export function constructRowSortingFeature<
|
|
51
56
|
TFeatures extends TableFeatures,
|
|
52
57
|
TData extends RowData,
|
|
@@ -77,10 +82,10 @@ export function constructRowSortingFeature<
|
|
|
77
82
|
|
|
78
83
|
assignColumnPrototype(prototype, table) {
|
|
79
84
|
assignPrototypeAPIs('rowSortingFeature', prototype, table, {
|
|
80
|
-
|
|
85
|
+
column_getAutoSortFn: {
|
|
81
86
|
fn: (column) => column_getAutoSortFn(column),
|
|
82
87
|
},
|
|
83
|
-
|
|
88
|
+
column_getAutoSortDir: {
|
|
84
89
|
fn: (column) => column_getAutoSortDir(column),
|
|
85
90
|
},
|
|
86
91
|
column_getSortFn: {
|
|
@@ -131,6 +136,9 @@ export function constructRowSortingFeature<
|
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
/**
|
|
134
|
-
* The
|
|
139
|
+
* The stock row sorting feature.
|
|
140
|
+
*
|
|
141
|
+
* Register this feature to add sorting state, column sorting APIs, and sorted
|
|
142
|
+
* row-model support for client-side or manual sorting.
|
|
135
143
|
*/
|
|
136
144
|
export const rowSortingFeature = constructRowSortingFeature()
|