@tanstack/react-table 8.5.21 → 8.5.24
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 +20 -9
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +20 -9
- 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 +20 -9
- 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
|
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
|
|
|
4024
4024
|
</script>
|
|
4025
4025
|
<script>
|
|
4026
4026
|
/*<!--*/
|
|
4027
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"b3a1-127"},{"name":"react-table/src/index.tsx","uid":"b3a1-129"}]}]}],"isRoot":true},"nodeParts":{"b3a1-127":{"renderedLength":126544,"gzipLength":22417,"brotliLength":0,"mainUid":"b3a1-126"},"b3a1-129":{"renderedLength":1923,"gzipLength":755,"brotliLength":0,"mainUid":"b3a1-128"}},"nodeMetas":{"b3a1-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"b3a1-127"},"imported":[],"importedBy":[{"uid":"b3a1-128"}]},"b3a1-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"b3a1-129"},"imported":[{"uid":"b3a1-130"},{"uid":"b3a1-126"}],"importedBy":[],"isEntry":true},"b3a1-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b3a1-128"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4028
4028
|
|
|
4029
4029
|
const run = () => {
|
|
4030
4030
|
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": "b3a1-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "b3a1-134"
|
|
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
|
+
"b3a1-132": {
|
|
29
|
+
"renderedLength": 126544,
|
|
30
|
+
"gzipLength": 22417,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "b3a1-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"b3a1-134": {
|
|
35
35
|
"renderedLength": 1923,
|
|
36
36
|
"gzipLength": 755,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "b3a1-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"b3a1-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "b3a1-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "b3a1-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"b3a1-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "b3a1-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "b3a1-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "b3a1-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"b3a1-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "b3a1-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -2876,19 +2876,30 @@
|
|
|
2876
2876
|
for (let i = 0; i < rowsToFilter.length; i++) {
|
|
2877
2877
|
var _row$subRows;
|
|
2878
2878
|
let row = rowsToFilter[i];
|
|
2879
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2880
|
+
newRow.columnFilters = row.columnFilters;
|
|
2879
2881
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
2880
|
-
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2881
|
-
newRow.columnFilters = row.columnFilters;
|
|
2882
2882
|
newRow.subRows = recurseFilterRows(row.subRows);
|
|
2883
|
-
|
|
2883
|
+
row = newRow;
|
|
2884
|
+
if (filterRow(row) && !newRow.subRows.length) {
|
|
2885
|
+
rows.push(row);
|
|
2886
|
+
newFilteredRowsById[row.id] = row;
|
|
2887
|
+
newFilteredRowsById[i] = row;
|
|
2888
|
+
continue;
|
|
2889
|
+
}
|
|
2890
|
+
if (filterRow(row) || newRow.subRows.length) {
|
|
2891
|
+
rows.push(row);
|
|
2892
|
+
newFilteredRowsById[row.id] = row;
|
|
2893
|
+
newFilteredRowsById[i] = row;
|
|
2884
2894
|
continue;
|
|
2885
2895
|
}
|
|
2896
|
+
} else {
|
|
2886
2897
|
row = newRow;
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2898
|
+
if (filterRow(row)) {
|
|
2899
|
+
rows.push(row);
|
|
2900
|
+
newFilteredRowsById[row.id] = row;
|
|
2901
|
+
newFilteredRowsById[i] = row;
|
|
2902
|
+
}
|
|
2892
2903
|
}
|
|
2893
2904
|
}
|
|
2894
2905
|
return rows;
|
|
@@ -3315,7 +3326,7 @@
|
|
|
3315
3326
|
if (!previous) {
|
|
3316
3327
|
map.set(resKey, [row]);
|
|
3317
3328
|
} else {
|
|
3318
|
-
|
|
3329
|
+
previous.push(row);
|
|
3319
3330
|
}
|
|
3320
3331
|
return map;
|
|
3321
3332
|
}, groupMap);
|