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