@tanstack/svelte-table 8.0.0-beta.9 → 8.0.3
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/svelte-table/src/index.js.map +1 -1
- package/build/cjs/svelte-table/src/render-component.js.map +1 -1
- package/build/cjs/table-core/build/esm/index.js +7 -13
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -13
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/umd/index.development.js +7 -13
- 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":"6785-163"},{"name":"svelte-table/src","children":[{"uid":"6785-165","name":"placeholder.svelte"},{"uid":"6785-167","name":"placeholder.ts"},{"uid":"6785-169","name":"render-component.ts"},{"uid":"6785-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"6785-163":{"renderedLength":139119,"gzipLength":23690,"brotliLength":0,"mainUid":"6785-162"},"6785-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"6785-164"},"6785-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"6785-166"},"6785-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"6785-168"},"6785-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"6785-170"}},"nodeMetas":{"6785-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6785-163"},"imported":[],"importedBy":[{"uid":"6785-170"}]},"6785-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"6785-165"},"imported":[{"uid":"6785-172"}],"importedBy":[{"uid":"6785-166"}]},"6785-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"6785-167"},"imported":[{"uid":"6785-172"},{"uid":"6785-164"}],"importedBy":[{"uid":"6785-170"}]},"6785-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"6785-169"},"imported":[{"uid":"6785-172"}],"importedBy":[{"uid":"6785-170"}]},"6785-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"6785-171"},"imported":[{"uid":"6785-162"},{"uid":"6785-166"},{"uid":"6785-172"},{"uid":"6785-173"},{"uid":"6785-168"}],"importedBy":[],"isEntry":true},"6785-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"6785-170"},{"uid":"6785-166"},{"uid":"6785-168"},{"uid":"6785-164"}],"isExternal":true},"6785-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"6785-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;
|
|
@@ -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) => {
|
|
@@ -2308,9 +2311,6 @@
|
|
|
2308
2311
|
const newSelectedRowsById = {}; // Filters top level and nested rows
|
|
2309
2312
|
|
|
2310
2313
|
const recurseRows = function (rows, depth) {
|
|
2311
|
-
if (depth === void 0) {
|
|
2312
|
-
depth = 0;
|
|
2313
|
-
}
|
|
2314
2314
|
|
|
2315
2315
|
return rows.map(row => {
|
|
2316
2316
|
var _row$subRows2;
|
|
@@ -2324,7 +2324,7 @@
|
|
|
2324
2324
|
|
|
2325
2325
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
2326
2326
|
row = { ...row,
|
|
2327
|
-
subRows: recurseRows(row.subRows
|
|
2327
|
+
subRows: recurseRows(row.subRows)
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
@@ -3247,9 +3247,6 @@
|
|
|
3247
3247
|
const newFilteredRowsById = {};
|
|
3248
3248
|
|
|
3249
3249
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3250
|
-
if (depth === void 0) {
|
|
3251
|
-
depth = 0;
|
|
3252
|
-
}
|
|
3253
3250
|
|
|
3254
3251
|
const rows = []; // Filter from children up first
|
|
3255
3252
|
|
|
@@ -3261,7 +3258,7 @@
|
|
|
3261
3258
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3262
3259
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3263
3260
|
newRow.columnFilters = row.columnFilters;
|
|
3264
|
-
newRow.subRows = recurseFilterRows(row.subRows
|
|
3261
|
+
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3265
3262
|
|
|
3266
3263
|
if (!newRow.subRows.length) {
|
|
3267
3264
|
continue;
|
|
@@ -3291,9 +3288,6 @@
|
|
|
3291
3288
|
const newFilteredRowsById = {}; // Filters top level and nested rows
|
|
3292
3289
|
|
|
3293
3290
|
const recurseFilterRows = function (rowsToFilter, depth) {
|
|
3294
|
-
if (depth === void 0) {
|
|
3295
|
-
depth = 0;
|
|
3296
|
-
}
|
|
3297
3291
|
|
|
3298
3292
|
// Filter from parents downward first
|
|
3299
3293
|
const rows = []; // Apply the filter to any subRows
|
|
@@ -3307,7 +3301,7 @@
|
|
|
3307
3301
|
|
|
3308
3302
|
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
|
|
3309
3303
|
const newRow = createRow(instance, row.id, row.original, row.index, row.depth);
|
|
3310
|
-
newRow.subRows = recurseFilterRows(row.subRows
|
|
3304
|
+
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3311
3305
|
row = newRow;
|
|
3312
3306
|
}
|
|
3313
3307
|
|