@speckle/ui-components 2.15.2-alpha1 → 2.15.2-alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layout/Dialog.vue.d.ts +26 -0
- package/dist/composables/form/input.d.ts +14 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +2 -2
- package/dist/lib.js +1122 -1085
- 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 M, resolveDynamicComponent as H, computed as u, openBlock as a, createBlock as P, normalizeClass as y, withCtx as B, createCommentVNode as S, renderSlot as D, createTextVNode as A, createElementBlock as h, createElementVNode as i, createVNode as L, Transition as ge, unref as n, toDisplayString as I, toRefs as ae, Fragment as U, renderList as G, ref as O, onMounted as Y, mergeProps as oe, withDirectives as ne, isRef as ve, vModelText as Ve, useSlots as Oe, vModelDynamic as Xe, pushScopeId as Ne, popScopeId as Je, watch as le, withModifiers as be, normalizeStyle as fe, onBeforeUnmount as Me } from "vue";
|
|
2
|
+
import { isObjectLike as Be, clamp as Le, isString as ie, isUndefined as Q, isArray as q, debounce as Ae, throttle as Qe, noop as Ye } from "lodash";
|
|
3
|
+
import { ArrowPathIcon as Ze, ChevronUpIcon as De, ChevronDownIcon as et, XMarkIcon as tt, MagnifyingGlassIcon as st, CheckIcon as nt, Bars3Icon as lt, Squares2X2Icon as at } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { CheckCircleIcon as ot, XCircleIcon as rt, ExclamationCircleIcon as it, InformationCircleIcon as ut, XMarkIcon as ct, CheckIcon as dt, ExclamationTriangleIcon as ft } from "@heroicons/vue/24/outline";
|
|
5
|
+
import { XMarkIcon as ue, CheckIcon as pt, CheckCircleIcon as Te, ExclamationCircleIcon as Re, EnvelopeIcon as ht, KeyIcon as mt } from "@heroicons/vue/20/solid";
|
|
6
|
+
import { useField as ye } from "vee-validate";
|
|
7
|
+
import { nanoid as xe } from "nanoid";
|
|
8
|
+
import { isNullOrUndefined as gt, SourceApps as vt, getClientOperatingSystem as bt, OperatingSystem as pe } from "@speckle/shared";
|
|
9
|
+
import { useResizeObserver as yt, useMutationObserver as xt, onKeyDown as kt, isClient as ke, computedAsync as Ct } from "@vueuse/core";
|
|
10
|
+
import { Listbox as wt, ListboxLabel as $t, ListboxButton as St, ListboxOptions as It, ListboxOption as _t, TransitionRoot as Bt, Dialog as Lt, TransitionChild as Pe, DialogPanel as Pt, Disclosure as jt, DisclosureButton as Vt, DisclosurePanel as Ot, Menu as Mt, MenuButton as At, MenuItems as Dt, MenuItem as Tt } from "@headlessui/vue";
|
|
11
|
+
import { directive as Fe } from "vue-tippy";
|
|
12
|
+
import Rt from "v3-infinite-loading";
|
|
13
|
+
const Ft = {
|
|
14
14
|
key: 2,
|
|
15
15
|
style: { margin: "0 !important", width: "0.01px" }
|
|
16
|
-
},
|
|
16
|
+
}, zt = /* @__PURE__ */ M({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -140,13 +140,13 @@ const Tt = {
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
|
-
setup(e, { emit:
|
|
144
|
-
const t = e,
|
|
143
|
+
setup(e, { emit: l }) {
|
|
144
|
+
const t = e, s = H("NuxtLink"), o = H("RouterLink"), c = u(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Be(s) ? s : Be(o) ? o : "a"), f = u(() => {
|
|
145
145
|
if (!t.to)
|
|
146
146
|
return t.submit ? "submit" : "button";
|
|
147
|
-
}),
|
|
147
|
+
}), p = u(() => t.disabled || t.loading), r = u(() => t.loading ? Ze : t.iconLeft), d = u(() => {
|
|
148
148
|
const g = [];
|
|
149
|
-
if (g.push("border-2"),
|
|
149
|
+
if (g.push("border-2"), p.value)
|
|
150
150
|
g.push(
|
|
151
151
|
t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
152
152
|
);
|
|
@@ -187,10 +187,10 @@ const Tt = {
|
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
return g.join(" ");
|
|
190
|
-
}),
|
|
190
|
+
}), x = u(() => {
|
|
191
191
|
const g = [];
|
|
192
192
|
if (!t.text && !t.link)
|
|
193
|
-
if (
|
|
193
|
+
if (p.value)
|
|
194
194
|
g.push(
|
|
195
195
|
(t.outlined, "text-foreground-disabled")
|
|
196
196
|
);
|
|
@@ -237,16 +237,16 @@ const Tt = {
|
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
else
|
|
240
|
-
|
|
240
|
+
p.value ? g.push("text-foreground-disabled") : t.color === "invert" ? g.push(
|
|
241
241
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
242
|
) : t.color === "secondary" ? g.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? g.push("text-success") : t.color === "warning" ? g.push("text-warning") : t.color === "info" ? g.push("text-info") : t.color === "danger" ? g.push("text-danger") : g.push("text-primary hover:text-primary-focus");
|
|
243
243
|
return g.join(" ");
|
|
244
|
-
}), v =
|
|
244
|
+
}), v = u(() => {
|
|
245
245
|
const g = [];
|
|
246
246
|
return g.push(t.rounded ? "rounded-full" : "rounded-md"), g.join(" ");
|
|
247
|
-
}),
|
|
247
|
+
}), m = u(() => {
|
|
248
248
|
const g = [];
|
|
249
|
-
if (!
|
|
249
|
+
if (!p.value)
|
|
250
250
|
switch (t.color) {
|
|
251
251
|
case "invert":
|
|
252
252
|
g.push("hover:ring-4 ring-white/50");
|
|
@@ -269,7 +269,7 @@ const Tt = {
|
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
return g.join(" ");
|
|
272
|
-
}),
|
|
272
|
+
}), k = u(() => {
|
|
273
273
|
switch (t.size) {
|
|
274
274
|
case "xs":
|
|
275
275
|
return "h-5 text-xs font-medium xxx-tracking-wide";
|
|
@@ -283,7 +283,7 @@ const Tt = {
|
|
|
283
283
|
case "base":
|
|
284
284
|
return "h-8 text-base font-medium xxx-tracking-wide";
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
286
|
+
}), _ = u(() => {
|
|
287
287
|
switch (t.size) {
|
|
288
288
|
case "xs":
|
|
289
289
|
return "px-1";
|
|
@@ -297,28 +297,28 @@ const Tt = {
|
|
|
297
297
|
case "base":
|
|
298
298
|
return "px-3";
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), j = u(() => {
|
|
301
301
|
const g = [];
|
|
302
|
-
return t.fullWidth && g.push("w-full"),
|
|
303
|
-
}),
|
|
302
|
+
return t.fullWidth && g.push("w-full"), p.value && g.push("cursor-not-allowed"), g.join(" ");
|
|
303
|
+
}), b = u(() => {
|
|
304
304
|
const g = [];
|
|
305
|
-
return !
|
|
305
|
+
return !p.value && !t.link && !t.text && g.push("active:scale-[0.97]"), !p.value && t.link && g.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
307
|
), g.join(" ");
|
|
308
|
-
}),
|
|
308
|
+
}), w = u(() => {
|
|
309
309
|
const g = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
312
|
-
|
|
313
|
-
y.value,
|
|
312
|
+
j.value,
|
|
314
313
|
k.value,
|
|
315
|
-
|
|
314
|
+
x.value,
|
|
315
|
+
g ? "" : d.value,
|
|
316
316
|
g ? "" : v.value,
|
|
317
|
-
g ? "" :
|
|
318
|
-
t.link ? "" :
|
|
319
|
-
|
|
317
|
+
g ? "" : m.value,
|
|
318
|
+
t.link ? "" : _.value,
|
|
319
|
+
b.value
|
|
320
320
|
].join(" ");
|
|
321
|
-
}),
|
|
321
|
+
}), $ = u(() => {
|
|
322
322
|
const g = [""];
|
|
323
323
|
switch (t.loading && g.push("animate-spin"), t.size) {
|
|
324
324
|
case "xs":
|
|
@@ -339,46 +339,46 @@ const Tt = {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
return g.join(" ");
|
|
342
|
-
}),
|
|
343
|
-
if (
|
|
342
|
+
}), F = (g) => {
|
|
343
|
+
if (p.value) {
|
|
344
344
|
g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
l("click", g);
|
|
348
348
|
};
|
|
349
|
-
return (g,
|
|
349
|
+
return (g, R) => (a(), P(H(e.to ? c.value : "button"), {
|
|
350
350
|
href: e.to,
|
|
351
351
|
to: e.to,
|
|
352
352
|
type: f.value,
|
|
353
353
|
external: e.external,
|
|
354
|
-
class:
|
|
355
|
-
disabled:
|
|
354
|
+
class: y(w.value),
|
|
355
|
+
disabled: p.value,
|
|
356
356
|
role: "button",
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: F
|
|
358
358
|
}, {
|
|
359
|
-
default:
|
|
360
|
-
|
|
359
|
+
default: B(() => [
|
|
360
|
+
r.value ? (a(), P(H(r.value), {
|
|
361
361
|
key: 0,
|
|
362
|
-
class:
|
|
362
|
+
class: y(`${$.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
363
|
}, null, 8, ["class"])) : S("", !0),
|
|
364
|
-
e.hideText ? (a(),
|
|
365
|
-
|
|
364
|
+
e.hideText ? (a(), h("div", Ft, " ")) : D(g.$slots, "default", { key: 1 }, () => [
|
|
365
|
+
A("Button")
|
|
366
366
|
], !0),
|
|
367
|
-
e.iconRight || !e.loading ? (a(),
|
|
367
|
+
e.iconRight || !e.loading ? (a(), P(H(e.iconRight), {
|
|
368
368
|
key: 3,
|
|
369
|
-
class:
|
|
369
|
+
class: y(`${$.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
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 ze = (e, l) => {
|
|
377
377
|
const t = e.__vccOpts || e;
|
|
378
|
-
for (const [
|
|
379
|
-
t[
|
|
378
|
+
for (const [s, o] of l)
|
|
379
|
+
t[s] = o;
|
|
380
380
|
return t;
|
|
381
|
-
}, re = /* @__PURE__ */
|
|
381
|
+
}, re = /* @__PURE__ */ ze(zt, [["__scopeId", "data-v-38aa371e"]]), Et = /* @__PURE__ */ M({
|
|
382
382
|
__name: "Link",
|
|
383
383
|
props: {
|
|
384
384
|
to: {
|
|
@@ -427,15 +427,15 @@ const Re = (e, n) => {
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
emits: ["click"],
|
|
430
|
-
setup(e, { emit:
|
|
431
|
-
const t = e,
|
|
430
|
+
setup(e, { emit: l }) {
|
|
431
|
+
const t = e, s = (o) => {
|
|
432
432
|
if (t.disabled) {
|
|
433
433
|
o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation();
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
|
-
|
|
436
|
+
l("click", o);
|
|
437
437
|
};
|
|
438
|
-
return (o,
|
|
438
|
+
return (o, c) => (a(), P(re, {
|
|
439
439
|
link: "",
|
|
440
440
|
to: e.to,
|
|
441
441
|
external: e.external,
|
|
@@ -446,54 +446,54 @@ const Re = (e, n) => {
|
|
|
446
446
|
"icon-right": e.iconRight,
|
|
447
447
|
"hide-text": e.hideText,
|
|
448
448
|
role: "link",
|
|
449
|
-
onClickCapture:
|
|
449
|
+
onClickCapture: s
|
|
450
450
|
}, {
|
|
451
|
-
default:
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
default: B(() => [
|
|
452
|
+
D(o.$slots, "default", {}, () => [
|
|
453
|
+
A("Link")
|
|
454
454
|
])
|
|
455
455
|
]),
|
|
456
456
|
_: 3
|
|
457
457
|
}, 8, ["to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
|
-
var
|
|
461
|
-
const
|
|
460
|
+
var ee = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(ee || {});
|
|
461
|
+
const Ut = {
|
|
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
|
+
}, Wt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, qt = {
|
|
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
|
+
}, Ht = { class: "p-4" }, Gt = { class: "flex items-start" }, Kt = { class: "flex-shrink-0" }, Xt = { class: "ml-2 w-0 flex-1 flex flex-col" }, Nt = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "text-foreground font-bold"
|
|
470
|
-
},
|
|
470
|
+
}, Jt = {
|
|
471
471
|
key: 1,
|
|
472
472
|
class: "label label--light text-foreground-2"
|
|
473
|
-
},
|
|
473
|
+
}, Qt = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "flex justify-start mt-2"
|
|
476
|
-
},
|
|
476
|
+
}, Yt = /* @__PURE__ */ i("span", { class: "sr-only" }, "Close", -1), yl = /* @__PURE__ */ M({
|
|
477
477
|
__name: "ToastRenderer",
|
|
478
478
|
props: {
|
|
479
479
|
notification: null
|
|
480
480
|
},
|
|
481
481
|
emits: ["update:notification"],
|
|
482
|
-
setup(e, { emit:
|
|
483
|
-
const t = e,
|
|
482
|
+
setup(e, { emit: l }) {
|
|
483
|
+
const t = e, s = u(
|
|
484
484
|
() => {
|
|
485
|
-
var f,
|
|
486
|
-
return !((f = t.notification) != null && f.description) && !((
|
|
485
|
+
var f, p;
|
|
486
|
+
return !((f = t.notification) != null && f.description) && !((p = t.notification) != null && p.cta);
|
|
487
487
|
}
|
|
488
488
|
), o = () => {
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
var
|
|
492
|
-
(
|
|
489
|
+
l("update:notification", null);
|
|
490
|
+
}, c = (f) => {
|
|
491
|
+
var p, r, d;
|
|
492
|
+
(d = (r = (p = t.notification) == null ? void 0 : p.cta) == null ? void 0 : r.onClick) == null || d.call(r, f), o();
|
|
493
493
|
};
|
|
494
|
-
return (f,
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
return (f, p) => (a(), h("div", Ut, [
|
|
495
|
+
i("div", Wt, [
|
|
496
|
+
L(ge, {
|
|
497
497
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
498
498
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
499
499
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -501,56 +501,56 @@ const Ft = {
|
|
|
501
501
|
"leave-from-class": "opacity-100",
|
|
502
502
|
"leave-to-class": "opacity-0"
|
|
503
503
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
e.notification ? (a(),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
e.notification.type ===
|
|
504
|
+
default: B(() => [
|
|
505
|
+
e.notification ? (a(), h("div", qt, [
|
|
506
|
+
i("div", Ht, [
|
|
507
|
+
i("div", Gt, [
|
|
508
|
+
i("div", Kt, [
|
|
509
|
+
e.notification.type === n(ee).Success ? (a(), P(n(ot), {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "h-6 w-6 text-success",
|
|
512
512
|
"aria-hidden": "true"
|
|
513
|
-
})) : e.notification.type ===
|
|
513
|
+
})) : e.notification.type === n(ee).Danger ? (a(), P(n(rt), {
|
|
514
514
|
key: 1,
|
|
515
515
|
class: "h-6 w-6 text-danger",
|
|
516
516
|
"aria-hidden": "true"
|
|
517
|
-
})) : e.notification.type ===
|
|
517
|
+
})) : e.notification.type === n(ee).Warning ? (a(), P(n(it), {
|
|
518
518
|
key: 2,
|
|
519
519
|
class: "h-6 w-6 text-warning",
|
|
520
520
|
"aria-hidden": "true"
|
|
521
|
-
})) : e.notification.type ===
|
|
521
|
+
})) : e.notification.type === n(ee).Info ? (a(), P(n(ut), {
|
|
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
|
-
|
|
528
|
-
e.notification.title ? (a(),
|
|
529
|
-
e.notification.description ? (a(),
|
|
530
|
-
e.notification.cta ? (a(),
|
|
531
|
-
|
|
527
|
+
i("div", Xt, [
|
|
528
|
+
e.notification.title ? (a(), h("p", Nt, I(e.notification.title), 1)) : S("", !0),
|
|
529
|
+
e.notification.description ? (a(), h("p", Jt, I(e.notification.description), 1)) : S("", !0),
|
|
530
|
+
e.notification.cta ? (a(), h("div", Qt, [
|
|
531
|
+
L(Et, {
|
|
532
532
|
to: e.notification.cta.url,
|
|
533
533
|
class: "label",
|
|
534
534
|
primary: "",
|
|
535
|
-
onClick:
|
|
535
|
+
onClick: c
|
|
536
536
|
}, {
|
|
537
|
-
default:
|
|
538
|
-
|
|
537
|
+
default: B(() => [
|
|
538
|
+
A(I(e.notification.cta.title), 1)
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["to"])
|
|
542
542
|
])) : S("", !0)
|
|
543
543
|
]),
|
|
544
|
-
|
|
545
|
-
class:
|
|
544
|
+
i("div", {
|
|
545
|
+
class: y(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
|
|
546
546
|
}, [
|
|
547
|
-
|
|
547
|
+
i("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
|
-
|
|
552
|
+
Yt,
|
|
553
|
+
L(n(ue), {
|
|
554
554
|
class: "h-6 w-6",
|
|
555
555
|
"aria-hidden": "true"
|
|
556
556
|
})
|
|
@@ -565,13 +565,13 @@ const Ft = {
|
|
|
565
565
|
])
|
|
566
566
|
]));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), Zt = /* @__PURE__ */ i("circle", {
|
|
569
569
|
cx: "4",
|
|
570
570
|
cy: "4",
|
|
571
571
|
r: "3"
|
|
572
|
-
}, null, -1),
|
|
573
|
-
|
|
574
|
-
],
|
|
572
|
+
}, null, -1), es = [
|
|
573
|
+
Zt
|
|
574
|
+
], ts = /* @__PURE__ */ M({
|
|
575
575
|
__name: "Badge",
|
|
576
576
|
props: {
|
|
577
577
|
size: null,
|
|
@@ -583,119 +583,119 @@ const Ft = {
|
|
|
583
583
|
clickableIcon: { type: Boolean }
|
|
584
584
|
},
|
|
585
585
|
emits: ["click-icon"],
|
|
586
|
-
setup(e, { emit:
|
|
587
|
-
const t = e,
|
|
586
|
+
setup(e, { emit: l }) {
|
|
587
|
+
const t = e, s = u(
|
|
588
588
|
() => t.colorClasses || "bg-blue-100 text-blue-800"
|
|
589
|
-
), o =
|
|
589
|
+
), o = u(
|
|
590
590
|
() => t.dotIconColorClasses || "text-blue-400"
|
|
591
|
-
),
|
|
592
|
-
const
|
|
591
|
+
), c = u(() => {
|
|
592
|
+
const d = [
|
|
593
593
|
"inline-flex items-center",
|
|
594
|
-
|
|
594
|
+
s.value,
|
|
595
595
|
t.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
596
596
|
];
|
|
597
|
-
return t.rounded ? (
|
|
597
|
+
return t.rounded ? (d.push("rounded"), d.push(
|
|
598
598
|
t.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
599
|
-
)) : (
|
|
599
|
+
)) : (d.push("rounded-full"), d.push(
|
|
600
600
|
t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
601
|
-
)),
|
|
602
|
-
}), f =
|
|
603
|
-
const
|
|
601
|
+
)), d.join(" ");
|
|
602
|
+
}), f = u(() => {
|
|
603
|
+
const d = [
|
|
604
604
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
605
605
|
];
|
|
606
|
-
return t.clickableIcon ?
|
|
607
|
-
}),
|
|
606
|
+
return t.clickableIcon ? d.push("cursor-pointer") : d.push("cursor-default"), d.join(" ");
|
|
607
|
+
}), p = u(() => [
|
|
608
608
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
609
609
|
o.value
|
|
610
|
-
].join(" ")),
|
|
610
|
+
].join(" ")), r = (d) => {
|
|
611
611
|
if (!t.clickableIcon) {
|
|
612
|
-
|
|
612
|
+
d.stopPropagation(), d.stopImmediatePropagation(), d.preventDefault();
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
l("click-icon", d);
|
|
616
616
|
};
|
|
617
|
-
return (
|
|
618
|
-
class:
|
|
617
|
+
return (d, x) => (a(), h("span", {
|
|
618
|
+
class: y(c.value)
|
|
619
619
|
}, [
|
|
620
|
-
e.dot ? (a(),
|
|
620
|
+
e.dot ? (a(), h("svg", {
|
|
621
621
|
key: 0,
|
|
622
|
-
class:
|
|
622
|
+
class: y(p.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
}, es, 2)) : S("", !0),
|
|
626
|
+
D(d.$slots, "default", {}, () => [
|
|
627
|
+
A("Badge")
|
|
628
628
|
]),
|
|
629
|
-
e.iconLeft ? (a(),
|
|
629
|
+
e.iconLeft ? (a(), h("button", {
|
|
630
630
|
key: 1,
|
|
631
|
-
class:
|
|
632
|
-
onClick:
|
|
631
|
+
class: y(f.value),
|
|
632
|
+
onClick: x[0] || (x[0] = (v) => r(v))
|
|
633
633
|
}, [
|
|
634
|
-
(a(),
|
|
635
|
-
class:
|
|
634
|
+
(a(), P(H(e.iconLeft), {
|
|
635
|
+
class: y(["h-4 w-4", o.value])
|
|
636
636
|
}, null, 8, ["class"]))
|
|
637
637
|
], 2)) : S("", !0)
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
let
|
|
642
|
-
function
|
|
643
|
-
|
|
641
|
+
let je = [];
|
|
642
|
+
function ss(e) {
|
|
643
|
+
je = je ? e : e.slice();
|
|
644
644
|
}
|
|
645
|
-
var
|
|
646
|
-
function
|
|
645
|
+
var te = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e.lg = 1024] = "lg", e[e.xl = 1280] = "xl", e[e["2xl"] = 1536] = "2xl", e))(te || {});
|
|
646
|
+
function Ee(e) {
|
|
647
647
|
const {
|
|
648
648
|
props: {
|
|
649
|
-
modelValue:
|
|
649
|
+
modelValue: l,
|
|
650
650
|
steps: t,
|
|
651
|
-
orientation:
|
|
651
|
+
orientation: s,
|
|
652
652
|
goVerticalBelow: o,
|
|
653
|
-
nonInteractive:
|
|
653
|
+
nonInteractive: c,
|
|
654
654
|
stepsPadding: f
|
|
655
655
|
},
|
|
656
|
-
emit:
|
|
657
|
-
} = e,
|
|
658
|
-
() => (
|
|
659
|
-
),
|
|
660
|
-
get: () =>
|
|
661
|
-
set: (
|
|
662
|
-
}),
|
|
663
|
-
var
|
|
664
|
-
if (
|
|
665
|
-
|
|
656
|
+
emit: p
|
|
657
|
+
} = e, r = u(
|
|
658
|
+
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
659
|
+
), d = u({
|
|
660
|
+
get: () => Le((l == null ? void 0 : l.value) || 0, -1, t.value.length),
|
|
661
|
+
set: (b) => p("update:modelValue", Le(b, 0, t.value.length))
|
|
662
|
+
}), x = (b) => `${b + 1}`, v = (b) => b === d.value, m = (b) => b < d.value, k = (b, w) => {
|
|
663
|
+
var F;
|
|
664
|
+
if (c != null && c.value) {
|
|
665
|
+
w == null || w.preventDefault(), w == null || w.stopPropagation(), w == null || w.stopImmediatePropagation();
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
(
|
|
671
|
-
},
|
|
672
|
-
const
|
|
673
|
-
let
|
|
674
|
-
return (f == null ? void 0 : f.value) === "xs" ? (
|
|
675
|
-
`sm:flex-row sm:space-y-0 sm:justify-start sm:${
|
|
676
|
-
) : (o == null ? void 0 : o.value) ===
|
|
677
|
-
`md:flex-row md:space-y-0 md:justify-start md:${
|
|
678
|
-
) : (o == null ? void 0 : o.value) ===
|
|
679
|
-
`lg:flex-row lg:space-y-0 lg:justify-start lg:${
|
|
680
|
-
) : (o == null ? void 0 : o.value) ===
|
|
681
|
-
`xl:flex-row xl:space-y-0 xl:justify-start xl:${
|
|
682
|
-
)) :
|
|
683
|
-
}),
|
|
684
|
-
const
|
|
685
|
-
return
|
|
668
|
+
d.value = b;
|
|
669
|
+
const $ = t.value[d.value];
|
|
670
|
+
(F = $ == null ? void 0 : $.onClick) == null || F.call($);
|
|
671
|
+
}, _ = u(() => {
|
|
672
|
+
const b = ["flex"];
|
|
673
|
+
let w, $;
|
|
674
|
+
return (f == null ? void 0 : f.value) === "xs" ? (w = "space-x-2", $ = "space-y-1") : (f == null ? void 0 : f.value) === "sm" ? (w = "space-x-4", $ = "space-y-1") : (w = "space-x-8", $ = "space-y-4"), b.push("flex"), r.value === "vertical" || o != null && o.value ? (b.push(`flex-col ${$} justify-center`), (o == null ? void 0 : o.value) === te.sm ? b.push(
|
|
675
|
+
`sm:flex-row sm:space-y-0 sm:justify-start sm:${w} sm:items-center`
|
|
676
|
+
) : (o == null ? void 0 : o.value) === te.md ? b.push(
|
|
677
|
+
`md:flex-row md:space-y-0 md:justify-start md:${w} md:items-center`
|
|
678
|
+
) : (o == null ? void 0 : o.value) === te.lg ? b.push(
|
|
679
|
+
`lg:flex-row lg:space-y-0 lg:justify-start lg:${w} lg:items-center`
|
|
680
|
+
) : (o == null ? void 0 : o.value) === te.xl && b.push(
|
|
681
|
+
`xl:flex-row xl:space-y-0 xl:justify-start xl:${w} xl:items-center`
|
|
682
|
+
)) : b.push(`flex-row ${w} items-center`), b.join(" ");
|
|
683
|
+
}), j = u(() => {
|
|
684
|
+
const b = ["flex items-center"];
|
|
685
|
+
return c != null && c.value || b.push("cursor-pointer"), b.join(" ");
|
|
686
686
|
});
|
|
687
687
|
return {
|
|
688
|
-
value:
|
|
688
|
+
value: d,
|
|
689
689
|
isCurrentStep: v,
|
|
690
|
-
isFinishedStep:
|
|
691
|
-
switchStep:
|
|
692
|
-
getStepDisplayValue:
|
|
693
|
-
listClasses:
|
|
694
|
-
linkClasses:
|
|
695
|
-
orientation:
|
|
690
|
+
isFinishedStep: m,
|
|
691
|
+
switchStep: k,
|
|
692
|
+
getStepDisplayValue: x,
|
|
693
|
+
listClasses: _,
|
|
694
|
+
linkClasses: j,
|
|
695
|
+
orientation: r
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
ss([
|
|
699
699
|
"sm:space-x-8",
|
|
700
700
|
"md:space-x-8",
|
|
701
701
|
"lg:space-x-8",
|
|
@@ -709,16 +709,16 @@ es([
|
|
|
709
709
|
"lg:space-x-4",
|
|
710
710
|
"xl:space-x-4"
|
|
711
711
|
]);
|
|
712
|
-
const
|
|
712
|
+
const ns = ["aria-label"], ls = ["href", "onClick"], as = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, os = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, rs = { class: "flex flex-col" }, is = {
|
|
713
713
|
key: 0,
|
|
714
714
|
class: "label label--light text-foreground"
|
|
715
|
-
},
|
|
715
|
+
}, us = ["href", "onClick"], cs = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, ds = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, fs = { class: "flex flex-col" }, ps = {
|
|
716
716
|
key: 0,
|
|
717
717
|
class: "label label--light text-foreground"
|
|
718
|
-
},
|
|
718
|
+
}, hs = ["href", "onClick"], ms = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, gs = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, vs = { class: "flex flex-col" }, bs = {
|
|
719
719
|
key: 0,
|
|
720
720
|
class: "label label--light"
|
|
721
|
-
},
|
|
721
|
+
}, xl = /* @__PURE__ */ M({
|
|
722
722
|
__name: "Number",
|
|
723
723
|
props: {
|
|
724
724
|
ariaLabel: null,
|
|
@@ -730,94 +730,94 @@ const ts = ["aria-label"], ss = ["href", "onClick"], ns = { class: "flex space-x
|
|
|
730
730
|
stepsPadding: null
|
|
731
731
|
},
|
|
732
732
|
emits: ["update:modelValue"],
|
|
733
|
-
setup(e, { emit:
|
|
733
|
+
setup(e, { emit: l }) {
|
|
734
734
|
const t = e, {
|
|
735
|
-
isCurrentStep:
|
|
735
|
+
isCurrentStep: s,
|
|
736
736
|
isFinishedStep: o,
|
|
737
|
-
switchStep:
|
|
737
|
+
switchStep: c,
|
|
738
738
|
getStepDisplayValue: f,
|
|
739
|
-
listClasses:
|
|
740
|
-
linkClasses:
|
|
741
|
-
} =
|
|
742
|
-
props:
|
|
743
|
-
emit:
|
|
739
|
+
listClasses: p,
|
|
740
|
+
linkClasses: r
|
|
741
|
+
} = Ee({
|
|
742
|
+
props: ae(t),
|
|
743
|
+
emit: l
|
|
744
744
|
});
|
|
745
|
-
return (
|
|
745
|
+
return (d, x) => (a(), h("nav", {
|
|
746
746
|
class: "flex justify-center",
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
|
-
|
|
750
|
-
class:
|
|
749
|
+
i("ol", {
|
|
750
|
+
class: y(n(p))
|
|
751
751
|
}, [
|
|
752
|
-
(a(!0),
|
|
752
|
+
(a(!0), h(U, null, G(e.steps, (v, m) => (a(), h("li", {
|
|
753
753
|
key: v.name
|
|
754
754
|
}, [
|
|
755
|
-
|
|
755
|
+
n(o)(m) ? (a(), h("a", {
|
|
756
756
|
key: 0,
|
|
757
757
|
href: v.href,
|
|
758
|
-
class:
|
|
759
|
-
onClick: (
|
|
758
|
+
class: y(n(r)),
|
|
759
|
+
onClick: (k) => n(c)(m, k)
|
|
760
760
|
}, [
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
761
|
+
i("div", as, [
|
|
762
|
+
i("div", os, [
|
|
763
|
+
L(n(pt), { class: "w-5 h-5" })
|
|
764
764
|
]),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
v.description ? (a(),
|
|
765
|
+
i("div", rs, [
|
|
766
|
+
i("div", null, I(v.name), 1),
|
|
767
|
+
v.description ? (a(), h("div", is, I(v.description), 1)) : S("", !0)
|
|
768
768
|
])
|
|
769
769
|
])
|
|
770
|
-
], 10,
|
|
770
|
+
], 10, ls)) : n(s)(m) ? (a(), h("a", {
|
|
771
771
|
key: 1,
|
|
772
772
|
href: v.href,
|
|
773
|
-
class:
|
|
773
|
+
class: y(n(r)),
|
|
774
774
|
"aria-current": "step",
|
|
775
|
-
onClick: (
|
|
775
|
+
onClick: (k) => n(c)(m, k)
|
|
776
776
|
}, [
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
v.description ? (a(),
|
|
777
|
+
i("div", cs, [
|
|
778
|
+
i("div", ds, I(n(f)(m)), 1),
|
|
779
|
+
i("div", fs, [
|
|
780
|
+
i("div", null, I(v.name), 1),
|
|
781
|
+
v.description ? (a(), h("div", ps, I(v.description), 1)) : S("", !0)
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
|
-
], 10,
|
|
784
|
+
], 10, us)) : (a(), h("a", {
|
|
785
785
|
key: 2,
|
|
786
786
|
href: v.href,
|
|
787
|
-
class:
|
|
788
|
-
onClick: (
|
|
787
|
+
class: y(n(r)),
|
|
788
|
+
onClick: (k) => n(c)(m, k)
|
|
789
789
|
}, [
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
v.description ? (a(),
|
|
790
|
+
i("div", ms, [
|
|
791
|
+
i("div", gs, I(n(f)(m)), 1),
|
|
792
|
+
i("div", vs, [
|
|
793
|
+
i("div", null, I(v.name), 1),
|
|
794
|
+
v.description ? (a(), h("div", bs, I(v.description), 1)) : S("", !0)
|
|
795
795
|
])
|
|
796
796
|
])
|
|
797
|
-
], 10,
|
|
797
|
+
], 10, hs))
|
|
798
798
|
]))), 128))
|
|
799
799
|
], 2)
|
|
800
|
-
], 8,
|
|
800
|
+
], 8, ns));
|
|
801
801
|
}
|
|
802
|
-
}),
|
|
802
|
+
}), ys = ["aria-label"], xs = ["href", "onClick"], ks = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Cs = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
805
|
-
},
|
|
805
|
+
}, ws = ["href", "onClick"], $s = {
|
|
806
806
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
807
807
|
"aria-hidden": "true"
|
|
808
|
-
},
|
|
808
|
+
}, Ss = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
811
|
-
},
|
|
811
|
+
}, Is = /* @__PURE__ */ i("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), _s = /* @__PURE__ */ i("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Bs = ["href", "onClick"], Ls = {
|
|
812
812
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
813
|
"aria-hidden": "true"
|
|
814
|
-
},
|
|
814
|
+
}, Ps = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
817
|
-
},
|
|
817
|
+
}, js = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
820
|
-
},
|
|
820
|
+
}, kl = /* @__PURE__ */ M({
|
|
821
821
|
__name: "Bullet",
|
|
822
822
|
props: {
|
|
823
823
|
ariaLabel: null,
|
|
@@ -830,117 +830,117 @@ const ts = ["aria-label"], ss = ["href", "onClick"], ns = { class: "flex space-x
|
|
|
830
830
|
stepsPadding: null
|
|
831
831
|
},
|
|
832
832
|
emits: ["update:modelValue"],
|
|
833
|
-
setup(e, { emit:
|
|
834
|
-
const t = e, { isCurrentStep:
|
|
835
|
-
props:
|
|
836
|
-
emit:
|
|
837
|
-
}),
|
|
838
|
-
const
|
|
833
|
+
setup(e, { emit: l }) {
|
|
834
|
+
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: c, listClasses: f, linkClasses: p } = Ee({
|
|
835
|
+
props: ae(t),
|
|
836
|
+
emit: l
|
|
837
|
+
}), r = u(() => {
|
|
838
|
+
const x = ["h6 font-medium leading-7"];
|
|
839
839
|
let v;
|
|
840
|
-
return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3",
|
|
841
|
-
}),
|
|
842
|
-
const
|
|
843
|
-
return t.basic &&
|
|
840
|
+
return t.stepsPadding === "xs" ? v = "ml-1" : t.stepsPadding === "sm" ? v = "ml-2" : v = "ml-3", x.push(v), t.basic && x.push("sr-only"), x.join(" ");
|
|
841
|
+
}), d = u(() => {
|
|
842
|
+
const x = [];
|
|
843
|
+
return t.basic && x.push("basic"), x.join(" ");
|
|
844
844
|
});
|
|
845
|
-
return (
|
|
845
|
+
return (x, v) => (a(), h("nav", {
|
|
846
846
|
class: "flex justify-center",
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
|
-
|
|
850
|
-
class:
|
|
849
|
+
i("ol", {
|
|
850
|
+
class: y([n(f), d.value])
|
|
851
851
|
}, [
|
|
852
|
-
(a(!0),
|
|
853
|
-
key:
|
|
852
|
+
(a(!0), h(U, null, G(e.steps, (m, k) => (a(), h("li", {
|
|
853
|
+
key: m.name
|
|
854
854
|
}, [
|
|
855
|
-
|
|
855
|
+
n(o)(k) ? (a(), h("a", {
|
|
856
856
|
key: 0,
|
|
857
|
-
href:
|
|
858
|
-
class:
|
|
859
|
-
onClick: (
|
|
857
|
+
href: m.href,
|
|
858
|
+
class: y(n(p)),
|
|
859
|
+
onClick: (_) => n(c)(k, _)
|
|
860
860
|
}, [
|
|
861
|
-
|
|
862
|
-
e.basic ? (a(),
|
|
861
|
+
i("span", ks, [
|
|
862
|
+
e.basic ? (a(), h("span", Cs)) : (a(), P(n(Te), {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "h-full w-full text-primary",
|
|
865
865
|
"aria-hidden": "true"
|
|
866
866
|
}))
|
|
867
867
|
]),
|
|
868
|
-
|
|
869
|
-
class:
|
|
870
|
-
},
|
|
871
|
-
], 10,
|
|
868
|
+
i("span", {
|
|
869
|
+
class: y(["text-foreground", r.value])
|
|
870
|
+
}, I(m.name), 3)
|
|
871
|
+
], 10, xs)) : n(s)(k) ? (a(), h("a", {
|
|
872
872
|
key: 1,
|
|
873
|
-
href:
|
|
874
|
-
class:
|
|
873
|
+
href: m.href,
|
|
874
|
+
class: y(n(p)),
|
|
875
875
|
"aria-current": "step",
|
|
876
|
-
onClick: (
|
|
876
|
+
onClick: (_) => n(c)(k, _)
|
|
877
877
|
}, [
|
|
878
|
-
|
|
879
|
-
e.basic ? (a(),
|
|
880
|
-
|
|
881
|
-
|
|
878
|
+
i("span", $s, [
|
|
879
|
+
e.basic ? (a(), h("span", Ss)) : (a(), h(U, { key: 1 }, [
|
|
880
|
+
Is,
|
|
881
|
+
_s
|
|
882
882
|
], 64))
|
|
883
883
|
]),
|
|
884
|
-
|
|
885
|
-
class:
|
|
886
|
-
},
|
|
887
|
-
], 10,
|
|
884
|
+
i("span", {
|
|
885
|
+
class: y(["text-primary-focus", r.value])
|
|
886
|
+
}, I(m.name), 3)
|
|
887
|
+
], 10, ws)) : (a(), h("a", {
|
|
888
888
|
key: 2,
|
|
889
|
-
href:
|
|
890
|
-
class:
|
|
891
|
-
onClick: (
|
|
889
|
+
href: m.href,
|
|
890
|
+
class: y(n(p)),
|
|
891
|
+
onClick: (_) => n(c)(k, _)
|
|
892
892
|
}, [
|
|
893
|
-
|
|
894
|
-
e.basic ? (a(),
|
|
893
|
+
i("div", Ls, [
|
|
894
|
+
e.basic ? (a(), h("span", Ps)) : (a(), h("div", js))
|
|
895
895
|
]),
|
|
896
|
-
|
|
897
|
-
class:
|
|
898
|
-
},
|
|
899
|
-
], 10,
|
|
896
|
+
i("p", {
|
|
897
|
+
class: y(["text-foreground-disabled", r.value])
|
|
898
|
+
}, I(m.name), 3)
|
|
899
|
+
], 10, Bs))
|
|
900
900
|
]))), 128))
|
|
901
901
|
], 2)
|
|
902
|
-
], 8,
|
|
902
|
+
], 8, ys));
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), Vs = ["disabled"], Cl = /* @__PURE__ */ M({
|
|
905
905
|
__name: "CardButton",
|
|
906
906
|
props: {
|
|
907
907
|
disabled: { type: Boolean },
|
|
908
908
|
modelValue: { type: Boolean }
|
|
909
909
|
},
|
|
910
910
|
emits: ["update:modelValue", "click"],
|
|
911
|
-
setup(e, { emit:
|
|
912
|
-
const t = e,
|
|
913
|
-
const
|
|
911
|
+
setup(e, { emit: l }) {
|
|
912
|
+
const t = e, s = u(() => {
|
|
913
|
+
const c = [
|
|
914
914
|
"h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
|
|
915
915
|
"normal px-16 py-5 shadow rounded transition active:scale-95"
|
|
916
916
|
];
|
|
917
|
-
return t.disabled ?
|
|
917
|
+
return t.disabled ? c.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (c.push(
|
|
918
918
|
t.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
|
|
919
|
-
),
|
|
920
|
-
}), o = (
|
|
919
|
+
), c.push("ring-outline-2 hover:ring-4")), c.join(" ");
|
|
920
|
+
}), o = (c) => {
|
|
921
921
|
if (t.disabled) {
|
|
922
|
-
|
|
922
|
+
c.preventDefault(), c.stopPropagation(), c.stopImmediatePropagation();
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
|
-
|
|
925
|
+
l("update:modelValue", !t.modelValue), l("click", c);
|
|
926
926
|
};
|
|
927
|
-
return (
|
|
928
|
-
class:
|
|
927
|
+
return (c, f) => (a(), h("button", {
|
|
928
|
+
class: y(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
931
931
|
}, [
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
D(c.$slots, "default", {}, () => [
|
|
933
|
+
A("Text")
|
|
934
934
|
])
|
|
935
|
-
], 10,
|
|
935
|
+
], 10, Vs));
|
|
936
936
|
}
|
|
937
|
-
}),
|
|
937
|
+
}), Os = { class: "relative flex items-start" }, Ms = { class: "flex h-6 items-center" }, As = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Ds = {
|
|
938
938
|
class: "ml-2 text-sm",
|
|
939
939
|
style: { "padding-top": "2px" }
|
|
940
|
-
},
|
|
940
|
+
}, Ts = ["for"], Rs = {
|
|
941
941
|
key: 0,
|
|
942
942
|
class: "text-danger ml-1"
|
|
943
|
-
},
|
|
943
|
+
}, Fs = ["id"], wl = /* @__PURE__ */ M({
|
|
944
944
|
inheritAttrs: !1,
|
|
945
945
|
__name: "Checkbox",
|
|
946
946
|
props: {
|
|
@@ -1029,104 +1029,108 @@ const ts = ["aria-label"], ss = ["href", "onClick"], ns = { class: "flex space-x
|
|
|
1029
1029
|
},
|
|
1030
1030
|
emits: ["update:modelValue"],
|
|
1031
1031
|
setup(e) {
|
|
1032
|
-
const
|
|
1032
|
+
const l = e, t = (b) => `${b}-${xe()}`, s = u(() => l.value || l.name), {
|
|
1033
1033
|
checked: o,
|
|
1034
|
-
errorMessage:
|
|
1035
|
-
handleChange: f
|
|
1036
|
-
|
|
1037
|
-
|
|
1034
|
+
errorMessage: c,
|
|
1035
|
+
handleChange: f,
|
|
1036
|
+
value: p
|
|
1037
|
+
} = ye(l.name, l.rules, {
|
|
1038
|
+
validateOnMount: l.validateOnMount,
|
|
1038
1039
|
type: "checkbox",
|
|
1039
|
-
checkedValue:
|
|
1040
|
-
initialValue:
|
|
1041
|
-
}), r = (
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1047
|
-
return (
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1040
|
+
checkedValue: s,
|
|
1041
|
+
initialValue: l.modelValue || void 0
|
|
1042
|
+
}), r = u(() => l.label || l.name), d = u(() => c.value ? "border-danger-lighter" : "border-foreground-4 "), x = u(() => l.description || c.value), v = u(() => `${l.name}-description`), m = u(() => {
|
|
1043
|
+
const b = [];
|
|
1044
|
+
return l.inlineDescription ? b.push("inline ml-2") : b.push("block"), c.value ? b.push("text-danger") : b.push("text-foreground-2"), b.join(" ");
|
|
1045
|
+
}), k = O(t("checkbox")), _ = u(() => l.id || k.value), j = (b) => {
|
|
1046
|
+
l.disabled || f(b);
|
|
1047
|
+
};
|
|
1048
|
+
return Y(() => {
|
|
1049
|
+
const b = l.modelValue, w = p.value, $ = Array.isArray(b) ? b.includes(l.value) : b === l.value, F = Array.isArray(w) ? w.includes(l.value) : w === l.value;
|
|
1050
|
+
$ !== F && f(b);
|
|
1051
|
+
}), (b, w) => (a(), h("div", Os, [
|
|
1052
|
+
i("div", Ms, [
|
|
1053
|
+
i("input", oe({
|
|
1054
|
+
id: _.value,
|
|
1055
|
+
checked: n(o),
|
|
1052
1056
|
"aria-describedby": v.value,
|
|
1053
1057
|
name: e.name,
|
|
1054
|
-
value: l.value,
|
|
1055
1058
|
disabled: e.disabled,
|
|
1059
|
+
value: s.value,
|
|
1056
1060
|
type: "checkbox",
|
|
1057
|
-
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1058
|
-
},
|
|
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", d.value]
|
|
1062
|
+
}, b.$attrs, { onChange: j }), null, 16, As)
|
|
1059
1063
|
]),
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
for:
|
|
1063
|
-
class:
|
|
1064
|
+
i("div", Ds, [
|
|
1065
|
+
i("label", {
|
|
1066
|
+
for: _.value,
|
|
1067
|
+
class: y(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1064
1068
|
}, [
|
|
1065
|
-
|
|
1066
|
-
e.showRequired ? (a(),
|
|
1067
|
-
], 10,
|
|
1068
|
-
|
|
1069
|
+
i("span", null, I(r.value), 1),
|
|
1070
|
+
e.showRequired ? (a(), h("span", Rs, "*")) : S("", !0)
|
|
1071
|
+
], 10, Ts),
|
|
1072
|
+
x.value ? (a(), h("p", {
|
|
1069
1073
|
key: 0,
|
|
1070
1074
|
id: v.value,
|
|
1071
|
-
class:
|
|
1072
|
-
},
|
|
1075
|
+
class: y(m.value)
|
|
1076
|
+
}, I(x.value), 11, Fs)) : S("", !0)
|
|
1073
1077
|
])
|
|
1074
1078
|
]));
|
|
1075
1079
|
}
|
|
1076
1080
|
});
|
|
1077
|
-
function
|
|
1078
|
-
const { props:
|
|
1079
|
-
validateOnMount:
|
|
1080
|
-
validateOnValueUpdate:
|
|
1081
|
-
initialValue:
|
|
1082
|
-
}), f =
|
|
1083
|
-
const
|
|
1084
|
-
return
|
|
1085
|
-
}),
|
|
1086
|
-
const
|
|
1081
|
+
function Ue(e) {
|
|
1082
|
+
const { props: l, inputEl: t, emit: s } = e, { value: o, errorMessage: c } = ye(l.name, l.rules, {
|
|
1083
|
+
validateOnMount: n(l.validateOnMount),
|
|
1084
|
+
validateOnValueUpdate: n(l.validateOnValueUpdate),
|
|
1085
|
+
initialValue: n(l.modelValue) || void 0
|
|
1086
|
+
}), f = u(() => {
|
|
1087
|
+
const $ = ["block label text-foreground-2 mb-2"];
|
|
1088
|
+
return n(l.showLabel) || $.push("sr-only"), $.join(" ");
|
|
1089
|
+
}), p = u(() => {
|
|
1090
|
+
const $ = [
|
|
1087
1091
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
1088
1092
|
"disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
|
|
1089
1093
|
"placeholder:text-foreground-2"
|
|
1090
1094
|
];
|
|
1091
|
-
return
|
|
1095
|
+
return c.value ? $.push(
|
|
1092
1096
|
"border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
|
|
1093
|
-
) :
|
|
1094
|
-
}),
|
|
1095
|
-
const
|
|
1096
|
-
return
|
|
1097
|
-
}), v =
|
|
1098
|
-
() =>
|
|
1099
|
-
),
|
|
1100
|
-
() =>
|
|
1101
|
-
),
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
}),
|
|
1105
|
-
var
|
|
1106
|
-
(
|
|
1107
|
-
},
|
|
1108
|
-
o.value = "",
|
|
1097
|
+
) : $.push("border-0 focus:ring-2 focus:ring-outline-2"), n(l.color) === "foundation" ? $.push("bg-foundation shadow-sm hover:shadow") : $.push("bg-foundation-page"), $.join(" ");
|
|
1098
|
+
}), r = O(xe()), d = u(() => n(l.label) || n(l.name)), x = u(() => {
|
|
1099
|
+
const $ = c.value;
|
|
1100
|
+
return !$ || !n(l.useLabelInErrors) ? $ : $.replace("Value", d.value);
|
|
1101
|
+
}), v = u(
|
|
1102
|
+
() => x.value && n(l.hideErrorMessage)
|
|
1103
|
+
), m = u(() => x.value || n(l.help)), k = u(() => !!m.value), _ = u(
|
|
1104
|
+
() => k.value ? `${n(l.name)}-${r.value}` : void 0
|
|
1105
|
+
), j = u(() => {
|
|
1106
|
+
const $ = ["mt-2 text-sm"];
|
|
1107
|
+
return $.push(c.value ? "text-danger" : "text-foreground-2"), $.join(" ");
|
|
1108
|
+
}), b = () => {
|
|
1109
|
+
var $;
|
|
1110
|
+
($ = t.value) == null || $.focus();
|
|
1111
|
+
}, w = () => {
|
|
1112
|
+
o.value = "", s("change", { value: "" }), s("clear");
|
|
1109
1113
|
};
|
|
1110
|
-
return
|
|
1111
|
-
|
|
1114
|
+
return Y(() => {
|
|
1115
|
+
n(l.autoFocus) && b();
|
|
1112
1116
|
}), {
|
|
1113
|
-
coreClasses:
|
|
1114
|
-
title:
|
|
1117
|
+
coreClasses: p,
|
|
1118
|
+
title: d,
|
|
1115
1119
|
value: o,
|
|
1116
|
-
helpTipId:
|
|
1117
|
-
helpTipClasses:
|
|
1118
|
-
helpTip:
|
|
1120
|
+
helpTipId: _,
|
|
1121
|
+
helpTipClasses: j,
|
|
1122
|
+
helpTip: m,
|
|
1119
1123
|
hideHelpTip: v,
|
|
1120
|
-
errorMessage:
|
|
1121
|
-
clear:
|
|
1122
|
-
focus:
|
|
1124
|
+
errorMessage: x,
|
|
1125
|
+
clear: w,
|
|
1126
|
+
focus: b,
|
|
1123
1127
|
labelClasses: f
|
|
1124
1128
|
};
|
|
1125
1129
|
}
|
|
1126
|
-
const
|
|
1130
|
+
const zs = ["for"], Es = { class: "relative" }, Us = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ws = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), qs = {
|
|
1127
1131
|
key: 2,
|
|
1128
1132
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1129
|
-
},
|
|
1133
|
+
}, Hs = ["id"], $l = /* @__PURE__ */ M({
|
|
1130
1134
|
__name: "TextArea",
|
|
1131
1135
|
props: {
|
|
1132
1136
|
name: null,
|
|
@@ -1147,96 +1151,96 @@ const Rs = ["for"], zs = { class: "relative" }, Fs = ["id", "name", "placeholder
|
|
|
1147
1151
|
color: { default: "page" }
|
|
1148
1152
|
},
|
|
1149
1153
|
emits: ["update:modelValue", "change", "input", "clear"],
|
|
1150
|
-
setup(e, { expose:
|
|
1151
|
-
const
|
|
1152
|
-
coreClasses:
|
|
1154
|
+
setup(e, { expose: l, emit: t }) {
|
|
1155
|
+
const s = e, o = O(null), {
|
|
1156
|
+
coreClasses: c,
|
|
1153
1157
|
title: f,
|
|
1154
|
-
value:
|
|
1155
|
-
helpTipId:
|
|
1156
|
-
helpTipClasses:
|
|
1157
|
-
helpTip:
|
|
1158
|
+
value: p,
|
|
1159
|
+
helpTipId: r,
|
|
1160
|
+
helpTipClasses: d,
|
|
1161
|
+
helpTip: x,
|
|
1158
1162
|
errorMessage: v,
|
|
1159
|
-
labelClasses:
|
|
1160
|
-
clear:
|
|
1161
|
-
focus:
|
|
1162
|
-
} =
|
|
1163
|
-
props:
|
|
1163
|
+
labelClasses: m,
|
|
1164
|
+
clear: k,
|
|
1165
|
+
focus: _
|
|
1166
|
+
} = Ue({
|
|
1167
|
+
props: ae(s),
|
|
1164
1168
|
emit: t,
|
|
1165
1169
|
inputEl: o
|
|
1166
|
-
}),
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1170
|
+
}), j = u(() => {
|
|
1171
|
+
const b = ["pl-2"];
|
|
1172
|
+
return s.showClear && v.value ? b.push("pr-12") : (s.showClear || v.value) && b.push("pr-8"), b.join(" ");
|
|
1169
1173
|
});
|
|
1170
|
-
return
|
|
1171
|
-
class:
|
|
1174
|
+
return l({ focus: _ }), (b, w) => (a(), h("div", {
|
|
1175
|
+
class: y([e.fullWidth ? "w-full" : ""])
|
|
1172
1176
|
}, [
|
|
1173
|
-
|
|
1177
|
+
i("label", {
|
|
1174
1178
|
for: e.name,
|
|
1175
|
-
class:
|
|
1179
|
+
class: y(n(m))
|
|
1176
1180
|
}, [
|
|
1177
|
-
|
|
1178
|
-
], 10,
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
+
i("span", null, I(n(f)), 1)
|
|
1182
|
+
], 10, zs),
|
|
1183
|
+
i("div", Es, [
|
|
1184
|
+
ne(i("textarea", oe({
|
|
1181
1185
|
id: e.name,
|
|
1182
1186
|
ref_key: "inputElement",
|
|
1183
1187
|
ref: o,
|
|
1184
|
-
"onUpdate:modelValue":
|
|
1188
|
+
"onUpdate:modelValue": w[0] || (w[0] = ($) => ve(p) ? p.value = $ : null),
|
|
1185
1189
|
name: e.name,
|
|
1186
|
-
class: [
|
|
1190
|
+
class: [n(c), j.value, "min-h-[4rem]"],
|
|
1187
1191
|
placeholder: e.placeholder,
|
|
1188
1192
|
disabled: e.disabled,
|
|
1189
|
-
"aria-invalid":
|
|
1190
|
-
"aria-describedby":
|
|
1191
|
-
},
|
|
1192
|
-
onChange:
|
|
1193
|
-
onInput:
|
|
1194
|
-
}), null, 16,
|
|
1195
|
-
[
|
|
1193
|
+
"aria-invalid": n(v) ? "true" : "false",
|
|
1194
|
+
"aria-describedby": n(r)
|
|
1195
|
+
}, b.$attrs, {
|
|
1196
|
+
onChange: w[1] || (w[1] = ($) => b.$emit("change", { event: $, value: n(p) })),
|
|
1197
|
+
onInput: w[2] || (w[2] = ($) => b.$emit("input", { event: $, value: n(p) }))
|
|
1198
|
+
}), null, 16, Us), [
|
|
1199
|
+
[Ve, n(p)]
|
|
1196
1200
|
]),
|
|
1197
|
-
e.showClear ? (a(),
|
|
1201
|
+
e.showClear ? (a(), h("a", {
|
|
1198
1202
|
key: 0,
|
|
1199
1203
|
title: "Clear input",
|
|
1200
1204
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1201
|
-
onClick:
|
|
1202
|
-
(
|
|
1203
|
-
onKeydown:
|
|
1204
|
-
(
|
|
1205
|
+
onClick: w[3] || (w[3] = //@ts-ignore
|
|
1206
|
+
(...$) => n(k) && n(k)(...$)),
|
|
1207
|
+
onKeydown: w[4] || (w[4] = //@ts-ignore
|
|
1208
|
+
(...$) => n(k) && n(k)(...$))
|
|
1205
1209
|
}, [
|
|
1206
|
-
|
|
1207
|
-
|
|
1210
|
+
Ws,
|
|
1211
|
+
L(n(ue), {
|
|
1208
1212
|
class: "h-5 w-5 text-foreground",
|
|
1209
1213
|
"aria-hidden": "true"
|
|
1210
1214
|
})
|
|
1211
1215
|
], 32)) : S("", !0),
|
|
1212
|
-
|
|
1216
|
+
n(v) ? (a(), h("div", {
|
|
1213
1217
|
key: 1,
|
|
1214
|
-
class:
|
|
1218
|
+
class: y([
|
|
1215
1219
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1216
1220
|
e.showClear ? "pr-8" : "pr-2"
|
|
1217
1221
|
])
|
|
1218
1222
|
}, [
|
|
1219
|
-
|
|
1223
|
+
L(n(Re), {
|
|
1220
1224
|
class: "h-4 w-4 text-danger",
|
|
1221
1225
|
"aria-hidden": "true"
|
|
1222
1226
|
})
|
|
1223
1227
|
], 2)) : S("", !0),
|
|
1224
|
-
e.showRequired && !
|
|
1228
|
+
e.showRequired && !n(v) ? (a(), h("div", qs, " * ")) : S("", !0)
|
|
1225
1229
|
]),
|
|
1226
|
-
|
|
1230
|
+
n(r) ? (a(), h("p", {
|
|
1227
1231
|
key: 0,
|
|
1228
|
-
id:
|
|
1229
|
-
class:
|
|
1230
|
-
},
|
|
1232
|
+
id: n(r),
|
|
1233
|
+
class: y(n(d))
|
|
1234
|
+
}, I(n(x)), 11, Hs)) : S("", !0)
|
|
1231
1235
|
], 2));
|
|
1232
1236
|
}
|
|
1233
|
-
}),
|
|
1237
|
+
}), Gs = ["for"], Ks = { class: "relative" }, Xs = {
|
|
1234
1238
|
key: 0,
|
|
1235
1239
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1236
|
-
},
|
|
1240
|
+
}, Ns = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Js = /* @__PURE__ */ i("span", { class: "text-xs sr-only" }, "Clear input", -1), Qs = {
|
|
1237
1241
|
key: 2,
|
|
1238
1242
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1239
|
-
},
|
|
1243
|
+
}, Ys = ["id"], Sl = /* @__PURE__ */ M({
|
|
1240
1244
|
inheritAttrs: !1,
|
|
1241
1245
|
__name: "TextInput",
|
|
1242
1246
|
props: {
|
|
@@ -1372,33 +1376,33 @@ const Rs = ["for"], zs = { class: "relative" }, Fs = ["id", "name", "placeholder
|
|
|
1372
1376
|
}
|
|
1373
1377
|
},
|
|
1374
1378
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1375
|
-
setup(e, { expose:
|
|
1376
|
-
const
|
|
1379
|
+
setup(e, { expose: l, emit: t }) {
|
|
1380
|
+
const s = e, o = Oe(), c = O(null), {
|
|
1377
1381
|
coreClasses: f,
|
|
1378
|
-
title:
|
|
1379
|
-
value:
|
|
1380
|
-
helpTipId:
|
|
1381
|
-
helpTipClasses:
|
|
1382
|
+
title: p,
|
|
1383
|
+
value: r,
|
|
1384
|
+
helpTipId: d,
|
|
1385
|
+
helpTipClasses: x,
|
|
1382
1386
|
helpTip: v,
|
|
1383
|
-
hideHelpTip:
|
|
1384
|
-
errorMessage:
|
|
1385
|
-
clear:
|
|
1386
|
-
focus:
|
|
1387
|
-
labelClasses:
|
|
1388
|
-
} =
|
|
1389
|
-
props:
|
|
1387
|
+
hideHelpTip: m,
|
|
1388
|
+
errorMessage: k,
|
|
1389
|
+
clear: _,
|
|
1390
|
+
focus: j,
|
|
1391
|
+
labelClasses: b
|
|
1392
|
+
} = Ue({
|
|
1393
|
+
props: ae(s),
|
|
1390
1394
|
emit: t,
|
|
1391
|
-
inputEl:
|
|
1392
|
-
}),
|
|
1393
|
-
const
|
|
1394
|
-
return
|
|
1395
|
-
}),
|
|
1396
|
-
() => ["email", "password"].includes(
|
|
1397
|
-
),
|
|
1398
|
-
const
|
|
1399
|
-
return
|
|
1400
|
-
}), g =
|
|
1401
|
-
switch (
|
|
1395
|
+
inputEl: c
|
|
1396
|
+
}), w = u(() => {
|
|
1397
|
+
const R = ["h-5 w-5"];
|
|
1398
|
+
return k.value ? R.push("text-danger") : R.push("text-foreground-2"), R.join(" ");
|
|
1399
|
+
}), $ = u(
|
|
1400
|
+
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1401
|
+
), F = u(() => {
|
|
1402
|
+
const R = [];
|
|
1403
|
+
return $.value ? R.push("pl-8") : R.push("pl-2"), o["input-right"] || (k.value || s.showClear) && (k.value && s.showClear ? R.push("pr-12") : R.push("pr-8")), R.join(" ");
|
|
1404
|
+
}), g = u(() => {
|
|
1405
|
+
switch (s.size) {
|
|
1402
1406
|
case "sm":
|
|
1403
1407
|
return "h-6";
|
|
1404
1408
|
case "lg":
|
|
@@ -1410,197 +1414,197 @@ const Rs = ["for"], zs = { class: "relative" }, Fs = ["id", "name", "placeholder
|
|
|
1410
1414
|
return "h-8";
|
|
1411
1415
|
}
|
|
1412
1416
|
});
|
|
1413
|
-
return
|
|
1414
|
-
class:
|
|
1417
|
+
return l({ focus: j }), (R, E) => (a(), h("div", {
|
|
1418
|
+
class: y([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1415
1419
|
}, [
|
|
1416
|
-
|
|
1420
|
+
i("label", {
|
|
1417
1421
|
for: e.name,
|
|
1418
|
-
class:
|
|
1422
|
+
class: y(n(b))
|
|
1419
1423
|
}, [
|
|
1420
|
-
|
|
1421
|
-
], 10,
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
e.customIcon ? (a(),
|
|
1424
|
+
i("span", null, I(n(p)), 1)
|
|
1425
|
+
], 10, Gs),
|
|
1426
|
+
i("div", Ks, [
|
|
1427
|
+
$.value ? (a(), h("div", Xs, [
|
|
1428
|
+
e.customIcon ? (a(), P(H(e.customIcon), {
|
|
1425
1429
|
key: 0,
|
|
1426
|
-
class:
|
|
1430
|
+
class: y(w.value),
|
|
1427
1431
|
"aria-hidden": "true"
|
|
1428
|
-
}, null, 8, ["class"])) : e.type === "email" ? (a(),
|
|
1432
|
+
}, null, 8, ["class"])) : e.type === "email" ? (a(), P(n(ht), {
|
|
1429
1433
|
key: 1,
|
|
1430
|
-
class:
|
|
1434
|
+
class: y(w.value),
|
|
1431
1435
|
"aria-hidden": "true"
|
|
1432
|
-
}, null, 8, ["class"])) : e.type === "password" ? (a(),
|
|
1436
|
+
}, null, 8, ["class"])) : e.type === "password" ? (a(), P(n(mt), {
|
|
1433
1437
|
key: 2,
|
|
1434
|
-
class:
|
|
1438
|
+
class: y(w.value),
|
|
1435
1439
|
"aria-hidden": "true"
|
|
1436
1440
|
}, null, 8, ["class"])) : S("", !0)
|
|
1437
1441
|
])) : S("", !0),
|
|
1438
|
-
|
|
1442
|
+
ne(i("input", oe({
|
|
1439
1443
|
id: e.name,
|
|
1440
1444
|
ref_key: "inputElement",
|
|
1441
|
-
ref:
|
|
1442
|
-
"onUpdate:modelValue":
|
|
1445
|
+
ref: c,
|
|
1446
|
+
"onUpdate:modelValue": E[0] || (E[0] = (z) => ve(r) ? r.value = z : null),
|
|
1443
1447
|
type: e.type,
|
|
1444
1448
|
name: e.name,
|
|
1445
|
-
class: [
|
|
1449
|
+
class: [n(f), F.value, g.value, e.inputClasses || ""],
|
|
1446
1450
|
placeholder: e.placeholder,
|
|
1447
1451
|
disabled: e.disabled,
|
|
1448
|
-
"aria-invalid":
|
|
1449
|
-
"aria-describedby":
|
|
1452
|
+
"aria-invalid": n(k) ? "true" : "false",
|
|
1453
|
+
"aria-describedby": n(d),
|
|
1450
1454
|
role: "textbox"
|
|
1451
|
-
},
|
|
1452
|
-
onChange:
|
|
1453
|
-
onInput:
|
|
1454
|
-
}), null, 16,
|
|
1455
|
-
[
|
|
1455
|
+
}, R.$attrs, {
|
|
1456
|
+
onChange: E[1] || (E[1] = (z) => R.$emit("change", { event: z, value: n(r) })),
|
|
1457
|
+
onInput: E[2] || (E[2] = (z) => R.$emit("input", { event: z, value: n(r) }))
|
|
1458
|
+
}), null, 16, Ns), [
|
|
1459
|
+
[Xe, n(r)]
|
|
1456
1460
|
]),
|
|
1457
|
-
|
|
1458
|
-
e.showClear ? (a(),
|
|
1461
|
+
D(R.$slots, "input-right", {}, () => [
|
|
1462
|
+
e.showClear ? (a(), h("a", {
|
|
1459
1463
|
key: 0,
|
|
1460
1464
|
title: "Clear input",
|
|
1461
1465
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1462
|
-
onClick:
|
|
1463
|
-
(...
|
|
1464
|
-
onKeydown:
|
|
1465
|
-
(...
|
|
1466
|
+
onClick: E[3] || (E[3] = //@ts-ignore
|
|
1467
|
+
(...z) => n(_) && n(_)(...z)),
|
|
1468
|
+
onKeydown: E[4] || (E[4] = //@ts-ignore
|
|
1469
|
+
(...z) => n(_) && n(_)(...z))
|
|
1466
1470
|
}, [
|
|
1467
|
-
|
|
1468
|
-
|
|
1471
|
+
Js,
|
|
1472
|
+
L(n(ue), {
|
|
1469
1473
|
class: "h-5 w-5 text-foreground",
|
|
1470
1474
|
"aria-hidden": "true"
|
|
1471
1475
|
})
|
|
1472
1476
|
], 32)) : S("", !0),
|
|
1473
|
-
|
|
1477
|
+
n(k) ? (a(), h("div", {
|
|
1474
1478
|
key: 1,
|
|
1475
|
-
class:
|
|
1479
|
+
class: y([
|
|
1476
1480
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1477
1481
|
e.showClear ? "pr-8" : "pr-2"
|
|
1478
1482
|
])
|
|
1479
1483
|
}, [
|
|
1480
|
-
|
|
1484
|
+
L(n(Re), {
|
|
1481
1485
|
class: "h-4 w-4 text-danger",
|
|
1482
1486
|
"aria-hidden": "true"
|
|
1483
1487
|
})
|
|
1484
1488
|
], 2)) : S("", !0),
|
|
1485
|
-
e.showRequired && !
|
|
1489
|
+
e.showRequired && !n(k) ? (a(), h("div", Qs, " * ")) : S("", !0)
|
|
1486
1490
|
])
|
|
1487
1491
|
]),
|
|
1488
|
-
|
|
1492
|
+
n(d) && !n(m) ? (a(), h("p", {
|
|
1489
1493
|
key: 0,
|
|
1490
|
-
id:
|
|
1491
|
-
class:
|
|
1492
|
-
},
|
|
1494
|
+
id: n(d),
|
|
1495
|
+
class: y(n(x))
|
|
1496
|
+
}, I(n(v)), 11, Ys)) : S("", !0)
|
|
1493
1497
|
], 2));
|
|
1494
1498
|
}
|
|
1495
|
-
}),
|
|
1496
|
-
const { minLength: t, maxLength:
|
|
1497
|
-
return
|
|
1498
|
-
},
|
|
1499
|
-
const { match: t, message:
|
|
1500
|
-
return
|
|
1501
|
-
},
|
|
1499
|
+
}), Zs = /^https?:\/\//, Ce = /^[\w-_.+]+@[\w-_.+]+$/, en = (e) => (e || "").match(Ce) ? !0 : "Value should be a valid e-mail address", tn = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ce)) || "Value should be one or multiple comma-delimited e-mail addresses", sn = (e) => (ie(e) && (e = e.trim()), e ? !0 : "Value is required"), nn = (e, l) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${l || e}'`, ln = (e) => (l) => {
|
|
1500
|
+
const { minLength: t, maxLength: s } = e;
|
|
1501
|
+
return l = gt(l) ? "" : l, ie(l) ? !Q(t) && l.length < t ? `Value needs to be at least ${t} characters long` : !Q(s) && l.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1502
|
+
}, an = (e) => (l) => {
|
|
1503
|
+
const { match: t, message: s } = e;
|
|
1504
|
+
return ie(l) ? t ? ie(t) ? l.includes(t) ? !0 : s : t.test(l) ? !0 : s : !0 : "Value should be a text string";
|
|
1505
|
+
}, Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1502
1506
|
__proto__: null,
|
|
1503
|
-
VALID_EMAIL:
|
|
1504
|
-
VALID_HTTP_URL:
|
|
1505
|
-
isEmail:
|
|
1506
|
-
isOneOrMultipleEmails:
|
|
1507
|
-
isRequired:
|
|
1508
|
-
isSameAs:
|
|
1509
|
-
isStringOfLength:
|
|
1510
|
-
stringContains:
|
|
1507
|
+
VALID_EMAIL: Ce,
|
|
1508
|
+
VALID_HTTP_URL: Zs,
|
|
1509
|
+
isEmail: en,
|
|
1510
|
+
isOneOrMultipleEmails: tn,
|
|
1511
|
+
isRequired: sn,
|
|
1512
|
+
isSameAs: nn,
|
|
1513
|
+
isStringOfLength: ln,
|
|
1514
|
+
stringContains: an
|
|
1511
1515
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1512
|
-
function
|
|
1516
|
+
function on(e) {
|
|
1513
1517
|
const {
|
|
1514
|
-
skipCalculation:
|
|
1518
|
+
skipCalculation: l,
|
|
1515
1519
|
elementToWatchForChanges: t,
|
|
1516
|
-
itemContainer:
|
|
1520
|
+
itemContainer: s,
|
|
1517
1521
|
trackResize: o = !1,
|
|
1518
|
-
trackMutations:
|
|
1519
|
-
} = e || {}, f =
|
|
1520
|
-
const
|
|
1521
|
-
if (
|
|
1522
|
+
trackMutations: c = !0
|
|
1523
|
+
} = e || {}, f = O(0), p = () => {
|
|
1524
|
+
const r = s.value;
|
|
1525
|
+
if (l != null && l.value || !r)
|
|
1522
1526
|
return;
|
|
1523
|
-
const
|
|
1524
|
-
let
|
|
1525
|
-
for (const
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1527
|
+
const d = r.children;
|
|
1528
|
+
let x = 0, v = 0, m;
|
|
1529
|
+
for (const k of d) {
|
|
1530
|
+
const _ = k.offsetTop;
|
|
1531
|
+
Q(m) ? (m = _, x += 1) : _ === m && (x += 1), v += 1;
|
|
1528
1532
|
}
|
|
1529
|
-
f.value = v -
|
|
1533
|
+
f.value = v - x;
|
|
1530
1534
|
};
|
|
1531
|
-
return o &&
|
|
1535
|
+
return o && yt(t, p), c && xt(t, p, {
|
|
1532
1536
|
childList: !0,
|
|
1533
1537
|
subtree: !0
|
|
1534
1538
|
}), {
|
|
1535
1539
|
hiddenItemCount: f
|
|
1536
1540
|
};
|
|
1537
1541
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const { props:
|
|
1542
|
+
function rn(e) {
|
|
1543
|
+
const { props: l, emit: t, dynamicVisibility: s } = e;
|
|
1540
1544
|
let o;
|
|
1541
|
-
if (
|
|
1542
|
-
const { elementToWatchForChanges:
|
|
1543
|
-
o =
|
|
1544
|
-
skipCalculation:
|
|
1545
|
-
var
|
|
1546
|
-
return !((
|
|
1545
|
+
if (s) {
|
|
1546
|
+
const { elementToWatchForChanges: d, itemContainer: x } = s;
|
|
1547
|
+
o = on({
|
|
1548
|
+
skipCalculation: u(() => {
|
|
1549
|
+
var m;
|
|
1550
|
+
return !((m = l.multiple) != null && m.value);
|
|
1547
1551
|
}),
|
|
1548
|
-
elementToWatchForChanges:
|
|
1549
|
-
itemContainer:
|
|
1552
|
+
elementToWatchForChanges: d,
|
|
1553
|
+
itemContainer: x
|
|
1550
1554
|
}).hiddenItemCount;
|
|
1551
1555
|
} else
|
|
1552
|
-
o =
|
|
1553
|
-
const
|
|
1556
|
+
o = O(0);
|
|
1557
|
+
const c = u({
|
|
1554
1558
|
get: () => {
|
|
1555
|
-
var
|
|
1556
|
-
const
|
|
1557
|
-
return (v =
|
|
1559
|
+
var x, v;
|
|
1560
|
+
const d = (x = l.modelValue) == null ? void 0 : x.value;
|
|
1561
|
+
return (v = l.multiple) != null && v.value ? q(d) ? d : [] : q(d) ? void 0 : d;
|
|
1558
1562
|
},
|
|
1559
|
-
set: (
|
|
1560
|
-
var
|
|
1561
|
-
if ((
|
|
1563
|
+
set: (d) => {
|
|
1564
|
+
var x, v, m;
|
|
1565
|
+
if ((x = l.multiple) != null && x.value && !q(d)) {
|
|
1562
1566
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1563
1567
|
return;
|
|
1564
|
-
} else if (!((v =
|
|
1568
|
+
} else if (!((v = l.multiple) != null && v.value) && q(d)) {
|
|
1565
1569
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1566
1570
|
return;
|
|
1567
1571
|
}
|
|
1568
|
-
t("update:modelValue", (
|
|
1572
|
+
t("update:modelValue", (m = l.multiple) != null && m.value ? d || [] : d);
|
|
1569
1573
|
}
|
|
1570
|
-
}), f = (
|
|
1574
|
+
}), f = (d) => q(d);
|
|
1571
1575
|
return {
|
|
1572
|
-
selectedValue:
|
|
1576
|
+
selectedValue: c,
|
|
1573
1577
|
hiddenSelectedItemCount: o,
|
|
1574
1578
|
isArrayValue: f,
|
|
1575
|
-
isMultiItemArrayValue: (
|
|
1576
|
-
firstItem: (
|
|
1579
|
+
isMultiItemArrayValue: (d) => q(d) && d.length > 1,
|
|
1580
|
+
firstItem: (d) => f(d) ? d[0] : d
|
|
1577
1581
|
};
|
|
1578
1582
|
}
|
|
1579
|
-
const
|
|
1580
|
-
|
|
1581
|
-
],
|
|
1583
|
+
const un = (e) => (Ne("data-v-60cf597b"), e = e(), Je(), e), cn = /* @__PURE__ */ un(() => /* @__PURE__ */ i("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), dn = [
|
|
1584
|
+
cn
|
|
1585
|
+
], fn = /* @__PURE__ */ M({
|
|
1582
1586
|
__name: "Bar",
|
|
1583
1587
|
props: {
|
|
1584
1588
|
loading: { type: Boolean }
|
|
1585
1589
|
},
|
|
1586
1590
|
setup(e) {
|
|
1587
|
-
return (
|
|
1588
|
-
class:
|
|
1591
|
+
return (l, t) => (a(), h("div", {
|
|
1592
|
+
class: y([
|
|
1589
1593
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1590
1594
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1591
1595
|
])
|
|
1592
|
-
},
|
|
1596
|
+
}, dn, 2));
|
|
1593
1597
|
}
|
|
1594
1598
|
});
|
|
1595
|
-
const
|
|
1599
|
+
const We = /* @__PURE__ */ ze(fn, [["__scopeId", "data-v-60cf597b"]]), pn = { class: "flex items-center justify-between w-full" }, hn = { class: "block truncate grow text-left" }, mn = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, gn = ["disabled"], vn = {
|
|
1596
1600
|
key: 0,
|
|
1597
1601
|
class: "flex flex-col mx-1 mb-1"
|
|
1598
|
-
},
|
|
1602
|
+
}, bn = /* @__PURE__ */ i("span", { class: "sr-only label text-foreground" }, "Search", -1), yn = { class: "relative" }, xn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, kn = ["placeholder"], Cn = {
|
|
1599
1603
|
key: 0,
|
|
1600
1604
|
class: "px-1"
|
|
1601
|
-
},
|
|
1602
|
-
class: /* @__PURE__ */
|
|
1603
|
-
},
|
|
1605
|
+
}, wn = { key: 1 }, $n = /* @__PURE__ */ i("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Sn = {
|
|
1606
|
+
class: /* @__PURE__ */ y(["block truncate"])
|
|
1607
|
+
}, In = ["id"], _n = /* @__PURE__ */ M({
|
|
1604
1608
|
__name: "Base",
|
|
1605
1609
|
props: {
|
|
1606
1610
|
multiple: {
|
|
@@ -1738,150 +1742,153 @@ const Ee = /* @__PURE__ */ Re(cn, [["__scopeId", "data-v-60cf597b"]]), dn = { cl
|
|
|
1738
1742
|
}
|
|
1739
1743
|
},
|
|
1740
1744
|
emits: ["update:modelValue"],
|
|
1741
|
-
setup(e, { expose:
|
|
1742
|
-
const
|
|
1743
|
-
validateOnMount:
|
|
1744
|
-
validateOnValueUpdate:
|
|
1745
|
-
initialValue:
|
|
1746
|
-
}),
|
|
1747
|
-
const
|
|
1748
|
-
return !
|
|
1749
|
-
}),
|
|
1750
|
-
() =>
|
|
1751
|
-
),
|
|
1752
|
-
() =>
|
|
1753
|
-
),
|
|
1754
|
-
() =>
|
|
1755
|
-
),
|
|
1756
|
-
const
|
|
1757
|
-
return
|
|
1758
|
-
}),
|
|
1759
|
-
const
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1762
|
-
),
|
|
1763
|
-
}),
|
|
1764
|
-
const
|
|
1745
|
+
setup(e, { expose: l, emit: t }) {
|
|
1746
|
+
const s = e, { value: o, errorMessage: c } = ye(s.name, s.rules, {
|
|
1747
|
+
validateOnMount: s.validateOnMount,
|
|
1748
|
+
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1749
|
+
initialValue: s.modelValue
|
|
1750
|
+
}), f = O(null), p = O(""), r = O([]), d = O(!1), x = O(1), v = O(xe()), m = u(() => n(s.label) || n(s.name)), k = u(() => {
|
|
1751
|
+
const C = c.value;
|
|
1752
|
+
return !C || !n(s.useLabelInErrors) ? C : C.replace("Value", m.value);
|
|
1753
|
+
}), _ = u(() => k.value || n(s.help)), j = u(() => !!_.value), b = u(
|
|
1754
|
+
() => j.value ? `${n(s.name)}-${v.value}` : void 0
|
|
1755
|
+
), w = u(
|
|
1756
|
+
() => c.value ? "text-danger" : "text-foreground-2"
|
|
1757
|
+
), $ = u(
|
|
1758
|
+
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1759
|
+
), F = u(() => {
|
|
1760
|
+
const C = ["relative flex group"];
|
|
1761
|
+
return s.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), s.fixedHeight && C.push("h-8"), C.join(" ");
|
|
1762
|
+
}), g = u(() => {
|
|
1763
|
+
const C = [];
|
|
1764
|
+
return s.buttonStyle !== "simple" && C.push(
|
|
1765
|
+
Z.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1766
|
+
), Z.value && C.push("cursor-not-allowed"), C.join(" ");
|
|
1767
|
+
}), R = u(() => {
|
|
1768
|
+
const C = [
|
|
1765
1769
|
"relative z-[1]",
|
|
1766
1770
|
"flex items-center justify-center text-center shrink-0",
|
|
1767
1771
|
"rounded-r-md overflow-hidden transition-all",
|
|
1768
1772
|
"text-foreground",
|
|
1769
|
-
|
|
1773
|
+
we.value ? `w-6 ${g.value}` : "w-0"
|
|
1770
1774
|
];
|
|
1771
|
-
return
|
|
1775
|
+
return Z.value || (C.push(
|
|
1772
1776
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
1773
|
-
),
|
|
1774
|
-
}),
|
|
1775
|
-
const
|
|
1777
|
+
), s.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
|
|
1778
|
+
}), E = u(() => {
|
|
1779
|
+
const C = [
|
|
1776
1780
|
"relative z-[2]",
|
|
1777
1781
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1778
1782
|
"flex items-center",
|
|
1779
|
-
|
|
1783
|
+
g.value
|
|
1780
1784
|
];
|
|
1781
|
-
return
|
|
1782
|
-
}),
|
|
1783
|
-
() => !!(
|
|
1784
|
-
),
|
|
1785
|
-
() =>
|
|
1786
|
-
), W =
|
|
1785
|
+
return s.buttonStyle !== "simple" && (C.push("py-2 px-3"), Z.value || (s.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), $.value && we.value && C.push("rounded-r-none"), C.join(" ");
|
|
1786
|
+
}), z = u(
|
|
1787
|
+
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1788
|
+
), X = u(() => z.value && s.getSearchResults), Z = u(
|
|
1789
|
+
() => s.disabled || !s.items.length && !X.value
|
|
1790
|
+
), W = u({
|
|
1787
1791
|
get: () => {
|
|
1788
|
-
const
|
|
1789
|
-
return
|
|
1792
|
+
const C = o.value;
|
|
1793
|
+
return s.multiple ? q(C) ? C : [] : q(C) ? void 0 : C;
|
|
1790
1794
|
},
|
|
1791
|
-
set: (
|
|
1792
|
-
if (
|
|
1795
|
+
set: (C) => {
|
|
1796
|
+
if (s.multiple && !q(C)) {
|
|
1793
1797
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1794
1798
|
return;
|
|
1795
|
-
} else if (!
|
|
1799
|
+
} else if (!s.multiple && q(C)) {
|
|
1796
1800
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1797
1801
|
return;
|
|
1798
1802
|
}
|
|
1799
|
-
|
|
1800
|
-
|
|
1803
|
+
let T;
|
|
1804
|
+
if (s.multiple)
|
|
1805
|
+
T = C || [];
|
|
1801
1806
|
else {
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1807
|
+
const V = o.value;
|
|
1808
|
+
T = s.allowUnset && V && C && ce(V) === ce(C) ? void 0 : C;
|
|
1804
1809
|
}
|
|
1810
|
+
t("update:modelValue", T), x.value += 1;
|
|
1805
1811
|
}
|
|
1806
|
-
}),
|
|
1807
|
-
|
|
1808
|
-
},
|
|
1809
|
-
const
|
|
1810
|
-
return !
|
|
1811
|
-
(
|
|
1812
|
+
}), we = u(() => s.multiple ? W.value.length !== 0 : !!W.value), qe = () => {
|
|
1813
|
+
s.multiple ? W.value = [] : W.value = void 0;
|
|
1814
|
+
}, He = u(() => {
|
|
1815
|
+
const C = p.value;
|
|
1816
|
+
return !z.value || !(C != null && C.length) ? r.value : s.filterPredicate ? r.value.filter(
|
|
1817
|
+
(T) => {
|
|
1812
1818
|
var V;
|
|
1813
|
-
return ((V =
|
|
1819
|
+
return ((V = s.filterPredicate) == null ? void 0 : V.call(s, T, C)) || !1;
|
|
1814
1820
|
}
|
|
1815
1821
|
) : r.value;
|
|
1816
|
-
}),
|
|
1817
|
-
if (!(!
|
|
1818
|
-
|
|
1822
|
+
}), $e = (C) => JSON.stringify(C), ce = (C) => s.by ? C[s.by] : C, de = async () => {
|
|
1823
|
+
if (!(!X.value || !s.getSearchResults)) {
|
|
1824
|
+
d.value = !0;
|
|
1819
1825
|
try {
|
|
1820
|
-
r.value = await
|
|
1826
|
+
r.value = await s.getSearchResults(p.value);
|
|
1821
1827
|
} finally {
|
|
1822
|
-
|
|
1828
|
+
d.value = !1;
|
|
1823
1829
|
}
|
|
1824
1830
|
}
|
|
1825
|
-
},
|
|
1826
|
-
const { active:
|
|
1831
|
+
}, Ge = Ae(de, 1e3), Ke = (C) => {
|
|
1832
|
+
const { active: T, disabled: V } = C || {}, { hideCheckmarks: K } = s, N = [
|
|
1827
1833
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1828
1834
|
K ? "" : "pr-9"
|
|
1829
1835
|
];
|
|
1830
|
-
return V ?
|
|
1836
|
+
return V ? N.push("opacity-50 cursor-not-allowed") : N.push(T ? "text-primary" : "text-foreground"), N.join(" ");
|
|
1831
1837
|
};
|
|
1832
|
-
return
|
|
1833
|
-
() =>
|
|
1834
|
-
(
|
|
1835
|
-
r.value =
|
|
1838
|
+
return le(
|
|
1839
|
+
() => s.items,
|
|
1840
|
+
(C) => {
|
|
1841
|
+
r.value = C.slice();
|
|
1836
1842
|
},
|
|
1837
1843
|
{ immediate: !0 }
|
|
1838
|
-
),
|
|
1839
|
-
|
|
1840
|
-
}),
|
|
1841
|
-
|
|
1842
|
-
}),
|
|
1843
|
-
|
|
1844
|
+
), le(p, () => {
|
|
1845
|
+
X.value && Ge();
|
|
1846
|
+
}), Y(() => {
|
|
1847
|
+
X.value && !s.items.length && de();
|
|
1848
|
+
}), l({ triggerSearch: de }), (C, T) => (a(), h("div", null, [
|
|
1849
|
+
(a(), P(n(wt), {
|
|
1850
|
+
key: x.value,
|
|
1844
1851
|
modelValue: W.value,
|
|
1845
|
-
"onUpdate:modelValue":
|
|
1852
|
+
"onUpdate:modelValue": T[4] || (T[4] = (V) => W.value = V),
|
|
1846
1853
|
name: e.name,
|
|
1847
1854
|
multiple: e.multiple,
|
|
1848
1855
|
by: e.by,
|
|
1849
|
-
disabled:
|
|
1856
|
+
disabled: Z.value,
|
|
1850
1857
|
as: "div"
|
|
1851
1858
|
}, {
|
|
1852
|
-
default:
|
|
1853
|
-
|
|
1854
|
-
class:
|
|
1859
|
+
default: B(() => [
|
|
1860
|
+
L(n($t), {
|
|
1861
|
+
class: y(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
1855
1862
|
}, {
|
|
1856
|
-
default:
|
|
1857
|
-
|
|
1863
|
+
default: B(() => [
|
|
1864
|
+
A(I(e.label), 1)
|
|
1858
1865
|
]),
|
|
1859
1866
|
_: 1
|
|
1860
1867
|
}, 8, ["class"]),
|
|
1861
|
-
|
|
1862
|
-
class:
|
|
1868
|
+
i("div", {
|
|
1869
|
+
class: y(F.value)
|
|
1863
1870
|
}, [
|
|
1864
|
-
|
|
1865
|
-
class:
|
|
1871
|
+
L(n(St), {
|
|
1872
|
+
class: y(E.value)
|
|
1866
1873
|
}, {
|
|
1867
|
-
default:
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
!W.value ||
|
|
1871
|
-
|
|
1872
|
-
]) :
|
|
1874
|
+
default: B(({ open: V }) => [
|
|
1875
|
+
i("div", pn, [
|
|
1876
|
+
i("div", hn, [
|
|
1877
|
+
!W.value || n(q)(W.value) && !W.value.length ? D(C.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1878
|
+
A(I(e.label), 1)
|
|
1879
|
+
]) : D(C.$slots, "something-selected", {
|
|
1873
1880
|
key: 1,
|
|
1874
1881
|
value: W.value
|
|
1875
1882
|
}, () => [
|
|
1876
|
-
|
|
1883
|
+
A(I($e(W.value)), 1)
|
|
1877
1884
|
])
|
|
1878
1885
|
]),
|
|
1879
|
-
|
|
1880
|
-
V ? (a(),
|
|
1886
|
+
i("div", mn, [
|
|
1887
|
+
V ? (a(), P(n(De), {
|
|
1881
1888
|
key: 0,
|
|
1882
1889
|
class: "h-4 w-4 text-foreground",
|
|
1883
1890
|
"aria-hidden": "true"
|
|
1884
|
-
})) : (a(),
|
|
1891
|
+
})) : (a(), P(n(et), {
|
|
1885
1892
|
key: 1,
|
|
1886
1893
|
class: "h-4 w-4 text-foreground",
|
|
1887
1894
|
"aria-hidden": "true"
|
|
@@ -1891,96 +1898,97 @@ const Ee = /* @__PURE__ */ Re(cn, [["__scopeId", "data-v-60cf597b"]]), dn = { cl
|
|
|
1891
1898
|
]),
|
|
1892
1899
|
_: 3
|
|
1893
1900
|
}, 8, ["class"]),
|
|
1894
|
-
|
|
1901
|
+
$.value ? ne((a(), h("button", {
|
|
1895
1902
|
key: 0,
|
|
1896
|
-
class:
|
|
1903
|
+
class: y(R.value),
|
|
1897
1904
|
disabled: e.disabled,
|
|
1898
|
-
onClick:
|
|
1905
|
+
onClick: T[0] || (T[0] = (V) => qe())
|
|
1899
1906
|
}, [
|
|
1900
|
-
|
|
1901
|
-
], 10,
|
|
1902
|
-
[
|
|
1907
|
+
L(n(tt), { class: "w-3 h-3" })
|
|
1908
|
+
], 10, gn)), [
|
|
1909
|
+
[n(Fe), "Clear"]
|
|
1903
1910
|
]) : S("", !0),
|
|
1904
|
-
|
|
1911
|
+
L(ge, {
|
|
1905
1912
|
"leave-active-class": "transition ease-in duration-100",
|
|
1906
1913
|
"leave-from-class": "opacity-100",
|
|
1907
1914
|
"leave-to-class": "opacity-0"
|
|
1908
1915
|
}, {
|
|
1909
|
-
default:
|
|
1910
|
-
|
|
1916
|
+
default: B(() => [
|
|
1917
|
+
L(n(It), {
|
|
1918
|
+
unmount: !0,
|
|
1911
1919
|
class: "absolute top-[100%] z-10 mt-1 w-full rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow",
|
|
1912
|
-
onFocus:
|
|
1920
|
+
onFocus: T[3] || (T[3] = (V) => {
|
|
1913
1921
|
var K;
|
|
1914
|
-
return (K =
|
|
1922
|
+
return (K = f.value) == null ? void 0 : K.focus();
|
|
1915
1923
|
})
|
|
1916
1924
|
}, {
|
|
1917
|
-
default:
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1925
|
+
default: B(() => [
|
|
1926
|
+
z.value ? (a(), h("label", vn, [
|
|
1927
|
+
bn,
|
|
1928
|
+
i("div", yn, [
|
|
1929
|
+
i("div", xn, [
|
|
1930
|
+
L(n(st), { class: "h-5 w-5 text-foreground" })
|
|
1923
1931
|
]),
|
|
1924
|
-
|
|
1932
|
+
ne(i("input", {
|
|
1925
1933
|
ref_key: "searchInput",
|
|
1926
|
-
ref:
|
|
1927
|
-
"onUpdate:modelValue":
|
|
1934
|
+
ref: f,
|
|
1935
|
+
"onUpdate:modelValue": T[1] || (T[1] = (V) => p.value = V),
|
|
1928
1936
|
type: "text",
|
|
1929
1937
|
class: "pl-9 w-full border-0 bg-foundation-page rounded placeholder:font-normal normal placeholder:text-foreground-2 focus:outline-none focus:ring-1 focus:border-outline-1 focus:ring-outline-1",
|
|
1930
1938
|
placeholder: e.searchPlaceholder,
|
|
1931
|
-
onKeydown:
|
|
1939
|
+
onKeydown: T[2] || (T[2] = be(() => {
|
|
1932
1940
|
}, ["stop"]))
|
|
1933
|
-
}, null, 40,
|
|
1934
|
-
[
|
|
1941
|
+
}, null, 40, kn), [
|
|
1942
|
+
[Ve, p.value]
|
|
1935
1943
|
])
|
|
1936
1944
|
])
|
|
1937
1945
|
])) : S("", !0),
|
|
1938
|
-
|
|
1939
|
-
class:
|
|
1946
|
+
i("div", {
|
|
1947
|
+
class: y(["overflow-auto simple-scrollbar", [z.value ? "max-h-52" : "max-h-60"]])
|
|
1940
1948
|
}, [
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
])) :
|
|
1944
|
-
|
|
1945
|
-
|
|
1949
|
+
X.value && d.value ? (a(), h("div", Cn, [
|
|
1950
|
+
L(We, { loading: !0 })
|
|
1951
|
+
])) : X.value && !r.value.length ? (a(), h("div", wn, [
|
|
1952
|
+
D(C.$slots, "nothing-found", {}, () => [
|
|
1953
|
+
$n
|
|
1946
1954
|
])
|
|
1947
1955
|
])) : S("", !0),
|
|
1948
|
-
!
|
|
1956
|
+
!X.value || !d.value ? (a(!0), h(U, { key: 2 }, G(He.value, (V) => {
|
|
1949
1957
|
var K;
|
|
1950
|
-
return a(),
|
|
1951
|
-
key:
|
|
1958
|
+
return a(), P(n(_t), {
|
|
1959
|
+
key: ce(V),
|
|
1952
1960
|
value: V,
|
|
1953
1961
|
disabled: ((K = e.disabledItemPredicate) == null ? void 0 : K.call(e, V)) || !1
|
|
1954
1962
|
}, {
|
|
1955
|
-
default:
|
|
1956
|
-
var
|
|
1963
|
+
default: B(({ active: N, selected: Se }) => {
|
|
1964
|
+
var Ie, _e;
|
|
1957
1965
|
return [
|
|
1958
|
-
|
|
1959
|
-
class:
|
|
1960
|
-
|
|
1961
|
-
active:
|
|
1962
|
-
disabled: ((
|
|
1966
|
+
i("li", {
|
|
1967
|
+
class: y(
|
|
1968
|
+
Ke({
|
|
1969
|
+
active: N,
|
|
1970
|
+
disabled: ((Ie = e.disabledItemPredicate) == null ? void 0 : Ie.call(e, V)) || !1
|
|
1963
1971
|
})
|
|
1964
1972
|
)
|
|
1965
1973
|
}, [
|
|
1966
|
-
|
|
1967
|
-
|
|
1974
|
+
i("span", Sn, [
|
|
1975
|
+
D(C.$slots, "option", {
|
|
1968
1976
|
item: V,
|
|
1969
|
-
active:
|
|
1970
|
-
selected:
|
|
1971
|
-
disabled: ((
|
|
1977
|
+
active: N,
|
|
1978
|
+
selected: Se,
|
|
1979
|
+
disabled: ((_e = e.disabledItemPredicate) == null ? void 0 : _e.call(e, V)) || !1
|
|
1972
1980
|
}, () => [
|
|
1973
|
-
|
|
1981
|
+
A(I($e(V)), 1)
|
|
1974
1982
|
])
|
|
1975
1983
|
]),
|
|
1976
|
-
!e.hideCheckmarks &&
|
|
1984
|
+
!e.hideCheckmarks && Se ? (a(), h("span", {
|
|
1977
1985
|
key: 0,
|
|
1978
|
-
class:
|
|
1979
|
-
|
|
1986
|
+
class: y([
|
|
1987
|
+
N ? "text-primary" : "text-foreground",
|
|
1980
1988
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
1981
1989
|
])
|
|
1982
1990
|
}, [
|
|
1983
|
-
|
|
1991
|
+
L(n(nt), {
|
|
1984
1992
|
class: "h-5 w-5",
|
|
1985
1993
|
"aria-hidden": "true"
|
|
1986
1994
|
})
|
|
@@ -2001,38 +2009,38 @@ const Ee = /* @__PURE__ */ Re(cn, [["__scopeId", "data-v-60cf597b"]]), dn = { cl
|
|
|
2001
2009
|
], 2)
|
|
2002
2010
|
]),
|
|
2003
2011
|
_: 3
|
|
2004
|
-
}, 8, ["modelValue", "name", "multiple", "by", "disabled"]),
|
|
2005
|
-
|
|
2012
|
+
}, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
|
|
2013
|
+
b.value ? (a(), h("p", {
|
|
2006
2014
|
key: 0,
|
|
2007
|
-
id:
|
|
2008
|
-
class:
|
|
2009
|
-
}, _
|
|
2015
|
+
id: b.value,
|
|
2016
|
+
class: y(["mt-2 text-sm", w.value])
|
|
2017
|
+
}, I(_.value), 11, In)) : S("", !0)
|
|
2010
2018
|
]));
|
|
2011
2019
|
}
|
|
2012
|
-
}),
|
|
2020
|
+
}), Bn = /* @__PURE__ */ M({
|
|
2013
2021
|
__name: "SourceAppBadge",
|
|
2014
2022
|
props: {
|
|
2015
2023
|
sourceApp: null
|
|
2016
2024
|
},
|
|
2017
2025
|
setup(e) {
|
|
2018
|
-
return (
|
|
2026
|
+
return (l, t) => (a(), P(ts, {
|
|
2019
2027
|
"color-classes": "text-foreground-on-primary",
|
|
2020
2028
|
rounded: "",
|
|
2021
|
-
style:
|
|
2029
|
+
style: fe({ backgroundColor: e.sourceApp.bgColor })
|
|
2022
2030
|
}, {
|
|
2023
|
-
default:
|
|
2024
|
-
|
|
2031
|
+
default: B(() => [
|
|
2032
|
+
A(I(e.sourceApp.short), 1)
|
|
2025
2033
|
]),
|
|
2026
2034
|
_: 1
|
|
2027
2035
|
}, 8, ["style"]));
|
|
2028
2036
|
}
|
|
2029
|
-
}),
|
|
2037
|
+
}), Ln = {
|
|
2030
2038
|
key: 0,
|
|
2031
2039
|
class: "text-foreground-2 normal"
|
|
2032
|
-
},
|
|
2040
|
+
}, Pn = {
|
|
2033
2041
|
key: 1,
|
|
2034
2042
|
class: "flex items-center"
|
|
2035
|
-
},
|
|
2043
|
+
}, jn = { class: "truncate" }, Vn = { class: "flex items-center" }, On = { class: "truncate" }, _l = /* @__PURE__ */ M({
|
|
2036
2044
|
__name: "SourceApps",
|
|
2037
2045
|
props: {
|
|
2038
2046
|
/**
|
|
@@ -2091,126 +2099,142 @@ const Ee = /* @__PURE__ */ Re(cn, [["__scopeId", "data-v-60cf597b"]]), dn = { cl
|
|
|
2091
2099
|
}
|
|
2092
2100
|
},
|
|
2093
2101
|
emits: ["update:modelValue"],
|
|
2094
|
-
setup(e, { emit:
|
|
2095
|
-
const t = e,
|
|
2096
|
-
props:
|
|
2097
|
-
emit:
|
|
2098
|
-
dynamicVisibility: { elementToWatchForChanges:
|
|
2099
|
-
}),
|
|
2100
|
-
return (
|
|
2101
|
-
modelValue:
|
|
2102
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2102
|
+
setup(e, { emit: l }) {
|
|
2103
|
+
const t = e, s = O(null), o = O(null), { selectedValue: c, hiddenSelectedItemCount: f, isMultiItemArrayValue: p, firstItem: r } = rn({
|
|
2104
|
+
props: ae(t),
|
|
2105
|
+
emit: l,
|
|
2106
|
+
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
2107
|
+
}), d = (x, v) => x.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
|
|
2108
|
+
return (x, v) => (a(), P(_n, {
|
|
2109
|
+
modelValue: n(c),
|
|
2110
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => ve(c) ? c.value = m : null),
|
|
2103
2111
|
multiple: e.multiple,
|
|
2104
|
-
items: e.items ??
|
|
2112
|
+
items: e.items ?? n(vt),
|
|
2105
2113
|
search: e.search,
|
|
2106
2114
|
"search-placeholder": e.searchPlaceholder,
|
|
2107
2115
|
label: e.label,
|
|
2108
2116
|
"show-label": e.showLabel,
|
|
2109
2117
|
name: e.name || "sourceApps",
|
|
2110
|
-
"filter-predicate":
|
|
2118
|
+
"filter-predicate": d,
|
|
2111
2119
|
by: "name"
|
|
2112
2120
|
}, {
|
|
2113
|
-
"nothing-selected":
|
|
2114
|
-
e.selectorPlaceholder ? (a(),
|
|
2115
|
-
|
|
2116
|
-
], 64)) : (a(),
|
|
2117
|
-
|
|
2121
|
+
"nothing-selected": B(() => [
|
|
2122
|
+
e.selectorPlaceholder ? (a(), h(U, { key: 0 }, [
|
|
2123
|
+
A(I(e.selectorPlaceholder), 1)
|
|
2124
|
+
], 64)) : (a(), h(U, { key: 1 }, [
|
|
2125
|
+
A(I(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2118
2126
|
], 64))
|
|
2119
2127
|
]),
|
|
2120
|
-
"something-selected":
|
|
2121
|
-
|
|
2128
|
+
"something-selected": B(({ value: m }) => [
|
|
2129
|
+
n(p)(m) ? (a(), h("div", {
|
|
2122
2130
|
key: 0,
|
|
2123
2131
|
ref_key: "elementToWatchForChanges",
|
|
2124
|
-
ref:
|
|
2132
|
+
ref: s,
|
|
2125
2133
|
class: "flex items-center space-x-0.5 h-5"
|
|
2126
2134
|
}, [
|
|
2127
|
-
|
|
2135
|
+
i("div", {
|
|
2128
2136
|
ref_key: "itemContainer",
|
|
2129
2137
|
ref: o,
|
|
2130
2138
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2131
2139
|
}, [
|
|
2132
|
-
(a(!0),
|
|
2133
|
-
key:
|
|
2134
|
-
"source-app":
|
|
2140
|
+
(a(!0), h(U, null, G(m, (k) => (a(), P(Bn, {
|
|
2141
|
+
key: k.name,
|
|
2142
|
+
"source-app": k
|
|
2135
2143
|
}, null, 8, ["source-app"]))), 128))
|
|
2136
2144
|
], 512),
|
|
2137
|
-
|
|
2138
|
-
], 512)) : (a(),
|
|
2139
|
-
|
|
2145
|
+
n(f) > 0 ? (a(), h("div", Ln, " +" + I(n(f)), 1)) : S("", !0)
|
|
2146
|
+
], 512)) : (a(), h("div", Pn, [
|
|
2147
|
+
i("div", {
|
|
2140
2148
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2141
|
-
style:
|
|
2149
|
+
style: fe({ backgroundColor: n(r)(m).bgColor })
|
|
2142
2150
|
}, null, 4),
|
|
2143
|
-
|
|
2151
|
+
i("span", jn, I(n(r)(m).name), 1)
|
|
2144
2152
|
]))
|
|
2145
2153
|
]),
|
|
2146
|
-
option:
|
|
2147
|
-
|
|
2148
|
-
|
|
2154
|
+
option: B(({ item: m }) => [
|
|
2155
|
+
i("div", Vn, [
|
|
2156
|
+
i("div", {
|
|
2149
2157
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2150
|
-
style:
|
|
2158
|
+
style: fe({ backgroundColor: m.bgColor })
|
|
2151
2159
|
}, null, 4),
|
|
2152
|
-
|
|
2160
|
+
i("span", On, I(m.name), 1)
|
|
2153
2161
|
])
|
|
2154
2162
|
]),
|
|
2155
2163
|
_: 1
|
|
2156
2164
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name"]));
|
|
2157
2165
|
}
|
|
2158
2166
|
});
|
|
2159
|
-
var
|
|
2160
|
-
const
|
|
2167
|
+
var se = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(se || {});
|
|
2168
|
+
const he = bt(), Mn = {
|
|
2161
2169
|
[
|
|
2162
2170
|
"cmd-or-ctrl"
|
|
2163
2171
|
/* CtrlOrCmd */
|
|
2164
|
-
]:
|
|
2172
|
+
]: he === pe.Mac ? "Cmd" : "Ctrl",
|
|
2165
2173
|
[
|
|
2166
2174
|
"alt-or-opt"
|
|
2167
2175
|
/* AltOrOpt */
|
|
2168
|
-
]:
|
|
2176
|
+
]: he === pe.Mac ? "Opt" : "Alt",
|
|
2169
2177
|
shift: "Shift"
|
|
2170
2178
|
};
|
|
2171
|
-
function
|
|
2172
|
-
const
|
|
2173
|
-
return e.map((t) =>
|
|
2179
|
+
function Bl(e) {
|
|
2180
|
+
const l = (t) => Object.values(se).includes(t);
|
|
2181
|
+
return e.map((t) => l(t) ? Mn[t] : t).join("+");
|
|
2174
2182
|
}
|
|
2175
|
-
function
|
|
2176
|
-
|
|
2177
|
-
|
|
2183
|
+
function Ll(e, ...l) {
|
|
2184
|
+
kt(
|
|
2185
|
+
l[0],
|
|
2178
2186
|
(t) => {
|
|
2179
|
-
const
|
|
2187
|
+
const s = t.getModifierState("Alt"), o = he === pe.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), c = t.getModifierState("Shift");
|
|
2180
2188
|
for (const f of e)
|
|
2181
2189
|
switch (f) {
|
|
2182
|
-
case
|
|
2190
|
+
case se.CtrlOrCmd:
|
|
2183
2191
|
if (!o)
|
|
2184
2192
|
return;
|
|
2185
2193
|
break;
|
|
2186
|
-
case
|
|
2187
|
-
if (!
|
|
2194
|
+
case se.AltOrOpt:
|
|
2195
|
+
if (!s)
|
|
2188
2196
|
return;
|
|
2189
2197
|
break;
|
|
2190
|
-
case
|
|
2191
|
-
if (!
|
|
2198
|
+
case se.Shift:
|
|
2199
|
+
if (!c)
|
|
2192
2200
|
return;
|
|
2193
2201
|
break;
|
|
2194
2202
|
}
|
|
2195
|
-
|
|
2203
|
+
l[1](t);
|
|
2196
2204
|
},
|
|
2197
|
-
|
|
2205
|
+
l[2]
|
|
2198
2206
|
);
|
|
2199
2207
|
}
|
|
2200
|
-
|
|
2208
|
+
function Pl(e) {
|
|
2209
|
+
const l = (e == null ? void 0 : e.model) || O(), t = u({
|
|
2210
|
+
get: () => !!l.value,
|
|
2211
|
+
set: (s) => l.value = s ? !0 : void 0
|
|
2212
|
+
});
|
|
2213
|
+
return { model: l, isChecked: t };
|
|
2214
|
+
}
|
|
2215
|
+
const An = /* @__PURE__ */ i("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Dn = { class: "fixed inset-0 z-10 overflow-y-auto" }, Tn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Rn = {
|
|
2216
|
+
key: 0,
|
|
2217
|
+
class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
|
|
2218
|
+
}, Fn = { class: "text-2xl font-bold" }, zn = { class: "p-4 sm:p-6" }, En = {
|
|
2219
|
+
key: 2,
|
|
2220
|
+
class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
|
|
2221
|
+
}, jl = /* @__PURE__ */ M({
|
|
2201
2222
|
__name: "Dialog",
|
|
2202
2223
|
props: {
|
|
2203
2224
|
open: { type: Boolean },
|
|
2204
2225
|
maxWidth: null,
|
|
2205
2226
|
hideCloser: { type: Boolean },
|
|
2206
|
-
preventCloseOnClickOutside: { type: Boolean }
|
|
2227
|
+
preventCloseOnClickOutside: { type: Boolean },
|
|
2228
|
+
title: null,
|
|
2229
|
+
buttons: null,
|
|
2230
|
+
onSubmit: { type: Function }
|
|
2207
2231
|
},
|
|
2208
2232
|
emits: ["update:open", "fully-closed"],
|
|
2209
|
-
setup(e, { emit:
|
|
2210
|
-
const t = e,
|
|
2233
|
+
setup(e, { emit: l }) {
|
|
2234
|
+
const t = e, s = u(() => !!t.onSubmit), o = u({
|
|
2211
2235
|
get: () => t.open,
|
|
2212
|
-
set: (r) =>
|
|
2213
|
-
}),
|
|
2236
|
+
set: (r) => l("update:open", r)
|
|
2237
|
+
}), c = u(() => {
|
|
2214
2238
|
switch (t.maxWidth) {
|
|
2215
2239
|
case "sm":
|
|
2216
2240
|
return 0;
|
|
@@ -2223,27 +2247,24 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2223
2247
|
default:
|
|
2224
2248
|
return 1e4;
|
|
2225
2249
|
}
|
|
2226
|
-
}),
|
|
2227
|
-
const r = [
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
return o.value >= 1 && r.push("md:max-w-2xl"), o.value >= 2 && r.push("lg:max-w-4xl"), o.value >= 3 && r.push("xl:max-w-6xl"), o.value >= 4 && r.push("2xl:max-w-7xl"), r.join(" ");
|
|
2232
|
-
}), f = () => {
|
|
2233
|
-
t.preventCloseOnClickOutside || (l.value = !1);
|
|
2250
|
+
}), f = u(() => {
|
|
2251
|
+
const r = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
|
|
2252
|
+
return t.title || r.push("px-4 pt-4 pb-4", "sm:p-6"), c.value >= 1 && r.push("md:max-w-2xl"), c.value >= 2 && r.push("lg:max-w-4xl"), c.value >= 3 && r.push("xl:max-w-6xl"), c.value >= 4 && r.push("2xl:max-w-7xl"), r.join(" ");
|
|
2253
|
+
}), p = () => {
|
|
2254
|
+
t.preventCloseOnClickOutside || (o.value = !1);
|
|
2234
2255
|
};
|
|
2235
|
-
return (r,
|
|
2256
|
+
return (r, d) => (a(), P(n(Bt), {
|
|
2236
2257
|
as: "template",
|
|
2237
|
-
show:
|
|
2258
|
+
show: o.value
|
|
2238
2259
|
}, {
|
|
2239
|
-
default:
|
|
2240
|
-
|
|
2260
|
+
default: B(() => [
|
|
2261
|
+
L(n(Lt), {
|
|
2241
2262
|
as: "div",
|
|
2242
2263
|
class: "relative z-40",
|
|
2243
|
-
onClose:
|
|
2264
|
+
onClose: p
|
|
2244
2265
|
}, {
|
|
2245
|
-
default:
|
|
2246
|
-
|
|
2266
|
+
default: B(() => [
|
|
2267
|
+
L(n(Pe), {
|
|
2247
2268
|
as: "template",
|
|
2248
2269
|
enter: "ease-out duration-300",
|
|
2249
2270
|
"enter-from": "opacity-0",
|
|
@@ -2252,14 +2273,14 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2252
2273
|
"leave-from": "opacity-100",
|
|
2253
2274
|
"leave-to": "opacity-0"
|
|
2254
2275
|
}, {
|
|
2255
|
-
default:
|
|
2256
|
-
|
|
2276
|
+
default: B(() => [
|
|
2277
|
+
An
|
|
2257
2278
|
]),
|
|
2258
2279
|
_: 1
|
|
2259
2280
|
}),
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2281
|
+
i("div", Dn, [
|
|
2282
|
+
i("div", Tn, [
|
|
2283
|
+
L(n(Pe), {
|
|
2263
2284
|
as: "template",
|
|
2264
2285
|
enter: "ease-out duration-300",
|
|
2265
2286
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2267,31 +2288,46 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2267
2288
|
leave: "ease-in duration-200",
|
|
2268
2289
|
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
2269
2290
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2270
|
-
onAfterLeave:
|
|
2291
|
+
onAfterLeave: d[1] || (d[1] = (x) => r.$emit("fully-closed"))
|
|
2271
2292
|
}, {
|
|
2272
|
-
default:
|
|
2273
|
-
|
|
2274
|
-
class:
|
|
2293
|
+
default: B(() => [
|
|
2294
|
+
L(n(Pt), {
|
|
2295
|
+
class: y([
|
|
2275
2296
|
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2276
|
-
|
|
2277
|
-
])
|
|
2297
|
+
f.value
|
|
2298
|
+
]),
|
|
2299
|
+
as: s.value ? "form" : "div",
|
|
2300
|
+
onSubmit: be(e.onSubmit, ["prevent"])
|
|
2278
2301
|
}, {
|
|
2279
|
-
default:
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2302
|
+
default: B(() => [
|
|
2303
|
+
e.title ? (a(), h("div", Rn, [
|
|
2304
|
+
i("h4", Fn, I(e.title), 1)
|
|
2305
|
+
])) : S("", !0),
|
|
2306
|
+
e.hideCloser ? S("", !0) : (a(), h("button", {
|
|
2307
|
+
key: 1,
|
|
2308
|
+
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2309
|
+
onClick: d[0] || (d[0] = (x) => o.value = !1)
|
|
2310
|
+
}, [
|
|
2311
|
+
L(n(ct), { class: "h-6 w-6" })
|
|
2312
|
+
])),
|
|
2313
|
+
i("div", zn, [
|
|
2314
|
+
D(r.$slots, "default", {}, () => [
|
|
2315
|
+
A("Put your content here!")
|
|
2316
|
+
])
|
|
2317
|
+
]),
|
|
2318
|
+
e.buttons ? (a(), h("div", En, [
|
|
2319
|
+
(a(!0), h(U, null, G(e.buttons, (x, v) => (a(), P(n(re), oe({ key: v }, x.props, {
|
|
2320
|
+
onClick: x.onClick
|
|
2321
|
+
}), {
|
|
2322
|
+
default: B(() => [
|
|
2323
|
+
A(I(x.text), 1)
|
|
2324
|
+
]),
|
|
2325
|
+
_: 2
|
|
2326
|
+
}, 1040, ["onClick"]))), 128))
|
|
2327
|
+
])) : S("", !0)
|
|
2292
2328
|
]),
|
|
2293
2329
|
_: 3
|
|
2294
|
-
}, 8, ["class"])
|
|
2330
|
+
}, 8, ["class", "as", "onSubmit"])
|
|
2295
2331
|
]),
|
|
2296
2332
|
_: 3
|
|
2297
2333
|
})
|
|
@@ -2304,7 +2340,7 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2304
2340
|
_: 3
|
|
2305
2341
|
}, 8, ["show"]));
|
|
2306
2342
|
}
|
|
2307
|
-
}),
|
|
2343
|
+
}), Un = { class: "inline-flex items-center space-x-2" }, Wn = { class: "label-light" }, Vl = /* @__PURE__ */ M({
|
|
2308
2344
|
__name: "Disclosure",
|
|
2309
2345
|
props: {
|
|
2310
2346
|
title: null,
|
|
@@ -2312,12 +2348,12 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2312
2348
|
color: { default: "default" }
|
|
2313
2349
|
},
|
|
2314
2350
|
setup(e) {
|
|
2315
|
-
const
|
|
2351
|
+
const l = e, t = u(() => {
|
|
2316
2352
|
const o = [
|
|
2317
2353
|
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2318
2354
|
"ring-1"
|
|
2319
2355
|
];
|
|
2320
|
-
switch (
|
|
2356
|
+
switch (l.color) {
|
|
2321
2357
|
case "danger":
|
|
2322
2358
|
o.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
|
|
2323
2359
|
break;
|
|
@@ -2329,9 +2365,9 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2329
2365
|
break;
|
|
2330
2366
|
}
|
|
2331
2367
|
return o.join(" ");
|
|
2332
|
-
}),
|
|
2368
|
+
}), s = u(() => {
|
|
2333
2369
|
const o = ["mt-4 px-3 py-1 border-x "];
|
|
2334
|
-
switch (
|
|
2370
|
+
switch (l.color) {
|
|
2335
2371
|
case "danger":
|
|
2336
2372
|
o.push("border-danger-lighter");
|
|
2337
2373
|
break;
|
|
@@ -2342,33 +2378,33 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2342
2378
|
}
|
|
2343
2379
|
return o.join(" ");
|
|
2344
2380
|
});
|
|
2345
|
-
return (o,
|
|
2346
|
-
|
|
2347
|
-
default:
|
|
2348
|
-
|
|
2349
|
-
class:
|
|
2381
|
+
return (o, c) => (a(), h("div", null, [
|
|
2382
|
+
L(n(jt), null, {
|
|
2383
|
+
default: B(({ open: f }) => [
|
|
2384
|
+
L(n(Vt), {
|
|
2385
|
+
class: y(t.value)
|
|
2350
2386
|
}, {
|
|
2351
|
-
default:
|
|
2352
|
-
|
|
2353
|
-
e.icon ? (a(),
|
|
2387
|
+
default: B(() => [
|
|
2388
|
+
i("div", Un, [
|
|
2389
|
+
e.icon ? (a(), P(H(e.icon), {
|
|
2354
2390
|
key: 0,
|
|
2355
2391
|
class: "h-4 w-4"
|
|
2356
2392
|
})) : S("", !0),
|
|
2357
|
-
|
|
2393
|
+
i("span", null, I(e.title), 1)
|
|
2358
2394
|
]),
|
|
2359
|
-
|
|
2360
|
-
class:
|
|
2395
|
+
L(n(De), {
|
|
2396
|
+
class: y([f ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2361
2397
|
}, null, 8, ["class"])
|
|
2362
2398
|
]),
|
|
2363
2399
|
_: 2
|
|
2364
2400
|
}, 1032, ["class"]),
|
|
2365
|
-
|
|
2366
|
-
class:
|
|
2401
|
+
L(n(Ot), {
|
|
2402
|
+
class: y(s.value)
|
|
2367
2403
|
}, {
|
|
2368
|
-
default:
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2404
|
+
default: B(() => [
|
|
2405
|
+
i("div", Wn, [
|
|
2406
|
+
D(o.$slots, "default", {}, () => [
|
|
2407
|
+
A("Panel contents")
|
|
2372
2408
|
])
|
|
2373
2409
|
])
|
|
2374
2410
|
]),
|
|
@@ -2380,136 +2416,136 @@ const On = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2380
2416
|
]));
|
|
2381
2417
|
}
|
|
2382
2418
|
});
|
|
2383
|
-
var
|
|
2384
|
-
const
|
|
2419
|
+
var J = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(J || {});
|
|
2420
|
+
const Ol = /* @__PURE__ */ M({
|
|
2385
2421
|
__name: "GridListToggle",
|
|
2386
2422
|
props: {
|
|
2387
2423
|
modelValue: null
|
|
2388
2424
|
},
|
|
2389
2425
|
emits: ["click", "update:modelValue"],
|
|
2390
|
-
setup(e, { emit:
|
|
2391
|
-
const t = e,
|
|
2392
|
-
get: () => t.modelValue ||
|
|
2393
|
-
set: (f) =>
|
|
2394
|
-
}), o =
|
|
2395
|
-
() =>
|
|
2396
|
-
),
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2426
|
+
setup(e, { emit: l }) {
|
|
2427
|
+
const t = e, s = u({
|
|
2428
|
+
get: () => t.modelValue || J.Grid,
|
|
2429
|
+
set: (f) => l("update:modelValue", f)
|
|
2430
|
+
}), o = u(
|
|
2431
|
+
() => s.value === J.Grid ? lt : at
|
|
2432
|
+
), c = (f) => {
|
|
2433
|
+
l("click", f);
|
|
2434
|
+
const p = s.value === J.Grid ? J.List : J.Grid;
|
|
2435
|
+
s.value = p;
|
|
2400
2436
|
};
|
|
2401
|
-
return (f,
|
|
2437
|
+
return (f, p) => (a(), h("button", {
|
|
2402
2438
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2403
|
-
onClick:
|
|
2439
|
+
onClick: c
|
|
2404
2440
|
}, [
|
|
2405
|
-
(a(),
|
|
2441
|
+
(a(), P(H(o.value), { class: "h-6 w-6" }))
|
|
2406
2442
|
]));
|
|
2407
2443
|
}
|
|
2408
2444
|
});
|
|
2409
|
-
var
|
|
2410
|
-
function
|
|
2411
|
-
if (!
|
|
2445
|
+
var qn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(qn || {}), me = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(me || {});
|
|
2446
|
+
function Hn(e, l) {
|
|
2447
|
+
if (!ke)
|
|
2412
2448
|
return;
|
|
2413
2449
|
const {
|
|
2414
2450
|
wait: t = 100,
|
|
2415
|
-
throttleOrDebounce:
|
|
2451
|
+
throttleOrDebounce: s = 0
|
|
2416
2452
|
/* Throttle */
|
|
2417
|
-
} =
|
|
2418
|
-
|
|
2453
|
+
} = l || {}, o = t ? s === 0 ? Qe(e, t) : Ae(e, t) : e;
|
|
2454
|
+
Y(() => window.addEventListener("resize", o)), Me(() => window.removeEventListener("resize", o));
|
|
2419
2455
|
}
|
|
2420
|
-
function
|
|
2421
|
-
|
|
2456
|
+
function Ml(e) {
|
|
2457
|
+
Y(() => {
|
|
2422
2458
|
window.addEventListener("beforeunload", e);
|
|
2423
|
-
}),
|
|
2459
|
+
}), Me(() => {
|
|
2424
2460
|
window.removeEventListener("beforeunload", e);
|
|
2425
2461
|
});
|
|
2426
2462
|
}
|
|
2427
|
-
function
|
|
2428
|
-
const { el:
|
|
2429
|
-
|
|
2463
|
+
function Gn(e) {
|
|
2464
|
+
const { el: l, defaultDirection: t } = e, s = O(
|
|
2465
|
+
Q(t) ? 1 : t
|
|
2430
2466
|
/* Right */
|
|
2431
|
-
), o =
|
|
2432
|
-
const f =
|
|
2433
|
-
if (!
|
|
2467
|
+
), o = u(() => {
|
|
2468
|
+
const f = n(e.stopUpdatesBelowWidth);
|
|
2469
|
+
if (!Q(f))
|
|
2434
2470
|
return f;
|
|
2435
|
-
const
|
|
2436
|
-
return
|
|
2437
|
-
}),
|
|
2438
|
-
if (!
|
|
2471
|
+
const p = n(l);
|
|
2472
|
+
return p != null && p.offsetWidth ? p.offsetWidth * 2 : void 0;
|
|
2473
|
+
}), c = () => {
|
|
2474
|
+
if (!ke)
|
|
2439
2475
|
return;
|
|
2440
|
-
const f =
|
|
2476
|
+
const f = n(l);
|
|
2441
2477
|
if (!f)
|
|
2442
2478
|
return;
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2479
|
+
const p = f.getBoundingClientRect(), r = p.x + p.width > window.innerWidth, d = p.x < 0;
|
|
2480
|
+
r && d || !Q(o.value) && window.innerWidth < o.value || (r ? s.value = 0 : d && (s.value = 1));
|
|
2445
2481
|
};
|
|
2446
|
-
return
|
|
2447
|
-
() =>
|
|
2482
|
+
return Hn(() => c()), le(
|
|
2483
|
+
() => n(l),
|
|
2448
2484
|
(f) => {
|
|
2449
|
-
f &&
|
|
2485
|
+
f && c();
|
|
2450
2486
|
}
|
|
2451
2487
|
), {
|
|
2452
|
-
direction:
|
|
2453
|
-
recalculateDirection:
|
|
2488
|
+
direction: u(() => s.value),
|
|
2489
|
+
recalculateDirection: c
|
|
2454
2490
|
};
|
|
2455
2491
|
}
|
|
2456
|
-
const
|
|
2492
|
+
const Kn = ["disabled", "onClick"], Al = /* @__PURE__ */ M({
|
|
2457
2493
|
__name: "Menu",
|
|
2458
2494
|
props: {
|
|
2459
2495
|
open: { type: Boolean },
|
|
2460
2496
|
items: null
|
|
2461
2497
|
},
|
|
2462
2498
|
emits: ["update:open", "chosen"],
|
|
2463
|
-
setup(e, { emit:
|
|
2464
|
-
const t = e,
|
|
2465
|
-
el:
|
|
2466
|
-
var
|
|
2467
|
-
return ((
|
|
2499
|
+
setup(e, { emit: l }) {
|
|
2500
|
+
const t = e, s = O(null), { direction: o } = Gn({
|
|
2501
|
+
el: u(() => {
|
|
2502
|
+
var m;
|
|
2503
|
+
return ((m = s.value) == null ? void 0 : m.el) || null;
|
|
2468
2504
|
}),
|
|
2469
|
-
defaultDirection:
|
|
2505
|
+
defaultDirection: me.Left,
|
|
2470
2506
|
stopUpdatesBelowWidth: 300
|
|
2471
|
-
}),
|
|
2507
|
+
}), c = O(null), f = O(!1), p = u({
|
|
2472
2508
|
get: () => t.open || !1,
|
|
2473
|
-
set: (
|
|
2474
|
-
}),
|
|
2475
|
-
const { active:
|
|
2476
|
-
return
|
|
2477
|
-
},
|
|
2478
|
-
|
|
2479
|
-
},
|
|
2480
|
-
var
|
|
2481
|
-
return (
|
|
2482
|
-
}, v = (
|
|
2483
|
-
const
|
|
2484
|
-
return f.value =
|
|
2509
|
+
set: (m) => l("update:open", m)
|
|
2510
|
+
}), r = (m) => {
|
|
2511
|
+
const { active: k, disabled: _ } = m, j = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2512
|
+
return k ? j.push("bg-primary text-foreground-on-primary") : _ ? j.push("text-foreground-disabled") : j.push("text-foreground"), j.join(" ");
|
|
2513
|
+
}, d = (m, k) => {
|
|
2514
|
+
l("chosen", { item: m, event: k });
|
|
2515
|
+
}, x = () => {
|
|
2516
|
+
var m;
|
|
2517
|
+
return (m = c.value) == null ? void 0 : m.el.click();
|
|
2518
|
+
}, v = (m) => {
|
|
2519
|
+
const k = !!m;
|
|
2520
|
+
return f.value = k, k;
|
|
2485
2521
|
};
|
|
2486
|
-
return
|
|
2487
|
-
|
|
2488
|
-
}),
|
|
2489
|
-
(
|
|
2490
|
-
}), (
|
|
2522
|
+
return le(f, (m, k) => {
|
|
2523
|
+
m !== k && (p.value = m);
|
|
2524
|
+
}), le(p, (m) => {
|
|
2525
|
+
(m && !f.value || !m && f.value) && x();
|
|
2526
|
+
}), (m, k) => (a(), P(n(Mt), {
|
|
2491
2527
|
as: "div",
|
|
2492
2528
|
class: "relative inline-block"
|
|
2493
2529
|
}, {
|
|
2494
|
-
default:
|
|
2495
|
-
|
|
2496
|
-
|
|
2530
|
+
default: B(({ open: _ }) => [
|
|
2531
|
+
i("div", null, [
|
|
2532
|
+
L(n(At), {
|
|
2497
2533
|
ref_key: "menuButton",
|
|
2498
|
-
ref:
|
|
2534
|
+
ref: c,
|
|
2499
2535
|
class: "hidden",
|
|
2500
|
-
onClick:
|
|
2536
|
+
onClick: k[0] || (k[0] = be(() => {
|
|
2501
2537
|
}, ["stop", "prevent"]))
|
|
2502
2538
|
}, null, 512),
|
|
2503
|
-
|
|
2504
|
-
class:
|
|
2539
|
+
i("div", {
|
|
2540
|
+
class: y(_ ? "pointer-events-none" : "")
|
|
2505
2541
|
}, [
|
|
2506
|
-
|
|
2507
|
-
toggle:
|
|
2508
|
-
open: v(
|
|
2542
|
+
D(m.$slots, "default", {
|
|
2543
|
+
toggle: x,
|
|
2544
|
+
open: v(_)
|
|
2509
2545
|
})
|
|
2510
2546
|
], 2)
|
|
2511
2547
|
]),
|
|
2512
|
-
|
|
2548
|
+
L(ge, {
|
|
2513
2549
|
"enter-active-class": "transition duration-100 ease-out",
|
|
2514
2550
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
2515
2551
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -2517,37 +2553,37 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2517
2553
|
"leave-from-class": "transform scale-100 opacity-100",
|
|
2518
2554
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
2519
2555
|
}, {
|
|
2520
|
-
default:
|
|
2521
|
-
|
|
2556
|
+
default: B(() => [
|
|
2557
|
+
L(n(Dt), {
|
|
2522
2558
|
ref_key: "menuItems",
|
|
2523
|
-
ref:
|
|
2524
|
-
class:
|
|
2559
|
+
ref: s,
|
|
2560
|
+
class: y([
|
|
2525
2561
|
"absolute mt-2 w-56 origin-top-right divide-y divide-outline-3 rounded-md bg-foundation shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-40",
|
|
2526
|
-
|
|
2562
|
+
n(o) === n(me).Left ? "right-0" : ""
|
|
2527
2563
|
])
|
|
2528
2564
|
}, {
|
|
2529
|
-
default:
|
|
2530
|
-
(a(!0),
|
|
2531
|
-
key:
|
|
2565
|
+
default: B(() => [
|
|
2566
|
+
(a(!0), h(U, null, G(e.items, (j, b) => (a(), h("div", {
|
|
2567
|
+
key: b,
|
|
2532
2568
|
class: "px-1 py-1"
|
|
2533
2569
|
}, [
|
|
2534
|
-
(a(!0),
|
|
2535
|
-
key:
|
|
2536
|
-
disabled:
|
|
2570
|
+
(a(!0), h(U, null, G(j, (w) => (a(), P(n(Tt), {
|
|
2571
|
+
key: w.id,
|
|
2572
|
+
disabled: w.disabled
|
|
2537
2573
|
}, {
|
|
2538
|
-
default:
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
class:
|
|
2542
|
-
disabled:
|
|
2543
|
-
onClick: (g) =>
|
|
2574
|
+
default: B(({ active: $, disabled: F }) => [
|
|
2575
|
+
ne((a(), h("span", null, [
|
|
2576
|
+
i("button", {
|
|
2577
|
+
class: y(r({ active: $, disabled: F })),
|
|
2578
|
+
disabled: F,
|
|
2579
|
+
onClick: (g) => d(w, g)
|
|
2544
2580
|
}, [
|
|
2545
|
-
|
|
2546
|
-
|
|
2581
|
+
D(m.$slots, "item", { item: w }, () => [
|
|
2582
|
+
A(I(w.title), 1)
|
|
2547
2583
|
])
|
|
2548
|
-
], 10,
|
|
2584
|
+
], 10, Kn)
|
|
2549
2585
|
])), [
|
|
2550
|
-
[
|
|
2586
|
+
[n(Fe), w.disabled && w.disabledTooltip]
|
|
2551
2587
|
])
|
|
2552
2588
|
]),
|
|
2553
2589
|
_: 2
|
|
@@ -2563,33 +2599,33 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2563
2599
|
_: 3
|
|
2564
2600
|
}));
|
|
2565
2601
|
}
|
|
2566
|
-
}),
|
|
2602
|
+
}), Xn = { class: "flex flex-col space-y-4" }, Nn = { class: "flex space-x-6" }, Dl = /* @__PURE__ */ M({
|
|
2567
2603
|
__name: "Tabs",
|
|
2568
2604
|
props: {
|
|
2569
2605
|
items: null
|
|
2570
2606
|
},
|
|
2571
2607
|
setup(e) {
|
|
2572
|
-
const
|
|
2573
|
-
t.value =
|
|
2608
|
+
const l = e, t = O(null), s = u(() => t.value && l.items.find((c) => c.id === t.value) || l.items[0]), o = (c) => {
|
|
2609
|
+
t.value = c.id;
|
|
2574
2610
|
};
|
|
2575
|
-
return (
|
|
2576
|
-
|
|
2577
|
-
(a(!0),
|
|
2578
|
-
key:
|
|
2611
|
+
return (c, f) => (a(), h("div", Xn, [
|
|
2612
|
+
i("div", Nn, [
|
|
2613
|
+
(a(!0), h(U, null, G(e.items, (p) => (a(), P(re, {
|
|
2614
|
+
key: p.id,
|
|
2579
2615
|
link: "",
|
|
2580
|
-
color:
|
|
2581
|
-
onClick: (
|
|
2616
|
+
color: s.value.id === p.id ? "default" : "secondary",
|
|
2617
|
+
onClick: (r) => o(p)
|
|
2582
2618
|
}, {
|
|
2583
|
-
default:
|
|
2584
|
-
|
|
2619
|
+
default: B(() => [
|
|
2620
|
+
A(I(p.title), 1)
|
|
2585
2621
|
]),
|
|
2586
2622
|
_: 2
|
|
2587
2623
|
}, 1032, ["color", "onClick"]))), 128))
|
|
2588
2624
|
]),
|
|
2589
|
-
|
|
2625
|
+
D(c.$slots, "default", { activeItem: s.value })
|
|
2590
2626
|
]));
|
|
2591
2627
|
}
|
|
2592
|
-
}),
|
|
2628
|
+
}), Jn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Qn = { class: "inline-flex items-center space-x-1" }, Yn = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Zn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, el = { class: "inline-flex items-center space-x-1" }, tl = /* @__PURE__ */ i("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Tl = /* @__PURE__ */ M({
|
|
2593
2629
|
__name: "InfiniteLoading",
|
|
2594
2630
|
props: {
|
|
2595
2631
|
settings: null,
|
|
@@ -2597,45 +2633,45 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2597
2633
|
},
|
|
2598
2634
|
emits: ["infinite"],
|
|
2599
2635
|
setup(e) {
|
|
2600
|
-
const
|
|
2601
|
-
return
|
|
2602
|
-
const
|
|
2636
|
+
const l = O(null), t = O(!1);
|
|
2637
|
+
return ke && Y(() => {
|
|
2638
|
+
const s = setInterval(() => {
|
|
2603
2639
|
var o;
|
|
2604
|
-
(o =
|
|
2640
|
+
(o = l.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
|
|
2605
2641
|
}, 200);
|
|
2606
|
-
}), (
|
|
2642
|
+
}), (s, o) => (a(), h("div", {
|
|
2607
2643
|
ref_key: "wrapper",
|
|
2608
|
-
ref:
|
|
2644
|
+
ref: l
|
|
2609
2645
|
}, [
|
|
2610
|
-
t.value ? (a(),
|
|
2611
|
-
onInfinite: o[0] || (o[0] = (
|
|
2646
|
+
t.value ? (a(), P(n(Rt), oe({ key: 0 }, s.$props.settings || {}, {
|
|
2647
|
+
onInfinite: o[0] || (o[0] = (c) => s.$emit("infinite", c))
|
|
2612
2648
|
}), {
|
|
2613
|
-
spinner:
|
|
2614
|
-
|
|
2649
|
+
spinner: B(() => [
|
|
2650
|
+
L(We, {
|
|
2615
2651
|
loading: !0,
|
|
2616
2652
|
class: "my-2"
|
|
2617
2653
|
})
|
|
2618
2654
|
]),
|
|
2619
|
-
complete:
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2655
|
+
complete: B(() => [
|
|
2656
|
+
i("div", Jn, [
|
|
2657
|
+
i("div", Qn, [
|
|
2658
|
+
L(n(dt), { class: "w-5 h-5 text-success" }),
|
|
2659
|
+
Yn
|
|
2624
2660
|
])
|
|
2625
2661
|
])
|
|
2626
2662
|
]),
|
|
2627
|
-
error:
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2663
|
+
error: B(({ retry: c }) => [
|
|
2664
|
+
i("div", Zn, [
|
|
2665
|
+
i("div", el, [
|
|
2666
|
+
L(n(ft), { class: "w-5 h-5 text-danger" }),
|
|
2667
|
+
tl
|
|
2632
2668
|
]),
|
|
2633
|
-
e.allowRetry ? (a(),
|
|
2669
|
+
e.allowRetry ? (a(), P(re, {
|
|
2634
2670
|
key: 0,
|
|
2635
|
-
onClick:
|
|
2671
|
+
onClick: c
|
|
2636
2672
|
}, {
|
|
2637
|
-
default:
|
|
2638
|
-
|
|
2673
|
+
default: B(() => [
|
|
2674
|
+
A("Retry")
|
|
2639
2675
|
]),
|
|
2640
2676
|
_: 2
|
|
2641
2677
|
}, 1032, ["onClick"])) : S("", !0)
|
|
@@ -2645,10 +2681,10 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2645
2681
|
}, 16)) : S("", !0)
|
|
2646
2682
|
], 512));
|
|
2647
2683
|
}
|
|
2648
|
-
}),
|
|
2684
|
+
}), sl = { class: "relative group" }, nl = {
|
|
2649
2685
|
key: 0,
|
|
2650
2686
|
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"
|
|
2651
|
-
},
|
|
2687
|
+
}, Rl = /* @__PURE__ */ M({
|
|
2652
2688
|
__name: "Panel",
|
|
2653
2689
|
props: {
|
|
2654
2690
|
/**
|
|
@@ -2682,51 +2718,51 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2682
2718
|
}
|
|
2683
2719
|
},
|
|
2684
2720
|
emits: ["submit"],
|
|
2685
|
-
setup(e, { emit:
|
|
2686
|
-
const t = e,
|
|
2721
|
+
setup(e, { emit: l }) {
|
|
2722
|
+
const t = e, s = u(
|
|
2687
2723
|
() => t.customPadding ? "" : "px-4 py-4 sm:px-6"
|
|
2688
|
-
), o =
|
|
2724
|
+
), o = u(
|
|
2689
2725
|
() => t.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
2690
|
-
),
|
|
2726
|
+
), c = u(() => {
|
|
2691
2727
|
const f = ["rounded-lg"];
|
|
2692
2728
|
return t.noShadow || f.push("shadow"), t.ring && f.push("ring-outline-2 hover:ring-2"), f.join(" ");
|
|
2693
2729
|
});
|
|
2694
|
-
return (f,
|
|
2695
|
-
e.fancyGlow ? (a(),
|
|
2696
|
-
(a(),
|
|
2697
|
-
class:
|
|
2730
|
+
return (f, p) => (a(), h("div", sl, [
|
|
2731
|
+
e.fancyGlow ? (a(), h("div", nl)) : S("", !0),
|
|
2732
|
+
(a(), P(H(e.form ? "form" : "div"), {
|
|
2733
|
+
class: y([
|
|
2698
2734
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2699
|
-
|
|
2735
|
+
c.value
|
|
2700
2736
|
]),
|
|
2701
|
-
onSubmit:
|
|
2737
|
+
onSubmit: p[0] || (p[0] = (r) => l("submit", r))
|
|
2702
2738
|
}, {
|
|
2703
|
-
default:
|
|
2704
|
-
f.$slots.header ? (a(),
|
|
2739
|
+
default: B(() => [
|
|
2740
|
+
f.$slots.header ? (a(), h("div", {
|
|
2705
2741
|
key: 0,
|
|
2706
|
-
class:
|
|
2742
|
+
class: y(s.value)
|
|
2707
2743
|
}, [
|
|
2708
|
-
|
|
2744
|
+
D(f.$slots, "header")
|
|
2709
2745
|
], 2)) : S("", !0),
|
|
2710
|
-
|
|
2711
|
-
class:
|
|
2746
|
+
i("div", {
|
|
2747
|
+
class: y(["grow", o.value])
|
|
2712
2748
|
}, [
|
|
2713
|
-
|
|
2749
|
+
D(f.$slots, "default")
|
|
2714
2750
|
], 2),
|
|
2715
|
-
f.$slots.footer ? (a(),
|
|
2751
|
+
f.$slots.footer ? (a(), h("div", {
|
|
2716
2752
|
key: 1,
|
|
2717
|
-
class:
|
|
2753
|
+
class: y(s.value)
|
|
2718
2754
|
}, [
|
|
2719
|
-
|
|
2755
|
+
D(f.$slots, "footer")
|
|
2720
2756
|
], 2)) : S("", !0)
|
|
2721
2757
|
]),
|
|
2722
2758
|
_: 3
|
|
2723
2759
|
}, 40, ["class"]))
|
|
2724
2760
|
]));
|
|
2725
2761
|
}
|
|
2726
|
-
}),
|
|
2762
|
+
}), ll = { class: "flex-shrink-0" }, al = {
|
|
2727
2763
|
key: 0,
|
|
2728
2764
|
class: "mt-2 text-sm"
|
|
2729
|
-
},
|
|
2765
|
+
}, ol = /* @__PURE__ */ i("span", { class: "sr-only" }, "Dismiss", -1), Fl = /* @__PURE__ */ M({
|
|
2730
2766
|
__name: "Alert",
|
|
2731
2767
|
props: {
|
|
2732
2768
|
color: { default: "success" },
|
|
@@ -2735,137 +2771,137 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2735
2771
|
},
|
|
2736
2772
|
emits: ["dismiss"],
|
|
2737
2773
|
setup(e) {
|
|
2738
|
-
const
|
|
2739
|
-
const
|
|
2740
|
-
switch (
|
|
2774
|
+
const l = e, t = Oe(), s = u(() => !!t.description), o = u(() => {
|
|
2775
|
+
const r = [];
|
|
2776
|
+
switch (r.push(s.value ? "p-4" : "p-2"), l.color) {
|
|
2741
2777
|
case "success":
|
|
2742
|
-
|
|
2778
|
+
r.push("bg-success-lighter border-l-4 border-success");
|
|
2743
2779
|
break;
|
|
2744
2780
|
case "info":
|
|
2745
|
-
|
|
2781
|
+
r.push("bg-info-lighter border-l-4 border-info");
|
|
2746
2782
|
break;
|
|
2747
2783
|
case "danger":
|
|
2748
|
-
|
|
2784
|
+
r.push("bg-danger-lighter border-l-4 border-danger");
|
|
2749
2785
|
break;
|
|
2750
2786
|
case "warning":
|
|
2751
|
-
|
|
2787
|
+
r.push("bg-warning-lighter border-l-4 border-warning");
|
|
2752
2788
|
break;
|
|
2753
2789
|
}
|
|
2754
|
-
return
|
|
2755
|
-
}),
|
|
2756
|
-
const
|
|
2757
|
-
switch (
|
|
2790
|
+
return r.join(" ");
|
|
2791
|
+
}), c = u(() => {
|
|
2792
|
+
const r = [];
|
|
2793
|
+
switch (l.color) {
|
|
2758
2794
|
case "success":
|
|
2759
|
-
|
|
2795
|
+
r.push("text-success-darker");
|
|
2760
2796
|
break;
|
|
2761
2797
|
case "info":
|
|
2762
|
-
|
|
2798
|
+
r.push("text-info-darker");
|
|
2763
2799
|
break;
|
|
2764
2800
|
case "danger":
|
|
2765
|
-
|
|
2801
|
+
r.push("text-danger-darker");
|
|
2766
2802
|
break;
|
|
2767
2803
|
case "warning":
|
|
2768
|
-
|
|
2804
|
+
r.push("text-warning-darker");
|
|
2769
2805
|
break;
|
|
2770
2806
|
}
|
|
2771
|
-
return
|
|
2772
|
-
}), f =
|
|
2773
|
-
const
|
|
2774
|
-
switch (
|
|
2807
|
+
return r.join(" ");
|
|
2808
|
+
}), f = u(() => {
|
|
2809
|
+
const r = [];
|
|
2810
|
+
switch (l.color) {
|
|
2775
2811
|
case "success":
|
|
2776
|
-
|
|
2812
|
+
r.push("text-success");
|
|
2777
2813
|
break;
|
|
2778
2814
|
case "info":
|
|
2779
|
-
|
|
2815
|
+
r.push("text-info");
|
|
2780
2816
|
break;
|
|
2781
2817
|
case "danger":
|
|
2782
|
-
|
|
2818
|
+
r.push("text-danger");
|
|
2783
2819
|
break;
|
|
2784
2820
|
case "warning":
|
|
2785
|
-
|
|
2821
|
+
r.push("text-warning");
|
|
2786
2822
|
break;
|
|
2787
2823
|
}
|
|
2788
|
-
return
|
|
2789
|
-
}),
|
|
2790
|
-
const
|
|
2791
|
-
switch (
|
|
2824
|
+
return r.join(" ");
|
|
2825
|
+
}), p = u(() => {
|
|
2826
|
+
const r = [];
|
|
2827
|
+
switch (l.color) {
|
|
2792
2828
|
case "success":
|
|
2793
|
-
|
|
2829
|
+
r.push("bg-success-lighter ring-success");
|
|
2794
2830
|
break;
|
|
2795
2831
|
case "info":
|
|
2796
|
-
|
|
2832
|
+
r.push("bg-info-lighter ring-info");
|
|
2797
2833
|
break;
|
|
2798
2834
|
case "danger":
|
|
2799
|
-
|
|
2835
|
+
r.push("bg-danger-lighter ring-danger");
|
|
2800
2836
|
break;
|
|
2801
2837
|
case "warning":
|
|
2802
|
-
|
|
2838
|
+
r.push("bg-warning-lighter ring-warning");
|
|
2803
2839
|
break;
|
|
2804
2840
|
}
|
|
2805
|
-
return
|
|
2841
|
+
return r.join(" ");
|
|
2806
2842
|
});
|
|
2807
|
-
return (
|
|
2808
|
-
var
|
|
2809
|
-
return a(),
|
|
2810
|
-
class:
|
|
2843
|
+
return (r, d) => {
|
|
2844
|
+
var x;
|
|
2845
|
+
return a(), h("div", {
|
|
2846
|
+
class: y(["rounded-md", [o.value, c.value]])
|
|
2811
2847
|
}, [
|
|
2812
|
-
|
|
2813
|
-
class:
|
|
2848
|
+
i("div", {
|
|
2849
|
+
class: y(["flex", [s.value ? "" : "items-center space-x-2"]])
|
|
2814
2850
|
}, [
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
class:
|
|
2851
|
+
i("div", ll, [
|
|
2852
|
+
L(n(Te), {
|
|
2853
|
+
class: y(["h-5 w-5", f.value]),
|
|
2818
2854
|
"aria-hidden": "true"
|
|
2819
2855
|
}, null, 8, ["class"])
|
|
2820
2856
|
]),
|
|
2821
|
-
|
|
2822
|
-
class:
|
|
2857
|
+
i("div", {
|
|
2858
|
+
class: y(["ml-3 grow", [s.value ? "" : "flex items-center space-x-2"]])
|
|
2823
2859
|
}, [
|
|
2824
|
-
|
|
2825
|
-
class:
|
|
2860
|
+
i("h3", {
|
|
2861
|
+
class: y(["text-sm", [s.value ? "font-medium" : ""]])
|
|
2826
2862
|
}, [
|
|
2827
|
-
|
|
2828
|
-
|
|
2863
|
+
D(r.$slots, "title", {}, () => [
|
|
2864
|
+
A("Title")
|
|
2829
2865
|
])
|
|
2830
2866
|
], 2),
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2867
|
+
s.value ? (a(), h("div", al, [
|
|
2868
|
+
D(r.$slots, "description", {}, () => [
|
|
2869
|
+
A(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
2834
2870
|
])
|
|
2835
2871
|
])) : S("", !0),
|
|
2836
|
-
|
|
2837
|
-
class:
|
|
2872
|
+
i("div", {
|
|
2873
|
+
class: y([s.value ? (x = e.actions) != null && x.length ? "mt-4" : "" : "grow flex"])
|
|
2838
2874
|
}, [
|
|
2839
|
-
|
|
2840
|
-
class:
|
|
2875
|
+
i("div", {
|
|
2876
|
+
class: y(["flex", ["space-x-2", s.value ? "" : "grow justify-end"]])
|
|
2841
2877
|
}, [
|
|
2842
|
-
(a(!0),
|
|
2843
|
-
key:
|
|
2878
|
+
(a(!0), h(U, null, G(e.actions || [], (v, m) => (a(), P(re, {
|
|
2879
|
+
key: m,
|
|
2844
2880
|
color: e.color,
|
|
2845
2881
|
size: "sm",
|
|
2846
2882
|
to: v.url,
|
|
2847
2883
|
external: v.externalUrl || !1,
|
|
2848
|
-
onClick: (
|
|
2884
|
+
onClick: (k) => v.onClick || n(Ye)
|
|
2849
2885
|
}, {
|
|
2850
|
-
default:
|
|
2851
|
-
|
|
2886
|
+
default: B(() => [
|
|
2887
|
+
A(I(v.title), 1)
|
|
2852
2888
|
]),
|
|
2853
2889
|
_: 2
|
|
2854
2890
|
}, 1032, ["color", "to", "external", "onClick"]))), 128))
|
|
2855
2891
|
], 2)
|
|
2856
2892
|
], 2)
|
|
2857
2893
|
], 2),
|
|
2858
|
-
e.withDismiss ? (a(),
|
|
2894
|
+
e.withDismiss ? (a(), h("div", {
|
|
2859
2895
|
key: 0,
|
|
2860
|
-
class:
|
|
2896
|
+
class: y(["flex", [s.value ? "items-start" : "items-center"]])
|
|
2861
2897
|
}, [
|
|
2862
|
-
|
|
2898
|
+
i("button", {
|
|
2863
2899
|
type: "button",
|
|
2864
|
-
class:
|
|
2865
|
-
onClick:
|
|
2900
|
+
class: y(["inline-flex rounded-md focus:outline-none focus:ring-2", p.value]),
|
|
2901
|
+
onClick: d[0] || (d[0] = (v) => r.$emit("dismiss"))
|
|
2866
2902
|
}, [
|
|
2867
|
-
|
|
2868
|
-
|
|
2903
|
+
ol,
|
|
2904
|
+
L(n(ue), {
|
|
2869
2905
|
class: "h-5 w-5",
|
|
2870
2906
|
"aria-hidden": "true"
|
|
2871
2907
|
})
|
|
@@ -2876,51 +2912,52 @@ const Wn = ["disabled", "onClick"], Ll = /* @__PURE__ */ O({
|
|
|
2876
2912
|
};
|
|
2877
2913
|
}
|
|
2878
2914
|
});
|
|
2879
|
-
function
|
|
2880
|
-
var
|
|
2881
|
-
const { get:
|
|
2882
|
-
const
|
|
2883
|
-
return
|
|
2884
|
-
} :
|
|
2885
|
-
return
|
|
2915
|
+
function zl(e) {
|
|
2916
|
+
var _, j;
|
|
2917
|
+
const { get: l, initialState: t, readOptions: s, set: o, asyncRead: c = !0, debugging: f } = e, p = f == null ? void 0 : f.log, r = () => (new Error("Trace:").stack || "").substring(7), d = ((j = (_ = e.debugging) == null ? void 0 : _.log) == null ? void 0 : j.logger) || console.debug, x = p && !p.writesOnly ? () => {
|
|
2918
|
+
const b = l();
|
|
2919
|
+
return d(`debugging: '${p.name}' read`, b, r()), b;
|
|
2920
|
+
} : l, v = p && !p.readsOnly ? (b) => (d(`debugging: '${p.name}' written to`, b, r()), o(b)) : o, m = c ? Ct(x, t, s) : u(x), k = u(() => m.value);
|
|
2921
|
+
return k.update = v, k;
|
|
2886
2922
|
}
|
|
2887
2923
|
export {
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2924
|
+
Fl as CommonAlert,
|
|
2925
|
+
ts as CommonBadge,
|
|
2926
|
+
We as CommonLoadingBar,
|
|
2927
|
+
kl as CommonStepsBullet,
|
|
2928
|
+
xl as CommonStepsNumber,
|
|
2929
|
+
Et as CommonTextLink,
|
|
2894
2930
|
re as FormButton,
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2931
|
+
Cl as FormCardButton,
|
|
2932
|
+
wl as FormCheckbox,
|
|
2933
|
+
_n as FormSelectBase,
|
|
2934
|
+
_l as FormSelectSourceApps,
|
|
2935
|
+
$l as FormTextArea,
|
|
2936
|
+
Sl as FormTextInput,
|
|
2937
|
+
yl as GlobalToastRenderer,
|
|
2938
|
+
J as GridListToggleValue,
|
|
2939
|
+
me as HorizontalDirection,
|
|
2940
|
+
Tl as InfiniteLoading,
|
|
2941
|
+
jl as LayoutDialog,
|
|
2942
|
+
Vl as LayoutDisclosure,
|
|
2943
|
+
Ol as LayoutGridListToggle,
|
|
2944
|
+
Al as LayoutMenu,
|
|
2945
|
+
Rl as LayoutPanel,
|
|
2946
|
+
Dl as LayoutTabs,
|
|
2947
|
+
se as ModifierKeys,
|
|
2948
|
+
Bn as SourceAppBadge,
|
|
2949
|
+
te as TailwindBreakpoints,
|
|
2950
|
+
qn as ThrottleOrDebounce,
|
|
2951
|
+
ee as ToastNotificationType,
|
|
2952
|
+
Il as ValidationHelpers,
|
|
2953
|
+
he as clientOs,
|
|
2954
|
+
Bl as getKeyboardShortcutTitle,
|
|
2955
|
+
Ll as onKeyboardShortcut,
|
|
2956
|
+
Pl as useFormCheckboxModel,
|
|
2957
|
+
rn as useFormSelectChildInternals,
|
|
2958
|
+
Ml as useOnBeforeWindowUnload,
|
|
2959
|
+
Gn as useResponsiveHorizontalDirectionCalculation,
|
|
2960
|
+
Hn as useWindowResizeHandler,
|
|
2961
|
+
on as useWrappingContainerHiddenCount,
|
|
2962
|
+
zl as writableAsyncComputed
|
|
2926
2963
|
};
|