@tanstack/table-core 9.0.0-beta.56 → 9.0.0-beta.58
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/row-models/createCoreRowModel.js +5 -1
- package/dist/features/cell-selection/cellSelectionFeature.d.ts +9 -0
- package/dist/features/cell-selection/cellSelectionFeature.js +117 -0
- package/dist/features/cell-selection/cellSelectionFeature.types.d.ts +273 -0
- package/dist/features/cell-selection/cellSelectionFeature.utils.d.ts +288 -0
- package/dist/features/cell-selection/cellSelectionFeature.utils.js +732 -0
- package/dist/features/row-aggregation/rowAggregationFeature.types.d.ts +7 -7
- package/dist/features/stockFeatures.d.ts +3 -1
- package/dist/features/stockFeatures.js +3 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/static-functions.d.ts +2 -1
- package/dist/static-functions.js +2 -1
- package/dist/types/Cell.d.ts +4 -2
- package/dist/types/Column.d.ts +2 -2
- package/dist/types/ColumnDef.d.ts +10 -8
- package/dist/types/Row.d.ts +2 -2
- package/dist/types/RowModelFns.d.ts +3 -3
- package/dist/types/Table.d.ts +3 -1
- package/dist/types/TableOptions.d.ts +6 -4
- package/dist/types/TableState.d.ts +3 -1
- package/package.json +1 -1
- package/skills/aggregation/SKILL.md +2 -2
- package/skills/api-not-found/SKILL.md +1 -1
- package/skills/cell-selection/SKILL.md +180 -0
- package/skills/client-vs-server/SKILL.md +1 -1
- package/skills/column-faceting/SKILL.md +1 -1
- package/skills/column-filtering/SKILL.md +1 -1
- package/skills/column-ordering/SKILL.md +1 -1
- package/skills/column-pinning/SKILL.md +1 -1
- package/skills/column-resizing/SKILL.md +1 -1
- package/skills/column-sizing/SKILL.md +1 -1
- package/skills/column-visibility/SKILL.md +1 -1
- package/skills/core/SKILL.md +1 -1
- package/skills/custom-features/SKILL.md +1 -1
- package/skills/expanding/SKILL.md +1 -1
- package/skills/global-filtering/SKILL.md +1 -1
- package/skills/grouping/SKILL.md +1 -1
- package/skills/migrate-v8-to-v9/SKILL.md +1 -1
- package/skills/pagination/SKILL.md +1 -1
- package/skills/row-pinning/SKILL.md +1 -1
- package/skills/row-selection/SKILL.md +1 -1
- package/skills/sorting/SKILL.md +1 -1
- package/skills/table-features/SKILL.md +1 -1
- package/skills/typescript/SKILL.md +1 -1
|
@@ -63,7 +63,7 @@ interface AggregationFnDef<TFeatures extends TableFeatures = any, TData extends
|
|
|
63
63
|
*/
|
|
64
64
|
declare function constructAggregationFn<TFeatures extends TableFeatures = any, TData extends RowData = any, TValue = unknown, TResult = unknown>(definition: AggregationFnDef<TFeatures, TData, TValue, TResult>): AggregationFnDef<TFeatures, TData, TValue, TResult>;
|
|
65
65
|
/** Aggregation-definition registry carried by a table feature set. */
|
|
66
|
-
interface
|
|
66
|
+
interface RowModelFns_RowAggregation<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
67
67
|
aggregationFns: Record<string, AggregationFnDef<TFeatures, TData, any, any>>;
|
|
68
68
|
}
|
|
69
69
|
/** Named context-based aggregation definitions registered on a feature set. */
|
|
@@ -114,7 +114,7 @@ interface ResolvedAggregationFn<TFeatures extends TableFeatures, TData extends R
|
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
}
|
|
116
116
|
/** Column-definition options installed by `rowAggregationFeature`. */
|
|
117
|
-
interface
|
|
117
|
+
interface ColumnDef_RowAggregation<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> {
|
|
118
118
|
/** Renderer used for a grouped row's aggregated cell. */
|
|
119
119
|
aggregatedCell?: ColumnDefTemplate<ReturnType<Cell<TFeatures, TData, TValue>['getContext']>>;
|
|
120
120
|
/**
|
|
@@ -136,7 +136,7 @@ interface ColumnDef_Aggregation<in out TFeatures extends TableFeatures, in out T
|
|
|
136
136
|
getAggregationValue?: (context: AggregationValueContext<TFeatures, TData, TValue>) => AggregationValueResult | undefined;
|
|
137
137
|
}
|
|
138
138
|
/** Column instance APIs installed by `rowAggregationFeature`. */
|
|
139
|
-
interface
|
|
139
|
+
interface Column_RowAggregation<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
140
140
|
/** Resolves the configured scalar or multiple aggregation definitions. */
|
|
141
141
|
getAggregationFns: () => ReadonlyArray<ResolvedAggregationFn<TFeatures, TData>>;
|
|
142
142
|
/**
|
|
@@ -156,12 +156,12 @@ interface AggregationValueOptions<in out TFeatures extends TableFeatures, in out
|
|
|
156
156
|
rows?: ReadonlyArray<Row<TFeatures, TData>>;
|
|
157
157
|
}
|
|
158
158
|
/** Cell instance APIs installed by `rowAggregationFeature`. */
|
|
159
|
-
interface
|
|
159
|
+
interface Cell_RowAggregation {
|
|
160
160
|
/** Whether this cell displays an aggregate on a synthetic grouped row. */
|
|
161
161
|
getIsAggregated: () => boolean;
|
|
162
162
|
}
|
|
163
163
|
/** Internal per-row cache used while grouped aggregates are evaluated. */
|
|
164
|
-
interface
|
|
164
|
+
interface Row_RowAggregation {
|
|
165
165
|
/** Cached aggregate results keyed by column id; created lazily on grouped rows. */
|
|
166
166
|
_aggregationValuesCache?: Record<string, unknown>;
|
|
167
167
|
}
|
|
@@ -182,7 +182,7 @@ interface AggregationValueResult<TResult = unknown> {
|
|
|
182
182
|
value: TResult;
|
|
183
183
|
}
|
|
184
184
|
/** Table options installed by `rowAggregationFeature`. */
|
|
185
|
-
interface
|
|
185
|
+
interface TableOptions_RowAggregation {
|
|
186
186
|
/**
|
|
187
187
|
* Disables local `column.getAggregationValue()` calculation when a column
|
|
188
188
|
* override does not handle the request. Group values supplied by manually
|
|
@@ -191,4 +191,4 @@ interface TableOptions_Aggregation {
|
|
|
191
191
|
manualAggregation?: boolean;
|
|
192
192
|
}
|
|
193
193
|
//#endregion
|
|
194
|
-
export { AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult,
|
|
194
|
+
export { AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult, Cell_RowAggregation, ColumnAggregationValue, ColumnDef_RowAggregation, Column_RowAggregation, CustomAggregationFns, ExtractAggregationFnKeys, ResolvedAggregationFn, RowModelFns_RowAggregation, Row_RowAggregation, TableOptions_RowAggregation, constructAggregationFn };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cellSelectionFeature } from "./cell-selection/cellSelectionFeature.js";
|
|
1
2
|
import { columnFacetingFeature } from "./column-faceting/columnFacetingFeature.js";
|
|
2
3
|
import { rowAggregationFeature } from "./row-aggregation/rowAggregationFeature.js";
|
|
3
4
|
import { columnFilteringFeature } from "./column-filtering/columnFilteringFeature.js";
|
|
@@ -16,7 +17,7 @@ import { rowSortingFeature } from "./row-sorting/rowSortingFeature.js";
|
|
|
16
17
|
|
|
17
18
|
//#region src/features/stockFeatures.d.ts
|
|
18
19
|
interface StockFeatures {
|
|
19
|
-
|
|
20
|
+
cellSelectionFeature: typeof cellSelectionFeature;
|
|
20
21
|
columnFacetingFeature: typeof columnFacetingFeature;
|
|
21
22
|
columnFilteringFeature: typeof columnFilteringFeature;
|
|
22
23
|
columnGroupingFeature: typeof columnGroupingFeature;
|
|
@@ -26,6 +27,7 @@ interface StockFeatures {
|
|
|
26
27
|
columnSizingFeature: typeof columnSizingFeature;
|
|
27
28
|
columnVisibilityFeature: typeof columnVisibilityFeature;
|
|
28
29
|
globalFilteringFeature: typeof globalFilteringFeature;
|
|
30
|
+
rowAggregationFeature: typeof rowAggregationFeature;
|
|
29
31
|
rowExpandingFeature: typeof rowExpandingFeature;
|
|
30
32
|
rowPaginationFeature: typeof rowPaginationFeature;
|
|
31
33
|
rowPinningFeature: typeof rowPinningFeature;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cellSelectionFeature } from "./cell-selection/cellSelectionFeature.js";
|
|
1
2
|
import { columnFacetingFeature } from "./column-faceting/columnFacetingFeature.js";
|
|
2
3
|
import { rowAggregationFeature } from "./row-aggregation/rowAggregationFeature.js";
|
|
3
4
|
import { columnFilteringFeature } from "./column-filtering/columnFilteringFeature.js";
|
|
@@ -21,7 +22,7 @@ import { rowSortingFeature } from "./row-sorting/rowSortingFeature.js";
|
|
|
21
22
|
* Use individual feature exports for tree-shaking, or this aggregate when a table should include every built-in feature.
|
|
22
23
|
*/
|
|
23
24
|
const stockFeatures = {
|
|
24
|
-
|
|
25
|
+
cellSelectionFeature,
|
|
25
26
|
columnFacetingFeature,
|
|
26
27
|
columnFilteringFeature,
|
|
27
28
|
columnGroupingFeature,
|
|
@@ -31,6 +32,7 @@ const stockFeatures = {
|
|
|
31
32
|
columnSizingFeature,
|
|
32
33
|
columnVisibilityFeature,
|
|
33
34
|
globalFilteringFeature,
|
|
35
|
+
rowAggregationFeature,
|
|
34
36
|
rowExpandingFeature,
|
|
35
37
|
rowPaginationFeature,
|
|
36
38
|
rowPinningFeature,
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { coreRowModelsFeature } from "./core/row-models/coreRowModelsFeature.js"
|
|
|
6
6
|
import { coreRowsFeature } from "./core/rows/coreRowsFeature.js";
|
|
7
7
|
import { coreTablesFeature } from "./core/table/coreTablesFeature.js";
|
|
8
8
|
import { CoreFeatures, coreFeatures } from "./core/coreFeatures.js";
|
|
9
|
+
import { CellSelectionBounds, CellSelectionDirection, CellSelectionEdges, CellSelectionRange, CellSelectionState, Cell_CellSelection, ColumnDef_CellSelection, SelectCellRangeOptions, TableOptions_CellSelection, TableState_CellSelection, Table_CellSelection } from "./features/cell-selection/cellSelectionFeature.types.js";
|
|
9
10
|
import { CachedRowModel_Faceted, Column_ColumnFaceting, Table_ColumnFaceting, Table_RowModels_Faceted } from "./features/column-faceting/columnFacetingFeature.types.js";
|
|
10
11
|
import { BuiltInFilterFn, constructFilterFn, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_between, filterFn_betweenInclusive, filterFn_empty, filterFn_endsWith, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inDateRange, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_notEmpty, filterFn_startsWith, filterFn_weakEquals, filterFns } from "./features/column-filtering/filterFns.js";
|
|
11
12
|
import { ColumnDef_ColumnResizing, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, Column_ColumnResizing, Header_ColumnResizing, TableOptions_ColumnResizing, TableState_ColumnResizing, Table_ColumnResizing, columnResizingState } from "./features/column-resizing/columnResizingFeature.types.js";
|
|
@@ -26,7 +27,7 @@ import { CachedRowModel_All, CachedRowModels, CachedRowModels_FeatureMap } from
|
|
|
26
27
|
import { BuiltInAggregationFn, aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns } from "./features/row-aggregation/aggregationFns.js";
|
|
27
28
|
import { CellContext, Cell_Cell, Cell_CoreProperties, TableOptions_Cell } from "./core/cells/coreCellsFeature.types.js";
|
|
28
29
|
import { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_FeatureMap, ColumnMeta, DisplayColumnDef, ExtractColumnMeta, GroupColumnDef, IdIdentifier, IdentifiedColumnDef, StringHeaderIdentifier, StringOrTemplateHeader } from "./types/ColumnDef.js";
|
|
29
|
-
import { AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult,
|
|
30
|
+
import { AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult, Cell_RowAggregation, ColumnAggregationValue, ColumnDef_RowAggregation, Column_RowAggregation, CustomAggregationFns, ExtractAggregationFnKeys, ResolvedAggregationFn, RowModelFns_RowAggregation, Row_RowAggregation, TableOptions_RowAggregation, constructAggregationFn } from "./features/row-aggregation/rowAggregationFeature.types.js";
|
|
30
31
|
import { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap } from "./types/RowModelFns.js";
|
|
31
32
|
import { TableState, TableState_All, TableState_FeatureMap } from "./types/TableState.js";
|
|
32
33
|
import { Column_Column, Column_CoreProperties, TableOptions_Columns, Table_Columns } from "./core/columns/coreColumnsFeature.types.js";
|
|
@@ -41,6 +42,7 @@ import { CachedRowModel_Filtered, ColumnDef_ColumnFiltering, ColumnFilter, Colum
|
|
|
41
42
|
import { CachedRowModel_Core, RowModel, Table_RowModels, Table_RowModels_Core } from "./core/row-models/coreRowModelsFeature.types.js";
|
|
42
43
|
import { CachedRowModel_Grouped, Cell_ColumnGrouping, ColumnDef_ColumnGrouping, ColumnDefaultOptions, Column_ColumnGrouping, GroupingColumnMode, GroupingState, Row_ColumnGrouping, TableOptions_ColumnGrouping, TableState_ColumnGrouping, Table_ColumnGrouping, Table_RowModels_Grouped } from "./features/column-grouping/columnGroupingFeature.types.js";
|
|
43
44
|
import { Cell, Cell_Core, Cell_FeatureMap } from "./types/Cell.js";
|
|
45
|
+
import { cellSelectionFeature } from "./features/cell-selection/cellSelectionFeature.js";
|
|
44
46
|
import { columnFacetingFeature } from "./features/column-faceting/columnFacetingFeature.js";
|
|
45
47
|
import { rowAggregationFeature } from "./features/row-aggregation/rowAggregationFeature.js";
|
|
46
48
|
import { columnFilteringFeature } from "./features/column-filtering/columnFilteringFeature.js";
|
|
@@ -78,4 +80,4 @@ import { createGroupedRowModel } from "./features/column-grouping/createGroupedR
|
|
|
78
80
|
import { createExpandedRowModel, expandRows } from "./features/row-expanding/createExpandedRowModel.js";
|
|
79
81
|
import { createPaginatedRowModel } from "./features/row-pagination/createPaginatedRowModel.js";
|
|
80
82
|
import { createSortedRowModel } from "./features/row-sorting/createSortedRowModel.js";
|
|
81
|
-
export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData,
|
|
83
|
+
export { API, APIObject, AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorFnColumnDefBase, AccessorKeyColumnDef, AccessorKeyColumnDefBase, AggregationContext, AggregationFnDef, AggregationFnDescriptor, AggregationFnListItem, AggregationFnOption, AggregationFnRef, AggregationFns, AggregationMergeContext, AggregationResult, AggregationResultOf, AggregationValueContext, AggregationValueOptions, AggregationValueResult, Atoms, Atoms_All, BaseAtoms, BaseAtoms_All, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortFn, CachedRowModel_All, CachedRowModel_Core, CachedRowModel_Expanded, CachedRowModel_Faceted, CachedRowModel_Filtered, CachedRowModel_Grouped, CachedRowModel_Paginated, CachedRowModel_Sorted, CachedRowModels, CachedRowModels_FeatureMap, Cell, CellContext, CellData, CellSelectionBounds, CellSelectionDirection, CellSelectionEdges, CellSelectionRange, CellSelectionState, Cell_Cell, Cell_CellSelection, Cell_ColumnGrouping, Cell_Core, Cell_CoreProperties, Cell_FeatureMap, Cell_RowAggregation, Column, ColumnAggregationValue, ColumnDef, ColumnDefBase, ColumnDefBase_All, ColumnDefResolved, ColumnDefTemplate, ColumnDef_CellSelection, ColumnDef_ColumnFiltering, ColumnDef_ColumnGrouping, ColumnDef_ColumnPinning, ColumnDef_ColumnResizing, ColumnDef_ColumnSizing, ColumnDef_ColumnVisibility, ColumnDef_FeatureMap, ColumnDef_GlobalFiltering, ColumnDef_RowAggregation, ColumnDef_RowSorting, ColumnDefaultOptions, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnIndexes, ColumnMeta, ColumnOffsets, ColumnOffsetsByPosition, ColumnOrderDefaultOptions, ColumnOrderState, ColumnPinningDefaultOptions, ColumnPinningPosition, ColumnPinningState, ColumnResizeDirection, ColumnResizeMode, ColumnResizingDefaultOptions, ColumnSizingDefaultOptions, ColumnSizingState, ColumnSort, ColumnVisibilityState, Column_Column, Column_ColumnFaceting, Column_ColumnFiltering, Column_ColumnGrouping, Column_ColumnOrdering, Column_ColumnPinning, Column_ColumnResizing, Column_ColumnSizing, Column_ColumnVisibility, Column_Core, Column_CoreProperties, Column_FeatureMap, Column_GlobalFiltering, Column_RowAggregation, Column_RowSorting, CoreFeatures, CreatedFilterFn, CreatedSortFn, CustomAggregationFns, CustomFilterFns, CustomSortFns, DebugOptions, DeepKeys, DeepValue, DisplayColumnDef, ExpandedState, ExpandedStateList, ExternalAtoms, ExternalAtoms_All, ExtractAggregationFnKeys, ExtractColumnMeta, ExtractFeatureMapTypes, ExtractFilterFnKeys, ExtractFilterMeta, ExtractSortFnKeys, ExtractTableMeta, FeatureSlotPrereqs, FilterFn, FilterFnDef, FilterFnOption, FilterFns, FilterMeta, Getter, GroupColumnDef, GroupingColumnMode, GroupingState, Header, HeaderContext, HeaderGroup, HeaderGroup_Core, HeaderGroup_Header, Header_ColumnResizing, Header_ColumnSizing, Header_Core, Header_CoreProperties, Header_FeatureMap, Header_Header, IdIdentifier, IdentifiedColumnDef, IsAny, NoInfer, NonFeatureKeys, OnChangeFn, PaginationDefaultOptions, PaginationState, PartialKeys, Plugins, Prettify, PrototypeAPI, PrototypeAPIObject, RequiredKeys, ResolvedAggregationFn, ResolvedColumnFilter, Row, RowData, RowModel, RowModelFns, RowModelFns_All, RowModelFns_ColumnFiltering, RowModelFns_Core, RowModelFns_FeatureMap, RowModelFns_RowAggregation, RowModelFns_RowSorting, RowPinningDefaultOptions, RowPinningPosition, RowPinningState, RowSelectionState, Row_ColumnFiltering, Row_ColumnGrouping, Row_ColumnPinning, Row_ColumnVisibility, Row_Core, Row_CoreProperties, Row_FeatureMap, Row_Row, Row_RowAggregation, Row_RowExpanding, Row_RowPinning, Row_RowSelection, SelectCellRangeOptions, SortDirection, SortFn, SortFnDef, SortFnOption, SortFns, SortingState, StockFeatures, StringHeaderIdentifier, StringOrTemplateHeader, Table, TableFeature, TableFeatures, TableMeta, TableOptions, TableOptions_All, TableOptions_Cell, TableOptions_CellSelection, TableOptions_ColumnFiltering, TableOptions_ColumnGrouping, TableOptions_ColumnOrdering, TableOptions_ColumnPinning, TableOptions_ColumnResizing, TableOptions_ColumnSizing, TableOptions_ColumnVisibility, TableOptions_Columns, TableOptions_Core, TableOptions_FeatureMap, TableOptions_GlobalFiltering, TableOptions_RowAggregation, TableOptions_RowExpanding, TableOptions_RowPagination, TableOptions_RowPinning, TableOptions_RowSelection, TableOptions_RowSorting, TableOptions_Rows, TableOptions_Table, TableState, TableState_All, TableState_CellSelection, TableState_ColumnFiltering, TableState_ColumnGrouping, TableState_ColumnOrdering, TableState_ColumnPinning, TableState_ColumnResizing, TableState_ColumnSizing, TableState_ColumnVisibility, TableState_FeatureMap, TableState_GlobalFiltering, TableState_RowExpanding, TableState_RowPagination, TableState_RowPinning, TableState_RowSelection, TableState_RowSorting, Table_CellSelection, Table_ColumnFaceting, Table_ColumnFiltering, Table_ColumnGrouping, Table_ColumnOrdering, Table_ColumnPinning, Table_ColumnResizing, Table_ColumnSizing, Table_ColumnVisibility, Table_Columns, Table_Core, Table_CoreProperties, Table_FeatureMap, Table_GlobalFiltering, Table_Headers, Table_RowExpanding, Table_RowModels, Table_RowModels_Core, Table_RowModels_Expanded, Table_RowModels_Faceted, Table_RowModels_Filtered, Table_RowModels_Grouped, Table_RowModels_Paginated, Table_RowModels_Sorted, Table_RowPagination, Table_RowPinning, Table_RowSelection, Table_RowSorting, Table_Rows, Table_Table, ToggleSelectedOptions, TransformDataValueFn, TransformFilterValueFn, UnionToIntersection, Updater, ValidateFeatureSlots, VisibilityDefaultOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cellSelectionFeature, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnResizingState, columnSizingFeature, columnVisibilityFeature, constructAggregationFn, constructCell, constructColumn, constructFilterFn, constructHeader, constructRow, constructSortFn, constructTable, copyInstancePropertiesWithoutMemos, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_between, filterFn_betweenInclusive, filterFn_empty, filterFn_endsWith, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inDateRange, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_notEmpty, filterFn_startsWith, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, hasOwn, isFunction, makeObjectMap, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowAggregationFeature, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { metaHelper } from "./helpers/metaHelper.js";
|
|
|
17
17
|
import { tableFeatures } from "./helpers/tableFeatures.js";
|
|
18
18
|
import { tableOptions } from "./helpers/tableOptions.js";
|
|
19
19
|
import { constructTable, getInitialTableState } from "./core/table/constructTable.js";
|
|
20
|
+
import { cellSelectionFeature } from "./features/cell-selection/cellSelectionFeature.js";
|
|
20
21
|
import { columnFacetingFeature } from "./features/column-faceting/columnFacetingFeature.js";
|
|
21
22
|
import { rowAggregationFeature } from "./features/row-aggregation/rowAggregationFeature.js";
|
|
22
23
|
import { columnFilteringFeature } from "./features/column-filtering/columnFilteringFeature.js";
|
|
@@ -46,4 +47,4 @@ import { createExpandedRowModel, expandRows } from "./features/row-expanding/cre
|
|
|
46
47
|
import { createPaginatedRowModel } from "./features/row-pagination/createPaginatedRowModel.js";
|
|
47
48
|
import { createSortedRowModel } from "./features/row-sorting/createSortedRowModel.js";
|
|
48
49
|
|
|
49
|
-
export { aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnSizingFeature, columnVisibilityFeature, constructAggregationFn, constructCell, constructColumn, constructFilterFn, constructHeader, constructRow, constructSortFn, constructTable, copyInstancePropertiesWithoutMemos, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_between, filterFn_betweenInclusive, filterFn_empty, filterFn_endsWith, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inDateRange, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_notEmpty, filterFn_startsWith, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, hasOwn, isFunction, makeObjectMap, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowAggregationFeature, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
|
|
50
|
+
export { aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, aggregationFns, assignPrototypeAPIs, assignTableAPIs, buildHeaderGroups, callMemoOrStaticFn, cellSelectionFeature, cloneState, columnFacetingFeature, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnPinningFeature, columnResizingFeature, columnSizingFeature, columnVisibilityFeature, constructAggregationFn, constructCell, constructColumn, constructFilterFn, constructHeader, constructRow, constructSortFn, constructTable, copyInstancePropertiesWithoutMemos, coreCellsFeature, coreColumnsFeature, coreFeatures, coreHeadersFeature, coreRowModelsFeature, coreRowsFeature, coreTablesFeature, createColumnHelper, createCoreRowModel, createExpandedRowModel, createFacetedMinMaxValues, createFacetedRowModel, createFacetedUniqueValues, createFilteredRowModel, createGroupedRowModel, createPaginatedRowModel, createSortedRowModel, expandRows, filterFn_arrHas, filterFn_arrIncludes, filterFn_arrIncludesAll, filterFn_arrIncludesSome, filterFn_between, filterFn_betweenInclusive, filterFn_empty, filterFn_endsWith, filterFn_equals, filterFn_equalsString, filterFn_equalsStringSensitive, filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_inDateRange, filterFn_inNumberRange, filterFn_includesString, filterFn_includesStringSensitive, filterFn_lessThan, filterFn_lessThanOrEqualTo, filterFn_notEmpty, filterFn_startsWith, filterFn_weakEquals, filterFns, flattenBy, functionalUpdate, getFunctionNameInfo, getInitialTableState, globalFilteringFeature, hasOwn, isFunction, makeObjectMap, makeStateUpdater, memo, metaHelper, reSplitAlphaNumeric, rowAggregationFeature, rowExpandingFeature, rowPaginationFeature, rowPinningFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, sortFns, stockFeatures, tableFeatures, tableMemo, tableOptions };
|
|
@@ -5,6 +5,7 @@ import { row_getAllCells, row_getAllCellsByColumnId, row_getDisplayIndex, row_ge
|
|
|
5
5
|
import { table_getCoreRowModel, table_getExpandedRowModel, table_getFilteredRowModel, table_getGroupedRowModel, table_getPaginatedRowModel, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSortedRowModel, table_getRowModel, table_getSortedRowModel } from "./core/row-models/coreRowModelsFeature.utils.js";
|
|
6
6
|
import { table_mergeOptions, table_reset, table_setOptions, table_syncExternalStateToBaseAtoms } from "./core/table/coreTablesFeature.utils.js";
|
|
7
7
|
import { aggregateColumnValue, cell_getIsAggregated, column_getAggregationFns, column_getAggregationValue, column_getAutoAggregationFn, formatAggregatedCellValue, normalizeAggregationRows, normalizeUniqueAggregationRows } from "./features/row-aggregation/rowAggregationFeature.utils.js";
|
|
8
|
+
import { cell_getCanSelect, cell_getIsFocused, cell_getIsSelected, cell_getSelectionEdges, cell_getSelectionExtendHandler, cell_getSelectionStartHandler, cell_getTabIndex, getDefaultCellSelectionState, table_autoResetCellSelection, table_extendCellSelection, table_getCellSelectionBounds, table_getCellSelectionColumnIds, table_getCellSelectionColumnIndexes, table_getCellSelectionRowIds, table_getFocusedCell, table_getSelectedCellCount, table_getSelectedCellIds, table_getSelectedCellRangesData, table_moveCellSelection, table_resetCellSelection, table_selectAllCells, table_selectCellRange, table_setCellSelection, table_setFocusedCell } from "./features/cell-selection/cellSelectionFeature.utils.js";
|
|
8
9
|
import { column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues } from "./features/column-faceting/columnFacetingFeature.utils.js";
|
|
9
10
|
import { column_getAutoFilterFn, column_getCanFilter, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getIsFiltered, column_setFilterValue, getDefaultColumnFiltersState, shouldAutoRemoveFilter, table_resetColumnFilters, table_setColumnFilters } from "./features/column-filtering/columnFilteringFeature.utils.js";
|
|
10
11
|
import { cell_getIsGrouped, cell_getIsPlaceholder, column_getCanGroup, column_getGroupedIndex, column_getIsGrouped, column_getToggleGroupingHandler, column_toggleGrouping, getDefaultGroupingState, row_getGroupingValue, row_getIsGrouped, table_resetGrouping, table_setGrouping } from "./features/column-grouping/columnGroupingFeature.utils.js";
|
|
@@ -19,4 +20,4 @@ import { getDefaultPaginationState, table_autoResetPageIndex, table_firstPage, t
|
|
|
19
20
|
import { getDefaultRowPinningState, row_getCanPin, row_getIsPinned, row_getPinnedIndex, row_pin, table_getBottomRows, table_getCenterRows, table_getIsSomeRowsPinned, table_getTopRows, table_resetRowPinning, table_setRowPinning } from "./features/row-pinning/rowPinningFeature.utils.js";
|
|
20
21
|
import { getDefaultRowSelectionState, isRowSelected, isSubRowSelected, row_getCanMultiSelect, row_getCanSelect, row_getCanSelectSubRows, row_getIsAllSubRowsSelected, row_getIsSelected, row_getIsSomeSelected, row_getToggleSelectedHandler, row_toggleSelected, selectRowsFn, table_getFilteredSelectedRowModel, table_getGroupedSelectedRowModel, table_getIsAllPageRowsSelected, table_getIsAllRowsSelected, table_getIsSomePageRowsSelected, table_getIsSomeRowsSelected, table_getPreSelectedRowModel, table_getSelectedRowIds, table_getSelectedRowModel, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsSelectedHandler, table_resetRowSelection, table_setRowSelection, table_toggleAllPageRowsSelected, table_toggleAllRowsSelected } from "./features/row-selection/rowSelectionFeature.utils.js";
|
|
21
22
|
import { column_clearSorting, column_getAutoSortDir, column_getAutoSortFn, column_getCanMultiSort, column_getCanSort, column_getFirstSortDir, column_getIsSorted, column_getNextSortingOrder, column_getSortFn, column_getSortIndex, column_getToggleSortingHandler, column_toggleSorting, getDefaultSortingState, table_resetSorting, table_setSorting } from "./features/row-sorting/rowSortingFeature.utils.js";
|
|
22
|
-
export { aggregateColumnValue, cell_getContext, cell_getIsAggregated, cell_getIsGrouped, cell_getIsPlaceholder, cell_getValue, cell_renderValue, column_clearSorting, column_getAfter, column_getAggregationFns, column_getAggregationValue, column_getAutoAggregationFn, column_getAutoFilterFn, column_getAutoSortDir, column_getAutoSortFn, column_getCanFilter, column_getCanGlobalFilter, column_getCanGroup, column_getCanHide, column_getCanMultiSort, column_getCanPin, column_getCanResize, column_getCanSort, column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getFirstSortDir, column_getFlatColumns, column_getGroupedIndex, column_getIndex, column_getIsFiltered, column_getIsFirstColumn, column_getIsGrouped, column_getIsLastColumn, column_getIsPinned, column_getIsResizing, column_getIsSorted, column_getIsVisible, column_getLeafColumns, column_getNextSortingOrder, column_getPinnedIndex, column_getSize, column_getSortFn, column_getSortIndex, column_getStart, column_getToggleGroupingHandler, column_getToggleSortingHandler, column_getToggleVisibilityHandler, column_pin, column_resetSize, column_setFilterValue, column_toggleGrouping, column_toggleSorting, column_toggleVisibility, formatAggregatedCellValue, getDefaultColumnFiltersState, getDefaultColumnOrderState, getDefaultColumnPinningState, getDefaultColumnResizingState, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, getDefaultColumnVisibilityState, getDefaultExpandedState, getDefaultGroupingState, getDefaultPaginationState, getDefaultRowPinningState, getDefaultRowSelectionState, getDefaultSortingState, header_getContext, header_getLeafHeaders, header_getResizeHandler, header_getSize, header_getStart, isRowSelected, isSubRowSelected, isTouchStartEvent, normalizeAggregationRows, normalizeUniqueAggregationRows, orderColumns, passiveEventSupported, row_getAllCells, row_getAllCellsByColumnId, row_getCanExpand, row_getCanMultiSelect, row_getCanPin, row_getCanSelect, row_getCanSelectSubRows, row_getCenterVisibleCells, row_getDisplayIndex, row_getEndVisibleCells, row_getGroupingValue, row_getIsAllParentsExpanded, row_getIsAllSubRowsSelected, row_getIsExpanded, row_getIsGrouped, row_getIsPinned, row_getIsSelected, row_getIsSomeSelected, row_getLeafRows, row_getParentRow, row_getParentRows, row_getPinnedIndex, row_getStartVisibleCells, row_getToggleExpandedHandler, row_getToggleSelectedHandler, row_getUniqueValues, row_getValue, row_getVisibleCells, row_getVisibleCellsByColumnId, row_pin, row_renderValue, row_toggleExpanded, row_toggleSelected, selectRowsFn, shouldAutoRemoveFilter, table_autoResetExpanded, table_autoResetPageIndex, table_firstPage, table_getAllColumns, table_getAllFlatColumns, table_getAllFlatColumnsById, table_getAllLeafColumns, table_getAllLeafColumnsById, table_getBottomRows, table_getCanNextPage, table_getCanPreviousPage, table_getCanSomeRowsExpand, table_getCenterFlatHeaders, table_getCenterFooterGroups, table_getCenterHeaderGroups, table_getCenterLeafColumns, table_getCenterLeafHeaders, table_getCenterRows, table_getCenterTotalSize, table_getCenterVisibleLeafColumns, table_getColumn, table_getColumnIndexes, table_getColumnOffsets, table_getCoreRowModel, table_getDefaultColumnDef, table_getEndFlatHeaders, table_getEndFooterGroups, table_getEndHeaderGroups, table_getEndLeafColumns, table_getEndLeafHeaders, table_getEndTotalSize, table_getEndVisibleLeafColumns, table_getExpandedDepth, table_getExpandedRowModel, table_getFilteredRowModel, table_getFilteredSelectedRowModel, table_getFlatHeaders, table_getFooterGroups, table_getGlobalAutoFilterFn, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues, table_getGlobalFilterFn, table_getGroupedRowModel, table_getGroupedSelectedRowModel, table_getHeaderGroups, table_getIsAllColumnsVisible, table_getIsAllPageRowsSelected, table_getIsAllRowsExpanded, table_getIsAllRowsSelected, table_getIsSomeColumnsPinned, table_getIsSomeColumnsVisible, table_getIsSomePageRowsSelected, table_getIsSomeRowsExpanded, table_getIsSomeRowsPinned, table_getIsSomeRowsSelected, table_getLeafHeaders, table_getMaxSubRowDepth, table_getOrderColumnsFn, table_getPageCount, table_getPageOptions, table_getPaginatedRowModel, table_getPinnedLeafColumns, table_getPinnedVisibleLeafColumns, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSelectedRowModel, table_getPreSortedRowModel, table_getRow, table_getRowCount, table_getRowId, table_getRowModel, table_getRowsInDisplayOrder, table_getSelectedRowIds, table_getSelectedRowModel, table_getSortedRowModel, table_getStartFlatHeaders, table_getStartFooterGroups, table_getStartHeaderGroups, table_getStartLeafColumns, table_getStartLeafHeaders, table_getStartTotalSize, table_getStartVisibleLeafColumns, table_getToggleAllColumnsVisibilityHandler, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsExpandedHandler, table_getToggleAllRowsSelectedHandler, table_getTopRows, table_getTotalSize, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_lastPage, table_mergeOptions, table_nextPage, table_previousPage, table_reset, table_resetColumnFilters, table_resetColumnOrder, table_resetColumnPinning, table_resetColumnSizing, table_resetColumnVisibility, table_resetExpanded, table_resetGlobalFilter, table_resetGrouping, table_resetHeaderSizeInfo, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_resetRowPinning, table_resetRowSelection, table_resetSorting, table_setColumnFilters, table_setColumnOrder, table_setColumnPinning, table_setColumnResizing, table_setColumnSizing, table_setColumnVisibility, table_setExpanded, table_setGlobalFilter, table_setGrouping, table_setOptions, table_setPageIndex, table_setPageSize, table_setPagination, table_setRowPinning, table_setRowSelection, table_setSorting, table_syncExternalStateToBaseAtoms, table_toggleAllColumnsVisible, table_toggleAllPageRowsSelected, table_toggleAllRowsExpanded, table_toggleAllRowsSelected };
|
|
23
|
+
export { aggregateColumnValue, cell_getCanSelect, cell_getContext, cell_getIsAggregated, cell_getIsFocused, cell_getIsGrouped, cell_getIsPlaceholder, cell_getIsSelected, cell_getSelectionEdges, cell_getSelectionExtendHandler, cell_getSelectionStartHandler, cell_getTabIndex, cell_getValue, cell_renderValue, column_clearSorting, column_getAfter, column_getAggregationFns, column_getAggregationValue, column_getAutoAggregationFn, column_getAutoFilterFn, column_getAutoSortDir, column_getAutoSortFn, column_getCanFilter, column_getCanGlobalFilter, column_getCanGroup, column_getCanHide, column_getCanMultiSort, column_getCanPin, column_getCanResize, column_getCanSort, column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getFirstSortDir, column_getFlatColumns, column_getGroupedIndex, column_getIndex, column_getIsFiltered, column_getIsFirstColumn, column_getIsGrouped, column_getIsLastColumn, column_getIsPinned, column_getIsResizing, column_getIsSorted, column_getIsVisible, column_getLeafColumns, column_getNextSortingOrder, column_getPinnedIndex, column_getSize, column_getSortFn, column_getSortIndex, column_getStart, column_getToggleGroupingHandler, column_getToggleSortingHandler, column_getToggleVisibilityHandler, column_pin, column_resetSize, column_setFilterValue, column_toggleGrouping, column_toggleSorting, column_toggleVisibility, formatAggregatedCellValue, getDefaultCellSelectionState, getDefaultColumnFiltersState, getDefaultColumnOrderState, getDefaultColumnPinningState, getDefaultColumnResizingState, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, getDefaultColumnVisibilityState, getDefaultExpandedState, getDefaultGroupingState, getDefaultPaginationState, getDefaultRowPinningState, getDefaultRowSelectionState, getDefaultSortingState, header_getContext, header_getLeafHeaders, header_getResizeHandler, header_getSize, header_getStart, isRowSelected, isSubRowSelected, isTouchStartEvent, normalizeAggregationRows, normalizeUniqueAggregationRows, orderColumns, passiveEventSupported, row_getAllCells, row_getAllCellsByColumnId, row_getCanExpand, row_getCanMultiSelect, row_getCanPin, row_getCanSelect, row_getCanSelectSubRows, row_getCenterVisibleCells, row_getDisplayIndex, row_getEndVisibleCells, row_getGroupingValue, row_getIsAllParentsExpanded, row_getIsAllSubRowsSelected, row_getIsExpanded, row_getIsGrouped, row_getIsPinned, row_getIsSelected, row_getIsSomeSelected, row_getLeafRows, row_getParentRow, row_getParentRows, row_getPinnedIndex, row_getStartVisibleCells, row_getToggleExpandedHandler, row_getToggleSelectedHandler, row_getUniqueValues, row_getValue, row_getVisibleCells, row_getVisibleCellsByColumnId, row_pin, row_renderValue, row_toggleExpanded, row_toggleSelected, selectRowsFn, shouldAutoRemoveFilter, table_autoResetCellSelection, table_autoResetExpanded, table_autoResetPageIndex, table_extendCellSelection, table_firstPage, table_getAllColumns, table_getAllFlatColumns, table_getAllFlatColumnsById, table_getAllLeafColumns, table_getAllLeafColumnsById, table_getBottomRows, table_getCanNextPage, table_getCanPreviousPage, table_getCanSomeRowsExpand, table_getCellSelectionBounds, table_getCellSelectionColumnIds, table_getCellSelectionColumnIndexes, table_getCellSelectionRowIds, table_getCenterFlatHeaders, table_getCenterFooterGroups, table_getCenterHeaderGroups, table_getCenterLeafColumns, table_getCenterLeafHeaders, table_getCenterRows, table_getCenterTotalSize, table_getCenterVisibleLeafColumns, table_getColumn, table_getColumnIndexes, table_getColumnOffsets, table_getCoreRowModel, table_getDefaultColumnDef, table_getEndFlatHeaders, table_getEndFooterGroups, table_getEndHeaderGroups, table_getEndLeafColumns, table_getEndLeafHeaders, table_getEndTotalSize, table_getEndVisibleLeafColumns, table_getExpandedDepth, table_getExpandedRowModel, table_getFilteredRowModel, table_getFilteredSelectedRowModel, table_getFlatHeaders, table_getFocusedCell, table_getFooterGroups, table_getGlobalAutoFilterFn, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues, table_getGlobalFilterFn, table_getGroupedRowModel, table_getGroupedSelectedRowModel, table_getHeaderGroups, table_getIsAllColumnsVisible, table_getIsAllPageRowsSelected, table_getIsAllRowsExpanded, table_getIsAllRowsSelected, table_getIsSomeColumnsPinned, table_getIsSomeColumnsVisible, table_getIsSomePageRowsSelected, table_getIsSomeRowsExpanded, table_getIsSomeRowsPinned, table_getIsSomeRowsSelected, table_getLeafHeaders, table_getMaxSubRowDepth, table_getOrderColumnsFn, table_getPageCount, table_getPageOptions, table_getPaginatedRowModel, table_getPinnedLeafColumns, table_getPinnedVisibleLeafColumns, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSelectedRowModel, table_getPreSortedRowModel, table_getRow, table_getRowCount, table_getRowId, table_getRowModel, table_getRowsInDisplayOrder, table_getSelectedCellCount, table_getSelectedCellIds, table_getSelectedCellRangesData, table_getSelectedRowIds, table_getSelectedRowModel, table_getSortedRowModel, table_getStartFlatHeaders, table_getStartFooterGroups, table_getStartHeaderGroups, table_getStartLeafColumns, table_getStartLeafHeaders, table_getStartTotalSize, table_getStartVisibleLeafColumns, table_getToggleAllColumnsVisibilityHandler, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsExpandedHandler, table_getToggleAllRowsSelectedHandler, table_getTopRows, table_getTotalSize, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_lastPage, table_mergeOptions, table_moveCellSelection, table_nextPage, table_previousPage, table_reset, table_resetCellSelection, table_resetColumnFilters, table_resetColumnOrder, table_resetColumnPinning, table_resetColumnSizing, table_resetColumnVisibility, table_resetExpanded, table_resetGlobalFilter, table_resetGrouping, table_resetHeaderSizeInfo, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_resetRowPinning, table_resetRowSelection, table_resetSorting, table_selectAllCells, table_selectCellRange, table_setCellSelection, table_setColumnFilters, table_setColumnOrder, table_setColumnPinning, table_setColumnResizing, table_setColumnSizing, table_setColumnVisibility, table_setExpanded, table_setFocusedCell, table_setGlobalFilter, table_setGrouping, table_setOptions, table_setPageIndex, table_setPageSize, table_setPagination, table_setRowPinning, table_setRowSelection, table_setSorting, table_syncExternalStateToBaseAtoms, table_toggleAllColumnsVisible, table_toggleAllPageRowsSelected, table_toggleAllRowsExpanded, table_toggleAllRowsSelected };
|
package/dist/static-functions.js
CHANGED
|
@@ -4,6 +4,7 @@ import { column_getCanPin, column_getIsPinned, column_getPinnedIndex, column_pin
|
|
|
4
4
|
import { column_getIndex, column_getIsFirstColumn, column_getIsLastColumn, getDefaultColumnOrderState, orderColumns, table_getColumnIndexes, table_getOrderColumnsFn, table_resetColumnOrder, table_setColumnOrder } from "./features/column-ordering/columnOrderingFeature.utils.js";
|
|
5
5
|
import { column_getFlatColumns, column_getLeafColumns, table_getAllColumns, table_getAllFlatColumns, table_getAllFlatColumnsById, table_getAllLeafColumns, table_getAllLeafColumnsById, table_getColumn, table_getDefaultColumnDef } from "./core/columns/coreColumnsFeature.utils.js";
|
|
6
6
|
import { header_getContext, header_getLeafHeaders, table_getFlatHeaders, table_getFooterGroups, table_getHeaderGroups, table_getLeafHeaders } from "./core/headers/coreHeadersFeature.utils.js";
|
|
7
|
+
import { cell_getCanSelect, cell_getIsFocused, cell_getIsSelected, cell_getSelectionEdges, cell_getSelectionExtendHandler, cell_getSelectionStartHandler, cell_getTabIndex, getDefaultCellSelectionState, table_autoResetCellSelection, table_extendCellSelection, table_getCellSelectionBounds, table_getCellSelectionColumnIds, table_getCellSelectionColumnIndexes, table_getCellSelectionRowIds, table_getFocusedCell, table_getSelectedCellCount, table_getSelectedCellIds, table_getSelectedCellRangesData, table_moveCellSelection, table_resetCellSelection, table_selectAllCells, table_selectCellRange, table_setCellSelection, table_setFocusedCell } from "./features/cell-selection/cellSelectionFeature.utils.js";
|
|
7
8
|
import { getDefaultPaginationState, table_autoResetPageIndex, table_firstPage, table_getCanNextPage, table_getCanPreviousPage, table_getPageCount, table_getPageOptions, table_getRowCount, table_lastPage, table_nextPage, table_previousPage, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_setPageIndex, table_setPageSize, table_setPagination } from "./features/row-pagination/rowPaginationFeature.utils.js";
|
|
8
9
|
import { table_getCoreRowModel, table_getExpandedRowModel, table_getFilteredRowModel, table_getGroupedRowModel, table_getPaginatedRowModel, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSortedRowModel, table_getRowModel, table_getSortedRowModel } from "./core/row-models/coreRowModelsFeature.utils.js";
|
|
9
10
|
import { row_getAllCells, row_getAllCellsByColumnId, row_getDisplayIndex, row_getLeafRows, row_getParentRow, row_getParentRows, row_getUniqueValues, row_getValue, row_renderValue, table_getMaxSubRowDepth, table_getRow, table_getRowId, table_getRowsInDisplayOrder } from "./core/rows/coreRowsFeature.utils.js";
|
|
@@ -20,4 +21,4 @@ import { getDefaultRowPinningState, row_getCanPin, row_getIsPinned, row_getPinne
|
|
|
20
21
|
import { getDefaultRowSelectionState, isRowSelected, isSubRowSelected, row_getCanMultiSelect, row_getCanSelect, row_getCanSelectSubRows, row_getIsAllSubRowsSelected, row_getIsSelected, row_getIsSomeSelected, row_getToggleSelectedHandler, row_toggleSelected, selectRowsFn, table_getFilteredSelectedRowModel, table_getGroupedSelectedRowModel, table_getIsAllPageRowsSelected, table_getIsAllRowsSelected, table_getIsSomePageRowsSelected, table_getIsSomeRowsSelected, table_getPreSelectedRowModel, table_getSelectedRowIds, table_getSelectedRowModel, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsSelectedHandler, table_resetRowSelection, table_setRowSelection, table_toggleAllPageRowsSelected, table_toggleAllRowsSelected } from "./features/row-selection/rowSelectionFeature.utils.js";
|
|
21
22
|
import { column_clearSorting, column_getAutoSortDir, column_getAutoSortFn, column_getCanMultiSort, column_getCanSort, column_getFirstSortDir, column_getIsSorted, column_getNextSortingOrder, column_getSortFn, column_getSortIndex, column_getToggleSortingHandler, column_toggleSorting, getDefaultSortingState, table_resetSorting, table_setSorting } from "./features/row-sorting/rowSortingFeature.utils.js";
|
|
22
23
|
|
|
23
|
-
export { aggregateColumnValue, cell_getContext, cell_getIsAggregated, cell_getIsGrouped, cell_getIsPlaceholder, cell_getValue, cell_renderValue, column_clearSorting, column_getAfter, column_getAggregationFns, column_getAggregationValue, column_getAutoAggregationFn, column_getAutoFilterFn, column_getAutoSortDir, column_getAutoSortFn, column_getCanFilter, column_getCanGlobalFilter, column_getCanGroup, column_getCanHide, column_getCanMultiSort, column_getCanPin, column_getCanResize, column_getCanSort, column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getFirstSortDir, column_getFlatColumns, column_getGroupedIndex, column_getIndex, column_getIsFiltered, column_getIsFirstColumn, column_getIsGrouped, column_getIsLastColumn, column_getIsPinned, column_getIsResizing, column_getIsSorted, column_getIsVisible, column_getLeafColumns, column_getNextSortingOrder, column_getPinnedIndex, column_getSize, column_getSortFn, column_getSortIndex, column_getStart, column_getToggleGroupingHandler, column_getToggleSortingHandler, column_getToggleVisibilityHandler, column_pin, column_resetSize, column_setFilterValue, column_toggleGrouping, column_toggleSorting, column_toggleVisibility, formatAggregatedCellValue, getDefaultColumnFiltersState, getDefaultColumnOrderState, getDefaultColumnPinningState, getDefaultColumnResizingState, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, getDefaultColumnVisibilityState, getDefaultExpandedState, getDefaultGroupingState, getDefaultPaginationState, getDefaultRowPinningState, getDefaultRowSelectionState, getDefaultSortingState, header_getContext, header_getLeafHeaders, header_getResizeHandler, header_getSize, header_getStart, isRowSelected, isSubRowSelected, isTouchStartEvent, normalizeAggregationRows, normalizeUniqueAggregationRows, orderColumns, passiveEventSupported, row_getAllCells, row_getAllCellsByColumnId, row_getCanExpand, row_getCanMultiSelect, row_getCanPin, row_getCanSelect, row_getCanSelectSubRows, row_getCenterVisibleCells, row_getDisplayIndex, row_getEndVisibleCells, row_getGroupingValue, row_getIsAllParentsExpanded, row_getIsAllSubRowsSelected, row_getIsExpanded, row_getIsGrouped, row_getIsPinned, row_getIsSelected, row_getIsSomeSelected, row_getLeafRows, row_getParentRow, row_getParentRows, row_getPinnedIndex, row_getStartVisibleCells, row_getToggleExpandedHandler, row_getToggleSelectedHandler, row_getUniqueValues, row_getValue, row_getVisibleCells, row_getVisibleCellsByColumnId, row_pin, row_renderValue, row_toggleExpanded, row_toggleSelected, selectRowsFn, shouldAutoRemoveFilter, table_autoResetExpanded, table_autoResetPageIndex, table_firstPage, table_getAllColumns, table_getAllFlatColumns, table_getAllFlatColumnsById, table_getAllLeafColumns, table_getAllLeafColumnsById, table_getBottomRows, table_getCanNextPage, table_getCanPreviousPage, table_getCanSomeRowsExpand, table_getCenterFlatHeaders, table_getCenterFooterGroups, table_getCenterHeaderGroups, table_getCenterLeafColumns, table_getCenterLeafHeaders, table_getCenterRows, table_getCenterTotalSize, table_getCenterVisibleLeafColumns, table_getColumn, table_getColumnIndexes, table_getColumnOffsets, table_getCoreRowModel, table_getDefaultColumnDef, table_getEndFlatHeaders, table_getEndFooterGroups, table_getEndHeaderGroups, table_getEndLeafColumns, table_getEndLeafHeaders, table_getEndTotalSize, table_getEndVisibleLeafColumns, table_getExpandedDepth, table_getExpandedRowModel, table_getFilteredRowModel, table_getFilteredSelectedRowModel, table_getFlatHeaders, table_getFooterGroups, table_getGlobalAutoFilterFn, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues, table_getGlobalFilterFn, table_getGroupedRowModel, table_getGroupedSelectedRowModel, table_getHeaderGroups, table_getIsAllColumnsVisible, table_getIsAllPageRowsSelected, table_getIsAllRowsExpanded, table_getIsAllRowsSelected, table_getIsSomeColumnsPinned, table_getIsSomeColumnsVisible, table_getIsSomePageRowsSelected, table_getIsSomeRowsExpanded, table_getIsSomeRowsPinned, table_getIsSomeRowsSelected, table_getLeafHeaders, table_getMaxSubRowDepth, table_getOrderColumnsFn, table_getPageCount, table_getPageOptions, table_getPaginatedRowModel, table_getPinnedLeafColumns, table_getPinnedVisibleLeafColumns, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSelectedRowModel, table_getPreSortedRowModel, table_getRow, table_getRowCount, table_getRowId, table_getRowModel, table_getRowsInDisplayOrder, table_getSelectedRowIds, table_getSelectedRowModel, table_getSortedRowModel, table_getStartFlatHeaders, table_getStartFooterGroups, table_getStartHeaderGroups, table_getStartLeafColumns, table_getStartLeafHeaders, table_getStartTotalSize, table_getStartVisibleLeafColumns, table_getToggleAllColumnsVisibilityHandler, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsExpandedHandler, table_getToggleAllRowsSelectedHandler, table_getTopRows, table_getTotalSize, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_lastPage, table_mergeOptions, table_nextPage, table_previousPage, table_reset, table_resetColumnFilters, table_resetColumnOrder, table_resetColumnPinning, table_resetColumnSizing, table_resetColumnVisibility, table_resetExpanded, table_resetGlobalFilter, table_resetGrouping, table_resetHeaderSizeInfo, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_resetRowPinning, table_resetRowSelection, table_resetSorting, table_setColumnFilters, table_setColumnOrder, table_setColumnPinning, table_setColumnResizing, table_setColumnSizing, table_setColumnVisibility, table_setExpanded, table_setGlobalFilter, table_setGrouping, table_setOptions, table_setPageIndex, table_setPageSize, table_setPagination, table_setRowPinning, table_setRowSelection, table_setSorting, table_syncExternalStateToBaseAtoms, table_toggleAllColumnsVisible, table_toggleAllPageRowsSelected, table_toggleAllRowsExpanded, table_toggleAllRowsSelected };
|
|
24
|
+
export { aggregateColumnValue, cell_getCanSelect, cell_getContext, cell_getIsAggregated, cell_getIsFocused, cell_getIsGrouped, cell_getIsPlaceholder, cell_getIsSelected, cell_getSelectionEdges, cell_getSelectionExtendHandler, cell_getSelectionStartHandler, cell_getTabIndex, cell_getValue, cell_renderValue, column_clearSorting, column_getAfter, column_getAggregationFns, column_getAggregationValue, column_getAutoAggregationFn, column_getAutoFilterFn, column_getAutoSortDir, column_getAutoSortFn, column_getCanFilter, column_getCanGlobalFilter, column_getCanGroup, column_getCanHide, column_getCanMultiSort, column_getCanPin, column_getCanResize, column_getCanSort, column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getFirstSortDir, column_getFlatColumns, column_getGroupedIndex, column_getIndex, column_getIsFiltered, column_getIsFirstColumn, column_getIsGrouped, column_getIsLastColumn, column_getIsPinned, column_getIsResizing, column_getIsSorted, column_getIsVisible, column_getLeafColumns, column_getNextSortingOrder, column_getPinnedIndex, column_getSize, column_getSortFn, column_getSortIndex, column_getStart, column_getToggleGroupingHandler, column_getToggleSortingHandler, column_getToggleVisibilityHandler, column_pin, column_resetSize, column_setFilterValue, column_toggleGrouping, column_toggleSorting, column_toggleVisibility, formatAggregatedCellValue, getDefaultCellSelectionState, getDefaultColumnFiltersState, getDefaultColumnOrderState, getDefaultColumnPinningState, getDefaultColumnResizingState, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, getDefaultColumnVisibilityState, getDefaultExpandedState, getDefaultGroupingState, getDefaultPaginationState, getDefaultRowPinningState, getDefaultRowSelectionState, getDefaultSortingState, header_getContext, header_getLeafHeaders, header_getResizeHandler, header_getSize, header_getStart, isRowSelected, isSubRowSelected, isTouchStartEvent, normalizeAggregationRows, normalizeUniqueAggregationRows, orderColumns, passiveEventSupported, row_getAllCells, row_getAllCellsByColumnId, row_getCanExpand, row_getCanMultiSelect, row_getCanPin, row_getCanSelect, row_getCanSelectSubRows, row_getCenterVisibleCells, row_getDisplayIndex, row_getEndVisibleCells, row_getGroupingValue, row_getIsAllParentsExpanded, row_getIsAllSubRowsSelected, row_getIsExpanded, row_getIsGrouped, row_getIsPinned, row_getIsSelected, row_getIsSomeSelected, row_getLeafRows, row_getParentRow, row_getParentRows, row_getPinnedIndex, row_getStartVisibleCells, row_getToggleExpandedHandler, row_getToggleSelectedHandler, row_getUniqueValues, row_getValue, row_getVisibleCells, row_getVisibleCellsByColumnId, row_pin, row_renderValue, row_toggleExpanded, row_toggleSelected, selectRowsFn, shouldAutoRemoveFilter, table_autoResetCellSelection, table_autoResetExpanded, table_autoResetPageIndex, table_extendCellSelection, table_firstPage, table_getAllColumns, table_getAllFlatColumns, table_getAllFlatColumnsById, table_getAllLeafColumns, table_getAllLeafColumnsById, table_getBottomRows, table_getCanNextPage, table_getCanPreviousPage, table_getCanSomeRowsExpand, table_getCellSelectionBounds, table_getCellSelectionColumnIds, table_getCellSelectionColumnIndexes, table_getCellSelectionRowIds, table_getCenterFlatHeaders, table_getCenterFooterGroups, table_getCenterHeaderGroups, table_getCenterLeafColumns, table_getCenterLeafHeaders, table_getCenterRows, table_getCenterTotalSize, table_getCenterVisibleLeafColumns, table_getColumn, table_getColumnIndexes, table_getColumnOffsets, table_getCoreRowModel, table_getDefaultColumnDef, table_getEndFlatHeaders, table_getEndFooterGroups, table_getEndHeaderGroups, table_getEndLeafColumns, table_getEndLeafHeaders, table_getEndTotalSize, table_getEndVisibleLeafColumns, table_getExpandedDepth, table_getExpandedRowModel, table_getFilteredRowModel, table_getFilteredSelectedRowModel, table_getFlatHeaders, table_getFocusedCell, table_getFooterGroups, table_getGlobalAutoFilterFn, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues, table_getGlobalFilterFn, table_getGroupedRowModel, table_getGroupedSelectedRowModel, table_getHeaderGroups, table_getIsAllColumnsVisible, table_getIsAllPageRowsSelected, table_getIsAllRowsExpanded, table_getIsAllRowsSelected, table_getIsSomeColumnsPinned, table_getIsSomeColumnsVisible, table_getIsSomePageRowsSelected, table_getIsSomeRowsExpanded, table_getIsSomeRowsPinned, table_getIsSomeRowsSelected, table_getLeafHeaders, table_getMaxSubRowDepth, table_getOrderColumnsFn, table_getPageCount, table_getPageOptions, table_getPaginatedRowModel, table_getPinnedLeafColumns, table_getPinnedVisibleLeafColumns, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSelectedRowModel, table_getPreSortedRowModel, table_getRow, table_getRowCount, table_getRowId, table_getRowModel, table_getRowsInDisplayOrder, table_getSelectedCellCount, table_getSelectedCellIds, table_getSelectedCellRangesData, table_getSelectedRowIds, table_getSelectedRowModel, table_getSortedRowModel, table_getStartFlatHeaders, table_getStartFooterGroups, table_getStartHeaderGroups, table_getStartLeafColumns, table_getStartLeafHeaders, table_getStartTotalSize, table_getStartVisibleLeafColumns, table_getToggleAllColumnsVisibilityHandler, table_getToggleAllPageRowsSelectedHandler, table_getToggleAllRowsExpandedHandler, table_getToggleAllRowsSelectedHandler, table_getTopRows, table_getTotalSize, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_lastPage, table_mergeOptions, table_moveCellSelection, table_nextPage, table_previousPage, table_reset, table_resetCellSelection, table_resetColumnFilters, table_resetColumnOrder, table_resetColumnPinning, table_resetColumnSizing, table_resetColumnVisibility, table_resetExpanded, table_resetGlobalFilter, table_resetGrouping, table_resetHeaderSizeInfo, table_resetPageIndex, table_resetPageSize, table_resetPagination, table_resetRowPinning, table_resetRowSelection, table_resetSorting, table_selectAllCells, table_selectCellRange, table_setCellSelection, table_setColumnFilters, table_setColumnOrder, table_setColumnPinning, table_setColumnResizing, table_setColumnSizing, table_setColumnVisibility, table_setExpanded, table_setFocusedCell, table_setGlobalFilter, table_setGrouping, table_setOptions, table_setPageIndex, table_setPageSize, table_setPagination, table_setRowPinning, table_setRowSelection, table_setSorting, table_syncExternalStateToBaseAtoms, table_toggleAllColumnsVisible, table_toggleAllPageRowsSelected, table_toggleAllRowsExpanded, table_toggleAllRowsSelected };
|
package/dist/types/Cell.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { CellData, RowData } from "./type-utils.js";
|
|
2
|
+
import { Cell_CellSelection } from "../features/cell-selection/cellSelectionFeature.types.js";
|
|
2
3
|
import { Cell_Cell } from "../core/cells/coreCellsFeature.types.js";
|
|
3
|
-
import {
|
|
4
|
+
import { Cell_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
4
5
|
import { Cell_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
|
|
5
6
|
import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
|
|
6
7
|
|
|
7
8
|
//#region src/types/Cell.d.ts
|
|
8
9
|
interface Cell_Core<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData = CellData> extends Cell_Cell<TFeatures, TData, TValue> {}
|
|
9
10
|
interface Cell_FeatureMap {
|
|
10
|
-
|
|
11
|
+
cellSelectionFeature: Cell_CellSelection;
|
|
11
12
|
columnGroupingFeature: Cell_ColumnGrouping;
|
|
13
|
+
rowAggregationFeature: Cell_RowAggregation;
|
|
12
14
|
}
|
|
13
15
|
type Cell<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = Cell_Core<TFeatures, TData, TValue> & ExtractFeatureMapTypes<TFeatures, Cell_FeatureMap>;
|
|
14
16
|
//#endregion
|
package/dist/types/Column.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Column_ColumnOrdering } from "../features/column-ordering/columnOrderin
|
|
|
7
7
|
import { Column_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
|
|
8
8
|
import { Column_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
|
|
9
9
|
import { ColumnDefBase_All } from "./ColumnDef.js";
|
|
10
|
-
import {
|
|
10
|
+
import { Column_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
11
11
|
import { Column_Column } from "../core/columns/coreColumnsFeature.types.js";
|
|
12
12
|
import { Table } from "./Table.js";
|
|
13
13
|
import { Column_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
|
|
@@ -18,7 +18,7 @@ import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
|
|
|
18
18
|
//#region src/types/Column.d.ts
|
|
19
19
|
interface Column_Core<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue = unknown> extends Column_Column<TFeatures, TData, TValue> {}
|
|
20
20
|
interface Column_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
21
|
-
rowAggregationFeature:
|
|
21
|
+
rowAggregationFeature: Column_RowAggregation<TFeatures, TData>;
|
|
22
22
|
columnFacetingFeature: Column_ColumnFaceting<TFeatures, TData>;
|
|
23
23
|
columnFilteringFeature: Column_ColumnFiltering<TFeatures, TData>;
|
|
24
24
|
columnGroupingFeature: Column_ColumnGrouping;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CellData, RowData, UnionToIntersection } from "./type-utils.js";
|
|
2
|
+
import { ColumnDef_CellSelection } from "../features/cell-selection/cellSelectionFeature.types.js";
|
|
2
3
|
import { ColumnDef_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
|
|
3
4
|
import { ColumnDef_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
|
|
4
5
|
import { HeaderContext } from "../core/headers/coreHeadersFeature.types.js";
|
|
@@ -6,7 +7,7 @@ import { ColumnDef_ColumnPinning } from "../features/column-pinning/columnPinnin
|
|
|
6
7
|
import { ColumnDef_GlobalFiltering } from "../features/global-filtering/globalFilteringFeature.types.js";
|
|
7
8
|
import { ColumnDef_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
|
|
8
9
|
import { CellContext } from "../core/cells/coreCellsFeature.types.js";
|
|
9
|
-
import {
|
|
10
|
+
import { ColumnDef_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
10
11
|
import { ColumnDef_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
|
|
11
12
|
import { ColumnDef_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
|
|
12
13
|
import { ColumnDef_ColumnGrouping } from "../features/column-grouping/columnGroupingFeature.types.js";
|
|
@@ -85,18 +86,19 @@ interface ColumnDefBase_Core<TFeatures extends TableFeatures, TData extends RowD
|
|
|
85
86
|
meta?: ExtractColumnMeta<TFeatures, TData, TValue>;
|
|
86
87
|
}
|
|
87
88
|
interface ColumnDef_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData, TValue extends CellData> {
|
|
88
|
-
|
|
89
|
-
columnVisibilityFeature: ColumnDef_ColumnVisibility;
|
|
90
|
-
columnPinningFeature: ColumnDef_ColumnPinning;
|
|
89
|
+
cellSelectionFeature: ColumnDef_CellSelection;
|
|
91
90
|
columnFilteringFeature: ColumnDef_ColumnFiltering<TFeatures, TData>;
|
|
92
|
-
globalFilteringFeature: ColumnDef_GlobalFiltering;
|
|
93
|
-
rowSortingFeature: ColumnDef_RowSorting<TFeatures, TData>;
|
|
94
91
|
columnGroupingFeature: ColumnDef_ColumnGrouping<TFeatures, TData>;
|
|
95
|
-
|
|
92
|
+
columnPinningFeature: ColumnDef_ColumnPinning;
|
|
96
93
|
columnResizingFeature: ColumnDef_ColumnResizing;
|
|
94
|
+
columnSizingFeature: ColumnDef_ColumnSizing;
|
|
95
|
+
columnVisibilityFeature: ColumnDef_ColumnVisibility;
|
|
96
|
+
globalFilteringFeature: ColumnDef_GlobalFiltering;
|
|
97
|
+
rowAggregationFeature: ColumnDef_RowAggregation<TFeatures, TData, TValue>;
|
|
98
|
+
rowSortingFeature: ColumnDef_RowSorting<TFeatures, TData>;
|
|
97
99
|
}
|
|
98
100
|
type ColumnDefBase<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = ColumnDefBase_Core<TFeatures, TData, TValue> & ExtractFeatureMapTypes<TFeatures, ColumnDef_FeatureMap<TFeatures, TData, TValue>>;
|
|
99
|
-
type ColumnDefBase_All<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = ColumnDefBase_Core<TFeatures, TData, TValue> & Partial<
|
|
101
|
+
type ColumnDefBase_All<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = ColumnDefBase_Core<TFeatures, TData, TValue> & Partial<ColumnDef_RowAggregation<TFeatures, TData, TValue> & ColumnDef_CellSelection & ColumnDef_ColumnVisibility & ColumnDef_ColumnPinning & ColumnDef_ColumnFiltering<TFeatures, TData> & ColumnDef_GlobalFiltering & ColumnDef_RowSorting<TFeatures, TData> & ColumnDef_ColumnGrouping<TFeatures, TData> & ColumnDef_ColumnSizing & ColumnDef_ColumnResizing>;
|
|
100
102
|
type IdentifiedColumnDef<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = ColumnDefBase<TFeatures, TData, TValue> & {
|
|
101
103
|
id?: string;
|
|
102
104
|
header?: StringOrTemplateHeader<TFeatures, TData, TValue>;
|
package/dist/types/Row.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Row_ColumnPinning } from "../features/column-pinning/columnPinningFeatu
|
|
|
3
3
|
import { Row_RowPinning } from "../features/row-pinning/rowPinningFeature.types.js";
|
|
4
4
|
import { Row_RowExpanding } from "../features/row-expanding/rowExpandingFeature.types.js";
|
|
5
5
|
import { Row_RowSelection } from "../features/row-selection/rowSelectionFeature.types.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Row_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
7
7
|
import { Row_Row } from "../core/rows/coreRowsFeature.types.js";
|
|
8
8
|
import { Row_ColumnVisibility } from "../features/column-visibility/columnVisibilityFeature.types.js";
|
|
9
9
|
import { Row_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
|
|
@@ -13,7 +13,7 @@ import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
|
|
|
13
13
|
//#region src/types/Row.d.ts
|
|
14
14
|
interface Row_Core<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Row_Row<TFeatures, TData> {}
|
|
15
15
|
interface Row_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
16
|
-
rowAggregationFeature:
|
|
16
|
+
rowAggregationFeature: Row_RowAggregation;
|
|
17
17
|
columnFilteringFeature: Row_ColumnFiltering<TFeatures, TData>;
|
|
18
18
|
columnGroupingFeature: Row_ColumnGrouping;
|
|
19
19
|
columnPinningFeature: Row_ColumnPinning<TFeatures, TData>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RowData } from "./type-utils.js";
|
|
2
2
|
import { RowModelFns_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { RowModelFns_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
4
4
|
import { RowModelFns_ColumnFiltering } from "../features/column-filtering/columnFilteringFeature.types.js";
|
|
5
5
|
import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
|
|
6
6
|
|
|
7
7
|
//#region src/types/RowModelFns.d.ts
|
|
8
8
|
interface RowModelFns_Core {}
|
|
9
9
|
interface RowModelFns_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
10
|
-
rowAggregationFeature:
|
|
10
|
+
rowAggregationFeature: RowModelFns_RowAggregation<TFeatures, TData>;
|
|
11
11
|
columnFilteringFeature: RowModelFns_ColumnFiltering<TFeatures, TData>;
|
|
12
12
|
rowSortingFeature: RowModelFns_RowSorting<TFeatures, TData>;
|
|
13
13
|
}
|
|
14
14
|
type RowModelFns<TFeatures extends TableFeatures, TData extends RowData> = Partial<ExtractFeatureMapTypes<TFeatures, RowModelFns_FeatureMap<TFeatures, TData>>>;
|
|
15
|
-
interface RowModelFns_All<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Partial<RowModelFns_ColumnFiltering<TFeatures, TData> &
|
|
15
|
+
interface RowModelFns_All<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Partial<RowModelFns_ColumnFiltering<TFeatures, TData> & RowModelFns_RowAggregation<TFeatures, TData> & RowModelFns_RowSorting<TFeatures, TData>> {}
|
|
16
16
|
//#endregion
|
|
17
17
|
export { RowModelFns, RowModelFns_All, RowModelFns_Core, RowModelFns_FeatureMap };
|
package/dist/types/Table.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RowData } from "./type-utils.js";
|
|
2
|
+
import { Table_CellSelection } from "../features/cell-selection/cellSelectionFeature.types.js";
|
|
2
3
|
import { Table_ColumnFaceting } from "../features/column-faceting/columnFacetingFeature.types.js";
|
|
3
4
|
import { Table_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
|
|
4
5
|
import { Table_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
|
|
@@ -32,6 +33,8 @@ import { ReadonlyStore } from "@tanstack/store";
|
|
|
32
33
|
*/
|
|
33
34
|
interface Table_Core<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Table_Table<TFeatures, TData>, Table_Columns<TFeatures, TData>, Table_Rows<TFeatures, TData>, Table_RowModels<TFeatures, TData>, Table_Headers<TFeatures, TData> {}
|
|
34
35
|
interface Table_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
36
|
+
cellSelectionFeature: Table_CellSelection<TFeatures, TData>;
|
|
37
|
+
columnFacetingFeature: Table_ColumnFaceting<TFeatures, TData>;
|
|
35
38
|
columnFilteringFeature: Table_ColumnFiltering;
|
|
36
39
|
columnGroupingFeature: Table_ColumnGrouping<TFeatures, TData>;
|
|
37
40
|
columnOrderingFeature: Table_ColumnOrdering<TFeatures, TData>;
|
|
@@ -39,7 +42,6 @@ interface Table_FeatureMap<in out TFeatures extends TableFeatures, in out TData
|
|
|
39
42
|
columnResizingFeature: Table_ColumnResizing;
|
|
40
43
|
columnSizingFeature: Table_ColumnSizing;
|
|
41
44
|
columnVisibilityFeature: Table_ColumnVisibility<TFeatures, TData>;
|
|
42
|
-
columnFacetingFeature: Table_ColumnFaceting<TFeatures, TData>;
|
|
43
45
|
globalFilteringFeature: Table_GlobalFiltering<TFeatures, TData>;
|
|
44
46
|
rowExpandingFeature: Table_RowExpanding<TFeatures, TData>;
|
|
45
47
|
rowPaginationFeature: Table_RowPagination<TFeatures, TData>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RowData, UnionToIntersection } from "./type-utils.js";
|
|
2
2
|
import { CoreFeatures } from "../core/coreFeatures.js";
|
|
3
|
+
import { TableOptions_CellSelection } from "../features/cell-selection/cellSelectionFeature.types.js";
|
|
3
4
|
import { TableOptions_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
|
|
4
5
|
import { TableOptions_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
|
|
5
6
|
import { TableOptions_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
|
|
@@ -11,7 +12,7 @@ import { TableOptions_RowPagination } from "../features/row-pagination/rowPagina
|
|
|
11
12
|
import { TableOptions_RowSelection } from "../features/row-selection/rowSelectionFeature.types.js";
|
|
12
13
|
import { TableOptions_RowSorting } from "../features/row-sorting/rowSortingFeature.types.js";
|
|
13
14
|
import { TableOptions_Cell } from "../core/cells/coreCellsFeature.types.js";
|
|
14
|
-
import {
|
|
15
|
+
import { TableOptions_RowAggregation } from "../features/row-aggregation/rowAggregationFeature.types.js";
|
|
15
16
|
import { TableOptions_Columns } from "../core/columns/coreColumnsFeature.types.js";
|
|
16
17
|
import { TableOptions_Rows } from "../core/rows/coreRowsFeature.types.js";
|
|
17
18
|
import { TableOptions_Table } from "../core/table/coreTablesFeature.types.js";
|
|
@@ -37,7 +38,7 @@ type DebugOptions<TFeatures extends TableFeatures> = {
|
|
|
37
38
|
debugTable?: boolean;
|
|
38
39
|
} & DebugKeysFor<CoreFeatures & TFeatures>;
|
|
39
40
|
interface TableOptions_FeatureMap<in out TFeatures extends TableFeatures, in out TData extends RowData> {
|
|
40
|
-
|
|
41
|
+
cellSelectionFeature: TableOptions_CellSelection<TFeatures, TData>;
|
|
41
42
|
columnFilteringFeature: TableOptions_ColumnFiltering<TFeatures, TData>;
|
|
42
43
|
columnGroupingFeature: TableOptions_ColumnGrouping;
|
|
43
44
|
columnOrderingFeature: TableOptions_ColumnOrdering;
|
|
@@ -46,13 +47,14 @@ interface TableOptions_FeatureMap<in out TFeatures extends TableFeatures, in out
|
|
|
46
47
|
columnSizingFeature: TableOptions_ColumnSizing;
|
|
47
48
|
columnVisibilityFeature: TableOptions_ColumnVisibility;
|
|
48
49
|
globalFilteringFeature: TableOptions_GlobalFiltering<TFeatures, TData>;
|
|
50
|
+
rowAggregationFeature: TableOptions_RowAggregation;
|
|
49
51
|
rowExpandingFeature: TableOptions_RowExpanding<TFeatures, TData>;
|
|
50
52
|
rowPaginationFeature: TableOptions_RowPagination;
|
|
51
53
|
rowPinningFeature: TableOptions_RowPinning<TFeatures, TData>;
|
|
52
54
|
rowSelectionFeature: TableOptions_RowSelection<TFeatures, TData>;
|
|
53
55
|
rowSortingFeature: TableOptions_RowSorting;
|
|
54
56
|
}
|
|
55
|
-
type TableOptions_StockFeatureKeys = '
|
|
57
|
+
type TableOptions_StockFeatureKeys = 'cellSelectionFeature' | 'columnFilteringFeature' | 'columnGroupingFeature' | 'columnOrderingFeature' | 'columnPinningFeature' | 'columnResizingFeature' | 'columnSizingFeature' | 'columnVisibilityFeature' | 'globalFilteringFeature' | 'rowAggregationFeature' | 'rowExpandingFeature' | 'rowPaginationFeature' | 'rowPinningFeature' | 'rowSelectionFeature' | 'rowSortingFeature';
|
|
56
58
|
/**
|
|
57
59
|
* Plugin entries declaration-merged into `TableOptions_FeatureMap`, i.e. keys
|
|
58
60
|
* beyond the stock set. Resolves to `unknown` (an intersection no-op) when no
|
|
@@ -71,6 +73,6 @@ type TableOptions<TFeatures extends TableFeatures, TData extends RowData> = Tabl
|
|
|
71
73
|
* Internal broad option shape used where feature code may need to read options
|
|
72
74
|
* from features that are not present in the current generic feature set.
|
|
73
75
|
*/
|
|
74
|
-
type TableOptions_All<TFeatures extends TableFeatures, TData extends RowData> = TableOptions_Core<TFeatures, TData> & Partial<
|
|
76
|
+
type TableOptions_All<TFeatures extends TableFeatures, TData extends RowData> = TableOptions_Core<TFeatures, TData> & Partial<TableOptions_RowAggregation & TableOptions_CellSelection<TFeatures, TData> & TableOptions_ColumnFiltering<TFeatures, TData> & TableOptions_ColumnGrouping & TableOptions_ColumnOrdering & TableOptions_ColumnPinning & TableOptions_ColumnResizing & TableOptions_ColumnSizing & TableOptions_ColumnVisibility & TableOptions_GlobalFiltering<TFeatures, TData> & TableOptions_RowExpanding<TFeatures, TData> & TableOptions_RowPagination & TableOptions_RowPinning<TFeatures, TData> & TableOptions_RowSelection<TFeatures, TData> & TableOptions_RowSorting & TableOptions_PluginFeatureMapTypes<TFeatures, TData>>;
|
|
75
77
|
//#endregion
|
|
76
78
|
export { DebugOptions, TableOptions, TableOptions_All, TableOptions_Core, TableOptions_FeatureMap };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TableState_CellSelection } from "../features/cell-selection/cellSelectionFeature.types.js";
|
|
1
2
|
import { TableState_ColumnResizing } from "../features/column-resizing/columnResizingFeature.types.js";
|
|
2
3
|
import { TableState_ColumnSizing } from "../features/column-sizing/columnSizingFeature.types.js";
|
|
3
4
|
import { TableState_ColumnPinning } from "../features/column-pinning/columnPinningFeature.types.js";
|
|
@@ -15,6 +16,7 @@ import { ExtractFeatureMapTypes, TableFeatures } from "./TableFeatures.js";
|
|
|
15
16
|
|
|
16
17
|
//#region src/types/TableState.d.ts
|
|
17
18
|
interface TableState_FeatureMap {
|
|
19
|
+
cellSelectionFeature: TableState_CellSelection;
|
|
18
20
|
columnFilteringFeature: TableState_ColumnFiltering;
|
|
19
21
|
columnGroupingFeature: TableState_ColumnGrouping;
|
|
20
22
|
columnOrderingFeature: TableState_ColumnOrdering;
|
|
@@ -42,6 +44,6 @@ type TableState<TFeatures extends TableFeatures> = ExtractFeatureMapTypes<TFeatu
|
|
|
42
44
|
* Feature internals use this when they may need to inspect optional slices owned
|
|
43
45
|
* by other features.
|
|
44
46
|
*/
|
|
45
|
-
interface TableState_All extends Partial<TableState_ColumnFiltering & TableState_ColumnGrouping & TableState_ColumnOrdering & TableState_ColumnPinning & TableState_ColumnResizing & TableState_ColumnSizing & TableState_ColumnVisibility & TableState_GlobalFiltering & TableState_RowExpanding & TableState_RowPagination & TableState_RowPinning & TableState_RowSelection & TableState_RowSorting> {}
|
|
47
|
+
interface TableState_All extends Partial<TableState_CellSelection & TableState_ColumnFiltering & TableState_ColumnGrouping & TableState_ColumnOrdering & TableState_ColumnPinning & TableState_ColumnResizing & TableState_ColumnSizing & TableState_ColumnVisibility & TableState_GlobalFiltering & TableState_RowExpanding & TableState_RowPagination & TableState_RowPinning & TableState_RowSelection & TableState_RowSorting> {}
|
|
46
48
|
//#endregion
|
|
47
49
|
export { TableState, TableState_All, TableState_FeatureMap };
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ metadata:
|
|
|
6
6
|
{
|
|
7
7
|
type: sub-skill,
|
|
8
8
|
library: '@tanstack/table-core',
|
|
9
|
-
library_version: '9.0.0-beta.
|
|
9
|
+
library_version: '9.0.0-beta.58',
|
|
10
10
|
}
|
|
11
11
|
requires: ['core', 'table-features']
|
|
12
12
|
sources:
|
|
@@ -137,5 +137,5 @@ grouped results sent by the worker must be structured-cloneable.
|
|
|
137
137
|
## API Discovery
|
|
138
138
|
|
|
139
139
|
Inspect `node_modules/@tanstack/table-core/dist/features/row-aggregation/` and the
|
|
140
|
-
Aggregation Guide. Use `
|
|
140
|
+
Aggregation Guide. Use `Column_RowAggregation`, `AggregationFnDef`,
|
|
141
141
|
`AggregationContext`, and `AggregationResult` for the typed public surface.
|