@speckle/ui-components 2.15.2-alpha6 → 2.15.2-alpha7
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/components/form/select/Base.vue.d.ts +15 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +501 -486
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as A, resolveDynamicComponent as H, computed as r, openBlock as
|
|
1
|
+
import { defineComponent as A, resolveDynamicComponent as H, computed as r, openBlock as l, createBlock as P, normalizeClass as k, withCtx as _, createCommentVNode as I, renderSlot as z, createTextVNode as M, createElementBlock as m, createElementVNode as i, createVNode as L, Transition as ge, unref as a, toDisplayString as B, toRefs as le, Fragment as W, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as Ae, useSlots as be, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as ae, withModifiers as ye, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
|
|
2
2
|
import { isObjectLike as Le, clamp as je, isString as ie, isUndefined as Q, isArray as q, debounce as ze, throttle as Qe, noop as Ye } from "lodash";
|
|
3
|
-
import { ArrowPathIcon as Ze, ChevronUpIcon as De, ChevronDownIcon as
|
|
4
|
-
import { CheckCircleIcon as
|
|
5
|
-
import { XMarkIcon as ue, CheckIcon as
|
|
3
|
+
import { ArrowPathIcon as Ze, ExclamationCircleIcon as et, ChevronUpIcon as De, ChevronDownIcon as tt, XMarkIcon as st, MagnifyingGlassIcon as nt, CheckIcon as at, Bars3Icon as lt, Squares2X2Icon as ot } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { CheckCircleIcon as rt, XCircleIcon as it, ExclamationCircleIcon as ut, InformationCircleIcon as ct, XMarkIcon as dt, CheckIcon as ft, ExclamationTriangleIcon as pt } from "@heroicons/vue/24/outline";
|
|
5
|
+
import { XMarkIcon as ue, CheckIcon as ht, CheckCircleIcon as Re, ExclamationCircleIcon as xe, EnvelopeIcon as mt, KeyIcon as gt, XCircleIcon as vt, InformationCircleIcon as bt } from "@heroicons/vue/20/solid";
|
|
6
6
|
import { useField as ke } from "vee-validate";
|
|
7
7
|
import { nanoid as Ce } from "nanoid";
|
|
8
|
-
import { isNullOrUndefined as
|
|
9
|
-
import { useResizeObserver as
|
|
10
|
-
import { Listbox as
|
|
11
|
-
import { directive as
|
|
12
|
-
import
|
|
13
|
-
const
|
|
8
|
+
import { isNullOrUndefined as yt, SourceApps as xt, getClientOperatingSystem as kt, OperatingSystem as pe } from "@speckle/shared";
|
|
9
|
+
import { useResizeObserver as Ct, useMutationObserver as wt, onKeyDown as $t, isClient as we, computedAsync as St } from "@vueuse/core";
|
|
10
|
+
import { Listbox as It, ListboxLabel as Bt, ListboxButton as _t, ListboxOptions as Pt, ListboxOption as Lt, TransitionRoot as jt, Dialog as Vt, TransitionChild as Ve, DialogPanel as Ot, Disclosure as At, DisclosureButton as Mt, DisclosurePanel as zt, Menu as Dt, MenuButton as Rt, MenuItems as Tt, MenuItem as Ft } from "@headlessui/vue";
|
|
11
|
+
import { directive as Te } from "vue-tippy";
|
|
12
|
+
import Et from "v3-infinite-loading";
|
|
13
|
+
const Wt = {
|
|
14
14
|
key: 2,
|
|
15
15
|
style: { margin: "0 !important", width: "0.01px" }
|
|
16
|
-
},
|
|
16
|
+
}, Ut = /* @__PURE__ */ A({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -305,7 +305,7 @@ const Et = {
|
|
|
305
305
|
return !f.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !f.value && t.link && g.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
307
|
), g.join(" ");
|
|
308
|
-
}),
|
|
308
|
+
}), $ = r(() => {
|
|
309
309
|
const g = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
@@ -339,32 +339,32 @@ const Et = {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
return g.join(" ");
|
|
342
|
-
}),
|
|
342
|
+
}), T = (g) => {
|
|
343
343
|
if (f.value) {
|
|
344
344
|
g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
n("click", g);
|
|
348
348
|
};
|
|
349
|
-
return (g,
|
|
349
|
+
return (g, R) => (l(), P(H(e.to ? c.value : "button"), {
|
|
350
350
|
href: e.to,
|
|
351
351
|
to: e.to,
|
|
352
352
|
type: d.value,
|
|
353
353
|
external: e.external,
|
|
354
|
-
class: k(
|
|
354
|
+
class: k($.value),
|
|
355
355
|
disabled: f.value,
|
|
356
356
|
role: "button",
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: T
|
|
358
358
|
}, {
|
|
359
359
|
default: _(() => [
|
|
360
|
-
x.value ? (
|
|
360
|
+
x.value ? (l(), P(H(x.value), {
|
|
361
361
|
key: 0,
|
|
362
362
|
class: k(`${S.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
363
|
}, null, 8, ["class"])) : I("", !0),
|
|
364
|
-
e.hideText ? (
|
|
364
|
+
e.hideText ? (l(), m("div", Wt, " ")) : z(g.$slots, "default", { key: 1 }, () => [
|
|
365
365
|
M("Button")
|
|
366
366
|
], !0),
|
|
367
|
-
e.iconRight || !e.loading ? (
|
|
367
|
+
e.iconRight || !e.loading ? (l(), P(H(e.iconRight), {
|
|
368
368
|
key: 3,
|
|
369
369
|
class: k(`${S.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
370
|
}, null, 8, ["class"])) : I("", !0)
|
|
@@ -378,7 +378,7 @@ const Fe = (e, n) => {
|
|
|
378
378
|
for (const [s, o] of n)
|
|
379
379
|
t[s] = o;
|
|
380
380
|
return t;
|
|
381
|
-
}, re = /* @__PURE__ */ Fe(
|
|
381
|
+
}, re = /* @__PURE__ */ Fe(Ut, [["__scopeId", "data-v-38aa371e"]]), qt = /* @__PURE__ */ A({
|
|
382
382
|
__name: "Link",
|
|
383
383
|
props: {
|
|
384
384
|
to: {
|
|
@@ -435,7 +435,7 @@ const Fe = (e, n) => {
|
|
|
435
435
|
}
|
|
436
436
|
n("click", o);
|
|
437
437
|
};
|
|
438
|
-
return (o, c) => (
|
|
438
|
+
return (o, c) => (l(), P(re, {
|
|
439
439
|
link: "",
|
|
440
440
|
to: e.to,
|
|
441
441
|
external: e.external,
|
|
@@ -458,22 +458,22 @@ const Fe = (e, n) => {
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
var ee = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(ee || {});
|
|
461
|
-
const
|
|
461
|
+
const Ht = {
|
|
462
462
|
"aria-live": "assertive",
|
|
463
463
|
class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
|
|
464
|
-
},
|
|
464
|
+
}, Gt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, Kt = {
|
|
465
465
|
key: 0,
|
|
466
466
|
class: "pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5"
|
|
467
|
-
},
|
|
467
|
+
}, Xt = { class: "p-4" }, Nt = { class: "flex items-start" }, Jt = { class: "flex-shrink-0" }, Qt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Yt = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "text-foreground font-bold"
|
|
470
|
-
},
|
|
470
|
+
}, Zt = {
|
|
471
471
|
key: 1,
|
|
472
472
|
class: "label label--light text-foreground-2"
|
|
473
|
-
},
|
|
473
|
+
}, es = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "flex justify-start mt-2"
|
|
476
|
-
},
|
|
476
|
+
}, ts = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), Ca = /* @__PURE__ */ A({
|
|
477
477
|
__name: "ToastRenderer",
|
|
478
478
|
props: {
|
|
479
479
|
notification: null
|
|
@@ -491,9 +491,9 @@ const qt = {
|
|
|
491
491
|
var f, x, p;
|
|
492
492
|
(p = (x = (f = t.notification) == null ? void 0 : f.cta) == null ? void 0 : x.onClick) == null || p.call(x, d), o();
|
|
493
493
|
};
|
|
494
|
-
return (d, f) => (
|
|
495
|
-
i("div",
|
|
496
|
-
|
|
494
|
+
return (d, f) => (l(), m("div", Ht, [
|
|
495
|
+
i("div", Gt, [
|
|
496
|
+
L(ge, {
|
|
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",
|
|
499
499
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -502,33 +502,33 @@ const qt = {
|
|
|
502
502
|
"leave-to-class": "opacity-0"
|
|
503
503
|
}, {
|
|
504
504
|
default: _(() => [
|
|
505
|
-
e.notification ? (
|
|
506
|
-
i("div",
|
|
507
|
-
i("div",
|
|
508
|
-
i("div",
|
|
509
|
-
e.notification.type ===
|
|
505
|
+
e.notification ? (l(), m("div", Kt, [
|
|
506
|
+
i("div", Xt, [
|
|
507
|
+
i("div", Nt, [
|
|
508
|
+
i("div", Jt, [
|
|
509
|
+
e.notification.type === a(ee).Success ? (l(), P(a(rt), {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "h-6 w-6 text-success",
|
|
512
512
|
"aria-hidden": "true"
|
|
513
|
-
})) : e.notification.type ===
|
|
513
|
+
})) : e.notification.type === a(ee).Danger ? (l(), P(a(it), {
|
|
514
514
|
key: 1,
|
|
515
515
|
class: "h-6 w-6 text-danger",
|
|
516
516
|
"aria-hidden": "true"
|
|
517
|
-
})) : e.notification.type ===
|
|
517
|
+
})) : e.notification.type === a(ee).Warning ? (l(), P(a(ut), {
|
|
518
518
|
key: 2,
|
|
519
519
|
class: "h-6 w-6 text-warning",
|
|
520
520
|
"aria-hidden": "true"
|
|
521
|
-
})) : e.notification.type ===
|
|
521
|
+
})) : e.notification.type === a(ee).Info ? (l(), P(a(ct), {
|
|
522
522
|
key: 3,
|
|
523
523
|
class: "h-6 w-6 text-info",
|
|
524
524
|
"aria-hidden": "true"
|
|
525
525
|
})) : I("", !0)
|
|
526
526
|
]),
|
|
527
|
-
i("div",
|
|
528
|
-
e.notification.title ? (
|
|
529
|
-
e.notification.description ? (
|
|
530
|
-
e.notification.cta ? (
|
|
531
|
-
|
|
527
|
+
i("div", Qt, [
|
|
528
|
+
e.notification.title ? (l(), m("p", Yt, B(e.notification.title), 1)) : I("", !0),
|
|
529
|
+
e.notification.description ? (l(), m("p", Zt, B(e.notification.description), 1)) : I("", !0),
|
|
530
|
+
e.notification.cta ? (l(), m("div", es, [
|
|
531
|
+
L(qt, {
|
|
532
532
|
to: e.notification.cta.url,
|
|
533
533
|
class: "label",
|
|
534
534
|
primary: "",
|
|
@@ -549,8 +549,8 @@ const qt = {
|
|
|
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: o
|
|
551
551
|
}, [
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
ts,
|
|
553
|
+
L(a(ue), {
|
|
554
554
|
class: "h-6 w-6",
|
|
555
555
|
"aria-hidden": "true"
|
|
556
556
|
})
|
|
@@ -565,13 +565,13 @@ const qt = {
|
|
|
565
565
|
])
|
|
566
566
|
]));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), ss = /* @__PURE__ */ i("circle", {
|
|
569
569
|
cx: "4",
|
|
570
570
|
cy: "4",
|
|
571
571
|
r: "3"
|
|
572
|
-
}, null, -1),
|
|
573
|
-
|
|
574
|
-
],
|
|
572
|
+
}, null, -1), ns = [
|
|
573
|
+
ss
|
|
574
|
+
], as = /* @__PURE__ */ A({
|
|
575
575
|
__name: "Badge",
|
|
576
576
|
props: {
|
|
577
577
|
size: null,
|
|
@@ -614,24 +614,24 @@ const qt = {
|
|
|
614
614
|
}
|
|
615
615
|
n("click-icon", p);
|
|
616
616
|
};
|
|
617
|
-
return (p, b) => (
|
|
617
|
+
return (p, b) => (l(), m("span", {
|
|
618
618
|
class: k(c.value)
|
|
619
619
|
}, [
|
|
620
|
-
e.dot ? (
|
|
620
|
+
e.dot ? (l(), m("svg", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: k(f.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
|
-
},
|
|
625
|
+
}, ns, 2)) : I("", !0),
|
|
626
626
|
z(p.$slots, "default", {}, () => [
|
|
627
627
|
M("Badge")
|
|
628
628
|
]),
|
|
629
|
-
e.iconLeft ? (
|
|
629
|
+
e.iconLeft ? (l(), m("button", {
|
|
630
630
|
key: 1,
|
|
631
631
|
class: k(d.value),
|
|
632
632
|
onClick: b[0] || (b[0] = (y) => x(y))
|
|
633
633
|
}, [
|
|
634
|
-
(
|
|
634
|
+
(l(), P(H(e.iconLeft), {
|
|
635
635
|
class: k(["h-4 w-4", o.value])
|
|
636
636
|
}, null, 8, ["class"]))
|
|
637
637
|
], 2)) : I("", !0)
|
|
@@ -659,27 +659,27 @@ function Ee(e) {
|
|
|
659
659
|
), p = r({
|
|
660
660
|
get: () => je((n == null ? void 0 : n.value) || 0, -1, t.value.length),
|
|
661
661
|
set: (v) => f("update:modelValue", je(v, 0, t.value.length))
|
|
662
|
-
}), b = (v) => `${v + 1}`, y = (v) => v === p.value, h = (v) => v < p.value, C = (v,
|
|
663
|
-
var
|
|
662
|
+
}), b = (v) => `${v + 1}`, y = (v) => v === p.value, h = (v) => v < p.value, C = (v, $) => {
|
|
663
|
+
var T;
|
|
664
664
|
if (c != null && c.value) {
|
|
665
|
-
|
|
665
|
+
$ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
668
|
p.value = v;
|
|
669
669
|
const S = t.value[p.value];
|
|
670
|
-
(
|
|
670
|
+
(T = S == null ? void 0 : S.onClick) == null || T.call(S);
|
|
671
671
|
}, u = r(() => {
|
|
672
672
|
const v = ["flex"];
|
|
673
|
-
let
|
|
674
|
-
return (d == null ? void 0 : d.value) === "xs" ? (
|
|
675
|
-
`sm:flex-row sm:space-y-0 sm:justify-start sm:${
|
|
673
|
+
let $, S;
|
|
674
|
+
return (d == null ? void 0 : d.value) === "xs" ? ($ = "space-x-2", S = "space-y-1") : (d == null ? void 0 : d.value) === "sm" ? ($ = "space-x-4", S = "space-y-1") : ($ = "space-x-8", S = "space-y-4"), v.push("flex"), x.value === "vertical" || o != null && o.value ? (v.push(`flex-col ${S} justify-center`), (o == null ? void 0 : o.value) === te.sm ? v.push(
|
|
675
|
+
`sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
|
|
676
676
|
) : (o == null ? void 0 : o.value) === te.md ? v.push(
|
|
677
|
-
`md:flex-row md:space-y-0 md:justify-start md:${
|
|
677
|
+
`md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
|
|
678
678
|
) : (o == null ? void 0 : o.value) === te.lg ? v.push(
|
|
679
|
-
`lg:flex-row lg:space-y-0 lg:justify-start lg:${
|
|
679
|
+
`lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
|
|
680
680
|
) : (o == null ? void 0 : o.value) === te.xl && v.push(
|
|
681
|
-
`xl:flex-row xl:space-y-0 xl:justify-start xl:${
|
|
682
|
-
)) : v.push(`flex-row ${
|
|
681
|
+
`xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
|
|
682
|
+
)) : v.push(`flex-row ${$} items-center`), v.join(" ");
|
|
683
683
|
}), j = r(() => {
|
|
684
684
|
const v = ["flex items-center"];
|
|
685
685
|
return c != null && c.value || v.push("cursor-pointer"), v.join(" ");
|
|
@@ -709,16 +709,16 @@ ls([
|
|
|
709
709
|
"lg:space-x-4",
|
|
710
710
|
"xl:space-x-4"
|
|
711
711
|
]);
|
|
712
|
-
const
|
|
712
|
+
const os = ["aria-label"], rs = ["href", "onClick"], is = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, us = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, cs = { class: "flex flex-col" }, ds = {
|
|
713
713
|
key: 0,
|
|
714
714
|
class: "label label--light text-foreground"
|
|
715
|
-
},
|
|
715
|
+
}, fs = ["href", "onClick"], ps = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, hs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, ms = { class: "flex flex-col" }, gs = {
|
|
716
716
|
key: 0,
|
|
717
717
|
class: "label label--light text-foreground"
|
|
718
|
-
},
|
|
718
|
+
}, vs = ["href", "onClick"], bs = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, ys = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, xs = { class: "flex flex-col" }, ks = {
|
|
719
719
|
key: 0,
|
|
720
720
|
class: "label label--light"
|
|
721
|
-
},
|
|
721
|
+
}, wa = /* @__PURE__ */ A({
|
|
722
722
|
__name: "Number",
|
|
723
723
|
props: {
|
|
724
724
|
ariaLabel: null,
|
|
@@ -739,85 +739,85 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
739
739
|
listClasses: f,
|
|
740
740
|
linkClasses: x
|
|
741
741
|
} = Ee({
|
|
742
|
-
props:
|
|
742
|
+
props: le(t),
|
|
743
743
|
emit: n
|
|
744
744
|
});
|
|
745
|
-
return (p, b) => (
|
|
745
|
+
return (p, b) => (l(), m("nav", {
|
|
746
746
|
class: "flex justify-center",
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
749
|
i("ol", {
|
|
750
|
-
class: k(
|
|
750
|
+
class: k(a(f))
|
|
751
751
|
}, [
|
|
752
|
-
(
|
|
752
|
+
(l(!0), m(W, null, G(e.steps, (y, h) => (l(), m("li", {
|
|
753
753
|
key: y.name
|
|
754
754
|
}, [
|
|
755
|
-
|
|
755
|
+
a(o)(h) ? (l(), m("a", {
|
|
756
756
|
key: 0,
|
|
757
757
|
href: y.href,
|
|
758
|
-
class: k(
|
|
759
|
-
onClick: (C) =>
|
|
758
|
+
class: k(a(x)),
|
|
759
|
+
onClick: (C) => a(c)(h, C)
|
|
760
760
|
}, [
|
|
761
|
-
i("div",
|
|
762
|
-
i("div", is, [
|
|
763
|
-
P(l(pt), { class: "w-5 h-5" })
|
|
764
|
-
]),
|
|
761
|
+
i("div", is, [
|
|
765
762
|
i("div", us, [
|
|
763
|
+
L(a(ht), { class: "w-5 h-5" })
|
|
764
|
+
]),
|
|
765
|
+
i("div", cs, [
|
|
766
766
|
i("div", null, B(y.name), 1),
|
|
767
|
-
y.description ? (
|
|
767
|
+
y.description ? (l(), m("div", ds, B(y.description), 1)) : I("", !0)
|
|
768
768
|
])
|
|
769
769
|
])
|
|
770
|
-
], 10,
|
|
770
|
+
], 10, rs)) : a(s)(h) ? (l(), m("a", {
|
|
771
771
|
key: 1,
|
|
772
772
|
href: y.href,
|
|
773
|
-
class: k(
|
|
773
|
+
class: k(a(x)),
|
|
774
774
|
"aria-current": "step",
|
|
775
|
-
onClick: (C) =>
|
|
775
|
+
onClick: (C) => a(c)(h, C)
|
|
776
776
|
}, [
|
|
777
|
-
i("div",
|
|
778
|
-
i("div",
|
|
779
|
-
i("div",
|
|
777
|
+
i("div", ps, [
|
|
778
|
+
i("div", hs, B(a(d)(h)), 1),
|
|
779
|
+
i("div", ms, [
|
|
780
780
|
i("div", null, B(y.name), 1),
|
|
781
|
-
y.description ? (
|
|
781
|
+
y.description ? (l(), m("div", gs, B(y.description), 1)) : I("", !0)
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
|
-
], 10,
|
|
784
|
+
], 10, fs)) : (l(), m("a", {
|
|
785
785
|
key: 2,
|
|
786
786
|
href: y.href,
|
|
787
|
-
class: k(
|
|
788
|
-
onClick: (C) =>
|
|
787
|
+
class: k(a(x)),
|
|
788
|
+
onClick: (C) => a(c)(h, C)
|
|
789
789
|
}, [
|
|
790
|
-
i("div",
|
|
791
|
-
i("div",
|
|
792
|
-
i("div",
|
|
790
|
+
i("div", bs, [
|
|
791
|
+
i("div", ys, B(a(d)(h)), 1),
|
|
792
|
+
i("div", xs, [
|
|
793
793
|
i("div", null, B(y.name), 1),
|
|
794
|
-
y.description ? (
|
|
794
|
+
y.description ? (l(), m("div", ks, B(y.description), 1)) : I("", !0)
|
|
795
795
|
])
|
|
796
796
|
])
|
|
797
|
-
], 10,
|
|
797
|
+
], 10, vs))
|
|
798
798
|
]))), 128))
|
|
799
799
|
], 2)
|
|
800
|
-
], 8,
|
|
800
|
+
], 8, os));
|
|
801
801
|
}
|
|
802
|
-
}),
|
|
802
|
+
}), Cs = ["aria-label"], ws = ["href", "onClick"], $s = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Ss = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
805
|
-
},
|
|
805
|
+
}, Is = ["href", "onClick"], Bs = {
|
|
806
806
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
807
807
|
"aria-hidden": "true"
|
|
808
|
-
},
|
|
808
|
+
}, _s = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
811
|
-
},
|
|
811
|
+
}, Ps = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Ls = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), js = ["href", "onClick"], Vs = {
|
|
812
812
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
813
|
"aria-hidden": "true"
|
|
814
|
-
},
|
|
814
|
+
}, Os = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
817
|
-
},
|
|
817
|
+
}, As = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
820
|
-
},
|
|
820
|
+
}, $a = /* @__PURE__ */ A({
|
|
821
821
|
__name: "Bullet",
|
|
822
822
|
props: {
|
|
823
823
|
ariaLabel: null,
|
|
@@ -832,7 +832,7 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
832
832
|
emits: ["update:modelValue"],
|
|
833
833
|
setup(e, { emit: n }) {
|
|
834
834
|
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: d, linkClasses: f } = Ee({
|
|
835
|
-
props:
|
|
835
|
+
props: le(t),
|
|
836
836
|
emit: n
|
|
837
837
|
}), x = r(() => {
|
|
838
838
|
const b = ["h6 font-medium leading-7"];
|
|
@@ -842,24 +842,24 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
842
842
|
const b = [];
|
|
843
843
|
return t.basic && b.push("basic"), b.join(" ");
|
|
844
844
|
});
|
|
845
|
-
return (b, y) => (
|
|
845
|
+
return (b, y) => (l(), m("nav", {
|
|
846
846
|
class: "flex justify-center",
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
849
|
i("ol", {
|
|
850
|
-
class: k([
|
|
850
|
+
class: k([a(d), p.value])
|
|
851
851
|
}, [
|
|
852
|
-
(
|
|
852
|
+
(l(!0), m(W, null, G(e.steps, (h, C) => (l(), m("li", {
|
|
853
853
|
key: h.name
|
|
854
854
|
}, [
|
|
855
|
-
|
|
855
|
+
a(o)(C) ? (l(), m("a", {
|
|
856
856
|
key: 0,
|
|
857
857
|
href: h.href,
|
|
858
|
-
class: k(
|
|
859
|
-
onClick: (u) =>
|
|
858
|
+
class: k(a(f)),
|
|
859
|
+
onClick: (u) => a(c)(C, u)
|
|
860
860
|
}, [
|
|
861
|
-
i("span",
|
|
862
|
-
e.basic ? (
|
|
861
|
+
i("span", $s, [
|
|
862
|
+
e.basic ? (l(), m("span", Ss)) : (l(), P(a(Re), {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "h-full w-full text-primary",
|
|
865
865
|
"aria-hidden": "true"
|
|
@@ -868,40 +868,40 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
868
868
|
i("span", {
|
|
869
869
|
class: k(["text-foreground", x.value])
|
|
870
870
|
}, B(h.name), 3)
|
|
871
|
-
], 10,
|
|
871
|
+
], 10, ws)) : a(s)(C) ? (l(), m("a", {
|
|
872
872
|
key: 1,
|
|
873
873
|
href: h.href,
|
|
874
|
-
class: k(
|
|
874
|
+
class: k(a(f)),
|
|
875
875
|
"aria-current": "step",
|
|
876
|
-
onClick: (u) =>
|
|
876
|
+
onClick: (u) => a(c)(C, u)
|
|
877
877
|
}, [
|
|
878
|
-
i("span",
|
|
879
|
-
e.basic ? (
|
|
880
|
-
|
|
881
|
-
|
|
878
|
+
i("span", Bs, [
|
|
879
|
+
e.basic ? (l(), m("span", _s)) : (l(), m(W, { key: 1 }, [
|
|
880
|
+
Ps,
|
|
881
|
+
Ls
|
|
882
882
|
], 64))
|
|
883
883
|
]),
|
|
884
884
|
i("span", {
|
|
885
885
|
class: k(["text-primary-focus", x.value])
|
|
886
886
|
}, B(h.name), 3)
|
|
887
|
-
], 10,
|
|
887
|
+
], 10, Is)) : (l(), m("a", {
|
|
888
888
|
key: 2,
|
|
889
889
|
href: h.href,
|
|
890
|
-
class: k(
|
|
891
|
-
onClick: (u) =>
|
|
890
|
+
class: k(a(f)),
|
|
891
|
+
onClick: (u) => a(c)(C, u)
|
|
892
892
|
}, [
|
|
893
|
-
i("div",
|
|
894
|
-
e.basic ? (
|
|
893
|
+
i("div", Vs, [
|
|
894
|
+
e.basic ? (l(), m("span", Os)) : (l(), m("div", As))
|
|
895
895
|
]),
|
|
896
896
|
i("p", {
|
|
897
897
|
class: k(["text-foreground-disabled", x.value])
|
|
898
898
|
}, B(h.name), 3)
|
|
899
|
-
], 10,
|
|
899
|
+
], 10, js))
|
|
900
900
|
]))), 128))
|
|
901
901
|
], 2)
|
|
902
|
-
], 8,
|
|
902
|
+
], 8, Cs));
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), Ms = ["disabled"], Sa = /* @__PURE__ */ A({
|
|
905
905
|
__name: "CardButton",
|
|
906
906
|
props: {
|
|
907
907
|
disabled: { type: Boolean },
|
|
@@ -924,7 +924,7 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
924
924
|
}
|
|
925
925
|
n("update:modelValue", !t.modelValue), n("click", c);
|
|
926
926
|
};
|
|
927
|
-
return (c, d) => (
|
|
927
|
+
return (c, d) => (l(), m("button", {
|
|
928
928
|
class: k(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
@@ -932,15 +932,15 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
932
932
|
z(c.$slots, "default", {}, () => [
|
|
933
933
|
M("Text")
|
|
934
934
|
])
|
|
935
|
-
], 10,
|
|
935
|
+
], 10, Ms));
|
|
936
936
|
}
|
|
937
|
-
}),
|
|
937
|
+
}), zs = { class: "relative flex items-start" }, Ds = { class: "flex h-6 items-center" }, Rs = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Ts = {
|
|
938
938
|
class: "ml-2 text-sm",
|
|
939
939
|
style: { "padding-top": "2px" }
|
|
940
|
-
},
|
|
940
|
+
}, Fs = ["for"], Es = {
|
|
941
941
|
key: 0,
|
|
942
942
|
class: "text-danger ml-1"
|
|
943
|
-
},
|
|
943
|
+
}, Ws = ["id"], Ia = /* @__PURE__ */ A({
|
|
944
944
|
inheritAttrs: !1,
|
|
945
945
|
__name: "Checkbox",
|
|
946
946
|
props: {
|
|
@@ -1046,20 +1046,20 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
1046
1046
|
n.disabled || d(v);
|
|
1047
1047
|
};
|
|
1048
1048
|
return Y(() => {
|
|
1049
|
-
const v = n.modelValue,
|
|
1050
|
-
S !==
|
|
1051
|
-
}), (v,
|
|
1052
|
-
i("div",
|
|
1049
|
+
const v = n.modelValue, $ = f.value, S = Array.isArray(v) ? v.includes(n.value) : v === n.value, T = Array.isArray($) ? $.includes(n.value) : $ === n.value;
|
|
1050
|
+
S !== T && d(v);
|
|
1051
|
+
}), (v, $) => (l(), m("div", zs, [
|
|
1052
|
+
i("div", Ds, [
|
|
1053
1053
|
i("input", oe({
|
|
1054
1054
|
id: u.value,
|
|
1055
|
-
checked:
|
|
1055
|
+
checked: a(o),
|
|
1056
1056
|
"aria-describedby": y.value,
|
|
1057
1057
|
name: e.name,
|
|
1058
1058
|
disabled: e.disabled,
|
|
1059
1059
|
value: s.value,
|
|
1060
1060
|
type: "checkbox",
|
|
1061
1061
|
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
|
|
1062
|
-
}, v.$attrs, { onChange: j }), null, 16,
|
|
1062
|
+
}, v.$attrs, { onChange: j }), null, 16, Rs)
|
|
1063
1063
|
]),
|
|
1064
1064
|
i("div", Ts, [
|
|
1065
1065
|
i("label", {
|
|
@@ -1067,25 +1067,25 @@ const as = ["aria-label"], os = ["href", "onClick"], rs = { class: "flex space-x
|
|
|
1067
1067
|
class: k(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1068
1068
|
}, [
|
|
1069
1069
|
i("span", null, B(x.value), 1),
|
|
1070
|
-
e.showRequired ? (
|
|
1071
|
-
], 10,
|
|
1072
|
-
b.value ? (
|
|
1070
|
+
e.showRequired ? (l(), m("span", Es, "*")) : I("", !0)
|
|
1071
|
+
], 10, Fs),
|
|
1072
|
+
b.value ? (l(), m("p", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
id: y.value,
|
|
1075
1075
|
class: k(h.value)
|
|
1076
|
-
}, B(b.value), 11,
|
|
1076
|
+
}, B(b.value), 11, Ws)) : I("", !0)
|
|
1077
1077
|
])
|
|
1078
1078
|
]));
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
function We(e) {
|
|
1082
1082
|
const { props: n, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = ke(n.name, n.rules, {
|
|
1083
|
-
validateOnMount:
|
|
1084
|
-
validateOnValueUpdate:
|
|
1085
|
-
initialValue:
|
|
1083
|
+
validateOnMount: a(n.validateOnMount),
|
|
1084
|
+
validateOnValueUpdate: a(n.validateOnValueUpdate),
|
|
1085
|
+
initialValue: a(n.modelValue) || void 0
|
|
1086
1086
|
}), d = r(() => {
|
|
1087
1087
|
const S = ["block label text-foreground-2 mb-2"];
|
|
1088
|
-
return
|
|
1088
|
+
return a(n.showLabel) || S.push("sr-only"), S.join(" ");
|
|
1089
1089
|
}), f = r(() => {
|
|
1090
1090
|
const S = [
|
|
1091
1091
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
@@ -1094,25 +1094,25 @@ function We(e) {
|
|
|
1094
1094
|
];
|
|
1095
1095
|
return c.value ? S.push(
|
|
1096
1096
|
"border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
|
|
1097
|
-
) : S.push("border-0 focus:ring-2 focus:ring-outline-2"),
|
|
1098
|
-
}), x = O(Ce()), p = r(() =>
|
|
1097
|
+
) : S.push("border-0 focus:ring-2 focus:ring-outline-2"), a(n.color) === "foundation" ? S.push("bg-foundation shadow-sm hover:shadow") : S.push("bg-foundation-page"), S.join(" ");
|
|
1098
|
+
}), x = O(Ce()), p = r(() => a(n.label) || a(n.name)), b = r(() => {
|
|
1099
1099
|
const S = c.value;
|
|
1100
|
-
return !S || !
|
|
1100
|
+
return !S || !a(n.useLabelInErrors) ? S : S.replace("Value", p.value);
|
|
1101
1101
|
}), y = r(
|
|
1102
|
-
() => b.value &&
|
|
1103
|
-
), h = r(() => b.value ||
|
|
1104
|
-
() => C.value ? `${
|
|
1102
|
+
() => b.value && a(n.hideErrorMessage)
|
|
1103
|
+
), h = r(() => b.value || a(n.help)), C = r(() => !!h.value), u = r(
|
|
1104
|
+
() => C.value ? `${a(n.name)}-${x.value}` : void 0
|
|
1105
1105
|
), j = r(() => {
|
|
1106
1106
|
const S = ["mt-2 text-sm"];
|
|
1107
1107
|
return S.push(c.value ? "text-danger" : "text-foreground-2"), S.join(" ");
|
|
1108
1108
|
}), v = () => {
|
|
1109
1109
|
var S;
|
|
1110
1110
|
(S = t.value) == null || S.focus();
|
|
1111
|
-
},
|
|
1111
|
+
}, $ = () => {
|
|
1112
1112
|
o.value = "", s("change", { value: "" }), s("clear");
|
|
1113
1113
|
};
|
|
1114
1114
|
return Y(() => {
|
|
1115
|
-
|
|
1115
|
+
a(n.autoFocus) && v();
|
|
1116
1116
|
}), {
|
|
1117
1117
|
coreClasses: f,
|
|
1118
1118
|
title: p,
|
|
@@ -1122,15 +1122,15 @@ function We(e) {
|
|
|
1122
1122
|
helpTip: h,
|
|
1123
1123
|
hideHelpTip: y,
|
|
1124
1124
|
errorMessage: b,
|
|
1125
|
-
clear:
|
|
1125
|
+
clear: $,
|
|
1126
1126
|
focus: v,
|
|
1127
1127
|
labelClasses: d
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1130
|
+
const Us = ["for"], qs = { class: "relative" }, Hs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Gs = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Ks = {
|
|
1131
1131
|
key: 2,
|
|
1132
1132
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1133
|
-
},
|
|
1133
|
+
}, Xs = ["id"], Ba = /* @__PURE__ */ A({
|
|
1134
1134
|
__name: "TextArea",
|
|
1135
1135
|
props: {
|
|
1136
1136
|
name: null,
|
|
@@ -1164,83 +1164,83 @@ const Ws = ["for"], Us = { class: "relative" }, qs = ["id", "name", "placeholder
|
|
|
1164
1164
|
clear: C,
|
|
1165
1165
|
focus: u
|
|
1166
1166
|
} = We({
|
|
1167
|
-
props:
|
|
1167
|
+
props: le(s),
|
|
1168
1168
|
emit: t,
|
|
1169
1169
|
inputEl: o
|
|
1170
1170
|
}), j = r(() => {
|
|
1171
1171
|
const v = ["pl-2"];
|
|
1172
1172
|
return s.showClear && y.value ? v.push("pr-12") : (s.showClear || y.value) && v.push("pr-8"), v.join(" ");
|
|
1173
1173
|
});
|
|
1174
|
-
return n({ focus: u }), (v,
|
|
1174
|
+
return n({ focus: u }), (v, $) => (l(), m("div", {
|
|
1175
1175
|
class: k([e.fullWidth ? "w-full" : ""])
|
|
1176
1176
|
}, [
|
|
1177
1177
|
i("label", {
|
|
1178
1178
|
for: e.name,
|
|
1179
|
-
class: k(
|
|
1179
|
+
class: k(a(h))
|
|
1180
1180
|
}, [
|
|
1181
|
-
i("span", null, B(
|
|
1182
|
-
], 10,
|
|
1183
|
-
i("div",
|
|
1181
|
+
i("span", null, B(a(d)), 1)
|
|
1182
|
+
], 10, Us),
|
|
1183
|
+
i("div", qs, [
|
|
1184
1184
|
ne(i("textarea", oe({
|
|
1185
1185
|
id: e.name,
|
|
1186
1186
|
ref_key: "inputElement",
|
|
1187
1187
|
ref: o,
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1188
|
+
"onUpdate:modelValue": $[0] || ($[0] = (S) => ve(f) ? f.value = S : null),
|
|
1189
1189
|
name: e.name,
|
|
1190
|
-
class: [
|
|
1190
|
+
class: [a(c), j.value, "min-h-[4rem]"],
|
|
1191
1191
|
placeholder: e.placeholder,
|
|
1192
1192
|
disabled: e.disabled,
|
|
1193
|
-
"aria-invalid":
|
|
1194
|
-
"aria-describedby":
|
|
1193
|
+
"aria-invalid": a(y) ? "true" : "false",
|
|
1194
|
+
"aria-describedby": a(x)
|
|
1195
1195
|
}, v.$attrs, {
|
|
1196
|
-
onChange:
|
|
1197
|
-
onInput:
|
|
1198
|
-
}), null, 16,
|
|
1199
|
-
[Ae,
|
|
1196
|
+
onChange: $[1] || ($[1] = (S) => v.$emit("change", { event: S, value: a(f) })),
|
|
1197
|
+
onInput: $[2] || ($[2] = (S) => v.$emit("input", { event: S, value: a(f) }))
|
|
1198
|
+
}), null, 16, Hs), [
|
|
1199
|
+
[Ae, a(f)]
|
|
1200
1200
|
]),
|
|
1201
|
-
e.showClear ? (
|
|
1201
|
+
e.showClear ? (l(), m("a", {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
title: "Clear input",
|
|
1204
1204
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1205
|
-
onClick:
|
|
1206
|
-
(...S) =>
|
|
1207
|
-
onKeydown:
|
|
1208
|
-
(...S) =>
|
|
1205
|
+
onClick: $[3] || ($[3] = //@ts-ignore
|
|
1206
|
+
(...S) => a(C) && a(C)(...S)),
|
|
1207
|
+
onKeydown: $[4] || ($[4] = //@ts-ignore
|
|
1208
|
+
(...S) => a(C) && a(C)(...S))
|
|
1209
1209
|
}, [
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
Gs,
|
|
1211
|
+
L(a(ue), {
|
|
1212
1212
|
class: "h-5 w-5 text-foreground",
|
|
1213
1213
|
"aria-hidden": "true"
|
|
1214
1214
|
})
|
|
1215
1215
|
], 32)) : I("", !0),
|
|
1216
|
-
|
|
1216
|
+
a(y) ? (l(), m("div", {
|
|
1217
1217
|
key: 1,
|
|
1218
1218
|
class: k([
|
|
1219
1219
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1220
1220
|
e.showClear ? "pr-8" : "pr-2"
|
|
1221
1221
|
])
|
|
1222
1222
|
}, [
|
|
1223
|
-
|
|
1223
|
+
L(a(xe), {
|
|
1224
1224
|
class: "h-4 w-4 text-danger",
|
|
1225
1225
|
"aria-hidden": "true"
|
|
1226
1226
|
})
|
|
1227
1227
|
], 2)) : I("", !0),
|
|
1228
|
-
e.showRequired && !
|
|
1228
|
+
e.showRequired && !a(y) ? (l(), m("div", Ks, " * ")) : I("", !0)
|
|
1229
1229
|
]),
|
|
1230
|
-
|
|
1230
|
+
a(x) ? (l(), m("p", {
|
|
1231
1231
|
key: 0,
|
|
1232
|
-
id:
|
|
1233
|
-
class: k(
|
|
1234
|
-
}, B(
|
|
1232
|
+
id: a(x),
|
|
1233
|
+
class: k(a(p))
|
|
1234
|
+
}, B(a(b)), 11, Xs)) : I("", !0)
|
|
1235
1235
|
], 2));
|
|
1236
1236
|
}
|
|
1237
|
-
}),
|
|
1237
|
+
}), Ns = ["for"], Js = { class: "relative" }, Qs = {
|
|
1238
1238
|
key: 0,
|
|
1239
1239
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1240
|
-
},
|
|
1240
|
+
}, Ys = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Zs = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), en = {
|
|
1241
1241
|
key: 2,
|
|
1242
1242
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1243
|
-
},
|
|
1243
|
+
}, tn = ["id"], _a = /* @__PURE__ */ A({
|
|
1244
1244
|
inheritAttrs: !1,
|
|
1245
1245
|
__name: "TextInput",
|
|
1246
1246
|
props: {
|
|
@@ -1390,17 +1390,17 @@ const Ws = ["for"], Us = { class: "relative" }, qs = ["id", "name", "placeholder
|
|
|
1390
1390
|
focus: j,
|
|
1391
1391
|
labelClasses: v
|
|
1392
1392
|
} = We({
|
|
1393
|
-
props:
|
|
1393
|
+
props: le(s),
|
|
1394
1394
|
emit: t,
|
|
1395
1395
|
inputEl: c
|
|
1396
|
-
}),
|
|
1397
|
-
const
|
|
1398
|
-
return C.value ?
|
|
1396
|
+
}), $ = r(() => {
|
|
1397
|
+
const R = ["h-5 w-5"];
|
|
1398
|
+
return C.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
|
|
1399
1399
|
}), S = r(
|
|
1400
1400
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1401
|
-
),
|
|
1402
|
-
const
|
|
1403
|
-
return S.value ?
|
|
1401
|
+
), T = r(() => {
|
|
1402
|
+
const R = [];
|
|
1403
|
+
return S.value ? R.push("pl-8") : R.push("pl-2"), o["input-right"] || (C.value || s.showClear) && (C.value && s.showClear ? R.push("pr-12") : R.push("pr-8")), R.join(" ");
|
|
1404
1404
|
}), g = r(() => {
|
|
1405
1405
|
switch (s.size) {
|
|
1406
1406
|
case "sm":
|
|
@@ -1414,28 +1414,28 @@ const Ws = ["for"], Us = { class: "relative" }, qs = ["id", "name", "placeholder
|
|
|
1414
1414
|
return "h-8";
|
|
1415
1415
|
}
|
|
1416
1416
|
});
|
|
1417
|
-
return n({ focus: j }), (
|
|
1417
|
+
return n({ focus: j }), (R, E) => (l(), m("div", {
|
|
1418
1418
|
class: k([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1419
1419
|
}, [
|
|
1420
1420
|
i("label", {
|
|
1421
1421
|
for: e.name,
|
|
1422
|
-
class: k(
|
|
1422
|
+
class: k(a(v))
|
|
1423
1423
|
}, [
|
|
1424
|
-
i("span", null, B(
|
|
1425
|
-
], 10,
|
|
1426
|
-
i("div",
|
|
1427
|
-
S.value ? (
|
|
1428
|
-
e.customIcon ? (
|
|
1424
|
+
i("span", null, B(a(f)), 1)
|
|
1425
|
+
], 10, Ns),
|
|
1426
|
+
i("div", Js, [
|
|
1427
|
+
S.value ? (l(), m("div", Qs, [
|
|
1428
|
+
e.customIcon ? (l(), P(H(e.customIcon), {
|
|
1429
1429
|
key: 0,
|
|
1430
|
-
class: k(
|
|
1430
|
+
class: k($.value),
|
|
1431
1431
|
"aria-hidden": "true"
|
|
1432
|
-
}, null, 8, ["class"])) : e.type === "email" ? (
|
|
1432
|
+
}, null, 8, ["class"])) : e.type === "email" ? (l(), P(a(mt), {
|
|
1433
1433
|
key: 1,
|
|
1434
|
-
class: k(
|
|
1434
|
+
class: k($.value),
|
|
1435
1435
|
"aria-hidden": "true"
|
|
1436
|
-
}, null, 8, ["class"])) : e.type === "password" ? (
|
|
1436
|
+
}, null, 8, ["class"])) : e.type === "password" ? (l(), P(a(gt), {
|
|
1437
1437
|
key: 2,
|
|
1438
|
-
class: k(
|
|
1438
|
+
class: k($.value),
|
|
1439
1439
|
"aria-hidden": "true"
|
|
1440
1440
|
}, null, 8, ["class"])) : I("", !0)
|
|
1441
1441
|
])) : I("", !0),
|
|
@@ -1446,74 +1446,74 @@ const Ws = ["for"], Us = { class: "relative" }, qs = ["id", "name", "placeholder
|
|
|
1446
1446
|
"onUpdate:modelValue": E[0] || (E[0] = (F) => ve(x) ? x.value = F : null),
|
|
1447
1447
|
type: e.type,
|
|
1448
1448
|
name: e.name,
|
|
1449
|
-
class: [
|
|
1449
|
+
class: [a(d), T.value, g.value, e.inputClasses || ""],
|
|
1450
1450
|
placeholder: e.placeholder,
|
|
1451
1451
|
disabled: e.disabled,
|
|
1452
|
-
"aria-invalid":
|
|
1453
|
-
"aria-describedby":
|
|
1452
|
+
"aria-invalid": a(C) ? "true" : "false",
|
|
1453
|
+
"aria-describedby": a(p),
|
|
1454
1454
|
role: "textbox"
|
|
1455
|
-
},
|
|
1456
|
-
onChange: E[1] || (E[1] = (F) =>
|
|
1457
|
-
onInput: E[2] || (E[2] = (F) =>
|
|
1458
|
-
}), null, 16,
|
|
1459
|
-
[Xe,
|
|
1455
|
+
}, R.$attrs, {
|
|
1456
|
+
onChange: E[1] || (E[1] = (F) => R.$emit("change", { event: F, value: a(x) })),
|
|
1457
|
+
onInput: E[2] || (E[2] = (F) => R.$emit("input", { event: F, value: a(x) }))
|
|
1458
|
+
}), null, 16, Ys), [
|
|
1459
|
+
[Xe, a(x)]
|
|
1460
1460
|
]),
|
|
1461
|
-
z(
|
|
1462
|
-
e.showClear ? (
|
|
1461
|
+
z(R.$slots, "input-right", {}, () => [
|
|
1462
|
+
e.showClear ? (l(), m("a", {
|
|
1463
1463
|
key: 0,
|
|
1464
1464
|
title: "Clear input",
|
|
1465
1465
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1466
1466
|
onClick: E[3] || (E[3] = //@ts-ignore
|
|
1467
|
-
(...F) =>
|
|
1467
|
+
(...F) => a(u) && a(u)(...F)),
|
|
1468
1468
|
onKeydown: E[4] || (E[4] = //@ts-ignore
|
|
1469
|
-
(...F) =>
|
|
1469
|
+
(...F) => a(u) && a(u)(...F))
|
|
1470
1470
|
}, [
|
|
1471
|
-
|
|
1472
|
-
|
|
1471
|
+
Zs,
|
|
1472
|
+
L(a(ue), {
|
|
1473
1473
|
class: "h-5 w-5 text-foreground",
|
|
1474
1474
|
"aria-hidden": "true"
|
|
1475
1475
|
})
|
|
1476
1476
|
], 32)) : I("", !0),
|
|
1477
|
-
|
|
1477
|
+
a(C) ? (l(), m("div", {
|
|
1478
1478
|
key: 1,
|
|
1479
1479
|
class: k([
|
|
1480
1480
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1481
1481
|
e.showClear ? "pr-8" : "pr-2"
|
|
1482
1482
|
])
|
|
1483
1483
|
}, [
|
|
1484
|
-
|
|
1484
|
+
L(a(xe), {
|
|
1485
1485
|
class: "h-4 w-4 text-danger",
|
|
1486
1486
|
"aria-hidden": "true"
|
|
1487
1487
|
})
|
|
1488
1488
|
], 2)) : I("", !0),
|
|
1489
|
-
e.showRequired && !
|
|
1489
|
+
e.showRequired && !a(C) ? (l(), m("div", en, " * ")) : I("", !0)
|
|
1490
1490
|
])
|
|
1491
1491
|
]),
|
|
1492
|
-
|
|
1492
|
+
a(p) && !a(h) ? (l(), m("p", {
|
|
1493
1493
|
key: 0,
|
|
1494
|
-
id:
|
|
1495
|
-
class: k(
|
|
1496
|
-
}, B(
|
|
1494
|
+
id: a(p),
|
|
1495
|
+
class: k(a(b))
|
|
1496
|
+
}, B(a(y)), 11, tn)) : I("", !0)
|
|
1497
1497
|
], 2));
|
|
1498
1498
|
}
|
|
1499
|
-
}),
|
|
1499
|
+
}), sn = /^https?:\/\//, $e = /^[\w-_.+]+@[\w-_.+]+$/, nn = (e) => (e || "").match($e) ? !0 : "Value should be a valid e-mail address", an = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match($e)) || "Value should be one or multiple comma-delimited e-mail addresses", ln = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), on = (e, n) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${n || e}'`, rn = (e) => (n) => {
|
|
1500
1500
|
const { minLength: t, maxLength: s } = e;
|
|
1501
|
-
return n =
|
|
1502
|
-
},
|
|
1501
|
+
return n = yt(n) ? "" : n, ie(n) ? !Q(t) && n.length < t ? `Value needs to be at least ${t} characters long` : !Q(s) && n.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1502
|
+
}, un = (e) => (n) => {
|
|
1503
1503
|
const { match: t, message: s } = e;
|
|
1504
1504
|
return ie(n) ? t ? ie(t) ? n.includes(t) ? !0 : s : t.test(n) ? !0 : s : !0 : "Value should be a text string";
|
|
1505
|
-
},
|
|
1505
|
+
}, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1506
1506
|
__proto__: null,
|
|
1507
1507
|
VALID_EMAIL: $e,
|
|
1508
|
-
VALID_HTTP_URL:
|
|
1509
|
-
isEmail:
|
|
1510
|
-
isOneOrMultipleEmails:
|
|
1508
|
+
VALID_HTTP_URL: sn,
|
|
1509
|
+
isEmail: nn,
|
|
1510
|
+
isOneOrMultipleEmails: an,
|
|
1511
1511
|
isRequired: ln,
|
|
1512
|
-
isSameAs:
|
|
1513
|
-
isStringOfLength:
|
|
1514
|
-
stringContains:
|
|
1512
|
+
isSameAs: on,
|
|
1513
|
+
isStringOfLength: rn,
|
|
1514
|
+
stringContains: un
|
|
1515
1515
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1516
|
-
function
|
|
1516
|
+
function cn(e) {
|
|
1517
1517
|
const {
|
|
1518
1518
|
skipCalculation: n,
|
|
1519
1519
|
elementToWatchForChanges: t,
|
|
@@ -1532,19 +1532,19 @@ function un(e) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
d.value = y - b;
|
|
1534
1534
|
};
|
|
1535
|
-
return o &&
|
|
1535
|
+
return o && Ct(t, f), c && wt(t, f, {
|
|
1536
1536
|
childList: !0,
|
|
1537
1537
|
subtree: !0
|
|
1538
1538
|
}), {
|
|
1539
1539
|
hiddenItemCount: d
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function dn(e) {
|
|
1543
1543
|
const { props: n, emit: t, dynamicVisibility: s } = e;
|
|
1544
1544
|
let o;
|
|
1545
1545
|
if (s) {
|
|
1546
1546
|
const { elementToWatchForChanges: p, itemContainer: b } = s;
|
|
1547
|
-
o =
|
|
1547
|
+
o = cn({
|
|
1548
1548
|
skipCalculation: r(() => {
|
|
1549
1549
|
var h;
|
|
1550
1550
|
return !((h = n.multiple) != null && h.value);
|
|
@@ -1580,31 +1580,34 @@ function cn(e) {
|
|
|
1580
1580
|
firstItem: (p) => d(p) ? p[0] : p
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
const
|
|
1584
|
-
|
|
1585
|
-
],
|
|
1583
|
+
const fn = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), pn = /* @__PURE__ */ fn(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), hn = [
|
|
1584
|
+
pn
|
|
1585
|
+
], mn = /* @__PURE__ */ A({
|
|
1586
1586
|
__name: "Bar",
|
|
1587
1587
|
props: {
|
|
1588
1588
|
loading: { type: Boolean }
|
|
1589
1589
|
},
|
|
1590
1590
|
setup(e) {
|
|
1591
|
-
return (n, t) => (
|
|
1591
|
+
return (n, t) => (l(), m("div", {
|
|
1592
1592
|
class: k([
|
|
1593
1593
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1594
1594
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1595
1595
|
])
|
|
1596
|
-
},
|
|
1596
|
+
}, hn, 2));
|
|
1597
1597
|
}
|
|
1598
1598
|
});
|
|
1599
|
-
const Ue = /* @__PURE__ */ Fe(
|
|
1599
|
+
const Ue = /* @__PURE__ */ Fe(mn, [["__scopeId", "data-v-60cf597b"]]), gn = { class: "flex items-center justify-between w-full" }, vn = { class: "block truncate grow text-left" }, bn = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, yn = {
|
|
1600
|
+
key: 1,
|
|
1601
|
+
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
1602
|
+
}, xn = ["disabled"], kn = {
|
|
1600
1603
|
key: 0,
|
|
1601
1604
|
class: "flex flex-col mx-1 mb-1"
|
|
1602
|
-
},
|
|
1605
|
+
}, Cn = /* @__PURE__ */ i("span", { class: "sr-only label text-foreground" }, "Search", -1), wn = { class: "relative" }, $n = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Sn = ["placeholder"], In = {
|
|
1603
1606
|
key: 0,
|
|
1604
1607
|
class: "px-1"
|
|
1605
|
-
},
|
|
1608
|
+
}, Bn = { key: 1 }, _n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Pn = {
|
|
1606
1609
|
class: /* @__PURE__ */ k(["block truncate"])
|
|
1607
|
-
},
|
|
1610
|
+
}, Ln = ["id"], jn = /* @__PURE__ */ A({
|
|
1608
1611
|
__name: "Base",
|
|
1609
1612
|
props: {
|
|
1610
1613
|
multiple: {
|
|
@@ -1749,6 +1752,13 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1749
1752
|
fullyControlValue: {
|
|
1750
1753
|
type: Boolean,
|
|
1751
1754
|
default: !1
|
|
1755
|
+
},
|
|
1756
|
+
/**
|
|
1757
|
+
* Whether to show the red "required" asterisk
|
|
1758
|
+
*/
|
|
1759
|
+
showRequired: {
|
|
1760
|
+
type: Boolean,
|
|
1761
|
+
default: !1
|
|
1752
1762
|
}
|
|
1753
1763
|
},
|
|
1754
1764
|
emits: ["update:modelValue"],
|
|
@@ -1757,79 +1767,79 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1757
1767
|
validateOnMount: s.validateOnMount,
|
|
1758
1768
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1759
1769
|
initialValue: s.modelValue
|
|
1760
|
-
}), d = O(null), f = O(""), x = O([]), p = O(!1), b = O(1), y = O(Ce()), h = r(() =>
|
|
1761
|
-
const
|
|
1762
|
-
return
|
|
1763
|
-
}), u = r(() => C.value ||
|
|
1764
|
-
() => j.value ? `${
|
|
1765
|
-
),
|
|
1770
|
+
}), d = O(null), f = O(""), x = O([]), p = O(!1), b = O(1), y = O(Ce()), h = r(() => a(s.label) || a(s.name)), C = r(() => {
|
|
1771
|
+
const w = c.value;
|
|
1772
|
+
return !w || !a(s.useLabelInErrors) ? w : w.replace("Value", h.value);
|
|
1773
|
+
}), u = r(() => C.value || a(s.help)), j = r(() => !!u.value), v = r(
|
|
1774
|
+
() => j.value ? `${a(s.name)}-${y.value}` : void 0
|
|
1775
|
+
), $ = r(
|
|
1766
1776
|
() => c.value ? "text-danger" : "text-foreground-2"
|
|
1767
1777
|
), S = r(
|
|
1768
1778
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1769
|
-
),
|
|
1770
|
-
const
|
|
1771
|
-
return s.buttonStyle !== "simple" && (
|
|
1779
|
+
), T = r(() => {
|
|
1780
|
+
const w = ["relative flex group"];
|
|
1781
|
+
return c.value ? (w.push("hover:shadow rounded-md"), w.push("text-danger-darker focus:border-danger focus:ring-danger"), s.buttonStyle !== "simple" && w.push("outline outline-2 outline-danger")) : s.buttonStyle !== "simple" && (w.push("hover:shadow rounded-md"), w.push("outline outline-2 outline-primary-muted")), s.fixedHeight && w.push("h-8"), w.join(" ");
|
|
1772
1782
|
}), g = r(() => {
|
|
1773
|
-
const
|
|
1774
|
-
return s.buttonStyle !== "simple" &&
|
|
1783
|
+
const w = [];
|
|
1784
|
+
return s.buttonStyle !== "simple" && w.push(
|
|
1775
1785
|
Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1776
|
-
), Z.value &&
|
|
1777
|
-
}),
|
|
1778
|
-
const
|
|
1786
|
+
), Z.value && w.push("cursor-not-allowed"), w.join(" ");
|
|
1787
|
+
}), R = r(() => {
|
|
1788
|
+
const w = [
|
|
1779
1789
|
"relative z-[1]",
|
|
1780
1790
|
"flex items-center justify-center text-center shrink-0",
|
|
1781
1791
|
"rounded-r-md overflow-hidden transition-all",
|
|
1782
1792
|
"text-foreground",
|
|
1783
1793
|
Se.value ? `w-6 ${g.value}` : "w-0"
|
|
1784
1794
|
];
|
|
1785
|
-
return Z.value || (
|
|
1795
|
+
return Z.value || (w.push(
|
|
1786
1796
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
1787
|
-
), s.buttonStyle === "tinted" ?
|
|
1797
|
+
), s.buttonStyle === "tinted" ? w.push("bg-outline-3") : w.push("bg-primary-muted")), w.join(" ");
|
|
1788
1798
|
}), E = r(() => {
|
|
1789
|
-
const
|
|
1799
|
+
const w = [
|
|
1790
1800
|
"relative z-[2]",
|
|
1791
1801
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1792
1802
|
"flex items-center",
|
|
1793
1803
|
g.value
|
|
1794
1804
|
];
|
|
1795
|
-
return s.buttonStyle !== "simple" && (
|
|
1805
|
+
return s.buttonStyle !== "simple" && (w.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? w.push("bg-foundation-page text-foreground") : w.push("bg-foundation text-foreground"))), S.value && Se.value && w.push("rounded-r-none"), w.join(" ");
|
|
1796
1806
|
}), F = r(
|
|
1797
1807
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1798
1808
|
), X = r(() => F.value && s.getSearchResults), Z = r(
|
|
1799
1809
|
() => s.disabled || !s.items.length && !X.value
|
|
1800
1810
|
), U = r({
|
|
1801
1811
|
get: () => {
|
|
1802
|
-
const
|
|
1803
|
-
return s.multiple ? q(
|
|
1812
|
+
const w = o.value;
|
|
1813
|
+
return s.multiple ? q(w) ? w : [] : q(w) ? void 0 : w;
|
|
1804
1814
|
},
|
|
1805
|
-
set: (
|
|
1806
|
-
if (s.multiple && !q(
|
|
1815
|
+
set: (w) => {
|
|
1816
|
+
if (s.multiple && !q(w)) {
|
|
1807
1817
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1808
1818
|
return;
|
|
1809
|
-
} else if (!s.multiple && q(
|
|
1819
|
+
} else if (!s.multiple && q(w)) {
|
|
1810
1820
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1811
1821
|
return;
|
|
1812
1822
|
}
|
|
1813
1823
|
let D;
|
|
1814
1824
|
if (s.multiple)
|
|
1815
|
-
D =
|
|
1825
|
+
D = w || [];
|
|
1816
1826
|
else {
|
|
1817
1827
|
const V = o.value;
|
|
1818
|
-
D = s.allowUnset && V &&
|
|
1828
|
+
D = s.allowUnset && V && w && ce(V) === ce(w) ? void 0 : w;
|
|
1819
1829
|
}
|
|
1820
1830
|
s.fullyControlValue ? t("update:modelValue", D) : o.value = D, b.value += 1;
|
|
1821
1831
|
}
|
|
1822
1832
|
}), Se = r(() => s.multiple ? U.value.length !== 0 : !!U.value), qe = () => {
|
|
1823
1833
|
s.multiple ? U.value = [] : U.value = void 0;
|
|
1824
1834
|
}, He = r(() => {
|
|
1825
|
-
const
|
|
1826
|
-
return !F.value || !(
|
|
1835
|
+
const w = f.value;
|
|
1836
|
+
return !F.value || !(w != null && w.length) ? x.value : s.filterPredicate ? x.value.filter(
|
|
1827
1837
|
(D) => {
|
|
1828
1838
|
var V;
|
|
1829
|
-
return ((V = s.filterPredicate) == null ? void 0 : V.call(s, D,
|
|
1839
|
+
return ((V = s.filterPredicate) == null ? void 0 : V.call(s, D, w)) || !1;
|
|
1830
1840
|
}
|
|
1831
1841
|
) : x.value;
|
|
1832
|
-
}), Ie = (
|
|
1842
|
+
}), Ie = (w) => JSON.stringify(w), ce = (w) => s.by ? w[s.by] : w, de = async () => {
|
|
1833
1843
|
if (!(!X.value || !s.getSearchResults)) {
|
|
1834
1844
|
p.value = !0;
|
|
1835
1845
|
try {
|
|
@@ -1838,25 +1848,25 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1838
1848
|
p.value = !1;
|
|
1839
1849
|
}
|
|
1840
1850
|
}
|
|
1841
|
-
}, Ge = ze(de, 1e3), Ke = (
|
|
1842
|
-
const { active: D, disabled: V } =
|
|
1851
|
+
}, Ge = ze(de, 1e3), Ke = (w) => {
|
|
1852
|
+
const { active: D, disabled: V } = w || {}, { hideCheckmarks: K } = s, N = [
|
|
1843
1853
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1844
1854
|
K ? "" : "pr-9"
|
|
1845
1855
|
];
|
|
1846
1856
|
return V ? N.push("opacity-50 cursor-not-allowed") : N.push(D ? "text-primary" : "text-foreground"), N.join(" ");
|
|
1847
1857
|
};
|
|
1848
|
-
return
|
|
1858
|
+
return ae(
|
|
1849
1859
|
() => s.items,
|
|
1850
|
-
(
|
|
1851
|
-
x.value =
|
|
1860
|
+
(w) => {
|
|
1861
|
+
x.value = w.slice();
|
|
1852
1862
|
},
|
|
1853
1863
|
{ immediate: !0 }
|
|
1854
|
-
),
|
|
1864
|
+
), ae(f, () => {
|
|
1855
1865
|
X.value && Ge();
|
|
1856
1866
|
}), Y(() => {
|
|
1857
1867
|
X.value && !s.items.length && de();
|
|
1858
|
-
}), n({ triggerSearch: de }), (
|
|
1859
|
-
(
|
|
1868
|
+
}), n({ triggerSearch: de }), (w, D) => (l(), m("div", null, [
|
|
1869
|
+
(l(), P(a(It), {
|
|
1860
1870
|
key: b.value,
|
|
1861
1871
|
modelValue: U.value,
|
|
1862
1872
|
"onUpdate:modelValue": D[4] || (D[4] = (V) => U.value = V),
|
|
@@ -1867,7 +1877,7 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1867
1877
|
as: "div"
|
|
1868
1878
|
}, {
|
|
1869
1879
|
default: _(() => [
|
|
1870
|
-
|
|
1880
|
+
L(a(Bt), {
|
|
1871
1881
|
class: k(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
1872
1882
|
}, {
|
|
1873
1883
|
default: _(() => [
|
|
@@ -1876,30 +1886,35 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1876
1886
|
_: 1
|
|
1877
1887
|
}, 8, ["class"]),
|
|
1878
1888
|
i("div", {
|
|
1879
|
-
class: k(
|
|
1889
|
+
class: k(T.value)
|
|
1880
1890
|
}, [
|
|
1881
|
-
|
|
1891
|
+
L(a(_t), {
|
|
1882
1892
|
class: k(E.value)
|
|
1883
1893
|
}, {
|
|
1884
1894
|
default: _(({ open: V }) => [
|
|
1885
|
-
i("div",
|
|
1886
|
-
i("div",
|
|
1887
|
-
!U.value ||
|
|
1895
|
+
i("div", gn, [
|
|
1896
|
+
i("div", vn, [
|
|
1897
|
+
!U.value || a(q)(U.value) && !U.value.length ? z(w.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1888
1898
|
M(B(e.label), 1)
|
|
1889
|
-
]) : z(
|
|
1899
|
+
]) : z(w.$slots, "something-selected", {
|
|
1890
1900
|
key: 1,
|
|
1891
1901
|
value: U.value
|
|
1892
1902
|
}, () => [
|
|
1893
1903
|
M(B(Ie(U.value)), 1)
|
|
1894
1904
|
])
|
|
1895
1905
|
]),
|
|
1896
|
-
i("div",
|
|
1897
|
-
|
|
1906
|
+
i("div", bn, [
|
|
1907
|
+
C.value ? (l(), P(a(et), {
|
|
1898
1908
|
key: 0,
|
|
1909
|
+
class: "h-4 w-4 text-danger",
|
|
1910
|
+
"aria-hidden": "true"
|
|
1911
|
+
})) : e.showRequired ? (l(), m("div", yn, " * ")) : I("", !0),
|
|
1912
|
+
V ? (l(), P(a(De), {
|
|
1913
|
+
key: 2,
|
|
1899
1914
|
class: "h-4 w-4 text-foreground",
|
|
1900
1915
|
"aria-hidden": "true"
|
|
1901
|
-
})) : (
|
|
1902
|
-
key:
|
|
1916
|
+
})) : (l(), P(a(tt), {
|
|
1917
|
+
key: 3,
|
|
1903
1918
|
class: "h-4 w-4 text-foreground",
|
|
1904
1919
|
"aria-hidden": "true"
|
|
1905
1920
|
}))
|
|
@@ -1908,23 +1923,23 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1908
1923
|
]),
|
|
1909
1924
|
_: 3
|
|
1910
1925
|
}, 8, ["class"]),
|
|
1911
|
-
S.value ? ne((
|
|
1926
|
+
S.value ? ne((l(), m("button", {
|
|
1912
1927
|
key: 0,
|
|
1913
|
-
class: k(
|
|
1928
|
+
class: k(R.value),
|
|
1914
1929
|
disabled: e.disabled,
|
|
1915
1930
|
onClick: D[0] || (D[0] = (V) => qe())
|
|
1916
1931
|
}, [
|
|
1917
|
-
|
|
1918
|
-
], 10,
|
|
1919
|
-
[
|
|
1932
|
+
L(a(st), { class: "w-3 h-3" })
|
|
1933
|
+
], 10, xn)), [
|
|
1934
|
+
[a(Te), "Clear"]
|
|
1920
1935
|
]) : I("", !0),
|
|
1921
|
-
|
|
1936
|
+
L(ge, {
|
|
1922
1937
|
"leave-active-class": "transition ease-in duration-100",
|
|
1923
1938
|
"leave-from-class": "opacity-100",
|
|
1924
1939
|
"leave-to-class": "opacity-0"
|
|
1925
1940
|
}, {
|
|
1926
1941
|
default: _(() => [
|
|
1927
|
-
|
|
1942
|
+
L(a(Pt), {
|
|
1928
1943
|
class: "absolute top-[100%] z-10 mt-1 w-full rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow",
|
|
1929
1944
|
onFocus: D[3] || (D[3] = (V) => {
|
|
1930
1945
|
var K;
|
|
@@ -1932,11 +1947,11 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1932
1947
|
})
|
|
1933
1948
|
}, {
|
|
1934
1949
|
default: _(() => [
|
|
1935
|
-
F.value ? (
|
|
1936
|
-
|
|
1937
|
-
i("div",
|
|
1938
|
-
i("div",
|
|
1939
|
-
|
|
1950
|
+
F.value ? (l(), m("label", kn, [
|
|
1951
|
+
Cn,
|
|
1952
|
+
i("div", wn, [
|
|
1953
|
+
i("div", $n, [
|
|
1954
|
+
L(a(nt), { class: "h-5 w-5 text-foreground" })
|
|
1940
1955
|
]),
|
|
1941
1956
|
ne(i("input", {
|
|
1942
1957
|
ref_key: "searchInput",
|
|
@@ -1947,7 +1962,7 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1947
1962
|
placeholder: e.searchPlaceholder,
|
|
1948
1963
|
onKeydown: D[2] || (D[2] = ye(() => {
|
|
1949
1964
|
}, ["stop"]))
|
|
1950
|
-
}, null, 40,
|
|
1965
|
+
}, null, 40, Sn), [
|
|
1951
1966
|
[Ae, f.value]
|
|
1952
1967
|
])
|
|
1953
1968
|
])
|
|
@@ -1955,16 +1970,16 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1955
1970
|
i("div", {
|
|
1956
1971
|
class: k(["overflow-auto simple-scrollbar", [F.value ? "max-h-52" : "max-h-60"]])
|
|
1957
1972
|
}, [
|
|
1958
|
-
X.value && p.value ? (
|
|
1959
|
-
|
|
1960
|
-
])) : X.value && !x.value.length ? (
|
|
1961
|
-
z(
|
|
1962
|
-
|
|
1973
|
+
X.value && p.value ? (l(), m("div", In, [
|
|
1974
|
+
L(Ue, { loading: !0 })
|
|
1975
|
+
])) : X.value && !x.value.length ? (l(), m("div", Bn, [
|
|
1976
|
+
z(w.$slots, "nothing-found", {}, () => [
|
|
1977
|
+
_n
|
|
1963
1978
|
])
|
|
1964
1979
|
])) : I("", !0),
|
|
1965
|
-
!X.value || !p.value ? (
|
|
1980
|
+
!X.value || !p.value ? (l(!0), m(W, { key: 2 }, G(He.value, (V) => {
|
|
1966
1981
|
var K;
|
|
1967
|
-
return
|
|
1982
|
+
return l(), P(a(Lt), {
|
|
1968
1983
|
key: ce(V),
|
|
1969
1984
|
value: V,
|
|
1970
1985
|
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
|
|
@@ -1980,8 +1995,8 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1980
1995
|
})
|
|
1981
1996
|
)
|
|
1982
1997
|
}, [
|
|
1983
|
-
i("span",
|
|
1984
|
-
z(
|
|
1998
|
+
i("span", Pn, [
|
|
1999
|
+
z(w.$slots, "option", {
|
|
1985
2000
|
item: V,
|
|
1986
2001
|
active: N,
|
|
1987
2002
|
selected: Be,
|
|
@@ -1990,14 +2005,14 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
1990
2005
|
M(B(Ie(V)), 1)
|
|
1991
2006
|
])
|
|
1992
2007
|
]),
|
|
1993
|
-
!e.hideCheckmarks && Be ? (
|
|
2008
|
+
!e.hideCheckmarks && Be ? (l(), m("span", {
|
|
1994
2009
|
key: 0,
|
|
1995
2010
|
class: k([
|
|
1996
2011
|
N ? "text-primary" : "text-foreground",
|
|
1997
2012
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
1998
2013
|
])
|
|
1999
2014
|
}, [
|
|
2000
|
-
|
|
2015
|
+
L(a(at), {
|
|
2001
2016
|
class: "h-5 w-5",
|
|
2002
2017
|
"aria-hidden": "true"
|
|
2003
2018
|
})
|
|
@@ -2019,20 +2034,20 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2019
2034
|
]),
|
|
2020
2035
|
_: 3
|
|
2021
2036
|
}, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
|
|
2022
|
-
v.value ? (
|
|
2037
|
+
v.value ? (l(), m("p", {
|
|
2023
2038
|
key: 0,
|
|
2024
2039
|
id: v.value,
|
|
2025
|
-
class: k(["mt-2 text-sm",
|
|
2026
|
-
}, B(u.value), 11,
|
|
2040
|
+
class: k(["mt-2 text-sm", $.value])
|
|
2041
|
+
}, B(u.value), 11, Ln)) : I("", !0)
|
|
2027
2042
|
]));
|
|
2028
2043
|
}
|
|
2029
|
-
}),
|
|
2044
|
+
}), Vn = /* @__PURE__ */ A({
|
|
2030
2045
|
__name: "SourceAppBadge",
|
|
2031
2046
|
props: {
|
|
2032
2047
|
sourceApp: null
|
|
2033
2048
|
},
|
|
2034
2049
|
setup(e) {
|
|
2035
|
-
return (n, t) => (
|
|
2050
|
+
return (n, t) => (l(), P(as, {
|
|
2036
2051
|
"color-classes": "text-foreground-on-primary",
|
|
2037
2052
|
rounded: "",
|
|
2038
2053
|
style: fe({ backgroundColor: e.sourceApp.bgColor })
|
|
@@ -2043,13 +2058,13 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2043
2058
|
_: 1
|
|
2044
2059
|
}, 8, ["style"]));
|
|
2045
2060
|
}
|
|
2046
|
-
}),
|
|
2061
|
+
}), On = {
|
|
2047
2062
|
key: 0,
|
|
2048
2063
|
class: "text-foreground-2 normal"
|
|
2049
|
-
},
|
|
2064
|
+
}, An = {
|
|
2050
2065
|
key: 1,
|
|
2051
2066
|
class: "flex items-center"
|
|
2052
|
-
},
|
|
2067
|
+
}, Mn = { class: "truncate" }, zn = { class: "flex items-center" }, Dn = { class: "truncate" }, La = /* @__PURE__ */ A({
|
|
2053
2068
|
__name: "SourceApps",
|
|
2054
2069
|
props: {
|
|
2055
2070
|
/**
|
|
@@ -2109,16 +2124,16 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2109
2124
|
},
|
|
2110
2125
|
emits: ["update:modelValue"],
|
|
2111
2126
|
setup(e, { emit: n }) {
|
|
2112
|
-
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: x } =
|
|
2113
|
-
props:
|
|
2127
|
+
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: d, isMultiItemArrayValue: f, firstItem: x } = dn({
|
|
2128
|
+
props: le(t),
|
|
2114
2129
|
emit: n,
|
|
2115
2130
|
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
2116
2131
|
}), p = (b, y) => b.name.toLocaleLowerCase().includes(y.toLocaleLowerCase());
|
|
2117
|
-
return (b, y) => (
|
|
2118
|
-
modelValue:
|
|
2132
|
+
return (b, y) => (l(), P(jn, {
|
|
2133
|
+
modelValue: a(c),
|
|
2119
2134
|
"onUpdate:modelValue": y[0] || (y[0] = (h) => ve(c) ? c.value = h : null),
|
|
2120
2135
|
multiple: e.multiple,
|
|
2121
|
-
items: e.items ??
|
|
2136
|
+
items: e.items ?? a(xt),
|
|
2122
2137
|
search: e.search,
|
|
2123
2138
|
"search-placeholder": e.searchPlaceholder,
|
|
2124
2139
|
label: e.label,
|
|
@@ -2128,14 +2143,14 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2128
2143
|
by: "name"
|
|
2129
2144
|
}, {
|
|
2130
2145
|
"nothing-selected": _(() => [
|
|
2131
|
-
e.selectorPlaceholder ? (
|
|
2146
|
+
e.selectorPlaceholder ? (l(), m(W, { key: 0 }, [
|
|
2132
2147
|
M(B(e.selectorPlaceholder), 1)
|
|
2133
|
-
], 64)) : (
|
|
2148
|
+
], 64)) : (l(), m(W, { key: 1 }, [
|
|
2134
2149
|
M(B(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2135
2150
|
], 64))
|
|
2136
2151
|
]),
|
|
2137
2152
|
"something-selected": _(({ value: h }) => [
|
|
2138
|
-
|
|
2153
|
+
a(f)(h) ? (l(), m("div", {
|
|
2139
2154
|
key: 0,
|
|
2140
2155
|
ref_key: "elementToWatchForChanges",
|
|
2141
2156
|
ref: s,
|
|
@@ -2146,27 +2161,27 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2146
2161
|
ref: o,
|
|
2147
2162
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2148
2163
|
}, [
|
|
2149
|
-
(
|
|
2164
|
+
(l(!0), m(W, null, G(h, (C) => (l(), P(Vn, {
|
|
2150
2165
|
key: C.name,
|
|
2151
2166
|
"source-app": C
|
|
2152
2167
|
}, null, 8, ["source-app"]))), 128))
|
|
2153
2168
|
], 512),
|
|
2154
|
-
|
|
2155
|
-
], 512)) : (
|
|
2169
|
+
a(d) > 0 ? (l(), m("div", On, " +" + B(a(d)), 1)) : I("", !0)
|
|
2170
|
+
], 512)) : (l(), m("div", An, [
|
|
2156
2171
|
i("div", {
|
|
2157
2172
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2158
|
-
style: fe({ backgroundColor:
|
|
2173
|
+
style: fe({ backgroundColor: a(x)(h).bgColor })
|
|
2159
2174
|
}, null, 4),
|
|
2160
|
-
i("span",
|
|
2175
|
+
i("span", Mn, B(a(x)(h).name), 1)
|
|
2161
2176
|
]))
|
|
2162
2177
|
]),
|
|
2163
2178
|
option: _(({ item: h }) => [
|
|
2164
|
-
i("div",
|
|
2179
|
+
i("div", zn, [
|
|
2165
2180
|
i("div", {
|
|
2166
2181
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2167
2182
|
style: fe({ backgroundColor: h.bgColor })
|
|
2168
2183
|
}, null, 4),
|
|
2169
|
-
i("span",
|
|
2184
|
+
i("span", Dn, B(h.name), 1)
|
|
2170
2185
|
])
|
|
2171
2186
|
]),
|
|
2172
2187
|
_: 1
|
|
@@ -2174,7 +2189,7 @@ const Ue = /* @__PURE__ */ Fe(hn, [["__scopeId", "data-v-60cf597b"]]), mn = { cl
|
|
|
2174
2189
|
}
|
|
2175
2190
|
});
|
|
2176
2191
|
var se = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(se || {});
|
|
2177
|
-
const he =
|
|
2192
|
+
const he = kt(), Rn = {
|
|
2178
2193
|
[
|
|
2179
2194
|
"cmd-or-ctrl"
|
|
2180
2195
|
/* CtrlOrCmd */
|
|
@@ -2185,12 +2200,12 @@ const he = xt(), zn = {
|
|
|
2185
2200
|
]: he === pe.Mac ? "Opt" : "Alt",
|
|
2186
2201
|
shift: "Shift"
|
|
2187
2202
|
};
|
|
2188
|
-
function
|
|
2203
|
+
function ja(e) {
|
|
2189
2204
|
const n = (t) => Object.values(se).includes(t);
|
|
2190
|
-
return e.map((t) => n(t) ?
|
|
2205
|
+
return e.map((t) => n(t) ? Rn[t] : t).join("+");
|
|
2191
2206
|
}
|
|
2192
|
-
function
|
|
2193
|
-
|
|
2207
|
+
function Va(e, ...n) {
|
|
2208
|
+
$t(
|
|
2194
2209
|
n[0],
|
|
2195
2210
|
(t) => {
|
|
2196
2211
|
const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
|
|
@@ -2214,20 +2229,20 @@ function Ll(e, ...n) {
|
|
|
2214
2229
|
n[2]
|
|
2215
2230
|
);
|
|
2216
2231
|
}
|
|
2217
|
-
function
|
|
2232
|
+
function Oa(e) {
|
|
2218
2233
|
const n = (e == null ? void 0 : e.model) || O(), t = r({
|
|
2219
2234
|
get: () => !!n.value,
|
|
2220
2235
|
set: (s) => n.value = s ? !0 : void 0
|
|
2221
2236
|
});
|
|
2222
2237
|
return { model: n, isChecked: t };
|
|
2223
2238
|
}
|
|
2224
|
-
const
|
|
2239
|
+
const Tn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Fn = { class: "fixed inset-0 z-10 overflow-y-auto" }, En = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Wn = {
|
|
2225
2240
|
key: 0,
|
|
2226
2241
|
class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
|
|
2227
|
-
},
|
|
2242
|
+
}, Un = { class: "text-2xl font-bold" }, qn = { class: "p-4 sm:p-6" }, Hn = {
|
|
2228
2243
|
key: 2,
|
|
2229
2244
|
class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
|
|
2230
|
-
},
|
|
2245
|
+
}, Aa = /* @__PURE__ */ A({
|
|
2231
2246
|
__name: "Dialog",
|
|
2232
2247
|
props: {
|
|
2233
2248
|
open: { type: Boolean },
|
|
@@ -2262,18 +2277,18 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2262
2277
|
}), p = () => {
|
|
2263
2278
|
t.preventCloseOnClickOutside || (d.value = !1);
|
|
2264
2279
|
};
|
|
2265
|
-
return (b, y) => (
|
|
2280
|
+
return (b, y) => (l(), P(a(jt), {
|
|
2266
2281
|
as: "template",
|
|
2267
2282
|
show: d.value
|
|
2268
2283
|
}, {
|
|
2269
2284
|
default: _(() => [
|
|
2270
|
-
|
|
2285
|
+
L(a(Vt), {
|
|
2271
2286
|
as: "div",
|
|
2272
2287
|
class: "relative z-40",
|
|
2273
2288
|
onClose: p
|
|
2274
2289
|
}, {
|
|
2275
2290
|
default: _(() => [
|
|
2276
|
-
|
|
2291
|
+
L(a(Ve), {
|
|
2277
2292
|
as: "template",
|
|
2278
2293
|
enter: "ease-out duration-300",
|
|
2279
2294
|
"enter-from": "opacity-0",
|
|
@@ -2283,13 +2298,13 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2283
2298
|
"leave-to": "opacity-0"
|
|
2284
2299
|
}, {
|
|
2285
2300
|
default: _(() => [
|
|
2286
|
-
|
|
2301
|
+
Tn
|
|
2287
2302
|
]),
|
|
2288
2303
|
_: 1
|
|
2289
2304
|
}),
|
|
2290
|
-
i("div",
|
|
2291
|
-
i("div",
|
|
2292
|
-
|
|
2305
|
+
i("div", Fn, [
|
|
2306
|
+
i("div", En, [
|
|
2307
|
+
L(a(Ve), {
|
|
2293
2308
|
as: "template",
|
|
2294
2309
|
enter: "ease-out duration-300",
|
|
2295
2310
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2300,7 +2315,7 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2300
2315
|
onAfterLeave: y[1] || (y[1] = (h) => b.$emit("fully-closed"))
|
|
2301
2316
|
}, {
|
|
2302
2317
|
default: _(() => [
|
|
2303
|
-
|
|
2318
|
+
L(a(Ot), {
|
|
2304
2319
|
class: k([
|
|
2305
2320
|
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2306
2321
|
x.value
|
|
@@ -2309,23 +2324,23 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2309
2324
|
onSubmit: ye(e.onSubmit, ["prevent"])
|
|
2310
2325
|
}, {
|
|
2311
2326
|
default: _(() => [
|
|
2312
|
-
e.title ? (
|
|
2313
|
-
i("h4",
|
|
2327
|
+
e.title ? (l(), m("div", Wn, [
|
|
2328
|
+
i("h4", Un, B(e.title), 1)
|
|
2314
2329
|
])) : I("", !0),
|
|
2315
|
-
e.hideCloser ? I("", !0) : (
|
|
2330
|
+
e.hideCloser ? I("", !0) : (l(), m("button", {
|
|
2316
2331
|
key: 1,
|
|
2317
2332
|
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2318
2333
|
onClick: y[0] || (y[0] = (h) => d.value = !1)
|
|
2319
2334
|
}, [
|
|
2320
|
-
|
|
2335
|
+
L(a(dt), { class: "h-6 w-6" })
|
|
2321
2336
|
])),
|
|
2322
|
-
i("div",
|
|
2337
|
+
i("div", qn, [
|
|
2323
2338
|
z(b.$slots, "default", {}, () => [
|
|
2324
2339
|
M("Put your content here!")
|
|
2325
2340
|
])
|
|
2326
2341
|
]),
|
|
2327
|
-
c.value ? (
|
|
2328
|
-
e.buttons ? (
|
|
2342
|
+
c.value ? (l(), m("div", Hn, [
|
|
2343
|
+
e.buttons ? (l(!0), m(W, { key: 0 }, G(e.buttons, (h, C) => (l(), P(a(re), oe({ key: C }, h.props, {
|
|
2329
2344
|
onClick: h.onClick
|
|
2330
2345
|
}), {
|
|
2331
2346
|
default: _(() => [
|
|
@@ -2349,7 +2364,7 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2349
2364
|
_: 3
|
|
2350
2365
|
}, 8, ["show"]));
|
|
2351
2366
|
}
|
|
2352
|
-
}),
|
|
2367
|
+
}), Gn = { class: "inline-flex items-center space-x-2" }, Kn = { class: "label-light" }, Ma = /* @__PURE__ */ A({
|
|
2353
2368
|
__name: "Disclosure",
|
|
2354
2369
|
props: {
|
|
2355
2370
|
title: null,
|
|
@@ -2403,31 +2418,31 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2403
2418
|
}
|
|
2404
2419
|
return o.join(" ");
|
|
2405
2420
|
});
|
|
2406
|
-
return (o, c) => (
|
|
2407
|
-
|
|
2421
|
+
return (o, c) => (l(), m("div", null, [
|
|
2422
|
+
L(a(At), null, {
|
|
2408
2423
|
default: _(({ open: d }) => [
|
|
2409
|
-
|
|
2424
|
+
L(a(Mt), {
|
|
2410
2425
|
class: k(t.value)
|
|
2411
2426
|
}, {
|
|
2412
2427
|
default: _(() => [
|
|
2413
|
-
i("div",
|
|
2414
|
-
e.icon ? (
|
|
2428
|
+
i("div", Gn, [
|
|
2429
|
+
e.icon ? (l(), P(H(e.icon), {
|
|
2415
2430
|
key: 0,
|
|
2416
2431
|
class: "h-4 w-4"
|
|
2417
2432
|
})) : I("", !0),
|
|
2418
2433
|
i("span", null, B(e.title), 1)
|
|
2419
2434
|
]),
|
|
2420
|
-
|
|
2435
|
+
L(a(De), {
|
|
2421
2436
|
class: k([d ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2422
2437
|
}, null, 8, ["class"])
|
|
2423
2438
|
]),
|
|
2424
2439
|
_: 2
|
|
2425
2440
|
}, 1032, ["class"]),
|
|
2426
|
-
|
|
2441
|
+
L(a(zt), {
|
|
2427
2442
|
class: k(s.value)
|
|
2428
2443
|
}, {
|
|
2429
2444
|
default: _(() => [
|
|
2430
|
-
i("div",
|
|
2445
|
+
i("div", Kn, [
|
|
2431
2446
|
z(o.$slots, "default", {}, () => [
|
|
2432
2447
|
M("Panel contents")
|
|
2433
2448
|
])
|
|
@@ -2442,7 +2457,7 @@ const Dn = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2442
2457
|
}
|
|
2443
2458
|
});
|
|
2444
2459
|
var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
|
|
2445
|
-
const
|
|
2460
|
+
const za = /* @__PURE__ */ A({
|
|
2446
2461
|
__name: "GridListToggle",
|
|
2447
2462
|
props: {
|
|
2448
2463
|
modelValue: null
|
|
@@ -2453,22 +2468,22 @@ const Al = /* @__PURE__ */ A({
|
|
|
2453
2468
|
get: () => t.modelValue || J.Grid,
|
|
2454
2469
|
set: (d) => n("update:modelValue", d)
|
|
2455
2470
|
}), o = r(
|
|
2456
|
-
() => s.value === J.Grid ? lt :
|
|
2471
|
+
() => s.value === J.Grid ? lt : ot
|
|
2457
2472
|
), c = (d) => {
|
|
2458
2473
|
n("click", d);
|
|
2459
2474
|
const f = s.value === J.Grid ? J.List : J.Grid;
|
|
2460
2475
|
s.value = f;
|
|
2461
2476
|
};
|
|
2462
|
-
return (d, f) => (
|
|
2477
|
+
return (d, f) => (l(), m("button", {
|
|
2463
2478
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2464
2479
|
onClick: c
|
|
2465
2480
|
}, [
|
|
2466
|
-
(
|
|
2481
|
+
(l(), P(H(o.value), { class: "h-6 w-6" }))
|
|
2467
2482
|
]));
|
|
2468
2483
|
}
|
|
2469
2484
|
});
|
|
2470
|
-
var
|
|
2471
|
-
function
|
|
2485
|
+
var Xn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Xn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
|
|
2486
|
+
function Nn(e, n) {
|
|
2472
2487
|
if (!we)
|
|
2473
2488
|
return;
|
|
2474
2489
|
const {
|
|
@@ -2478,34 +2493,34 @@ function Kn(e, n) {
|
|
|
2478
2493
|
} = n || {}, o = t ? s === 0 ? Qe(e, t) : ze(e, t) : e;
|
|
2479
2494
|
Y(() => window.addEventListener("resize", o)), Me(() => window.removeEventListener("resize", o));
|
|
2480
2495
|
}
|
|
2481
|
-
function
|
|
2496
|
+
function Da(e) {
|
|
2482
2497
|
Y(() => {
|
|
2483
2498
|
window.addEventListener("beforeunload", e);
|
|
2484
2499
|
}), Me(() => {
|
|
2485
2500
|
window.removeEventListener("beforeunload", e);
|
|
2486
2501
|
});
|
|
2487
2502
|
}
|
|
2488
|
-
function
|
|
2503
|
+
function Jn(e) {
|
|
2489
2504
|
const { el: n, defaultDirection: t } = e, s = O(
|
|
2490
2505
|
Q(t) ? 1 : t
|
|
2491
2506
|
/* Right */
|
|
2492
2507
|
), o = r(() => {
|
|
2493
|
-
const d =
|
|
2508
|
+
const d = a(e.stopUpdatesBelowWidth);
|
|
2494
2509
|
if (!Q(d))
|
|
2495
2510
|
return d;
|
|
2496
|
-
const f =
|
|
2511
|
+
const f = a(n);
|
|
2497
2512
|
return f != null && f.offsetWidth ? f.offsetWidth * 2 : void 0;
|
|
2498
2513
|
}), c = () => {
|
|
2499
2514
|
if (!we)
|
|
2500
2515
|
return;
|
|
2501
|
-
const d =
|
|
2516
|
+
const d = a(n);
|
|
2502
2517
|
if (!d)
|
|
2503
2518
|
return;
|
|
2504
2519
|
const f = d.getBoundingClientRect(), x = f.x + f.width > window.innerWidth, p = f.x < 0;
|
|
2505
2520
|
x && p || !Q(o.value) && window.innerWidth < o.value || (x ? s.value = 0 : p && (s.value = 1));
|
|
2506
2521
|
};
|
|
2507
|
-
return
|
|
2508
|
-
() =>
|
|
2522
|
+
return Nn(() => c()), ae(
|
|
2523
|
+
() => a(n),
|
|
2509
2524
|
(d) => {
|
|
2510
2525
|
d && c();
|
|
2511
2526
|
}
|
|
@@ -2514,7 +2529,7 @@ function Xn(e) {
|
|
|
2514
2529
|
recalculateDirection: c
|
|
2515
2530
|
};
|
|
2516
2531
|
}
|
|
2517
|
-
const
|
|
2532
|
+
const Qn = ["disabled", "onClick"], Ra = /* @__PURE__ */ A({
|
|
2518
2533
|
__name: "Menu",
|
|
2519
2534
|
props: {
|
|
2520
2535
|
open: { type: Boolean },
|
|
@@ -2522,7 +2537,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2522
2537
|
},
|
|
2523
2538
|
emits: ["update:open", "chosen"],
|
|
2524
2539
|
setup(e, { emit: n }) {
|
|
2525
|
-
const t = e, s = O(null), { direction: o } =
|
|
2540
|
+
const t = e, s = O(null), { direction: o } = Jn({
|
|
2526
2541
|
el: r(() => {
|
|
2527
2542
|
var h;
|
|
2528
2543
|
return ((h = s.value) == null ? void 0 : h.el) || null;
|
|
@@ -2544,17 +2559,17 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2544
2559
|
const C = !!h;
|
|
2545
2560
|
return d.value = C, C;
|
|
2546
2561
|
};
|
|
2547
|
-
return
|
|
2562
|
+
return ae(d, (h, C) => {
|
|
2548
2563
|
h !== C && (f.value = h);
|
|
2549
|
-
}),
|
|
2564
|
+
}), ae(f, (h) => {
|
|
2550
2565
|
(h && !d.value || !h && d.value) && b();
|
|
2551
|
-
}), (h, C) => (
|
|
2566
|
+
}), (h, C) => (l(), P(a(Dt), {
|
|
2552
2567
|
as: "div",
|
|
2553
2568
|
class: "relative inline-block"
|
|
2554
2569
|
}, {
|
|
2555
2570
|
default: _(({ open: u }) => [
|
|
2556
2571
|
i("div", null, [
|
|
2557
|
-
|
|
2572
|
+
L(a(Rt), {
|
|
2558
2573
|
ref_key: "menuButton",
|
|
2559
2574
|
ref: c,
|
|
2560
2575
|
class: "hidden",
|
|
@@ -2570,7 +2585,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2570
2585
|
})
|
|
2571
2586
|
], 2)
|
|
2572
2587
|
]),
|
|
2573
|
-
|
|
2588
|
+
L(ge, {
|
|
2574
2589
|
"enter-active-class": "transition duration-100 ease-out",
|
|
2575
2590
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
2576
2591
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -2579,36 +2594,36 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2579
2594
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
2580
2595
|
}, {
|
|
2581
2596
|
default: _(() => [
|
|
2582
|
-
|
|
2597
|
+
L(a(Tt), {
|
|
2583
2598
|
ref_key: "menuItems",
|
|
2584
2599
|
ref: s,
|
|
2585
2600
|
class: k([
|
|
2586
2601
|
"absolute mt-2 w-56 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
|
|
2587
|
-
|
|
2602
|
+
a(o) === a(me).Left ? "right-0" : ""
|
|
2588
2603
|
])
|
|
2589
2604
|
}, {
|
|
2590
2605
|
default: _(() => [
|
|
2591
|
-
(
|
|
2606
|
+
(l(!0), m(W, null, G(e.items, (j, v) => (l(), m("div", {
|
|
2592
2607
|
key: v,
|
|
2593
2608
|
class: "px-1 py-1"
|
|
2594
2609
|
}, [
|
|
2595
|
-
(
|
|
2596
|
-
key:
|
|
2597
|
-
disabled:
|
|
2610
|
+
(l(!0), m(W, null, G(j, ($) => (l(), P(a(Ft), {
|
|
2611
|
+
key: $.id,
|
|
2612
|
+
disabled: $.disabled
|
|
2598
2613
|
}, {
|
|
2599
|
-
default: _(({ active: S, disabled:
|
|
2600
|
-
ne((
|
|
2614
|
+
default: _(({ active: S, disabled: T }) => [
|
|
2615
|
+
ne((l(), m("span", null, [
|
|
2601
2616
|
i("button", {
|
|
2602
|
-
class: k(x({ active: S, disabled:
|
|
2603
|
-
disabled:
|
|
2604
|
-
onClick: (g) => p(
|
|
2617
|
+
class: k(x({ active: S, disabled: T })),
|
|
2618
|
+
disabled: T,
|
|
2619
|
+
onClick: (g) => p($, g)
|
|
2605
2620
|
}, [
|
|
2606
|
-
z(h.$slots, "item", { item:
|
|
2607
|
-
M(B(
|
|
2621
|
+
z(h.$slots, "item", { item: $ }, () => [
|
|
2622
|
+
M(B($.title), 1)
|
|
2608
2623
|
])
|
|
2609
|
-
], 10,
|
|
2624
|
+
], 10, Qn)
|
|
2610
2625
|
])), [
|
|
2611
|
-
[
|
|
2626
|
+
[a(Te), $.disabled && $.disabledTooltip]
|
|
2612
2627
|
])
|
|
2613
2628
|
]),
|
|
2614
2629
|
_: 2
|
|
@@ -2624,7 +2639,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2624
2639
|
_: 3
|
|
2625
2640
|
}));
|
|
2626
2641
|
}
|
|
2627
|
-
}),
|
|
2642
|
+
}), Yn = { class: "flex flex-col space-y-4" }, Zn = { class: "flex space-x-6" }, Ta = /* @__PURE__ */ A({
|
|
2628
2643
|
__name: "Tabs",
|
|
2629
2644
|
props: {
|
|
2630
2645
|
items: null
|
|
@@ -2633,9 +2648,9 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2633
2648
|
const n = e, t = O(null), s = r(() => t.value && n.items.find((c) => c.id === t.value) || n.items[0]), o = (c) => {
|
|
2634
2649
|
t.value = c.id;
|
|
2635
2650
|
};
|
|
2636
|
-
return (c, d) => (
|
|
2637
|
-
i("div",
|
|
2638
|
-
(
|
|
2651
|
+
return (c, d) => (l(), m("div", Yn, [
|
|
2652
|
+
i("div", Zn, [
|
|
2653
|
+
(l(!0), m(W, null, G(e.items, (f) => (l(), P(re, {
|
|
2639
2654
|
key: f.id,
|
|
2640
2655
|
link: "",
|
|
2641
2656
|
color: s.value.id === f.id ? "default" : "secondary",
|
|
@@ -2650,7 +2665,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2650
2665
|
z(c.$slots, "default", { activeItem: s.value })
|
|
2651
2666
|
]));
|
|
2652
2667
|
}
|
|
2653
|
-
}),
|
|
2668
|
+
}), ea = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, ta = { class: "inline-flex items-center space-x-1" }, sa = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), na = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, aa = { class: "inline-flex items-center space-x-1" }, la = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Fa = /* @__PURE__ */ A({
|
|
2654
2669
|
__name: "InfiniteLoading",
|
|
2655
2670
|
props: {
|
|
2656
2671
|
settings: null,
|
|
@@ -2664,34 +2679,34 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2664
2679
|
var o;
|
|
2665
2680
|
(o = n.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
|
|
2666
2681
|
}, 200);
|
|
2667
|
-
}), (s, o) => (
|
|
2682
|
+
}), (s, o) => (l(), m("div", {
|
|
2668
2683
|
ref_key: "wrapper",
|
|
2669
2684
|
ref: n
|
|
2670
2685
|
}, [
|
|
2671
|
-
t.value ? (
|
|
2686
|
+
t.value ? (l(), P(a(Et), oe({ key: 0 }, s.$props.settings || {}, {
|
|
2672
2687
|
onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
|
|
2673
2688
|
}), {
|
|
2674
2689
|
spinner: _(() => [
|
|
2675
|
-
|
|
2690
|
+
L(Ue, {
|
|
2676
2691
|
loading: !0,
|
|
2677
2692
|
class: "my-2"
|
|
2678
2693
|
})
|
|
2679
2694
|
]),
|
|
2680
2695
|
complete: _(() => [
|
|
2681
|
-
i("div",
|
|
2682
|
-
i("div",
|
|
2683
|
-
|
|
2684
|
-
|
|
2696
|
+
i("div", ea, [
|
|
2697
|
+
i("div", ta, [
|
|
2698
|
+
L(a(ft), { class: "w-5 h-5 text-success" }),
|
|
2699
|
+
sa
|
|
2685
2700
|
])
|
|
2686
2701
|
])
|
|
2687
2702
|
]),
|
|
2688
2703
|
error: _(({ retry: c }) => [
|
|
2689
|
-
i("div",
|
|
2690
|
-
i("div",
|
|
2691
|
-
|
|
2692
|
-
|
|
2704
|
+
i("div", na, [
|
|
2705
|
+
i("div", aa, [
|
|
2706
|
+
L(a(pt), { class: "w-5 h-5 text-danger" }),
|
|
2707
|
+
la
|
|
2693
2708
|
]),
|
|
2694
|
-
e.allowRetry ? (
|
|
2709
|
+
e.allowRetry ? (l(), P(re, {
|
|
2695
2710
|
key: 0,
|
|
2696
2711
|
onClick: c
|
|
2697
2712
|
}, {
|
|
@@ -2706,10 +2721,10 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2706
2721
|
}, 16)) : I("", !0)
|
|
2707
2722
|
], 512));
|
|
2708
2723
|
}
|
|
2709
|
-
}),
|
|
2724
|
+
}), oa = { class: "relative group" }, ra = {
|
|
2710
2725
|
key: 0,
|
|
2711
2726
|
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"
|
|
2712
|
-
},
|
|
2727
|
+
}, Ea = /* @__PURE__ */ A({
|
|
2713
2728
|
__name: "Panel",
|
|
2714
2729
|
props: {
|
|
2715
2730
|
/**
|
|
@@ -2755,9 +2770,9 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2755
2770
|
const d = ["rounded-lg"];
|
|
2756
2771
|
return t.noShadow || d.push("shadow"), t.ring && d.push("ring-outline-2 hover:ring-2"), t.panelClasses && d.push(t.panelClasses), d.join(" ");
|
|
2757
2772
|
});
|
|
2758
|
-
return (d, f) => (
|
|
2759
|
-
e.fancyGlow ? (
|
|
2760
|
-
(
|
|
2773
|
+
return (d, f) => (l(), m("div", oa, [
|
|
2774
|
+
e.fancyGlow ? (l(), m("div", ra)) : I("", !0),
|
|
2775
|
+
(l(), P(H(e.form ? "form" : "div"), {
|
|
2761
2776
|
class: k([
|
|
2762
2777
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2763
2778
|
c.value
|
|
@@ -2765,7 +2780,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2765
2780
|
onSubmit: f[0] || (f[0] = (x) => n("submit", x))
|
|
2766
2781
|
}, {
|
|
2767
2782
|
default: _(() => [
|
|
2768
|
-
d.$slots.header ? (
|
|
2783
|
+
d.$slots.header ? (l(), m("div", {
|
|
2769
2784
|
key: 0,
|
|
2770
2785
|
class: k(s.value)
|
|
2771
2786
|
}, [
|
|
@@ -2776,7 +2791,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2776
2791
|
}, [
|
|
2777
2792
|
z(d.$slots, "default")
|
|
2778
2793
|
], 2),
|
|
2779
|
-
d.$slots.footer ? (
|
|
2794
|
+
d.$slots.footer ? (l(), m("div", {
|
|
2780
2795
|
key: 1,
|
|
2781
2796
|
class: k(s.value)
|
|
2782
2797
|
}, [
|
|
@@ -2787,7 +2802,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2787
2802
|
}, 40, ["class"]))
|
|
2788
2803
|
]));
|
|
2789
2804
|
}
|
|
2790
|
-
}),
|
|
2805
|
+
}), ia = { class: "flex-shrink-0" }, ua = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Wa = /* @__PURE__ */ A({
|
|
2791
2806
|
__name: "Alert",
|
|
2792
2807
|
props: {
|
|
2793
2808
|
color: { default: "success" },
|
|
@@ -2803,14 +2818,14 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2803
2818
|
return n.customIcon;
|
|
2804
2819
|
switch (n.color) {
|
|
2805
2820
|
case "info":
|
|
2806
|
-
return
|
|
2821
|
+
return bt;
|
|
2807
2822
|
case "warning":
|
|
2808
2823
|
return xe;
|
|
2809
2824
|
case "danger":
|
|
2810
|
-
return
|
|
2825
|
+
return vt;
|
|
2811
2826
|
case "success":
|
|
2812
2827
|
default:
|
|
2813
|
-
return
|
|
2828
|
+
return Re;
|
|
2814
2829
|
}
|
|
2815
2830
|
}), c = r(() => {
|
|
2816
2831
|
const u = [];
|
|
@@ -2961,14 +2976,14 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2961
2976
|
return "sm";
|
|
2962
2977
|
}
|
|
2963
2978
|
});
|
|
2964
|
-
return (u, j) => (
|
|
2979
|
+
return (u, j) => (l(), m("div", {
|
|
2965
2980
|
class: k(["rounded-md", [c.value, b.value]])
|
|
2966
2981
|
}, [
|
|
2967
2982
|
i("div", {
|
|
2968
2983
|
class: k(["flex", d.value])
|
|
2969
2984
|
}, [
|
|
2970
|
-
i("div",
|
|
2971
|
-
(
|
|
2985
|
+
i("div", ia, [
|
|
2986
|
+
(l(), P(H(o.value), {
|
|
2972
2987
|
class: k(y.value),
|
|
2973
2988
|
"aria-hidden": "true"
|
|
2974
2989
|
}, null, 8, ["class"]))
|
|
@@ -2983,7 +2998,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2983
2998
|
M("Title")
|
|
2984
2999
|
])
|
|
2985
3000
|
], 2),
|
|
2986
|
-
s.value ? (
|
|
3001
|
+
s.value ? (l(), m("div", {
|
|
2987
3002
|
key: 0,
|
|
2988
3003
|
class: k(x.value)
|
|
2989
3004
|
}, [
|
|
@@ -2994,13 +3009,13 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
2994
3009
|
i("div", {
|
|
2995
3010
|
class: k(p.value)
|
|
2996
3011
|
}, [
|
|
2997
|
-
(
|
|
2998
|
-
key:
|
|
3012
|
+
(l(!0), m(W, null, G(e.actions || [], (v, $) => (l(), P(re, {
|
|
3013
|
+
key: $,
|
|
2999
3014
|
color: e.color,
|
|
3000
3015
|
size: C.value,
|
|
3001
3016
|
to: v.url,
|
|
3002
3017
|
external: v.externalUrl || !1,
|
|
3003
|
-
onClick: (S) => v.onClick ||
|
|
3018
|
+
onClick: (S) => v.onClick || a(Ye)
|
|
3004
3019
|
}, {
|
|
3005
3020
|
default: _(() => [
|
|
3006
3021
|
M(B(v.title), 1)
|
|
@@ -3009,7 +3024,7 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
3009
3024
|
}, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
|
|
3010
3025
|
], 2)
|
|
3011
3026
|
], 2),
|
|
3012
|
-
e.withDismiss ? (
|
|
3027
|
+
e.withDismiss ? (l(), m("div", {
|
|
3013
3028
|
key: 0,
|
|
3014
3029
|
class: k(["flex", [s.value ? "items-start" : "items-center"]])
|
|
3015
3030
|
}, [
|
|
@@ -3018,8 +3033,8 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
3018
3033
|
class: k(["inline-flex rounded-md focus:outline-none focus:ring-2", h.value]),
|
|
3019
3034
|
onClick: j[0] || (j[0] = (v) => u.$emit("dismiss"))
|
|
3020
3035
|
}, [
|
|
3021
|
-
|
|
3022
|
-
|
|
3036
|
+
ua,
|
|
3037
|
+
L(a(ue), {
|
|
3023
3038
|
class: "h-5 w-5",
|
|
3024
3039
|
"aria-hidden": "true"
|
|
3025
3040
|
})
|
|
@@ -3029,52 +3044,52 @@ const Nn = ["disabled", "onClick"], zl = /* @__PURE__ */ A({
|
|
|
3029
3044
|
], 2));
|
|
3030
3045
|
}
|
|
3031
3046
|
});
|
|
3032
|
-
function
|
|
3047
|
+
function Ua(e) {
|
|
3033
3048
|
var u, j;
|
|
3034
3049
|
const { get: n, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: d } = e, f = d == null ? void 0 : d.log, x = () => (new Error("Trace:").stack || "").substring(7), p = ((j = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : j.logger) || console.debug, b = f && !f.writesOnly ? () => {
|
|
3035
3050
|
const v = n();
|
|
3036
3051
|
return p(`debugging: '${f.name}' read`, v, x()), v;
|
|
3037
|
-
} : n, y = f && !f.readsOnly ? (v) => (p(`debugging: '${f.name}' written to`, v, x()), o(v)) : o, h = c ?
|
|
3052
|
+
} : n, y = f && !f.readsOnly ? (v) => (p(`debugging: '${f.name}' written to`, v, x()), o(v)) : o, h = c ? St(b, t, s) : r(b), C = r(() => h.value);
|
|
3038
3053
|
return C.update = y, C;
|
|
3039
3054
|
}
|
|
3040
3055
|
export {
|
|
3041
|
-
|
|
3042
|
-
|
|
3056
|
+
Wa as CommonAlert,
|
|
3057
|
+
as as CommonBadge,
|
|
3043
3058
|
Ue as CommonLoadingBar,
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3059
|
+
$a as CommonStepsBullet,
|
|
3060
|
+
wa as CommonStepsNumber,
|
|
3061
|
+
qt as CommonTextLink,
|
|
3047
3062
|
re as FormButton,
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3063
|
+
Sa as FormCardButton,
|
|
3064
|
+
Ia as FormCheckbox,
|
|
3065
|
+
jn as FormSelectBase,
|
|
3066
|
+
La as FormSelectSourceApps,
|
|
3067
|
+
Ba as FormTextArea,
|
|
3068
|
+
_a as FormTextInput,
|
|
3069
|
+
Ca as GlobalToastRenderer,
|
|
3055
3070
|
J as GridListToggleValue,
|
|
3056
3071
|
me as HorizontalDirection,
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3072
|
+
Fa as InfiniteLoading,
|
|
3073
|
+
Aa as LayoutDialog,
|
|
3074
|
+
Ma as LayoutDisclosure,
|
|
3075
|
+
za as LayoutGridListToggle,
|
|
3076
|
+
Ra as LayoutMenu,
|
|
3077
|
+
Ea as LayoutPanel,
|
|
3078
|
+
Ta as LayoutTabs,
|
|
3064
3079
|
se as ModifierKeys,
|
|
3065
|
-
|
|
3080
|
+
Vn as SourceAppBadge,
|
|
3066
3081
|
te as TailwindBreakpoints,
|
|
3067
|
-
|
|
3082
|
+
Xn as ThrottleOrDebounce,
|
|
3068
3083
|
ee as ToastNotificationType,
|
|
3069
|
-
|
|
3084
|
+
Pa as ValidationHelpers,
|
|
3070
3085
|
he as clientOs,
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3086
|
+
ja as getKeyboardShortcutTitle,
|
|
3087
|
+
Va as onKeyboardShortcut,
|
|
3088
|
+
Oa as useFormCheckboxModel,
|
|
3089
|
+
dn as useFormSelectChildInternals,
|
|
3090
|
+
Da as useOnBeforeWindowUnload,
|
|
3091
|
+
Jn as useResponsiveHorizontalDirectionCalculation,
|
|
3092
|
+
Nn as useWindowResizeHandler,
|
|
3093
|
+
cn as useWrappingContainerHiddenCount,
|
|
3094
|
+
Ua as writableAsyncComputed
|
|
3080
3095
|
};
|