@tanstack/table-core 9.0.0-alpha.42 → 9.0.0-alpha.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/cells/constructCell.cjs +5 -0
- package/dist/core/cells/constructCell.cjs.map +1 -1
- package/dist/core/cells/constructCell.d.cts +5 -0
- package/dist/core/cells/constructCell.d.ts +5 -0
- package/dist/core/cells/constructCell.js +5 -0
- package/dist/core/cells/constructCell.js.map +1 -1
- package/dist/core/cells/coreCellsFeature.cjs +5 -0
- package/dist/core/cells/coreCellsFeature.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.d.cts +5 -0
- package/dist/core/cells/coreCellsFeature.d.ts +5 -0
- package/dist/core/cells/coreCellsFeature.js +5 -0
- package/dist/core/cells/coreCellsFeature.js.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.cjs +30 -0
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.d.cts +30 -0
- package/dist/core/cells/coreCellsFeature.utils.d.ts +30 -0
- package/dist/core/cells/coreCellsFeature.utils.js +30 -0
- package/dist/core/cells/coreCellsFeature.utils.js.map +1 -1
- package/dist/core/columns/constructColumn.cjs +16 -9
- package/dist/core/columns/constructColumn.cjs.map +1 -1
- package/dist/core/columns/constructColumn.d.cts +5 -0
- package/dist/core/columns/constructColumn.d.ts +5 -0
- package/dist/core/columns/constructColumn.js +16 -9
- package/dist/core/columns/constructColumn.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.cjs +9 -0
- package/dist/core/columns/coreColumnsFeature.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.d.cts +5 -0
- package/dist/core/columns/coreColumnsFeature.d.ts +5 -0
- package/dist/core/columns/coreColumnsFeature.js +10 -1
- package/dist/core/columns/coreColumnsFeature.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.types.d.cts +4 -0
- package/dist/core/columns/coreColumnsFeature.types.d.ts +4 -0
- package/dist/core/columns/coreColumnsFeature.utils.cjs +99 -4
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +92 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +92 -1
- package/dist/core/columns/coreColumnsFeature.utils.js +99 -5
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
- package/dist/core/coreFeatures.cjs +5 -0
- package/dist/core/coreFeatures.cjs.map +1 -1
- package/dist/core/coreFeatures.d.cts +5 -0
- package/dist/core/coreFeatures.d.ts +5 -0
- package/dist/core/coreFeatures.js +5 -0
- package/dist/core/coreFeatures.js.map +1 -1
- package/dist/core/headers/buildHeaderGroups.cjs +6 -1
- package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
- package/dist/core/headers/buildHeaderGroups.d.cts +5 -0
- package/dist/core/headers/buildHeaderGroups.d.ts +5 -0
- package/dist/core/headers/buildHeaderGroups.js +6 -1
- package/dist/core/headers/buildHeaderGroups.js.map +1 -1
- package/dist/core/headers/constructHeader.cjs +5 -0
- package/dist/core/headers/constructHeader.cjs.map +1 -1
- package/dist/core/headers/constructHeader.d.cts +5 -0
- package/dist/core/headers/constructHeader.d.ts +5 -0
- package/dist/core/headers/constructHeader.js +5 -0
- package/dist/core/headers/constructHeader.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.cjs +5 -0
- package/dist/core/headers/coreHeadersFeature.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.d.cts +5 -0
- package/dist/core/headers/coreHeadersFeature.d.ts +5 -0
- package/dist/core/headers/coreHeadersFeature.js +5 -0
- package/dist/core/headers/coreHeadersFeature.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.cjs +71 -2
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +60 -0
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +60 -0
- package/dist/core/headers/coreHeadersFeature.utils.js +72 -3
- package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -1
- package/dist/core/reactivity/coreReactivityFeature.types.d.cts +1 -0
- package/dist/core/reactivity/coreReactivityFeature.types.d.ts +1 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs +5 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs.map +1 -1
- package/dist/core/reactivity/coreReactivityFeature.utils.d.cts +10 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.d.ts +10 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.js +5 -0
- package/dist/core/reactivity/coreReactivityFeature.utils.js.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.cjs +5 -0
- package/dist/core/row-models/coreRowModelsFeature.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.d.cts +5 -0
- package/dist/core/row-models/coreRowModelsFeature.d.ts +5 -0
- package/dist/core/row-models/coreRowModelsFeature.js +5 -0
- package/dist/core/row-models/coreRowModelsFeature.js.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.types.d.cts +2 -1
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +2 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js +120 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -1
- package/dist/core/row-models/createCoreRowModel.cjs +5 -0
- package/dist/core/row-models/createCoreRowModel.cjs.map +1 -1
- package/dist/core/row-models/createCoreRowModel.d.cts +5 -0
- package/dist/core/row-models/createCoreRowModel.d.ts +5 -0
- package/dist/core/row-models/createCoreRowModel.js +5 -0
- package/dist/core/row-models/createCoreRowModel.js.map +1 -1
- package/dist/core/rows/constructRow.cjs +5 -0
- package/dist/core/rows/constructRow.cjs.map +1 -1
- package/dist/core/rows/constructRow.d.cts +5 -0
- package/dist/core/rows/constructRow.d.ts +5 -0
- package/dist/core/rows/constructRow.js +5 -0
- package/dist/core/rows/constructRow.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.cjs +5 -0
- package/dist/core/rows/coreRowsFeature.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.d.cts +5 -0
- package/dist/core/rows/coreRowsFeature.d.ts +5 -0
- package/dist/core/rows/coreRowsFeature.js +5 -0
- package/dist/core/rows/coreRowsFeature.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.types.d.cts +3 -0
- package/dist/core/rows/coreRowsFeature.types.d.ts +3 -0
- package/dist/core/rows/coreRowsFeature.utils.cjs +104 -4
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +101 -0
- package/dist/core/rows/coreRowsFeature.utils.d.ts +101 -0
- package/dist/core/rows/coreRowsFeature.utils.js +104 -4
- package/dist/core/rows/coreRowsFeature.utils.js.map +1 -1
- package/dist/core/table/constructTable.cjs +34 -19
- package/dist/core/table/constructTable.cjs.map +1 -1
- package/dist/core/table/constructTable.d.cts +10 -0
- package/dist/core/table/constructTable.d.ts +10 -0
- package/dist/core/table/constructTable.js +34 -19
- package/dist/core/table/constructTable.js.map +1 -1
- package/dist/core/table/coreTablesFeature.cjs +5 -0
- package/dist/core/table/coreTablesFeature.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.d.cts +5 -0
- package/dist/core/table/coreTablesFeature.d.ts +5 -0
- package/dist/core/table/coreTablesFeature.js +5 -0
- package/dist/core/table/coreTablesFeature.js.map +1 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +23 -10
- package/dist/core/table/coreTablesFeature.types.d.ts +23 -10
- package/dist/core/table/coreTablesFeature.utils.cjs +60 -1
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +46 -1
- package/dist/core/table/coreTablesFeature.utils.d.ts +46 -1
- package/dist/core/table/coreTablesFeature.utils.js +60 -2
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.cjs +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.d.cts +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.d.ts +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.js +9 -1
- package/dist/features/column-faceting/columnFacetingFeature.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +12 -6
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +12 -6
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +60 -0
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +5 -0
- package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.cjs +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.js +5 -0
- package/dist/features/column-faceting/createFacetedRowModel.js.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.d.cts +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.d.ts +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js +5 -0
- package/dist/features/column-faceting/createFacetedUniqueValues.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.cjs +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.d.cts +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.d.ts +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.js +10 -2
- package/dist/features/column-filtering/columnFilteringFeature.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +7 -4
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +7 -4
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +113 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +111 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +111 -0
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +113 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.cjs +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.d.cts +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.d.ts +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.js +5 -0
- package/dist/features/column-filtering/createFilteredRowModel.js.map +1 -1
- package/dist/features/column-filtering/filterRowsUtils.cjs +5 -0
- package/dist/features/column-filtering/filterRowsUtils.cjs.map +1 -1
- package/dist/features/column-filtering/filterRowsUtils.js +5 -0
- package/dist/features/column-filtering/filterRowsUtils.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.cjs +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.d.cts +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.d.ts +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.js +9 -1
- package/dist/features/column-grouping/columnGroupingFeature.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +7 -3
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +7 -3
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +151 -0
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -1
- package/dist/features/column-grouping/createGroupedRowModel.cjs +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.cjs.map +1 -1
- package/dist/features/column-grouping/createGroupedRowModel.d.cts +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.d.ts +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.js +5 -0
- package/dist/features/column-grouping/createGroupedRowModel.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.cjs +12 -3
- package/dist/features/column-ordering/columnOrderingFeature.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.d.cts +9 -1
- package/dist/features/column-ordering/columnOrderingFeature.d.ts +9 -1
- package/dist/features/column-ordering/columnOrderingFeature.js +12 -3
- package/dist/features/column-ordering/columnOrderingFeature.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +4 -2
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +4 -2
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +98 -8
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +81 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +81 -0
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +98 -8
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.cjs +17 -30
- package/dist/features/column-pinning/columnPinningFeature.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.d.cts +9 -1
- package/dist/features/column-pinning/columnPinningFeature.d.ts +9 -1
- package/dist/features/column-pinning/columnPinningFeature.js +17 -30
- package/dist/features/column-pinning/columnPinningFeature.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +6 -2
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +6 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +360 -17
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +314 -3
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +314 -3
- package/dist/features/column-pinning/columnPinningFeature.utils.js +361 -18
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.cjs +9 -2
- package/dist/features/column-resizing/columnResizingFeature.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.d.cts +9 -2
- package/dist/features/column-resizing/columnResizingFeature.d.ts +9 -2
- package/dist/features/column-resizing/columnResizingFeature.js +9 -2
- package/dist/features/column-resizing/columnResizingFeature.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +14 -6
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +14 -6
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js +81 -0
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.cjs +50 -12
- package/dist/features/column-sizing/columnSizingFeature.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.d.cts +10 -2
- package/dist/features/column-sizing/columnSizingFeature.d.ts +10 -2
- package/dist/features/column-sizing/columnSizingFeature.js +51 -13
- package/dist/features/column-sizing/columnSizingFeature.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +6 -3
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +6 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +151 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +141 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +141 -0
- package/dist/features/column-sizing/columnSizingFeature.utils.js +151 -3
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +26 -25
- package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.d.cts +9 -1
- package/dist/features/column-visibility/columnVisibilityFeature.d.ts +9 -1
- package/dist/features/column-visibility/columnVisibilityFeature.js +27 -26
- package/dist/features/column-visibility/columnVisibilityFeature.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +4 -3
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +4 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +172 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +143 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +143 -3
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +173 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.cjs +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.d.cts +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.d.ts +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.js +9 -2
- package/dist/features/global-filtering/globalFilteringFeature.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +4 -2
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +4 -2
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +51 -0
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
- package/dist/features/row-expanding/createExpandedRowModel.cjs +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.cjs.map +1 -1
- package/dist/features/row-expanding/createExpandedRowModel.d.cts +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.d.ts +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.js +10 -0
- package/dist/features/row-expanding/createExpandedRowModel.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.cjs +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.d.cts +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.d.ts +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.js +9 -1
- package/dist/features/row-expanding/rowExpandingFeature.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +10 -5
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +10 -5
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +151 -0
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -1
- package/dist/features/row-pagination/createPaginatedRowModel.cjs +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.cjs.map +1 -1
- package/dist/features/row-pagination/createPaginatedRowModel.d.cts +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.d.ts +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js +5 -0
- package/dist/features/row-pagination/createPaginatedRowModel.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.cjs +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.d.cts +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.d.ts +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.js +9 -1
- package/dist/features/row-pagination/rowPaginationFeature.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +11 -7
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +11 -7
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +175 -0
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.cjs +9 -1
- package/dist/features/row-pinning/rowPinningFeature.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.d.cts +9 -1
- package/dist/features/row-pinning/rowPinningFeature.d.ts +9 -1
- package/dist/features/row-pinning/rowPinningFeature.js +9 -1
- package/dist/features/row-pinning/rowPinningFeature.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +4 -2
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +4 -2
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js +112 -0
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.cjs +9 -1
- package/dist/features/row-selection/rowSelectionFeature.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.d.cts +9 -1
- package/dist/features/row-selection/rowSelectionFeature.d.ts +9 -1
- package/dist/features/row-selection/rowSelectionFeature.js +9 -1
- package/dist/features/row-selection/rowSelectionFeature.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +4 -2
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +4 -2
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js +259 -0
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.cjs +5 -0
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.d.cts +5 -0
- package/dist/features/row-sorting/createSortedRowModel.d.ts +5 -0
- package/dist/features/row-sorting/createSortedRowModel.js +5 -0
- package/dist/features/row-sorting/createSortedRowModel.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.cjs +11 -3
- package/dist/features/row-sorting/rowSortingFeature.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.d.cts +9 -1
- package/dist/features/row-sorting/rowSortingFeature.d.ts +9 -1
- package/dist/features/row-sorting/rowSortingFeature.js +11 -3
- package/dist/features/row-sorting/rowSortingFeature.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +7 -3
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +7 -3
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js +151 -0
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -1
- package/dist/features/stockFeatures.cjs +5 -0
- package/dist/features/stockFeatures.cjs.map +1 -1
- package/dist/features/stockFeatures.d.cts +5 -0
- package/dist/features/stockFeatures.d.ts +5 -0
- package/dist/features/stockFeatures.js +5 -0
- package/dist/features/stockFeatures.js.map +1 -1
- package/dist/flex-render.cjs +10 -0
- package/dist/flex-render.cjs.map +1 -1
- package/dist/flex-render.d.cts +10 -0
- package/dist/flex-render.d.ts +10 -0
- package/dist/flex-render.js +10 -0
- package/dist/flex-render.js.map +1 -1
- package/dist/fns/aggregationFns.cjs +5 -0
- package/dist/fns/aggregationFns.cjs.map +1 -1
- package/dist/fns/aggregationFns.d.cts +5 -0
- package/dist/fns/aggregationFns.d.ts +5 -0
- package/dist/fns/aggregationFns.js +5 -0
- package/dist/fns/aggregationFns.js.map +1 -1
- package/dist/fns/filterFns.cjs +5 -0
- package/dist/fns/filterFns.cjs.map +1 -1
- package/dist/fns/filterFns.d.cts +5 -0
- package/dist/fns/filterFns.d.ts +5 -0
- package/dist/fns/filterFns.js +5 -0
- package/dist/fns/filterFns.js.map +1 -1
- package/dist/fns/sortFns.cjs +49 -4
- package/dist/fns/sortFns.cjs.map +1 -1
- package/dist/fns/sortFns.d.cts +41 -0
- package/dist/fns/sortFns.d.ts +41 -0
- package/dist/fns/sortFns.js +49 -4
- package/dist/fns/sortFns.js.map +1 -1
- package/dist/helpers/columnHelper.cjs.map +1 -1
- package/dist/helpers/columnHelper.js.map +1 -1
- package/dist/helpers/tableFeatures.cjs.map +1 -1
- package/dist/helpers/tableFeatures.js.map +1 -1
- package/dist/helpers/tableOptions.cjs +6 -0
- package/dist/helpers/tableOptions.cjs.map +1 -1
- package/dist/helpers/tableOptions.d.cts +26 -0
- package/dist/helpers/tableOptions.d.ts +26 -0
- package/dist/helpers/tableOptions.js +6 -0
- package/dist/helpers/tableOptions.js.map +1 -1
- package/dist/reactivity.cjs +1 -3
- package/dist/reactivity.d.cts +1 -2
- package/dist/reactivity.d.ts +1 -2
- package/dist/reactivity.js +1 -2
- package/dist/static-functions.cjs +2 -1
- package/dist/static-functions.d.cts +4 -4
- package/dist/static-functions.d.ts +4 -4
- package/dist/static-functions.js +4 -4
- package/dist/store-reactivity-bindings.cjs +36 -0
- package/dist/store-reactivity-bindings.cjs.map +1 -0
- package/dist/store-reactivity-bindings.d.cts +22 -0
- package/dist/store-reactivity-bindings.d.ts +22 -0
- package/dist/store-reactivity-bindings.js +35 -0
- package/dist/store-reactivity-bindings.js.map +1 -0
- package/dist/utils.cjs +45 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +45 -0
- package/dist/utils.d.ts +45 -0
- package/dist/utils.js +45 -0
- package/dist/utils.js.map +1 -1
- package/package.json +5 -1
- package/src/core/cells/constructCell.ts +5 -0
- package/src/core/cells/coreCellsFeature.ts +5 -0
- package/src/core/cells/coreCellsFeature.utils.ts +30 -0
- package/src/core/columns/constructColumn.ts +7 -1
- package/src/core/columns/coreColumnsFeature.ts +10 -0
- package/src/core/columns/coreColumnsFeature.types.ts +4 -0
- package/src/core/columns/coreColumnsFeature.utils.ts +109 -8
- package/src/core/coreFeatures.ts +5 -0
- package/src/core/headers/buildHeaderGroups.ts +7 -1
- package/src/core/headers/constructHeader.ts +5 -0
- package/src/core/headers/coreHeadersFeature.ts +5 -0
- package/src/core/headers/coreHeadersFeature.utils.ts +86 -8
- package/src/core/reactivity/coreReactivityFeature.types.ts +1 -0
- package/src/core/reactivity/coreReactivityFeature.utils.ts +15 -0
- package/src/core/row-models/coreRowModelsFeature.ts +5 -0
- package/src/core/row-models/coreRowModelsFeature.types.ts +2 -1
- package/src/core/row-models/coreRowModelsFeature.utils.ts +120 -0
- package/src/core/row-models/createCoreRowModel.ts +5 -0
- package/src/core/rows/constructRow.ts +5 -0
- package/src/core/rows/coreRowsFeature.ts +5 -0
- package/src/core/rows/coreRowsFeature.types.ts +3 -0
- package/src/core/rows/coreRowsFeature.utils.ts +106 -7
- package/src/core/table/constructTable.ts +37 -19
- package/src/core/table/coreTablesFeature.ts +5 -0
- package/src/core/table/coreTablesFeature.types.ts +23 -10
- package/src/core/table/coreTablesFeature.utils.ts +74 -1
- package/src/features/column-faceting/columnFacetingFeature.ts +9 -1
- package/src/features/column-faceting/columnFacetingFeature.types.ts +12 -6
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +60 -0
- package/src/features/column-faceting/createFacetedMinMaxValues.ts +5 -0
- package/src/features/column-faceting/createFacetedRowModel.ts +5 -0
- package/src/features/column-faceting/createFacetedUniqueValues.ts +5 -0
- package/src/features/column-filtering/columnFilteringFeature.ts +10 -2
- package/src/features/column-filtering/columnFilteringFeature.types.ts +7 -4
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +113 -2
- package/src/features/column-filtering/createFilteredRowModel.ts +5 -0
- package/src/features/column-filtering/filterRowsUtils.ts +5 -0
- package/src/features/column-grouping/columnGroupingFeature.ts +9 -1
- package/src/features/column-grouping/columnGroupingFeature.types.ts +7 -3
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +151 -0
- package/src/features/column-grouping/createGroupedRowModel.ts +5 -0
- package/src/features/column-ordering/columnOrderingFeature.ts +10 -1
- package/src/features/column-ordering/columnOrderingFeature.types.ts +4 -2
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +110 -18
- package/src/features/column-pinning/columnPinningFeature.ts +11 -12
- package/src/features/column-pinning/columnPinningFeature.types.ts +6 -2
- package/src/features/column-pinning/columnPinningFeature.utils.ts +390 -57
- package/src/features/column-resizing/columnResizingFeature.ts +9 -2
- package/src/features/column-resizing/columnResizingFeature.types.ts +14 -6
- package/src/features/column-resizing/columnResizingFeature.utils.ts +81 -0
- package/src/features/column-sizing/columnSizingFeature.ts +38 -18
- package/src/features/column-sizing/columnSizingFeature.types.ts +6 -3
- package/src/features/column-sizing/columnSizingFeature.utils.ts +168 -9
- package/src/features/column-visibility/columnVisibilityFeature.ts +15 -21
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +4 -3
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +179 -23
- package/src/features/global-filtering/globalFilteringFeature.ts +9 -2
- package/src/features/global-filtering/globalFilteringFeature.types.ts +4 -2
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +51 -0
- package/src/features/row-expanding/createExpandedRowModel.ts +10 -0
- package/src/features/row-expanding/rowExpandingFeature.ts +9 -1
- package/src/features/row-expanding/rowExpandingFeature.types.ts +10 -5
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +151 -0
- package/src/features/row-pagination/createPaginatedRowModel.ts +5 -0
- package/src/features/row-pagination/rowPaginationFeature.ts +9 -1
- package/src/features/row-pagination/rowPaginationFeature.types.ts +11 -7
- package/src/features/row-pagination/rowPaginationFeature.utils.ts +175 -0
- package/src/features/row-pinning/rowPinningFeature.ts +9 -1
- package/src/features/row-pinning/rowPinningFeature.types.ts +4 -2
- package/src/features/row-pinning/rowPinningFeature.utils.ts +112 -0
- package/src/features/row-selection/rowSelectionFeature.ts +9 -1
- package/src/features/row-selection/rowSelectionFeature.types.ts +4 -2
- package/src/features/row-selection/rowSelectionFeature.utils.ts +259 -0
- package/src/features/row-sorting/createSortedRowModel.ts +5 -0
- package/src/features/row-sorting/rowSortingFeature.ts +11 -3
- package/src/features/row-sorting/rowSortingFeature.types.ts +7 -3
- package/src/features/row-sorting/rowSortingFeature.utils.ts +151 -0
- package/src/features/stockFeatures.ts +5 -0
- package/src/flex-render.ts +10 -0
- package/src/fns/aggregationFns.ts +5 -0
- package/src/fns/filterFns.ts +5 -0
- package/src/fns/sortFns.ts +50 -5
- package/src/helpers/tableOptions.ts +32 -0
- package/src/reactivity.ts +0 -1
- package/src/store-reactivity-bindings.ts +35 -0
- package/src/types/Table.ts +1 -1
- package/src/utils.ts +45 -0
- package/dist/core/reactivity/constructReactivityBindings.cjs +0 -19
- package/dist/core/reactivity/constructReactivityBindings.cjs.map +0 -1
- package/dist/core/reactivity/constructReactivityBindings.d.cts +0 -7
- package/dist/core/reactivity/constructReactivityBindings.d.ts +0 -7
- package/dist/core/reactivity/constructReactivityBindings.js +0 -19
- package/dist/core/reactivity/constructReactivityBindings.js.map +0 -1
- package/src/core/reactivity/constructReactivityBindings.ts +0 -19
|
@@ -4,6 +4,16 @@ import type { TableFeatures } from '../../types/TableFeatures'
|
|
|
4
4
|
import type { RowData } from '../../types/type-utils'
|
|
5
5
|
import type { RowModel } from './coreRowModelsFeature.types'
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Returns core row model for the table.
|
|
9
|
+
*
|
|
10
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const value = table_getCoreRowModel(table)
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
7
17
|
export function table_getCoreRowModel<
|
|
8
18
|
TFeatures extends TableFeatures,
|
|
9
19
|
TData extends RowData,
|
|
@@ -17,6 +27,16 @@ export function table_getCoreRowModel<
|
|
|
17
27
|
return table._rowModels.coreRowModel()
|
|
18
28
|
}
|
|
19
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Returns pre filtered row model for the table.
|
|
32
|
+
*
|
|
33
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const value = table_getPreFilteredRowModel(table)
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
20
40
|
export function table_getPreFilteredRowModel<
|
|
21
41
|
TFeatures extends TableFeatures,
|
|
22
42
|
TData extends RowData,
|
|
@@ -24,6 +44,16 @@ export function table_getPreFilteredRowModel<
|
|
|
24
44
|
return table.getCoreRowModel()
|
|
25
45
|
}
|
|
26
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Returns filtered row model for the table.
|
|
49
|
+
*
|
|
50
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const value = table_getFilteredRowModel(table)
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
27
57
|
export function table_getFilteredRowModel<
|
|
28
58
|
TFeatures extends TableFeatures,
|
|
29
59
|
TData extends RowData,
|
|
@@ -40,6 +70,16 @@ export function table_getFilteredRowModel<
|
|
|
40
70
|
return table._rowModels.filteredRowModel()
|
|
41
71
|
}
|
|
42
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Returns pre grouped row model for the table.
|
|
75
|
+
*
|
|
76
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const value = table_getPreGroupedRowModel(table)
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
43
83
|
export function table_getPreGroupedRowModel<
|
|
44
84
|
TFeatures extends TableFeatures,
|
|
45
85
|
TData extends RowData,
|
|
@@ -47,6 +87,16 @@ export function table_getPreGroupedRowModel<
|
|
|
47
87
|
return table.getFilteredRowModel()
|
|
48
88
|
}
|
|
49
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Returns grouped row model for the table.
|
|
92
|
+
*
|
|
93
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const value = table_getGroupedRowModel(table)
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
50
100
|
export function table_getGroupedRowModel<
|
|
51
101
|
TFeatures extends TableFeatures,
|
|
52
102
|
TData extends RowData,
|
|
@@ -63,6 +113,16 @@ export function table_getGroupedRowModel<
|
|
|
63
113
|
return table._rowModels.groupedRowModel()
|
|
64
114
|
}
|
|
65
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Returns pre sorted row model for the table.
|
|
118
|
+
*
|
|
119
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```ts
|
|
123
|
+
* const value = table_getPreSortedRowModel(table)
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
66
126
|
export function table_getPreSortedRowModel<
|
|
67
127
|
TFeatures extends TableFeatures,
|
|
68
128
|
TData extends RowData,
|
|
@@ -70,6 +130,16 @@ export function table_getPreSortedRowModel<
|
|
|
70
130
|
return table.getGroupedRowModel()
|
|
71
131
|
}
|
|
72
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Returns sorted row model for the table.
|
|
135
|
+
*
|
|
136
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* const value = table_getSortedRowModel(table)
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
73
143
|
export function table_getSortedRowModel<
|
|
74
144
|
TFeatures extends TableFeatures,
|
|
75
145
|
TData extends RowData,
|
|
@@ -86,6 +156,16 @@ export function table_getSortedRowModel<
|
|
|
86
156
|
return table._rowModels.sortedRowModel()
|
|
87
157
|
}
|
|
88
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Returns pre expanded row model for the table.
|
|
161
|
+
*
|
|
162
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* const value = table_getPreExpandedRowModel(table)
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
89
169
|
export function table_getPreExpandedRowModel<
|
|
90
170
|
TFeatures extends TableFeatures,
|
|
91
171
|
TData extends RowData,
|
|
@@ -93,6 +173,16 @@ export function table_getPreExpandedRowModel<
|
|
|
93
173
|
return table.getSortedRowModel()
|
|
94
174
|
}
|
|
95
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Returns expanded row model for the table.
|
|
178
|
+
*
|
|
179
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* const value = table_getExpandedRowModel(table)
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
96
186
|
export function table_getExpandedRowModel<
|
|
97
187
|
TFeatures extends TableFeatures,
|
|
98
188
|
TData extends RowData,
|
|
@@ -109,6 +199,16 @@ export function table_getExpandedRowModel<
|
|
|
109
199
|
return table._rowModels.expandedRowModel()
|
|
110
200
|
}
|
|
111
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Returns pre paginated row model for the table.
|
|
204
|
+
*
|
|
205
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```ts
|
|
209
|
+
* const value = table_getPrePaginatedRowModel(table)
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
112
212
|
export function table_getPrePaginatedRowModel<
|
|
113
213
|
TFeatures extends TableFeatures,
|
|
114
214
|
TData extends RowData,
|
|
@@ -116,6 +216,16 @@ export function table_getPrePaginatedRowModel<
|
|
|
116
216
|
return table.getExpandedRowModel()
|
|
117
217
|
}
|
|
118
218
|
|
|
219
|
+
/**
|
|
220
|
+
* Returns paginated row model for the table.
|
|
221
|
+
*
|
|
222
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* const value = table_getPaginatedRowModel(table)
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
119
229
|
export function table_getPaginatedRowModel<
|
|
120
230
|
TFeatures extends TableFeatures,
|
|
121
231
|
TData extends RowData,
|
|
@@ -132,6 +242,16 @@ export function table_getPaginatedRowModel<
|
|
|
132
242
|
return table._rowModels.paginatedRowModel()
|
|
133
243
|
}
|
|
134
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Returns row model for the table.
|
|
247
|
+
*
|
|
248
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```ts
|
|
252
|
+
* const value = table_getRowModel(table)
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
135
255
|
export function table_getRowModel<
|
|
136
256
|
TFeatures extends TableFeatures,
|
|
137
257
|
TData extends RowData,
|
|
@@ -7,6 +7,11 @@ import type { TableFeatures } from '../../types/TableFeatures'
|
|
|
7
7
|
import type { Row } from '../../types/Row'
|
|
8
8
|
import type { RowData } from '../../types/type-utils'
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Creates a memoized core 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 createCoreRowModel<
|
|
11
16
|
TFeatures extends TableFeatures,
|
|
12
17
|
TData extends RowData,
|
|
@@ -21,6 +21,11 @@ function getRowPrototype<
|
|
|
21
21
|
return table._rowPrototype
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a row instance from normalized table internals.
|
|
26
|
+
*
|
|
27
|
+
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
28
|
+
*/
|
|
24
29
|
export const constructRow = <
|
|
25
30
|
TFeatures extends TableFeatures,
|
|
26
31
|
TData extends RowData,
|
|
@@ -28,6 +28,11 @@ export interface CoreRowsFeatureConstructors<
|
|
|
28
28
|
// Table: Table_Rows<TFeatures, TData>
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Creates the stock core rows feature.
|
|
33
|
+
*
|
|
34
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
35
|
+
*/
|
|
31
36
|
export function constructCoreRowsFeature<
|
|
32
37
|
TFeatures extends TableFeatures,
|
|
33
38
|
TData extends RowData,
|
|
@@ -48,6 +48,9 @@ export interface Row_Row<
|
|
|
48
48
|
TFeatures extends TableFeatures,
|
|
49
49
|
TData extends RowData,
|
|
50
50
|
> extends Row_CoreProperties<TFeatures, TData> {
|
|
51
|
+
/**
|
|
52
|
+
* Returns all of the cells for the row by column id.
|
|
53
|
+
*/
|
|
51
54
|
getAllCellsByColumnId: () => Record<string, Cell<TFeatures, TData, unknown>>
|
|
52
55
|
/**
|
|
53
56
|
* Returns all of the cells for the row.
|
|
@@ -6,6 +6,16 @@ import type { TableFeatures } from '../../types/TableFeatures'
|
|
|
6
6
|
import type { Row } from '../../types/Row'
|
|
7
7
|
import type { Cell } from '../../types/Cell'
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Returns value for a row.
|
|
11
|
+
*
|
|
12
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const value = row_getValue(row)
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
9
19
|
export function row_getValue<
|
|
10
20
|
TFeatures extends TableFeatures,
|
|
11
21
|
TData extends RowData,
|
|
@@ -25,6 +35,16 @@ export function row_getValue<
|
|
|
25
35
|
return row._valuesCache[columnId]
|
|
26
36
|
}
|
|
27
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Returns unique values for a row.
|
|
40
|
+
*
|
|
41
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const value = row_getUniqueValues(row)
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
28
48
|
export function row_getUniqueValues<
|
|
29
49
|
TFeatures extends TableFeatures,
|
|
30
50
|
TData extends RowData,
|
|
@@ -52,6 +72,17 @@ export function row_getUniqueValues<
|
|
|
52
72
|
return row._uniqueValuesCache[columnId]
|
|
53
73
|
}
|
|
54
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Returns a renderable row value for a column.
|
|
77
|
+
*
|
|
78
|
+
* If the accessor value is nullish, the table's `renderFallbackValue` is used
|
|
79
|
+
* instead.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const value = row_renderValue(row)
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
55
86
|
export function row_renderValue<
|
|
56
87
|
TFeatures extends TableFeatures,
|
|
57
88
|
TData extends RowData,
|
|
@@ -59,6 +90,16 @@ export function row_renderValue<
|
|
|
59
90
|
return row.getValue(columnId) ?? row.table.options.renderFallbackValue
|
|
60
91
|
}
|
|
61
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Returns leaf rows for a row.
|
|
95
|
+
*
|
|
96
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const value = row_getLeafRows(row)
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
62
103
|
export function row_getLeafRows<
|
|
63
104
|
TFeatures extends TableFeatures,
|
|
64
105
|
TData extends RowData,
|
|
@@ -66,6 +107,16 @@ export function row_getLeafRows<
|
|
|
66
107
|
return flattenBy(row.subRows, (d) => d.subRows)
|
|
67
108
|
}
|
|
68
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Returns parent row for a row.
|
|
112
|
+
*
|
|
113
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const value = row_getParentRow(row)
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
69
120
|
export function row_getParentRow<
|
|
70
121
|
TFeatures extends TableFeatures,
|
|
71
122
|
TData extends RowData,
|
|
@@ -73,6 +124,16 @@ export function row_getParentRow<
|
|
|
73
124
|
return row.parentId ? row.table.getRow(row.parentId, true) : undefined
|
|
74
125
|
}
|
|
75
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Returns parent rows for a row.
|
|
129
|
+
*
|
|
130
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* const value = row_getParentRows(row)
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
76
137
|
export function row_getParentRows<
|
|
77
138
|
TFeatures extends TableFeatures,
|
|
78
139
|
TData extends RowData,
|
|
@@ -89,6 +150,16 @@ export function row_getParentRows<
|
|
|
89
150
|
return parentRows.reverse()
|
|
90
151
|
}
|
|
91
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Returns all cells for a row.
|
|
155
|
+
*
|
|
156
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* const value = row_getAllCells(row)
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
92
163
|
export function row_getAllCells<
|
|
93
164
|
TFeatures extends TableFeatures,
|
|
94
165
|
TData extends RowData,
|
|
@@ -98,19 +169,37 @@ export function row_getAllCells<
|
|
|
98
169
|
})
|
|
99
170
|
}
|
|
100
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Returns all cells by column id for a row.
|
|
174
|
+
*
|
|
175
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```ts
|
|
179
|
+
* const value = row_getAllCellsByColumnId(row)
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
101
182
|
export function row_getAllCellsByColumnId<
|
|
102
183
|
TFeatures extends TableFeatures,
|
|
103
184
|
TData extends RowData,
|
|
104
185
|
>(row: Row<TFeatures, TData>) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
{} as Record<string, Cell<TFeatures, TData, unknown>>,
|
|
111
|
-
)
|
|
186
|
+
const result: Record<string, Cell<TFeatures, TData, unknown>> = {}
|
|
187
|
+
for (const cell of row.getAllCells()) {
|
|
188
|
+
result[cell.column.id] = cell
|
|
189
|
+
}
|
|
190
|
+
return result
|
|
112
191
|
}
|
|
113
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Returns row id for the table.
|
|
195
|
+
*
|
|
196
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* const value = table_getRowId(table)
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
114
203
|
export function table_getRowId<
|
|
115
204
|
TFeatures extends TableFeatures,
|
|
116
205
|
TData extends RowData,
|
|
@@ -126,6 +215,16 @@ export function table_getRowId<
|
|
|
126
215
|
)
|
|
127
216
|
}
|
|
128
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Returns row for the table.
|
|
220
|
+
*
|
|
221
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* const value = table_getRow(table)
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
129
228
|
export function table_getRow<
|
|
130
229
|
TFeatures extends TableFeatures,
|
|
131
230
|
TData extends RowData,
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { coreFeatures } from '../coreFeatures'
|
|
2
2
|
import { cloneState } from '../../utils'
|
|
3
3
|
import { atomToStore } from '../reactivity/coreReactivityFeature.utils'
|
|
4
|
+
import { table_syncExternalStateToBaseAtoms } from './coreTablesFeature.utils'
|
|
4
5
|
import type { RowData } from '../../types/type-utils'
|
|
5
6
|
import type { TableFeature, TableFeatures } from '../../types/TableFeatures'
|
|
6
7
|
import type { Table, Table_Internal } from '../../types/Table'
|
|
7
8
|
import type { TableOptions } from '../../types/TableOptions'
|
|
8
9
|
import type { TableState } from '../../types/TableState'
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Builds the initial table state from registered features and user initial state.
|
|
13
|
+
*
|
|
14
|
+
* Each feature contributes its default state before user-provided `initialState` values are merged in.
|
|
15
|
+
*/
|
|
10
16
|
export function getInitialTableState<TFeatures extends TableFeatures>(
|
|
11
17
|
features: TFeatures,
|
|
12
18
|
initialState: Partial<TableState<TFeatures>> | undefined = {},
|
|
@@ -17,6 +23,11 @@ export function getInitialTableState<TFeatures extends TableFeatures>(
|
|
|
17
23
|
return cloneState(initialState) as TableState<TFeatures>
|
|
18
24
|
}
|
|
19
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a table instance from normalized table internals.
|
|
28
|
+
*
|
|
29
|
+
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
30
|
+
*/
|
|
20
31
|
export function constructTable<
|
|
21
32
|
TFeatures extends TableFeatures,
|
|
22
33
|
TData extends RowData,
|
|
@@ -28,12 +39,6 @@ export function constructTable<
|
|
|
28
39
|
_features: { ...coreFeatures, ...tableOptions._features },
|
|
29
40
|
_rowModels: {},
|
|
30
41
|
_rowModelFns: {},
|
|
31
|
-
get options() {
|
|
32
|
-
return this.optionsStore.get()
|
|
33
|
-
},
|
|
34
|
-
set options(value) {
|
|
35
|
-
this.optionsStore.set(() => value)
|
|
36
|
-
},
|
|
37
42
|
baseAtoms: {},
|
|
38
43
|
atoms: {},
|
|
39
44
|
} as Table_Internal<TFeatures, TData>
|
|
@@ -44,10 +49,26 @@ export function constructTable<
|
|
|
44
49
|
return Object.assign(obj, feature.getDefaultTableOptions?.(table))
|
|
45
50
|
}, {}) as TableOptions<TFeatures, TData>
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
const mergedOptions = { ...defaultOptions, ...tableOptions }
|
|
53
|
+
|
|
54
|
+
if (_reactivity.createOptionsStore) {
|
|
55
|
+
// @ts-ignore - direct set
|
|
56
|
+
table.optionsStore = _reactivity.createWritableAtom<
|
|
57
|
+
TableOptions<TFeatures, TData>
|
|
58
|
+
>(mergedOptions, { debugName: 'table/optionsStore' })
|
|
59
|
+
Object.defineProperty(table, 'options', {
|
|
60
|
+
configurable: true,
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get() {
|
|
63
|
+
return table.optionsStore!.get()
|
|
64
|
+
},
|
|
65
|
+
set(value) {
|
|
66
|
+
table.optionsStore!.set(() => value) // or your real update shape
|
|
67
|
+
},
|
|
68
|
+
})
|
|
69
|
+
} else {
|
|
70
|
+
table.options = mergedOptions
|
|
71
|
+
}
|
|
51
72
|
|
|
52
73
|
table.initialState = getInitialTableState(
|
|
53
74
|
table._features,
|
|
@@ -67,16 +88,10 @@ export function constructTable<
|
|
|
67
88
|
},
|
|
68
89
|
) as any
|
|
69
90
|
|
|
70
|
-
// create readonly derived atom: on each get(), read
|
|
91
|
+
// create readonly derived atom: on each get(), read either external atom or base atom
|
|
71
92
|
;(table.atoms as any)[key] = _reactivity.createReadonlyAtom(
|
|
72
93
|
() => {
|
|
73
|
-
|
|
74
|
-
const opts = table.optionsStore.get()
|
|
75
|
-
const state = opts.state
|
|
76
|
-
if (key in (state ?? {})) {
|
|
77
|
-
return state![key]
|
|
78
|
-
}
|
|
79
|
-
const externalAtom = opts.atoms?.[key]
|
|
94
|
+
const externalAtom = table.options.atoms?.[key]
|
|
80
95
|
if (externalAtom) {
|
|
81
96
|
return externalAtom.get()
|
|
82
97
|
}
|
|
@@ -86,6 +101,8 @@ export function constructTable<
|
|
|
86
101
|
)
|
|
87
102
|
}
|
|
88
103
|
|
|
104
|
+
table_syncExternalStateToBaseAtoms(table)
|
|
105
|
+
|
|
89
106
|
table.store = atomToStore(
|
|
90
107
|
_reactivity.createReadonlyAtom(
|
|
91
108
|
() => {
|
|
@@ -114,7 +131,8 @@ export function constructTable<
|
|
|
114
131
|
|
|
115
132
|
Row Models: ${rowModels.length ? rowModels.join('\n ') : '(none)'}
|
|
116
133
|
|
|
117
|
-
States: ${states.join('\n ')}`,
|
|
134
|
+
States: ${states.join('\n ')}\n`,
|
|
135
|
+
{ table },
|
|
118
136
|
)
|
|
119
137
|
}
|
|
120
138
|
|
|
@@ -12,6 +12,11 @@ export interface CoreTablesFeatureConstructors<
|
|
|
12
12
|
// TableOptions: TableOptions_Table<TFeatures, TData>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Creates the stock core tables feature.
|
|
17
|
+
*
|
|
18
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
19
|
+
*/
|
|
15
20
|
export function constructCoreTablesFeature<
|
|
16
21
|
TFeatures extends TableFeatures,
|
|
17
22
|
TData extends RowData,
|
|
@@ -76,9 +76,9 @@ export interface TableOptions_Table<
|
|
|
76
76
|
/**
|
|
77
77
|
* Optionally, provide your own external writable atoms for individual state slices.
|
|
78
78
|
* When an atom is provided for a given slice, it takes precedence over `options.state[key]`
|
|
79
|
-
* and the internal base atom for that slice.
|
|
80
|
-
*
|
|
81
|
-
*
|
|
79
|
+
* and the internal base atom for that slice. Feature state update APIs write through
|
|
80
|
+
* the corresponding atom updater, so external atoms are the preferred v9 ownership
|
|
81
|
+
* model for app-managed table state slices.
|
|
82
82
|
*/
|
|
83
83
|
readonly atoms?: ExternalAtoms<TFeatures>
|
|
84
84
|
/**
|
|
@@ -90,8 +90,10 @@ export interface TableOptions_Table<
|
|
|
90
90
|
*/
|
|
91
91
|
readonly data: ReadonlyArray<TData>
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
93
|
+
* Optionally provide starting values for registered table state slices.
|
|
94
|
+
* Feature reset APIs use this value by default, and many reset APIs accept
|
|
95
|
+
* `true` to reset to that feature's blank/default state instead. Changing this
|
|
96
|
+
* object later does not reset table state, so it does not need to be stable.
|
|
95
97
|
*/
|
|
96
98
|
readonly initialState?: Partial<TableState<TFeatures>>
|
|
97
99
|
/**
|
|
@@ -106,7 +108,11 @@ export interface TableOptions_Table<
|
|
|
106
108
|
*/
|
|
107
109
|
readonly meta?: TableMeta<TFeatures, TData>
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* Optionally provide externally managed values for individual state slices.
|
|
112
|
+
*
|
|
113
|
+
* Pair each slice with its matching `on[State]Change` callback so table state
|
|
114
|
+
* updates can be persisted outside the table. External atoms take precedence
|
|
115
|
+
* over this option when both are provided for the same slice.
|
|
110
116
|
*/
|
|
111
117
|
readonly state?: Partial<TableState<TFeatures>>
|
|
112
118
|
}
|
|
@@ -167,9 +173,11 @@ export interface Table_CoreProperties<
|
|
|
167
173
|
*/
|
|
168
174
|
readonly options: TableOptions<TFeatures, TData>
|
|
169
175
|
/**
|
|
170
|
-
*
|
|
176
|
+
* Writable atom for table options. Only created when `createOptionsStore` is
|
|
177
|
+
* true on the active core reactivity bindings. Adapters that opt out keep
|
|
178
|
+
* options as plain resolved data instead of backing them with an atom.
|
|
171
179
|
*/
|
|
172
|
-
readonly optionsStore
|
|
180
|
+
readonly optionsStore?: Atom<TableOptions<TFeatures, TData>> | undefined
|
|
173
181
|
/**
|
|
174
182
|
* The readonly flat store for the table state. Derives from `table.atoms`
|
|
175
183
|
* only; never reads external state directly.
|
|
@@ -182,11 +190,16 @@ export interface Table_Table<
|
|
|
182
190
|
TData extends RowData,
|
|
183
191
|
> extends Table_CoreProperties<TFeatures, TData> {
|
|
184
192
|
/**
|
|
185
|
-
*
|
|
193
|
+
* Resets the table's internal base atoms to `table.initialState`.
|
|
194
|
+
*
|
|
195
|
+
* Prefer feature-specific reset APIs, such as `resetPagination`, when a state
|
|
196
|
+
* slice may be owned by an external atom or needs that feature's blank/default
|
|
197
|
+
* reset behavior.
|
|
186
198
|
*/
|
|
187
199
|
reset: () => void
|
|
188
200
|
/**
|
|
189
|
-
*
|
|
201
|
+
* Updates the table options by applying a value or updater to the current
|
|
202
|
+
* resolved options and then merging them through `options.mergeOptions`.
|
|
190
203
|
*/
|
|
191
204
|
setOptions: (newOptions: Updater<TableOptions<TFeatures, TData>>) => void
|
|
192
205
|
}
|