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