@tanstack/svelte-table 8.0.6 → 8.0.11
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 +3 -12
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +3 -12
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/umd/index.development.js +3 -12
- 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-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":"0e43-163"},{"name":"svelte-table/src","children":[{"uid":"0e43-165","name":"placeholder.svelte"},{"uid":"0e43-167","name":"placeholder.ts"},{"uid":"0e43-169","name":"render-component.ts"},{"uid":"0e43-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"0e43-163":{"renderedLength":139119,"gzipLength":23690,"brotliLength":0,"mainUid":"0e43-162"},"0e43-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"0e43-164"},"0e43-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"0e43-166"},"0e43-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"0e43-168"},"0e43-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"0e43-170"}},"nodeMetas":{"0e43-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"0e43-163"},"imported":[],"importedBy":[{"uid":"0e43-170"}]},"0e43-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"0e43-165"},"imported":[{"uid":"0e43-172"}],"importedBy":[{"uid":"0e43-166"}]},"0e43-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"0e43-167"},"imported":[{"uid":"0e43-172"},{"uid":"0e43-164"}],"importedBy":[{"uid":"0e43-170"}]},"0e43-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"0e43-169"},"imported":[{"uid":"0e43-172"}],"importedBy":[{"uid":"0e43-170"}]},"0e43-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"0e43-171"},"imported":[{"uid":"0e43-162"},{"uid":"0e43-166"},{"uid":"0e43-172"},{"uid":"0e43-173"},{"uid":"0e43-168"}],"importedBy":[],"isEntry":true},"0e43-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"0e43-170"},{"uid":"0e43-166"},{"uid":"0e43-168"},{"uid":"0e43-164"}],"isExternal":true},"0e43-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"0e43-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
|
|
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
|
|
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
|
|
3304
|
+
newRow.subRows = recurseFilterRows(row.subRows);
|
|
3314
3305
|
row = newRow;
|
|
3315
3306
|
}
|
|
3316
3307
|
|