@tanstack/table-core 8.0.0-alpha.25 → 8.0.0-alpha.28
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/build/cjs/core.js +1 -0
- package/build/cjs/core.js.map +1 -1
- package/build/cjs/createTable.js +7 -2
- package/build/cjs/createTable.js.map +1 -1
- package/build/esm/index.js +8 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +261 -261
- package/build/types/core.d.ts +2 -0
- package/build/umd/index.development.js +8 -2
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/core.tsx +9 -1
- package/src/createTable.tsx +3 -2
package/build/types/core.d.ts
CHANGED
|
@@ -87,11 +87,13 @@ export declare type CoreColumnDef<TGenerics extends AnyGenerics> = {
|
|
|
87
87
|
}>;
|
|
88
88
|
meta?: TGenerics['ColumnMeta'];
|
|
89
89
|
};
|
|
90
|
+
export declare type CoreColumnDefType = 'data' | 'display' | 'group';
|
|
90
91
|
export declare type CoreColumn<TGenerics extends AnyGenerics> = {
|
|
91
92
|
id: string;
|
|
92
93
|
depth: number;
|
|
93
94
|
accessorFn?: AccessorFn<TGenerics['Row']>;
|
|
94
95
|
columnDef: ColumnDef<TGenerics>;
|
|
96
|
+
columnDefType: CoreColumnDefType;
|
|
95
97
|
getWidth: () => number;
|
|
96
98
|
columns: Column<TGenerics>[];
|
|
97
99
|
parent?: Column<TGenerics>;
|
|
@@ -3789,6 +3789,7 @@
|
|
|
3789
3789
|
parent: parent,
|
|
3790
3790
|
depth: depth,
|
|
3791
3791
|
columnDef: columnDef,
|
|
3792
|
+
columnDefType: columnDef.columnDefType,
|
|
3792
3793
|
columns: [],
|
|
3793
3794
|
getWidth: function getWidth() {
|
|
3794
3795
|
return instance.getColumnWidth(column.id);
|
|
@@ -4209,13 +4210,18 @@
|
|
|
4209
4210
|
return columns;
|
|
4210
4211
|
},
|
|
4211
4212
|
createDisplayColumn: function createDisplayColumn(column) {
|
|
4212
|
-
return column
|
|
4213
|
+
return _extends({}, column, {
|
|
4214
|
+
columnDefType: 'display'
|
|
4215
|
+
});
|
|
4213
4216
|
},
|
|
4214
4217
|
createGroup: function createGroup(column) {
|
|
4215
|
-
return column
|
|
4218
|
+
return _extends({}, column, {
|
|
4219
|
+
columnDefType: 'group'
|
|
4220
|
+
});
|
|
4216
4221
|
},
|
|
4217
4222
|
createDataColumn: function createDataColumn(accessor, column) {
|
|
4218
4223
|
column = _extends({}, column, {
|
|
4224
|
+
columnDefType: 'data',
|
|
4219
4225
|
id: column.id
|
|
4220
4226
|
});
|
|
4221
4227
|
|