@tanstack/svelte-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.
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"edd0-163"},{"name":"svelte-table/src","children":[{"uid":"edd0-165","name":"placeholder.svelte"},{"uid":"edd0-167","name":"placeholder.ts"},{"uid":"edd0-169","name":"render-component.ts"},{"uid":"edd0-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"edd0-163":{"renderedLength":139119,"gzipLength":23690,"brotliLength":0,"mainUid":"edd0-162"},"edd0-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"edd0-164"},"edd0-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"edd0-166"},"edd0-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"edd0-168"},"edd0-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"edd0-170"}},"nodeMetas":{"edd0-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"edd0-163"},"imported":[],"importedBy":[{"uid":"edd0-170"}]},"edd0-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"edd0-165"},"imported":[{"uid":"edd0-172"}],"importedBy":[{"uid":"edd0-166"}]},"edd0-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"edd0-167"},"imported":[{"uid":"edd0-172"},{"uid":"edd0-164"}],"importedBy":[{"uid":"edd0-170"}]},"edd0-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"edd0-169"},"imported":[{"uid":"edd0-172"}],"importedBy":[{"uid":"edd0-170"}]},"edd0-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"edd0-171"},"imported":[{"uid":"edd0-162"},{"uid":"edd0-166"},{"uid":"edd0-172"},{"uid":"edd0-173"},{"uid":"edd0-168"}],"importedBy":[],"isEntry":true},"edd0-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"edd0-170"},{"uid":"edd0-166"},{"uid":"edd0-168"},{"uid":"edd0-164"}],"isExternal":true},"edd0-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"edd0-170"}],"isExternal":true}},"env":{"rollup":"2.75.7"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"993a-163"},{"name":"svelte-table/src","children":[{"uid":"993a-165","name":"placeholder.svelte"},{"uid":"993a-167","name":"placeholder.ts"},{"uid":"993a-169","name":"render-component.ts"},{"uid":"993a-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"993a-163":{"renderedLength":139323,"gzipLength":23697,"brotliLength":0,"mainUid":"993a-162"},"993a-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"993a-164"},"993a-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"993a-166"},"993a-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"993a-168"},"993a-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"993a-170"}},"nodeMetas":{"993a-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"993a-163"},"imported":[],"importedBy":[{"uid":"993a-170"}]},"993a-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"993a-165"},"imported":[{"uid":"993a-172"}],"importedBy":[{"uid":"993a-166"}]},"993a-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"993a-167"},"imported":[{"uid":"993a-172"},{"uid":"993a-164"}],"importedBy":[{"uid":"993a-170"}]},"993a-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"993a-169"},"imported":[{"uid":"993a-172"}],"importedBy":[{"uid":"993a-170"}]},"993a-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"993a-171"},"imported":[{"uid":"993a-162"},{"uid":"993a-166"},{"uid":"993a-172"},{"uid":"993a-173"},{"uid":"993a-168"}],"importedBy":[],"isEntry":true},"993a-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"993a-170"},{"uid":"993a-166"},{"uid":"993a-168"},{"uid":"993a-164"}],"isExternal":true},"993a-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"993a-170"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
@@ -2311,6 +2311,9 @@
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 @@
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
 
@@ -3247,6 +3250,9 @@
3247
3250
  const newFilteredRowsById = {};
3248
3251
 
3249
3252
  const recurseFilterRows = function (rowsToFilter, depth) {
3253
+ if (depth === void 0) {
3254
+ depth = 0;
3255
+ }
3250
3256
 
3251
3257
  const rows = []; // Filter from children up first
3252
3258
 
@@ -3258,7 +3264,7 @@
3258
3264
  if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3259
3265
  const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
3260
3266
  newRow.columnFilters = row.columnFilters;
3261
- newRow.subRows = recurseFilterRows(row.subRows);
3267
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
3262
3268
 
3263
3269
  if (!newRow.subRows.length) {
3264
3270
  continue;
@@ -3288,6 +3294,9 @@
3288
3294
  const newFilteredRowsById = {}; // Filters top level and nested rows
3289
3295
 
3290
3296
  const recurseFilterRows = function (rowsToFilter, depth) {
3297
+ if (depth === void 0) {
3298
+ depth = 0;
3299
+ }
3291
3300
 
3292
3301
  // Filter from parents downward first
3293
3302
  const rows = []; // Apply the filter to any subRows
@@ -3301,7 +3310,7 @@
3301
3310
 
3302
3311
  if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
3303
3312
  const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
3304
- newRow.subRows = recurseFilterRows(row.subRows);
3313
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
3305
3314
  row = newRow;
3306
3315
  }
3307
3316