@speckle/ui-components 2.14.8-alpha3 → 2.14.8-alpha4
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
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as O, resolveDynamicComponent as
|
|
2
|
-
import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as
|
|
3
|
-
import { ArrowPathIcon as Ue, ChevronUpIcon as
|
|
1
|
+
import { defineComponent as O, resolveDynamicComponent as U, computed as c, openBlock as l, createBlock as P, unref as t, normalizeClass as v, withCtx as B, createCommentVNode as _, renderSlot as R, createTextVNode as T, createElementBlock as h, createElementVNode as u, createVNode as I, Transition as de, toDisplayString as S, toRefs as Z, Fragment as q, renderList as H, pushScopeId as _e, popScopeId as Se, ref as A, mergeProps as ne, onMounted as ee, withDirectives as te, isRef as le, vModelText as Ie, useSlots as Fe, vModelDynamic as Ee, watch as Y, withModifiers as Be, normalizeStyle as oe, onBeforeUnmount as Le } from "vue";
|
|
2
|
+
import { isObjectLike as Ce, clamp as we, isString as se, isUndefined as X, isArray as W, debounce as Pe, throttle as We } from "lodash";
|
|
3
|
+
import { ArrowPathIcon as Ue, ChevronUpIcon as Ve, ChevronDownIcon as qe, XMarkIcon as He, MagnifyingGlassIcon as Ge, CheckIcon as Ke, Bars3Icon as Xe, Squares2X2Icon as Ne } from "@heroicons/vue/24/solid";
|
|
4
4
|
import { CheckCircleIcon as Je, XCircleIcon as Qe, ExclamationCircleIcon as Ye, InformationCircleIcon as Ze, XMarkIcon as et, CheckIcon as tt, ExclamationTriangleIcon as st } from "@heroicons/vue/24/outline";
|
|
5
|
-
import { XMarkIcon as
|
|
5
|
+
import { XMarkIcon as ce, CheckIcon as nt, CheckCircleIcon as lt, ExclamationCircleIcon as je, EnvelopeIcon as at, KeyIcon as ot } from "@heroicons/vue/20/solid";
|
|
6
6
|
import { useField as fe } from "vee-validate";
|
|
7
7
|
import { nanoid as pe } from "nanoid";
|
|
8
8
|
import { isNullOrUndefined as rt, SourceApps as it, getClientOperatingSystem as ut, OperatingSystem as re } from "@speckle/shared";
|
|
9
|
-
import { useResizeObserver as
|
|
9
|
+
import { useResizeObserver as dt, useMutationObserver as ct, onKeyDown as ft, isClient as he } from "@vueuse/core";
|
|
10
10
|
import { Listbox as pt, ListboxLabel as ht, ListboxButton as mt, ListboxOptions as gt, ListboxOption as yt, TransitionRoot as vt, Dialog as bt, TransitionChild as $e, DialogPanel as xt, Disclosure as kt, DisclosureButton as Ct, DisclosurePanel as wt, Menu as $t, MenuButton as _t, MenuItems as St, MenuItem as It } from "@headlessui/vue";
|
|
11
11
|
import { directive as Bt } from "vue-tippy";
|
|
12
12
|
import Lt from "v3-infinite-loading";
|
|
13
13
|
const Pt = {
|
|
14
14
|
key: 2,
|
|
15
15
|
style: { margin: "0 !important", width: "0.01px" }
|
|
16
|
-
},
|
|
16
|
+
}, Vt = /* @__PURE__ */ O({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -141,7 +141,7 @@ const Pt = {
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
143
|
setup(e, { emit: s }) {
|
|
144
|
-
const n = e, o =
|
|
144
|
+
const n = e, o = U("NuxtLink"), a = U("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), d = c(() => {
|
|
145
145
|
if (!n.to)
|
|
146
146
|
return n.submit ? "submit" : "button";
|
|
147
147
|
}), i = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), f = c(() => {
|
|
@@ -272,7 +272,7 @@ const Pt = {
|
|
|
272
272
|
case "base":
|
|
273
273
|
return "h-8 text-base font-medium xxx-tracking-wide";
|
|
274
274
|
}
|
|
275
|
-
}),
|
|
275
|
+
}), V = c(() => {
|
|
276
276
|
switch (n.size) {
|
|
277
277
|
case "xs":
|
|
278
278
|
return "px-1";
|
|
@@ -286,28 +286,28 @@ const Pt = {
|
|
|
286
286
|
case "base":
|
|
287
287
|
return "px-3";
|
|
288
288
|
}
|
|
289
|
-
}),
|
|
289
|
+
}), L = c(() => {
|
|
290
290
|
const p = [];
|
|
291
291
|
return n.fullWidth && p.push("w-full"), i.value && p.push("cursor-not-allowed"), p.join(" ");
|
|
292
|
-
}),
|
|
292
|
+
}), $ = c(() => {
|
|
293
293
|
const p = [];
|
|
294
294
|
return !i.value && !n.link && !n.text && p.push("active:scale-[0.97]"), !i.value && n.link && p.push(
|
|
295
295
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
296
296
|
), p.join(" ");
|
|
297
|
-
}),
|
|
297
|
+
}), C = c(() => {
|
|
298
298
|
const p = n.link || n.text;
|
|
299
299
|
return [
|
|
300
300
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
301
|
-
|
|
301
|
+
L.value,
|
|
302
302
|
b.value,
|
|
303
303
|
w.value,
|
|
304
304
|
p ? "" : f.value,
|
|
305
305
|
p ? "" : g.value,
|
|
306
306
|
p ? "" : m.value,
|
|
307
|
-
n.link ? "" :
|
|
308
|
-
|
|
307
|
+
n.link ? "" : V.value,
|
|
308
|
+
$.value
|
|
309
309
|
].join(" ");
|
|
310
|
-
}),
|
|
310
|
+
}), x = c(() => {
|
|
311
311
|
const p = [""];
|
|
312
312
|
switch (n.loading && p.push("animate-spin"), n.size) {
|
|
313
313
|
case "xs":
|
|
@@ -328,35 +328,35 @@ const Pt = {
|
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
330
|
return p.join(" ");
|
|
331
|
-
}),
|
|
331
|
+
}), E = (p) => {
|
|
332
332
|
if (i.value) {
|
|
333
333
|
p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation();
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
336
|
s("click", p);
|
|
337
337
|
};
|
|
338
|
-
return (p,
|
|
338
|
+
return (p, j) => (l(), P(U(e.to ? t(r) : "button"), {
|
|
339
339
|
href: e.to,
|
|
340
340
|
to: e.to,
|
|
341
341
|
type: t(d),
|
|
342
342
|
external: e.external,
|
|
343
|
-
class: v(t(
|
|
343
|
+
class: v(t(C)),
|
|
344
344
|
disabled: t(i),
|
|
345
345
|
role: "button",
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: E
|
|
347
347
|
}, {
|
|
348
348
|
default: B(() => [
|
|
349
|
-
t(y) ? (l(), P(
|
|
349
|
+
t(y) ? (l(), P(U(t(y)), {
|
|
350
350
|
key: 0,
|
|
351
|
-
class: v(`${t(
|
|
352
|
-
}, null, 8, ["class"])) :
|
|
351
|
+
class: v(`${t(x)} ${e.hideText ? "" : "mr-2"}`)
|
|
352
|
+
}, null, 8, ["class"])) : _("", !0),
|
|
353
353
|
e.hideText ? (l(), h("div", Pt, " ")) : R(p.$slots, "default", { key: 1 }, () => [
|
|
354
354
|
T("Button")
|
|
355
355
|
], !0),
|
|
356
|
-
e.iconRight || !e.loading ? (l(), P(
|
|
356
|
+
e.iconRight || !e.loading ? (l(), P(U(e.iconRight), {
|
|
357
357
|
key: 3,
|
|
358
|
-
class: v(`${t(
|
|
359
|
-
}, null, 8, ["class"])) :
|
|
358
|
+
class: v(`${t(x)} ${e.hideText ? "" : "ml-2"}`)
|
|
359
|
+
}, null, 8, ["class"])) : _("", !0)
|
|
360
360
|
]),
|
|
361
361
|
_: 3
|
|
362
362
|
}, 8, ["href", "to", "type", "external", "class", "disabled"]));
|
|
@@ -367,7 +367,7 @@ const me = (e, s) => {
|
|
|
367
367
|
for (const [o, a] of s)
|
|
368
368
|
n[o] = a;
|
|
369
369
|
return n;
|
|
370
|
-
}, ge = /* @__PURE__ */ me(
|
|
370
|
+
}, ge = /* @__PURE__ */ me(Vt, [["__scopeId", "data-v-da9a3400"]]), jt = /* @__PURE__ */ O({
|
|
371
371
|
__name: "Link",
|
|
372
372
|
props: {
|
|
373
373
|
to: {
|
|
@@ -453,7 +453,7 @@ const Ot = {
|
|
|
453
453
|
}, Mt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, At = {
|
|
454
454
|
key: 0,
|
|
455
455
|
class: "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5"
|
|
456
|
-
}, Dt = { class: "p-4" }, Rt = { class: "flex items-start" }, Tt = { class: "flex-shrink-0" },
|
|
456
|
+
}, Dt = { class: "p-4" }, Rt = { class: "flex items-start" }, Tt = { class: "flex-shrink-0" }, zt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Ft = {
|
|
457
457
|
key: 0,
|
|
458
458
|
class: "text-foreground font-bold"
|
|
459
459
|
}, Et = {
|
|
@@ -482,7 +482,7 @@ const Ot = {
|
|
|
482
482
|
};
|
|
483
483
|
return (d, i) => (l(), h("div", Ot, [
|
|
484
484
|
u("div", Mt, [
|
|
485
|
-
I(
|
|
485
|
+
I(de, {
|
|
486
486
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
487
487
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
488
488
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -511,24 +511,24 @@ const Ot = {
|
|
|
511
511
|
key: 3,
|
|
512
512
|
class: "h-6 w-6 text-info",
|
|
513
513
|
"aria-hidden": "true"
|
|
514
|
-
})) :
|
|
514
|
+
})) : _("", !0)
|
|
515
515
|
]),
|
|
516
|
-
u("div",
|
|
517
|
-
e.notification.title ? (l(), h("p",
|
|
518
|
-
e.notification.description ? (l(), h("p", Et,
|
|
516
|
+
u("div", zt, [
|
|
517
|
+
e.notification.title ? (l(), h("p", Ft, S(e.notification.title), 1)) : _("", !0),
|
|
518
|
+
e.notification.description ? (l(), h("p", Et, S(e.notification.description), 1)) : _("", !0),
|
|
519
519
|
e.notification.cta ? (l(), h("div", Wt, [
|
|
520
|
-
I(
|
|
520
|
+
I(jt, {
|
|
521
521
|
to: e.notification.cta.url,
|
|
522
522
|
class: "label",
|
|
523
523
|
primary: "",
|
|
524
524
|
onClick: r
|
|
525
525
|
}, {
|
|
526
526
|
default: B(() => [
|
|
527
|
-
T(
|
|
527
|
+
T(S(e.notification.cta.title), 1)
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
}, 8, ["to"])
|
|
531
|
-
])) :
|
|
531
|
+
])) : _("", !0)
|
|
532
532
|
]),
|
|
533
533
|
u("div", {
|
|
534
534
|
class: v(["ml-4 flex flex-shrink-0", { "self-center": t(o) }])
|
|
@@ -539,7 +539,7 @@ const Ot = {
|
|
|
539
539
|
onClick: a
|
|
540
540
|
}, [
|
|
541
541
|
Ut,
|
|
542
|
-
I(t(
|
|
542
|
+
I(t(ce), {
|
|
543
543
|
class: "h-6 w-6",
|
|
544
544
|
"aria-hidden": "true"
|
|
545
545
|
})
|
|
@@ -547,7 +547,7 @@ const Ot = {
|
|
|
547
547
|
], 2)
|
|
548
548
|
])
|
|
549
549
|
])
|
|
550
|
-
])) :
|
|
550
|
+
])) : _("", !0)
|
|
551
551
|
]),
|
|
552
552
|
_: 1
|
|
553
553
|
})
|
|
@@ -611,7 +611,7 @@ const Ot = {
|
|
|
611
611
|
class: v(t(i)),
|
|
612
612
|
fill: "currentColor",
|
|
613
613
|
viewBox: "0 0 8 8"
|
|
614
|
-
}, Ht, 2)) :
|
|
614
|
+
}, Ht, 2)) : _("", !0),
|
|
615
615
|
R(f.$slots, "default", {}, () => [
|
|
616
616
|
T("Badge")
|
|
617
617
|
]),
|
|
@@ -620,56 +620,64 @@ const Ot = {
|
|
|
620
620
|
class: v(t(d)),
|
|
621
621
|
onClick: w[0] || (w[0] = (g) => y(g))
|
|
622
622
|
}, [
|
|
623
|
-
(l(), P(
|
|
623
|
+
(l(), P(U(e.iconLeft), {
|
|
624
624
|
class: v(["h-4 w-4", t(a)])
|
|
625
625
|
}, null, 8, ["class"]))
|
|
626
|
-
], 2)) :
|
|
626
|
+
], 2)) : _("", !0)
|
|
627
627
|
], 2));
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
var J = /* @__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))(J || {});
|
|
631
631
|
function Oe(e) {
|
|
632
632
|
const {
|
|
633
|
-
props: {
|
|
634
|
-
|
|
635
|
-
|
|
633
|
+
props: {
|
|
634
|
+
modelValue: s,
|
|
635
|
+
steps: n,
|
|
636
|
+
orientation: o,
|
|
637
|
+
goVerticalBelow: a,
|
|
638
|
+
nonInteractive: r,
|
|
639
|
+
stepsPadding: d
|
|
640
|
+
},
|
|
641
|
+
emit: i
|
|
642
|
+
} = e, y = c(
|
|
636
643
|
() => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
|
|
637
|
-
),
|
|
644
|
+
), f = c({
|
|
638
645
|
get: () => we((s == null ? void 0 : s.value) || 0, -1, n.value.length),
|
|
639
|
-
set: (
|
|
640
|
-
}),
|
|
641
|
-
var
|
|
646
|
+
set: ($) => i("update:modelValue", we($, 0, n.value.length))
|
|
647
|
+
}), w = ($) => `${$ + 1}`, g = ($) => $ === f.value, m = ($) => $ < f.value, b = ($, C) => {
|
|
648
|
+
var E;
|
|
642
649
|
if (r != null && r.value) {
|
|
643
|
-
|
|
650
|
+
C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
|
|
644
651
|
return;
|
|
645
652
|
}
|
|
646
|
-
|
|
647
|
-
const
|
|
648
|
-
(
|
|
649
|
-
},
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
653
|
+
f.value = $;
|
|
654
|
+
const x = n.value[f.value];
|
|
655
|
+
(E = x == null ? void 0 : x.onClick) == null || E.call(x);
|
|
656
|
+
}, V = c(() => {
|
|
657
|
+
const $ = ["flex"];
|
|
658
|
+
let C, x;
|
|
659
|
+
return (d == null ? void 0 : d.value) === "xs" ? (C = "space-x-2", x = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? (C = "space-x-4", x = "space-y-1") : (C = "space-x-8", x = "space-y-4"), $.push("flex"), y.value === "vertical" || a != null && a.value ? ($.push(`flex-col ${x} justify-center`), (a == null ? void 0 : a.value) === J.sm ? $.push(
|
|
660
|
+
`sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
|
|
661
|
+
) : (a == null ? void 0 : a.value) === J.md ? $.push(
|
|
662
|
+
`md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
|
|
663
|
+
) : (a == null ? void 0 : a.value) === J.lg ? $.push(
|
|
664
|
+
`lg:flex-row lg:space-y-0 lg:justify-start lg:${C} lg:items-center`
|
|
665
|
+
) : (a == null ? void 0 : a.value) === J.xl && $.push(
|
|
666
|
+
`xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
|
|
667
|
+
)) : $.push(`flex-row ${C} items-center`), $.join(" ");
|
|
668
|
+
}), L = c(() => {
|
|
669
|
+
const $ = ["flex items-center"];
|
|
670
|
+
return r != null && r.value || $.push("cursor-pointer"), $.join(" ");
|
|
663
671
|
});
|
|
664
672
|
return {
|
|
665
|
-
value:
|
|
666
|
-
isCurrentStep:
|
|
667
|
-
isFinishedStep:
|
|
668
|
-
switchStep:
|
|
669
|
-
getStepDisplayValue:
|
|
670
|
-
listClasses:
|
|
671
|
-
linkClasses:
|
|
672
|
-
orientation:
|
|
673
|
+
value: f,
|
|
674
|
+
isCurrentStep: g,
|
|
675
|
+
isFinishedStep: m,
|
|
676
|
+
switchStep: b,
|
|
677
|
+
getStepDisplayValue: w,
|
|
678
|
+
listClasses: V,
|
|
679
|
+
linkClasses: L,
|
|
680
|
+
orientation: y
|
|
673
681
|
};
|
|
674
682
|
}
|
|
675
683
|
const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Jt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Qt = { class: "flex flex-col" }, Yt = {
|
|
@@ -689,7 +697,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
689
697
|
steps: null,
|
|
690
698
|
modelValue: null,
|
|
691
699
|
goVerticalBelow: null,
|
|
692
|
-
nonInteractive: { type: Boolean }
|
|
700
|
+
nonInteractive: { type: Boolean },
|
|
701
|
+
stepsPadding: null
|
|
693
702
|
},
|
|
694
703
|
emits: ["update:modelValue"],
|
|
695
704
|
setup(e, { emit: s }) {
|
|
@@ -711,7 +720,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
711
720
|
u("ol", {
|
|
712
721
|
class: v(t(i))
|
|
713
722
|
}, [
|
|
714
|
-
(l(!0), h(
|
|
723
|
+
(l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
|
|
715
724
|
key: g.name
|
|
716
725
|
}, [
|
|
717
726
|
t(a)(m) ? (l(), h("a", {
|
|
@@ -725,8 +734,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
725
734
|
I(t(nt), { class: "w-5 h-5" })
|
|
726
735
|
]),
|
|
727
736
|
u("div", Qt, [
|
|
728
|
-
u("div", null,
|
|
729
|
-
g.description ? (l(), h("div", Yt,
|
|
737
|
+
u("div", null, S(g.name), 1),
|
|
738
|
+
g.description ? (l(), h("div", Yt, S(g.description), 1)) : _("", !0)
|
|
730
739
|
])
|
|
731
740
|
])
|
|
732
741
|
], 10, Xt)) : t(o)(m) ? (l(), h("a", {
|
|
@@ -737,10 +746,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
737
746
|
onClick: (b) => t(r)(m, b)
|
|
738
747
|
}, [
|
|
739
748
|
u("div", es, [
|
|
740
|
-
u("div", ts,
|
|
749
|
+
u("div", ts, S(t(d)(m)), 1),
|
|
741
750
|
u("div", ss, [
|
|
742
|
-
u("div", null,
|
|
743
|
-
g.description ? (l(), h("div", ns,
|
|
751
|
+
u("div", null, S(g.name), 1),
|
|
752
|
+
g.description ? (l(), h("div", ns, S(g.description), 1)) : _("", !0)
|
|
744
753
|
])
|
|
745
754
|
])
|
|
746
755
|
], 10, Zt)) : (l(), h("a", {
|
|
@@ -750,10 +759,10 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
750
759
|
onClick: (b) => t(r)(m, b)
|
|
751
760
|
}, [
|
|
752
761
|
u("div", as, [
|
|
753
|
-
u("div", os,
|
|
762
|
+
u("div", os, S(t(d)(m)), 1),
|
|
754
763
|
u("div", rs, [
|
|
755
|
-
u("div", null,
|
|
756
|
-
g.description ? (l(), h("div", is,
|
|
764
|
+
u("div", null, S(g.name), 1),
|
|
765
|
+
g.description ? (l(), h("div", is, S(g.description), 1)) : _("", !0)
|
|
757
766
|
])
|
|
758
767
|
])
|
|
759
768
|
], 10, ls))
|
|
@@ -761,7 +770,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
761
770
|
], 2)
|
|
762
771
|
], 8, Kt));
|
|
763
772
|
}
|
|
764
|
-
}), Me = (e) => (_e("data-v-
|
|
773
|
+
}), Me = (e) => (_e("data-v-9dd7b659"), e = e(), Se(), e), us = ["aria-label"], ds = ["href", "onClick"], cs = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, fs = {
|
|
765
774
|
key: 0,
|
|
766
775
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
767
776
|
}, ps = ["href", "onClick"], hs = {
|
|
@@ -788,7 +797,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
788
797
|
steps: null,
|
|
789
798
|
modelValue: null,
|
|
790
799
|
goVerticalBelow: null,
|
|
791
|
-
nonInteractive: { type: Boolean }
|
|
800
|
+
nonInteractive: { type: Boolean },
|
|
801
|
+
stepsPadding: null
|
|
792
802
|
},
|
|
793
803
|
emits: ["update:modelValue"],
|
|
794
804
|
setup(e, { emit: s }) {
|
|
@@ -796,8 +806,9 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
796
806
|
props: Z(n),
|
|
797
807
|
emit: s
|
|
798
808
|
}), y = c(() => {
|
|
799
|
-
const f = ["
|
|
800
|
-
|
|
809
|
+
const f = ["h6 font-medium leading-7"];
|
|
810
|
+
let w;
|
|
811
|
+
return n.stepsPadding === "xs" ? w = "ml-1" : n.stepsPadding === "sm" ? w = "ml-2" : w = "ml-3", f.push(w), n.basic && f.push("sr-only"), f.join(" ");
|
|
801
812
|
});
|
|
802
813
|
return (f, w) => (l(), h("nav", {
|
|
803
814
|
class: "flex justify-center",
|
|
@@ -806,7 +817,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
806
817
|
u("ol", {
|
|
807
818
|
class: v([t(d), e.basic ? "basic" : ""])
|
|
808
819
|
}, [
|
|
809
|
-
(l(!0), h(
|
|
820
|
+
(l(!0), h(q, null, H(e.steps, (g, m) => (l(), h("li", {
|
|
810
821
|
key: g.name
|
|
811
822
|
}, [
|
|
812
823
|
t(a)(m) ? (l(), h("a", {
|
|
@@ -815,7 +826,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
815
826
|
class: v(t(i)),
|
|
816
827
|
onClick: (b) => t(r)(m, b)
|
|
817
828
|
}, [
|
|
818
|
-
u("span",
|
|
829
|
+
u("span", cs, [
|
|
819
830
|
e.basic ? (l(), h("span", fs)) : (l(), P(t(lt), {
|
|
820
831
|
key: 1,
|
|
821
832
|
class: "h-full w-full text-primary",
|
|
@@ -824,8 +835,8 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
824
835
|
]),
|
|
825
836
|
u("span", {
|
|
826
837
|
class: v(["text-foreground", t(y)])
|
|
827
|
-
},
|
|
828
|
-
], 10,
|
|
838
|
+
}, S(g.name), 3)
|
|
839
|
+
], 10, ds)) : t(o)(m) ? (l(), h("a", {
|
|
829
840
|
key: 1,
|
|
830
841
|
href: g.href,
|
|
831
842
|
class: v(t(i)),
|
|
@@ -833,14 +844,14 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
833
844
|
onClick: (b) => t(r)(m, b)
|
|
834
845
|
}, [
|
|
835
846
|
u("span", hs, [
|
|
836
|
-
e.basic ? (l(), h("span", ms)) : (l(), h(
|
|
847
|
+
e.basic ? (l(), h("span", ms)) : (l(), h(q, { key: 1 }, [
|
|
837
848
|
gs,
|
|
838
849
|
ys
|
|
839
850
|
], 64))
|
|
840
851
|
]),
|
|
841
852
|
u("span", {
|
|
842
853
|
class: v(["text-primary-focus", t(y)])
|
|
843
|
-
},
|
|
854
|
+
}, S(g.name), 3)
|
|
844
855
|
], 10, ps)) : (l(), h("a", {
|
|
845
856
|
key: 2,
|
|
846
857
|
href: g.href,
|
|
@@ -852,14 +863,14 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
|
|
|
852
863
|
]),
|
|
853
864
|
u("p", {
|
|
854
865
|
class: v(["text-foreground-disabled", t(y)])
|
|
855
|
-
},
|
|
866
|
+
}, S(g.name), 3)
|
|
856
867
|
], 10, vs))
|
|
857
868
|
]))), 128))
|
|
858
869
|
], 2)
|
|
859
870
|
], 8, us));
|
|
860
871
|
}
|
|
861
872
|
});
|
|
862
|
-
const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-
|
|
873
|
+
const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-9dd7b659"]]), ws = ["disabled"], ul = /* @__PURE__ */ O({
|
|
863
874
|
__name: "CardButton",
|
|
864
875
|
props: {
|
|
865
876
|
disabled: { type: Boolean },
|
|
@@ -898,10 +909,10 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
|
|
|
898
909
|
}, Bs = ["for"], Ls = {
|
|
899
910
|
key: 0,
|
|
900
911
|
class: "text-danger ml-1"
|
|
901
|
-
}, Ps = ["id"],
|
|
912
|
+
}, Ps = ["id"], Vs = O({
|
|
902
913
|
inheritAttrs: !1
|
|
903
|
-
}),
|
|
904
|
-
...
|
|
914
|
+
}), dl = /* @__PURE__ */ O({
|
|
915
|
+
...Vs,
|
|
905
916
|
__name: "Checkbox",
|
|
906
917
|
props: {
|
|
907
918
|
/**
|
|
@@ -989,7 +1000,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
|
|
|
989
1000
|
},
|
|
990
1001
|
emits: ["update:modelValue"],
|
|
991
1002
|
setup(e) {
|
|
992
|
-
const s = e, n = (
|
|
1003
|
+
const s = e, n = (L) => `${L}-${pe()}`, o = c(() => s.value || s.name), {
|
|
993
1004
|
checked: a,
|
|
994
1005
|
errorMessage: r,
|
|
995
1006
|
handleChange: d
|
|
@@ -998,16 +1009,16 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
|
|
|
998
1009
|
type: "checkbox",
|
|
999
1010
|
checkedValue: o,
|
|
1000
1011
|
initialValue: s.modelValue || void 0
|
|
1001
|
-
}), i = (
|
|
1002
|
-
s.disabled || d(
|
|
1012
|
+
}), i = (L) => {
|
|
1013
|
+
s.disabled || d(L);
|
|
1003
1014
|
}, y = c(() => s.label || s.name), f = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
|
|
1004
|
-
const
|
|
1005
|
-
return s.inlineDescription ?
|
|
1006
|
-
}), b = A(n("checkbox")),
|
|
1007
|
-
return (
|
|
1015
|
+
const L = [];
|
|
1016
|
+
return s.inlineDescription ? L.push("inline ml-2") : L.push("block"), r.value ? L.push("text-danger") : L.push("text-foreground-2"), L.join(" ");
|
|
1017
|
+
}), b = A(n("checkbox")), V = c(() => s.id || b.value);
|
|
1018
|
+
return (L, $) => (l(), h("div", $s, [
|
|
1008
1019
|
u("div", _s, [
|
|
1009
1020
|
u("input", ne({
|
|
1010
|
-
id: t(
|
|
1021
|
+
id: t(V),
|
|
1011
1022
|
checked: t(a),
|
|
1012
1023
|
"aria-describedby": t(g),
|
|
1013
1024
|
name: e.name,
|
|
@@ -1015,21 +1026,21 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
|
|
|
1015
1026
|
disabled: e.disabled,
|
|
1016
1027
|
type: "checkbox",
|
|
1017
1028
|
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(f)]
|
|
1018
|
-
},
|
|
1029
|
+
}, L.$attrs, { onChange: i }), null, 16, Ss)
|
|
1019
1030
|
]),
|
|
1020
1031
|
u("div", Is, [
|
|
1021
1032
|
u("label", {
|
|
1022
|
-
for: t(
|
|
1033
|
+
for: t(V),
|
|
1023
1034
|
class: v(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1024
1035
|
}, [
|
|
1025
|
-
u("span", null,
|
|
1026
|
-
e.showRequired ? (l(), h("span", Ls, "*")) :
|
|
1036
|
+
u("span", null, S(t(y)), 1),
|
|
1037
|
+
e.showRequired ? (l(), h("span", Ls, "*")) : _("", !0)
|
|
1027
1038
|
], 10, Bs),
|
|
1028
1039
|
t(w) ? (l(), h("p", {
|
|
1029
1040
|
key: 0,
|
|
1030
1041
|
id: t(g),
|
|
1031
1042
|
class: v(t(m))
|
|
1032
|
-
},
|
|
1043
|
+
}, S(t(w)), 11, Ps)) : _("", !0)
|
|
1033
1044
|
])
|
|
1034
1045
|
]));
|
|
1035
1046
|
}
|
|
@@ -1040,53 +1051,53 @@ function Ae(e) {
|
|
|
1040
1051
|
validateOnValueUpdate: t(s.validateOnValueUpdate),
|
|
1041
1052
|
initialValue: t(s.modelValue) || void 0
|
|
1042
1053
|
}), d = c(() => {
|
|
1043
|
-
const
|
|
1044
|
-
return t(s.showLabel) ||
|
|
1054
|
+
const x = ["block label text-foreground-2 mb-2"];
|
|
1055
|
+
return t(s.showLabel) || x.push("sr-only"), x.join(" ");
|
|
1045
1056
|
}), i = c(() => {
|
|
1046
|
-
const
|
|
1057
|
+
const x = [
|
|
1047
1058
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
1048
1059
|
"disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
|
|
1049
1060
|
"placeholder:text-foreground-2"
|
|
1050
1061
|
];
|
|
1051
|
-
return r.value ?
|
|
1062
|
+
return r.value ? x.push(
|
|
1052
1063
|
"border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
|
|
1053
|
-
) :
|
|
1064
|
+
) : x.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? x.push("bg-foundation shadow-sm hover:shadow") : x.push("bg-foundation-page"), x.join(" ");
|
|
1054
1065
|
}), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
|
|
1055
|
-
const
|
|
1056
|
-
return !
|
|
1066
|
+
const x = r.value;
|
|
1067
|
+
return !x || !t(s.useLabelInErrors) ? x : x.replace("Value", f.value);
|
|
1057
1068
|
}), g = c(
|
|
1058
1069
|
() => w.value && t(s.hideErrorMessage)
|
|
1059
|
-
), m = c(() => w.value || t(s.help)), b = c(() => !!m.value),
|
|
1070
|
+
), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), V = c(
|
|
1060
1071
|
() => b.value ? `${t(s.name)}-${y.value}` : void 0
|
|
1061
|
-
),
|
|
1062
|
-
const
|
|
1063
|
-
return
|
|
1064
|
-
}),
|
|
1065
|
-
var
|
|
1066
|
-
(
|
|
1067
|
-
},
|
|
1072
|
+
), L = c(() => {
|
|
1073
|
+
const x = ["mt-2 text-sm"];
|
|
1074
|
+
return x.push(r.value ? "text-danger" : "text-foreground-2"), x.join(" ");
|
|
1075
|
+
}), $ = () => {
|
|
1076
|
+
var x;
|
|
1077
|
+
(x = n.value) == null || x.focus();
|
|
1078
|
+
}, C = () => {
|
|
1068
1079
|
a.value = "", o("change", { value: "" }), o("clear");
|
|
1069
1080
|
};
|
|
1070
1081
|
return ee(() => {
|
|
1071
|
-
t(s.autoFocus) &&
|
|
1082
|
+
t(s.autoFocus) && $();
|
|
1072
1083
|
}), {
|
|
1073
1084
|
coreClasses: i,
|
|
1074
1085
|
title: f,
|
|
1075
1086
|
value: a,
|
|
1076
|
-
helpTipId:
|
|
1077
|
-
helpTipClasses:
|
|
1087
|
+
helpTipId: V,
|
|
1088
|
+
helpTipClasses: L,
|
|
1078
1089
|
helpTip: m,
|
|
1079
1090
|
hideHelpTip: g,
|
|
1080
1091
|
errorMessage: w,
|
|
1081
|
-
clear:
|
|
1082
|
-
focus:
|
|
1092
|
+
clear: C,
|
|
1093
|
+
focus: $,
|
|
1083
1094
|
labelClasses: d
|
|
1084
1095
|
};
|
|
1085
1096
|
}
|
|
1086
|
-
const
|
|
1097
|
+
const js = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], As = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ds = {
|
|
1087
1098
|
key: 2,
|
|
1088
1099
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1089
|
-
}, Rs = ["id"],
|
|
1100
|
+
}, Rs = ["id"], cl = /* @__PURE__ */ O({
|
|
1090
1101
|
__name: "TextArea",
|
|
1091
1102
|
props: {
|
|
1092
1103
|
name: null,
|
|
@@ -1118,39 +1129,39 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1118
1129
|
errorMessage: g,
|
|
1119
1130
|
labelClasses: m,
|
|
1120
1131
|
clear: b,
|
|
1121
|
-
focus:
|
|
1132
|
+
focus: V
|
|
1122
1133
|
} = Ae({
|
|
1123
1134
|
props: Z(o),
|
|
1124
1135
|
emit: n,
|
|
1125
1136
|
inputEl: a
|
|
1126
|
-
}),
|
|
1127
|
-
const
|
|
1128
|
-
return o.showClear && g.value ?
|
|
1137
|
+
}), L = c(() => {
|
|
1138
|
+
const $ = ["pl-2"];
|
|
1139
|
+
return o.showClear && g.value ? $.push("pr-12") : (o.showClear || g.value) && $.push("pr-8"), $.join(" ");
|
|
1129
1140
|
});
|
|
1130
|
-
return s({ focus:
|
|
1141
|
+
return s({ focus: V }), ($, C) => (l(), h("div", {
|
|
1131
1142
|
class: v([e.fullWidth ? "w-full" : ""])
|
|
1132
1143
|
}, [
|
|
1133
1144
|
u("label", {
|
|
1134
1145
|
for: e.name,
|
|
1135
1146
|
class: v(t(m))
|
|
1136
1147
|
}, [
|
|
1137
|
-
u("span", null,
|
|
1138
|
-
], 10,
|
|
1148
|
+
u("span", null, S(t(d)), 1)
|
|
1149
|
+
], 10, js),
|
|
1139
1150
|
u("div", Os, [
|
|
1140
1151
|
te(u("textarea", ne({
|
|
1141
1152
|
id: e.name,
|
|
1142
1153
|
ref_key: "inputElement",
|
|
1143
1154
|
ref: a,
|
|
1144
|
-
"onUpdate:modelValue":
|
|
1155
|
+
"onUpdate:modelValue": C[0] || (C[0] = (x) => le(i) ? i.value = x : null),
|
|
1145
1156
|
name: e.name,
|
|
1146
|
-
class: [t(r), t(
|
|
1157
|
+
class: [t(r), t(L), "min-h-[4rem]"],
|
|
1147
1158
|
placeholder: e.placeholder,
|
|
1148
1159
|
disabled: e.disabled,
|
|
1149
1160
|
"aria-invalid": t(g) ? "true" : "false",
|
|
1150
1161
|
"aria-describedby": t(y)
|
|
1151
|
-
},
|
|
1152
|
-
onChange:
|
|
1153
|
-
onInput:
|
|
1162
|
+
}, $.$attrs, {
|
|
1163
|
+
onChange: C[1] || (C[1] = (x) => $.$emit("change", { event: x, value: t(i) })),
|
|
1164
|
+
onInput: C[2] || (C[2] = (x) => $.$emit("input", { event: x, value: t(i) }))
|
|
1154
1165
|
}), null, 16, Ms), [
|
|
1155
1166
|
[Ie, t(i)]
|
|
1156
1167
|
]),
|
|
@@ -1158,17 +1169,17 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1158
1169
|
key: 0,
|
|
1159
1170
|
title: "Clear input",
|
|
1160
1171
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1161
|
-
onClick:
|
|
1162
|
-
(...
|
|
1163
|
-
onKeydown:
|
|
1164
|
-
(...
|
|
1172
|
+
onClick: C[3] || (C[3] = //@ts-ignore
|
|
1173
|
+
(...x) => t(b) && t(b)(...x)),
|
|
1174
|
+
onKeydown: C[4] || (C[4] = //@ts-ignore
|
|
1175
|
+
(...x) => t(b) && t(b)(...x))
|
|
1165
1176
|
}, [
|
|
1166
1177
|
As,
|
|
1167
|
-
I(t(
|
|
1178
|
+
I(t(ce), {
|
|
1168
1179
|
class: "h-5 w-5 text-foreground",
|
|
1169
1180
|
"aria-hidden": "true"
|
|
1170
1181
|
})
|
|
1171
|
-
], 32)) :
|
|
1182
|
+
], 32)) : _("", !0),
|
|
1172
1183
|
t(g) ? (l(), h("div", {
|
|
1173
1184
|
key: 1,
|
|
1174
1185
|
class: v([
|
|
@@ -1176,21 +1187,21 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1176
1187
|
e.showClear ? "pr-8" : "pr-2"
|
|
1177
1188
|
])
|
|
1178
1189
|
}, [
|
|
1179
|
-
I(t(
|
|
1190
|
+
I(t(je), {
|
|
1180
1191
|
class: "h-4 w-4 text-danger",
|
|
1181
1192
|
"aria-hidden": "true"
|
|
1182
1193
|
})
|
|
1183
|
-
], 2)) :
|
|
1184
|
-
e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) :
|
|
1194
|
+
], 2)) : _("", !0),
|
|
1195
|
+
e.showRequired && !t(g) ? (l(), h("div", Ds, " * ")) : _("", !0)
|
|
1185
1196
|
]),
|
|
1186
1197
|
t(y) ? (l(), h("p", {
|
|
1187
1198
|
key: 0,
|
|
1188
1199
|
id: t(y),
|
|
1189
1200
|
class: v(t(f))
|
|
1190
|
-
},
|
|
1201
|
+
}, S(t(w)), 11, Rs)) : _("", !0)
|
|
1191
1202
|
], 2));
|
|
1192
1203
|
}
|
|
1193
|
-
}), Ts = ["for"],
|
|
1204
|
+
}), Ts = ["for"], zs = { class: "relative" }, Fs = {
|
|
1194
1205
|
key: 0,
|
|
1195
1206
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1196
1207
|
}, Es = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Us = {
|
|
@@ -1335,7 +1346,7 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1335
1346
|
},
|
|
1336
1347
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1337
1348
|
setup(e, { expose: s, emit: n }) {
|
|
1338
|
-
const o = e, a =
|
|
1349
|
+
const o = e, a = Fe(), r = A(null), {
|
|
1339
1350
|
coreClasses: d,
|
|
1340
1351
|
title: i,
|
|
1341
1352
|
value: y,
|
|
@@ -1344,21 +1355,21 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1344
1355
|
helpTip: g,
|
|
1345
1356
|
hideHelpTip: m,
|
|
1346
1357
|
errorMessage: b,
|
|
1347
|
-
clear:
|
|
1348
|
-
focus:
|
|
1349
|
-
labelClasses:
|
|
1358
|
+
clear: V,
|
|
1359
|
+
focus: L,
|
|
1360
|
+
labelClasses: $
|
|
1350
1361
|
} = Ae({
|
|
1351
1362
|
props: Z(o),
|
|
1352
1363
|
emit: n,
|
|
1353
1364
|
inputEl: r
|
|
1354
|
-
}),
|
|
1355
|
-
const
|
|
1356
|
-
return b.value ?
|
|
1357
|
-
}),
|
|
1365
|
+
}), C = c(() => {
|
|
1366
|
+
const j = ["h-5 w-5"];
|
|
1367
|
+
return b.value ? j.push("text-danger") : j.push("text-foreground-2"), j.join(" ");
|
|
1368
|
+
}), x = c(
|
|
1358
1369
|
() => ["email", "password"].includes(o.type) || o.customIcon
|
|
1359
|
-
),
|
|
1360
|
-
const
|
|
1361
|
-
return
|
|
1370
|
+
), E = c(() => {
|
|
1371
|
+
const j = [];
|
|
1372
|
+
return x.value ? j.push("pl-8") : j.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? j.push("pr-12") : j.push("pr-8")), j.join(" ");
|
|
1362
1373
|
}), p = c(() => {
|
|
1363
1374
|
switch (o.size) {
|
|
1364
1375
|
case "sm":
|
|
@@ -1372,66 +1383,66 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1372
1383
|
return "h-8";
|
|
1373
1384
|
}
|
|
1374
1385
|
});
|
|
1375
|
-
return s({ focus:
|
|
1386
|
+
return s({ focus: L }), (j, z) => (l(), h("div", {
|
|
1376
1387
|
class: v([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1377
1388
|
}, [
|
|
1378
1389
|
u("label", {
|
|
1379
1390
|
for: e.name,
|
|
1380
|
-
class: v(t(
|
|
1391
|
+
class: v(t($))
|
|
1381
1392
|
}, [
|
|
1382
|
-
u("span", null,
|
|
1393
|
+
u("span", null, S(t(i)), 1)
|
|
1383
1394
|
], 10, Ts),
|
|
1384
|
-
u("div",
|
|
1385
|
-
t(
|
|
1386
|
-
e.customIcon ? (l(), P(
|
|
1395
|
+
u("div", zs, [
|
|
1396
|
+
t(x) ? (l(), h("div", Fs, [
|
|
1397
|
+
e.customIcon ? (l(), P(U(e.customIcon), {
|
|
1387
1398
|
key: 0,
|
|
1388
|
-
class: v(t(
|
|
1399
|
+
class: v(t(C)),
|
|
1389
1400
|
"aria-hidden": "true"
|
|
1390
1401
|
}, null, 8, ["class"])) : e.type === "email" ? (l(), P(t(at), {
|
|
1391
1402
|
key: 1,
|
|
1392
|
-
class: v(t(
|
|
1403
|
+
class: v(t(C)),
|
|
1393
1404
|
"aria-hidden": "true"
|
|
1394
1405
|
}, null, 8, ["class"])) : e.type === "password" ? (l(), P(t(ot), {
|
|
1395
1406
|
key: 2,
|
|
1396
|
-
class: v(t(
|
|
1407
|
+
class: v(t(C)),
|
|
1397
1408
|
"aria-hidden": "true"
|
|
1398
|
-
}, null, 8, ["class"])) :
|
|
1399
|
-
])) :
|
|
1409
|
+
}, null, 8, ["class"])) : _("", !0)
|
|
1410
|
+
])) : _("", !0),
|
|
1400
1411
|
te(u("input", ne({
|
|
1401
1412
|
id: e.name,
|
|
1402
1413
|
ref_key: "inputElement",
|
|
1403
1414
|
ref: r,
|
|
1404
|
-
"onUpdate:modelValue":
|
|
1415
|
+
"onUpdate:modelValue": z[0] || (z[0] = (M) => le(y) ? y.value = M : null),
|
|
1405
1416
|
type: e.type,
|
|
1406
1417
|
name: e.name,
|
|
1407
|
-
class: [t(d), t(
|
|
1418
|
+
class: [t(d), t(E), t(p), e.inputClasses || ""],
|
|
1408
1419
|
placeholder: e.placeholder,
|
|
1409
1420
|
disabled: e.disabled,
|
|
1410
1421
|
"aria-invalid": t(b) ? "true" : "false",
|
|
1411
1422
|
"aria-describedby": t(f),
|
|
1412
1423
|
role: "textbox"
|
|
1413
|
-
},
|
|
1414
|
-
onChange:
|
|
1415
|
-
onInput:
|
|
1424
|
+
}, j.$attrs, {
|
|
1425
|
+
onChange: z[1] || (z[1] = (M) => j.$emit("change", { event: M, value: t(y) })),
|
|
1426
|
+
onInput: z[2] || (z[2] = (M) => j.$emit("input", { event: M, value: t(y) }))
|
|
1416
1427
|
}), null, 16, Es), [
|
|
1417
1428
|
[Ee, t(y)]
|
|
1418
1429
|
]),
|
|
1419
|
-
R(
|
|
1430
|
+
R(j.$slots, "input-right", {}, () => [
|
|
1420
1431
|
e.showClear ? (l(), h("a", {
|
|
1421
1432
|
key: 0,
|
|
1422
1433
|
title: "Clear input",
|
|
1423
1434
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1424
|
-
onClick:
|
|
1425
|
-
(...M) => t(
|
|
1426
|
-
onKeydown:
|
|
1427
|
-
(...M) => t(
|
|
1435
|
+
onClick: z[3] || (z[3] = //@ts-ignore
|
|
1436
|
+
(...M) => t(V) && t(V)(...M)),
|
|
1437
|
+
onKeydown: z[4] || (z[4] = //@ts-ignore
|
|
1438
|
+
(...M) => t(V) && t(V)(...M))
|
|
1428
1439
|
}, [
|
|
1429
1440
|
Ws,
|
|
1430
|
-
I(t(
|
|
1441
|
+
I(t(ce), {
|
|
1431
1442
|
class: "h-5 w-5 text-foreground",
|
|
1432
1443
|
"aria-hidden": "true"
|
|
1433
1444
|
})
|
|
1434
|
-
], 32)) :
|
|
1445
|
+
], 32)) : _("", !0),
|
|
1435
1446
|
t(b) ? (l(), h("div", {
|
|
1436
1447
|
key: 1,
|
|
1437
1448
|
class: v([
|
|
@@ -1439,19 +1450,19 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
|
|
|
1439
1450
|
e.showClear ? "pr-8" : "pr-2"
|
|
1440
1451
|
])
|
|
1441
1452
|
}, [
|
|
1442
|
-
I(t(
|
|
1453
|
+
I(t(je), {
|
|
1443
1454
|
class: "h-4 w-4 text-danger",
|
|
1444
1455
|
"aria-hidden": "true"
|
|
1445
1456
|
})
|
|
1446
|
-
], 2)) :
|
|
1447
|
-
e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) :
|
|
1457
|
+
], 2)) : _("", !0),
|
|
1458
|
+
e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : _("", !0)
|
|
1448
1459
|
])
|
|
1449
1460
|
]),
|
|
1450
1461
|
t(f) && !t(m) ? (l(), h("p", {
|
|
1451
1462
|
key: 0,
|
|
1452
1463
|
id: t(f),
|
|
1453
1464
|
class: v(t(w))
|
|
1454
|
-
},
|
|
1465
|
+
}, S(t(g)), 11, qs)) : _("", !0)
|
|
1455
1466
|
], 2));
|
|
1456
1467
|
}
|
|
1457
1468
|
}), Gs = /^https?:\/\//, ye = /^[\w-_.+]+@[\w-_.+]+$/, Ks = (e) => (e || "").match(ye) ? !0 : "Value should be a valid e-mail address", Xs = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(ye)) || "Value should be one or multiple comma-delimited e-mail addresses", Ns = (e) => (se(e) && (e = e.trim()), e ? !0 : "Value is required"), Js = (e, s) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Qs = (e) => (s) => {
|
|
@@ -1485,12 +1496,12 @@ function Zs(e) {
|
|
|
1485
1496
|
const f = y.children;
|
|
1486
1497
|
let w = 0, g = 0, m;
|
|
1487
1498
|
for (const b of f) {
|
|
1488
|
-
const
|
|
1489
|
-
X(m) ? (m =
|
|
1499
|
+
const V = b.offsetTop;
|
|
1500
|
+
X(m) ? (m = V, w += 1) : V === m && (w += 1), g += 1;
|
|
1490
1501
|
}
|
|
1491
1502
|
d.value = g - w;
|
|
1492
1503
|
};
|
|
1493
|
-
return a &&
|
|
1504
|
+
return a && dt(n, i), r && ct(n, i, {
|
|
1494
1505
|
childList: !0,
|
|
1495
1506
|
subtree: !0
|
|
1496
1507
|
}), {
|
|
@@ -1516,25 +1527,25 @@ function en(e) {
|
|
|
1516
1527
|
get: () => {
|
|
1517
1528
|
var w, g;
|
|
1518
1529
|
const f = (w = s.modelValue) == null ? void 0 : w.value;
|
|
1519
|
-
return (g = s.multiple) != null && g.value ?
|
|
1530
|
+
return (g = s.multiple) != null && g.value ? W(f) ? f : [] : W(f) ? void 0 : f;
|
|
1520
1531
|
},
|
|
1521
1532
|
set: (f) => {
|
|
1522
1533
|
var w, g, m;
|
|
1523
|
-
if ((w = s.multiple) != null && w.value && !
|
|
1534
|
+
if ((w = s.multiple) != null && w.value && !W(f)) {
|
|
1524
1535
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1525
1536
|
return;
|
|
1526
|
-
} else if (!((g = s.multiple) != null && g.value) &&
|
|
1537
|
+
} else if (!((g = s.multiple) != null && g.value) && W(f)) {
|
|
1527
1538
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1528
1539
|
return;
|
|
1529
1540
|
}
|
|
1530
1541
|
n("update:modelValue", (m = s.multiple) != null && m.value ? f || [] : f);
|
|
1531
1542
|
}
|
|
1532
|
-
}), d = (f) =>
|
|
1543
|
+
}), d = (f) => W(f);
|
|
1533
1544
|
return {
|
|
1534
1545
|
selectedValue: r,
|
|
1535
1546
|
hiddenSelectedItemCount: a,
|
|
1536
1547
|
isArrayValue: d,
|
|
1537
|
-
isMultiItemArrayValue: (f) =>
|
|
1548
|
+
isMultiItemArrayValue: (f) => W(f) && f.length > 1,
|
|
1538
1549
|
firstItem: (f) => d(f) ? f[0] : f
|
|
1539
1550
|
};
|
|
1540
1551
|
}
|
|
@@ -1554,10 +1565,10 @@ const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ *
|
|
|
1554
1565
|
}, nn, 2));
|
|
1555
1566
|
}
|
|
1556
1567
|
});
|
|
1557
|
-
const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { class: "flex items-center justify-between w-full" }, on = { class: "block truncate grow text-left" }, rn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, un = ["disabled"],
|
|
1568
|
+
const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { class: "flex items-center justify-between w-full" }, on = { class: "block truncate grow text-left" }, rn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, un = ["disabled"], dn = {
|
|
1558
1569
|
key: 0,
|
|
1559
1570
|
class: "flex flex-col mx-1 mb-1"
|
|
1560
|
-
},
|
|
1571
|
+
}, cn = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), fn = { class: "relative" }, pn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, hn = ["placeholder"], mn = {
|
|
1561
1572
|
key: 0,
|
|
1562
1573
|
class: "px-1"
|
|
1563
1574
|
}, gn = { key: 1 }, yn = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), vn = {
|
|
@@ -1703,57 +1714,57 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1703
1714
|
return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", f.value);
|
|
1704
1715
|
}), g = c(() => w.value || t(s.help)), m = c(() => !!g.value), b = c(
|
|
1705
1716
|
() => m.value ? `${t(s.name)}-${y.value}` : void 0
|
|
1706
|
-
),
|
|
1717
|
+
), V = c(
|
|
1707
1718
|
() => o.value ? "text-danger" : "text-foreground-2"
|
|
1708
|
-
),
|
|
1719
|
+
), L = c(
|
|
1709
1720
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1710
|
-
),
|
|
1721
|
+
), $ = c(() => {
|
|
1711
1722
|
const k = ["relative flex group", s.showLabel ? "mt-1" : ""];
|
|
1712
1723
|
return s.buttonStyle !== "simple" && (k.push("hover:shadow rounded-md"), k.push("outline outline-2 outline-primary-muted")), s.fixedHeight && k.push("h-8"), k.join(" ");
|
|
1713
|
-
}),
|
|
1724
|
+
}), C = c(() => {
|
|
1714
1725
|
const k = [];
|
|
1715
1726
|
return s.buttonStyle !== "simple" && k.push(
|
|
1716
|
-
|
|
1717
|
-
),
|
|
1718
|
-
}),
|
|
1727
|
+
z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1728
|
+
), z.value && k.push("cursor-not-allowed"), k.join(" ");
|
|
1729
|
+
}), x = c(() => {
|
|
1719
1730
|
const k = [
|
|
1720
1731
|
"relative z-[1]",
|
|
1721
1732
|
"flex items-center justify-center text-center shrink-0",
|
|
1722
1733
|
"rounded-r-md overflow-hidden transition-all",
|
|
1723
|
-
ve.value ? `w-6 ${
|
|
1734
|
+
ve.value ? `w-6 ${C.value}` : "w-0"
|
|
1724
1735
|
];
|
|
1725
|
-
return
|
|
1736
|
+
return z.value || k.push(
|
|
1726
1737
|
"bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
|
|
1727
1738
|
), k.join(" ");
|
|
1728
|
-
}),
|
|
1739
|
+
}), E = c(() => {
|
|
1729
1740
|
const k = [
|
|
1730
1741
|
"relative z-[2]",
|
|
1731
1742
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1732
1743
|
"flex items-center",
|
|
1733
|
-
|
|
1744
|
+
C.value
|
|
1734
1745
|
];
|
|
1735
|
-
return s.buttonStyle !== "simple" && (k.push("py-2 px-3"),
|
|
1746
|
+
return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), z.value || k.push("bg-foundation text-foreground")), L.value && ve.value && k.push("rounded-r-none"), k.join(" ");
|
|
1736
1747
|
}), p = c(
|
|
1737
1748
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1738
|
-
),
|
|
1739
|
-
() => s.disabled || !s.items.length && !
|
|
1749
|
+
), j = c(() => p.value && s.getSearchResults), z = c(
|
|
1750
|
+
() => s.disabled || !s.items.length && !j.value
|
|
1740
1751
|
), M = c({
|
|
1741
1752
|
get: () => {
|
|
1742
1753
|
const k = n.value;
|
|
1743
|
-
return s.multiple ?
|
|
1754
|
+
return s.multiple ? W(k) ? k : [] : W(k) ? void 0 : k;
|
|
1744
1755
|
},
|
|
1745
1756
|
set: (k) => {
|
|
1746
|
-
if (s.multiple && !
|
|
1757
|
+
if (s.multiple && !W(k)) {
|
|
1747
1758
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1748
1759
|
return;
|
|
1749
|
-
} else if (!s.multiple &&
|
|
1760
|
+
} else if (!s.multiple && W(k)) {
|
|
1750
1761
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1751
1762
|
return;
|
|
1752
1763
|
}
|
|
1753
1764
|
if (s.multiple)
|
|
1754
1765
|
n.value = k || [];
|
|
1755
1766
|
else {
|
|
1756
|
-
const
|
|
1767
|
+
const F = n.value, D = s.allowUnset && F && k && ae(F) === ae(k);
|
|
1757
1768
|
n.value = D ? void 0 : k;
|
|
1758
1769
|
}
|
|
1759
1770
|
}
|
|
@@ -1762,13 +1773,13 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1762
1773
|
}, Te = c(() => {
|
|
1763
1774
|
const k = r.value;
|
|
1764
1775
|
return !p.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
|
|
1765
|
-
(
|
|
1776
|
+
(F) => {
|
|
1766
1777
|
var D;
|
|
1767
|
-
return ((D = s.filterPredicate) == null ? void 0 : D.call(s,
|
|
1778
|
+
return ((D = s.filterPredicate) == null ? void 0 : D.call(s, F, k)) || !1;
|
|
1768
1779
|
}
|
|
1769
1780
|
) : d.value;
|
|
1770
1781
|
}), be = (k) => JSON.stringify(k), ae = (k) => s.by ? k[s.by] : k, xe = async () => {
|
|
1771
|
-
if (console.log("triggerSearch"), !(!
|
|
1782
|
+
if (console.log("triggerSearch"), !(!j.value || !s.getSearchResults)) {
|
|
1772
1783
|
i.value = !0;
|
|
1773
1784
|
try {
|
|
1774
1785
|
d.value = await s.getSearchResults(r.value);
|
|
@@ -1776,7 +1787,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1776
1787
|
i.value = !1;
|
|
1777
1788
|
}
|
|
1778
1789
|
}
|
|
1779
|
-
},
|
|
1790
|
+
}, ze = Pe(xe, 1e3);
|
|
1780
1791
|
return Y(
|
|
1781
1792
|
() => s.items,
|
|
1782
1793
|
(k) => {
|
|
@@ -1784,17 +1795,17 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1784
1795
|
},
|
|
1785
1796
|
{ immediate: !0 }
|
|
1786
1797
|
), Y(r, () => {
|
|
1787
|
-
|
|
1798
|
+
j.value && ze();
|
|
1788
1799
|
}), ee(() => {
|
|
1789
|
-
|
|
1790
|
-
}), (k,
|
|
1800
|
+
j.value && !s.items.length && xe();
|
|
1801
|
+
}), (k, F) => (l(), h("div", null, [
|
|
1791
1802
|
I(t(pt), {
|
|
1792
1803
|
modelValue: t(M),
|
|
1793
|
-
"onUpdate:modelValue":
|
|
1804
|
+
"onUpdate:modelValue": F[4] || (F[4] = (D) => le(M) ? M.value = D : null),
|
|
1794
1805
|
name: e.name,
|
|
1795
1806
|
multiple: e.multiple,
|
|
1796
1807
|
by: e.by,
|
|
1797
|
-
disabled: t(
|
|
1808
|
+
disabled: t(z),
|
|
1798
1809
|
as: "div"
|
|
1799
1810
|
}, {
|
|
1800
1811
|
default: B(() => [
|
|
@@ -1802,30 +1813,30 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1802
1813
|
class: v(["block label text-foreground", { "sr-only": !e.showLabel }])
|
|
1803
1814
|
}, {
|
|
1804
1815
|
default: B(() => [
|
|
1805
|
-
T(
|
|
1816
|
+
T(S(e.label), 1)
|
|
1806
1817
|
]),
|
|
1807
1818
|
_: 1
|
|
1808
1819
|
}, 8, ["class"]),
|
|
1809
1820
|
u("div", {
|
|
1810
|
-
class: v(t(
|
|
1821
|
+
class: v(t($))
|
|
1811
1822
|
}, [
|
|
1812
1823
|
I(t(mt), {
|
|
1813
|
-
class: v(t(
|
|
1824
|
+
class: v(t(E))
|
|
1814
1825
|
}, {
|
|
1815
1826
|
default: B(({ open: D }) => [
|
|
1816
1827
|
u("div", an, [
|
|
1817
1828
|
u("div", on, [
|
|
1818
|
-
!t(M) || t(
|
|
1819
|
-
T(
|
|
1829
|
+
!t(M) || t(W)(t(M)) && !t(M).length ? R(k.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1830
|
+
T(S(e.label), 1)
|
|
1820
1831
|
]) : R(k.$slots, "something-selected", {
|
|
1821
1832
|
key: 1,
|
|
1822
1833
|
value: t(M)
|
|
1823
1834
|
}, () => [
|
|
1824
|
-
T(
|
|
1835
|
+
T(S(be(t(M))), 1)
|
|
1825
1836
|
])
|
|
1826
1837
|
]),
|
|
1827
1838
|
u("div", rn, [
|
|
1828
|
-
D ? (l(), P(t(
|
|
1839
|
+
D ? (l(), P(t(Ve), {
|
|
1829
1840
|
key: 0,
|
|
1830
1841
|
class: "h-4 w-4 text-foreground",
|
|
1831
1842
|
"aria-hidden": "true"
|
|
@@ -1839,17 +1850,17 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1839
1850
|
]),
|
|
1840
1851
|
_: 3
|
|
1841
1852
|
}, 8, ["class"]),
|
|
1842
|
-
t(
|
|
1853
|
+
t(L) ? te((l(), h("button", {
|
|
1843
1854
|
key: 0,
|
|
1844
|
-
class: v(t(
|
|
1855
|
+
class: v(t(x)),
|
|
1845
1856
|
disabled: e.disabled,
|
|
1846
|
-
onClick:
|
|
1857
|
+
onClick: F[0] || (F[0] = (D) => Re())
|
|
1847
1858
|
}, [
|
|
1848
1859
|
I(t(He), { class: "w-3 h-3" })
|
|
1849
1860
|
], 10, un)), [
|
|
1850
1861
|
[t(Bt), "Clear"]
|
|
1851
|
-
]) :
|
|
1852
|
-
I(
|
|
1862
|
+
]) : _("", !0),
|
|
1863
|
+
I(de, {
|
|
1853
1864
|
"leave-active-class": "transition ease-in duration-100",
|
|
1854
1865
|
"leave-from-class": "opacity-100",
|
|
1855
1866
|
"leave-to-class": "opacity-0"
|
|
@@ -1857,14 +1868,14 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1857
1868
|
default: B(() => [
|
|
1858
1869
|
I(t(gt), {
|
|
1859
1870
|
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",
|
|
1860
|
-
onFocus:
|
|
1871
|
+
onFocus: F[3] || (F[3] = (D) => {
|
|
1861
1872
|
var G;
|
|
1862
1873
|
return (G = a.value) == null ? void 0 : G.focus();
|
|
1863
1874
|
})
|
|
1864
1875
|
}, {
|
|
1865
1876
|
default: B(() => [
|
|
1866
|
-
t(p) ? (l(), h("label",
|
|
1867
|
-
|
|
1877
|
+
t(p) ? (l(), h("label", dn, [
|
|
1878
|
+
cn,
|
|
1868
1879
|
u("div", fn, [
|
|
1869
1880
|
u("div", pn, [
|
|
1870
1881
|
I(t(Ge), { class: "h-5 w-5 text-foreground" })
|
|
@@ -1872,28 +1883,28 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1872
1883
|
te(u("input", {
|
|
1873
1884
|
ref_key: "searchInput",
|
|
1874
1885
|
ref: a,
|
|
1875
|
-
"onUpdate:modelValue":
|
|
1886
|
+
"onUpdate:modelValue": F[1] || (F[1] = (D) => r.value = D),
|
|
1876
1887
|
type: "text",
|
|
1877
1888
|
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",
|
|
1878
1889
|
placeholder: e.searchPlaceholder,
|
|
1879
|
-
onKeydown:
|
|
1890
|
+
onKeydown: F[2] || (F[2] = Be(() => {
|
|
1880
1891
|
}, ["stop"]))
|
|
1881
1892
|
}, null, 40, hn), [
|
|
1882
1893
|
[Ie, r.value]
|
|
1883
1894
|
])
|
|
1884
1895
|
])
|
|
1885
|
-
])) :
|
|
1896
|
+
])) : _("", !0),
|
|
1886
1897
|
u("div", {
|
|
1887
1898
|
class: v(["overflow-auto simple-scrollbar", [t(p) ? "max-h-52" : "max-h-60"]])
|
|
1888
1899
|
}, [
|
|
1889
|
-
t(
|
|
1900
|
+
t(j) && i.value ? (l(), h("div", mn, [
|
|
1890
1901
|
I(De, { loading: !0 })
|
|
1891
|
-
])) : t(
|
|
1902
|
+
])) : t(j) && !d.value.length ? (l(), h("div", gn, [
|
|
1892
1903
|
R(k.$slots, "nothing-found", {}, () => [
|
|
1893
1904
|
yn
|
|
1894
1905
|
])
|
|
1895
|
-
])) :
|
|
1896
|
-
!t(
|
|
1906
|
+
])) : _("", !0),
|
|
1907
|
+
!t(j) || !i.value ? (l(!0), h(q, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
|
|
1897
1908
|
key: ae(D),
|
|
1898
1909
|
value: D
|
|
1899
1910
|
}, {
|
|
@@ -1911,7 +1922,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1911
1922
|
active: G,
|
|
1912
1923
|
selected: ke
|
|
1913
1924
|
}, () => [
|
|
1914
|
-
T(
|
|
1925
|
+
T(S(be(D)), 1)
|
|
1915
1926
|
])
|
|
1916
1927
|
]),
|
|
1917
1928
|
!e.hideCheckmarks && ke ? (l(), h("span", {
|
|
@@ -1925,11 +1936,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1925
1936
|
class: "h-5 w-5",
|
|
1926
1937
|
"aria-hidden": "true"
|
|
1927
1938
|
})
|
|
1928
|
-
], 2)) :
|
|
1939
|
+
], 2)) : _("", !0)
|
|
1929
1940
|
], 2)
|
|
1930
1941
|
]),
|
|
1931
1942
|
_: 2
|
|
1932
|
-
}, 1032, ["value"]))), 128)) :
|
|
1943
|
+
}, 1032, ["value"]))), 128)) : _("", !0)
|
|
1933
1944
|
], 2)
|
|
1934
1945
|
]),
|
|
1935
1946
|
_: 3
|
|
@@ -1944,8 +1955,8 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1944
1955
|
t(b) ? (l(), h("p", {
|
|
1945
1956
|
key: 0,
|
|
1946
1957
|
id: t(b),
|
|
1947
|
-
class: v(["mt-2 ml-3 text-sm", t(
|
|
1948
|
-
},
|
|
1958
|
+
class: v(["mt-2 ml-3 text-sm", t(V)])
|
|
1959
|
+
}, S(t(g)), 11, bn)) : _("", !0)
|
|
1949
1960
|
]));
|
|
1950
1961
|
}
|
|
1951
1962
|
}), kn = /* @__PURE__ */ O({
|
|
@@ -1960,7 +1971,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
1960
1971
|
style: oe({ backgroundColor: e.sourceApp.bgColor })
|
|
1961
1972
|
}, {
|
|
1962
1973
|
default: B(() => [
|
|
1963
|
-
T(
|
|
1974
|
+
T(S(e.sourceApp.short), 1)
|
|
1964
1975
|
]),
|
|
1965
1976
|
_: 1
|
|
1966
1977
|
}, 8, ["style"]));
|
|
@@ -2050,10 +2061,10 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
2050
2061
|
by: "name"
|
|
2051
2062
|
}, {
|
|
2052
2063
|
"nothing-selected": B(() => [
|
|
2053
|
-
e.selectorPlaceholder ? (l(), h(
|
|
2054
|
-
T(
|
|
2055
|
-
], 64)) : (l(), h(
|
|
2056
|
-
T(
|
|
2064
|
+
e.selectorPlaceholder ? (l(), h(q, { key: 0 }, [
|
|
2065
|
+
T(S(e.selectorPlaceholder), 1)
|
|
2066
|
+
], 64)) : (l(), h(q, { key: 1 }, [
|
|
2067
|
+
T(S(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2057
2068
|
], 64))
|
|
2058
2069
|
]),
|
|
2059
2070
|
"something-selected": B(({ value: m }) => [
|
|
@@ -2068,18 +2079,18 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
2068
2079
|
ref: a,
|
|
2069
2080
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2070
2081
|
}, [
|
|
2071
|
-
(l(!0), h(
|
|
2082
|
+
(l(!0), h(q, null, H(m, (b) => (l(), P(kn, {
|
|
2072
2083
|
key: b.name,
|
|
2073
2084
|
"source-app": b
|
|
2074
2085
|
}, null, 8, ["source-app"]))), 128))
|
|
2075
2086
|
], 512),
|
|
2076
|
-
t(d) > 0 ? (l(), h("div", Cn, " +" +
|
|
2087
|
+
t(d) > 0 ? (l(), h("div", Cn, " +" + S(t(d)), 1)) : _("", !0)
|
|
2077
2088
|
], 512)) : (l(), h("div", wn, [
|
|
2078
2089
|
u("div", {
|
|
2079
2090
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2080
2091
|
style: oe({ backgroundColor: t(y)(m).bgColor })
|
|
2081
2092
|
}, null, 4),
|
|
2082
|
-
u("span", $n,
|
|
2093
|
+
u("span", $n, S(t(y)(m).name), 1)
|
|
2083
2094
|
]))
|
|
2084
2095
|
]),
|
|
2085
2096
|
option: B(({ item: m }) => [
|
|
@@ -2088,7 +2099,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
|
|
|
2088
2099
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2089
2100
|
style: oe({ backgroundColor: m.bgColor })
|
|
2090
2101
|
}, null, 4),
|
|
2091
|
-
u("span", Sn,
|
|
2102
|
+
u("span", Sn, S(m.name), 1)
|
|
2092
2103
|
])
|
|
2093
2104
|
]),
|
|
2094
2105
|
_: 1
|
|
@@ -2136,7 +2147,7 @@ function gl(e, ...s) {
|
|
|
2136
2147
|
s[2]
|
|
2137
2148
|
);
|
|
2138
2149
|
}
|
|
2139
|
-
const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Pn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" },
|
|
2150
|
+
const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Pn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Vn = { class: "relative" }, yl = /* @__PURE__ */ O({
|
|
2140
2151
|
__name: "Dialog",
|
|
2141
2152
|
props: {
|
|
2142
2153
|
open: { type: Boolean },
|
|
@@ -2216,11 +2227,11 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2216
2227
|
])
|
|
2217
2228
|
}, {
|
|
2218
2229
|
default: B(() => [
|
|
2219
|
-
u("div",
|
|
2230
|
+
u("div", Vn, [
|
|
2220
2231
|
R(i.$slots, "default", {}, () => [
|
|
2221
2232
|
T("Put your content here!")
|
|
2222
2233
|
]),
|
|
2223
|
-
e.hideCloser ?
|
|
2234
|
+
e.hideCloser ? _("", !0) : (l(), h("button", {
|
|
2224
2235
|
key: 0,
|
|
2225
2236
|
class: "absolute top-0 right-0 text-foreground",
|
|
2226
2237
|
onClick: y[0] || (y[0] = (f) => o.value = !1)
|
|
@@ -2243,7 +2254,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2243
2254
|
_: 3
|
|
2244
2255
|
}, 8, ["show"]));
|
|
2245
2256
|
}
|
|
2246
|
-
}),
|
|
2257
|
+
}), jn = { class: "inline-flex items-center space-x-2" }, On = { class: "label-light" }, vl = /* @__PURE__ */ O({
|
|
2247
2258
|
__name: "Disclosure",
|
|
2248
2259
|
props: {
|
|
2249
2260
|
title: null,
|
|
@@ -2288,14 +2299,14 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2288
2299
|
class: v(t(n))
|
|
2289
2300
|
}, {
|
|
2290
2301
|
default: B(() => [
|
|
2291
|
-
u("div",
|
|
2292
|
-
e.icon ? (l(), P(
|
|
2302
|
+
u("div", jn, [
|
|
2303
|
+
e.icon ? (l(), P(U(e.icon), {
|
|
2293
2304
|
key: 0,
|
|
2294
2305
|
class: "h-4 w-4"
|
|
2295
|
-
})) :
|
|
2296
|
-
u("span", null,
|
|
2306
|
+
})) : _("", !0),
|
|
2307
|
+
u("span", null, S(e.title), 1)
|
|
2297
2308
|
]),
|
|
2298
|
-
I(t(
|
|
2309
|
+
I(t(Ve), {
|
|
2299
2310
|
class: v([d ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2300
2311
|
}, null, 8, ["class"])
|
|
2301
2312
|
]),
|
|
@@ -2341,7 +2352,7 @@ const bl = /* @__PURE__ */ O({
|
|
|
2341
2352
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2342
2353
|
onClick: r
|
|
2343
2354
|
}, [
|
|
2344
|
-
(l(), P(
|
|
2355
|
+
(l(), P(U(t(a)), { class: "h-6 w-6" }))
|
|
2345
2356
|
]));
|
|
2346
2357
|
}
|
|
2347
2358
|
});
|
|
@@ -2411,8 +2422,8 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2411
2422
|
get: () => n.open || !1,
|
|
2412
2423
|
set: (m) => s("update:open", m)
|
|
2413
2424
|
}), y = (m) => {
|
|
2414
|
-
const { active: b, disabled:
|
|
2415
|
-
return b ?
|
|
2425
|
+
const { active: b, disabled: V } = m, L = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2426
|
+
return b ? L.push("bg-primary text-foreground-on-primary") : V ? L.push("text-foreground-disabled") : L.push("text-foreground"), L.join(" ");
|
|
2416
2427
|
}, f = (m, b) => {
|
|
2417
2428
|
s("chosen", { item: m, event: b });
|
|
2418
2429
|
}, w = () => {
|
|
@@ -2430,7 +2441,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2430
2441
|
as: "div",
|
|
2431
2442
|
class: "relative inline-block"
|
|
2432
2443
|
}, {
|
|
2433
|
-
default: B(({ open:
|
|
2444
|
+
default: B(({ open: V }) => [
|
|
2434
2445
|
u("div", null, [
|
|
2435
2446
|
I(t(_t), {
|
|
2436
2447
|
ref_key: "menuButton",
|
|
@@ -2440,15 +2451,15 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2440
2451
|
}, ["stop", "prevent"]))
|
|
2441
2452
|
}, null, 512),
|
|
2442
2453
|
u("div", {
|
|
2443
|
-
class: v(
|
|
2454
|
+
class: v(V ? "pointer-events-none" : "")
|
|
2444
2455
|
}, [
|
|
2445
2456
|
R(m.$slots, "default", {
|
|
2446
2457
|
toggle: w,
|
|
2447
|
-
open: g(
|
|
2458
|
+
open: g(V)
|
|
2448
2459
|
})
|
|
2449
2460
|
], 2)
|
|
2450
2461
|
]),
|
|
2451
|
-
I(
|
|
2462
|
+
I(de, {
|
|
2452
2463
|
"enter-active-class": "transition duration-100 ease-out",
|
|
2453
2464
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
2454
2465
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -2466,21 +2477,21 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2466
2477
|
])
|
|
2467
2478
|
}, {
|
|
2468
2479
|
default: B(() => [
|
|
2469
|
-
(l(!0), h(
|
|
2470
|
-
key:
|
|
2480
|
+
(l(!0), h(q, null, H(e.items, (L, $) => (l(), h("div", {
|
|
2481
|
+
key: $,
|
|
2471
2482
|
class: "px-1 py-1"
|
|
2472
2483
|
}, [
|
|
2473
|
-
(l(!0), h(
|
|
2474
|
-
key:
|
|
2475
|
-
disabled:
|
|
2484
|
+
(l(!0), h(q, null, H(L, (C) => (l(), P(t(It), {
|
|
2485
|
+
key: C.id,
|
|
2486
|
+
disabled: C.disabled
|
|
2476
2487
|
}, {
|
|
2477
|
-
default: B(({ active:
|
|
2488
|
+
default: B(({ active: x, disabled: E }) => [
|
|
2478
2489
|
u("button", {
|
|
2479
|
-
class: v(y({ active:
|
|
2480
|
-
onClick: (p) => f(
|
|
2490
|
+
class: v(y({ active: x, disabled: E })),
|
|
2491
|
+
onClick: (p) => f(C, p)
|
|
2481
2492
|
}, [
|
|
2482
|
-
R(m.$slots, "item", { item:
|
|
2483
|
-
T(
|
|
2493
|
+
R(m.$slots, "item", { item: C }, () => [
|
|
2494
|
+
T(S(C.title), 1)
|
|
2484
2495
|
])
|
|
2485
2496
|
], 10, Rn)
|
|
2486
2497
|
]),
|
|
@@ -2497,7 +2508,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2497
2508
|
_: 3
|
|
2498
2509
|
}));
|
|
2499
2510
|
}
|
|
2500
|
-
}), Tn = { class: "flex flex-col space-y-4" },
|
|
2511
|
+
}), Tn = { class: "flex flex-col space-y-4" }, zn = { class: "flex space-x-6" }, Cl = /* @__PURE__ */ O({
|
|
2501
2512
|
__name: "Tabs",
|
|
2502
2513
|
props: {
|
|
2503
2514
|
items: null
|
|
@@ -2507,15 +2518,15 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2507
2518
|
n.value = r.id;
|
|
2508
2519
|
};
|
|
2509
2520
|
return (r, d) => (l(), h("div", Tn, [
|
|
2510
|
-
u("div",
|
|
2511
|
-
(l(!0), h(
|
|
2521
|
+
u("div", zn, [
|
|
2522
|
+
(l(!0), h(q, null, H(e.items, (i) => (l(), P(ge, {
|
|
2512
2523
|
key: i.id,
|
|
2513
2524
|
link: "",
|
|
2514
2525
|
color: t(o).id === i.id ? "default" : "secondary",
|
|
2515
2526
|
onClick: (y) => a(i)
|
|
2516
2527
|
}, {
|
|
2517
2528
|
default: B(() => [
|
|
2518
|
-
T(
|
|
2529
|
+
T(S(i.title), 1)
|
|
2519
2530
|
]),
|
|
2520
2531
|
_: 2
|
|
2521
2532
|
}, 1032, ["color", "onClick"]))), 128))
|
|
@@ -2523,7 +2534,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2523
2534
|
R(r.$slots, "default", { activeItem: t(o) })
|
|
2524
2535
|
]));
|
|
2525
2536
|
}
|
|
2526
|
-
}),
|
|
2537
|
+
}), Fn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, En = { class: "inline-flex items-center space-x-1" }, Wn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Un = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, qn = { class: "inline-flex items-center space-x-1" }, Hn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), wl = /* @__PURE__ */ O({
|
|
2527
2538
|
__name: "InfiniteLoading",
|
|
2528
2539
|
props: {
|
|
2529
2540
|
settings: null,
|
|
@@ -2551,7 +2562,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2551
2562
|
})
|
|
2552
2563
|
]),
|
|
2553
2564
|
complete: B(() => [
|
|
2554
|
-
u("div",
|
|
2565
|
+
u("div", Fn, [
|
|
2555
2566
|
u("div", En, [
|
|
2556
2567
|
I(t(tt), { class: "w-5 h-5 text-success" }),
|
|
2557
2568
|
Wn
|
|
@@ -2572,11 +2583,11 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2572
2583
|
T("Retry")
|
|
2573
2584
|
]),
|
|
2574
2585
|
_: 2
|
|
2575
|
-
}, 1032, ["onClick"])) :
|
|
2586
|
+
}, 1032, ["onClick"])) : _("", !0)
|
|
2576
2587
|
])
|
|
2577
2588
|
]),
|
|
2578
2589
|
_: 1
|
|
2579
|
-
}, 16)) :
|
|
2590
|
+
}, 16)) : _("", !0)
|
|
2580
2591
|
], 512));
|
|
2581
2592
|
}
|
|
2582
2593
|
}), Gn = { class: "relative group" }, Kn = {
|
|
@@ -2626,8 +2637,8 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2626
2637
|
return n.noShadow || d.push("shadow"), n.ring && d.push("ring-outline-2 hover:ring-2"), d.join(" ");
|
|
2627
2638
|
});
|
|
2628
2639
|
return (d, i) => (l(), h("div", Gn, [
|
|
2629
|
-
e.fancyGlow ? (l(), h("div", Kn)) :
|
|
2630
|
-
(l(), P(
|
|
2640
|
+
e.fancyGlow ? (l(), h("div", Kn)) : _("", !0),
|
|
2641
|
+
(l(), P(U(e.form ? "form" : "div"), {
|
|
2631
2642
|
class: v([
|
|
2632
2643
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2633
2644
|
t(r)
|
|
@@ -2640,7 +2651,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2640
2651
|
class: v(t(o))
|
|
2641
2652
|
}, [
|
|
2642
2653
|
R(d.$slots, "header")
|
|
2643
|
-
], 2)) :
|
|
2654
|
+
], 2)) : _("", !0),
|
|
2644
2655
|
u("div", {
|
|
2645
2656
|
class: v(["grow", t(a)])
|
|
2646
2657
|
}, [
|
|
@@ -2651,7 +2662,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
|
|
|
2651
2662
|
class: v(t(o))
|
|
2652
2663
|
}, [
|
|
2653
2664
|
R(d.$slots, "footer")
|
|
2654
|
-
], 2)) :
|
|
2665
|
+
], 2)) : _("", !0)
|
|
2655
2666
|
]),
|
|
2656
2667
|
_: 3
|
|
2657
2668
|
}, 40, ["class"]))
|
|
@@ -2663,13 +2674,13 @@ export {
|
|
|
2663
2674
|
De as CommonLoadingBar,
|
|
2664
2675
|
il as CommonStepsBullet,
|
|
2665
2676
|
rl as CommonStepsNumber,
|
|
2666
|
-
|
|
2677
|
+
jt as CommonTextLink,
|
|
2667
2678
|
ge as FormButton,
|
|
2668
2679
|
ul as FormCardButton,
|
|
2669
|
-
|
|
2680
|
+
dl as FormCheckbox,
|
|
2670
2681
|
xn as FormSelectBase,
|
|
2671
2682
|
hl as FormSelectSourceApps,
|
|
2672
|
-
|
|
2683
|
+
cl as FormTextArea,
|
|
2673
2684
|
fl as FormTextInput,
|
|
2674
2685
|
ol as GlobalToastRenderer,
|
|
2675
2686
|
K as GridListToggleValue,
|