@tanstack/svelte-table 8.5.22 → 8.5.24

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.
@@ -2855,19 +2855,30 @@ function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
2855
2855
  for (let i = 0; i < rowsToFilter.length; i++) {
2856
2856
  var _row$subRows;
2857
2857
  let row = rowsToFilter[i];
2858
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth);
2859
+ newRow.columnFilters = row.columnFilters;
2858
2860
  if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
2859
- const newRow = createRow(table, row.id, row.original, row.index, row.depth);
2860
- newRow.columnFilters = row.columnFilters;
2861
2861
  newRow.subRows = recurseFilterRows(row.subRows);
2862
- if (!newRow.subRows.length) {
2862
+ row = newRow;
2863
+ if (filterRow(row) && !newRow.subRows.length) {
2864
+ rows.push(row);
2865
+ newFilteredRowsById[row.id] = row;
2866
+ newFilteredRowsById[i] = row;
2867
+ continue;
2868
+ }
2869
+ if (filterRow(row) || newRow.subRows.length) {
2870
+ rows.push(row);
2871
+ newFilteredRowsById[row.id] = row;
2872
+ newFilteredRowsById[i] = row;
2863
2873
  continue;
2864
2874
  }
2875
+ } else {
2865
2876
  row = newRow;
2866
- }
2867
- if (filterRow(row)) {
2868
- rows.push(row);
2869
- newFilteredRowsById[row.id] = row;
2870
- newFilteredRowsById[i] = row;
2877
+ if (filterRow(row)) {
2878
+ rows.push(row);
2879
+ newFilteredRowsById[row.id] = row;
2880
+ newFilteredRowsById[i] = row;
2881
+ }
2871
2882
  }
2872
2883
  }
2873
2884
  return rows;
@@ -3378,7 +3389,7 @@ function getPaginationRowModel(opts) {
3378
3389
  });
3379
3390
  }
3380
3391
 
3381
- /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.52.0 */
3392
+ /* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.53.1 */
3382
3393
 
3383
3394
  function create_fragment$1(ctx) {
3384
3395
  let t;