@tanstack/table-core 9.0.0-beta.52 → 9.0.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/cells/constructCell.d.ts +1 -2
- package/dist/core/cells/constructCell.js +1 -2
- package/dist/core/cells/coreCellsFeature.d.ts +1 -2
- package/dist/core/cells/coreCellsFeature.js +1 -2
- package/dist/core/cells/coreCellsFeature.types.d.ts +1 -2
- package/dist/core/cells/coreCellsFeature.utils.d.ts +1 -2
- package/dist/core/cells/coreCellsFeature.utils.js +1 -2
- package/dist/core/columns/constructColumn.d.ts +1 -2
- package/dist/core/columns/constructColumn.js +1 -2
- package/dist/core/columns/coreColumnsFeature.d.ts +1 -2
- package/dist/core/columns/coreColumnsFeature.js +1 -2
- package/dist/core/columns/coreColumnsFeature.types.d.ts +1 -2
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +1 -2
- package/dist/core/columns/coreColumnsFeature.utils.js +1 -2
- package/dist/core/coreFeatures.d.ts +1 -2
- package/dist/core/coreFeatures.js +1 -2
- package/dist/core/headers/buildHeaderGroups.d.ts +1 -2
- package/dist/core/headers/buildHeaderGroups.js +1 -2
- package/dist/core/headers/constructHeader.d.ts +1 -2
- package/dist/core/headers/constructHeader.js +1 -2
- package/dist/core/headers/coreHeadersFeature.d.ts +1 -2
- package/dist/core/headers/coreHeadersFeature.js +1 -2
- package/dist/core/headers/coreHeadersFeature.types.d.ts +1 -2
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +1 -2
- package/dist/core/headers/coreHeadersFeature.utils.js +1 -2
- package/dist/core/reactivity/coreReactivityFeature.types.d.ts +1 -2
- package/dist/core/reactivity/coreReactivityFeature.utils.d.ts +1 -2
- package/dist/core/reactivity/coreReactivityFeature.utils.js +1 -2
- package/dist/core/row-models/coreRowModelsFeature.d.ts +1 -2
- package/dist/core/row-models/coreRowModelsFeature.js +1 -2
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +1 -2
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +1 -2
- package/dist/core/row-models/coreRowModelsFeature.utils.js +1 -2
- package/dist/core/row-models/createCoreRowModel.d.ts +1 -2
- package/dist/core/row-models/createCoreRowModel.js +1 -2
- package/dist/core/rows/constructRow.d.ts +1 -2
- package/dist/core/rows/constructRow.js +1 -2
- package/dist/core/rows/coreRowsFeature.d.ts +1 -2
- package/dist/core/rows/coreRowsFeature.js +1 -2
- package/dist/core/rows/coreRowsFeature.types.d.ts +1 -2
- package/dist/core/rows/coreRowsFeature.utils.d.ts +1 -2
- package/dist/core/rows/coreRowsFeature.utils.js +1 -2
- package/dist/core/table/constructTable.d.ts +1 -2
- package/dist/core/table/constructTable.js +1 -2
- package/dist/core/table/coreTablesFeature.d.ts +1 -2
- package/dist/core/table/coreTablesFeature.js +1 -2
- package/dist/core/table/coreTablesFeature.types.d.ts +1 -2
- package/dist/core/table/coreTablesFeature.utils.d.ts +1 -2
- package/dist/core/table/coreTablesFeature.utils.js +1 -2
- package/dist/features/column-faceting/columnFacetingFeature.d.ts +1 -2
- package/dist/features/column-faceting/columnFacetingFeature.js +1 -2
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +1 -2
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +1 -2
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +1 -2
- package/dist/features/column-faceting/createFacetedMinMaxValues.d.ts +1 -2
- package/dist/features/column-faceting/createFacetedMinMaxValues.js +1 -2
- package/dist/features/column-faceting/createFacetedRowModel.d.ts +1 -2
- package/dist/features/column-faceting/createFacetedRowModel.js +1 -2
- package/dist/features/column-faceting/createFacetedUniqueValues.d.ts +1 -2
- package/dist/features/column-faceting/createFacetedUniqueValues.js +1 -2
- package/dist/features/column-filtering/columnFilteringFeature.d.ts +1 -2
- package/dist/features/column-filtering/columnFilteringFeature.js +1 -2
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +1 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +1 -2
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +1 -2
- package/dist/features/column-filtering/createFilteredRowModel.d.ts +1 -2
- package/dist/features/column-filtering/createFilteredRowModel.js +1 -2
- package/dist/features/column-filtering/filterFns.d.ts +1 -2
- package/dist/features/column-filtering/filterFns.js +1 -2
- package/dist/features/column-filtering/filterRowsUtils.js +1 -2
- package/dist/features/column-grouping/columnGroupingFeature.d.ts +1 -2
- package/dist/features/column-grouping/columnGroupingFeature.js +1 -2
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +1 -2
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +1 -2
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +1 -2
- package/dist/features/column-grouping/createGroupedRowModel.d.ts +1 -2
- package/dist/features/column-grouping/createGroupedRowModel.js +1 -2
- package/dist/features/column-ordering/columnOrderingFeature.d.ts +1 -2
- package/dist/features/column-ordering/columnOrderingFeature.js +1 -2
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +1 -2
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +1 -2
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +1 -2
- package/dist/features/column-pinning/columnPinningFeature.d.ts +1 -2
- package/dist/features/column-pinning/columnPinningFeature.js +1 -2
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +1 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +1 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.js +1 -2
- package/dist/features/column-resizing/columnResizingFeature.d.ts +1 -2
- package/dist/features/column-resizing/columnResizingFeature.js +1 -2
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +1 -2
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +1 -2
- package/dist/features/column-resizing/columnResizingFeature.utils.js +1 -2
- package/dist/features/column-sizing/columnSizingFeature.d.ts +1 -2
- package/dist/features/column-sizing/columnSizingFeature.js +1 -2
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +1 -2
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +1 -2
- package/dist/features/column-sizing/columnSizingFeature.utils.js +1 -2
- package/dist/features/column-visibility/columnVisibilityFeature.d.ts +1 -2
- package/dist/features/column-visibility/columnVisibilityFeature.js +1 -2
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +1 -2
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +1 -2
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +1 -2
- package/dist/features/global-filtering/globalFilteringFeature.d.ts +1 -2
- package/dist/features/global-filtering/globalFilteringFeature.js +1 -2
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +1 -2
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +1 -2
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +1 -2
- package/dist/features/row-aggregation/aggregationFns.d.ts +1 -2
- package/dist/features/row-aggregation/aggregationFns.js +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.d.ts +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.js +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.types.d.ts +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.types.js +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.utils.d.ts +1 -2
- package/dist/features/row-aggregation/rowAggregationFeature.utils.js +1 -2
- package/dist/features/row-expanding/createExpandedRowModel.d.ts +1 -2
- package/dist/features/row-expanding/createExpandedRowModel.js +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.d.ts +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.js +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +1 -2
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +1 -2
- package/dist/features/row-pagination/createPaginatedRowModel.d.ts +1 -2
- package/dist/features/row-pagination/createPaginatedRowModel.js +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.d.ts +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.js +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +1 -2
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +1 -2
- package/dist/features/row-pinning/rowPinningFeature.d.ts +1 -2
- package/dist/features/row-pinning/rowPinningFeature.js +1 -2
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +1 -2
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +1 -2
- package/dist/features/row-pinning/rowPinningFeature.utils.js +1 -2
- package/dist/features/row-selection/rowSelectionFeature.d.ts +1 -2
- package/dist/features/row-selection/rowSelectionFeature.js +1 -2
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +1 -2
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +1 -2
- package/dist/features/row-selection/rowSelectionFeature.utils.js +1 -2
- package/dist/features/row-sorting/createSortedRowModel.d.ts +1 -2
- package/dist/features/row-sorting/createSortedRowModel.js +1 -2
- package/dist/features/row-sorting/rowSortingFeature.d.ts +1 -2
- package/dist/features/row-sorting/rowSortingFeature.js +1 -2
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +1 -2
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +1 -2
- package/dist/features/row-sorting/rowSortingFeature.utils.js +1 -2
- package/dist/features/row-sorting/sortFns.d.ts +1 -2
- package/dist/features/row-sorting/sortFns.js +1 -2
- package/dist/features/stockFeatures.d.ts +1 -2
- package/dist/features/stockFeatures.js +1 -2
- package/dist/flex-render.d.ts +1 -2
- package/dist/flex-render.js +1 -2
- package/dist/helpers/columnHelper.d.ts +1 -2
- 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 +1 -2
- package/dist/helpers/tableFeatures.js +1 -2
- package/dist/helpers/tableOptions.d.ts +1 -2
- package/dist/helpers/tableOptions.js +1 -2
- package/dist/store-reactivity-bindings.d.ts +1 -2
- package/dist/store-reactivity-bindings.js +1 -2
- package/dist/types/Cell.d.ts +1 -2
- package/dist/types/Column.d.ts +1 -2
- package/dist/types/ColumnDef.d.ts +1 -2
- package/dist/types/Header.d.ts +1 -2
- package/dist/types/HeaderGroup.d.ts +1 -2
- package/dist/types/Row.d.ts +1 -2
- package/dist/types/RowModel.d.ts +1 -2
- package/dist/types/RowModelFns.d.ts +1 -2
- package/dist/types/Table.d.ts +1 -2
- package/dist/types/TableFeatures.d.ts +1 -2
- package/dist/types/TableOptions.d.ts +1 -2
- package/dist/types/TableState.d.ts +1 -2
- package/dist/types/type-utils.d.ts +1 -2
- package/dist/utils.d.ts +1 -2
- package/dist/utils.js +1 -2
- package/dist/worker/createTableWorker.d.ts +1 -2
- package/dist/worker/createTableWorker.js +1 -2
- package/dist/worker/createWorkerRowModel.d.ts +1 -2
- package/dist/worker/createWorkerRowModel.js +1 -2
- package/dist/worker/initTableWorker.d.ts +1 -2
- package/dist/worker/initTableWorker.js +1 -2
- package/dist/worker/rebuildRowModel.d.ts +1 -2
- package/dist/worker/rebuildRowModel.js +1 -2
- package/dist/worker/serializeRowModel.js +1 -2
- package/dist/worker/tableWorkerProtocol.d.ts +1 -2
- package/dist/worker/tableWorkerProtocol.js +1 -2
- package/package.json +9 -30
- package/skills/aggregation/SKILL.md +2 -2
- package/skills/api-not-found/SKILL.md +5 -5
- package/skills/client-vs-server/SKILL.md +2 -2
- package/skills/column-faceting/SKILL.md +2 -2
- package/skills/column-filtering/SKILL.md +2 -2
- package/skills/column-ordering/SKILL.md +2 -2
- package/skills/column-pinning/SKILL.md +2 -2
- package/skills/column-resizing/SKILL.md +2 -2
- package/skills/column-sizing/SKILL.md +2 -2
- package/skills/column-visibility/SKILL.md +2 -2
- package/skills/core/SKILL.md +2 -2
- package/skills/custom-features/SKILL.md +2 -2
- package/skills/expanding/SKILL.md +2 -2
- package/skills/global-filtering/SKILL.md +2 -2
- package/skills/grouping/SKILL.md +2 -2
- package/skills/migrate-v8-to-v9/SKILL.md +7 -7
- package/skills/pagination/SKILL.md +2 -2
- package/skills/row-pinning/SKILL.md +2 -2
- package/skills/row-selection/SKILL.md +2 -2
- package/skills/sorting/SKILL.md +2 -2
- package/skills/table-features/SKILL.md +2 -2
- package/skills/typescript/SKILL.md +2 -2
- package/dist/core/cells/constructCell.cjs +0 -31
- 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 -60
- 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 -64
- 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 -183
- 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 -102
- 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 -38
- 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 -52
- 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 -140
- 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 -33
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +0 -197
- 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 -50
- 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 -40
- 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 -53
- 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 -133
- package/dist/core/rows/coreRowsFeature.utils.cjs +0 -246
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +0 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +0 -146
- package/dist/core/rows/coreRowsFeature.utils.js.map +0 -1
- package/dist/core/table/constructTable.cjs +0 -128
- 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 -199
- package/dist/core/table/coreTablesFeature.utils.cjs +0 -120
- package/dist/core/table/coreTablesFeature.utils.cjs.map +0 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +0 -60
- package/dist/core/table/coreTablesFeature.utils.js.map +0 -1
- package/dist/experimental-worker-plugin.cjs +0 -14
- package/dist/experimental-worker-plugin.d.cts +0 -5
- package/dist/features/column-faceting/columnFacetingFeature.cjs +0 -55
- 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 -67
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +0 -114
- 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 -47
- 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 -45
- 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 -45
- 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 -214
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +0 -218
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +0 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +0 -147
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +0 -1
- package/dist/features/column-filtering/createFilteredRowModel.cjs +0 -114
- package/dist/features/column-filtering/createFilteredRowModel.cjs.map +0 -1
- package/dist/features/column-filtering/createFilteredRowModel.d.cts +0 -22
- package/dist/features/column-filtering/createFilteredRowModel.js.map +0 -1
- package/dist/features/column-filtering/filterFns.cjs +0 -399
- package/dist/features/column-filtering/filterFns.cjs.map +0 -1
- package/dist/features/column-filtering/filterFns.d.cts +0 -210
- package/dist/features/column-filtering/filterFns.js.map +0 -1
- package/dist/features/column-filtering/filterRowsUtils.cjs +0 -82
- 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 -55
- 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 -129
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +0 -195
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +0 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +0 -153
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +0 -1
- package/dist/features/column-grouping/createGroupedRowModel.cjs +0 -140
- package/dist/features/column-grouping/createGroupedRowModel.cjs.map +0 -1
- package/dist/features/column-grouping/createGroupedRowModel.d.cts +0 -18
- package/dist/features/column-grouping/createGroupedRowModel.js.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.cjs +0 -54
- 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 -81
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +0 -192
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +0 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +0 -119
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.cjs +0 -202
- package/dist/features/column-pinning/columnPinningFeature.cjs.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.d.cts +0 -15
- package/dist/features/column-pinning/columnPinningFeature.js.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +0 -189
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +0 -584
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +0 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +0 -384
- 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 -78
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +0 -286
- 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 -90
- 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 -139
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +0 -299
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +0 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +0 -200
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +0 -1
- package/dist/features/column-visibility/columnVisibilityFeature.cjs +0 -83
- 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 -284
- 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 -40
- 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 -71
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +0 -1
- package/dist/features/row-aggregation/aggregationFns.cjs +0 -291
- package/dist/features/row-aggregation/aggregationFns.cjs.map +0 -1
- package/dist/features/row-aggregation/aggregationFns.d.cts +0 -68
- package/dist/features/row-aggregation/aggregationFns.js.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.cjs +0 -36
- package/dist/features/row-aggregation/rowAggregationFeature.cjs.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.d.cts +0 -10
- package/dist/features/row-aggregation/rowAggregationFeature.js.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.types.cjs +0 -13
- package/dist/features/row-aggregation/rowAggregationFeature.types.cjs.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.types.d.cts +0 -195
- package/dist/features/row-aggregation/rowAggregationFeature.types.js.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.utils.cjs +0 -243
- package/dist/features/row-aggregation/rowAggregationFeature.utils.cjs.map +0 -1
- package/dist/features/row-aggregation/rowAggregationFeature.utils.d.cts +0 -48
- package/dist/features/row-aggregation/rowAggregationFeature.utils.js.map +0 -1
- package/dist/features/row-expanding/createExpandedRowModel.cjs +0 -55
- 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 -118
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +0 -283
- 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 -58
- 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 -126
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +0 -306
- 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 -55
- 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 -224
- 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 -119
- 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 -174
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +0 -570
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +0 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +0 -345
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +0 -1
- package/dist/features/row-sorting/createSortedRowModel.cjs +0 -114
- package/dist/features/row-sorting/createSortedRowModel.cjs.map +0 -1
- package/dist/features/row-sorting/createSortedRowModel.d.cts +0 -22
- 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 -220
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +0 -316
- 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/row-sorting/sortFns.cjs +0 -226
- package/dist/features/row-sorting/sortFns.cjs.map +0 -1
- package/dist/features/row-sorting/sortFns.d.cts +0 -98
- package/dist/features/row-sorting/sortFns.js.map +0 -1
- package/dist/features/stockFeatures.cjs +0 -43
- package/dist/features/stockFeatures.cjs.map +0 -1
- package/dist/features/stockFeatures.d.cts +0 -43
- 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/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 -49
- package/dist/helpers/tableFeatures.cjs.map +0 -1
- package/dist/helpers/tableFeatures.d.cts +0 -47
- 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 -153
- package/dist/index.d.cts +0 -81
- package/dist/reactivity.cjs +0 -4
- package/dist/reactivity.d.cts +0 -3
- package/dist/static-functions.cjs +0 -275
- package/dist/static-functions.d.cts +0 -22
- 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 -16
- package/dist/types/Column.d.cts +0 -36
- package/dist/types/ColumnDef.d.cts +0 -125
- package/dist/types/Header.d.cts +0 -16
- package/dist/types/HeaderGroup.d.cts +0 -10
- package/dist/types/Row.d.cts +0 -28
- package/dist/types/RowModel.d.cts +0 -24
- package/dist/types/RowModelFns.d.cts +0 -18
- package/dist/types/Table.d.cts +0 -65
- package/dist/types/TableFeatures.d.cts +0 -381
- package/dist/types/TableOptions.d.cts +0 -77
- package/dist/types/TableState.d.cts +0 -48
- package/dist/types/type-utils.d.cts +0 -30
- package/dist/utils.cjs +0 -265
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -136
- package/dist/utils.js.map +0 -1
- package/dist/worker/createTableWorker.cjs +0 -189
- package/dist/worker/createTableWorker.cjs.map +0 -1
- package/dist/worker/createTableWorker.d.cts +0 -102
- package/dist/worker/createTableWorker.js.map +0 -1
- package/dist/worker/createWorkerRowModel.cjs +0 -78
- package/dist/worker/createWorkerRowModel.cjs.map +0 -1
- package/dist/worker/createWorkerRowModel.d.cts +0 -42
- package/dist/worker/createWorkerRowModel.js.map +0 -1
- package/dist/worker/initTableWorker.cjs +0 -100
- package/dist/worker/initTableWorker.cjs.map +0 -1
- package/dist/worker/initTableWorker.d.cts +0 -33
- package/dist/worker/initTableWorker.js.map +0 -1
- package/dist/worker/rebuildRowModel.cjs +0 -72
- package/dist/worker/rebuildRowModel.cjs.map +0 -1
- package/dist/worker/rebuildRowModel.d.cts +0 -9
- package/dist/worker/rebuildRowModel.js.map +0 -1
- package/dist/worker/serializeRowModel.cjs +0 -53
- package/dist/worker/serializeRowModel.cjs.map +0 -1
- package/dist/worker/serializeRowModel.js.map +0 -1
- package/dist/worker/tableWorkerProtocol.cjs +0 -29
- package/dist/worker/tableWorkerProtocol.cjs.map +0 -1
- package/dist/worker/tableWorkerProtocol.d.cts +0 -88
- package/dist/worker/tableWorkerProtocol.js.map +0 -1
- 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 -125
- 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 -184
- 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 -199
- 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 -50
- package/src/core/row-models/coreRowModelsFeature.utils.ts +0 -272
- package/src/core/row-models/createCoreRowModel.ts +0 -94
- package/src/core/rows/constructRow.ts +0 -68
- package/src/core/rows/coreRowsFeature.ts +0 -83
- package/src/core/rows/coreRowsFeature.types.ts +0 -154
- package/src/core/rows/coreRowsFeature.utils.ts +0 -352
- package/src/core/table/constructTable.ts +0 -210
- package/src/core/table/coreTablesFeature.ts +0 -19
- package/src/core/table/coreTablesFeature.types.ts +0 -241
- package/src/core/table/coreTablesFeature.utils.ts +0 -171
- package/src/experimental-worker-plugin.ts +0 -22
- package/src/features/column-faceting/columnFacetingFeature.ts +0 -89
- package/src/features/column-faceting/columnFacetingFeature.types.ts +0 -78
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +0 -180
- package/src/features/column-faceting/createFacetedMinMaxValues.ts +0 -92
- package/src/features/column-faceting/createFacetedRowModel.ts +0 -92
- package/src/features/column-faceting/createFacetedUniqueValues.ts +0 -97
- package/src/features/column-filtering/columnFilteringFeature.ts +0 -87
- package/src/features/column-filtering/columnFilteringFeature.types.ts +0 -308
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +0 -345
- package/src/features/column-filtering/createFilteredRowModel.ts +0 -194
- package/src/features/column-filtering/filterFns.ts +0 -533
- package/src/features/column-filtering/filterRowsUtils.ts +0 -158
- package/src/features/column-grouping/columnGroupingFeature.ts +0 -97
- package/src/features/column-grouping/columnGroupingFeature.types.ts +0 -152
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +0 -271
- package/src/features/column-grouping/createGroupedRowModel.ts +0 -258
- package/src/features/column-ordering/columnOrderingFeature.ts +0 -78
- package/src/features/column-ordering/columnOrderingFeature.types.ts +0 -86
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +0 -292
- package/src/features/column-pinning/columnPinningFeature.ts +0 -333
- package/src/features/column-pinning/columnPinningFeature.types.ts +0 -203
- package/src/features/column-pinning/columnPinningFeature.utils.ts +0 -922
- package/src/features/column-resizing/columnResizingFeature.ts +0 -65
- package/src/features/column-resizing/columnResizingFeature.types.ts +0 -86
- package/src/features/column-resizing/columnResizingFeature.utils.ts +0 -432
- package/src/features/column-sizing/columnSizingFeature.ts +0 -145
- package/src/features/column-sizing/columnSizingFeature.types.ts +0 -147
- package/src/features/column-sizing/columnSizingFeature.utils.ts +0 -462
- package/src/features/column-visibility/columnVisibilityFeature.ts +0 -126
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +0 -112
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +0 -402
- 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 -126
- package/src/features/row-aggregation/aggregationFns.ts +0 -383
- package/src/features/row-aggregation/rowAggregationFeature.ts +0 -56
- package/src/features/row-aggregation/rowAggregationFeature.types.ts +0 -339
- package/src/features/row-aggregation/rowAggregationFeature.utils.ts +0 -487
- 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 -132
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +0 -399
- 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 -137
- 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 -190
- package/src/features/row-selection/rowSelectionFeature.types.ts +0 -195
- package/src/features/row-selection/rowSelectionFeature.utils.ts +0 -927
- package/src/features/row-sorting/createSortedRowModel.ts +0 -189
- package/src/features/row-sorting/rowSortingFeature.ts +0 -103
- package/src/features/row-sorting/rowSortingFeature.types.ts +0 -288
- package/src/features/row-sorting/rowSortingFeature.utils.ts +0 -513
- package/src/features/row-sorting/sortFns.ts +0 -366
- package/src/features/stockFeatures.ts +0 -56
- package/src/flex-render.ts +0 -70
- package/src/helpers/columnHelper.ts +0 -122
- package/src/helpers/metaHelper.ts +0 -24
- package/src/helpers/tableFeatures.ts +0 -56
- package/src/helpers/tableOptions.ts +0 -117
- package/src/index.ts +0 -138
- package/src/process-env.d.ts +0 -6
- package/src/reactivity.ts +0 -2
- package/src/static-functions.ts +0 -32
- package/src/store-reactivity-bindings.ts +0 -47
- package/src/types/Cell.ts +0 -23
- package/src/types/Column.ts +0 -55
- package/src/types/ColumnDef.ts +0 -258
- package/src/types/Header.ts +0 -23
- package/src/types/HeaderGroup.ts +0 -13
- package/src/types/Row.ts +0 -36
- package/src/types/RowModel.ts +0 -43
- package/src/types/RowModelFns.ts +0 -32
- package/src/types/Table.ts +0 -116
- package/src/types/TableFeatures.ts +0 -479
- package/src/types/TableOptions.ts +0 -154
- package/src/types/TableState.ts +0 -61
- package/src/types/type-utils.ts +0 -92
- package/src/utils.ts +0 -493
- package/src/worker/createTableWorker.ts +0 -357
- package/src/worker/createWorkerRowModel.ts +0 -121
- package/src/worker/initTableWorker.ts +0 -164
- package/src/worker/rebuildRowModel.ts +0 -120
- package/src/worker/serializeRowModel.ts +0 -80
- package/src/worker/tableWorkerProtocol.ts +0 -105
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import { hasOwn, makeObjectMap } from '../../utils'
|
|
2
|
-
import type { Cell } from '../../types/Cell'
|
|
3
|
-
import type { Column, Column_Internal } from '../../types/Column'
|
|
4
|
-
import type { Row } from '../../types/Row'
|
|
5
|
-
import type { TableFeatures } from '../../types/TableFeatures'
|
|
6
|
-
import type { CellData, RowData } from '../../types/type-utils'
|
|
7
|
-
import type {
|
|
8
|
-
AggregationContext,
|
|
9
|
-
AggregationFnDef,
|
|
10
|
-
AggregationFnDescriptor,
|
|
11
|
-
AggregationFnRef,
|
|
12
|
-
AggregationValueOptions,
|
|
13
|
-
ColumnAggregationValue,
|
|
14
|
-
ResolvedAggregationFn,
|
|
15
|
-
} from './rowAggregationFeature.types'
|
|
16
|
-
|
|
17
|
-
interface AggregationCacheEntry {
|
|
18
|
-
aggregationFnOption: unknown
|
|
19
|
-
dependency: unknown
|
|
20
|
-
maxDepth: number
|
|
21
|
-
registry: unknown
|
|
22
|
-
value: unknown
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface ResolvedAggregationFnsCacheEntry<
|
|
26
|
-
TFeatures extends TableFeatures,
|
|
27
|
-
TData extends RowData,
|
|
28
|
-
> {
|
|
29
|
-
coreRowModel: unknown
|
|
30
|
-
option: unknown
|
|
31
|
-
registry: unknown
|
|
32
|
-
value: ReadonlyArray<ResolvedAggregationFn<TFeatures, TData>>
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function isAggregationFnDef(value: unknown): value is AggregationFnDef {
|
|
36
|
-
return !!value && typeof value === 'object' && 'aggregate' in value
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function isAggregationFnDescriptor(
|
|
40
|
-
value: unknown,
|
|
41
|
-
): value is AggregationFnDescriptor<any, any> {
|
|
42
|
-
return (
|
|
43
|
-
!!value &&
|
|
44
|
-
typeof value === 'object' &&
|
|
45
|
-
'id' in value &&
|
|
46
|
-
'aggregationFn' in value
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function warn(message: string) {
|
|
51
|
-
if (process.env.NODE_ENV === 'development') {
|
|
52
|
-
console.warn(message)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function resolveMaxAggregationDepth(maxDepth: number | undefined) {
|
|
57
|
-
return maxDepth === undefined || Number.isNaN(maxDepth)
|
|
58
|
-
? 0
|
|
59
|
-
: Math.max(0, Math.floor(maxDepth))
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Selects unique rows at a maximum relative depth in encounter order.
|
|
64
|
-
* Branches that end before the requested depth contribute their deepest row.
|
|
65
|
-
*/
|
|
66
|
-
export function normalizeAggregationRows<
|
|
67
|
-
TFeatures extends TableFeatures,
|
|
68
|
-
TData extends RowData,
|
|
69
|
-
>(
|
|
70
|
-
rows: ReadonlyArray<Row<TFeatures, TData>>,
|
|
71
|
-
maxDepth = 0,
|
|
72
|
-
): Array<Row<TFeatures, TData>> {
|
|
73
|
-
const result: Array<Row<TFeatures, TData>> = []
|
|
74
|
-
const seen = new Set<string>()
|
|
75
|
-
const normalizedMaxDepth = resolveMaxAggregationDepth(maxDepth)
|
|
76
|
-
|
|
77
|
-
const visit = (row: Row<TFeatures, TData>, depth: number) => {
|
|
78
|
-
if (row.subRows.length && depth < normalizedMaxDepth) {
|
|
79
|
-
for (let i = 0; i < row.subRows.length; i++) {
|
|
80
|
-
visit(row.subRows[i]!, depth + 1)
|
|
81
|
-
}
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (!seen.has(row.id)) {
|
|
86
|
-
seen.add(row.id)
|
|
87
|
-
result.push(row)
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
for (let i = 0; i < rows.length; i++) {
|
|
92
|
-
visit(rows[i]!, 0)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return result
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Frontier selection for rows that are distinct nodes of a single row tree —
|
|
100
|
-
* the row models the table builds itself. Skips `normalizeAggregationRows`'
|
|
101
|
-
* duplicate-id guard (disjoint subtrees cannot revisit a row) and returns
|
|
102
|
-
* `rows` unchanged when no row descends, so the default `maxDepth: 0` case
|
|
103
|
-
* costs nothing per aggregation.
|
|
104
|
-
*/
|
|
105
|
-
export function normalizeUniqueAggregationRows<
|
|
106
|
-
TFeatures extends TableFeatures,
|
|
107
|
-
TData extends RowData,
|
|
108
|
-
>(
|
|
109
|
-
rows: ReadonlyArray<Row<TFeatures, TData>>,
|
|
110
|
-
maxDepth = 0,
|
|
111
|
-
): ReadonlyArray<Row<TFeatures, TData>> {
|
|
112
|
-
const normalizedMaxDepth = resolveMaxAggregationDepth(maxDepth)
|
|
113
|
-
|
|
114
|
-
let needsDescent = false
|
|
115
|
-
if (normalizedMaxDepth > 0) {
|
|
116
|
-
for (let i = 0; i < rows.length; i++) {
|
|
117
|
-
if (rows[i]!.subRows.length) {
|
|
118
|
-
needsDescent = true
|
|
119
|
-
break
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (!needsDescent) return rows
|
|
124
|
-
|
|
125
|
-
const result: Array<Row<TFeatures, TData>> = []
|
|
126
|
-
|
|
127
|
-
const visit = (row: Row<TFeatures, TData>, depth: number) => {
|
|
128
|
-
if (row.subRows.length && depth < normalizedMaxDepth) {
|
|
129
|
-
for (let i = 0; i < row.subRows.length; i++) {
|
|
130
|
-
visit(row.subRows[i]!, depth + 1)
|
|
131
|
-
}
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
result.push(row)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
for (let i = 0; i < rows.length; i++) {
|
|
138
|
-
visit(rows[i]!, 0)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return result
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function getAutoAggregationFnName(
|
|
145
|
-
value: unknown,
|
|
146
|
-
): 'extent' | 'sum' | undefined {
|
|
147
|
-
if (typeof value === 'number') {
|
|
148
|
-
return 'sum'
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if (value instanceof Date && !Number.isNaN(value.getTime())) {
|
|
152
|
-
return 'extent'
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
return undefined
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/** Resolves the `sum` or `extent` definition inferred from the first core row. */
|
|
159
|
-
export function column_getAutoAggregationFn<
|
|
160
|
-
TFeatures extends TableFeatures,
|
|
161
|
-
TData extends RowData,
|
|
162
|
-
TValue extends CellData = CellData,
|
|
163
|
-
>(column: Column_Internal<TFeatures, TData, TValue>) {
|
|
164
|
-
const value = column.table.getCoreRowModel().flatRows[0]?.getValue(column.id)
|
|
165
|
-
|
|
166
|
-
const name = getAutoAggregationFnName(value)
|
|
167
|
-
if (!name) return undefined
|
|
168
|
-
|
|
169
|
-
const aggregationFn = column.table._rowModelFns.aggregationFns?.[name]
|
|
170
|
-
|
|
171
|
-
if (!aggregationFn) {
|
|
172
|
-
warn(
|
|
173
|
-
`aggregationFn '${name}' (auto) for column '${column.id}' is not registered`,
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return aggregationFn
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function resolveAggregationFn<
|
|
181
|
-
TFeatures extends TableFeatures,
|
|
182
|
-
TData extends RowData,
|
|
183
|
-
>(
|
|
184
|
-
column: Column_Internal<TFeatures, TData, any>,
|
|
185
|
-
ref: AggregationFnRef<TFeatures, TData, any, any>,
|
|
186
|
-
): AggregationFnDef<TFeatures, TData, any, any> | undefined {
|
|
187
|
-
if (isAggregationFnDef(ref)) return ref as any
|
|
188
|
-
if (ref === 'auto') return column_getAutoAggregationFn(column)
|
|
189
|
-
|
|
190
|
-
const aggregationFn =
|
|
191
|
-
column.table._rowModelFns.aggregationFns?.[ref as string]
|
|
192
|
-
if (!aggregationFn) {
|
|
193
|
-
warn(
|
|
194
|
-
`aggregationFn '${String(ref)}' for column '${column.id}' is not registered`,
|
|
195
|
-
)
|
|
196
|
-
}
|
|
197
|
-
return aggregationFn
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** Resolves and validates a column's scalar or multiple aggregation option. */
|
|
201
|
-
export function column_getAggregationFns<
|
|
202
|
-
TFeatures extends TableFeatures,
|
|
203
|
-
TData extends RowData,
|
|
204
|
-
TValue extends CellData = CellData,
|
|
205
|
-
>(
|
|
206
|
-
column: Column_Internal<TFeatures, TData, TValue>,
|
|
207
|
-
): ReadonlyArray<ResolvedAggregationFn<TFeatures, TData>> {
|
|
208
|
-
const option = column.columnDef.aggregationFn
|
|
209
|
-
const registry = column.table._rowModelFns.aggregationFns
|
|
210
|
-
const coreRowModel = column.table.getCoreRowModel()
|
|
211
|
-
const previous = (column as any)._resolvedAggregationFnsCache as
|
|
212
|
-
| ResolvedAggregationFnsCacheEntry<TFeatures, TData>
|
|
213
|
-
| undefined
|
|
214
|
-
|
|
215
|
-
if (
|
|
216
|
-
previous &&
|
|
217
|
-
previous.option === option &&
|
|
218
|
-
previous.registry === registry &&
|
|
219
|
-
previous.coreRowModel === coreRowModel
|
|
220
|
-
) {
|
|
221
|
-
return previous.value
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
const finish = (
|
|
225
|
-
value: ReadonlyArray<ResolvedAggregationFn<TFeatures, TData>>,
|
|
226
|
-
) => {
|
|
227
|
-
;(column as any)._resolvedAggregationFnsCache = {
|
|
228
|
-
coreRowModel,
|
|
229
|
-
option,
|
|
230
|
-
registry,
|
|
231
|
-
value,
|
|
232
|
-
} satisfies ResolvedAggregationFnsCacheEntry<TFeatures, TData>
|
|
233
|
-
return value
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (option == null) return finish([])
|
|
237
|
-
|
|
238
|
-
if (!Array.isArray(option)) {
|
|
239
|
-
return finish([
|
|
240
|
-
{
|
|
241
|
-
aggregationFn: resolveAggregationFn(column, option as any),
|
|
242
|
-
id: typeof option === 'string' ? option : undefined,
|
|
243
|
-
},
|
|
244
|
-
])
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
const ids = makeObjectMap<number>()
|
|
248
|
-
for (let i = 0; i < option.length; i++) {
|
|
249
|
-
const item = option[i]
|
|
250
|
-
const id =
|
|
251
|
-
typeof item === 'string'
|
|
252
|
-
? item
|
|
253
|
-
: isAggregationFnDescriptor(item)
|
|
254
|
-
? item.id
|
|
255
|
-
: undefined
|
|
256
|
-
if (id !== undefined) ids[id] = (ids[id] ?? 0) + 1
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
const resolved: Array<ResolvedAggregationFn<TFeatures, TData>> = []
|
|
260
|
-
|
|
261
|
-
for (let i = 0; i < option.length; i++) {
|
|
262
|
-
const item = option[i]
|
|
263
|
-
const id =
|
|
264
|
-
typeof item === 'string'
|
|
265
|
-
? item
|
|
266
|
-
: isAggregationFnDescriptor(item)
|
|
267
|
-
? item.id
|
|
268
|
-
: undefined
|
|
269
|
-
|
|
270
|
-
if (id === undefined) {
|
|
271
|
-
warn(
|
|
272
|
-
`aggregationFn at index ${i} for column '${column.id}' needs a stable id`,
|
|
273
|
-
)
|
|
274
|
-
resolved.push({ aggregationFn: undefined, id: undefined })
|
|
275
|
-
continue
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
if (ids[id]! > 1) {
|
|
279
|
-
warn(`aggregationFn id '${id}' for column '${column.id}' is duplicated`)
|
|
280
|
-
resolved.push({ aggregationFn: undefined, id })
|
|
281
|
-
continue
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
const ref = isAggregationFnDescriptor(item) ? item.aggregationFn : item
|
|
285
|
-
resolved.push({
|
|
286
|
-
aggregationFn: resolveAggregationFn(column, ref),
|
|
287
|
-
id,
|
|
288
|
-
})
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return finish(resolved)
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
function getSubRowResult(
|
|
295
|
-
subRowValue: unknown,
|
|
296
|
-
isMultiple: boolean,
|
|
297
|
-
id: string | undefined,
|
|
298
|
-
) {
|
|
299
|
-
if (!isMultiple) return subRowValue
|
|
300
|
-
if (!id || !subRowValue || typeof subRowValue !== 'object') return undefined
|
|
301
|
-
return hasOwn(subRowValue, id)
|
|
302
|
-
? (subRowValue as Record<string, unknown>)[id]
|
|
303
|
-
: undefined
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/** Executes every configured aggregation over a depth-selected row frontier. */
|
|
307
|
-
export function aggregateColumnValue<
|
|
308
|
-
TFeatures extends TableFeatures,
|
|
309
|
-
TData extends RowData,
|
|
310
|
-
>(args: {
|
|
311
|
-
maxDepth?: number
|
|
312
|
-
subRows?: ReadonlyArray<Row<TFeatures, TData>>
|
|
313
|
-
column: Column<TFeatures, TData, unknown>
|
|
314
|
-
groupingRow?: Row<TFeatures, TData>
|
|
315
|
-
rows: ReadonlyArray<Row<TFeatures, TData>>
|
|
316
|
-
/**
|
|
317
|
-
* Marks `rows` as distinct nodes of a single row tree (rows the table's own
|
|
318
|
-
* row models produced), enabling frontier selection without the
|
|
319
|
-
* duplicate-id guard. Caller-supplied row arrays must omit this.
|
|
320
|
-
*/
|
|
321
|
-
uniqueRows?: boolean
|
|
322
|
-
}): unknown {
|
|
323
|
-
const { subRows, column, groupingRow, rows, uniqueRows } = args
|
|
324
|
-
const internalColumn = column as Column_Internal<TFeatures, TData, unknown>
|
|
325
|
-
const maxDepth = resolveMaxAggregationDepth(
|
|
326
|
-
args.maxDepth ?? internalColumn.columnDef.maxAggregationDepth,
|
|
327
|
-
)
|
|
328
|
-
const aggregationRows = uniqueRows
|
|
329
|
-
? normalizeUniqueAggregationRows(rows, maxDepth)
|
|
330
|
-
: normalizeAggregationRows(rows, maxDepth)
|
|
331
|
-
const entries = column_getAggregationFns(internalColumn)
|
|
332
|
-
const isMultiple = Array.isArray(internalColumn.columnDef.aggregationFn)
|
|
333
|
-
const canMerge =
|
|
334
|
-
!!subRows?.length &&
|
|
335
|
-
subRows.every(
|
|
336
|
-
(row) =>
|
|
337
|
-
!!(row as any).groupingColumnId &&
|
|
338
|
-
(row as any).groupingColumnId !== column.id,
|
|
339
|
-
)
|
|
340
|
-
|
|
341
|
-
const getValue = (row: Row<TFeatures, TData>) => row.getValue(column.id)
|
|
342
|
-
|
|
343
|
-
const execute = (entry: ResolvedAggregationFn<TFeatures, TData>) => {
|
|
344
|
-
const definition = entry.aggregationFn
|
|
345
|
-
if (!definition) return undefined
|
|
346
|
-
|
|
347
|
-
const context: AggregationContext<TFeatures, TData, unknown> = {
|
|
348
|
-
...(subRows ? { subRows } : {}),
|
|
349
|
-
column,
|
|
350
|
-
columnId: column.id,
|
|
351
|
-
getValue,
|
|
352
|
-
...(groupingRow ? { groupingRow } : {}),
|
|
353
|
-
maxDepth,
|
|
354
|
-
rows: aggregationRows,
|
|
355
|
-
table: column.table as any,
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
if (canMerge && definition.merge) {
|
|
359
|
-
return definition.merge({
|
|
360
|
-
...context,
|
|
361
|
-
subRowResults: subRows.map((row) =>
|
|
362
|
-
getSubRowResult(row.getValue(column.id), isMultiple, entry.id),
|
|
363
|
-
),
|
|
364
|
-
subRows,
|
|
365
|
-
})
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
return definition.aggregate(context)
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
if (!isMultiple) {
|
|
372
|
-
return entries[0] ? execute(entries[0]) : undefined
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
const result = makeObjectMap<unknown>()
|
|
376
|
-
for (let i = 0; i < entries.length; i++) {
|
|
377
|
-
const entry = entries[i]!
|
|
378
|
-
if (entry.id !== undefined) {
|
|
379
|
-
result[entry.id] = execute(entry)
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
return result
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/** Implements `column.getAggregationValue(options?)` and its default cache. */
|
|
386
|
-
export function column_getAggregationValue<
|
|
387
|
-
TFeatures extends TableFeatures,
|
|
388
|
-
TData extends RowData,
|
|
389
|
-
TValue extends CellData = CellData,
|
|
390
|
-
>(
|
|
391
|
-
column: Column_Internal<TFeatures, TData, TValue>,
|
|
392
|
-
options?: AggregationValueOptions<TFeatures, TData>,
|
|
393
|
-
): ColumnAggregationValue<TFeatures> {
|
|
394
|
-
const rows = options?.rows
|
|
395
|
-
const resolvedMaxDepth = resolveMaxAggregationDepth(
|
|
396
|
-
options?.maxDepth ?? column.columnDef.maxAggregationDepth,
|
|
397
|
-
)
|
|
398
|
-
const providedResult = column.columnDef.getAggregationValue?.({
|
|
399
|
-
column: column as any,
|
|
400
|
-
maxDepth: resolvedMaxDepth,
|
|
401
|
-
rows,
|
|
402
|
-
table: column.table as any,
|
|
403
|
-
})
|
|
404
|
-
|
|
405
|
-
if (providedResult) return providedResult.value as any
|
|
406
|
-
if (column.table.options.manualAggregation) return undefined
|
|
407
|
-
|
|
408
|
-
if (rows !== undefined) {
|
|
409
|
-
return aggregateColumnValue({
|
|
410
|
-
column: column as any,
|
|
411
|
-
maxDepth: resolvedMaxDepth,
|
|
412
|
-
rows,
|
|
413
|
-
}) as any
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
const model = column.table.getPreGroupedRowModel()
|
|
417
|
-
const previous = (column as any)._aggregationValueCache as
|
|
418
|
-
| AggregationCacheEntry
|
|
419
|
-
| undefined
|
|
420
|
-
const registry = column.table._rowModelFns.aggregationFns
|
|
421
|
-
const aggregationFnOption = column.columnDef.aggregationFn
|
|
422
|
-
|
|
423
|
-
if (
|
|
424
|
-
previous &&
|
|
425
|
-
previous.dependency === model &&
|
|
426
|
-
previous.maxDepth === resolvedMaxDepth &&
|
|
427
|
-
previous.registry === registry &&
|
|
428
|
-
previous.aggregationFnOption === aggregationFnOption
|
|
429
|
-
) {
|
|
430
|
-
return previous.value as any
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
const value = aggregateColumnValue({
|
|
434
|
-
column: column as any,
|
|
435
|
-
maxDepth: resolvedMaxDepth,
|
|
436
|
-
rows: model.rows,
|
|
437
|
-
uniqueRows: true,
|
|
438
|
-
})
|
|
439
|
-
;(column as any)._aggregationValueCache = {
|
|
440
|
-
aggregationFnOption,
|
|
441
|
-
dependency: model,
|
|
442
|
-
maxDepth: resolvedMaxDepth,
|
|
443
|
-
registry,
|
|
444
|
-
value,
|
|
445
|
-
} satisfies AggregationCacheEntry
|
|
446
|
-
return value as any
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/** Implements `cell.getIsAggregated()` for synthetic grouped rows. */
|
|
450
|
-
export function cell_getIsAggregated<
|
|
451
|
-
TFeatures extends TableFeatures,
|
|
452
|
-
TData extends RowData,
|
|
453
|
-
TValue extends CellData = CellData,
|
|
454
|
-
>(cell: Cell<TFeatures, TData, TValue>) {
|
|
455
|
-
const groupingColumnId = (cell.row as any).groupingColumnId as
|
|
456
|
-
| string
|
|
457
|
-
| undefined
|
|
458
|
-
if (!groupingColumnId || groupingColumnId === cell.column.id) return false
|
|
459
|
-
|
|
460
|
-
const grouping = (cell.column.table as any).atoms.grouping?.get?.() as
|
|
461
|
-
| Array<string>
|
|
462
|
-
| undefined
|
|
463
|
-
if (grouping?.includes(cell.column.id)) return false
|
|
464
|
-
|
|
465
|
-
return column_getAggregationFns(cell.column as any).some(
|
|
466
|
-
(entry) => !!entry.aggregationFn,
|
|
467
|
-
)
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/** Formats the default scalar or keyed aggregated-cell representation. */
|
|
471
|
-
export function formatAggregatedCellValue(
|
|
472
|
-
value: unknown,
|
|
473
|
-
option: unknown,
|
|
474
|
-
): string | null {
|
|
475
|
-
if (value == null) return null
|
|
476
|
-
|
|
477
|
-
if (Array.isArray(option) && typeof value === 'object') {
|
|
478
|
-
const entries = Object.keys(value)
|
|
479
|
-
return entries
|
|
480
|
-
.map(
|
|
481
|
-
(key) => `${key}: ${String((value as Record<string, unknown>)[key])}`,
|
|
482
|
-
)
|
|
483
|
-
.join(', ')
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
return String(value)
|
|
487
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { tableMemo } from '../../utils'
|
|
2
|
-
import { row_getIsExpanded } from './rowExpandingFeature.utils'
|
|
3
|
-
import type { TableFeatures } from '../../types/TableFeatures'
|
|
4
|
-
import type { RowModel } from '../../core/row-models/coreRowModelsFeature.types'
|
|
5
|
-
import type { Table, Table_Internal } from '../../types/Table'
|
|
6
|
-
import type { Row } from '../../types/Row'
|
|
7
|
-
import type { RowData } from '../../types/type-utils'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Creates a memoized expanded row model factory.
|
|
11
|
-
*
|
|
12
|
-
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
13
|
-
*/
|
|
14
|
-
export function createExpandedRowModel<
|
|
15
|
-
TFeatures extends TableFeatures,
|
|
16
|
-
TData extends RowData = any,
|
|
17
|
-
>(): (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData> {
|
|
18
|
-
return (_table) => {
|
|
19
|
-
const table = _table as unknown as Table_Internal<TFeatures, TData>
|
|
20
|
-
return tableMemo({
|
|
21
|
-
feature: 'rowExpandingFeature',
|
|
22
|
-
table,
|
|
23
|
-
fnName: 'table.getExpandedRowModel',
|
|
24
|
-
memoDeps: () => [
|
|
25
|
-
table.atoms.expanded?.get(),
|
|
26
|
-
table.getPreExpandedRowModel(),
|
|
27
|
-
table.options.paginateExpandedRows,
|
|
28
|
-
],
|
|
29
|
-
fn: () => _createExpandedRowModel(table),
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _createExpandedRowModel<
|
|
35
|
-
TFeatures extends TableFeatures,
|
|
36
|
-
TData extends RowData = any,
|
|
37
|
-
>(table: Table_Internal<TFeatures, TData>): RowModel<TFeatures, TData> {
|
|
38
|
-
const rowModel = table.getPreExpandedRowModel()
|
|
39
|
-
const expanded = table.atoms.expanded?.get()
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
!rowModel.rows.length ||
|
|
43
|
-
(expanded !== true && !Object.keys(expanded ?? {}).length)
|
|
44
|
-
) {
|
|
45
|
-
return rowModel
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (!table.options.paginateExpandedRows) {
|
|
49
|
-
// Only expand rows at this point if they are being paginated
|
|
50
|
-
return rowModel
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return expandRows(rowModel)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Expands a row model according to the current expanded row state.
|
|
58
|
-
*
|
|
59
|
-
* Expanded sub-rows are inserted into the flattened row order while preserving the original row hierarchy.
|
|
60
|
-
*/
|
|
61
|
-
export function expandRows<
|
|
62
|
-
TFeatures extends TableFeatures,
|
|
63
|
-
TData extends RowData = any,
|
|
64
|
-
>(rowModel: RowModel<TFeatures, TData>): RowModel<TFeatures, TData> {
|
|
65
|
-
const expandedRows: Array<Row<TFeatures, TData>> = []
|
|
66
|
-
|
|
67
|
-
const handleRow = (row: Row<TFeatures, TData>) => {
|
|
68
|
-
expandedRows.push(row)
|
|
69
|
-
|
|
70
|
-
if (row.subRows.length && row_getIsExpanded(row)) {
|
|
71
|
-
row.subRows.forEach(handleRow)
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
rowModel.rows.forEach(handleRow)
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
rows: expandedRows,
|
|
79
|
-
flatRows: rowModel.flatRows,
|
|
80
|
-
rowsById: rowModel.rowsById,
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
assignPrototypeAPIs,
|
|
3
|
-
assignTableAPIs,
|
|
4
|
-
makeStateUpdater,
|
|
5
|
-
} from '../../utils'
|
|
6
|
-
import {
|
|
7
|
-
getDefaultExpandedState,
|
|
8
|
-
row_getCanExpand,
|
|
9
|
-
row_getIsAllParentsExpanded,
|
|
10
|
-
row_getIsExpanded,
|
|
11
|
-
row_getToggleExpandedHandler,
|
|
12
|
-
row_toggleExpanded,
|
|
13
|
-
table_autoResetExpanded,
|
|
14
|
-
table_getCanSomeRowsExpand,
|
|
15
|
-
table_getExpandedDepth,
|
|
16
|
-
table_getIsAllRowsExpanded,
|
|
17
|
-
table_getIsSomeRowsExpanded,
|
|
18
|
-
table_getToggleAllRowsExpandedHandler,
|
|
19
|
-
table_resetExpanded,
|
|
20
|
-
table_setExpanded,
|
|
21
|
-
table_toggleAllRowsExpanded,
|
|
22
|
-
} from './rowExpandingFeature.utils'
|
|
23
|
-
import type { TableFeature } from '../../types/TableFeatures'
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Feature that adds row expansion state and APIs for expandable row trees.
|
|
27
|
-
*/
|
|
28
|
-
export const rowExpandingFeature: TableFeature = {
|
|
29
|
-
getInitialState: (initialState) => {
|
|
30
|
-
return {
|
|
31
|
-
expanded: getDefaultExpandedState(),
|
|
32
|
-
...initialState,
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
getDefaultTableOptions: (table) => {
|
|
37
|
-
return {
|
|
38
|
-
onExpandedChange: makeStateUpdater('expanded', table),
|
|
39
|
-
paginateExpandedRows: true,
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
assignRowPrototype: (prototype, table) => {
|
|
44
|
-
assignPrototypeAPIs('rowExpandingFeature', prototype, table, {
|
|
45
|
-
row_toggleExpanded: {
|
|
46
|
-
fn: (row, expanded) => row_toggleExpanded(row, expanded),
|
|
47
|
-
},
|
|
48
|
-
row_getIsExpanded: {
|
|
49
|
-
fn: (row) => row_getIsExpanded(row),
|
|
50
|
-
},
|
|
51
|
-
row_getCanExpand: {
|
|
52
|
-
fn: (row) => row_getCanExpand(row),
|
|
53
|
-
},
|
|
54
|
-
row_getIsAllParentsExpanded: {
|
|
55
|
-
fn: (row) => row_getIsAllParentsExpanded(row),
|
|
56
|
-
},
|
|
57
|
-
row_getToggleExpandedHandler: {
|
|
58
|
-
fn: (row) => row_getToggleExpandedHandler(row),
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
constructTableAPIs: (table) => {
|
|
64
|
-
assignTableAPIs('rowExpandingFeature', table, {
|
|
65
|
-
table_autoResetExpanded: {
|
|
66
|
-
fn: () => table_autoResetExpanded(table),
|
|
67
|
-
},
|
|
68
|
-
table_setExpanded: {
|
|
69
|
-
fn: (updater) => table_setExpanded(table, updater),
|
|
70
|
-
},
|
|
71
|
-
table_toggleAllRowsExpanded: {
|
|
72
|
-
fn: (expanded) => table_toggleAllRowsExpanded(table, expanded),
|
|
73
|
-
},
|
|
74
|
-
table_resetExpanded: {
|
|
75
|
-
fn: (defaultState) => table_resetExpanded(table, defaultState),
|
|
76
|
-
},
|
|
77
|
-
table_getCanSomeRowsExpand: {
|
|
78
|
-
fn: () => table_getCanSomeRowsExpand(table),
|
|
79
|
-
},
|
|
80
|
-
table_getToggleAllRowsExpandedHandler: {
|
|
81
|
-
fn: () => table_getToggleAllRowsExpandedHandler(table),
|
|
82
|
-
},
|
|
83
|
-
table_getIsSomeRowsExpanded: {
|
|
84
|
-
fn: () => table_getIsSomeRowsExpanded(table),
|
|
85
|
-
},
|
|
86
|
-
table_getIsAllRowsExpanded: {
|
|
87
|
-
fn: () => table_getIsAllRowsExpanded(table),
|
|
88
|
-
},
|
|
89
|
-
table_getExpandedDepth: {
|
|
90
|
-
fn: () => table_getExpandedDepth(table),
|
|
91
|
-
},
|
|
92
|
-
})
|
|
93
|
-
},
|
|
94
|
-
}
|