@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
column_getIsVisible,
|
|
3
|
-
|
|
3
|
+
row_getVisibleCells,
|
|
4
4
|
table_getVisibleLeafColumns,
|
|
5
5
|
} from '../column-visibility/columnVisibilityFeature.utils'
|
|
6
6
|
import { buildHeaderGroups } from '../../core/headers/buildHeaderGroups'
|
|
@@ -19,6 +19,16 @@ import type {
|
|
|
19
19
|
|
|
20
20
|
// State
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Returns the default column pinning state.
|
|
24
|
+
*
|
|
25
|
+
* Feature constructors use this value to initialize the table state or option defaults when no user value is provided.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const initialValue = getDefaultColumnPinningState()
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
22
32
|
export function getDefaultColumnPinningState(): ColumnPinningState {
|
|
23
33
|
return {
|
|
24
34
|
left: [],
|
|
@@ -28,6 +38,16 @@ export function getDefaultColumnPinningState(): ColumnPinningState {
|
|
|
28
38
|
|
|
29
39
|
// Column APIs
|
|
30
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Pin. for a column.
|
|
43
|
+
*
|
|
44
|
+
* This is the static implementation behind the matching column instance API.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* column_pin(column, 'left')
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
31
51
|
export function column_pin<
|
|
32
52
|
TFeatures extends TableFeatures,
|
|
33
53
|
TData extends RowData,
|
|
@@ -66,6 +86,16 @@ export function column_pin<
|
|
|
66
86
|
})
|
|
67
87
|
}
|
|
68
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Returns whether a column can use pin.
|
|
91
|
+
*
|
|
92
|
+
* This combines column options, table options, and any required accessor or feature state for the capability.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const value = column_getCanPin(column)
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
69
99
|
export function column_getCanPin<
|
|
70
100
|
TFeatures extends TableFeatures,
|
|
71
101
|
TData extends RowData,
|
|
@@ -82,6 +112,16 @@ export function column_getCanPin<
|
|
|
82
112
|
)
|
|
83
113
|
}
|
|
84
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Returns is pinned for a column.
|
|
117
|
+
*
|
|
118
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* const value = column_getIsPinned(column)
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
85
125
|
export function column_getIsPinned<
|
|
86
126
|
TFeatures extends TableFeatures,
|
|
87
127
|
TData extends RowData,
|
|
@@ -100,6 +140,16 @@ export function column_getIsPinned<
|
|
|
100
140
|
return isLeft ? 'left' : isRight ? 'right' : false
|
|
101
141
|
}
|
|
102
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Returns pinned index for a column.
|
|
145
|
+
*
|
|
146
|
+
* This derives the value from the column definition, table options, and the feature state atoms registered on the table.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const value = column_getPinnedIndex(column)
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
103
153
|
export function column_getPinnedIndex<
|
|
104
154
|
TFeatures extends TableFeatures,
|
|
105
155
|
TData extends RowData,
|
|
@@ -115,14 +165,24 @@ export function column_getPinnedIndex<
|
|
|
115
165
|
|
|
116
166
|
// Row APIs
|
|
117
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Returns center visible cells for a row.
|
|
170
|
+
*
|
|
171
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```ts
|
|
175
|
+
* const value = row_getCenterVisibleCells(row)
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
118
178
|
export function row_getCenterVisibleCells<
|
|
119
179
|
TFeatures extends TableFeatures,
|
|
120
180
|
TData extends RowData,
|
|
121
181
|
>(row: Row<TFeatures, TData>) {
|
|
122
182
|
const allCells = callMemoOrStaticFn(
|
|
123
183
|
row,
|
|
124
|
-
'
|
|
125
|
-
|
|
184
|
+
'getVisibleCells',
|
|
185
|
+
row_getVisibleCells,
|
|
126
186
|
)
|
|
127
187
|
const { left, right } =
|
|
128
188
|
row.table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
@@ -130,50 +190,86 @@ export function row_getCenterVisibleCells<
|
|
|
130
190
|
return allCells.filter((d) => !leftAndRight.includes(d.column.id))
|
|
131
191
|
}
|
|
132
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Returns left visible cells for a row.
|
|
195
|
+
*
|
|
196
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* const value = row_getLeftVisibleCells(row)
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
133
203
|
export function row_getLeftVisibleCells<
|
|
134
204
|
TFeatures extends TableFeatures,
|
|
135
205
|
TData extends RowData,
|
|
136
206
|
>(row: Row<TFeatures, TData>): Array<Cell<TFeatures, TData, unknown>> {
|
|
137
|
-
const allCells = callMemoOrStaticFn(
|
|
138
|
-
row,
|
|
139
|
-
'getAllVisibleCells',
|
|
140
|
-
row_getAllVisibleCells,
|
|
141
|
-
)
|
|
142
207
|
const { left } =
|
|
143
208
|
row.table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
209
|
+
if (!left.length) return []
|
|
210
|
+
const allVisibleCells = callMemoOrStaticFn(
|
|
211
|
+
row,
|
|
212
|
+
'getVisibleCells',
|
|
213
|
+
row_getVisibleCells,
|
|
214
|
+
)
|
|
215
|
+
const cells: typeof allVisibleCells = []
|
|
216
|
+
for (const columnId of left) {
|
|
217
|
+
const cell = allVisibleCells.find((c) => c.column.id === columnId)
|
|
218
|
+
if (cell) {
|
|
219
|
+
// Assign position property directly to preserve prototype chain
|
|
220
|
+
cell.position = 'left'
|
|
221
|
+
cells.push(cell)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return cells
|
|
152
225
|
}
|
|
153
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Returns right visible cells for a row.
|
|
229
|
+
*
|
|
230
|
+
* This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* const value = row_getRightVisibleCells(row)
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
154
237
|
export function row_getRightVisibleCells<
|
|
155
238
|
TFeatures extends TableFeatures,
|
|
156
239
|
TData extends RowData,
|
|
157
240
|
>(row: Row<TFeatures, TData>) {
|
|
158
|
-
const allCells = callMemoOrStaticFn(
|
|
159
|
-
row,
|
|
160
|
-
'getAllVisibleCells',
|
|
161
|
-
row_getAllVisibleCells,
|
|
162
|
-
)
|
|
163
241
|
const { right } =
|
|
164
242
|
row.table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
243
|
+
if (!right.length) return [] as Array<Cell<TFeatures, TData, unknown>>
|
|
244
|
+
const allVisibleCells = callMemoOrStaticFn(
|
|
245
|
+
row,
|
|
246
|
+
'getVisibleCells',
|
|
247
|
+
row_getVisibleCells,
|
|
248
|
+
)
|
|
249
|
+
const cells: typeof allVisibleCells = []
|
|
250
|
+
for (const columnId of right) {
|
|
251
|
+
const cell = allVisibleCells.find((c) => c.column.id === columnId)
|
|
252
|
+
if (cell) {
|
|
253
|
+
// Assign position property directly to preserve prototype chain
|
|
254
|
+
cell.position = 'right'
|
|
255
|
+
cells.push(cell)
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return cells
|
|
173
259
|
}
|
|
174
260
|
|
|
175
261
|
// Table APIs
|
|
176
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Updates the table's column pinning state slice.
|
|
265
|
+
*
|
|
266
|
+
* The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```ts
|
|
270
|
+
* table_setColumnPinning(table, (old) => old)
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
177
273
|
export function table_setColumnPinning<
|
|
178
274
|
TFeatures extends TableFeatures,
|
|
179
275
|
TData extends RowData,
|
|
@@ -184,6 +280,17 @@ export function table_setColumnPinning<
|
|
|
184
280
|
table.options.onColumnPinningChange?.(updater)
|
|
185
281
|
}
|
|
186
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Resets the table's column pinning state slice.
|
|
285
|
+
*
|
|
286
|
+
* By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
|
|
287
|
+
*
|
|
288
|
+
* @example
|
|
289
|
+
* ```ts
|
|
290
|
+
* table_resetColumnPinning(table)
|
|
291
|
+
* table_resetColumnPinning(table, true)
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
187
294
|
export function table_resetColumnPinning<
|
|
188
295
|
TFeatures extends TableFeatures,
|
|
189
296
|
TData extends RowData,
|
|
@@ -198,6 +305,16 @@ export function table_resetColumnPinning<
|
|
|
198
305
|
)
|
|
199
306
|
}
|
|
200
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Returns is some columns pinned for the table.
|
|
310
|
+
*
|
|
311
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```ts
|
|
315
|
+
* const value = table_getIsSomeColumnsPinned(table)
|
|
316
|
+
* ```
|
|
317
|
+
*/
|
|
201
318
|
export function table_getIsSomeColumnsPinned<
|
|
202
319
|
TFeatures extends TableFeatures,
|
|
203
320
|
TData extends RowData,
|
|
@@ -212,46 +329,90 @@ export function table_getIsSomeColumnsPinned<
|
|
|
212
329
|
|
|
213
330
|
// header groups
|
|
214
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Returns left header groups for the table.
|
|
334
|
+
*
|
|
335
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
336
|
+
*
|
|
337
|
+
* @example
|
|
338
|
+
* ```ts
|
|
339
|
+
* const value = table_getLeftHeaderGroups(table)
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
215
342
|
export function table_getLeftHeaderGroups<
|
|
216
343
|
TFeatures extends TableFeatures,
|
|
217
344
|
TData extends RowData,
|
|
218
345
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
219
346
|
const allColumns = table.getAllColumns()
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
) as Array<Column_Internal<TFeatures, TData, unknown>>
|
|
347
|
+
const leafColumnsById = table.getAllLeafColumnsById() as Record<
|
|
348
|
+
string,
|
|
349
|
+
Column_Internal<TFeatures, TData, unknown>
|
|
350
|
+
>
|
|
225
351
|
const { left } =
|
|
226
352
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
227
353
|
|
|
228
|
-
const orderedLeafColumns =
|
|
229
|
-
|
|
230
|
-
|
|
354
|
+
const orderedLeafColumns: Array<Column_Internal<TFeatures, TData, unknown>> =
|
|
355
|
+
[]
|
|
356
|
+
for (const columnId of left) {
|
|
357
|
+
const column = leafColumnsById[columnId]
|
|
358
|
+
if (
|
|
359
|
+
column &&
|
|
360
|
+
callMemoOrStaticFn(column, 'getIsVisible', column_getIsVisible)
|
|
361
|
+
) {
|
|
362
|
+
orderedLeafColumns.push(column)
|
|
363
|
+
}
|
|
364
|
+
}
|
|
231
365
|
|
|
232
366
|
return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'left')
|
|
233
367
|
}
|
|
234
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Returns right header groups for the table.
|
|
371
|
+
*
|
|
372
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```ts
|
|
376
|
+
* const value = table_getRightHeaderGroups(table)
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
235
379
|
export function table_getRightHeaderGroups<
|
|
236
380
|
TFeatures extends TableFeatures,
|
|
237
381
|
TData extends RowData,
|
|
238
382
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
239
383
|
const allColumns = table.getAllColumns()
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
) as unknown as Array<Column_Internal<TFeatures, TData, unknown>>
|
|
384
|
+
const leafColumnsById = table.getAllLeafColumnsById() as Record<
|
|
385
|
+
string,
|
|
386
|
+
Column_Internal<TFeatures, TData, unknown>
|
|
387
|
+
>
|
|
245
388
|
const { right } =
|
|
246
389
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
247
390
|
|
|
248
|
-
const orderedLeafColumns =
|
|
249
|
-
|
|
250
|
-
|
|
391
|
+
const orderedLeafColumns: Array<Column_Internal<TFeatures, TData, unknown>> =
|
|
392
|
+
[]
|
|
393
|
+
for (const columnId of right) {
|
|
394
|
+
const column = leafColumnsById[columnId]
|
|
395
|
+
if (
|
|
396
|
+
column &&
|
|
397
|
+
callMemoOrStaticFn(column, 'getIsVisible', column_getIsVisible)
|
|
398
|
+
) {
|
|
399
|
+
orderedLeafColumns.push(column)
|
|
400
|
+
}
|
|
401
|
+
}
|
|
251
402
|
|
|
252
403
|
return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'right')
|
|
253
404
|
}
|
|
254
405
|
|
|
406
|
+
/**
|
|
407
|
+
* Returns center header groups for the table.
|
|
408
|
+
*
|
|
409
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```ts
|
|
413
|
+
* const value = table_getCenterHeaderGroups(table)
|
|
414
|
+
* ```
|
|
415
|
+
*/
|
|
255
416
|
export function table_getCenterHeaderGroups<
|
|
256
417
|
TFeatures extends TableFeatures,
|
|
257
418
|
TData extends RowData,
|
|
@@ -276,6 +437,16 @@ export function table_getCenterHeaderGroups<
|
|
|
276
437
|
|
|
277
438
|
// footer groups
|
|
278
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Returns left footer groups for the table.
|
|
442
|
+
*
|
|
443
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
444
|
+
*
|
|
445
|
+
* @example
|
|
446
|
+
* ```ts
|
|
447
|
+
* const value = table_getLeftFooterGroups(table)
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
279
450
|
export function table_getLeftFooterGroups<
|
|
280
451
|
TFeatures extends TableFeatures,
|
|
281
452
|
TData extends RowData,
|
|
@@ -288,6 +459,16 @@ export function table_getLeftFooterGroups<
|
|
|
288
459
|
return [...headerGroups].reverse()
|
|
289
460
|
}
|
|
290
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Returns right footer groups for the table.
|
|
464
|
+
*
|
|
465
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
* ```ts
|
|
469
|
+
* const value = table_getRightFooterGroups(table)
|
|
470
|
+
* ```
|
|
471
|
+
*/
|
|
291
472
|
export function table_getRightFooterGroups<
|
|
292
473
|
TFeatures extends TableFeatures,
|
|
293
474
|
TData extends RowData,
|
|
@@ -300,6 +481,16 @@ export function table_getRightFooterGroups<
|
|
|
300
481
|
return [...headerGroups].reverse()
|
|
301
482
|
}
|
|
302
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Returns center footer groups for the table.
|
|
486
|
+
*
|
|
487
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* ```ts
|
|
491
|
+
* const value = table_getCenterFooterGroups(table)
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
303
494
|
export function table_getCenterFooterGroups<
|
|
304
495
|
TFeatures extends TableFeatures,
|
|
305
496
|
TData extends RowData,
|
|
@@ -314,6 +505,16 @@ export function table_getCenterFooterGroups<
|
|
|
314
505
|
|
|
315
506
|
// flat headers
|
|
316
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Returns left flat headers for the table.
|
|
510
|
+
*
|
|
511
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
512
|
+
*
|
|
513
|
+
* @example
|
|
514
|
+
* ```ts
|
|
515
|
+
* const value = table_getLeftFlatHeaders(table)
|
|
516
|
+
* ```
|
|
517
|
+
*/
|
|
317
518
|
export function table_getLeftFlatHeaders<
|
|
318
519
|
TFeatures extends TableFeatures,
|
|
319
520
|
TData extends RowData,
|
|
@@ -330,6 +531,16 @@ export function table_getLeftFlatHeaders<
|
|
|
330
531
|
.flat()
|
|
331
532
|
}
|
|
332
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Returns right flat headers for the table.
|
|
536
|
+
*
|
|
537
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
538
|
+
*
|
|
539
|
+
* @example
|
|
540
|
+
* ```ts
|
|
541
|
+
* const value = table_getRightFlatHeaders(table)
|
|
542
|
+
* ```
|
|
543
|
+
*/
|
|
333
544
|
export function table_getRightFlatHeaders<
|
|
334
545
|
TFeatures extends TableFeatures,
|
|
335
546
|
TData extends RowData,
|
|
@@ -346,6 +557,16 @@ export function table_getRightFlatHeaders<
|
|
|
346
557
|
.flat()
|
|
347
558
|
}
|
|
348
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Returns center flat headers for the table.
|
|
562
|
+
*
|
|
563
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
564
|
+
*
|
|
565
|
+
* @example
|
|
566
|
+
* ```ts
|
|
567
|
+
* const value = table_getCenterFlatHeaders(table)
|
|
568
|
+
* ```
|
|
569
|
+
*/
|
|
349
570
|
export function table_getCenterFlatHeaders<
|
|
350
571
|
TFeatures extends TableFeatures,
|
|
351
572
|
TData extends RowData,
|
|
@@ -364,6 +585,16 @@ export function table_getCenterFlatHeaders<
|
|
|
364
585
|
|
|
365
586
|
// leaf headers
|
|
366
587
|
|
|
588
|
+
/**
|
|
589
|
+
* Returns left leaf headers for the table.
|
|
590
|
+
*
|
|
591
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
592
|
+
*
|
|
593
|
+
* @example
|
|
594
|
+
* ```ts
|
|
595
|
+
* const value = table_getLeftLeafHeaders(table)
|
|
596
|
+
* ```
|
|
597
|
+
*/
|
|
367
598
|
export function table_getLeftLeafHeaders<
|
|
368
599
|
TFeatures extends TableFeatures,
|
|
369
600
|
TData extends RowData,
|
|
@@ -375,6 +606,16 @@ export function table_getLeftLeafHeaders<
|
|
|
375
606
|
).filter((header) => !header.subHeaders.length)
|
|
376
607
|
}
|
|
377
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Returns right leaf headers for the table.
|
|
611
|
+
*
|
|
612
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
613
|
+
*
|
|
614
|
+
* @example
|
|
615
|
+
* ```ts
|
|
616
|
+
* const value = table_getRightLeafHeaders(table)
|
|
617
|
+
* ```
|
|
618
|
+
*/
|
|
378
619
|
export function table_getRightLeafHeaders<
|
|
379
620
|
TFeatures extends TableFeatures,
|
|
380
621
|
TData extends RowData,
|
|
@@ -386,6 +627,16 @@ export function table_getRightLeafHeaders<
|
|
|
386
627
|
).filter((header) => !header.subHeaders.length)
|
|
387
628
|
}
|
|
388
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Returns center leaf headers for the table.
|
|
632
|
+
*
|
|
633
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
634
|
+
*
|
|
635
|
+
* @example
|
|
636
|
+
* ```ts
|
|
637
|
+
* const value = table_getCenterLeafHeaders(table)
|
|
638
|
+
* ```
|
|
639
|
+
*/
|
|
389
640
|
export function table_getCenterLeafHeaders<
|
|
390
641
|
TFeatures extends TableFeatures,
|
|
391
642
|
TData extends RowData,
|
|
@@ -399,34 +650,66 @@ export function table_getCenterLeafHeaders<
|
|
|
399
650
|
|
|
400
651
|
// leaf columns
|
|
401
652
|
|
|
653
|
+
/**
|
|
654
|
+
* Returns left leaf columns for the table.
|
|
655
|
+
*
|
|
656
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
657
|
+
*
|
|
658
|
+
* @example
|
|
659
|
+
* ```ts
|
|
660
|
+
* const value = table_getLeftLeafColumns(table)
|
|
661
|
+
* ```
|
|
662
|
+
*/
|
|
402
663
|
export function table_getLeftLeafColumns<
|
|
403
664
|
TFeatures extends TableFeatures,
|
|
404
665
|
TData extends RowData,
|
|
405
666
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
406
667
|
const { left } =
|
|
407
668
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
)
|
|
413
|
-
|
|
669
|
+
const leafColumnsById = table.getAllLeafColumnsById()
|
|
670
|
+
const result: Array<Column_Internal<TFeatures, TData, unknown>> = []
|
|
671
|
+
for (const columnId of left) {
|
|
672
|
+
const column = leafColumnsById[columnId]
|
|
673
|
+
if (column) result.push(column)
|
|
674
|
+
}
|
|
675
|
+
return result
|
|
414
676
|
}
|
|
415
677
|
|
|
678
|
+
/**
|
|
679
|
+
* Returns right leaf columns for the table.
|
|
680
|
+
*
|
|
681
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
682
|
+
*
|
|
683
|
+
* @example
|
|
684
|
+
* ```ts
|
|
685
|
+
* const value = table_getRightLeafColumns(table)
|
|
686
|
+
* ```
|
|
687
|
+
*/
|
|
416
688
|
export function table_getRightLeafColumns<
|
|
417
689
|
TFeatures extends TableFeatures,
|
|
418
690
|
TData extends RowData,
|
|
419
691
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
420
692
|
const { right } =
|
|
421
693
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
)
|
|
427
|
-
|
|
694
|
+
const leafColumnsById = table.getAllLeafColumnsById()
|
|
695
|
+
const result: Array<Column_Internal<TFeatures, TData, unknown>> = []
|
|
696
|
+
for (const columnId of right) {
|
|
697
|
+
const column = leafColumnsById[columnId]
|
|
698
|
+
if (column) result.push(column)
|
|
699
|
+
}
|
|
700
|
+
return result
|
|
428
701
|
}
|
|
429
702
|
|
|
703
|
+
/**
|
|
704
|
+
* Returns center leaf columns for the table.
|
|
705
|
+
*
|
|
706
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
707
|
+
*
|
|
708
|
+
* @example
|
|
709
|
+
* ```ts
|
|
710
|
+
* const value = table_getCenterLeafColumns(table)
|
|
711
|
+
* ```
|
|
712
|
+
*/
|
|
430
713
|
export function table_getCenterLeafColumns<
|
|
431
714
|
TFeatures extends TableFeatures,
|
|
432
715
|
TData extends RowData,
|
|
@@ -437,6 +720,16 @@ export function table_getCenterLeafColumns<
|
|
|
437
720
|
return table.getAllLeafColumns().filter((d) => !leftAndRight.includes(d.id))
|
|
438
721
|
}
|
|
439
722
|
|
|
723
|
+
/**
|
|
724
|
+
* Returns pinned leaf columns for the table.
|
|
725
|
+
*
|
|
726
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
727
|
+
*
|
|
728
|
+
* @example
|
|
729
|
+
* ```ts
|
|
730
|
+
* const value = table_getPinnedLeafColumns(table)
|
|
731
|
+
* ```
|
|
732
|
+
*/
|
|
440
733
|
export function table_getPinnedLeafColumns<
|
|
441
734
|
TFeatures extends TableFeatures,
|
|
442
735
|
TData extends RowData,
|
|
@@ -467,6 +760,16 @@ export function table_getPinnedLeafColumns<
|
|
|
467
760
|
|
|
468
761
|
// visible leaf columns
|
|
469
762
|
|
|
763
|
+
/**
|
|
764
|
+
* Returns left visible leaf columns for the table.
|
|
765
|
+
*
|
|
766
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
767
|
+
*
|
|
768
|
+
* @example
|
|
769
|
+
* ```ts
|
|
770
|
+
* const value = table_getLeftVisibleLeafColumns(table)
|
|
771
|
+
* ```
|
|
772
|
+
*/
|
|
470
773
|
export function table_getLeftVisibleLeafColumns<
|
|
471
774
|
TFeatures extends TableFeatures,
|
|
472
775
|
TData extends RowData,
|
|
@@ -480,6 +783,16 @@ export function table_getLeftVisibleLeafColumns<
|
|
|
480
783
|
)
|
|
481
784
|
}
|
|
482
785
|
|
|
786
|
+
/**
|
|
787
|
+
* Returns right visible leaf columns for the table.
|
|
788
|
+
*
|
|
789
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
790
|
+
*
|
|
791
|
+
* @example
|
|
792
|
+
* ```ts
|
|
793
|
+
* const value = table_getRightVisibleLeafColumns(table)
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
483
796
|
export function table_getRightVisibleLeafColumns<
|
|
484
797
|
TFeatures extends TableFeatures,
|
|
485
798
|
TData extends RowData,
|
|
@@ -493,6 +806,16 @@ export function table_getRightVisibleLeafColumns<
|
|
|
493
806
|
)
|
|
494
807
|
}
|
|
495
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Returns center visible leaf columns for the table.
|
|
811
|
+
*
|
|
812
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
813
|
+
*
|
|
814
|
+
* @example
|
|
815
|
+
* ```ts
|
|
816
|
+
* const value = table_getCenterVisibleLeafColumns(table)
|
|
817
|
+
* ```
|
|
818
|
+
*/
|
|
496
819
|
export function table_getCenterVisibleLeafColumns<
|
|
497
820
|
TFeatures extends TableFeatures,
|
|
498
821
|
TData extends RowData,
|
|
@@ -506,6 +829,16 @@ export function table_getCenterVisibleLeafColumns<
|
|
|
506
829
|
)
|
|
507
830
|
}
|
|
508
831
|
|
|
832
|
+
/**
|
|
833
|
+
* Returns pinned visible leaf columns for the table.
|
|
834
|
+
*
|
|
835
|
+
* This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
|
|
836
|
+
*
|
|
837
|
+
* @example
|
|
838
|
+
* ```ts
|
|
839
|
+
* const value = table_getPinnedVisibleLeafColumns(table)
|
|
840
|
+
* ```
|
|
841
|
+
*/
|
|
509
842
|
export function table_getPinnedVisibleLeafColumns<
|
|
510
843
|
TFeatures extends TableFeatures,
|
|
511
844
|
TData extends RowData,
|
|
@@ -32,6 +32,11 @@ export interface ColumnResizingFeatureConstructors<
|
|
|
32
32
|
// TableState: TableState_ColumnResizing
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Creates the stock column resizing feature.
|
|
37
|
+
*
|
|
38
|
+
* The returned feature registers its state defaults, option defaults, and instance APIs so it can be included in a `tableFeatures({ ... })` call.
|
|
39
|
+
*/
|
|
35
40
|
export function constructColumnResizingFeature<
|
|
36
41
|
TFeatures extends TableFeatures,
|
|
37
42
|
TData extends RowData,
|
|
@@ -86,7 +91,9 @@ export function constructColumnResizingFeature<
|
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
/**
|
|
89
|
-
* The
|
|
90
|
-
*
|
|
94
|
+
* The stock column resizing feature.
|
|
95
|
+
*
|
|
96
|
+
* Register this feature with `columnSizingFeature` to add resize interaction
|
|
97
|
+
* state and APIs for drag-based column resizing.
|
|
91
98
|
*/
|
|
92
99
|
export const columnResizingFeature = constructColumnResizingFeature()
|