@ember-lattice/core 0.0.0-stage → 1.1.0
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/CHANGELOG.md +15 -0
- package/LICENSE.md +21 -0
- package/NOTICE +30 -0
- package/README.md +84 -2
- package/addon-main.cjs +4 -0
- package/declarations/core/cells/constructCell.d.ts +13 -0
- package/declarations/core/cells/constructCell.d.ts.map +1 -0
- package/declarations/core/cells/coreCellsFeature.d.ts +6 -0
- package/declarations/core/cells/coreCellsFeature.d.ts.map +1 -0
- package/declarations/core/cells/coreCellsFeature.types.d.ts +53 -0
- package/declarations/core/cells/coreCellsFeature.types.d.ts.map +1 -0
- package/declarations/core/cells/coreCellsFeature.utils.d.ts +47 -0
- package/declarations/core/cells/coreCellsFeature.utils.d.ts.map +1 -0
- package/declarations/core/columns/constructColumn.d.ts +12 -0
- package/declarations/core/columns/constructColumn.d.ts.map +1 -0
- package/declarations/core/columns/coreColumnsFeature.d.ts +6 -0
- package/declarations/core/columns/coreColumnsFeature.d.ts.map +1 -0
- package/declarations/core/columns/coreColumnsFeature.types.d.ts +90 -0
- package/declarations/core/columns/coreColumnsFeature.types.d.ts.map +1 -0
- package/declarations/core/columns/coreColumnsFeature.utils.d.ts +115 -0
- package/declarations/core/columns/coreColumnsFeature.utils.d.ts.map +1 -0
- package/declarations/core/coreFeatures.d.ts +23 -0
- package/declarations/core/coreFeatures.d.ts.map +1 -0
- package/declarations/core/featureStubs.d.ts +97 -0
- package/declarations/core/featureStubs.d.ts.map +1 -0
- package/declarations/core/headers/buildHeaderGroups.d.ts +12 -0
- package/declarations/core/headers/buildHeaderGroups.d.ts.map +1 -0
- package/declarations/core/headers/constructHeader.d.ts +18 -0
- package/declarations/core/headers/constructHeader.d.ts.map +1 -0
- package/declarations/core/headers/coreHeadersFeature.d.ts +6 -0
- package/declarations/core/headers/coreHeadersFeature.d.ts.map +1 -0
- package/declarations/core/headers/coreHeadersFeature.types.d.ts +114 -0
- package/declarations/core/headers/coreHeadersFeature.types.d.ts.map +1 -0
- package/declarations/core/headers/coreHeadersFeature.utils.d.ts +80 -0
- package/declarations/core/headers/coreHeadersFeature.utils.d.ts.map +1 -0
- package/declarations/core/reactivity/coreReactivityFeature.types.d.ts +51 -0
- package/declarations/core/reactivity/coreReactivityFeature.types.d.ts.map +1 -0
- package/declarations/core/reactivity/coreReactivityFeature.utils.d.ts +20 -0
- package/declarations/core/reactivity/coreReactivityFeature.utils.d.ts.map +1 -0
- package/declarations/core/reactivity/renderPhaseReactivity.d.ts +79 -0
- package/declarations/core/reactivity/renderPhaseReactivity.d.ts.map +1 -0
- package/declarations/core/row-models/coreRowModelsFeature.d.ts +6 -0
- package/declarations/core/row-models/coreRowModelsFeature.d.ts.map +1 -0
- package/declarations/core/row-models/coreRowModelsFeature.types.d.ts +29 -0
- package/declarations/core/row-models/coreRowModelsFeature.types.d.ts.map +1 -0
- package/declarations/core/row-models/coreRowModelsFeature.utils.d.ts +149 -0
- package/declarations/core/row-models/coreRowModelsFeature.utils.d.ts.map +1 -0
- package/declarations/core/row-models/createCoreRowModel.d.ts +11 -0
- package/declarations/core/row-models/createCoreRowModel.d.ts.map +1 -0
- package/declarations/core/rows/constructRow.d.ts +11 -0
- package/declarations/core/rows/constructRow.d.ts.map +1 -0
- package/declarations/core/rows/coreRowsFeature.d.ts +6 -0
- package/declarations/core/rows/coreRowsFeature.d.ts.map +1 -0
- package/declarations/core/rows/coreRowsFeature.types.d.ts +129 -0
- package/declarations/core/rows/coreRowsFeature.types.d.ts.map +1 -0
- package/declarations/core/rows/coreRowsFeature.utils.d.ts +142 -0
- package/declarations/core/rows/coreRowsFeature.utils.d.ts.map +1 -0
- package/declarations/core/table/constructTable.d.ts +18 -0
- package/declarations/core/table/constructTable.d.ts.map +1 -0
- package/declarations/core/table/coreTablesFeature.d.ts +6 -0
- package/declarations/core/table/coreTablesFeature.d.ts.map +1 -0
- package/declarations/core/table/coreTablesFeature.types.d.ts +233 -0
- package/declarations/core/table/coreTablesFeature.types.d.ts.map +1 -0
- package/declarations/core/table/coreTablesFeature.utils.d.ts +77 -0
- package/declarations/core/table/coreTablesFeature.utils.d.ts.map +1 -0
- package/declarations/features/calculated-columns/calculatedColumnsFeature.d.ts +17 -0
- package/declarations/features/calculated-columns/calculatedColumnsFeature.d.ts.map +1 -0
- package/declarations/features/calculated-columns/expression.d.ts +40 -0
- package/declarations/features/calculated-columns/expression.d.ts.map +1 -0
- package/declarations/features/cell-selection/cellSelectionFeature.d.ts +6 -0
- package/declarations/features/cell-selection/cellSelectionFeature.d.ts.map +1 -0
- package/declarations/features/cell-selection/cellSelectionFeature.types.d.ts +298 -0
- package/declarations/features/cell-selection/cellSelectionFeature.types.d.ts.map +1 -0
- package/declarations/features/cell-selection/cellSelectionFeature.utils.d.ts +304 -0
- package/declarations/features/cell-selection/cellSelectionFeature.utils.d.ts.map +1 -0
- package/declarations/features/cell-selection/cellSelectionGeometry.d.ts +21 -0
- package/declarations/features/cell-selection/cellSelectionGeometry.d.ts.map +1 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.d.ts +11 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.d.ts.map +1 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.types.d.ts +149 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.types.d.ts.map +1 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.utils.d.ts +72 -0
- package/declarations/features/cell-spanning/cellSpanningFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-faceting/columnFacetingFeature.d.ts +12 -0
- package/declarations/features/column-faceting/columnFacetingFeature.d.ts.map +1 -0
- package/declarations/features/column-faceting/columnFacetingFeature.types.d.ts +63 -0
- package/declarations/features/column-faceting/columnFacetingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-faceting/columnFacetingFeature.utils.d.ts +80 -0
- package/declarations/features/column-faceting/columnFacetingFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-faceting/createFacetedMinMaxValues.d.ts +10 -0
- package/declarations/features/column-faceting/createFacetedMinMaxValues.d.ts.map +1 -0
- package/declarations/features/column-faceting/createFacetedRowModel.d.ts +11 -0
- package/declarations/features/column-faceting/createFacetedRowModel.d.ts.map +1 -0
- package/declarations/features/column-faceting/createFacetedUniqueValues.d.ts +10 -0
- package/declarations/features/column-faceting/createFacetedUniqueValues.d.ts.map +1 -0
- package/declarations/features/column-filtering/columnFilteringFeature.d.ts +6 -0
- package/declarations/features/column-filtering/columnFilteringFeature.d.ts.map +1 -0
- package/declarations/features/column-filtering/columnFilteringFeature.types.d.ts +218 -0
- package/declarations/features/column-filtering/columnFilteringFeature.types.d.ts.map +1 -0
- package/declarations/features/column-filtering/columnFilteringFeature.utils.d.ts +148 -0
- package/declarations/features/column-filtering/columnFilteringFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-filtering/createFilteredRowModel.d.ts +18 -0
- package/declarations/features/column-filtering/createFilteredRowModel.d.ts.map +1 -0
- package/declarations/features/column-filtering/filterFns.d.ts +208 -0
- package/declarations/features/column-filtering/filterFns.d.ts.map +1 -0
- package/declarations/features/column-filtering/filterRowsUtils.d.ts +12 -0
- package/declarations/features/column-filtering/filterRowsUtils.d.ts.map +1 -0
- package/declarations/features/column-flex/columnFlex.d.ts +47 -0
- package/declarations/features/column-flex/columnFlex.d.ts.map +1 -0
- package/declarations/features/column-grouping/columnGroupingFeature.d.ts +6 -0
- package/declarations/features/column-grouping/columnGroupingFeature.d.ts.map +1 -0
- package/declarations/features/column-grouping/columnGroupingFeature.types.d.ts +133 -0
- package/declarations/features/column-grouping/columnGroupingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-grouping/columnGroupingFeature.utils.d.ts +149 -0
- package/declarations/features/column-grouping/columnGroupingFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-grouping/createGroupedRowModel.d.ts +14 -0
- package/declarations/features/column-grouping/createGroupedRowModel.d.ts.map +1 -0
- package/declarations/features/column-ordering/columnOrderingFeature.d.ts +6 -0
- package/declarations/features/column-ordering/columnOrderingFeature.d.ts.map +1 -0
- package/declarations/features/column-ordering/columnOrderingFeature.types.d.ts +85 -0
- package/declarations/features/column-ordering/columnOrderingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-ordering/columnOrderingFeature.utils.d.ts +115 -0
- package/declarations/features/column-ordering/columnOrderingFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-pinning/columnPinningFeature.d.ts +11 -0
- package/declarations/features/column-pinning/columnPinningFeature.d.ts.map +1 -0
- package/declarations/features/column-pinning/columnPinningFeature.types.d.ts +198 -0
- package/declarations/features/column-pinning/columnPinningFeature.types.d.ts.map +1 -0
- package/declarations/features/column-pinning/columnPinningFeature.utils.d.ts +380 -0
- package/declarations/features/column-pinning/columnPinningFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-pinning/orderByColumnPinning.d.ts +21 -0
- package/declarations/features/column-pinning/orderByColumnPinning.d.ts.map +1 -0
- package/declarations/features/column-pivoting/columnPivotingFeature.d.ts +10 -0
- package/declarations/features/column-pivoting/columnPivotingFeature.d.ts.map +1 -0
- package/declarations/features/column-pivoting/columnPivotingFeature.types.d.ts +68 -0
- package/declarations/features/column-pivoting/columnPivotingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-pivoting/pivot.d.ts +15 -0
- package/declarations/features/column-pivoting/pivot.d.ts.map +1 -0
- package/declarations/features/column-pivoting/valuesAggregation.d.ts +29 -0
- package/declarations/features/column-pivoting/valuesAggregation.d.ts.map +1 -0
- package/declarations/features/column-resizing/columnResizingFeature.d.ts +6 -0
- package/declarations/features/column-resizing/columnResizingFeature.d.ts.map +1 -0
- package/declarations/features/column-resizing/columnResizingFeature.types.d.ts +74 -0
- package/declarations/features/column-resizing/columnResizingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-resizing/columnResizingFeature.utils.d.ts +105 -0
- package/declarations/features/column-resizing/columnResizingFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-sizing/columnSizingFeature.d.ts +6 -0
- package/declarations/features/column-sizing/columnSizingFeature.d.ts.map +1 -0
- package/declarations/features/column-sizing/columnSizingFeature.types.d.ts +140 -0
- package/declarations/features/column-sizing/columnSizingFeature.types.d.ts.map +1 -0
- package/declarations/features/column-sizing/columnSizingFeature.utils.d.ts +197 -0
- package/declarations/features/column-sizing/columnSizingFeature.utils.d.ts.map +1 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.d.ts +6 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.d.ts.map +1 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.types.d.ts +93 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.types.d.ts.map +1 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.utils.d.ts +188 -0
- package/declarations/features/column-visibility/columnVisibilityFeature.utils.d.ts.map +1 -0
- package/declarations/features/global-filtering/globalFilteringFeature.d.ts +6 -0
- package/declarations/features/global-filtering/globalFilteringFeature.d.ts.map +1 -0
- package/declarations/features/global-filtering/globalFilteringFeature.types.d.ts +67 -0
- package/declarations/features/global-filtering/globalFilteringFeature.types.d.ts.map +1 -0
- package/declarations/features/global-filtering/globalFilteringFeature.utils.d.ts +68 -0
- package/declarations/features/global-filtering/globalFilteringFeature.utils.d.ts.map +1 -0
- package/declarations/features/latticeFeatures.d.ts +10 -0
- package/declarations/features/latticeFeatures.d.ts.map +1 -0
- package/declarations/features/row-aggregation/aggregationFns.d.ts +73 -0
- package/declarations/features/row-aggregation/aggregationFns.d.ts.map +1 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.d.ts +6 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.d.ts.map +1 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.types.d.ts +202 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.types.d.ts.map +1 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.utils.d.ts +44 -0
- package/declarations/features/row-aggregation/rowAggregationFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-expanding/createExpandedRowModel.d.ts +17 -0
- package/declarations/features/row-expanding/createExpandedRowModel.d.ts.map +1 -0
- package/declarations/features/row-expanding/rowExpandingFeature.d.ts +6 -0
- package/declarations/features/row-expanding/rowExpandingFeature.d.ts.map +1 -0
- package/declarations/features/row-expanding/rowExpandingFeature.types.d.ts +127 -0
- package/declarations/features/row-expanding/rowExpandingFeature.types.d.ts.map +1 -0
- package/declarations/features/row-expanding/rowExpandingFeature.utils.d.ts +193 -0
- package/declarations/features/row-expanding/rowExpandingFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-pagination/createPaginatedRowModel.d.ts +11 -0
- package/declarations/features/row-pagination/createPaginatedRowModel.d.ts.map +1 -0
- package/declarations/features/row-pagination/rowPaginationFeature.d.ts +6 -0
- package/declarations/features/row-pagination/rowPaginationFeature.d.ts.map +1 -0
- package/declarations/features/row-pagination/rowPaginationFeature.types.d.ts +138 -0
- package/declarations/features/row-pagination/rowPaginationFeature.types.d.ts.map +1 -0
- package/declarations/features/row-pagination/rowPaginationFeature.utils.d.ts +227 -0
- package/declarations/features/row-pagination/rowPaginationFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-pinning/rowPinningFeature.d.ts +6 -0
- package/declarations/features/row-pinning/rowPinningFeature.d.ts.map +1 -0
- package/declarations/features/row-pinning/rowPinningFeature.types.d.ts +79 -0
- package/declarations/features/row-pinning/rowPinningFeature.types.d.ts.map +1 -0
- package/declarations/features/row-pinning/rowPinningFeature.utils.d.ts +139 -0
- package/declarations/features/row-pinning/rowPinningFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-selection/rowSelectionFeature.d.ts +6 -0
- package/declarations/features/row-selection/rowSelectionFeature.d.ts.map +1 -0
- package/declarations/features/row-selection/rowSelectionFeature.types.d.ts +187 -0
- package/declarations/features/row-selection/rowSelectionFeature.types.d.ts.map +1 -0
- package/declarations/features/row-selection/rowSelectionFeature.utils.d.ts +348 -0
- package/declarations/features/row-selection/rowSelectionFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-sorting/createSortedRowModel.d.ts +18 -0
- package/declarations/features/row-sorting/createSortedRowModel.d.ts.map +1 -0
- package/declarations/features/row-sorting/rowSortingFeature.d.ts +6 -0
- package/declarations/features/row-sorting/rowSortingFeature.d.ts.map +1 -0
- package/declarations/features/row-sorting/rowSortingFeature.types.d.ts +238 -0
- package/declarations/features/row-sorting/rowSortingFeature.types.d.ts.map +1 -0
- package/declarations/features/row-sorting/rowSortingFeature.utils.d.ts +205 -0
- package/declarations/features/row-sorting/rowSortingFeature.utils.d.ts.map +1 -0
- package/declarations/features/row-sorting/sortFns.d.ts +94 -0
- package/declarations/features/row-sorting/sortFns.d.ts.map +1 -0
- package/declarations/features/stockFeatures.d.ts +43 -0
- package/declarations/features/stockFeatures.d.ts.map +1 -0
- package/declarations/features/value-cache/valueCacheFeature.d.ts +16 -0
- package/declarations/features/value-cache/valueCacheFeature.d.ts.map +1 -0
- package/declarations/flex-render.d.ts +30 -0
- package/declarations/flex-render.d.ts.map +1 -0
- package/declarations/fns/bigintFns.d.ts +25 -0
- package/declarations/fns/bigintFns.d.ts.map +1 -0
- package/declarations/fns/groupFilter.d.ts +8 -0
- package/declarations/fns/groupFilter.d.ts.map +1 -0
- package/declarations/helpers/columnHelper.d.ts +74 -0
- package/declarations/helpers/columnHelper.d.ts.map +1 -0
- package/declarations/helpers/metaHelper.d.ts +23 -0
- package/declarations/helpers/metaHelper.d.ts.map +1 -0
- package/declarations/helpers/tableFeatures.d.ts +43 -0
- package/declarations/helpers/tableFeatures.d.ts.map +1 -0
- package/declarations/helpers/tableOptions.d.ts +53 -0
- package/declarations/helpers/tableOptions.d.ts.map +1 -0
- package/declarations/i18n/locale-text.d.ts +168 -0
- package/declarations/i18n/locale-text.d.ts.map +1 -0
- package/declarations/i18n/locale.d.ts +53 -0
- package/declarations/i18n/locale.d.ts.map +1 -0
- package/declarations/index.d.ts +117 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/reactivity/atom.d.ts +46 -0
- package/declarations/reactivity/atom.d.ts.map +1 -0
- package/declarations/reactivity.d.ts +4 -0
- package/declarations/reactivity.d.ts.map +1 -0
- package/declarations/static-functions.d.ts +31 -0
- package/declarations/static-functions.d.ts.map +1 -0
- package/declarations/store-reactivity-bindings.d.ts +18 -0
- package/declarations/store-reactivity-bindings.d.ts.map +1 -0
- package/declarations/types/Cell.d.ts +17 -0
- package/declarations/types/Cell.d.ts.map +1 -0
- package/declarations/types/Column.d.ts +37 -0
- package/declarations/types/Column.d.ts.map +1 -0
- package/declarations/types/ColumnDef.d.ts +149 -0
- package/declarations/types/ColumnDef.d.ts.map +1 -0
- package/declarations/types/Header.d.ts +13 -0
- package/declarations/types/Header.d.ts.map +1 -0
- package/declarations/types/HeaderGroup.d.ts +8 -0
- package/declarations/types/HeaderGroup.d.ts.map +1 -0
- package/declarations/types/Row.d.ts +25 -0
- package/declarations/types/Row.d.ts.map +1 -0
- package/declarations/types/RowModel.d.ts +21 -0
- package/declarations/types/RowModel.d.ts.map +1 -0
- package/declarations/types/RowModelFns.d.ts +16 -0
- package/declarations/types/RowModelFns.d.ts.map +1 -0
- package/declarations/types/Table.d.ts +90 -0
- package/declarations/types/Table.d.ts.map +1 -0
- package/declarations/types/TableFeatures.d.ts +441 -0
- package/declarations/types/TableFeatures.d.ts.map +1 -0
- package/declarations/types/TableOptions.d.ts +85 -0
- package/declarations/types/TableOptions.d.ts.map +1 -0
- package/declarations/types/TableState.d.ts +49 -0
- package/declarations/types/TableState.d.ts.map +1 -0
- package/declarations/types/type-utils.d.ts +31 -0
- package/declarations/types/type-utils.d.ts.map +1 -0
- package/declarations/utils.d.ts +186 -0
- package/declarations/utils.d.ts.map +1 -0
- package/dist/index.js +13745 -0
- package/dist/index.js.map +1 -0
- package/package.json +85 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @ember-lattice/core
|
|
2
|
+
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.0.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- 7ce4af2: Lattice 1.0: one grid for every collection in Ember. Lists, feeds, tables, boards and
|
|
12
|
+
spreadsheets come from one headless engine, a port of TanStack Table. It has 80 of the 81
|
|
13
|
+
AG Grid features in the parity matrix; the external filter runs after grouping. The release has the client row models, the Lattice wire protocol with servers for Node,
|
|
14
|
+
Rails and Python, an IronCalc spreadsheet with live collaboration, themes, test harnesses, Jig
|
|
15
|
+
stories and Marquetry catalog entries.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joe Gaudet
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Lattice
|
|
2
|
+
Copyright (c) 2026 Joe Gaudet. MIT licensed; see LICENSE.md.
|
|
3
|
+
|
|
4
|
+
Lattice ports code from two MIT-licensed TanStack projects into Ember-native code. Lattice does
|
|
5
|
+
not depend on either package. PORT_MAP.md names each ported file and its source.
|
|
6
|
+
|
|
7
|
+
TanStack Table (@tanstack/table-core 9.3.1)
|
|
8
|
+
https://github.com/TanStack/table
|
|
9
|
+
Copyright (c) 2016 Tanner Linsley
|
|
10
|
+
|
|
11
|
+
TanStack Virtual (@tanstack/virtual-core 3.19.16)
|
|
12
|
+
https://github.com/TanStack/virtual
|
|
13
|
+
Copyright (c) 2021-present Tanner Linsley
|
|
14
|
+
|
|
15
|
+
Both are licensed under the MIT License:
|
|
16
|
+
|
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
18
|
+
and associated documentation files (the "Software"), to deal in the Software without
|
|
19
|
+
restriction, including without limitation the rights to use, copy, modify, merge, publish,
|
|
20
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
|
|
21
|
+
Software is furnished to do so, subject to the following conditions:
|
|
22
|
+
|
|
23
|
+
The above copyright notice and this permission notice shall be included in all copies or
|
|
24
|
+
substantial portions of the Software.
|
|
25
|
+
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
27
|
+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
28
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
29
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ember-lattice/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Lattice engine: columns, rows, state atoms, features and the row model pipeline, in Ember-native code.
|
|
4
|
+
|
|
5
|
+
Part of [Lattice](https://joegaudet.com/ember-lattice/). Not released yet.
|
|
6
|
+
|
|
7
|
+
## How to extend ColumnMeta / TableMeta / FilterFns / SortFns / AggregationFns / FilterMeta
|
|
8
|
+
|
|
9
|
+
These interfaces are empty in Lattice. Add your own keys with a `declare module` augmentation.
|
|
10
|
+
|
|
11
|
+
TypeScript merges two declarations of an interface only when the type parameters have the same names. `ColumnMeta` and `TableMeta` use type parameter names that start with `_`. Use the same names in your augmentation:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import '@ember-lattice/core'
|
|
15
|
+
import type { CellData, RowData, TableFeatures } from '@ember-lattice/core'
|
|
16
|
+
|
|
17
|
+
declare module '@ember-lattice/core' {
|
|
18
|
+
interface ColumnMeta<
|
|
19
|
+
_TFeatures extends TableFeatures,
|
|
20
|
+
_TData extends RowData,
|
|
21
|
+
_TValue extends CellData = CellData,
|
|
22
|
+
> {
|
|
23
|
+
align?: 'start' | 'end'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface TableMeta<_TFeatures extends TableFeatures, _TData extends RowData> {
|
|
27
|
+
updateData: (rowIndex: number, columnId: string, value: unknown) => void
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`FilterFns`, `SortFns`, `AggregationFns` and `FilterMeta` have no type parameters:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import '@ember-lattice/core'
|
|
36
|
+
import type {
|
|
37
|
+
AggregationFnDef,
|
|
38
|
+
FilterFn,
|
|
39
|
+
RowData,
|
|
40
|
+
SortFn,
|
|
41
|
+
TableFeatures,
|
|
42
|
+
} from '@ember-lattice/core'
|
|
43
|
+
|
|
44
|
+
declare module '@ember-lattice/core' {
|
|
45
|
+
interface FilterFns {
|
|
46
|
+
fuzzy: FilterFn<TableFeatures, RowData>
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface SortFns {
|
|
50
|
+
byLength: SortFn<TableFeatures, RowData>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface AggregationFns {
|
|
54
|
+
median: AggregationFnDef<TableFeatures, RowData, unknown, unknown>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface FilterMeta {
|
|
58
|
+
itemRank: number
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
A feature set can also declare these types in a type-only slot, for example `tableFeatures({ ..., columnMeta: {} as MyColumnMeta })`. The slot wins over the global interface.
|
|
64
|
+
|
|
65
|
+
## Lattice features
|
|
66
|
+
|
|
67
|
+
These features are not in the TanStack port, and not in `stockFeatures`. Add them to `features`
|
|
68
|
+
to use them. ADR 0019 gives the decisions.
|
|
69
|
+
|
|
70
|
+
- `columnPivotingFeature`: the `columnPivoting` state (`enabled`, `by`, `values`) and
|
|
71
|
+
`table.getPivotResult()`. The result rows and columns are the same as the protocol
|
|
72
|
+
`evaluate()` gives. A pivot value can have `showAs` (`percentOfGrandTotal`,
|
|
73
|
+
`percentOfRowTotal` or `percentOfColumnTotal`).
|
|
74
|
+
- `calculatedColumnsFeature`: a column def with `expression`, such as `price * qty`. Errors are
|
|
75
|
+
`ExpressionError` values.
|
|
76
|
+
- `valueCacheFeature`: keeps accessor results for each row object, so a data change runs the
|
|
77
|
+
accessors of the changed rows only. Call `table.invalidateRowValues(row)` after a change to a
|
|
78
|
+
row object in place.
|
|
79
|
+
|
|
80
|
+
These are functions:
|
|
81
|
+
|
|
82
|
+
- `applyFlexWidths(table, width)` sizes the columns with `flex` from the available width.
|
|
83
|
+
- `autoSizeColumns(table, measure)` sizes columns from measured content widths.
|
|
84
|
+
- `sortFn_bigint` and `filterFn_bigint*` sort and filter `bigint` values.
|
|
85
|
+
- `filterFn_groupKeys` keeps the rows in the chosen groups (a list of group key paths).
|
package/addon-main.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Table_Internal } from '../../types/Table.ts';
|
|
2
|
+
import type { CellData, RowData } from '../../types/type-utils.ts';
|
|
3
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
4
|
+
import type { Row } from '../../types/Row.ts';
|
|
5
|
+
import type { Cell } from '../../types/Cell.ts';
|
|
6
|
+
import type { Column } from '../../types/Column.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a cell instance from normalized table internals.
|
|
9
|
+
*
|
|
10
|
+
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
11
|
+
*/
|
|
12
|
+
export declare function constructCell<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, row: Row<TFeatures, TData>, table: Table_Internal<TFeatures, TData>): Cell<TFeatures, TData, TValue>;
|
|
13
|
+
//# sourceMappingURL=constructCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructCell.d.ts","sourceRoot":"","sources":["../../../src/core/cells/constructCell.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAoBnD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,SAAS,SAAS,aAAa,EAC/B,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAElC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,EACxC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1B,KAAK,EAAE,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,GACtC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAiBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreCellsFeature.d.ts","sourceRoot":"","sources":["../../../src/core/cells/coreCellsFeature.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,YAe9B,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { CellData, Getter, RowData } from '../../types/type-utils.ts';
|
|
2
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
3
|
+
import type { Table, Table_Internal } from '../../types/Table.ts';
|
|
4
|
+
import type { Row } from '../../types/Row.ts';
|
|
5
|
+
import type { Cell } from '../../types/Cell.ts';
|
|
6
|
+
import type { Column } from '../../types/Column.ts';
|
|
7
|
+
export interface CellContext<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> {
|
|
8
|
+
cell: Cell<TFeatures, TData, TValue>;
|
|
9
|
+
column: Column<TFeatures, TData, TValue>;
|
|
10
|
+
getValue: Getter<TValue>;
|
|
11
|
+
renderValue: Getter<TValue | null>;
|
|
12
|
+
row: Row<TFeatures, TData>;
|
|
13
|
+
table: Table<TFeatures, TData>;
|
|
14
|
+
}
|
|
15
|
+
export interface Cell_CoreProperties<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> {
|
|
16
|
+
/**
|
|
17
|
+
* The associated Column object for the cell.
|
|
18
|
+
*/
|
|
19
|
+
column: Column<TFeatures, TData, TValue>;
|
|
20
|
+
/**
|
|
21
|
+
* The unique ID for the cell across the entire table.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The associated Row object for the cell.
|
|
26
|
+
*/
|
|
27
|
+
row: Row<TFeatures, TData>;
|
|
28
|
+
/**
|
|
29
|
+
* Reference to the parent table instance.
|
|
30
|
+
*/
|
|
31
|
+
table: Table_Internal<TFeatures, TData>;
|
|
32
|
+
}
|
|
33
|
+
export interface Cell_Cell<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> extends Cell_CoreProperties<TFeatures, TData, TValue> {
|
|
34
|
+
/**
|
|
35
|
+
* Returns the rendering context (or props) for cell-based components like cells and aggregated cells. Use these props with your framework's `flexRender` utility to render these using the template of your choice:
|
|
36
|
+
*/
|
|
37
|
+
getContext: () => CellContext<TFeatures, TData, TValue>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the value for the cell, accessed via the associated column's accessor key or accessor function.
|
|
40
|
+
*/
|
|
41
|
+
getValue: CellContext<TFeatures, TData, TValue>['getValue'];
|
|
42
|
+
/**
|
|
43
|
+
* Renders the value for a cell the same as `getValue`, but will return the `renderFallbackValue` if no value is found.
|
|
44
|
+
*/
|
|
45
|
+
renderValue: CellContext<TFeatures, TData, TValue>['renderValue'];
|
|
46
|
+
}
|
|
47
|
+
export interface TableOptions_Cell {
|
|
48
|
+
/**
|
|
49
|
+
* Value used when the desired value is not found in the data.
|
|
50
|
+
*/
|
|
51
|
+
renderFallbackValue?: unknown;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=coreCellsFeature.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreCellsFeature.types.d.ts","sourceRoot":"","sources":["../../../src/core/cells/coreCellsFeature.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAEnD,MAAM,WAAW,WAAW,CAC1B,EAAE,CAAC,GAAG,CAAC,SAAS,SAAS,aAAa,EACtC,EAAE,CAAC,GAAG,CAAC,KAAK,SAAS,OAAO,EAC5B,MAAM,SAAS,QAAQ,GAAG,QAAQ;IAElC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IACxB,WAAW,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAClC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,mBAAmB,CAClC,EAAE,CAAC,GAAG,CAAC,SAAS,SAAS,aAAa,EACtC,EAAE,CAAC,GAAG,CAAC,KAAK,SAAS,OAAO,EAC5B,MAAM,SAAS,QAAQ,GAAG,QAAQ;IAElC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,GAAG,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;IAC1B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,SAAS,CACxB,EAAE,CAAC,GAAG,CAAC,SAAS,SAAS,aAAa,EACtC,EAAE,CAAC,GAAG,CAAC,KAAK,SAAS,OAAO,EAC5B,MAAM,SAAS,QAAQ,GAAG,QAAQ,CAClC,SAAQ,mBAAmB,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;IACrD;;OAEG;IACH,UAAU,EAAE,MAAM,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACvD;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,CAAA;IAC3D;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,CAAA;CAClE;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { CellData, RowData } from '../../types/type-utils.ts';
|
|
2
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
3
|
+
import type { Cell } from '../../types/Cell.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Reads this cell's accessor value from its owning row and column.
|
|
6
|
+
*
|
|
7
|
+
* This is the standalone implementation behind `cell.getValue()`, useful when
|
|
8
|
+
* importing static APIs instead of calling methods from the cell prototype.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const value = cell_getValue(cell)
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function cell_getValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): TValue;
|
|
16
|
+
/**
|
|
17
|
+
* Reads the value that should be rendered for this cell.
|
|
18
|
+
*
|
|
19
|
+
* Nullish accessor values are replaced with `table.options.renderFallbackValue`,
|
|
20
|
+
* matching the behavior of `cell.renderValue()`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const rendered = cell_renderValue(cell)
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function cell_renderValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): unknown;
|
|
28
|
+
/**
|
|
29
|
+
* Builds the render context passed to a column's `cell` template.
|
|
30
|
+
*
|
|
31
|
+
* The returned object includes stable references to the table, row, column, and
|
|
32
|
+
* cell, plus bound `getValue` and `renderValue` helpers for render functions.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const context = cell_getContext(cell)
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare function cell_getContext<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(cell: Cell<TFeatures, TData, TValue>): {
|
|
40
|
+
table: import("../../index.ts").Table_Internal<TFeatures, TData>;
|
|
41
|
+
column: import("../../index.ts").Column<TFeatures, TData, TValue>;
|
|
42
|
+
row: import("../../index.ts").Row<TFeatures, TData>;
|
|
43
|
+
cell: Cell<TFeatures, TData, TValue>;
|
|
44
|
+
getValue: () => import("../../index.ts").NoInfer<TValue>;
|
|
45
|
+
renderValue: () => import("../../index.ts").NoInfer<TValue | null>;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=coreCellsFeature.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreCellsFeature.utils.d.ts","sourceRoot":"","sources":["../../../src/core/cells/coreCellsFeature.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE/C;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,SAAS,SAAS,aAAa,EAC/B,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAClC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,SAAS,aAAa,EAC/B,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAClC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,WAErC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,SAAS,SAAS,aAAa,EAC/B,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAClC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;;;;;;;EAUrC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Table_Internal } from '../../types/Table.ts';
|
|
2
|
+
import type { CellData, RowData } from '../../types/type-utils.ts';
|
|
3
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
4
|
+
import type { ColumnDef } from '../../types/ColumnDef.ts';
|
|
5
|
+
import type { Column } from '../../types/Column.ts';
|
|
6
|
+
/**
|
|
7
|
+
* Constructs a column instance from normalized table internals.
|
|
8
|
+
*
|
|
9
|
+
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
10
|
+
*/
|
|
11
|
+
export declare function constructColumn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(table: Table_Internal<TFeatures, TData>, columnDef: ColumnDef<TFeatures, TData, TValue>, depth: number, parent?: Column<TFeatures, TData, TValue>): Column<TFeatures, TData, TValue>;
|
|
12
|
+
//# sourceMappingURL=constructColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructColumn.d.ts","sourceRoot":"","sources":["../../../src/core/columns/constructColumn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAc,SAAS,EAAqB,MAAM,0BAA0B,CAAA;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAoBnD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,SAAS,SAAS,aAAa,EAC/B,KAAK,SAAS,OAAO,EACrB,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAElC,KAAK,EAAE,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,EACvC,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,EAC9C,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,GACxC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CA2ElC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreColumnsFeature.d.ts","sourceRoot":"","sources":["../../../src/core/columns/coreColumnsFeature.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,YAuDhC,CAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { Table_Internal } from '../../types/Table.ts';
|
|
2
|
+
import type { CellData, RowData } from '../../types/type-utils.ts';
|
|
3
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
4
|
+
import type { AccessorFn, AnyValue, ColumnDef } from '../../types/ColumnDef.ts';
|
|
5
|
+
import type { Column } from '../../types/Column.ts';
|
|
6
|
+
export interface Column_CoreProperties<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> {
|
|
7
|
+
/**
|
|
8
|
+
* The resolved accessor function to use when extracting the value for the column from each row. Will only be defined if the column def has a valid accessor key or function defined.
|
|
9
|
+
*/
|
|
10
|
+
accessorFn?: AccessorFn<TData, TValue>;
|
|
11
|
+
/**
|
|
12
|
+
* The original column def used to create the column.
|
|
13
|
+
*/
|
|
14
|
+
columnDef: ColumnDef<TFeatures, TData, TValue>;
|
|
15
|
+
/**
|
|
16
|
+
* The child column (if the column is a group column). Will be an empty array if the column is not a group column.
|
|
17
|
+
*/
|
|
18
|
+
columns: Array<Column<TFeatures, TData, TValue>>;
|
|
19
|
+
/**
|
|
20
|
+
* The depth of the column (if grouped) relative to the root column def array.
|
|
21
|
+
*/
|
|
22
|
+
depth: number;
|
|
23
|
+
/**
|
|
24
|
+
* The resolved unique identifier for the column resolved in this priority:
|
|
25
|
+
- A manual `id` property from the column def
|
|
26
|
+
- The accessor key from the column def
|
|
27
|
+
- The header string from the column def
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The parent column for this column. Will be undefined if this is a root column.
|
|
32
|
+
*/
|
|
33
|
+
parent?: Column<TFeatures, TData, TValue>;
|
|
34
|
+
/**
|
|
35
|
+
* Reference to the parent table instance.
|
|
36
|
+
*/
|
|
37
|
+
table: Table_Internal<TFeatures, TData>;
|
|
38
|
+
}
|
|
39
|
+
export interface Column_Column<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> extends Column_CoreProperties<TFeatures, TData, TValue> {
|
|
40
|
+
/**
|
|
41
|
+
* Flattens this column and every descendant column into a single array.
|
|
42
|
+
*/
|
|
43
|
+
getFlatColumns: () => Array<Column<TFeatures, TData, TValue>>;
|
|
44
|
+
/**
|
|
45
|
+
* Collects the terminal leaf columns below this column, or the column itself
|
|
46
|
+
* when it has no children.
|
|
47
|
+
*/
|
|
48
|
+
getLeafColumns: () => Array<Column<TFeatures, TData, TValue>>;
|
|
49
|
+
}
|
|
50
|
+
export interface TableOptions_Columns<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> {
|
|
51
|
+
/**
|
|
52
|
+
* The array of column defs to use for the table.
|
|
53
|
+
*/
|
|
54
|
+
columns: ReadonlyArray<ColumnDef<TFeatures, TData, AnyValue>>;
|
|
55
|
+
/**
|
|
56
|
+
* Default column options to use for all column defs supplied to the table.
|
|
57
|
+
*/
|
|
58
|
+
defaultColumn?: Partial<ColumnDef<TFeatures, TData, TValue>>;
|
|
59
|
+
}
|
|
60
|
+
export interface Table_Columns<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
61
|
+
/**
|
|
62
|
+
* Returns a map of all flat columns by their ID.
|
|
63
|
+
*/
|
|
64
|
+
getAllFlatColumnsById: () => Record<string, Column<TFeatures, TData, unknown>>;
|
|
65
|
+
/**
|
|
66
|
+
* Resolves built-in, feature-level, and user-defined default column options.
|
|
67
|
+
*/
|
|
68
|
+
getDefaultColumnDef: () => Partial<ColumnDef<TFeatures, TData, unknown>>;
|
|
69
|
+
/**
|
|
70
|
+
* Normalizes `options.columns` into the table's nested column hierarchy.
|
|
71
|
+
*/
|
|
72
|
+
getAllColumns: () => Array<Column<TFeatures, TData, unknown>>;
|
|
73
|
+
/**
|
|
74
|
+
* Flattens the nested column hierarchy, including parent/group columns.
|
|
75
|
+
*/
|
|
76
|
+
getAllFlatColumns: () => Array<Column<TFeatures, TData, unknown>>;
|
|
77
|
+
/**
|
|
78
|
+
* Collects all terminal leaf columns, excluding parent/group columns.
|
|
79
|
+
*/
|
|
80
|
+
getAllLeafColumns: () => Array<Column<TFeatures, TData, unknown>>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns a map of all leaf-node columns by their ID. This does not include parent columns.
|
|
83
|
+
*/
|
|
84
|
+
getAllLeafColumnsById: () => Record<string, Column<TFeatures, TData, unknown>>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns a single column by its ID.
|
|
87
|
+
*/
|
|
88
|
+
getColumn: (columnId: string) => Column<TFeatures, TData, unknown> | undefined;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=coreColumnsFeature.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreColumnsFeature.types.d.ts","sourceRoot":"","sources":["../../../src/core/columns/coreColumnsFeature.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { Table_Internal } from '../../types/Table.ts';
|
|
2
|
+
import type { CellData, RowData } from '../../types/type-utils.ts';
|
|
3
|
+
import type { TableFeatures } from '../../types/TableFeatures.ts';
|
|
4
|
+
import type { ColumnDef } from '../../types/ColumnDef.ts';
|
|
5
|
+
import type { Column } from '../../types/Column.ts';
|
|
6
|
+
/**
|
|
7
|
+
* Flattens this column and every descendant column into a single array.
|
|
8
|
+
*
|
|
9
|
+
* Group columns appear before their child columns, which matches the normalized
|
|
10
|
+
* column hierarchy produced during table construction.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const flatColumns = column_getFlatColumns(column)
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function column_getFlatColumns<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): Array<Column<TFeatures, TData, TValue>>;
|
|
18
|
+
/**
|
|
19
|
+
* Collects the terminal leaf columns below this column.
|
|
20
|
+
*
|
|
21
|
+
* Group columns return their ordered descendants. Non-group columns return an
|
|
22
|
+
* array containing only the column itself.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const leafColumns = column_getLeafColumns(column)
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function column_getLeafColumns<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): Array<Column<TFeatures, TData, TValue>>;
|
|
30
|
+
/**
|
|
31
|
+
* Merges built-in, feature, and user default column definitions.
|
|
32
|
+
*
|
|
33
|
+
* Built-in defaults provide a header and fallback cell renderer, feature
|
|
34
|
+
* defaults can add feature-specific column options, and
|
|
35
|
+
* `options.defaultColumn` wins last.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const defaultColumn = table_getDefaultColumnDef(table)
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function table_getDefaultColumnDef<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Partial<ColumnDef<TFeatures, TData, unknown>>;
|
|
43
|
+
/**
|
|
44
|
+
* Normalizes `options.columns` into the table's nested column tree.
|
|
45
|
+
*
|
|
46
|
+
* Each column definition is constructed with its parent and depth, and group
|
|
47
|
+
* column children are recursively constructed.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const columns = table_getAllColumns(table)
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function table_getAllColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Array<Column<TFeatures, TData, unknown>>;
|
|
55
|
+
/**
|
|
56
|
+
* Flattens every table column, including group columns and leaf columns.
|
|
57
|
+
*
|
|
58
|
+
* Use this when parent/group columns must be included in addition to data leaf
|
|
59
|
+
* columns.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const flatColumns = table_getAllFlatColumns(table)
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare function table_getAllFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Array<Column<TFeatures, TData, unknown>>;
|
|
67
|
+
/**
|
|
68
|
+
* Builds an id lookup for every flat column in the table.
|
|
69
|
+
*
|
|
70
|
+
* Group columns and leaf columns are included. Later columns with the same id
|
|
71
|
+
* replace earlier entries.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const columnsById = table_getAllFlatColumnsById(table)
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare function table_getAllFlatColumnsById<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Record<string, Column<TFeatures, TData, unknown>>;
|
|
79
|
+
/**
|
|
80
|
+
* Collects all terminal leaf columns in their current table order.
|
|
81
|
+
*
|
|
82
|
+
* Column ordering features can reorder the collected leaves before the result
|
|
83
|
+
* is returned.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const leafColumns = table_getAllLeafColumns(table)
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
export declare function table_getAllLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Array<Column<TFeatures, TData, unknown>>;
|
|
91
|
+
/**
|
|
92
|
+
* Builds an id lookup for terminal leaf columns only.
|
|
93
|
+
*
|
|
94
|
+
* Parent/group columns are excluded, making this lookup appropriate for row
|
|
95
|
+
* cells and feature state keyed by data columns.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const leavesById = table_getAllLeafColumnsById(table)
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare function table_getAllLeafColumnsById<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Record<string, Column<TFeatures, TData, unknown>>;
|
|
103
|
+
/**
|
|
104
|
+
* Looks up a column by id from the flat column map.
|
|
105
|
+
*
|
|
106
|
+
* The lookup can return group columns or leaf columns. In development, a
|
|
107
|
+
* missing id logs a warning to help catch stale column references.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const column = table_getColumn(table, 'firstName')
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export declare function table_getColumn<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, columnId: string): Column<TFeatures, TData, unknown> | undefined;
|
|
115
|
+
//# sourceMappingURL=coreColumnsFeature.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreColumnsFeature.utils.d.ts","sourceRoot":"","sources":["../../../src/core/columns/coreColumnsFeature.utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { coreCellsFeature } from './cells/coreCellsFeature.ts';
|
|
2
|
+
import { coreColumnsFeature } from './columns/coreColumnsFeature.ts';
|
|
3
|
+
import { coreHeadersFeature } from './headers/coreHeadersFeature.ts';
|
|
4
|
+
import { coreRowModelsFeature } from './row-models/coreRowModelsFeature.ts';
|
|
5
|
+
import { coreRowsFeature } from './rows/coreRowsFeature.ts';
|
|
6
|
+
import { coreTablesFeature } from './table/coreTablesFeature.ts';
|
|
7
|
+
import type { TableReactivityBindings } from '../reactivity.ts';
|
|
8
|
+
export interface CoreFeatures {
|
|
9
|
+
coreReactivityFeature?: TableReactivityBindings;
|
|
10
|
+
coreCellsFeature: typeof coreCellsFeature;
|
|
11
|
+
coreColumnsFeature: typeof coreColumnsFeature;
|
|
12
|
+
coreHeadersFeature: typeof coreHeadersFeature;
|
|
13
|
+
coreRowModelsFeature: typeof coreRowModelsFeature;
|
|
14
|
+
coreRowsFeature: typeof coreRowsFeature;
|
|
15
|
+
coreTablesFeature: typeof coreTablesFeature;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The built-in core feature set required by every table.
|
|
19
|
+
*
|
|
20
|
+
* These features provide table, column, row, header, cell, and core row-model behavior before optional feature plugins are added.
|
|
21
|
+
*/
|
|
22
|
+
export declare const coreFeatures: CoreFeatures;
|
|
23
|
+
//# sourceMappingURL=coreFeatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreFeatures.d.ts","sourceRoot":"","sources":["../../src/core/coreFeatures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,qBAAqB,CAAC,EAAE,uBAAuB,CAAA;IAC/C,gBAAgB,EAAE,OAAO,gBAAgB,CAAA;IACzC,kBAAkB,EAAE,OAAO,kBAAkB,CAAA;IAC7C,kBAAkB,EAAE,OAAO,kBAAkB,CAAA;IAC7C,oBAAoB,EAAE,OAAO,oBAAoB,CAAA;IACjD,eAAe,EAAE,OAAO,eAAe,CAAA;IACvC,iBAAiB,EAAE,OAAO,iBAAiB,CAAA;CAC5C;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,YAO1B,CAAA"}
|