@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.
- package/build/cjs/table-core/build/esm/index.js +4 -1
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +4 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/umd/index.development.js +4 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/build/stats-react.json +0 -205
- package/build/types/index.d.ts +0 -11
- package/build/types/placeholder.d.ts +0 -3
- package/build/types/render-component.d.ts +0 -3
package/build/stats-html.html
CHANGED
|
@@ -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":"
|
|
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) =>
|
|
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) => {
|