@speckle/ui-components 2.18.1 → 2.18.2
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.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +466 -459
- package/dist/lib.js.map +1 -1
- package/package.json +4 -4
package/dist/lib.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bt = Object.defineProperty;
|
|
2
2
|
var Vt = (e, t, r) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var se = (e, t, r) => (Vt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as _, resolveDynamicComponent as Q, computed as c, openBlock as a, createBlock as L, normalizeClass as b, withCtx as M, createCommentVNode as I, renderSlot as D, createTextVNode as R, createElementBlock as m, createElementVNode as f, createVNode as z, Transition as Ee, unref as l, toDisplayString as V, toRefs as le, Fragment as K, renderList as G, ref as O, onMounted as ae, onBeforeUnmount as Ue, normalizeStyle as ne, mergeProps as ie, withDirectives as be, isRef as Be, vModelText as qe, useSlots as We, vModelDynamic as zt, pushScopeId as Ot, popScopeId as Lt, watch as fe, Teleport as Mt, withModifiers as pe, useModel as it, toHandlers as st, nextTick as At, getCurrentInstance as Pt, inject as _t, withKeys as ve, mergeModels as nt, defineAsyncComponent as jt } from "vue";
|
|
5
5
|
import { isObjectLike as je, clamp as lt, isArray as N, isString as Se, isUndefined as ge, debounce as He, throttle as ut, noop as Tt, uniq as Ft, intersection as Rt, difference as Dt } from "lodash";
|
|
6
6
|
import { ArrowPathIcon as ct, ExclamationCircleIcon as Et, ChevronUpIcon as dt, ChevronDownIcon as Ut, XMarkIcon as Ke, MagnifyingGlassIcon as qt, CheckIcon as ft, Squares2X2Icon as Wt, Bars3Icon as Ht, UserCircleIcon as Kt } from "@heroicons/vue/24/solid";
|
|
7
7
|
import { CheckCircleIcon as Gt, XCircleIcon as Xt, ExclamationCircleIcon as Zt, InformationCircleIcon as Nt, ClipboardDocumentCheckIcon as Qt, ClipboardDocumentIcon as Jt, XMarkIcon as Yt, ChevronDownIcon as es, CheckIcon as ts, ExclamationTriangleIcon as ss } from "@heroicons/vue/24/outline";
|
|
@@ -10,10 +10,10 @@ import { wait as rs, isNullOrUndefined as is, SourceApps as us, getClientOperati
|
|
|
10
10
|
import { useField as Ie } from "vee-validate";
|
|
11
11
|
import { nanoid as ze } from "nanoid";
|
|
12
12
|
import { useResizeObserver as fs, useMutationObserver as ps, useMounted as ms, useElementBounding as hs, useIntersectionObserver as vs, useClipboard as gs, onKeyDown as bs, isClient as Ge, computedAsync as ys, useFocus as xs, useDropZone as ks } from "@vueuse/core";
|
|
13
|
-
import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as ht, Dialog as Vs, TransitionChild as at, DialogPanel as zs, Disclosure as Os, DisclosureButton as Ls, DisclosurePanel as Ms, Menu as As, MenuButton as
|
|
13
|
+
import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as ht, Dialog as Vs, TransitionChild as at, DialogPanel as zs, Disclosure as Os, DisclosureButton as Ls, DisclosurePanel as Ms, Menu as As, MenuButton as Ps, MenuItems as _s, MenuItem as js, Combobox as Ts, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
|
|
14
14
|
import { directive as vt } from "vue-tippy";
|
|
15
15
|
import Ds from "v3-infinite-loading";
|
|
16
|
-
const Es = /* @__PURE__ */
|
|
16
|
+
const Es = /* @__PURE__ */ _({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -144,7 +144,7 @@ const Es = /* @__PURE__ */ P({
|
|
|
144
144
|
const r = t, s = e, o = Q("NuxtLink"), n = Q("RouterLink"), d = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : je(o) ? o : je(n) ? n : "a"), h = c(() => {
|
|
145
145
|
if (!s.to)
|
|
146
146
|
return s.submit ? "submit" : "button";
|
|
147
|
-
}), i = c(() => s.disabled || s.loading),
|
|
147
|
+
}), i = c(() => s.disabled || s.loading), p = c(() => s.loading ? ct : s.iconLeft), x = c(() => {
|
|
148
148
|
const w = [];
|
|
149
149
|
if (w.push("border-2"), i.value)
|
|
150
150
|
w.push(
|
|
@@ -357,7 +357,7 @@ const Es = /* @__PURE__ */ P({
|
|
|
357
357
|
onClick: A
|
|
358
358
|
}, {
|
|
359
359
|
default: M(() => [
|
|
360
|
-
|
|
360
|
+
p.value ? (a(), L(Q(p.value), {
|
|
361
361
|
key: 0,
|
|
362
362
|
class: b(`${T.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
363
|
}, null, 8, ["class"])) : I("", !0),
|
|
@@ -378,7 +378,7 @@ const Oe = (e, t) => {
|
|
|
378
378
|
for (const [s, o] of t)
|
|
379
379
|
r[s] = o;
|
|
380
380
|
return r;
|
|
381
|
-
}, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-8c1638d3"]]), Us = /* @__PURE__ */
|
|
381
|
+
}, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-8c1638d3"]]), Us = /* @__PURE__ */ _({
|
|
382
382
|
__name: "Link",
|
|
383
383
|
props: {
|
|
384
384
|
to: {
|
|
@@ -473,7 +473,7 @@ const qs = {
|
|
|
473
473
|
}, Js = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "flex justify-start mt-2"
|
|
476
|
-
}, Ys = /* @__PURE__ */
|
|
476
|
+
}, Ys = /* @__PURE__ */ f("span", { class: "sr-only" }, "Close", -1), Bo = /* @__PURE__ */ _({
|
|
477
477
|
__name: "ToastRenderer",
|
|
478
478
|
props: {
|
|
479
479
|
notification: null
|
|
@@ -488,11 +488,11 @@ const qs = {
|
|
|
488
488
|
), n = () => {
|
|
489
489
|
r("update:notification", null);
|
|
490
490
|
}, d = (h) => {
|
|
491
|
-
var i,
|
|
492
|
-
(x = (
|
|
491
|
+
var i, p, x;
|
|
492
|
+
(x = (p = (i = s.notification) == null ? void 0 : i.cta) == null ? void 0 : p.onClick) == null || x.call(p, h), n();
|
|
493
493
|
};
|
|
494
494
|
return (h, i) => (a(), m("div", qs, [
|
|
495
|
-
|
|
495
|
+
f("div", Ws, [
|
|
496
496
|
z(Ee, {
|
|
497
497
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
498
498
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
@@ -503,9 +503,9 @@ const qs = {
|
|
|
503
503
|
}, {
|
|
504
504
|
default: M(() => [
|
|
505
505
|
e.notification ? (a(), m("div", Hs, [
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
f("div", Ks, [
|
|
507
|
+
f("div", Gs, [
|
|
508
|
+
f("div", Xs, [
|
|
509
509
|
e.notification.type === l(we).Success ? (a(), L(l(Gt), {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "h-6 w-6 text-success",
|
|
@@ -524,7 +524,7 @@ const qs = {
|
|
|
524
524
|
"aria-hidden": "true"
|
|
525
525
|
})) : I("", !0)
|
|
526
526
|
]),
|
|
527
|
-
|
|
527
|
+
f("div", Zs, [
|
|
528
528
|
e.notification.title ? (a(), m("p", Ns, V(e.notification.title), 1)) : I("", !0),
|
|
529
529
|
e.notification.description ? (a(), m("p", Qs, V(e.notification.description), 1)) : I("", !0),
|
|
530
530
|
e.notification.cta ? (a(), m("div", Js, [
|
|
@@ -541,10 +541,10 @@ const qs = {
|
|
|
541
541
|
}, 8, ["to"])
|
|
542
542
|
])) : I("", !0)
|
|
543
543
|
]),
|
|
544
|
-
|
|
544
|
+
f("div", {
|
|
545
545
|
class: b(["ml-4 flex flex-shrink-0", { "self-center": o.value }])
|
|
546
546
|
}, [
|
|
547
|
-
|
|
547
|
+
f("button", {
|
|
548
548
|
type: "button",
|
|
549
549
|
class: "inline-flex rounded-md bg-foundation text-foreground-2 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
550
550
|
onClick: n
|
|
@@ -571,13 +571,13 @@ function gt(e) {
|
|
|
571
571
|
t.code === en && e(t);
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
const tn = /* @__PURE__ */
|
|
574
|
+
const tn = /* @__PURE__ */ f("circle", {
|
|
575
575
|
cx: "4",
|
|
576
576
|
cy: "4",
|
|
577
577
|
r: "3"
|
|
578
578
|
}, null, -1), sn = [
|
|
579
579
|
tn
|
|
580
|
-
], Xe = /* @__PURE__ */
|
|
580
|
+
], Xe = /* @__PURE__ */ _({
|
|
581
581
|
__name: "Badge",
|
|
582
582
|
props: {
|
|
583
583
|
size: null,
|
|
@@ -613,7 +613,7 @@ const tn = /* @__PURE__ */ p("circle", {
|
|
|
613
613
|
}), i = c(() => [
|
|
614
614
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
615
615
|
n.value
|
|
616
|
-
].join(" ")),
|
|
616
|
+
].join(" ")), p = (x) => {
|
|
617
617
|
if (!s.clickableIcon) {
|
|
618
618
|
x.stopPropagation(), x.stopImmediatePropagation(), x.preventDefault();
|
|
619
619
|
return;
|
|
@@ -635,7 +635,7 @@ const tn = /* @__PURE__ */ p("circle", {
|
|
|
635
635
|
e.iconLeft ? (a(), m("button", {
|
|
636
636
|
key: 1,
|
|
637
637
|
class: b(h.value),
|
|
638
|
-
onClick: y[0] || (y[0] = (v) =>
|
|
638
|
+
onClick: y[0] || (y[0] = (v) => p(v))
|
|
639
639
|
}, [
|
|
640
640
|
(a(), L(Q(e.iconLeft), {
|
|
641
641
|
class: b(["h-4 w-4", n.value])
|
|
@@ -662,17 +662,17 @@ function bt(e) {
|
|
|
662
662
|
emit: h
|
|
663
663
|
} = e, i = c(
|
|
664
664
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
665
|
-
),
|
|
665
|
+
), p = c({
|
|
666
666
|
get: () => lt((t == null ? void 0 : t.value) || 0, -1, r.value.length),
|
|
667
667
|
set: (k) => h("update:modelValue", lt(k, 0, r.value.length))
|
|
668
|
-
}), x = (k) => `${k + 1}`, y = (k) => k ===
|
|
668
|
+
}), x = (k) => `${k + 1}`, y = (k) => k === p.value, v = (k) => k < p.value, g = (k, $) => {
|
|
669
669
|
var T;
|
|
670
670
|
if (n != null && n.value) {
|
|
671
671
|
$ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
|
-
|
|
675
|
-
const B = r.value[
|
|
674
|
+
p.value = k;
|
|
675
|
+
const B = r.value[p.value];
|
|
676
676
|
(T = B == null ? void 0 : B.onClick) == null || T.call(B);
|
|
677
677
|
}, u = c(() => {
|
|
678
678
|
const k = ["flex"];
|
|
@@ -691,7 +691,7 @@ function bt(e) {
|
|
|
691
691
|
return n != null && n.value || k.push("cursor-pointer"), k.join(" ");
|
|
692
692
|
});
|
|
693
693
|
return {
|
|
694
|
-
value:
|
|
694
|
+
value: p,
|
|
695
695
|
isCurrentStep: y,
|
|
696
696
|
isFinishedStep: v,
|
|
697
697
|
switchStep: g,
|
|
@@ -724,7 +724,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
724
724
|
}, vn = ["href", "onClick"], gn = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, bn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, yn = { class: "flex flex-col" }, xn = {
|
|
725
725
|
key: 0,
|
|
726
726
|
class: "label label--light"
|
|
727
|
-
},
|
|
727
|
+
}, Vo = /* @__PURE__ */ _({
|
|
728
728
|
__name: "Number",
|
|
729
729
|
props: {
|
|
730
730
|
ariaLabel: null,
|
|
@@ -743,7 +743,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
743
743
|
switchStep: d,
|
|
744
744
|
getStepDisplayValue: h,
|
|
745
745
|
listClasses: i,
|
|
746
|
-
linkClasses:
|
|
746
|
+
linkClasses: p
|
|
747
747
|
} = bt({
|
|
748
748
|
props: le(s),
|
|
749
749
|
emit: r
|
|
@@ -752,7 +752,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
752
752
|
class: "flex justify-center",
|
|
753
753
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
754
754
|
}, [
|
|
755
|
-
|
|
755
|
+
f("ol", {
|
|
756
756
|
class: b(l(i))
|
|
757
757
|
}, [
|
|
758
758
|
(a(!0), m(K, null, G(e.steps, (v, g) => (a(), m("li", {
|
|
@@ -761,42 +761,42 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
761
761
|
l(n)(g) ? (a(), m("a", {
|
|
762
762
|
key: 0,
|
|
763
763
|
href: v.href,
|
|
764
|
-
class: b(l(
|
|
764
|
+
class: b(l(p)),
|
|
765
765
|
onClick: (u) => l(d)(g, u)
|
|
766
766
|
}, [
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
f("div", on, [
|
|
768
|
+
f("div", rn, [
|
|
769
769
|
z(l(pt), { class: "w-5 h-5" })
|
|
770
770
|
]),
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
f("div", un, [
|
|
772
|
+
f("div", null, V(v.name), 1),
|
|
773
773
|
v.description ? (a(), m("div", cn, V(v.description), 1)) : I("", !0)
|
|
774
774
|
])
|
|
775
775
|
])
|
|
776
776
|
], 10, an)) : l(o)(g) ? (a(), m("a", {
|
|
777
777
|
key: 1,
|
|
778
778
|
href: v.href,
|
|
779
|
-
class: b(l(
|
|
779
|
+
class: b(l(p)),
|
|
780
780
|
"aria-current": "step",
|
|
781
781
|
onClick: (u) => l(d)(g, u)
|
|
782
782
|
}, [
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
783
|
+
f("div", fn, [
|
|
784
|
+
f("div", pn, V(l(h)(g)), 1),
|
|
785
|
+
f("div", mn, [
|
|
786
|
+
f("div", null, V(v.name), 1),
|
|
787
787
|
v.description ? (a(), m("div", hn, V(v.description), 1)) : I("", !0)
|
|
788
788
|
])
|
|
789
789
|
])
|
|
790
790
|
], 10, dn)) : (a(), m("a", {
|
|
791
791
|
key: 2,
|
|
792
792
|
href: v.href,
|
|
793
|
-
class: b(l(
|
|
793
|
+
class: b(l(p)),
|
|
794
794
|
onClick: (u) => l(d)(g, u)
|
|
795
795
|
}, [
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
796
|
+
f("div", gn, [
|
|
797
|
+
f("div", bn, V(l(h)(g)), 1),
|
|
798
|
+
f("div", yn, [
|
|
799
|
+
f("div", null, V(v.name), 1),
|
|
800
800
|
v.description ? (a(), m("div", xn, V(v.description), 1)) : I("", !0)
|
|
801
801
|
])
|
|
802
802
|
])
|
|
@@ -814,7 +814,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
814
814
|
}, Bn = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
817
|
-
}, Vn = /* @__PURE__ */
|
|
817
|
+
}, Vn = /* @__PURE__ */ f("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), zn = /* @__PURE__ */ f("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), On = ["href", "onClick"], Ln = {
|
|
818
818
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
819
819
|
"aria-hidden": "true"
|
|
820
820
|
}, Mn = {
|
|
@@ -823,7 +823,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
823
823
|
}, An = {
|
|
824
824
|
key: 1,
|
|
825
825
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
826
|
-
},
|
|
826
|
+
}, zo = /* @__PURE__ */ _({
|
|
827
827
|
__name: "Bullet",
|
|
828
828
|
props: {
|
|
829
829
|
ariaLabel: null,
|
|
@@ -840,7 +840,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
840
840
|
const r = t, s = e, { isCurrentStep: o, isFinishedStep: n, switchStep: d, listClasses: h, linkClasses: i } = bt({
|
|
841
841
|
props: le(s),
|
|
842
842
|
emit: r
|
|
843
|
-
}),
|
|
843
|
+
}), p = c(() => {
|
|
844
844
|
const y = ["h6 font-medium leading-7"];
|
|
845
845
|
let v;
|
|
846
846
|
return s.stepsPadding === "xs" ? v = "ml-1" : s.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", y.push(v), s.basic && y.push("sr-only"), y.join(" ");
|
|
@@ -852,7 +852,7 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
852
852
|
class: "flex justify-center",
|
|
853
853
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
854
854
|
}, [
|
|
855
|
-
|
|
855
|
+
f("ol", {
|
|
856
856
|
class: b([l(h), x.value])
|
|
857
857
|
}, [
|
|
858
858
|
(a(!0), m(K, null, G(e.steps, (g, u) => (a(), m("li", {
|
|
@@ -864,15 +864,15 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
864
864
|
class: b(l(i)),
|
|
865
865
|
onClick: (S) => l(d)(u, S)
|
|
866
866
|
}, [
|
|
867
|
-
|
|
867
|
+
f("span", Cn, [
|
|
868
868
|
e.basic ? (a(), m("span", $n)) : (a(), L(l(mt), {
|
|
869
869
|
key: 1,
|
|
870
870
|
class: "h-full w-full text-primary",
|
|
871
871
|
"aria-hidden": "true"
|
|
872
872
|
}))
|
|
873
873
|
]),
|
|
874
|
-
|
|
875
|
-
class: b(["text-foreground",
|
|
874
|
+
f("span", {
|
|
875
|
+
class: b(["text-foreground", p.value])
|
|
876
876
|
}, V(g.name), 3)
|
|
877
877
|
], 10, wn)) : l(o)(u) ? (a(), m("a", {
|
|
878
878
|
key: 1,
|
|
@@ -881,14 +881,14 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
881
881
|
"aria-current": "step",
|
|
882
882
|
onClick: (S) => l(d)(u, S)
|
|
883
883
|
}, [
|
|
884
|
-
|
|
884
|
+
f("span", Sn, [
|
|
885
885
|
e.basic ? (a(), m("span", Bn)) : (a(), m(K, { key: 1 }, [
|
|
886
886
|
Vn,
|
|
887
887
|
zn
|
|
888
888
|
], 64))
|
|
889
889
|
]),
|
|
890
|
-
|
|
891
|
-
class: b(["text-primary-focus",
|
|
890
|
+
f("span", {
|
|
891
|
+
class: b(["text-primary-focus", p.value])
|
|
892
892
|
}, V(g.name), 3)
|
|
893
893
|
], 10, In)) : (a(), m("a", {
|
|
894
894
|
key: 2,
|
|
@@ -896,18 +896,18 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
896
896
|
class: b(l(i)),
|
|
897
897
|
onClick: (S) => l(d)(u, S)
|
|
898
898
|
}, [
|
|
899
|
-
|
|
899
|
+
f("div", Ln, [
|
|
900
900
|
e.basic ? (a(), m("span", Mn)) : (a(), m("div", An))
|
|
901
901
|
]),
|
|
902
|
-
|
|
903
|
-
class: b(["text-foreground-disabled",
|
|
902
|
+
f("p", {
|
|
903
|
+
class: b(["text-foreground-disabled", p.value])
|
|
904
904
|
}, V(g.name), 3)
|
|
905
905
|
], 10, On))
|
|
906
906
|
]))), 128))
|
|
907
907
|
], 2)
|
|
908
908
|
], 8, kn));
|
|
909
909
|
}
|
|
910
|
-
}),
|
|
910
|
+
}), Pn = {}, _n = {
|
|
911
911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
912
912
|
class: "icon icon-tabler icon-tabler-pointer",
|
|
913
913
|
width: "44",
|
|
@@ -918,22 +918,22 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
918
918
|
fill: "rgba(255,255,255,0.8)",
|
|
919
919
|
"stroke-linecap": "round",
|
|
920
920
|
"stroke-linejoin": "round"
|
|
921
|
-
}, jn = /* @__PURE__ */
|
|
921
|
+
}, jn = /* @__PURE__ */ f("path", {
|
|
922
922
|
stroke: "none",
|
|
923
923
|
d: "M0 0h24v24H0z",
|
|
924
924
|
fill: "none"
|
|
925
|
-
}, null, -1), Tn = /* @__PURE__ */
|
|
925
|
+
}, null, -1), Tn = /* @__PURE__ */ f("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Fn = [
|
|
926
926
|
jn,
|
|
927
927
|
Tn
|
|
928
928
|
];
|
|
929
929
|
function Rn(e, t) {
|
|
930
|
-
return a(), m("svg",
|
|
930
|
+
return a(), m("svg", _n, Fn);
|
|
931
931
|
}
|
|
932
|
-
const Dn = /* @__PURE__ */ Oe(
|
|
932
|
+
const Dn = /* @__PURE__ */ Oe(Pn, [["render", Rn]]), En = {}, Un = {
|
|
933
933
|
viewBox: "0 0 18 17",
|
|
934
934
|
fill: "none",
|
|
935
935
|
xmlns: "http://www.w3.org/2000/svg"
|
|
936
|
-
}, qn = /* @__PURE__ */
|
|
936
|
+
}, qn = /* @__PURE__ */ f("path", {
|
|
937
937
|
d: "M9 1.25V3.5M14.834 3.666L13.243 5.257M17.25 9.5H15M4.757 13.743L3.167 15.333M3 9.5H0.75M4.757 5.257L3.167 3.667",
|
|
938
938
|
stroke: "currentColor",
|
|
939
939
|
"stroke-width": "1",
|
|
@@ -945,7 +945,7 @@ const Dn = /* @__PURE__ */ Oe(_n, [["render", Rn]]), En = {}, Un = {
|
|
|
945
945
|
function Hn(e, t) {
|
|
946
946
|
return a(), m("svg", Un, Wn);
|
|
947
947
|
}
|
|
948
|
-
const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Xn = { class: "w-full h-full overflow-hidden" },
|
|
948
|
+
const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Xn = { class: "w-full h-full overflow-hidden" }, Oo = /* @__PURE__ */ _({
|
|
949
949
|
__name: "Instructional",
|
|
950
950
|
props: {
|
|
951
951
|
actions: Array,
|
|
@@ -959,7 +959,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
959
959
|
async function i(y) {
|
|
960
960
|
await rs(y.duration);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function p(y) {
|
|
963
963
|
const v = h.value.find((g) => g.name === y.slot);
|
|
964
964
|
v && (v.visible = !v.visible);
|
|
965
965
|
}
|
|
@@ -974,7 +974,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
974
974
|
case "delay":
|
|
975
975
|
return i(y);
|
|
976
976
|
case "slot":
|
|
977
|
-
|
|
977
|
+
p(y);
|
|
978
978
|
break;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
@@ -990,7 +990,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
990
990
|
}), Ue(() => {
|
|
991
991
|
r.value = !1;
|
|
992
992
|
}), (y, v) => (a(), m("div", Gn, [
|
|
993
|
-
|
|
993
|
+
f("div", {
|
|
994
994
|
class: "absolute z-50 text-foreground dark:text-foundation",
|
|
995
995
|
style: ne({
|
|
996
996
|
transitionProperty: "all",
|
|
@@ -1004,7 +1004,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1004
1004
|
}, null, 8, ["class"]),
|
|
1005
1005
|
z(Dn, { class: "absolute inset-0 h-11 w-11" })
|
|
1006
1006
|
], 4),
|
|
1007
|
-
|
|
1007
|
+
f("div", Xn, [
|
|
1008
1008
|
D(y.$slots, "background"),
|
|
1009
1009
|
(a(!0), m(K, null, G(h.value, (g) => (a(), m(K, {
|
|
1010
1010
|
key: g.name
|
|
@@ -1014,7 +1014,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1014
1014
|
])
|
|
1015
1015
|
]));
|
|
1016
1016
|
}
|
|
1017
|
-
}), Zn = ["disabled"],
|
|
1017
|
+
}), Zn = ["disabled"], Lo = /* @__PURE__ */ _({
|
|
1018
1018
|
__name: "CardButton",
|
|
1019
1019
|
props: {
|
|
1020
1020
|
disabled: { type: Boolean },
|
|
@@ -1053,7 +1053,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1053
1053
|
}, el = ["for"], tl = {
|
|
1054
1054
|
key: 0,
|
|
1055
1055
|
class: "text-danger ml-1"
|
|
1056
|
-
}, sl = ["id"],
|
|
1056
|
+
}, sl = ["id"], Mo = /* @__PURE__ */ _({
|
|
1057
1057
|
inheritAttrs: !1,
|
|
1058
1058
|
__name: "Checkbox",
|
|
1059
1059
|
props: {
|
|
@@ -1152,7 +1152,7 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1152
1152
|
type: "checkbox",
|
|
1153
1153
|
checkedValue: s,
|
|
1154
1154
|
initialValue: t.modelValue || void 0
|
|
1155
|
-
}), i = c(() => t.label || t.name),
|
|
1155
|
+
}), i = c(() => t.label || t.name), p = c(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), x = c(() => t.description || n.value), y = c(() => `${t.name}-description`), v = c(() => {
|
|
1156
1156
|
const k = [];
|
|
1157
1157
|
return t.inlineDescription ? k.push("inline ml-2") : k.push("block"), n.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
|
|
1158
1158
|
}), g = O(r("checkbox")), u = c(() => t.id || g.value), S = (k) => {
|
|
@@ -1162,8 +1162,8 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1162
1162
|
const k = t.modelValue, $ = h.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
|
|
1163
1163
|
B !== T && d(k);
|
|
1164
1164
|
}), (k, $) => (a(), m("div", Nn, [
|
|
1165
|
-
|
|
1166
|
-
|
|
1165
|
+
f("div", Qn, [
|
|
1166
|
+
f("input", ie({
|
|
1167
1167
|
id: u.value,
|
|
1168
1168
|
checked: l(o),
|
|
1169
1169
|
"aria-describedby": y.value,
|
|
@@ -1171,15 +1171,15 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1171
1171
|
disabled: e.disabled,
|
|
1172
1172
|
value: s.value,
|
|
1173
1173
|
type: "checkbox",
|
|
1174
|
-
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1174
|
+
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]
|
|
1175
1175
|
}, k.$attrs, { onChange: S }), null, 16, Jn)
|
|
1176
1176
|
]),
|
|
1177
|
-
|
|
1178
|
-
|
|
1177
|
+
f("div", Yn, [
|
|
1178
|
+
f("label", {
|
|
1179
1179
|
for: u.value,
|
|
1180
1180
|
class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1181
1181
|
}, [
|
|
1182
|
-
|
|
1182
|
+
f("span", null, V(i.value), 1),
|
|
1183
1183
|
e.showRequired ? (a(), m("span", tl, "*")) : I("", !0)
|
|
1184
1184
|
], 10, el),
|
|
1185
1185
|
x.value ? (a(), m("p", {
|
|
@@ -1193,10 +1193,10 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1193
1193
|
}), nl = { class: "flex h-6 items-center" }, ll = ["id", "checked", "aria-describedby", "name", "disabled", "value"], al = ["for"], ol = {
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
class: "text-sm"
|
|
1196
|
-
}, rl = {
|
|
1196
|
+
}, rl = { class: "flex flex-col" }, il = ["id"], ul = {
|
|
1197
1197
|
key: 1,
|
|
1198
1198
|
class: "text-danger ml-1"
|
|
1199
|
-
},
|
|
1199
|
+
}, cl = ["id"], Ao = /* @__PURE__ */ _({
|
|
1200
1200
|
inheritAttrs: !1,
|
|
1201
1201
|
__name: "Radio",
|
|
1202
1202
|
props: {
|
|
@@ -1302,8 +1302,8 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1302
1302
|
type: "radio",
|
|
1303
1303
|
checkedValue: s,
|
|
1304
1304
|
initialValue: t.modelValue || void 0
|
|
1305
|
-
}), i = c(() => t.label || t.name),
|
|
1306
|
-
const k = [];
|
|
1305
|
+
}), i = c(() => t.label || t.name), p = c(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), x = c(() => t.description || n.value), y = c(() => `${t.name}-description`), v = c(() => {
|
|
1306
|
+
const k = ["text-xs"];
|
|
1307
1307
|
return n.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
|
|
1308
1308
|
}), g = O(r("radio")), u = c(() => t.id || g.value), S = (k) => {
|
|
1309
1309
|
t.disabled || d(k);
|
|
@@ -1312,10 +1312,10 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1312
1312
|
const k = t.modelValue, $ = h.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
|
|
1313
1313
|
B !== T && d(k);
|
|
1314
1314
|
}), (k, $) => (a(), m("div", {
|
|
1315
|
-
class: b(["relative flex gap-2 mb-2 last:mb-0", e.description ? "items-start" : "items-center"])
|
|
1315
|
+
class: b(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
|
|
1316
1316
|
}, [
|
|
1317
|
-
|
|
1318
|
-
|
|
1317
|
+
f("div", nl, [
|
|
1318
|
+
f("input", ie({
|
|
1319
1319
|
id: u.value,
|
|
1320
1320
|
checked: l(o),
|
|
1321
1321
|
"aria-describedby": y.value,
|
|
@@ -1323,27 +1323,34 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1323
1323
|
disabled: e.disabled,
|
|
1324
1324
|
value: s.value,
|
|
1325
1325
|
type: "radio",
|
|
1326
|
-
class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1326
|
+
class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
|
|
1327
1327
|
}, k.$attrs, { onChange: S }), null, 16, ll)
|
|
1328
1328
|
]),
|
|
1329
|
-
|
|
1329
|
+
f("div", {
|
|
1330
1330
|
class: b(["text-xs sm:text-sm", e.inlineDescription ? "flex gap-2 items-center" : ""])
|
|
1331
1331
|
}, [
|
|
1332
|
-
|
|
1332
|
+
f("label", {
|
|
1333
1333
|
for: u.value,
|
|
1334
1334
|
class: b(["text-foreground flex gap-2 items-center", { "sr-only": e.hideLabel }])
|
|
1335
1335
|
}, [
|
|
1336
1336
|
e.icon ? (a(), m("div", ol, [
|
|
1337
1337
|
(a(), L(Q(e.icon), { class: "h-8 sm:h-10 w-8 sm:w-10" }))
|
|
1338
1338
|
])) : I("", !0),
|
|
1339
|
-
|
|
1340
|
-
|
|
1339
|
+
f("div", rl, [
|
|
1340
|
+
f("span", null, V(i.value), 1),
|
|
1341
|
+
x.value && !e.inlineDescription ? (a(), m("p", {
|
|
1342
|
+
key: 0,
|
|
1343
|
+
id: y.value,
|
|
1344
|
+
class: b(v.value)
|
|
1345
|
+
}, V(x.value), 11, il)) : I("", !0)
|
|
1346
|
+
]),
|
|
1347
|
+
e.showRequired ? (a(), m("span", ul, "*")) : I("", !0)
|
|
1341
1348
|
], 10, al),
|
|
1342
|
-
x.value ? (a(), m("p", {
|
|
1349
|
+
x.value && e.inlineDescription ? (a(), m("p", {
|
|
1343
1350
|
key: 0,
|
|
1344
1351
|
id: y.value,
|
|
1345
1352
|
class: b(v.value)
|
|
1346
|
-
}, V(x.value), 11,
|
|
1353
|
+
}, V(x.value), 11, cl)) : I("", !0)
|
|
1347
1354
|
], 2)
|
|
1348
1355
|
], 2));
|
|
1349
1356
|
}
|
|
@@ -1360,7 +1367,7 @@ function Ze(e) {
|
|
|
1360
1367
|
"focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
|
|
1361
1368
|
"disabled:text-disabled-muted placeholder:text-foreground-2",
|
|
1362
1369
|
"rounded"
|
|
1363
|
-
].join(" ")),
|
|
1370
|
+
].join(" ")), p = c(() => {
|
|
1364
1371
|
const A = [
|
|
1365
1372
|
"block w-full text-foreground transition-all",
|
|
1366
1373
|
i.value
|
|
@@ -1391,7 +1398,7 @@ function Ze(e) {
|
|
|
1391
1398
|
l(t.autoFocus) && B();
|
|
1392
1399
|
}), {
|
|
1393
1400
|
coreInputClasses: i,
|
|
1394
|
-
coreClasses:
|
|
1401
|
+
coreClasses: p,
|
|
1395
1402
|
title: y,
|
|
1396
1403
|
value: n,
|
|
1397
1404
|
helpTipId: k,
|
|
@@ -1404,7 +1411,7 @@ function Ze(e) {
|
|
|
1404
1411
|
labelClasses: h
|
|
1405
1412
|
};
|
|
1406
1413
|
}
|
|
1407
|
-
const
|
|
1414
|
+
const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], ml = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), hl = ["id"], Po = /* @__PURE__ */ _({
|
|
1408
1415
|
__name: "TextArea",
|
|
1409
1416
|
props: {
|
|
1410
1417
|
name: null,
|
|
@@ -1431,7 +1438,7 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1431
1438
|
coreClasses: d,
|
|
1432
1439
|
title: h,
|
|
1433
1440
|
value: i,
|
|
1434
|
-
helpTipId:
|
|
1441
|
+
helpTipId: p,
|
|
1435
1442
|
helpTipClasses: x,
|
|
1436
1443
|
helpTip: y,
|
|
1437
1444
|
errorMessage: v,
|
|
@@ -1449,14 +1456,14 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1449
1456
|
return t({ focus: S }), ($, B) => (a(), m("div", {
|
|
1450
1457
|
class: b([e.fullWidth ? "w-full" : ""])
|
|
1451
1458
|
}, [
|
|
1452
|
-
|
|
1459
|
+
f("label", {
|
|
1453
1460
|
for: e.name,
|
|
1454
1461
|
class: b(l(g))
|
|
1455
1462
|
}, [
|
|
1456
|
-
|
|
1457
|
-
], 10,
|
|
1458
|
-
|
|
1459
|
-
be(
|
|
1463
|
+
f("span", null, V(l(h)), 1)
|
|
1464
|
+
], 10, dl),
|
|
1465
|
+
f("div", fl, [
|
|
1466
|
+
be(f("textarea", ie({
|
|
1460
1467
|
id: e.name,
|
|
1461
1468
|
ref_key: "inputElement",
|
|
1462
1469
|
ref: n,
|
|
@@ -1471,11 +1478,11 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1471
1478
|
placeholder: e.placeholder,
|
|
1472
1479
|
disabled: e.disabled,
|
|
1473
1480
|
"aria-invalid": l(v) ? "true" : "false",
|
|
1474
|
-
"aria-describedby": l(
|
|
1481
|
+
"aria-describedby": l(p)
|
|
1475
1482
|
}, $.$attrs, {
|
|
1476
1483
|
onChange: B[1] || (B[1] = (T) => $.$emit("change", { event: T, value: l(i) })),
|
|
1477
1484
|
onInput: B[2] || (B[2] = (T) => $.$emit("input", { event: T, value: l(i) }))
|
|
1478
|
-
}), null, 16,
|
|
1485
|
+
}), null, 16, pl), [
|
|
1479
1486
|
[qe, l(i)]
|
|
1480
1487
|
]),
|
|
1481
1488
|
e.showClear ? (a(), m("a", {
|
|
@@ -1487,7 +1494,7 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1487
1494
|
onKeydown: B[4] || (B[4] = //@ts-ignore
|
|
1488
1495
|
(...T) => l(u) && l(u)(...T))
|
|
1489
1496
|
}, [
|
|
1490
|
-
|
|
1497
|
+
ml,
|
|
1491
1498
|
z(l(ye), {
|
|
1492
1499
|
class: "h-5 w-5 text-foreground",
|
|
1493
1500
|
"aria-hidden": "true"
|
|
@@ -1510,17 +1517,17 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1510
1517
|
class: b(["pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1511
1518
|
}, " * ", 2)) : I("", !0)
|
|
1512
1519
|
]),
|
|
1513
|
-
l(
|
|
1520
|
+
l(p) ? (a(), m("p", {
|
|
1514
1521
|
key: 0,
|
|
1515
|
-
id: l(
|
|
1522
|
+
id: l(p),
|
|
1516
1523
|
class: b(l(x))
|
|
1517
|
-
}, V(l(y)), 11,
|
|
1524
|
+
}, V(l(y)), 11, hl)) : I("", !0)
|
|
1518
1525
|
], 2));
|
|
1519
1526
|
}
|
|
1520
|
-
}),
|
|
1527
|
+
}), vl = ["for"], gl = { class: "relative" }, bl = {
|
|
1521
1528
|
key: 0,
|
|
1522
1529
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1523
|
-
},
|
|
1530
|
+
}, yl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], xl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), kl = ["id"], wl = /* @__PURE__ */ _({
|
|
1524
1531
|
inheritAttrs: !1,
|
|
1525
1532
|
__name: "TextInput",
|
|
1526
1533
|
props: {
|
|
@@ -1660,7 +1667,7 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1660
1667
|
const s = e, o = r, n = We(), d = O(null), {
|
|
1661
1668
|
coreClasses: h,
|
|
1662
1669
|
title: i,
|
|
1663
|
-
value:
|
|
1670
|
+
value: p,
|
|
1664
1671
|
helpTipId: x,
|
|
1665
1672
|
helpTipClasses: y,
|
|
1666
1673
|
helpTip: v,
|
|
@@ -1697,14 +1704,14 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1697
1704
|
return t({ focus: k }), (U, q) => (a(), m("div", {
|
|
1698
1705
|
class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1699
1706
|
}, [
|
|
1700
|
-
|
|
1707
|
+
f("label", {
|
|
1701
1708
|
for: e.name,
|
|
1702
1709
|
class: b(l($))
|
|
1703
1710
|
}, [
|
|
1704
|
-
|
|
1705
|
-
], 10,
|
|
1706
|
-
|
|
1707
|
-
T.value ? (a(), m("div",
|
|
1711
|
+
f("span", null, V(l(i)), 1)
|
|
1712
|
+
], 10, vl),
|
|
1713
|
+
f("div", gl, [
|
|
1714
|
+
T.value ? (a(), m("div", bl, [
|
|
1708
1715
|
e.customIcon ? (a(), L(Q(e.customIcon), {
|
|
1709
1716
|
key: 0,
|
|
1710
1717
|
class: b(B.value),
|
|
@@ -1719,11 +1726,11 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1719
1726
|
"aria-hidden": "true"
|
|
1720
1727
|
}, null, 8, ["class"])) : I("", !0)
|
|
1721
1728
|
])) : I("", !0),
|
|
1722
|
-
be(
|
|
1729
|
+
be(f("input", ie({
|
|
1723
1730
|
id: e.name,
|
|
1724
1731
|
ref_key: "inputElement",
|
|
1725
1732
|
ref: d,
|
|
1726
|
-
"onUpdate:modelValue": q[0] || (q[0] = (E) => Be(
|
|
1733
|
+
"onUpdate:modelValue": q[0] || (q[0] = (E) => Be(p) ? p.value = E : null),
|
|
1727
1734
|
type: e.type,
|
|
1728
1735
|
name: e.name,
|
|
1729
1736
|
class: [l(h), A.value, w.value, e.inputClasses || ""],
|
|
@@ -1733,12 +1740,12 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1733
1740
|
"aria-describedby": l(x),
|
|
1734
1741
|
role: "textbox"
|
|
1735
1742
|
}, U.$attrs, {
|
|
1736
|
-
onChange: q[1] || (q[1] = (E) => U.$emit("change", { event: E, value: l(
|
|
1737
|
-
onInput: q[2] || (q[2] = (E) => U.$emit("input", { event: E, value: l(
|
|
1743
|
+
onChange: q[1] || (q[1] = (E) => U.$emit("change", { event: E, value: l(p) })),
|
|
1744
|
+
onInput: q[2] || (q[2] = (E) => U.$emit("input", { event: E, value: l(p) })),
|
|
1738
1745
|
onFocus: q[3] || (q[3] = (E) => U.$emit("focus")),
|
|
1739
1746
|
onBlur: q[4] || (q[4] = (E) => U.$emit("blur"))
|
|
1740
|
-
}), null, 16,
|
|
1741
|
-
[zt, l(
|
|
1747
|
+
}), null, 16, yl), [
|
|
1748
|
+
[zt, l(p)]
|
|
1742
1749
|
]),
|
|
1743
1750
|
D(U.$slots, "input-right", {}, () => [
|
|
1744
1751
|
e.showClear ? (a(), m("a", {
|
|
@@ -1750,7 +1757,7 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1750
1757
|
onKeydown: q[6] || (q[6] = //@ts-ignore
|
|
1751
1758
|
(...E) => l(S) && l(S)(...E))
|
|
1752
1759
|
}, [
|
|
1753
|
-
|
|
1760
|
+
xl,
|
|
1754
1761
|
z(l(ye), {
|
|
1755
1762
|
class: "h-5 w-5 text-foreground",
|
|
1756
1763
|
"aria-hidden": "true"
|
|
@@ -1778,27 +1785,27 @@ const ul = ["for"], cl = { class: "relative" }, dl = ["id", "name", "placeholder
|
|
|
1778
1785
|
key: 0,
|
|
1779
1786
|
id: l(x),
|
|
1780
1787
|
class: b(l(y))
|
|
1781
|
-
}, V(l(v)), 11,
|
|
1788
|
+
}, V(l(v)), 11, kl)) : I("", !0)
|
|
1782
1789
|
], 2));
|
|
1783
1790
|
}
|
|
1784
|
-
}), yt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/,
|
|
1791
|
+
}), yt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/, Cl = (e) => (e || "").match(Ne) ? !0 : "Value should be a valid e-mail address", $l = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ne)) || "Value should be one or multiple comma-delimited e-mail addresses", Il = (e) => (Se(e) && (e = e.trim()), e ? !0 : "Value is required"), Sl = (e, t) => (r, s) => r === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Bl = (e) => (t) => {
|
|
1785
1792
|
const { minLength: r, maxLength: s } = e;
|
|
1786
1793
|
return t = is(t) ? "" : t, Se(t) ? !ge(r) && t.length < r ? `Value needs to be at least ${r} characters long` : !ge(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1787
|
-
},
|
|
1794
|
+
}, Vl = (e) => (t) => {
|
|
1788
1795
|
const { match: r, message: s } = e;
|
|
1789
1796
|
return Se(t) ? r ? Se(r) ? t.includes(r) ? !0 : s : r.test(t) ? !0 : s : !0 : "Value should be a text string";
|
|
1790
|
-
},
|
|
1797
|
+
}, zl = (e) => yt.test(e) ? !0 : "Value is not a valid URL", Ol = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1791
1798
|
__proto__: null,
|
|
1792
1799
|
VALID_EMAIL: Ne,
|
|
1793
1800
|
VALID_HTTP_URL: yt,
|
|
1794
|
-
isEmail:
|
|
1795
|
-
isItemSelected:
|
|
1796
|
-
isOneOrMultipleEmails:
|
|
1797
|
-
isRequired:
|
|
1798
|
-
isSameAs:
|
|
1799
|
-
isStringOfLength:
|
|
1800
|
-
isUrl:
|
|
1801
|
-
stringContains:
|
|
1801
|
+
isEmail: Cl,
|
|
1802
|
+
isItemSelected: Ol,
|
|
1803
|
+
isOneOrMultipleEmails: $l,
|
|
1804
|
+
isRequired: Il,
|
|
1805
|
+
isSameAs: Sl,
|
|
1806
|
+
isStringOfLength: Bl,
|
|
1807
|
+
isUrl: zl,
|
|
1808
|
+
stringContains: Vl
|
|
1802
1809
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1803
1810
|
function xt(e) {
|
|
1804
1811
|
const {
|
|
@@ -1811,9 +1818,9 @@ function xt(e) {
|
|
|
1811
1818
|
const i = s.value;
|
|
1812
1819
|
if (t != null && t.value || !i)
|
|
1813
1820
|
return;
|
|
1814
|
-
const
|
|
1821
|
+
const p = i.children;
|
|
1815
1822
|
let x = 0, y = 0, v;
|
|
1816
|
-
for (const g of
|
|
1823
|
+
for (const g of p) {
|
|
1817
1824
|
const u = g.offsetTop;
|
|
1818
1825
|
ge(v) ? (v = u, x += 1) : u === v && (x += 1), y += 1;
|
|
1819
1826
|
}
|
|
@@ -1830,13 +1837,13 @@ function kt(e) {
|
|
|
1830
1837
|
const { props: t, emit: r, dynamicVisibility: s } = e;
|
|
1831
1838
|
let o;
|
|
1832
1839
|
if (s) {
|
|
1833
|
-
const { elementToWatchForChanges:
|
|
1840
|
+
const { elementToWatchForChanges: p, itemContainer: x } = s;
|
|
1834
1841
|
o = xt({
|
|
1835
1842
|
skipCalculation: c(() => {
|
|
1836
1843
|
var v;
|
|
1837
1844
|
return !((v = t.multiple) != null && v.value);
|
|
1838
1845
|
}),
|
|
1839
|
-
elementToWatchForChanges:
|
|
1846
|
+
elementToWatchForChanges: p,
|
|
1840
1847
|
itemContainer: x
|
|
1841
1848
|
}).hiddenItemCount;
|
|
1842
1849
|
} else
|
|
@@ -1844,32 +1851,32 @@ function kt(e) {
|
|
|
1844
1851
|
const n = c({
|
|
1845
1852
|
get: () => {
|
|
1846
1853
|
var x, y;
|
|
1847
|
-
const
|
|
1848
|
-
return (y = t.multiple) != null && y.value ? N(
|
|
1854
|
+
const p = (x = t.modelValue) == null ? void 0 : x.value;
|
|
1855
|
+
return (y = t.multiple) != null && y.value ? N(p) ? p : [] : N(p) ? void 0 : p;
|
|
1849
1856
|
},
|
|
1850
|
-
set: (
|
|
1857
|
+
set: (p) => {
|
|
1851
1858
|
var x, y, v;
|
|
1852
|
-
if ((x = t.multiple) != null && x.value && !N(
|
|
1859
|
+
if ((x = t.multiple) != null && x.value && !N(p)) {
|
|
1853
1860
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1854
1861
|
return;
|
|
1855
|
-
} else if (!((y = t.multiple) != null && y.value) && N(
|
|
1862
|
+
} else if (!((y = t.multiple) != null && y.value) && N(p)) {
|
|
1856
1863
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1857
1864
|
return;
|
|
1858
1865
|
}
|
|
1859
|
-
r("update:modelValue", (v = t.multiple) != null && v.value ?
|
|
1866
|
+
r("update:modelValue", (v = t.multiple) != null && v.value ? p || [] : p);
|
|
1860
1867
|
}
|
|
1861
|
-
}), d = (
|
|
1868
|
+
}), d = (p) => N(p);
|
|
1862
1869
|
return {
|
|
1863
1870
|
selectedValue: n,
|
|
1864
1871
|
hiddenSelectedItemCount: o,
|
|
1865
1872
|
isArrayValue: d,
|
|
1866
|
-
isMultiItemArrayValue: (
|
|
1867
|
-
firstItem: (
|
|
1873
|
+
isMultiItemArrayValue: (p) => N(p) && p.length > 1,
|
|
1874
|
+
firstItem: (p) => d(p) ? p[0] : p
|
|
1868
1875
|
};
|
|
1869
1876
|
}
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
],
|
|
1877
|
+
const Ll = (e) => (Ot("data-v-89e77cae"), e = e(), Lt(), e), Ml = /* @__PURE__ */ Ll(() => /* @__PURE__ */ f("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Al = [
|
|
1878
|
+
Ml
|
|
1879
|
+
], Pl = /* @__PURE__ */ _({
|
|
1873
1880
|
__name: "Bar",
|
|
1874
1881
|
props: {
|
|
1875
1882
|
loading: { type: Boolean }
|
|
@@ -1880,21 +1887,21 @@ const zl = (e) => (Ot("data-v-89e77cae"), e = e(), Lt(), e), Ol = /* @__PURE__ *
|
|
|
1880
1887
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1881
1888
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1882
1889
|
])
|
|
1883
|
-
},
|
|
1890
|
+
}, Al, 2));
|
|
1884
1891
|
}
|
|
1885
1892
|
});
|
|
1886
|
-
const Qe = /* @__PURE__ */ Oe(
|
|
1893
|
+
const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { class: "flex items-center justify-between w-full" }, jl = { class: "block truncate grow text-left text-xs sm:text-sm" }, Tl = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Fl = {
|
|
1887
1894
|
key: 1,
|
|
1888
1895
|
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
1889
|
-
},
|
|
1896
|
+
}, Rl = ["disabled"], Dl = {
|
|
1890
1897
|
key: 0,
|
|
1891
1898
|
class: "flex flex-col mx-1 mb-1"
|
|
1892
|
-
},
|
|
1899
|
+
}, El = /* @__PURE__ */ f("span", { class: "sr-only label text-foreground" }, "Search", -1), Ul = { class: "relative" }, ql = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Wl = ["placeholder"], Hl = {
|
|
1893
1900
|
key: 0,
|
|
1894
1901
|
class: "px-1"
|
|
1895
|
-
},
|
|
1902
|
+
}, Kl = { key: 1 }, Gl = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Xl = {
|
|
1896
1903
|
class: /* @__PURE__ */ b(["block truncate"])
|
|
1897
|
-
},
|
|
1904
|
+
}, Zl = ["id"], wt = /* @__PURE__ */ _({
|
|
1898
1905
|
__name: "Base",
|
|
1899
1906
|
props: {
|
|
1900
1907
|
multiple: {
|
|
@@ -2068,7 +2075,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2068
2075
|
validateOnMount: n.validateOnMount,
|
|
2069
2076
|
validateOnValueUpdate: n.validateOnValueUpdate,
|
|
2070
2077
|
initialValue: n.modelValue
|
|
2071
|
-
}), i = ms(),
|
|
2078
|
+
}), i = ms(), p = O(null), x = O(null), y = O(null), v = O(""), g = O([]), u = O(!1), S = O(1), k = O(ze()), $ = hs(
|
|
2072
2079
|
c(() => {
|
|
2073
2080
|
var C;
|
|
2074
2081
|
return (C = y.value) == null ? void 0 : C.el;
|
|
@@ -2146,9 +2153,9 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2146
2153
|
}
|
|
2147
2154
|
n.fullyControlValue ? o("update:modelValue", H) : d.value = H, S.value += 1;
|
|
2148
2155
|
}
|
|
2149
|
-
}), he = c(() => n.multiple && N(X.value) ? X.value.length !== 0 : !!X.value),
|
|
2156
|
+
}), he = c(() => n.multiple && N(X.value) ? X.value.length !== 0 : !!X.value), Pe = () => {
|
|
2150
2157
|
n.multiple ? X.value = [] : X.value = void 0;
|
|
2151
|
-
},
|
|
2158
|
+
}, _e = c(() => {
|
|
2152
2159
|
const C = v.value;
|
|
2153
2160
|
return !me.value || !(C != null && C.length) ? g.value : n.filterPredicate ? g.value.filter(
|
|
2154
2161
|
(H) => {
|
|
@@ -2161,7 +2168,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2161
2168
|
"rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow mt-1 "
|
|
2162
2169
|
];
|
|
2163
2170
|
return n.mountMenuOnBody ? C.push("fixed z-50") : C.push("absolute top-[100%] w-full z-10"), C.join(" ");
|
|
2164
|
-
}),
|
|
2171
|
+
}), P = c(() => {
|
|
2165
2172
|
const C = {};
|
|
2166
2173
|
if (n.mountMenuOnBody) {
|
|
2167
2174
|
const H = $.top.value, W = $.left.value, J = $.width.value, te = $.height.value;
|
|
@@ -2214,7 +2221,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2214
2221
|
]),
|
|
2215
2222
|
_: 1
|
|
2216
2223
|
}, 8, ["class"]),
|
|
2217
|
-
|
|
2224
|
+
f("div", {
|
|
2218
2225
|
class: b(Le.value)
|
|
2219
2226
|
}, [
|
|
2220
2227
|
z(l($s), {
|
|
@@ -2223,8 +2230,8 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2223
2230
|
class: b(Ae.value)
|
|
2224
2231
|
}, {
|
|
2225
2232
|
default: M(({ open: W }) => [
|
|
2226
|
-
|
|
2227
|
-
|
|
2233
|
+
f("div", _l, [
|
|
2234
|
+
f("div", jl, [
|
|
2228
2235
|
!X.value || l(N)(X.value) && !X.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
|
|
2229
2236
|
R(V(e.placeholder ? e.placeholder : e.label), 1)
|
|
2230
2237
|
]) : D(C.$slots, "something-selected", {
|
|
@@ -2234,12 +2241,12 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2234
2241
|
R(V(F(X.value)), 1)
|
|
2235
2242
|
])
|
|
2236
2243
|
]),
|
|
2237
|
-
|
|
2244
|
+
f("div", Tl, [
|
|
2238
2245
|
T.value ? (a(), L(l(Et), {
|
|
2239
2246
|
key: 0,
|
|
2240
2247
|
class: "h-4 w-4 text-danger",
|
|
2241
2248
|
"aria-hidden": "true"
|
|
2242
|
-
})) : e.showRequired ? (a(), m("div",
|
|
2249
|
+
})) : e.showRequired ? (a(), m("div", Fl, " * ")) : I("", !0),
|
|
2243
2250
|
W ? (a(), L(l(dt), {
|
|
2244
2251
|
key: 2,
|
|
2245
2252
|
class: "h-4 w-4 text-foreground",
|
|
@@ -2258,10 +2265,10 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2258
2265
|
key: 0,
|
|
2259
2266
|
class: b(Me.value),
|
|
2260
2267
|
disabled: e.disabled,
|
|
2261
|
-
onClick: H[0] || (H[0] = (W) =>
|
|
2268
|
+
onClick: H[0] || (H[0] = (W) => Pe())
|
|
2262
2269
|
}, [
|
|
2263
2270
|
z(l(Ke), { class: "w-3 h-3" })
|
|
2264
|
-
], 10,
|
|
2271
|
+
], 10, Rl)), [
|
|
2265
2272
|
[l(vt), "Clear"]
|
|
2266
2273
|
]) : I("", !0),
|
|
2267
2274
|
l(i) ? (a(), L(Ee, {
|
|
@@ -2279,44 +2286,44 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2279
2286
|
ref_key: "menuEl",
|
|
2280
2287
|
ref: x,
|
|
2281
2288
|
class: b(xe.value),
|
|
2282
|
-
style: ne(
|
|
2289
|
+
style: ne(P.value),
|
|
2283
2290
|
onFocus: H[3] || (H[3] = (W) => {
|
|
2284
2291
|
var J;
|
|
2285
|
-
return (J =
|
|
2292
|
+
return (J = p.value) == null ? void 0 : J.focus();
|
|
2286
2293
|
})
|
|
2287
2294
|
}, {
|
|
2288
2295
|
default: M(() => [
|
|
2289
|
-
me.value ? (a(), m("label",
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2296
|
+
me.value ? (a(), m("label", Dl, [
|
|
2297
|
+
El,
|
|
2298
|
+
f("div", Ul, [
|
|
2299
|
+
f("div", ql, [
|
|
2293
2300
|
z(l(qt), { class: "h-5 w-5 text-foreground" })
|
|
2294
2301
|
]),
|
|
2295
|
-
be(
|
|
2302
|
+
be(f("input", {
|
|
2296
2303
|
ref_key: "searchInput",
|
|
2297
|
-
ref:
|
|
2304
|
+
ref: p,
|
|
2298
2305
|
"onUpdate:modelValue": H[1] || (H[1] = (W) => v.value = W),
|
|
2299
2306
|
type: "text",
|
|
2300
2307
|
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",
|
|
2301
2308
|
placeholder: e.searchPlaceholder,
|
|
2302
2309
|
onKeydown: H[2] || (H[2] = pe(() => {
|
|
2303
2310
|
}, ["stop"]))
|
|
2304
|
-
}, null, 40,
|
|
2311
|
+
}, null, 40, Wl), [
|
|
2305
2312
|
[qe, v.value]
|
|
2306
2313
|
])
|
|
2307
2314
|
])
|
|
2308
2315
|
])) : I("", !0),
|
|
2309
|
-
|
|
2316
|
+
f("div", {
|
|
2310
2317
|
class: b(["overflow-auto simple-scrollbar", [me.value ? "max-h-52" : "max-h-40"]])
|
|
2311
2318
|
}, [
|
|
2312
|
-
Y.value && u.value ? (a(), m("div",
|
|
2319
|
+
Y.value && u.value ? (a(), m("div", Hl, [
|
|
2313
2320
|
z(Qe, { loading: !0 })
|
|
2314
|
-
])) : Y.value && !g.value.length ? (a(), m("div",
|
|
2321
|
+
])) : Y.value && !g.value.length ? (a(), m("div", Kl, [
|
|
2315
2322
|
D(C.$slots, "nothing-found", {}, () => [
|
|
2316
|
-
|
|
2323
|
+
Gl
|
|
2317
2324
|
])
|
|
2318
2325
|
])) : I("", !0),
|
|
2319
|
-
!Y.value || !u.value ? (a(!0), m(K, { key: 2 }, G(
|
|
2326
|
+
!Y.value || !u.value ? (a(!0), m(K, { key: 2 }, G(_e.value, (W) => {
|
|
2320
2327
|
var J;
|
|
2321
2328
|
return a(), L(l(Ss), {
|
|
2322
2329
|
key: j(W),
|
|
@@ -2329,7 +2336,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2329
2336
|
}) => {
|
|
2330
2337
|
var et, tt;
|
|
2331
2338
|
return [
|
|
2332
|
-
|
|
2339
|
+
f("li", {
|
|
2333
2340
|
class: b(
|
|
2334
2341
|
ke({
|
|
2335
2342
|
active: te,
|
|
@@ -2337,7 +2344,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2337
2344
|
})
|
|
2338
2345
|
)
|
|
2339
2346
|
}, [
|
|
2340
|
-
|
|
2347
|
+
f("span", Xl, [
|
|
2341
2348
|
D(C.$slots, "option", {
|
|
2342
2349
|
item: W,
|
|
2343
2350
|
active: te,
|
|
@@ -2381,10 +2388,10 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2381
2388
|
key: 0,
|
|
2382
2389
|
id: U.value,
|
|
2383
2390
|
class: b(["mt-2 text-xs sm:text-sm", q.value])
|
|
2384
|
-
}, V(A.value), 11,
|
|
2391
|
+
}, V(A.value), 11, Zl)) : I("", !0)
|
|
2385
2392
|
]));
|
|
2386
2393
|
}
|
|
2387
|
-
}),
|
|
2394
|
+
}), Nl = /* @__PURE__ */ _({
|
|
2388
2395
|
__name: "SourceAppBadge",
|
|
2389
2396
|
props: {
|
|
2390
2397
|
sourceApp: null
|
|
@@ -2401,13 +2408,13 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2401
2408
|
_: 1
|
|
2402
2409
|
}, 8, ["style"]));
|
|
2403
2410
|
}
|
|
2404
|
-
}),
|
|
2411
|
+
}), Ql = {
|
|
2405
2412
|
key: 0,
|
|
2406
2413
|
class: "text-foreground-2 normal"
|
|
2407
|
-
},
|
|
2414
|
+
}, Jl = {
|
|
2408
2415
|
key: 1,
|
|
2409
2416
|
class: "flex items-center"
|
|
2410
|
-
},
|
|
2417
|
+
}, Yl = { class: "truncate" }, ea = { class: "flex items-center" }, ta = { class: "truncate" }, jo = /* @__PURE__ */ _({
|
|
2411
2418
|
__name: "SourceApps",
|
|
2412
2419
|
props: {
|
|
2413
2420
|
/**
|
|
@@ -2473,7 +2480,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2473
2480
|
},
|
|
2474
2481
|
emits: ["update:modelValue"],
|
|
2475
2482
|
setup(e, { emit: t }) {
|
|
2476
|
-
const r = t, s = e, o = O(null), n = O(null), { selectedValue: d, hiddenSelectedItemCount: h, isMultiItemArrayValue: i, firstItem:
|
|
2483
|
+
const r = t, s = e, o = O(null), n = O(null), { selectedValue: d, hiddenSelectedItemCount: h, isMultiItemArrayValue: i, firstItem: p } = kt({
|
|
2477
2484
|
props: le(s),
|
|
2478
2485
|
emit: r,
|
|
2479
2486
|
dynamicVisibility: { elementToWatchForChanges: o, itemContainer: n }
|
|
@@ -2507,38 +2514,38 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2507
2514
|
ref: o,
|
|
2508
2515
|
class: "flex items-center space-x-0.5 h-5"
|
|
2509
2516
|
}, [
|
|
2510
|
-
|
|
2517
|
+
f("div", {
|
|
2511
2518
|
ref_key: "itemContainer",
|
|
2512
2519
|
ref: n,
|
|
2513
2520
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2514
2521
|
}, [
|
|
2515
|
-
(a(!0), m(K, null, G(g, (u) => (a(), L(
|
|
2522
|
+
(a(!0), m(K, null, G(g, (u) => (a(), L(Nl, {
|
|
2516
2523
|
key: u.name,
|
|
2517
2524
|
"source-app": u
|
|
2518
2525
|
}, null, 8, ["source-app"]))), 128))
|
|
2519
2526
|
], 512),
|
|
2520
|
-
l(h) > 0 ? (a(), m("div",
|
|
2521
|
-
], 512)) : (a(), m("div",
|
|
2522
|
-
|
|
2527
|
+
l(h) > 0 ? (a(), m("div", Ql, " +" + V(l(h)), 1)) : I("", !0)
|
|
2528
|
+
], 512)) : (a(), m("div", Jl, [
|
|
2529
|
+
f("div", {
|
|
2523
2530
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2524
|
-
style: ne({ backgroundColor: l(
|
|
2531
|
+
style: ne({ backgroundColor: l(p)(g).bgColor })
|
|
2525
2532
|
}, null, 4),
|
|
2526
|
-
|
|
2533
|
+
f("span", Yl, V(l(p)(g).name), 1)
|
|
2527
2534
|
]))
|
|
2528
2535
|
]),
|
|
2529
2536
|
option: M(({ item: g }) => [
|
|
2530
|
-
|
|
2531
|
-
|
|
2537
|
+
f("div", ea, [
|
|
2538
|
+
f("div", {
|
|
2532
2539
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2533
2540
|
style: ne({ backgroundColor: g.bgColor })
|
|
2534
2541
|
}, null, 4),
|
|
2535
|
-
|
|
2542
|
+
f("span", ta, V(g.name), 1)
|
|
2536
2543
|
])
|
|
2537
2544
|
]),
|
|
2538
2545
|
_: 1
|
|
2539
2546
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
|
|
2540
2547
|
}
|
|
2541
|
-
}),
|
|
2548
|
+
}), sa = { class: "flex flex-wrap gap-1.5 text-xs" }, To = /* @__PURE__ */ _({
|
|
2542
2549
|
__name: "Badges",
|
|
2543
2550
|
props: {
|
|
2544
2551
|
items: null,
|
|
@@ -2560,7 +2567,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2560
2567
|
};
|
|
2561
2568
|
return (h, i) => (a(), L(wt, {
|
|
2562
2569
|
modelValue: l(o),
|
|
2563
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2570
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => Be(o) ? o.value = p : null),
|
|
2564
2571
|
multiple: e.multiple,
|
|
2565
2572
|
items: e.items,
|
|
2566
2573
|
label: e.label,
|
|
@@ -2569,9 +2576,9 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2569
2576
|
rules: e.rules,
|
|
2570
2577
|
by: e.by
|
|
2571
2578
|
}, {
|
|
2572
|
-
"something-selected": M(({ value:
|
|
2573
|
-
|
|
2574
|
-
(a(!0), m(K, null, G(l(n)(
|
|
2579
|
+
"something-selected": M(({ value: p }) => [
|
|
2580
|
+
f("ul", sa, [
|
|
2581
|
+
(a(!0), m(K, null, G(l(n)(p) ? p : [p], (x) => (a(), m("li", {
|
|
2575
2582
|
key: x[e.by]
|
|
2576
2583
|
}, [
|
|
2577
2584
|
z(Xe, {
|
|
@@ -2588,13 +2595,13 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2588
2595
|
]))), 128))
|
|
2589
2596
|
])
|
|
2590
2597
|
]),
|
|
2591
|
-
option: M(({ item:
|
|
2592
|
-
R(V(
|
|
2598
|
+
option: M(({ item: p }) => [
|
|
2599
|
+
R(V(p.text), 1)
|
|
2593
2600
|
]),
|
|
2594
2601
|
_: 1
|
|
2595
2602
|
}, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
|
|
2596
2603
|
}
|
|
2597
|
-
}),
|
|
2604
|
+
}), na = { class: "flex items-center" }, la = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Fo = /* @__PURE__ */ _({
|
|
2598
2605
|
__name: "Switch",
|
|
2599
2606
|
props: {
|
|
2600
2607
|
modelValue: { type: Boolean }
|
|
@@ -2602,18 +2609,18 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2602
2609
|
emits: ["update:modelValue"],
|
|
2603
2610
|
setup(e) {
|
|
2604
2611
|
const t = it(e, "modelValue");
|
|
2605
|
-
return (r, s) => (a(), m("div",
|
|
2612
|
+
return (r, s) => (a(), m("div", na, [
|
|
2606
2613
|
z(l(Bs), {
|
|
2607
2614
|
modelValue: t.value,
|
|
2608
2615
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => t.value = o),
|
|
2609
2616
|
class: b(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": t.value, "bg-primary-muted": !t.value }])
|
|
2610
2617
|
}, {
|
|
2611
2618
|
default: M(() => [
|
|
2612
|
-
|
|
2619
|
+
f("div", la, [
|
|
2613
2620
|
z(l(ft), { class: "h-5 w-5 drop-shadow-md" }),
|
|
2614
2621
|
z(l(Ke), { class: "h-5 w-5 drop-shadow-md" })
|
|
2615
2622
|
]),
|
|
2616
|
-
|
|
2623
|
+
f("span", {
|
|
2617
2624
|
class: b(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": t.value, "translate-x-0": !t.value }])
|
|
2618
2625
|
}, null, 2)
|
|
2619
2626
|
]),
|
|
@@ -2621,7 +2628,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2621
2628
|
}, 8, ["modelValue", "class"])
|
|
2622
2629
|
]));
|
|
2623
2630
|
}
|
|
2624
|
-
}),
|
|
2631
|
+
}), aa = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" }, oa = { class: "absolute inset-0 right-2 flex justify-end items-center" }, Ro = /* @__PURE__ */ _({
|
|
2625
2632
|
__name: "ClipboardInput",
|
|
2626
2633
|
props: {
|
|
2627
2634
|
value: null,
|
|
@@ -2635,18 +2642,18 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2635
2642
|
n.value = !1;
|
|
2636
2643
|
}, 2e3));
|
|
2637
2644
|
}, h = (i) => {
|
|
2638
|
-
const
|
|
2645
|
+
const p = i.target, x = window.getSelection();
|
|
2639
2646
|
if (x) {
|
|
2640
2647
|
const y = document.createRange();
|
|
2641
|
-
y.selectNodeContents(
|
|
2648
|
+
y.selectNodeContents(p), x.removeAllRanges(), x.addRange(y);
|
|
2642
2649
|
}
|
|
2643
2650
|
};
|
|
2644
|
-
return (i,
|
|
2651
|
+
return (i, p) => (a(), m("div", aa, [
|
|
2645
2652
|
e.isMultiline ? (a(), m("div", {
|
|
2646
2653
|
key: 0,
|
|
2647
2654
|
class: "relative z-10 text-xs sm:text-sm text-foreground font-mono break-all p-2 pl-3 max-h-[4.8rem] simple-scrollbar overflow-y-auto",
|
|
2648
|
-
onKeypress:
|
|
2649
|
-
}, V(e.value), 33)) : (a(), L(l(
|
|
2655
|
+
onKeypress: p[0] || (p[0] = (x) => l(gt)(h))
|
|
2656
|
+
}, V(e.value), 33)) : (a(), L(l(wl), {
|
|
2650
2657
|
key: 1,
|
|
2651
2658
|
color: "transparent",
|
|
2652
2659
|
name: "contentInput",
|
|
@@ -2654,7 +2661,7 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2654
2661
|
"model-value": e.value,
|
|
2655
2662
|
class: "relative z-10 text-sm text-foreground font-mono"
|
|
2656
2663
|
}, null, 8, ["model-value"])),
|
|
2657
|
-
|
|
2664
|
+
f("div", oa, [
|
|
2658
2665
|
z(l(oe), {
|
|
2659
2666
|
color: "invert",
|
|
2660
2667
|
size: "sm",
|
|
@@ -2667,16 +2674,16 @@ const Qe = /* @__PURE__ */ Oe(Ml, [["__scopeId", "data-v-89e77cae"]]), Al = { cl
|
|
|
2667
2674
|
}
|
|
2668
2675
|
});
|
|
2669
2676
|
var $e = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))($e || {});
|
|
2670
|
-
const Fe = cs(),
|
|
2677
|
+
const Fe = cs(), ra = {
|
|
2671
2678
|
"cmd-or-ctrl": Fe === Te.Mac ? "Cmd" : "Ctrl",
|
|
2672
2679
|
"alt-or-opt": Fe === Te.Mac ? "Opt" : "Alt",
|
|
2673
2680
|
shift: "Shift"
|
|
2674
2681
|
};
|
|
2675
|
-
function
|
|
2682
|
+
function Do(e) {
|
|
2676
2683
|
const t = (r) => Object.values($e).includes(r);
|
|
2677
|
-
return e.map((r) => t(r) ?
|
|
2684
|
+
return e.map((r) => t(r) ? ra[r] : r).join("+");
|
|
2678
2685
|
}
|
|
2679
|
-
function
|
|
2686
|
+
function Eo(e, ...t) {
|
|
2680
2687
|
bs(
|
|
2681
2688
|
t[0],
|
|
2682
2689
|
(r) => {
|
|
@@ -2701,17 +2708,17 @@ function Ro(e, ...t) {
|
|
|
2701
2708
|
t[2]
|
|
2702
2709
|
);
|
|
2703
2710
|
}
|
|
2704
|
-
function
|
|
2711
|
+
function Uo(e) {
|
|
2705
2712
|
const t = (e == null ? void 0 : e.model) || O(), r = c({
|
|
2706
2713
|
get: () => !!t.value,
|
|
2707
2714
|
set: (s) => t.value = s ? !0 : void 0
|
|
2708
2715
|
});
|
|
2709
2716
|
return { model: t, isChecked: r };
|
|
2710
2717
|
}
|
|
2711
|
-
const
|
|
2718
|
+
const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), ua = { class: "fixed inset-0 z-10 h-[100dvh] w-screen" }, ca = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, da = {
|
|
2712
2719
|
key: 0,
|
|
2713
2720
|
class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[4rem] py-2 px-4 sm:px-8 truncate text-lg sm:text-2xl font-bold"
|
|
2714
|
-
},
|
|
2721
|
+
}, fa = { class: "w-full truncate pr-12" }, qo = /* @__PURE__ */ _({
|
|
2715
2722
|
__name: "Dialog",
|
|
2716
2723
|
props: {
|
|
2717
2724
|
open: { type: Boolean },
|
|
@@ -2724,7 +2731,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2724
2731
|
},
|
|
2725
2732
|
emits: ["update:open", "fully-closed"],
|
|
2726
2733
|
setup(e, { emit: t }) {
|
|
2727
|
-
const r = t, s = e, o = We(), n = O(!1), d = O(!0), h = c(() => !!s.onSubmit), i = c(() => s.buttons || o.buttons),
|
|
2734
|
+
const r = t, s = e, o = We(), n = O(!1), d = O(!0), h = c(() => !!s.onSubmit), i = c(() => s.buttons || o.buttons), p = c(() => s.title || o.header), x = c({
|
|
2728
2735
|
get: () => s.open,
|
|
2729
2736
|
set: (S) => r("update:open", S)
|
|
2730
2737
|
}), y = c(() => {
|
|
@@ -2770,12 +2777,12 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2770
2777
|
"leave-to": "opacity-0"
|
|
2771
2778
|
}, {
|
|
2772
2779
|
default: M(() => [
|
|
2773
|
-
|
|
2780
|
+
ia
|
|
2774
2781
|
]),
|
|
2775
2782
|
_: 1
|
|
2776
2783
|
}),
|
|
2777
|
-
|
|
2778
|
-
|
|
2784
|
+
f("div", ua, [
|
|
2785
|
+
f("div", ca, [
|
|
2779
2786
|
z(l(at), {
|
|
2780
2787
|
as: "template",
|
|
2781
2788
|
enter: "ease-out duration-300",
|
|
@@ -2796,11 +2803,11 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2796
2803
|
onSubmit: pe(e.onSubmit, ["prevent"])
|
|
2797
2804
|
}, {
|
|
2798
2805
|
default: M(() => [
|
|
2799
|
-
|
|
2806
|
+
f("div", {
|
|
2800
2807
|
class: b(n.value && "relative z-20 shadow-lg")
|
|
2801
2808
|
}, [
|
|
2802
|
-
|
|
2803
|
-
|
|
2809
|
+
p.value ? (a(), m("div", da, [
|
|
2810
|
+
f("div", fa, [
|
|
2804
2811
|
R(V(e.title) + " ", 1),
|
|
2805
2812
|
D(S.$slots, "header")
|
|
2806
2813
|
])
|
|
@@ -2808,13 +2815,13 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2808
2815
|
], 2),
|
|
2809
2816
|
e.hideCloser ? I("", !0) : (a(), m("button", {
|
|
2810
2817
|
key: 0,
|
|
2811
|
-
class: b(["absolute z-20 bg-foundation rounded-full p-1",
|
|
2818
|
+
class: b(["absolute z-20 bg-foundation rounded-full p-1", p.value ? "top-2 right-3 sm:top-4" : "right-4 top-3"]),
|
|
2812
2819
|
onClick: k[0] || (k[0] = ($) => x.value = !1)
|
|
2813
2820
|
}, [
|
|
2814
2821
|
z(l(Yt), { class: "h-5 sm:h-6 w-5 sm:w-6" })
|
|
2815
2822
|
], 2)),
|
|
2816
|
-
|
|
2817
|
-
class: b(["flex-1 simple-scrollbar overflow-y-auto",
|
|
2823
|
+
f("div", {
|
|
2824
|
+
class: b(["flex-1 simple-scrollbar overflow-y-auto", p.value ? "p-3 sm:py-6 sm:px-8" : "p-10"]),
|
|
2818
2825
|
onScroll: k[1] || (k[1] = //@ts-ignore
|
|
2819
2826
|
(...$) => l(u) && l(u)(...$))
|
|
2820
2827
|
}, [
|
|
@@ -2852,7 +2859,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2852
2859
|
_: 3
|
|
2853
2860
|
}, 8, ["show"]));
|
|
2854
2861
|
}
|
|
2855
|
-
}),
|
|
2862
|
+
}), pa = { class: "h-4 sm:h-5 h-4 sm:w-5 empty:h-0 empty:w-0" }, Wo = /* @__PURE__ */ _({
|
|
2856
2863
|
__name: "DialogSection",
|
|
2857
2864
|
props: {
|
|
2858
2865
|
title: String,
|
|
@@ -2893,7 +2900,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2893
2900
|
var i;
|
|
2894
2901
|
o.value = !o.value, o.value && (await At(), s.value = (((i = l(r)) == null ? void 0 : i.scrollHeight) || 0) + 64);
|
|
2895
2902
|
};
|
|
2896
|
-
return (i,
|
|
2903
|
+
return (i, p) => {
|
|
2897
2904
|
var x, y;
|
|
2898
2905
|
return a(), m("div", {
|
|
2899
2906
|
class: b(["flex flex-col border-primary-muted", {
|
|
@@ -2902,7 +2909,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2902
2909
|
"relative z-10": o.value
|
|
2903
2910
|
}])
|
|
2904
2911
|
}, [
|
|
2905
|
-
|
|
2912
|
+
f("div", ie({
|
|
2906
2913
|
class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2", n.value],
|
|
2907
2914
|
tabindex: "0"
|
|
2908
2915
|
}, st(
|
|
@@ -2912,15 +2919,15 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2912
2919
|
} : {},
|
|
2913
2920
|
!0
|
|
2914
2921
|
)), [
|
|
2915
|
-
|
|
2922
|
+
f("div", {
|
|
2916
2923
|
class: b(["text-sm sm:text-base font-bold flex items-center gap-1 sm:gap-2 select-none", d.value])
|
|
2917
2924
|
}, [
|
|
2918
|
-
|
|
2925
|
+
f("div", pa, [
|
|
2919
2926
|
D(i.$slots, "icon")
|
|
2920
2927
|
]),
|
|
2921
|
-
|
|
2928
|
+
f("span", null, V(e.title), 1)
|
|
2922
2929
|
], 2),
|
|
2923
|
-
|
|
2930
|
+
f("div", null, [
|
|
2924
2931
|
!e.button && !e.alwaysOpen ? (a(), L(l(es), {
|
|
2925
2932
|
key: 0,
|
|
2926
2933
|
class: b(["w-4 h-4 sm:w-5 sm:h-5 transition-all duration-400", o.value && "rotate-180"])
|
|
@@ -2940,7 +2947,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2940
2947
|
}, 16, ["to", "color", "icon-right", "onClick"])) : I("", !0)
|
|
2941
2948
|
])
|
|
2942
2949
|
], 16),
|
|
2943
|
-
|
|
2950
|
+
f("div", {
|
|
2944
2951
|
class: b(["transition-all duration-700 overflow-hidden", [
|
|
2945
2952
|
e.allowOverflow && o.value ? "!overflow-visible" : "",
|
|
2946
2953
|
o.value ? "mb-3 mt-1" : "",
|
|
@@ -2975,7 +2982,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2975
2982
|
], 2);
|
|
2976
2983
|
};
|
|
2977
2984
|
}
|
|
2978
|
-
}),
|
|
2985
|
+
}), ma = { class: "inline-flex items-center space-x-2" }, ha = { class: "label-light" }, Ho = /* @__PURE__ */ _({
|
|
2979
2986
|
__name: "Disclosure",
|
|
2980
2987
|
props: {
|
|
2981
2988
|
title: null,
|
|
@@ -3036,12 +3043,12 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
3036
3043
|
class: b(r.value)
|
|
3037
3044
|
}, {
|
|
3038
3045
|
default: M(() => [
|
|
3039
|
-
|
|
3046
|
+
f("div", ma, [
|
|
3040
3047
|
e.icon ? (a(), L(Q(e.icon), {
|
|
3041
3048
|
key: 0,
|
|
3042
3049
|
class: "h-5 w-5"
|
|
3043
3050
|
})) : I("", !0),
|
|
3044
|
-
|
|
3051
|
+
f("span", null, V(e.title), 1)
|
|
3045
3052
|
]),
|
|
3046
3053
|
z(l(dt), {
|
|
3047
3054
|
class: b([d ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
@@ -3053,7 +3060,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
3053
3060
|
class: b(s.value)
|
|
3054
3061
|
}, {
|
|
3055
3062
|
default: M(() => [
|
|
3056
|
-
|
|
3063
|
+
f("div", ha, [
|
|
3057
3064
|
D(o.$slots, "default", {}, () => [
|
|
3058
3065
|
R("Panel contents")
|
|
3059
3066
|
])
|
|
@@ -3068,7 +3075,7 @@ const oa = /* @__PURE__ */ p("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
3068
3075
|
}
|
|
3069
3076
|
});
|
|
3070
3077
|
var de = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(de || {});
|
|
3071
|
-
const
|
|
3078
|
+
const va = { class: "relative flex bg-foundation rounded-md" }, ga = { class: "relative z-10 flex gap-1 items-center p-1 rounded-l" }, ba = { class: "relative z-10 flex gap-1 items-center p-1 rounded-r" }, Ko = /* @__PURE__ */ _({
|
|
3072
3079
|
__name: "GridListToggle",
|
|
3073
3080
|
props: {
|
|
3074
3081
|
modelValue: null
|
|
@@ -3087,28 +3094,28 @@ const ma = { class: "relative flex bg-foundation rounded-md" }, ha = { class: "r
|
|
|
3087
3094
|
class: "max-w-max transition flex justify-center items-center gap-2 outline-none select-none h-8 text-foreground border-2 bg-foundation border-foundation-2 rounded-md hover:ring-2 active:scale-[0.97] grow",
|
|
3088
3095
|
onClick: n
|
|
3089
3096
|
}, [
|
|
3090
|
-
|
|
3091
|
-
|
|
3097
|
+
f("div", va, [
|
|
3098
|
+
f("div", {
|
|
3092
3099
|
class: b(["absolute -top-[2px] -left-[2px] transition", {
|
|
3093
3100
|
"translate-x-7": o.value !== l(de).Grid
|
|
3094
3101
|
}])
|
|
3095
3102
|
}, [
|
|
3096
|
-
|
|
3103
|
+
f("div", {
|
|
3097
3104
|
class: b([o.value !== l(de).Grid ? "rounded-r-md" : "rounded-l-md", "w-8 h-8 bg-primary-muted shadow-inner transition"])
|
|
3098
3105
|
}, null, 2)
|
|
3099
3106
|
], 2),
|
|
3100
|
-
|
|
3107
|
+
f("div", ga, [
|
|
3101
3108
|
z(l(Wt), { class: "h-5 w-5" })
|
|
3102
3109
|
]),
|
|
3103
|
-
|
|
3110
|
+
f("div", ba, [
|
|
3104
3111
|
z(l(Ht), { class: "h-5 w-5" })
|
|
3105
3112
|
])
|
|
3106
3113
|
])
|
|
3107
3114
|
]));
|
|
3108
3115
|
}
|
|
3109
3116
|
});
|
|
3110
|
-
var
|
|
3111
|
-
function
|
|
3117
|
+
var ya = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ya || {}), Re = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Re || {});
|
|
3118
|
+
function xa(e, t) {
|
|
3112
3119
|
if (!Ge)
|
|
3113
3120
|
return;
|
|
3114
3121
|
const {
|
|
@@ -3118,14 +3125,14 @@ function ba(e, t) {
|
|
|
3118
3125
|
} = t || {}, o = r ? s === 0 ? ut(e, r) : He(e, r) : e;
|
|
3119
3126
|
ae(() => window.addEventListener("resize", o)), Ue(() => window.removeEventListener("resize", o));
|
|
3120
3127
|
}
|
|
3121
|
-
function
|
|
3128
|
+
function Go(e) {
|
|
3122
3129
|
ae(() => {
|
|
3123
3130
|
window.addEventListener("beforeunload", e);
|
|
3124
3131
|
}), Ue(() => {
|
|
3125
3132
|
window.removeEventListener("beforeunload", e);
|
|
3126
3133
|
});
|
|
3127
3134
|
}
|
|
3128
|
-
function
|
|
3135
|
+
function ka(e) {
|
|
3129
3136
|
const { el: t, defaultDirection: r } = e, s = O(
|
|
3130
3137
|
ge(r) ? 1 : r
|
|
3131
3138
|
/* Right */
|
|
@@ -3141,10 +3148,10 @@ function ya(e) {
|
|
|
3141
3148
|
const d = l(t);
|
|
3142
3149
|
if (!d)
|
|
3143
3150
|
return;
|
|
3144
|
-
const h = d.getBoundingClientRect(), i = h.x + h.width > window.innerWidth,
|
|
3145
|
-
i &&
|
|
3151
|
+
const h = d.getBoundingClientRect(), i = h.x + h.width > window.innerWidth, p = h.x < 0;
|
|
3152
|
+
i && p || !ge(o.value) && window.innerWidth < o.value || (i ? s.value = 0 : p && (s.value = 1));
|
|
3146
3153
|
};
|
|
3147
|
-
return
|
|
3154
|
+
return xa(() => n()), fe(
|
|
3148
3155
|
() => l(t),
|
|
3149
3156
|
(d) => {
|
|
3150
3157
|
d && n();
|
|
@@ -3154,7 +3161,7 @@ function ya(e) {
|
|
|
3154
3161
|
recalculateDirection: n
|
|
3155
3162
|
};
|
|
3156
3163
|
}
|
|
3157
|
-
const
|
|
3164
|
+
const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
3158
3165
|
__name: "Menu",
|
|
3159
3166
|
props: {
|
|
3160
3167
|
open: { type: Boolean },
|
|
@@ -3162,7 +3169,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3162
3169
|
},
|
|
3163
3170
|
emits: ["update:open", "chosen"],
|
|
3164
3171
|
setup(e, { emit: t }) {
|
|
3165
|
-
const r = t, s = e, o = O(null), { direction: n } =
|
|
3172
|
+
const r = t, s = e, o = O(null), { direction: n } = ka({
|
|
3166
3173
|
el: c(() => {
|
|
3167
3174
|
var g;
|
|
3168
3175
|
return ((g = o.value) == null ? void 0 : g.el) || null;
|
|
@@ -3172,7 +3179,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3172
3179
|
}), d = O(null), h = O(!1), i = c({
|
|
3173
3180
|
get: () => s.open || !1,
|
|
3174
3181
|
set: (g) => r("update:open", g)
|
|
3175
|
-
}),
|
|
3182
|
+
}), p = (g) => {
|
|
3176
3183
|
const { active: u, disabled: S, color: k } = g, $ = [
|
|
3177
3184
|
"group flex gap-3 w-full items-center rounded-md px-2 py-1.5 text-sm"
|
|
3178
3185
|
];
|
|
@@ -3195,15 +3202,15 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3195
3202
|
class: "relative inline-block"
|
|
3196
3203
|
}, {
|
|
3197
3204
|
default: M(({ open: S }) => [
|
|
3198
|
-
|
|
3199
|
-
z(l(
|
|
3205
|
+
f("div", null, [
|
|
3206
|
+
z(l(Ps), {
|
|
3200
3207
|
ref_key: "menuButton",
|
|
3201
3208
|
ref: d,
|
|
3202
3209
|
class: "hidden",
|
|
3203
3210
|
onClick: u[0] || (u[0] = pe(() => {
|
|
3204
3211
|
}, ["stop", "prevent"]))
|
|
3205
3212
|
}, null, 512),
|
|
3206
|
-
|
|
3213
|
+
f("div", {
|
|
3207
3214
|
class: b(S ? "pointer-events-none" : "")
|
|
3208
3215
|
}, [
|
|
3209
3216
|
D(g.$slots, "default", {
|
|
@@ -3221,7 +3228,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3221
3228
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
3222
3229
|
}, {
|
|
3223
3230
|
default: M(() => [
|
|
3224
|
-
z(l(
|
|
3231
|
+
z(l(_s), {
|
|
3225
3232
|
ref_key: "menuItems",
|
|
3226
3233
|
ref: o,
|
|
3227
3234
|
class: b([
|
|
@@ -3241,8 +3248,8 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3241
3248
|
}, {
|
|
3242
3249
|
default: M(({ active: T, disabled: A }) => [
|
|
3243
3250
|
be((a(), m("span", null, [
|
|
3244
|
-
|
|
3245
|
-
class: b(
|
|
3251
|
+
f("button", {
|
|
3252
|
+
class: b(p({ active: T, disabled: A, color: B.color })),
|
|
3246
3253
|
disabled: A,
|
|
3247
3254
|
onClick: (w) => x(B, w)
|
|
3248
3255
|
}, [
|
|
@@ -3253,7 +3260,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3253
3260
|
D(g.$slots, "item", { item: B }, () => [
|
|
3254
3261
|
R(V(B.title), 1)
|
|
3255
3262
|
])
|
|
3256
|
-
], 10,
|
|
3263
|
+
], 10, wa)
|
|
3257
3264
|
])), [
|
|
3258
3265
|
[l(vt), B.disabled && B.disabledTooltip]
|
|
3259
3266
|
])
|
|
@@ -3271,7 +3278,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3271
3278
|
_: 3
|
|
3272
3279
|
}));
|
|
3273
3280
|
}
|
|
3274
|
-
}),
|
|
3281
|
+
}), Ca = { class: "flex flex-col gap-y-0 sm:gap-y-4" }, $a = { class: "flex gap-x-6" }, Zo = /* @__PURE__ */ _({
|
|
3275
3282
|
__name: "Tabs",
|
|
3276
3283
|
props: {
|
|
3277
3284
|
items: null
|
|
@@ -3280,8 +3287,8 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3280
3287
|
const t = e, r = O(null), s = c(() => r.value && t.items.find((n) => n.id === r.value) || t.items[0]), o = (n) => {
|
|
3281
3288
|
r.value = n.id;
|
|
3282
3289
|
};
|
|
3283
|
-
return (n, d) => (a(), m("div",
|
|
3284
|
-
|
|
3290
|
+
return (n, d) => (a(), m("div", Ca, [
|
|
3291
|
+
f("div", $a, [
|
|
3285
3292
|
(a(!0), m(K, null, G(e.items, (h) => (a(), L(oe, {
|
|
3286
3293
|
key: h.id,
|
|
3287
3294
|
link: "",
|
|
@@ -3297,7 +3304,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3297
3304
|
D(n.$slots, "default", { activeItem: s.value })
|
|
3298
3305
|
]));
|
|
3299
3306
|
}
|
|
3300
|
-
}),
|
|
3307
|
+
}), Ia = { class: "text-foreground" }, Sa = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, Ba = ["onClick", "onKeypress"], Va = /* @__PURE__ */ f("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), za = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, No = /* @__PURE__ */ _({
|
|
3301
3308
|
__name: "Table",
|
|
3302
3309
|
props: {
|
|
3303
3310
|
items: null,
|
|
@@ -3321,8 +3328,8 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3321
3328
|
var h;
|
|
3322
3329
|
(h = t.onRowClick) == null || h.call(t, d);
|
|
3323
3330
|
};
|
|
3324
|
-
return (d, h) => (a(), m("div",
|
|
3325
|
-
|
|
3331
|
+
return (d, h) => (a(), m("div", Ia, [
|
|
3332
|
+
f("div", Sa, [
|
|
3326
3333
|
e.items.length > 0 ? (a(), m("div", {
|
|
3327
3334
|
key: 0,
|
|
3328
3335
|
class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[900px]",
|
|
@@ -3333,7 +3340,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3333
3340
|
class: b([s(i.id), "capitalize"])
|
|
3334
3341
|
}, V(i.header), 3))), 128))
|
|
3335
3342
|
], 4)) : I("", !0),
|
|
3336
|
-
|
|
3343
|
+
f("div", {
|
|
3337
3344
|
class: b(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
|
|
3338
3345
|
}, [
|
|
3339
3346
|
(a(!0), m(K, null, G(e.items, (i) => (a(), m("div", {
|
|
@@ -3341,38 +3348,38 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3341
3348
|
class: b(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
|
|
3342
3349
|
style: ne({ paddingRight: r.value }),
|
|
3343
3350
|
tabindex: "0",
|
|
3344
|
-
onClick: (
|
|
3345
|
-
onKeypress: (
|
|
3351
|
+
onClick: (p) => n(i),
|
|
3352
|
+
onKeypress: (p) => n(i)
|
|
3346
3353
|
}, [
|
|
3347
|
-
(a(!0), m(K, null, G(e.columns, (
|
|
3348
|
-
key:
|
|
3349
|
-
class: b(o(
|
|
3354
|
+
(a(!0), m(K, null, G(e.columns, (p, x) => (a(), m("div", {
|
|
3355
|
+
key: p.id,
|
|
3356
|
+
class: b(o(p.id, x)),
|
|
3350
3357
|
tabindex: "0"
|
|
3351
3358
|
}, [
|
|
3352
|
-
D(d.$slots,
|
|
3353
|
-
|
|
3359
|
+
D(d.$slots, p.id, { item: i }, () => [
|
|
3360
|
+
Va
|
|
3354
3361
|
])
|
|
3355
3362
|
], 2))), 128)),
|
|
3356
|
-
|
|
3357
|
-
(a(!0), m(K, null, G(e.buttons, (
|
|
3358
|
-
key:
|
|
3363
|
+
f("div", za, [
|
|
3364
|
+
(a(!0), m(K, null, G(e.buttons, (p) => (a(), m("div", {
|
|
3365
|
+
key: p.label
|
|
3359
3366
|
}, [
|
|
3360
3367
|
z(l(oe), {
|
|
3361
|
-
"icon-left":
|
|
3368
|
+
"icon-left": p.icon,
|
|
3362
3369
|
size: "sm",
|
|
3363
3370
|
color: "secondary",
|
|
3364
3371
|
"hide-text": "",
|
|
3365
|
-
class: b(
|
|
3366
|
-
onClick: pe((x) =>
|
|
3372
|
+
class: b(p.class),
|
|
3373
|
+
onClick: pe((x) => p.action(i), ["stop"])
|
|
3367
3374
|
}, null, 8, ["icon-left", "class", "onClick"])
|
|
3368
3375
|
]))), 128))
|
|
3369
3376
|
])
|
|
3370
|
-
], 46,
|
|
3377
|
+
], 46, Ba))), 128))
|
|
3371
3378
|
], 2)
|
|
3372
3379
|
])
|
|
3373
3380
|
]));
|
|
3374
3381
|
}
|
|
3375
|
-
}),
|
|
3382
|
+
}), Oa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, La = { class: "inline-flex items-center space-x-1" }, Ma = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Aa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Pa = { class: "inline-flex items-center space-x-1" }, _a = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Qo = /* @__PURE__ */ _({
|
|
3376
3383
|
__name: "InfiniteLoading",
|
|
3377
3384
|
props: {
|
|
3378
3385
|
settings: null,
|
|
@@ -3400,18 +3407,18 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3400
3407
|
})
|
|
3401
3408
|
]),
|
|
3402
3409
|
complete: M(() => [
|
|
3403
|
-
|
|
3404
|
-
|
|
3410
|
+
f("div", Oa, [
|
|
3411
|
+
f("div", La, [
|
|
3405
3412
|
z(l(ts), { class: "w-5 h-5 text-success" }),
|
|
3406
|
-
|
|
3413
|
+
Ma
|
|
3407
3414
|
])
|
|
3408
3415
|
])
|
|
3409
3416
|
]),
|
|
3410
3417
|
error: M(({ retry: n }) => [
|
|
3411
|
-
|
|
3412
|
-
|
|
3418
|
+
f("div", Aa, [
|
|
3419
|
+
f("div", Pa, [
|
|
3413
3420
|
z(l(ss), { class: "w-5 h-5 text-danger" }),
|
|
3414
|
-
|
|
3421
|
+
_a
|
|
3415
3422
|
]),
|
|
3416
3423
|
e.allowRetry ? (a(), L(oe, {
|
|
3417
3424
|
key: 0,
|
|
@@ -3428,10 +3435,10 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3428
3435
|
}, 16)) : I("", !0)
|
|
3429
3436
|
], 512));
|
|
3430
3437
|
}
|
|
3431
|
-
}),
|
|
3438
|
+
}), ja = { class: "relative group" }, Ta = {
|
|
3432
3439
|
key: 0,
|
|
3433
3440
|
class: "absolute -inset-1 bg-blue-300 dark:bg-blue-500 opacity-5 dark:opacity-0 rounded-md blur-sm group-hover:opacity-60 dark:group-hover:opacity-30 transition duration-500"
|
|
3434
|
-
},
|
|
3441
|
+
}, Jo = /* @__PURE__ */ _({
|
|
3435
3442
|
__name: "Panel",
|
|
3436
3443
|
props: {
|
|
3437
3444
|
/**
|
|
@@ -3477,14 +3484,14 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3477
3484
|
const h = ["rounded-lg"];
|
|
3478
3485
|
return s.noShadow || h.push("shadow"), s.ring && h.push("ring-outline-2 hover:ring-2"), s.panelClasses && h.push(s.panelClasses), h.join(" ");
|
|
3479
3486
|
});
|
|
3480
|
-
return (h, i) => (a(), m("div",
|
|
3481
|
-
e.fancyGlow ? (a(), m("div",
|
|
3487
|
+
return (h, i) => (a(), m("div", ja, [
|
|
3488
|
+
e.fancyGlow ? (a(), m("div", Ta)) : I("", !0),
|
|
3482
3489
|
(a(), L(Q(e.form ? "form" : "div"), {
|
|
3483
3490
|
class: b([
|
|
3484
3491
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
3485
3492
|
d.value
|
|
3486
3493
|
]),
|
|
3487
|
-
onSubmit: i[0] || (i[0] = (
|
|
3494
|
+
onSubmit: i[0] || (i[0] = (p) => r("submit", p))
|
|
3488
3495
|
}, {
|
|
3489
3496
|
default: M(() => [
|
|
3490
3497
|
h.$slots.header ? (a(), m("div", {
|
|
@@ -3493,7 +3500,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3493
3500
|
}, [
|
|
3494
3501
|
D(h.$slots, "header")
|
|
3495
3502
|
], 2)) : I("", !0),
|
|
3496
|
-
|
|
3503
|
+
f("div", {
|
|
3497
3504
|
class: b(["grow", n.value])
|
|
3498
3505
|
}, [
|
|
3499
3506
|
D(h.$slots, "default")
|
|
@@ -3509,7 +3516,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3509
3516
|
}, 40, ["class"]))
|
|
3510
3517
|
]));
|
|
3511
3518
|
}
|
|
3512
|
-
}),
|
|
3519
|
+
}), Fa = { class: "flex-shrink-0" }, Ra = /* @__PURE__ */ f("span", { class: "sr-only" }, "Dismiss", -1), Yo = /* @__PURE__ */ _({
|
|
3513
3520
|
__name: "Alert",
|
|
3514
3521
|
props: {
|
|
3515
3522
|
color: { default: "success" },
|
|
@@ -3599,7 +3606,7 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3599
3606
|
break;
|
|
3600
3607
|
}
|
|
3601
3608
|
return u.join(" ");
|
|
3602
|
-
}),
|
|
3609
|
+
}), p = c(() => {
|
|
3603
3610
|
var k;
|
|
3604
3611
|
const u = ["flex"];
|
|
3605
3612
|
s.value || u.push("grow justify-end");
|
|
@@ -3686,19 +3693,19 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3686
3693
|
return (u, S) => (a(), m("div", {
|
|
3687
3694
|
class: b(["rounded-md", [n.value, x.value]])
|
|
3688
3695
|
}, [
|
|
3689
|
-
|
|
3696
|
+
f("div", {
|
|
3690
3697
|
class: b(["flex", d.value])
|
|
3691
3698
|
}, [
|
|
3692
|
-
|
|
3699
|
+
f("div", Fa, [
|
|
3693
3700
|
(a(), L(Q(o.value), {
|
|
3694
3701
|
class: b(y.value),
|
|
3695
3702
|
"aria-hidden": "true"
|
|
3696
3703
|
}, null, 8, ["class"]))
|
|
3697
3704
|
]),
|
|
3698
|
-
|
|
3705
|
+
f("div", {
|
|
3699
3706
|
class: b(h.value)
|
|
3700
3707
|
}, [
|
|
3701
|
-
|
|
3708
|
+
f("h3", {
|
|
3702
3709
|
class: b(["text-sm", [s.value ? "font-medium" : ""]])
|
|
3703
3710
|
}, [
|
|
3704
3711
|
D(u.$slots, "title", {}, () => [
|
|
@@ -3713,8 +3720,8 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3713
3720
|
R(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
3714
3721
|
])
|
|
3715
3722
|
], 2)) : I("", !0),
|
|
3716
|
-
|
|
3717
|
-
class: b(
|
|
3723
|
+
f("div", {
|
|
3724
|
+
class: b(p.value)
|
|
3718
3725
|
}, [
|
|
3719
3726
|
(a(!0), m(K, null, G(e.actions || [], (k, $) => (a(), L(oe, {
|
|
3720
3727
|
key: $,
|
|
@@ -3735,12 +3742,12 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3735
3742
|
key: 0,
|
|
3736
3743
|
class: b(["flex", [s.value ? "items-start" : "items-center"]])
|
|
3737
3744
|
}, [
|
|
3738
|
-
|
|
3745
|
+
f("button", {
|
|
3739
3746
|
type: "button",
|
|
3740
3747
|
class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", v.value]),
|
|
3741
3748
|
onClick: S[0] || (S[0] = (k) => u.$emit("dismiss"))
|
|
3742
3749
|
}, [
|
|
3743
|
-
|
|
3750
|
+
Ra,
|
|
3744
3751
|
z(l(ye), {
|
|
3745
3752
|
class: "h-5 w-5",
|
|
3746
3753
|
"aria-hidden": "true"
|
|
@@ -3751,22 +3758,22 @@ const xa = ["disabled", "onClick"], Ko = /* @__PURE__ */ P({
|
|
|
3751
3758
|
], 2));
|
|
3752
3759
|
}
|
|
3753
3760
|
});
|
|
3754
|
-
function
|
|
3761
|
+
function er(e) {
|
|
3755
3762
|
var u, S;
|
|
3756
|
-
const { get: t, initialState: r, readOptions: s, set: o, asyncRead: n = !0, debugging: d } = e, h = d == null ? void 0 : d.log, i = () => (new Error("Trace:").stack || "").substring(7),
|
|
3763
|
+
const { get: t, initialState: r, readOptions: s, set: o, asyncRead: n = !0, debugging: d } = e, h = d == null ? void 0 : d.log, i = () => (new Error("Trace:").stack || "").substring(7), p = ((S = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : S.logger) || console.debug, x = h && !h.writesOnly ? () => {
|
|
3757
3764
|
const k = t();
|
|
3758
|
-
return
|
|
3759
|
-
} : t, y = h && !h.readsOnly ? (k) => (
|
|
3765
|
+
return p(`debugging: '${h.name}' read`, k, i()), k;
|
|
3766
|
+
} : t, y = h && !h.readsOnly ? (k) => (p(`debugging: '${h.name}' written to`, k, i()), o(k)) : o, v = n ? ys(x, r, s) : c(x), g = c(() => v.value);
|
|
3760
3767
|
return g.update = y, g;
|
|
3761
3768
|
}
|
|
3762
|
-
const
|
|
3769
|
+
const Da = /* @__PURE__ */ _({
|
|
3763
3770
|
__name: "ContextManager",
|
|
3764
3771
|
setup(e, { expose: t }) {
|
|
3765
|
-
const s =
|
|
3772
|
+
const s = Pt().provides, o = Object.getOwnPropertySymbols(s).find(
|
|
3766
3773
|
(v) => v.description === "ComboboxContext"
|
|
3767
3774
|
);
|
|
3768
3775
|
o || console.error("FormTagsContextManager ctx key not found!");
|
|
3769
|
-
const n =
|
|
3776
|
+
const n = _t(o || "__undefined");
|
|
3770
3777
|
return n || console.error("FormTagsContextManager ctx not found!"), t({ goUp: () => {
|
|
3771
3778
|
n == null || n.goToOption(1);
|
|
3772
3779
|
}, goDown: () => {
|
|
@@ -3779,13 +3786,13 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3779
3786
|
n == null || n.selectActiveOption();
|
|
3780
3787
|
}, isOpen: () => (n == null ? void 0 : n.comboboxState.value) === 0 }), (v, g) => D(v.$slots, "default");
|
|
3781
3788
|
}
|
|
3782
|
-
}),
|
|
3789
|
+
}), Ea = ["for"], Ua = ["disabled", "placeholder", "onKeydown"], qa = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), Wa = { key: 1 }, Ha = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, [
|
|
3783
3790
|
/* @__PURE__ */ R(" Press "),
|
|
3784
|
-
/* @__PURE__ */
|
|
3791
|
+
/* @__PURE__ */ f("strong", null, "Enter"),
|
|
3785
3792
|
/* @__PURE__ */ R(" to create tag ⚡ ")
|
|
3786
|
-
], -1),
|
|
3787
|
-
|
|
3788
|
-
],
|
|
3793
|
+
], -1), Ka = [
|
|
3794
|
+
Ha
|
|
3795
|
+
], Ga = ["id"], tr = /* @__PURE__ */ _({
|
|
3789
3796
|
__name: "Tags",
|
|
3790
3797
|
props: {
|
|
3791
3798
|
name: null,
|
|
@@ -3809,10 +3816,10 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3809
3816
|
},
|
|
3810
3817
|
emits: ["update:modelValue", "change", "clear"],
|
|
3811
3818
|
setup(e, { expose: t, emit: r }) {
|
|
3812
|
-
const s = (
|
|
3819
|
+
const s = (P) => P.type === "input", o = r, n = e, d = O(null), { focused: h } = xs(d), i = O(
|
|
3813
3820
|
null
|
|
3814
3821
|
), {
|
|
3815
|
-
coreInputClasses:
|
|
3822
|
+
coreInputClasses: p,
|
|
3816
3823
|
coreClasses: x,
|
|
3817
3824
|
labelClasses: y,
|
|
3818
3825
|
title: v,
|
|
@@ -3832,8 +3839,8 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3832
3839
|
// }
|
|
3833
3840
|
}), A = O([]), w = O(!1), U = O(!1), q = O(""), E = c({
|
|
3834
3841
|
get: () => T.value || [],
|
|
3835
|
-
set: (
|
|
3836
|
-
T.value = Ft(
|
|
3842
|
+
set: (P) => {
|
|
3843
|
+
T.value = Ft(P).filter((F) => !!F.length);
|
|
3837
3844
|
}
|
|
3838
3845
|
}), Le = c(() => {
|
|
3839
3846
|
switch (n.size) {
|
|
@@ -3848,61 +3855,61 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3848
3855
|
return "h-8";
|
|
3849
3856
|
}
|
|
3850
3857
|
}), re = c(() => n.showClear && !!E.value.length), Me = c(() => {
|
|
3851
|
-
const
|
|
3858
|
+
const P = [
|
|
3852
3859
|
x.value,
|
|
3853
3860
|
n.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
|
|
3854
3861
|
];
|
|
3855
|
-
return re.value && ($.value || n.showRequired) ?
|
|
3856
|
-
}), Ae = (
|
|
3862
|
+
return re.value && ($.value || n.showRequired) ? P.push("pr-14") : (re.value || $.value || n.showRequired) && P.push("pr-8"), $.value ? (P.push("border-2 border-danger text-danger-darker"), h.value && P.push("ring-1 ring-danger")) : (P.push("border-2 border-transparent"), h.value && P.push("ring-2 ring-outline-2")), P.join(" ");
|
|
3863
|
+
}), Ae = (P) => {
|
|
3857
3864
|
if (n.disabled)
|
|
3858
3865
|
return;
|
|
3859
|
-
const F = E.value.indexOf(
|
|
3866
|
+
const F = E.value.indexOf(P);
|
|
3860
3867
|
if (F !== -1) {
|
|
3861
3868
|
const j = E.value.slice();
|
|
3862
3869
|
j.splice(F, 1), E.value = j;
|
|
3863
3870
|
}
|
|
3864
3871
|
}, me = () => {
|
|
3865
|
-
var
|
|
3866
|
-
(
|
|
3867
|
-
}, Y = (
|
|
3868
|
-
if (
|
|
3872
|
+
var P;
|
|
3873
|
+
(P = d.value) == null || P.blur(), U.value = !1;
|
|
3874
|
+
}, Y = (P) => {
|
|
3875
|
+
if (P.key !== "Backspace" || q.value.length)
|
|
3869
3876
|
return;
|
|
3870
3877
|
const F = E.value.slice();
|
|
3871
3878
|
F.pop(), E.value = F, U.value = !1;
|
|
3872
3879
|
}, ce = () => {
|
|
3873
|
-
var
|
|
3874
|
-
(
|
|
3880
|
+
var P, F, j;
|
|
3881
|
+
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goUp() : (j = i.value) == null || j.open();
|
|
3875
3882
|
}, X = () => {
|
|
3876
|
-
var
|
|
3877
|
-
(
|
|
3883
|
+
var P, F, j;
|
|
3884
|
+
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goDown() : (j = i.value) == null || j.open();
|
|
3878
3885
|
}, he = async () => {
|
|
3879
3886
|
n.getAutocompleteItems && (w.value = !0, A.value = await Promise.resolve(
|
|
3880
3887
|
n.getAutocompleteItems(q.value)
|
|
3881
3888
|
), w.value = !1);
|
|
3882
|
-
},
|
|
3883
|
-
w.value = !0,
|
|
3884
|
-
}, xe = (
|
|
3889
|
+
}, Pe = He(he, 1e3), _e = () => {
|
|
3890
|
+
w.value = !0, Pe();
|
|
3891
|
+
}, xe = (P, F) => {
|
|
3885
3892
|
var Z, ee;
|
|
3886
|
-
if (s(
|
|
3893
|
+
if (s(P) ? P.data === " " || P.data === "," || P.data === ";" : !0) {
|
|
3887
3894
|
let ke = !1;
|
|
3888
3895
|
if ((Z = i.value) != null && Z.isOpen() && A.value.length && !F)
|
|
3889
3896
|
(ee = i.value) == null || ee.selectActive(), ke = !0;
|
|
3890
3897
|
else {
|
|
3891
|
-
const C = q.value.trim().substring(0, q.value.length - (s(
|
|
3898
|
+
const C = q.value.trim().substring(0, q.value.length - (s(P) ? 1 : 0)), H = E.value.includes(C);
|
|
3892
3899
|
C.length > 0 && !H && (E.value = [...E.value, C], ke = !0);
|
|
3893
3900
|
}
|
|
3894
3901
|
ke && (q.value = "", U.value = !1);
|
|
3895
3902
|
} else
|
|
3896
3903
|
U.value = !!q.value.length;
|
|
3897
3904
|
};
|
|
3898
|
-
return fe(U, (
|
|
3905
|
+
return fe(U, (P, F) => {
|
|
3899
3906
|
var j, Z;
|
|
3900
|
-
|
|
3907
|
+
P && !F ? n.getAutocompleteItems && ((j = i.value) == null || j.open()) : !P && F && ((Z = i.value) == null || Z.close());
|
|
3901
3908
|
}), fe(q, () => {
|
|
3902
|
-
|
|
3909
|
+
_e();
|
|
3903
3910
|
}), ae(() => {
|
|
3904
3911
|
he();
|
|
3905
|
-
}), t({ resolveAutocompleteItems: he }), (
|
|
3912
|
+
}), t({ resolveAutocompleteItems: he }), (P, F) => (a(), L(l(Ts), {
|
|
3906
3913
|
modelValue: E.value,
|
|
3907
3914
|
"onUpdate:modelValue": F[5] || (F[5] = (j) => E.value = j),
|
|
3908
3915
|
as: "div",
|
|
@@ -3911,18 +3918,18 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3911
3918
|
class: b([e.wrapperClasses])
|
|
3912
3919
|
}, {
|
|
3913
3920
|
default: M(() => [
|
|
3914
|
-
z(
|
|
3921
|
+
z(Da, {
|
|
3915
3922
|
ref_key: "ctxManager",
|
|
3916
3923
|
ref: i
|
|
3917
3924
|
}, {
|
|
3918
3925
|
default: M(() => [
|
|
3919
|
-
|
|
3926
|
+
f("label", {
|
|
3920
3927
|
for: e.name,
|
|
3921
3928
|
class: b(l(y))
|
|
3922
3929
|
}, [
|
|
3923
|
-
|
|
3924
|
-
], 10,
|
|
3925
|
-
|
|
3930
|
+
f("span", null, V(l(v)), 1)
|
|
3931
|
+
], 10, Ea),
|
|
3932
|
+
f("div", {
|
|
3926
3933
|
class: b(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Me.value])
|
|
3927
3934
|
}, [
|
|
3928
3935
|
(a(!0), m(K, null, G(E.value, (j) => (a(), L(Xe, {
|
|
@@ -3937,12 +3944,12 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3937
3944
|
]),
|
|
3938
3945
|
_: 2
|
|
3939
3946
|
}, 1032, ["icon-left", "onClickIcon"]))), 128)),
|
|
3940
|
-
be(
|
|
3947
|
+
be(f("input", {
|
|
3941
3948
|
ref_key: "inputEl",
|
|
3942
3949
|
ref: d,
|
|
3943
3950
|
"onUpdate:modelValue": F[0] || (F[0] = (j) => q.value = j),
|
|
3944
3951
|
disabled: e.disabled,
|
|
3945
|
-
class: b(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(
|
|
3952
|
+
class: b(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(p), Le.value]]),
|
|
3946
3953
|
style: { "flex-basis": "70px", "min-width": "70px" },
|
|
3947
3954
|
placeholder: E.value.length ? void 0 : e.placeholder,
|
|
3948
3955
|
onInput: xe,
|
|
@@ -3955,7 +3962,7 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3955
3962
|
ve(X, ["arrow-down"])
|
|
3956
3963
|
],
|
|
3957
3964
|
onBlur: F[2] || (F[2] = (j) => U.value = !1)
|
|
3958
|
-
}, null, 42,
|
|
3965
|
+
}, null, 42, Ua), [
|
|
3959
3966
|
[qe, q.value]
|
|
3960
3967
|
]),
|
|
3961
3968
|
re.value ? (a(), m("a", {
|
|
@@ -3967,7 +3974,7 @@ const Fa = /* @__PURE__ */ P({
|
|
|
3967
3974
|
onKeydown: F[4] || (F[4] = //@ts-ignore
|
|
3968
3975
|
(...j) => l(B) && l(B)(...j))
|
|
3969
3976
|
}, [
|
|
3970
|
-
|
|
3977
|
+
qa,
|
|
3971
3978
|
z(l(ye), {
|
|
3972
3979
|
class: "h-5 w-5 text-foreground",
|
|
3973
3980
|
"aria-hidden": "true"
|
|
@@ -4005,20 +4012,20 @@ const Fa = /* @__PURE__ */ P({
|
|
|
4005
4012
|
}, [
|
|
4006
4013
|
z(Qe, { loading: !0 })
|
|
4007
4014
|
], 2)) : I("", !0),
|
|
4008
|
-
!A.value.length && !w.value ? (a(), m("div",
|
|
4015
|
+
!A.value.length && !w.value ? (a(), m("div", Wa, Ka)) : I("", !0),
|
|
4009
4016
|
A.value.length ? (a(!0), m(K, { key: 2 }, G(A.value, (j) => (a(), L(l(Rs), {
|
|
4010
4017
|
key: j,
|
|
4011
4018
|
as: "template",
|
|
4012
4019
|
value: j
|
|
4013
4020
|
}, {
|
|
4014
4021
|
default: M(({ selected: Z, active: ee }) => [
|
|
4015
|
-
|
|
4022
|
+
f("li", {
|
|
4016
4023
|
class: b(["relative cursor-pointer select-none py-1.5 pl-3", {
|
|
4017
4024
|
"text-primary": ee,
|
|
4018
4025
|
"text-foreground": !ee
|
|
4019
4026
|
}])
|
|
4020
4027
|
}, [
|
|
4021
|
-
|
|
4028
|
+
f("span", {
|
|
4022
4029
|
class: b(["block truncate", { "font-medium": Z, "font-normal": !Z }])
|
|
4023
4030
|
}, V(j), 3),
|
|
4024
4031
|
Z ? (a(), m("span", {
|
|
@@ -4044,7 +4051,7 @@ const Fa = /* @__PURE__ */ P({
|
|
|
4044
4051
|
key: 0,
|
|
4045
4052
|
id: l(u),
|
|
4046
4053
|
class: b(l(k))
|
|
4047
|
-
}, V(l(g)), 11,
|
|
4054
|
+
}, V(l(g)), 11, Ga)) : I("", !0)
|
|
4048
4055
|
]),
|
|
4049
4056
|
_: 1
|
|
4050
4057
|
}, 512)
|
|
@@ -4135,10 +4142,10 @@ function Ct(e) {
|
|
|
4135
4142
|
);
|
|
4136
4143
|
return { heightClasses: r, widthClasses: s, sizeClasses: d, iconClasses: n };
|
|
4137
4144
|
}
|
|
4138
|
-
const
|
|
4145
|
+
const Xa = {
|
|
4139
4146
|
key: 1,
|
|
4140
4147
|
class: "flex h-full w-full select-none items-center justify-center"
|
|
4141
|
-
},
|
|
4148
|
+
}, Za = { key: 2 }, De = /* @__PURE__ */ _({
|
|
4142
4149
|
__name: "Avatar",
|
|
4143
4150
|
props: {
|
|
4144
4151
|
user: { default: null },
|
|
@@ -4153,10 +4160,10 @@ const Ka = {
|
|
|
4153
4160
|
var v, g, u;
|
|
4154
4161
|
if (!((v = t.user) != null && v.name.length))
|
|
4155
4162
|
return;
|
|
4156
|
-
const
|
|
4163
|
+
const p = t.user.name.split(" "), x = ((g = p[0]) == null ? void 0 : g[0]) || "", y = ((u = p[1]) == null ? void 0 : u[0]) || "";
|
|
4157
4164
|
return t.size === "sm" || t.size === "xs" ? x : x + y;
|
|
4158
4165
|
}), n = c(() => t.noBorder ? "" : "border-2 border-foundation"), d = c(() => t.noBg ? "" : "bg-primary"), h = c(() => t.hoverEffect ? "hover:border-primary focus:border-primary active:scale-95" : ""), i = c(() => t.active ? "border-primary" : "");
|
|
4159
|
-
return (
|
|
4166
|
+
return (p, x) => (a(), m("div", {
|
|
4160
4167
|
class: b([
|
|
4161
4168
|
"text-foreground-on-primary flex shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold uppercase transition",
|
|
4162
4169
|
l(r),
|
|
@@ -4166,24 +4173,24 @@ const Ka = {
|
|
|
4166
4173
|
i.value
|
|
4167
4174
|
])
|
|
4168
4175
|
}, [
|
|
4169
|
-
D(
|
|
4176
|
+
D(p.$slots, "default", {}, () => {
|
|
4170
4177
|
var y;
|
|
4171
4178
|
return [
|
|
4172
4179
|
(y = e.user) != null && y.avatar ? (a(), m("div", {
|
|
4173
4180
|
key: 0,
|
|
4174
4181
|
class: "h-full w-full bg-cover bg-center bg-no-repeat",
|
|
4175
4182
|
style: ne({ backgroundImage: `url('${e.user.avatar}')` })
|
|
4176
|
-
}, null, 4)) : o.value ? (a(), m("div",
|
|
4183
|
+
}, null, 4)) : o.value ? (a(), m("div", Xa, V(o.value), 1)) : (a(), m("div", Za, [
|
|
4177
4184
|
z(l(Kt), {
|
|
4178
4185
|
class: b(l(s))
|
|
4179
4186
|
}, null, 8, ["class"])
|
|
4180
4187
|
]))
|
|
4181
4188
|
];
|
|
4182
4189
|
}),
|
|
4183
|
-
D(
|
|
4190
|
+
D(p.$slots, "absolute-anchor")
|
|
4184
4191
|
], 2));
|
|
4185
4192
|
}
|
|
4186
|
-
}),
|
|
4193
|
+
}), sr = /* @__PURE__ */ _({
|
|
4187
4194
|
__name: "AvatarGroup",
|
|
4188
4195
|
props: {
|
|
4189
4196
|
users: { default: () => [] },
|
|
@@ -4202,12 +4209,12 @@ const Ka = {
|
|
|
4202
4209
|
), i = c(
|
|
4203
4210
|
() => t.maxCount ? t.users.slice(0, t.maxCount) : t.users
|
|
4204
4211
|
);
|
|
4205
|
-
return (
|
|
4212
|
+
return (p, x) => (a(), m("div", {
|
|
4206
4213
|
ref_key: "elementToWatchForChanges",
|
|
4207
4214
|
ref: r,
|
|
4208
4215
|
class: b(`flex ${e.overlap ? "-space-x-2" : ""}`)
|
|
4209
4216
|
}, [
|
|
4210
|
-
|
|
4217
|
+
f("div", {
|
|
4211
4218
|
ref_key: "itemContainer",
|
|
4212
4219
|
ref: s,
|
|
4213
4220
|
class: b(`flex flex-wrap overflow-hidden ${e.overlap ? "-space-x-2 " : ""} ${l(n)}`)
|
|
@@ -4229,7 +4236,7 @@ const Ka = {
|
|
|
4229
4236
|
}, 8, ["size"])) : I("", !0)
|
|
4230
4237
|
], 2));
|
|
4231
4238
|
}
|
|
4232
|
-
}),
|
|
4239
|
+
}), Na = /* @__PURE__ */ _({
|
|
4233
4240
|
__name: "Icon",
|
|
4234
4241
|
props: {
|
|
4235
4242
|
loading: { type: Boolean, default: !0 },
|
|
@@ -4255,13 +4262,13 @@ const Ka = {
|
|
|
4255
4262
|
class: b(r.value)
|
|
4256
4263
|
}, null, 8, ["class"]));
|
|
4257
4264
|
}
|
|
4258
|
-
}),
|
|
4265
|
+
}), Qa = { class: "flex flex-col items-center space-y-2" }, Ja = {
|
|
4259
4266
|
key: 1,
|
|
4260
4267
|
class: "relative group"
|
|
4261
|
-
},
|
|
4268
|
+
}, Ya = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, eo = {
|
|
4262
4269
|
key: 2,
|
|
4263
4270
|
class: "w-full text-center text-danger text-sm"
|
|
4264
|
-
},
|
|
4271
|
+
}, nr = /* @__PURE__ */ _({
|
|
4265
4272
|
__name: "AvatarEditable",
|
|
4266
4273
|
props: nt({
|
|
4267
4274
|
modelValue: null,
|
|
@@ -4279,13 +4286,13 @@ const Ka = {
|
|
|
4279
4286
|
setup(e, { expose: t, emit: r }) {
|
|
4280
4287
|
const s = jt({
|
|
4281
4288
|
loader: () => import("./AvatarEditor-ce4e7960.js"),
|
|
4282
|
-
loadingComponent:
|
|
4289
|
+
loadingComponent: Na,
|
|
4283
4290
|
delay: 100
|
|
4284
4291
|
}), o = r, n = e, { value: d, errorMessage: h } = Ie(n.name, n.rules, {
|
|
4285
4292
|
validateOnMount: n.validateOnMount,
|
|
4286
4293
|
validateOnValueUpdate: n.validateOnValueUpdate,
|
|
4287
4294
|
initialValue: n.modelValue || void 0
|
|
4288
|
-
}), i = it(e, "editMode", { local: !0 }),
|
|
4295
|
+
}), i = it(e, "editMode", { local: !0 }), p = c(
|
|
4289
4296
|
() => ({
|
|
4290
4297
|
avatar: d.value,
|
|
4291
4298
|
name: n.placeholder
|
|
@@ -4293,20 +4300,20 @@ const Ka = {
|
|
|
4293
4300
|
), x = (g) => {
|
|
4294
4301
|
d.value = g, o("save", g);
|
|
4295
4302
|
};
|
|
4296
|
-
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (g, u) => (a(), m("div",
|
|
4303
|
+
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (g, u) => (a(), m("div", Qa, [
|
|
4297
4304
|
i.value ? (a(), L(l(s), {
|
|
4298
4305
|
key: 0,
|
|
4299
|
-
user:
|
|
4306
|
+
user: p.value,
|
|
4300
4307
|
disabled: e.disabled,
|
|
4301
4308
|
size: e.size,
|
|
4302
4309
|
onCancel: u[0] || (u[0] = (S) => i.value = !1),
|
|
4303
4310
|
onSave: x
|
|
4304
|
-
}, null, 8, ["user", "disabled", "size"])) : (a(), m("div",
|
|
4311
|
+
}, null, 8, ["user", "disabled", "size"])) : (a(), m("div", Ja, [
|
|
4305
4312
|
z(De, {
|
|
4306
|
-
user:
|
|
4313
|
+
user: p.value,
|
|
4307
4314
|
size: e.size
|
|
4308
4315
|
}, null, 8, ["user", "size"]),
|
|
4309
|
-
|
|
4316
|
+
f("div", Ya, [
|
|
4310
4317
|
z(oe, {
|
|
4311
4318
|
disabled: e.disabled,
|
|
4312
4319
|
color: "secondary",
|
|
@@ -4319,7 +4326,7 @@ const Ka = {
|
|
|
4319
4326
|
}, 8, ["disabled"])
|
|
4320
4327
|
])
|
|
4321
4328
|
])),
|
|
4322
|
-
l(h) ? (a(), m("div",
|
|
4329
|
+
l(h) ? (a(), m("div", eo, V(l(h)), 1)) : I("", !0)
|
|
4323
4330
|
]));
|
|
4324
4331
|
}
|
|
4325
4332
|
});
|
|
@@ -4332,20 +4339,20 @@ class ue extends Error {
|
|
|
4332
4339
|
* Default message if none is passed
|
|
4333
4340
|
*/
|
|
4334
4341
|
se(ue, "defaultMessage", "Unexpected error occurred");
|
|
4335
|
-
class Ya extends ue {
|
|
4336
|
-
}
|
|
4337
|
-
se(Ya, "defaultMessage", "An unexpected logic error occurred!");
|
|
4338
|
-
class eo extends ue {
|
|
4339
|
-
}
|
|
4340
|
-
se(eo, "defaultMessage", "Attempting to access an uninitialized resource");
|
|
4341
4342
|
class to extends ue {
|
|
4342
4343
|
}
|
|
4343
|
-
se(to, "defaultMessage", "
|
|
4344
|
+
se(to, "defaultMessage", "An unexpected logic error occurred!");
|
|
4344
4345
|
class so extends ue {
|
|
4345
4346
|
}
|
|
4346
|
-
se(so, "defaultMessage", "
|
|
4347
|
+
se(so, "defaultMessage", "Attempting to access an uninitialized resource");
|
|
4348
|
+
class no extends ue {
|
|
4349
|
+
}
|
|
4350
|
+
se(no, "defaultMessage", "getCurrentInstance() returned null. Method must be called at the top of a setup function");
|
|
4351
|
+
class lo extends ue {
|
|
4352
|
+
}
|
|
4353
|
+
se(lo, "defaultMessage", "Operation not supported in current (server or client) environment");
|
|
4347
4354
|
var Je = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(Je || {});
|
|
4348
|
-
function
|
|
4355
|
+
function ao(e, t) {
|
|
4349
4356
|
const r = Rt(
|
|
4350
4357
|
Object.values(Je),
|
|
4351
4358
|
t
|
|
@@ -4365,7 +4372,7 @@ function no(e, t) {
|
|
|
4365
4372
|
return !0;
|
|
4366
4373
|
break;
|
|
4367
4374
|
}
|
|
4368
|
-
const s = Dt(t, r), o =
|
|
4375
|
+
const s = Dt(t, r), o = oo(e.name);
|
|
4369
4376
|
if (!o)
|
|
4370
4377
|
return new $t();
|
|
4371
4378
|
for (const n of s)
|
|
@@ -4373,11 +4380,11 @@ function no(e, t) {
|
|
|
4373
4380
|
return !0;
|
|
4374
4381
|
return new It();
|
|
4375
4382
|
}
|
|
4376
|
-
function
|
|
4383
|
+
function oo(e) {
|
|
4377
4384
|
const t = e.split(".").pop() || null;
|
|
4378
4385
|
return t ? `.${t}` : null;
|
|
4379
4386
|
}
|
|
4380
|
-
function
|
|
4387
|
+
function ro(e) {
|
|
4381
4388
|
return e.startsWith(".") || Object.values(Je).includes(e);
|
|
4382
4389
|
}
|
|
4383
4390
|
function rt(e) {
|
|
@@ -4393,7 +4400,7 @@ function rt(e) {
|
|
|
4393
4400
|
const o = s / 1024;
|
|
4394
4401
|
return `${t(o)}GB`;
|
|
4395
4402
|
}
|
|
4396
|
-
function
|
|
4403
|
+
function io(e) {
|
|
4397
4404
|
const t = {
|
|
4398
4405
|
name: e.name,
|
|
4399
4406
|
lastModified: e.lastModified,
|
|
@@ -4408,25 +4415,25 @@ se($t, "defaultMessage", "The selected file has a missing extension");
|
|
|
4408
4415
|
class It extends ue {
|
|
4409
4416
|
}
|
|
4410
4417
|
se(It, "defaultMessage", "The selected file type is forbidden");
|
|
4411
|
-
var
|
|
4412
|
-
function
|
|
4418
|
+
var uo = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2] = "Failure", e))(uo || {});
|
|
4419
|
+
function co(e) {
|
|
4413
4420
|
if (!e)
|
|
4414
4421
|
return;
|
|
4415
|
-
const t = e.split(",").map((r) =>
|
|
4422
|
+
const t = e.split(",").map((r) => ro(r) ? r : null).filter((r) => r !== null);
|
|
4416
4423
|
return t.length ? t : void 0;
|
|
4417
4424
|
}
|
|
4418
|
-
function
|
|
4419
|
-
const { disabled: t, accept: r, multiple: s, sizeLimit: o, countLimit: n } = e, d = c(() =>
|
|
4420
|
-
const
|
|
4425
|
+
function fo(e) {
|
|
4426
|
+
const { disabled: t, accept: r, multiple: s, sizeLimit: o, countLimit: n } = e, d = c(() => co(l(r))), h = (i) => {
|
|
4427
|
+
const p = [], x = d.value;
|
|
4421
4428
|
for (const y of i) {
|
|
4422
|
-
const v =
|
|
4423
|
-
if (!
|
|
4424
|
-
if (g &&
|
|
4429
|
+
const v = io(y), g = l(s) ? l(n) : 1;
|
|
4430
|
+
if (!p.find((u) => u.id === v)) {
|
|
4431
|
+
if (g && p.length >= g)
|
|
4425
4432
|
break;
|
|
4426
4433
|
if (x) {
|
|
4427
|
-
const u =
|
|
4434
|
+
const u = ao(y, x);
|
|
4428
4435
|
if (u instanceof Error) {
|
|
4429
|
-
|
|
4436
|
+
p.push({
|
|
4430
4437
|
file: y,
|
|
4431
4438
|
id: v,
|
|
4432
4439
|
error: u
|
|
@@ -4435,7 +4442,7 @@ function uo(e) {
|
|
|
4435
4442
|
}
|
|
4436
4443
|
}
|
|
4437
4444
|
if (y.size > l(o)) {
|
|
4438
|
-
|
|
4445
|
+
p.push({
|
|
4439
4446
|
file: y,
|
|
4440
4447
|
id: v,
|
|
4441
4448
|
error: new St(
|
|
@@ -4446,10 +4453,10 @@ function uo(e) {
|
|
|
4446
4453
|
});
|
|
4447
4454
|
continue;
|
|
4448
4455
|
}
|
|
4449
|
-
|
|
4456
|
+
p.push({ file: y, id: v, error: null });
|
|
4450
4457
|
}
|
|
4451
4458
|
}
|
|
4452
|
-
return
|
|
4459
|
+
return p;
|
|
4453
4460
|
};
|
|
4454
4461
|
return {
|
|
4455
4462
|
/**
|
|
@@ -4464,7 +4471,7 @@ function uo(e) {
|
|
|
4464
4471
|
class St extends ue {
|
|
4465
4472
|
}
|
|
4466
4473
|
se(St, "defaultMessage", "The selected file's size is too large");
|
|
4467
|
-
const
|
|
4474
|
+
const po = ["accept", "multiple"], lr = /* @__PURE__ */ _({
|
|
4468
4475
|
__name: "Zone",
|
|
4469
4476
|
props: {
|
|
4470
4477
|
accept: null,
|
|
@@ -4475,7 +4482,7 @@ const co = ["accept", "multiple"], sr = /* @__PURE__ */ P({
|
|
|
4475
4482
|
},
|
|
4476
4483
|
emits: ["files-selected"],
|
|
4477
4484
|
setup(e, { expose: t, emit: r }) {
|
|
4478
|
-
const s = r, o = e, n = O(null), d = O(null), { buildUploadableFiles: h } =
|
|
4485
|
+
const s = r, o = e, n = O(null), d = O(null), { buildUploadableFiles: h } = fo({
|
|
4479
4486
|
sizeLimit: c(() => o.sizeLimit),
|
|
4480
4487
|
countLimit: c(() => o.countLimit),
|
|
4481
4488
|
accept: c(() => o.accept),
|
|
@@ -4484,7 +4491,7 @@ const co = ["accept", "multiple"], sr = /* @__PURE__ */ P({
|
|
|
4484
4491
|
}), i = (v) => {
|
|
4485
4492
|
const g = h(v);
|
|
4486
4493
|
g != null && g.length && s("files-selected", { files: g });
|
|
4487
|
-
}, { isOverDropZone:
|
|
4494
|
+
}, { isOverDropZone: p } = ks(n, (v) => {
|
|
4488
4495
|
v != null && v.length && i(v);
|
|
4489
4496
|
}), x = () => {
|
|
4490
4497
|
const v = d.value;
|
|
@@ -4504,11 +4511,11 @@ const co = ["accept", "multiple"], sr = /* @__PURE__ */ P({
|
|
|
4504
4511
|
class: "file-upload-zone"
|
|
4505
4512
|
}, [
|
|
4506
4513
|
D(v.$slots, "default", {
|
|
4507
|
-
isDraggingFiles: l(
|
|
4514
|
+
isDraggingFiles: l(p),
|
|
4508
4515
|
openFilePicker: y,
|
|
4509
4516
|
activatorOn: { click: y }
|
|
4510
4517
|
}),
|
|
4511
|
-
|
|
4518
|
+
f("input", {
|
|
4512
4519
|
ref_key: "fileInput",
|
|
4513
4520
|
ref: d,
|
|
4514
4521
|
type: "file",
|
|
@@ -4518,71 +4525,71 @@ const co = ["accept", "multiple"], sr = /* @__PURE__ */ P({
|
|
|
4518
4525
|
onClick: g[0] || (g[0] = pe(() => {
|
|
4519
4526
|
}, ["stop"])),
|
|
4520
4527
|
onChange: x
|
|
4521
|
-
}, null, 40,
|
|
4528
|
+
}, null, 40, po)
|
|
4522
4529
|
], 512));
|
|
4523
4530
|
}
|
|
4524
4531
|
});
|
|
4525
4532
|
export {
|
|
4526
4533
|
ue as BaseError,
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4534
|
+
uo as BlobUploadStatus,
|
|
4535
|
+
Yo as CommonAlert,
|
|
4536
|
+
Oo as CommonAnimationInstructional,
|
|
4530
4537
|
Xe as CommonBadge,
|
|
4531
4538
|
Qe as CommonLoadingBar,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4539
|
+
Na as CommonLoadingIcon,
|
|
4540
|
+
zo as CommonStepsBullet,
|
|
4541
|
+
Vo as CommonStepsNumber,
|
|
4535
4542
|
Us as CommonTextLink,
|
|
4536
|
-
|
|
4543
|
+
no as ComposableInvokedOutOfScopeError,
|
|
4537
4544
|
oe as FormButton,
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4545
|
+
Lo as FormCardButton,
|
|
4546
|
+
Mo as FormCheckbox,
|
|
4547
|
+
Ro as FormClipboardInput,
|
|
4548
|
+
lr as FormFileUploadZone,
|
|
4549
|
+
Ao as FormRadio,
|
|
4550
|
+
To as FormSelectBadges,
|
|
4544
4551
|
wt as FormSelectBase,
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4552
|
+
jo as FormSelectSourceApps,
|
|
4553
|
+
Fo as FormSwitch,
|
|
4554
|
+
tr as FormTags,
|
|
4555
|
+
Po as FormTextArea,
|
|
4556
|
+
wl as FormTextInput,
|
|
4557
|
+
Bo as GlobalToastRenderer,
|
|
4551
4558
|
de as GridListToggleValue,
|
|
4552
4559
|
Re as HorizontalDirection,
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4560
|
+
Qo as InfiniteLoading,
|
|
4561
|
+
qo as LayoutDialog,
|
|
4562
|
+
Wo as LayoutDialogSection,
|
|
4563
|
+
Ho as LayoutDisclosure,
|
|
4564
|
+
Ko as LayoutGridListToggle,
|
|
4565
|
+
Xo as LayoutMenu,
|
|
4566
|
+
Jo as LayoutPanel,
|
|
4567
|
+
No as LayoutTable,
|
|
4568
|
+
Zo as LayoutTabs,
|
|
4569
|
+
to as LogicError,
|
|
4563
4570
|
$e as ModifierKeys,
|
|
4564
|
-
|
|
4571
|
+
Nl as SourceAppBadge,
|
|
4565
4572
|
Ce as TailwindBreakpoints,
|
|
4566
|
-
|
|
4573
|
+
ya as ThrottleOrDebounce,
|
|
4567
4574
|
we as ToastNotificationType,
|
|
4568
|
-
|
|
4575
|
+
so as UninitializedResourceAccessError,
|
|
4569
4576
|
Je as UniqueFileTypeSpecifier,
|
|
4570
|
-
|
|
4577
|
+
lo as UnsupportedEnvironmentError,
|
|
4571
4578
|
De as UserAvatar,
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4579
|
+
nr as UserAvatarEditable,
|
|
4580
|
+
sr as UserAvatarGroup,
|
|
4581
|
+
_o as ValidationHelpers,
|
|
4575
4582
|
Fe as clientOs,
|
|
4576
|
-
|
|
4583
|
+
Do as getKeyboardShortcutTitle,
|
|
4577
4584
|
gt as keyboardClick,
|
|
4578
|
-
|
|
4585
|
+
Eo as onKeyboardShortcut,
|
|
4579
4586
|
rt as prettyFileSize,
|
|
4580
|
-
|
|
4587
|
+
Uo as useFormCheckboxModel,
|
|
4581
4588
|
kt as useFormSelectChildInternals,
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4589
|
+
Go as useOnBeforeWindowUnload,
|
|
4590
|
+
ka as useResponsiveHorizontalDirectionCalculation,
|
|
4591
|
+
xa as useWindowResizeHandler,
|
|
4585
4592
|
xt as useWrappingContainerHiddenCount,
|
|
4586
|
-
|
|
4593
|
+
er as writableAsyncComputed
|
|
4587
4594
|
};
|
|
4588
4595
|
//# sourceMappingURL=lib.js.map
|