@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/esm/index.js
CHANGED
|
@@ -2309,9 +2309,6 @@ function selectRowsFn(instance, rowModel) {
|
|
|
2309
2309
|
const newSelectedRowsById = {}; // Filters top level and nested rows
|
|
2310
2310
|
|
|
2311
2311
|
const recurseRows = function (rows, depth) {
|
|
2312
|
-
if (depth === void 0) {
|
|
2313
|
-
depth = 0;
|
|
2314
|
-
}
|
|
2315
2312
|
|
|
2316
2313
|
return rows.map(row => {
|
|
2317
2314
|
var _row$subRows2;
|
|
@@ -2325,7 +2322,7 @@ function selectRowsFn(instance, rowModel) {
|
|
|
2325
2322
|
|
|
2326
2323
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
2327
2324
|
row = { ...row,
|
|
2328
|
-
subRows: recurseRows(row.subRows
|
|
2325
|
+
subRows: recurseRows(row.subRows)
|
|
2329
2326
|
};
|
|
2330
2327
|
}
|
|
2331
2328
|
|
|
@@ -3250,9 +3247,6 @@ function filterRowModelFromLeafs(rowsToFilter, filterRow, instance) {
|
|
|
3250
3247
|
const newFilteredRowsById = {};
|
|
3251
3248
|
|
|
3252
3249
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3253
|
-
if (depth === void 0) {
|
|
3254
|
-
depth = 0;
|
|
3255
|
-
}
|
|
3256
3250
|
|
|
3257
3251
|
const rows = []; // Filter from children up first
|
|
3258
3252
|
|
|
@@ -3264,7 +3258,7 @@ function filterRowModelFromLeafs(rowsToFilter, filterRow, instance) {
|
|
|
3264
3258
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3265
3259
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3266
3260
|
newRow.columnFilters = row.columnFilters;
|
|
3267
|
-
newRow.subRows = recurseFilterRows(row.subRows
|
|
3261
|
+
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3268
3262
|
|
|
3269
3263
|
if (!newRow.subRows.length) {
|
|
3270
3264
|
continue;
|
|
@@ -3294,9 +3288,6 @@ function filterRowModelFromRoot(rowsToFilter, filterRow, instance) {
|
|
|
3294
3288
|
const newFilteredRowsById = {}; // Filters top level and nested rows
|
|
3295
3289
|
|
|
3296
3290
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3297
|
-
if (depth === void 0) {
|
|
3298
|
-
depth = 0;
|
|
3299
|
-
}
|
|
3300
3291
|
|
|
3301
3292
|
// Filter from parents downward first
|
|
3302
3293
|
const rows = []; // Apply the filter to any subRows
|
|
@@ -3310,7 +3301,7 @@ function filterRowModelFromRoot(rowsToFilter, filterRow, instance) {
|
|
|
3310
3301
|
|
|
3311
3302
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
3312
3303
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3313
|
-
newRow.subRows = recurseFilterRows(row.subRows
|
|
3304
|
+
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3314
3305
|
row = newRow;
|
|
3315
3306
|
}
|
|
3316
3307
|
|