@shtabapp/ui-kit 1.73.0 → 1.74.0
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/CHANGELOG.md +8 -0
- package/dist/{STable-DpH_h2-n.js → STable-CToIFCiU.js} +131 -108
- package/dist/STable-Ci_3UqBz.cjs +1 -0
- package/dist/components/STable/STable.types.d.ts +8 -0
- package/dist/components/STable/STable.types.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts +3 -0
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts +3 -0
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableHeaderCell.vue.d.ts +2 -0
- package/dist/components/STable/parts/STableHeaderCell.vue.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableRowDnd.d.ts +2 -1
- package/dist/components/STable/utils/useTableRowDnd.d.ts.map +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/uikit-components.css +1 -1
- package/package.json +1 -1
- package/dist/STable-BHTC8_Gq.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [@shtabapp/ui-kit-v1.74.0](https://gitlab.com/mstikharev/shtab-ui-kit/compare/@shtabapp/ui-kit@1.73.0...@shtabapp/ui-kit@1.74.0) (2026-09-13)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **components:** reveal the sort button on hover and make drop-inside delay configurable ([5655956](https://gitlab.com/mstikharev/shtab-ui-kit/commit/5655956f3357bc8e0311925ed535aae442d12be8))
|
|
6
|
+
- **components:** s-table rowStyle prop for app-driven row inline style ([e9a991c](https://gitlab.com/mstikharev/shtab-ui-kit/commit/e9a991c0a031b2c1f0f0c373240269cc37bfec73))
|
|
7
|
+
- **components:** stable group rows honour rowStyle and expose their cells ([6efe711](https://gitlab.com/mstikharev/shtab-ui-kit/commit/6efe7111078c81b2987a4e1a2dcb78f234663742))
|
|
8
|
+
|
|
1
9
|
## [@shtabapp/ui-kit-v1.73.0](https://gitlab.com/mstikharev/shtab-ui-kit/compare/@shtabapp/ui-kit@1.72.0...@shtabapp/ui-kit@1.73.0) (2026-09-12)
|
|
2
10
|
|
|
3
11
|
### Features
|
|
@@ -596,7 +596,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
596
596
|
"data-section": W($).BODY,
|
|
597
597
|
tabindex: m.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
598
598
|
}, [m.descriptor.key === e.groupColumnKey ? (L(), C("div", {
|
|
599
|
-
key:
|
|
599
|
+
key: 1,
|
|
600
600
|
class: "s-ui-table__group-content",
|
|
601
601
|
style: P(h.value)
|
|
602
602
|
}, [B(t.$slots, "row", {}, () => [
|
|
@@ -650,7 +650,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
650
650
|
})]),
|
|
651
651
|
_: 3
|
|
652
652
|
}, 8, ["modelValue", "placement"])) : S("", !0)])
|
|
653
|
-
])], 4)) :
|
|
653
|
+
])], 4)) : B(t.$slots, "group-cell", {
|
|
654
|
+
key: 0,
|
|
655
|
+
columnKey: m.descriptor.key
|
|
656
|
+
})], 14, mt))), 128)),
|
|
654
657
|
b[4] ||= w("td", {
|
|
655
658
|
class: "s-ui-table__cell s-ui-table__filler-cell s-ui-table__group-cell",
|
|
656
659
|
role: "presentation"
|
|
@@ -706,6 +709,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
706
709
|
menuOpen: {
|
|
707
710
|
type: Boolean,
|
|
708
711
|
default: !1
|
|
712
|
+
},
|
|
713
|
+
menuEnabled: {
|
|
714
|
+
type: Boolean,
|
|
715
|
+
default: !0
|
|
709
716
|
}
|
|
710
717
|
},
|
|
711
718
|
emits: [
|
|
@@ -715,7 +722,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
715
722
|
"hide"
|
|
716
723
|
],
|
|
717
724
|
setup(e, { emit: t }) {
|
|
718
|
-
let n = t, s = ie(), { t: c } = de(), f = b(() => !!s.menu || e.descriptor.sortable || e.descriptor.hideable), p = b(() => ({
|
|
725
|
+
let n = t, s = ie(), { t: c } = de(), f = b(() => e.menuEnabled === !1 ? !1 : !!s.menu || e.descriptor.sortable || e.descriptor.hideable), p = b(() => ({
|
|
719
726
|
"s-ui-table__header-plaque--sorted": !!e.sortDirection,
|
|
720
727
|
"s-ui-table__header-plaque--sortable": e.descriptor.sortable,
|
|
721
728
|
"s-ui-table__header-plaque--align-center": e.descriptor.align === Y.CENTER,
|
|
@@ -1705,74 +1712,74 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
1705
1712
|
}
|
|
1706
1713
|
}
|
|
1707
1714
|
};
|
|
1708
|
-
}, _n = ({ tableId: e, enabled: t, dragMode: n, snapshot: r, scrollElement: i, isRowDraggable: a, dragExpandDelayMs: o,
|
|
1709
|
-
let
|
|
1715
|
+
}, _n = ({ tableId: e, enabled: t, dragMode: n, snapshot: r, scrollElement: i, isRowDraggable: a, dragExpandDelayMs: o, dragInsideDelayMs: s, isExpanded: c, onHoverExpand: l, onReorder: u, onTreeDrop: d, resolveRowPreviewTitle: f }) => {
|
|
1716
|
+
let p = /* @__PURE__ */ new Map(), m = V(), h = V(), g = V(), _ = (e) => {
|
|
1710
1717
|
if (!(e instanceof HTMLElement)) return;
|
|
1711
1718
|
let t = Number(e.dataset.index);
|
|
1712
1719
|
if (Number.isInteger(t)) return r.value.flatRows[t];
|
|
1713
|
-
},
|
|
1720
|
+
}, v = (e) => {
|
|
1714
1721
|
if (!e || !U(t) || e.kind !== Q.ROW && e.kind !== Q.GROUP) return !1;
|
|
1715
1722
|
let n = U(a);
|
|
1716
1723
|
return n ? n(e.item) !== !1 : !0;
|
|
1717
|
-
},
|
|
1724
|
+
}, y = (e, t) => {
|
|
1718
1725
|
let { getSubtreeRangeByKey: n, getRowIndexByKey: i } = r.value, a = n(e), o = i(t);
|
|
1719
1726
|
return !a || o === void 0 ? !1 : o >= a[0] && o <= a[1];
|
|
1720
|
-
},
|
|
1721
|
-
let e =
|
|
1722
|
-
e && !
|
|
1723
|
-
}, () => U(o) ?? 500, { immediate: !1 }),
|
|
1724
|
-
|
|
1725
|
-
},
|
|
1726
|
-
!(e.hasChildren || e.kind === Q.GROUP) || e.expanded ||
|
|
1727
|
-
},
|
|
1728
|
-
|
|
1729
|
-
},
|
|
1727
|
+
}, b = _e(() => {
|
|
1728
|
+
let e = x.value;
|
|
1729
|
+
e && !c(e) && l(e);
|
|
1730
|
+
}, () => U(o) ?? 500, { immediate: !1 }), x = V(), S = _e(() => {
|
|
1731
|
+
w.value = C.value;
|
|
1732
|
+
}, () => U(s) ?? 1300, { immediate: !1 }), C = V(), w = V(), T = (e) => {
|
|
1733
|
+
!(e.hasChildren || e.kind === Q.GROUP) || e.expanded || x.value !== e.key && (x.value = e.key, b.stop(), b.start());
|
|
1734
|
+
}, E = () => {
|
|
1735
|
+
b.stop(), x.value = void 0, S.stop(), C.value = void 0, w.value = void 0;
|
|
1736
|
+
}, D = (e, t, r, i) => {
|
|
1730
1737
|
if (U(n) === Pe.TREE) {
|
|
1731
1738
|
let n = t.getBoundingClientRect(), i = Ve * n.height / 2;
|
|
1732
1739
|
if (Math.abs(r - (n.top + n.height / 2)) <= i) {
|
|
1733
|
-
if (e.kind === Q.GROUP ||
|
|
1734
|
-
|
|
1735
|
-
} else
|
|
1740
|
+
if (e.kind === Q.GROUP || w.value === e.key) return Fe.CHILD;
|
|
1741
|
+
C.value !== e.key && (C.value = e.key, S.stop(), S.start());
|
|
1742
|
+
} else C.value === e.key && (S.stop(), C.value = void 0, w.value = void 0);
|
|
1736
1743
|
}
|
|
1737
1744
|
return i === "top" ? Fe.BEFORE : Fe.AFTER;
|
|
1738
|
-
},
|
|
1745
|
+
}, O, k = (e) => {
|
|
1739
1746
|
[e, ...e.querySelectorAll("[id], [tabindex]")].forEach((e) => {
|
|
1740
1747
|
e.removeAttribute("id"), e.removeAttribute("tabindex");
|
|
1741
1748
|
});
|
|
1742
|
-
},
|
|
1749
|
+
}, A = (e) => {
|
|
1743
1750
|
let t = e.querySelector(".s-ui-table__cell--primary .s-ui-table__cell-body, .s-ui-table__cell--primary .s-ui-table__group-content"), n = t?.closest("td");
|
|
1744
1751
|
return t && n ? {
|
|
1745
1752
|
content: t,
|
|
1746
1753
|
cell: n
|
|
1747
1754
|
} : void 0;
|
|
1748
|
-
},
|
|
1755
|
+
}, j = (e, t) => {
|
|
1749
1756
|
let n = document.createElement("div");
|
|
1750
1757
|
n.className = "s-ui-table__row-drag-preview", n.setAttribute("aria-hidden", "true");
|
|
1751
|
-
let r =
|
|
1752
|
-
if (!r) return n.textContent = t ?
|
|
1758
|
+
let r = A(e);
|
|
1759
|
+
if (!r) return n.textContent = t ? f(t) : "", n;
|
|
1753
1760
|
let i = r.content.cloneNode(!0);
|
|
1754
|
-
return i instanceof Element &&
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1760
|
-
|
|
1761
|
-
},
|
|
1762
|
-
document.removeEventListener("dragover",
|
|
1763
|
-
},
|
|
1761
|
+
return i instanceof Element && k(i), n.style.inlineSize = `${Math.round(r.cell.getBoundingClientRect().width)}px`, n.appendChild(i), n;
|
|
1762
|
+
}, M = (e, t) => {
|
|
1763
|
+
O && (O.style.transform = `translate(${e + 8}px, ${t + 8}px)`);
|
|
1764
|
+
}, ee = (e) => {
|
|
1765
|
+
M(e.clientX, e.clientY);
|
|
1766
|
+
}, N = (e, t, n) => {
|
|
1767
|
+
P(), O = document.createElement("div"), O.className = "s-ui-table__row-drag-layer", O.appendChild(e), document.body.appendChild(O), document.addEventListener("dragover", ee), M(t, n);
|
|
1768
|
+
}, P = () => {
|
|
1769
|
+
document.removeEventListener("dragover", ee), O?.remove(), O = void 0;
|
|
1770
|
+
}, I = (t) => {
|
|
1764
1771
|
if (!(t instanceof HTMLElement)) {
|
|
1765
|
-
|
|
1766
|
-
t.isConnected || (e(),
|
|
1772
|
+
p.forEach((e, t) => {
|
|
1773
|
+
t.isConnected || (e(), p.delete(t));
|
|
1767
1774
|
});
|
|
1768
1775
|
return;
|
|
1769
1776
|
}
|
|
1770
|
-
if (
|
|
1777
|
+
if (p.has(t)) return;
|
|
1771
1778
|
let n = q(xe({
|
|
1772
1779
|
element: t,
|
|
1773
|
-
canDrag: () => _(
|
|
1780
|
+
canDrag: () => v(_(t)),
|
|
1774
1781
|
getInitialData: () => {
|
|
1775
|
-
let n =
|
|
1782
|
+
let n = _(t);
|
|
1776
1783
|
return {
|
|
1777
1784
|
type: ln,
|
|
1778
1785
|
tableId: e,
|
|
@@ -1781,94 +1788,94 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
1781
1788
|
};
|
|
1782
1789
|
},
|
|
1783
1790
|
onGenerateDragPreview: ({ nativeSetDragImage: e, location: n }) => {
|
|
1784
|
-
let r =
|
|
1785
|
-
Oe({ nativeSetDragImage: e }),
|
|
1791
|
+
let r = j(t, _(t)), { clientX: i, clientY: a } = n.current.input;
|
|
1792
|
+
Oe({ nativeSetDragImage: e }), N(r, i, a);
|
|
1786
1793
|
},
|
|
1787
1794
|
onDragStart: () => {
|
|
1788
|
-
|
|
1795
|
+
m.value = _(t)?.key, g.value = void 0;
|
|
1789
1796
|
},
|
|
1790
1797
|
onDrop: () => {
|
|
1791
|
-
|
|
1798
|
+
m.value = void 0, h.value = void 0, E(), P();
|
|
1792
1799
|
}
|
|
1793
1800
|
}), Se({
|
|
1794
1801
|
element: t,
|
|
1795
1802
|
canDrop: ({ source: n }) => {
|
|
1796
1803
|
if (!dn(n.data, e)) return !1;
|
|
1797
|
-
let r =
|
|
1798
|
-
return !r || r.key === n.data.rowKey ? !1 : !
|
|
1804
|
+
let r = _(t);
|
|
1805
|
+
return !r || r.key === n.data.rowKey ? !1 : !y(n.data.rowKey, r.key);
|
|
1799
1806
|
},
|
|
1800
|
-
getData: ({ input: e, element: t }) => Ee({ rowKey:
|
|
1807
|
+
getData: ({ input: e, element: t }) => Ee({ rowKey: _(t)?.key ?? "" }, {
|
|
1801
1808
|
input: e,
|
|
1802
1809
|
element: t,
|
|
1803
1810
|
allowedEdges: ["top", "bottom"]
|
|
1804
1811
|
}),
|
|
1805
1812
|
onDrag: ({ self: e, location: n }) => {
|
|
1806
|
-
let r =
|
|
1813
|
+
let r = _(t);
|
|
1807
1814
|
if (!r) return;
|
|
1808
|
-
|
|
1809
|
-
let i = De(e.data), a = i === "top" || i === "bottom" ? i : null, o =
|
|
1810
|
-
(c?.targetKey !== r.key || c.action !== o || c.depth !== s) && (
|
|
1815
|
+
T(r);
|
|
1816
|
+
let i = De(e.data), a = i === "top" || i === "bottom" ? i : null, o = D(r, t, n.current.input.clientY, a), s = o === Fe.CHILD ? r.depth + 1 : r.depth, c = h.value;
|
|
1817
|
+
(c?.targetKey !== r.key || c.action !== o || c.depth !== s) && (h.value = {
|
|
1811
1818
|
targetKey: r.key,
|
|
1812
1819
|
action: o,
|
|
1813
1820
|
depth: s
|
|
1814
|
-
}),
|
|
1821
|
+
}), g.value = {
|
|
1815
1822
|
targetKey: r.key,
|
|
1816
1823
|
action: o,
|
|
1817
1824
|
depth: s
|
|
1818
1825
|
};
|
|
1819
1826
|
},
|
|
1820
1827
|
onDragLeave: () => {
|
|
1821
|
-
let e =
|
|
1822
|
-
|
|
1828
|
+
let e = _(t);
|
|
1829
|
+
h.value?.targetKey === e?.key && (h.value = void 0), x.value === e?.key && (b.stop(), x.value = void 0);
|
|
1823
1830
|
}
|
|
1824
1831
|
}));
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1832
|
+
p.set(t, n);
|
|
1833
|
+
}, L = Ce({
|
|
1827
1834
|
canMonitor: ({ source: t }) => dn(t.data, e),
|
|
1828
1835
|
onDrop: ({ source: t, location: i }) => {
|
|
1829
|
-
let a =
|
|
1830
|
-
if (
|
|
1831
|
-
let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey),
|
|
1832
|
-
if (!f || !
|
|
1836
|
+
let a = g.value;
|
|
1837
|
+
if (g.value = void 0, m.value = void 0, h.value = void 0, E(), !i.current.dropTargets[0] || !a || !dn(t.data, e)) return;
|
|
1838
|
+
let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey), l = s(a.targetKey), f = c === void 0 ? void 0 : o[c], p = l === void 0 ? void 0 : o[l];
|
|
1839
|
+
if (!f || !p || f.key === p.key || y(f.key, p.key)) return;
|
|
1833
1840
|
if (U(n) === Pe.FLAT) {
|
|
1834
1841
|
if (a.action === Fe.CHILD) return;
|
|
1835
|
-
|
|
1842
|
+
u({
|
|
1836
1843
|
action: a.action,
|
|
1837
1844
|
sourceKey: f.key,
|
|
1838
1845
|
sourceItem: f.item,
|
|
1839
|
-
targetKey:
|
|
1840
|
-
targetItem:
|
|
1846
|
+
targetKey: p.key,
|
|
1847
|
+
targetItem: p.item,
|
|
1841
1848
|
sourceIndex: f.index,
|
|
1842
|
-
targetIndex:
|
|
1849
|
+
targetIndex: p.index
|
|
1843
1850
|
});
|
|
1844
1851
|
return;
|
|
1845
1852
|
}
|
|
1846
|
-
let _ = a.action === Fe.CHILD,
|
|
1847
|
-
|
|
1853
|
+
let _ = a.action === Fe.CHILD, v = _ ? p.key : p.parentKey, b = v === void 0 ? void 0 : s(v), x = b === void 0 ? void 0 : o[b];
|
|
1854
|
+
d({
|
|
1848
1855
|
action: a.action,
|
|
1849
1856
|
sourceKey: f.key,
|
|
1850
1857
|
sourceItem: f.item,
|
|
1851
|
-
targetKey:
|
|
1852
|
-
targetItem:
|
|
1853
|
-
parentKey:
|
|
1858
|
+
targetKey: p.key,
|
|
1859
|
+
targetItem: p.item,
|
|
1860
|
+
parentKey: v,
|
|
1854
1861
|
parentItem: x?.item,
|
|
1855
|
-
depth: _ ?
|
|
1862
|
+
depth: _ ? p.depth + 1 : p.depth
|
|
1856
1863
|
});
|
|
1857
1864
|
}
|
|
1858
|
-
}),
|
|
1865
|
+
}), R;
|
|
1859
1866
|
return G(i, (t) => {
|
|
1860
|
-
|
|
1867
|
+
R?.(), R = void 0, t && (R = ke({
|
|
1861
1868
|
element: t,
|
|
1862
1869
|
canScroll: ({ source: t }) => dn(t.data, e)
|
|
1863
1870
|
}));
|
|
1864
1871
|
}, { immediate: !0 }), F(() => {
|
|
1865
|
-
|
|
1872
|
+
L(), R?.(), P(), p.forEach((e) => {
|
|
1866
1873
|
e();
|
|
1867
|
-
}),
|
|
1874
|
+
}), p.clear();
|
|
1868
1875
|
}), {
|
|
1869
|
-
registerRowElement:
|
|
1870
|
-
draggingRowKey:
|
|
1871
|
-
dropIndicator:
|
|
1876
|
+
registerRowElement: I,
|
|
1877
|
+
draggingRowKey: m,
|
|
1878
|
+
dropIndicator: h
|
|
1872
1879
|
};
|
|
1873
1880
|
}, vn = ({ flatRows: e, virtualEnabled: t, windowIndexes: n, uiTotalSize: r, getRowUiOffset: i, activeGroupRowIndex: a, activeDepthFooterRowIndexes: o, leavingDepthFooterRowIndex: s, slidingDepthFooterRowIndexes: c, farDepthFooterRowIndexes: l, activeRowIndex: u }) => {
|
|
1874
1881
|
let d = b(() => {
|
|
@@ -2579,6 +2586,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2579
2586
|
rowsDragMode: {},
|
|
2580
2587
|
isRowDraggable: { type: Function },
|
|
2581
2588
|
dragExpandDelayMs: { default: () => 500 },
|
|
2589
|
+
dragInsideDelayMs: { default: () => He },
|
|
2582
2590
|
columnsResizable: {
|
|
2583
2591
|
type: Boolean,
|
|
2584
2592
|
default: !0
|
|
@@ -2587,6 +2595,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2587
2595
|
type: Boolean,
|
|
2588
2596
|
default: !0
|
|
2589
2597
|
},
|
|
2598
|
+
columnMenu: {
|
|
2599
|
+
type: Boolean,
|
|
2600
|
+
default: !0
|
|
2601
|
+
},
|
|
2590
2602
|
scrollSeekPlaceholders: {
|
|
2591
2603
|
type: Boolean,
|
|
2592
2604
|
default: !0
|
|
@@ -2736,6 +2748,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2736
2748
|
scrollElement: te,
|
|
2737
2749
|
isRowDraggable: () => e.isRowDraggable,
|
|
2738
2750
|
dragExpandDelayMs: () => e.dragExpandDelayMs,
|
|
2751
|
+
dragInsideDelayMs: () => e.dragInsideDelayMs,
|
|
2739
2752
|
isExpanded: (e) => p.value.includes(e),
|
|
2740
2753
|
onHoverExpand: (e) => {
|
|
2741
2754
|
xe(e);
|
|
@@ -3048,50 +3061,52 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3048
3061
|
style: P({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
|
|
3049
3062
|
}, null, 4))), 128))
|
|
3050
3063
|
]),
|
|
3051
|
-
w("thead", Rn, [w("tr", zn, [(L(!0), C(y, null, z(W(Ee), ({ key:
|
|
3064
|
+
w("thead", Rn, [w("tr", zn, [(L(!0), C(y, null, z(W(Ee), ({ key: s, descriptor: c }) => (L(), C(y, { key: s }, [c ? (L(), C("th", {
|
|
3052
3065
|
key: 1,
|
|
3053
3066
|
id: pr({
|
|
3054
3067
|
section: W($).HEADER,
|
|
3055
|
-
columnKey:
|
|
3068
|
+
columnKey: c.key
|
|
3056
3069
|
}),
|
|
3057
3070
|
ref_for: !0,
|
|
3058
|
-
ref: (e) => ut(e,
|
|
3059
|
-
class: N(["s-ui-table__header-cell", [W(Oe)(
|
|
3060
|
-
style: P(W(De)(
|
|
3061
|
-
"data-column-key":
|
|
3071
|
+
ref: (e) => ut(e, c.key),
|
|
3072
|
+
class: N(["s-ui-table__header-cell", [W(Oe)(c), { "s-ui-table__header-cell--dragging": W(st) === c.key }]]),
|
|
3073
|
+
style: P(W(De)(c)),
|
|
3074
|
+
"data-column-key": c.key,
|
|
3062
3075
|
"data-section": W($).HEADER,
|
|
3063
|
-
"aria-colindex":
|
|
3064
|
-
"aria-sort": W(Ft)(
|
|
3065
|
-
tabindex: yr(W($).HEADER, void 0,
|
|
3076
|
+
"aria-colindex": c.colIndex,
|
|
3077
|
+
"aria-sort": W(Ft)(c),
|
|
3078
|
+
tabindex: yr(W($).HEADER, void 0, c.key),
|
|
3066
3079
|
scope: "col"
|
|
3067
|
-
}, [
|
|
3080
|
+
}, [c.column ? (L(), x(Dt, {
|
|
3068
3081
|
key: 0,
|
|
3069
|
-
descriptor:
|
|
3070
|
-
"sort-direction": W(At)(
|
|
3071
|
-
"sort-index": W(jt)(
|
|
3072
|
-
"menu-
|
|
3073
|
-
"
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3082
|
+
descriptor: c,
|
|
3083
|
+
"sort-direction": W(At)(c.key),
|
|
3084
|
+
"sort-index": W(jt)(c.key),
|
|
3085
|
+
"menu-enabled": e.columnMenu,
|
|
3086
|
+
"menu-open": Lt.value === c.key,
|
|
3087
|
+
"onUpdate:menuOpen": (e) => Rt(c.key, e),
|
|
3088
|
+
onSortToggle: (e) => W(Nt)(c.key, e),
|
|
3089
|
+
onSortSet: (e) => W(Pt)(c.key, e),
|
|
3090
|
+
onHide: (e) => qt(c.key)
|
|
3091
|
+
}, T({ _: 2 }, [W(F)[`header:${c.key}`] ? {
|
|
3078
3092
|
name: "default",
|
|
3079
|
-
fn: K(() => [B(t.$slots, `header:${
|
|
3093
|
+
fn: K(() => [B(t.$slots, `header:${c.key}`, M({ ref_for: !0 }, W(It)(c)))]),
|
|
3080
3094
|
key: "0"
|
|
3081
|
-
} : void 0, W(F)[`header-menu:${
|
|
3095
|
+
} : void 0, W(F)[`header-menu:${c.key}`] ? {
|
|
3082
3096
|
name: "menu",
|
|
3083
|
-
fn: K(() => [B(t.$slots, `header-menu:${
|
|
3097
|
+
fn: K(() => [B(t.$slots, `header-menu:${c.key}`, M({ ref_for: !0 }, W(It)(c)))]),
|
|
3084
3098
|
key: "1"
|
|
3085
3099
|
} : void 0]), 1032, [
|
|
3086
3100
|
"descriptor",
|
|
3087
3101
|
"sort-direction",
|
|
3088
3102
|
"sort-index",
|
|
3103
|
+
"menu-enabled",
|
|
3089
3104
|
"menu-open",
|
|
3090
3105
|
"onUpdate:menuOpen",
|
|
3091
3106
|
"onSortToggle",
|
|
3092
3107
|
"onSortSet",
|
|
3093
3108
|
"onHide"
|
|
3094
|
-
])) :
|
|
3109
|
+
])) : c.service === W(qe).CHECKBOX ? (L(), x(We, {
|
|
3095
3110
|
key: 1,
|
|
3096
3111
|
class: N(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": W(Yt) !== W(Z).UNCHECKED }]),
|
|
3097
3112
|
"model-value": W(Yt) === W(Z).CHECKED,
|
|
@@ -3103,7 +3118,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3103
3118
|
"model-value",
|
|
3104
3119
|
"indeterminate",
|
|
3105
3120
|
"screen-reader-label"
|
|
3106
|
-
])) :
|
|
3121
|
+
])) : c.service === W(qe).COLUMNS_MANAGER ? (L(), C("div", Hn, [D(W(u), {
|
|
3107
3122
|
modelValue: Bt.value,
|
|
3108
3123
|
"onUpdate:modelValue": n[1] ||= (e) => Bt.value = e,
|
|
3109
3124
|
placement: W(l).BOTTOM_END,
|
|
@@ -3161,16 +3176,16 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3161
3176
|
_: 3
|
|
3162
3177
|
})]),
|
|
3163
3178
|
_: 3
|
|
3164
|
-
}, 8, ["modelValue", "placement"])])) : S("", !0),
|
|
3179
|
+
}, 8, ["modelValue", "placement"])])) : S("", !0), c.resizable ? (L(), C("span", {
|
|
3165
3180
|
key: 3,
|
|
3166
|
-
class: N(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": W(tt) ===
|
|
3181
|
+
class: N(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": W(tt) === c.key }]),
|
|
3167
3182
|
role: "separator",
|
|
3168
3183
|
"aria-orientation": "vertical",
|
|
3169
3184
|
"aria-label": W(I)("table.resizeColumn"),
|
|
3170
3185
|
tabindex: "-1",
|
|
3171
|
-
onPointerdown: (e) => W(nt)(e,
|
|
3172
|
-
onKeydown: (e) => W(rt)(e,
|
|
3173
|
-
onDblclick: (e) => W(it)(
|
|
3186
|
+
onPointerdown: (e) => W(nt)(e, c.key),
|
|
3187
|
+
onKeydown: (e) => W(rt)(e, c.key),
|
|
3188
|
+
onDblclick: (e) => W(it)(c.key),
|
|
3174
3189
|
onClick: n[2] ||= oe(() => {}, ["stop"])
|
|
3175
3190
|
}, null, 42, Gn)) : S("", !0)], 14, Vn)) : (L(), C("th", Bn))], 64))), 128))])]),
|
|
3176
3191
|
w("tbody", Kn, [
|
|
@@ -3231,15 +3246,23 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3231
3246
|
fn: K(() => [B(t.$slots, "group-row", M({ ref_for: !0 }, ar(n)))]),
|
|
3232
3247
|
key: "1"
|
|
3233
3248
|
} : void 0,
|
|
3249
|
+
W(F)["group-cell"] ? {
|
|
3250
|
+
name: "group-cell",
|
|
3251
|
+
fn: K((e) => [B(t.$slots, "group-cell", M({ ref_for: !0 }, {
|
|
3252
|
+
...ar(n),
|
|
3253
|
+
...e
|
|
3254
|
+
}))]),
|
|
3255
|
+
key: "2"
|
|
3256
|
+
} : void 0,
|
|
3234
3257
|
W(F)["group-title"] ? {
|
|
3235
3258
|
name: "title",
|
|
3236
3259
|
fn: K(() => [B(t.$slots, "group-title", M({ ref_for: !0 }, ar(n)))]),
|
|
3237
|
-
key: "
|
|
3260
|
+
key: "3"
|
|
3238
3261
|
} : void 0,
|
|
3239
3262
|
W(F)["group-actions"] ? {
|
|
3240
3263
|
name: "actions",
|
|
3241
3264
|
fn: K(() => [B(t.$slots, "group-actions", M({ ref_for: !0 }, ar(n)))]),
|
|
3242
|
-
key: "
|
|
3265
|
+
key: "4"
|
|
3243
3266
|
} : void 0
|
|
3244
3267
|
]), 1032, [
|
|
3245
3268
|
"id",
|