@contentstudio/ui 0.1.32 → 0.1.34
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/index.d.ts +21 -0
- package/dist/index.js +149 -116
- package/dist/index.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Gx = Object.defineProperty;
|
|
2
2
|
var Xx = (t, a, o) => a in t ? Gx(t, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[a] = o;
|
|
3
3
|
var Te = (t, a, o) => (Xx(t, typeof a != "symbol" ? a + "" : a, o), o);
|
|
4
|
-
import { defineComponent as j, computed as u, openBlock as k, createElementBlock as g, normalizeClass as w, unref as l, normalizeStyle as E, renderSlot as
|
|
4
|
+
import { defineComponent as j, computed as u, openBlock as k, createElementBlock as g, normalizeClass as w, unref as l, normalizeStyle as E, renderSlot as P, createCommentVNode as L, createElementVNode as f, withKeys as rx, withModifiers as Ve, toDisplayString as R, ref as V, createTextVNode as oe, mergeProps as ce, Fragment as de, renderList as V2, withDirectives as E2, createBlock as N, resolveDynamicComponent as fe, vShow as Bv, Teleport as F2, createVNode as T, Transition as le, withCtx as U, shallowRef as Kx, watch as ie, getCurrentScope as dx, onScopeDispose as sx, shallowReadonly as b2, readonly as Jx, inject as ue, onMounted as ge, provide as Oe, nextTick as Me, onBeforeUnmount as N2, reactive as j2, createApp as wv, createSlots as Qx, useSlots as Yx, h as $e, createStaticVNode as _x, onUnmounted as Vv, watchEffect as Q2, toRaw as be, isVNode as lx, cloneVNode as eI, pushScopeId as tI, popScopeId as aI } from "vue";
|
|
5
5
|
const I2 = {
|
|
6
6
|
primary: {
|
|
7
7
|
base: "blue",
|
|
@@ -387,14 +387,14 @@ const I2 = {
|
|
|
387
387
|
type: t.type,
|
|
388
388
|
onClick: c
|
|
389
389
|
}, [
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
P(r.$slots, "leftSection"),
|
|
391
|
+
P(r.$slots, "default"),
|
|
392
392
|
t.loading ? (k(), g("span", sI, [
|
|
393
|
-
|
|
393
|
+
P(r.$slots, "loader", {}, () => [
|
|
394
394
|
lI
|
|
395
395
|
])
|
|
396
396
|
])) : L("", !0),
|
|
397
|
-
|
|
397
|
+
P(r.$slots, "rightSection")
|
|
398
398
|
], 14, dI));
|
|
399
399
|
}
|
|
400
400
|
}), hI = (t) => {
|
|
@@ -679,7 +679,7 @@ const vI = {
|
|
|
679
679
|
labelSize: "cstu-text-base cstu-font-medium",
|
|
680
680
|
descriptionSize: "cstu-text-sm"
|
|
681
681
|
}
|
|
682
|
-
},
|
|
682
|
+
}, B = u(() => `${H[I].inputClass.split(" ")[0]} cstu-transition-all cstu-duration-300`), O = u(() => H[I].labelSize), Z = u(() => H[I].descriptionSize), te = u(() => "cstu-text-sm"), J = u(() => Fe(b)), Y = u(() => {
|
|
683
683
|
const A = {
|
|
684
684
|
default: "cstu-bg-white cstu-border cstu-transition-colors cstu-duration-150 cstu-px-3",
|
|
685
685
|
filled: "cstu-bg-gray-100 cstu-border cstu-border-transparent cstu-transition-colors cstu-duration-150 cstu-px-3",
|
|
@@ -712,18 +712,18 @@ const vI = {
|
|
|
712
712
|
l(O)
|
|
713
713
|
])
|
|
714
714
|
}, [
|
|
715
|
-
|
|
715
|
+
P(A.$slots, "label", {}, () => [
|
|
716
716
|
oe(R(t.label) + " ", 1),
|
|
717
717
|
t.withAsterisk || t.required ? (k(), g("span", II, "*")) : L("", !0)
|
|
718
718
|
])
|
|
719
719
|
], 10, xI),
|
|
720
|
-
|
|
720
|
+
P(A.$slots, "labelIcon")
|
|
721
721
|
])) : L("", !0),
|
|
722
722
|
f("div", null, [
|
|
723
723
|
f("div", {
|
|
724
724
|
class: w([
|
|
725
725
|
"cstu-flex cstu-items-center cstu-gap-2 cstu-py-2",
|
|
726
|
-
l(
|
|
726
|
+
l(B),
|
|
727
727
|
l(J),
|
|
728
728
|
l(Y),
|
|
729
729
|
{
|
|
@@ -732,7 +732,7 @@ const vI = {
|
|
|
732
732
|
])
|
|
733
733
|
}, [
|
|
734
734
|
A.$slots.leftSection ? (k(), g("div", wI, [
|
|
735
|
-
|
|
735
|
+
P(A.$slots, "leftSection")
|
|
736
736
|
])) : L("", !0),
|
|
737
737
|
f("input", ce({
|
|
738
738
|
id: t.id || K,
|
|
@@ -759,7 +759,7 @@ const vI = {
|
|
|
759
759
|
onChange: De
|
|
760
760
|
}, t.inputProps), null, 16, CI),
|
|
761
761
|
A.$slots.rightSection ? (k(), g("div", LI, [
|
|
762
|
-
|
|
762
|
+
P(A.$slots, "rightSection")
|
|
763
763
|
])) : L("", !0)
|
|
764
764
|
], 2)
|
|
765
765
|
]),
|
|
@@ -767,7 +767,7 @@ const vI = {
|
|
|
767
767
|
f("p", {
|
|
768
768
|
class: w(["cstu-text-gray-500", l(Z)])
|
|
769
769
|
}, [
|
|
770
|
-
|
|
770
|
+
P(A.$slots, "description", {}, () => [
|
|
771
771
|
oe(R(t.description), 1)
|
|
772
772
|
])
|
|
773
773
|
], 2)
|
|
@@ -776,7 +776,7 @@ const vI = {
|
|
|
776
776
|
f("p", {
|
|
777
777
|
class: w(["cstu-text-red-500", l(Z)])
|
|
778
778
|
}, [
|
|
779
|
-
|
|
779
|
+
P(A.$slots, "error", {}, () => [
|
|
780
780
|
oe(R(t.error), 1)
|
|
781
781
|
])
|
|
782
782
|
], 2)
|
|
@@ -871,11 +871,11 @@ const vI = {
|
|
|
871
871
|
disabled: t.disabled || t.loading,
|
|
872
872
|
onClick: s
|
|
873
873
|
}, [
|
|
874
|
-
|
|
874
|
+
P(M.$slots, "checkIcon", {}, () => [
|
|
875
875
|
t.withCheckIcon && t.modelValue ? (k(), g("svg", zI, HI)) : L("", !0)
|
|
876
876
|
]),
|
|
877
877
|
t.loading ? (k(), g("span", PI, VI)) : L("", !0),
|
|
878
|
-
|
|
878
|
+
P(M.$slots, "label", {}, () => [
|
|
879
879
|
t.label ? (k(), g("span", {
|
|
880
880
|
key: 0,
|
|
881
881
|
class: w(["whitespace-nowrap", t.loading ? "opacity-75" : ""])
|
|
@@ -987,7 +987,7 @@ const vI = {
|
|
|
987
987
|
style: E(l(d))
|
|
988
988
|
}, [
|
|
989
989
|
f("div", FI, [
|
|
990
|
-
|
|
990
|
+
P(p.$slots, "default", {}, void 0, !0),
|
|
991
991
|
t.disabled ? L("", !0) : (k(), g("div", {
|
|
992
992
|
key: 0,
|
|
993
993
|
class: w(["indicator-dot", [l(s), l(i)]]),
|
|
@@ -1122,9 +1122,9 @@ const Dv = (t, a) => {
|
|
|
1122
1122
|
return (I, z) => (k(), g("div", null, [
|
|
1123
1123
|
t.label || I.$slots.label ? (k(), g("div", RI, [
|
|
1124
1124
|
t.label && !I.$slots.label ? (k(), g("span", OI, R(t.label), 1)) : L("", !0),
|
|
1125
|
-
I.$slots.label ?
|
|
1125
|
+
I.$slots.label ? P(I.$slots, "label", { key: 1 }) : L("", !0),
|
|
1126
1126
|
t.showValue && t.valuePosition === "top" && !I.$slots.value ? (k(), g("span", $I, R(l(o)) + "% ", 1)) : L("", !0),
|
|
1127
|
-
t.showValue && t.valuePosition === "top" && I.$slots.value ?
|
|
1127
|
+
t.showValue && t.valuePosition === "top" && I.$slots.value ? P(I.$slots, "value", { key: 3 }) : L("", !0)
|
|
1128
1128
|
])) : L("", !0),
|
|
1129
1129
|
f("div", {
|
|
1130
1130
|
class: w(["cstu-relative", { "cstu-flex cstu-items-center cstu-gap-2": t.showValue && t.valuePosition === "right" }])
|
|
@@ -1180,7 +1180,7 @@ const Dv = (t, a) => {
|
|
|
1180
1180
|
class: w(["cstu-absolute cstu-z-10", [l(C)]]),
|
|
1181
1181
|
style: E([l(h), { top: "50%", transform: "translateX(-50%) translateY(-50%)" }])
|
|
1182
1182
|
}, [
|
|
1183
|
-
|
|
1183
|
+
P(I.$slots, "minValueMarker", {}, () => [
|
|
1184
1184
|
f("div", {
|
|
1185
1185
|
class: w([
|
|
1186
1186
|
"cstu-h-full cstu-w-full cstu-rounded-sm border",
|
|
@@ -1194,7 +1194,7 @@ const Dv = (t, a) => {
|
|
|
1194
1194
|
])
|
|
1195
1195
|
], 6)) : L("", !0),
|
|
1196
1196
|
t.showValue && t.valuePosition === "right" && !I.$slots.value ? (k(), g("span", ZI, R(l(o)) + "% ", 1)) : L("", !0),
|
|
1197
|
-
t.showValue && t.valuePosition === "right" && I.$slots.value ?
|
|
1197
|
+
t.showValue && t.valuePosition === "right" && I.$slots.value ? P(I.$slots, "value", { key: 2 }) : L("", !0)
|
|
1198
1198
|
], 2)
|
|
1199
1199
|
]));
|
|
1200
1200
|
}
|
|
@@ -1267,7 +1267,7 @@ const NI = {
|
|
|
1267
1267
|
class: w(["flex items-start", [l(s)]])
|
|
1268
1268
|
}, [
|
|
1269
1269
|
C.$slots.icon ? (k(), g("div", NI, [
|
|
1270
|
-
|
|
1270
|
+
P(C.$slots, "icon")
|
|
1271
1271
|
])) : L("", !0),
|
|
1272
1272
|
f("div", {
|
|
1273
1273
|
class: w(["flex-grow", [C.$slots.icon && "ml-3"]])
|
|
@@ -1288,7 +1288,7 @@ const NI = {
|
|
|
1288
1288
|
l(h)
|
|
1289
1289
|
])
|
|
1290
1290
|
}, R(t.message), 3)) : L("", !0),
|
|
1291
|
-
|
|
1291
|
+
P(C.$slots, "default")
|
|
1292
1292
|
], 2),
|
|
1293
1293
|
t.closable ? (k(), g("div", GI, [
|
|
1294
1294
|
f("button", {
|
|
@@ -1512,7 +1512,7 @@ const aw = /* @__PURE__ */ j({
|
|
|
1512
1512
|
])) : L("", !0),
|
|
1513
1513
|
t.title ? (k(), g("div", dw, R(t.title), 1)) : L("", !0),
|
|
1514
1514
|
t.content ? (k(), g("div", sw, R(t.content), 1)) : L("", !0),
|
|
1515
|
-
|
|
1515
|
+
P(c.$slots, "default")
|
|
1516
1516
|
])
|
|
1517
1517
|
], 2)
|
|
1518
1518
|
], 4)) : L("", !0)
|
|
@@ -1804,7 +1804,7 @@ const gw = (t) => ({
|
|
|
1804
1804
|
}, m = Rv(n), C = Tv(m), q = await d.getDimensions(s), I = m === "y", z = I ? "top" : "left", b = I ? "bottom" : "right", v = I ? "clientHeight" : "clientWidth", x = i.reference[C] + i.reference[m] - p[m] - i.floating[C], S = p[m] - i.reference[m], $ = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(s));
|
|
1805
1805
|
let D = $ ? $[v] : 0;
|
|
1806
1806
|
(!D || !await (d.isElement == null ? void 0 : d.isElement($))) && (D = r.floating[v] || i.floating[C]);
|
|
1807
|
-
const K = x / 2 - S / 2, H = D / 2 - q[C] / 2 - 1,
|
|
1807
|
+
const K = x / 2 - S / 2, H = D / 2 - q[C] / 2 - 1, B = A2(y[z], H), O = A2(y[b], H), Z = B, te = D - q[C] - O, J = D / 2 - q[C] / 2 + K, Y = Cv(Z, J, te), Q = !h.arrow && qe(n) != null && J !== Y && i.reference[C] / 2 - (J < Z ? B : O) - q[C] / 2 < 0, ne = Q ? J < Z ? J - Z : J - te : 0;
|
|
1808
1808
|
return {
|
|
1809
1809
|
[m]: p[m] + ne,
|
|
1810
1810
|
data: {
|
|
@@ -1863,20 +1863,20 @@ const vw = function(t) {
|
|
|
1863
1863
|
placement: $
|
|
1864
1864
|
}
|
|
1865
1865
|
};
|
|
1866
|
-
const D = S.map((
|
|
1867
|
-
const O = qe(
|
|
1868
|
-
return [
|
|
1866
|
+
const D = S.map((B) => {
|
|
1867
|
+
const O = qe(B.placement);
|
|
1868
|
+
return [B.placement, O && M ? (
|
|
1869
1869
|
// Check along the mainAxis and main crossAxis side.
|
|
1870
|
-
|
|
1870
|
+
B.overflows.slice(0, 2).reduce((Z, te) => Z + te, 0)
|
|
1871
1871
|
) : (
|
|
1872
1872
|
// Check only the mainAxis.
|
|
1873
|
-
|
|
1874
|
-
),
|
|
1875
|
-
}).sort((
|
|
1873
|
+
B.overflows[0]
|
|
1874
|
+
), B.overflows];
|
|
1875
|
+
}).sort((B, O) => B[1] - O[1]), H = ((n = D.filter((B) => B[2].slice(
|
|
1876
1876
|
0,
|
|
1877
1877
|
// Aligned placements should not check their opposite crossAxis
|
|
1878
1878
|
// side.
|
|
1879
|
-
qe(
|
|
1879
|
+
qe(B[0]) ? 2 : 3
|
|
1880
1880
|
).every((O) => O <= 0))[0]) == null ? void 0 : n[0]) || D[0][0];
|
|
1881
1881
|
return H !== r ? {
|
|
1882
1882
|
data: {
|
|
@@ -1916,12 +1916,12 @@ const vw = function(t) {
|
|
|
1916
1916
|
const z = je(n), b = H2(r), v = je(r) === r, x = await (h.isRTL == null ? void 0 : h.isRTL(s.floating)), S = p || (v || !q ? [av(r)] : uw(r)), $ = C !== "none";
|
|
1917
1917
|
!p && $ && S.push(...kw(r, q, C, x));
|
|
1918
1918
|
const D = [r, ...S], K = await Ov(a, I), H = [];
|
|
1919
|
-
let
|
|
1919
|
+
let B = ((c = i.flip) == null ? void 0 : c.overflows) || [];
|
|
1920
1920
|
if (M && H.push(K[z]), y) {
|
|
1921
1921
|
const J = Mx(n, d, x);
|
|
1922
1922
|
H.push(K[J[0]], K[J[1]]);
|
|
1923
1923
|
}
|
|
1924
|
-
if (
|
|
1924
|
+
if (B = [...B, {
|
|
1925
1925
|
placement: n,
|
|
1926
1926
|
overflows: H
|
|
1927
1927
|
}], !H.every((J) => J <= 0)) {
|
|
@@ -1931,18 +1931,18 @@ const vw = function(t) {
|
|
|
1931
1931
|
return {
|
|
1932
1932
|
data: {
|
|
1933
1933
|
index: J,
|
|
1934
|
-
overflows:
|
|
1934
|
+
overflows: B
|
|
1935
1935
|
},
|
|
1936
1936
|
reset: {
|
|
1937
1937
|
placement: Y
|
|
1938
1938
|
}
|
|
1939
1939
|
};
|
|
1940
|
-
let Q = (Z =
|
|
1940
|
+
let Q = (Z = B.filter((ne) => ne.overflows[0] <= 0).sort((ne, G) => ne.overflows[1] - G.overflows[1])[0]) == null ? void 0 : Z.placement;
|
|
1941
1941
|
if (!Q)
|
|
1942
1942
|
switch (m) {
|
|
1943
1943
|
case "bestFit": {
|
|
1944
1944
|
var te;
|
|
1945
|
-
const ne = (te =
|
|
1945
|
+
const ne = (te = B.filter((G) => {
|
|
1946
1946
|
if ($) {
|
|
1947
1947
|
const he = H2(G.placement);
|
|
1948
1948
|
return he === b || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2738,8 +2738,8 @@ const qx = Symbol("hover-card"), zx = /* @__PURE__ */ j({
|
|
|
2738
2738
|
key: 0,
|
|
2739
2739
|
class: w(t.wrapperClass)
|
|
2740
2740
|
}, [
|
|
2741
|
-
|
|
2742
|
-
], 2)) :
|
|
2741
|
+
P(a.$slots, "default")
|
|
2742
|
+
], 2)) : P(a.$slots, "default", { key: 1 });
|
|
2743
2743
|
}
|
|
2744
2744
|
}), Kw = { class: "rounded-lg bg-white shadow-lg border border-gray-200 px-3 py-2" }, Jw = /* @__PURE__ */ j({
|
|
2745
2745
|
__name: "HoverCard",
|
|
@@ -2842,7 +2842,7 @@ const qx = Symbol("hover-card"), zx = /* @__PURE__ */ j({
|
|
|
2842
2842
|
}, [
|
|
2843
2843
|
T(zx, null, {
|
|
2844
2844
|
default: U(() => [
|
|
2845
|
-
|
|
2845
|
+
P(x.$slots, "target")
|
|
2846
2846
|
]),
|
|
2847
2847
|
_: 3
|
|
2848
2848
|
}),
|
|
@@ -2874,7 +2874,7 @@ const qx = Symbol("hover-card"), zx = /* @__PURE__ */ j({
|
|
|
2874
2874
|
onMouseleave: S[1] || (S[1] = ($) => !t.disabled && l(h)())
|
|
2875
2875
|
}, [
|
|
2876
2876
|
f("div", Kw, [
|
|
2877
|
-
|
|
2877
|
+
P(x.$slots, "dropdown")
|
|
2878
2878
|
]),
|
|
2879
2879
|
t.withArrow ? (k(), g("div", {
|
|
2880
2880
|
key: 0,
|
|
@@ -3681,7 +3681,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3681
3681
|
setup(t, { expose: a, emit: o }) {
|
|
3682
3682
|
const c = t;
|
|
3683
3683
|
class n {
|
|
3684
|
-
constructor(
|
|
3684
|
+
constructor(B, O = {}) {
|
|
3685
3685
|
Te(this, "type");
|
|
3686
3686
|
Te(this, "cancelable", !0);
|
|
3687
3687
|
Te(this, "target", null);
|
|
@@ -3689,7 +3689,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3689
3689
|
Te(this, "defaultPrevented", !1);
|
|
3690
3690
|
Te(this, "componentId", "");
|
|
3691
3691
|
Te(this, "trigger", "programmatic");
|
|
3692
|
-
this.type =
|
|
3692
|
+
this.type = B, Object.assign(this, O);
|
|
3693
3693
|
}
|
|
3694
3694
|
preventDefault() {
|
|
3695
3695
|
this.defaultPrevented = !0;
|
|
@@ -3702,15 +3702,15 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3702
3702
|
return;
|
|
3703
3703
|
}
|
|
3704
3704
|
const H = document.querySelectorAll(".cstu-modal");
|
|
3705
|
-
let
|
|
3705
|
+
let B = 1050;
|
|
3706
3706
|
H.forEach((O) => {
|
|
3707
3707
|
const Z = parseInt(window.getComputedStyle(O).zIndex, 10);
|
|
3708
|
-
!isNaN(Z) && Z >
|
|
3709
|
-
}), h.value =
|
|
3708
|
+
!isNaN(Z) && Z > B && (B = Z);
|
|
3709
|
+
}), h.value = B + 10;
|
|
3710
3710
|
}
|
|
3711
3711
|
const m = u(() => c.fullscreen ? "" : C(c.radius));
|
|
3712
3712
|
function C(H) {
|
|
3713
|
-
const
|
|
3713
|
+
const B = {
|
|
3714
3714
|
none: "",
|
|
3715
3715
|
sm: "cstu-rounded-sm",
|
|
3716
3716
|
md: "cstu-rounded-md",
|
|
@@ -3718,7 +3718,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3718
3718
|
xl: "cstu-rounded-xl",
|
|
3719
3719
|
full: "cstu-rounded-full"
|
|
3720
3720
|
};
|
|
3721
|
-
return
|
|
3721
|
+
return B[H || c.size] || B.md;
|
|
3722
3722
|
}
|
|
3723
3723
|
function q() {
|
|
3724
3724
|
if (i.value)
|
|
@@ -3736,14 +3736,14 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3736
3736
|
function I(H = "programmatic") {
|
|
3737
3737
|
if (!i.value)
|
|
3738
3738
|
return;
|
|
3739
|
-
const
|
|
3739
|
+
const B = new n("hide", {
|
|
3740
3740
|
trigger: H,
|
|
3741
3741
|
target: null,
|
|
3742
3742
|
vueTarget: null,
|
|
3743
3743
|
componentId: c.id
|
|
3744
3744
|
});
|
|
3745
|
-
o("hide",
|
|
3746
|
-
$(d.value), o("hidden",
|
|
3745
|
+
o("hide", B), !B.defaultPrevented && (i.value = !1, s.value = !1, document.body.classList.remove("cstu-modal-open"), o("update:modelValue", !1), Me(() => {
|
|
3746
|
+
$(d.value), o("hidden", B);
|
|
3747
3747
|
}));
|
|
3748
3748
|
}
|
|
3749
3749
|
function z(H) {
|
|
@@ -3753,8 +3753,8 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3753
3753
|
H === "ok" ? o("ok") : H === "cancel" && o("cancel"), I(H);
|
|
3754
3754
|
}
|
|
3755
3755
|
function v(H) {
|
|
3756
|
-
const
|
|
3757
|
-
O || Z || te &&
|
|
3756
|
+
const B = H.target, O = B.closest(".cstu-dropdown-menu"), Z = B.tagName && ["input", "select", "textarea", "button"].includes(B.tagName.toLowerCase()), te = B.closest(".cstu-modal-content");
|
|
3757
|
+
O || Z || te && B !== H.currentTarget || !c.noCloseOnBackdrop && B === H.currentTarget && I("backdrop");
|
|
3758
3758
|
}
|
|
3759
3759
|
function x(H) {
|
|
3760
3760
|
H.key === "Escape" && i.value && !c.noCloseOnEsc && !c.busy && I("esc");
|
|
@@ -3763,8 +3763,8 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3763
3763
|
Me(() => {
|
|
3764
3764
|
if (!r.value)
|
|
3765
3765
|
return;
|
|
3766
|
-
const H = r.value,
|
|
3767
|
-
|
|
3766
|
+
const H = r.value, B = K(H);
|
|
3767
|
+
B.length > 0 && B[0].focus();
|
|
3768
3768
|
});
|
|
3769
3769
|
}
|
|
3770
3770
|
function $(H) {
|
|
@@ -3776,8 +3776,8 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3776
3776
|
}
|
|
3777
3777
|
function D(H) {
|
|
3778
3778
|
if (i.value && r.value && H.target) {
|
|
3779
|
-
const
|
|
3780
|
-
if (O !==
|
|
3779
|
+
const B = H.target, O = r.value, Z = !!B.closest(".cstu-modal-content");
|
|
3780
|
+
if (O !== B && !O.contains(B) && // Only trap focus if not inside any modal content (allows nested modals to work)
|
|
3781
3781
|
!Z) {
|
|
3782
3782
|
if (s.value)
|
|
3783
3783
|
return;
|
|
@@ -3814,8 +3814,8 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3814
3814
|
}), document.addEventListener("keydown", x), document.addEventListener("focusin", D), c.modelValue && (q(), i.value && Me(() => {
|
|
3815
3815
|
setTimeout(() => {
|
|
3816
3816
|
const H = document.getElementById(c.id);
|
|
3817
|
-
let
|
|
3818
|
-
H && H.parentNode && (
|
|
3817
|
+
let B = null;
|
|
3818
|
+
H && H.parentNode && (B = H.parentNode.querySelector(".cstu-modal-backdrop")), H && window.getComputedStyle(H).display === "none" && (H.style.display = "block"), B && window.getComputedStyle(B).display === "none" && (B.style.display = "block");
|
|
3819
3819
|
}, 50);
|
|
3820
3820
|
}));
|
|
3821
3821
|
}), N2(() => {
|
|
@@ -3825,7 +3825,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3825
3825
|
show: q,
|
|
3826
3826
|
close: b,
|
|
3827
3827
|
toggle: z
|
|
3828
|
-
}), (H,
|
|
3828
|
+
}), (H, B) => (k(), N(F2, {
|
|
3829
3829
|
to: "body",
|
|
3830
3830
|
disabled: c.static || c.teleport === !1
|
|
3831
3831
|
}, [
|
|
@@ -3858,7 +3858,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3858
3858
|
style: E({ zIndex: l(y) }),
|
|
3859
3859
|
"aria-labelledby": !t.hideHeader && t.title ? `modal-title-${c.id}` : void 0,
|
|
3860
3860
|
onClick: v,
|
|
3861
|
-
onMousedown:
|
|
3861
|
+
onMousedown: B[5] || (B[5] = Ve(() => {
|
|
3862
3862
|
}, ["stop"]))
|
|
3863
3863
|
}, [
|
|
3864
3864
|
f("div", {
|
|
@@ -3872,7 +3872,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3872
3872
|
[`cstu-modal-${t.size}`]: t.size && !t.fullscreen
|
|
3873
3873
|
}
|
|
3874
3874
|
]),
|
|
3875
|
-
onClick:
|
|
3875
|
+
onClick: B[4] || (B[4] = Ve((O) => O.target === O.currentTarget && O.stopPropagation(), ["stop"]))
|
|
3876
3876
|
}, [
|
|
3877
3877
|
pC,
|
|
3878
3878
|
f("div", {
|
|
@@ -3886,7 +3886,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3886
3886
|
ref_key: "modalElement",
|
|
3887
3887
|
ref: r,
|
|
3888
3888
|
"aria-label": t.ariaLabel,
|
|
3889
|
-
onClick:
|
|
3889
|
+
onClick: B[3] || (B[3] = (O) => O.target === O.currentTarget && O.stopPropagation())
|
|
3890
3890
|
}, [
|
|
3891
3891
|
t.hideHeader ? L("", !0) : (k(), g("header", {
|
|
3892
3892
|
key: 0,
|
|
@@ -3896,8 +3896,8 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3896
3896
|
{ "show-divider": t.showHeaderDivider || t.showDividers }
|
|
3897
3897
|
])
|
|
3898
3898
|
}, [
|
|
3899
|
-
|
|
3900
|
-
|
|
3899
|
+
P(H.$slots, "modal-header", {}, () => [
|
|
3900
|
+
P(H.$slots, "modal-title", {}, () => [
|
|
3901
3901
|
f("h5", {
|
|
3902
3902
|
id: `modal-title-${c.id}`,
|
|
3903
3903
|
class: w([c.titleClass || "cstu-modal-title", { "sr-only": t.titleSrOnly }])
|
|
@@ -3908,7 +3908,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3908
3908
|
type: "button",
|
|
3909
3909
|
"aria-label": t.closeTitle,
|
|
3910
3910
|
class: "cstu-close",
|
|
3911
|
-
onClick:
|
|
3911
|
+
onClick: B[0] || (B[0] = (O) => b("headerClose"))
|
|
3912
3912
|
}, mC, 8, fC))
|
|
3913
3913
|
])
|
|
3914
3914
|
], 2)),
|
|
@@ -3919,7 +3919,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3919
3919
|
{ "cstu-modal-body-scrollable": t.scrollable }
|
|
3920
3920
|
])
|
|
3921
3921
|
}, [
|
|
3922
|
-
|
|
3922
|
+
P(H.$slots, "default", {}, () => [
|
|
3923
3923
|
t.content ? (k(), g("div", vC, R(t.content), 1)) : L("", !0)
|
|
3924
3924
|
])
|
|
3925
3925
|
], 2),
|
|
@@ -3931,13 +3931,13 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3931
3931
|
{ "show-divider": t.showFooterDivider || t.showDividers }
|
|
3932
3932
|
])
|
|
3933
3933
|
}, [
|
|
3934
|
-
|
|
3934
|
+
P(H.$slots, "modal-footer", {}, () => [
|
|
3935
3935
|
t.okOnly ? L("", !0) : (k(), N(ke, {
|
|
3936
3936
|
key: 0,
|
|
3937
3937
|
variant: t.cancelVariant,
|
|
3938
3938
|
color: t.cancelColor,
|
|
3939
3939
|
disabled: t.cancelDisabled || t.busy,
|
|
3940
|
-
onClick:
|
|
3940
|
+
onClick: B[1] || (B[1] = (O) => b("cancel"))
|
|
3941
3941
|
}, {
|
|
3942
3942
|
default: U(() => [
|
|
3943
3943
|
oe(R(t.cancelTitle), 1)
|
|
@@ -3949,7 +3949,7 @@ const yC = ["id"], uC = ["id", "aria-labelledby"], pC = /* @__PURE__ */ f("span"
|
|
|
3949
3949
|
color: t.okColor,
|
|
3950
3950
|
disabled: t.okDisabled || t.busy,
|
|
3951
3951
|
loading: t.busy,
|
|
3952
|
-
onClick:
|
|
3952
|
+
onClick: B[2] || (B[2] = (O) => b("ok"))
|
|
3953
3953
|
}, {
|
|
3954
3954
|
default: U(() => [
|
|
3955
3955
|
oe(R(t.okTitle), 1)
|
|
@@ -4109,7 +4109,7 @@ const bC = ["src", "alt"], SC = ["title"], qC = {
|
|
|
4109
4109
|
class: "avatar__placeholder",
|
|
4110
4110
|
title: t.alt
|
|
4111
4111
|
}, [
|
|
4112
|
-
|
|
4112
|
+
P(y.$slots, "default", {}, () => [
|
|
4113
4113
|
t.name ? (k(), g(de, { key: 0 }, [
|
|
4114
4114
|
oe(R(l(n)), 1)
|
|
4115
4115
|
], 64)) : (k(), g("svg", qC, AC))
|
|
@@ -4199,7 +4199,7 @@ const PC = /* @__PURE__ */ j({
|
|
|
4199
4199
|
]),
|
|
4200
4200
|
style: E(l(h))
|
|
4201
4201
|
}, [
|
|
4202
|
-
|
|
4202
|
+
P(s.$slots, "default", {}, void 0, !0)
|
|
4203
4203
|
], 6));
|
|
4204
4204
|
}
|
|
4205
4205
|
});
|
|
@@ -4246,7 +4246,7 @@ const Wv = /* @__PURE__ */ j({
|
|
|
4246
4246
|
return Oe("activeTab", d), Oe("setActiveTab", r), Oe("tabsOrientation", n), Oe("tabsPlacement", c), (h, s) => (k(), g("div", {
|
|
4247
4247
|
class: w(["cstu-tabs", `cstu-tabs-${l(n)}`, `cstu-tabs-placement-${l(c)}`, `cstu-tabs-variant-${l(i)}`])
|
|
4248
4248
|
}, [
|
|
4249
|
-
|
|
4249
|
+
P(h.$slots, "default")
|
|
4250
4250
|
], 2));
|
|
4251
4251
|
}
|
|
4252
4252
|
});
|
|
@@ -4292,7 +4292,7 @@ const VC = /* @__PURE__ */ j({
|
|
|
4292
4292
|
class: w(l(n)),
|
|
4293
4293
|
style: E(l(d))
|
|
4294
4294
|
}, [
|
|
4295
|
-
|
|
4295
|
+
P(r.$slots, "default")
|
|
4296
4296
|
], 6));
|
|
4297
4297
|
}
|
|
4298
4298
|
});
|
|
@@ -4367,21 +4367,21 @@ const FC = /* @__PURE__ */ j({
|
|
|
4367
4367
|
onClick: p
|
|
4368
4368
|
}, Qx({
|
|
4369
4369
|
default: U(() => [
|
|
4370
|
-
|
|
4370
|
+
P(m.$slots, "default")
|
|
4371
4371
|
]),
|
|
4372
4372
|
_: 2
|
|
4373
4373
|
}, [
|
|
4374
4374
|
m.$slots.leftSection ? {
|
|
4375
4375
|
name: "leftSection",
|
|
4376
4376
|
fn: U(() => [
|
|
4377
|
-
|
|
4377
|
+
P(m.$slots, "leftSection")
|
|
4378
4378
|
]),
|
|
4379
4379
|
key: "0"
|
|
4380
4380
|
} : void 0,
|
|
4381
4381
|
m.$slots.rightSection ? {
|
|
4382
4382
|
name: "rightSection",
|
|
4383
4383
|
fn: U(() => [
|
|
4384
|
-
|
|
4384
|
+
P(m.$slots, "rightSection")
|
|
4385
4385
|
]),
|
|
4386
4386
|
key: "1"
|
|
4387
4387
|
} : void 0
|
|
@@ -4407,7 +4407,7 @@ const jC = /* @__PURE__ */ j({
|
|
|
4407
4407
|
return (r, h) => E2((k(), g("div", {
|
|
4408
4408
|
class: w(l(d))
|
|
4409
4409
|
}, [
|
|
4410
|
-
|
|
4410
|
+
P(r.$slots, "default")
|
|
4411
4411
|
], 2)), [
|
|
4412
4412
|
[Bv, l(o) === a.value]
|
|
4413
4413
|
]);
|
|
@@ -4779,7 +4779,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4779
4779
|
o.disabled || o.trigger === "hover" && setTimeout(() => {
|
|
4780
4780
|
Y("hover");
|
|
4781
4781
|
}, 100);
|
|
4782
|
-
},
|
|
4782
|
+
}, B = (A) => {
|
|
4783
4783
|
o.closeOnClickOutside && c.value && i.value && !i.value.contains(A.target) && n.value && !n.value.contains(A.target) && Y("clickAway");
|
|
4784
4784
|
}, O = () => {
|
|
4785
4785
|
o.closeOnClickOutside && Y("backdrop");
|
|
@@ -4831,7 +4831,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4831
4831
|
onMouseenter: K,
|
|
4832
4832
|
onMouseleave: H
|
|
4833
4833
|
}, [
|
|
4834
|
-
|
|
4834
|
+
P(A.$slots, "trigger")
|
|
4835
4835
|
], 34),
|
|
4836
4836
|
(k(), N(F2, { to: "body" }, [
|
|
4837
4837
|
T(le, {
|
|
@@ -4889,7 +4889,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4889
4889
|
key: 1,
|
|
4890
4890
|
class: w(["cstu-popover-header", [l(x), o.headerClass]])
|
|
4891
4891
|
}, [
|
|
4892
|
-
|
|
4892
|
+
P(A.$slots, "header", {}, () => [
|
|
4893
4893
|
f("h3", KC, R(t.title), 1),
|
|
4894
4894
|
t.showCloseIcon ? (k(), g("button", {
|
|
4895
4895
|
key: 0,
|
|
@@ -4903,7 +4903,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4903
4903
|
f("div", {
|
|
4904
4904
|
class: w(["cstu-popover-body", [l(S), o.bodyClass]])
|
|
4905
4905
|
}, [
|
|
4906
|
-
|
|
4906
|
+
P(A.$slots, "default", {}, () => [
|
|
4907
4907
|
t.content ? (k(), g("div", YC, R(t.content), 1)) : L("", !0)
|
|
4908
4908
|
])
|
|
4909
4909
|
], 2),
|
|
@@ -4911,7 +4911,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4911
4911
|
key: 2,
|
|
4912
4912
|
class: w(["cstu-popover-footer", [l($), o.footerClass]])
|
|
4913
4913
|
}, [
|
|
4914
|
-
|
|
4914
|
+
P(A.$slots, "footer", {}, () => [
|
|
4915
4915
|
T(ke, {
|
|
4916
4916
|
size: "sm",
|
|
4917
4917
|
variant: "subtle",
|
|
@@ -4926,7 +4926,7 @@ const DC = /* @__PURE__ */ f("span", { class: "cstu-sr-only" }, "First page", -1
|
|
|
4926
4926
|
], 2))
|
|
4927
4927
|
], 4)
|
|
4928
4928
|
], 46, XC)), [
|
|
4929
|
-
[l(Hx),
|
|
4929
|
+
[l(Hx), B]
|
|
4930
4930
|
]) : L("", !0)
|
|
4931
4931
|
]),
|
|
4932
4932
|
_: 3
|
|
@@ -4991,7 +4991,7 @@ const IS = /* @__PURE__ */ j({
|
|
|
4991
4991
|
]),
|
|
4992
4992
|
style: E(h(C))
|
|
4993
4993
|
}, [
|
|
4994
|
-
|
|
4994
|
+
P(y.$slots, `item-${C}`, {
|
|
4995
4995
|
isActive: i(C)
|
|
4996
4996
|
}, () => [
|
|
4997
4997
|
(k(), N(fe(m)))
|
|
@@ -5005,13 +5005,13 @@ const IS = /* @__PURE__ */ j({
|
|
|
5005
5005
|
a.separatorClass
|
|
5006
5006
|
])
|
|
5007
5007
|
}, [
|
|
5008
|
-
|
|
5008
|
+
P(y.$slots, "separator", {}, () => [
|
|
5009
5009
|
typeof a.separator == "string" ? (k(), g(de, { key: 0 }, [
|
|
5010
5010
|
oe(R(a.separator), 1)
|
|
5011
5011
|
], 64)) : a.separator ? (k(), N(fe(a.separator), { key: 1 })) : L("", !0)
|
|
5012
5012
|
])
|
|
5013
5013
|
], 2))
|
|
5014
|
-
], 64))), 128)) :
|
|
5014
|
+
], 64))), 128)) : P(y.$slots, "default", { key: 0 })
|
|
5015
5015
|
], 2));
|
|
5016
5016
|
}
|
|
5017
5017
|
});
|
|
@@ -5083,7 +5083,7 @@ const _C = {
|
|
|
5083
5083
|
fullWidth: D = !1,
|
|
5084
5084
|
inputClass: K = "",
|
|
5085
5085
|
rows: H = 3,
|
|
5086
|
-
resize:
|
|
5086
|
+
resize: B = "none"
|
|
5087
5087
|
} = t, O = `textarea-${Math.random().toString(36).substring(2, 11)}`, Z = {
|
|
5088
5088
|
xs: {
|
|
5089
5089
|
inputClass: `cstu-min-h-8 ${D ? "cstu-w-full" : "cstu-max-w-[20.5rem]"}`,
|
|
@@ -5178,12 +5178,12 @@ const _C = {
|
|
|
5178
5178
|
l(J)
|
|
5179
5179
|
]
|
|
5180
5180
|
}, t.labelProps), [
|
|
5181
|
-
|
|
5181
|
+
P(X.$slots, "label", {}, () => [
|
|
5182
5182
|
oe(R(t.label) + " ", 1),
|
|
5183
5183
|
t.withAsterisk || t.required ? (k(), g("span", tL, "*")) : L("", !0)
|
|
5184
5184
|
])
|
|
5185
5185
|
], 16, eL),
|
|
5186
|
-
|
|
5186
|
+
P(X.$slots, "labelIcon")
|
|
5187
5187
|
])) : L("", !0),
|
|
5188
5188
|
f("div", null, [
|
|
5189
5189
|
f("div", {
|
|
@@ -5200,7 +5200,7 @@ const _C = {
|
|
|
5200
5200
|
style: E(l(De))
|
|
5201
5201
|
}, [
|
|
5202
5202
|
X.$slots.leftSection ? (k(), g("div", aL, [
|
|
5203
|
-
|
|
5203
|
+
P(X.$slots, "leftSection")
|
|
5204
5204
|
])) : L("", !0),
|
|
5205
5205
|
f("textarea", ce({
|
|
5206
5206
|
id: t.id || O,
|
|
@@ -5228,7 +5228,7 @@ const _C = {
|
|
|
5228
5228
|
onChange: Wx
|
|
5229
5229
|
}, t.textareaProps), null, 16, oL),
|
|
5230
5230
|
X.$slots.rightSection ? (k(), g("div", cL, [
|
|
5231
|
-
|
|
5231
|
+
P(X.$slots, "rightSection")
|
|
5232
5232
|
])) : L("", !0)
|
|
5233
5233
|
], 6)
|
|
5234
5234
|
]),
|
|
@@ -5239,7 +5239,7 @@ const _C = {
|
|
|
5239
5239
|
f("p", {
|
|
5240
5240
|
class: w(["cstu-text-gray-500", l(Y)])
|
|
5241
5241
|
}, [
|
|
5242
|
-
|
|
5242
|
+
P(X.$slots, "description", {}, () => [
|
|
5243
5243
|
oe(R(t.description), 1)
|
|
5244
5244
|
])
|
|
5245
5245
|
], 2)
|
|
@@ -5251,7 +5251,7 @@ const _C = {
|
|
|
5251
5251
|
f("p", {
|
|
5252
5252
|
class: w(["cstu-text-red-500", l(Y)])
|
|
5253
5253
|
}, [
|
|
5254
|
-
|
|
5254
|
+
P(X.$slots, "error", {}, () => [
|
|
5255
5255
|
oe(R(t.error), 1)
|
|
5256
5256
|
])
|
|
5257
5257
|
], 2)
|
|
@@ -34256,7 +34256,7 @@ const rL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34256
34256
|
key: 0,
|
|
34257
34257
|
name: t.iconName,
|
|
34258
34258
|
size: l(n)
|
|
34259
|
-
}, null, 8, ["name", "size"])) :
|
|
34259
|
+
}, null, 8, ["name", "size"])) : P(y.$slots, "default", { key: 1 })
|
|
34260
34260
|
], 2)
|
|
34261
34261
|
], 10, sL));
|
|
34262
34262
|
}
|
|
@@ -34401,15 +34401,15 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34401
34401
|
"aria-haspopup": "true",
|
|
34402
34402
|
onClick: I
|
|
34403
34403
|
}, [
|
|
34404
|
-
|
|
34405
|
-
|
|
34404
|
+
P(v.$slots, "icon", { closeDropdown: b }),
|
|
34405
|
+
P(v.$slots, "selected", { closeDropdown: b }, () => [
|
|
34406
34406
|
oe("Select")
|
|
34407
34407
|
]),
|
|
34408
34408
|
t.showArrow ? (k(), g("span", {
|
|
34409
34409
|
key: 0,
|
|
34410
34410
|
class: w(["cstu-transition cstu-leading-none", { "cstu-rotate-180": c.value }])
|
|
34411
34411
|
}, [
|
|
34412
|
-
|
|
34412
|
+
P(v.$slots, "arrow", { closeDropdown: b }, () => [
|
|
34413
34413
|
lL
|
|
34414
34414
|
])
|
|
34415
34415
|
], 2)) : L("", !0)
|
|
@@ -34445,7 +34445,7 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34445
34445
|
tabindex: "-1",
|
|
34446
34446
|
onKeydown: z
|
|
34447
34447
|
}, [
|
|
34448
|
-
|
|
34448
|
+
P(v.$slots, "default", { closeDropdown: b })
|
|
34449
34449
|
], 40, hL)
|
|
34450
34450
|
], 38), [
|
|
34451
34451
|
[Bv, c.value]
|
|
@@ -34488,7 +34488,7 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34488
34488
|
]),
|
|
34489
34489
|
onClick: i
|
|
34490
34490
|
}, [
|
|
34491
|
-
|
|
34491
|
+
P(d.$slots, "default", { selected: t.selected })
|
|
34492
34492
|
], 2));
|
|
34493
34493
|
}
|
|
34494
34494
|
}), yL = { class: "cstu-inline-flex cstu-relative" }, uL = ["disabled"], pL = {
|
|
@@ -34646,11 +34646,11 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34646
34646
|
onClick: x[0] || (x[0] = (S) => v.$emit("click"))
|
|
34647
34647
|
}, [
|
|
34648
34648
|
t.loading ? (k(), g("span", pL, [
|
|
34649
|
-
|
|
34649
|
+
P(v.$slots, "loader", {}, () => [
|
|
34650
34650
|
kL
|
|
34651
34651
|
])
|
|
34652
34652
|
])) : L("", !0),
|
|
34653
|
-
|
|
34653
|
+
P(v.$slots, "default")
|
|
34654
34654
|
], 14, uL),
|
|
34655
34655
|
t.showDivider ? (k(), g("div", {
|
|
34656
34656
|
key: 0,
|
|
@@ -34680,7 +34680,7 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34680
34680
|
disabled: t.disabled || t.loading,
|
|
34681
34681
|
onClick: y
|
|
34682
34682
|
}, [
|
|
34683
|
-
|
|
34683
|
+
P(v.$slots, "dropdown-icon", {}, () => [
|
|
34684
34684
|
T(l(O2), {
|
|
34685
34685
|
class: w(["cstu-h-4 cstu-w-4", {
|
|
34686
34686
|
"cstu-opacity-50": t.disabled || t.loading,
|
|
@@ -34716,7 +34716,7 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34716
34716
|
}, ["stop"]))
|
|
34717
34717
|
}, [
|
|
34718
34718
|
f("div", fL, [
|
|
34719
|
-
|
|
34719
|
+
P(v.$slots, "menu")
|
|
34720
34720
|
])
|
|
34721
34721
|
], 36)) : L("", !0)
|
|
34722
34722
|
]),
|
|
@@ -34834,13 +34834,13 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
34834
34834
|
key: 0,
|
|
34835
34835
|
class: w(y.icon)
|
|
34836
34836
|
}, null, 2)) : L("", !0),
|
|
34837
|
-
o.modelValue === y.value ?
|
|
34838
|
-
o.modelValue === y.value ?
|
|
34837
|
+
o.modelValue === y.value ? P(s.$slots, "leftSection", { key: 1 }) : L("", !0),
|
|
34838
|
+
o.modelValue === y.value ? P(s.$slots, "default", { key: 2 }, () => [
|
|
34839
34839
|
oe(R(y.label), 1)
|
|
34840
34840
|
]) : (k(), g(de, { key: 3 }, [
|
|
34841
34841
|
oe(R(y.label), 1)
|
|
34842
34842
|
], 64)),
|
|
34843
|
-
o.modelValue === y.value ?
|
|
34843
|
+
o.modelValue === y.value ? P(s.$slots, "rightSection", { key: 4 }) : L("", !0)
|
|
34844
34844
|
], 2)
|
|
34845
34845
|
], 10, gL))), 128))
|
|
34846
34846
|
], 2)
|
|
@@ -35019,11 +35019,11 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
35019
35019
|
}
|
|
35020
35020
|
])
|
|
35021
35021
|
}, R(t.thumbIcon), 3)) : L("", !0),
|
|
35022
|
-
r.$slots.thumbIcon ?
|
|
35022
|
+
r.$slots.thumbIcon ? P(r.$slots, "thumbIcon", {
|
|
35023
35023
|
key: 1,
|
|
35024
35024
|
checked: t.modelValue,
|
|
35025
35025
|
size: t.size
|
|
35026
|
-
}) : r.$slots.default ?
|
|
35026
|
+
}) : r.$slots.default ? P(r.$slots, "default", {
|
|
35027
35027
|
key: 2,
|
|
35028
35028
|
checked: t.modelValue,
|
|
35029
35029
|
size: t.size
|
|
@@ -35133,7 +35133,7 @@ const lL = /* @__PURE__ */ _x('<svg xmlns="http://www.w3.org/2000/svg" width="12
|
|
|
35133
35133
|
f("span", {
|
|
35134
35134
|
class: w([[{ "overflow-hidden max-w-full": t.circle }, t.textClass], "badge-label"])
|
|
35135
35135
|
}, [
|
|
35136
|
-
|
|
35136
|
+
P(s.$slots, "default")
|
|
35137
35137
|
], 2),
|
|
35138
35138
|
t.rightSection ? (k(), g("span", wL, [
|
|
35139
35139
|
typeof t.rightSection == "string" ? (k(), g(de, { key: 0 }, [
|
|
@@ -35178,7 +35178,7 @@ const Bx = /* @__PURE__ */ j({
|
|
|
35178
35178
|
])
|
|
35179
35179
|
}, {
|
|
35180
35180
|
default: U(() => [
|
|
35181
|
-
|
|
35181
|
+
P(i.$slots, "default")
|
|
35182
35182
|
]),
|
|
35183
35183
|
_: 3
|
|
35184
35184
|
}, 8, ["class"]));
|
|
@@ -35224,7 +35224,7 @@ const Bx = /* @__PURE__ */ j({
|
|
|
35224
35224
|
])
|
|
35225
35225
|
}, {
|
|
35226
35226
|
default: U(() => [
|
|
35227
|
-
|
|
35227
|
+
P(r.$slots, "default")
|
|
35228
35228
|
]),
|
|
35229
35229
|
_: 3
|
|
35230
35230
|
}, 8, ["class"]));
|
|
@@ -36735,7 +36735,7 @@ const _b = /* @__PURE__ */ Dv(Yb, [["__scopeId", "data-v-e05db311"]]), rv = {
|
|
|
36735
36735
|
eS.showByType(a.message, a.type, o);
|
|
36736
36736
|
}
|
|
36737
36737
|
}), (o, c) => (k(), g("div", tS, [
|
|
36738
|
-
|
|
36738
|
+
P(o.$slots, "default")
|
|
36739
36739
|
]));
|
|
36740
36740
|
}
|
|
36741
36741
|
});
|
|
@@ -36916,7 +36916,7 @@ const aS = {
|
|
|
36916
36916
|
"aria-modal": "true"
|
|
36917
36917
|
}, s.$attrs), [
|
|
36918
36918
|
s.$slots.header || t.title || t.withCloseButton ? (k(), g("div", aS, [
|
|
36919
|
-
|
|
36919
|
+
P(s.$slots, "header", {}, () => [
|
|
36920
36920
|
t.title ? (k(), g("div", oS, R(t.title), 1)) : L("", !0)
|
|
36921
36921
|
]),
|
|
36922
36922
|
t.withCloseButton ? (k(), g("button", ce({
|
|
@@ -36927,7 +36927,7 @@ const aS = {
|
|
|
36927
36927
|
}, t.closeButtonProps), nS, 16)) : L("", !0)
|
|
36928
36928
|
])) : L("", !0),
|
|
36929
36929
|
f("div", iS, [
|
|
36930
|
-
|
|
36930
|
+
P(s.$slots, "default")
|
|
36931
36931
|
])
|
|
36932
36932
|
], 16)) : L("", !0)
|
|
36933
36933
|
]),
|
|
@@ -36936,7 +36936,39 @@ const aS = {
|
|
|
36936
36936
|
]));
|
|
36937
36937
|
}
|
|
36938
36938
|
});
|
|
36939
|
-
const DS = {}
|
|
36939
|
+
const DS = {}, TS = /* @__PURE__ */ j({
|
|
36940
|
+
__name: "ListItem",
|
|
36941
|
+
props: {
|
|
36942
|
+
disabled: { type: Boolean, default: !1 },
|
|
36943
|
+
selected: { type: Boolean, default: !1 },
|
|
36944
|
+
class: { default: "" },
|
|
36945
|
+
selectedClass: { default: "" },
|
|
36946
|
+
noColorOnSelected: { type: Boolean, default: !1 }
|
|
36947
|
+
},
|
|
36948
|
+
emits: ["click"],
|
|
36949
|
+
setup(t, { emit: a }) {
|
|
36950
|
+
const o = t, c = u(() => o.class);
|
|
36951
|
+
function n() {
|
|
36952
|
+
o.disabled || a("click");
|
|
36953
|
+
}
|
|
36954
|
+
return (i, d) => (k(), g("div", {
|
|
36955
|
+
role: "listitem",
|
|
36956
|
+
tabindex: "-1",
|
|
36957
|
+
class: w([
|
|
36958
|
+
"cstu-cursor-pointer cstu-rounded-lg cstu-min-h-9 cstu-flex cstu-items-center",
|
|
36959
|
+
"cstu-py-[5.5px] cstu-pr-[13.5px] cstu-pl-[10.5px]",
|
|
36960
|
+
{ "hover:cstu-bg-blue-50 active:cstu-bg-blue-50": !t.disabled },
|
|
36961
|
+
{ "cstu-cursor-not-allowed cstu-bg-gray-100 ": t.disabled },
|
|
36962
|
+
{ [t.selectedClass]: t.selected && !t.disabled },
|
|
36963
|
+
{ "cstu-bg-blue-50": t.selected && !t.noColorOnSelected && !t.disabled },
|
|
36964
|
+
l(c)
|
|
36965
|
+
]),
|
|
36966
|
+
onClick: n
|
|
36967
|
+
}, [
|
|
36968
|
+
P(i.$slots, "default", { selected: t.selected })
|
|
36969
|
+
], 2));
|
|
36970
|
+
}
|
|
36971
|
+
});
|
|
36940
36972
|
export {
|
|
36941
36973
|
CS as ActionIcon,
|
|
36942
36974
|
pS as Alert,
|
|
@@ -36957,6 +36989,7 @@ export {
|
|
|
36957
36989
|
Jw as HoverCard,
|
|
36958
36990
|
zx as HoverCardTarget,
|
|
36959
36991
|
yS as Indicator,
|
|
36992
|
+
TS as ListItem,
|
|
36960
36993
|
aw as Loader,
|
|
36961
36994
|
gS as Modal,
|
|
36962
36995
|
mS as ModalDirective,
|