@speckle/ui-components 2.16.1-alpha2 → 2.16.1-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/form/TextInput.vue.d.ts +1 -1
- package/dist/components/form/select/Base.vue.d.ts +375 -360
- package/dist/components/form/select/SourceApps.vue.d.ts +13 -0
- package/dist/composables/form/textInput.d.ts +6 -5
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +883 -871
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isObjectLike as
|
|
3
|
-
import { ArrowPathIcon as
|
|
4
|
-
import { CheckCircleIcon as
|
|
5
|
-
import { XMarkIcon as
|
|
6
|
-
import { useField as
|
|
7
|
-
import { nanoid as
|
|
8
|
-
import { isNullOrUndefined as
|
|
9
|
-
import { useResizeObserver as
|
|
10
|
-
import { Listbox as
|
|
11
|
-
import { directive as
|
|
12
|
-
import
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as O, resolveDynamicComponent as G, computed as c, openBlock as a, createBlock as j, normalizeClass as b, withCtx as B, createCommentVNode as S, renderSlot as R, createTextVNode as M, createElementBlock as p, createElementVNode as d, createVNode as V, Transition as xe, unref as n, toDisplayString as I, toRefs as Y, Fragment as F, renderList as E, ref as z, onMounted as Z, mergeProps as ie, withDirectives as ae, isRef as fe, vModelText as ze, useSlots as ke, vModelDynamic as tt, pushScopeId as st, popScopeId as lt, watch as oe, withModifiers as ue, normalizeStyle as re, useModel as nt, onBeforeUnmount as Re } from "vue";
|
|
2
|
+
import { isObjectLike as ge, clamp as Oe, isArray as U, isString as de, isUndefined as Q, debounce as Te, throttle as at, noop as ot } from "lodash";
|
|
3
|
+
import { ArrowPathIcon as rt, ExclamationCircleIcon as it, ChevronUpIcon as De, ChevronDownIcon as ut, XMarkIcon as we, MagnifyingGlassIcon as ct, CheckIcon as Fe, Bars3Icon as dt, Squares2X2Icon as ft } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { CheckCircleIcon as pt, XCircleIcon as ht, ExclamationCircleIcon as mt, InformationCircleIcon as gt, XMarkIcon as vt, CheckIcon as bt, ExclamationTriangleIcon as yt } from "@heroicons/vue/24/outline";
|
|
5
|
+
import { XMarkIcon as pe, CheckIcon as xt, CheckCircleIcon as Ee, ExclamationCircleIcon as Ce, EnvelopeIcon as kt, KeyIcon as wt, XCircleIcon as Ct, InformationCircleIcon as $t } from "@heroicons/vue/20/solid";
|
|
6
|
+
import { useField as $e } from "vee-validate";
|
|
7
|
+
import { nanoid as Se } from "nanoid";
|
|
8
|
+
import { isNullOrUndefined as St, SourceApps as It, getClientOperatingSystem as Bt, OperatingSystem as ve } from "@speckle/shared";
|
|
9
|
+
import { useResizeObserver as Vt, useMutationObserver as Pt, onKeyDown as Lt, isClient as Ie, computedAsync as jt } from "@vueuse/core";
|
|
10
|
+
import { Listbox as _t, ListboxLabel as Ot, ListboxButton as At, ListboxOptions as Mt, ListboxOption as zt, Switch as Rt, TransitionRoot as Tt, Dialog as Dt, TransitionChild as Ae, DialogPanel as Ft, Disclosure as Et, DisclosureButton as Ut, DisclosurePanel as Wt, Menu as qt, MenuButton as Ht, MenuItems as Gt, MenuItem as Kt } from "@headlessui/vue";
|
|
11
|
+
import { directive as Ue } from "vue-tippy";
|
|
12
|
+
import Xt from "v3-infinite-loading";
|
|
13
|
+
const Nt = {
|
|
14
14
|
key: 2,
|
|
15
15
|
style: { margin: "0 !important", width: "0.01px" }
|
|
16
|
-
},
|
|
16
|
+
}, Jt = /* @__PURE__ */ O({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -141,12 +141,12 @@ const Xt = {
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
143
|
setup(e, { emit: l }) {
|
|
144
|
-
const t = e, s = G("NuxtLink"), o = G("RouterLink"), f = c(() => t.linkComponent ? t.linkComponent : t.external ? "a" :
|
|
144
|
+
const t = e, s = G("NuxtLink"), o = G("RouterLink"), f = c(() => t.linkComponent ? t.linkComponent : t.external ? "a" : ge(s) ? s : ge(o) ? o : "a"), r = c(() => {
|
|
145
145
|
if (!t.to)
|
|
146
146
|
return t.submit ? "submit" : "button";
|
|
147
|
-
}),
|
|
147
|
+
}), i = c(() => t.disabled || t.loading), m = c(() => t.loading ? rt : t.iconLeft), u = c(() => {
|
|
148
148
|
const v = [];
|
|
149
|
-
if (v.push("border-2"),
|
|
149
|
+
if (v.push("border-2"), i.value)
|
|
150
150
|
v.push(
|
|
151
151
|
t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
152
152
|
);
|
|
@@ -190,7 +190,7 @@ const Xt = {
|
|
|
190
190
|
}), y = c(() => {
|
|
191
191
|
const v = [];
|
|
192
192
|
if (!t.text && !t.link)
|
|
193
|
-
if (
|
|
193
|
+
if (i.value)
|
|
194
194
|
v.push(
|
|
195
195
|
(t.outlined, "text-foreground-disabled")
|
|
196
196
|
);
|
|
@@ -237,7 +237,7 @@ const Xt = {
|
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
else
|
|
240
|
-
|
|
240
|
+
i.value ? v.push("text-foreground-disabled") : t.color === "invert" ? v.push(
|
|
241
241
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
242
|
) : t.color === "secondary" ? v.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? v.push("text-success") : t.color === "warning" ? v.push("text-warning") : t.color === "info" ? v.push("text-info") : t.color === "danger" ? v.push("text-danger") : v.push("text-primary hover:text-primary-focus");
|
|
243
243
|
return v.join(" ");
|
|
@@ -246,7 +246,7 @@ const Xt = {
|
|
|
246
246
|
return v.push(t.rounded ? "rounded-full" : "rounded-md"), v.join(" ");
|
|
247
247
|
}), g = c(() => {
|
|
248
248
|
const v = [];
|
|
249
|
-
if (!
|
|
249
|
+
if (!i.value)
|
|
250
250
|
switch (t.color) {
|
|
251
251
|
case "invert":
|
|
252
252
|
v.push("hover:ring-4 ring-white/50");
|
|
@@ -269,7 +269,7 @@ const Xt = {
|
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
return v.join(" ");
|
|
272
|
-
}),
|
|
272
|
+
}), C = c(() => {
|
|
273
273
|
switch (t.size) {
|
|
274
274
|
case "xs":
|
|
275
275
|
return "h-5 text-xs font-medium xxx-tracking-wide";
|
|
@@ -297,28 +297,28 @@ const Xt = {
|
|
|
297
297
|
case "base":
|
|
298
298
|
return "px-3";
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), _ = c(() => {
|
|
301
301
|
const v = [];
|
|
302
|
-
return t.fullWidth && v.push("w-full"),
|
|
303
|
-
}),
|
|
302
|
+
return t.fullWidth && v.push("w-full"), i.value && v.push("cursor-not-allowed"), v.join(" ");
|
|
303
|
+
}), x = c(() => {
|
|
304
304
|
const v = [];
|
|
305
|
-
return !
|
|
305
|
+
return !i.value && !t.link && !t.text && v.push("active:scale-[0.97]"), !i.value && t.link && v.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
307
|
), v.join(" ");
|
|
308
308
|
}), $ = c(() => {
|
|
309
309
|
const v = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
_.value,
|
|
313
|
+
C.value,
|
|
314
314
|
y.value,
|
|
315
315
|
v ? "" : u.value,
|
|
316
316
|
v ? "" : k.value,
|
|
317
317
|
v ? "" : g.value,
|
|
318
318
|
t.link ? "" : h.value,
|
|
319
|
-
|
|
319
|
+
x.value
|
|
320
320
|
].join(" ");
|
|
321
|
-
}),
|
|
321
|
+
}), P = c(() => {
|
|
322
322
|
const v = [""];
|
|
323
323
|
switch (t.loading && v.push("animate-spin"), t.size) {
|
|
324
324
|
case "xs":
|
|
@@ -339,46 +339,46 @@ const Xt = {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
return v.join(" ");
|
|
342
|
-
}),
|
|
343
|
-
if (
|
|
342
|
+
}), L = (v) => {
|
|
343
|
+
if (i.value) {
|
|
344
344
|
v.preventDefault(), v.stopPropagation(), v.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
l("click", v);
|
|
348
348
|
};
|
|
349
|
-
return (v, D) => (a(),
|
|
349
|
+
return (v, D) => (a(), j(G(e.to ? f.value : "button"), {
|
|
350
350
|
href: e.to,
|
|
351
351
|
to: e.to,
|
|
352
|
-
type:
|
|
352
|
+
type: r.value,
|
|
353
353
|
external: e.external,
|
|
354
|
-
class:
|
|
355
|
-
disabled:
|
|
354
|
+
class: b($.value),
|
|
355
|
+
disabled: i.value,
|
|
356
356
|
role: "button",
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: L
|
|
358
358
|
}, {
|
|
359
|
-
default:
|
|
360
|
-
m.value ? (a(),
|
|
359
|
+
default: B(() => [
|
|
360
|
+
m.value ? (a(), j(G(m.value), {
|
|
361
361
|
key: 0,
|
|
362
|
-
class:
|
|
363
|
-
}, null, 8, ["class"])) :
|
|
364
|
-
e.hideText ? (a(), p("div",
|
|
365
|
-
|
|
362
|
+
class: b(`${P.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
|
+
}, null, 8, ["class"])) : S("", !0),
|
|
364
|
+
e.hideText ? (a(), p("div", Nt, " ")) : R(v.$slots, "default", { key: 1 }, () => [
|
|
365
|
+
M("Button")
|
|
366
366
|
], !0),
|
|
367
|
-
e.iconRight || !e.loading ? (a(),
|
|
367
|
+
e.iconRight || !e.loading ? (a(), j(G(e.iconRight), {
|
|
368
368
|
key: 3,
|
|
369
|
-
class:
|
|
370
|
-
}, null, 8, ["class"])) :
|
|
369
|
+
class: b(`${P.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
|
+
}, null, 8, ["class"])) : S("", !0)
|
|
371
371
|
]),
|
|
372
372
|
_: 3
|
|
373
373
|
}, 8, ["href", "to", "type", "external", "class", "disabled"]));
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
const
|
|
376
|
+
const We = (e, l) => {
|
|
377
377
|
const t = e.__vccOpts || e;
|
|
378
378
|
for (const [s, o] of l)
|
|
379
379
|
t[s] = o;
|
|
380
380
|
return t;
|
|
381
|
-
}, ee = /* @__PURE__ */
|
|
381
|
+
}, ee = /* @__PURE__ */ We(Jt, [["__scopeId", "data-v-38aa371e"]]), Qt = /* @__PURE__ */ O({
|
|
382
382
|
__name: "Link",
|
|
383
383
|
props: {
|
|
384
384
|
to: {
|
|
@@ -435,7 +435,7 @@ const Ue = (e, l) => {
|
|
|
435
435
|
}
|
|
436
436
|
l("click", o);
|
|
437
437
|
};
|
|
438
|
-
return (o, f) => (a(),
|
|
438
|
+
return (o, f) => (a(), j(ee, {
|
|
439
439
|
link: "",
|
|
440
440
|
to: e.to,
|
|
441
441
|
external: e.external,
|
|
@@ -448,9 +448,9 @@ const Ue = (e, l) => {
|
|
|
448
448
|
role: "link",
|
|
449
449
|
onClickCapture: s
|
|
450
450
|
}, {
|
|
451
|
-
default:
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
default: B(() => [
|
|
452
|
+
R(o.$slots, "default", {}, () => [
|
|
453
|
+
M("Link")
|
|
454
454
|
])
|
|
455
455
|
]),
|
|
456
456
|
_: 3
|
|
@@ -458,22 +458,22 @@ const Ue = (e, l) => {
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
var se = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(se || {});
|
|
461
|
-
const
|
|
461
|
+
const Yt = {
|
|
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
|
+
}, Zt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, es = {
|
|
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
|
+
}, ts = { class: "p-4" }, ss = { class: "flex items-start" }, ls = { class: "flex-shrink-0" }, ns = { class: "ml-2 w-0 flex-1 flex flex-col" }, as = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "text-foreground font-bold"
|
|
470
|
-
},
|
|
470
|
+
}, os = {
|
|
471
471
|
key: 1,
|
|
472
472
|
class: "label label--light text-foreground-2"
|
|
473
|
-
},
|
|
473
|
+
}, rs = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "flex justify-start mt-2"
|
|
476
|
-
},
|
|
476
|
+
}, is = /* @__PURE__ */ d("span", { class: "sr-only" }, "Close", -1), On = /* @__PURE__ */ O({
|
|
477
477
|
__name: "ToastRenderer",
|
|
478
478
|
props: {
|
|
479
479
|
notification: null
|
|
@@ -482,18 +482,18 @@ const Qt = {
|
|
|
482
482
|
setup(e, { emit: l }) {
|
|
483
483
|
const t = e, s = c(
|
|
484
484
|
() => {
|
|
485
|
-
var
|
|
486
|
-
return !((
|
|
485
|
+
var r, i;
|
|
486
|
+
return !((r = t.notification) != null && r.description) && !((i = t.notification) != null && i.cta);
|
|
487
487
|
}
|
|
488
488
|
), o = () => {
|
|
489
489
|
l("update:notification", null);
|
|
490
|
-
}, f = (
|
|
491
|
-
var
|
|
492
|
-
(u = (m = (
|
|
490
|
+
}, f = (r) => {
|
|
491
|
+
var i, m, u;
|
|
492
|
+
(u = (m = (i = t.notification) == null ? void 0 : i.cta) == null ? void 0 : m.onClick) == null || u.call(m, r), o();
|
|
493
493
|
};
|
|
494
|
-
return (
|
|
495
|
-
d("div",
|
|
496
|
-
V(
|
|
494
|
+
return (r, i) => (a(), p("div", Yt, [
|
|
495
|
+
d("div", Zt, [
|
|
496
|
+
V(xe, {
|
|
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",
|
|
@@ -501,56 +501,56 @@ const Qt = {
|
|
|
501
501
|
"leave-from-class": "opacity-100",
|
|
502
502
|
"leave-to-class": "opacity-0"
|
|
503
503
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
e.notification ? (a(), p("div",
|
|
506
|
-
d("div",
|
|
507
|
-
d("div",
|
|
508
|
-
d("div",
|
|
509
|
-
e.notification.type === n(se).Success ? (a(),
|
|
504
|
+
default: B(() => [
|
|
505
|
+
e.notification ? (a(), p("div", es, [
|
|
506
|
+
d("div", ts, [
|
|
507
|
+
d("div", ss, [
|
|
508
|
+
d("div", ls, [
|
|
509
|
+
e.notification.type === n(se).Success ? (a(), j(n(pt), {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "h-6 w-6 text-success",
|
|
512
512
|
"aria-hidden": "true"
|
|
513
|
-
})) : e.notification.type === n(se).Danger ? (a(),
|
|
513
|
+
})) : e.notification.type === n(se).Danger ? (a(), j(n(ht), {
|
|
514
514
|
key: 1,
|
|
515
515
|
class: "h-6 w-6 text-danger",
|
|
516
516
|
"aria-hidden": "true"
|
|
517
|
-
})) : e.notification.type === n(se).Warning ? (a(),
|
|
517
|
+
})) : e.notification.type === n(se).Warning ? (a(), j(n(mt), {
|
|
518
518
|
key: 2,
|
|
519
519
|
class: "h-6 w-6 text-warning",
|
|
520
520
|
"aria-hidden": "true"
|
|
521
|
-
})) : e.notification.type === n(se).Info ? (a(),
|
|
521
|
+
})) : e.notification.type === n(se).Info ? (a(), j(n(gt), {
|
|
522
522
|
key: 3,
|
|
523
523
|
class: "h-6 w-6 text-info",
|
|
524
524
|
"aria-hidden": "true"
|
|
525
|
-
})) :
|
|
525
|
+
})) : S("", !0)
|
|
526
526
|
]),
|
|
527
|
-
d("div",
|
|
528
|
-
e.notification.title ? (a(), p("p",
|
|
529
|
-
e.notification.description ? (a(), p("p",
|
|
530
|
-
e.notification.cta ? (a(), p("div",
|
|
531
|
-
V(
|
|
527
|
+
d("div", ns, [
|
|
528
|
+
e.notification.title ? (a(), p("p", as, I(e.notification.title), 1)) : S("", !0),
|
|
529
|
+
e.notification.description ? (a(), p("p", os, I(e.notification.description), 1)) : S("", !0),
|
|
530
|
+
e.notification.cta ? (a(), p("div", rs, [
|
|
531
|
+
V(Qt, {
|
|
532
532
|
to: e.notification.cta.url,
|
|
533
533
|
class: "label",
|
|
534
534
|
primary: "",
|
|
535
535
|
onClick: f
|
|
536
536
|
}, {
|
|
537
|
-
default:
|
|
538
|
-
|
|
537
|
+
default: B(() => [
|
|
538
|
+
M(I(e.notification.cta.title), 1)
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["to"])
|
|
542
|
-
])) :
|
|
542
|
+
])) : S("", !0)
|
|
543
543
|
]),
|
|
544
544
|
d("div", {
|
|
545
|
-
class:
|
|
545
|
+
class: b(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
|
|
546
546
|
}, [
|
|
547
547
|
d("button", {
|
|
548
548
|
type: "button",
|
|
549
549
|
class: "inline-flex rounded-md bg-foundation text-foreground-2 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
550
550
|
onClick: o
|
|
551
551
|
}, [
|
|
552
|
-
|
|
553
|
-
V(n(
|
|
552
|
+
is,
|
|
553
|
+
V(n(pe), {
|
|
554
554
|
class: "h-6 w-6",
|
|
555
555
|
"aria-hidden": "true"
|
|
556
556
|
})
|
|
@@ -558,20 +558,20 @@ const Qt = {
|
|
|
558
558
|
], 2)
|
|
559
559
|
])
|
|
560
560
|
])
|
|
561
|
-
])) :
|
|
561
|
+
])) : S("", !0)
|
|
562
562
|
]),
|
|
563
563
|
_: 1
|
|
564
564
|
})
|
|
565
565
|
])
|
|
566
566
|
]));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), us = /* @__PURE__ */ d("circle", {
|
|
569
569
|
cx: "4",
|
|
570
570
|
cy: "4",
|
|
571
571
|
r: "3"
|
|
572
|
-
}, null, -1),
|
|
573
|
-
|
|
574
|
-
],
|
|
572
|
+
}, null, -1), cs = [
|
|
573
|
+
us
|
|
574
|
+
], qe = /* @__PURE__ */ O({
|
|
575
575
|
__name: "Badge",
|
|
576
576
|
props: {
|
|
577
577
|
size: null,
|
|
@@ -599,12 +599,12 @@ const Qt = {
|
|
|
599
599
|
)) : (u.push("rounded-full"), u.push(
|
|
600
600
|
t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
601
601
|
)), u.join(" ");
|
|
602
|
-
}),
|
|
602
|
+
}), r = c(() => {
|
|
603
603
|
const u = [
|
|
604
604
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
605
605
|
];
|
|
606
606
|
return t.clickableIcon ? u.push("cursor-pointer") : u.push("cursor-default"), u.join(" ");
|
|
607
|
-
}),
|
|
607
|
+
}), i = c(() => [
|
|
608
608
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
609
609
|
o.value
|
|
610
610
|
].join(" ")), m = (u) => {
|
|
@@ -615,35 +615,35 @@ const Qt = {
|
|
|
615
615
|
l("click-icon", u);
|
|
616
616
|
};
|
|
617
617
|
return (u, y) => (a(), p("span", {
|
|
618
|
-
class:
|
|
618
|
+
class: b(f.value)
|
|
619
619
|
}, [
|
|
620
620
|
e.dot ? (a(), p("svg", {
|
|
621
621
|
key: 0,
|
|
622
|
-
class:
|
|
622
|
+
class: b(i.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
}, cs, 2)) : S("", !0),
|
|
626
|
+
R(u.$slots, "default", {}, () => [
|
|
627
|
+
M("Badge")
|
|
628
628
|
]),
|
|
629
629
|
e.iconLeft ? (a(), p("button", {
|
|
630
630
|
key: 1,
|
|
631
|
-
class:
|
|
631
|
+
class: b(r.value),
|
|
632
632
|
onClick: y[0] || (y[0] = (k) => m(k))
|
|
633
633
|
}, [
|
|
634
|
-
(a(),
|
|
635
|
-
class:
|
|
634
|
+
(a(), j(G(e.iconLeft), {
|
|
635
|
+
class: b(["h-4 w-4", o.value])
|
|
636
636
|
}, null, 8, ["class"]))
|
|
637
|
-
], 2)) :
|
|
637
|
+
], 2)) : S("", !0)
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
let
|
|
642
|
-
function
|
|
643
|
-
|
|
641
|
+
let Me = [];
|
|
642
|
+
function ds(e) {
|
|
643
|
+
Me = Me ? e : e.slice();
|
|
644
644
|
}
|
|
645
645
|
var le = /* @__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))(le || {});
|
|
646
|
-
function
|
|
646
|
+
function He(e) {
|
|
647
647
|
const {
|
|
648
648
|
props: {
|
|
649
649
|
modelValue: l,
|
|
@@ -651,51 +651,51 @@ function qe(e) {
|
|
|
651
651
|
orientation: s,
|
|
652
652
|
goVerticalBelow: o,
|
|
653
653
|
nonInteractive: f,
|
|
654
|
-
stepsPadding:
|
|
654
|
+
stepsPadding: r
|
|
655
655
|
},
|
|
656
|
-
emit:
|
|
656
|
+
emit: i
|
|
657
657
|
} = e, m = c(
|
|
658
658
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
659
659
|
), u = c({
|
|
660
|
-
get: () =>
|
|
661
|
-
set: (
|
|
662
|
-
}), y = (
|
|
663
|
-
var
|
|
660
|
+
get: () => Oe((l == null ? void 0 : l.value) || 0, -1, t.value.length),
|
|
661
|
+
set: (x) => i("update:modelValue", Oe(x, 0, t.value.length))
|
|
662
|
+
}), y = (x) => `${x + 1}`, k = (x) => x === u.value, g = (x) => x < u.value, C = (x, $) => {
|
|
663
|
+
var L;
|
|
664
664
|
if (f != null && f.value) {
|
|
665
665
|
$ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
u.value =
|
|
669
|
-
const
|
|
670
|
-
(
|
|
668
|
+
u.value = x;
|
|
669
|
+
const P = t.value[u.value];
|
|
670
|
+
(L = P == null ? void 0 : P.onClick) == null || L.call(P);
|
|
671
671
|
}, h = c(() => {
|
|
672
|
-
const
|
|
673
|
-
let $,
|
|
674
|
-
return (
|
|
672
|
+
const x = ["flex"];
|
|
673
|
+
let $, P;
|
|
674
|
+
return (r == null ? void 0 : r.value) === "xs" ? ($ = "space-x-2", P = "space-y-1") : (r == null ? void 0 : r.value) === "sm" ? ($ = "space-x-4", P = "space-y-1") : ($ = "space-x-8", P = "space-y-4"), x.push("flex"), m.value === "vertical" || o != null && o.value ? (x.push(`flex-col ${P} justify-center`), (o == null ? void 0 : o.value) === le.sm ? x.push(
|
|
675
675
|
`sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
|
|
676
|
-
) : (o == null ? void 0 : o.value) === le.md ?
|
|
676
|
+
) : (o == null ? void 0 : o.value) === le.md ? x.push(
|
|
677
677
|
`md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
|
|
678
|
-
) : (o == null ? void 0 : o.value) === le.lg ?
|
|
678
|
+
) : (o == null ? void 0 : o.value) === le.lg ? x.push(
|
|
679
679
|
`lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
|
|
680
|
-
) : (o == null ? void 0 : o.value) === le.xl &&
|
|
680
|
+
) : (o == null ? void 0 : o.value) === le.xl && x.push(
|
|
681
681
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
|
|
682
|
-
)) :
|
|
683
|
-
}),
|
|
684
|
-
const
|
|
685
|
-
return f != null && f.value ||
|
|
682
|
+
)) : x.push(`flex-row ${$} items-center`), x.join(" ");
|
|
683
|
+
}), _ = c(() => {
|
|
684
|
+
const x = ["flex items-center"];
|
|
685
|
+
return f != null && f.value || x.push("cursor-pointer"), x.join(" ");
|
|
686
686
|
});
|
|
687
687
|
return {
|
|
688
688
|
value: u,
|
|
689
689
|
isCurrentStep: k,
|
|
690
690
|
isFinishedStep: g,
|
|
691
|
-
switchStep:
|
|
691
|
+
switchStep: C,
|
|
692
692
|
getStepDisplayValue: y,
|
|
693
693
|
listClasses: h,
|
|
694
|
-
linkClasses:
|
|
694
|
+
linkClasses: _,
|
|
695
695
|
orientation: m
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
ds([
|
|
699
699
|
"sm:space-x-8",
|
|
700
700
|
"md:space-x-8",
|
|
701
701
|
"lg:space-x-8",
|
|
@@ -709,16 +709,16 @@ cs([
|
|
|
709
709
|
"lg:space-x-4",
|
|
710
710
|
"xl:space-x-4"
|
|
711
711
|
]);
|
|
712
|
-
const
|
|
712
|
+
const fs = ["aria-label"], ps = ["href", "onClick"], hs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ms = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, gs = { class: "flex flex-col" }, vs = {
|
|
713
713
|
key: 0,
|
|
714
714
|
class: "label label--light text-foreground"
|
|
715
|
-
},
|
|
715
|
+
}, bs = ["href", "onClick"], ys = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, xs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, ks = { class: "flex flex-col" }, ws = {
|
|
716
716
|
key: 0,
|
|
717
717
|
class: "label label--light text-foreground"
|
|
718
|
-
},
|
|
718
|
+
}, Cs = ["href", "onClick"], $s = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, Ss = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, Is = { class: "flex flex-col" }, Bs = {
|
|
719
719
|
key: 0,
|
|
720
720
|
class: "label label--light"
|
|
721
|
-
},
|
|
721
|
+
}, An = /* @__PURE__ */ O({
|
|
722
722
|
__name: "Number",
|
|
723
723
|
props: {
|
|
724
724
|
ariaLabel: null,
|
|
@@ -735,10 +735,10 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
|
|
|
735
735
|
isCurrentStep: s,
|
|
736
736
|
isFinishedStep: o,
|
|
737
737
|
switchStep: f,
|
|
738
|
-
getStepDisplayValue:
|
|
739
|
-
listClasses:
|
|
738
|
+
getStepDisplayValue: r,
|
|
739
|
+
listClasses: i,
|
|
740
740
|
linkClasses: m
|
|
741
|
-
} =
|
|
741
|
+
} = He({
|
|
742
742
|
props: Y(t),
|
|
743
743
|
emit: l
|
|
744
744
|
});
|
|
@@ -747,77 +747,77 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
|
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
749
|
d("ol", {
|
|
750
|
-
class:
|
|
750
|
+
class: b(n(i))
|
|
751
751
|
}, [
|
|
752
|
-
(a(!0), p(
|
|
752
|
+
(a(!0), p(F, null, E(e.steps, (k, g) => (a(), p("li", {
|
|
753
753
|
key: k.name
|
|
754
754
|
}, [
|
|
755
755
|
n(o)(g) ? (a(), p("a", {
|
|
756
756
|
key: 0,
|
|
757
757
|
href: k.href,
|
|
758
|
-
class:
|
|
759
|
-
onClick: (
|
|
758
|
+
class: b(n(m)),
|
|
759
|
+
onClick: (C) => n(f)(g, C)
|
|
760
760
|
}, [
|
|
761
|
-
d("div",
|
|
762
|
-
d("div", hs, [
|
|
763
|
-
V(n(yt), { class: "w-5 h-5" })
|
|
764
|
-
]),
|
|
761
|
+
d("div", hs, [
|
|
765
762
|
d("div", ms, [
|
|
766
|
-
|
|
767
|
-
|
|
763
|
+
V(n(xt), { class: "w-5 h-5" })
|
|
764
|
+
]),
|
|
765
|
+
d("div", gs, [
|
|
766
|
+
d("div", null, I(k.name), 1),
|
|
767
|
+
k.description ? (a(), p("div", vs, I(k.description), 1)) : S("", !0)
|
|
768
768
|
])
|
|
769
769
|
])
|
|
770
|
-
], 10,
|
|
770
|
+
], 10, ps)) : n(s)(g) ? (a(), p("a", {
|
|
771
771
|
key: 1,
|
|
772
772
|
href: k.href,
|
|
773
|
-
class:
|
|
773
|
+
class: b(n(m)),
|
|
774
774
|
"aria-current": "step",
|
|
775
|
-
onClick: (
|
|
775
|
+
onClick: (C) => n(f)(g, C)
|
|
776
776
|
}, [
|
|
777
|
-
d("div",
|
|
778
|
-
d("div",
|
|
779
|
-
d("div",
|
|
780
|
-
d("div", null,
|
|
781
|
-
k.description ? (a(), p("div",
|
|
777
|
+
d("div", ys, [
|
|
778
|
+
d("div", xs, I(n(r)(g)), 1),
|
|
779
|
+
d("div", ks, [
|
|
780
|
+
d("div", null, I(k.name), 1),
|
|
781
|
+
k.description ? (a(), p("div", ws, I(k.description), 1)) : S("", !0)
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
|
-
], 10,
|
|
784
|
+
], 10, bs)) : (a(), p("a", {
|
|
785
785
|
key: 2,
|
|
786
786
|
href: k.href,
|
|
787
|
-
class:
|
|
788
|
-
onClick: (
|
|
787
|
+
class: b(n(m)),
|
|
788
|
+
onClick: (C) => n(f)(g, C)
|
|
789
789
|
}, [
|
|
790
|
-
d("div",
|
|
791
|
-
d("div",
|
|
792
|
-
d("div",
|
|
793
|
-
d("div", null,
|
|
794
|
-
k.description ? (a(), p("div",
|
|
790
|
+
d("div", $s, [
|
|
791
|
+
d("div", Ss, I(n(r)(g)), 1),
|
|
792
|
+
d("div", Is, [
|
|
793
|
+
d("div", null, I(k.name), 1),
|
|
794
|
+
k.description ? (a(), p("div", Bs, I(k.description), 1)) : S("", !0)
|
|
795
795
|
])
|
|
796
796
|
])
|
|
797
|
-
], 10,
|
|
797
|
+
], 10, Cs))
|
|
798
798
|
]))), 128))
|
|
799
799
|
], 2)
|
|
800
|
-
], 8,
|
|
800
|
+
], 8, fs));
|
|
801
801
|
}
|
|
802
|
-
}),
|
|
802
|
+
}), Vs = ["aria-label"], Ps = ["href", "onClick"], Ls = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, js = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
805
|
-
},
|
|
805
|
+
}, _s = ["href", "onClick"], Os = {
|
|
806
806
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
807
807
|
"aria-hidden": "true"
|
|
808
|
-
},
|
|
808
|
+
}, As = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
811
|
-
},
|
|
811
|
+
}, Ms = /* @__PURE__ */ d("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), zs = /* @__PURE__ */ d("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Rs = ["href", "onClick"], Ts = {
|
|
812
812
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
813
|
"aria-hidden": "true"
|
|
814
814
|
}, Ds = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
817
|
-
},
|
|
817
|
+
}, Fs = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
820
|
-
},
|
|
820
|
+
}, Mn = /* @__PURE__ */ O({
|
|
821
821
|
__name: "Bullet",
|
|
822
822
|
props: {
|
|
823
823
|
ariaLabel: null,
|
|
@@ -831,7 +831,7 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { 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: f, listClasses:
|
|
834
|
+
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: f, listClasses: r, linkClasses: i } = He({
|
|
835
835
|
props: Y(t),
|
|
836
836
|
emit: l
|
|
837
837
|
}), m = c(() => {
|
|
@@ -847,61 +847,61 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
|
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
849
|
d("ol", {
|
|
850
|
-
class:
|
|
850
|
+
class: b([n(r), u.value])
|
|
851
851
|
}, [
|
|
852
|
-
(a(!0), p(
|
|
852
|
+
(a(!0), p(F, null, E(e.steps, (g, C) => (a(), p("li", {
|
|
853
853
|
key: g.name
|
|
854
854
|
}, [
|
|
855
|
-
n(o)(
|
|
855
|
+
n(o)(C) ? (a(), p("a", {
|
|
856
856
|
key: 0,
|
|
857
857
|
href: g.href,
|
|
858
|
-
class:
|
|
859
|
-
onClick: (h) => n(f)(
|
|
858
|
+
class: b(n(i)),
|
|
859
|
+
onClick: (h) => n(f)(C, h)
|
|
860
860
|
}, [
|
|
861
|
-
d("span",
|
|
862
|
-
e.basic ? (a(), p("span",
|
|
861
|
+
d("span", Ls, [
|
|
862
|
+
e.basic ? (a(), p("span", js)) : (a(), j(n(Ee), {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "h-full w-full text-primary",
|
|
865
865
|
"aria-hidden": "true"
|
|
866
866
|
}))
|
|
867
867
|
]),
|
|
868
868
|
d("span", {
|
|
869
|
-
class:
|
|
870
|
-
},
|
|
871
|
-
], 10,
|
|
869
|
+
class: b(["text-foreground", m.value])
|
|
870
|
+
}, I(g.name), 3)
|
|
871
|
+
], 10, Ps)) : n(s)(C) ? (a(), p("a", {
|
|
872
872
|
key: 1,
|
|
873
873
|
href: g.href,
|
|
874
|
-
class:
|
|
874
|
+
class: b(n(i)),
|
|
875
875
|
"aria-current": "step",
|
|
876
|
-
onClick: (h) => n(f)(
|
|
876
|
+
onClick: (h) => n(f)(C, h)
|
|
877
877
|
}, [
|
|
878
|
-
d("span",
|
|
879
|
-
e.basic ? (a(), p("span",
|
|
880
|
-
|
|
881
|
-
|
|
878
|
+
d("span", Os, [
|
|
879
|
+
e.basic ? (a(), p("span", As)) : (a(), p(F, { key: 1 }, [
|
|
880
|
+
Ms,
|
|
881
|
+
zs
|
|
882
882
|
], 64))
|
|
883
883
|
]),
|
|
884
884
|
d("span", {
|
|
885
|
-
class:
|
|
886
|
-
},
|
|
887
|
-
], 10,
|
|
885
|
+
class: b(["text-primary-focus", m.value])
|
|
886
|
+
}, I(g.name), 3)
|
|
887
|
+
], 10, _s)) : (a(), p("a", {
|
|
888
888
|
key: 2,
|
|
889
889
|
href: g.href,
|
|
890
|
-
class:
|
|
891
|
-
onClick: (h) => n(f)(
|
|
890
|
+
class: b(n(i)),
|
|
891
|
+
onClick: (h) => n(f)(C, h)
|
|
892
892
|
}, [
|
|
893
|
-
d("div",
|
|
894
|
-
e.basic ? (a(), p("span", Ds)) : (a(), p("div",
|
|
893
|
+
d("div", Ts, [
|
|
894
|
+
e.basic ? (a(), p("span", Ds)) : (a(), p("div", Fs))
|
|
895
895
|
]),
|
|
896
896
|
d("p", {
|
|
897
|
-
class:
|
|
898
|
-
},
|
|
899
|
-
], 10,
|
|
897
|
+
class: b(["text-foreground-disabled", m.value])
|
|
898
|
+
}, I(g.name), 3)
|
|
899
|
+
], 10, Rs))
|
|
900
900
|
]))), 128))
|
|
901
901
|
], 2)
|
|
902
|
-
], 8,
|
|
902
|
+
], 8, Vs));
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), Es = ["disabled"], zn = /* @__PURE__ */ O({
|
|
905
905
|
__name: "CardButton",
|
|
906
906
|
props: {
|
|
907
907
|
disabled: { type: Boolean },
|
|
@@ -924,23 +924,23 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
|
|
|
924
924
|
}
|
|
925
925
|
l("update:modelValue", !t.modelValue), l("click", f);
|
|
926
926
|
};
|
|
927
|
-
return (f,
|
|
928
|
-
class:
|
|
927
|
+
return (f, r) => (a(), p("button", {
|
|
928
|
+
class: b(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
931
931
|
}, [
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
R(f.$slots, "default", {}, () => [
|
|
933
|
+
M("Text")
|
|
934
934
|
])
|
|
935
|
-
], 10,
|
|
935
|
+
], 10, Es));
|
|
936
936
|
}
|
|
937
|
-
}),
|
|
937
|
+
}), Us = { class: "relative flex items-start" }, Ws = { class: "flex h-6 items-center" }, qs = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Hs = {
|
|
938
938
|
class: "ml-2 text-sm",
|
|
939
939
|
style: { "padding-top": "2px" }
|
|
940
|
-
},
|
|
940
|
+
}, Gs = ["for"], Ks = {
|
|
941
941
|
key: 0,
|
|
942
942
|
class: "text-danger ml-1"
|
|
943
|
-
},
|
|
943
|
+
}, Xs = ["id"], Rn = /* @__PURE__ */ O({
|
|
944
944
|
inheritAttrs: !1,
|
|
945
945
|
__name: "Checkbox",
|
|
946
946
|
props: {
|
|
@@ -1029,27 +1029,27 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { 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 = (x) => `${x}-${Se()}`, s = c(() => l.value || l.name), {
|
|
1033
1033
|
checked: o,
|
|
1034
1034
|
errorMessage: f,
|
|
1035
|
-
handleChange:
|
|
1036
|
-
value:
|
|
1037
|
-
} =
|
|
1035
|
+
handleChange: r,
|
|
1036
|
+
value: i
|
|
1037
|
+
} = $e(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
1042
|
}), m = c(() => l.label || l.name), u = c(() => f.value ? "border-danger-lighter" : "border-foreground-4 "), y = c(() => l.description || f.value), k = c(() => `${l.name}-description`), g = c(() => {
|
|
1043
|
-
const
|
|
1044
|
-
return l.inlineDescription ?
|
|
1045
|
-
}),
|
|
1046
|
-
l.disabled ||
|
|
1043
|
+
const x = [];
|
|
1044
|
+
return l.inlineDescription ? x.push("inline ml-2") : x.push("block"), f.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
|
|
1045
|
+
}), C = z(t("checkbox")), h = c(() => l.id || C.value), _ = (x) => {
|
|
1046
|
+
l.disabled || r(x);
|
|
1047
1047
|
};
|
|
1048
1048
|
return Z(() => {
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1051
|
-
}), (
|
|
1052
|
-
d("div",
|
|
1049
|
+
const x = l.modelValue, $ = i.value, P = Array.isArray(x) ? x.includes(l.value) : x === l.value, L = Array.isArray($) ? $.includes(l.value) : $ === l.value;
|
|
1050
|
+
P !== L && r(x);
|
|
1051
|
+
}), (x, $) => (a(), p("div", Us, [
|
|
1052
|
+
d("div", Ws, [
|
|
1053
1053
|
d("input", ie({
|
|
1054
1054
|
id: h.value,
|
|
1055
1055
|
checked: n(o),
|
|
@@ -1059,78 +1059,79 @@ const ds = ["aria-label"], fs = ["href", "onClick"], ps = { class: "flex space-x
|
|
|
1059
1059
|
value: s.value,
|
|
1060
1060
|
type: "checkbox",
|
|
1061
1061
|
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", u.value]
|
|
1062
|
-
},
|
|
1062
|
+
}, x.$attrs, { onChange: _ }), null, 16, qs)
|
|
1063
1063
|
]),
|
|
1064
|
-
d("div",
|
|
1064
|
+
d("div", Hs, [
|
|
1065
1065
|
d("label", {
|
|
1066
1066
|
for: h.value,
|
|
1067
|
-
class:
|
|
1067
|
+
class: b(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1068
1068
|
}, [
|
|
1069
|
-
d("span", null,
|
|
1070
|
-
e.showRequired ? (a(), p("span",
|
|
1071
|
-
], 10,
|
|
1069
|
+
d("span", null, I(m.value), 1),
|
|
1070
|
+
e.showRequired ? (a(), p("span", Ks, "*")) : S("", !0)
|
|
1071
|
+
], 10, Gs),
|
|
1072
1072
|
y.value ? (a(), p("p", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
id: k.value,
|
|
1075
|
-
class:
|
|
1076
|
-
},
|
|
1075
|
+
class: b(g.value)
|
|
1076
|
+
}, I(y.value), 11, Xs)) : S("", !0)
|
|
1077
1077
|
])
|
|
1078
1078
|
]));
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
|
-
function
|
|
1082
|
-
const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: f } =
|
|
1081
|
+
function Ge(e) {
|
|
1082
|
+
const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: f } = $e(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
|
-
}), i = c(() => {
|
|
1087
|
-
const S = ["block label text-foreground-2 mb-2"];
|
|
1088
|
-
return n(l.showLabel) || S.push("sr-only"), S.join(" ");
|
|
1089
1086
|
}), r = c(() => {
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1087
|
+
const L = ["block label text-foreground-2 mb-2"];
|
|
1088
|
+
return n(l.showLabel) || L.push("sr-only"), L.join(" ");
|
|
1089
|
+
}), i = c(() => [
|
|
1090
|
+
"focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
|
|
1091
|
+
"disabled:text-disabled-muted placeholder:text-foreground-2",
|
|
1092
|
+
"rounded"
|
|
1093
|
+
].join(" ")), m = c(() => {
|
|
1094
|
+
const L = [
|
|
1095
|
+
"block w-full text-foreground transition-all",
|
|
1096
|
+
i.value
|
|
1094
1097
|
];
|
|
1095
|
-
return f.value ?
|
|
1096
|
-
"border-
|
|
1097
|
-
) :
|
|
1098
|
-
}),
|
|
1099
|
-
const
|
|
1100
|
-
return !
|
|
1101
|
-
}),
|
|
1102
|
-
() =>
|
|
1103
|
-
),
|
|
1104
|
-
() =>
|
|
1105
|
-
),
|
|
1106
|
-
const
|
|
1107
|
-
return
|
|
1108
|
-
}),
|
|
1109
|
-
var
|
|
1110
|
-
(
|
|
1111
|
-
},
|
|
1112
|
-
o.value = "", s("change", { value:
|
|
1098
|
+
return f.value ? L.push(
|
|
1099
|
+
"focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
|
|
1100
|
+
) : L.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? L.push("bg-foundation shadow-sm hover:shadow") : L.push("bg-foundation-page"), L.join(" ");
|
|
1101
|
+
}), u = z(Se()), y = c(() => n(l.label) || n(l.name)), k = c(() => {
|
|
1102
|
+
const L = f.value;
|
|
1103
|
+
return !L || !n(l.useLabelInErrors) ? L : L.replace("Value", y.value);
|
|
1104
|
+
}), g = c(
|
|
1105
|
+
() => k.value && n(l.hideErrorMessage)
|
|
1106
|
+
), C = c(() => k.value || n(l.help)), h = c(() => !!C.value), _ = c(
|
|
1107
|
+
() => h.value ? `${n(l.name)}-${u.value}` : void 0
|
|
1108
|
+
), x = c(() => {
|
|
1109
|
+
const L = ["mt-2 text-sm"];
|
|
1110
|
+
return L.push(f.value ? "text-danger" : "text-foreground-2"), L.join(" ");
|
|
1111
|
+
}), $ = () => {
|
|
1112
|
+
var L;
|
|
1113
|
+
(L = t.value) == null || L.focus();
|
|
1114
|
+
}, P = () => {
|
|
1115
|
+
o.value = U(o.value) ? [] : "", s("change", { value: o.value }), s("clear");
|
|
1113
1116
|
};
|
|
1114
1117
|
return Z(() => {
|
|
1115
|
-
n(l.autoFocus) &&
|
|
1118
|
+
n(l.autoFocus) && $();
|
|
1116
1119
|
}), {
|
|
1117
|
-
|
|
1118
|
-
|
|
1120
|
+
coreInputClasses: i,
|
|
1121
|
+
coreClasses: m,
|
|
1122
|
+
title: y,
|
|
1119
1123
|
value: o,
|
|
1120
|
-
helpTipId:
|
|
1121
|
-
helpTipClasses:
|
|
1122
|
-
helpTip:
|
|
1123
|
-
hideHelpTip:
|
|
1124
|
-
errorMessage:
|
|
1125
|
-
clear:
|
|
1126
|
-
focus:
|
|
1127
|
-
labelClasses:
|
|
1124
|
+
helpTipId: _,
|
|
1125
|
+
helpTipClasses: x,
|
|
1126
|
+
helpTip: C,
|
|
1127
|
+
hideHelpTip: g,
|
|
1128
|
+
errorMessage: k,
|
|
1129
|
+
clear: P,
|
|
1130
|
+
focus: $,
|
|
1131
|
+
labelClasses: r
|
|
1128
1132
|
};
|
|
1129
1133
|
}
|
|
1130
|
-
const
|
|
1131
|
-
key: 2,
|
|
1132
|
-
class: "pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start pr-2 text-danger opacity-50"
|
|
1133
|
-
}, Zs = ["id"], Tn = /* @__PURE__ */ j({
|
|
1134
|
+
const Ns = ["for"], Js = { class: "relative" }, Qs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ys = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), Zs = ["id"], Tn = /* @__PURE__ */ O({
|
|
1134
1135
|
__name: "TextArea",
|
|
1135
1136
|
props: {
|
|
1136
1137
|
name: null,
|
|
@@ -1153,44 +1154,44 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
|
|
|
1153
1154
|
},
|
|
1154
1155
|
emits: ["update:modelValue", "change", "input", "clear"],
|
|
1155
1156
|
setup(e, { expose: l, emit: t }) {
|
|
1156
|
-
const s = e, o =
|
|
1157
|
+
const s = e, o = z(null), {
|
|
1157
1158
|
coreClasses: f,
|
|
1158
|
-
title:
|
|
1159
|
-
value:
|
|
1159
|
+
title: r,
|
|
1160
|
+
value: i,
|
|
1160
1161
|
helpTipId: m,
|
|
1161
1162
|
helpTipClasses: u,
|
|
1162
1163
|
helpTip: y,
|
|
1163
1164
|
errorMessage: k,
|
|
1164
1165
|
labelClasses: g,
|
|
1165
|
-
clear:
|
|
1166
|
+
clear: C,
|
|
1166
1167
|
focus: h
|
|
1167
|
-
} =
|
|
1168
|
+
} = Ge({
|
|
1168
1169
|
props: Y(s),
|
|
1169
1170
|
emit: t,
|
|
1170
1171
|
inputEl: o
|
|
1171
|
-
}),
|
|
1172
|
-
const
|
|
1173
|
-
return s.showClear && k.value ?
|
|
1172
|
+
}), _ = c(() => {
|
|
1173
|
+
const x = ["pl-2"];
|
|
1174
|
+
return s.showClear && k.value ? x.push("pr-12") : (s.showClear || k.value) && x.push("pr-8"), x.join(" ");
|
|
1174
1175
|
});
|
|
1175
|
-
return l({ focus: h }), (
|
|
1176
|
-
class:
|
|
1176
|
+
return l({ focus: h }), (x, $) => (a(), p("div", {
|
|
1177
|
+
class: b([e.fullWidth ? "w-full" : ""])
|
|
1177
1178
|
}, [
|
|
1178
1179
|
d("label", {
|
|
1179
1180
|
for: e.name,
|
|
1180
|
-
class:
|
|
1181
|
+
class: b(n(g))
|
|
1181
1182
|
}, [
|
|
1182
|
-
d("span", null,
|
|
1183
|
-
], 10,
|
|
1184
|
-
d("div",
|
|
1183
|
+
d("span", null, I(n(r)), 1)
|
|
1184
|
+
], 10, Ns),
|
|
1185
|
+
d("div", Js, [
|
|
1185
1186
|
ae(d("textarea", ie({
|
|
1186
1187
|
id: e.name,
|
|
1187
1188
|
ref_key: "inputElement",
|
|
1188
1189
|
ref: o,
|
|
1189
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
1190
|
+
"onUpdate:modelValue": $[0] || ($[0] = (P) => fe(i) ? i.value = P : null),
|
|
1190
1191
|
name: e.name,
|
|
1191
1192
|
class: [
|
|
1192
1193
|
n(f),
|
|
1193
|
-
|
|
1194
|
+
_.value,
|
|
1194
1195
|
e.textareaClasses || "",
|
|
1195
1196
|
"min-h-[4rem] simple-scrollbar"
|
|
1196
1197
|
],
|
|
@@ -1198,55 +1199,55 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
|
|
|
1198
1199
|
disabled: e.disabled,
|
|
1199
1200
|
"aria-invalid": n(k) ? "true" : "false",
|
|
1200
1201
|
"aria-describedby": n(m)
|
|
1201
|
-
},
|
|
1202
|
-
onChange: $[1] || ($[1] = (
|
|
1203
|
-
onInput: $[2] || ($[2] = (
|
|
1204
|
-
}), null, 16,
|
|
1205
|
-
[
|
|
1202
|
+
}, x.$attrs, {
|
|
1203
|
+
onChange: $[1] || ($[1] = (P) => x.$emit("change", { event: P, value: n(i) })),
|
|
1204
|
+
onInput: $[2] || ($[2] = (P) => x.$emit("input", { event: P, value: n(i) }))
|
|
1205
|
+
}), null, 16, Qs), [
|
|
1206
|
+
[ze, n(i)]
|
|
1206
1207
|
]),
|
|
1207
1208
|
e.showClear ? (a(), p("a", {
|
|
1208
1209
|
key: 0,
|
|
1209
1210
|
title: "Clear input",
|
|
1210
1211
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1211
1212
|
onClick: $[3] || ($[3] = //@ts-ignore
|
|
1212
|
-
(...
|
|
1213
|
+
(...P) => n(C) && n(C)(...P)),
|
|
1213
1214
|
onKeydown: $[4] || ($[4] = //@ts-ignore
|
|
1214
|
-
(...
|
|
1215
|
+
(...P) => n(C) && n(C)(...P))
|
|
1215
1216
|
}, [
|
|
1216
|
-
|
|
1217
|
-
V(n(
|
|
1217
|
+
Ys,
|
|
1218
|
+
V(n(pe), {
|
|
1218
1219
|
class: "h-5 w-5 text-foreground",
|
|
1219
1220
|
"aria-hidden": "true"
|
|
1220
1221
|
})
|
|
1221
|
-
], 32)) :
|
|
1222
|
+
], 32)) : S("", !0),
|
|
1222
1223
|
n(k) ? (a(), p("div", {
|
|
1223
1224
|
key: 1,
|
|
1224
|
-
class:
|
|
1225
|
+
class: b([
|
|
1225
1226
|
"pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
|
|
1226
1227
|
e.showClear ? "pr-8" : "pr-2"
|
|
1227
1228
|
])
|
|
1228
1229
|
}, [
|
|
1229
|
-
V(n(
|
|
1230
|
+
V(n(Ce), {
|
|
1230
1231
|
class: "h-4 w-4 text-danger",
|
|
1231
1232
|
"aria-hidden": "true"
|
|
1232
1233
|
})
|
|
1233
|
-
], 2)) :
|
|
1234
|
-
e.showRequired && !n(k) ? (a(), p("div",
|
|
1234
|
+
], 2)) : S("", !0),
|
|
1235
|
+
e.showRequired && !n(k) ? (a(), p("div", {
|
|
1236
|
+
key: 2,
|
|
1237
|
+
class: b(["pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1238
|
+
}, " * ", 2)) : S("", !0)
|
|
1235
1239
|
]),
|
|
1236
1240
|
n(m) ? (a(), p("p", {
|
|
1237
1241
|
key: 0,
|
|
1238
1242
|
id: n(m),
|
|
1239
|
-
class:
|
|
1240
|
-
},
|
|
1243
|
+
class: b(n(u))
|
|
1244
|
+
}, I(n(y)), 11, Zs)) : S("", !0)
|
|
1241
1245
|
], 2));
|
|
1242
1246
|
}
|
|
1243
1247
|
}), el = ["for"], tl = { class: "relative" }, sl = {
|
|
1244
1248
|
key: 0,
|
|
1245
1249
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1246
|
-
}, ll = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], nl = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), al = {
|
|
1247
|
-
key: 2,
|
|
1248
|
-
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1249
|
-
}, ol = ["id"], Fn = /* @__PURE__ */ j({
|
|
1250
|
+
}, ll = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], nl = /* @__PURE__ */ d("span", { class: "text-xs sr-only" }, "Clear input", -1), al = ["id"], Dn = /* @__PURE__ */ O({
|
|
1250
1251
|
inheritAttrs: !1,
|
|
1251
1252
|
__name: "TextInput",
|
|
1252
1253
|
props: {
|
|
@@ -1383,30 +1384,30 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
|
|
|
1383
1384
|
},
|
|
1384
1385
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1385
1386
|
setup(e, { expose: l, emit: t }) {
|
|
1386
|
-
const s = e, o =
|
|
1387
|
-
coreClasses:
|
|
1388
|
-
title:
|
|
1387
|
+
const s = e, o = ke(), f = z(null), {
|
|
1388
|
+
coreClasses: r,
|
|
1389
|
+
title: i,
|
|
1389
1390
|
value: m,
|
|
1390
1391
|
helpTipId: u,
|
|
1391
1392
|
helpTipClasses: y,
|
|
1392
1393
|
helpTip: k,
|
|
1393
1394
|
hideHelpTip: g,
|
|
1394
|
-
errorMessage:
|
|
1395
|
+
errorMessage: C,
|
|
1395
1396
|
clear: h,
|
|
1396
|
-
focus:
|
|
1397
|
-
labelClasses:
|
|
1398
|
-
} =
|
|
1397
|
+
focus: _,
|
|
1398
|
+
labelClasses: x
|
|
1399
|
+
} = Ge({
|
|
1399
1400
|
props: Y(s),
|
|
1400
1401
|
emit: t,
|
|
1401
1402
|
inputEl: f
|
|
1402
1403
|
}), $ = c(() => {
|
|
1403
1404
|
const D = ["h-5 w-5"];
|
|
1404
|
-
return
|
|
1405
|
-
}),
|
|
1405
|
+
return C.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
|
|
1406
|
+
}), P = c(
|
|
1406
1407
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1407
|
-
),
|
|
1408
|
+
), L = c(() => {
|
|
1408
1409
|
const D = [];
|
|
1409
|
-
return
|
|
1410
|
+
return P.value ? D.push("pl-8") : D.push("pl-2"), o["input-right"] || (C.value || s.showClear) && (C.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
|
|
1410
1411
|
}), v = c(() => {
|
|
1411
1412
|
switch (s.size) {
|
|
1412
1413
|
case "sm":
|
|
@@ -1420,139 +1421,142 @@ const Xs = ["for"], Ns = { class: "relative" }, Js = ["id", "name", "placeholder
|
|
|
1420
1421
|
return "h-8";
|
|
1421
1422
|
}
|
|
1422
1423
|
});
|
|
1423
|
-
return l({ focus:
|
|
1424
|
-
class:
|
|
1424
|
+
return l({ focus: _ }), (D, W) => (a(), p("div", {
|
|
1425
|
+
class: b([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1425
1426
|
}, [
|
|
1426
1427
|
d("label", {
|
|
1427
1428
|
for: e.name,
|
|
1428
|
-
class:
|
|
1429
|
+
class: b(n(x))
|
|
1429
1430
|
}, [
|
|
1430
|
-
d("span", null,
|
|
1431
|
+
d("span", null, I(n(i)), 1)
|
|
1431
1432
|
], 10, el),
|
|
1432
1433
|
d("div", tl, [
|
|
1433
|
-
|
|
1434
|
-
e.customIcon ? (a(),
|
|
1434
|
+
P.value ? (a(), p("div", sl, [
|
|
1435
|
+
e.customIcon ? (a(), j(G(e.customIcon), {
|
|
1435
1436
|
key: 0,
|
|
1436
|
-
class:
|
|
1437
|
+
class: b($.value),
|
|
1437
1438
|
"aria-hidden": "true"
|
|
1438
|
-
}, null, 8, ["class"])) : e.type === "email" ? (a(),
|
|
1439
|
+
}, null, 8, ["class"])) : e.type === "email" ? (a(), j(n(kt), {
|
|
1439
1440
|
key: 1,
|
|
1440
|
-
class:
|
|
1441
|
+
class: b($.value),
|
|
1441
1442
|
"aria-hidden": "true"
|
|
1442
|
-
}, null, 8, ["class"])) : e.type === "password" ? (a(),
|
|
1443
|
+
}, null, 8, ["class"])) : e.type === "password" ? (a(), j(n(wt), {
|
|
1443
1444
|
key: 2,
|
|
1444
|
-
class:
|
|
1445
|
+
class: b($.value),
|
|
1445
1446
|
"aria-hidden": "true"
|
|
1446
|
-
}, null, 8, ["class"])) :
|
|
1447
|
-
])) :
|
|
1447
|
+
}, null, 8, ["class"])) : S("", !0)
|
|
1448
|
+
])) : S("", !0),
|
|
1448
1449
|
ae(d("input", ie({
|
|
1449
1450
|
id: e.name,
|
|
1450
1451
|
ref_key: "inputElement",
|
|
1451
1452
|
ref: f,
|
|
1452
|
-
"onUpdate:modelValue": W[0] || (W[0] = (
|
|
1453
|
+
"onUpdate:modelValue": W[0] || (W[0] = (H) => fe(m) ? m.value = H : null),
|
|
1453
1454
|
type: e.type,
|
|
1454
1455
|
name: e.name,
|
|
1455
|
-
class: [n(
|
|
1456
|
+
class: [n(r), L.value, v.value, e.inputClasses || ""],
|
|
1456
1457
|
placeholder: e.placeholder,
|
|
1457
1458
|
disabled: e.disabled,
|
|
1458
|
-
"aria-invalid": n(
|
|
1459
|
+
"aria-invalid": n(C) ? "true" : "false",
|
|
1459
1460
|
"aria-describedby": n(u),
|
|
1460
1461
|
role: "textbox"
|
|
1461
1462
|
}, D.$attrs, {
|
|
1462
|
-
onChange: W[1] || (W[1] = (
|
|
1463
|
-
onInput: W[2] || (W[2] = (
|
|
1463
|
+
onChange: W[1] || (W[1] = (H) => D.$emit("change", { event: H, value: n(m) })),
|
|
1464
|
+
onInput: W[2] || (W[2] = (H) => D.$emit("input", { event: H, value: n(m) }))
|
|
1464
1465
|
}), null, 16, ll), [
|
|
1465
|
-
[
|
|
1466
|
+
[tt, n(m)]
|
|
1466
1467
|
]),
|
|
1467
|
-
|
|
1468
|
+
R(D.$slots, "input-right", {}, () => [
|
|
1468
1469
|
e.showClear ? (a(), p("a", {
|
|
1469
1470
|
key: 0,
|
|
1470
1471
|
title: "Clear input",
|
|
1471
1472
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1472
1473
|
onClick: W[3] || (W[3] = //@ts-ignore
|
|
1473
|
-
(...
|
|
1474
|
+
(...H) => n(h) && n(h)(...H)),
|
|
1474
1475
|
onKeydown: W[4] || (W[4] = //@ts-ignore
|
|
1475
|
-
(...
|
|
1476
|
+
(...H) => n(h) && n(h)(...H))
|
|
1476
1477
|
}, [
|
|
1477
1478
|
nl,
|
|
1478
|
-
V(n(
|
|
1479
|
+
V(n(pe), {
|
|
1479
1480
|
class: "h-5 w-5 text-foreground",
|
|
1480
1481
|
"aria-hidden": "true"
|
|
1481
1482
|
})
|
|
1482
|
-
], 32)) :
|
|
1483
|
-
n(
|
|
1483
|
+
], 32)) : S("", !0),
|
|
1484
|
+
n(C) ? (a(), p("div", {
|
|
1484
1485
|
key: 1,
|
|
1485
|
-
class:
|
|
1486
|
+
class: b([
|
|
1486
1487
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1487
1488
|
e.showClear ? "pr-8" : "pr-2"
|
|
1488
1489
|
])
|
|
1489
1490
|
}, [
|
|
1490
|
-
V(n(
|
|
1491
|
+
V(n(Ce), {
|
|
1491
1492
|
class: "h-4 w-4 text-danger",
|
|
1492
1493
|
"aria-hidden": "true"
|
|
1493
1494
|
})
|
|
1494
|
-
], 2)) :
|
|
1495
|
-
e.showRequired && !n(
|
|
1495
|
+
], 2)) : S("", !0),
|
|
1496
|
+
e.showRequired && !n(C) ? (a(), p("div", {
|
|
1497
|
+
key: 2,
|
|
1498
|
+
class: b(["pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1499
|
+
}, " * ", 2)) : S("", !0)
|
|
1496
1500
|
])
|
|
1497
1501
|
]),
|
|
1498
1502
|
n(u) && !n(g) ? (a(), p("p", {
|
|
1499
1503
|
key: 0,
|
|
1500
1504
|
id: n(u),
|
|
1501
|
-
class:
|
|
1502
|
-
},
|
|
1505
|
+
class: b(n(y))
|
|
1506
|
+
}, I(n(k)), 11, al)) : S("", !0)
|
|
1503
1507
|
], 2));
|
|
1504
1508
|
}
|
|
1505
|
-
}),
|
|
1509
|
+
}), Ke = /^https?:\/\//, Be = /^[\w-_.+]+@[\w-_.+]+$/, ol = (e) => (e || "").match(Be) ? !0 : "Value should be a valid e-mail address", rl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Be)) || "Value should be one or multiple comma-delimited e-mail addresses", il = (e) => (de(e) && (e = e.trim()), e ? !0 : "Value is required"), ul = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, cl = (e) => (l) => {
|
|
1506
1510
|
const { minLength: t, maxLength: s } = e;
|
|
1507
|
-
return l =
|
|
1508
|
-
},
|
|
1511
|
+
return l = St(l) ? "" : l, de(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";
|
|
1512
|
+
}, dl = (e) => (l) => {
|
|
1509
1513
|
const { match: t, message: s } = e;
|
|
1510
|
-
return
|
|
1511
|
-
},
|
|
1514
|
+
return de(l) ? t ? de(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
|
|
1515
|
+
}, fl = (e) => Ke.test(e) ? !0 : "Value is not a valid URL", pl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1512
1516
|
__proto__: null,
|
|
1513
|
-
VALID_EMAIL:
|
|
1514
|
-
VALID_HTTP_URL:
|
|
1515
|
-
isEmail:
|
|
1516
|
-
isItemSelected:
|
|
1517
|
-
isOneOrMultipleEmails:
|
|
1518
|
-
isRequired:
|
|
1519
|
-
isSameAs:
|
|
1520
|
-
isStringOfLength:
|
|
1521
|
-
isUrl:
|
|
1522
|
-
stringContains:
|
|
1517
|
+
VALID_EMAIL: Be,
|
|
1518
|
+
VALID_HTTP_URL: Ke,
|
|
1519
|
+
isEmail: ol,
|
|
1520
|
+
isItemSelected: pl,
|
|
1521
|
+
isOneOrMultipleEmails: rl,
|
|
1522
|
+
isRequired: il,
|
|
1523
|
+
isSameAs: ul,
|
|
1524
|
+
isStringOfLength: cl,
|
|
1525
|
+
isUrl: fl,
|
|
1526
|
+
stringContains: dl
|
|
1523
1527
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1524
|
-
function
|
|
1528
|
+
function hl(e) {
|
|
1525
1529
|
const {
|
|
1526
1530
|
skipCalculation: l,
|
|
1527
1531
|
elementToWatchForChanges: t,
|
|
1528
1532
|
itemContainer: s,
|
|
1529
1533
|
trackResize: o = !1,
|
|
1530
1534
|
trackMutations: f = !0
|
|
1531
|
-
} = e || {},
|
|
1535
|
+
} = e || {}, r = z(0), i = () => {
|
|
1532
1536
|
const m = s.value;
|
|
1533
1537
|
if (l != null && l.value || !m)
|
|
1534
1538
|
return;
|
|
1535
1539
|
const u = m.children;
|
|
1536
1540
|
let y = 0, k = 0, g;
|
|
1537
|
-
for (const
|
|
1538
|
-
const h =
|
|
1541
|
+
for (const C of u) {
|
|
1542
|
+
const h = C.offsetTop;
|
|
1539
1543
|
Q(g) ? (g = h, y += 1) : h === g && (y += 1), k += 1;
|
|
1540
1544
|
}
|
|
1541
|
-
|
|
1545
|
+
r.value = k - y;
|
|
1542
1546
|
};
|
|
1543
|
-
return o &&
|
|
1547
|
+
return o && Vt(t, i), f && Pt(t, i, {
|
|
1544
1548
|
childList: !0,
|
|
1545
1549
|
subtree: !0
|
|
1546
1550
|
}), {
|
|
1547
|
-
hiddenItemCount:
|
|
1551
|
+
hiddenItemCount: r
|
|
1548
1552
|
};
|
|
1549
1553
|
}
|
|
1550
|
-
function
|
|
1554
|
+
function Xe(e) {
|
|
1551
1555
|
const { props: l, emit: t, dynamicVisibility: s } = e;
|
|
1552
1556
|
let o;
|
|
1553
1557
|
if (s) {
|
|
1554
1558
|
const { elementToWatchForChanges: u, itemContainer: y } = s;
|
|
1555
|
-
o =
|
|
1559
|
+
o = hl({
|
|
1556
1560
|
skipCalculation: c(() => {
|
|
1557
1561
|
var g;
|
|
1558
1562
|
return !((g = l.multiple) != null && g.value);
|
|
@@ -1561,61 +1565,61 @@ function Ke(e) {
|
|
|
1561
1565
|
itemContainer: y
|
|
1562
1566
|
}).hiddenItemCount;
|
|
1563
1567
|
} else
|
|
1564
|
-
o =
|
|
1568
|
+
o = z(0);
|
|
1565
1569
|
const f = c({
|
|
1566
1570
|
get: () => {
|
|
1567
1571
|
var y, k;
|
|
1568
1572
|
const u = (y = l.modelValue) == null ? void 0 : y.value;
|
|
1569
|
-
return (k = l.multiple) != null && k.value ?
|
|
1573
|
+
return (k = l.multiple) != null && k.value ? U(u) ? u : [] : U(u) ? void 0 : u;
|
|
1570
1574
|
},
|
|
1571
1575
|
set: (u) => {
|
|
1572
1576
|
var y, k, g;
|
|
1573
|
-
if ((y = l.multiple) != null && y.value && !
|
|
1577
|
+
if ((y = l.multiple) != null && y.value && !U(u)) {
|
|
1574
1578
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1575
1579
|
return;
|
|
1576
|
-
} else if (!((k = l.multiple) != null && k.value) &&
|
|
1580
|
+
} else if (!((k = l.multiple) != null && k.value) && U(u)) {
|
|
1577
1581
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1578
1582
|
return;
|
|
1579
1583
|
}
|
|
1580
1584
|
t("update:modelValue", (g = l.multiple) != null && g.value ? u || [] : u);
|
|
1581
1585
|
}
|
|
1582
|
-
}),
|
|
1586
|
+
}), r = (u) => U(u);
|
|
1583
1587
|
return {
|
|
1584
1588
|
selectedValue: f,
|
|
1585
1589
|
hiddenSelectedItemCount: o,
|
|
1586
|
-
isArrayValue:
|
|
1587
|
-
isMultiItemArrayValue: (u) =>
|
|
1588
|
-
firstItem: (u) =>
|
|
1590
|
+
isArrayValue: r,
|
|
1591
|
+
isMultiItemArrayValue: (u) => U(u) && u.length > 1,
|
|
1592
|
+
firstItem: (u) => r(u) ? u[0] : u
|
|
1589
1593
|
};
|
|
1590
1594
|
}
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1593
|
-
],
|
|
1595
|
+
const ml = (e) => (st("data-v-60cf597b"), e = e(), lt(), e), gl = /* @__PURE__ */ ml(() => /* @__PURE__ */ d("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), vl = [
|
|
1596
|
+
gl
|
|
1597
|
+
], bl = /* @__PURE__ */ O({
|
|
1594
1598
|
__name: "Bar",
|
|
1595
1599
|
props: {
|
|
1596
1600
|
loading: { type: Boolean }
|
|
1597
1601
|
},
|
|
1598
1602
|
setup(e) {
|
|
1599
1603
|
return (l, t) => (a(), p("div", {
|
|
1600
|
-
class:
|
|
1604
|
+
class: b([
|
|
1601
1605
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1602
1606
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1603
1607
|
])
|
|
1604
|
-
},
|
|
1608
|
+
}, vl, 2));
|
|
1605
1609
|
}
|
|
1606
1610
|
});
|
|
1607
|
-
const
|
|
1611
|
+
const Ne = /* @__PURE__ */ We(bl, [["__scopeId", "data-v-60cf597b"]]), yl = { class: "flex items-center justify-between w-full" }, xl = { class: "block truncate grow text-left" }, kl = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, wl = {
|
|
1608
1612
|
key: 1,
|
|
1609
1613
|
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
1610
|
-
},
|
|
1614
|
+
}, Cl = ["disabled"], $l = {
|
|
1611
1615
|
key: 0,
|
|
1612
1616
|
class: "flex flex-col mx-1 mb-1"
|
|
1613
|
-
},
|
|
1617
|
+
}, Sl = /* @__PURE__ */ d("span", { class: "sr-only label text-foreground" }, "Search", -1), Il = { class: "relative" }, Bl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Vl = ["placeholder"], Pl = {
|
|
1614
1618
|
key: 0,
|
|
1615
1619
|
class: "px-1"
|
|
1616
|
-
},
|
|
1617
|
-
class: /* @__PURE__ */
|
|
1618
|
-
},
|
|
1620
|
+
}, Ll = { key: 1 }, jl = /* @__PURE__ */ d("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), _l = {
|
|
1621
|
+
class: /* @__PURE__ */ b(["block truncate"])
|
|
1622
|
+
}, Ol = ["id"], Je = /* @__PURE__ */ O({
|
|
1619
1623
|
__name: "Base",
|
|
1620
1624
|
props: {
|
|
1621
1625
|
multiple: {
|
|
@@ -1777,157 +1781,157 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
1777
1781
|
},
|
|
1778
1782
|
emits: ["update:modelValue"],
|
|
1779
1783
|
setup(e, { expose: l, emit: t }) {
|
|
1780
|
-
const s = e, { value:
|
|
1784
|
+
const s = e, o = (w) => ge(w), { value: f, errorMessage: r } = $e(s.name, s.rules, {
|
|
1781
1785
|
validateOnMount: s.validateOnMount,
|
|
1782
1786
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1783
1787
|
initialValue: s.modelValue
|
|
1784
|
-
}), i =
|
|
1785
|
-
const
|
|
1786
|
-
return !
|
|
1787
|
-
}),
|
|
1788
|
-
() =>
|
|
1789
|
-
),
|
|
1790
|
-
() =>
|
|
1791
|
-
),
|
|
1788
|
+
}), i = z(null), m = z(""), u = z([]), y = z(!1), k = z(1), g = z(Se()), C = c(() => n(s.label) || n(s.name)), h = c(() => {
|
|
1789
|
+
const w = r.value;
|
|
1790
|
+
return !w || !n(s.useLabelInErrors) ? w : w.replace("Value", C.value);
|
|
1791
|
+
}), _ = c(() => h.value || n(s.help)), x = c(() => !!_.value), $ = c(
|
|
1792
|
+
() => x.value ? `${n(s.name)}-${g.value}` : void 0
|
|
1793
|
+
), P = c(
|
|
1794
|
+
() => r.value ? "text-danger" : "text-foreground-2"
|
|
1795
|
+
), L = c(
|
|
1792
1796
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1793
|
-
),
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1796
|
-
}), v = c(() => {
|
|
1797
|
-
const C = [];
|
|
1798
|
-
return s.buttonStyle !== "simple" && C.push(
|
|
1799
|
-
te.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1800
|
-
), te.value && C.push("cursor-not-allowed"), C.join(" ");
|
|
1797
|
+
), v = c(() => {
|
|
1798
|
+
const w = ["relative flex group"];
|
|
1799
|
+
return r.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(" ");
|
|
1801
1800
|
}), D = c(() => {
|
|
1802
|
-
const
|
|
1801
|
+
const w = [];
|
|
1802
|
+
return s.buttonStyle !== "simple" && w.push(
|
|
1803
|
+
te.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1804
|
+
), te.value && w.push("cursor-not-allowed"), w.join(" ");
|
|
1805
|
+
}), W = c(() => {
|
|
1806
|
+
const w = [
|
|
1803
1807
|
"relative z-[1]",
|
|
1804
1808
|
"flex items-center justify-center text-center shrink-0",
|
|
1805
1809
|
"rounded-r-md overflow-hidden transition-all",
|
|
1806
1810
|
"text-foreground",
|
|
1807
|
-
|
|
1811
|
+
Ve.value ? `w-6 ${D.value}` : "w-0"
|
|
1808
1812
|
];
|
|
1809
|
-
return te.value || (
|
|
1813
|
+
return te.value || (w.push(
|
|
1810
1814
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
1811
|
-
), s.buttonStyle === "tinted" ?
|
|
1812
|
-
}),
|
|
1813
|
-
const
|
|
1815
|
+
), s.buttonStyle === "tinted" ? w.push("bg-outline-3") : w.push("bg-primary-muted")), w.join(" ");
|
|
1816
|
+
}), H = c(() => {
|
|
1817
|
+
const w = [
|
|
1814
1818
|
"relative z-[2]",
|
|
1815
1819
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1816
1820
|
"flex items-center",
|
|
1817
|
-
|
|
1821
|
+
D.value
|
|
1818
1822
|
];
|
|
1819
|
-
return s.buttonStyle !== "simple" && (
|
|
1820
|
-
}),
|
|
1823
|
+
return s.buttonStyle !== "simple" && (w.push("py-2 px-3"), te.value || (s.buttonStyle === "tinted" ? w.push("bg-foundation-page text-foreground") : w.push("bg-foundation text-foreground"))), L.value && Ve.value && w.push("rounded-r-none"), w.join(" ");
|
|
1824
|
+
}), ce = c(
|
|
1821
1825
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1822
|
-
), X = c(() =>
|
|
1826
|
+
), X = c(() => ce.value && s.getSearchResults), te = c(
|
|
1823
1827
|
() => s.disabled || !s.items.length && !X.value
|
|
1824
1828
|
), q = c({
|
|
1825
1829
|
get: () => {
|
|
1826
|
-
const
|
|
1827
|
-
return s.multiple ?
|
|
1830
|
+
const w = f.value;
|
|
1831
|
+
return s.multiple ? U(w) ? w : [] : U(w) ? void 0 : w;
|
|
1828
1832
|
},
|
|
1829
|
-
set: (
|
|
1830
|
-
if (s.multiple && !
|
|
1833
|
+
set: (w) => {
|
|
1834
|
+
if (s.multiple && !U(w)) {
|
|
1831
1835
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1832
1836
|
return;
|
|
1833
|
-
} else if (!s.multiple &&
|
|
1837
|
+
} else if (!s.multiple && U(w)) {
|
|
1834
1838
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1835
1839
|
return;
|
|
1836
1840
|
}
|
|
1837
|
-
let
|
|
1841
|
+
let T;
|
|
1838
1842
|
if (s.multiple)
|
|
1839
|
-
|
|
1843
|
+
T = w || [];
|
|
1840
1844
|
else {
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1845
|
+
const A = f.value;
|
|
1846
|
+
T = s.allowUnset && A && w && he(A) === he(w) ? void 0 : w;
|
|
1843
1847
|
}
|
|
1844
|
-
s.fullyControlValue ? t("update:modelValue",
|
|
1848
|
+
s.fullyControlValue ? t("update:modelValue", T) : f.value = T, k.value += 1;
|
|
1845
1849
|
}
|
|
1846
|
-
}),
|
|
1850
|
+
}), Ve = c(() => s.multiple && U(q.value) ? q.value.length !== 0 : !!q.value), Qe = () => {
|
|
1847
1851
|
s.multiple ? q.value = [] : q.value = void 0;
|
|
1848
|
-
},
|
|
1849
|
-
const
|
|
1850
|
-
return !
|
|
1851
|
-
(
|
|
1852
|
-
var
|
|
1853
|
-
return ((
|
|
1852
|
+
}, Ye = c(() => {
|
|
1853
|
+
const w = m.value;
|
|
1854
|
+
return !ce.value || !(w != null && w.length) ? u.value : s.filterPredicate ? u.value.filter(
|
|
1855
|
+
(T) => {
|
|
1856
|
+
var A;
|
|
1857
|
+
return ((A = s.filterPredicate) == null ? void 0 : A.call(s, T, w)) || !1;
|
|
1854
1858
|
}
|
|
1855
|
-
) :
|
|
1856
|
-
}),
|
|
1859
|
+
) : u.value;
|
|
1860
|
+
}), Pe = (w) => JSON.stringify(w), he = (w) => o(w) ? w[s.by || "id"] : w, me = async () => {
|
|
1857
1861
|
if (!(!X.value || !s.getSearchResults)) {
|
|
1858
|
-
|
|
1862
|
+
y.value = !0;
|
|
1859
1863
|
try {
|
|
1860
|
-
|
|
1864
|
+
u.value = await s.getSearchResults(m.value);
|
|
1861
1865
|
} finally {
|
|
1862
|
-
|
|
1866
|
+
y.value = !1;
|
|
1863
1867
|
}
|
|
1864
1868
|
}
|
|
1865
|
-
},
|
|
1866
|
-
const { active:
|
|
1869
|
+
}, Ze = Te(me, 1e3), et = (w) => {
|
|
1870
|
+
const { active: T, disabled: A } = w || {}, { hideCheckmarks: K } = s, N = [
|
|
1867
1871
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1868
1872
|
K ? "" : "pr-9"
|
|
1869
1873
|
];
|
|
1870
|
-
return
|
|
1874
|
+
return A ? N.push("opacity-50 cursor-not-allowed") : N.push(T ? "text-primary" : "text-foreground"), N.join(" ");
|
|
1871
1875
|
};
|
|
1872
1876
|
return oe(
|
|
1873
1877
|
() => s.items,
|
|
1874
|
-
(
|
|
1875
|
-
|
|
1878
|
+
(w) => {
|
|
1879
|
+
u.value = w.slice();
|
|
1876
1880
|
},
|
|
1877
1881
|
{ immediate: !0 }
|
|
1878
|
-
), oe(
|
|
1879
|
-
X.value &&
|
|
1882
|
+
), oe(m, () => {
|
|
1883
|
+
X.value && Ze();
|
|
1880
1884
|
}), Z(() => {
|
|
1881
|
-
X.value && !s.items.length &&
|
|
1882
|
-
}), l({ triggerSearch:
|
|
1883
|
-
(a(),
|
|
1884
|
-
key:
|
|
1885
|
+
X.value && !s.items.length && me();
|
|
1886
|
+
}), l({ triggerSearch: me }), (w, T) => (a(), p("div", null, [
|
|
1887
|
+
(a(), j(n(_t), {
|
|
1888
|
+
key: k.value,
|
|
1885
1889
|
modelValue: q.value,
|
|
1886
|
-
"onUpdate:modelValue":
|
|
1890
|
+
"onUpdate:modelValue": T[4] || (T[4] = (A) => q.value = A),
|
|
1887
1891
|
name: e.name,
|
|
1888
1892
|
multiple: e.multiple,
|
|
1889
1893
|
by: e.by,
|
|
1890
1894
|
disabled: te.value,
|
|
1891
1895
|
as: "div"
|
|
1892
1896
|
}, {
|
|
1893
|
-
default:
|
|
1894
|
-
V(n(
|
|
1895
|
-
class:
|
|
1897
|
+
default: B(() => [
|
|
1898
|
+
V(n(Ot), {
|
|
1899
|
+
class: b(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
1896
1900
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
|
|
1901
|
+
default: B(() => [
|
|
1902
|
+
M(I(e.label), 1)
|
|
1899
1903
|
]),
|
|
1900
1904
|
_: 1
|
|
1901
1905
|
}, 8, ["class"]),
|
|
1902
1906
|
d("div", {
|
|
1903
|
-
class:
|
|
1907
|
+
class: b(v.value)
|
|
1904
1908
|
}, [
|
|
1905
|
-
V(n(
|
|
1906
|
-
class:
|
|
1909
|
+
V(n(At), {
|
|
1910
|
+
class: b(H.value)
|
|
1907
1911
|
}, {
|
|
1908
|
-
default:
|
|
1909
|
-
d("div",
|
|
1910
|
-
d("div",
|
|
1911
|
-
!q.value || n(
|
|
1912
|
-
|
|
1913
|
-
]) :
|
|
1912
|
+
default: B(({ open: A }) => [
|
|
1913
|
+
d("div", yl, [
|
|
1914
|
+
d("div", xl, [
|
|
1915
|
+
!q.value || n(U)(q.value) && !q.value.length ? R(w.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1916
|
+
M(I(e.placeholder ? e.placeholder : e.label), 1)
|
|
1917
|
+
]) : R(w.$slots, "something-selected", {
|
|
1914
1918
|
key: 1,
|
|
1915
1919
|
value: q.value
|
|
1916
1920
|
}, () => [
|
|
1917
|
-
|
|
1921
|
+
M(I(Pe(q.value)), 1)
|
|
1918
1922
|
])
|
|
1919
1923
|
]),
|
|
1920
|
-
d("div",
|
|
1921
|
-
|
|
1924
|
+
d("div", kl, [
|
|
1925
|
+
h.value ? (a(), j(n(it), {
|
|
1922
1926
|
key: 0,
|
|
1923
1927
|
class: "h-4 w-4 text-danger",
|
|
1924
1928
|
"aria-hidden": "true"
|
|
1925
|
-
})) : e.showRequired ? (a(), p("div",
|
|
1926
|
-
|
|
1929
|
+
})) : e.showRequired ? (a(), p("div", wl, " * ")) : S("", !0),
|
|
1930
|
+
A ? (a(), j(n(De), {
|
|
1927
1931
|
key: 2,
|
|
1928
1932
|
class: "h-4 w-4 text-foreground",
|
|
1929
1933
|
"aria-hidden": "true"
|
|
1930
|
-
})) : (a(),
|
|
1934
|
+
})) : (a(), j(n(ut), {
|
|
1931
1935
|
key: 3,
|
|
1932
1936
|
class: "h-4 w-4 text-foreground",
|
|
1933
1937
|
"aria-hidden": "true"
|
|
@@ -1937,106 +1941,106 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
1937
1941
|
]),
|
|
1938
1942
|
_: 3
|
|
1939
1943
|
}, 8, ["class"]),
|
|
1940
|
-
|
|
1944
|
+
L.value ? ae((a(), p("button", {
|
|
1941
1945
|
key: 0,
|
|
1942
|
-
class:
|
|
1946
|
+
class: b(W.value),
|
|
1943
1947
|
disabled: e.disabled,
|
|
1944
|
-
onClick:
|
|
1948
|
+
onClick: T[0] || (T[0] = (A) => Qe())
|
|
1945
1949
|
}, [
|
|
1946
|
-
V(n(
|
|
1947
|
-
], 10,
|
|
1948
|
-
[n(
|
|
1949
|
-
]) :
|
|
1950
|
-
V(
|
|
1950
|
+
V(n(we), { class: "w-3 h-3" })
|
|
1951
|
+
], 10, Cl)), [
|
|
1952
|
+
[n(Ue), "Clear"]
|
|
1953
|
+
]) : S("", !0),
|
|
1954
|
+
V(xe, {
|
|
1951
1955
|
"leave-active-class": "transition ease-in duration-100",
|
|
1952
1956
|
"leave-from-class": "opacity-100",
|
|
1953
1957
|
"leave-to-class": "opacity-0"
|
|
1954
1958
|
}, {
|
|
1955
|
-
default:
|
|
1956
|
-
V(n(
|
|
1959
|
+
default: B(() => [
|
|
1960
|
+
V(n(Mt), {
|
|
1957
1961
|
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",
|
|
1958
|
-
onFocus:
|
|
1962
|
+
onFocus: T[3] || (T[3] = (A) => {
|
|
1959
1963
|
var K;
|
|
1960
1964
|
return (K = i.value) == null ? void 0 : K.focus();
|
|
1961
1965
|
})
|
|
1962
1966
|
}, {
|
|
1963
|
-
default:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
d("div",
|
|
1967
|
-
d("div",
|
|
1968
|
-
V(n(
|
|
1967
|
+
default: B(() => [
|
|
1968
|
+
ce.value ? (a(), p("label", $l, [
|
|
1969
|
+
Sl,
|
|
1970
|
+
d("div", Il, [
|
|
1971
|
+
d("div", Bl, [
|
|
1972
|
+
V(n(ct), { class: "h-5 w-5 text-foreground" })
|
|
1969
1973
|
]),
|
|
1970
1974
|
ae(d("input", {
|
|
1971
1975
|
ref_key: "searchInput",
|
|
1972
1976
|
ref: i,
|
|
1973
|
-
"onUpdate:modelValue":
|
|
1977
|
+
"onUpdate:modelValue": T[1] || (T[1] = (A) => m.value = A),
|
|
1974
1978
|
type: "text",
|
|
1975
1979
|
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",
|
|
1976
1980
|
placeholder: e.searchPlaceholder,
|
|
1977
|
-
onKeydown:
|
|
1981
|
+
onKeydown: T[2] || (T[2] = ue(() => {
|
|
1978
1982
|
}, ["stop"]))
|
|
1979
1983
|
}, null, 40, Vl), [
|
|
1980
|
-
[
|
|
1984
|
+
[ze, m.value]
|
|
1981
1985
|
])
|
|
1982
1986
|
])
|
|
1983
|
-
])) :
|
|
1987
|
+
])) : S("", !0),
|
|
1984
1988
|
d("div", {
|
|
1985
|
-
class:
|
|
1989
|
+
class: b(["overflow-auto simple-scrollbar", [ce.value ? "max-h-52" : "max-h-60"]])
|
|
1986
1990
|
}, [
|
|
1987
|
-
X.value &&
|
|
1988
|
-
V(
|
|
1989
|
-
])) : X.value && !
|
|
1990
|
-
|
|
1991
|
+
X.value && y.value ? (a(), p("div", Pl, [
|
|
1992
|
+
V(Ne, { loading: !0 })
|
|
1993
|
+
])) : X.value && !u.value.length ? (a(), p("div", Ll, [
|
|
1994
|
+
R(w.$slots, "nothing-found", {}, () => [
|
|
1991
1995
|
jl
|
|
1992
1996
|
])
|
|
1993
|
-
])) :
|
|
1994
|
-
!X.value || !
|
|
1997
|
+
])) : S("", !0),
|
|
1998
|
+
!X.value || !y.value ? (a(!0), p(F, { key: 2 }, E(Ye.value, (A) => {
|
|
1995
1999
|
var K;
|
|
1996
|
-
return a(),
|
|
1997
|
-
key:
|
|
1998
|
-
value:
|
|
1999
|
-
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e,
|
|
2000
|
+
return a(), j(n(zt), {
|
|
2001
|
+
key: he(A),
|
|
2002
|
+
value: A,
|
|
2003
|
+
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, A)) || !1
|
|
2000
2004
|
}, {
|
|
2001
|
-
default:
|
|
2002
|
-
var
|
|
2005
|
+
default: B(({ active: N, selected: Le }) => {
|
|
2006
|
+
var je, _e;
|
|
2003
2007
|
return [
|
|
2004
2008
|
d("li", {
|
|
2005
|
-
class:
|
|
2006
|
-
|
|
2009
|
+
class: b(
|
|
2010
|
+
et({
|
|
2007
2011
|
active: N,
|
|
2008
|
-
disabled: ((
|
|
2012
|
+
disabled: ((je = e.disabledItemPredicate) == null ? void 0 : je.call(e, A)) || !1
|
|
2009
2013
|
})
|
|
2010
2014
|
)
|
|
2011
2015
|
}, [
|
|
2012
|
-
d("span",
|
|
2013
|
-
|
|
2014
|
-
item:
|
|
2016
|
+
d("span", _l, [
|
|
2017
|
+
R(w.$slots, "option", {
|
|
2018
|
+
item: A,
|
|
2015
2019
|
active: N,
|
|
2016
|
-
selected:
|
|
2017
|
-
disabled: ((
|
|
2020
|
+
selected: Le,
|
|
2021
|
+
disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, A)) || !1
|
|
2018
2022
|
}, () => [
|
|
2019
|
-
|
|
2023
|
+
M(I(Pe(A)), 1)
|
|
2020
2024
|
])
|
|
2021
2025
|
]),
|
|
2022
|
-
!e.hideCheckmarks &&
|
|
2026
|
+
!e.hideCheckmarks && Le ? (a(), p("span", {
|
|
2023
2027
|
key: 0,
|
|
2024
|
-
class:
|
|
2028
|
+
class: b([
|
|
2025
2029
|
N ? "text-primary" : "text-foreground",
|
|
2026
2030
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
2027
2031
|
])
|
|
2028
2032
|
}, [
|
|
2029
|
-
V(n(
|
|
2033
|
+
V(n(Fe), {
|
|
2030
2034
|
class: "h-5 w-5",
|
|
2031
2035
|
"aria-hidden": "true"
|
|
2032
2036
|
})
|
|
2033
|
-
], 2)) :
|
|
2037
|
+
], 2)) : S("", !0)
|
|
2034
2038
|
], 2)
|
|
2035
2039
|
];
|
|
2036
2040
|
}),
|
|
2037
2041
|
_: 2
|
|
2038
2042
|
}, 1032, ["value", "disabled"]);
|
|
2039
|
-
}), 128)) :
|
|
2043
|
+
}), 128)) : S("", !0)
|
|
2040
2044
|
], 2)
|
|
2041
2045
|
]),
|
|
2042
2046
|
_: 3
|
|
@@ -2048,37 +2052,37 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2048
2052
|
]),
|
|
2049
2053
|
_: 3
|
|
2050
2054
|
}, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
|
|
2051
|
-
|
|
2055
|
+
$.value ? (a(), p("p", {
|
|
2052
2056
|
key: 0,
|
|
2053
|
-
id:
|
|
2054
|
-
class:
|
|
2055
|
-
},
|
|
2057
|
+
id: $.value,
|
|
2058
|
+
class: b(["mt-2 text-sm", P.value])
|
|
2059
|
+
}, I(_.value), 11, Ol)) : S("", !0)
|
|
2056
2060
|
]));
|
|
2057
2061
|
}
|
|
2058
|
-
}),
|
|
2062
|
+
}), Al = /* @__PURE__ */ O({
|
|
2059
2063
|
__name: "SourceAppBadge",
|
|
2060
2064
|
props: {
|
|
2061
2065
|
sourceApp: null
|
|
2062
2066
|
},
|
|
2063
2067
|
setup(e) {
|
|
2064
|
-
return (l, t) => (a(),
|
|
2068
|
+
return (l, t) => (a(), j(qe, {
|
|
2065
2069
|
"color-classes": "text-foreground-on-primary",
|
|
2066
2070
|
rounded: "",
|
|
2067
2071
|
style: re({ backgroundColor: e.sourceApp.bgColor })
|
|
2068
2072
|
}, {
|
|
2069
|
-
default:
|
|
2070
|
-
|
|
2073
|
+
default: B(() => [
|
|
2074
|
+
M(I(e.sourceApp.short), 1)
|
|
2071
2075
|
]),
|
|
2072
2076
|
_: 1
|
|
2073
2077
|
}, 8, ["style"]));
|
|
2074
2078
|
}
|
|
2075
|
-
}),
|
|
2079
|
+
}), Ml = {
|
|
2076
2080
|
key: 0,
|
|
2077
2081
|
class: "text-foreground-2 normal"
|
|
2078
|
-
},
|
|
2082
|
+
}, zl = {
|
|
2079
2083
|
key: 1,
|
|
2080
2084
|
class: "flex items-center"
|
|
2081
|
-
},
|
|
2085
|
+
}, Rl = { class: "truncate" }, Tl = { class: "flex items-center" }, Dl = { class: "truncate" }, En = /* @__PURE__ */ O({
|
|
2082
2086
|
__name: "SourceApps",
|
|
2083
2087
|
props: {
|
|
2084
2088
|
/**
|
|
@@ -2134,37 +2138,45 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2134
2138
|
items: {
|
|
2135
2139
|
type: Array,
|
|
2136
2140
|
default: void 0
|
|
2141
|
+
},
|
|
2142
|
+
clearable: {
|
|
2143
|
+
type: Boolean
|
|
2144
|
+
},
|
|
2145
|
+
help: {
|
|
2146
|
+
type: String
|
|
2137
2147
|
}
|
|
2138
2148
|
},
|
|
2139
2149
|
emits: ["update:modelValue"],
|
|
2140
2150
|
setup(e, { emit: l }) {
|
|
2141
|
-
const t = e, s =
|
|
2151
|
+
const t = e, s = z(null), o = z(null), { selectedValue: f, hiddenSelectedItemCount: r, isMultiItemArrayValue: i, firstItem: m } = Xe({
|
|
2142
2152
|
props: Y(t),
|
|
2143
2153
|
emit: l,
|
|
2144
2154
|
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
2145
2155
|
}), u = (y, k) => y.name.toLocaleLowerCase().includes(k.toLocaleLowerCase());
|
|
2146
|
-
return (y, k) => (a(),
|
|
2156
|
+
return (y, k) => (a(), j(Je, {
|
|
2147
2157
|
modelValue: n(f),
|
|
2148
|
-
"onUpdate:modelValue": k[0] || (k[0] = (g) =>
|
|
2158
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => fe(f) ? f.value = g : null),
|
|
2149
2159
|
multiple: e.multiple,
|
|
2150
|
-
items: e.items ?? n(
|
|
2160
|
+
items: e.items ?? n(It),
|
|
2151
2161
|
search: e.search,
|
|
2152
2162
|
"search-placeholder": e.searchPlaceholder,
|
|
2153
2163
|
label: e.label,
|
|
2154
2164
|
"show-label": e.showLabel,
|
|
2155
2165
|
name: e.name || "sourceApps",
|
|
2156
2166
|
"filter-predicate": u,
|
|
2167
|
+
clearable: e.clearable,
|
|
2168
|
+
help: e.help,
|
|
2157
2169
|
by: "name"
|
|
2158
2170
|
}, {
|
|
2159
|
-
"nothing-selected":
|
|
2160
|
-
e.selectorPlaceholder ? (a(), p(
|
|
2161
|
-
|
|
2162
|
-
], 64)) : (a(), p(
|
|
2163
|
-
|
|
2171
|
+
"nothing-selected": B(() => [
|
|
2172
|
+
e.selectorPlaceholder ? (a(), p(F, { key: 0 }, [
|
|
2173
|
+
M(I(e.selectorPlaceholder), 1)
|
|
2174
|
+
], 64)) : (a(), p(F, { key: 1 }, [
|
|
2175
|
+
M(I(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2164
2176
|
], 64))
|
|
2165
2177
|
]),
|
|
2166
|
-
"something-selected":
|
|
2167
|
-
n(
|
|
2178
|
+
"something-selected": B(({ value: g }) => [
|
|
2179
|
+
n(i)(g) ? (a(), p("div", {
|
|
2168
2180
|
key: 0,
|
|
2169
2181
|
ref_key: "elementToWatchForChanges",
|
|
2170
2182
|
ref: s,
|
|
@@ -2175,33 +2187,33 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2175
2187
|
ref: o,
|
|
2176
2188
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2177
2189
|
}, [
|
|
2178
|
-
(a(!0), p(
|
|
2179
|
-
key:
|
|
2180
|
-
"source-app":
|
|
2190
|
+
(a(!0), p(F, null, E(g, (C) => (a(), j(Al, {
|
|
2191
|
+
key: C.name,
|
|
2192
|
+
"source-app": C
|
|
2181
2193
|
}, null, 8, ["source-app"]))), 128))
|
|
2182
2194
|
], 512),
|
|
2183
|
-
n(
|
|
2184
|
-
], 512)) : (a(), p("div",
|
|
2195
|
+
n(r) > 0 ? (a(), p("div", Ml, " +" + I(n(r)), 1)) : S("", !0)
|
|
2196
|
+
], 512)) : (a(), p("div", zl, [
|
|
2185
2197
|
d("div", {
|
|
2186
2198
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2187
2199
|
style: re({ backgroundColor: n(m)(g).bgColor })
|
|
2188
2200
|
}, null, 4),
|
|
2189
|
-
d("span",
|
|
2201
|
+
d("span", Rl, I(n(m)(g).name), 1)
|
|
2190
2202
|
]))
|
|
2191
2203
|
]),
|
|
2192
|
-
option:
|
|
2204
|
+
option: B(({ item: g }) => [
|
|
2193
2205
|
d("div", Tl, [
|
|
2194
2206
|
d("div", {
|
|
2195
2207
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2196
2208
|
style: re({ backgroundColor: g.bgColor })
|
|
2197
2209
|
}, null, 4),
|
|
2198
|
-
d("span",
|
|
2210
|
+
d("span", Dl, I(g.name), 1)
|
|
2199
2211
|
])
|
|
2200
2212
|
]),
|
|
2201
2213
|
_: 1
|
|
2202
|
-
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name"]));
|
|
2214
|
+
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
|
|
2203
2215
|
}
|
|
2204
|
-
}),
|
|
2216
|
+
}), Fl = { class: "flex flex-wrap gap-1.5 text-xs" }, Un = /* @__PURE__ */ O({
|
|
2205
2217
|
__name: "Badges",
|
|
2206
2218
|
props: {
|
|
2207
2219
|
items: null,
|
|
@@ -2215,15 +2227,15 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2215
2227
|
},
|
|
2216
2228
|
emits: ["update:modelValue"],
|
|
2217
2229
|
setup(e, { emit: l }) {
|
|
2218
|
-
const t = e, { selectedValue: s, isArrayValue: o } =
|
|
2230
|
+
const t = e, { selectedValue: s, isArrayValue: o } = Xe({
|
|
2219
2231
|
props: Y(t),
|
|
2220
2232
|
emit: l
|
|
2221
|
-
}), f = (
|
|
2222
|
-
o(s.value) ? s.value = s.value.filter((
|
|
2233
|
+
}), f = (r) => {
|
|
2234
|
+
o(s.value) ? s.value = s.value.filter((i) => i.id !== r.id) : s.value = void 0;
|
|
2223
2235
|
};
|
|
2224
|
-
return (
|
|
2236
|
+
return (r, i) => (a(), j(Je, {
|
|
2225
2237
|
modelValue: n(s),
|
|
2226
|
-
"onUpdate:modelValue":
|
|
2238
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => fe(s) ? s.value = m : null),
|
|
2227
2239
|
multiple: e.multiple,
|
|
2228
2240
|
items: e.items,
|
|
2229
2241
|
label: e.label,
|
|
@@ -2232,52 +2244,52 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2232
2244
|
rules: e.rules,
|
|
2233
2245
|
by: e.by
|
|
2234
2246
|
}, {
|
|
2235
|
-
"something-selected":
|
|
2236
|
-
d("ul",
|
|
2237
|
-
(a(!0), p(
|
|
2247
|
+
"something-selected": B(({ value: m }) => [
|
|
2248
|
+
d("ul", Fl, [
|
|
2249
|
+
(a(!0), p(F, null, E(n(o)(m) ? m : [m], (u) => (a(), p("li", {
|
|
2238
2250
|
key: u[e.by]
|
|
2239
2251
|
}, [
|
|
2240
|
-
V(
|
|
2252
|
+
V(qe, {
|
|
2241
2253
|
size: "lg",
|
|
2242
2254
|
"clickable-icon": !0,
|
|
2243
|
-
"icon-left": n(
|
|
2255
|
+
"icon-left": n(we),
|
|
2244
2256
|
onClickIcon: ue((y) => f(u), ["stop"])
|
|
2245
2257
|
}, {
|
|
2246
|
-
default:
|
|
2247
|
-
|
|
2258
|
+
default: B(() => [
|
|
2259
|
+
M(I(u.text), 1)
|
|
2248
2260
|
]),
|
|
2249
2261
|
_: 2
|
|
2250
2262
|
}, 1032, ["icon-left", "onClickIcon"])
|
|
2251
2263
|
]))), 128))
|
|
2252
2264
|
])
|
|
2253
2265
|
]),
|
|
2254
|
-
option:
|
|
2255
|
-
|
|
2266
|
+
option: B(({ item: m }) => [
|
|
2267
|
+
M(I(m.text), 1)
|
|
2256
2268
|
]),
|
|
2257
2269
|
_: 1
|
|
2258
2270
|
}, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
|
|
2259
2271
|
}
|
|
2260
|
-
}),
|
|
2272
|
+
}), El = { class: "flex items-center" }, Ul = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Wn = /* @__PURE__ */ O({
|
|
2261
2273
|
__name: "Switch",
|
|
2262
2274
|
props: {
|
|
2263
2275
|
modelValue: { type: Boolean }
|
|
2264
2276
|
},
|
|
2265
2277
|
emits: ["update:modelValue"],
|
|
2266
2278
|
setup(e) {
|
|
2267
|
-
const l =
|
|
2268
|
-
return (t, s) => (a(), p("div",
|
|
2269
|
-
V(n(
|
|
2279
|
+
const l = nt(e, "modelValue");
|
|
2280
|
+
return (t, s) => (a(), p("div", El, [
|
|
2281
|
+
V(n(Rt), {
|
|
2270
2282
|
modelValue: l.value,
|
|
2271
2283
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
|
|
2272
|
-
class:
|
|
2284
|
+
class: b(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": l.value, "bg-primary-muted": !l.value }])
|
|
2273
2285
|
}, {
|
|
2274
|
-
default:
|
|
2275
|
-
d("div",
|
|
2276
|
-
V(n(
|
|
2277
|
-
V(n(
|
|
2286
|
+
default: B(() => [
|
|
2287
|
+
d("div", Ul, [
|
|
2288
|
+
V(n(Fe), { class: "h-5 w-5 drop-shadow-md" }),
|
|
2289
|
+
V(n(we), { class: "h-5 w-5 drop-shadow-md" })
|
|
2278
2290
|
]),
|
|
2279
2291
|
d("span", {
|
|
2280
|
-
class:
|
|
2292
|
+
class: b(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": l.value, "translate-x-0": !l.value }])
|
|
2281
2293
|
}, null, 2)
|
|
2282
2294
|
]),
|
|
2283
2295
|
_: 1
|
|
@@ -2286,28 +2298,28 @@ const Xe = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-60cf597b"]]), xl = { cl
|
|
|
2286
2298
|
}
|
|
2287
2299
|
});
|
|
2288
2300
|
var ne = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(ne || {});
|
|
2289
|
-
const
|
|
2301
|
+
const be = Bt(), Wl = {
|
|
2290
2302
|
[
|
|
2291
2303
|
"cmd-or-ctrl"
|
|
2292
2304
|
/* CtrlOrCmd */
|
|
2293
|
-
]:
|
|
2305
|
+
]: be === ve.Mac ? "Cmd" : "Ctrl",
|
|
2294
2306
|
[
|
|
2295
2307
|
"alt-or-opt"
|
|
2296
2308
|
/* AltOrOpt */
|
|
2297
|
-
]:
|
|
2309
|
+
]: be === ve.Mac ? "Opt" : "Alt",
|
|
2298
2310
|
shift: "Shift"
|
|
2299
2311
|
};
|
|
2300
|
-
function
|
|
2312
|
+
function qn(e) {
|
|
2301
2313
|
const l = (t) => Object.values(ne).includes(t);
|
|
2302
|
-
return e.map((t) => l(t) ?
|
|
2314
|
+
return e.map((t) => l(t) ? Wl[t] : t).join("+");
|
|
2303
2315
|
}
|
|
2304
|
-
function
|
|
2305
|
-
|
|
2316
|
+
function Hn(e, ...l) {
|
|
2317
|
+
Lt(
|
|
2306
2318
|
l[0],
|
|
2307
2319
|
(t) => {
|
|
2308
|
-
const s = t.getModifierState("Alt"), o =
|
|
2309
|
-
for (const
|
|
2310
|
-
switch (
|
|
2320
|
+
const s = t.getModifierState("Alt"), o = be === ve.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), f = t.getModifierState("Shift");
|
|
2321
|
+
for (const r of e)
|
|
2322
|
+
switch (r) {
|
|
2311
2323
|
case ne.CtrlOrCmd:
|
|
2312
2324
|
if (!o)
|
|
2313
2325
|
return;
|
|
@@ -2326,20 +2338,20 @@ function Gn(e, ...l) {
|
|
|
2326
2338
|
l[2]
|
|
2327
2339
|
);
|
|
2328
2340
|
}
|
|
2329
|
-
function
|
|
2330
|
-
const l = (e == null ? void 0 : e.model) ||
|
|
2341
|
+
function Gn(e) {
|
|
2342
|
+
const l = (e == null ? void 0 : e.model) || z(), t = c({
|
|
2331
2343
|
get: () => !!l.value,
|
|
2332
2344
|
set: (s) => l.value = s ? !0 : void 0
|
|
2333
2345
|
});
|
|
2334
2346
|
return { model: l, isChecked: t };
|
|
2335
2347
|
}
|
|
2336
|
-
const
|
|
2348
|
+
const ql = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Hl = { class: "fixed inset-0 z-10 overflow-y-auto" }, Gl = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Kl = {
|
|
2337
2349
|
key: 0,
|
|
2338
2350
|
class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
|
|
2339
|
-
},
|
|
2351
|
+
}, Xl = { class: "text-2xl font-bold" }, Nl = { class: "p-4 sm:p-6" }, Jl = {
|
|
2340
2352
|
key: 2,
|
|
2341
2353
|
class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
|
|
2342
|
-
},
|
|
2354
|
+
}, Kn = /* @__PURE__ */ O({
|
|
2343
2355
|
__name: "Dialog",
|
|
2344
2356
|
props: {
|
|
2345
2357
|
open: { type: Boolean },
|
|
@@ -2352,10 +2364,10 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2352
2364
|
},
|
|
2353
2365
|
emits: ["update:open", "fully-closed"],
|
|
2354
2366
|
setup(e, { emit: l }) {
|
|
2355
|
-
const t = e, s =
|
|
2367
|
+
const t = e, s = ke(), o = c(() => !!t.onSubmit), f = c(() => t.buttons || s.buttons), r = c({
|
|
2356
2368
|
get: () => t.open,
|
|
2357
2369
|
set: (y) => l("update:open", y)
|
|
2358
|
-
}),
|
|
2370
|
+
}), i = c(() => {
|
|
2359
2371
|
switch (t.maxWidth) {
|
|
2360
2372
|
case "sm":
|
|
2361
2373
|
return 0;
|
|
@@ -2370,22 +2382,22 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2370
2382
|
}
|
|
2371
2383
|
}), m = c(() => {
|
|
2372
2384
|
const y = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
|
|
2373
|
-
return !t.title && !f.value && y.push("px-4 pt-4 pb-4", "sm:p-6"),
|
|
2385
|
+
return !t.title && !f.value && y.push("px-4 pt-4 pb-4", "sm:p-6"), i.value >= 1 && y.push("md:max-w-2xl"), i.value >= 2 && y.push("lg:max-w-4xl"), i.value >= 3 && y.push("xl:max-w-6xl"), i.value >= 4 && y.push("2xl:max-w-7xl"), y.join(" ");
|
|
2374
2386
|
}), u = () => {
|
|
2375
|
-
t.preventCloseOnClickOutside || (
|
|
2387
|
+
t.preventCloseOnClickOutside || (r.value = !1);
|
|
2376
2388
|
};
|
|
2377
|
-
return (y, k) => (a(),
|
|
2389
|
+
return (y, k) => (a(), j(n(Tt), {
|
|
2378
2390
|
as: "template",
|
|
2379
|
-
show:
|
|
2391
|
+
show: r.value
|
|
2380
2392
|
}, {
|
|
2381
|
-
default:
|
|
2393
|
+
default: B(() => [
|
|
2382
2394
|
V(n(Dt), {
|
|
2383
2395
|
as: "div",
|
|
2384
2396
|
class: "relative z-40",
|
|
2385
2397
|
onClose: u
|
|
2386
2398
|
}, {
|
|
2387
|
-
default:
|
|
2388
|
-
V(n(
|
|
2399
|
+
default: B(() => [
|
|
2400
|
+
V(n(Ae), {
|
|
2389
2401
|
as: "template",
|
|
2390
2402
|
enter: "ease-out duration-300",
|
|
2391
2403
|
"enter-from": "opacity-0",
|
|
@@ -2394,14 +2406,14 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2394
2406
|
"leave-from": "opacity-100",
|
|
2395
2407
|
"leave-to": "opacity-0"
|
|
2396
2408
|
}, {
|
|
2397
|
-
default:
|
|
2398
|
-
|
|
2409
|
+
default: B(() => [
|
|
2410
|
+
ql
|
|
2399
2411
|
]),
|
|
2400
2412
|
_: 1
|
|
2401
2413
|
}),
|
|
2402
|
-
d("div",
|
|
2403
|
-
d("div",
|
|
2404
|
-
V(n(
|
|
2414
|
+
d("div", Hl, [
|
|
2415
|
+
d("div", Gl, [
|
|
2416
|
+
V(n(Ae), {
|
|
2405
2417
|
as: "template",
|
|
2406
2418
|
enter: "ease-out duration-300",
|
|
2407
2419
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2411,41 +2423,41 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2411
2423
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2412
2424
|
onAfterLeave: k[1] || (k[1] = (g) => y.$emit("fully-closed"))
|
|
2413
2425
|
}, {
|
|
2414
|
-
default:
|
|
2415
|
-
V(n(
|
|
2416
|
-
class:
|
|
2426
|
+
default: B(() => [
|
|
2427
|
+
V(n(Ft), {
|
|
2428
|
+
class: b([
|
|
2417
2429
|
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2418
2430
|
m.value
|
|
2419
2431
|
]),
|
|
2420
2432
|
as: o.value ? "form" : "div",
|
|
2421
2433
|
onSubmit: ue(e.onSubmit, ["prevent"])
|
|
2422
2434
|
}, {
|
|
2423
|
-
default:
|
|
2424
|
-
e.title ? (a(), p("div",
|
|
2425
|
-
d("h4",
|
|
2426
|
-
])) :
|
|
2427
|
-
e.hideCloser ?
|
|
2435
|
+
default: B(() => [
|
|
2436
|
+
e.title ? (a(), p("div", Kl, [
|
|
2437
|
+
d("h4", Xl, I(e.title), 1)
|
|
2438
|
+
])) : S("", !0),
|
|
2439
|
+
e.hideCloser ? S("", !0) : (a(), p("button", {
|
|
2428
2440
|
key: 1,
|
|
2429
2441
|
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2430
|
-
onClick: k[0] || (k[0] = (g) =>
|
|
2442
|
+
onClick: k[0] || (k[0] = (g) => r.value = !1)
|
|
2431
2443
|
}, [
|
|
2432
|
-
V(n(
|
|
2444
|
+
V(n(vt), { class: "h-6 w-6" })
|
|
2433
2445
|
])),
|
|
2434
|
-
d("div",
|
|
2435
|
-
|
|
2436
|
-
|
|
2446
|
+
d("div", Nl, [
|
|
2447
|
+
R(y.$slots, "default", {}, () => [
|
|
2448
|
+
M("Put your content here!")
|
|
2437
2449
|
])
|
|
2438
2450
|
]),
|
|
2439
|
-
f.value ? (a(), p("div",
|
|
2440
|
-
e.buttons ? (a(!0), p(
|
|
2451
|
+
f.value ? (a(), p("div", Jl, [
|
|
2452
|
+
e.buttons ? (a(!0), p(F, { key: 0 }, E(e.buttons, (g, C) => (a(), j(n(ee), ie({ key: C }, g.props, {
|
|
2441
2453
|
onClick: g.onClick
|
|
2442
2454
|
}), {
|
|
2443
|
-
default:
|
|
2444
|
-
|
|
2455
|
+
default: B(() => [
|
|
2456
|
+
M(I(g.text), 1)
|
|
2445
2457
|
]),
|
|
2446
2458
|
_: 2
|
|
2447
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
2448
|
-
])) :
|
|
2459
|
+
}, 1040, ["onClick"]))), 128)) : R(y.$slots, "buttons", { key: 1 })
|
|
2460
|
+
])) : S("", !0)
|
|
2449
2461
|
]),
|
|
2450
2462
|
_: 3
|
|
2451
2463
|
}, 8, ["class", "as", "onSubmit"])
|
|
@@ -2461,7 +2473,7 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2461
2473
|
_: 3
|
|
2462
2474
|
}, 8, ["show"]));
|
|
2463
2475
|
}
|
|
2464
|
-
}),
|
|
2476
|
+
}), Ql = { class: "inline-flex items-center space-x-2" }, Yl = { class: "label-light" }, Xn = /* @__PURE__ */ O({
|
|
2465
2477
|
__name: "Disclosure",
|
|
2466
2478
|
props: {
|
|
2467
2479
|
title: null,
|
|
@@ -2516,32 +2528,32 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2516
2528
|
return o.join(" ");
|
|
2517
2529
|
});
|
|
2518
2530
|
return (o, f) => (a(), p("div", null, [
|
|
2519
|
-
V(n(
|
|
2520
|
-
default:
|
|
2521
|
-
V(n(
|
|
2522
|
-
class:
|
|
2531
|
+
V(n(Et), null, {
|
|
2532
|
+
default: B(({ open: r }) => [
|
|
2533
|
+
V(n(Ut), {
|
|
2534
|
+
class: b(t.value)
|
|
2523
2535
|
}, {
|
|
2524
|
-
default:
|
|
2525
|
-
d("div",
|
|
2526
|
-
e.icon ? (a(),
|
|
2536
|
+
default: B(() => [
|
|
2537
|
+
d("div", Ql, [
|
|
2538
|
+
e.icon ? (a(), j(G(e.icon), {
|
|
2527
2539
|
key: 0,
|
|
2528
2540
|
class: "h-4 w-4"
|
|
2529
|
-
})) :
|
|
2530
|
-
d("span", null,
|
|
2541
|
+
})) : S("", !0),
|
|
2542
|
+
d("span", null, I(e.title), 1)
|
|
2531
2543
|
]),
|
|
2532
2544
|
V(n(De), {
|
|
2533
|
-
class:
|
|
2545
|
+
class: b([r ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2534
2546
|
}, null, 8, ["class"])
|
|
2535
2547
|
]),
|
|
2536
2548
|
_: 2
|
|
2537
2549
|
}, 1032, ["class"]),
|
|
2538
|
-
V(n(
|
|
2539
|
-
class:
|
|
2550
|
+
V(n(Wt), {
|
|
2551
|
+
class: b(s.value)
|
|
2540
2552
|
}, {
|
|
2541
|
-
default:
|
|
2542
|
-
d("div",
|
|
2543
|
-
|
|
2544
|
-
|
|
2553
|
+
default: B(() => [
|
|
2554
|
+
d("div", Yl, [
|
|
2555
|
+
R(o.$slots, "default", {}, () => [
|
|
2556
|
+
M("Panel contents")
|
|
2545
2557
|
])
|
|
2546
2558
|
])
|
|
2547
2559
|
]),
|
|
@@ -2554,7 +2566,7 @@ const Hl = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2554
2566
|
}
|
|
2555
2567
|
});
|
|
2556
2568
|
var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
|
|
2557
|
-
const
|
|
2569
|
+
const Nn = /* @__PURE__ */ O({
|
|
2558
2570
|
__name: "GridListToggle",
|
|
2559
2571
|
props: {
|
|
2560
2572
|
modelValue: null
|
|
@@ -2563,70 +2575,70 @@ const Jn = /* @__PURE__ */ j({
|
|
|
2563
2575
|
setup(e, { emit: l }) {
|
|
2564
2576
|
const t = e, s = c({
|
|
2565
2577
|
get: () => t.modelValue || J.Grid,
|
|
2566
|
-
set: (
|
|
2578
|
+
set: (r) => l("update:modelValue", r)
|
|
2567
2579
|
}), o = c(
|
|
2568
|
-
() => s.value === J.Grid ?
|
|
2569
|
-
), f = (
|
|
2570
|
-
l("click",
|
|
2571
|
-
const
|
|
2572
|
-
s.value =
|
|
2580
|
+
() => s.value === J.Grid ? dt : ft
|
|
2581
|
+
), f = (r) => {
|
|
2582
|
+
l("click", r);
|
|
2583
|
+
const i = s.value === J.Grid ? J.List : J.Grid;
|
|
2584
|
+
s.value = i;
|
|
2573
2585
|
};
|
|
2574
|
-
return (
|
|
2586
|
+
return (r, i) => (a(), p("button", {
|
|
2575
2587
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2576
2588
|
onClick: f
|
|
2577
2589
|
}, [
|
|
2578
|
-
(a(),
|
|
2590
|
+
(a(), j(G(o.value), { class: "h-6 w-6" }))
|
|
2579
2591
|
]));
|
|
2580
2592
|
}
|
|
2581
2593
|
});
|
|
2582
|
-
var
|
|
2583
|
-
function
|
|
2584
|
-
if (
|
|
2594
|
+
var Zl = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Zl || {}), ye = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ye || {});
|
|
2595
|
+
function en(e, l) {
|
|
2596
|
+
if (!Ie)
|
|
2585
2597
|
return;
|
|
2586
2598
|
const {
|
|
2587
2599
|
wait: t = 100,
|
|
2588
2600
|
throttleOrDebounce: s = 0
|
|
2589
2601
|
/* Throttle */
|
|
2590
|
-
} = l || {}, o = t ? s === 0 ?
|
|
2591
|
-
Z(() => window.addEventListener("resize", o)),
|
|
2602
|
+
} = l || {}, o = t ? s === 0 ? at(e, t) : Te(e, t) : e;
|
|
2603
|
+
Z(() => window.addEventListener("resize", o)), Re(() => window.removeEventListener("resize", o));
|
|
2592
2604
|
}
|
|
2593
|
-
function
|
|
2605
|
+
function Jn(e) {
|
|
2594
2606
|
Z(() => {
|
|
2595
2607
|
window.addEventListener("beforeunload", e);
|
|
2596
|
-
}),
|
|
2608
|
+
}), Re(() => {
|
|
2597
2609
|
window.removeEventListener("beforeunload", e);
|
|
2598
2610
|
});
|
|
2599
2611
|
}
|
|
2600
|
-
function
|
|
2601
|
-
const { el: l, defaultDirection: t } = e, s =
|
|
2612
|
+
function tn(e) {
|
|
2613
|
+
const { el: l, defaultDirection: t } = e, s = z(
|
|
2602
2614
|
Q(t) ? 1 : t
|
|
2603
2615
|
/* Right */
|
|
2604
2616
|
), o = c(() => {
|
|
2605
|
-
const
|
|
2606
|
-
if (!Q(
|
|
2607
|
-
return
|
|
2608
|
-
const
|
|
2609
|
-
return
|
|
2617
|
+
const r = n(e.stopUpdatesBelowWidth);
|
|
2618
|
+
if (!Q(r))
|
|
2619
|
+
return r;
|
|
2620
|
+
const i = n(l);
|
|
2621
|
+
return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
|
|
2610
2622
|
}), f = () => {
|
|
2611
|
-
if (
|
|
2623
|
+
if (!Ie)
|
|
2612
2624
|
return;
|
|
2613
|
-
const
|
|
2614
|
-
if (!
|
|
2625
|
+
const r = n(l);
|
|
2626
|
+
if (!r)
|
|
2615
2627
|
return;
|
|
2616
|
-
const
|
|
2628
|
+
const i = r.getBoundingClientRect(), m = i.x + i.width > window.innerWidth, u = i.x < 0;
|
|
2617
2629
|
m && u || !Q(o.value) && window.innerWidth < o.value || (m ? s.value = 0 : u && (s.value = 1));
|
|
2618
2630
|
};
|
|
2619
|
-
return
|
|
2631
|
+
return en(() => f()), oe(
|
|
2620
2632
|
() => n(l),
|
|
2621
|
-
(
|
|
2622
|
-
|
|
2633
|
+
(r) => {
|
|
2634
|
+
r && f();
|
|
2623
2635
|
}
|
|
2624
2636
|
), {
|
|
2625
2637
|
direction: c(() => s.value),
|
|
2626
2638
|
recalculateDirection: f
|
|
2627
2639
|
};
|
|
2628
2640
|
}
|
|
2629
|
-
const
|
|
2641
|
+
const sn = ["disabled", "onClick"], Qn = /* @__PURE__ */ O({
|
|
2630
2642
|
__name: "Menu",
|
|
2631
2643
|
props: {
|
|
2632
2644
|
open: { type: Boolean },
|
|
@@ -2634,55 +2646,55 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2634
2646
|
},
|
|
2635
2647
|
emits: ["update:open", "chosen"],
|
|
2636
2648
|
setup(e, { emit: l }) {
|
|
2637
|
-
const t = e, s =
|
|
2649
|
+
const t = e, s = z(null), { direction: o } = tn({
|
|
2638
2650
|
el: c(() => {
|
|
2639
2651
|
var g;
|
|
2640
2652
|
return ((g = s.value) == null ? void 0 : g.el) || null;
|
|
2641
2653
|
}),
|
|
2642
|
-
defaultDirection:
|
|
2654
|
+
defaultDirection: ye.Left,
|
|
2643
2655
|
stopUpdatesBelowWidth: 300
|
|
2644
|
-
}), f =
|
|
2656
|
+
}), f = z(null), r = z(!1), i = c({
|
|
2645
2657
|
get: () => t.open || !1,
|
|
2646
2658
|
set: (g) => l("update:open", g)
|
|
2647
2659
|
}), m = (g) => {
|
|
2648
|
-
const { active:
|
|
2649
|
-
return
|
|
2650
|
-
}, u = (g,
|
|
2651
|
-
l("chosen", { item: g, event:
|
|
2660
|
+
const { active: C, disabled: h } = g, _ = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2661
|
+
return C ? _.push("bg-primary text-foreground-on-primary") : h ? _.push("text-foreground-disabled") : _.push("text-foreground"), _.join(" ");
|
|
2662
|
+
}, u = (g, C) => {
|
|
2663
|
+
l("chosen", { item: g, event: C });
|
|
2652
2664
|
}, y = () => {
|
|
2653
2665
|
var g;
|
|
2654
2666
|
return (g = f.value) == null ? void 0 : g.el.click();
|
|
2655
2667
|
}, k = (g) => {
|
|
2656
|
-
const
|
|
2657
|
-
return
|
|
2668
|
+
const C = !!g;
|
|
2669
|
+
return r.value = C, C;
|
|
2658
2670
|
};
|
|
2659
|
-
return oe(
|
|
2660
|
-
g !==
|
|
2661
|
-
}), oe(
|
|
2662
|
-
(g && !
|
|
2663
|
-
}), (g,
|
|
2671
|
+
return oe(r, (g, C) => {
|
|
2672
|
+
g !== C && (i.value = g);
|
|
2673
|
+
}), oe(i, (g) => {
|
|
2674
|
+
(g && !r.value || !g && r.value) && y();
|
|
2675
|
+
}), (g, C) => (a(), j(n(qt), {
|
|
2664
2676
|
as: "div",
|
|
2665
2677
|
class: "relative inline-block"
|
|
2666
2678
|
}, {
|
|
2667
|
-
default:
|
|
2679
|
+
default: B(({ open: h }) => [
|
|
2668
2680
|
d("div", null, [
|
|
2669
|
-
V(n(
|
|
2681
|
+
V(n(Ht), {
|
|
2670
2682
|
ref_key: "menuButton",
|
|
2671
2683
|
ref: f,
|
|
2672
2684
|
class: "hidden",
|
|
2673
|
-
onClick:
|
|
2685
|
+
onClick: C[0] || (C[0] = ue(() => {
|
|
2674
2686
|
}, ["stop", "prevent"]))
|
|
2675
2687
|
}, null, 512),
|
|
2676
2688
|
d("div", {
|
|
2677
|
-
class:
|
|
2689
|
+
class: b(h ? "pointer-events-none" : "")
|
|
2678
2690
|
}, [
|
|
2679
|
-
|
|
2691
|
+
R(g.$slots, "default", {
|
|
2680
2692
|
toggle: y,
|
|
2681
2693
|
open: k(h)
|
|
2682
2694
|
})
|
|
2683
2695
|
], 2)
|
|
2684
2696
|
]),
|
|
2685
|
-
V(
|
|
2697
|
+
V(xe, {
|
|
2686
2698
|
"enter-active-class": "transition duration-100 ease-out",
|
|
2687
2699
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
2688
2700
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -2690,37 +2702,37 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2690
2702
|
"leave-from-class": "transform scale-100 opacity-100",
|
|
2691
2703
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
2692
2704
|
}, {
|
|
2693
|
-
default:
|
|
2694
|
-
V(n(
|
|
2705
|
+
default: B(() => [
|
|
2706
|
+
V(n(Gt), {
|
|
2695
2707
|
ref_key: "menuItems",
|
|
2696
2708
|
ref: s,
|
|
2697
|
-
class:
|
|
2709
|
+
class: b([
|
|
2698
2710
|
"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",
|
|
2699
|
-
n(o) === n(
|
|
2711
|
+
n(o) === n(ye).Left ? "right-0" : ""
|
|
2700
2712
|
])
|
|
2701
2713
|
}, {
|
|
2702
|
-
default:
|
|
2703
|
-
(a(!0), p(
|
|
2704
|
-
key:
|
|
2714
|
+
default: B(() => [
|
|
2715
|
+
(a(!0), p(F, null, E(e.items, (_, x) => (a(), p("div", {
|
|
2716
|
+
key: x,
|
|
2705
2717
|
class: "px-1 py-1"
|
|
2706
2718
|
}, [
|
|
2707
|
-
(a(!0), p(
|
|
2719
|
+
(a(!0), p(F, null, E(_, ($) => (a(), j(n(Kt), {
|
|
2708
2720
|
key: $.id,
|
|
2709
2721
|
disabled: $.disabled
|
|
2710
2722
|
}, {
|
|
2711
|
-
default:
|
|
2723
|
+
default: B(({ active: P, disabled: L }) => [
|
|
2712
2724
|
ae((a(), p("span", null, [
|
|
2713
2725
|
d("button", {
|
|
2714
|
-
class:
|
|
2715
|
-
disabled:
|
|
2726
|
+
class: b(m({ active: P, disabled: L })),
|
|
2727
|
+
disabled: L,
|
|
2716
2728
|
onClick: (v) => u($, v)
|
|
2717
2729
|
}, [
|
|
2718
|
-
|
|
2719
|
-
|
|
2730
|
+
R(g.$slots, "item", { item: $ }, () => [
|
|
2731
|
+
M(I($.title), 1)
|
|
2720
2732
|
])
|
|
2721
|
-
], 10,
|
|
2733
|
+
], 10, sn)
|
|
2722
2734
|
])), [
|
|
2723
|
-
[n(
|
|
2735
|
+
[n(Ue), $.disabled && $.disabledTooltip]
|
|
2724
2736
|
])
|
|
2725
2737
|
]),
|
|
2726
2738
|
_: 2
|
|
@@ -2736,33 +2748,33 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2736
2748
|
_: 3
|
|
2737
2749
|
}));
|
|
2738
2750
|
}
|
|
2739
|
-
}),
|
|
2751
|
+
}), ln = { class: "flex flex-col space-y-4" }, nn = { class: "flex space-x-6" }, Yn = /* @__PURE__ */ O({
|
|
2740
2752
|
__name: "Tabs",
|
|
2741
2753
|
props: {
|
|
2742
2754
|
items: null
|
|
2743
2755
|
},
|
|
2744
2756
|
setup(e) {
|
|
2745
|
-
const l = e, t =
|
|
2757
|
+
const l = e, t = z(null), s = c(() => t.value && l.items.find((f) => f.id === t.value) || l.items[0]), o = (f) => {
|
|
2746
2758
|
t.value = f.id;
|
|
2747
2759
|
};
|
|
2748
|
-
return (f,
|
|
2749
|
-
d("div",
|
|
2750
|
-
(a(!0), p(
|
|
2751
|
-
key:
|
|
2760
|
+
return (f, r) => (a(), p("div", ln, [
|
|
2761
|
+
d("div", nn, [
|
|
2762
|
+
(a(!0), p(F, null, E(e.items, (i) => (a(), j(ee, {
|
|
2763
|
+
key: i.id,
|
|
2752
2764
|
link: "",
|
|
2753
|
-
color: s.value.id ===
|
|
2754
|
-
onClick: (m) => o(
|
|
2765
|
+
color: s.value.id === i.id ? "default" : "secondary",
|
|
2766
|
+
onClick: (m) => o(i)
|
|
2755
2767
|
}, {
|
|
2756
|
-
default:
|
|
2757
|
-
|
|
2768
|
+
default: B(() => [
|
|
2769
|
+
M(I(i.title), 1)
|
|
2758
2770
|
]),
|
|
2759
2771
|
_: 2
|
|
2760
2772
|
}, 1032, ["color", "onClick"]))), 128))
|
|
2761
2773
|
]),
|
|
2762
|
-
|
|
2774
|
+
R(f.$slots, "default", { activeItem: s.value })
|
|
2763
2775
|
]));
|
|
2764
2776
|
}
|
|
2765
|
-
}),
|
|
2777
|
+
}), an = { class: "text-foreground" }, on = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, rn = ["onClick", "onKeypress"], un = /* @__PURE__ */ d("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), cn = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, Zn = /* @__PURE__ */ O({
|
|
2766
2778
|
__name: "Table",
|
|
2767
2779
|
props: {
|
|
2768
2780
|
items: null,
|
|
@@ -2773,53 +2785,53 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2773
2785
|
},
|
|
2774
2786
|
setup(e) {
|
|
2775
2787
|
const l = e, t = c(() => {
|
|
2776
|
-
const
|
|
2777
|
-
let
|
|
2778
|
-
return
|
|
2779
|
-
}), s = (
|
|
2780
|
-
var
|
|
2781
|
-
return ((
|
|
2782
|
-
}, o = (
|
|
2783
|
-
const m = s(
|
|
2784
|
-
return
|
|
2785
|
-
}, f = (
|
|
2786
|
-
var
|
|
2787
|
-
(
|
|
2788
|
+
const r = (l.buttons || []).length;
|
|
2789
|
+
let i = 16;
|
|
2790
|
+
return r > 0 && (i = 48 + (r - 1) * 42), `${i}px`;
|
|
2791
|
+
}), s = (r) => {
|
|
2792
|
+
var i;
|
|
2793
|
+
return ((i = l.columns.find((m) => m.id === r)) == null ? void 0 : i.classes) || "";
|
|
2794
|
+
}, o = (r, i) => {
|
|
2795
|
+
const m = s(r);
|
|
2796
|
+
return i === 0 ? `bg-transparent py-3 pr-5 px-1 ${m}` : `lg:p-0 px-1 ${m}`;
|
|
2797
|
+
}, f = (r) => {
|
|
2798
|
+
var i;
|
|
2799
|
+
(i = l.onRowClick) == null || i.call(l, r);
|
|
2788
2800
|
};
|
|
2789
|
-
return (
|
|
2790
|
-
d("div",
|
|
2801
|
+
return (r, i) => (a(), p("div", an, [
|
|
2802
|
+
d("div", on, [
|
|
2791
2803
|
e.items.length > 0 ? (a(), p("div", {
|
|
2792
2804
|
key: 0,
|
|
2793
2805
|
class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[900px]",
|
|
2794
2806
|
style: re({ paddingRight: t.value })
|
|
2795
2807
|
}, [
|
|
2796
|
-
(a(!0), p(
|
|
2808
|
+
(a(!0), p(F, null, E(e.columns, (m) => (a(), p("div", {
|
|
2797
2809
|
key: m.id,
|
|
2798
|
-
class:
|
|
2799
|
-
},
|
|
2800
|
-
], 4)) :
|
|
2810
|
+
class: b([s(m.id), "capitalize"])
|
|
2811
|
+
}, I(m.header), 3))), 128))
|
|
2812
|
+
], 4)) : S("", !0),
|
|
2801
2813
|
d("div", {
|
|
2802
|
-
class:
|
|
2814
|
+
class: b(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
|
|
2803
2815
|
}, [
|
|
2804
|
-
(a(!0), p(
|
|
2816
|
+
(a(!0), p(F, null, E(e.items, (m) => (a(), p("div", {
|
|
2805
2817
|
key: m.id,
|
|
2806
|
-
class:
|
|
2818
|
+
class: b(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
|
|
2807
2819
|
style: re({ paddingRight: t.value }),
|
|
2808
2820
|
tabindex: "0",
|
|
2809
2821
|
onClick: (u) => f(m),
|
|
2810
2822
|
onKeypress: (u) => f(m)
|
|
2811
2823
|
}, [
|
|
2812
|
-
(a(!0), p(
|
|
2824
|
+
(a(!0), p(F, null, E(e.columns, (u, y) => (a(), p("div", {
|
|
2813
2825
|
key: u.id,
|
|
2814
|
-
class:
|
|
2826
|
+
class: b(o(u.id, y)),
|
|
2815
2827
|
tabindex: "0"
|
|
2816
2828
|
}, [
|
|
2817
|
-
|
|
2818
|
-
|
|
2829
|
+
R(r.$slots, u.id, { item: m }, () => [
|
|
2830
|
+
un
|
|
2819
2831
|
])
|
|
2820
2832
|
], 2))), 128)),
|
|
2821
|
-
d("div",
|
|
2822
|
-
(a(!0), p(
|
|
2833
|
+
d("div", cn, [
|
|
2834
|
+
(a(!0), p(F, null, E(e.buttons, (u) => (a(), p("div", {
|
|
2823
2835
|
key: u.label
|
|
2824
2836
|
}, [
|
|
2825
2837
|
V(n(ee), {
|
|
@@ -2827,17 +2839,17 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2827
2839
|
size: "sm",
|
|
2828
2840
|
color: "secondary",
|
|
2829
2841
|
"hide-text": "",
|
|
2830
|
-
class:
|
|
2842
|
+
class: b(u.class),
|
|
2831
2843
|
onClick: ue((y) => u.action(m), ["stop"])
|
|
2832
2844
|
}, null, 8, ["icon-left", "class", "onClick"])
|
|
2833
2845
|
]))), 128))
|
|
2834
2846
|
])
|
|
2835
|
-
], 46,
|
|
2847
|
+
], 46, rn))), 128))
|
|
2836
2848
|
], 2)
|
|
2837
2849
|
])
|
|
2838
2850
|
]));
|
|
2839
2851
|
}
|
|
2840
|
-
}),
|
|
2852
|
+
}), dn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, fn = { class: "inline-flex items-center space-x-1" }, pn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), hn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, mn = { class: "inline-flex items-center space-x-1" }, gn = /* @__PURE__ */ d("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), ea = /* @__PURE__ */ O({
|
|
2841
2853
|
__name: "InfiniteLoading",
|
|
2842
2854
|
props: {
|
|
2843
2855
|
settings: null,
|
|
@@ -2845,8 +2857,8 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2845
2857
|
},
|
|
2846
2858
|
emits: ["infinite"],
|
|
2847
2859
|
setup(e) {
|
|
2848
|
-
const l =
|
|
2849
|
-
return
|
|
2860
|
+
const l = z(null), t = z(!1);
|
|
2861
|
+
return Ie && Z(() => {
|
|
2850
2862
|
const s = setInterval(() => {
|
|
2851
2863
|
var o;
|
|
2852
2864
|
(o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
|
|
@@ -2855,48 +2867,48 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2855
2867
|
ref_key: "wrapper",
|
|
2856
2868
|
ref: l
|
|
2857
2869
|
}, [
|
|
2858
|
-
t.value ? (a(),
|
|
2870
|
+
t.value ? (a(), j(n(Xt), ie({ key: 0 }, s.$props.settings || {}, {
|
|
2859
2871
|
onInfinite: o[0] || (o[0] = (f) => s.$emit("infinite", f))
|
|
2860
2872
|
}), {
|
|
2861
|
-
spinner:
|
|
2862
|
-
V(
|
|
2873
|
+
spinner: B(() => [
|
|
2874
|
+
V(Ne, {
|
|
2863
2875
|
loading: !0,
|
|
2864
2876
|
class: "my-2"
|
|
2865
2877
|
})
|
|
2866
2878
|
]),
|
|
2867
|
-
complete:
|
|
2868
|
-
d("div",
|
|
2869
|
-
d("div",
|
|
2870
|
-
V(n(
|
|
2871
|
-
|
|
2879
|
+
complete: B(() => [
|
|
2880
|
+
d("div", dn, [
|
|
2881
|
+
d("div", fn, [
|
|
2882
|
+
V(n(bt), { class: "w-5 h-5 text-success" }),
|
|
2883
|
+
pn
|
|
2872
2884
|
])
|
|
2873
2885
|
])
|
|
2874
2886
|
]),
|
|
2875
|
-
error:
|
|
2876
|
-
d("div",
|
|
2877
|
-
d("div",
|
|
2878
|
-
V(n(
|
|
2879
|
-
|
|
2887
|
+
error: B(({ retry: f }) => [
|
|
2888
|
+
d("div", hn, [
|
|
2889
|
+
d("div", mn, [
|
|
2890
|
+
V(n(yt), { class: "w-5 h-5 text-danger" }),
|
|
2891
|
+
gn
|
|
2880
2892
|
]),
|
|
2881
|
-
e.allowRetry ? (a(),
|
|
2893
|
+
e.allowRetry ? (a(), j(ee, {
|
|
2882
2894
|
key: 0,
|
|
2883
2895
|
onClick: f
|
|
2884
2896
|
}, {
|
|
2885
|
-
default:
|
|
2886
|
-
|
|
2897
|
+
default: B(() => [
|
|
2898
|
+
M("Retry")
|
|
2887
2899
|
]),
|
|
2888
2900
|
_: 2
|
|
2889
|
-
}, 1032, ["onClick"])) :
|
|
2901
|
+
}, 1032, ["onClick"])) : S("", !0)
|
|
2890
2902
|
])
|
|
2891
2903
|
]),
|
|
2892
2904
|
_: 1
|
|
2893
|
-
}, 16)) :
|
|
2905
|
+
}, 16)) : S("", !0)
|
|
2894
2906
|
], 512));
|
|
2895
2907
|
}
|
|
2896
|
-
}),
|
|
2908
|
+
}), vn = { class: "relative group" }, bn = {
|
|
2897
2909
|
key: 0,
|
|
2898
2910
|
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"
|
|
2899
|
-
},
|
|
2911
|
+
}, ta = /* @__PURE__ */ O({
|
|
2900
2912
|
__name: "Panel",
|
|
2901
2913
|
props: {
|
|
2902
2914
|
/**
|
|
@@ -2939,42 +2951,42 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2939
2951
|
), o = c(
|
|
2940
2952
|
() => t.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
2941
2953
|
), f = c(() => {
|
|
2942
|
-
const
|
|
2943
|
-
return t.noShadow ||
|
|
2954
|
+
const r = ["rounded-lg"];
|
|
2955
|
+
return t.noShadow || r.push("shadow"), t.ring && r.push("ring-outline-2 hover:ring-2"), t.panelClasses && r.push(t.panelClasses), r.join(" ");
|
|
2944
2956
|
});
|
|
2945
|
-
return (
|
|
2946
|
-
e.fancyGlow ? (a(), p("div",
|
|
2947
|
-
(a(),
|
|
2948
|
-
class:
|
|
2957
|
+
return (r, i) => (a(), p("div", vn, [
|
|
2958
|
+
e.fancyGlow ? (a(), p("div", bn)) : S("", !0),
|
|
2959
|
+
(a(), j(G(e.form ? "form" : "div"), {
|
|
2960
|
+
class: b([
|
|
2949
2961
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2950
2962
|
f.value
|
|
2951
2963
|
]),
|
|
2952
|
-
onSubmit:
|
|
2964
|
+
onSubmit: i[0] || (i[0] = (m) => l("submit", m))
|
|
2953
2965
|
}, {
|
|
2954
|
-
default:
|
|
2955
|
-
|
|
2966
|
+
default: B(() => [
|
|
2967
|
+
r.$slots.header ? (a(), p("div", {
|
|
2956
2968
|
key: 0,
|
|
2957
|
-
class:
|
|
2969
|
+
class: b(s.value)
|
|
2958
2970
|
}, [
|
|
2959
|
-
|
|
2960
|
-
], 2)) :
|
|
2971
|
+
R(r.$slots, "header")
|
|
2972
|
+
], 2)) : S("", !0),
|
|
2961
2973
|
d("div", {
|
|
2962
|
-
class:
|
|
2974
|
+
class: b(["grow", o.value])
|
|
2963
2975
|
}, [
|
|
2964
|
-
|
|
2976
|
+
R(r.$slots, "default")
|
|
2965
2977
|
], 2),
|
|
2966
|
-
|
|
2978
|
+
r.$slots.footer ? (a(), p("div", {
|
|
2967
2979
|
key: 1,
|
|
2968
|
-
class:
|
|
2980
|
+
class: b(s.value)
|
|
2969
2981
|
}, [
|
|
2970
|
-
|
|
2971
|
-
], 2)) :
|
|
2982
|
+
R(r.$slots, "footer")
|
|
2983
|
+
], 2)) : S("", !0)
|
|
2972
2984
|
]),
|
|
2973
2985
|
_: 3
|
|
2974
2986
|
}, 40, ["class"]))
|
|
2975
2987
|
]));
|
|
2976
2988
|
}
|
|
2977
|
-
}),
|
|
2989
|
+
}), yn = { class: "flex-shrink-0" }, xn = /* @__PURE__ */ d("span", { class: "sr-only" }, "Dismiss", -1), sa = /* @__PURE__ */ O({
|
|
2978
2990
|
__name: "Alert",
|
|
2979
2991
|
props: {
|
|
2980
2992
|
color: { default: "success" },
|
|
@@ -2985,19 +2997,19 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
2985
2997
|
},
|
|
2986
2998
|
emits: ["dismiss"],
|
|
2987
2999
|
setup(e) {
|
|
2988
|
-
const l = e, t =
|
|
3000
|
+
const l = e, t = ke(), s = c(() => !!t.description), o = c(() => {
|
|
2989
3001
|
if (l.customIcon)
|
|
2990
3002
|
return l.customIcon;
|
|
2991
3003
|
switch (l.color) {
|
|
2992
3004
|
case "info":
|
|
2993
|
-
return
|
|
3005
|
+
return $t;
|
|
2994
3006
|
case "warning":
|
|
2995
|
-
return
|
|
3007
|
+
return Ce;
|
|
2996
3008
|
case "danger":
|
|
2997
|
-
return
|
|
3009
|
+
return Ct;
|
|
2998
3010
|
case "success":
|
|
2999
3011
|
default:
|
|
3000
|
-
return
|
|
3012
|
+
return Ee;
|
|
3001
3013
|
}
|
|
3002
3014
|
}), f = c(() => {
|
|
3003
3015
|
const h = [];
|
|
@@ -3025,7 +3037,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3025
3037
|
break;
|
|
3026
3038
|
}
|
|
3027
3039
|
return h.join(" ");
|
|
3028
|
-
}),
|
|
3040
|
+
}), r = c(() => {
|
|
3029
3041
|
const h = [];
|
|
3030
3042
|
if (s.value)
|
|
3031
3043
|
h.push("");
|
|
@@ -3040,7 +3052,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3040
3052
|
break;
|
|
3041
3053
|
}
|
|
3042
3054
|
return h.join(" ");
|
|
3043
|
-
}),
|
|
3055
|
+
}), i = c(() => {
|
|
3044
3056
|
const h = ["grow"];
|
|
3045
3057
|
switch (s.value || h.push("flex items-center space-x-2"), l.size) {
|
|
3046
3058
|
case "xs":
|
|
@@ -3065,17 +3077,17 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3065
3077
|
}
|
|
3066
3078
|
return h.join(" ");
|
|
3067
3079
|
}), u = c(() => {
|
|
3068
|
-
var
|
|
3080
|
+
var x;
|
|
3069
3081
|
const h = ["flex"];
|
|
3070
3082
|
s.value || h.push("grow justify-end");
|
|
3071
|
-
const
|
|
3083
|
+
const _ = s.value && ((x = l.actions) == null ? void 0 : x.length);
|
|
3072
3084
|
switch (l.size) {
|
|
3073
3085
|
case "xs":
|
|
3074
|
-
h.push("space-x-1"),
|
|
3086
|
+
h.push("space-x-1"), _ && h.push("mt-1");
|
|
3075
3087
|
break;
|
|
3076
3088
|
case "default":
|
|
3077
3089
|
default:
|
|
3078
|
-
h.push("space-x-2"),
|
|
3090
|
+
h.push("space-x-2"), _ && h.push("mt-4");
|
|
3079
3091
|
break;
|
|
3080
3092
|
}
|
|
3081
3093
|
return h.join(" ");
|
|
@@ -3139,7 +3151,7 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3139
3151
|
break;
|
|
3140
3152
|
}
|
|
3141
3153
|
return h.join(" ");
|
|
3142
|
-
}),
|
|
3154
|
+
}), C = c(() => {
|
|
3143
3155
|
switch (l.size) {
|
|
3144
3156
|
case "xs":
|
|
3145
3157
|
return "xs";
|
|
@@ -3148,49 +3160,49 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3148
3160
|
return "sm";
|
|
3149
3161
|
}
|
|
3150
3162
|
});
|
|
3151
|
-
return (h,
|
|
3152
|
-
class:
|
|
3163
|
+
return (h, _) => (a(), p("div", {
|
|
3164
|
+
class: b(["rounded-md", [f.value, y.value]])
|
|
3153
3165
|
}, [
|
|
3154
3166
|
d("div", {
|
|
3155
|
-
class:
|
|
3167
|
+
class: b(["flex", r.value])
|
|
3156
3168
|
}, [
|
|
3157
|
-
d("div",
|
|
3158
|
-
(a(),
|
|
3159
|
-
class:
|
|
3169
|
+
d("div", yn, [
|
|
3170
|
+
(a(), j(G(o.value), {
|
|
3171
|
+
class: b(k.value),
|
|
3160
3172
|
"aria-hidden": "true"
|
|
3161
3173
|
}, null, 8, ["class"]))
|
|
3162
3174
|
]),
|
|
3163
3175
|
d("div", {
|
|
3164
|
-
class:
|
|
3176
|
+
class: b(i.value)
|
|
3165
3177
|
}, [
|
|
3166
3178
|
d("h3", {
|
|
3167
|
-
class:
|
|
3179
|
+
class: b(["text-sm", [s.value ? "font-medium" : ""]])
|
|
3168
3180
|
}, [
|
|
3169
|
-
|
|
3170
|
-
|
|
3181
|
+
R(h.$slots, "title", {}, () => [
|
|
3182
|
+
M("Title")
|
|
3171
3183
|
])
|
|
3172
3184
|
], 2),
|
|
3173
3185
|
s.value ? (a(), p("div", {
|
|
3174
3186
|
key: 0,
|
|
3175
|
-
class:
|
|
3187
|
+
class: b(m.value)
|
|
3176
3188
|
}, [
|
|
3177
|
-
|
|
3178
|
-
|
|
3189
|
+
R(h.$slots, "description", {}, () => [
|
|
3190
|
+
M(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
3179
3191
|
])
|
|
3180
|
-
], 2)) :
|
|
3192
|
+
], 2)) : S("", !0),
|
|
3181
3193
|
d("div", {
|
|
3182
|
-
class:
|
|
3194
|
+
class: b(u.value)
|
|
3183
3195
|
}, [
|
|
3184
|
-
(a(!0), p(
|
|
3196
|
+
(a(!0), p(F, null, E(e.actions || [], (x, $) => (a(), j(ee, {
|
|
3185
3197
|
key: $,
|
|
3186
3198
|
color: e.color,
|
|
3187
|
-
size:
|
|
3188
|
-
to:
|
|
3189
|
-
external:
|
|
3190
|
-
onClick: (
|
|
3199
|
+
size: C.value,
|
|
3200
|
+
to: x.url,
|
|
3201
|
+
external: x.externalUrl || !1,
|
|
3202
|
+
onClick: (P) => x.onClick || n(ot)
|
|
3191
3203
|
}, {
|
|
3192
|
-
default:
|
|
3193
|
-
|
|
3204
|
+
default: B(() => [
|
|
3205
|
+
M(I(x.title), 1)
|
|
3194
3206
|
]),
|
|
3195
3207
|
_: 2
|
|
3196
3208
|
}, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
|
|
@@ -3198,74 +3210,74 @@ const ln = ["disabled", "onClick"], Yn = /* @__PURE__ */ j({
|
|
|
3198
3210
|
], 2),
|
|
3199
3211
|
e.withDismiss ? (a(), p("div", {
|
|
3200
3212
|
key: 0,
|
|
3201
|
-
class:
|
|
3213
|
+
class: b(["flex", [s.value ? "items-start" : "items-center"]])
|
|
3202
3214
|
}, [
|
|
3203
3215
|
d("button", {
|
|
3204
3216
|
type: "button",
|
|
3205
|
-
class:
|
|
3206
|
-
onClick:
|
|
3217
|
+
class: b(["inline-flex rounded-md focus:outline-none focus:ring-2", g.value]),
|
|
3218
|
+
onClick: _[0] || (_[0] = (x) => h.$emit("dismiss"))
|
|
3207
3219
|
}, [
|
|
3208
|
-
|
|
3209
|
-
V(n(
|
|
3220
|
+
xn,
|
|
3221
|
+
V(n(pe), {
|
|
3210
3222
|
class: "h-5 w-5",
|
|
3211
3223
|
"aria-hidden": "true"
|
|
3212
3224
|
})
|
|
3213
3225
|
], 2)
|
|
3214
|
-
], 2)) :
|
|
3226
|
+
], 2)) : S("", !0)
|
|
3215
3227
|
], 2)
|
|
3216
3228
|
], 2));
|
|
3217
3229
|
}
|
|
3218
3230
|
});
|
|
3219
|
-
function
|
|
3220
|
-
var h,
|
|
3221
|
-
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: f = !0, debugging:
|
|
3222
|
-
const
|
|
3223
|
-
return u(`debugging: '${
|
|
3224
|
-
} : l, k =
|
|
3225
|
-
return
|
|
3231
|
+
function la(e) {
|
|
3232
|
+
var h, _;
|
|
3233
|
+
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: f = !0, debugging: r } = e, i = r == null ? void 0 : r.log, m = () => (new Error("Trace:").stack || "").substring(7), u = ((_ = (h = e.debugging) == null ? void 0 : h.log) == null ? void 0 : _.logger) || console.debug, y = i && !i.writesOnly ? () => {
|
|
3234
|
+
const x = l();
|
|
3235
|
+
return u(`debugging: '${i.name}' read`, x, m()), x;
|
|
3236
|
+
} : l, k = i && !i.readsOnly ? (x) => (u(`debugging: '${i.name}' written to`, x, m()), o(x)) : o, g = f ? jt(y, t, s) : c(y), C = c(() => g.value);
|
|
3237
|
+
return C.update = k, C;
|
|
3226
3238
|
}
|
|
3227
3239
|
export {
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3240
|
+
sa as CommonAlert,
|
|
3241
|
+
qe as CommonBadge,
|
|
3242
|
+
Ne as CommonLoadingBar,
|
|
3243
|
+
Mn as CommonStepsBullet,
|
|
3244
|
+
An as CommonStepsNumber,
|
|
3245
|
+
Qt as CommonTextLink,
|
|
3234
3246
|
ee as FormButton,
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3247
|
+
zn as FormCardButton,
|
|
3248
|
+
Rn as FormCheckbox,
|
|
3249
|
+
Un as FormSelectBadges,
|
|
3250
|
+
Je as FormSelectBase,
|
|
3251
|
+
En as FormSelectSourceApps,
|
|
3252
|
+
Wn as FormSwitch,
|
|
3241
3253
|
Tn as FormTextArea,
|
|
3242
|
-
|
|
3243
|
-
|
|
3254
|
+
Dn as FormTextInput,
|
|
3255
|
+
On as GlobalToastRenderer,
|
|
3244
3256
|
J as GridListToggleValue,
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3257
|
+
ye as HorizontalDirection,
|
|
3258
|
+
ea as InfiniteLoading,
|
|
3259
|
+
Kn as LayoutDialog,
|
|
3260
|
+
Xn as LayoutDisclosure,
|
|
3261
|
+
Nn as LayoutGridListToggle,
|
|
3262
|
+
Qn as LayoutMenu,
|
|
3263
|
+
ta as LayoutPanel,
|
|
3264
|
+
Zn as LayoutTable,
|
|
3265
|
+
Yn as LayoutTabs,
|
|
3254
3266
|
ne as ModifierKeys,
|
|
3255
|
-
|
|
3267
|
+
Al as SourceAppBadge,
|
|
3256
3268
|
le as TailwindBreakpoints,
|
|
3257
|
-
|
|
3269
|
+
Zl as ThrottleOrDebounce,
|
|
3258
3270
|
se as ToastNotificationType,
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3271
|
+
Fn as ValidationHelpers,
|
|
3272
|
+
be as clientOs,
|
|
3273
|
+
qn as getKeyboardShortcutTitle,
|
|
3274
|
+
Hn as onKeyboardShortcut,
|
|
3275
|
+
Gn as useFormCheckboxModel,
|
|
3276
|
+
Xe as useFormSelectChildInternals,
|
|
3277
|
+
Jn as useOnBeforeWindowUnload,
|
|
3278
|
+
tn as useResponsiveHorizontalDirectionCalculation,
|
|
3279
|
+
en as useWindowResizeHandler,
|
|
3280
|
+
hl as useWrappingContainerHiddenCount,
|
|
3281
|
+
la as writableAsyncComputed
|
|
3270
3282
|
};
|
|
3271
3283
|
//# sourceMappingURL=lib.js.map
|