@tanstack/table-core 9.0.0-beta.9 → 9.0.1
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 +27 -9
- package/dist/core/cells/constructCell.d.ts +4 -6
- package/dist/core/cells/constructCell.js +4 -6
- package/dist/core/cells/coreCellsFeature.d.ts +1 -3
- package/dist/core/cells/coreCellsFeature.js +1 -2
- package/dist/core/cells/coreCellsFeature.types.d.ts +7 -9
- package/dist/core/cells/coreCellsFeature.utils.d.ts +5 -5
- package/dist/core/cells/coreCellsFeature.utils.js +1 -2
- package/dist/core/columns/constructColumn.d.ts +4 -6
- package/dist/core/columns/constructColumn.js +8 -9
- package/dist/core/columns/coreColumnsFeature.d.ts +2 -4
- package/dist/core/columns/coreColumnsFeature.js +14 -21
- package/dist/core/columns/coreColumnsFeature.types.d.ts +13 -15
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +10 -12
- package/dist/core/columns/coreColumnsFeature.utils.js +19 -20
- package/dist/core/coreFeatures.d.ts +2 -2
- package/dist/core/coreFeatures.js +1 -2
- package/dist/core/headers/buildHeaderGroups.d.ts +3 -5
- package/dist/core/headers/buildHeaderGroups.js +99 -85
- package/dist/core/headers/constructHeader.d.ts +3 -5
- package/dist/core/headers/constructHeader.js +4 -6
- package/dist/core/headers/coreHeadersFeature.d.ts +1 -3
- package/dist/core/headers/coreHeadersFeature.js +9 -13
- package/dist/core/headers/coreHeadersFeature.types.d.ts +22 -12
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +8 -8
- package/dist/core/headers/coreHeadersFeature.utils.js +14 -17
- package/dist/core/reactivity/coreReactivityFeature.types.d.ts +8 -3
- package/dist/core/reactivity/coreReactivityFeature.utils.d.ts +1 -3
- package/dist/core/reactivity/coreReactivityFeature.utils.js +1 -2
- package/dist/core/reactivity/renderPhaseReactivity.d.ts +80 -0
- package/dist/core/reactivity/renderPhaseReactivity.js +95 -0
- package/dist/core/row-models/coreRowModelsFeature.d.ts +1 -3
- package/dist/core/row-models/coreRowModelsFeature.js +1 -2
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +7 -17
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +17 -19
- package/dist/core/row-models/coreRowModelsFeature.utils.js +9 -28
- package/dist/core/row-models/createCoreRowModel.d.ts +3 -5
- package/dist/core/row-models/createCoreRowModel.js +29 -24
- package/dist/core/rows/constructRow.d.ts +3 -5
- package/dist/core/rows/constructRow.js +9 -13
- package/dist/core/rows/coreRowsFeature.d.ts +1 -3
- package/dist/core/rows/coreRowsFeature.js +20 -5
- package/dist/core/rows/coreRowsFeature.types.d.ts +43 -11
- package/dist/core/rows/coreRowsFeature.utils.d.ts +26 -9
- package/dist/core/rows/coreRowsFeature.utils.js +65 -14
- package/dist/core/table/constructTable.d.ts +2 -4
- package/dist/core/table/constructTable.js +54 -22
- package/dist/core/table/coreTablesFeature.d.ts +1 -3
- package/dist/core/table/coreTablesFeature.js +1 -2
- package/dist/core/table/coreTablesFeature.types.d.ts +41 -24
- package/dist/core/table/coreTablesFeature.utils.d.ts +34 -12
- package/dist/core/table/coreTablesFeature.utils.js +71 -25
- package/dist/experimental-worker-plugin.d.ts +5 -0
- package/dist/experimental-worker-plugin.js +6 -0
- package/dist/features/cell-selection/cellSelectionFeature.d.ts +8 -0
- package/dist/features/cell-selection/cellSelectionFeature.js +128 -0
- package/dist/features/cell-selection/cellSelectionFeature.types.d.ts +296 -0
- package/dist/features/cell-selection/cellSelectionFeature.utils.d.ts +306 -0
- package/dist/features/cell-selection/cellSelectionFeature.utils.js +879 -0
- package/dist/features/cell-selection/cellSelectionGeometry.js +121 -0
- package/dist/features/cell-spanning/cellSpanningFeature.d.ts +13 -0
- package/dist/features/cell-spanning/cellSpanningFeature.js +47 -0
- package/dist/features/cell-spanning/cellSpanningFeature.types.d.ts +150 -0
- package/dist/features/cell-spanning/cellSpanningFeature.utils.d.ts +74 -0
- package/dist/features/cell-spanning/cellSpanningFeature.utils.js +262 -0
- package/dist/features/column-faceting/columnFacetingFeature.d.ts +7 -3
- package/dist/features/column-faceting/columnFacetingFeature.js +14 -43
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +15 -35
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +10 -12
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +29 -14
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.ts +2 -4
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +9 -7
- package/dist/features/column-faceting/createFacetedRowModel.d.ts +3 -5
- package/dist/features/column-faceting/createFacetedRowModel.js +12 -17
- package/dist/features/column-faceting/createFacetedUniqueValues.d.ts +2 -4
- package/dist/features/column-faceting/createFacetedUniqueValues.js +12 -9
- package/dist/features/column-filtering/columnFilteringFeature.d.ts +1 -3
- package/dist/features/column-filtering/columnFilteringFeature.js +4 -5
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +90 -33
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +25 -18
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +42 -23
- package/dist/features/column-filtering/createFilteredRowModel.d.ts +11 -7
- package/dist/features/column-filtering/createFilteredRowModel.js +34 -30
- package/dist/features/column-filtering/filterFns.d.ts +210 -0
- package/dist/features/column-filtering/filterFns.js +377 -0
- package/dist/features/column-filtering/filterRowsUtils.js +12 -4
- package/dist/features/column-grouping/columnGroupingFeature.d.ts +2 -4
- package/dist/features/column-grouping/columnGroupingFeature.js +7 -20
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +14 -52
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +12 -51
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +8 -61
- package/dist/features/column-grouping/createGroupedRowModel.d.ts +7 -7
- package/dist/features/column-grouping/createGroupedRowModel.js +79 -43
- package/dist/features/column-ordering/columnOrderingFeature.d.ts +1 -3
- package/dist/features/column-ordering/columnOrderingFeature.js +19 -24
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +28 -5
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +26 -16
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +36 -18
- package/dist/features/column-pinning/columnPinningFeature.d.ts +7 -4
- package/dist/features/column-pinning/columnPinningFeature.js +126 -146
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +53 -44
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +100 -93
- package/dist/features/column-pinning/columnPinningFeature.utils.js +148 -150
- package/dist/features/column-resizing/columnResizingFeature.d.ts +1 -3
- package/dist/features/column-resizing/columnResizingFeature.js +1 -2
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +2 -7
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +7 -9
- package/dist/features/column-resizing/columnResizingFeature.utils.js +86 -48
- package/dist/features/column-sizing/columnSizingFeature.d.ts +1 -3
- package/dist/features/column-sizing/columnSizingFeature.js +35 -70
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +52 -11
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +43 -27
- package/dist/features/column-sizing/columnSizingFeature.utils.js +95 -54
- package/dist/features/column-visibility/columnVisibilityFeature.d.ts +1 -3
- package/dist/features/column-visibility/columnVisibilityFeature.js +26 -38
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +4 -6
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +22 -20
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +39 -32
- package/dist/features/global-filtering/globalFilteringFeature.d.ts +1 -3
- package/dist/features/global-filtering/globalFilteringFeature.js +3 -4
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +4 -6
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +10 -13
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +7 -8
- package/dist/features/row-aggregation/aggregationFns.d.ts +67 -0
- package/dist/features/row-aggregation/aggregationFns.js +279 -0
- package/dist/features/row-aggregation/rowAggregationFeature.d.ts +8 -0
- package/dist/features/row-aggregation/rowAggregationFeature.js +35 -0
- package/dist/features/row-aggregation/rowAggregationFeature.types.d.ts +193 -0
- package/dist/features/row-aggregation/rowAggregationFeature.types.js +11 -0
- package/dist/features/row-aggregation/rowAggregationFeature.utils.d.ts +46 -0
- package/dist/features/row-aggregation/rowAggregationFeature.utils.js +235 -0
- package/dist/features/row-expanding/createExpandedRowModel.d.ts +3 -5
- package/dist/features/row-expanding/createExpandedRowModel.js +9 -13
- package/dist/features/row-expanding/rowExpandingFeature.d.ts +1 -3
- package/dist/features/row-expanding/rowExpandingFeature.js +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +7 -18
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +26 -22
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +66 -45
- package/dist/features/row-pagination/createPaginatedRowModel.d.ts +3 -5
- package/dist/features/row-pagination/createPaginatedRowModel.js +10 -12
- package/dist/features/row-pagination/rowPaginationFeature.d.ts +1 -3
- package/dist/features/row-pagination/rowPaginationFeature.js +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +6 -17
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +18 -20
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +10 -17
- package/dist/features/row-pinning/rowPinningFeature.d.ts +1 -3
- package/dist/features/row-pinning/rowPinningFeature.js +5 -18
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +3 -5
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +8 -10
- package/dist/features/row-pinning/rowPinningFeature.utils.js +12 -18
- package/dist/features/row-selection/rowSelectionFeature.d.ts +1 -3
- package/dist/features/row-selection/rowSelectionFeature.js +70 -25
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +69 -16
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +70 -38
- package/dist/features/row-selection/rowSelectionFeature.utils.js +229 -108
- package/dist/features/row-sorting/createSortedRowModel.d.ts +11 -7
- package/dist/features/row-sorting/createSortedRowModel.js +72 -54
- package/dist/features/row-sorting/rowSortingFeature.d.ts +1 -3
- package/dist/features/row-sorting/rowSortingFeature.js +2 -2
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +74 -31
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +39 -27
- package/dist/features/row-sorting/rowSortingFeature.utils.js +66 -33
- package/dist/features/row-sorting/sortFns.d.ts +96 -0
- package/dist/features/row-sorting/sortFns.js +216 -0
- package/dist/features/stockFeatures.d.ts +7 -3
- package/dist/features/stockFeatures.js +7 -2
- package/dist/flex-render.d.ts +2 -4
- package/dist/flex-render.js +10 -3
- package/dist/helpers/columnHelper.d.ts +3 -5
- package/dist/helpers/columnHelper.js +1 -2
- package/dist/helpers/metaHelper.d.ts +1 -2
- package/dist/helpers/metaHelper.js +1 -2
- package/dist/helpers/tableFeatures.d.ts +30 -13
- package/dist/helpers/tableFeatures.js +28 -10
- package/dist/helpers/tableOptions.d.ts +1 -3
- package/dist/helpers/tableOptions.js +1 -2
- package/dist/index.d.ts +32 -26
- package/dist/index.js +9 -5
- package/dist/reactivity.d.ts +2 -1
- package/dist/reactivity.js +2 -1
- package/dist/static-functions.d.ts +12 -9
- package/dist/static-functions.js +13 -10
- package/dist/store-reactivity-bindings.d.ts +1 -3
- package/dist/store-reactivity-bindings.js +3 -4
- package/dist/types/Cell.d.ts +9 -5
- package/dist/types/Column.d.ts +13 -15
- package/dist/types/ColumnDef.d.ts +23 -19
- package/dist/types/Header.d.ts +3 -5
- package/dist/types/HeaderGroup.d.ts +3 -5
- package/dist/types/Row.d.ts +7 -7
- package/dist/types/RowModel.d.ts +11 -25
- package/dist/types/RowModelFns.d.ts +5 -7
- package/dist/types/Table.d.ts +29 -32
- package/dist/types/TableFeatures.d.ts +372 -30
- package/dist/types/TableOptions.d.ts +24 -14
- package/dist/types/TableState.d.ts +8 -8
- package/dist/types/type-utils.d.ts +10 -4
- package/dist/utils.d.ts +42 -27
- package/dist/utils.js +71 -33
- package/dist/worker/createTableWorker.d.ts +102 -0
- package/dist/worker/createTableWorker.js +188 -0
- package/dist/worker/createWorkerRowModel.d.ts +40 -0
- package/dist/worker/createWorkerRowModel.js +77 -0
- package/dist/worker/initTableWorker.d.ts +31 -0
- package/dist/worker/initTableWorker.js +99 -0
- package/dist/worker/rebuildRowModel.d.ts +11 -0
- package/dist/worker/rebuildRowModel.js +71 -0
- package/dist/worker/serializeRowModel.js +51 -0
- package/dist/worker/tableWorkerProtocol.d.ts +88 -0
- package/dist/worker/tableWorkerProtocol.js +26 -0
- package/package.json +12 -28
- package/skills/aggregation/SKILL.md +137 -0
- package/skills/api-not-found/SKILL.md +113 -0
- package/skills/cell-selection/SKILL.md +200 -0
- package/skills/cell-spanning/SKILL.md +158 -0
- package/skills/client-vs-server/SKILL.md +164 -0
- package/skills/column-faceting/SKILL.md +93 -0
- package/skills/column-filtering/SKILL.md +83 -0
- package/skills/column-ordering/SKILL.md +71 -0
- package/skills/column-pinning/SKILL.md +85 -0
- package/skills/column-resizing/SKILL.md +87 -0
- package/skills/column-sizing/SKILL.md +68 -0
- package/skills/column-visibility/SKILL.md +71 -0
- package/skills/core/SKILL.md +175 -0
- package/skills/custom-features/SKILL.md +235 -0
- package/skills/expanding/SKILL.md +76 -0
- package/skills/global-filtering/SKILL.md +80 -0
- package/skills/grouping/SKILL.md +47 -401
- package/skills/migrate-v8-to-v9/SKILL.md +275 -416
- package/skills/pagination/SKILL.md +33 -344
- package/skills/row-pinning/SKILL.md +43 -234
- package/skills/row-selection/SKILL.md +79 -296
- package/skills/sorting/SKILL.md +41 -303
- package/skills/table-features/SKILL.md +159 -0
- package/skills/typescript/SKILL.md +126 -0
- package/dist/core/cells/constructCell.cjs +0 -34
- package/dist/core/cells/constructCell.cjs.map +0 -1
- package/dist/core/cells/constructCell.d.cts +0 -17
- package/dist/core/cells/constructCell.js.map +0 -1
- package/dist/core/cells/coreCellsFeature.cjs +0 -21
- package/dist/core/cells/coreCellsFeature.cjs.map +0 -1
- package/dist/core/cells/coreCellsFeature.d.cts +0 -10
- package/dist/core/cells/coreCellsFeature.js.map +0 -1
- package/dist/core/cells/coreCellsFeature.types.d.cts +0 -57
- package/dist/core/cells/coreCellsFeature.utils.cjs +0 -57
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +0 -1
- package/dist/core/cells/coreCellsFeature.utils.d.cts +0 -53
- package/dist/core/cells/coreCellsFeature.utils.js.map +0 -1
- package/dist/core/columns/constructColumn.cjs +0 -61
- package/dist/core/columns/constructColumn.cjs.map +0 -1
- package/dist/core/columns/constructColumn.d.cts +0 -16
- package/dist/core/columns/constructColumn.js.map +0 -1
- package/dist/core/columns/coreColumnsFeature.cjs +0 -70
- package/dist/core/columns/coreColumnsFeature.cjs.map +0 -1
- package/dist/core/columns/coreColumnsFeature.d.cts +0 -10
- package/dist/core/columns/coreColumnsFeature.js.map +0 -1
- package/dist/core/columns/coreColumnsFeature.types.d.cts +0 -94
- package/dist/core/columns/coreColumnsFeature.utils.cjs +0 -187
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +0 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +0 -119
- package/dist/core/columns/coreColumnsFeature.utils.js.map +0 -1
- package/dist/core/coreFeatures.cjs +0 -25
- package/dist/core/coreFeatures.cjs.map +0 -1
- package/dist/core/coreFeatures.d.cts +0 -26
- package/dist/core/coreFeatures.js.map +0 -1
- package/dist/core/headers/buildHeaderGroups.cjs +0 -103
- package/dist/core/headers/buildHeaderGroups.cjs.map +0 -1
- package/dist/core/headers/buildHeaderGroups.d.cts +0 -16
- package/dist/core/headers/buildHeaderGroups.js.map +0 -1
- package/dist/core/headers/constructHeader.cjs +0 -41
- package/dist/core/headers/constructHeader.cjs.map +0 -1
- package/dist/core/headers/constructHeader.d.cts +0 -22
- package/dist/core/headers/constructHeader.js.map +0 -1
- package/dist/core/headers/coreHeadersFeature.cjs +0 -55
- package/dist/core/headers/coreHeadersFeature.cjs.map +0 -1
- package/dist/core/headers/coreHeadersFeature.d.cts +0 -10
- package/dist/core/headers/coreHeadersFeature.js.map +0 -1
- package/dist/core/headers/coreHeadersFeature.types.d.cts +0 -106
- package/dist/core/headers/coreHeadersFeature.utils.cjs +0 -142
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +0 -1
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +0 -85
- package/dist/core/headers/coreHeadersFeature.utils.js.map +0 -1
- package/dist/core/reactivity/coreReactivityFeature.types.d.cts +0 -48
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs +0 -24
- package/dist/core/reactivity/coreReactivityFeature.utils.cjs.map +0 -1
- package/dist/core/reactivity/coreReactivityFeature.utils.d.cts +0 -24
- package/dist/core/reactivity/coreReactivityFeature.utils.js.map +0 -1
- package/dist/core/row-models/coreRowModelsFeature.cjs +0 -27
- package/dist/core/row-models/coreRowModelsFeature.cjs.map +0 -1
- package/dist/core/row-models/coreRowModelsFeature.d.cts +0 -10
- package/dist/core/row-models/coreRowModelsFeature.js.map +0 -1
- package/dist/core/row-models/coreRowModelsFeature.types.d.cts +0 -41
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +0 -215
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +0 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +0 -153
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +0 -1
- package/dist/core/row-models/createCoreRowModel.cjs +0 -52
- package/dist/core/row-models/createCoreRowModel.cjs.map +0 -1
- package/dist/core/row-models/createCoreRowModel.d.cts +0 -15
- package/dist/core/row-models/createCoreRowModel.js.map +0 -1
- package/dist/core/rows/constructRow.cjs +0 -44
- package/dist/core/rows/constructRow.cjs.map +0 -1
- package/dist/core/rows/constructRow.d.cts +0 -15
- package/dist/core/rows/constructRow.js.map +0 -1
- package/dist/core/rows/coreRowsFeature.cjs +0 -37
- package/dist/core/rows/coreRowsFeature.cjs.map +0 -1
- package/dist/core/rows/coreRowsFeature.d.cts +0 -10
- package/dist/core/rows/coreRowsFeature.js.map +0 -1
- package/dist/core/rows/coreRowsFeature.types.d.cts +0 -99
- package/dist/core/rows/coreRowsFeature.utils.cjs +0 -192
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +0 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +0 -127
- package/dist/core/rows/coreRowsFeature.utils.js.map +0 -1
- package/dist/core/table/constructTable.cjs +0 -119
- package/dist/core/table/constructTable.cjs.map +0 -1
- package/dist/core/table/constructTable.d.cts +0 -22
- package/dist/core/table/constructTable.js.map +0 -1
- package/dist/core/table/coreTablesFeature.cjs +0 -17
- package/dist/core/table/coreTablesFeature.cjs.map +0 -1
- package/dist/core/table/coreTablesFeature.d.cts +0 -10
- package/dist/core/table/coreTablesFeature.js.map +0 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +0 -200
- package/dist/core/table/coreTablesFeature.utils.cjs +0 -96
- package/dist/core/table/coreTablesFeature.utils.cjs.map +0 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +0 -57
- package/dist/core/table/coreTablesFeature.utils.js.map +0 -1
- package/dist/features/column-faceting/columnFacetingFeature.cjs +0 -61
- package/dist/features/column-faceting/columnFacetingFeature.cjs.map +0 -1
- package/dist/features/column-faceting/columnFacetingFeature.d.cts +0 -10
- package/dist/features/column-faceting/columnFacetingFeature.js.map +0 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +0 -85
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +0 -103
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +0 -1
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +0 -84
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +0 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +0 -44
- package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +0 -1
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.cts +0 -14
- package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +0 -1
- package/dist/features/column-faceting/createFacetedRowModel.cjs +0 -50
- package/dist/features/column-faceting/createFacetedRowModel.cjs.map +0 -1
- package/dist/features/column-faceting/createFacetedRowModel.d.cts +0 -15
- package/dist/features/column-faceting/createFacetedRowModel.js.map +0 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs +0 -41
- package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +0 -1
- package/dist/features/column-faceting/createFacetedUniqueValues.d.cts +0 -14
- package/dist/features/column-faceting/createFacetedUniqueValues.js.map +0 -1
- package/dist/features/column-filtering/columnFilteringFeature.cjs +0 -50
- package/dist/features/column-filtering/columnFilteringFeature.cjs.map +0 -1
- package/dist/features/column-filtering/columnFilteringFeature.d.cts +0 -10
- package/dist/features/column-filtering/columnFilteringFeature.js.map +0 -1
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +0 -160
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +0 -212
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +0 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +0 -143
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +0 -1
- package/dist/features/column-filtering/createFilteredRowModel.cjs +0 -110
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +0 -1
- package/dist/features/column-filtering/createFilteredRowModel.d.cts +0 -16
- package/dist/features/column-filtering/createFilteredRowModel.js.map +0 -1
- package/dist/features/column-filtering/filterRowsUtils.cjs +0 -81
- package/dist/features/column-filtering/filterRowsUtils.cjs.map +0 -1
- package/dist/features/column-filtering/filterRowsUtils.js.map +0 -1
- package/dist/features/column-grouping/columnGroupingFeature.cjs +0 -67
- package/dist/features/column-grouping/columnGroupingFeature.cjs.map +0 -1
- package/dist/features/column-grouping/columnGroupingFeature.d.cts +0 -10
- package/dist/features/column-grouping/columnGroupingFeature.js.map +0 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +0 -165
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +0 -250
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +0 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +0 -190
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +0 -1
- package/dist/features/column-grouping/createGroupedRowModel.cjs +0 -119
- package/dist/features/column-grouping/createGroupedRowModel.cjs.map +0 -1
- package/dist/features/column-grouping/createGroupedRowModel.d.cts +0 -16
- package/dist/features/column-grouping/createGroupedRowModel.js.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.cjs +0 -58
- package/dist/features/column-ordering/columnOrderingFeature.cjs.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.d.cts +0 -10
- package/dist/features/column-ordering/columnOrderingFeature.js.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +0 -56
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +0 -172
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +0 -107
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.cjs +0 -221
- package/dist/features/column-pinning/columnPinningFeature.cjs.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.d.cts +0 -10
- package/dist/features/column-pinning/columnPinningFeature.js.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +0 -178
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +0 -585
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +0 -375
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +0 -1
- package/dist/features/column-resizing/columnResizingFeature.cjs +0 -41
- package/dist/features/column-resizing/columnResizingFeature.cjs.map +0 -1
- package/dist/features/column-resizing/columnResizingFeature.d.cts +0 -10
- package/dist/features/column-resizing/columnResizingFeature.js.map +0 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +0 -81
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +0 -246
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +0 -1
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +0 -109
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +0 -1
- package/dist/features/column-sizing/columnSizingFeature.cjs +0 -124
- package/dist/features/column-sizing/columnSizingFeature.cjs.map +0 -1
- package/dist/features/column-sizing/columnSizingFeature.d.cts +0 -10
- package/dist/features/column-sizing/columnSizingFeature.js.map +0 -1
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +0 -96
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +0 -256
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +0 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +0 -182
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +0 -1
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +0 -94
- package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +0 -1
- package/dist/features/column-visibility/columnVisibilityFeature.d.cts +0 -10
- package/dist/features/column-visibility/columnVisibilityFeature.js.map +0 -1
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +0 -97
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +0 -283
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +0 -1
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +0 -189
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +0 -1
- package/dist/features/global-filtering/globalFilteringFeature.cjs +0 -41
- package/dist/features/global-filtering/globalFilteringFeature.cjs.map +0 -1
- package/dist/features/global-filtering/globalFilteringFeature.d.cts +0 -10
- package/dist/features/global-filtering/globalFilteringFeature.js.map +0 -1
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +0 -71
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +0 -88
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +0 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +0 -74
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +0 -1
- package/dist/features/row-expanding/createExpandedRowModel.cjs +0 -59
- package/dist/features/row-expanding/createExpandedRowModel.cjs.map +0 -1
- package/dist/features/row-expanding/createExpandedRowModel.d.cts +0 -21
- package/dist/features/row-expanding/createExpandedRowModel.js.map +0 -1
- package/dist/features/row-expanding/rowExpandingFeature.cjs +0 -47
- package/dist/features/row-expanding/rowExpandingFeature.cjs.map +0 -1
- package/dist/features/row-expanding/rowExpandingFeature.d.cts +0 -10
- package/dist/features/row-expanding/rowExpandingFeature.js.map +0 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +0 -127
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +0 -281
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +0 -1
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +0 -191
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +0 -1
- package/dist/features/row-pagination/createPaginatedRowModel.cjs +0 -62
- package/dist/features/row-pagination/createPaginatedRowModel.cjs.map +0 -1
- package/dist/features/row-pagination/createPaginatedRowModel.d.cts +0 -15
- package/dist/features/row-pagination/createPaginatedRowModel.js.map +0 -1
- package/dist/features/row-pagination/rowPaginationFeature.cjs +0 -45
- package/dist/features/row-pagination/rowPaginationFeature.cjs.map +0 -1
- package/dist/features/row-pagination/rowPaginationFeature.d.cts +0 -10
- package/dist/features/row-pagination/rowPaginationFeature.js.map +0 -1
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +0 -135
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +0 -312
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +0 -1
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +0 -218
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +0 -1
- package/dist/features/row-pinning/rowPinningFeature.cjs +0 -67
- package/dist/features/row-pinning/rowPinningFeature.cjs.map +0 -1
- package/dist/features/row-pinning/rowPinningFeature.d.cts +0 -10
- package/dist/features/row-pinning/rowPinningFeature.js.map +0 -1
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +0 -83
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +0 -229
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +0 -1
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +0 -143
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +0 -1
- package/dist/features/row-selection/rowSelectionFeature.cjs +0 -75
- package/dist/features/row-selection/rowSelectionFeature.cjs.map +0 -1
- package/dist/features/row-selection/rowSelectionFeature.d.cts +0 -10
- package/dist/features/row-selection/rowSelectionFeature.js.map +0 -1
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +0 -136
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +0 -518
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +0 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +0 -318
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +0 -1
- package/dist/features/row-sorting/createSortedRowModel.cjs +0 -95
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +0 -1
- package/dist/features/row-sorting/createSortedRowModel.d.cts +0 -16
- package/dist/features/row-sorting/createSortedRowModel.js.map +0 -1
- package/dist/features/row-sorting/rowSortingFeature.cjs +0 -55
- package/dist/features/row-sorting/rowSortingFeature.cjs.map +0 -1
- package/dist/features/row-sorting/rowSortingFeature.d.cts +0 -10
- package/dist/features/row-sorting/rowSortingFeature.js.map +0 -1
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +0 -188
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +0 -305
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +0 -1
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +0 -193
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +0 -1
- package/dist/features/stockFeatures.cjs +0 -41
- package/dist/features/stockFeatures.cjs.map +0 -1
- package/dist/features/stockFeatures.d.cts +0 -41
- package/dist/features/stockFeatures.js.map +0 -1
- package/dist/flex-render.cjs +0 -29
- package/dist/flex-render.cjs.map +0 -1
- package/dist/flex-render.d.cts +0 -34
- package/dist/flex-render.js.map +0 -1
- package/dist/fns/aggregationFns.cjs +0 -161
- package/dist/fns/aggregationFns.cjs.map +0 -1
- package/dist/fns/aggregationFns.d.cts +0 -85
- package/dist/fns/aggregationFns.d.ts +0 -85
- package/dist/fns/aggregationFns.js +0 -151
- package/dist/fns/aggregationFns.js.map +0 -1
- package/dist/fns/filterFns.cjs +0 -201
- package/dist/fns/filterFns.cjs.map +0 -1
- package/dist/fns/filterFns.d.cts +0 -167
- package/dist/fns/filterFns.d.ts +0 -167
- package/dist/fns/filterFns.js +0 -185
- package/dist/fns/filterFns.js.map +0 -1
- package/dist/fns/sortFns.cjs +0 -130
- package/dist/fns/sortFns.cjs.map +0 -1
- package/dist/fns/sortFns.d.cts +0 -65
- package/dist/fns/sortFns.d.ts +0 -65
- package/dist/fns/sortFns.js +0 -122
- package/dist/fns/sortFns.js.map +0 -1
- package/dist/helpers/columnHelper.cjs +0 -41
- package/dist/helpers/columnHelper.cjs.map +0 -1
- package/dist/helpers/columnHelper.d.cts +0 -71
- package/dist/helpers/columnHelper.js.map +0 -1
- package/dist/helpers/metaHelper.cjs +0 -30
- package/dist/helpers/metaHelper.cjs.map +0 -1
- package/dist/helpers/metaHelper.d.cts +0 -26
- package/dist/helpers/metaHelper.js.map +0 -1
- package/dist/helpers/tableFeatures.cjs +0 -30
- package/dist/helpers/tableFeatures.cjs.map +0 -1
- package/dist/helpers/tableFeatures.d.cts +0 -28
- package/dist/helpers/tableFeatures.js.map +0 -1
- package/dist/helpers/tableOptions.cjs +0 -15
- package/dist/helpers/tableOptions.cjs.map +0 -1
- package/dist/helpers/tableOptions.d.cts +0 -57
- package/dist/helpers/tableOptions.js.map +0 -1
- package/dist/index.cjs +0 -135
- package/dist/index.d.cts +0 -79
- package/dist/reactivity.cjs +0 -4
- package/dist/reactivity.d.cts +0 -3
- package/dist/static-functions.cjs +0 -263
- package/dist/static-functions.d.cts +0 -21
- package/dist/store-reactivity-bindings.cjs +0 -44
- package/dist/store-reactivity-bindings.cjs.map +0 -1
- package/dist/store-reactivity-bindings.d.cts +0 -22
- package/dist/store-reactivity-bindings.js.map +0 -1
- package/dist/types/Cell.d.cts +0 -14
- package/dist/types/Column.d.cts +0 -36
- package/dist/types/ColumnDef.d.cts +0 -123
- package/dist/types/Header.d.cts +0 -16
- package/dist/types/HeaderGroup.d.cts +0 -10
- package/dist/types/Row.d.cts +0 -26
- package/dist/types/RowModel.d.cts +0 -36
- package/dist/types/RowModelFns.d.cts +0 -18
- package/dist/types/Table.d.cts +0 -70
- package/dist/types/TableFeatures.d.cts +0 -75
- package/dist/types/TableOptions.d.cts +0 -69
- package/dist/types/TableState.d.cts +0 -48
- package/dist/types/type-utils.d.cts +0 -23
- package/dist/utils.cjs +0 -243
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -114
- package/dist/utils.js.map +0 -1
- package/skills/column-definitions/SKILL.md +0 -333
- package/skills/column-layout/SKILL.md +0 -328
- package/skills/column-layout/references/subsystems.md +0 -220
- package/skills/customizing-feature-behavior/SKILL.md +0 -416
- package/skills/filtering/SKILL.md +0 -357
- package/skills/filtering/references/faceting-and-fuzzy.md +0 -191
- package/skills/row-expanding/SKILL.md +0 -348
- package/skills/setup/SKILL.md +0 -400
- package/skills/state-management/SKILL.md +0 -388
- package/src/core/cells/constructCell.ts +0 -55
- package/src/core/cells/coreCellsFeature.ts +0 -27
- package/src/core/cells/coreCellsFeature.types.ts +0 -68
- package/src/core/cells/coreCellsFeature.utils.ts +0 -68
- package/src/core/columns/constructColumn.ts +0 -119
- package/src/core/columns/coreColumnsFeature.ts +0 -73
- package/src/core/columns/coreColumnsFeature.types.ts +0 -108
- package/src/core/columns/coreColumnsFeature.utils.ts +0 -275
- package/src/core/coreFeatures.ts +0 -31
- package/src/core/headers/buildHeaderGroups.ts +0 -182
- package/src/core/headers/constructHeader.ts +0 -67
- package/src/core/headers/coreHeadersFeature.ts +0 -56
- package/src/core/headers/coreHeadersFeature.types.ts +0 -125
- package/src/core/headers/coreHeadersFeature.utils.ts +0 -200
- package/src/core/reactivity/coreReactivityFeature.types.ts +0 -56
- package/src/core/reactivity/coreReactivityFeature.utils.ts +0 -44
- package/src/core/row-models/coreRowModelsFeature.ts +0 -62
- package/src/core/row-models/coreRowModelsFeature.types.ts +0 -64
- package/src/core/row-models/coreRowModelsFeature.utils.ts +0 -272
- package/src/core/row-models/createCoreRowModel.ts +0 -93
- package/src/core/rows/constructRow.ts +0 -66
- package/src/core/rows/coreRowsFeature.ts +0 -62
- package/src/core/rows/coreRowsFeature.types.ts +0 -117
- package/src/core/rows/coreRowsFeature.utils.ts +0 -264
- package/src/core/table/constructTable.ts +0 -179
- package/src/core/table/coreTablesFeature.ts +0 -19
- package/src/core/table/coreTablesFeature.types.ts +0 -237
- package/src/core/table/coreTablesFeature.utils.ts +0 -131
- package/src/features/column-faceting/columnFacetingFeature.ts +0 -89
- package/src/features/column-faceting/columnFacetingFeature.types.ts +0 -109
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +0 -145
- package/src/features/column-faceting/createFacetedMinMaxValues.ts +0 -66
- package/src/features/column-faceting/createFacetedRowModel.ts +0 -85
- package/src/features/column-faceting/createFacetedUniqueValues.ts +0 -66
- package/src/features/column-filtering/columnFilteringFeature.ts +0 -86
- package/src/features/column-filtering/columnFilteringFeature.types.ts +0 -232
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +0 -331
- package/src/features/column-filtering/createFilteredRowModel.ts +0 -183
- package/src/features/column-filtering/filterRowsUtils.ts +0 -157
- package/src/features/column-grouping/columnGroupingFeature.ts +0 -115
- package/src/features/column-grouping/columnGroupingFeature.types.ts +0 -226
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +0 -354
- package/src/features/column-grouping/createGroupedRowModel.ts +0 -220
- package/src/features/column-ordering/columnOrderingFeature.ts +0 -73
- package/src/features/column-ordering/columnOrderingFeature.types.ts +0 -60
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +0 -241
- package/src/features/column-pinning/columnPinningFeature.ts +0 -316
- package/src/features/column-pinning/columnPinningFeature.types.ts +0 -192
- package/src/features/column-pinning/columnPinningFeature.utils.ts +0 -908
- package/src/features/column-resizing/columnResizingFeature.ts +0 -65
- package/src/features/column-resizing/columnResizingFeature.types.ts +0 -89
- package/src/features/column-resizing/columnResizingFeature.utils.ts +0 -364
- package/src/features/column-sizing/columnSizingFeature.ts +0 -145
- package/src/features/column-sizing/columnSizingFeature.types.ts +0 -102
- package/src/features/column-sizing/columnSizingFeature.utils.ts +0 -381
- package/src/features/column-visibility/columnVisibilityFeature.ts +0 -122
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +0 -112
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +0 -384
- package/src/features/global-filtering/globalFilteringFeature.ts +0 -65
- package/src/features/global-filtering/globalFilteringFeature.types.ts +0 -91
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +0 -118
- package/src/features/row-expanding/createExpandedRowModel.ts +0 -82
- package/src/features/row-expanding/rowExpandingFeature.ts +0 -94
- package/src/features/row-expanding/rowExpandingFeature.types.ts +0 -147
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +0 -374
- package/src/features/row-pagination/createPaginatedRowModel.ts +0 -83
- package/src/features/row-pagination/rowPaginationFeature.ts +0 -95
- package/src/features/row-pagination/rowPaginationFeature.types.ts +0 -152
- package/src/features/row-pagination/rowPaginationFeature.utils.ts +0 -400
- package/src/features/row-pinning/rowPinningFeature.ts +0 -97
- package/src/features/row-pinning/rowPinningFeature.types.ts +0 -95
- package/src/features/row-pinning/rowPinningFeature.utils.ts +0 -323
- package/src/features/row-selection/rowSelectionFeature.ts +0 -140
- package/src/features/row-selection/rowSelectionFeature.types.ts +0 -151
- package/src/features/row-selection/rowSelectionFeature.utils.ts +0 -750
- package/src/features/row-sorting/createSortedRowModel.ts +0 -157
- package/src/features/row-sorting/rowSortingFeature.ts +0 -103
- package/src/features/row-sorting/rowSortingFeature.types.ts +0 -235
- package/src/features/row-sorting/rowSortingFeature.utils.ts +0 -489
- package/src/features/stockFeatures.ts +0 -53
- package/src/flex-render.ts +0 -70
- package/src/fns/aggregationFns.ts +0 -245
- package/src/fns/filterFns.ts +0 -382
- package/src/fns/sortFns.ts +0 -240
- package/src/helpers/columnHelper.ts +0 -122
- package/src/helpers/metaHelper.ts +0 -24
- package/src/helpers/tableFeatures.ts +0 -34
- package/src/helpers/tableOptions.ts +0 -117
- package/src/index.ts +0 -139
- package/src/process-env.d.ts +0 -6
- package/src/reactivity.ts +0 -2
- package/src/static-functions.ts +0 -31
- package/src/store-reactivity-bindings.ts +0 -47
- package/src/types/Cell.ts +0 -21
- package/src/types/Column.ts +0 -51
- package/src/types/ColumnDef.ts +0 -254
- package/src/types/Header.ts +0 -23
- package/src/types/HeaderGroup.ts +0 -13
- package/src/types/Row.ts +0 -34
- package/src/types/RowModel.ts +0 -98
- package/src/types/RowModelFns.ts +0 -32
- package/src/types/Table.ts +0 -91
- package/src/types/TableFeatures.ts +0 -123
- package/src/types/TableOptions.ts +0 -104
- package/src/types/TableState.ts +0 -47
- package/src/types/type-utils.ts +0 -84
- package/src/utils.ts +0 -441
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CellData, RowData, Updater } from "../../types/type-utils.js";
|
|
2
|
-
import { Column
|
|
2
|
+
import { Column } from "../../types/Column.js";
|
|
3
3
|
import { ColumnVisibilityState } from "./columnVisibilityFeature.types.js";
|
|
4
4
|
import { Row } from "../../types/Row.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Table_Internal } from "../../types/Table.js";
|
|
5
|
+
import { Table } from "../../types/Table.js";
|
|
7
6
|
import { Cell } from "../../types/Cell.js";
|
|
7
|
+
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
8
|
+
import "../../index.js";
|
|
8
9
|
//#region src/features/column-visibility/columnVisibilityFeature.utils.d.ts
|
|
9
10
|
/**
|
|
10
11
|
* Creates the default column visibility state.
|
|
@@ -22,14 +23,16 @@ declare function getDefaultColumnVisibilityState(): ColumnVisibilityState;
|
|
|
22
23
|
* Updates this column's visibility when hiding is allowed.
|
|
23
24
|
*
|
|
24
25
|
* Passing `visible` stores that value. Omitting it flips the column's current
|
|
25
|
-
* visibility state.
|
|
26
|
+
* visibility state. Group columns update their hideable leaf columns because
|
|
27
|
+
* visibility state is keyed by leaf column ids. Columns that cannot hide stay
|
|
28
|
+
* unchanged.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
28
31
|
* ```ts
|
|
29
32
|
* column_toggleVisibility(column)
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
32
|
-
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
35
|
+
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, visible?: boolean): void;
|
|
33
36
|
/**
|
|
34
37
|
* Checks whether this column is visible.
|
|
35
38
|
*
|
|
@@ -42,7 +45,7 @@ declare function column_toggleVisibility<TFeatures extends TableFeatures, TData
|
|
|
42
45
|
* const visible = column_getIsVisible(column)
|
|
43
46
|
* ```
|
|
44
47
|
*/
|
|
45
|
-
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
48
|
+
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
46
49
|
/**
|
|
47
50
|
* Checks whether this column is allowed to be hidden.
|
|
48
51
|
*
|
|
@@ -53,7 +56,7 @@ declare function column_getIsVisible<TFeatures extends TableFeatures, TData exte
|
|
|
53
56
|
* const canHide = column_getCanHide(column)
|
|
54
57
|
* ```
|
|
55
58
|
*/
|
|
56
|
-
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
59
|
+
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
57
60
|
/**
|
|
58
61
|
* Creates a checkbox-style handler that writes this column's visibility.
|
|
59
62
|
*
|
|
@@ -65,12 +68,12 @@ declare function column_getCanHide<TFeatures extends TableFeatures, TData extend
|
|
|
65
68
|
* const onChange = column_getToggleVisibilityHandler(column)
|
|
66
69
|
* ```
|
|
67
70
|
*/
|
|
68
|
-
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
71
|
+
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): (e: unknown) => void;
|
|
69
72
|
/**
|
|
70
73
|
* Collects the cells from this row whose columns are visible.
|
|
71
74
|
*
|
|
72
|
-
* When column pinning is active, the result is ordered as
|
|
73
|
-
* center cells, then
|
|
75
|
+
* When column pinning is active, the result is ordered as start-pinned cells,
|
|
76
|
+
* center cells, then end-pinned cells.
|
|
74
77
|
*
|
|
75
78
|
* @example
|
|
76
79
|
* ```ts
|
|
@@ -100,7 +103,7 @@ declare function row_getVisibleCellsByColumnId<TFeatures extends TableFeatures,
|
|
|
100
103
|
* const columns = table_getVisibleFlatColumns(table)
|
|
101
104
|
* ```
|
|
102
105
|
*/
|
|
103
|
-
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
106
|
+
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
104
107
|
/**
|
|
105
108
|
* Filters leaf columns down to those currently visible.
|
|
106
109
|
*
|
|
@@ -112,7 +115,7 @@ declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TD
|
|
|
112
115
|
* const columns = table_getVisibleLeafColumns(table)
|
|
113
116
|
* ```
|
|
114
117
|
*/
|
|
115
|
-
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
118
|
+
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
116
119
|
/**
|
|
117
120
|
* Routes a column visibility updater through the table's visibility change handler.
|
|
118
121
|
*
|
|
@@ -124,7 +127,7 @@ declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TD
|
|
|
124
127
|
* table_setColumnVisibility(table, (old) => ({ ...old, age: false }))
|
|
125
128
|
* ```
|
|
126
129
|
*/
|
|
127
|
-
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
130
|
+
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnVisibilityState>): void;
|
|
128
131
|
/**
|
|
129
132
|
* Resets `columnVisibility` to the configured initial state or feature default.
|
|
130
133
|
*
|
|
@@ -137,7 +140,7 @@ declare function table_setColumnVisibility<TFeatures extends TableFeatures, TDat
|
|
|
137
140
|
* table_resetColumnVisibility(table, true)
|
|
138
141
|
* ```
|
|
139
142
|
*/
|
|
140
|
-
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
143
|
+
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
141
144
|
/**
|
|
142
145
|
* Shows or hides every hideable leaf column.
|
|
143
146
|
*
|
|
@@ -148,7 +151,7 @@ declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TD
|
|
|
148
151
|
* table_toggleAllColumnsVisible(table)
|
|
149
152
|
* ```
|
|
150
153
|
*/
|
|
151
|
-
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
154
|
+
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, value?: boolean): void;
|
|
152
155
|
/**
|
|
153
156
|
* Checks whether every leaf column is currently visible.
|
|
154
157
|
*
|
|
@@ -160,7 +163,7 @@ declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures,
|
|
|
160
163
|
* const allVisible = table_getIsAllColumnsVisible(table)
|
|
161
164
|
* ```
|
|
162
165
|
*/
|
|
163
|
-
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
166
|
+
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
164
167
|
/**
|
|
165
168
|
* Checks whether at least one leaf column is currently visible.
|
|
166
169
|
*
|
|
@@ -171,7 +174,7 @@ declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, T
|
|
|
171
174
|
* const someVisible = table_getIsSomeColumnsVisible(table)
|
|
172
175
|
* ```
|
|
173
176
|
*/
|
|
174
|
-
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
177
|
+
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
175
178
|
/**
|
|
176
179
|
* Creates a checkbox-style handler that shows or hides all columns.
|
|
177
180
|
*
|
|
@@ -183,7 +186,6 @@ declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures,
|
|
|
183
186
|
* const onChange = table_getToggleAllColumnsVisibilityHandler(table)
|
|
184
187
|
* ```
|
|
185
188
|
*/
|
|
186
|
-
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
189
|
+
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): (e: unknown) => void;
|
|
187
190
|
//#endregion
|
|
188
|
-
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
189
|
-
//# sourceMappingURL=columnVisibilityFeature.utils.d.ts.map
|
|
191
|
+
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { callMemoOrStaticFn, cloneState } from "../../utils.js";
|
|
1
|
+
import { callMemoOrStaticFn, cloneState, hasOwn, makeObjectMap } from "../../utils.js";
|
|
2
2
|
import { getDefaultColumnPinningState } from "../column-pinning/columnPinningFeature.utils.js";
|
|
3
3
|
|
|
4
4
|
//#region src/features/column-visibility/columnVisibilityFeature.utils.ts
|
|
@@ -14,13 +14,15 @@ import { getDefaultColumnPinningState } from "../column-pinning/columnPinningFea
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
function getDefaultColumnVisibilityState() {
|
|
17
|
-
return
|
|
17
|
+
return makeObjectMap();
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Updates this column's visibility when hiding is allowed.
|
|
21
21
|
*
|
|
22
22
|
* Passing `visible` stores that value. Omitting it flips the column's current
|
|
23
|
-
* visibility state.
|
|
23
|
+
* visibility state. Group columns update their hideable leaf columns because
|
|
24
|
+
* visibility state is keyed by leaf column ids. Columns that cannot hide stay
|
|
25
|
+
* unchanged.
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* ```ts
|
|
@@ -28,10 +30,16 @@ function getDefaultColumnVisibilityState() {
|
|
|
28
30
|
* ```
|
|
29
31
|
*/
|
|
30
32
|
function column_toggleVisibility(column, visible) {
|
|
31
|
-
if (column_getCanHide(column)) table_setColumnVisibility(column.table, (old) =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
if (column_getCanHide(column)) table_setColumnVisibility(column.table, (old) => {
|
|
34
|
+
const next = Object.assign(makeObjectMap(), old);
|
|
35
|
+
const nextVisible = visible ?? !callMemoOrStaticFn(column, "getIsVisible", column_getIsVisible);
|
|
36
|
+
const leafColumns = column.getLeafColumns();
|
|
37
|
+
for (let i = 0; i < leafColumns.length; i++) {
|
|
38
|
+
const leafColumn = leafColumns[i];
|
|
39
|
+
if (column_getCanHide(leafColumn)) next[leafColumn.id] = nextVisible;
|
|
40
|
+
}
|
|
41
|
+
return next;
|
|
42
|
+
});
|
|
35
43
|
}
|
|
36
44
|
/**
|
|
37
45
|
* Checks whether this column is visible.
|
|
@@ -46,9 +54,11 @@ function column_toggleVisibility(column, visible) {
|
|
|
46
54
|
* ```
|
|
47
55
|
*/
|
|
48
56
|
function column_getIsVisible(column) {
|
|
49
|
-
|
|
57
|
+
const columnVisibility = column.table.atoms.columnVisibility?.get();
|
|
58
|
+
if (!columnVisibility) return true;
|
|
50
59
|
const childColumns = column.columns;
|
|
51
|
-
|
|
60
|
+
if (childColumns.length) return childColumns.some((childColumn) => callMemoOrStaticFn(childColumn, "getIsVisible", column_getIsVisible));
|
|
61
|
+
return (hasOwn(columnVisibility, column.id) ? columnVisibility[column.id] : void 0) ?? true;
|
|
52
62
|
}
|
|
53
63
|
/**
|
|
54
64
|
* Checks whether this column is allowed to be hidden.
|
|
@@ -82,8 +92,8 @@ function column_getToggleVisibilityHandler(column) {
|
|
|
82
92
|
/**
|
|
83
93
|
* Collects the cells from this row whose columns are visible.
|
|
84
94
|
*
|
|
85
|
-
* When column pinning is active, the result is ordered as
|
|
86
|
-
* center cells, then
|
|
95
|
+
* When column pinning is active, the result is ordered as start-pinned cells,
|
|
96
|
+
* center cells, then end-pinned cells.
|
|
87
97
|
*
|
|
88
98
|
* @example
|
|
89
99
|
* ```ts
|
|
@@ -91,36 +101,35 @@ function column_getToggleVisibilityHandler(column) {
|
|
|
91
101
|
* ```
|
|
92
102
|
*/
|
|
93
103
|
function row_getVisibleCells(row) {
|
|
94
|
-
var _row$table$atoms$colu;
|
|
95
104
|
const allCells = row.getAllCells();
|
|
96
105
|
const visibleCells = [];
|
|
97
106
|
for (let i = 0; i < allCells.length; i++) {
|
|
98
107
|
const cell = allCells[i];
|
|
99
108
|
if (callMemoOrStaticFn(cell.column, "getIsVisible", column_getIsVisible)) visibleCells.push(cell);
|
|
100
109
|
}
|
|
101
|
-
const {
|
|
102
|
-
if (!
|
|
110
|
+
const { start, end } = row.table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState();
|
|
111
|
+
if (!start.length && !end.length) return visibleCells;
|
|
103
112
|
const visibleCellsByColumnId = callMemoOrStaticFn(row, "getVisibleCellsByColumnId", row_getVisibleCellsByColumnId);
|
|
104
|
-
const
|
|
105
|
-
for (let i = 0; i <
|
|
106
|
-
const cell = visibleCellsByColumnId[
|
|
107
|
-
if (cell)
|
|
113
|
+
const startCells = [];
|
|
114
|
+
for (let i = 0; i < start.length; i++) {
|
|
115
|
+
const cell = visibleCellsByColumnId[start[i]];
|
|
116
|
+
if (cell) startCells.push(cell);
|
|
108
117
|
}
|
|
109
|
-
const
|
|
110
|
-
for (let i = 0; i <
|
|
111
|
-
const cell = visibleCellsByColumnId[
|
|
112
|
-
if (cell)
|
|
118
|
+
const endCells = [];
|
|
119
|
+
for (let i = 0; i < end.length; i++) {
|
|
120
|
+
const cell = visibleCellsByColumnId[end[i]];
|
|
121
|
+
if (cell) endCells.push(cell);
|
|
113
122
|
}
|
|
114
123
|
const centerCells = [];
|
|
115
124
|
for (let i = 0; i < visibleCells.length; i++) {
|
|
116
125
|
const cell = visibleCells[i];
|
|
117
126
|
const id = cell.column.id;
|
|
118
|
-
if (!
|
|
127
|
+
if (!start.includes(id) && !end.includes(id)) centerCells.push(cell);
|
|
119
128
|
}
|
|
120
129
|
return [
|
|
121
|
-
...
|
|
130
|
+
...startCells,
|
|
122
131
|
...centerCells,
|
|
123
|
-
...
|
|
132
|
+
...endCells
|
|
124
133
|
];
|
|
125
134
|
}
|
|
126
135
|
/**
|
|
@@ -134,7 +143,7 @@ function row_getVisibleCells(row) {
|
|
|
134
143
|
* ```
|
|
135
144
|
*/
|
|
136
145
|
function row_getVisibleCellsByColumnId(row) {
|
|
137
|
-
const result =
|
|
146
|
+
const result = makeObjectMap();
|
|
138
147
|
const allCells = row.getAllCells();
|
|
139
148
|
for (let i = 0; i < allCells.length; i++) {
|
|
140
149
|
const cell = allCells[i];
|
|
@@ -182,8 +191,7 @@ function table_getVisibleLeafColumns(table) {
|
|
|
182
191
|
* ```
|
|
183
192
|
*/
|
|
184
193
|
function table_setColumnVisibility(table, updater) {
|
|
185
|
-
|
|
186
|
-
(_table$options$onColu = (_table$options = table.options).onColumnVisibilityChange) === null || _table$options$onColu === void 0 || _table$options$onColu.call(_table$options, updater);
|
|
194
|
+
table.options.onColumnVisibilityChange?.(updater);
|
|
187
195
|
}
|
|
188
196
|
/**
|
|
189
197
|
* Resets `columnVisibility` to the configured initial state or feature default.
|
|
@@ -198,7 +206,7 @@ function table_setColumnVisibility(table, updater) {
|
|
|
198
206
|
* ```
|
|
199
207
|
*/
|
|
200
208
|
function table_resetColumnVisibility(table, defaultState) {
|
|
201
|
-
table_setColumnVisibility(table, defaultState ?
|
|
209
|
+
table_setColumnVisibility(table, defaultState ? makeObjectMap() : Object.assign(makeObjectMap(), cloneState(table.initialState.columnVisibility ?? {})));
|
|
202
210
|
}
|
|
203
211
|
/**
|
|
204
212
|
* Shows or hides every hideable leaf column.
|
|
@@ -212,7 +220,7 @@ function table_resetColumnVisibility(table, defaultState) {
|
|
|
212
220
|
*/
|
|
213
221
|
function table_toggleAllColumnsVisible(table, value) {
|
|
214
222
|
value = value ?? !table_getIsAllColumnsVisible(table);
|
|
215
|
-
const visibility =
|
|
223
|
+
const visibility = makeObjectMap();
|
|
216
224
|
const leafColumns = table.getAllLeafColumns();
|
|
217
225
|
for (let i = 0; i < leafColumns.length; i++) {
|
|
218
226
|
const column = leafColumns[i];
|
|
@@ -265,5 +273,4 @@ function table_getToggleAllColumnsVisibilityHandler(table) {
|
|
|
265
273
|
}
|
|
266
274
|
|
|
267
275
|
//#endregion
|
|
268
|
-
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
269
|
-
//# sourceMappingURL=columnVisibilityFeature.utils.js.map
|
|
276
|
+
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { TableFeature } from "../../types/TableFeatures.js";
|
|
2
|
-
|
|
3
2
|
//#region src/features/global-filtering/globalFilteringFeature.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Feature that adds global filtering state, defaults, and global filter APIs.
|
|
6
5
|
*/
|
|
7
6
|
declare const globalFilteringFeature: TableFeature;
|
|
8
7
|
//#endregion
|
|
9
|
-
export { globalFilteringFeature };
|
|
10
|
-
//# sourceMappingURL=globalFilteringFeature.d.ts.map
|
|
8
|
+
export { globalFilteringFeature };
|
|
@@ -17,8 +17,8 @@ const globalFilteringFeature = {
|
|
|
17
17
|
onGlobalFilterChange: makeStateUpdater("globalFilter", table),
|
|
18
18
|
globalFilterFn: "auto",
|
|
19
19
|
getColumnCanGlobalFilter: (column) => {
|
|
20
|
-
|
|
21
|
-
const value =
|
|
20
|
+
if ("enableGlobalFilter" in column.columnDef && column.columnDef.enableGlobalFilter === true) return true;
|
|
21
|
+
const value = table.getCoreRowModel().flatRows.find((row) => row.getAllCellsByColumnId()[column.id]?.getValue() != null)?.getAllCellsByColumnId()[column.id]?.getValue();
|
|
22
22
|
return typeof value === "string" || typeof value === "number";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -37,5 +37,4 @@ const globalFilteringFeature = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
export { globalFilteringFeature };
|
|
41
|
-
//# sourceMappingURL=globalFilteringFeature.js.map
|
|
40
|
+
export { globalFilteringFeature };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CellData, OnChangeFn, RowData, Updater } from "../../types/type-utils.js";
|
|
2
|
-
import { FilterFn, FilterFnOption } from "../column-filtering/columnFilteringFeature.types.js";
|
|
3
2
|
import { Column } from "../../types/Column.js";
|
|
3
|
+
import { FilterFn, FilterFnOption } from "../column-filtering/columnFilteringFeature.types.js";
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
|
-
|
|
6
5
|
//#region src/features/global-filtering/globalFilteringFeature.types.d.ts
|
|
7
6
|
interface TableState_GlobalFiltering {
|
|
8
7
|
globalFilter: any;
|
|
@@ -22,7 +21,7 @@ interface Column_GlobalFiltering {
|
|
|
22
21
|
*/
|
|
23
22
|
getCanGlobalFilter: () => boolean;
|
|
24
23
|
}
|
|
25
|
-
interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
|
|
24
|
+
interface TableOptions_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
26
25
|
/**
|
|
27
26
|
* Enables global filtering across columns that allow it.
|
|
28
27
|
*/
|
|
@@ -46,7 +45,7 @@ interface TableOptions_GlobalFiltering<TFeatures extends TableFeatures, TData ex
|
|
|
46
45
|
*/
|
|
47
46
|
onGlobalFilterChange?: OnChangeFn<any>;
|
|
48
47
|
}
|
|
49
|
-
interface Table_GlobalFiltering<TFeatures extends TableFeatures, TData extends RowData> {
|
|
48
|
+
interface Table_GlobalFiltering<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
50
49
|
/**
|
|
51
50
|
* Currently, this function returns the built-in `includesString` filter function. In future releases, it may return more dynamic filter functions based on the nature of the data provided.
|
|
52
51
|
*/
|
|
@@ -67,5 +66,4 @@ interface Table_GlobalFiltering<TFeatures extends TableFeatures, TData extends R
|
|
|
67
66
|
setGlobalFilter: (updater: Updater<any>) => void;
|
|
68
67
|
}
|
|
69
68
|
//#endregion
|
|
70
|
-
export { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering };
|
|
71
|
-
//# sourceMappingURL=globalFilteringFeature.types.d.ts.map
|
|
69
|
+
export { ColumnDef_GlobalFiltering, Column_GlobalFiltering, TableOptions_GlobalFiltering, TableState_GlobalFiltering, Table_GlobalFiltering };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CellData, RowData } from "../../types/type-utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Column } from "../../types/Column.js";
|
|
3
|
+
import { CreatedFilterFn, FilterFn } from "../column-filtering/columnFilteringFeature.types.js";
|
|
4
|
+
import { Table } from "../../types/Table.js";
|
|
5
5
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
6
|
-
import
|
|
6
|
+
import "../../index.js";
|
|
7
7
|
//#region src/features/global-filtering/globalFilteringFeature.utils.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Checks whether this accessor column participates in global filtering.
|
|
@@ -16,7 +16,7 @@ import { Table_Internal } from "../../types/Table.js";
|
|
|
16
16
|
* const canGlobalFilter = column_getCanGlobalFilter(column)
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
19
|
+
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Provides the built-in automatic global filter function.
|
|
22
22
|
*
|
|
@@ -28,9 +28,7 @@ declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TDat
|
|
|
28
28
|
* const filterFn = table_getGlobalAutoFilterFn()
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
declare function table_getGlobalAutoFilterFn():
|
|
32
|
-
autoRemove: (val: any) => boolean;
|
|
33
|
-
};
|
|
31
|
+
declare function table_getGlobalAutoFilterFn(): CreatedFilterFn<any, any>;
|
|
34
32
|
/**
|
|
35
33
|
* Resolves the filter function used for global filtering.
|
|
36
34
|
*
|
|
@@ -43,7 +41,7 @@ declare function table_getGlobalAutoFilterFn(): (<TFeatures extends TableFeature
|
|
|
43
41
|
* const filterFn = table_getGlobalFilterFn(table)
|
|
44
42
|
* ```
|
|
45
43
|
*/
|
|
46
|
-
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
44
|
+
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): FilterFn<TFeatures, TData> | undefined;
|
|
47
45
|
/**
|
|
48
46
|
* Routes a global filter updater through the table's global filter handler.
|
|
49
47
|
*
|
|
@@ -55,7 +53,7 @@ declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData
|
|
|
55
53
|
* table_setGlobalFilter(table, 'search text')
|
|
56
54
|
* ```
|
|
57
55
|
*/
|
|
58
|
-
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
56
|
+
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: any): void;
|
|
59
57
|
/**
|
|
60
58
|
* Resets `globalFilter` to the configured initial state or feature default.
|
|
61
59
|
*
|
|
@@ -68,7 +66,6 @@ declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData ex
|
|
|
68
66
|
* table_resetGlobalFilter(table, true)
|
|
69
67
|
* ```
|
|
70
68
|
*/
|
|
71
|
-
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
69
|
+
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
72
70
|
//#endregion
|
|
73
|
-
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
74
|
-
//# sourceMappingURL=globalFilteringFeature.utils.d.ts.map
|
|
71
|
+
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cloneState, isFunction } from "../../utils.js";
|
|
2
|
-
import { filterFn_includesString } from "
|
|
2
|
+
import { filterFn_includesString } from "../column-filtering/filterFns.js";
|
|
3
3
|
|
|
4
4
|
//#region src/features/global-filtering/globalFilteringFeature.utils.ts
|
|
5
5
|
/**
|
|
@@ -14,8 +14,7 @@ import { filterFn_includesString } from "../../fns/filterFns.js";
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
function column_getCanGlobalFilter(column) {
|
|
17
|
-
|
|
18
|
-
return (column.columnDef.enableGlobalFilter ?? true) && (column.table.options.enableGlobalFilter ?? true) && (column.table.options.enableFilters ?? true) && (((_column$table$options = (_column$table$options2 = column.table.options).getColumnCanGlobalFilter) === null || _column$table$options === void 0 ? void 0 : _column$table$options.call(_column$table$options2, column)) ?? true) && !!column.accessorFn;
|
|
17
|
+
return (column.columnDef.enableGlobalFilter ?? true) && (column.table.options.enableGlobalFilter ?? true) && (column.table.options.enableFilters ?? true) && (column.table.options.getColumnCanGlobalFilter?.(column) ?? true) && !!column.accessorFn;
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Provides the built-in automatic global filter function.
|
|
@@ -46,7 +45,9 @@ function table_getGlobalAutoFilterFn() {
|
|
|
46
45
|
function table_getGlobalFilterFn(table) {
|
|
47
46
|
const { globalFilterFn } = table.options;
|
|
48
47
|
const filterFns = table._rowModelFns.filterFns;
|
|
49
|
-
|
|
48
|
+
const filterFn = isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === "auto" ? table_getGlobalAutoFilterFn() : filterFns?.[globalFilterFn];
|
|
49
|
+
if (process.env.NODE_ENV === "development" && !filterFn && globalFilterFn != null) console.warn(`globalFilterFn '${String(globalFilterFn)}' is not registered`);
|
|
50
|
+
return filterFn;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* Routes a global filter updater through the table's global filter handler.
|
|
@@ -60,8 +61,7 @@ function table_getGlobalFilterFn(table) {
|
|
|
60
61
|
* ```
|
|
61
62
|
*/
|
|
62
63
|
function table_setGlobalFilter(table, updater) {
|
|
63
|
-
|
|
64
|
-
(_table$options$onGlob = (_table$options = table.options).onGlobalFilterChange) === null || _table$options$onGlob === void 0 || _table$options$onGlob.call(_table$options, updater);
|
|
64
|
+
table.options.onGlobalFilterChange?.(updater);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Resets `globalFilter` to the configured initial state or feature default.
|
|
@@ -80,5 +80,4 @@ function table_resetGlobalFilter(table, defaultState) {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
|
-
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
84
|
-
//# sourceMappingURL=globalFilteringFeature.utils.js.map
|
|
83
|
+
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AggregationFnDef } from "./rowAggregationFeature.types.js";
|
|
2
|
+
//#region src/features/row-aggregation/aggregationFns.d.ts
|
|
3
|
+
type RangeValue = Date | number;
|
|
4
|
+
/**
|
|
5
|
+
* Sums numeric selected-row values. Non-number values contribute zero. As in
|
|
6
|
+
* the previous API, `NaN` is a number and therefore propagates through the sum.
|
|
7
|
+
*/
|
|
8
|
+
declare const aggregationFn_sum: AggregationFnDef<any, any, unknown, number>;
|
|
9
|
+
/**
|
|
10
|
+
* Finds the minimum numeric or Date value from the selected rows. Invalid value
|
|
11
|
+
* types are ignored; `NaN` preserves the legacy numeric seeding behavior.
|
|
12
|
+
*/
|
|
13
|
+
declare const aggregationFn_min: AggregationFnDef<any, any, unknown, RangeValue | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Finds the maximum numeric or Date value from the selected rows. Invalid value
|
|
16
|
+
* types are ignored; `NaN` preserves the legacy numeric seeding behavior.
|
|
17
|
+
*/
|
|
18
|
+
declare const aggregationFn_max: AggregationFnDef<any, any, unknown, RangeValue | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Finds the minimum and maximum numeric or Date values from the selected rows.
|
|
21
|
+
* Empty inputs return
|
|
22
|
+
* `[undefined, undefined]`, preserving the previous built-in result shape.
|
|
23
|
+
*/
|
|
24
|
+
declare const aggregationFn_extent: AggregationFnDef<any, any, unknown, [RangeValue | undefined, RangeValue | undefined]>;
|
|
25
|
+
/**
|
|
26
|
+
* Averages number and number-like row values. Nullish and non-numeric values
|
|
27
|
+
* are ignored; other values retain the legacy unary-plus coercion behavior.
|
|
28
|
+
*/
|
|
29
|
+
declare const aggregationFn_mean: AggregationFnDef<any, any, unknown, number | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Computes the median of the numeric row values. Non-numeric values are
|
|
32
|
+
* ignored, matching the `sum`/`min`/`max`/`mean` aggregations. Returns
|
|
33
|
+
* `undefined` when no numeric values remain.
|
|
34
|
+
*/
|
|
35
|
+
declare const aggregationFn_median: AggregationFnDef<any, any, unknown, number | undefined>;
|
|
36
|
+
/** Collects distinct row values using JavaScript `Set` semantics. */
|
|
37
|
+
declare const aggregationFn_unique: AggregationFnDef<any, any, unknown, unknown[]>;
|
|
38
|
+
/** Counts distinct row values using JavaScript `Set` semantics. */
|
|
39
|
+
declare const aggregationFn_uniqueCount: AggregationFnDef<any, any, unknown, number>;
|
|
40
|
+
/** Counts rows, independently of the column's values. */
|
|
41
|
+
declare const aggregationFn_count: AggregationFnDef<any, any, unknown, number>;
|
|
42
|
+
/** Returns the first row's value, including a nullish value. */
|
|
43
|
+
declare const aggregationFn_first: AggregationFnDef<any, any, unknown, unknown>;
|
|
44
|
+
/** Returns the last row's value, including a nullish value. */
|
|
45
|
+
declare const aggregationFn_last: AggregationFnDef<any, any, unknown, unknown>;
|
|
46
|
+
/**
|
|
47
|
+
* Full built-in registry. Register individual definitions for tree-shaking.
|
|
48
|
+
*
|
|
49
|
+
* @deprecated Import individual `aggregationFn_*` definitions instead for a
|
|
50
|
+
* smaller bundle. This registry remains available for compatibility.
|
|
51
|
+
*/
|
|
52
|
+
declare const aggregationFns: {
|
|
53
|
+
sum: AggregationFnDef<any, any, unknown, number>;
|
|
54
|
+
min: AggregationFnDef<any, any, unknown, RangeValue | undefined>;
|
|
55
|
+
max: AggregationFnDef<any, any, unknown, RangeValue | undefined>;
|
|
56
|
+
extent: AggregationFnDef<any, any, unknown, [RangeValue | undefined, RangeValue | undefined]>;
|
|
57
|
+
mean: AggregationFnDef<any, any, unknown, number | undefined>;
|
|
58
|
+
median: AggregationFnDef<any, any, unknown, number | undefined>;
|
|
59
|
+
unique: AggregationFnDef<any, any, unknown, unknown[]>;
|
|
60
|
+
uniqueCount: AggregationFnDef<any, any, unknown, number>;
|
|
61
|
+
count: AggregationFnDef<any, any, unknown, number>;
|
|
62
|
+
first: AggregationFnDef<any, any, unknown, unknown>;
|
|
63
|
+
last: AggregationFnDef<any, any, unknown, unknown>;
|
|
64
|
+
};
|
|
65
|
+
type BuiltInAggregationFn = keyof typeof aggregationFns;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { BuiltInAggregationFn, aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns };
|