@tanstack/react-table 8.0.4 → 8.0.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/react-table/src/index.js.map +1 -1
- package/build/cjs/table-core/build/esm/index.js +12 -3
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +12 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/umd/index.development.js +12 -3
- 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":"993a-127"},{"name":"react-table/src/index.tsx","uid":"993a-129"}]}]}],"isRoot":true},"nodeParts":{"993a-127":{"renderedLength":139321,"gzipLength":23694,"brotliLength":0,"mainUid":"993a-126"},"993a-129":{"renderedLength":2135,"gzipLength":854,"brotliLength":0,"mainUid":"993a-128"}},"nodeMetas":{"993a-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"993a-127"},"imported":[],"importedBy":[{"uid":"993a-128"}]},"993a-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"993a-129"},"imported":[{"uid":"993a-130"},{"uid":"993a-126"}],"importedBy":[],"isEntry":true},"993a-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"993a-128"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
|
@@ -2331,6 +2331,9 @@
|
|
|
2331
2331
|
const newSelectedRowsById = {}; // Filters top level and nested rows
|
|
2332
2332
|
|
|
2333
2333
|
const recurseRows = function (rows, depth) {
|
|
2334
|
+
if (depth === void 0) {
|
|
2335
|
+
depth = 0;
|
|
2336
|
+
}
|
|
2334
2337
|
|
|
2335
2338
|
return rows.map(row => {
|
|
2336
2339
|
var _row$subRows2;
|
|
@@ -2344,7 +2347,7 @@
|
|
|
2344
2347
|
|
|
2345
2348
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
2346
2349
|
row = { ...row,
|
|
2347
|
-
subRows: recurseRows(row.subRows)
|
|
2350
|
+
subRows: recurseRows(row.subRows, depth + 1)
|
|
2348
2351
|
};
|
|
2349
2352
|
}
|
|
2350
2353
|
|
|
@@ -3267,6 +3270,9 @@
|
|
|
3267
3270
|
const newFilteredRowsById = {};
|
|
3268
3271
|
|
|
3269
3272
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3273
|
+
if (depth === void 0) {
|
|
3274
|
+
depth = 0;
|
|
3275
|
+
}
|
|
3270
3276
|
|
|
3271
3277
|
const rows = []; // Filter from children up first
|
|
3272
3278
|
|
|
@@ -3278,7 +3284,7 @@
|
|
|
3278
3284
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3279
3285
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3280
3286
|
newRow.columnFilters = row.columnFilters;
|
|
3281
|
-
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3287
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
3282
3288
|
|
|
3283
3289
|
if (!newRow.subRows.length) {
|
|
3284
3290
|
continue;
|
|
@@ -3308,6 +3314,9 @@
|
|
|
3308
3314
|
const newFilteredRowsById = {}; // Filters top level and nested rows
|
|
3309
3315
|
|
|
3310
3316
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3317
|
+
if (depth === void 0) {
|
|
3318
|
+
depth = 0;
|
|
3319
|
+
}
|
|
3311
3320
|
|
|
3312
3321
|
// Filter from parents downward first
|
|
3313
3322
|
const rows = []; // Apply the filter to any subRows
|
|
@@ -3321,7 +3330,7 @@
|
|
|
3321
3330
|
|
|
3322
3331
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
3323
3332
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3324
|
-
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3333
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
3325
3334
|
row = newRow;
|
|
3326
3335
|
}
|
|
3327
3336
|
|