@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
|
@@ -8,10 +8,30 @@ import type {
|
|
|
8
8
|
ExpandedStateList,
|
|
9
9
|
} from './rowExpandingFeature.types'
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Returns the default expanded 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 = getDefaultExpandedState()
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
11
21
|
export function getDefaultExpandedState(): ExpandedState {
|
|
12
22
|
return {}
|
|
13
23
|
}
|
|
14
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Schedules an automatic reset for expanded.
|
|
27
|
+
*
|
|
28
|
+
* The reset only runs when the related feature options allow automatic resets for the current table state change.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* table_autoResetExpanded(table)
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
15
35
|
export function table_autoResetExpanded<
|
|
16
36
|
TFeatures extends TableFeatures,
|
|
17
37
|
TData extends RowData,
|
|
@@ -25,6 +45,16 @@ export function table_autoResetExpanded<
|
|
|
25
45
|
}
|
|
26
46
|
}
|
|
27
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Updates the table's expanded state slice.
|
|
50
|
+
*
|
|
51
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* table_setExpanded(table, (old) => old)
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
28
58
|
export function table_setExpanded<
|
|
29
59
|
TFeatures extends TableFeatures,
|
|
30
60
|
TData extends RowData,
|
|
@@ -32,6 +62,16 @@ export function table_setExpanded<
|
|
|
32
62
|
table.options.onExpandedChange?.(updater)
|
|
33
63
|
}
|
|
34
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Toggles all rows expanded for the table.
|
|
67
|
+
*
|
|
68
|
+
* This is the table-level convenience API used by UI controls that affect many columns or rows at once.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* table_toggleAllRowsExpanded(table)
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
35
75
|
export function table_toggleAllRowsExpanded<
|
|
36
76
|
TFeatures extends TableFeatures,
|
|
37
77
|
TData extends RowData,
|
|
@@ -43,6 +83,17 @@ export function table_toggleAllRowsExpanded<
|
|
|
43
83
|
}
|
|
44
84
|
}
|
|
45
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Resets the table's expanded state slice.
|
|
88
|
+
*
|
|
89
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* table_resetExpanded(table)
|
|
94
|
+
* table_resetExpanded(table, true)
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
46
97
|
export function table_resetExpanded<
|
|
47
98
|
TFeatures extends TableFeatures,
|
|
48
99
|
TData extends RowData,
|
|
@@ -53,6 +104,16 @@ export function table_resetExpanded<
|
|
|
53
104
|
)
|
|
54
105
|
}
|
|
55
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Returns can some rows expand for the table.
|
|
109
|
+
*
|
|
110
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const value = table_getCanSomeRowsExpand(table)
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
56
117
|
export function table_getCanSomeRowsExpand<
|
|
57
118
|
TFeatures extends TableFeatures,
|
|
58
119
|
TData extends RowData,
|
|
@@ -62,6 +123,16 @@ export function table_getCanSomeRowsExpand<
|
|
|
62
123
|
.flatRows.some((row) => row_getCanExpand(row))
|
|
63
124
|
}
|
|
64
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Returns an event handler for all rows expanded handler.
|
|
128
|
+
*
|
|
129
|
+
* The handler calls the matching table toggle API and can be attached directly to checkbox or button UI.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const value = table_getToggleAllRowsExpandedHandler(table)
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
65
136
|
export function table_getToggleAllRowsExpandedHandler<
|
|
66
137
|
TFeatures extends TableFeatures,
|
|
67
138
|
TData extends RowData,
|
|
@@ -72,6 +143,16 @@ export function table_getToggleAllRowsExpandedHandler<
|
|
|
72
143
|
}
|
|
73
144
|
}
|
|
74
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Returns is some rows expanded for the table.
|
|
148
|
+
*
|
|
149
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const value = table_getIsSomeRowsExpanded(table)
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
75
156
|
export function table_getIsSomeRowsExpanded<
|
|
76
157
|
TFeatures extends TableFeatures,
|
|
77
158
|
TData extends RowData,
|
|
@@ -80,6 +161,16 @@ export function table_getIsSomeRowsExpanded<
|
|
|
80
161
|
return expanded === true || Object.values(expanded).some(Boolean)
|
|
81
162
|
}
|
|
82
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Returns is all rows expanded for the table.
|
|
166
|
+
*
|
|
167
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```ts
|
|
171
|
+
* const value = table_getIsAllRowsExpanded(table)
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
83
174
|
export function table_getIsAllRowsExpanded<
|
|
84
175
|
TFeatures extends TableFeatures,
|
|
85
176
|
TData extends RowData,
|
|
@@ -104,6 +195,16 @@ export function table_getIsAllRowsExpanded<
|
|
|
104
195
|
return true
|
|
105
196
|
}
|
|
106
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Returns expanded depth for the table.
|
|
200
|
+
*
|
|
201
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```ts
|
|
205
|
+
* const value = table_getExpandedDepth(table)
|
|
206
|
+
* ```
|
|
207
|
+
*/
|
|
107
208
|
export function table_getExpandedDepth<
|
|
108
209
|
TFeatures extends TableFeatures,
|
|
109
210
|
TData extends RowData,
|
|
@@ -123,6 +224,16 @@ export function table_getExpandedDepth<
|
|
|
123
224
|
return maxDepth
|
|
124
225
|
}
|
|
125
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Toggles expanded for a row.
|
|
229
|
+
*
|
|
230
|
+
* The update is routed through the table state updater for the owning feature state slice.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* row_toggleExpanded(row)
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
126
237
|
export function row_toggleExpanded<
|
|
127
238
|
TFeatures extends TableFeatures,
|
|
128
239
|
TData extends RowData,
|
|
@@ -158,6 +269,16 @@ export function row_toggleExpanded<
|
|
|
158
269
|
})
|
|
159
270
|
}
|
|
160
271
|
|
|
272
|
+
/**
|
|
273
|
+
* Returns is expanded for a row.
|
|
274
|
+
*
|
|
275
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```ts
|
|
279
|
+
* const value = row_getIsExpanded(row)
|
|
280
|
+
* ```
|
|
281
|
+
*/
|
|
161
282
|
export function row_getIsExpanded<
|
|
162
283
|
TFeatures extends TableFeatures,
|
|
163
284
|
TData extends RowData,
|
|
@@ -170,6 +291,16 @@ export function row_getIsExpanded<
|
|
|
170
291
|
)
|
|
171
292
|
}
|
|
172
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Returns whether a row can use expand.
|
|
296
|
+
*
|
|
297
|
+
* This evaluates row data, table options, and feature-specific enablement rules.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```ts
|
|
301
|
+
* const value = row_getCanExpand(row)
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
173
304
|
export function row_getCanExpand<
|
|
174
305
|
TFeatures extends TableFeatures,
|
|
175
306
|
TData extends RowData,
|
|
@@ -180,6 +311,16 @@ export function row_getCanExpand<
|
|
|
180
311
|
)
|
|
181
312
|
}
|
|
182
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Returns is all parents expanded for a row.
|
|
316
|
+
*
|
|
317
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```ts
|
|
321
|
+
* const value = row_getIsAllParentsExpanded(row)
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
183
324
|
export function row_getIsAllParentsExpanded<
|
|
184
325
|
TFeatures extends TableFeatures,
|
|
185
326
|
TData extends RowData,
|
|
@@ -195,6 +336,16 @@ export function row_getIsAllParentsExpanded<
|
|
|
195
336
|
return isFullyExpanded
|
|
196
337
|
}
|
|
197
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Returns an event handler for toggling expanded handler.
|
|
341
|
+
*
|
|
342
|
+
* The handler is intended for direct use in row-level controls such as expansion or selection buttons.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```ts
|
|
346
|
+
* const value = row_getToggleExpandedHandler(row)
|
|
347
|
+
* ```
|
|
348
|
+
*/
|
|
198
349
|
export function row_getToggleExpandedHandler<
|
|
199
350
|
TFeatures extends TableFeatures,
|
|
200
351
|
TData extends RowData,
|
|
@@ -7,6 +7,11 @@ import type { Table, Table_Internal } from '../../types/Table'
|
|
|
7
7
|
import type { Row } from '../../types/Row'
|
|
8
8
|
import type { RowData } from '../../types/type-utils'
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Creates a memoized paginated row model factory.
|
|
12
|
+
*
|
|
13
|
+
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
14
|
+
*/
|
|
10
15
|
export function createPaginatedRowModel<
|
|
11
16
|
TFeatures extends TableFeatures,
|
|
12
17
|
TData extends RowData = any,
|
|
@@ -39,6 +39,11 @@ export interface RowPaginationFeatureConstructors<
|
|
|
39
39
|
// TableState: TableState_RowPagination
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Creates the stock row pagination feature.
|
|
44
|
+
*
|
|
45
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
46
|
+
*/
|
|
42
47
|
export function constructRowPaginationFeature<
|
|
43
48
|
TFeatures extends TableFeatures,
|
|
44
49
|
TData extends RowData,
|
|
@@ -116,6 +121,9 @@ export function constructRowPaginationFeature<
|
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
/**
|
|
119
|
-
* The
|
|
124
|
+
* The stock row pagination feature.
|
|
125
|
+
*
|
|
126
|
+
* Register this feature to add pagination state, page navigation APIs, and
|
|
127
|
+
* pagination-aware row model helpers to a table.
|
|
120
128
|
*/
|
|
121
129
|
export const rowPaginationFeature = constructRowPaginationFeature()
|
|
@@ -22,7 +22,9 @@ export interface TableOptions_RowPagination {
|
|
|
22
22
|
*/
|
|
23
23
|
manualPagination?: boolean
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Called with an updater when pagination state changes. Pair this with
|
|
26
|
+
* `state.pagination` when using external state; external atoms can own the
|
|
27
|
+
* slice without this callback.
|
|
26
28
|
*/
|
|
27
29
|
onPaginationChange?: OnChangeFn<PaginationState>
|
|
28
30
|
/**
|
|
@@ -89,19 +91,20 @@ export interface Table_RowPagination<
|
|
|
89
91
|
*/
|
|
90
92
|
resetPageSize: (defaultState?: boolean) => void
|
|
91
93
|
/**
|
|
92
|
-
* Resets
|
|
94
|
+
* Resets pagination state to `initialState.pagination`. Pass `true` to reset
|
|
95
|
+
* to the feature default of `{ pageIndex: 0, pageSize: 10 }`.
|
|
93
96
|
*/
|
|
94
97
|
resetPagination: (defaultState?: boolean) => void
|
|
95
98
|
/**
|
|
96
|
-
* Updates
|
|
99
|
+
* Updates `pagination.pageIndex` using a value or updater.
|
|
97
100
|
*/
|
|
98
101
|
setPageIndex: (updater: Updater<number>) => void
|
|
99
102
|
/**
|
|
100
|
-
* Updates
|
|
103
|
+
* Updates `pagination.pageSize` using a value or updater.
|
|
101
104
|
*/
|
|
102
105
|
setPageSize: (updater: Updater<number>) => void
|
|
103
106
|
/**
|
|
104
|
-
* Sets
|
|
107
|
+
* Sets pagination state using a value or updater.
|
|
105
108
|
*/
|
|
106
109
|
setPagination: (updater: Updater<PaginationState>) => void
|
|
107
110
|
}
|
|
@@ -125,8 +128,9 @@ export interface CreateRowModel_Paginated<
|
|
|
125
128
|
TData extends RowData,
|
|
126
129
|
> {
|
|
127
130
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
131
|
+
* Factory used to retrieve the paginated row model. If using server-side
|
|
132
|
+
* pagination, this is not required. To use client-side pagination, pass
|
|
133
|
+
* `createPaginatedRowModel()` or implement your own factory.
|
|
130
134
|
*/
|
|
131
135
|
paginatedRowModel?: (
|
|
132
136
|
table: Table<TFeatures, TData>,
|
|
@@ -7,6 +7,16 @@ import type { PaginationState } from './rowPaginationFeature.types'
|
|
|
7
7
|
const defaultPageIndex = 0
|
|
8
8
|
const defaultPageSize = 10
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Returns the default pagination state.
|
|
12
|
+
*
|
|
13
|
+
* Feature constructors use this value to initialize the table state or option defaults when no user value is provided.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const initialValue = getDefaultPaginationState()
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
10
20
|
export function getDefaultPaginationState(): PaginationState {
|
|
11
21
|
return {
|
|
12
22
|
pageIndex: defaultPageIndex,
|
|
@@ -14,6 +24,16 @@ export function getDefaultPaginationState(): PaginationState {
|
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Schedules an automatic reset for page index.
|
|
29
|
+
*
|
|
30
|
+
* The reset only runs when the related feature options allow automatic resets for the current table state change.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* table_autoResetPageIndex(table)
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
17
37
|
export function table_autoResetPageIndex<
|
|
18
38
|
TFeatures extends TableFeatures,
|
|
19
39
|
TData extends RowData,
|
|
@@ -27,6 +47,16 @@ export function table_autoResetPageIndex<
|
|
|
27
47
|
}
|
|
28
48
|
}
|
|
29
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Updates the table's pagination state slice.
|
|
52
|
+
*
|
|
53
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* table_setPagination(table, (old) => old)
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
30
60
|
export function table_setPagination<
|
|
31
61
|
TFeatures extends TableFeatures,
|
|
32
62
|
TData extends RowData,
|
|
@@ -40,6 +70,17 @@ export function table_setPagination<
|
|
|
40
70
|
return table.options.onPaginationChange?.(safeUpdater)
|
|
41
71
|
}
|
|
42
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Resets the table's pagination state slice.
|
|
75
|
+
*
|
|
76
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* table_resetPagination(table)
|
|
81
|
+
* table_resetPagination(table, true)
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
43
84
|
export function table_resetPagination<
|
|
44
85
|
TFeatures extends TableFeatures,
|
|
45
86
|
TData extends RowData,
|
|
@@ -54,6 +95,16 @@ export function table_resetPagination<
|
|
|
54
95
|
)
|
|
55
96
|
}
|
|
56
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Updates the table's page index state slice.
|
|
100
|
+
*
|
|
101
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* table_setPageIndex(table, (old) => old)
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
57
108
|
export function table_setPageIndex<
|
|
58
109
|
TFeatures extends TableFeatures,
|
|
59
110
|
TData extends RowData,
|
|
@@ -76,6 +127,17 @@ export function table_setPageIndex<
|
|
|
76
127
|
})
|
|
77
128
|
}
|
|
78
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Resets the table's page index state slice.
|
|
132
|
+
*
|
|
133
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* table_resetPageIndex(table)
|
|
138
|
+
* table_resetPageIndex(table, true)
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
79
141
|
export function table_resetPageIndex<
|
|
80
142
|
TFeatures extends TableFeatures,
|
|
81
143
|
TData extends RowData,
|
|
@@ -89,6 +151,17 @@ export function table_resetPageIndex<
|
|
|
89
151
|
table_setPageIndex(table, newPageIndex)
|
|
90
152
|
}
|
|
91
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Resets the table's page size state slice.
|
|
156
|
+
*
|
|
157
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* table_resetPageSize(table)
|
|
162
|
+
* table_resetPageSize(table, true)
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
92
165
|
export function table_resetPageSize<
|
|
93
166
|
TFeatures extends TableFeatures,
|
|
94
167
|
TData extends RowData,
|
|
@@ -102,6 +175,16 @@ export function table_resetPageSize<
|
|
|
102
175
|
table_setPageSize(table, newPageSize)
|
|
103
176
|
}
|
|
104
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Updates the table's page size state slice.
|
|
180
|
+
*
|
|
181
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```ts
|
|
185
|
+
* table_setPageSize(table, (old) => old)
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
105
188
|
export function table_setPageSize<
|
|
106
189
|
TFeatures extends TableFeatures,
|
|
107
190
|
TData extends RowData,
|
|
@@ -119,6 +202,16 @@ export function table_setPageSize<
|
|
|
119
202
|
})
|
|
120
203
|
}
|
|
121
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Returns page options for the table.
|
|
207
|
+
*
|
|
208
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* const value = table_getPageOptions(table)
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
122
215
|
export function table_getPageOptions<
|
|
123
216
|
TFeatures extends TableFeatures,
|
|
124
217
|
TData extends RowData,
|
|
@@ -131,6 +224,16 @@ export function table_getPageOptions<
|
|
|
131
224
|
return pageOptions
|
|
132
225
|
}
|
|
133
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Returns can previous page for the table.
|
|
229
|
+
*
|
|
230
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* const value = table_getCanPreviousPage(table)
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
134
237
|
export function table_getCanPreviousPage<
|
|
135
238
|
TFeatures extends TableFeatures,
|
|
136
239
|
TData extends RowData,
|
|
@@ -138,6 +241,16 @@ export function table_getCanPreviousPage<
|
|
|
138
241
|
return (table.atoms.pagination?.get()?.pageIndex ?? 0) > 0
|
|
139
242
|
}
|
|
140
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Returns can next page for the table.
|
|
246
|
+
*
|
|
247
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```ts
|
|
251
|
+
* const value = table_getCanNextPage(table)
|
|
252
|
+
* ```
|
|
253
|
+
*/
|
|
141
254
|
export function table_getCanNextPage<
|
|
142
255
|
TFeatures extends TableFeatures,
|
|
143
256
|
TData extends RowData,
|
|
@@ -157,6 +270,17 @@ export function table_getCanNextPage<
|
|
|
157
270
|
return pageIndex < pageCount - 1
|
|
158
271
|
}
|
|
159
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Moves the table to the previous page.
|
|
275
|
+
*
|
|
276
|
+
* This delegates to `table_setPageIndex` so pagination state ownership and
|
|
277
|
+
* updater semantics remain consistent.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```ts
|
|
281
|
+
* table_previousPage(table)
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
160
284
|
export function table_previousPage<
|
|
161
285
|
TFeatures extends TableFeatures,
|
|
162
286
|
TData extends RowData,
|
|
@@ -164,6 +288,17 @@ export function table_previousPage<
|
|
|
164
288
|
return table_setPageIndex(table, (old) => old - 1)
|
|
165
289
|
}
|
|
166
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Moves the table to the next page.
|
|
293
|
+
*
|
|
294
|
+
* This delegates to `table_setPageIndex` so pagination state ownership and
|
|
295
|
+
* updater semantics remain consistent.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```ts
|
|
299
|
+
* table_nextPage(table)
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
167
302
|
export function table_nextPage<
|
|
168
303
|
TFeatures extends TableFeatures,
|
|
169
304
|
TData extends RowData,
|
|
@@ -173,6 +308,16 @@ export function table_nextPage<
|
|
|
173
308
|
})
|
|
174
309
|
}
|
|
175
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Moves the table to the first page.
|
|
313
|
+
*
|
|
314
|
+
* This is a convenience wrapper around `table_setPageIndex(table, 0)`.
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```ts
|
|
318
|
+
* table_firstPage(table)
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
176
321
|
export function table_firstPage<
|
|
177
322
|
TFeatures extends TableFeatures,
|
|
178
323
|
TData extends RowData,
|
|
@@ -180,6 +325,16 @@ export function table_firstPage<
|
|
|
180
325
|
return table_setPageIndex(table, 0)
|
|
181
326
|
}
|
|
182
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Moves the table to the last known page.
|
|
330
|
+
*
|
|
331
|
+
* The target page is derived from `table_getPageCount(table) - 1`.
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* ```ts
|
|
335
|
+
* table_lastPage(table)
|
|
336
|
+
* ```
|
|
337
|
+
*/
|
|
183
338
|
export function table_lastPage<
|
|
184
339
|
TFeatures extends TableFeatures,
|
|
185
340
|
TData extends RowData,
|
|
@@ -187,6 +342,16 @@ export function table_lastPage<
|
|
|
187
342
|
return table_setPageIndex(table, table_getPageCount(table) - 1)
|
|
188
343
|
}
|
|
189
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Returns page count for the table.
|
|
347
|
+
*
|
|
348
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* ```ts
|
|
352
|
+
* const value = table_getPageCount(table)
|
|
353
|
+
* ```
|
|
354
|
+
*/
|
|
190
355
|
export function table_getPageCount<
|
|
191
356
|
TFeatures extends TableFeatures,
|
|
192
357
|
TData extends RowData,
|
|
@@ -200,6 +365,16 @@ export function table_getPageCount<
|
|
|
200
365
|
)
|
|
201
366
|
}
|
|
202
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Returns row count for the table.
|
|
370
|
+
*
|
|
371
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```ts
|
|
375
|
+
* const value = table_getRowCount(table)
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
203
378
|
export function table_getRowCount<
|
|
204
379
|
TFeatures extends TableFeatures,
|
|
205
380
|
TData extends RowData,
|
|
@@ -35,6 +35,11 @@ export interface RowPinningFeatureConstructors<
|
|
|
35
35
|
// TableState: TableState_RowPinning
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Creates the stock row pinning feature.
|
|
40
|
+
*
|
|
41
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
42
|
+
*/
|
|
38
43
|
export function constructRowPinningFeature<
|
|
39
44
|
TFeatures extends TableFeatures,
|
|
40
45
|
TData extends RowData,
|
|
@@ -116,6 +121,9 @@ export function constructRowPinningFeature<
|
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
/**
|
|
119
|
-
* The
|
|
124
|
+
* The stock row pinning feature.
|
|
125
|
+
*
|
|
126
|
+
* Register this feature to add row pinning state and APIs for deriving top,
|
|
127
|
+
* center, and bottom row regions.
|
|
120
128
|
*/
|
|
121
129
|
export const rowPinningFeature = constructRowPinningFeature()
|
|
@@ -26,7 +26,9 @@ export interface TableOptions_RowPinning<
|
|
|
26
26
|
*/
|
|
27
27
|
keepPinnedRows?: boolean
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Called with an updater when row pinning state changes. Pair this with
|
|
30
|
+
* `state.rowPinning` when using external state; external atoms can own the
|
|
31
|
+
* slice without this callback.
|
|
30
32
|
*/
|
|
31
33
|
onRowPinningChange?: OnChangeFn<RowPinningState>
|
|
32
34
|
}
|
|
@@ -83,7 +85,7 @@ export interface Table_RowPinning<
|
|
|
83
85
|
*/
|
|
84
86
|
resetRowPinning: (defaultState?: boolean) => void
|
|
85
87
|
/**
|
|
86
|
-
* Sets
|
|
88
|
+
* Sets row pinning state using a value or updater.
|
|
87
89
|
*/
|
|
88
90
|
setRowPinning: (updater: Updater<RowPinningState>) => void
|
|
89
91
|
}
|