@tanstack/svelte-table 8.0.0-beta.9 → 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":"612e-163"},{"name":"svelte-table/src","children":[{"uid":"612e-165","name":"placeholder.svelte"},{"uid":"612e-167","name":"placeholder.ts"},{"uid":"612e-169","name":"render-component.ts"},{"uid":"612e-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"612e-163":{"renderedLength":139242,"gzipLength":23687,"brotliLength":0,"mainUid":"612e-162"},"612e-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"612e-164"},"612e-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"612e-166"},"612e-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"612e-168"},"612e-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"612e-170"}},"nodeMetas":{"612e-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"612e-163"},"imported":[],"importedBy":[{"uid":"612e-170"}]},"612e-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"612e-165"},"imported":[{"uid":"612e-172"}],"importedBy":[{"uid":"612e-166"}]},"612e-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"612e-167"},"imported":[{"uid":"612e-172"},{"uid":"612e-164"}],"importedBy":[{"uid":"612e-170"}]},"612e-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"612e-169"},"imported":[{"uid":"612e-172"}],"importedBy":[{"uid":"612e-170"}]},"612e-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"612e-171"},"imported":[{"uid":"612e-162"},{"uid":"612e-166"},{"uid":"612e-172"},{"uid":"612e-173"},{"uid":"612e-168"}],"importedBy":[],"isEntry":true},"612e-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"612e-170"},{"uid":"612e-166"},{"uid":"612e-168"},{"uid":"612e-164"}],"isExternal":true},"612e-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"612e-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":"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;
@@ -1335,7 +1335,10 @@
1335
1335
  const sum = (columnId, _leafRows, childRows) => {
1336
1336
  // It's faster to just add the aggregations together instead of
1337
1337
  // process leaf nodes individually
1338
- return childRows.reduce((sum, next) => sum + (typeof next === 'number' ? next : 0), 0);
1338
+ return childRows.reduce((sum, next) => {
1339
+ const nextValue = next.getValue(columnId);
1340
+ return sum + (typeof nextValue === 'number' ? nextValue : 0);
1341
+ }, 0);
1339
1342
  };
1340
1343
 
1341
1344
  const min = (columnId, _leafRows, childRows) => {