@tanstack/svelte-table 8.0.6 → 8.0.7

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