@tanstack/table-core 9.0.0-alpha.46 → 9.0.0-alpha.48
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/README.md +10 -0
- package/dist/core/cells/constructCell.cjs +4 -3
- package/dist/core/cells/constructCell.cjs.map +1 -1
- package/dist/core/cells/constructCell.js +4 -3
- package/dist/core/cells/constructCell.js.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.cjs +11 -8
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.d.cts +11 -8
- package/dist/core/cells/coreCellsFeature.utils.d.ts +11 -8
- package/dist/core/cells/coreCellsFeature.utils.js +11 -8
- package/dist/core/cells/coreCellsFeature.utils.js.map +1 -1
- package/dist/core/columns/constructColumn.cjs +6 -4
- package/dist/core/columns/constructColumn.cjs.map +1 -1
- package/dist/core/columns/constructColumn.js +6 -4
- package/dist/core/columns/constructColumn.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.types.d.cts +7 -6
- package/dist/core/columns/coreColumnsFeature.types.d.ts +7 -6
- package/dist/core/columns/coreColumnsFeature.utils.cjs +47 -29
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.js +47 -29
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
- package/dist/core/headers/buildHeaderGroups.cjs +27 -19
- package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
- package/dist/core/headers/buildHeaderGroups.js +27 -19
- package/dist/core/headers/buildHeaderGroups.js.map +1 -1
- package/dist/core/headers/constructHeader.cjs +4 -3
- package/dist/core/headers/constructHeader.cjs.map +1 -1
- package/dist/core/headers/constructHeader.js +4 -3
- package/dist/core/headers/constructHeader.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.cjs +1 -6
- package/dist/core/headers/coreHeadersFeature.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.js +2 -7
- package/dist/core/headers/coreHeadersFeature.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.types.d.cts +6 -4
- package/dist/core/headers/coreHeadersFeature.types.d.ts +6 -4
- package/dist/core/headers/coreHeadersFeature.utils.cjs +43 -36
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +24 -19
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +24 -19
- package/dist/core/headers/coreHeadersFeature.utils.js +44 -37
- package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -1
- package/dist/core/reactivity/coreReactivityFeature.types.d.cts +4 -0
- package/dist/core/reactivity/coreReactivityFeature.types.d.ts +4 -0
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.js +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -1
- package/dist/core/rows/constructRow.cjs +8 -6
- package/dist/core/rows/constructRow.cjs.map +1 -1
- package/dist/core/rows/constructRow.js +8 -6
- package/dist/core/rows/constructRow.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.types.d.cts +4 -4
- package/dist/core/rows/coreRowsFeature.types.d.ts +4 -4
- package/dist/core/rows/coreRowsFeature.utils.cjs +43 -32
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +34 -28
- package/dist/core/rows/coreRowsFeature.utils.d.ts +34 -28
- package/dist/core/rows/coreRowsFeature.utils.js +43 -32
- package/dist/core/rows/coreRowsFeature.utils.js.map +1 -1
- package/dist/core/table/constructTable.cjs +9 -5
- package/dist/core/table/constructTable.cjs.map +1 -1
- package/dist/core/table/constructTable.js +9 -5
- package/dist/core/table/constructTable.js.map +1 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +6 -2
- package/dist/core/table/coreTablesFeature.types.d.ts +6 -2
- package/dist/core/table/coreTablesFeature.utils.cjs +7 -3
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +2 -2
- package/dist/core/table/coreTablesFeature.utils.d.ts +2 -2
- package/dist/core/table/coreTablesFeature.utils.js +7 -3
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +16 -10
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +16 -10
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +8 -5
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +8 -5
- package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.cjs +8 -3
- package/dist/features/column-faceting/createFacetedRowModel.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedRowModel.js +8 -3
- package/dist/features/column-faceting/createFacetedRowModel.js.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs +7 -4
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +1 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.js +7 -4
- package/dist/features/column-faceting/createFacetedUniqueValues.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +21 -11
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +21 -11
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.cjs +11 -5
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +1 -1
- package/dist/features/column-filtering/createFilteredRowModel.js +11 -5
- package/dist/features/column-filtering/createFilteredRowModel.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +18 -14
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +18 -14
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +14 -5
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +14 -5
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +46 -29
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +46 -29
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +43 -31
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +43 -31
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +152 -115
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +116 -95
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +116 -95
- package/dist/features/column-pinning/columnPinningFeature.utils.js +153 -116
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +9 -9
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +9 -9
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.js +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.cjs +28 -4
- package/dist/features/column-sizing/columnSizingFeature.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.js +28 -4
- package/dist/features/column-sizing/columnSizingFeature.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +19 -12
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +19 -12
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.js +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +23 -14
- package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.js +24 -15
- package/dist/features/column-visibility/columnVisibilityFeature.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +19 -12
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +19 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +91 -52
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +63 -40
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +63 -40
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +91 -53
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +10 -5
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +10 -5
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +16 -15
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +16 -15
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +58 -43
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +58 -43
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +19 -12
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +19 -12
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +12 -8
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +12 -8
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +52 -36
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.js +52 -36
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +30 -24
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +30 -24
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +95 -72
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.js +95 -72
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.cjs +13 -8
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +1 -1
- package/dist/features/row-sorting/createSortedRowModel.js +13 -8
- package/dist/features/row-sorting/createSortedRowModel.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +10 -8
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +10 -8
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +63 -46
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.js +63 -46
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -1
- package/dist/fns/aggregationFns.cjs +47 -16
- package/dist/fns/aggregationFns.cjs.map +1 -1
- package/dist/fns/aggregationFns.d.cts +33 -9
- package/dist/fns/aggregationFns.d.ts +33 -9
- package/dist/fns/aggregationFns.js +47 -17
- package/dist/fns/aggregationFns.js.map +1 -1
- package/dist/fns/filterFns.cjs +48 -17
- package/dist/fns/filterFns.cjs.map +1 -1
- package/dist/fns/filterFns.d.cts +42 -15
- package/dist/fns/filterFns.d.ts +42 -15
- package/dist/fns/filterFns.js +48 -17
- package/dist/fns/filterFns.js.map +1 -1
- package/dist/helpers/columnHelper.cjs +9 -4
- package/dist/helpers/columnHelper.cjs.map +1 -1
- package/dist/helpers/columnHelper.d.cts +9 -4
- package/dist/helpers/columnHelper.d.ts +9 -4
- package/dist/helpers/columnHelper.js +9 -4
- package/dist/helpers/columnHelper.js.map +1 -1
- package/dist/helpers/tableOptions.cjs.map +1 -1
- package/dist/helpers/tableOptions.d.cts +12 -9
- package/dist/helpers/tableOptions.d.ts +12 -9
- package/dist/helpers/tableOptions.js.map +1 -1
- package/dist/index.cjs +0 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/static-functions.cjs +1 -0
- package/dist/static-functions.d.cts +2 -2
- package/dist/static-functions.d.ts +2 -2
- package/dist/static-functions.js +2 -2
- package/dist/store-reactivity-bindings.cjs +1 -0
- package/dist/store-reactivity-bindings.cjs.map +1 -1
- package/dist/store-reactivity-bindings.js +1 -0
- package/dist/store-reactivity-bindings.js.map +1 -1
- package/dist/types/ColumnDef.d.cts +38 -0
- package/dist/types/ColumnDef.d.ts +38 -0
- package/dist/types/TableOptions.d.cts +15 -0
- package/dist/types/TableOptions.d.ts +15 -0
- package/dist/types/TableState.d.cts +12 -0
- package/dist/types/TableState.d.ts +12 -0
- package/dist/utils.cjs +18 -39
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -23
- package/dist/utils.d.ts +1 -23
- package/dist/utils.js +19 -36
- package/dist/utils.js.map +1 -1
- package/package.json +5 -3
- package/skills/column-definitions/SKILL.md +333 -0
- package/skills/column-layout/SKILL.md +328 -0
- package/skills/column-layout/references/subsystems.md +220 -0
- package/skills/customizing-feature-behavior/SKILL.md +416 -0
- package/skills/filtering/SKILL.md +357 -0
- package/skills/filtering/references/faceting-and-fuzzy.md +191 -0
- package/skills/grouping/SKILL.md +448 -0
- package/skills/migrate-v8-to-v9/SKILL.md +495 -0
- package/skills/pagination/SKILL.md +385 -0
- package/skills/row-expanding/SKILL.md +348 -0
- package/skills/row-pinning/SKILL.md +269 -0
- package/skills/row-selection/SKILL.md +391 -0
- package/skills/setup/SKILL.md +400 -0
- package/skills/sorting/SKILL.md +344 -0
- package/skills/state-management/SKILL.md +388 -0
- package/src/core/cells/constructCell.ts +3 -2
- package/src/core/cells/coreCellsFeature.utils.ts +11 -8
- package/src/core/columns/constructColumn.ts +5 -3
- package/src/core/columns/coreColumnsFeature.types.ts +7 -6
- package/src/core/columns/coreColumnsFeature.utils.ts +43 -29
- package/src/core/headers/buildHeaderGroups.ts +29 -30
- package/src/core/headers/constructHeader.ts +3 -2
- package/src/core/headers/coreHeadersFeature.ts +2 -27
- package/src/core/headers/coreHeadersFeature.types.ts +6 -4
- package/src/core/headers/coreHeadersFeature.utils.ts +52 -61
- package/src/core/reactivity/coreReactivityFeature.types.ts +4 -0
- package/src/core/row-models/coreRowModelsFeature.utils.ts +48 -36
- package/src/core/rows/constructRow.ts +6 -4
- package/src/core/rows/coreRowsFeature.types.ts +4 -4
- package/src/core/rows/coreRowsFeature.utils.ts +45 -32
- package/src/core/table/constructTable.ts +6 -4
- package/src/core/table/coreTablesFeature.types.ts +6 -2
- package/src/core/table/coreTablesFeature.utils.ts +5 -3
- package/src/features/column-faceting/columnFacetingFeature.types.ts +16 -10
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +26 -18
- package/src/features/column-faceting/createFacetedMinMaxValues.ts +8 -10
- package/src/features/column-faceting/createFacetedRowModel.ts +10 -6
- package/src/features/column-faceting/createFacetedUniqueValues.ts +4 -3
- package/src/features/column-filtering/columnFilteringFeature.types.ts +21 -11
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +39 -28
- package/src/features/column-filtering/createFilteredRowModel.ts +14 -8
- package/src/features/column-grouping/columnGroupingFeature.types.ts +18 -14
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +55 -43
- package/src/features/column-ordering/columnOrderingFeature.types.ts +14 -5
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +44 -29
- package/src/features/column-pinning/columnPinningFeature.types.ts +43 -31
- package/src/features/column-pinning/columnPinningFeature.utils.ts +164 -128
- package/src/features/column-resizing/columnResizingFeature.types.ts +9 -9
- package/src/features/column-resizing/columnResizingFeature.utils.ts +28 -19
- package/src/features/column-sizing/columnSizingFeature.ts +16 -0
- package/src/features/column-sizing/columnSizingFeature.types.ts +19 -12
- package/src/features/column-sizing/columnSizingFeature.utils.ts +52 -41
- package/src/features/column-visibility/columnVisibilityFeature.ts +8 -0
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +22 -12
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +101 -56
- package/src/features/global-filtering/globalFilteringFeature.types.ts +10 -5
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +20 -14
- package/src/features/row-expanding/rowExpandingFeature.types.ts +16 -15
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +58 -43
- package/src/features/row-pagination/rowPaginationFeature.types.ts +19 -12
- package/src/features/row-pagination/rowPaginationFeature.utils.ts +49 -32
- package/src/features/row-pinning/rowPinningFeature.types.ts +12 -8
- package/src/features/row-pinning/rowPinningFeature.utils.ts +59 -47
- package/src/features/row-selection/rowSelectionFeature.types.ts +30 -24
- package/src/features/row-selection/rowSelectionFeature.utils.ts +109 -88
- package/src/features/row-sorting/createSortedRowModel.ts +16 -13
- package/src/features/row-sorting/rowSortingFeature.types.ts +10 -8
- package/src/features/row-sorting/rowSortingFeature.utils.ts +63 -46
- package/src/fns/aggregationFns.ts +53 -17
- package/src/fns/filterFns.ts +48 -17
- package/src/helpers/columnHelper.ts +9 -4
- package/src/helpers/tableOptions.ts +12 -9
- package/src/store-reactivity-bindings.ts +1 -0
- package/src/types/ColumnDef.ts +38 -0
- package/src/types/TableOptions.ts +15 -0
- package/src/types/TableState.ts +12 -0
- package/src/utils.ts +19 -46
|
@@ -8,20 +8,22 @@ import { Cell } from "../../types/Cell.cjs";
|
|
|
8
8
|
|
|
9
9
|
//#region src/features/column-grouping/columnGroupingFeature.utils.d.ts
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates the default grouping state.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* The feature default is an empty array, meaning no columns are grouped. Reset
|
|
14
|
+
* APIs use this value when `defaultState` is `true`.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
17
|
-
* const
|
|
18
|
+
* const grouping = getDefaultGroupingState()
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
21
|
declare function getDefaultGroupingState(): GroupingState;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Adds or removes this column id from the grouping state.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
+
* Existing grouped columns keep their order. A column already present in
|
|
26
|
+
* `state.grouping` is removed; otherwise it is appended.
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
29
|
* ```ts
|
|
@@ -30,86 +32,93 @@ declare function getDefaultGroupingState(): GroupingState;
|
|
|
30
32
|
*/
|
|
31
33
|
declare function column_toggleGrouping<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): void;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Checks whether this column can be used for grouping.
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* Grouping must be enabled at the column and table level, and the column must
|
|
38
|
+
* either have an accessor or provide `getGroupingValue`.
|
|
36
39
|
*
|
|
37
40
|
* @example
|
|
38
41
|
* ```ts
|
|
39
|
-
* const
|
|
42
|
+
* const canGroup = column_getCanGroup(column)
|
|
40
43
|
* ```
|
|
41
44
|
*/
|
|
42
45
|
declare function column_getCanGroup<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
47
|
+
* Checks whether this column id is present in `state.grouping`.
|
|
45
48
|
*
|
|
46
|
-
*
|
|
49
|
+
* The result only reflects grouping state, not whether the grouped row model has
|
|
50
|
+
* been calculated yet.
|
|
47
51
|
*
|
|
48
52
|
* @example
|
|
49
53
|
* ```ts
|
|
50
|
-
* const
|
|
54
|
+
* const isGrouped = column_getIsGrouped(column)
|
|
51
55
|
* ```
|
|
52
56
|
*/
|
|
53
57
|
declare function column_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* Finds this column's position in the ordered grouping state.
|
|
56
60
|
*
|
|
57
|
-
*
|
|
61
|
+
* The result is `-1` when the column is not grouped.
|
|
58
62
|
*
|
|
59
63
|
* @example
|
|
60
64
|
* ```ts
|
|
61
|
-
* const
|
|
65
|
+
* const index = column_getGroupedIndex(column)
|
|
62
66
|
* ```
|
|
63
67
|
*/
|
|
64
68
|
declare function column_getGroupedIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): number;
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Creates a header/control handler that toggles grouping for this column.
|
|
67
71
|
*
|
|
68
|
-
* The handler is
|
|
72
|
+
* The handler is a no-op when `column_getCanGroup(column)` is false.
|
|
69
73
|
*
|
|
70
74
|
* @example
|
|
71
75
|
* ```ts
|
|
72
|
-
* const
|
|
76
|
+
* const onClick = column_getToggleGroupingHandler(column)
|
|
73
77
|
* ```
|
|
74
78
|
*/
|
|
75
79
|
declare function column_getToggleGroupingHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): () => void;
|
|
76
80
|
/**
|
|
77
|
-
*
|
|
81
|
+
* Chooses a built-in aggregation function from the first core row value.
|
|
78
82
|
*
|
|
79
|
-
*
|
|
83
|
+
* Numeric columns default to `sum`, date-like values default to `extent`, and
|
|
84
|
+
* other value types leave aggregation unspecified.
|
|
80
85
|
*
|
|
81
86
|
* @example
|
|
82
87
|
* ```ts
|
|
83
|
-
* const
|
|
88
|
+
* const aggregationFn = column_getAutoAggregationFn(column)
|
|
84
89
|
* ```
|
|
85
90
|
*/
|
|
86
91
|
declare function column_getAutoAggregationFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): AggregationFn<TFeatures, TData> | undefined;
|
|
87
92
|
/**
|
|
88
|
-
*
|
|
93
|
+
* Resolves the aggregation function configured for a column.
|
|
89
94
|
*
|
|
90
|
-
*
|
|
95
|
+
* Function-valued `columnDef.aggregationFn` is returned directly, `'auto'`
|
|
96
|
+
* delegates to `column_getAutoAggregationFn`, and string values are looked up in
|
|
97
|
+
* the table's aggregation function registry.
|
|
91
98
|
*
|
|
92
99
|
* @example
|
|
93
100
|
* ```ts
|
|
94
|
-
* const
|
|
101
|
+
* const aggregationFn = column_getAggregationFn(column)
|
|
95
102
|
* ```
|
|
96
103
|
*/
|
|
97
104
|
declare function column_getAggregationFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): AggregationFn<TFeatures, TData> | undefined;
|
|
98
105
|
/**
|
|
99
|
-
*
|
|
106
|
+
* Routes a grouping updater through the table's grouping change handler.
|
|
100
107
|
*
|
|
101
|
-
* The updater
|
|
108
|
+
* The updater may be a next `GroupingState` array or a function of the previous
|
|
109
|
+
* grouping state, matching the instance `table.setGrouping` behavior.
|
|
102
110
|
*
|
|
103
111
|
* @example
|
|
104
112
|
* ```ts
|
|
105
|
-
* table_setGrouping(table, (old) => old)
|
|
113
|
+
* table_setGrouping(table, (old) => [...old, 'status'])
|
|
106
114
|
* ```
|
|
107
115
|
*/
|
|
108
116
|
declare function table_setGrouping<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<GroupingState>): void;
|
|
109
117
|
/**
|
|
110
|
-
* Resets the
|
|
118
|
+
* Resets `grouping` to the configured initial state or feature default.
|
|
111
119
|
*
|
|
112
|
-
*
|
|
120
|
+
* With no argument, the reset clones `table.initialState.grouping` when it
|
|
121
|
+
* exists. Passing `true` ignores initial state and resets to `[]`.
|
|
113
122
|
*
|
|
114
123
|
* @example
|
|
115
124
|
* ```ts
|
|
@@ -119,57 +128,60 @@ declare function table_setGrouping<TFeatures extends TableFeatures, TData extend
|
|
|
119
128
|
*/
|
|
120
129
|
declare function table_resetGrouping<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
121
130
|
/**
|
|
122
|
-
*
|
|
131
|
+
* Checks whether this row was created as a grouped row.
|
|
123
132
|
*
|
|
124
|
-
*
|
|
133
|
+
* Grouped rows carry a `groupingColumnId`; ordinary leaf rows do not.
|
|
125
134
|
*
|
|
126
135
|
* @example
|
|
127
136
|
* ```ts
|
|
128
|
-
* const
|
|
137
|
+
* const isGrouped = row_getIsGrouped(row)
|
|
129
138
|
* ```
|
|
130
139
|
*/
|
|
131
140
|
declare function row_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData> & Partial<Row_ColumnGrouping>): boolean;
|
|
132
141
|
/**
|
|
133
|
-
*
|
|
142
|
+
* Reads and caches this row's grouping value for a column.
|
|
134
143
|
*
|
|
135
|
-
*
|
|
144
|
+
* `columnDef.getGroupingValue` wins when provided; otherwise the normal row
|
|
145
|
+
* accessor value is used.
|
|
136
146
|
*
|
|
137
147
|
* @example
|
|
138
148
|
* ```ts
|
|
139
|
-
* const
|
|
149
|
+
* const groupValue = row_getGroupingValue(row, 'status')
|
|
140
150
|
* ```
|
|
141
151
|
*/
|
|
142
152
|
declare function row_getGroupingValue<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData> & Partial<Row_ColumnGrouping>, columnId: string): any;
|
|
143
153
|
/**
|
|
144
|
-
*
|
|
154
|
+
* Checks whether this cell represents the grouped column for a grouped row.
|
|
145
155
|
*
|
|
146
|
-
* This is the
|
|
156
|
+
* This is the cell that usually renders the grouped value and expansion control.
|
|
147
157
|
*
|
|
148
158
|
* @example
|
|
149
159
|
* ```ts
|
|
150
|
-
* const
|
|
160
|
+
* const isGroupedCell = cell_getIsGrouped(cell)
|
|
151
161
|
* ```
|
|
152
162
|
*/
|
|
153
163
|
declare function cell_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|
|
154
164
|
/**
|
|
155
|
-
*
|
|
165
|
+
* Checks whether this cell is a placeholder hidden by grouping.
|
|
156
166
|
*
|
|
157
|
-
*
|
|
167
|
+
* Placeholder cells belong to grouped columns other than the row's active
|
|
168
|
+
* grouping column.
|
|
158
169
|
*
|
|
159
170
|
* @example
|
|
160
171
|
* ```ts
|
|
161
|
-
* const
|
|
172
|
+
* const isPlaceholder = cell_getIsPlaceholder(cell)
|
|
162
173
|
* ```
|
|
163
174
|
*/
|
|
164
175
|
declare function cell_getIsPlaceholder<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|
|
165
176
|
/**
|
|
166
|
-
*
|
|
177
|
+
* Checks whether this cell should render an aggregated value.
|
|
167
178
|
*
|
|
168
|
-
*
|
|
179
|
+
* Aggregated cells are non-placeholder, non-grouped cells on rows that have
|
|
180
|
+
* subRows.
|
|
169
181
|
*
|
|
170
182
|
* @example
|
|
171
183
|
* ```ts
|
|
172
|
-
* const
|
|
184
|
+
* const isAggregated = cell_getIsAggregated(cell)
|
|
173
185
|
* ```
|
|
174
186
|
*/
|
|
175
187
|
declare function cell_getIsAggregated<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|
|
@@ -8,20 +8,22 @@ import { Cell } from "../../types/Cell.js";
|
|
|
8
8
|
|
|
9
9
|
//#region src/features/column-grouping/columnGroupingFeature.utils.d.ts
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates the default grouping state.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* The feature default is an empty array, meaning no columns are grouped. Reset
|
|
14
|
+
* APIs use this value when `defaultState` is `true`.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
17
|
-
* const
|
|
18
|
+
* const grouping = getDefaultGroupingState()
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
21
|
declare function getDefaultGroupingState(): GroupingState;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Adds or removes this column id from the grouping state.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
+
* Existing grouped columns keep their order. A column already present in
|
|
26
|
+
* `state.grouping` is removed; otherwise it is appended.
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
29
|
* ```ts
|
|
@@ -30,86 +32,93 @@ declare function getDefaultGroupingState(): GroupingState;
|
|
|
30
32
|
*/
|
|
31
33
|
declare function column_toggleGrouping<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): void;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Checks whether this column can be used for grouping.
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* Grouping must be enabled at the column and table level, and the column must
|
|
38
|
+
* either have an accessor or provide `getGroupingValue`.
|
|
36
39
|
*
|
|
37
40
|
* @example
|
|
38
41
|
* ```ts
|
|
39
|
-
* const
|
|
42
|
+
* const canGroup = column_getCanGroup(column)
|
|
40
43
|
* ```
|
|
41
44
|
*/
|
|
42
45
|
declare function column_getCanGroup<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
47
|
+
* Checks whether this column id is present in `state.grouping`.
|
|
45
48
|
*
|
|
46
|
-
*
|
|
49
|
+
* The result only reflects grouping state, not whether the grouped row model has
|
|
50
|
+
* been calculated yet.
|
|
47
51
|
*
|
|
48
52
|
* @example
|
|
49
53
|
* ```ts
|
|
50
|
-
* const
|
|
54
|
+
* const isGrouped = column_getIsGrouped(column)
|
|
51
55
|
* ```
|
|
52
56
|
*/
|
|
53
57
|
declare function column_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* Finds this column's position in the ordered grouping state.
|
|
56
60
|
*
|
|
57
|
-
*
|
|
61
|
+
* The result is `-1` when the column is not grouped.
|
|
58
62
|
*
|
|
59
63
|
* @example
|
|
60
64
|
* ```ts
|
|
61
|
-
* const
|
|
65
|
+
* const index = column_getGroupedIndex(column)
|
|
62
66
|
* ```
|
|
63
67
|
*/
|
|
64
68
|
declare function column_getGroupedIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): number;
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Creates a header/control handler that toggles grouping for this column.
|
|
67
71
|
*
|
|
68
|
-
* The handler is
|
|
72
|
+
* The handler is a no-op when `column_getCanGroup(column)` is false.
|
|
69
73
|
*
|
|
70
74
|
* @example
|
|
71
75
|
* ```ts
|
|
72
|
-
* const
|
|
76
|
+
* const onClick = column_getToggleGroupingHandler(column)
|
|
73
77
|
* ```
|
|
74
78
|
*/
|
|
75
79
|
declare function column_getToggleGroupingHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): () => void;
|
|
76
80
|
/**
|
|
77
|
-
*
|
|
81
|
+
* Chooses a built-in aggregation function from the first core row value.
|
|
78
82
|
*
|
|
79
|
-
*
|
|
83
|
+
* Numeric columns default to `sum`, date-like values default to `extent`, and
|
|
84
|
+
* other value types leave aggregation unspecified.
|
|
80
85
|
*
|
|
81
86
|
* @example
|
|
82
87
|
* ```ts
|
|
83
|
-
* const
|
|
88
|
+
* const aggregationFn = column_getAutoAggregationFn(column)
|
|
84
89
|
* ```
|
|
85
90
|
*/
|
|
86
91
|
declare function column_getAutoAggregationFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): AggregationFn<TFeatures, TData> | undefined;
|
|
87
92
|
/**
|
|
88
|
-
*
|
|
93
|
+
* Resolves the aggregation function configured for a column.
|
|
89
94
|
*
|
|
90
|
-
*
|
|
95
|
+
* Function-valued `columnDef.aggregationFn` is returned directly, `'auto'`
|
|
96
|
+
* delegates to `column_getAutoAggregationFn`, and string values are looked up in
|
|
97
|
+
* the table's aggregation function registry.
|
|
91
98
|
*
|
|
92
99
|
* @example
|
|
93
100
|
* ```ts
|
|
94
|
-
* const
|
|
101
|
+
* const aggregationFn = column_getAggregationFn(column)
|
|
95
102
|
* ```
|
|
96
103
|
*/
|
|
97
104
|
declare function column_getAggregationFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): AggregationFn<TFeatures, TData> | undefined;
|
|
98
105
|
/**
|
|
99
|
-
*
|
|
106
|
+
* Routes a grouping updater through the table's grouping change handler.
|
|
100
107
|
*
|
|
101
|
-
* The updater
|
|
108
|
+
* The updater may be a next `GroupingState` array or a function of the previous
|
|
109
|
+
* grouping state, matching the instance `table.setGrouping` behavior.
|
|
102
110
|
*
|
|
103
111
|
* @example
|
|
104
112
|
* ```ts
|
|
105
|
-
* table_setGrouping(table, (old) => old)
|
|
113
|
+
* table_setGrouping(table, (old) => [...old, 'status'])
|
|
106
114
|
* ```
|
|
107
115
|
*/
|
|
108
116
|
declare function table_setGrouping<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<GroupingState>): void;
|
|
109
117
|
/**
|
|
110
|
-
* Resets the
|
|
118
|
+
* Resets `grouping` to the configured initial state or feature default.
|
|
111
119
|
*
|
|
112
|
-
*
|
|
120
|
+
* With no argument, the reset clones `table.initialState.grouping` when it
|
|
121
|
+
* exists. Passing `true` ignores initial state and resets to `[]`.
|
|
113
122
|
*
|
|
114
123
|
* @example
|
|
115
124
|
* ```ts
|
|
@@ -119,57 +128,60 @@ declare function table_setGrouping<TFeatures extends TableFeatures, TData extend
|
|
|
119
128
|
*/
|
|
120
129
|
declare function table_resetGrouping<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
121
130
|
/**
|
|
122
|
-
*
|
|
131
|
+
* Checks whether this row was created as a grouped row.
|
|
123
132
|
*
|
|
124
|
-
*
|
|
133
|
+
* Grouped rows carry a `groupingColumnId`; ordinary leaf rows do not.
|
|
125
134
|
*
|
|
126
135
|
* @example
|
|
127
136
|
* ```ts
|
|
128
|
-
* const
|
|
137
|
+
* const isGrouped = row_getIsGrouped(row)
|
|
129
138
|
* ```
|
|
130
139
|
*/
|
|
131
140
|
declare function row_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData> & Partial<Row_ColumnGrouping>): boolean;
|
|
132
141
|
/**
|
|
133
|
-
*
|
|
142
|
+
* Reads and caches this row's grouping value for a column.
|
|
134
143
|
*
|
|
135
|
-
*
|
|
144
|
+
* `columnDef.getGroupingValue` wins when provided; otherwise the normal row
|
|
145
|
+
* accessor value is used.
|
|
136
146
|
*
|
|
137
147
|
* @example
|
|
138
148
|
* ```ts
|
|
139
|
-
* const
|
|
149
|
+
* const groupValue = row_getGroupingValue(row, 'status')
|
|
140
150
|
* ```
|
|
141
151
|
*/
|
|
142
152
|
declare function row_getGroupingValue<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData> & Partial<Row_ColumnGrouping>, columnId: string): any;
|
|
143
153
|
/**
|
|
144
|
-
*
|
|
154
|
+
* Checks whether this cell represents the grouped column for a grouped row.
|
|
145
155
|
*
|
|
146
|
-
* This is the
|
|
156
|
+
* This is the cell that usually renders the grouped value and expansion control.
|
|
147
157
|
*
|
|
148
158
|
* @example
|
|
149
159
|
* ```ts
|
|
150
|
-
* const
|
|
160
|
+
* const isGroupedCell = cell_getIsGrouped(cell)
|
|
151
161
|
* ```
|
|
152
162
|
*/
|
|
153
163
|
declare function cell_getIsGrouped<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|
|
154
164
|
/**
|
|
155
|
-
*
|
|
165
|
+
* Checks whether this cell is a placeholder hidden by grouping.
|
|
156
166
|
*
|
|
157
|
-
*
|
|
167
|
+
* Placeholder cells belong to grouped columns other than the row's active
|
|
168
|
+
* grouping column.
|
|
158
169
|
*
|
|
159
170
|
* @example
|
|
160
171
|
* ```ts
|
|
161
|
-
* const
|
|
172
|
+
* const isPlaceholder = cell_getIsPlaceholder(cell)
|
|
162
173
|
* ```
|
|
163
174
|
*/
|
|
164
175
|
declare function cell_getIsPlaceholder<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|
|
165
176
|
/**
|
|
166
|
-
*
|
|
177
|
+
* Checks whether this cell should render an aggregated value.
|
|
167
178
|
*
|
|
168
|
-
*
|
|
179
|
+
* Aggregated cells are non-placeholder, non-grouped cells on rows that have
|
|
180
|
+
* subRows.
|
|
169
181
|
*
|
|
170
182
|
* @example
|
|
171
183
|
* ```ts
|
|
172
|
-
* const
|
|
184
|
+
* const isAggregated = cell_getIsAggregated(cell)
|
|
173
185
|
* ```
|
|
174
186
|
*/
|
|
175
187
|
declare function cell_getIsAggregated<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): boolean;
|