@tanstack/react-table 8.2.3 → 8.2.6
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/table-core/build/esm/index.js +18 -7
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +18 -7
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/umd/index.development.js +18 -7
- 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 +2 -2
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"4039-123"},{"name":"react-table/src/index.tsx","uid":"4039-125"}]}]}],"isRoot":true},"nodeParts":{"4039-123":{"renderedLength":135108,"gzipLength":23292,"brotliLength":0,"mainUid":"4039-122"},"4039-125":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"4039-124"}},"nodeMetas":{"4039-122":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"4039-123"},"imported":[],"importedBy":[{"uid":"4039-124"}]},"4039-124":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"4039-125"},"imported":[{"uid":"4039-126"},{"uid":"4039-122"}],"importedBy":[],"isEntry":true},"4039-126":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"4039-124"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "4039-128"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "4039-130"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -25,55 +25,55 @@
|
|
|
25
25
|
"isRoot": true
|
|
26
26
|
},
|
|
27
27
|
"nodeParts": {
|
|
28
|
-
"
|
|
29
|
-
"renderedLength":
|
|
30
|
-
"gzipLength":
|
|
28
|
+
"4039-128": {
|
|
29
|
+
"renderedLength": 135108,
|
|
30
|
+
"gzipLength": 23292,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "4039-127"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"4039-130": {
|
|
35
35
|
"renderedLength": 1900,
|
|
36
36
|
"gzipLength": 752,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "4039-129"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"4039-127": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "4039-128"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "4039-129"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"4039-129": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "4039-130"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "4039-131"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "4039-127"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"4039-131": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "4039-129"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
getCanExpand: () => {
|
|
984
984
|
var _table$options$getRow, _table$options$enable, _row$subRows;
|
|
985
985
|
|
|
986
|
-
return (
|
|
986
|
+
return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
|
|
987
987
|
},
|
|
988
988
|
getToggleExpandedHandler: () => {
|
|
989
989
|
const canExpand = row.getCanExpand();
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
var _table$getCoreRowMode, _table$getCoreRowMode2;
|
|
1130
1130
|
|
|
1131
1131
|
const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null ? void 0 : (_table$getCoreRowMode2 = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode2.getValue();
|
|
1132
|
-
return typeof value === 'string';
|
|
1132
|
+
return typeof value === 'string' || typeof value === 'number';
|
|
1133
1133
|
}
|
|
1134
1134
|
};
|
|
1135
1135
|
},
|
|
@@ -2280,8 +2280,8 @@
|
|
|
2280
2280
|
const mutateRowIsSelected = (selectedRowIds, id, value, table) => {
|
|
2281
2281
|
var _row$subRows;
|
|
2282
2282
|
|
|
2283
|
-
const row = table.getRow(id);
|
|
2284
|
-
|
|
2283
|
+
const row = table.getRow(id); // const isGrouped = row.getIsGrouped()
|
|
2284
|
+
// if ( // TODO: enforce grouping row selection rules
|
|
2285
2285
|
// !isGrouped ||
|
|
2286
2286
|
// (isGrouped && table.options.enableGroupingRowSelection)
|
|
2287
2287
|
// ) {
|
|
@@ -3594,9 +3594,20 @@
|
|
|
3594
3594
|
depth = 0;
|
|
3595
3595
|
}
|
|
3596
3596
|
|
|
3597
|
-
//
|
|
3598
|
-
|
|
3599
|
-
|
|
3597
|
+
// Grouping depth has been been met
|
|
3598
|
+
// Stop grouping and simply rewrite thd depth and row relationships
|
|
3599
|
+
if (depth >= existingGrouping.length) {
|
|
3600
|
+
return rows.map(row => {
|
|
3601
|
+
row.depth = depth;
|
|
3602
|
+
groupedFlatRows.push(row);
|
|
3603
|
+
groupedRowsById[row.id] = row;
|
|
3604
|
+
|
|
3605
|
+
if (row.subRows) {
|
|
3606
|
+
row.subRows = groupUpRecursively(row.subRows, depth + 1);
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
return row;
|
|
3610
|
+
});
|
|
3600
3611
|
}
|
|
3601
3612
|
|
|
3602
3613
|
const columnId = existingGrouping[depth]; // Group the rows together for this level
|