@speckle/ui-components 2.15.2-alpha3 → 2.15.2-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layout/Dialog.vue.d.ts +3 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +547 -547
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as M, resolveDynamicComponent as H, computed as
|
|
2
|
-
import { isObjectLike as
|
|
1
|
+
import { defineComponent as M, resolveDynamicComponent as H, computed as r, openBlock as a, createBlock as P, normalizeClass as x, withCtx as _, createCommentVNode as S, renderSlot as D, createTextVNode as A, createElementBlock as m, createElementVNode as i, createVNode as L, Transition as ge, unref as n, toDisplayString as I, toRefs as ae, Fragment as U, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as Oe, useSlots as be, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as ye, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
|
|
2
|
+
import { isObjectLike as Le, clamp as Pe, isString as ie, isUndefined as Q, isArray as q, debounce as Ae, throttle as Qe, noop as Ye } from "lodash";
|
|
3
3
|
import { ArrowPathIcon as Ze, ChevronUpIcon as De, ChevronDownIcon as et, XMarkIcon as tt, MagnifyingGlassIcon as st, CheckIcon as nt, Bars3Icon as lt, Squares2X2Icon as at } from "@heroicons/vue/24/solid";
|
|
4
4
|
import { CheckCircleIcon as ot, XCircleIcon as rt, ExclamationCircleIcon as it, InformationCircleIcon as ut, XMarkIcon as ct, CheckIcon as dt, ExclamationTriangleIcon as ft } from "@heroicons/vue/24/outline";
|
|
5
5
|
import { XMarkIcon as ue, CheckIcon as pt, CheckCircleIcon as Te, ExclamationCircleIcon as Re, EnvelopeIcon as ht, KeyIcon as mt } from "@heroicons/vue/20/solid";
|
|
6
|
-
import { useField as
|
|
7
|
-
import { nanoid as
|
|
6
|
+
import { useField as xe } from "vee-validate";
|
|
7
|
+
import { nanoid as ke } from "nanoid";
|
|
8
8
|
import { isNullOrUndefined as gt, SourceApps as vt, getClientOperatingSystem as bt, OperatingSystem as pe } from "@speckle/shared";
|
|
9
|
-
import { useResizeObserver as yt, useMutationObserver as xt, onKeyDown as kt, isClient as
|
|
10
|
-
import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as
|
|
9
|
+
import { useResizeObserver as yt, useMutationObserver as xt, onKeyDown as kt, isClient as Ce, computedAsync as Ct } from "@vueuse/core";
|
|
10
|
+
import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as Bt, TransitionRoot as _t, Dialog as Lt, TransitionChild as je, DialogPanel as Pt, Disclosure as jt, DisclosureButton as Vt, DisclosurePanel as Ot, Menu as Mt, MenuButton as At, MenuItems as Dt, MenuItem as Tt } from "@headlessui/vue";
|
|
11
11
|
import { directive as Fe } from "vue-tippy";
|
|
12
12
|
import Rt from "v3-infinite-loading";
|
|
13
13
|
const Ft = {
|
|
@@ -141,12 +141,12 @@ const Ft = {
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
143
|
setup(e, { emit: l }) {
|
|
144
|
-
const t = e, s = H("NuxtLink"), o = H("RouterLink"), c =
|
|
144
|
+
const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = r(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Le(s) ? s : Le(o) ? o : "a"), f = r(() => {
|
|
145
145
|
if (!t.to)
|
|
146
146
|
return t.submit ? "submit" : "button";
|
|
147
|
-
}),
|
|
147
|
+
}), d = r(() => t.disabled || t.loading), u = r(() => t.loading ? Ze : t.iconLeft), p = r(() => {
|
|
148
148
|
const g = [];
|
|
149
|
-
if (g.push("border-2"),
|
|
149
|
+
if (g.push("border-2"), d.value)
|
|
150
150
|
g.push(
|
|
151
151
|
t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
152
152
|
);
|
|
@@ -187,10 +187,10 @@ const Ft = {
|
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
return g.join(" ");
|
|
190
|
-
}),
|
|
190
|
+
}), b = r(() => {
|
|
191
191
|
const g = [];
|
|
192
192
|
if (!t.text && !t.link)
|
|
193
|
-
if (
|
|
193
|
+
if (d.value)
|
|
194
194
|
g.push(
|
|
195
195
|
(t.outlined, "text-foreground-disabled")
|
|
196
196
|
);
|
|
@@ -237,16 +237,16 @@ const Ft = {
|
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
else
|
|
240
|
-
|
|
240
|
+
d.value ? g.push("text-foreground-disabled") : t.color === "invert" ? g.push(
|
|
241
241
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
242
|
) : t.color === "secondary" ? g.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? g.push("text-success") : t.color === "warning" ? g.push("text-warning") : t.color === "info" ? g.push("text-info") : t.color === "danger" ? g.push("text-danger") : g.push("text-primary hover:text-primary-focus");
|
|
243
243
|
return g.join(" ");
|
|
244
|
-
}), v =
|
|
244
|
+
}), v = r(() => {
|
|
245
245
|
const g = [];
|
|
246
246
|
return g.push(t.rounded ? "rounded-full" : "rounded-md"), g.join(" ");
|
|
247
|
-
}),
|
|
247
|
+
}), h = r(() => {
|
|
248
248
|
const g = [];
|
|
249
|
-
if (!
|
|
249
|
+
if (!d.value)
|
|
250
250
|
switch (t.color) {
|
|
251
251
|
case "invert":
|
|
252
252
|
g.push("hover:ring-4 ring-white/50");
|
|
@@ -269,7 +269,7 @@ const Ft = {
|
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
return g.join(" ");
|
|
272
|
-
}), k =
|
|
272
|
+
}), k = r(() => {
|
|
273
273
|
switch (t.size) {
|
|
274
274
|
case "xs":
|
|
275
275
|
return "h-5 text-xs font-medium xxx-tracking-wide";
|
|
@@ -283,7 +283,7 @@ const Ft = {
|
|
|
283
283
|
case "base":
|
|
284
284
|
return "h-8 text-base font-medium xxx-tracking-wide";
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
286
|
+
}), B = r(() => {
|
|
287
287
|
switch (t.size) {
|
|
288
288
|
case "xs":
|
|
289
289
|
return "px-1";
|
|
@@ -297,28 +297,28 @@ const Ft = {
|
|
|
297
297
|
case "base":
|
|
298
298
|
return "px-3";
|
|
299
299
|
}
|
|
300
|
-
}), j =
|
|
300
|
+
}), j = r(() => {
|
|
301
301
|
const g = [];
|
|
302
|
-
return t.fullWidth && g.push("w-full"),
|
|
303
|
-
}),
|
|
302
|
+
return t.fullWidth && g.push("w-full"), d.value && g.push("cursor-not-allowed"), g.join(" ");
|
|
303
|
+
}), y = r(() => {
|
|
304
304
|
const g = [];
|
|
305
|
-
return !
|
|
305
|
+
return !d.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !d.value && t.link && g.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
307
|
), g.join(" ");
|
|
308
|
-
}), w =
|
|
308
|
+
}), w = r(() => {
|
|
309
309
|
const g = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
312
312
|
j.value,
|
|
313
313
|
k.value,
|
|
314
|
-
|
|
315
|
-
g ? "" :
|
|
314
|
+
b.value,
|
|
315
|
+
g ? "" : p.value,
|
|
316
316
|
g ? "" : v.value,
|
|
317
|
-
g ? "" :
|
|
318
|
-
t.link ? "" :
|
|
319
|
-
|
|
317
|
+
g ? "" : h.value,
|
|
318
|
+
t.link ? "" : B.value,
|
|
319
|
+
y.value
|
|
320
320
|
].join(" ");
|
|
321
|
-
}), $ =
|
|
321
|
+
}), $ = r(() => {
|
|
322
322
|
const g = [""];
|
|
323
323
|
switch (t.loading && g.push("animate-spin"), t.size) {
|
|
324
324
|
case "xs":
|
|
@@ -340,7 +340,7 @@ const Ft = {
|
|
|
340
340
|
}
|
|
341
341
|
return g.join(" ");
|
|
342
342
|
}), F = (g) => {
|
|
343
|
-
if (
|
|
343
|
+
if (d.value) {
|
|
344
344
|
g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
@@ -351,22 +351,22 @@ const Ft = {
|
|
|
351
351
|
to: e.to,
|
|
352
352
|
type: f.value,
|
|
353
353
|
external: e.external,
|
|
354
|
-
class:
|
|
355
|
-
disabled:
|
|
354
|
+
class: x(w.value),
|
|
355
|
+
disabled: d.value,
|
|
356
356
|
role: "button",
|
|
357
357
|
onClick: F
|
|
358
358
|
}, {
|
|
359
|
-
default:
|
|
360
|
-
|
|
359
|
+
default: _(() => [
|
|
360
|
+
u.value ? (a(), P(H(u.value), {
|
|
361
361
|
key: 0,
|
|
362
|
-
class:
|
|
362
|
+
class: x(`${$.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
363
|
}, null, 8, ["class"])) : S("", !0),
|
|
364
|
-
e.hideText ? (a(),
|
|
364
|
+
e.hideText ? (a(), m("div", Ft, " ")) : D(g.$slots, "default", { key: 1 }, () => [
|
|
365
365
|
A("Button")
|
|
366
366
|
], !0),
|
|
367
367
|
e.iconRight || !e.loading ? (a(), P(H(e.iconRight), {
|
|
368
368
|
key: 3,
|
|
369
|
-
class:
|
|
369
|
+
class: x(`${$.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
370
|
}, null, 8, ["class"])) : S("", !0)
|
|
371
371
|
]),
|
|
372
372
|
_: 3
|
|
@@ -448,7 +448,7 @@ const ze = (e, l) => {
|
|
|
448
448
|
role: "link",
|
|
449
449
|
onClickCapture: s
|
|
450
450
|
}, {
|
|
451
|
-
default:
|
|
451
|
+
default: _(() => [
|
|
452
452
|
D(o.$slots, "default", {}, () => [
|
|
453
453
|
A("Link")
|
|
454
454
|
])
|
|
@@ -480,18 +480,18 @@ const Ut = {
|
|
|
480
480
|
},
|
|
481
481
|
emits: ["update:notification"],
|
|
482
482
|
setup(e, { emit: l }) {
|
|
483
|
-
const t = e, s =
|
|
483
|
+
const t = e, s = r(
|
|
484
484
|
() => {
|
|
485
|
-
var f,
|
|
486
|
-
return !((f = t.notification) != null && f.description) && !((
|
|
485
|
+
var f, d;
|
|
486
|
+
return !((f = t.notification) != null && f.description) && !((d = t.notification) != null && d.cta);
|
|
487
487
|
}
|
|
488
488
|
), o = () => {
|
|
489
489
|
l("update:notification", null);
|
|
490
490
|
}, c = (f) => {
|
|
491
|
-
var
|
|
492
|
-
(
|
|
491
|
+
var d, u, p;
|
|
492
|
+
(p = (u = (d = t.notification) == null ? void 0 : d.cta) == null ? void 0 : u.onClick) == null || p.call(u, f), o();
|
|
493
493
|
};
|
|
494
|
-
return (f,
|
|
494
|
+
return (f, d) => (a(), m("div", Ut, [
|
|
495
495
|
i("div", Wt, [
|
|
496
496
|
L(ge, {
|
|
497
497
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
@@ -501,8 +501,8 @@ const Ut = {
|
|
|
501
501
|
"leave-from-class": "opacity-100",
|
|
502
502
|
"leave-to-class": "opacity-0"
|
|
503
503
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
e.notification ? (a(),
|
|
504
|
+
default: _(() => [
|
|
505
|
+
e.notification ? (a(), m("div", qt, [
|
|
506
506
|
i("div", Ht, [
|
|
507
507
|
i("div", Gt, [
|
|
508
508
|
i("div", Kt, [
|
|
@@ -525,16 +525,16 @@ const Ut = {
|
|
|
525
525
|
})) : S("", !0)
|
|
526
526
|
]),
|
|
527
527
|
i("div", Xt, [
|
|
528
|
-
e.notification.title ? (a(),
|
|
529
|
-
e.notification.description ? (a(),
|
|
530
|
-
e.notification.cta ? (a(),
|
|
528
|
+
e.notification.title ? (a(), m("p", Nt, I(e.notification.title), 1)) : S("", !0),
|
|
529
|
+
e.notification.description ? (a(), m("p", Jt, I(e.notification.description), 1)) : S("", !0),
|
|
530
|
+
e.notification.cta ? (a(), m("div", Qt, [
|
|
531
531
|
L(Et, {
|
|
532
532
|
to: e.notification.cta.url,
|
|
533
533
|
class: "label",
|
|
534
534
|
primary: "",
|
|
535
535
|
onClick: c
|
|
536
536
|
}, {
|
|
537
|
-
default:
|
|
537
|
+
default: _(() => [
|
|
538
538
|
A(I(e.notification.cta.title), 1)
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
@@ -542,7 +542,7 @@ const Ut = {
|
|
|
542
542
|
])) : S("", !0)
|
|
543
543
|
]),
|
|
544
544
|
i("div", {
|
|
545
|
-
class:
|
|
545
|
+
class: x(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
|
|
546
546
|
}, [
|
|
547
547
|
i("button", {
|
|
548
548
|
type: "button",
|
|
@@ -584,63 +584,63 @@ const Ut = {
|
|
|
584
584
|
},
|
|
585
585
|
emits: ["click-icon"],
|
|
586
586
|
setup(e, { emit: l }) {
|
|
587
|
-
const t = e, s =
|
|
587
|
+
const t = e, s = r(
|
|
588
588
|
() => t.colorClasses || "bg-blue-100 text-blue-800"
|
|
589
|
-
), o =
|
|
589
|
+
), o = r(
|
|
590
590
|
() => t.dotIconColorClasses || "text-blue-400"
|
|
591
|
-
), c =
|
|
592
|
-
const
|
|
591
|
+
), c = r(() => {
|
|
592
|
+
const p = [
|
|
593
593
|
"inline-flex items-center",
|
|
594
594
|
s.value,
|
|
595
595
|
t.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
596
596
|
];
|
|
597
|
-
return t.rounded ? (
|
|
597
|
+
return t.rounded ? (p.push("rounded"), p.push(
|
|
598
598
|
t.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
599
|
-
)) : (
|
|
599
|
+
)) : (p.push("rounded-full"), p.push(
|
|
600
600
|
t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
601
|
-
)),
|
|
602
|
-
}), f =
|
|
603
|
-
const
|
|
601
|
+
)), p.join(" ");
|
|
602
|
+
}), f = r(() => {
|
|
603
|
+
const p = [
|
|
604
604
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
605
605
|
];
|
|
606
|
-
return t.clickableIcon ?
|
|
607
|
-
}),
|
|
606
|
+
return t.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
|
|
607
|
+
}), d = r(() => [
|
|
608
608
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
609
609
|
o.value
|
|
610
|
-
].join(" ")),
|
|
610
|
+
].join(" ")), u = (p) => {
|
|
611
611
|
if (!t.clickableIcon) {
|
|
612
|
-
|
|
612
|
+
p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
l("click-icon",
|
|
615
|
+
l("click-icon", p);
|
|
616
616
|
};
|
|
617
|
-
return (
|
|
618
|
-
class:
|
|
617
|
+
return (p, b) => (a(), m("span", {
|
|
618
|
+
class: x(c.value)
|
|
619
619
|
}, [
|
|
620
|
-
e.dot ? (a(),
|
|
620
|
+
e.dot ? (a(), m("svg", {
|
|
621
621
|
key: 0,
|
|
622
|
-
class:
|
|
622
|
+
class: x(d.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
625
|
}, es, 2)) : S("", !0),
|
|
626
|
-
D(
|
|
626
|
+
D(p.$slots, "default", {}, () => [
|
|
627
627
|
A("Badge")
|
|
628
628
|
]),
|
|
629
|
-
e.iconLeft ? (a(),
|
|
629
|
+
e.iconLeft ? (a(), m("button", {
|
|
630
630
|
key: 1,
|
|
631
|
-
class:
|
|
632
|
-
onClick:
|
|
631
|
+
class: x(f.value),
|
|
632
|
+
onClick: b[0] || (b[0] = (v) => u(v))
|
|
633
633
|
}, [
|
|
634
634
|
(a(), P(H(e.iconLeft), {
|
|
635
|
-
class:
|
|
635
|
+
class: x(["h-4 w-4", o.value])
|
|
636
636
|
}, null, 8, ["class"]))
|
|
637
637
|
], 2)) : S("", !0)
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
let
|
|
641
|
+
let Ve = [];
|
|
642
642
|
function ss(e) {
|
|
643
|
-
|
|
643
|
+
Ve = Ve ? e : e.slice();
|
|
644
644
|
}
|
|
645
645
|
var te = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e.lg = 1024] = "lg", e[e.xl = 1280] = "xl", e[e["2xl"] = 1536] = "2xl", e))(te || {});
|
|
646
646
|
function Ee(e) {
|
|
@@ -653,46 +653,46 @@ function Ee(e) {
|
|
|
653
653
|
nonInteractive: c,
|
|
654
654
|
stepsPadding: f
|
|
655
655
|
},
|
|
656
|
-
emit:
|
|
657
|
-
} = e,
|
|
656
|
+
emit: d
|
|
657
|
+
} = e, u = r(
|
|
658
658
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
659
|
-
),
|
|
660
|
-
get: () =>
|
|
661
|
-
set: (
|
|
662
|
-
}),
|
|
659
|
+
), p = r({
|
|
660
|
+
get: () => Pe((l == null ? void 0 : l.value) || 0, -1, t.value.length),
|
|
661
|
+
set: (y) => d("update:modelValue", Pe(y, 0, t.value.length))
|
|
662
|
+
}), b = (y) => `${y + 1}`, v = (y) => y === p.value, h = (y) => y < p.value, k = (y, w) => {
|
|
663
663
|
var F;
|
|
664
664
|
if (c != null && c.value) {
|
|
665
665
|
w == null || w.preventDefault(), w == null || w.stopPropagation(), w == null || w.stopImmediatePropagation();
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
|
|
669
|
-
const $ = t.value[
|
|
668
|
+
p.value = y;
|
|
669
|
+
const $ = t.value[p.value];
|
|
670
670
|
(F = $ == null ? void 0 : $.onClick) == null || F.call($);
|
|
671
|
-
},
|
|
672
|
-
const
|
|
671
|
+
}, B = r(() => {
|
|
672
|
+
const y = ["flex"];
|
|
673
673
|
let w, $;
|
|
674
|
-
return (f == null ? void 0 : f.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"),
|
|
674
|
+
return (f == null ? void 0 : f.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), y.push("flex"), u.value === "vertical" || o != null && o.value ? (y.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? y.push(
|
|
675
675
|
`sm:flex-row sm:space-y-0 sm:justify-start sm:${w} sm:items-center`
|
|
676
|
-
) : (o == null ? void 0 : o.value) === te.md ?
|
|
676
|
+
) : (o == null ? void 0 : o.value) === te.md ? y.push(
|
|
677
677
|
`md:flex-row md:space-y-0 md:justify-start md:${w} md:items-center`
|
|
678
|
-
) : (o == null ? void 0 : o.value) === te.lg ?
|
|
678
|
+
) : (o == null ? void 0 : o.value) === te.lg ? y.push(
|
|
679
679
|
`lg:flex-row lg:space-y-0 lg:justify-start lg:${w} lg:items-center`
|
|
680
|
-
) : (o == null ? void 0 : o.value) === te.xl &&
|
|
680
|
+
) : (o == null ? void 0 : o.value) === te.xl && y.push(
|
|
681
681
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${w} xl:items-center`
|
|
682
|
-
)) :
|
|
683
|
-
}), j =
|
|
684
|
-
const
|
|
685
|
-
return c != null && c.value ||
|
|
682
|
+
)) : y.push(`flex-row ${w} items-center`), y.join(" ");
|
|
683
|
+
}), j = r(() => {
|
|
684
|
+
const y = ["flex items-center"];
|
|
685
|
+
return c != null && c.value || y.push("cursor-pointer"), y.join(" ");
|
|
686
686
|
});
|
|
687
687
|
return {
|
|
688
|
-
value:
|
|
688
|
+
value: p,
|
|
689
689
|
isCurrentStep: v,
|
|
690
|
-
isFinishedStep:
|
|
690
|
+
isFinishedStep: h,
|
|
691
691
|
switchStep: k,
|
|
692
|
-
getStepDisplayValue:
|
|
693
|
-
listClasses:
|
|
692
|
+
getStepDisplayValue: b,
|
|
693
|
+
listClasses: B,
|
|
694
694
|
linkClasses: j,
|
|
695
|
-
orientation:
|
|
695
|
+
orientation: u
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
ss([
|
|
@@ -736,27 +736,27 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
736
736
|
isFinishedStep: o,
|
|
737
737
|
switchStep: c,
|
|
738
738
|
getStepDisplayValue: f,
|
|
739
|
-
listClasses:
|
|
740
|
-
linkClasses:
|
|
739
|
+
listClasses: d,
|
|
740
|
+
linkClasses: u
|
|
741
741
|
} = Ee({
|
|
742
742
|
props: ae(t),
|
|
743
743
|
emit: l
|
|
744
744
|
});
|
|
745
|
-
return (
|
|
745
|
+
return (p, b) => (a(), m("nav", {
|
|
746
746
|
class: "flex justify-center",
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
749
|
i("ol", {
|
|
750
|
-
class:
|
|
750
|
+
class: x(n(d))
|
|
751
751
|
}, [
|
|
752
|
-
(a(!0),
|
|
752
|
+
(a(!0), m(U, null, G(e.steps, (v, h) => (a(), m("li", {
|
|
753
753
|
key: v.name
|
|
754
754
|
}, [
|
|
755
|
-
n(o)(
|
|
755
|
+
n(o)(h) ? (a(), m("a", {
|
|
756
756
|
key: 0,
|
|
757
757
|
href: v.href,
|
|
758
|
-
class:
|
|
759
|
-
onClick: (k) => n(c)(
|
|
758
|
+
class: x(n(u)),
|
|
759
|
+
onClick: (k) => n(c)(h, k)
|
|
760
760
|
}, [
|
|
761
761
|
i("div", as, [
|
|
762
762
|
i("div", os, [
|
|
@@ -764,34 +764,34 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
764
764
|
]),
|
|
765
765
|
i("div", rs, [
|
|
766
766
|
i("div", null, I(v.name), 1),
|
|
767
|
-
v.description ? (a(),
|
|
767
|
+
v.description ? (a(), m("div", is, I(v.description), 1)) : S("", !0)
|
|
768
768
|
])
|
|
769
769
|
])
|
|
770
|
-
], 10, ls)) : n(s)(
|
|
770
|
+
], 10, ls)) : n(s)(h) ? (a(), m("a", {
|
|
771
771
|
key: 1,
|
|
772
772
|
href: v.href,
|
|
773
|
-
class:
|
|
773
|
+
class: x(n(u)),
|
|
774
774
|
"aria-current": "step",
|
|
775
|
-
onClick: (k) => n(c)(
|
|
775
|
+
onClick: (k) => n(c)(h, k)
|
|
776
776
|
}, [
|
|
777
777
|
i("div", cs, [
|
|
778
|
-
i("div", ds, I(n(f)(
|
|
778
|
+
i("div", ds, I(n(f)(h)), 1),
|
|
779
779
|
i("div", fs, [
|
|
780
780
|
i("div", null, I(v.name), 1),
|
|
781
|
-
v.description ? (a(),
|
|
781
|
+
v.description ? (a(), m("div", ps, I(v.description), 1)) : S("", !0)
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
|
-
], 10, us)) : (a(),
|
|
784
|
+
], 10, us)) : (a(), m("a", {
|
|
785
785
|
key: 2,
|
|
786
786
|
href: v.href,
|
|
787
|
-
class:
|
|
788
|
-
onClick: (k) => n(c)(
|
|
787
|
+
class: x(n(u)),
|
|
788
|
+
onClick: (k) => n(c)(h, k)
|
|
789
789
|
}, [
|
|
790
790
|
i("div", ms, [
|
|
791
|
-
i("div", gs, I(n(f)(
|
|
791
|
+
i("div", gs, I(n(f)(h)), 1),
|
|
792
792
|
i("div", vs, [
|
|
793
793
|
i("div", null, I(v.name), 1),
|
|
794
|
-
v.description ? (a(),
|
|
794
|
+
v.description ? (a(), m("div", bs, I(v.description), 1)) : S("", !0)
|
|
795
795
|
])
|
|
796
796
|
])
|
|
797
797
|
], 10, hs))
|
|
@@ -808,7 +808,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
808
808
|
}, Ss = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
811
|
-
}, Is = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1),
|
|
811
|
+
}, Is = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Bs = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), _s = ["href", "onClick"], Ls = {
|
|
812
812
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
813
|
"aria-hidden": "true"
|
|
814
814
|
}, Ps = {
|
|
@@ -831,72 +831,72 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
831
831
|
},
|
|
832
832
|
emits: ["update:modelValue"],
|
|
833
833
|
setup(e, { emit: l }) {
|
|
834
|
-
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: f, linkClasses:
|
|
834
|
+
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: f, linkClasses: d } = Ee({
|
|
835
835
|
props: ae(t),
|
|
836
836
|
emit: l
|
|
837
|
-
}),
|
|
838
|
-
const
|
|
837
|
+
}), u = r(() => {
|
|
838
|
+
const b = ["h6 font-medium leading-7"];
|
|
839
839
|
let v;
|
|
840
|
-
return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3",
|
|
841
|
-
}),
|
|
842
|
-
const
|
|
843
|
-
return t.basic &&
|
|
840
|
+
return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", b.push(v), t.basic && b.push("sr-only"), b.join(" ");
|
|
841
|
+
}), p = r(() => {
|
|
842
|
+
const b = [];
|
|
843
|
+
return t.basic && b.push("basic"), b.join(" ");
|
|
844
844
|
});
|
|
845
|
-
return (
|
|
845
|
+
return (b, v) => (a(), m("nav", {
|
|
846
846
|
class: "flex justify-center",
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
849
|
i("ol", {
|
|
850
|
-
class:
|
|
850
|
+
class: x([n(f), p.value])
|
|
851
851
|
}, [
|
|
852
|
-
(a(!0),
|
|
853
|
-
key:
|
|
852
|
+
(a(!0), m(U, null, G(e.steps, (h, k) => (a(), m("li", {
|
|
853
|
+
key: h.name
|
|
854
854
|
}, [
|
|
855
|
-
n(o)(k) ? (a(),
|
|
855
|
+
n(o)(k) ? (a(), m("a", {
|
|
856
856
|
key: 0,
|
|
857
|
-
href:
|
|
858
|
-
class:
|
|
859
|
-
onClick: (
|
|
857
|
+
href: h.href,
|
|
858
|
+
class: x(n(d)),
|
|
859
|
+
onClick: (B) => n(c)(k, B)
|
|
860
860
|
}, [
|
|
861
861
|
i("span", ks, [
|
|
862
|
-
e.basic ? (a(),
|
|
862
|
+
e.basic ? (a(), m("span", Cs)) : (a(), P(n(Te), {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "h-full w-full text-primary",
|
|
865
865
|
"aria-hidden": "true"
|
|
866
866
|
}))
|
|
867
867
|
]),
|
|
868
868
|
i("span", {
|
|
869
|
-
class:
|
|
870
|
-
}, I(
|
|
871
|
-
], 10, xs)) : n(s)(k) ? (a(),
|
|
869
|
+
class: x(["text-foreground", u.value])
|
|
870
|
+
}, I(h.name), 3)
|
|
871
|
+
], 10, xs)) : n(s)(k) ? (a(), m("a", {
|
|
872
872
|
key: 1,
|
|
873
|
-
href:
|
|
874
|
-
class:
|
|
873
|
+
href: h.href,
|
|
874
|
+
class: x(n(d)),
|
|
875
875
|
"aria-current": "step",
|
|
876
|
-
onClick: (
|
|
876
|
+
onClick: (B) => n(c)(k, B)
|
|
877
877
|
}, [
|
|
878
878
|
i("span", $s, [
|
|
879
|
-
e.basic ? (a(),
|
|
879
|
+
e.basic ? (a(), m("span", Ss)) : (a(), m(U, { key: 1 }, [
|
|
880
880
|
Is,
|
|
881
|
-
|
|
881
|
+
Bs
|
|
882
882
|
], 64))
|
|
883
883
|
]),
|
|
884
884
|
i("span", {
|
|
885
|
-
class:
|
|
886
|
-
}, I(
|
|
887
|
-
], 10, ws)) : (a(),
|
|
885
|
+
class: x(["text-primary-focus", u.value])
|
|
886
|
+
}, I(h.name), 3)
|
|
887
|
+
], 10, ws)) : (a(), m("a", {
|
|
888
888
|
key: 2,
|
|
889
|
-
href:
|
|
890
|
-
class:
|
|
891
|
-
onClick: (
|
|
889
|
+
href: h.href,
|
|
890
|
+
class: x(n(d)),
|
|
891
|
+
onClick: (B) => n(c)(k, B)
|
|
892
892
|
}, [
|
|
893
893
|
i("div", Ls, [
|
|
894
|
-
e.basic ? (a(),
|
|
894
|
+
e.basic ? (a(), m("span", Ps)) : (a(), m("div", js))
|
|
895
895
|
]),
|
|
896
896
|
i("p", {
|
|
897
|
-
class:
|
|
898
|
-
}, I(
|
|
899
|
-
], 10,
|
|
897
|
+
class: x(["text-foreground-disabled", u.value])
|
|
898
|
+
}, I(h.name), 3)
|
|
899
|
+
], 10, _s))
|
|
900
900
|
]))), 128))
|
|
901
901
|
], 2)
|
|
902
902
|
], 8, ys));
|
|
@@ -909,7 +909,7 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
909
909
|
},
|
|
910
910
|
emits: ["update:modelValue", "click"],
|
|
911
911
|
setup(e, { emit: l }) {
|
|
912
|
-
const t = e, s =
|
|
912
|
+
const t = e, s = r(() => {
|
|
913
913
|
const c = [
|
|
914
914
|
"h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
|
|
915
915
|
"normal px-16 py-5 shadow rounded transition active:scale-95"
|
|
@@ -924,8 +924,8 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
924
924
|
}
|
|
925
925
|
l("update:modelValue", !t.modelValue), l("click", c);
|
|
926
926
|
};
|
|
927
|
-
return (c, f) => (a(),
|
|
928
|
-
class:
|
|
927
|
+
return (c, f) => (a(), m("button", {
|
|
928
|
+
class: x(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
931
931
|
}, [
|
|
@@ -1029,64 +1029,64 @@ const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x
|
|
|
1029
1029
|
},
|
|
1030
1030
|
emits: ["update:modelValue"],
|
|
1031
1031
|
setup(e) {
|
|
1032
|
-
const l = e, t = (
|
|
1032
|
+
const l = e, t = (y) => `${y}-${ke()}`, s = r(() => l.value || l.name), {
|
|
1033
1033
|
checked: o,
|
|
1034
1034
|
errorMessage: c,
|
|
1035
1035
|
handleChange: f,
|
|
1036
|
-
value:
|
|
1037
|
-
} =
|
|
1036
|
+
value: d
|
|
1037
|
+
} = xe(l.name, l.rules, {
|
|
1038
1038
|
validateOnMount: l.validateOnMount,
|
|
1039
1039
|
type: "checkbox",
|
|
1040
1040
|
checkedValue: s,
|
|
1041
1041
|
initialValue: l.modelValue || void 0
|
|
1042
|
-
}),
|
|
1043
|
-
const
|
|
1044
|
-
return l.inlineDescription ?
|
|
1045
|
-
}), k = O(t("checkbox")),
|
|
1046
|
-
l.disabled || f(
|
|
1042
|
+
}), u = r(() => l.label || l.name), p = r(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), b = r(() => l.description || c.value), v = r(() => `${l.name}-description`), h = r(() => {
|
|
1043
|
+
const y = [];
|
|
1044
|
+
return l.inlineDescription ? y.push("inline ml-2") : y.push("block"), c.value ? y.push("text-danger") : y.push("text-foreground-2"), y.join(" ");
|
|
1045
|
+
}), k = O(t("checkbox")), B = r(() => l.id || k.value), j = (y) => {
|
|
1046
|
+
l.disabled || f(y);
|
|
1047
1047
|
};
|
|
1048
1048
|
return Y(() => {
|
|
1049
|
-
const
|
|
1050
|
-
$ !== F && f(
|
|
1051
|
-
}), (
|
|
1049
|
+
const y = l.modelValue, w = d.value, $ = Array.isArray(y) ? y.includes(l.value) : y === l.value, F = Array.isArray(w) ? w.includes(l.value) : w === l.value;
|
|
1050
|
+
$ !== F && f(y);
|
|
1051
|
+
}), (y, w) => (a(), m("div", Os, [
|
|
1052
1052
|
i("div", Ms, [
|
|
1053
1053
|
i("input", oe({
|
|
1054
|
-
id:
|
|
1054
|
+
id: B.value,
|
|
1055
1055
|
checked: n(o),
|
|
1056
1056
|
"aria-describedby": v.value,
|
|
1057
1057
|
name: e.name,
|
|
1058
1058
|
disabled: e.disabled,
|
|
1059
1059
|
value: s.value,
|
|
1060
1060
|
type: "checkbox",
|
|
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",
|
|
1062
|
-
},
|
|
1061
|
+
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", p.value]
|
|
1062
|
+
}, y.$attrs, { onChange: j }), null, 16, As)
|
|
1063
1063
|
]),
|
|
1064
1064
|
i("div", Ds, [
|
|
1065
1065
|
i("label", {
|
|
1066
|
-
for:
|
|
1067
|
-
class:
|
|
1066
|
+
for: B.value,
|
|
1067
|
+
class: x(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1068
1068
|
}, [
|
|
1069
|
-
i("span", null, I(
|
|
1070
|
-
e.showRequired ? (a(),
|
|
1069
|
+
i("span", null, I(u.value), 1),
|
|
1070
|
+
e.showRequired ? (a(), m("span", Rs, "*")) : S("", !0)
|
|
1071
1071
|
], 10, Ts),
|
|
1072
|
-
|
|
1072
|
+
b.value ? (a(), m("p", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
id: v.value,
|
|
1075
|
-
class:
|
|
1076
|
-
}, I(
|
|
1075
|
+
class: x(h.value)
|
|
1076
|
+
}, I(b.value), 11, Fs)) : S("", !0)
|
|
1077
1077
|
])
|
|
1078
1078
|
]));
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
function Ue(e) {
|
|
1082
|
-
const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: c } =
|
|
1082
|
+
const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = xe(l.name, l.rules, {
|
|
1083
1083
|
validateOnMount: n(l.validateOnMount),
|
|
1084
1084
|
validateOnValueUpdate: n(l.validateOnValueUpdate),
|
|
1085
1085
|
initialValue: n(l.modelValue) || void 0
|
|
1086
|
-
}), f =
|
|
1086
|
+
}), f = r(() => {
|
|
1087
1087
|
const $ = ["block label text-foreground-2 mb-2"];
|
|
1088
1088
|
return n(l.showLabel) || $.push("sr-only"), $.join(" ");
|
|
1089
|
-
}),
|
|
1089
|
+
}), d = r(() => {
|
|
1090
1090
|
const $ = [
|
|
1091
1091
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
1092
1092
|
"disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
|
|
@@ -1095,35 +1095,35 @@ function Ue(e) {
|
|
|
1095
1095
|
return c.value ? $.push(
|
|
1096
1096
|
"border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
|
|
1097
1097
|
) : $.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? $.push("bg-foundation shadow-sm hover:shadow") : $.push("bg-foundation-page"), $.join(" ");
|
|
1098
|
-
}),
|
|
1098
|
+
}), u = O(ke()), p = r(() => n(l.label) || n(l.name)), b = r(() => {
|
|
1099
1099
|
const $ = c.value;
|
|
1100
|
-
return !$ || !n(l.useLabelInErrors) ? $ : $.replace("Value",
|
|
1101
|
-
}), v =
|
|
1102
|
-
() =>
|
|
1103
|
-
),
|
|
1104
|
-
() => k.value ? `${n(l.name)}-${
|
|
1105
|
-
), j =
|
|
1100
|
+
return !$ || !n(l.useLabelInErrors) ? $ : $.replace("Value", p.value);
|
|
1101
|
+
}), v = r(
|
|
1102
|
+
() => b.value && n(l.hideErrorMessage)
|
|
1103
|
+
), h = r(() => b.value || n(l.help)), k = r(() => !!h.value), B = r(
|
|
1104
|
+
() => k.value ? `${n(l.name)}-${u.value}` : void 0
|
|
1105
|
+
), j = r(() => {
|
|
1106
1106
|
const $ = ["mt-2 text-sm"];
|
|
1107
1107
|
return $.push(c.value ? "text-danger" : "text-foreground-2"), $.join(" ");
|
|
1108
|
-
}),
|
|
1108
|
+
}), y = () => {
|
|
1109
1109
|
var $;
|
|
1110
1110
|
($ = t.value) == null || $.focus();
|
|
1111
1111
|
}, w = () => {
|
|
1112
1112
|
o.value = "", s("change", { value: "" }), s("clear");
|
|
1113
1113
|
};
|
|
1114
1114
|
return Y(() => {
|
|
1115
|
-
n(l.autoFocus) &&
|
|
1115
|
+
n(l.autoFocus) && y();
|
|
1116
1116
|
}), {
|
|
1117
|
-
coreClasses:
|
|
1118
|
-
title:
|
|
1117
|
+
coreClasses: d,
|
|
1118
|
+
title: p,
|
|
1119
1119
|
value: o,
|
|
1120
|
-
helpTipId:
|
|
1120
|
+
helpTipId: B,
|
|
1121
1121
|
helpTipClasses: j,
|
|
1122
|
-
helpTip:
|
|
1122
|
+
helpTip: h,
|
|
1123
1123
|
hideHelpTip: v,
|
|
1124
|
-
errorMessage:
|
|
1124
|
+
errorMessage: b,
|
|
1125
1125
|
clear: w,
|
|
1126
|
-
focus:
|
|
1126
|
+
focus: y,
|
|
1127
1127
|
labelClasses: f
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
@@ -1155,28 +1155,28 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1155
1155
|
const s = e, o = O(null), {
|
|
1156
1156
|
coreClasses: c,
|
|
1157
1157
|
title: f,
|
|
1158
|
-
value:
|
|
1159
|
-
helpTipId:
|
|
1160
|
-
helpTipClasses:
|
|
1161
|
-
helpTip:
|
|
1158
|
+
value: d,
|
|
1159
|
+
helpTipId: u,
|
|
1160
|
+
helpTipClasses: p,
|
|
1161
|
+
helpTip: b,
|
|
1162
1162
|
errorMessage: v,
|
|
1163
|
-
labelClasses:
|
|
1163
|
+
labelClasses: h,
|
|
1164
1164
|
clear: k,
|
|
1165
|
-
focus:
|
|
1165
|
+
focus: B
|
|
1166
1166
|
} = Ue({
|
|
1167
1167
|
props: ae(s),
|
|
1168
1168
|
emit: t,
|
|
1169
1169
|
inputEl: o
|
|
1170
|
-
}), j =
|
|
1171
|
-
const
|
|
1172
|
-
return s.showClear && v.value ?
|
|
1170
|
+
}), j = r(() => {
|
|
1171
|
+
const y = ["pl-2"];
|
|
1172
|
+
return s.showClear && v.value ? y.push("pr-12") : (s.showClear || v.value) && y.push("pr-8"), y.join(" ");
|
|
1173
1173
|
});
|
|
1174
|
-
return l({ focus:
|
|
1175
|
-
class:
|
|
1174
|
+
return l({ focus: B }), (y, w) => (a(), m("div", {
|
|
1175
|
+
class: x([e.fullWidth ? "w-full" : ""])
|
|
1176
1176
|
}, [
|
|
1177
1177
|
i("label", {
|
|
1178
1178
|
for: e.name,
|
|
1179
|
-
class:
|
|
1179
|
+
class: x(n(h))
|
|
1180
1180
|
}, [
|
|
1181
1181
|
i("span", null, I(n(f)), 1)
|
|
1182
1182
|
], 10, zs),
|
|
@@ -1185,20 +1185,20 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1185
1185
|
id: e.name,
|
|
1186
1186
|
ref_key: "inputElement",
|
|
1187
1187
|
ref: o,
|
|
1188
|
-
"onUpdate:modelValue": w[0] || (w[0] = ($) => ve(
|
|
1188
|
+
"onUpdate:modelValue": w[0] || (w[0] = ($) => ve(d) ? d.value = $ : null),
|
|
1189
1189
|
name: e.name,
|
|
1190
1190
|
class: [n(c), j.value, "min-h-[4rem]"],
|
|
1191
1191
|
placeholder: e.placeholder,
|
|
1192
1192
|
disabled: e.disabled,
|
|
1193
1193
|
"aria-invalid": n(v) ? "true" : "false",
|
|
1194
|
-
"aria-describedby": n(
|
|
1195
|
-
},
|
|
1196
|
-
onChange: w[1] || (w[1] = ($) =>
|
|
1197
|
-
onInput: w[2] || (w[2] = ($) =>
|
|
1194
|
+
"aria-describedby": n(u)
|
|
1195
|
+
}, y.$attrs, {
|
|
1196
|
+
onChange: w[1] || (w[1] = ($) => y.$emit("change", { event: $, value: n(d) })),
|
|
1197
|
+
onInput: w[2] || (w[2] = ($) => y.$emit("input", { event: $, value: n(d) }))
|
|
1198
1198
|
}), null, 16, Us), [
|
|
1199
|
-
[
|
|
1199
|
+
[Oe, n(d)]
|
|
1200
1200
|
]),
|
|
1201
|
-
e.showClear ? (a(),
|
|
1201
|
+
e.showClear ? (a(), 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",
|
|
@@ -1213,9 +1213,9 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1213
1213
|
"aria-hidden": "true"
|
|
1214
1214
|
})
|
|
1215
1215
|
], 32)) : S("", !0),
|
|
1216
|
-
n(v) ? (a(),
|
|
1216
|
+
n(v) ? (a(), m("div", {
|
|
1217
1217
|
key: 1,
|
|
1218
|
-
class:
|
|
1218
|
+
class: x([
|
|
1219
1219
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1220
1220
|
e.showClear ? "pr-8" : "pr-2"
|
|
1221
1221
|
])
|
|
@@ -1225,13 +1225,13 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1225
1225
|
"aria-hidden": "true"
|
|
1226
1226
|
})
|
|
1227
1227
|
], 2)) : S("", !0),
|
|
1228
|
-
e.showRequired && !n(v) ? (a(),
|
|
1228
|
+
e.showRequired && !n(v) ? (a(), m("div", qs, " * ")) : S("", !0)
|
|
1229
1229
|
]),
|
|
1230
|
-
n(
|
|
1230
|
+
n(u) ? (a(), m("p", {
|
|
1231
1231
|
key: 0,
|
|
1232
|
-
id: n(
|
|
1233
|
-
class:
|
|
1234
|
-
}, I(n(
|
|
1232
|
+
id: n(u),
|
|
1233
|
+
class: x(n(p))
|
|
1234
|
+
}, I(n(b)), 11, Hs)) : S("", !0)
|
|
1235
1235
|
], 2));
|
|
1236
1236
|
}
|
|
1237
1237
|
}), Gs = ["for"], Ks = { class: "relative" }, Xs = {
|
|
@@ -1377,31 +1377,31 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1377
1377
|
},
|
|
1378
1378
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1379
1379
|
setup(e, { expose: l, emit: t }) {
|
|
1380
|
-
const s = e, o =
|
|
1380
|
+
const s = e, o = be(), c = O(null), {
|
|
1381
1381
|
coreClasses: f,
|
|
1382
|
-
title:
|
|
1383
|
-
value:
|
|
1384
|
-
helpTipId:
|
|
1385
|
-
helpTipClasses:
|
|
1382
|
+
title: d,
|
|
1383
|
+
value: u,
|
|
1384
|
+
helpTipId: p,
|
|
1385
|
+
helpTipClasses: b,
|
|
1386
1386
|
helpTip: v,
|
|
1387
|
-
hideHelpTip:
|
|
1387
|
+
hideHelpTip: h,
|
|
1388
1388
|
errorMessage: k,
|
|
1389
|
-
clear:
|
|
1389
|
+
clear: B,
|
|
1390
1390
|
focus: j,
|
|
1391
|
-
labelClasses:
|
|
1391
|
+
labelClasses: y
|
|
1392
1392
|
} = Ue({
|
|
1393
1393
|
props: ae(s),
|
|
1394
1394
|
emit: t,
|
|
1395
1395
|
inputEl: c
|
|
1396
|
-
}), w =
|
|
1396
|
+
}), w = r(() => {
|
|
1397
1397
|
const R = ["h-5 w-5"];
|
|
1398
1398
|
return k.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
|
|
1399
|
-
}), $ =
|
|
1399
|
+
}), $ = r(
|
|
1400
1400
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1401
|
-
), F =
|
|
1401
|
+
), F = r(() => {
|
|
1402
1402
|
const R = [];
|
|
1403
1403
|
return $.value ? R.push("pl-8") : R.push("pl-2"), o["input-right"] || (k.value || s.showClear) && (k.value && s.showClear ? R.push("pr-12") : R.push("pr-8")), R.join(" ");
|
|
1404
|
-
}), g =
|
|
1404
|
+
}), g = r(() => {
|
|
1405
1405
|
switch (s.size) {
|
|
1406
1406
|
case "sm":
|
|
1407
1407
|
return "h-6";
|
|
@@ -1414,28 +1414,28 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1414
1414
|
return "h-8";
|
|
1415
1415
|
}
|
|
1416
1416
|
});
|
|
1417
|
-
return l({ focus: j }), (R, E) => (a(),
|
|
1418
|
-
class:
|
|
1417
|
+
return l({ focus: j }), (R, E) => (a(), m("div", {
|
|
1418
|
+
class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1419
1419
|
}, [
|
|
1420
1420
|
i("label", {
|
|
1421
1421
|
for: e.name,
|
|
1422
|
-
class:
|
|
1422
|
+
class: x(n(y))
|
|
1423
1423
|
}, [
|
|
1424
|
-
i("span", null, I(n(
|
|
1424
|
+
i("span", null, I(n(d)), 1)
|
|
1425
1425
|
], 10, Gs),
|
|
1426
1426
|
i("div", Ks, [
|
|
1427
|
-
$.value ? (a(),
|
|
1427
|
+
$.value ? (a(), m("div", Xs, [
|
|
1428
1428
|
e.customIcon ? (a(), P(H(e.customIcon), {
|
|
1429
1429
|
key: 0,
|
|
1430
|
-
class:
|
|
1430
|
+
class: x(w.value),
|
|
1431
1431
|
"aria-hidden": "true"
|
|
1432
1432
|
}, null, 8, ["class"])) : e.type === "email" ? (a(), P(n(ht), {
|
|
1433
1433
|
key: 1,
|
|
1434
|
-
class:
|
|
1434
|
+
class: x(w.value),
|
|
1435
1435
|
"aria-hidden": "true"
|
|
1436
1436
|
}, null, 8, ["class"])) : e.type === "password" ? (a(), P(n(mt), {
|
|
1437
1437
|
key: 2,
|
|
1438
|
-
class:
|
|
1438
|
+
class: x(w.value),
|
|
1439
1439
|
"aria-hidden": "true"
|
|
1440
1440
|
}, null, 8, ["class"])) : S("", !0)
|
|
1441
1441
|
])) : S("", !0),
|
|
@@ -1443,30 +1443,30 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1443
1443
|
id: e.name,
|
|
1444
1444
|
ref_key: "inputElement",
|
|
1445
1445
|
ref: c,
|
|
1446
|
-
"onUpdate:modelValue": E[0] || (E[0] = (z) => ve(
|
|
1446
|
+
"onUpdate:modelValue": E[0] || (E[0] = (z) => ve(u) ? u.value = z : null),
|
|
1447
1447
|
type: e.type,
|
|
1448
1448
|
name: e.name,
|
|
1449
1449
|
class: [n(f), F.value, g.value, e.inputClasses || ""],
|
|
1450
1450
|
placeholder: e.placeholder,
|
|
1451
1451
|
disabled: e.disabled,
|
|
1452
1452
|
"aria-invalid": n(k) ? "true" : "false",
|
|
1453
|
-
"aria-describedby": n(
|
|
1453
|
+
"aria-describedby": n(p),
|
|
1454
1454
|
role: "textbox"
|
|
1455
1455
|
}, R.$attrs, {
|
|
1456
|
-
onChange: E[1] || (E[1] = (z) => R.$emit("change", { event: z, value: n(
|
|
1457
|
-
onInput: E[2] || (E[2] = (z) => R.$emit("input", { event: z, value: n(
|
|
1456
|
+
onChange: E[1] || (E[1] = (z) => R.$emit("change", { event: z, value: n(u) })),
|
|
1457
|
+
onInput: E[2] || (E[2] = (z) => R.$emit("input", { event: z, value: n(u) }))
|
|
1458
1458
|
}), null, 16, Ns), [
|
|
1459
|
-
[Xe, n(
|
|
1459
|
+
[Xe, n(u)]
|
|
1460
1460
|
]),
|
|
1461
1461
|
D(R.$slots, "input-right", {}, () => [
|
|
1462
|
-
e.showClear ? (a(),
|
|
1462
|
+
e.showClear ? (a(), 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
|
-
(...z) => n(
|
|
1467
|
+
(...z) => n(B) && n(B)(...z)),
|
|
1468
1468
|
onKeydown: E[4] || (E[4] = //@ts-ignore
|
|
1469
|
-
(...z) => n(
|
|
1469
|
+
(...z) => n(B) && n(B)(...z))
|
|
1470
1470
|
}, [
|
|
1471
1471
|
Js,
|
|
1472
1472
|
L(n(ue), {
|
|
@@ -1474,9 +1474,9 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1474
1474
|
"aria-hidden": "true"
|
|
1475
1475
|
})
|
|
1476
1476
|
], 32)) : S("", !0),
|
|
1477
|
-
n(k) ? (a(),
|
|
1477
|
+
n(k) ? (a(), m("div", {
|
|
1478
1478
|
key: 1,
|
|
1479
|
-
class:
|
|
1479
|
+
class: x([
|
|
1480
1480
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1481
1481
|
e.showClear ? "pr-8" : "pr-2"
|
|
1482
1482
|
])
|
|
@@ -1486,17 +1486,17 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1486
1486
|
"aria-hidden": "true"
|
|
1487
1487
|
})
|
|
1488
1488
|
], 2)) : S("", !0),
|
|
1489
|
-
e.showRequired && !n(k) ? (a(),
|
|
1489
|
+
e.showRequired && !n(k) ? (a(), m("div", Qs, " * ")) : S("", !0)
|
|
1490
1490
|
])
|
|
1491
1491
|
]),
|
|
1492
|
-
n(
|
|
1492
|
+
n(p) && !n(h) ? (a(), m("p", {
|
|
1493
1493
|
key: 0,
|
|
1494
|
-
id: n(
|
|
1495
|
-
class:
|
|
1494
|
+
id: n(p),
|
|
1495
|
+
class: x(n(b))
|
|
1496
1496
|
}, I(n(v)), 11, Ys)) : S("", !0)
|
|
1497
1497
|
], 2));
|
|
1498
1498
|
}
|
|
1499
|
-
}), Zs = /^https?:\/\//,
|
|
1499
|
+
}), Zs = /^https?:\/\//, we = /^[\w-_.+]+@[\w-_.+]+$/, en = (e) => (e || "").match(we) ? !0 : "Value should be a valid e-mail address", tn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(we)) || "Value should be one or multiple comma-delimited e-mail addresses", sn = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), nn = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, ln = (e) => (l) => {
|
|
1500
1500
|
const { minLength: t, maxLength: s } = e;
|
|
1501
1501
|
return l = gt(l) ? "" : l, ie(l) ? !Q(t) && l.length < t ? `Value needs to be at least ${t} characters long` : !Q(s) && l.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1502
1502
|
}, an = (e) => (l) => {
|
|
@@ -1504,7 +1504,7 @@ const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder
|
|
|
1504
1504
|
return ie(l) ? t ? ie(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
|
|
1505
1505
|
}, Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1506
1506
|
__proto__: null,
|
|
1507
|
-
VALID_EMAIL:
|
|
1507
|
+
VALID_EMAIL: we,
|
|
1508
1508
|
VALID_HTTP_URL: Zs,
|
|
1509
1509
|
isEmail: en,
|
|
1510
1510
|
isOneOrMultipleEmails: tn,
|
|
@@ -1520,19 +1520,19 @@ function on(e) {
|
|
|
1520
1520
|
itemContainer: s,
|
|
1521
1521
|
trackResize: o = !1,
|
|
1522
1522
|
trackMutations: c = !0
|
|
1523
|
-
} = e || {}, f = O(0),
|
|
1524
|
-
const
|
|
1525
|
-
if (l != null && l.value || !
|
|
1523
|
+
} = e || {}, f = O(0), d = () => {
|
|
1524
|
+
const u = s.value;
|
|
1525
|
+
if (l != null && l.value || !u)
|
|
1526
1526
|
return;
|
|
1527
|
-
const
|
|
1528
|
-
let
|
|
1529
|
-
for (const k of
|
|
1530
|
-
const
|
|
1531
|
-
Q(
|
|
1527
|
+
const p = u.children;
|
|
1528
|
+
let b = 0, v = 0, h;
|
|
1529
|
+
for (const k of p) {
|
|
1530
|
+
const B = k.offsetTop;
|
|
1531
|
+
Q(h) ? (h = B, b += 1) : B === h && (b += 1), v += 1;
|
|
1532
1532
|
}
|
|
1533
|
-
f.value = v -
|
|
1533
|
+
f.value = v - b;
|
|
1534
1534
|
};
|
|
1535
|
-
return o && yt(t,
|
|
1535
|
+
return o && yt(t, d), c && xt(t, d, {
|
|
1536
1536
|
childList: !0,
|
|
1537
1537
|
subtree: !0
|
|
1538
1538
|
}), {
|
|
@@ -1543,41 +1543,41 @@ function rn(e) {
|
|
|
1543
1543
|
const { props: l, emit: t, dynamicVisibility: s } = e;
|
|
1544
1544
|
let o;
|
|
1545
1545
|
if (s) {
|
|
1546
|
-
const { elementToWatchForChanges:
|
|
1546
|
+
const { elementToWatchForChanges: p, itemContainer: b } = s;
|
|
1547
1547
|
o = on({
|
|
1548
|
-
skipCalculation:
|
|
1549
|
-
var
|
|
1550
|
-
return !((
|
|
1548
|
+
skipCalculation: r(() => {
|
|
1549
|
+
var h;
|
|
1550
|
+
return !((h = l.multiple) != null && h.value);
|
|
1551
1551
|
}),
|
|
1552
|
-
elementToWatchForChanges:
|
|
1553
|
-
itemContainer:
|
|
1552
|
+
elementToWatchForChanges: p,
|
|
1553
|
+
itemContainer: b
|
|
1554
1554
|
}).hiddenItemCount;
|
|
1555
1555
|
} else
|
|
1556
1556
|
o = O(0);
|
|
1557
|
-
const c =
|
|
1557
|
+
const c = r({
|
|
1558
1558
|
get: () => {
|
|
1559
|
-
var
|
|
1560
|
-
const
|
|
1561
|
-
return (v = l.multiple) != null && v.value ? q(
|
|
1559
|
+
var b, v;
|
|
1560
|
+
const p = (b = l.modelValue) == null ? void 0 : b.value;
|
|
1561
|
+
return (v = l.multiple) != null && v.value ? q(p) ? p : [] : q(p) ? void 0 : p;
|
|
1562
1562
|
},
|
|
1563
|
-
set: (
|
|
1564
|
-
var
|
|
1565
|
-
if ((
|
|
1563
|
+
set: (p) => {
|
|
1564
|
+
var b, v, h;
|
|
1565
|
+
if ((b = l.multiple) != null && b.value && !q(p)) {
|
|
1566
1566
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1567
1567
|
return;
|
|
1568
|
-
} else if (!((v = l.multiple) != null && v.value) && q(
|
|
1568
|
+
} else if (!((v = l.multiple) != null && v.value) && q(p)) {
|
|
1569
1569
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1570
1570
|
return;
|
|
1571
1571
|
}
|
|
1572
|
-
t("update:modelValue", (
|
|
1572
|
+
t("update:modelValue", (h = l.multiple) != null && h.value ? p || [] : p);
|
|
1573
1573
|
}
|
|
1574
|
-
}), f = (
|
|
1574
|
+
}), f = (p) => q(p);
|
|
1575
1575
|
return {
|
|
1576
1576
|
selectedValue: c,
|
|
1577
1577
|
hiddenSelectedItemCount: o,
|
|
1578
1578
|
isArrayValue: f,
|
|
1579
|
-
isMultiItemArrayValue: (
|
|
1580
|
-
firstItem: (
|
|
1579
|
+
isMultiItemArrayValue: (p) => q(p) && p.length > 1,
|
|
1580
|
+
firstItem: (p) => f(p) ? p[0] : p
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ */ un(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), dn = [
|
|
@@ -1588,8 +1588,8 @@ const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ *
|
|
|
1588
1588
|
loading: { type: Boolean }
|
|
1589
1589
|
},
|
|
1590
1590
|
setup(e) {
|
|
1591
|
-
return (l, t) => (a(),
|
|
1592
|
-
class:
|
|
1591
|
+
return (l, t) => (a(), m("div", {
|
|
1592
|
+
class: x([
|
|
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
|
])
|
|
@@ -1603,8 +1603,8 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1603
1603
|
key: 0,
|
|
1604
1604
|
class: "px-1"
|
|
1605
1605
|
}, wn = { key: 1 }, $n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Sn = {
|
|
1606
|
-
class: /* @__PURE__ */
|
|
1607
|
-
}, In = ["id"],
|
|
1606
|
+
class: /* @__PURE__ */ x(["block truncate"])
|
|
1607
|
+
}, In = ["id"], Bn = /* @__PURE__ */ M({
|
|
1608
1608
|
__name: "Base",
|
|
1609
1609
|
props: {
|
|
1610
1610
|
multiple: {
|
|
@@ -1743,51 +1743,51 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1743
1743
|
},
|
|
1744
1744
|
emits: ["update:modelValue"],
|
|
1745
1745
|
setup(e, { expose: l, emit: t }) {
|
|
1746
|
-
const s = e, { value: o, errorMessage: c } =
|
|
1746
|
+
const s = e, { value: o, errorMessage: c } = xe(s.name, s.rules, {
|
|
1747
1747
|
validateOnMount: s.validateOnMount,
|
|
1748
1748
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1749
1749
|
initialValue: s.modelValue
|
|
1750
|
-
}), f = O(null),
|
|
1750
|
+
}), f = O(null), d = O(""), u = O([]), p = O(!1), b = O(1), v = O(ke()), h = r(() => n(s.label) || n(s.name)), k = r(() => {
|
|
1751
1751
|
const C = c.value;
|
|
1752
|
-
return !C || !n(s.useLabelInErrors) ? C : C.replace("Value",
|
|
1753
|
-
}),
|
|
1752
|
+
return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", h.value);
|
|
1753
|
+
}), B = r(() => k.value || n(s.help)), j = r(() => !!B.value), y = r(
|
|
1754
1754
|
() => j.value ? `${n(s.name)}-${v.value}` : void 0
|
|
1755
|
-
), w =
|
|
1755
|
+
), w = r(
|
|
1756
1756
|
() => c.value ? "text-danger" : "text-foreground-2"
|
|
1757
|
-
), $ =
|
|
1757
|
+
), $ = r(
|
|
1758
1758
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1759
|
-
), F =
|
|
1759
|
+
), F = r(() => {
|
|
1760
1760
|
const C = ["relative flex group"];
|
|
1761
1761
|
return s.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), s.fixedHeight && C.push("h-8"), C.join(" ");
|
|
1762
|
-
}), g =
|
|
1762
|
+
}), g = r(() => {
|
|
1763
1763
|
const C = [];
|
|
1764
1764
|
return s.buttonStyle !== "simple" && C.push(
|
|
1765
1765
|
Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1766
1766
|
), Z.value && C.push("cursor-not-allowed"), C.join(" ");
|
|
1767
|
-
}), R =
|
|
1767
|
+
}), R = r(() => {
|
|
1768
1768
|
const C = [
|
|
1769
1769
|
"relative z-[1]",
|
|
1770
1770
|
"flex items-center justify-center text-center shrink-0",
|
|
1771
1771
|
"rounded-r-md overflow-hidden transition-all",
|
|
1772
1772
|
"text-foreground",
|
|
1773
|
-
|
|
1773
|
+
$e.value ? `w-6 ${g.value}` : "w-0"
|
|
1774
1774
|
];
|
|
1775
1775
|
return Z.value || (C.push(
|
|
1776
1776
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
1777
1777
|
), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
|
|
1778
|
-
}), E =
|
|
1778
|
+
}), E = r(() => {
|
|
1779
1779
|
const C = [
|
|
1780
1780
|
"relative z-[2]",
|
|
1781
1781
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1782
1782
|
"flex items-center",
|
|
1783
1783
|
g.value
|
|
1784
1784
|
];
|
|
1785
|
-
return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), $.value &&
|
|
1786
|
-
}), z =
|
|
1785
|
+
return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), $.value && $e.value && C.push("rounded-r-none"), C.join(" ");
|
|
1786
|
+
}), z = r(
|
|
1787
1787
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1788
|
-
), X =
|
|
1788
|
+
), X = r(() => z.value && s.getSearchResults), Z = r(
|
|
1789
1789
|
() => s.disabled || !s.items.length && !X.value
|
|
1790
|
-
), W =
|
|
1790
|
+
), W = r({
|
|
1791
1791
|
get: () => {
|
|
1792
1792
|
const C = o.value;
|
|
1793
1793
|
return s.multiple ? q(C) ? C : [] : q(C) ? void 0 : C;
|
|
@@ -1807,25 +1807,25 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1807
1807
|
const V = o.value;
|
|
1808
1808
|
T = s.allowUnset && V && C && ce(V) === ce(C) ? void 0 : C;
|
|
1809
1809
|
}
|
|
1810
|
-
t("update:modelValue", T),
|
|
1810
|
+
t("update:modelValue", T), b.value += 1;
|
|
1811
1811
|
}
|
|
1812
|
-
}),
|
|
1812
|
+
}), $e = r(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
|
|
1813
1813
|
s.multiple ? W.value = [] : W.value = void 0;
|
|
1814
|
-
}, He =
|
|
1815
|
-
const C =
|
|
1816
|
-
return !z.value || !(C != null && C.length) ?
|
|
1814
|
+
}, He = r(() => {
|
|
1815
|
+
const C = d.value;
|
|
1816
|
+
return !z.value || !(C != null && C.length) ? u.value : s.filterPredicate ? u.value.filter(
|
|
1817
1817
|
(T) => {
|
|
1818
1818
|
var V;
|
|
1819
1819
|
return ((V = s.filterPredicate) == null ? void 0 : V.call(s, T, C)) || !1;
|
|
1820
1820
|
}
|
|
1821
|
-
) :
|
|
1822
|
-
}),
|
|
1821
|
+
) : u.value;
|
|
1822
|
+
}), Se = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
|
|
1823
1823
|
if (!(!X.value || !s.getSearchResults)) {
|
|
1824
|
-
|
|
1824
|
+
p.value = !0;
|
|
1825
1825
|
try {
|
|
1826
|
-
|
|
1826
|
+
u.value = await s.getSearchResults(d.value);
|
|
1827
1827
|
} finally {
|
|
1828
|
-
|
|
1828
|
+
p.value = !1;
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
}, Ge = Ae(de, 1e3), Ke = (C) => {
|
|
@@ -1838,16 +1838,16 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1838
1838
|
return le(
|
|
1839
1839
|
() => s.items,
|
|
1840
1840
|
(C) => {
|
|
1841
|
-
|
|
1841
|
+
u.value = C.slice();
|
|
1842
1842
|
},
|
|
1843
1843
|
{ immediate: !0 }
|
|
1844
|
-
), le(
|
|
1844
|
+
), le(d, () => {
|
|
1845
1845
|
X.value && Ge();
|
|
1846
1846
|
}), Y(() => {
|
|
1847
1847
|
X.value && !s.items.length && de();
|
|
1848
|
-
}), l({ triggerSearch: de }), (C, T) => (a(),
|
|
1848
|
+
}), l({ triggerSearch: de }), (C, T) => (a(), m("div", null, [
|
|
1849
1849
|
(a(), P(n(wt), {
|
|
1850
|
-
key:
|
|
1850
|
+
key: b.value,
|
|
1851
1851
|
modelValue: W.value,
|
|
1852
1852
|
"onUpdate:modelValue": T[4] || (T[4] = (V) => W.value = V),
|
|
1853
1853
|
name: e.name,
|
|
@@ -1856,22 +1856,22 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1856
1856
|
disabled: Z.value,
|
|
1857
1857
|
as: "div"
|
|
1858
1858
|
}, {
|
|
1859
|
-
default:
|
|
1859
|
+
default: _(() => [
|
|
1860
1860
|
L(n($t), {
|
|
1861
|
-
class:
|
|
1861
|
+
class: x(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
1862
1862
|
}, {
|
|
1863
|
-
default:
|
|
1863
|
+
default: _(() => [
|
|
1864
1864
|
A(I(e.label), 1)
|
|
1865
1865
|
]),
|
|
1866
1866
|
_: 1
|
|
1867
1867
|
}, 8, ["class"]),
|
|
1868
1868
|
i("div", {
|
|
1869
|
-
class:
|
|
1869
|
+
class: x(F.value)
|
|
1870
1870
|
}, [
|
|
1871
1871
|
L(n(St), {
|
|
1872
|
-
class:
|
|
1872
|
+
class: x(E.value)
|
|
1873
1873
|
}, {
|
|
1874
|
-
default:
|
|
1874
|
+
default: _(({ open: V }) => [
|
|
1875
1875
|
i("div", pn, [
|
|
1876
1876
|
i("div", hn, [
|
|
1877
1877
|
!W.value || n(q)(W.value) && !W.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
|
|
@@ -1880,7 +1880,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
value: W.value
|
|
1882
1882
|
}, () => [
|
|
1883
|
-
A(I(
|
|
1883
|
+
A(I(Se(W.value)), 1)
|
|
1884
1884
|
])
|
|
1885
1885
|
]),
|
|
1886
1886
|
i("div", mn, [
|
|
@@ -1898,9 +1898,9 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1898
1898
|
]),
|
|
1899
1899
|
_: 3
|
|
1900
1900
|
}, 8, ["class"]),
|
|
1901
|
-
$.value ? ne((a(),
|
|
1901
|
+
$.value ? ne((a(), m("button", {
|
|
1902
1902
|
key: 0,
|
|
1903
|
-
class:
|
|
1903
|
+
class: x(R.value),
|
|
1904
1904
|
disabled: e.disabled,
|
|
1905
1905
|
onClick: T[0] || (T[0] = (V) => qe())
|
|
1906
1906
|
}, [
|
|
@@ -1913,7 +1913,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1913
1913
|
"leave-from-class": "opacity-100",
|
|
1914
1914
|
"leave-to-class": "opacity-0"
|
|
1915
1915
|
}, {
|
|
1916
|
-
default:
|
|
1916
|
+
default: _(() => [
|
|
1917
1917
|
L(n(It), {
|
|
1918
1918
|
unmount: !0,
|
|
1919
1919
|
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",
|
|
@@ -1922,8 +1922,8 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1922
1922
|
return (K = f.value) == null ? void 0 : K.focus();
|
|
1923
1923
|
})
|
|
1924
1924
|
}, {
|
|
1925
|
-
default:
|
|
1926
|
-
z.value ? (a(),
|
|
1925
|
+
default: _(() => [
|
|
1926
|
+
z.value ? (a(), m("label", vn, [
|
|
1927
1927
|
bn,
|
|
1928
1928
|
i("div", yn, [
|
|
1929
1929
|
i("div", xn, [
|
|
@@ -1932,42 +1932,42 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1932
1932
|
ne(i("input", {
|
|
1933
1933
|
ref_key: "searchInput",
|
|
1934
1934
|
ref: f,
|
|
1935
|
-
"onUpdate:modelValue": T[1] || (T[1] = (V) =>
|
|
1935
|
+
"onUpdate:modelValue": T[1] || (T[1] = (V) => d.value = V),
|
|
1936
1936
|
type: "text",
|
|
1937
1937
|
class: "pl-9 w-full border-0 bg-foundation-page rounded placeholder:font-normal normal placeholder:text-foreground-2 focus:outline-none focus:ring-1 focus:border-outline-1 focus:ring-outline-1",
|
|
1938
1938
|
placeholder: e.searchPlaceholder,
|
|
1939
|
-
onKeydown: T[2] || (T[2] =
|
|
1939
|
+
onKeydown: T[2] || (T[2] = ye(() => {
|
|
1940
1940
|
}, ["stop"]))
|
|
1941
1941
|
}, null, 40, kn), [
|
|
1942
|
-
[
|
|
1942
|
+
[Oe, d.value]
|
|
1943
1943
|
])
|
|
1944
1944
|
])
|
|
1945
1945
|
])) : S("", !0),
|
|
1946
1946
|
i("div", {
|
|
1947
|
-
class:
|
|
1947
|
+
class: x(["overflow-auto simple-scrollbar", [z.value ? "max-h-52" : "max-h-60"]])
|
|
1948
1948
|
}, [
|
|
1949
|
-
X.value &&
|
|
1949
|
+
X.value && p.value ? (a(), m("div", Cn, [
|
|
1950
1950
|
L(We, { loading: !0 })
|
|
1951
|
-
])) : X.value && !
|
|
1951
|
+
])) : X.value && !u.value.length ? (a(), m("div", wn, [
|
|
1952
1952
|
D(C.$slots, "nothing-found", {}, () => [
|
|
1953
1953
|
$n
|
|
1954
1954
|
])
|
|
1955
1955
|
])) : S("", !0),
|
|
1956
|
-
!X.value || !
|
|
1956
|
+
!X.value || !p.value ? (a(!0), m(U, { key: 2 }, G(He.value, (V) => {
|
|
1957
1957
|
var K;
|
|
1958
|
-
return a(), P(n(
|
|
1958
|
+
return a(), P(n(Bt), {
|
|
1959
1959
|
key: ce(V),
|
|
1960
1960
|
value: V,
|
|
1961
1961
|
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
|
|
1962
1962
|
}, {
|
|
1963
|
-
default:
|
|
1964
|
-
var
|
|
1963
|
+
default: _(({ active: N, selected: Ie }) => {
|
|
1964
|
+
var Be, _e;
|
|
1965
1965
|
return [
|
|
1966
1966
|
i("li", {
|
|
1967
|
-
class:
|
|
1967
|
+
class: x(
|
|
1968
1968
|
Ke({
|
|
1969
1969
|
active: N,
|
|
1970
|
-
disabled: ((
|
|
1970
|
+
disabled: ((Be = e.disabledItemPredicate) == null ? void 0 : Be.call(e, V)) || !1
|
|
1971
1971
|
})
|
|
1972
1972
|
)
|
|
1973
1973
|
}, [
|
|
@@ -1975,15 +1975,15 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
1975
1975
|
D(C.$slots, "option", {
|
|
1976
1976
|
item: V,
|
|
1977
1977
|
active: N,
|
|
1978
|
-
selected:
|
|
1978
|
+
selected: Ie,
|
|
1979
1979
|
disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, V)) || !1
|
|
1980
1980
|
}, () => [
|
|
1981
|
-
A(I(
|
|
1981
|
+
A(I(Se(V)), 1)
|
|
1982
1982
|
])
|
|
1983
1983
|
]),
|
|
1984
|
-
!e.hideCheckmarks &&
|
|
1984
|
+
!e.hideCheckmarks && Ie ? (a(), m("span", {
|
|
1985
1985
|
key: 0,
|
|
1986
|
-
class:
|
|
1986
|
+
class: x([
|
|
1987
1987
|
N ? "text-primary" : "text-foreground",
|
|
1988
1988
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
1989
1989
|
])
|
|
@@ -2010,14 +2010,14 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2010
2010
|
]),
|
|
2011
2011
|
_: 3
|
|
2012
2012
|
}, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
|
|
2013
|
-
|
|
2013
|
+
y.value ? (a(), m("p", {
|
|
2014
2014
|
key: 0,
|
|
2015
|
-
id:
|
|
2016
|
-
class:
|
|
2017
|
-
}, I(
|
|
2015
|
+
id: y.value,
|
|
2016
|
+
class: x(["mt-2 text-sm", w.value])
|
|
2017
|
+
}, I(B.value), 11, In)) : S("", !0)
|
|
2018
2018
|
]));
|
|
2019
2019
|
}
|
|
2020
|
-
}),
|
|
2020
|
+
}), _n = /* @__PURE__ */ M({
|
|
2021
2021
|
__name: "SourceAppBadge",
|
|
2022
2022
|
props: {
|
|
2023
2023
|
sourceApp: null
|
|
@@ -2028,7 +2028,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2028
2028
|
rounded: "",
|
|
2029
2029
|
style: fe({ backgroundColor: e.sourceApp.bgColor })
|
|
2030
2030
|
}, {
|
|
2031
|
-
default:
|
|
2031
|
+
default: _(() => [
|
|
2032
2032
|
A(I(e.sourceApp.short), 1)
|
|
2033
2033
|
]),
|
|
2034
2034
|
_: 1
|
|
@@ -2040,7 +2040,7 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2040
2040
|
}, Pn = {
|
|
2041
2041
|
key: 1,
|
|
2042
2042
|
class: "flex items-center"
|
|
2043
|
-
}, jn = { class: "truncate" }, Vn = { class: "flex items-center" }, On = { class: "truncate" },
|
|
2043
|
+
}, jn = { class: "truncate" }, Vn = { class: "flex items-center" }, On = { class: "truncate" }, Bl = /* @__PURE__ */ M({
|
|
2044
2044
|
__name: "SourceApps",
|
|
2045
2045
|
props: {
|
|
2046
2046
|
/**
|
|
@@ -2100,14 +2100,14 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2100
2100
|
},
|
|
2101
2101
|
emits: ["update:modelValue"],
|
|
2102
2102
|
setup(e, { emit: l }) {
|
|
2103
|
-
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: f, isMultiItemArrayValue:
|
|
2103
|
+
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: f, isMultiItemArrayValue: d, firstItem: u } = rn({
|
|
2104
2104
|
props: ae(t),
|
|
2105
2105
|
emit: l,
|
|
2106
2106
|
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
2107
|
-
}),
|
|
2108
|
-
return (
|
|
2107
|
+
}), p = (b, v) => b.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
|
|
2108
|
+
return (b, v) => (a(), P(Bn, {
|
|
2109
2109
|
modelValue: n(c),
|
|
2110
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2110
|
+
"onUpdate:modelValue": v[0] || (v[0] = (h) => ve(c) ? c.value = h : null),
|
|
2111
2111
|
multiple: e.multiple,
|
|
2112
2112
|
items: e.items ?? n(vt),
|
|
2113
2113
|
search: e.search,
|
|
@@ -2115,18 +2115,18 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2115
2115
|
label: e.label,
|
|
2116
2116
|
"show-label": e.showLabel,
|
|
2117
2117
|
name: e.name || "sourceApps",
|
|
2118
|
-
"filter-predicate":
|
|
2118
|
+
"filter-predicate": p,
|
|
2119
2119
|
by: "name"
|
|
2120
2120
|
}, {
|
|
2121
|
-
"nothing-selected":
|
|
2122
|
-
e.selectorPlaceholder ? (a(),
|
|
2121
|
+
"nothing-selected": _(() => [
|
|
2122
|
+
e.selectorPlaceholder ? (a(), m(U, { key: 0 }, [
|
|
2123
2123
|
A(I(e.selectorPlaceholder), 1)
|
|
2124
|
-
], 64)) : (a(),
|
|
2124
|
+
], 64)) : (a(), m(U, { key: 1 }, [
|
|
2125
2125
|
A(I(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2126
2126
|
], 64))
|
|
2127
2127
|
]),
|
|
2128
|
-
"something-selected":
|
|
2129
|
-
n(
|
|
2128
|
+
"something-selected": _(({ value: h }) => [
|
|
2129
|
+
n(d)(h) ? (a(), m("div", {
|
|
2130
2130
|
key: 0,
|
|
2131
2131
|
ref_key: "elementToWatchForChanges",
|
|
2132
2132
|
ref: s,
|
|
@@ -2137,27 +2137,27 @@ const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { cl
|
|
|
2137
2137
|
ref: o,
|
|
2138
2138
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2139
2139
|
}, [
|
|
2140
|
-
(a(!0),
|
|
2140
|
+
(a(!0), m(U, null, G(h, (k) => (a(), P(_n, {
|
|
2141
2141
|
key: k.name,
|
|
2142
2142
|
"source-app": k
|
|
2143
2143
|
}, null, 8, ["source-app"]))), 128))
|
|
2144
2144
|
], 512),
|
|
2145
|
-
n(f) > 0 ? (a(),
|
|
2146
|
-
], 512)) : (a(),
|
|
2145
|
+
n(f) > 0 ? (a(), m("div", Ln, " +" + I(n(f)), 1)) : S("", !0)
|
|
2146
|
+
], 512)) : (a(), m("div", Pn, [
|
|
2147
2147
|
i("div", {
|
|
2148
2148
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2149
|
-
style: fe({ backgroundColor: n(
|
|
2149
|
+
style: fe({ backgroundColor: n(u)(h).bgColor })
|
|
2150
2150
|
}, null, 4),
|
|
2151
|
-
i("span", jn, I(n(
|
|
2151
|
+
i("span", jn, I(n(u)(h).name), 1)
|
|
2152
2152
|
]))
|
|
2153
2153
|
]),
|
|
2154
|
-
option:
|
|
2154
|
+
option: _(({ item: h }) => [
|
|
2155
2155
|
i("div", Vn, [
|
|
2156
2156
|
i("div", {
|
|
2157
2157
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2158
|
-
style: fe({ backgroundColor:
|
|
2158
|
+
style: fe({ backgroundColor: h.bgColor })
|
|
2159
2159
|
}, null, 4),
|
|
2160
|
-
i("span", On, I(
|
|
2160
|
+
i("span", On, I(h.name), 1)
|
|
2161
2161
|
])
|
|
2162
2162
|
]),
|
|
2163
2163
|
_: 1
|
|
@@ -2176,7 +2176,7 @@ const he = bt(), Mn = {
|
|
|
2176
2176
|
]: he === pe.Mac ? "Opt" : "Alt",
|
|
2177
2177
|
shift: "Shift"
|
|
2178
2178
|
};
|
|
2179
|
-
function
|
|
2179
|
+
function _l(e) {
|
|
2180
2180
|
const l = (t) => Object.values(se).includes(t);
|
|
2181
2181
|
return e.map((t) => l(t) ? Mn[t] : t).join("+");
|
|
2182
2182
|
}
|
|
@@ -2206,7 +2206,7 @@ function Ll(e, ...l) {
|
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
function Pl(e) {
|
|
2209
|
-
const l = (e == null ? void 0 : e.model) || O(), t =
|
|
2209
|
+
const l = (e == null ? void 0 : e.model) || O(), t = r({
|
|
2210
2210
|
get: () => !!l.value,
|
|
2211
2211
|
set: (s) => l.value = s ? !0 : void 0
|
|
2212
2212
|
});
|
|
@@ -2231,10 +2231,10 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2231
2231
|
},
|
|
2232
2232
|
emits: ["update:open", "fully-closed"],
|
|
2233
2233
|
setup(e, { emit: l }) {
|
|
2234
|
-
const t = e, s =
|
|
2234
|
+
const t = e, s = be(), o = r(() => !!t.onSubmit), c = r(() => t.buttons || s.buttons), f = r({
|
|
2235
2235
|
get: () => t.open,
|
|
2236
|
-
set: (
|
|
2237
|
-
}),
|
|
2236
|
+
set: (b) => l("update:open", b)
|
|
2237
|
+
}), d = r(() => {
|
|
2238
2238
|
switch (t.maxWidth) {
|
|
2239
2239
|
case "sm":
|
|
2240
2240
|
return 0;
|
|
@@ -2247,24 +2247,24 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2247
2247
|
default:
|
|
2248
2248
|
return 1e4;
|
|
2249
2249
|
}
|
|
2250
|
-
}),
|
|
2251
|
-
const
|
|
2252
|
-
return t.title
|
|
2250
|
+
}), u = r(() => {
|
|
2251
|
+
const b = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
|
|
2252
|
+
return !t.title && !c.value && b.push("px-4 pt-4 pb-4", "sm:p-6"), d.value >= 1 && b.push("md:max-w-2xl"), d.value >= 2 && b.push("lg:max-w-4xl"), d.value >= 3 && b.push("xl:max-w-6xl"), d.value >= 4 && b.push("2xl:max-w-7xl"), b.join(" ");
|
|
2253
2253
|
}), p = () => {
|
|
2254
|
-
t.preventCloseOnClickOutside || (
|
|
2254
|
+
t.preventCloseOnClickOutside || (f.value = !1);
|
|
2255
2255
|
};
|
|
2256
|
-
return (
|
|
2256
|
+
return (b, v) => (a(), P(n(_t), {
|
|
2257
2257
|
as: "template",
|
|
2258
|
-
show:
|
|
2258
|
+
show: f.value
|
|
2259
2259
|
}, {
|
|
2260
|
-
default:
|
|
2260
|
+
default: _(() => [
|
|
2261
2261
|
L(n(Lt), {
|
|
2262
2262
|
as: "div",
|
|
2263
2263
|
class: "relative z-40",
|
|
2264
2264
|
onClose: p
|
|
2265
2265
|
}, {
|
|
2266
|
-
default:
|
|
2267
|
-
L(n(
|
|
2266
|
+
default: _(() => [
|
|
2267
|
+
L(n(je), {
|
|
2268
2268
|
as: "template",
|
|
2269
2269
|
enter: "ease-out duration-300",
|
|
2270
2270
|
"enter-from": "opacity-0",
|
|
@@ -2273,14 +2273,14 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2273
2273
|
"leave-from": "opacity-100",
|
|
2274
2274
|
"leave-to": "opacity-0"
|
|
2275
2275
|
}, {
|
|
2276
|
-
default:
|
|
2276
|
+
default: _(() => [
|
|
2277
2277
|
An
|
|
2278
2278
|
]),
|
|
2279
2279
|
_: 1
|
|
2280
2280
|
}),
|
|
2281
2281
|
i("div", Dn, [
|
|
2282
2282
|
i("div", Tn, [
|
|
2283
|
-
L(n(
|
|
2283
|
+
L(n(je), {
|
|
2284
2284
|
as: "template",
|
|
2285
2285
|
enter: "ease-out duration-300",
|
|
2286
2286
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2288,42 +2288,42 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2288
2288
|
leave: "ease-in duration-200",
|
|
2289
2289
|
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
2290
2290
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2291
|
-
onAfterLeave:
|
|
2291
|
+
onAfterLeave: v[1] || (v[1] = (h) => b.$emit("fully-closed"))
|
|
2292
2292
|
}, {
|
|
2293
|
-
default:
|
|
2293
|
+
default: _(() => [
|
|
2294
2294
|
L(n(Pt), {
|
|
2295
|
-
class:
|
|
2295
|
+
class: x([
|
|
2296
2296
|
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2297
|
-
|
|
2297
|
+
u.value
|
|
2298
2298
|
]),
|
|
2299
|
-
as:
|
|
2300
|
-
onSubmit:
|
|
2299
|
+
as: o.value ? "form" : "div",
|
|
2300
|
+
onSubmit: ye(e.onSubmit, ["prevent"])
|
|
2301
2301
|
}, {
|
|
2302
|
-
default:
|
|
2303
|
-
e.title ? (a(),
|
|
2302
|
+
default: _(() => [
|
|
2303
|
+
e.title ? (a(), m("div", Rn, [
|
|
2304
2304
|
i("h4", Fn, I(e.title), 1)
|
|
2305
2305
|
])) : S("", !0),
|
|
2306
|
-
e.hideCloser ? S("", !0) : (a(),
|
|
2306
|
+
e.hideCloser ? S("", !0) : (a(), m("button", {
|
|
2307
2307
|
key: 1,
|
|
2308
2308
|
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2309
|
-
onClick:
|
|
2309
|
+
onClick: v[0] || (v[0] = (h) => f.value = !1)
|
|
2310
2310
|
}, [
|
|
2311
2311
|
L(n(ct), { class: "h-6 w-6" })
|
|
2312
2312
|
])),
|
|
2313
2313
|
i("div", zn, [
|
|
2314
|
-
D(
|
|
2314
|
+
D(b.$slots, "default", {}, () => [
|
|
2315
2315
|
A("Put your content here!")
|
|
2316
2316
|
])
|
|
2317
2317
|
]),
|
|
2318
|
-
|
|
2319
|
-
(a(!0),
|
|
2320
|
-
onClick:
|
|
2318
|
+
c.value ? (a(), m("div", En, [
|
|
2319
|
+
e.buttons ? (a(!0), m(U, { key: 0 }, G(e.buttons, (h, k) => (a(), P(n(re), oe({ key: k }, h.props, {
|
|
2320
|
+
onClick: h.onClick
|
|
2321
2321
|
}), {
|
|
2322
|
-
default:
|
|
2323
|
-
A(I(
|
|
2322
|
+
default: _(() => [
|
|
2323
|
+
A(I(h.text), 1)
|
|
2324
2324
|
]),
|
|
2325
2325
|
_: 2
|
|
2326
|
-
}, 1040, ["onClick"]))), 128))
|
|
2326
|
+
}, 1040, ["onClick"]))), 128)) : D(b.$slots, "buttons", { key: 1 })
|
|
2327
2327
|
])) : S("", !0)
|
|
2328
2328
|
]),
|
|
2329
2329
|
_: 3
|
|
@@ -2348,7 +2348,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2348
2348
|
color: { default: "default" }
|
|
2349
2349
|
},
|
|
2350
2350
|
setup(e) {
|
|
2351
|
-
const l = e, t =
|
|
2351
|
+
const l = e, t = r(() => {
|
|
2352
2352
|
const o = [
|
|
2353
2353
|
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2354
2354
|
"ring-1"
|
|
@@ -2365,7 +2365,7 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2365
2365
|
break;
|
|
2366
2366
|
}
|
|
2367
2367
|
return o.join(" ");
|
|
2368
|
-
}), s =
|
|
2368
|
+
}), s = r(() => {
|
|
2369
2369
|
const o = ["mt-4 px-3 py-1 border-x "];
|
|
2370
2370
|
switch (l.color) {
|
|
2371
2371
|
case "danger":
|
|
@@ -2378,13 +2378,13 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2378
2378
|
}
|
|
2379
2379
|
return o.join(" ");
|
|
2380
2380
|
});
|
|
2381
|
-
return (o, c) => (a(),
|
|
2381
|
+
return (o, c) => (a(), m("div", null, [
|
|
2382
2382
|
L(n(jt), null, {
|
|
2383
|
-
default:
|
|
2383
|
+
default: _(({ open: f }) => [
|
|
2384
2384
|
L(n(Vt), {
|
|
2385
|
-
class:
|
|
2385
|
+
class: x(t.value)
|
|
2386
2386
|
}, {
|
|
2387
|
-
default:
|
|
2387
|
+
default: _(() => [
|
|
2388
2388
|
i("div", Un, [
|
|
2389
2389
|
e.icon ? (a(), P(H(e.icon), {
|
|
2390
2390
|
key: 0,
|
|
@@ -2393,15 +2393,15 @@ const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2393
2393
|
i("span", null, I(e.title), 1)
|
|
2394
2394
|
]),
|
|
2395
2395
|
L(n(De), {
|
|
2396
|
-
class:
|
|
2396
|
+
class: x([f ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2397
2397
|
}, null, 8, ["class"])
|
|
2398
2398
|
]),
|
|
2399
2399
|
_: 2
|
|
2400
2400
|
}, 1032, ["class"]),
|
|
2401
2401
|
L(n(Ot), {
|
|
2402
|
-
class:
|
|
2402
|
+
class: x(s.value)
|
|
2403
2403
|
}, {
|
|
2404
|
-
default:
|
|
2404
|
+
default: _(() => [
|
|
2405
2405
|
i("div", Wn, [
|
|
2406
2406
|
D(o.$slots, "default", {}, () => [
|
|
2407
2407
|
A("Panel contents")
|
|
@@ -2424,17 +2424,17 @@ const Ol = /* @__PURE__ */ M({
|
|
|
2424
2424
|
},
|
|
2425
2425
|
emits: ["click", "update:modelValue"],
|
|
2426
2426
|
setup(e, { emit: l }) {
|
|
2427
|
-
const t = e, s =
|
|
2427
|
+
const t = e, s = r({
|
|
2428
2428
|
get: () => t.modelValue || J.Grid,
|
|
2429
2429
|
set: (f) => l("update:modelValue", f)
|
|
2430
|
-
}), o =
|
|
2430
|
+
}), o = r(
|
|
2431
2431
|
() => s.value === J.Grid ? lt : at
|
|
2432
2432
|
), c = (f) => {
|
|
2433
2433
|
l("click", f);
|
|
2434
|
-
const
|
|
2435
|
-
s.value =
|
|
2434
|
+
const d = s.value === J.Grid ? J.List : J.Grid;
|
|
2435
|
+
s.value = d;
|
|
2436
2436
|
};
|
|
2437
|
-
return (f,
|
|
2437
|
+
return (f, d) => (a(), m("button", {
|
|
2438
2438
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2439
2439
|
onClick: c
|
|
2440
2440
|
}, [
|
|
@@ -2444,7 +2444,7 @@ const Ol = /* @__PURE__ */ M({
|
|
|
2444
2444
|
});
|
|
2445
2445
|
var qn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(qn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
|
|
2446
2446
|
function Hn(e, l) {
|
|
2447
|
-
if (!
|
|
2447
|
+
if (!Ce)
|
|
2448
2448
|
return;
|
|
2449
2449
|
const {
|
|
2450
2450
|
wait: t = 100,
|
|
@@ -2464,20 +2464,20 @@ function Gn(e) {
|
|
|
2464
2464
|
const { el: l, defaultDirection: t } = e, s = O(
|
|
2465
2465
|
Q(t) ? 1 : t
|
|
2466
2466
|
/* Right */
|
|
2467
|
-
), o =
|
|
2467
|
+
), o = r(() => {
|
|
2468
2468
|
const f = n(e.stopUpdatesBelowWidth);
|
|
2469
2469
|
if (!Q(f))
|
|
2470
2470
|
return f;
|
|
2471
|
-
const
|
|
2472
|
-
return
|
|
2471
|
+
const d = n(l);
|
|
2472
|
+
return d != null && d.offsetWidth ? d.offsetWidth * 2 : void 0;
|
|
2473
2473
|
}), c = () => {
|
|
2474
|
-
if (!
|
|
2474
|
+
if (!Ce)
|
|
2475
2475
|
return;
|
|
2476
2476
|
const f = n(l);
|
|
2477
2477
|
if (!f)
|
|
2478
2478
|
return;
|
|
2479
|
-
const
|
|
2480
|
-
|
|
2479
|
+
const d = f.getBoundingClientRect(), u = d.x + d.width > window.innerWidth, p = d.x < 0;
|
|
2480
|
+
u && p || !Q(o.value) && window.innerWidth < o.value || (u ? s.value = 0 : p && (s.value = 1));
|
|
2481
2481
|
};
|
|
2482
2482
|
return Hn(() => c()), le(
|
|
2483
2483
|
() => n(l),
|
|
@@ -2485,7 +2485,7 @@ function Gn(e) {
|
|
|
2485
2485
|
f && c();
|
|
2486
2486
|
}
|
|
2487
2487
|
), {
|
|
2488
|
-
direction:
|
|
2488
|
+
direction: r(() => s.value),
|
|
2489
2489
|
recalculateDirection: c
|
|
2490
2490
|
};
|
|
2491
2491
|
}
|
|
@@ -2498,50 +2498,50 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2498
2498
|
emits: ["update:open", "chosen"],
|
|
2499
2499
|
setup(e, { emit: l }) {
|
|
2500
2500
|
const t = e, s = O(null), { direction: o } = Gn({
|
|
2501
|
-
el:
|
|
2502
|
-
var
|
|
2503
|
-
return ((
|
|
2501
|
+
el: r(() => {
|
|
2502
|
+
var h;
|
|
2503
|
+
return ((h = s.value) == null ? void 0 : h.el) || null;
|
|
2504
2504
|
}),
|
|
2505
2505
|
defaultDirection: me.Left,
|
|
2506
2506
|
stopUpdatesBelowWidth: 300
|
|
2507
|
-
}), c = O(null), f = O(!1),
|
|
2507
|
+
}), c = O(null), f = O(!1), d = r({
|
|
2508
2508
|
get: () => t.open || !1,
|
|
2509
|
-
set: (
|
|
2510
|
-
}),
|
|
2511
|
-
const { active: k, disabled:
|
|
2512
|
-
return k ? j.push("bg-primary text-foreground-on-primary") :
|
|
2513
|
-
},
|
|
2514
|
-
l("chosen", { item:
|
|
2515
|
-
},
|
|
2516
|
-
var
|
|
2517
|
-
return (
|
|
2518
|
-
}, v = (
|
|
2519
|
-
const k = !!
|
|
2509
|
+
set: (h) => l("update:open", h)
|
|
2510
|
+
}), u = (h) => {
|
|
2511
|
+
const { active: k, disabled: B } = h, j = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2512
|
+
return k ? j.push("bg-primary text-foreground-on-primary") : B ? j.push("text-foreground-disabled") : j.push("text-foreground"), j.join(" ");
|
|
2513
|
+
}, p = (h, k) => {
|
|
2514
|
+
l("chosen", { item: h, event: k });
|
|
2515
|
+
}, b = () => {
|
|
2516
|
+
var h;
|
|
2517
|
+
return (h = c.value) == null ? void 0 : h.el.click();
|
|
2518
|
+
}, v = (h) => {
|
|
2519
|
+
const k = !!h;
|
|
2520
2520
|
return f.value = k, k;
|
|
2521
2521
|
};
|
|
2522
|
-
return le(f, (
|
|
2523
|
-
|
|
2524
|
-
}), le(
|
|
2525
|
-
(
|
|
2526
|
-
}), (
|
|
2522
|
+
return le(f, (h, k) => {
|
|
2523
|
+
h !== k && (d.value = h);
|
|
2524
|
+
}), le(d, (h) => {
|
|
2525
|
+
(h && !f.value || !h && f.value) && b();
|
|
2526
|
+
}), (h, k) => (a(), P(n(Mt), {
|
|
2527
2527
|
as: "div",
|
|
2528
2528
|
class: "relative inline-block"
|
|
2529
2529
|
}, {
|
|
2530
|
-
default:
|
|
2530
|
+
default: _(({ open: B }) => [
|
|
2531
2531
|
i("div", null, [
|
|
2532
2532
|
L(n(At), {
|
|
2533
2533
|
ref_key: "menuButton",
|
|
2534
2534
|
ref: c,
|
|
2535
2535
|
class: "hidden",
|
|
2536
|
-
onClick: k[0] || (k[0] =
|
|
2536
|
+
onClick: k[0] || (k[0] = ye(() => {
|
|
2537
2537
|
}, ["stop", "prevent"]))
|
|
2538
2538
|
}, null, 512),
|
|
2539
2539
|
i("div", {
|
|
2540
|
-
class:
|
|
2540
|
+
class: x(B ? "pointer-events-none" : "")
|
|
2541
2541
|
}, [
|
|
2542
|
-
D(
|
|
2543
|
-
toggle:
|
|
2544
|
-
open: v(
|
|
2542
|
+
D(h.$slots, "default", {
|
|
2543
|
+
toggle: b,
|
|
2544
|
+
open: v(B)
|
|
2545
2545
|
})
|
|
2546
2546
|
], 2)
|
|
2547
2547
|
]),
|
|
@@ -2553,32 +2553,32 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2553
2553
|
"leave-from-class": "transform scale-100 opacity-100",
|
|
2554
2554
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
2555
2555
|
}, {
|
|
2556
|
-
default:
|
|
2556
|
+
default: _(() => [
|
|
2557
2557
|
L(n(Dt), {
|
|
2558
2558
|
ref_key: "menuItems",
|
|
2559
2559
|
ref: s,
|
|
2560
|
-
class:
|
|
2560
|
+
class: x([
|
|
2561
2561
|
"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",
|
|
2562
2562
|
n(o) === n(me).Left ? "right-0" : ""
|
|
2563
2563
|
])
|
|
2564
2564
|
}, {
|
|
2565
|
-
default:
|
|
2566
|
-
(a(!0),
|
|
2567
|
-
key:
|
|
2565
|
+
default: _(() => [
|
|
2566
|
+
(a(!0), m(U, null, G(e.items, (j, y) => (a(), m("div", {
|
|
2567
|
+
key: y,
|
|
2568
2568
|
class: "px-1 py-1"
|
|
2569
2569
|
}, [
|
|
2570
|
-
(a(!0),
|
|
2570
|
+
(a(!0), m(U, null, G(j, (w) => (a(), P(n(Tt), {
|
|
2571
2571
|
key: w.id,
|
|
2572
2572
|
disabled: w.disabled
|
|
2573
2573
|
}, {
|
|
2574
|
-
default:
|
|
2575
|
-
ne((a(),
|
|
2574
|
+
default: _(({ active: $, disabled: F }) => [
|
|
2575
|
+
ne((a(), m("span", null, [
|
|
2576
2576
|
i("button", {
|
|
2577
|
-
class:
|
|
2577
|
+
class: x(u({ active: $, disabled: F })),
|
|
2578
2578
|
disabled: F,
|
|
2579
|
-
onClick: (g) =>
|
|
2579
|
+
onClick: (g) => p(w, g)
|
|
2580
2580
|
}, [
|
|
2581
|
-
D(
|
|
2581
|
+
D(h.$slots, "item", { item: w }, () => [
|
|
2582
2582
|
A(I(w.title), 1)
|
|
2583
2583
|
])
|
|
2584
2584
|
], 10, Kn)
|
|
@@ -2605,19 +2605,19 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2605
2605
|
items: null
|
|
2606
2606
|
},
|
|
2607
2607
|
setup(e) {
|
|
2608
|
-
const l = e, t = O(null), s =
|
|
2608
|
+
const l = e, t = O(null), s = r(() => t.value && l.items.find((c) => c.id === t.value) || l.items[0]), o = (c) => {
|
|
2609
2609
|
t.value = c.id;
|
|
2610
2610
|
};
|
|
2611
|
-
return (c, f) => (a(),
|
|
2611
|
+
return (c, f) => (a(), m("div", Xn, [
|
|
2612
2612
|
i("div", Nn, [
|
|
2613
|
-
(a(!0),
|
|
2614
|
-
key:
|
|
2613
|
+
(a(!0), m(U, null, G(e.items, (d) => (a(), P(re, {
|
|
2614
|
+
key: d.id,
|
|
2615
2615
|
link: "",
|
|
2616
|
-
color: s.value.id ===
|
|
2617
|
-
onClick: (
|
|
2616
|
+
color: s.value.id === d.id ? "default" : "secondary",
|
|
2617
|
+
onClick: (u) => o(d)
|
|
2618
2618
|
}, {
|
|
2619
|
-
default:
|
|
2620
|
-
A(I(
|
|
2619
|
+
default: _(() => [
|
|
2620
|
+
A(I(d.title), 1)
|
|
2621
2621
|
]),
|
|
2622
2622
|
_: 2
|
|
2623
2623
|
}, 1032, ["color", "onClick"]))), 128))
|
|
@@ -2634,25 +2634,25 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2634
2634
|
emits: ["infinite"],
|
|
2635
2635
|
setup(e) {
|
|
2636
2636
|
const l = O(null), t = O(!1);
|
|
2637
|
-
return
|
|
2637
|
+
return Ce && Y(() => {
|
|
2638
2638
|
const s = setInterval(() => {
|
|
2639
2639
|
var o;
|
|
2640
2640
|
(o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
|
|
2641
2641
|
}, 200);
|
|
2642
|
-
}), (s, o) => (a(),
|
|
2642
|
+
}), (s, o) => (a(), m("div", {
|
|
2643
2643
|
ref_key: "wrapper",
|
|
2644
2644
|
ref: l
|
|
2645
2645
|
}, [
|
|
2646
2646
|
t.value ? (a(), P(n(Rt), oe({ key: 0 }, s.$props.settings || {}, {
|
|
2647
2647
|
onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
|
|
2648
2648
|
}), {
|
|
2649
|
-
spinner:
|
|
2649
|
+
spinner: _(() => [
|
|
2650
2650
|
L(We, {
|
|
2651
2651
|
loading: !0,
|
|
2652
2652
|
class: "my-2"
|
|
2653
2653
|
})
|
|
2654
2654
|
]),
|
|
2655
|
-
complete:
|
|
2655
|
+
complete: _(() => [
|
|
2656
2656
|
i("div", Jn, [
|
|
2657
2657
|
i("div", Qn, [
|
|
2658
2658
|
L(n(dt), { class: "w-5 h-5 text-success" }),
|
|
@@ -2660,7 +2660,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2660
2660
|
])
|
|
2661
2661
|
])
|
|
2662
2662
|
]),
|
|
2663
|
-
error:
|
|
2663
|
+
error: _(({ retry: c }) => [
|
|
2664
2664
|
i("div", Zn, [
|
|
2665
2665
|
i("div", el, [
|
|
2666
2666
|
L(n(ft), { class: "w-5 h-5 text-danger" }),
|
|
@@ -2670,7 +2670,7 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2670
2670
|
key: 0,
|
|
2671
2671
|
onClick: c
|
|
2672
2672
|
}, {
|
|
2673
|
-
default:
|
|
2673
|
+
default: _(() => [
|
|
2674
2674
|
A("Retry")
|
|
2675
2675
|
]),
|
|
2676
2676
|
_: 2
|
|
@@ -2719,38 +2719,38 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2719
2719
|
},
|
|
2720
2720
|
emits: ["submit"],
|
|
2721
2721
|
setup(e, { emit: l }) {
|
|
2722
|
-
const t = e, s =
|
|
2722
|
+
const t = e, s = r(
|
|
2723
2723
|
() => t.customPadding ? "" : "px-4 py-4 sm:px-6"
|
|
2724
|
-
), o =
|
|
2724
|
+
), o = r(
|
|
2725
2725
|
() => t.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
2726
|
-
), c =
|
|
2726
|
+
), c = r(() => {
|
|
2727
2727
|
const f = ["rounded-lg"];
|
|
2728
2728
|
return t.noShadow || f.push("shadow"), t.ring && f.push("ring-outline-2 hover:ring-2"), f.join(" ");
|
|
2729
2729
|
});
|
|
2730
|
-
return (f,
|
|
2731
|
-
e.fancyGlow ? (a(),
|
|
2730
|
+
return (f, d) => (a(), m("div", sl, [
|
|
2731
|
+
e.fancyGlow ? (a(), m("div", nl)) : S("", !0),
|
|
2732
2732
|
(a(), P(H(e.form ? "form" : "div"), {
|
|
2733
|
-
class:
|
|
2733
|
+
class: x([
|
|
2734
2734
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2735
2735
|
c.value
|
|
2736
2736
|
]),
|
|
2737
|
-
onSubmit:
|
|
2737
|
+
onSubmit: d[0] || (d[0] = (u) => l("submit", u))
|
|
2738
2738
|
}, {
|
|
2739
|
-
default:
|
|
2740
|
-
f.$slots.header ? (a(),
|
|
2739
|
+
default: _(() => [
|
|
2740
|
+
f.$slots.header ? (a(), m("div", {
|
|
2741
2741
|
key: 0,
|
|
2742
|
-
class:
|
|
2742
|
+
class: x(s.value)
|
|
2743
2743
|
}, [
|
|
2744
2744
|
D(f.$slots, "header")
|
|
2745
2745
|
], 2)) : S("", !0),
|
|
2746
2746
|
i("div", {
|
|
2747
|
-
class:
|
|
2747
|
+
class: x(["grow", o.value])
|
|
2748
2748
|
}, [
|
|
2749
2749
|
D(f.$slots, "default")
|
|
2750
2750
|
], 2),
|
|
2751
|
-
f.$slots.footer ? (a(),
|
|
2751
|
+
f.$slots.footer ? (a(), m("div", {
|
|
2752
2752
|
key: 1,
|
|
2753
|
-
class:
|
|
2753
|
+
class: x(s.value)
|
|
2754
2754
|
}, [
|
|
2755
2755
|
D(f.$slots, "footer")
|
|
2756
2756
|
], 2)) : S("", !0)
|
|
@@ -2771,119 +2771,119 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2771
2771
|
},
|
|
2772
2772
|
emits: ["dismiss"],
|
|
2773
2773
|
setup(e) {
|
|
2774
|
-
const l = e, t =
|
|
2775
|
-
const
|
|
2776
|
-
switch (
|
|
2774
|
+
const l = e, t = be(), s = r(() => !!t.description), o = r(() => {
|
|
2775
|
+
const u = [];
|
|
2776
|
+
switch (u.push(s.value ? "p-4" : "p-2"), l.color) {
|
|
2777
2777
|
case "success":
|
|
2778
|
-
|
|
2778
|
+
u.push("bg-success-lighter border-l-4 border-success");
|
|
2779
2779
|
break;
|
|
2780
2780
|
case "info":
|
|
2781
|
-
|
|
2781
|
+
u.push("bg-info-lighter border-l-4 border-info");
|
|
2782
2782
|
break;
|
|
2783
2783
|
case "danger":
|
|
2784
|
-
|
|
2784
|
+
u.push("bg-danger-lighter border-l-4 border-danger");
|
|
2785
2785
|
break;
|
|
2786
2786
|
case "warning":
|
|
2787
|
-
|
|
2787
|
+
u.push("bg-warning-lighter border-l-4 border-warning");
|
|
2788
2788
|
break;
|
|
2789
2789
|
}
|
|
2790
|
-
return
|
|
2791
|
-
}), c =
|
|
2792
|
-
const
|
|
2790
|
+
return u.join(" ");
|
|
2791
|
+
}), c = r(() => {
|
|
2792
|
+
const u = [];
|
|
2793
2793
|
switch (l.color) {
|
|
2794
2794
|
case "success":
|
|
2795
|
-
|
|
2795
|
+
u.push("text-success-darker");
|
|
2796
2796
|
break;
|
|
2797
2797
|
case "info":
|
|
2798
|
-
|
|
2798
|
+
u.push("text-info-darker");
|
|
2799
2799
|
break;
|
|
2800
2800
|
case "danger":
|
|
2801
|
-
|
|
2801
|
+
u.push("text-danger-darker");
|
|
2802
2802
|
break;
|
|
2803
2803
|
case "warning":
|
|
2804
|
-
|
|
2804
|
+
u.push("text-warning-darker");
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
2807
|
-
return
|
|
2808
|
-
}), f =
|
|
2809
|
-
const
|
|
2807
|
+
return u.join(" ");
|
|
2808
|
+
}), f = r(() => {
|
|
2809
|
+
const u = [];
|
|
2810
2810
|
switch (l.color) {
|
|
2811
2811
|
case "success":
|
|
2812
|
-
|
|
2812
|
+
u.push("text-success");
|
|
2813
2813
|
break;
|
|
2814
2814
|
case "info":
|
|
2815
|
-
|
|
2815
|
+
u.push("text-info");
|
|
2816
2816
|
break;
|
|
2817
2817
|
case "danger":
|
|
2818
|
-
|
|
2818
|
+
u.push("text-danger");
|
|
2819
2819
|
break;
|
|
2820
2820
|
case "warning":
|
|
2821
|
-
|
|
2821
|
+
u.push("text-warning");
|
|
2822
2822
|
break;
|
|
2823
2823
|
}
|
|
2824
|
-
return
|
|
2825
|
-
}),
|
|
2826
|
-
const
|
|
2824
|
+
return u.join(" ");
|
|
2825
|
+
}), d = r(() => {
|
|
2826
|
+
const u = [];
|
|
2827
2827
|
switch (l.color) {
|
|
2828
2828
|
case "success":
|
|
2829
|
-
|
|
2829
|
+
u.push("bg-success-lighter ring-success");
|
|
2830
2830
|
break;
|
|
2831
2831
|
case "info":
|
|
2832
|
-
|
|
2832
|
+
u.push("bg-info-lighter ring-info");
|
|
2833
2833
|
break;
|
|
2834
2834
|
case "danger":
|
|
2835
|
-
|
|
2835
|
+
u.push("bg-danger-lighter ring-danger");
|
|
2836
2836
|
break;
|
|
2837
2837
|
case "warning":
|
|
2838
|
-
|
|
2838
|
+
u.push("bg-warning-lighter ring-warning");
|
|
2839
2839
|
break;
|
|
2840
2840
|
}
|
|
2841
|
-
return
|
|
2841
|
+
return u.join(" ");
|
|
2842
2842
|
});
|
|
2843
|
-
return (
|
|
2844
|
-
var
|
|
2845
|
-
return a(),
|
|
2846
|
-
class:
|
|
2843
|
+
return (u, p) => {
|
|
2844
|
+
var b;
|
|
2845
|
+
return a(), m("div", {
|
|
2846
|
+
class: x(["rounded-md", [o.value, c.value]])
|
|
2847
2847
|
}, [
|
|
2848
2848
|
i("div", {
|
|
2849
|
-
class:
|
|
2849
|
+
class: x(["flex", [s.value ? "" : "items-center space-x-2"]])
|
|
2850
2850
|
}, [
|
|
2851
2851
|
i("div", ll, [
|
|
2852
2852
|
L(n(Te), {
|
|
2853
|
-
class:
|
|
2853
|
+
class: x(["h-5 w-5", f.value]),
|
|
2854
2854
|
"aria-hidden": "true"
|
|
2855
2855
|
}, null, 8, ["class"])
|
|
2856
2856
|
]),
|
|
2857
2857
|
i("div", {
|
|
2858
|
-
class:
|
|
2858
|
+
class: x(["ml-3 grow", [s.value ? "" : "flex items-center space-x-2"]])
|
|
2859
2859
|
}, [
|
|
2860
2860
|
i("h3", {
|
|
2861
|
-
class:
|
|
2861
|
+
class: x(["text-sm", [s.value ? "font-medium" : ""]])
|
|
2862
2862
|
}, [
|
|
2863
|
-
D(
|
|
2863
|
+
D(u.$slots, "title", {}, () => [
|
|
2864
2864
|
A("Title")
|
|
2865
2865
|
])
|
|
2866
2866
|
], 2),
|
|
2867
|
-
s.value ? (a(),
|
|
2868
|
-
D(
|
|
2867
|
+
s.value ? (a(), m("div", al, [
|
|
2868
|
+
D(u.$slots, "description", {}, () => [
|
|
2869
2869
|
A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
2870
2870
|
])
|
|
2871
2871
|
])) : S("", !0),
|
|
2872
2872
|
i("div", {
|
|
2873
|
-
class:
|
|
2873
|
+
class: x([s.value ? (b = e.actions) != null && b.length ? "mt-4" : "" : "grow flex"])
|
|
2874
2874
|
}, [
|
|
2875
2875
|
i("div", {
|
|
2876
|
-
class:
|
|
2876
|
+
class: x(["flex", ["space-x-2", s.value ? "" : "grow justify-end"]])
|
|
2877
2877
|
}, [
|
|
2878
|
-
(a(!0),
|
|
2879
|
-
key:
|
|
2878
|
+
(a(!0), m(U, null, G(e.actions || [], (v, h) => (a(), P(re, {
|
|
2879
|
+
key: h,
|
|
2880
2880
|
color: e.color,
|
|
2881
2881
|
size: "sm",
|
|
2882
2882
|
to: v.url,
|
|
2883
2883
|
external: v.externalUrl || !1,
|
|
2884
2884
|
onClick: (k) => v.onClick || n(Ye)
|
|
2885
2885
|
}, {
|
|
2886
|
-
default:
|
|
2886
|
+
default: _(() => [
|
|
2887
2887
|
A(I(v.title), 1)
|
|
2888
2888
|
]),
|
|
2889
2889
|
_: 2
|
|
@@ -2891,14 +2891,14 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2891
2891
|
], 2)
|
|
2892
2892
|
], 2)
|
|
2893
2893
|
], 2),
|
|
2894
|
-
e.withDismiss ? (a(),
|
|
2894
|
+
e.withDismiss ? (a(), m("div", {
|
|
2895
2895
|
key: 0,
|
|
2896
|
-
class:
|
|
2896
|
+
class: x(["flex", [s.value ? "items-start" : "items-center"]])
|
|
2897
2897
|
}, [
|
|
2898
2898
|
i("button", {
|
|
2899
2899
|
type: "button",
|
|
2900
|
-
class:
|
|
2901
|
-
onClick:
|
|
2900
|
+
class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", d.value]),
|
|
2901
|
+
onClick: p[0] || (p[0] = (v) => u.$emit("dismiss"))
|
|
2902
2902
|
}, [
|
|
2903
2903
|
ol,
|
|
2904
2904
|
L(n(ue), {
|
|
@@ -2913,11 +2913,11 @@ const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
|
2913
2913
|
}
|
|
2914
2914
|
});
|
|
2915
2915
|
function zl(e) {
|
|
2916
|
-
var
|
|
2917
|
-
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: f } = e,
|
|
2918
|
-
const
|
|
2919
|
-
return
|
|
2920
|
-
} : l, v =
|
|
2916
|
+
var B, j;
|
|
2917
|
+
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: f } = e, d = f == null ? void 0 : f.log, u = () => (new Error("Trace:").stack || "").substring(7), p = ((j = (B = e.debugging) == null ? void 0 : B.log) == null ? void 0 : j.logger) || console.debug, b = d && !d.writesOnly ? () => {
|
|
2918
|
+
const y = l();
|
|
2919
|
+
return p(`debugging: '${d.name}' read`, y, u()), y;
|
|
2920
|
+
} : l, v = d && !d.readsOnly ? (y) => (p(`debugging: '${d.name}' written to`, y, u()), o(y)) : o, h = c ? Ct(b, t, s) : r(b), k = r(() => h.value);
|
|
2921
2921
|
return k.update = v, k;
|
|
2922
2922
|
}
|
|
2923
2923
|
export {
|
|
@@ -2930,8 +2930,8 @@ export {
|
|
|
2930
2930
|
re as FormButton,
|
|
2931
2931
|
Cl as FormCardButton,
|
|
2932
2932
|
wl as FormCheckbox,
|
|
2933
|
-
|
|
2934
|
-
|
|
2933
|
+
Bn as FormSelectBase,
|
|
2934
|
+
Bl as FormSelectSourceApps,
|
|
2935
2935
|
$l as FormTextArea,
|
|
2936
2936
|
Sl as FormTextInput,
|
|
2937
2937
|
yl as GlobalToastRenderer,
|
|
@@ -2945,13 +2945,13 @@ export {
|
|
|
2945
2945
|
Rl as LayoutPanel,
|
|
2946
2946
|
Dl as LayoutTabs,
|
|
2947
2947
|
se as ModifierKeys,
|
|
2948
|
-
|
|
2948
|
+
_n as SourceAppBadge,
|
|
2949
2949
|
te as TailwindBreakpoints,
|
|
2950
2950
|
qn as ThrottleOrDebounce,
|
|
2951
2951
|
ee as ToastNotificationType,
|
|
2952
2952
|
Il as ValidationHelpers,
|
|
2953
2953
|
he as clientOs,
|
|
2954
|
-
|
|
2954
|
+
_l as getKeyboardShortcutTitle,
|
|
2955
2955
|
Ll as onKeyboardShortcut,
|
|
2956
2956
|
Pl as useFormCheckboxModel,
|
|
2957
2957
|
rn as useFormSelectChildInternals,
|