@tanstack/svelte-table 8.0.0-alpha.74 → 8.0.0-alpha.76
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 +8 -4
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +8 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +36 -36
- package/build/umd/index.development.js +8 -4
- 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 +4 -4
package/build/esm/index.js
CHANGED
|
@@ -2714,8 +2714,10 @@ const Headers = {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
}),
|
|
2716
2716
|
getLeftHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.left], (allColumns, leafColumns, left) => {
|
|
2717
|
-
|
|
2718
|
-
|
|
2717
|
+
var _left$map$filter;
|
|
2718
|
+
|
|
2719
|
+
const orderedLeafColumns = (_left$map$filter = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
|
|
2720
|
+
return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'left');
|
|
2719
2721
|
}, {
|
|
2720
2722
|
key: process.env.NODE_ENV === 'development' && 'getLeftHeaderGroups',
|
|
2721
2723
|
debug: () => {
|
|
@@ -2725,8 +2727,10 @@ const Headers = {
|
|
|
2725
2727
|
}
|
|
2726
2728
|
}),
|
|
2727
2729
|
getRightHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.right], (allColumns, leafColumns, right) => {
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
+
var _right$map$filter;
|
|
2731
|
+
|
|
2732
|
+
const orderedLeafColumns = (_right$map$filter = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
|
|
2733
|
+
return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'right');
|
|
2730
2734
|
}, {
|
|
2731
2735
|
key: process.env.NODE_ENV === 'development' && 'getRightHeaderGroups',
|
|
2732
2736
|
debug: () => {
|