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