@dolanske/vui 1.14.8 → 1.14.10
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/dist/src/components/Carousel/Carousel.vue.d.ts +6 -0
- package/dist/src/components/Resizable/Resizable.vue.d.ts +4 -0
- package/dist/src/components/ResizableView/ResizableView.vue.d.ts +69 -0
- package/dist/src/components/ResizableView/ViewPanel.vue.d.ts +77 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/vui.css +1 -1
- package/dist/vui.js +388 -169
- package/package.json +1 -1
package/dist/vui.js
CHANGED
|
@@ -10870,21 +10870,22 @@ var wd = /* @__PURE__ */ v({
|
|
|
10870
10870
|
gap: { default: "s" },
|
|
10871
10871
|
hideScrollbar: { type: Boolean },
|
|
10872
10872
|
hideShadows: { type: Boolean },
|
|
10873
|
-
snap: { type: Boolean }
|
|
10873
|
+
snap: { type: Boolean },
|
|
10874
|
+
disableDrag: { type: Boolean }
|
|
10874
10875
|
},
|
|
10875
10876
|
setup(e) {
|
|
10876
10877
|
let t = J("carouselWrap"), n = c(() => t.value?.$el), { x: r } = gn(n), i = B(!1), a = B(!1), o = B(0), s = B(0);
|
|
10877
|
-
return Z(n, "pointerdown", (
|
|
10878
|
-
if (e.button !== 0 &&
|
|
10879
|
-
let t = n.value;
|
|
10880
|
-
t && (a.value = !1, i.value = !0, o.value = e.clientX, s.value = t.scrollLeft);
|
|
10881
|
-
}), Z(n, "pointermove", (e) => {
|
|
10882
|
-
if (!i.value) return;
|
|
10883
|
-
let t = o.value - e.clientX;
|
|
10884
|
-
if (!a.value && Math.abs(t) < Nd) return;
|
|
10885
|
-
a.value || n.value?.setPointerCapture(e.pointerId), a.value = !0;
|
|
10878
|
+
return Z(n, "pointerdown", (t) => {
|
|
10879
|
+
if (e.disableDrag || t.button !== 0 && t.pointerType === "mouse") return;
|
|
10886
10880
|
let r = n.value;
|
|
10887
|
-
r && (
|
|
10881
|
+
r && (a.value = !1, i.value = !0, o.value = t.clientX, s.value = r.scrollLeft);
|
|
10882
|
+
}), Z(n, "pointermove", (t) => {
|
|
10883
|
+
if (e.disableDrag || !i.value) return;
|
|
10884
|
+
let r = o.value - t.clientX;
|
|
10885
|
+
if (!a.value && Math.abs(r) < Nd) return;
|
|
10886
|
+
a.value || n.value?.setPointerCapture(t.pointerId), a.value = !0;
|
|
10887
|
+
let c = n.value;
|
|
10888
|
+
c && (c.scrollLeft = s.value + r);
|
|
10888
10889
|
}), Z(n, "pointerup", () => {
|
|
10889
10890
|
i.value = !1;
|
|
10890
10891
|
}), Z(n, "pointercancel", () => {
|
|
@@ -10898,6 +10899,7 @@ var wd = /* @__PURE__ */ v({
|
|
|
10898
10899
|
}), (t, a) => (R(), d("div", { class: M(["overflow is-horizontal carousel", {
|
|
10899
10900
|
"hide-scrollbar": e.hideScrollbar,
|
|
10900
10901
|
"hide-shadows": e.hideShadows,
|
|
10902
|
+
"no-drag": e.disableDrag,
|
|
10901
10903
|
"is-snap": e.snap
|
|
10902
10904
|
}]) }, [f("div", Md, [
|
|
10903
10905
|
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: q(r) > 0 }]) }, null, 2),
|
|
@@ -14782,7 +14784,8 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14782
14784
|
__name: "Resizable",
|
|
14783
14785
|
props: {
|
|
14784
14786
|
vertical: { type: Boolean },
|
|
14785
|
-
storageKey: {}
|
|
14787
|
+
storageKey: {},
|
|
14788
|
+
hideHandles: { type: Boolean }
|
|
14786
14789
|
},
|
|
14787
14790
|
setup(e) {
|
|
14788
14791
|
let t = e, r = me(), i = J("resizableRef"), a = kn(r.default), o = B(-1), s = t.storageKey ? ln(t.storageKey, []) : B([]), { left: c, right: p, width: m, top: h, bottom: g } = mn(i);
|
|
@@ -14820,7 +14823,10 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14820
14823
|
}
|
|
14821
14824
|
return (e, r) => (R(), d("div", {
|
|
14822
14825
|
ref: "resizableRef",
|
|
14823
|
-
class: M(["vui-resizable", {
|
|
14826
|
+
class: M(["vui-resizable", {
|
|
14827
|
+
vertical: t.vertical,
|
|
14828
|
+
"hide-handles": t.hideHandles
|
|
14829
|
+
}])
|
|
14824
14830
|
}, [(R(!0), d(n, null, V(q(a), (e, t) => (R(), d(n, { key: e.key }, [f("div", {
|
|
14825
14831
|
class: "vui-resizable-panel",
|
|
14826
14832
|
style: P({
|
|
@@ -14836,23 +14842,312 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14836
14842
|
onBlur: r[0] ||= (e) => o.value = -1
|
|
14837
14843
|
}, null, 40, ug)) : u("", !0)], 64))), 128))], 2));
|
|
14838
14844
|
}
|
|
14839
|
-
}), fg =
|
|
14845
|
+
}), fg = ["name"], pg = /* @__PURE__ */ v({
|
|
14846
|
+
__name: "Tab",
|
|
14847
|
+
props: {
|
|
14848
|
+
disabled: { type: Boolean },
|
|
14849
|
+
value: {}
|
|
14850
|
+
},
|
|
14851
|
+
setup(e) {
|
|
14852
|
+
let t = e;
|
|
14853
|
+
return (n, r) => (R(), d("button", {
|
|
14854
|
+
class: M(["vui-tab", { disabled: t.disabled }]),
|
|
14855
|
+
role: "tab",
|
|
14856
|
+
name: e.value
|
|
14857
|
+
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10, fg));
|
|
14858
|
+
}
|
|
14859
|
+
}), mg = {
|
|
14860
|
+
key: 0,
|
|
14861
|
+
class: "flex-1"
|
|
14862
|
+
}, hg = {
|
|
14863
|
+
key: 0,
|
|
14864
|
+
ref: "underline",
|
|
14865
|
+
class: "vui-tab-underline"
|
|
14866
|
+
}, gg = /* @__PURE__ */ v({
|
|
14867
|
+
__name: "Tabs",
|
|
14868
|
+
props: /* @__PURE__ */ k({
|
|
14869
|
+
variant: { default: "default" },
|
|
14870
|
+
expand: { type: Boolean },
|
|
14871
|
+
disabled: { type: Boolean },
|
|
14872
|
+
transitionName: { default: "fade" }
|
|
14873
|
+
}, {
|
|
14874
|
+
modelValue: {},
|
|
14875
|
+
modelModifiers: {}
|
|
14876
|
+
}),
|
|
14877
|
+
emits: ["update:modelValue"],
|
|
14878
|
+
setup(e) {
|
|
14879
|
+
let t = me(), r = pe(e, "modelValue"), a = J("underline"), o = J("tabs");
|
|
14880
|
+
function s() {
|
|
14881
|
+
if (window && o.value && a.value) {
|
|
14882
|
+
let e = o.value.querySelector(".vui-tab.active")?.getBoundingClientRect(), t = o.value.getBoundingClientRect();
|
|
14883
|
+
!e || !t ? a.value.style.width = "0px" : (a.value.style.width = `${e.width}px`, a.value.style.left = `${e.left - t.left}px`);
|
|
14884
|
+
}
|
|
14885
|
+
}
|
|
14886
|
+
let c = On(t.default);
|
|
14887
|
+
return L(() => {
|
|
14888
|
+
pn(o, s), Y([
|
|
14889
|
+
r,
|
|
14890
|
+
() => e.expand,
|
|
14891
|
+
() => c.value.map((e) => e.props?.value).join(",")
|
|
14892
|
+
], () => {
|
|
14893
|
+
s(), c.value.some((e) => e.props?.value === r.value) || (r.value = c.value[0]?.props?.value);
|
|
14894
|
+
}, {
|
|
14895
|
+
immediate: !0,
|
|
14896
|
+
flush: "post"
|
|
14897
|
+
});
|
|
14898
|
+
}), An(c, "Tab"), (t, a) => (R(), d("div", {
|
|
14899
|
+
ref: "tabs",
|
|
14900
|
+
class: M(["vui-tabs", [{
|
|
14901
|
+
expand: e.expand,
|
|
14902
|
+
disabled: e.disabled
|
|
14903
|
+
}, e.variant === "default" ? "" : `vui-tabs-variant-${e.variant}`]]),
|
|
14904
|
+
role: "tablist"
|
|
14905
|
+
}, [
|
|
14906
|
+
H(t.$slots, "start"),
|
|
14907
|
+
(R(!0), d(n, null, V(q(c), (e) => (R(), l(U(e), {
|
|
14908
|
+
key: e.props.value,
|
|
14909
|
+
class: M({ active: e.props.value === r.value }),
|
|
14910
|
+
onClick: (t) => r.value = e.props.value
|
|
14911
|
+
}, null, 8, ["class", "onClick"]))), 128)),
|
|
14912
|
+
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div", mg)), H(t.$slots, "end")], 64)) : u("", !0),
|
|
14913
|
+
g(i, {
|
|
14914
|
+
name: e.transitionName === "none" ? void 0 : e.transitionName,
|
|
14915
|
+
css: e.transitionName !== "none",
|
|
14916
|
+
appear: ""
|
|
14917
|
+
}, {
|
|
14918
|
+
default: X(() => [r.value ? (R(), d("div", hg, null, 512)) : u("", !0)]),
|
|
14919
|
+
_: 1
|
|
14920
|
+
}, 8, ["name", "css"])
|
|
14921
|
+
], 2));
|
|
14922
|
+
}
|
|
14923
|
+
}), _g = { class: "view-wrap" }, vg = .33, yg = /* @__PURE__ */ v({
|
|
14924
|
+
__name: "ViewPanel",
|
|
14925
|
+
props: { panel: {} },
|
|
14926
|
+
setup(e) {
|
|
14927
|
+
let t = e, r = B(t.panel.tabs[0]?.path ?? ""), i = B(!1), a = B(t.panel.tabs.length);
|
|
14928
|
+
function o(e) {
|
|
14929
|
+
i.value = !0, e.target === e.currentTarget && (a.value = t.panel.tabs.length);
|
|
14930
|
+
}
|
|
14931
|
+
function s(e) {
|
|
14932
|
+
e.currentTarget.contains(e.relatedTarget) || (i.value = !1, a.value = t.panel.tabs.length);
|
|
14933
|
+
}
|
|
14934
|
+
function p(e, t) {
|
|
14935
|
+
let n = e.currentTarget.getBoundingClientRect();
|
|
14936
|
+
a.value = e.clientX > n.left + n.width / 2 ? t + 1 : t;
|
|
14937
|
+
}
|
|
14938
|
+
let m = B(0), _ = c(() => m.value > 0), { elementX: v, elementY: y, elementWidth: b, elementHeight: x } = xn(J("contentRef"), { handleOutside: !1 }), S = c(() => {
|
|
14939
|
+
if (!(!v.value || !y.value || !b.value || !x.value)) return v.value < b.value * vg ? "left" : v.value > b.value * (1 - vg) ? "right" : y.value < x.value * vg ? "top" : y.value > x.value * (1 - vg) ? "bottom" : "center";
|
|
14940
|
+
}), { startDrag: C, handleDrag: w, handleSplit: E, peekDragTab: D, isDragFromPanel: O } = T("$vrp");
|
|
14941
|
+
function k(e, n) {
|
|
14942
|
+
C(t.panel, n);
|
|
14943
|
+
}
|
|
14944
|
+
function A() {
|
|
14945
|
+
let e = a.value, n = D(), o = O(t.panel);
|
|
14946
|
+
i.value = !1, a.value = t.panel.tabs.length, w(t.panel, e), n && !o && (r.value = n.path);
|
|
14947
|
+
}
|
|
14948
|
+
function j() {
|
|
14949
|
+
m.value = 0;
|
|
14950
|
+
let e = D(), n = S.value;
|
|
14951
|
+
!n || n === "center" ? w(t.panel, t.panel.tabs.length) : E(t.panel, n), e && (r.value = e.path);
|
|
14952
|
+
}
|
|
14953
|
+
let N = c(() => t.panel.tabs.find((e) => e.path === r.value));
|
|
14954
|
+
return (c, v) => (R(), d("div", _g, [g(jd, {
|
|
14955
|
+
padding: !1,
|
|
14956
|
+
"header-separator": ""
|
|
14957
|
+
}, {
|
|
14958
|
+
header: X(() => [g(gg, {
|
|
14959
|
+
modelValue: r.value,
|
|
14960
|
+
"onUpdate:modelValue": v[0] ||= (e) => r.value = e,
|
|
14961
|
+
variant: "filled",
|
|
14962
|
+
onDragenter: v[1] ||= (e) => o(e),
|
|
14963
|
+
onDragleave: v[2] ||= (e) => s(e),
|
|
14964
|
+
onDragover: v[3] ||= we(() => {}, ["prevent"]),
|
|
14965
|
+
onDrop: v[4] ||= we((e) => A(), ["prevent"])
|
|
14966
|
+
}, {
|
|
14967
|
+
default: X(() => [(R(!0), d(n, null, V(e.panel.tabs, (t, n) => (R(), l(pg, {
|
|
14968
|
+
key: t.path,
|
|
14969
|
+
value: t.path,
|
|
14970
|
+
draggable: !0,
|
|
14971
|
+
class: M({
|
|
14972
|
+
"drop-before": i.value && a.value === n,
|
|
14973
|
+
"drop-after": i.value && a.value === e.panel.tabs.length && n === e.panel.tabs.length - 1
|
|
14974
|
+
}),
|
|
14975
|
+
onDragstart: (e) => k(e, n),
|
|
14976
|
+
onDragenter: (e) => p(e, n)
|
|
14977
|
+
}, {
|
|
14978
|
+
default: X(() => [h(G(t.label ?? t.path), 1)]),
|
|
14979
|
+
_: 2
|
|
14980
|
+
}, 1032, [
|
|
14981
|
+
"value",
|
|
14982
|
+
"class",
|
|
14983
|
+
"onDragstart",
|
|
14984
|
+
"onDragenter"
|
|
14985
|
+
]))), 128))]),
|
|
14986
|
+
_: 1
|
|
14987
|
+
}, 8, ["modelValue"])]),
|
|
14988
|
+
default: X(() => [f("div", {
|
|
14989
|
+
ref: "contentRef",
|
|
14990
|
+
class: "view-content",
|
|
14991
|
+
onDragenter: v[5] ||= (e) => m.value++,
|
|
14992
|
+
onDragleave: v[6] ||= (e) => m.value--,
|
|
14993
|
+
onDragover: v[7] ||= we(() => {}, ["prevent"]),
|
|
14994
|
+
onDrop: v[8] ||= we((e) => j(), ["prevent"])
|
|
14995
|
+
}, [Se(f("div", { class: M(["view-drag-overlay", `drag-${S.value}`]) }, null, 2), [[ye, _.value]]), N.value ? H(c.$slots, "tab", {
|
|
14996
|
+
key: 0,
|
|
14997
|
+
tab: N.value,
|
|
14998
|
+
panel: t.panel
|
|
14999
|
+
}) : u("", !0)], 544)]),
|
|
15000
|
+
_: 3
|
|
15001
|
+
})]));
|
|
15002
|
+
}
|
|
15003
|
+
}), bg = /* @__PURE__ */ v({
|
|
15004
|
+
__name: "ResizableView",
|
|
15005
|
+
props: {
|
|
15006
|
+
modelValue: { default: [] },
|
|
15007
|
+
modelModifiers: {}
|
|
15008
|
+
},
|
|
15009
|
+
emits: ["update:modelValue"],
|
|
15010
|
+
setup(e) {
|
|
15011
|
+
let t = me(), r = pe(e, "modelValue"), i = 0;
|
|
15012
|
+
function a() {
|
|
15013
|
+
return `${++i}`;
|
|
15014
|
+
}
|
|
15015
|
+
let o = /* @__PURE__ */ new WeakMap();
|
|
15016
|
+
function s(e) {
|
|
15017
|
+
return Array.isArray(e) ? (o.has(e) || o.set(e, `g${a()}`), o.get(e)) : e.id;
|
|
15018
|
+
}
|
|
15019
|
+
function c(e) {
|
|
15020
|
+
o.has(e) || o.set(e, `g${a()}`);
|
|
15021
|
+
for (let t of e) Array.isArray(t) ? c(t) : t.id ||= `p${a()}`;
|
|
15022
|
+
}
|
|
15023
|
+
Y(r, (e) => c(e), { immediate: !0 });
|
|
15024
|
+
function u(e, t = r.value) {
|
|
15025
|
+
for (let n = 0; n < t.length; n++) if (Array.isArray(t[n])) {
|
|
15026
|
+
if (u(e, t[n])) return t[n].length === 0 && t.splice(n, 1), !0;
|
|
15027
|
+
} else if (t[n] === e) return t.splice(n, 1), !0;
|
|
15028
|
+
return !1;
|
|
15029
|
+
}
|
|
15030
|
+
function f(e = r.value) {
|
|
15031
|
+
for (let t = 0; t < e.length; t++) Array.isArray(e[t]) && (f(e[t]), e[t].length === 1 && (e.splice(t, 1, e[t][0]), t--));
|
|
15032
|
+
}
|
|
15033
|
+
function p(e, t = r.value, n = 1) {
|
|
15034
|
+
if (t === e) return n;
|
|
15035
|
+
for (let r of t) if (Array.isArray(r)) {
|
|
15036
|
+
let t = p(e, r, n + 1);
|
|
15037
|
+
if (t !== -1) return t;
|
|
15038
|
+
}
|
|
15039
|
+
return -1;
|
|
15040
|
+
}
|
|
15041
|
+
let h = B(null);
|
|
15042
|
+
function g(e, t) {
|
|
15043
|
+
h.value = {
|
|
15044
|
+
panel: e,
|
|
15045
|
+
tabIndex: t
|
|
15046
|
+
};
|
|
15047
|
+
}
|
|
15048
|
+
function _(e, t) {
|
|
15049
|
+
if (!h.value) return;
|
|
15050
|
+
let { panel: n, tabIndex: i } = h.value;
|
|
15051
|
+
h.value = null;
|
|
15052
|
+
let [a] = n.tabs.splice(i, 1);
|
|
15053
|
+
a && (n === e && i < t && t--, e.tabs.splice(t, 0, a), n.tabs.length === 0 && u(n), f(), c(r.value));
|
|
15054
|
+
}
|
|
15055
|
+
function v(e, t) {
|
|
15056
|
+
if (!h.value) return;
|
|
15057
|
+
let { panel: n, tabIndex: i } = h.value;
|
|
15058
|
+
h.value = null;
|
|
15059
|
+
let [a] = n.tabs.splice(i, 1);
|
|
15060
|
+
if (!a) return;
|
|
15061
|
+
let o = { tabs: [a] };
|
|
15062
|
+
function s(n) {
|
|
15063
|
+
for (let r = 0; r < n.length; r++) if (Array.isArray(n[r])) {
|
|
15064
|
+
if (s(n[r])) return !0;
|
|
15065
|
+
} else if (n[r] === e) {
|
|
15066
|
+
let i = t === "left" || t === "right", a = t === "left" || t === "top";
|
|
15067
|
+
if (i === (p(n) % 2 == 1)) n.splice(a ? r : r + 1, 0, o);
|
|
15068
|
+
else {
|
|
15069
|
+
let t = a ? [o, e] : [e, o];
|
|
15070
|
+
n.splice(r, 1, t);
|
|
15071
|
+
}
|
|
15072
|
+
return !0;
|
|
15073
|
+
}
|
|
15074
|
+
return !1;
|
|
15075
|
+
}
|
|
15076
|
+
s(r.value), n.tabs.length === 0 && u(n), f(), c(r.value);
|
|
15077
|
+
}
|
|
15078
|
+
function y() {
|
|
15079
|
+
return h.value ? h.value.panel.tabs[h.value.tabIndex] ?? null : null;
|
|
15080
|
+
}
|
|
15081
|
+
function b(e) {
|
|
15082
|
+
return h.value?.panel === e;
|
|
15083
|
+
}
|
|
15084
|
+
return re("$vrp", {
|
|
15085
|
+
startDrag: g,
|
|
15086
|
+
handleDrag: _,
|
|
15087
|
+
handleSplit: v,
|
|
15088
|
+
peekDragTab: y,
|
|
15089
|
+
isDragFromPanel: b
|
|
15090
|
+
}), (e, i) => (R(), l(dg, {
|
|
15091
|
+
"hide-handles": "",
|
|
15092
|
+
class: "vui-resizable-view"
|
|
15093
|
+
}, {
|
|
15094
|
+
default: X(() => [(R(!0), d(n, null, V(r.value, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(dg, {
|
|
15095
|
+
key: 0,
|
|
15096
|
+
"hide-handles": "",
|
|
15097
|
+
class: "nested-view",
|
|
15098
|
+
vertical: ""
|
|
15099
|
+
}, {
|
|
15100
|
+
default: X(() => [(R(!0), d(n, null, V(r, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(dg, {
|
|
15101
|
+
key: 0,
|
|
15102
|
+
"hide-handles": "",
|
|
15103
|
+
class: "nested-view"
|
|
15104
|
+
}, {
|
|
15105
|
+
default: X(() => [(R(!0), d(n, null, V(r, (n) => (R(), l(yg, {
|
|
15106
|
+
key: s(n),
|
|
15107
|
+
panel: n
|
|
15108
|
+
}, m({ _: 2 }, [t.tab ? {
|
|
15109
|
+
name: "tab",
|
|
15110
|
+
fn: X((t) => [H(e.$slots, "tab", A({ ref_for: !0 }, t))]),
|
|
15111
|
+
key: "0"
|
|
15112
|
+
} : void 0]), 1032, ["panel"]))), 128))]),
|
|
15113
|
+
_: 2
|
|
15114
|
+
}, 1024)) : (R(), l(yg, {
|
|
15115
|
+
key: 1,
|
|
15116
|
+
panel: r
|
|
15117
|
+
}, m({ _: 2 }, [t.tab ? {
|
|
15118
|
+
name: "tab",
|
|
15119
|
+
fn: X((t) => [H(e.$slots, "tab", A({ ref_for: !0 }, t))]),
|
|
15120
|
+
key: "0"
|
|
15121
|
+
} : void 0]), 1032, ["panel"]))], 64))), 128))]),
|
|
15122
|
+
_: 2
|
|
15123
|
+
}, 1024)) : (R(), l(yg, {
|
|
15124
|
+
key: 1,
|
|
15125
|
+
panel: r
|
|
15126
|
+
}, m({ _: 2 }, [t.tab ? {
|
|
15127
|
+
name: "tab",
|
|
15128
|
+
fn: X((t) => [H(e.$slots, "tab", A({ ref_for: !0 }, t))]),
|
|
15129
|
+
key: "0"
|
|
15130
|
+
} : void 0]), 1032, ["panel"]))], 64))), 128))]),
|
|
15131
|
+
_: 3
|
|
15132
|
+
}));
|
|
15133
|
+
}
|
|
15134
|
+
}), xg = { class: "vui-input vui-select-trigger-content" }, Sg = ["for"], Cg = {
|
|
14840
15135
|
key: 1,
|
|
14841
15136
|
class: "vui-input-hint"
|
|
14842
|
-
},
|
|
15137
|
+
}, wg = [
|
|
14843
15138
|
"id",
|
|
14844
15139
|
"disabled",
|
|
14845
15140
|
"onClick"
|
|
14846
|
-
],
|
|
15141
|
+
], Tg = {
|
|
14847
15142
|
key: 1,
|
|
14848
15143
|
class: "vue-select-no-results"
|
|
14849
|
-
},
|
|
15144
|
+
}, Eg = {
|
|
14850
15145
|
key: 0,
|
|
14851
15146
|
class: "vui-input-limit"
|
|
14852
|
-
},
|
|
15147
|
+
}, Dg = {
|
|
14853
15148
|
key: 1,
|
|
14854
15149
|
class: "vui-input-errors"
|
|
14855
|
-
},
|
|
15150
|
+
}, Og = /* @__PURE__ */ v({
|
|
14856
15151
|
__name: "Select",
|
|
14857
15152
|
props: /* @__PURE__ */ k({
|
|
14858
15153
|
single: {
|
|
@@ -14928,12 +15223,12 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14928
15223
|
"no-mobile-drawer": e.noMobileDrawer,
|
|
14929
15224
|
onClose: m[1] ||= (e) => i.value?.focus({ preventScroll: !0 })
|
|
14930
15225
|
}, {
|
|
14931
|
-
trigger: X(({ toggle: t, isOpen: i }) => [f("div",
|
|
15226
|
+
trigger: X(({ toggle: t, isOpen: i }) => [f("div", xg, [
|
|
14932
15227
|
e.label ? (R(), d("label", {
|
|
14933
15228
|
key: 0,
|
|
14934
15229
|
for: q(v)
|
|
14935
|
-
}, G(e.label), 9,
|
|
14936
|
-
e.hint ? (R(), d("p",
|
|
15230
|
+
}, G(e.label), 9, Sg)) : u("", !0),
|
|
15231
|
+
e.hint ? (R(), d("p", Cg, G(e.hint), 1)) : u("", !0),
|
|
14937
15232
|
f("button", {
|
|
14938
15233
|
id: q(v),
|
|
14939
15234
|
ref: "trigger",
|
|
@@ -14952,7 +15247,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14952
15247
|
_: 1
|
|
14953
15248
|
})], 64)) : u("", !0),
|
|
14954
15249
|
i ? (R(), l(q(He), { key: 1 })) : (R(), l(q(ze), { key: 2 }))
|
|
14955
|
-
], 10,
|
|
15250
|
+
], 10, wg)
|
|
14956
15251
|
])]),
|
|
14957
15252
|
default: X(({ close: t, isOpen: i }) => [
|
|
14958
15253
|
e.search ? (R(), l(ah, {
|
|
@@ -14971,7 +15266,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14971
15266
|
}, 8, ["modelValue", "focus"])]),
|
|
14972
15267
|
_: 2
|
|
14973
15268
|
}, 1024)) : u("", !0),
|
|
14974
|
-
s.value.length === 0 ? (R(), d("p",
|
|
15269
|
+
s.value.length === 0 ? (R(), d("p", Tg, " No results... ")) : u("", !0),
|
|
14975
15270
|
(R(!0), d(n, null, V(s.value, (n) => (R(), l(rh, {
|
|
14976
15271
|
key: n.value,
|
|
14977
15272
|
class: M({ selected: r.value?.find((e) => e.value === n.value) }),
|
|
@@ -14989,14 +15284,14 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14989
15284
|
"transition-name",
|
|
14990
15285
|
"no-mobile-drawer"
|
|
14991
15286
|
]),
|
|
14992
|
-
e.maxActiveOptions && !e.single ? (R(), d("p",
|
|
14993
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
15287
|
+
e.maxActiveOptions && !e.single ? (R(), d("p", Eg, G(`${r.value ? r.value.length : 0}/${e.maxActiveOptions}`), 1)) : u("", !0),
|
|
15288
|
+
e.errors.length > 0 ? (R(), d("ul", Dg, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0)
|
|
14994
15289
|
], 6));
|
|
14995
15290
|
}
|
|
14996
|
-
}),
|
|
15291
|
+
}), kg = {
|
|
14997
15292
|
key: 0,
|
|
14998
15293
|
class: "vui-sheet-shell"
|
|
14999
|
-
},
|
|
15294
|
+
}, Ag = 16, jg = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
15000
15295
|
inheritAttrs: !1,
|
|
15001
15296
|
__name: "Sheet",
|
|
15002
15297
|
props: {
|
|
@@ -15034,10 +15329,10 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15034
15329
|
if (e.position === "left" || e.position === "right") return { maxWidth: Xn(e.size) };
|
|
15035
15330
|
}), h = c(() => {
|
|
15036
15331
|
switch (e.position) {
|
|
15037
|
-
case "left": return `translate(-${
|
|
15038
|
-
case "top": return `translate(0, -${
|
|
15039
|
-
case "bottom": return `translate(0, ${
|
|
15040
|
-
default: return `translate(${
|
|
15332
|
+
case "left": return `translate(-${Ag}px, 0)`;
|
|
15333
|
+
case "top": return `translate(0, -${Ag}px)`;
|
|
15334
|
+
case "bottom": return `translate(0, ${Ag}px)`;
|
|
15335
|
+
default: return `translate(${Ag}px, 0)`;
|
|
15041
15336
|
}
|
|
15042
15337
|
});
|
|
15043
15338
|
return (t, c) => (R(), l(r, { to: "body" }, [o.value ? (R(), l($d, {
|
|
@@ -15050,7 +15345,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15050
15345
|
css: e.transitionName !== "none",
|
|
15051
15346
|
onAfterLeave: f
|
|
15052
15347
|
}, {
|
|
15053
|
-
default: X(() => [e.open ? (R(), d("div",
|
|
15348
|
+
default: X(() => [e.open ? (R(), d("div", kg, [g(jd, A({
|
|
15054
15349
|
class: ["vui-sheet", [`vui-sheet-position-${e.position}`]],
|
|
15055
15350
|
style: p.value
|
|
15056
15351
|
}, {
|
|
@@ -15089,13 +15384,13 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15089
15384
|
_: 3
|
|
15090
15385
|
})) : u("", !0)]));
|
|
15091
15386
|
}
|
|
15092
|
-
}), [["__scopeId", "data-v-d0fc93ff"]]),
|
|
15387
|
+
}), [["__scopeId", "data-v-d0fc93ff"]]), Mg = {
|
|
15093
15388
|
key: 0,
|
|
15094
15389
|
class: "vui-sidebar-header"
|
|
15095
|
-
},
|
|
15390
|
+
}, Ng = { class: "vui-sidebar-content" }, Pg = { class: "vui-sidebar-content-wrap" }, Fg = {
|
|
15096
15391
|
key: 1,
|
|
15097
15392
|
class: "vui-sidebar-footer"
|
|
15098
|
-
},
|
|
15393
|
+
}, Ig = 32, Lg = /* @__PURE__ */ v({
|
|
15099
15394
|
__name: "Sidebar",
|
|
15100
15395
|
props: /* @__PURE__ */ k({
|
|
15101
15396
|
width: { default: 224 },
|
|
@@ -15127,7 +15422,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15127
15422
|
return F(() => {
|
|
15128
15423
|
t.appear && r.value && (r.value = !1);
|
|
15129
15424
|
}), Rt(h, (e) => {
|
|
15130
|
-
!t.appear || e <=
|
|
15425
|
+
!t.appear || e <= Ig && e >= 0 && m.value || (e <= Ig && e >= 0 && !r.value && !m.value ? l() : m.value && p(), (e > Ig + (t.mini ? 65 : t.floaty ? t.width : t.width - (Un(a.value) ? 0 : Number(a.value?.replace("px", "")))) || e < 0) && r.value && (r.value = !1));
|
|
15131
15426
|
}, {
|
|
15132
15427
|
throttle: 100,
|
|
15133
15428
|
immediate: !0
|
|
@@ -15144,21 +15439,21 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15144
15439
|
}]),
|
|
15145
15440
|
style: P({ width: `${t.mini ? 65 : t.width}px` })
|
|
15146
15441
|
}, [
|
|
15147
|
-
q(i).header ? (R(), d("div",
|
|
15148
|
-
f("div",
|
|
15149
|
-
q(i).footer ? (R(), d("div",
|
|
15442
|
+
q(i).header ? (R(), d("div", Mg, [H(e.$slots, "header", N(S(s.value)))])) : u("", !0),
|
|
15443
|
+
f("div", Ng, [f("div", Pg, [H(e.$slots, "default", N(S(s.value)))])]),
|
|
15444
|
+
q(i).footer ? (R(), d("div", Fg, [H(e.$slots, "footer", N(S(s.value)))])) : u("", !0)
|
|
15150
15445
|
], 6)], 6));
|
|
15151
15446
|
}
|
|
15152
|
-
}),
|
|
15447
|
+
}), Rg = "var(--border-radius-s)", zg = /* @__PURE__ */ v({
|
|
15153
15448
|
__name: "Skeleton",
|
|
15154
15449
|
props: {
|
|
15155
|
-
radius: { default: () =>
|
|
15450
|
+
radius: { default: () => Rg },
|
|
15156
15451
|
width: { default: "100%" },
|
|
15157
15452
|
height: { default: "32px" },
|
|
15158
15453
|
circle: { type: Boolean }
|
|
15159
15454
|
},
|
|
15160
15455
|
setup(e) {
|
|
15161
|
-
let t = c(() => Xn(e.circle && e.radius ===
|
|
15456
|
+
let t = c(() => Xn(e.circle && e.radius === Rg ? 9999 : e.radius)), n = c(() => Xn(e.circle ? e.width || e.height : e.width)), r = c(() => Xn(e.circle && e.width || e.height));
|
|
15162
15457
|
return (e, i) => (R(), d("div", {
|
|
15163
15458
|
class: "vui-skeleton",
|
|
15164
15459
|
style: P({
|
|
@@ -15168,25 +15463,25 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15168
15463
|
})
|
|
15169
15464
|
}, null, 4));
|
|
15170
15465
|
}
|
|
15171
|
-
}),
|
|
15466
|
+
}), Bg = ["inert"], Vg = [
|
|
15172
15467
|
"aria-label",
|
|
15173
15468
|
"aria-disabled",
|
|
15174
15469
|
"aria-valuemin",
|
|
15175
15470
|
"aria-valuemax",
|
|
15176
15471
|
"aria-valuenow"
|
|
15177
|
-
],
|
|
15472
|
+
], Hg = [
|
|
15178
15473
|
"aria-label",
|
|
15179
15474
|
"aria-disabled",
|
|
15180
15475
|
"aria-valuemin",
|
|
15181
15476
|
"aria-valuemax",
|
|
15182
15477
|
"aria-valuenow"
|
|
15183
|
-
],
|
|
15478
|
+
], Ug = [
|
|
15184
15479
|
"aria-label",
|
|
15185
15480
|
"aria-disabled",
|
|
15186
15481
|
"aria-valuemin",
|
|
15187
15482
|
"aria-valuemax",
|
|
15188
15483
|
"aria-valuenow"
|
|
15189
|
-
],
|
|
15484
|
+
], Wg = /* @__PURE__ */ v({
|
|
15190
15485
|
__name: "Slider",
|
|
15191
15486
|
props: /* @__PURE__ */ k({
|
|
15192
15487
|
min: { default: 0 },
|
|
@@ -15325,7 +15620,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15325
15620
|
onMousedown: s[0] ||= (e) => y(e, 0),
|
|
15326
15621
|
onTouchstart: s[1] ||= (e) => b(e, 0),
|
|
15327
15622
|
onKeydown: s[2] ||= (e) => C(e, 0)
|
|
15328
|
-
}, null, 44,
|
|
15623
|
+
}, null, 44, Vg), f("span", {
|
|
15329
15624
|
class: "vui-slider-handle",
|
|
15330
15625
|
tabindex: "0",
|
|
15331
15626
|
role: "slider",
|
|
@@ -15339,7 +15634,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15339
15634
|
onMousedown: s[3] ||= (e) => y(e, 1),
|
|
15340
15635
|
onTouchstart: s[4] ||= (e) => b(e, 1),
|
|
15341
15636
|
onKeydown: s[5] ||= (e) => C(e, 1)
|
|
15342
|
-
}, null, 44,
|
|
15637
|
+
}, null, 44, Hg)], 64)) : (R(), d("span", {
|
|
15343
15638
|
key: 1,
|
|
15344
15639
|
class: "vui-slider-handle",
|
|
15345
15640
|
tabindex: "0",
|
|
@@ -15354,24 +15649,24 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15354
15649
|
onMousedown: s[6] ||= (e) => y(e, 0),
|
|
15355
15650
|
onTouchstart: s[7] ||= (e) => b(e, 0),
|
|
15356
15651
|
onKeydown: s[8] ||= (e) => C(e)
|
|
15357
|
-
}, null, 44,
|
|
15652
|
+
}, null, 44, Ug)),
|
|
15358
15653
|
e.steps ? (R(!0), d(n, { key: 2 }, V(e.steps + 1, (t) => (R(), d("div", {
|
|
15359
15654
|
key: t,
|
|
15360
15655
|
class: "vui-slider-step-indicator",
|
|
15361
15656
|
style: P({ left: `${(t - 1) / e.steps * 100}%` })
|
|
15362
15657
|
}, null, 4))), 128)) : u("", !0)
|
|
15363
|
-
], 10,
|
|
15658
|
+
], 10, Bg));
|
|
15364
15659
|
}
|
|
15365
|
-
}),
|
|
15660
|
+
}), Gg = ["id", "disabled"], Kg = ["for"], qg = { class: "w-100" }, Jg = {
|
|
15366
15661
|
key: 0,
|
|
15367
15662
|
class: "vui-switch-content"
|
|
15368
|
-
},
|
|
15663
|
+
}, Yg = {
|
|
15369
15664
|
key: 1,
|
|
15370
15665
|
class: "vui-switch-content"
|
|
15371
|
-
},
|
|
15666
|
+
}, Xg = {
|
|
15372
15667
|
key: 2,
|
|
15373
15668
|
class: "vui-hint mt-xxs block"
|
|
15374
|
-
},
|
|
15669
|
+
}, Zg = /* @__PURE__ */ v({
|
|
15375
15670
|
__name: "Switch",
|
|
15376
15671
|
props: /* @__PURE__ */ k({
|
|
15377
15672
|
label: {},
|
|
@@ -15396,22 +15691,22 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15396
15691
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
15397
15692
|
type: "checkbox",
|
|
15398
15693
|
disabled: e.disabled
|
|
15399
|
-
}, null, 8,
|
|
15694
|
+
}, null, 8, Gg), [[he, n.value]]), f("label", { for: q(r) }, [a[1] ||= f("div", { class: "vui-switch-icon" }, [f("span", { class: "vui-switch-indicator" })], -1), f("div", qg, [!t.default && e.label ? (R(), d("p", Jg, G(e.label), 1)) : (R(), d("div", Yg, [H(i.$slots, "default")])), e.hint ? (R(), d("p", Xg, G(e.hint), 1)) : u("", !0)])], 8, Kg)], 2));
|
|
15400
15695
|
}
|
|
15401
|
-
}),
|
|
15696
|
+
}), Qg = {
|
|
15402
15697
|
key: 0,
|
|
15403
15698
|
ref: "context",
|
|
15404
15699
|
class: "vui-cell-context"
|
|
15405
|
-
},
|
|
15700
|
+
}, $g = /* @__PURE__ */ v({
|
|
15406
15701
|
__name: "Cell",
|
|
15407
15702
|
setup(e) {
|
|
15408
15703
|
let t = me(), n = J("context"), r = c(() => !t.context || !window ? {} : { paddingRight: `${n.value?.getBoundingClientRect().width ?? 0}px` });
|
|
15409
|
-
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div",
|
|
15704
|
+
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div", Qg, [H(e.$slots, "context")], 512)) : u("", !0)], 4));
|
|
15410
15705
|
}
|
|
15411
|
-
}),
|
|
15706
|
+
}), e_ = {
|
|
15412
15707
|
key: 0,
|
|
15413
15708
|
class: "vui-table-th-content"
|
|
15414
|
-
},
|
|
15709
|
+
}, t_ = /* @__PURE__ */ v({
|
|
15415
15710
|
__name: "Head",
|
|
15416
15711
|
props: {
|
|
15417
15712
|
header: {},
|
|
@@ -15434,7 +15729,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15434
15729
|
};
|
|
15435
15730
|
}
|
|
15436
15731
|
});
|
|
15437
|
-
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div",
|
|
15732
|
+
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div", e_, [H(e.$slots, "default", {}, () => [h(G(t.header?.label), 1)]), t.sort && t.header ? (R(), l(Qh, {
|
|
15438
15733
|
key: 0,
|
|
15439
15734
|
placement: "top"
|
|
15440
15735
|
}, {
|
|
@@ -15453,8 +15748,8 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15453
15748
|
_: 1
|
|
15454
15749
|
})) : u("", !0)])) : u("", !0)]));
|
|
15455
15750
|
}
|
|
15456
|
-
}),
|
|
15457
|
-
function
|
|
15751
|
+
}), n_ = Symbol("select-row-provide");
|
|
15752
|
+
function r_(e, t) {
|
|
15458
15753
|
let n = c(() => K(e)), r = B({
|
|
15459
15754
|
pagination: {
|
|
15460
15755
|
enabled: !1,
|
|
@@ -15508,7 +15803,7 @@ function Jg(e, t) {
|
|
|
15508
15803
|
function S() {
|
|
15509
15804
|
_.value = /* @__PURE__ */ new Set();
|
|
15510
15805
|
}
|
|
15511
|
-
return re(
|
|
15806
|
+
return re(n_, {
|
|
15512
15807
|
selectedRows: _,
|
|
15513
15808
|
selectRow: y,
|
|
15514
15809
|
selectAllRows: x,
|
|
@@ -15535,10 +15830,10 @@ function Jg(e, t) {
|
|
|
15535
15830
|
}
|
|
15536
15831
|
//#endregion
|
|
15537
15832
|
//#region src/components/Table/Root.vue?vue&type=script&setup=true&lang.ts
|
|
15538
|
-
var
|
|
15833
|
+
var i_ = { key: 0 }, a_ = {
|
|
15539
15834
|
key: 0,
|
|
15540
15835
|
class: "vui-table-pagination-wrap"
|
|
15541
|
-
},
|
|
15836
|
+
}, o_ = /* @__PURE__ */ v({
|
|
15542
15837
|
__name: "Root",
|
|
15543
15838
|
props: {
|
|
15544
15839
|
fixed: { type: Boolean },
|
|
@@ -15557,7 +15852,7 @@ var Yg = { key: 0 }, Xg = {
|
|
|
15557
15852
|
}
|
|
15558
15853
|
},
|
|
15559
15854
|
setup(e) {
|
|
15560
|
-
let t = T(
|
|
15855
|
+
let t = T(n_);
|
|
15561
15856
|
return (n, r) => (R(), d("div", { class: M(["vui-table-container", {
|
|
15562
15857
|
fixed: e.fixed,
|
|
15563
15858
|
nowrap: e.nowrap,
|
|
@@ -15565,12 +15860,12 @@ var Yg = { key: 0 }, Xg = {
|
|
|
15565
15860
|
"separated-rows": e.separateRows,
|
|
15566
15861
|
"separated-cells": e.separateCells,
|
|
15567
15862
|
"outer-border": e.outerBorder
|
|
15568
|
-
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead",
|
|
15863
|
+
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead", i_, [f("tr", null, [H(n.$slots, "header")])])) : u("", !0), f("tbody", null, [H(n.$slots, "body")])]), n.$slots.pagination ? (R(), d("div", a_, [H(n.$slots, "pagination")])) : u("", !0)], 2));
|
|
15569
15864
|
}
|
|
15570
|
-
}),
|
|
15865
|
+
}), s_ = /* @__PURE__ */ v({
|
|
15571
15866
|
__name: "SelectAll",
|
|
15572
15867
|
setup(e) {
|
|
15573
|
-
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(
|
|
15868
|
+
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(n_);
|
|
15574
15869
|
return (e, i) => q(n) ? (R(), d("th", {
|
|
15575
15870
|
key: 0,
|
|
15576
15871
|
class: M(["vui-table-interactive-cell", { selected: q(t) }])
|
|
@@ -15583,11 +15878,11 @@ var Yg = { key: 0 }, Xg = {
|
|
|
15583
15878
|
_: 1
|
|
15584
15879
|
})], 2)) : u("", !0);
|
|
15585
15880
|
}
|
|
15586
|
-
}),
|
|
15881
|
+
}), c_ = /* @__PURE__ */ v({
|
|
15587
15882
|
__name: "SelectRow",
|
|
15588
15883
|
props: { row: {} },
|
|
15589
15884
|
setup(e) {
|
|
15590
|
-
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(
|
|
15885
|
+
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(n_), a = c(() => Qn(i.value, t.row));
|
|
15591
15886
|
return (e, i) => q(n) ? (R(), d("td", {
|
|
15592
15887
|
key: 0,
|
|
15593
15888
|
class: M(["vui-table-interactive-cell", { selected: a.value }])
|
|
@@ -15600,96 +15895,20 @@ var Yg = { key: 0 }, Xg = {
|
|
|
15600
15895
|
_: 1
|
|
15601
15896
|
})], 2)) : u("", !0);
|
|
15602
15897
|
}
|
|
15603
|
-
}),
|
|
15604
|
-
Cell: () =>
|
|
15605
|
-
Head: () =>
|
|
15606
|
-
Root: () =>
|
|
15607
|
-
SelectAll: () =>
|
|
15608
|
-
SelectRow: () =>
|
|
15609
|
-
}),
|
|
15610
|
-
|
|
15611
|
-
props: {
|
|
15612
|
-
disabled: { type: Boolean },
|
|
15613
|
-
value: {}
|
|
15614
|
-
},
|
|
15615
|
-
setup(e) {
|
|
15616
|
-
let t = e;
|
|
15617
|
-
return (n, r) => (R(), d("button", {
|
|
15618
|
-
class: M(["vui-tab", { disabled: t.disabled }]),
|
|
15619
|
-
role: "tab",
|
|
15620
|
-
name: e.value
|
|
15621
|
-
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10, t_));
|
|
15622
|
-
}
|
|
15623
|
-
}), r_ = {
|
|
15624
|
-
key: 0,
|
|
15625
|
-
class: "flex-1"
|
|
15626
|
-
}, i_ = {
|
|
15627
|
-
key: 0,
|
|
15628
|
-
ref: "underline",
|
|
15629
|
-
class: "vui-tab-underline"
|
|
15630
|
-
}, a_ = /* @__PURE__ */ v({
|
|
15631
|
-
__name: "Tabs",
|
|
15632
|
-
props: /* @__PURE__ */ k({
|
|
15633
|
-
variant: { default: "default" },
|
|
15634
|
-
expand: { type: Boolean },
|
|
15635
|
-
disabled: { type: Boolean },
|
|
15636
|
-
transitionName: { default: "fade" }
|
|
15637
|
-
}, {
|
|
15638
|
-
modelValue: {},
|
|
15639
|
-
modelModifiers: {}
|
|
15640
|
-
}),
|
|
15641
|
-
emits: ["update:modelValue"],
|
|
15642
|
-
setup(e) {
|
|
15643
|
-
let t = me(), r = pe(e, "modelValue"), a = J("underline"), o = J("tabs");
|
|
15644
|
-
function s() {
|
|
15645
|
-
if (window && o.value && a.value) {
|
|
15646
|
-
let e = o.value.querySelector(".vui-tab.active")?.getBoundingClientRect(), t = o.value.getBoundingClientRect();
|
|
15647
|
-
!e || !t ? a.value.style.width = "0px" : (a.value.style.width = `${e.width}px`, a.value.style.left = `${e.left - t.left}px`);
|
|
15648
|
-
}
|
|
15649
|
-
}
|
|
15650
|
-
let c = On(t.default);
|
|
15651
|
-
return L(() => {
|
|
15652
|
-
pn(o, s), Y([
|
|
15653
|
-
r,
|
|
15654
|
-
() => e.expand,
|
|
15655
|
-
() => c.value.length
|
|
15656
|
-
], s, {
|
|
15657
|
-
immediate: !0,
|
|
15658
|
-
flush: "post"
|
|
15659
|
-
});
|
|
15660
|
-
}), An(c, "Tab"), (t, a) => (R(), d("div", {
|
|
15661
|
-
ref: "tabs",
|
|
15662
|
-
class: M(["vui-tabs", [{
|
|
15663
|
-
expand: e.expand,
|
|
15664
|
-
disabled: e.disabled
|
|
15665
|
-
}, e.variant === "default" ? "" : `vui-tabs-variant-${e.variant}`]]),
|
|
15666
|
-
role: "tablist"
|
|
15667
|
-
}, [
|
|
15668
|
-
H(t.$slots, "start"),
|
|
15669
|
-
(R(!0), d(n, null, V(q(c), (e) => (R(), l(U(e), {
|
|
15670
|
-
key: e.props.value,
|
|
15671
|
-
class: M({ active: e.props.value === r.value }),
|
|
15672
|
-
onClick: (t) => r.value = e.props.value
|
|
15673
|
-
}, null, 8, ["class", "onClick"]))), 128)),
|
|
15674
|
-
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div", r_)), H(t.$slots, "end")], 64)) : u("", !0),
|
|
15675
|
-
g(i, {
|
|
15676
|
-
name: e.transitionName === "none" ? void 0 : e.transitionName,
|
|
15677
|
-
css: e.transitionName !== "none",
|
|
15678
|
-
appear: ""
|
|
15679
|
-
}, {
|
|
15680
|
-
default: X(() => [r.value ? (R(), d("div", i_, null, 512)) : u("", !0)]),
|
|
15681
|
-
_: 1
|
|
15682
|
-
}, 8, ["name", "css"])
|
|
15683
|
-
], 2));
|
|
15684
|
-
}
|
|
15685
|
-
}), o_ = B(/* @__PURE__ */ new Map()), s_ = 0;
|
|
15686
|
-
function c_(e, t) {
|
|
15898
|
+
}), l_ = /* @__PURE__ */ ke({
|
|
15899
|
+
Cell: () => $g,
|
|
15900
|
+
Head: () => t_,
|
|
15901
|
+
Root: () => o_,
|
|
15902
|
+
SelectAll: () => s_,
|
|
15903
|
+
SelectRow: () => c_
|
|
15904
|
+
}), u_ = B(/* @__PURE__ */ new Map()), d_ = 0;
|
|
15905
|
+
function f_(e, t) {
|
|
15687
15906
|
let n = {
|
|
15688
15907
|
persist: !1,
|
|
15689
15908
|
timeout: 7e3,
|
|
15690
15909
|
...t
|
|
15691
15910
|
}, r = {
|
|
15692
|
-
id:
|
|
15911
|
+
id: d_,
|
|
15693
15912
|
title: e,
|
|
15694
15913
|
persist: n.persist,
|
|
15695
15914
|
description: n.description,
|
|
@@ -15699,19 +15918,19 @@ function c_(e, t) {
|
|
|
15699
15918
|
body: n.body,
|
|
15700
15919
|
bodyProps: n.bodyProps ?? {}
|
|
15701
15920
|
};
|
|
15702
|
-
return
|
|
15703
|
-
|
|
15704
|
-
}, n.timeout,
|
|
15921
|
+
return u_.value.set(d_, r), n.persist || setTimeout((e) => {
|
|
15922
|
+
u_.value.delete(e);
|
|
15923
|
+
}, n.timeout, d_), d_++, r;
|
|
15705
15924
|
}
|
|
15706
|
-
function
|
|
15707
|
-
|
|
15925
|
+
function p_(e) {
|
|
15926
|
+
u_.value.delete(e);
|
|
15708
15927
|
}
|
|
15709
15928
|
//#endregion
|
|
15710
15929
|
//#region src/components/Toast/Toasts.vue?vue&type=script&setup=true&lang.ts
|
|
15711
|
-
var
|
|
15930
|
+
var m_ = {
|
|
15712
15931
|
key: 1,
|
|
15713
15932
|
class: "vui-toast-item"
|
|
15714
|
-
},
|
|
15933
|
+
}, h_ = { class: "vui-toast-item-content" }, g_ = { key: 0 }, __ = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
15715
15934
|
__name: "Toasts",
|
|
15716
15935
|
props: { placement: { default: "bottom-end" } },
|
|
15717
15936
|
setup(e) {
|
|
@@ -15720,13 +15939,13 @@ var u_ = {
|
|
|
15720
15939
|
tag: "ul",
|
|
15721
15940
|
class: "vui-toast-list"
|
|
15722
15941
|
}, {
|
|
15723
|
-
default: X(() => [(R(!0), d(n, null, V(q(
|
|
15942
|
+
default: X(() => [(R(!0), d(n, null, V(q(u_), ([e, t]) => (R(), d(n, { key: e }, [t.body ? (R(), l(U(t.body), A({
|
|
15724
15943
|
key: 0,
|
|
15725
15944
|
ref_for: !0
|
|
15726
15945
|
}, {
|
|
15727
15946
|
data: t.bodyProps,
|
|
15728
15947
|
toastId: e
|
|
15729
|
-
}), null, 16)) : (R(), d("li",
|
|
15948
|
+
}), null, 16)) : (R(), d("li", m_, [f("div", h_, [f("strong", null, G(t.title), 1), t.description ? (R(), d("p", g_, G(t.description), 1)) : u("", !0)]), t.action ? (R(), l(gr, {
|
|
15730
15949
|
key: 0,
|
|
15731
15950
|
size: "s",
|
|
15732
15951
|
onClick: (e) => t.action.handler(t.id)
|
|
@@ -15740,7 +15959,7 @@ var u_ = {
|
|
|
15740
15959
|
}), [["__scopeId", "data-v-a0ee459a"]]);
|
|
15741
15960
|
//#endregion
|
|
15742
15961
|
//#region src/shared/viewTransition.ts
|
|
15743
|
-
function
|
|
15962
|
+
function v_() {
|
|
15744
15963
|
let e = B(!1);
|
|
15745
15964
|
async function t(t) {
|
|
15746
15965
|
if (!document.startViewTransition) {
|
|
@@ -15763,4 +15982,4 @@ function m_() {
|
|
|
15763
15982
|
};
|
|
15764
15983
|
}
|
|
15765
15984
|
//#endregion
|
|
15766
|
-
export { En as Accordion, jn as AccordionGroup, In as Alert, Rn as AspectRatio, ar as Avatar, sr as AvatarGroup, $d as Backdrop, lr as Badge, ur as BadgeGroup, dr as BreadcrumbItem, mr as Breadcrumbs, gr as Button, _r as ButtonGroup, wd as Calendar, jd as Card, Pd as Carousel, zd as Checkbox, vh as Color, vf as Commands, Vh as Confirm, xf as ContextMenu, Cf as CopyClipboard, yh as Counter, Ed as Divider, Ym as Drawer, Zm as Dropdown, rh as DropdownItem, ah as DropdownTitle, Sh as Dropzone, Ch as File, or as Flex, oh as Grid, sh as Indicator, mh as Input, Wd as Kbd, Mh as KbdGroup, Ih as Marquee, zh as MenuItem, Rh as Menubar, nf as Modal, Gh as OTP, Kh as OTPItem, Yh as Overflow, $h as Pagination, wh as Password, yf as Popout, tg as PopoutHover, ng as Progress, cg as Radio, lg as RadioGroup, dg as Resizable,
|
|
15985
|
+
export { En as Accordion, jn as AccordionGroup, In as Alert, Rn as AspectRatio, ar as Avatar, sr as AvatarGroup, $d as Backdrop, lr as Badge, ur as BadgeGroup, dr as BreadcrumbItem, mr as Breadcrumbs, gr as Button, _r as ButtonGroup, wd as Calendar, jd as Card, Pd as Carousel, zd as Checkbox, vh as Color, vf as Commands, Vh as Confirm, xf as ContextMenu, Cf as CopyClipboard, yh as Counter, Ed as Divider, Ym as Drawer, Zm as Dropdown, rh as DropdownItem, ah as DropdownTitle, Sh as Dropzone, Ch as File, or as Flex, oh as Grid, sh as Indicator, mh as Input, Wd as Kbd, Mh as KbdGroup, Ih as Marquee, zh as MenuItem, Rh as Menubar, nf as Modal, Gh as OTP, Kh as OTPItem, Yh as Overflow, $h as Pagination, wh as Password, yf as Popout, tg as PopoutHover, ng as Progress, cg as Radio, lg as RadioGroup, dg as Resizable, bg as ResizableView, Og as Select, jg as Sheet, Lg as Sidebar, zg as Skeleton, Wg as Slider, hr as Spinner, Zg as Switch, pg as Tab, l_ as Table, gg as Tabs, jh as Textarea, __ as Toasts, Qh as Tooltip, r_ as defineTable, Xh as paginate, f_ as pushToast, p_ as removeToast, Vn as searchString, Cd as setColorTheme, Sd as theme, Ud as useBreakpoint, v_ as useViewTransition, Vd as vuiBreakpoints };
|