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