@speckle/ui-components 2.15.2-alpha4 → 2.15.2-alpha5
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/lib.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useField as xe } from "vee-validate";
|
|
|
7
7
|
import { nanoid as ke } from "nanoid";
|
|
8
8
|
import { isNullOrUndefined as gt, SourceApps as vt, getClientOperatingSystem as bt, OperatingSystem as pe } from "@speckle/shared";
|
|
9
9
|
import { useResizeObserver as yt, useMutationObserver as xt, onKeyDown as kt, isClient as Ce, computedAsync as Ct } from "@vueuse/core";
|
|
10
|
-
import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as Bt, TransitionRoot as _t, Dialog as Lt, TransitionChild as
|
|
10
|
+
import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as Bt, TransitionRoot as _t, Dialog as Lt, TransitionChild as Ve, DialogPanel as Pt, Disclosure as Vt, DisclosureButton as jt, DisclosurePanel as Ot, Menu as Mt, MenuButton as At, MenuItems as Dt, MenuItem as Tt } from "@headlessui/vue";
|
|
11
11
|
import { directive as Fe } from "vue-tippy";
|
|
12
12
|
import Rt from "v3-infinite-loading";
|
|
13
13
|
const Ft = {
|
|
@@ -141,12 +141,12 @@ const Ft = {
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
143
|
setup(e, { emit: l }) {
|
|
144
|
-
const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = r(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Le(s) ? s : Le(o) ? o : "a"),
|
|
144
|
+
const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = r(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Le(s) ? s : Le(o) ? o : "a"), d = r(() => {
|
|
145
145
|
if (!t.to)
|
|
146
146
|
return t.submit ? "submit" : "button";
|
|
147
|
-
}),
|
|
147
|
+
}), f = r(() => t.disabled || t.loading), u = r(() => t.loading ? Ze : t.iconLeft), p = r(() => {
|
|
148
148
|
const g = [];
|
|
149
|
-
if (g.push("border-2"),
|
|
149
|
+
if (g.push("border-2"), f.value)
|
|
150
150
|
g.push(
|
|
151
151
|
t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
152
152
|
);
|
|
@@ -190,7 +190,7 @@ const Ft = {
|
|
|
190
190
|
}), b = r(() => {
|
|
191
191
|
const g = [];
|
|
192
192
|
if (!t.text && !t.link)
|
|
193
|
-
if (
|
|
193
|
+
if (f.value)
|
|
194
194
|
g.push(
|
|
195
195
|
(t.outlined, "text-foreground-disabled")
|
|
196
196
|
);
|
|
@@ -237,7 +237,7 @@ const Ft = {
|
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
else
|
|
240
|
-
|
|
240
|
+
f.value ? g.push("text-foreground-disabled") : t.color === "invert" ? g.push(
|
|
241
241
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
242
|
) : t.color === "secondary" ? g.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? g.push("text-success") : t.color === "warning" ? g.push("text-warning") : t.color === "info" ? g.push("text-info") : t.color === "danger" ? g.push("text-danger") : g.push("text-primary hover:text-primary-focus");
|
|
243
243
|
return g.join(" ");
|
|
@@ -246,7 +246,7 @@ const Ft = {
|
|
|
246
246
|
return g.push(t.rounded ? "rounded-full" : "rounded-md"), g.join(" ");
|
|
247
247
|
}), h = r(() => {
|
|
248
248
|
const g = [];
|
|
249
|
-
if (!
|
|
249
|
+
if (!f.value)
|
|
250
250
|
switch (t.color) {
|
|
251
251
|
case "invert":
|
|
252
252
|
g.push("hover:ring-4 ring-white/50");
|
|
@@ -297,19 +297,19 @@ const Ft = {
|
|
|
297
297
|
case "base":
|
|
298
298
|
return "px-3";
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), V = r(() => {
|
|
301
301
|
const g = [];
|
|
302
|
-
return t.fullWidth && g.push("w-full"),
|
|
302
|
+
return t.fullWidth && g.push("w-full"), f.value && g.push("cursor-not-allowed"), g.join(" ");
|
|
303
303
|
}), y = r(() => {
|
|
304
304
|
const g = [];
|
|
305
|
-
return !
|
|
305
|
+
return !f.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !f.value && t.link && g.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
307
|
), g.join(" ");
|
|
308
308
|
}), w = r(() => {
|
|
309
309
|
const g = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
312
|
-
|
|
312
|
+
V.value,
|
|
313
313
|
k.value,
|
|
314
314
|
b.value,
|
|
315
315
|
g ? "" : p.value,
|
|
@@ -340,7 +340,7 @@ const Ft = {
|
|
|
340
340
|
}
|
|
341
341
|
return g.join(" ");
|
|
342
342
|
}), F = (g) => {
|
|
343
|
-
if (
|
|
343
|
+
if (f.value) {
|
|
344
344
|
g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
@@ -349,10 +349,10 @@ const Ft = {
|
|
|
349
349
|
return (g, R) => (a(), P(H(e.to ? c.value : "button"), {
|
|
350
350
|
href: e.to,
|
|
351
351
|
to: e.to,
|
|
352
|
-
type:
|
|
352
|
+
type: d.value,
|
|
353
353
|
external: e.external,
|
|
354
354
|
class: x(w.value),
|
|
355
|
-
disabled:
|
|
355
|
+
disabled: f.value,
|
|
356
356
|
role: "button",
|
|
357
357
|
onClick: F
|
|
358
358
|
}, {
|
|
@@ -482,16 +482,16 @@ const Ut = {
|
|
|
482
482
|
setup(e, { emit: l }) {
|
|
483
483
|
const t = e, s = r(
|
|
484
484
|
() => {
|
|
485
|
-
var
|
|
486
|
-
return !((
|
|
485
|
+
var d, f;
|
|
486
|
+
return !((d = t.notification) != null && d.description) && !((f = t.notification) != null && f.cta);
|
|
487
487
|
}
|
|
488
488
|
), o = () => {
|
|
489
489
|
l("update:notification", null);
|
|
490
|
-
}, c = (
|
|
491
|
-
var
|
|
492
|
-
(p = (u = (
|
|
490
|
+
}, c = (d) => {
|
|
491
|
+
var f, u, p;
|
|
492
|
+
(p = (u = (f = t.notification) == null ? void 0 : f.cta) == null ? void 0 : u.onClick) == null || p.call(u, d), o();
|
|
493
493
|
};
|
|
494
|
-
return (
|
|
494
|
+
return (d, f) => (a(), m("div", Ut, [
|
|
495
495
|
i("div", Wt, [
|
|
496
496
|
L(ge, {
|
|
497
497
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
@@ -599,12 +599,12 @@ const Ut = {
|
|
|
599
599
|
)) : (p.push("rounded-full"), p.push(
|
|
600
600
|
t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
601
601
|
)), p.join(" ");
|
|
602
|
-
}),
|
|
602
|
+
}), d = r(() => {
|
|
603
603
|
const p = [
|
|
604
604
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
605
605
|
];
|
|
606
606
|
return t.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
|
|
607
|
-
}),
|
|
607
|
+
}), f = r(() => [
|
|
608
608
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
609
609
|
o.value
|
|
610
610
|
].join(" ")), u = (p) => {
|
|
@@ -619,7 +619,7 @@ const Ut = {
|
|
|
619
619
|
}, [
|
|
620
620
|
e.dot ? (a(), m("svg", {
|
|
621
621
|
key: 0,
|
|
622
|
-
class: x(
|
|
622
|
+
class: x(f.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
625
|
}, es, 2)) : S("", !0),
|
|
@@ -628,7 +628,7 @@ const Ut = {
|
|
|
628
628
|
]),
|
|
629
629
|
e.iconLeft ? (a(), m("button", {
|
|
630
630
|
key: 1,
|
|
631
|
-
class: x(
|
|
631
|
+
class: x(d.value),
|
|
632
632
|
onClick: b[0] || (b[0] = (v) => u(v))
|
|
633
633
|
}, [
|
|
634
634
|
(a(), P(H(e.iconLeft), {
|
|
@@ -638,9 +638,9 @@ const Ut = {
|
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
let
|
|
641
|
+
let je = [];
|
|
642
642
|
function ss(e) {
|
|
643
|
-
|
|
643
|
+
je = je ? e : e.slice();
|
|
644
644
|
}
|
|
645
645
|
var te = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e.lg = 1024] = "lg", e[e.xl = 1280] = "xl", e[e["2xl"] = 1536] = "2xl", e))(te || {});
|
|
646
646
|
function Ee(e) {
|
|
@@ -651,14 +651,14 @@ function Ee(e) {
|
|
|
651
651
|
orientation: s,
|
|
652
652
|
goVerticalBelow: o,
|
|
653
653
|
nonInteractive: c,
|
|
654
|
-
stepsPadding:
|
|
654
|
+
stepsPadding: d
|
|
655
655
|
},
|
|
656
|
-
emit:
|
|
656
|
+
emit: f
|
|
657
657
|
} = e, u = r(
|
|
658
658
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
659
659
|
), p = r({
|
|
660
660
|
get: () => Pe((l == null ? void 0 : l.value) || 0, -1, t.value.length),
|
|
661
|
-
set: (y) =>
|
|
661
|
+
set: (y) => f("update:modelValue", Pe(y, 0, t.value.length))
|
|
662
662
|
}), b = (y) => `${y + 1}`, v = (y) => y === p.value, h = (y) => y < p.value, k = (y, w) => {
|
|
663
663
|
var F;
|
|
664
664
|
if (c != null && c.value) {
|
|
@@ -671,7 +671,7 @@ function Ee(e) {
|
|
|
671
671
|
}, B = r(() => {
|
|
672
672
|
const y = ["flex"];
|
|
673
673
|
let w, $;
|
|
674
|
-
return (
|
|
674
|
+
return (d == null ? void 0 : d.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), y.push("flex"), u.value === "vertical" || o != null && o.value ? (y.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? y.push(
|
|
675
675
|
`sm:flex-row sm:space-y-0 sm:justify-start sm:${w} sm:items-center`
|
|
676
676
|
) : (o == null ? void 0 : o.value) === te.md ? y.push(
|
|
677
677
|
`md:flex-row md:space-y-0 md:justify-start md:${w} md:items-center`
|
|
@@ -680,7 +680,7 @@ function Ee(e) {
|
|
|
680
680
|
) : (o == null ? void 0 : o.value) === te.xl && y.push(
|
|
681
681
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${w} xl:items-center`
|
|
682
682
|
)) : y.push(`flex-row ${w} items-center`), y.join(" ");
|
|
683
|
-
}),
|
|
683
|
+
}), V = r(() => {
|
|
684
684
|
const y = ["flex items-center"];
|
|
685
685
|
return c != null && c.value || y.push("cursor-pointer"), y.join(" ");
|
|
686
686
|
});
|
|
@@ -691,7 +691,7 @@ function Ee(e) {
|
|
|
691
691
|
switchStep: k,
|
|
692
692
|
getStepDisplayValue: b,
|
|
693
693
|
listClasses: B,
|
|
694
|
-
linkClasses:
|
|
694
|
+
linkClasses: V,
|
|
695
695
|
orientation: u
|
|
696
696
|
};
|
|
697
697
|
}
|
|
@@ -735,8 +735,8 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
735
735
|
isCurrentStep: s,
|
|
736
736
|
isFinishedStep: o,
|
|
737
737
|
switchStep: c,
|
|
738
|
-
getStepDisplayValue:
|
|
739
|
-
listClasses:
|
|
738
|
+
getStepDisplayValue: d,
|
|
739
|
+
listClasses: f,
|
|
740
740
|
linkClasses: u
|
|
741
741
|
} = Ee({
|
|
742
742
|
props: ae(t),
|
|
@@ -747,7 +747,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
749
|
i("ol", {
|
|
750
|
-
class: x(n(
|
|
750
|
+
class: x(n(f))
|
|
751
751
|
}, [
|
|
752
752
|
(a(!0), m(U, null, G(e.steps, (v, h) => (a(), m("li", {
|
|
753
753
|
key: v.name
|
|
@@ -775,7 +775,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
775
775
|
onClick: (k) => n(c)(h, k)
|
|
776
776
|
}, [
|
|
777
777
|
i("div", cs, [
|
|
778
|
-
i("div", ds, I(n(
|
|
778
|
+
i("div", ds, I(n(d)(h)), 1),
|
|
779
779
|
i("div", fs, [
|
|
780
780
|
i("div", null, I(v.name), 1),
|
|
781
781
|
v.description ? (a(), m("div", ps, I(v.description), 1)) : S("", !0)
|
|
@@ -788,7 +788,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
788
788
|
onClick: (k) => n(c)(h, k)
|
|
789
789
|
}, [
|
|
790
790
|
i("div", ms, [
|
|
791
|
-
i("div", gs, I(n(
|
|
791
|
+
i("div", gs, I(n(d)(h)), 1),
|
|
792
792
|
i("div", vs, [
|
|
793
793
|
i("div", null, I(v.name), 1),
|
|
794
794
|
v.description ? (a(), m("div", bs, I(v.description), 1)) : S("", !0)
|
|
@@ -814,7 +814,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
814
814
|
}, Ps = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
817
|
-
},
|
|
817
|
+
}, Vs = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
820
820
|
}, kl = /* @__PURE__ */ M({
|
|
@@ -831,7 +831,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
831
831
|
},
|
|
832
832
|
emits: ["update:modelValue"],
|
|
833
833
|
setup(e, { emit: l }) {
|
|
834
|
-
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses:
|
|
834
|
+
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: d, linkClasses: f } = Ee({
|
|
835
835
|
props: ae(t),
|
|
836
836
|
emit: l
|
|
837
837
|
}), u = r(() => {
|
|
@@ -847,7 +847,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
849
|
i("ol", {
|
|
850
|
-
class: x([n(
|
|
850
|
+
class: x([n(d), p.value])
|
|
851
851
|
}, [
|
|
852
852
|
(a(!0), m(U, null, G(e.steps, (h, k) => (a(), m("li", {
|
|
853
853
|
key: h.name
|
|
@@ -855,7 +855,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
855
855
|
n(o)(k) ? (a(), m("a", {
|
|
856
856
|
key: 0,
|
|
857
857
|
href: h.href,
|
|
858
|
-
class: x(n(
|
|
858
|
+
class: x(n(f)),
|
|
859
859
|
onClick: (B) => n(c)(k, B)
|
|
860
860
|
}, [
|
|
861
861
|
i("span", ks, [
|
|
@@ -871,7 +871,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
871
871
|
], 10, xs)) : n(s)(k) ? (a(), m("a", {
|
|
872
872
|
key: 1,
|
|
873
873
|
href: h.href,
|
|
874
|
-
class: x(n(
|
|
874
|
+
class: x(n(f)),
|
|
875
875
|
"aria-current": "step",
|
|
876
876
|
onClick: (B) => n(c)(k, B)
|
|
877
877
|
}, [
|
|
@@ -887,11 +887,11 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
887
887
|
], 10, ws)) : (a(), m("a", {
|
|
888
888
|
key: 2,
|
|
889
889
|
href: h.href,
|
|
890
|
-
class: x(n(
|
|
890
|
+
class: x(n(f)),
|
|
891
891
|
onClick: (B) => n(c)(k, B)
|
|
892
892
|
}, [
|
|
893
893
|
i("div", Ls, [
|
|
894
|
-
e.basic ? (a(), m("span", Ps)) : (a(), m("div",
|
|
894
|
+
e.basic ? (a(), m("span", Ps)) : (a(), m("div", Vs))
|
|
895
895
|
]),
|
|
896
896
|
i("p", {
|
|
897
897
|
class: x(["text-foreground-disabled", u.value])
|
|
@@ -901,7 +901,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
901
901
|
], 2)
|
|
902
902
|
], 8, ys));
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), js = ["disabled"], Cl = /* @__PURE__ */ M({
|
|
905
905
|
__name: "CardButton",
|
|
906
906
|
props: {
|
|
907
907
|
disabled: { type: Boolean },
|
|
@@ -924,7 +924,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
924
924
|
}
|
|
925
925
|
l("update:modelValue", !t.modelValue), l("click", c);
|
|
926
926
|
};
|
|
927
|
-
return (c,
|
|
927
|
+
return (c, d) => (a(), m("button", {
|
|
928
928
|
class: x(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
@@ -932,7 +932,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
932
932
|
D(c.$slots, "default", {}, () => [
|
|
933
933
|
A("Text")
|
|
934
934
|
])
|
|
935
|
-
], 10,
|
|
935
|
+
], 10, js));
|
|
936
936
|
}
|
|
937
937
|
}), Os = { class: "relative flex items-start" }, Ms = { class: "flex h-6 items-center" }, As = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Ds = {
|
|
938
938
|
class: "ml-2 text-sm",
|
|
@@ -1032,8 +1032,8 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
1032
1032
|
const l = e, t = (y) => `${y}-${ke()}`, s = r(() => l.value || l.name), {
|
|
1033
1033
|
checked: o,
|
|
1034
1034
|
errorMessage: c,
|
|
1035
|
-
handleChange:
|
|
1036
|
-
value:
|
|
1035
|
+
handleChange: d,
|
|
1036
|
+
value: f
|
|
1037
1037
|
} = xe(l.name, l.rules, {
|
|
1038
1038
|
validateOnMount: l.validateOnMount,
|
|
1039
1039
|
type: "checkbox",
|
|
@@ -1042,12 +1042,12 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
1042
1042
|
}), u = r(() => l.label || l.name), p = r(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), b = r(() => l.description || c.value), v = r(() => `${l.name}-description`), h = r(() => {
|
|
1043
1043
|
const y = [];
|
|
1044
1044
|
return l.inlineDescription ? y.push("inline ml-2") : y.push("block"), c.value ? y.push("text-danger") : y.push("text-foreground-2"), y.join(" ");
|
|
1045
|
-
}), k = O(t("checkbox")), B = r(() => l.id || k.value),
|
|
1046
|
-
l.disabled ||
|
|
1045
|
+
}), k = O(t("checkbox")), B = r(() => l.id || k.value), V = (y) => {
|
|
1046
|
+
l.disabled || d(y);
|
|
1047
1047
|
};
|
|
1048
1048
|
return Y(() => {
|
|
1049
|
-
const y = l.modelValue, w =
|
|
1050
|
-
$ !== F &&
|
|
1049
|
+
const y = l.modelValue, w = f.value, $ = Array.isArray(y) ? y.includes(l.value) : y === l.value, F = Array.isArray(w) ? w.includes(l.value) : w === l.value;
|
|
1050
|
+
$ !== F && d(y);
|
|
1051
1051
|
}), (y, w) => (a(), m("div", Os, [
|
|
1052
1052
|
i("div", Ms, [
|
|
1053
1053
|
i("input", oe({
|
|
@@ -1059,7 +1059,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
1059
1059
|
value: s.value,
|
|
1060
1060
|
type: "checkbox",
|
|
1061
1061
|
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
|
|
1062
|
-
}, y.$attrs, { onChange:
|
|
1062
|
+
}, y.$attrs, { onChange: V }), null, 16, As)
|
|
1063
1063
|
]),
|
|
1064
1064
|
i("div", Ds, [
|
|
1065
1065
|
i("label", {
|
|
@@ -1083,10 +1083,10 @@ function Ue(e) {
|
|
|
1083
1083
|
validateOnMount: n(l.validateOnMount),
|
|
1084
1084
|
validateOnValueUpdate: n(l.validateOnValueUpdate),
|
|
1085
1085
|
initialValue: n(l.modelValue) || void 0
|
|
1086
|
-
}),
|
|
1086
|
+
}), d = r(() => {
|
|
1087
1087
|
const $ = ["block label text-foreground-2 mb-2"];
|
|
1088
1088
|
return n(l.showLabel) || $.push("sr-only"), $.join(" ");
|
|
1089
|
-
}),
|
|
1089
|
+
}), f = r(() => {
|
|
1090
1090
|
const $ = [
|
|
1091
1091
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
1092
1092
|
"disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
|
|
@@ -1102,7 +1102,7 @@ function Ue(e) {
|
|
|
1102
1102
|
() => b.value && n(l.hideErrorMessage)
|
|
1103
1103
|
), h = r(() => b.value || n(l.help)), k = r(() => !!h.value), B = r(
|
|
1104
1104
|
() => k.value ? `${n(l.name)}-${u.value}` : void 0
|
|
1105
|
-
),
|
|
1105
|
+
), V = r(() => {
|
|
1106
1106
|
const $ = ["mt-2 text-sm"];
|
|
1107
1107
|
return $.push(c.value ? "text-danger" : "text-foreground-2"), $.join(" ");
|
|
1108
1108
|
}), y = () => {
|
|
@@ -1114,17 +1114,17 @@ function Ue(e) {
|
|
|
1114
1114
|
return Y(() => {
|
|
1115
1115
|
n(l.autoFocus) && y();
|
|
1116
1116
|
}), {
|
|
1117
|
-
coreClasses:
|
|
1117
|
+
coreClasses: f,
|
|
1118
1118
|
title: p,
|
|
1119
1119
|
value: o,
|
|
1120
1120
|
helpTipId: B,
|
|
1121
|
-
helpTipClasses:
|
|
1121
|
+
helpTipClasses: V,
|
|
1122
1122
|
helpTip: h,
|
|
1123
1123
|
hideHelpTip: v,
|
|
1124
1124
|
errorMessage: b,
|
|
1125
1125
|
clear: w,
|
|
1126
1126
|
focus: y,
|
|
1127
|
-
labelClasses:
|
|
1127
|
+
labelClasses: d
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), qs = {
|
|
@@ -1154,8 +1154,8 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1154
1154
|
setup(e, { expose: l, emit: t }) {
|
|
1155
1155
|
const s = e, o = O(null), {
|
|
1156
1156
|
coreClasses: c,
|
|
1157
|
-
title:
|
|
1158
|
-
value:
|
|
1157
|
+
title: d,
|
|
1158
|
+
value: f,
|
|
1159
1159
|
helpTipId: u,
|
|
1160
1160
|
helpTipClasses: p,
|
|
1161
1161
|
helpTip: b,
|
|
@@ -1167,7 +1167,7 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1167
1167
|
props: ae(s),
|
|
1168
1168
|
emit: t,
|
|
1169
1169
|
inputEl: o
|
|
1170
|
-
}),
|
|
1170
|
+
}), V = r(() => {
|
|
1171
1171
|
const y = ["pl-2"];
|
|
1172
1172
|
return s.showClear && v.value ? y.push("pr-12") : (s.showClear || v.value) && y.push("pr-8"), y.join(" ");
|
|
1173
1173
|
});
|
|
@@ -1178,25 +1178,25 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1178
1178
|
for: e.name,
|
|
1179
1179
|
class: x(n(h))
|
|
1180
1180
|
}, [
|
|
1181
|
-
i("span", null, I(n(
|
|
1181
|
+
i("span", null, I(n(d)), 1)
|
|
1182
1182
|
], 10, zs),
|
|
1183
1183
|
i("div", Es, [
|
|
1184
1184
|
ne(i("textarea", oe({
|
|
1185
1185
|
id: e.name,
|
|
1186
1186
|
ref_key: "inputElement",
|
|
1187
1187
|
ref: o,
|
|
1188
|
-
"onUpdate:modelValue": w[0] || (w[0] = ($) => ve(
|
|
1188
|
+
"onUpdate:modelValue": w[0] || (w[0] = ($) => ve(f) ? f.value = $ : null),
|
|
1189
1189
|
name: e.name,
|
|
1190
|
-
class: [n(c),
|
|
1190
|
+
class: [n(c), V.value, "min-h-[4rem]"],
|
|
1191
1191
|
placeholder: e.placeholder,
|
|
1192
1192
|
disabled: e.disabled,
|
|
1193
1193
|
"aria-invalid": n(v) ? "true" : "false",
|
|
1194
1194
|
"aria-describedby": n(u)
|
|
1195
1195
|
}, y.$attrs, {
|
|
1196
|
-
onChange: w[1] || (w[1] = ($) => y.$emit("change", { event: $, value: n(
|
|
1197
|
-
onInput: w[2] || (w[2] = ($) => y.$emit("input", { event: $, value: n(
|
|
1196
|
+
onChange: w[1] || (w[1] = ($) => y.$emit("change", { event: $, value: n(f) })),
|
|
1197
|
+
onInput: w[2] || (w[2] = ($) => y.$emit("input", { event: $, value: n(f) }))
|
|
1198
1198
|
}), null, 16, Us), [
|
|
1199
|
-
[Oe, n(
|
|
1199
|
+
[Oe, n(f)]
|
|
1200
1200
|
]),
|
|
1201
1201
|
e.showClear ? (a(), m("a", {
|
|
1202
1202
|
key: 0,
|
|
@@ -1378,8 +1378,8 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1378
1378
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1379
1379
|
setup(e, { expose: l, emit: t }) {
|
|
1380
1380
|
const s = e, o = be(), c = O(null), {
|
|
1381
|
-
coreClasses:
|
|
1382
|
-
title:
|
|
1381
|
+
coreClasses: d,
|
|
1382
|
+
title: f,
|
|
1383
1383
|
value: u,
|
|
1384
1384
|
helpTipId: p,
|
|
1385
1385
|
helpTipClasses: b,
|
|
@@ -1387,7 +1387,7 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1387
1387
|
hideHelpTip: h,
|
|
1388
1388
|
errorMessage: k,
|
|
1389
1389
|
clear: B,
|
|
1390
|
-
focus:
|
|
1390
|
+
focus: V,
|
|
1391
1391
|
labelClasses: y
|
|
1392
1392
|
} = Ue({
|
|
1393
1393
|
props: ae(s),
|
|
@@ -1414,14 +1414,14 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1414
1414
|
return "h-8";
|
|
1415
1415
|
}
|
|
1416
1416
|
});
|
|
1417
|
-
return l({ focus:
|
|
1417
|
+
return l({ focus: V }), (R, E) => (a(), m("div", {
|
|
1418
1418
|
class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1419
1419
|
}, [
|
|
1420
1420
|
i("label", {
|
|
1421
1421
|
for: e.name,
|
|
1422
1422
|
class: x(n(y))
|
|
1423
1423
|
}, [
|
|
1424
|
-
i("span", null, I(n(
|
|
1424
|
+
i("span", null, I(n(f)), 1)
|
|
1425
1425
|
], 10, Gs),
|
|
1426
1426
|
i("div", Ks, [
|
|
1427
1427
|
$.value ? (a(), m("div", Xs, [
|
|
@@ -1446,7 +1446,7 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1446
1446
|
"onUpdate:modelValue": E[0] || (E[0] = (z) => ve(u) ? u.value = z : null),
|
|
1447
1447
|
type: e.type,
|
|
1448
1448
|
name: e.name,
|
|
1449
|
-
class: [n(
|
|
1449
|
+
class: [n(d), F.value, g.value, e.inputClasses || ""],
|
|
1450
1450
|
placeholder: e.placeholder,
|
|
1451
1451
|
disabled: e.disabled,
|
|
1452
1452
|
"aria-invalid": n(k) ? "true" : "false",
|
|
@@ -1520,7 +1520,7 @@ function on(e) {
|
|
|
1520
1520
|
itemContainer: s,
|
|
1521
1521
|
trackResize: o = !1,
|
|
1522
1522
|
trackMutations: c = !0
|
|
1523
|
-
} = e || {},
|
|
1523
|
+
} = e || {}, d = O(0), f = () => {
|
|
1524
1524
|
const u = s.value;
|
|
1525
1525
|
if (l != null && l.value || !u)
|
|
1526
1526
|
return;
|
|
@@ -1530,13 +1530,13 @@ function on(e) {
|
|
|
1530
1530
|
const B = k.offsetTop;
|
|
1531
1531
|
Q(h) ? (h = B, b += 1) : B === h && (b += 1), v += 1;
|
|
1532
1532
|
}
|
|
1533
|
-
|
|
1533
|
+
d.value = v - b;
|
|
1534
1534
|
};
|
|
1535
|
-
return o && yt(t,
|
|
1535
|
+
return o && yt(t, f), c && xt(t, f, {
|
|
1536
1536
|
childList: !0,
|
|
1537
1537
|
subtree: !0
|
|
1538
1538
|
}), {
|
|
1539
|
-
hiddenItemCount:
|
|
1539
|
+
hiddenItemCount: d
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
1542
|
function rn(e) {
|
|
@@ -1571,13 +1571,13 @@ function rn(e) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
t("update:modelValue", (h = l.multiple) != null && h.value ? p || [] : p);
|
|
1573
1573
|
}
|
|
1574
|
-
}),
|
|
1574
|
+
}), d = (p) => q(p);
|
|
1575
1575
|
return {
|
|
1576
1576
|
selectedValue: c,
|
|
1577
1577
|
hiddenSelectedItemCount: o,
|
|
1578
|
-
isArrayValue:
|
|
1578
|
+
isArrayValue: d,
|
|
1579
1579
|
isMultiItemArrayValue: (p) => q(p) && p.length > 1,
|
|
1580
|
-
firstItem: (p) =>
|
|
1580
|
+
firstItem: (p) => d(p) ? p[0] : p
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ */ un(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), dn = [
|
|
@@ -1739,6 +1739,16 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1739
1739
|
fixedHeight: {
|
|
1740
1740
|
type: Boolean,
|
|
1741
1741
|
default: !1
|
|
1742
|
+
},
|
|
1743
|
+
/**
|
|
1744
|
+
* By default component holds its own internal value state so that even if you don't have it tied up to a real `modelValue` ref somewhere
|
|
1745
|
+
* it knows its internal state and can report it on form submits.
|
|
1746
|
+
*
|
|
1747
|
+
* If you set this to true, its only going to rely on `modelValue` as its primary source of truth so that you can reject updates etc.
|
|
1748
|
+
*/
|
|
1749
|
+
fullyControlValue: {
|
|
1750
|
+
type: Boolean,
|
|
1751
|
+
default: !1
|
|
1742
1752
|
}
|
|
1743
1753
|
},
|
|
1744
1754
|
emits: ["update:modelValue"],
|
|
@@ -1747,11 +1757,11 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1747
1757
|
validateOnMount: s.validateOnMount,
|
|
1748
1758
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1749
1759
|
initialValue: s.modelValue
|
|
1750
|
-
}),
|
|
1760
|
+
}), d = O(null), f = O(""), u = O([]), p = O(!1), b = O(1), v = O(ke()), h = r(() => n(s.label) || n(s.name)), k = r(() => {
|
|
1751
1761
|
const C = c.value;
|
|
1752
1762
|
return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", h.value);
|
|
1753
|
-
}), B = r(() => k.value || n(s.help)),
|
|
1754
|
-
() =>
|
|
1763
|
+
}), B = r(() => k.value || n(s.help)), V = r(() => !!B.value), y = r(
|
|
1764
|
+
() => V.value ? `${n(s.name)}-${v.value}` : void 0
|
|
1755
1765
|
), w = r(
|
|
1756
1766
|
() => c.value ? "text-danger" : "text-foreground-2"
|
|
1757
1767
|
), $ = r(
|
|
@@ -1804,36 +1814,36 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1804
1814
|
if (s.multiple)
|
|
1805
1815
|
T = C || [];
|
|
1806
1816
|
else {
|
|
1807
|
-
const
|
|
1808
|
-
T = s.allowUnset &&
|
|
1817
|
+
const j = o.value;
|
|
1818
|
+
T = s.allowUnset && j && C && ce(j) === ce(C) ? void 0 : C;
|
|
1809
1819
|
}
|
|
1810
|
-
t("update:modelValue", T), b.value += 1;
|
|
1820
|
+
s.fullyControlValue ? t("update:modelValue", T) : o.value = T, b.value += 1;
|
|
1811
1821
|
}
|
|
1812
1822
|
}), $e = r(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
|
|
1813
1823
|
s.multiple ? W.value = [] : W.value = void 0;
|
|
1814
1824
|
}, He = r(() => {
|
|
1815
|
-
const C =
|
|
1825
|
+
const C = f.value;
|
|
1816
1826
|
return !z.value || !(C != null && C.length) ? u.value : s.filterPredicate ? u.value.filter(
|
|
1817
1827
|
(T) => {
|
|
1818
|
-
var
|
|
1819
|
-
return ((
|
|
1828
|
+
var j;
|
|
1829
|
+
return ((j = s.filterPredicate) == null ? void 0 : j.call(s, T, C)) || !1;
|
|
1820
1830
|
}
|
|
1821
1831
|
) : u.value;
|
|
1822
1832
|
}), Se = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
|
|
1823
1833
|
if (!(!X.value || !s.getSearchResults)) {
|
|
1824
1834
|
p.value = !0;
|
|
1825
1835
|
try {
|
|
1826
|
-
u.value = await s.getSearchResults(
|
|
1836
|
+
u.value = await s.getSearchResults(f.value);
|
|
1827
1837
|
} finally {
|
|
1828
1838
|
p.value = !1;
|
|
1829
1839
|
}
|
|
1830
1840
|
}
|
|
1831
1841
|
}, Ge = Ae(de, 1e3), Ke = (C) => {
|
|
1832
|
-
const { active: T, disabled:
|
|
1842
|
+
const { active: T, disabled: j } = C || {}, { hideCheckmarks: K } = s, N = [
|
|
1833
1843
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1834
1844
|
K ? "" : "pr-9"
|
|
1835
1845
|
];
|
|
1836
|
-
return
|
|
1846
|
+
return j ? N.push("opacity-50 cursor-not-allowed") : N.push(T ? "text-primary" : "text-foreground"), N.join(" ");
|
|
1837
1847
|
};
|
|
1838
1848
|
return le(
|
|
1839
1849
|
() => s.items,
|
|
@@ -1841,7 +1851,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1841
1851
|
u.value = C.slice();
|
|
1842
1852
|
},
|
|
1843
1853
|
{ immediate: !0 }
|
|
1844
|
-
), le(
|
|
1854
|
+
), le(f, () => {
|
|
1845
1855
|
X.value && Ge();
|
|
1846
1856
|
}), Y(() => {
|
|
1847
1857
|
X.value && !s.items.length && de();
|
|
@@ -1849,7 +1859,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1849
1859
|
(a(), P(n(wt), {
|
|
1850
1860
|
key: b.value,
|
|
1851
1861
|
modelValue: W.value,
|
|
1852
|
-
"onUpdate:modelValue": T[4] || (T[4] = (
|
|
1862
|
+
"onUpdate:modelValue": T[4] || (T[4] = (j) => W.value = j),
|
|
1853
1863
|
name: e.name,
|
|
1854
1864
|
multiple: e.multiple,
|
|
1855
1865
|
by: e.by,
|
|
@@ -1871,7 +1881,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1871
1881
|
L(n(St), {
|
|
1872
1882
|
class: x(E.value)
|
|
1873
1883
|
}, {
|
|
1874
|
-
default: _(({ open:
|
|
1884
|
+
default: _(({ open: j }) => [
|
|
1875
1885
|
i("div", pn, [
|
|
1876
1886
|
i("div", hn, [
|
|
1877
1887
|
!W.value || n(q)(W.value) && !W.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
|
|
@@ -1884,7 +1894,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1884
1894
|
])
|
|
1885
1895
|
]),
|
|
1886
1896
|
i("div", mn, [
|
|
1887
|
-
|
|
1897
|
+
j ? (a(), P(n(De), {
|
|
1888
1898
|
key: 0,
|
|
1889
1899
|
class: "h-4 w-4 text-foreground",
|
|
1890
1900
|
"aria-hidden": "true"
|
|
@@ -1902,7 +1912,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1902
1912
|
key: 0,
|
|
1903
1913
|
class: x(R.value),
|
|
1904
1914
|
disabled: e.disabled,
|
|
1905
|
-
onClick: T[0] || (T[0] = (
|
|
1915
|
+
onClick: T[0] || (T[0] = (j) => qe())
|
|
1906
1916
|
}, [
|
|
1907
1917
|
L(n(tt), { class: "w-3 h-3" })
|
|
1908
1918
|
], 10, gn)), [
|
|
@@ -1915,11 +1925,10 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1915
1925
|
}, {
|
|
1916
1926
|
default: _(() => [
|
|
1917
1927
|
L(n(It), {
|
|
1918
|
-
unmount: !0,
|
|
1919
1928
|
class: "absolute top-[100%] z-10 mt-1 w-full rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow",
|
|
1920
|
-
onFocus: T[3] || (T[3] = (
|
|
1929
|
+
onFocus: T[3] || (T[3] = (j) => {
|
|
1921
1930
|
var K;
|
|
1922
|
-
return (K =
|
|
1931
|
+
return (K = d.value) == null ? void 0 : K.focus();
|
|
1923
1932
|
})
|
|
1924
1933
|
}, {
|
|
1925
1934
|
default: _(() => [
|
|
@@ -1931,15 +1940,15 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1931
1940
|
]),
|
|
1932
1941
|
ne(i("input", {
|
|
1933
1942
|
ref_key: "searchInput",
|
|
1934
|
-
ref:
|
|
1935
|
-
"onUpdate:modelValue": T[1] || (T[1] = (
|
|
1943
|
+
ref: d,
|
|
1944
|
+
"onUpdate:modelValue": T[1] || (T[1] = (j) => f.value = j),
|
|
1936
1945
|
type: "text",
|
|
1937
1946
|
class: "pl-9 w-full border-0 bg-foundation-page rounded placeholder:font-normal normal placeholder:text-foreground-2 focus:outline-none focus:ring-1 focus:border-outline-1 focus:ring-outline-1",
|
|
1938
1947
|
placeholder: e.searchPlaceholder,
|
|
1939
1948
|
onKeydown: T[2] || (T[2] = ye(() => {
|
|
1940
1949
|
}, ["stop"]))
|
|
1941
1950
|
}, null, 40, kn), [
|
|
1942
|
-
[Oe,
|
|
1951
|
+
[Oe, f.value]
|
|
1943
1952
|
])
|
|
1944
1953
|
])
|
|
1945
1954
|
])) : S("", !0),
|
|
@@ -1953,12 +1962,12 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1953
1962
|
$n
|
|
1954
1963
|
])
|
|
1955
1964
|
])) : S("", !0),
|
|
1956
|
-
!X.value || !p.value ? (a(!0), m(U, { key: 2 }, G(He.value, (
|
|
1965
|
+
!X.value || !p.value ? (a(!0), m(U, { key: 2 }, G(He.value, (j) => {
|
|
1957
1966
|
var K;
|
|
1958
1967
|
return a(), P(n(Bt), {
|
|
1959
|
-
key: ce(
|
|
1960
|
-
value:
|
|
1961
|
-
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e,
|
|
1968
|
+
key: ce(j),
|
|
1969
|
+
value: j,
|
|
1970
|
+
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, j)) || !1
|
|
1962
1971
|
}, {
|
|
1963
1972
|
default: _(({ active: N, selected: Ie }) => {
|
|
1964
1973
|
var Be, _e;
|
|
@@ -1967,18 +1976,18 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1967
1976
|
class: x(
|
|
1968
1977
|
Ke({
|
|
1969
1978
|
active: N,
|
|
1970
|
-
disabled: ((Be = e.disabledItemPredicate) == null ? void 0 : Be.call(e,
|
|
1979
|
+
disabled: ((Be = e.disabledItemPredicate) == null ? void 0 : Be.call(e, j)) || !1
|
|
1971
1980
|
})
|
|
1972
1981
|
)
|
|
1973
1982
|
}, [
|
|
1974
1983
|
i("span", Sn, [
|
|
1975
1984
|
D(C.$slots, "option", {
|
|
1976
|
-
item:
|
|
1985
|
+
item: j,
|
|
1977
1986
|
active: N,
|
|
1978
1987
|
selected: Ie,
|
|
1979
|
-
disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e,
|
|
1988
|
+
disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, j)) || !1
|
|
1980
1989
|
}, () => [
|
|
1981
|
-
A(I(Se(
|
|
1990
|
+
A(I(Se(j)), 1)
|
|
1982
1991
|
])
|
|
1983
1992
|
]),
|
|
1984
1993
|
!e.hideCheckmarks && Ie ? (a(), m("span", {
|
|
@@ -2040,7 +2049,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2040
2049
|
}, Pn = {
|
|
2041
2050
|
key: 1,
|
|
2042
2051
|
class: "flex items-center"
|
|
2043
|
-
},
|
|
2052
|
+
}, Vn = { class: "truncate" }, jn = { class: "flex items-center" }, On = { class: "truncate" }, Bl = /* @__PURE__ */ M({
|
|
2044
2053
|
__name: "SourceApps",
|
|
2045
2054
|
props: {
|
|
2046
2055
|
/**
|
|
@@ -2100,7 +2109,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2100
2109
|
},
|
|
2101
2110
|
emits: ["update:modelValue"],
|
|
2102
2111
|
setup(e, { emit: l }) {
|
|
2103
|
-
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount:
|
|
2112
|
+
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: u } = rn({
|
|
2104
2113
|
props: ae(t),
|
|
2105
2114
|
emit: l,
|
|
2106
2115
|
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
@@ -2126,7 +2135,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2126
2135
|
], 64))
|
|
2127
2136
|
]),
|
|
2128
2137
|
"something-selected": _(({ value: h }) => [
|
|
2129
|
-
n(
|
|
2138
|
+
n(f)(h) ? (a(), m("div", {
|
|
2130
2139
|
key: 0,
|
|
2131
2140
|
ref_key: "elementToWatchForChanges",
|
|
2132
2141
|
ref: s,
|
|
@@ -2142,17 +2151,17 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2142
2151
|
"source-app": k
|
|
2143
2152
|
}, null, 8, ["source-app"]))), 128))
|
|
2144
2153
|
], 512),
|
|
2145
|
-
n(
|
|
2154
|
+
n(d) > 0 ? (a(), m("div", Ln, " +" + I(n(d)), 1)) : S("", !0)
|
|
2146
2155
|
], 512)) : (a(), m("div", Pn, [
|
|
2147
2156
|
i("div", {
|
|
2148
2157
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2149
2158
|
style: fe({ backgroundColor: n(u)(h).bgColor })
|
|
2150
2159
|
}, null, 4),
|
|
2151
|
-
i("span",
|
|
2160
|
+
i("span", Vn, I(n(u)(h).name), 1)
|
|
2152
2161
|
]))
|
|
2153
2162
|
]),
|
|
2154
2163
|
option: _(({ item: h }) => [
|
|
2155
|
-
i("div",
|
|
2164
|
+
i("div", jn, [
|
|
2156
2165
|
i("div", {
|
|
2157
2166
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2158
2167
|
style: fe({ backgroundColor: h.bgColor })
|
|
@@ -2185,8 +2194,8 @@ function Ll(e, ...l) {
|
|
|
2185
2194
|
l[0],
|
|
2186
2195
|
(t) => {
|
|
2187
2196
|
const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
|
|
2188
|
-
for (const
|
|
2189
|
-
switch (
|
|
2197
|
+
for (const d of e)
|
|
2198
|
+
switch (d) {
|
|
2190
2199
|
case se.CtrlOrCmd:
|
|
2191
2200
|
if (!o)
|
|
2192
2201
|
return;
|
|
@@ -2218,7 +2227,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2218
2227
|
}, Fn = { class: "text-2xl font-bold" }, zn = { class: "p-4 sm:p-6" }, En = {
|
|
2219
2228
|
key: 2,
|
|
2220
2229
|
class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
|
|
2221
|
-
},
|
|
2230
|
+
}, Vl = /* @__PURE__ */ M({
|
|
2222
2231
|
__name: "Dialog",
|
|
2223
2232
|
props: {
|
|
2224
2233
|
open: { type: Boolean },
|
|
@@ -2231,10 +2240,10 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2231
2240
|
},
|
|
2232
2241
|
emits: ["update:open", "fully-closed"],
|
|
2233
2242
|
setup(e, { emit: l }) {
|
|
2234
|
-
const t = e, s = be(), o = r(() => !!t.onSubmit), c = r(() => t.buttons || s.buttons),
|
|
2243
|
+
const t = e, s = be(), o = r(() => !!t.onSubmit), c = r(() => t.buttons || s.buttons), d = r({
|
|
2235
2244
|
get: () => t.open,
|
|
2236
2245
|
set: (b) => l("update:open", b)
|
|
2237
|
-
}),
|
|
2246
|
+
}), f = r(() => {
|
|
2238
2247
|
switch (t.maxWidth) {
|
|
2239
2248
|
case "sm":
|
|
2240
2249
|
return 0;
|
|
@@ -2249,13 +2258,13 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2249
2258
|
}
|
|
2250
2259
|
}), u = r(() => {
|
|
2251
2260
|
const b = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
|
|
2252
|
-
return !t.title && !c.value && b.push("px-4 pt-4 pb-4", "sm:p-6"),
|
|
2261
|
+
return !t.title && !c.value && b.push("px-4 pt-4 pb-4", "sm:p-6"), f.value >= 1 && b.push("md:max-w-2xl"), f.value >= 2 && b.push("lg:max-w-4xl"), f.value >= 3 && b.push("xl:max-w-6xl"), f.value >= 4 && b.push("2xl:max-w-7xl"), b.join(" ");
|
|
2253
2262
|
}), p = () => {
|
|
2254
|
-
t.preventCloseOnClickOutside || (
|
|
2263
|
+
t.preventCloseOnClickOutside || (d.value = !1);
|
|
2255
2264
|
};
|
|
2256
2265
|
return (b, v) => (a(), P(n(_t), {
|
|
2257
2266
|
as: "template",
|
|
2258
|
-
show:
|
|
2267
|
+
show: d.value
|
|
2259
2268
|
}, {
|
|
2260
2269
|
default: _(() => [
|
|
2261
2270
|
L(n(Lt), {
|
|
@@ -2264,7 +2273,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2264
2273
|
onClose: p
|
|
2265
2274
|
}, {
|
|
2266
2275
|
default: _(() => [
|
|
2267
|
-
L(n(
|
|
2276
|
+
L(n(Ve), {
|
|
2268
2277
|
as: "template",
|
|
2269
2278
|
enter: "ease-out duration-300",
|
|
2270
2279
|
"enter-from": "opacity-0",
|
|
@@ -2280,7 +2289,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2280
2289
|
}),
|
|
2281
2290
|
i("div", Dn, [
|
|
2282
2291
|
i("div", Tn, [
|
|
2283
|
-
L(n(
|
|
2292
|
+
L(n(Ve), {
|
|
2284
2293
|
as: "template",
|
|
2285
2294
|
enter: "ease-out duration-300",
|
|
2286
2295
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2306,7 +2315,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2306
2315
|
e.hideCloser ? S("", !0) : (a(), m("button", {
|
|
2307
2316
|
key: 1,
|
|
2308
2317
|
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2309
|
-
onClick: v[0] || (v[0] = (h) =>
|
|
2318
|
+
onClick: v[0] || (v[0] = (h) => d.value = !1)
|
|
2310
2319
|
}, [
|
|
2311
2320
|
L(n(ct), { class: "h-6 w-6" })
|
|
2312
2321
|
])),
|
|
@@ -2340,7 +2349,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2340
2349
|
_: 3
|
|
2341
2350
|
}, 8, ["show"]));
|
|
2342
2351
|
}
|
|
2343
|
-
}), Un = { class: "inline-flex items-center space-x-2" }, Wn = { class: "label-light" },
|
|
2352
|
+
}), Un = { class: "inline-flex items-center space-x-2" }, Wn = { class: "label-light" }, jl = /* @__PURE__ */ M({
|
|
2344
2353
|
__name: "Disclosure",
|
|
2345
2354
|
props: {
|
|
2346
2355
|
title: null,
|
|
@@ -2351,9 +2360,19 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2351
2360
|
const l = e, t = r(() => {
|
|
2352
2361
|
const o = [
|
|
2353
2362
|
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2354
|
-
"ring-1"
|
|
2363
|
+
"ring-1 font-medium"
|
|
2355
2364
|
];
|
|
2356
2365
|
switch (l.color) {
|
|
2366
|
+
case "warning":
|
|
2367
|
+
o.push(
|
|
2368
|
+
"border-warning text-warning ring-warning-lighter hover:ring-warning"
|
|
2369
|
+
);
|
|
2370
|
+
break;
|
|
2371
|
+
case "success":
|
|
2372
|
+
o.push(
|
|
2373
|
+
"border-success text-success ring-success-lighter hover:ring-success"
|
|
2374
|
+
);
|
|
2375
|
+
break;
|
|
2357
2376
|
case "danger":
|
|
2358
2377
|
o.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
|
|
2359
2378
|
break;
|
|
@@ -2368,6 +2387,12 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2368
2387
|
}), s = r(() => {
|
|
2369
2388
|
const o = ["mt-4 px-3 py-1 border-x "];
|
|
2370
2389
|
switch (l.color) {
|
|
2390
|
+
case "warning":
|
|
2391
|
+
o.push("border-warning-lighter");
|
|
2392
|
+
break;
|
|
2393
|
+
case "success":
|
|
2394
|
+
o.push("border-success-lighter");
|
|
2395
|
+
break;
|
|
2371
2396
|
case "danger":
|
|
2372
2397
|
o.push("border-danger-lighter");
|
|
2373
2398
|
break;
|
|
@@ -2379,9 +2404,9 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2379
2404
|
return o.join(" ");
|
|
2380
2405
|
});
|
|
2381
2406
|
return (o, c) => (a(), m("div", null, [
|
|
2382
|
-
L(n(
|
|
2383
|
-
default: _(({ open:
|
|
2384
|
-
L(n(
|
|
2407
|
+
L(n(Vt), null, {
|
|
2408
|
+
default: _(({ open: d }) => [
|
|
2409
|
+
L(n(jt), {
|
|
2385
2410
|
class: x(t.value)
|
|
2386
2411
|
}, {
|
|
2387
2412
|
default: _(() => [
|
|
@@ -2393,7 +2418,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2393
2418
|
i("span", null, I(e.title), 1)
|
|
2394
2419
|
]),
|
|
2395
2420
|
L(n(De), {
|
|
2396
|
-
class: x([
|
|
2421
|
+
class: x([d ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2397
2422
|
}, null, 8, ["class"])
|
|
2398
2423
|
]),
|
|
2399
2424
|
_: 2
|
|
@@ -2426,15 +2451,15 @@ const Ol = /* @__PURE__ */ M({
|
|
|
2426
2451
|
setup(e, { emit: l }) {
|
|
2427
2452
|
const t = e, s = r({
|
|
2428
2453
|
get: () => t.modelValue || J.Grid,
|
|
2429
|
-
set: (
|
|
2454
|
+
set: (d) => l("update:modelValue", d)
|
|
2430
2455
|
}), o = r(
|
|
2431
2456
|
() => s.value === J.Grid ? lt : at
|
|
2432
|
-
), c = (
|
|
2433
|
-
l("click",
|
|
2434
|
-
const
|
|
2435
|
-
s.value =
|
|
2457
|
+
), c = (d) => {
|
|
2458
|
+
l("click", d);
|
|
2459
|
+
const f = s.value === J.Grid ? J.List : J.Grid;
|
|
2460
|
+
s.value = f;
|
|
2436
2461
|
};
|
|
2437
|
-
return (
|
|
2462
|
+
return (d, f) => (a(), m("button", {
|
|
2438
2463
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2439
2464
|
onClick: c
|
|
2440
2465
|
}, [
|
|
@@ -2465,24 +2490,24 @@ function Gn(e) {
|
|
|
2465
2490
|
Q(t) ? 1 : t
|
|
2466
2491
|
/* Right */
|
|
2467
2492
|
), o = r(() => {
|
|
2468
|
-
const
|
|
2469
|
-
if (!Q(
|
|
2470
|
-
return
|
|
2471
|
-
const
|
|
2472
|
-
return
|
|
2493
|
+
const d = n(e.stopUpdatesBelowWidth);
|
|
2494
|
+
if (!Q(d))
|
|
2495
|
+
return d;
|
|
2496
|
+
const f = n(l);
|
|
2497
|
+
return f != null && f.offsetWidth ? f.offsetWidth * 2 : void 0;
|
|
2473
2498
|
}), c = () => {
|
|
2474
2499
|
if (!Ce)
|
|
2475
2500
|
return;
|
|
2476
|
-
const
|
|
2477
|
-
if (!
|
|
2501
|
+
const d = n(l);
|
|
2502
|
+
if (!d)
|
|
2478
2503
|
return;
|
|
2479
|
-
const
|
|
2504
|
+
const f = d.getBoundingClientRect(), u = f.x + f.width > window.innerWidth, p = f.x < 0;
|
|
2480
2505
|
u && p || !Q(o.value) && window.innerWidth < o.value || (u ? s.value = 0 : p && (s.value = 1));
|
|
2481
2506
|
};
|
|
2482
2507
|
return Hn(() => c()), le(
|
|
2483
2508
|
() => n(l),
|
|
2484
|
-
(
|
|
2485
|
-
|
|
2509
|
+
(d) => {
|
|
2510
|
+
d && c();
|
|
2486
2511
|
}
|
|
2487
2512
|
), {
|
|
2488
2513
|
direction: r(() => s.value),
|
|
@@ -2504,12 +2529,12 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2504
2529
|
}),
|
|
2505
2530
|
defaultDirection: me.Left,
|
|
2506
2531
|
stopUpdatesBelowWidth: 300
|
|
2507
|
-
}), c = O(null),
|
|
2532
|
+
}), c = O(null), d = O(!1), f = r({
|
|
2508
2533
|
get: () => t.open || !1,
|
|
2509
2534
|
set: (h) => l("update:open", h)
|
|
2510
2535
|
}), u = (h) => {
|
|
2511
|
-
const { active: k, disabled: B } = h,
|
|
2512
|
-
return k ?
|
|
2536
|
+
const { active: k, disabled: B } = h, V = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2537
|
+
return k ? V.push("bg-primary text-foreground-on-primary") : B ? V.push("text-foreground-disabled") : V.push("text-foreground"), V.join(" ");
|
|
2513
2538
|
}, p = (h, k) => {
|
|
2514
2539
|
l("chosen", { item: h, event: k });
|
|
2515
2540
|
}, b = () => {
|
|
@@ -2517,12 +2542,12 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2517
2542
|
return (h = c.value) == null ? void 0 : h.el.click();
|
|
2518
2543
|
}, v = (h) => {
|
|
2519
2544
|
const k = !!h;
|
|
2520
|
-
return
|
|
2545
|
+
return d.value = k, k;
|
|
2521
2546
|
};
|
|
2522
|
-
return le(
|
|
2523
|
-
h !== k && (
|
|
2524
|
-
}), le(
|
|
2525
|
-
(h && !
|
|
2547
|
+
return le(d, (h, k) => {
|
|
2548
|
+
h !== k && (f.value = h);
|
|
2549
|
+
}), le(f, (h) => {
|
|
2550
|
+
(h && !d.value || !h && d.value) && b();
|
|
2526
2551
|
}), (h, k) => (a(), P(n(Mt), {
|
|
2527
2552
|
as: "div",
|
|
2528
2553
|
class: "relative inline-block"
|
|
@@ -2563,11 +2588,11 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2563
2588
|
])
|
|
2564
2589
|
}, {
|
|
2565
2590
|
default: _(() => [
|
|
2566
|
-
(a(!0), m(U, null, G(e.items, (
|
|
2591
|
+
(a(!0), m(U, null, G(e.items, (V, y) => (a(), m("div", {
|
|
2567
2592
|
key: y,
|
|
2568
2593
|
class: "px-1 py-1"
|
|
2569
2594
|
}, [
|
|
2570
|
-
(a(!0), m(U, null, G(
|
|
2595
|
+
(a(!0), m(U, null, G(V, (w) => (a(), P(n(Tt), {
|
|
2571
2596
|
key: w.id,
|
|
2572
2597
|
disabled: w.disabled
|
|
2573
2598
|
}, {
|
|
@@ -2608,16 +2633,16 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2608
2633
|
const l = e, t = O(null), s = r(() => t.value && l.items.find((c) => c.id === t.value) || l.items[0]), o = (c) => {
|
|
2609
2634
|
t.value = c.id;
|
|
2610
2635
|
};
|
|
2611
|
-
return (c,
|
|
2636
|
+
return (c, d) => (a(), m("div", Xn, [
|
|
2612
2637
|
i("div", Nn, [
|
|
2613
|
-
(a(!0), m(U, null, G(e.items, (
|
|
2614
|
-
key:
|
|
2638
|
+
(a(!0), m(U, null, G(e.items, (f) => (a(), P(re, {
|
|
2639
|
+
key: f.id,
|
|
2615
2640
|
link: "",
|
|
2616
|
-
color: s.value.id ===
|
|
2617
|
-
onClick: (u) => o(
|
|
2641
|
+
color: s.value.id === f.id ? "default" : "secondary",
|
|
2642
|
+
onClick: (u) => o(f)
|
|
2618
2643
|
}, {
|
|
2619
2644
|
default: _(() => [
|
|
2620
|
-
A(I(
|
|
2645
|
+
A(I(f.title), 1)
|
|
2621
2646
|
]),
|
|
2622
2647
|
_: 2
|
|
2623
2648
|
}, 1032, ["color", "onClick"]))), 128))
|
|
@@ -2715,6 +2740,9 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2715
2740
|
noShadow: {
|
|
2716
2741
|
type: Boolean,
|
|
2717
2742
|
default: !1
|
|
2743
|
+
},
|
|
2744
|
+
panelClasses: {
|
|
2745
|
+
type: String
|
|
2718
2746
|
}
|
|
2719
2747
|
},
|
|
2720
2748
|
emits: ["submit"],
|
|
@@ -2724,35 +2752,35 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2724
2752
|
), o = r(
|
|
2725
2753
|
() => t.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
2726
2754
|
), c = r(() => {
|
|
2727
|
-
const
|
|
2728
|
-
return t.noShadow ||
|
|
2755
|
+
const d = ["rounded-lg"];
|
|
2756
|
+
return t.noShadow || d.push("shadow"), t.ring && d.push("ring-outline-2 hover:ring-2"), t.panelClasses && d.push(t.panelClasses), d.join(" ");
|
|
2729
2757
|
});
|
|
2730
|
-
return (
|
|
2758
|
+
return (d, f) => (a(), m("div", sl, [
|
|
2731
2759
|
e.fancyGlow ? (a(), m("div", nl)) : S("", !0),
|
|
2732
2760
|
(a(), P(H(e.form ? "form" : "div"), {
|
|
2733
2761
|
class: x([
|
|
2734
2762
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2735
2763
|
c.value
|
|
2736
2764
|
]),
|
|
2737
|
-
onSubmit:
|
|
2765
|
+
onSubmit: f[0] || (f[0] = (u) => l("submit", u))
|
|
2738
2766
|
}, {
|
|
2739
2767
|
default: _(() => [
|
|
2740
|
-
|
|
2768
|
+
d.$slots.header ? (a(), m("div", {
|
|
2741
2769
|
key: 0,
|
|
2742
2770
|
class: x(s.value)
|
|
2743
2771
|
}, [
|
|
2744
|
-
D(
|
|
2772
|
+
D(d.$slots, "header")
|
|
2745
2773
|
], 2)) : S("", !0),
|
|
2746
2774
|
i("div", {
|
|
2747
2775
|
class: x(["grow", o.value])
|
|
2748
2776
|
}, [
|
|
2749
|
-
D(
|
|
2777
|
+
D(d.$slots, "default")
|
|
2750
2778
|
], 2),
|
|
2751
|
-
|
|
2779
|
+
d.$slots.footer ? (a(), m("div", {
|
|
2752
2780
|
key: 1,
|
|
2753
2781
|
class: x(s.value)
|
|
2754
2782
|
}, [
|
|
2755
|
-
D(
|
|
2783
|
+
D(d.$slots, "footer")
|
|
2756
2784
|
], 2)) : S("", !0)
|
|
2757
2785
|
]),
|
|
2758
2786
|
_: 3
|
|
@@ -2805,7 +2833,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2805
2833
|
break;
|
|
2806
2834
|
}
|
|
2807
2835
|
return u.join(" ");
|
|
2808
|
-
}),
|
|
2836
|
+
}), d = r(() => {
|
|
2809
2837
|
const u = [];
|
|
2810
2838
|
switch (l.color) {
|
|
2811
2839
|
case "success":
|
|
@@ -2822,7 +2850,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2822
2850
|
break;
|
|
2823
2851
|
}
|
|
2824
2852
|
return u.join(" ");
|
|
2825
|
-
}),
|
|
2853
|
+
}), f = r(() => {
|
|
2826
2854
|
const u = [];
|
|
2827
2855
|
switch (l.color) {
|
|
2828
2856
|
case "success":
|
|
@@ -2850,7 +2878,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2850
2878
|
}, [
|
|
2851
2879
|
i("div", ll, [
|
|
2852
2880
|
L(n(Te), {
|
|
2853
|
-
class: x(["h-5 w-5",
|
|
2881
|
+
class: x(["h-5 w-5", d.value]),
|
|
2854
2882
|
"aria-hidden": "true"
|
|
2855
2883
|
}, null, 8, ["class"])
|
|
2856
2884
|
]),
|
|
@@ -2897,7 +2925,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2897
2925
|
}, [
|
|
2898
2926
|
i("button", {
|
|
2899
2927
|
type: "button",
|
|
2900
|
-
class: x(["inline-flex rounded-md focus:outline-none focus:ring-2",
|
|
2928
|
+
class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", f.value]),
|
|
2901
2929
|
onClick: p[0] || (p[0] = (v) => u.$emit("dismiss"))
|
|
2902
2930
|
}, [
|
|
2903
2931
|
ol,
|
|
@@ -2913,11 +2941,11 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2913
2941
|
}
|
|
2914
2942
|
});
|
|
2915
2943
|
function zl(e) {
|
|
2916
|
-
var B,
|
|
2917
|
-
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging:
|
|
2944
|
+
var B, V;
|
|
2945
|
+
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: d } = e, f = d == null ? void 0 : d.log, u = () => (new Error("Trace:").stack || "").substring(7), p = ((V = (B = e.debugging) == null ? void 0 : B.log) == null ? void 0 : V.logger) || console.debug, b = f && !f.writesOnly ? () => {
|
|
2918
2946
|
const y = l();
|
|
2919
|
-
return p(`debugging: '${
|
|
2920
|
-
} : l, v =
|
|
2947
|
+
return p(`debugging: '${f.name}' read`, y, u()), y;
|
|
2948
|
+
} : l, v = f && !f.readsOnly ? (y) => (p(`debugging: '${f.name}' written to`, y, u()), o(y)) : o, h = c ? Ct(b, t, s) : r(b), k = r(() => h.value);
|
|
2921
2949
|
return k.update = v, k;
|
|
2922
2950
|
}
|
|
2923
2951
|
export {
|
|
@@ -2938,8 +2966,8 @@ export {
|
|
|
2938
2966
|
J as GridListToggleValue,
|
|
2939
2967
|
me as HorizontalDirection,
|
|
2940
2968
|
Tl as InfiniteLoading,
|
|
2941
|
-
|
|
2942
|
-
|
|
2969
|
+
Vl as LayoutDialog,
|
|
2970
|
+
jl as LayoutDisclosure,
|
|
2943
2971
|
Ol as LayoutGridListToggle,
|
|
2944
2972
|
Al as LayoutMenu,
|
|
2945
2973
|
Rl as LayoutPanel,
|