@speckle/ui-components 2.18.4 → 2.18.7
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/common/text/Link.vue.d.ts +9 -0
- package/dist/components/form/Button.vue.d.ts +16 -1
- package/dist/components/layout/Table.vue.d.ts +10 -2
- package/dist/helpers/form/button.d.ts +2 -0
- package/dist/helpers/global/toast.d.ts +5 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +1439 -1397
- package/dist/lib.js.map +1 -1
- package/dist/stories/composables/toast.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/postcss.config.js +2 -2
package/dist/lib.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Vt = (e, t, r) => t in e ?
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var Vt = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var se = (e, t, r) => (Vt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isObjectLike as
|
|
6
|
-
import { ArrowPathIcon as
|
|
4
|
+
import { defineComponent as j, resolveDynamicComponent as Q, computed as c, openBlock as o, createBlock as L, normalizeClass as g, withCtx as M, createCommentVNode as I, renderSlot as E, createTextVNode as R, createElementBlock as m, createElementVNode as f, createVNode as V, Transition as Ee, unref as n, toDisplayString as z, toRefs as le, Fragment as K, renderList as G, ref as O, onMounted as ae, onBeforeUnmount as Ue, normalizeStyle as ne, mergeProps as ie, withDirectives as be, isRef as Be, vModelText as qe, useSlots as We, vModelDynamic as Ot, pushScopeId as Lt, popScopeId as Mt, watch as fe, Teleport as At, withModifiers as pe, useModel as it, toHandlers as st, nextTick as Pt, getCurrentInstance as jt, inject as _t, withKeys as ve, mergeModels as nt, defineAsyncComponent as Tt } from "vue";
|
|
5
|
+
import { isObjectLike as _e, clamp as lt, isArray as N, isString as ye, isUndefined as ge, debounce as He, throttle as ut, noop as ct, uniq as Ft, intersection as Rt, difference as Dt } from "lodash";
|
|
6
|
+
import { ArrowPathIcon as dt, ExclamationCircleIcon as Et, ChevronUpIcon as ft, ChevronDownIcon as Ut, XMarkIcon as Ke, MagnifyingGlassIcon as qt, CheckIcon as pt, Squares2X2Icon as Wt, Bars3Icon as Ht, UserCircleIcon as Kt } from "@heroicons/vue/24/solid";
|
|
7
7
|
import { CheckCircleIcon as Gt, XCircleIcon as Xt, ExclamationCircleIcon as Zt, InformationCircleIcon as Nt, ClipboardDocumentCheckIcon as Qt, ClipboardDocumentIcon as Jt, XMarkIcon as Yt, ChevronDownIcon as es, CheckIcon as ts, ExclamationTriangleIcon as ss } from "@heroicons/vue/24/outline";
|
|
8
|
-
import { XMarkIcon as
|
|
8
|
+
import { XMarkIcon as xe, CheckIcon as mt, CheckCircleIcon as ht, ExclamationCircleIcon as ze, EnvelopeIcon as ns, KeyIcon as ls, XCircleIcon as as, InformationCircleIcon as os } from "@heroicons/vue/20/solid";
|
|
9
9
|
import { wait as rs, isNullOrUndefined as is, SourceApps as us, getClientOperatingSystem as cs, OperatingSystem as Te, md5 as ds } from "@speckle/shared";
|
|
10
|
-
import { useField as
|
|
11
|
-
import { nanoid as
|
|
10
|
+
import { useField as Se } from "vee-validate";
|
|
11
|
+
import { nanoid as Ve } from "nanoid";
|
|
12
12
|
import { useResizeObserver as fs, useMutationObserver as ps, useMounted as ms, useElementBounding as hs, useIntersectionObserver as vs, useClipboard as gs, onKeyDown as bs, isClient as Ge, computedAsync as ys, useFocus as xs, useDropZone as ks } from "@vueuse/core";
|
|
13
|
-
import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as
|
|
14
|
-
import { directive as
|
|
13
|
+
import { Listbox as ws, ListboxLabel as Cs, ListboxButton as $s, ListboxOptions as Is, ListboxOption as Ss, Switch as Bs, TransitionRoot as vt, Dialog as zs, TransitionChild as at, DialogPanel as Vs, Disclosure as Os, DisclosureButton as Ls, DisclosurePanel as Ms, Menu as As, MenuButton as Ps, MenuItems as js, MenuItem as _s, Combobox as Ts, ComboboxOptions as Fs, ComboboxOption as Rs } from "@headlessui/vue";
|
|
14
|
+
import { directive as gt } from "vue-tippy";
|
|
15
15
|
import Ds from "v3-infinite-loading";
|
|
16
|
-
const Es = /* @__PURE__ */
|
|
16
|
+
const Es = /* @__PURE__ */ j({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -77,6 +77,13 @@ const Es = /* @__PURE__ */ _({
|
|
|
77
77
|
type: String,
|
|
78
78
|
default: "default"
|
|
79
79
|
},
|
|
80
|
+
/**
|
|
81
|
+
* Text color, only used when color=secondary
|
|
82
|
+
*/
|
|
83
|
+
textColor: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: "default"
|
|
86
|
+
},
|
|
80
87
|
/**
|
|
81
88
|
* Whether the target location should be forcefully treated as an external URL
|
|
82
89
|
* (for relative paths this will likely cause a redirect)
|
|
@@ -141,10 +148,10 @@ const Es = /* @__PURE__ */ _({
|
|
|
141
148
|
},
|
|
142
149
|
emits: ["click"],
|
|
143
150
|
setup(e, { emit: t }) {
|
|
144
|
-
const r = t, s = e,
|
|
151
|
+
const r = t, s = e, a = Q("NuxtLink"), l = Q("RouterLink"), h = c(() => s.linkComponent ? s.linkComponent : s.external ? "a" : _e(a) ? a : _e(l) ? l : "a"), p = c(() => {
|
|
145
152
|
if (!s.to)
|
|
146
153
|
return s.submit ? "submit" : "button";
|
|
147
|
-
}), i = c(() => s.disabled || s.loading),
|
|
154
|
+
}), i = c(() => s.disabled || s.loading), d = c(() => s.loading ? dt : s.iconLeft), v = c(() => {
|
|
148
155
|
const w = [];
|
|
149
156
|
if (w.push("border-2"), i.value)
|
|
150
157
|
w.push(
|
|
@@ -187,14 +194,30 @@ const Es = /* @__PURE__ */ _({
|
|
|
187
194
|
break;
|
|
188
195
|
}
|
|
189
196
|
return w.join(" ");
|
|
190
|
-
}),
|
|
191
|
-
const w = [];
|
|
192
|
-
if (
|
|
197
|
+
}), x = c(() => {
|
|
198
|
+
const w = [], D = s.textColor !== "default";
|
|
199
|
+
if (D && !i.value)
|
|
200
|
+
switch (s.textColor) {
|
|
201
|
+
case "primary":
|
|
202
|
+
w.push("text-primary");
|
|
203
|
+
break;
|
|
204
|
+
case "warning":
|
|
205
|
+
w.push("text-warning");
|
|
206
|
+
break;
|
|
207
|
+
case "success":
|
|
208
|
+
w.push("text-success");
|
|
209
|
+
break;
|
|
210
|
+
case "danger":
|
|
211
|
+
w.push("text-danger");
|
|
212
|
+
break;
|
|
213
|
+
case "info":
|
|
214
|
+
w.push("text-info");
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (!s.text && !s.link) {
|
|
193
218
|
if (i.value)
|
|
194
|
-
w.push(
|
|
195
|
-
|
|
196
|
-
);
|
|
197
|
-
else
|
|
219
|
+
w.push("text-foreground-disabled");
|
|
220
|
+
else if (!D)
|
|
198
221
|
switch (s.color) {
|
|
199
222
|
case "invert":
|
|
200
223
|
w.push(
|
|
@@ -236,15 +259,15 @@ const Es = /* @__PURE__ */ _({
|
|
|
236
259
|
);
|
|
237
260
|
break;
|
|
238
261
|
}
|
|
239
|
-
else
|
|
240
|
-
i.value ? w.push("text-foreground-disabled") : s.color === "invert" ? w.push(
|
|
262
|
+
} else
|
|
263
|
+
i.value ? w.push("text-foreground-disabled") : D || (s.color === "invert" ? w.push(
|
|
241
264
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
|
-
) : s.color === "secondary" ? w.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? w.push("text-success") : s.color === "warning" ? w.push("text-warning") : s.color === "info" ? w.push("text-info") : s.color === "danger" ? w.push("text-danger") : w.push("text-primary hover:text-primary-focus");
|
|
265
|
+
) : s.color === "secondary" ? w.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? w.push("text-success") : s.color === "warning" ? w.push("text-warning") : s.color === "info" ? w.push("text-info") : s.color === "danger" ? w.push("text-danger") : w.push("text-primary hover:text-primary-focus"));
|
|
243
266
|
return w.join(" ");
|
|
244
|
-
}),
|
|
267
|
+
}), b = c(() => {
|
|
245
268
|
const w = [];
|
|
246
269
|
return w.push(s.rounded ? "rounded-full" : "rounded-md"), w.join(" ");
|
|
247
|
-
}),
|
|
270
|
+
}), y = c(() => {
|
|
248
271
|
const w = [];
|
|
249
272
|
if (!i.value)
|
|
250
273
|
switch (s.color) {
|
|
@@ -311,10 +334,10 @@ const Es = /* @__PURE__ */ _({
|
|
|
311
334
|
"transition inline-flex justify-center text-center items-center outline-none select-none leading-[0.9rem]",
|
|
312
335
|
k.value,
|
|
313
336
|
u.value,
|
|
314
|
-
|
|
315
|
-
w ? "" : x.value,
|
|
337
|
+
x.value,
|
|
316
338
|
w ? "" : v.value,
|
|
317
|
-
w ? "" :
|
|
339
|
+
w ? "" : b.value,
|
|
340
|
+
w ? "" : y.value,
|
|
318
341
|
s.link ? "" : S.value,
|
|
319
342
|
$.value
|
|
320
343
|
].join(" ");
|
|
@@ -346,27 +369,27 @@ const Es = /* @__PURE__ */ _({
|
|
|
346
369
|
}
|
|
347
370
|
r("click", w);
|
|
348
371
|
};
|
|
349
|
-
return (w,
|
|
372
|
+
return (w, D) => (o(), L(Q(e.to ? h.value : "button"), {
|
|
350
373
|
href: e.to,
|
|
351
374
|
to: e.to,
|
|
352
|
-
type:
|
|
375
|
+
type: p.value,
|
|
353
376
|
external: e.external,
|
|
354
|
-
class:
|
|
377
|
+
class: g(B.value),
|
|
355
378
|
disabled: i.value,
|
|
356
379
|
role: "button",
|
|
357
380
|
onClick: A
|
|
358
381
|
}, {
|
|
359
382
|
default: M(() => [
|
|
360
|
-
|
|
383
|
+
d.value ? (o(), L(Q(d.value), {
|
|
361
384
|
key: 0,
|
|
362
|
-
class:
|
|
385
|
+
class: g(`${T.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
386
|
}, null, 8, ["class"])) : I("", !0),
|
|
364
|
-
e.hideText ? I("", !0) :
|
|
387
|
+
e.hideText ? I("", !0) : E(w.$slots, "default", { key: 1 }, () => [
|
|
365
388
|
R("Button")
|
|
366
389
|
], !0),
|
|
367
|
-
e.iconRight || !e.loading ? (
|
|
390
|
+
e.iconRight || !e.loading ? (o(), L(Q(e.iconRight), {
|
|
368
391
|
key: 2,
|
|
369
|
-
class:
|
|
392
|
+
class: g(`${T.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
393
|
}, null, 8, ["class"])) : I("", !0)
|
|
371
394
|
]),
|
|
372
395
|
_: 3
|
|
@@ -375,10 +398,10 @@ const Es = /* @__PURE__ */ _({
|
|
|
375
398
|
});
|
|
376
399
|
const Oe = (e, t) => {
|
|
377
400
|
const r = e.__vccOpts || e;
|
|
378
|
-
for (const [s,
|
|
379
|
-
r[s] =
|
|
401
|
+
for (const [s, a] of t)
|
|
402
|
+
r[s] = a;
|
|
380
403
|
return r;
|
|
381
|
-
}, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-
|
|
404
|
+
}, oe = /* @__PURE__ */ Oe(Es, [["__scopeId", "data-v-ee26d682"]]), Us = /* @__PURE__ */ j({
|
|
382
405
|
__name: "Link",
|
|
383
406
|
props: {
|
|
384
407
|
to: {
|
|
@@ -424,19 +447,24 @@ const Oe = (e, t) => {
|
|
|
424
447
|
hideText: {
|
|
425
448
|
type: Boolean,
|
|
426
449
|
default: !1
|
|
450
|
+
},
|
|
451
|
+
noUnderline: {
|
|
452
|
+
type: Boolean,
|
|
453
|
+
default: !1
|
|
427
454
|
}
|
|
428
455
|
},
|
|
429
456
|
emits: ["click"],
|
|
430
457
|
setup(e, { emit: t }) {
|
|
431
|
-
const r = t, s = e,
|
|
458
|
+
const r = t, s = e, a = (l) => {
|
|
432
459
|
if (s.disabled) {
|
|
433
|
-
|
|
460
|
+
l.preventDefault(), l.stopPropagation(), l.stopImmediatePropagation();
|
|
434
461
|
return;
|
|
435
462
|
}
|
|
436
|
-
r("click",
|
|
463
|
+
r("click", l);
|
|
437
464
|
};
|
|
438
|
-
return (
|
|
439
|
-
link:
|
|
465
|
+
return (l, h) => (o(), L(oe, {
|
|
466
|
+
link: !e.noUnderline,
|
|
467
|
+
text: e.noUnderline,
|
|
440
468
|
to: e.to,
|
|
441
469
|
external: e.external,
|
|
442
470
|
disabled: e.disabled,
|
|
@@ -446,54 +474,45 @@ const Oe = (e, t) => {
|
|
|
446
474
|
"icon-right": e.iconRight,
|
|
447
475
|
"hide-text": e.hideText,
|
|
448
476
|
role: "link",
|
|
449
|
-
onClickCapture:
|
|
477
|
+
onClickCapture: a
|
|
450
478
|
}, {
|
|
451
479
|
default: M(() => [
|
|
452
|
-
|
|
480
|
+
E(l.$slots, "default", {}, () => [
|
|
453
481
|
R("Link")
|
|
454
482
|
])
|
|
455
483
|
]),
|
|
456
484
|
_: 3
|
|
457
|
-
}, 8, ["to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
|
|
485
|
+
}, 8, ["link", "text", "to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
|
|
458
486
|
}
|
|
459
487
|
});
|
|
460
|
-
var
|
|
488
|
+
var Ce = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(Ce || {});
|
|
461
489
|
const qs = {
|
|
462
490
|
"aria-live": "assertive",
|
|
463
491
|
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
|
-
}, Ws = { class: "flex w-full flex-col items-center
|
|
465
|
-
key: 0,
|
|
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
|
-
}, Ks = { class: "p-4" }, Gs = { class: "flex items-start" }, Xs = { class: "flex-shrink-0" }, Zs = { class: "ml-2 w-0 flex-1 flex flex-col" }, Ns = {
|
|
468
|
-
key: 0,
|
|
469
|
-
class: "text-foreground font-bold"
|
|
470
|
-
}, Qs = {
|
|
492
|
+
}, Ws = { class: "flex w-full flex-col items-center gap-4 sm:items-end" }, Hs = { class: "flex-shrink-0" }, Ks = { class: "w-full min-w-[10rem]" }, Gs = {
|
|
471
493
|
key: 1,
|
|
472
|
-
class: "label label--light text-foreground-2"
|
|
473
|
-
},
|
|
474
|
-
key: 2,
|
|
475
|
-
class: "flex justify-start mt-2"
|
|
476
|
-
}, Ys = /* @__PURE__ */ f("span", { class: "sr-only" }, "Close", -1), Bo = /* @__PURE__ */ _({
|
|
494
|
+
class: "label label--light text-foreground-2 text-sm"
|
|
495
|
+
}, Xs = { key: 2 }, Zs = /* @__PURE__ */ f("span", { class: "sr-only" }, "Close", -1), Co = /* @__PURE__ */ j({
|
|
477
496
|
__name: "ToastRenderer",
|
|
478
497
|
props: {
|
|
479
498
|
notification: null
|
|
480
499
|
},
|
|
481
500
|
emits: ["update:notification"],
|
|
482
501
|
setup(e, { emit: t }) {
|
|
483
|
-
const r = t, s = e,
|
|
502
|
+
const r = t, s = e, a = c(
|
|
484
503
|
() => {
|
|
485
|
-
var
|
|
486
|
-
return !((
|
|
504
|
+
var p, i;
|
|
505
|
+
return !((p = s.notification) != null && p.description) && !((i = s.notification) != null && i.cta);
|
|
487
506
|
}
|
|
488
|
-
),
|
|
507
|
+
), l = () => {
|
|
489
508
|
r("update:notification", null);
|
|
490
|
-
},
|
|
491
|
-
var i,
|
|
492
|
-
(
|
|
509
|
+
}, h = (p) => {
|
|
510
|
+
var i, d, v;
|
|
511
|
+
(v = (d = (i = s.notification) == null ? void 0 : i.cta) == null ? void 0 : d.onClick) == null || v.call(d, p), l();
|
|
493
512
|
};
|
|
494
|
-
return (
|
|
513
|
+
return (p, i) => (o(), m("div", qs, [
|
|
495
514
|
f("div", Ws, [
|
|
496
|
-
|
|
515
|
+
V(Ee, {
|
|
497
516
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
498
517
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
499
518
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -502,82 +521,89 @@ const qs = {
|
|
|
502
521
|
"leave-to-class": "opacity-0"
|
|
503
522
|
}, {
|
|
504
523
|
default: M(() => [
|
|
505
|
-
e.notification ? (
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
524
|
+
e.notification ? (o(), m("div", {
|
|
525
|
+
key: 0,
|
|
526
|
+
class: g(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5", a.value ? "p-2" : "p-3"])
|
|
527
|
+
}, [
|
|
528
|
+
f("div", {
|
|
529
|
+
class: g(["flex gap-2", a.value ? "items-center" : "items-start"])
|
|
530
|
+
}, [
|
|
531
|
+
f("div", Hs, [
|
|
532
|
+
e.notification.type === n(Ce).Success ? (o(), L(n(Gt), {
|
|
533
|
+
key: 0,
|
|
534
|
+
class: g(["text-success", a.value ? "h-5 w-5" : "h-6 w-6"]),
|
|
535
|
+
"aria-hidden": "true"
|
|
536
|
+
}, null, 8, ["class"])) : e.notification.type === n(Ce).Danger ? (o(), L(n(Xt), {
|
|
537
|
+
key: 1,
|
|
538
|
+
class: g(["text-danger", a.value ? "h-5 w-5" : "h-6 w-6"]),
|
|
539
|
+
"aria-hidden": "true"
|
|
540
|
+
}, null, 8, ["class"])) : e.notification.type === n(Ce).Warning ? (o(), L(n(Zt), {
|
|
541
|
+
key: 2,
|
|
542
|
+
class: g(["text-warning", a.value ? "h-5 w-5" : "h-6 w-6"]),
|
|
543
|
+
"aria-hidden": "true"
|
|
544
|
+
}, null, 8, ["class"])) : e.notification.type === n(Ce).Info ? (o(), L(n(Nt), {
|
|
545
|
+
key: 3,
|
|
546
|
+
class: g(["text-info", a.value ? "h-5 w-5" : "h-6 w-6"]),
|
|
547
|
+
"aria-hidden": "true"
|
|
548
|
+
}, null, 8, ["class"])) : I("", !0)
|
|
549
|
+
]),
|
|
550
|
+
f("div", Ks, [
|
|
551
|
+
e.notification.title ? (o(), m("p", {
|
|
552
|
+
key: 0,
|
|
553
|
+
class: g(["text-foreground font-bold", a.value ? "text-sm" : "text-base"])
|
|
554
|
+
}, z(e.notification.title), 3)) : I("", !0),
|
|
555
|
+
e.notification.description ? (o(), m("p", Gs, z(e.notification.description), 1)) : I("", !0),
|
|
556
|
+
e.notification.cta ? (o(), m("div", Xs, [
|
|
557
|
+
V(Us, {
|
|
558
|
+
to: e.notification.cta.url,
|
|
559
|
+
class: "label",
|
|
560
|
+
size: "xs",
|
|
561
|
+
primary: "",
|
|
562
|
+
onClick: h
|
|
563
|
+
}, {
|
|
564
|
+
default: M(() => [
|
|
565
|
+
R(z(e.notification.cta.title), 1)
|
|
566
|
+
]),
|
|
567
|
+
_: 1
|
|
568
|
+
}, 8, ["to"])
|
|
569
|
+
])) : I("", !0)
|
|
570
|
+
]),
|
|
571
|
+
f("div", {
|
|
572
|
+
class: g(["ml-2 flex-shrink-0", a.value ? "mt-1.5" : ""])
|
|
573
|
+
}, [
|
|
574
|
+
f("button", {
|
|
575
|
+
type: "button",
|
|
576
|
+
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",
|
|
577
|
+
onClick: l
|
|
546
578
|
}, [
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
class: "
|
|
550
|
-
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
})
|
|
557
|
-
])
|
|
558
|
-
], 2)
|
|
559
|
-
])
|
|
560
|
-
])
|
|
561
|
-
])) : I("", !0)
|
|
579
|
+
Zs,
|
|
580
|
+
V(n(xe), {
|
|
581
|
+
class: "h-5 w-5",
|
|
582
|
+
"aria-hidden": "true"
|
|
583
|
+
})
|
|
584
|
+
])
|
|
585
|
+
], 2)
|
|
586
|
+
], 2)
|
|
587
|
+
], 2)) : I("", !0)
|
|
562
588
|
]),
|
|
563
589
|
_: 1
|
|
564
590
|
})
|
|
565
591
|
])
|
|
566
592
|
]));
|
|
567
593
|
}
|
|
568
|
-
}),
|
|
569
|
-
function
|
|
594
|
+
}), Ns = "Enter";
|
|
595
|
+
function bt(e) {
|
|
570
596
|
return (t) => {
|
|
571
|
-
t.code ===
|
|
597
|
+
t.code === Ns && e(t);
|
|
572
598
|
};
|
|
573
599
|
}
|
|
574
|
-
const
|
|
600
|
+
const Qs = /* @__PURE__ */ f("circle", {
|
|
575
601
|
cx: "4",
|
|
576
602
|
cy: "4",
|
|
577
603
|
r: "3"
|
|
578
|
-
}, null, -1),
|
|
579
|
-
|
|
580
|
-
], Xe = /* @__PURE__ */
|
|
604
|
+
}, null, -1), Js = [
|
|
605
|
+
Qs
|
|
606
|
+
], Xe = /* @__PURE__ */ j({
|
|
581
607
|
__name: "Badge",
|
|
582
608
|
props: {
|
|
583
609
|
size: null,
|
|
@@ -590,118 +616,118 @@ const tn = /* @__PURE__ */ f("circle", {
|
|
|
590
616
|
},
|
|
591
617
|
emits: ["click-icon"],
|
|
592
618
|
setup(e, { emit: t }) {
|
|
593
|
-
const r = t, s = e,
|
|
619
|
+
const r = t, s = e, a = c(
|
|
594
620
|
() => s.colorClasses || "bg-blue-100 text-blue-800"
|
|
595
|
-
),
|
|
621
|
+
), l = c(
|
|
596
622
|
() => s.dotIconColorClasses || "text-blue-400"
|
|
597
|
-
),
|
|
598
|
-
const
|
|
623
|
+
), h = c(() => {
|
|
624
|
+
const v = [
|
|
599
625
|
"inline-flex items-center",
|
|
600
|
-
|
|
626
|
+
a.value,
|
|
601
627
|
s.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
602
628
|
];
|
|
603
|
-
return s.rounded ? (
|
|
629
|
+
return s.rounded ? (v.push("rounded"), v.push(
|
|
604
630
|
s.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
605
|
-
)) : (
|
|
631
|
+
)) : (v.push("rounded-full"), v.push(
|
|
606
632
|
s.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
607
|
-
)),
|
|
608
|
-
}),
|
|
609
|
-
const
|
|
633
|
+
)), v.join(" ");
|
|
634
|
+
}), p = c(() => {
|
|
635
|
+
const v = [
|
|
610
636
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
611
637
|
];
|
|
612
|
-
return s.clickableIcon ?
|
|
638
|
+
return s.clickableIcon ? v.push("cursor-pointer") : v.push("cursor-default"), v.join(" ");
|
|
613
639
|
}), i = c(() => [
|
|
614
640
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
615
|
-
|
|
616
|
-
].join(" ")),
|
|
641
|
+
l.value
|
|
642
|
+
].join(" ")), d = (v) => {
|
|
617
643
|
if (!s.clickableIcon) {
|
|
618
|
-
|
|
644
|
+
v.stopPropagation(), v.stopImmediatePropagation(), v.preventDefault();
|
|
619
645
|
return;
|
|
620
646
|
}
|
|
621
|
-
r("click-icon",
|
|
647
|
+
r("click-icon", v);
|
|
622
648
|
};
|
|
623
|
-
return (
|
|
624
|
-
class:
|
|
649
|
+
return (v, x) => (o(), m("span", {
|
|
650
|
+
class: g(h.value)
|
|
625
651
|
}, [
|
|
626
|
-
e.dot ? (
|
|
652
|
+
e.dot ? (o(), m("svg", {
|
|
627
653
|
key: 0,
|
|
628
|
-
class:
|
|
654
|
+
class: g(i.value),
|
|
629
655
|
fill: "currentColor",
|
|
630
656
|
viewBox: "0 0 8 8"
|
|
631
|
-
},
|
|
632
|
-
|
|
657
|
+
}, Js, 2)) : I("", !0),
|
|
658
|
+
E(v.$slots, "default", {}, () => [
|
|
633
659
|
R("Badge")
|
|
634
660
|
]),
|
|
635
|
-
e.iconLeft ? (
|
|
661
|
+
e.iconLeft ? (o(), m("button", {
|
|
636
662
|
key: 1,
|
|
637
|
-
class:
|
|
638
|
-
onClick:
|
|
663
|
+
class: g(p.value),
|
|
664
|
+
onClick: x[0] || (x[0] = (b) => d(b))
|
|
639
665
|
}, [
|
|
640
|
-
(
|
|
641
|
-
class:
|
|
666
|
+
(o(), L(Q(e.iconLeft), {
|
|
667
|
+
class: g(["h-4 w-4", l.value])
|
|
642
668
|
}, null, 8, ["class"]))
|
|
643
669
|
], 2)) : I("", !0)
|
|
644
670
|
], 2));
|
|
645
671
|
}
|
|
646
672
|
});
|
|
647
673
|
let ot = [];
|
|
648
|
-
function
|
|
674
|
+
function Ys(e) {
|
|
649
675
|
ot = ot ? e : e.slice();
|
|
650
676
|
}
|
|
651
|
-
var
|
|
652
|
-
function
|
|
677
|
+
var $e = /* @__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))($e || {});
|
|
678
|
+
function yt(e) {
|
|
653
679
|
const {
|
|
654
680
|
props: {
|
|
655
681
|
modelValue: t,
|
|
656
682
|
steps: r,
|
|
657
683
|
orientation: s,
|
|
658
|
-
goVerticalBelow:
|
|
659
|
-
nonInteractive:
|
|
660
|
-
stepsPadding:
|
|
684
|
+
goVerticalBelow: a,
|
|
685
|
+
nonInteractive: l,
|
|
686
|
+
stepsPadding: h
|
|
661
687
|
},
|
|
662
|
-
emit:
|
|
688
|
+
emit: p
|
|
663
689
|
} = e, i = c(
|
|
664
690
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
665
|
-
),
|
|
691
|
+
), d = c({
|
|
666
692
|
get: () => lt((t == null ? void 0 : t.value) || 0, -1, r.value.length),
|
|
667
|
-
set: (k) =>
|
|
668
|
-
}),
|
|
693
|
+
set: (k) => p("update:modelValue", lt(k, 0, r.value.length))
|
|
694
|
+
}), v = (k) => `${k + 1}`, x = (k) => k === d.value, b = (k) => k < d.value, y = (k, $) => {
|
|
669
695
|
var T;
|
|
670
|
-
if (
|
|
696
|
+
if (l != null && l.value) {
|
|
671
697
|
$ == null || $.preventDefault(), $ == null || $.stopPropagation(), $ == null || $.stopImmediatePropagation();
|
|
672
698
|
return;
|
|
673
699
|
}
|
|
674
|
-
|
|
675
|
-
const B = r.value[
|
|
700
|
+
d.value = k;
|
|
701
|
+
const B = r.value[d.value];
|
|
676
702
|
(T = B == null ? void 0 : B.onClick) == null || T.call(B);
|
|
677
703
|
}, u = c(() => {
|
|
678
704
|
const k = ["flex"];
|
|
679
705
|
let $, B;
|
|
680
|
-
return (
|
|
706
|
+
return (h == null ? void 0 : h.value) === "xs" ? ($ = "space-x-2", B = "space-y-1") : (h == null ? void 0 : h.value) === "sm" ? ($ = "space-x-4", B = "space-y-1") : ($ = "space-x-8", B = "space-y-4"), k.push("flex"), i.value === "vertical" || a != null && a.value ? (k.push(`flex-col ${B} justify-center`), (a == null ? void 0 : a.value) === $e.sm ? k.push(
|
|
681
707
|
`sm:flex-row sm:space-y-0 sm:justify-start sm:${$} sm:items-center`
|
|
682
|
-
) : (
|
|
708
|
+
) : (a == null ? void 0 : a.value) === $e.md ? k.push(
|
|
683
709
|
`md:flex-row md:space-y-0 md:justify-start md:${$} md:items-center`
|
|
684
|
-
) : (
|
|
710
|
+
) : (a == null ? void 0 : a.value) === $e.lg ? k.push(
|
|
685
711
|
`lg:flex-row lg:space-y-0 lg:justify-start lg:${$} lg:items-center`
|
|
686
|
-
) : (
|
|
712
|
+
) : (a == null ? void 0 : a.value) === $e.xl && k.push(
|
|
687
713
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${$} xl:items-center`
|
|
688
714
|
)) : k.push(`flex-row ${$} items-center`), k.join(" ");
|
|
689
715
|
}), S = c(() => {
|
|
690
716
|
const k = ["flex items-center"];
|
|
691
|
-
return
|
|
717
|
+
return l != null && l.value || k.push("cursor-pointer"), k.join(" ");
|
|
692
718
|
});
|
|
693
719
|
return {
|
|
694
|
-
value:
|
|
695
|
-
isCurrentStep:
|
|
696
|
-
isFinishedStep:
|
|
697
|
-
switchStep:
|
|
698
|
-
getStepDisplayValue:
|
|
720
|
+
value: d,
|
|
721
|
+
isCurrentStep: x,
|
|
722
|
+
isFinishedStep: b,
|
|
723
|
+
switchStep: y,
|
|
724
|
+
getStepDisplayValue: v,
|
|
699
725
|
listClasses: u,
|
|
700
726
|
linkClasses: S,
|
|
701
727
|
orientation: i
|
|
702
728
|
};
|
|
703
729
|
}
|
|
704
|
-
|
|
730
|
+
Ys([
|
|
705
731
|
"sm:space-x-8",
|
|
706
732
|
"md:space-x-8",
|
|
707
733
|
"lg:space-x-8",
|
|
@@ -715,16 +741,16 @@ nn([
|
|
|
715
741
|
"lg:space-x-4",
|
|
716
742
|
"xl:space-x-4"
|
|
717
743
|
]);
|
|
718
|
-
const
|
|
744
|
+
const en = ["aria-label"], tn = ["href", "onClick"], sn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, nn = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, ln = { class: "flex flex-col" }, an = {
|
|
719
745
|
key: 0,
|
|
720
746
|
class: "label label--light text-foreground"
|
|
721
|
-
},
|
|
747
|
+
}, on = ["href", "onClick"], rn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, un = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, cn = { class: "flex flex-col" }, dn = {
|
|
722
748
|
key: 0,
|
|
723
749
|
class: "label label--light text-foreground"
|
|
724
|
-
},
|
|
750
|
+
}, fn = ["href", "onClick"], pn = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, mn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, hn = { class: "flex flex-col" }, vn = {
|
|
725
751
|
key: 0,
|
|
726
752
|
class: "label label--light"
|
|
727
|
-
},
|
|
753
|
+
}, $o = /* @__PURE__ */ j({
|
|
728
754
|
__name: "Number",
|
|
729
755
|
props: {
|
|
730
756
|
ariaLabel: null,
|
|
@@ -738,92 +764,92 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
738
764
|
emits: ["update:modelValue"],
|
|
739
765
|
setup(e, { emit: t }) {
|
|
740
766
|
const r = t, s = e, {
|
|
741
|
-
isCurrentStep:
|
|
742
|
-
isFinishedStep:
|
|
743
|
-
switchStep:
|
|
744
|
-
getStepDisplayValue:
|
|
767
|
+
isCurrentStep: a,
|
|
768
|
+
isFinishedStep: l,
|
|
769
|
+
switchStep: h,
|
|
770
|
+
getStepDisplayValue: p,
|
|
745
771
|
listClasses: i,
|
|
746
|
-
linkClasses:
|
|
747
|
-
} =
|
|
772
|
+
linkClasses: d
|
|
773
|
+
} = yt({
|
|
748
774
|
props: le(s),
|
|
749
775
|
emit: r
|
|
750
776
|
});
|
|
751
|
-
return (
|
|
777
|
+
return (v, x) => (o(), m("nav", {
|
|
752
778
|
class: "flex justify-center",
|
|
753
779
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
754
780
|
}, [
|
|
755
781
|
f("ol", {
|
|
756
|
-
class:
|
|
782
|
+
class: g(n(i))
|
|
757
783
|
}, [
|
|
758
|
-
(
|
|
759
|
-
key:
|
|
784
|
+
(o(!0), m(K, null, G(e.steps, (b, y) => (o(), m("li", {
|
|
785
|
+
key: b.name
|
|
760
786
|
}, [
|
|
761
|
-
l
|
|
787
|
+
n(l)(y) ? (o(), m("a", {
|
|
762
788
|
key: 0,
|
|
763
|
-
href:
|
|
764
|
-
class:
|
|
765
|
-
onClick: (u) =>
|
|
789
|
+
href: b.href,
|
|
790
|
+
class: g(n(d)),
|
|
791
|
+
onClick: (u) => n(h)(y, u)
|
|
766
792
|
}, [
|
|
767
|
-
f("div",
|
|
768
|
-
f("div",
|
|
769
|
-
|
|
793
|
+
f("div", sn, [
|
|
794
|
+
f("div", nn, [
|
|
795
|
+
V(n(mt), { class: "w-5 h-5" })
|
|
770
796
|
]),
|
|
771
|
-
f("div",
|
|
772
|
-
f("div", null,
|
|
773
|
-
|
|
797
|
+
f("div", ln, [
|
|
798
|
+
f("div", null, z(b.name), 1),
|
|
799
|
+
b.description ? (o(), m("div", an, z(b.description), 1)) : I("", !0)
|
|
774
800
|
])
|
|
775
801
|
])
|
|
776
|
-
], 10,
|
|
802
|
+
], 10, tn)) : n(a)(y) ? (o(), m("a", {
|
|
777
803
|
key: 1,
|
|
778
|
-
href:
|
|
779
|
-
class:
|
|
804
|
+
href: b.href,
|
|
805
|
+
class: g(n(d)),
|
|
780
806
|
"aria-current": "step",
|
|
781
|
-
onClick: (u) =>
|
|
807
|
+
onClick: (u) => n(h)(y, u)
|
|
782
808
|
}, [
|
|
783
|
-
f("div",
|
|
784
|
-
f("div",
|
|
785
|
-
f("div",
|
|
786
|
-
f("div", null,
|
|
787
|
-
|
|
809
|
+
f("div", rn, [
|
|
810
|
+
f("div", un, z(n(p)(y)), 1),
|
|
811
|
+
f("div", cn, [
|
|
812
|
+
f("div", null, z(b.name), 1),
|
|
813
|
+
b.description ? (o(), m("div", dn, z(b.description), 1)) : I("", !0)
|
|
788
814
|
])
|
|
789
815
|
])
|
|
790
|
-
], 10,
|
|
816
|
+
], 10, on)) : (o(), m("a", {
|
|
791
817
|
key: 2,
|
|
792
|
-
href:
|
|
793
|
-
class:
|
|
794
|
-
onClick: (u) =>
|
|
818
|
+
href: b.href,
|
|
819
|
+
class: g(n(d)),
|
|
820
|
+
onClick: (u) => n(h)(y, u)
|
|
795
821
|
}, [
|
|
796
|
-
f("div",
|
|
797
|
-
f("div",
|
|
798
|
-
f("div",
|
|
799
|
-
f("div", null,
|
|
800
|
-
|
|
822
|
+
f("div", pn, [
|
|
823
|
+
f("div", mn, z(n(p)(y)), 1),
|
|
824
|
+
f("div", hn, [
|
|
825
|
+
f("div", null, z(b.name), 1),
|
|
826
|
+
b.description ? (o(), m("div", vn, z(b.description), 1)) : I("", !0)
|
|
801
827
|
])
|
|
802
828
|
])
|
|
803
|
-
], 10,
|
|
829
|
+
], 10, fn))
|
|
804
830
|
]))), 128))
|
|
805
831
|
], 2)
|
|
806
|
-
], 8,
|
|
832
|
+
], 8, en));
|
|
807
833
|
}
|
|
808
|
-
}),
|
|
834
|
+
}), gn = ["aria-label"], bn = ["href", "onClick"], yn = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, xn = {
|
|
809
835
|
key: 0,
|
|
810
836
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
811
|
-
},
|
|
837
|
+
}, kn = ["href", "onClick"], wn = {
|
|
812
838
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
839
|
"aria-hidden": "true"
|
|
814
|
-
},
|
|
840
|
+
}, Cn = {
|
|
815
841
|
key: 0,
|
|
816
842
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
817
|
-
},
|
|
843
|
+
}, $n = /* @__PURE__ */ f("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), In = /* @__PURE__ */ f("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Sn = ["href", "onClick"], Bn = {
|
|
818
844
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
819
845
|
"aria-hidden": "true"
|
|
820
|
-
},
|
|
846
|
+
}, zn = {
|
|
821
847
|
key: 0,
|
|
822
848
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
823
|
-
},
|
|
849
|
+
}, Vn = {
|
|
824
850
|
key: 1,
|
|
825
851
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
826
|
-
},
|
|
852
|
+
}, Io = /* @__PURE__ */ j({
|
|
827
853
|
__name: "Bullet",
|
|
828
854
|
props: {
|
|
829
855
|
ariaLabel: null,
|
|
@@ -837,77 +863,77 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
837
863
|
},
|
|
838
864
|
emits: ["update:modelValue"],
|
|
839
865
|
setup(e, { emit: t }) {
|
|
840
|
-
const r = t, s = e, { isCurrentStep:
|
|
866
|
+
const r = t, s = e, { isCurrentStep: a, isFinishedStep: l, switchStep: h, listClasses: p, linkClasses: i } = yt({
|
|
841
867
|
props: le(s),
|
|
842
868
|
emit: r
|
|
843
|
-
}),
|
|
844
|
-
const
|
|
845
|
-
let
|
|
846
|
-
return s.stepsPadding === "xs" ?
|
|
847
|
-
}),
|
|
848
|
-
const
|
|
849
|
-
return s.basic &&
|
|
869
|
+
}), d = c(() => {
|
|
870
|
+
const x = ["h6 font-medium leading-7"];
|
|
871
|
+
let b;
|
|
872
|
+
return s.stepsPadding === "xs" ? b = "ml-1" : s.stepsPadding === "sm" ? b = "ml-2" : b = "ml-3", x.push(b), s.basic && x.push("sr-only"), x.join(" ");
|
|
873
|
+
}), v = c(() => {
|
|
874
|
+
const x = [];
|
|
875
|
+
return s.basic && x.push("basic"), x.join(" ");
|
|
850
876
|
});
|
|
851
|
-
return (
|
|
877
|
+
return (x, b) => (o(), m("nav", {
|
|
852
878
|
class: "flex justify-center",
|
|
853
879
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
854
880
|
}, [
|
|
855
881
|
f("ol", {
|
|
856
|
-
class:
|
|
882
|
+
class: g([n(p), v.value])
|
|
857
883
|
}, [
|
|
858
|
-
(
|
|
859
|
-
key:
|
|
884
|
+
(o(!0), m(K, null, G(e.steps, (y, u) => (o(), m("li", {
|
|
885
|
+
key: y.name
|
|
860
886
|
}, [
|
|
861
|
-
l
|
|
887
|
+
n(l)(u) ? (o(), m("a", {
|
|
862
888
|
key: 0,
|
|
863
|
-
href:
|
|
864
|
-
class:
|
|
865
|
-
onClick: (S) =>
|
|
889
|
+
href: y.href,
|
|
890
|
+
class: g(n(i)),
|
|
891
|
+
onClick: (S) => n(h)(u, S)
|
|
866
892
|
}, [
|
|
867
|
-
f("span",
|
|
868
|
-
e.basic ? (
|
|
893
|
+
f("span", yn, [
|
|
894
|
+
e.basic ? (o(), m("span", xn)) : (o(), L(n(ht), {
|
|
869
895
|
key: 1,
|
|
870
896
|
class: "h-full w-full text-primary",
|
|
871
897
|
"aria-hidden": "true"
|
|
872
898
|
}))
|
|
873
899
|
]),
|
|
874
900
|
f("span", {
|
|
875
|
-
class:
|
|
876
|
-
},
|
|
877
|
-
], 10,
|
|
901
|
+
class: g(["text-foreground", d.value])
|
|
902
|
+
}, z(y.name), 3)
|
|
903
|
+
], 10, bn)) : n(a)(u) ? (o(), m("a", {
|
|
878
904
|
key: 1,
|
|
879
|
-
href:
|
|
880
|
-
class:
|
|
905
|
+
href: y.href,
|
|
906
|
+
class: g(n(i)),
|
|
881
907
|
"aria-current": "step",
|
|
882
|
-
onClick: (S) =>
|
|
908
|
+
onClick: (S) => n(h)(u, S)
|
|
883
909
|
}, [
|
|
884
|
-
f("span",
|
|
885
|
-
e.basic ? (
|
|
886
|
-
|
|
887
|
-
|
|
910
|
+
f("span", wn, [
|
|
911
|
+
e.basic ? (o(), m("span", Cn)) : (o(), m(K, { key: 1 }, [
|
|
912
|
+
$n,
|
|
913
|
+
In
|
|
888
914
|
], 64))
|
|
889
915
|
]),
|
|
890
916
|
f("span", {
|
|
891
|
-
class:
|
|
892
|
-
},
|
|
893
|
-
], 10,
|
|
917
|
+
class: g(["text-primary-focus", d.value])
|
|
918
|
+
}, z(y.name), 3)
|
|
919
|
+
], 10, kn)) : (o(), m("a", {
|
|
894
920
|
key: 2,
|
|
895
|
-
href:
|
|
896
|
-
class:
|
|
897
|
-
onClick: (S) =>
|
|
921
|
+
href: y.href,
|
|
922
|
+
class: g(n(i)),
|
|
923
|
+
onClick: (S) => n(h)(u, S)
|
|
898
924
|
}, [
|
|
899
|
-
f("div",
|
|
900
|
-
e.basic ? (
|
|
925
|
+
f("div", Bn, [
|
|
926
|
+
e.basic ? (o(), m("span", zn)) : (o(), m("div", Vn))
|
|
901
927
|
]),
|
|
902
928
|
f("p", {
|
|
903
|
-
class:
|
|
904
|
-
},
|
|
905
|
-
], 10,
|
|
929
|
+
class: g(["text-foreground-disabled", d.value])
|
|
930
|
+
}, z(y.name), 3)
|
|
931
|
+
], 10, Sn))
|
|
906
932
|
]))), 128))
|
|
907
933
|
], 2)
|
|
908
|
-
], 8,
|
|
934
|
+
], 8, gn));
|
|
909
935
|
}
|
|
910
|
-
}),
|
|
936
|
+
}), On = {}, Ln = {
|
|
911
937
|
xmlns: "http://www.w3.org/2000/svg",
|
|
912
938
|
class: "icon icon-tabler icon-tabler-pointer",
|
|
913
939
|
width: "44",
|
|
@@ -918,34 +944,34 @@ const ln = ["aria-label"], an = ["href", "onClick"], on = { class: "flex space-x
|
|
|
918
944
|
fill: "rgba(255,255,255,0.8)",
|
|
919
945
|
"stroke-linecap": "round",
|
|
920
946
|
"stroke-linejoin": "round"
|
|
921
|
-
},
|
|
947
|
+
}, Mn = /* @__PURE__ */ f("path", {
|
|
922
948
|
stroke: "none",
|
|
923
949
|
d: "M0 0h24v24H0z",
|
|
924
950
|
fill: "none"
|
|
925
|
-
}, null, -1),
|
|
926
|
-
|
|
927
|
-
|
|
951
|
+
}, null, -1), An = /* @__PURE__ */ f("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Pn = [
|
|
952
|
+
Mn,
|
|
953
|
+
An
|
|
928
954
|
];
|
|
929
|
-
function
|
|
930
|
-
return
|
|
955
|
+
function jn(e, t) {
|
|
956
|
+
return o(), m("svg", Ln, Pn);
|
|
931
957
|
}
|
|
932
|
-
const
|
|
958
|
+
const _n = /* @__PURE__ */ Oe(On, [["render", jn]]), Tn = {}, Fn = {
|
|
933
959
|
viewBox: "0 0 18 17",
|
|
934
960
|
fill: "none",
|
|
935
961
|
xmlns: "http://www.w3.org/2000/svg"
|
|
936
|
-
},
|
|
962
|
+
}, Rn = /* @__PURE__ */ f("path", {
|
|
937
963
|
d: "M9 1.25V3.5M14.834 3.666L13.243 5.257M17.25 9.5H15M4.757 13.743L3.167 15.333M3 9.5H0.75M4.757 5.257L3.167 3.667",
|
|
938
964
|
stroke: "currentColor",
|
|
939
965
|
"stroke-width": "1",
|
|
940
966
|
"stroke-linecap": "round",
|
|
941
967
|
"stroke-linejoin": "round"
|
|
942
|
-
}, null, -1),
|
|
943
|
-
|
|
968
|
+
}, null, -1), Dn = [
|
|
969
|
+
Rn
|
|
944
970
|
];
|
|
945
|
-
function
|
|
946
|
-
return
|
|
971
|
+
function En(e, t) {
|
|
972
|
+
return o(), m("svg", Fn, Dn);
|
|
947
973
|
}
|
|
948
|
-
const
|
|
974
|
+
const Un = /* @__PURE__ */ Oe(Tn, [["render", En]]), qn = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, Wn = { class: "w-full h-full overflow-hidden" }, So = /* @__PURE__ */ j({
|
|
949
975
|
__name: "Instructional",
|
|
950
976
|
props: {
|
|
951
977
|
actions: Array,
|
|
@@ -955,66 +981,66 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
955
981
|
slotsConfig: Array
|
|
956
982
|
},
|
|
957
983
|
setup(e) {
|
|
958
|
-
const t = e, r = O(!0), s = O({ ...t.initialPosition }),
|
|
959
|
-
async function i(
|
|
960
|
-
await rs(
|
|
984
|
+
const t = e, r = O(!0), s = O({ ...t.initialPosition }), a = O(!1), l = O(500), h = O(!0), p = O(t.slotsConfig || []);
|
|
985
|
+
async function i(x) {
|
|
986
|
+
await rs(x.duration);
|
|
961
987
|
}
|
|
962
|
-
function
|
|
963
|
-
const
|
|
964
|
-
|
|
988
|
+
function d(x) {
|
|
989
|
+
const b = p.value.find((y) => y.name === x.slot);
|
|
990
|
+
b && (b.visible = !b.visible);
|
|
965
991
|
}
|
|
966
|
-
function x
|
|
967
|
-
switch (
|
|
992
|
+
function v(x) {
|
|
993
|
+
switch (x.type) {
|
|
968
994
|
case "animation":
|
|
969
|
-
s.value = { top:
|
|
995
|
+
s.value = { top: x.top, left: x.left }, l.value = x.duration;
|
|
970
996
|
break;
|
|
971
997
|
case "click":
|
|
972
|
-
|
|
998
|
+
a.value = !0, setTimeout(() => a.value = !1, 500);
|
|
973
999
|
break;
|
|
974
1000
|
case "delay":
|
|
975
|
-
return i(
|
|
1001
|
+
return i(x);
|
|
976
1002
|
case "slot":
|
|
977
|
-
|
|
1003
|
+
d(x);
|
|
978
1004
|
break;
|
|
979
1005
|
}
|
|
980
1006
|
}
|
|
981
1007
|
return ae(() => {
|
|
982
1008
|
(async () => {
|
|
983
1009
|
for (; r.value; ) {
|
|
984
|
-
await i({ type: "delay", duration: 800 }),
|
|
985
|
-
for (const
|
|
986
|
-
await
|
|
987
|
-
|
|
1010
|
+
await i({ type: "delay", duration: 800 }), h.value = !0;
|
|
1011
|
+
for (const b of t.actions || [])
|
|
1012
|
+
await v(b);
|
|
1013
|
+
h.value = !1, s.value = { ...t.initialPosition }, await i({ type: "delay", duration: 200 });
|
|
988
1014
|
}
|
|
989
1015
|
})();
|
|
990
1016
|
}), Ue(() => {
|
|
991
1017
|
r.value = !1;
|
|
992
|
-
}), (
|
|
1018
|
+
}), (x, b) => (o(), m("div", qn, [
|
|
993
1019
|
f("div", {
|
|
994
1020
|
class: "absolute z-50 text-foreground dark:text-foundation",
|
|
995
1021
|
style: ne({
|
|
996
1022
|
transitionProperty: "all",
|
|
997
1023
|
top: s.value.top + "%",
|
|
998
1024
|
left: s.value.left + "%",
|
|
999
|
-
transitionDuration:
|
|
1025
|
+
transitionDuration: l.value + "ms"
|
|
1000
1026
|
})
|
|
1001
1027
|
}, [
|
|
1002
|
-
|
|
1003
|
-
class:
|
|
1028
|
+
V(Un, {
|
|
1029
|
+
class: g(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !a.value }]])
|
|
1004
1030
|
}, null, 8, ["class"]),
|
|
1005
|
-
|
|
1031
|
+
V(_n, { class: "absolute inset-0 h-11 w-11" })
|
|
1006
1032
|
], 4),
|
|
1007
|
-
f("div",
|
|
1008
|
-
|
|
1009
|
-
(
|
|
1010
|
-
key:
|
|
1033
|
+
f("div", Wn, [
|
|
1034
|
+
E(x.$slots, "background"),
|
|
1035
|
+
(o(!0), m(K, null, G(p.value, (y) => (o(), m(K, {
|
|
1036
|
+
key: y.name
|
|
1011
1037
|
}, [
|
|
1012
|
-
|
|
1038
|
+
y.visible ? E(x.$slots, y.name, { key: 0 }) : I("", !0)
|
|
1013
1039
|
], 64))), 128))
|
|
1014
1040
|
])
|
|
1015
1041
|
]));
|
|
1016
1042
|
}
|
|
1017
|
-
}),
|
|
1043
|
+
}), Hn = ["disabled"], Bo = /* @__PURE__ */ j({
|
|
1018
1044
|
__name: "CardButton",
|
|
1019
1045
|
props: {
|
|
1020
1046
|
disabled: { type: Boolean },
|
|
@@ -1022,38 +1048,38 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1022
1048
|
},
|
|
1023
1049
|
emits: ["update:modelValue", "click"],
|
|
1024
1050
|
setup(e, { emit: t }) {
|
|
1025
|
-
const r = t, s = e,
|
|
1026
|
-
const
|
|
1051
|
+
const r = t, s = e, a = c(() => {
|
|
1052
|
+
const h = [
|
|
1027
1053
|
"h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
|
|
1028
1054
|
"normal px-16 py-5 shadow rounded transition active:scale-95"
|
|
1029
1055
|
];
|
|
1030
|
-
return s.disabled ?
|
|
1056
|
+
return s.disabled ? h.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (h.push(
|
|
1031
1057
|
s.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
|
|
1032
|
-
),
|
|
1033
|
-
}),
|
|
1058
|
+
), h.push("ring-outline-2 hover:ring-4")), h.join(" ");
|
|
1059
|
+
}), l = (h) => {
|
|
1034
1060
|
if (s.disabled) {
|
|
1035
|
-
|
|
1061
|
+
h.preventDefault(), h.stopPropagation(), h.stopImmediatePropagation();
|
|
1036
1062
|
return;
|
|
1037
1063
|
}
|
|
1038
|
-
r("update:modelValue", !s.modelValue), r("click",
|
|
1064
|
+
r("update:modelValue", !s.modelValue), r("click", h);
|
|
1039
1065
|
};
|
|
1040
|
-
return (
|
|
1041
|
-
class:
|
|
1066
|
+
return (h, p) => (o(), m("button", {
|
|
1067
|
+
class: g(a.value),
|
|
1042
1068
|
disabled: e.disabled,
|
|
1043
|
-
onClick:
|
|
1069
|
+
onClick: l
|
|
1044
1070
|
}, [
|
|
1045
|
-
|
|
1071
|
+
E(h.$slots, "default", {}, () => [
|
|
1046
1072
|
R("Text")
|
|
1047
1073
|
])
|
|
1048
|
-
], 10,
|
|
1074
|
+
], 10, Hn));
|
|
1049
1075
|
}
|
|
1050
|
-
}),
|
|
1076
|
+
}), Kn = { class: "relative flex items-start" }, Gn = { class: "flex h-6 items-center" }, Xn = ["id", "checked", "aria-describedby", "name", "disabled", "value"], Zn = {
|
|
1051
1077
|
class: "ml-2 text-sm",
|
|
1052
1078
|
style: { "padding-top": "2px" }
|
|
1053
|
-
},
|
|
1079
|
+
}, Nn = ["for"], Qn = {
|
|
1054
1080
|
key: 0,
|
|
1055
1081
|
class: "text-danger ml-1"
|
|
1056
|
-
},
|
|
1082
|
+
}, Jn = ["id"], zo = /* @__PURE__ */ j({
|
|
1057
1083
|
inheritAttrs: !1,
|
|
1058
1084
|
__name: "Checkbox",
|
|
1059
1085
|
props: {
|
|
@@ -1142,61 +1168,61 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1142
1168
|
},
|
|
1143
1169
|
emits: ["update:modelValue"],
|
|
1144
1170
|
setup(e) {
|
|
1145
|
-
const t = e, r = (k) => `${k}-${
|
|
1146
|
-
checked:
|
|
1147
|
-
errorMessage:
|
|
1148
|
-
handleChange:
|
|
1149
|
-
value:
|
|
1150
|
-
} =
|
|
1171
|
+
const t = e, r = (k) => `${k}-${Ve()}`, s = c(() => t.value || t.name), {
|
|
1172
|
+
checked: a,
|
|
1173
|
+
errorMessage: l,
|
|
1174
|
+
handleChange: h,
|
|
1175
|
+
value: p
|
|
1176
|
+
} = Se(t.name, t.rules, {
|
|
1151
1177
|
validateOnMount: t.validateOnMount,
|
|
1152
1178
|
type: "checkbox",
|
|
1153
1179
|
checkedValue: s,
|
|
1154
1180
|
initialValue: t.modelValue || void 0
|
|
1155
|
-
}), i = c(() => t.label || t.name),
|
|
1181
|
+
}), i = c(() => t.label || t.name), d = c(() => l.value ? "border-danger-lighter" : "border-foreground-4 "), v = c(() => t.description || l.value), x = c(() => `${t.name}-description`), b = c(() => {
|
|
1156
1182
|
const k = [];
|
|
1157
|
-
return t.inlineDescription ? k.push("inline ml-2") : k.push("block"),
|
|
1158
|
-
}),
|
|
1159
|
-
t.disabled ||
|
|
1183
|
+
return t.inlineDescription ? k.push("inline ml-2") : k.push("block"), l.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
|
|
1184
|
+
}), y = O(r("checkbox")), u = c(() => t.id || y.value), S = (k) => {
|
|
1185
|
+
t.disabled || h(k);
|
|
1160
1186
|
};
|
|
1161
1187
|
return ae(() => {
|
|
1162
|
-
const k = t.modelValue, $ =
|
|
1163
|
-
B !== T &&
|
|
1164
|
-
}), (k, $) => (
|
|
1165
|
-
f("div",
|
|
1188
|
+
const k = t.modelValue, $ = p.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
|
|
1189
|
+
B !== T && h(k);
|
|
1190
|
+
}), (k, $) => (o(), m("div", Kn, [
|
|
1191
|
+
f("div", Gn, [
|
|
1166
1192
|
f("input", ie({
|
|
1167
1193
|
id: u.value,
|
|
1168
|
-
checked:
|
|
1169
|
-
"aria-describedby":
|
|
1194
|
+
checked: n(a),
|
|
1195
|
+
"aria-describedby": x.value,
|
|
1170
1196
|
name: e.name,
|
|
1171
1197
|
disabled: e.disabled,
|
|
1172
1198
|
value: s.value,
|
|
1173
1199
|
type: "checkbox",
|
|
1174
|
-
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1175
|
-
}, k.$attrs, { onChange: S }), null, 16,
|
|
1200
|
+
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]
|
|
1201
|
+
}, k.$attrs, { onChange: S }), null, 16, Xn)
|
|
1176
1202
|
]),
|
|
1177
|
-
f("div",
|
|
1203
|
+
f("div", Zn, [
|
|
1178
1204
|
f("label", {
|
|
1179
1205
|
for: u.value,
|
|
1180
|
-
class:
|
|
1206
|
+
class: g(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1181
1207
|
}, [
|
|
1182
|
-
f("span", null,
|
|
1183
|
-
e.showRequired ? (
|
|
1184
|
-
], 10,
|
|
1185
|
-
|
|
1208
|
+
f("span", null, z(i.value), 1),
|
|
1209
|
+
e.showRequired ? (o(), m("span", Qn, "*")) : I("", !0)
|
|
1210
|
+
], 10, Nn),
|
|
1211
|
+
v.value ? (o(), m("p", {
|
|
1186
1212
|
key: 0,
|
|
1187
|
-
id:
|
|
1188
|
-
class: b
|
|
1189
|
-
},
|
|
1213
|
+
id: x.value,
|
|
1214
|
+
class: g(b.value)
|
|
1215
|
+
}, z(v.value), 11, Jn)) : I("", !0)
|
|
1190
1216
|
])
|
|
1191
1217
|
]));
|
|
1192
1218
|
}
|
|
1193
|
-
}),
|
|
1219
|
+
}), Yn = { class: "flex h-6 items-center" }, el = ["id", "checked", "aria-describedby", "name", "disabled", "value"], tl = ["for"], sl = {
|
|
1194
1220
|
key: 0,
|
|
1195
1221
|
class: "text-sm"
|
|
1196
|
-
},
|
|
1222
|
+
}, nl = { class: "flex flex-col" }, ll = ["id"], al = {
|
|
1197
1223
|
key: 1,
|
|
1198
1224
|
class: "text-danger ml-1"
|
|
1199
|
-
},
|
|
1225
|
+
}, ol = ["id"], Vo = /* @__PURE__ */ j({
|
|
1200
1226
|
inheritAttrs: !1,
|
|
1201
1227
|
__name: "Radio",
|
|
1202
1228
|
props: {
|
|
@@ -1292,126 +1318,126 @@ const Kn = /* @__PURE__ */ Oe(En, [["render", Hn]]), Gn = { class: "relative asp
|
|
|
1292
1318
|
},
|
|
1293
1319
|
emits: ["update:modelValue"],
|
|
1294
1320
|
setup(e) {
|
|
1295
|
-
const t = e, r = (k) => `${k}-${
|
|
1296
|
-
checked:
|
|
1297
|
-
errorMessage:
|
|
1298
|
-
handleChange:
|
|
1299
|
-
value:
|
|
1300
|
-
} =
|
|
1321
|
+
const t = e, r = (k) => `${k}-${Ve()}`, s = c(() => t.value || t.name), {
|
|
1322
|
+
checked: a,
|
|
1323
|
+
errorMessage: l,
|
|
1324
|
+
handleChange: h,
|
|
1325
|
+
value: p
|
|
1326
|
+
} = Se(t.name, t.rules, {
|
|
1301
1327
|
validateOnMount: t.validateOnMount,
|
|
1302
1328
|
type: "radio",
|
|
1303
1329
|
checkedValue: s,
|
|
1304
1330
|
initialValue: t.modelValue || void 0
|
|
1305
|
-
}), i = c(() => t.label || t.name),
|
|
1331
|
+
}), i = c(() => t.label || t.name), d = c(() => l.value ? "border-danger-lighter" : "border-foreground-4 "), v = c(() => t.description || l.value), x = c(() => `${t.name}-description`), b = c(() => {
|
|
1306
1332
|
const k = ["text-xs"];
|
|
1307
|
-
return
|
|
1308
|
-
}),
|
|
1309
|
-
t.disabled ||
|
|
1333
|
+
return l.value ? k.push("text-danger") : k.push("text-foreground-2"), k.join(" ");
|
|
1334
|
+
}), y = O(r("radio")), u = c(() => t.id || y.value), S = (k) => {
|
|
1335
|
+
t.disabled || h(k);
|
|
1310
1336
|
};
|
|
1311
1337
|
return ae(() => {
|
|
1312
|
-
const k = t.modelValue, $ =
|
|
1313
|
-
B !== T &&
|
|
1314
|
-
}), (k, $) => (
|
|
1315
|
-
class:
|
|
1338
|
+
const k = t.modelValue, $ = p.value, B = Array.isArray(k) ? k.includes(t.value) : k === t.value, T = Array.isArray($) ? $.includes(t.value) : $ === t.value;
|
|
1339
|
+
B !== T && h(k);
|
|
1340
|
+
}), (k, $) => (o(), m("div", {
|
|
1341
|
+
class: g(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
|
|
1316
1342
|
}, [
|
|
1317
|
-
f("div",
|
|
1343
|
+
f("div", Yn, [
|
|
1318
1344
|
f("input", ie({
|
|
1319
1345
|
id: u.value,
|
|
1320
|
-
checked:
|
|
1321
|
-
"aria-describedby":
|
|
1346
|
+
checked: n(a),
|
|
1347
|
+
"aria-describedby": x.value,
|
|
1322
1348
|
name: e.name,
|
|
1323
1349
|
disabled: e.disabled,
|
|
1324
1350
|
value: s.value,
|
|
1325
1351
|
type: "radio",
|
|
1326
|
-
class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1327
|
-
}, k.$attrs, { onChange: S }), null, 16,
|
|
1352
|
+
class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", d.value]
|
|
1353
|
+
}, k.$attrs, { onChange: S }), null, 16, el)
|
|
1328
1354
|
]),
|
|
1329
1355
|
f("div", {
|
|
1330
|
-
class:
|
|
1356
|
+
class: g(["text-xs sm:text-sm", e.inlineDescription ? "flex gap-2 items-center" : ""])
|
|
1331
1357
|
}, [
|
|
1332
1358
|
f("label", {
|
|
1333
1359
|
for: u.value,
|
|
1334
|
-
class:
|
|
1360
|
+
class: g(["text-foreground flex gap-2 items-center", { "sr-only": e.hideLabel }])
|
|
1335
1361
|
}, [
|
|
1336
|
-
e.icon ? (
|
|
1337
|
-
(
|
|
1362
|
+
e.icon ? (o(), m("div", sl, [
|
|
1363
|
+
(o(), L(Q(e.icon), { class: "h-8 sm:h-10 w-8 sm:w-10" }))
|
|
1338
1364
|
])) : I("", !0),
|
|
1339
|
-
f("div",
|
|
1340
|
-
f("span", null,
|
|
1341
|
-
|
|
1365
|
+
f("div", nl, [
|
|
1366
|
+
f("span", null, z(i.value), 1),
|
|
1367
|
+
v.value && !e.inlineDescription ? (o(), m("p", {
|
|
1342
1368
|
key: 0,
|
|
1343
|
-
id:
|
|
1344
|
-
class: b
|
|
1345
|
-
},
|
|
1369
|
+
id: x.value,
|
|
1370
|
+
class: g(b.value)
|
|
1371
|
+
}, z(v.value), 11, ll)) : I("", !0)
|
|
1346
1372
|
]),
|
|
1347
|
-
e.showRequired ? (
|
|
1348
|
-
], 10,
|
|
1349
|
-
|
|
1373
|
+
e.showRequired ? (o(), m("span", al, "*")) : I("", !0)
|
|
1374
|
+
], 10, tl),
|
|
1375
|
+
v.value && e.inlineDescription ? (o(), m("p", {
|
|
1350
1376
|
key: 0,
|
|
1351
|
-
id:
|
|
1352
|
-
class: b
|
|
1353
|
-
},
|
|
1377
|
+
id: x.value,
|
|
1378
|
+
class: g(b.value)
|
|
1379
|
+
}, z(v.value), 11, ol)) : I("", !0)
|
|
1354
1380
|
], 2)
|
|
1355
1381
|
], 2));
|
|
1356
1382
|
}
|
|
1357
1383
|
});
|
|
1358
1384
|
function Ze(e) {
|
|
1359
|
-
const { props: t, inputEl: r, emit: s, options:
|
|
1360
|
-
validateOnMount:
|
|
1361
|
-
validateOnValueUpdate:
|
|
1362
|
-
initialValue:
|
|
1363
|
-
}),
|
|
1385
|
+
const { props: t, inputEl: r, emit: s, options: a } = e, { value: l, errorMessage: h } = Se(t.name, t.rules, {
|
|
1386
|
+
validateOnMount: n(t.validateOnMount),
|
|
1387
|
+
validateOnValueUpdate: n(t.validateOnValueUpdate),
|
|
1388
|
+
initialValue: n(t.modelValue) || void 0
|
|
1389
|
+
}), p = c(() => {
|
|
1364
1390
|
const A = ["block label text-foreground-2 mb-2"];
|
|
1365
|
-
return
|
|
1391
|
+
return n(t.showLabel) || A.push("sr-only"), A.join(" ");
|
|
1366
1392
|
}), i = c(() => [
|
|
1367
1393
|
"focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
|
|
1368
1394
|
"disabled:text-disabled-muted placeholder:text-foreground-2",
|
|
1369
1395
|
"rounded"
|
|
1370
|
-
].join(" ")),
|
|
1396
|
+
].join(" ")), d = c(() => {
|
|
1371
1397
|
const A = [
|
|
1372
1398
|
"block w-full text-foreground transition-all",
|
|
1373
1399
|
i.value
|
|
1374
1400
|
];
|
|
1375
|
-
|
|
1401
|
+
h.value ? A.push(
|
|
1376
1402
|
"focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
|
|
1377
1403
|
) : A.push("border-0 focus:ring-2 focus:ring-outline-2");
|
|
1378
|
-
const w =
|
|
1404
|
+
const w = n(t.color);
|
|
1379
1405
|
return w === "foundation" ? A.push("bg-foundation shadow-sm hover:shadow") : w === "transparent" ? A.push("bg-transparent") : A.push("bg-foundation-page"), A.join(" ");
|
|
1380
|
-
}),
|
|
1381
|
-
const A =
|
|
1382
|
-
return !A || !
|
|
1383
|
-
}),
|
|
1384
|
-
() =>
|
|
1385
|
-
), u = c(() =>
|
|
1386
|
-
() => S.value ? `${
|
|
1406
|
+
}), v = O(Ve()), x = c(() => n(t.label) || n(t.name)), b = c(() => {
|
|
1407
|
+
const A = h.value;
|
|
1408
|
+
return !A || !n(t.useLabelInErrors) ? A : A.replace("Value", x.value);
|
|
1409
|
+
}), y = c(
|
|
1410
|
+
() => b.value && n(t.hideErrorMessage)
|
|
1411
|
+
), u = c(() => b.value || n(t.help)), S = c(() => !!u.value), k = c(
|
|
1412
|
+
() => S.value ? `${n(t.name)}-${v.value}` : void 0
|
|
1387
1413
|
), $ = c(() => {
|
|
1388
1414
|
const A = ["mt-2 text-xs sm:text-sm"];
|
|
1389
|
-
return A.push(
|
|
1415
|
+
return A.push(h.value ? "text-danger" : "text-foreground-2"), A.join(" ");
|
|
1390
1416
|
}), B = () => {
|
|
1391
1417
|
var A;
|
|
1392
1418
|
(A = r.value) == null || A.focus();
|
|
1393
1419
|
}, T = () => {
|
|
1394
1420
|
var A;
|
|
1395
|
-
|
|
1421
|
+
l.value = N(l.value) ? [] : "", (A = a == null ? void 0 : a.customClear) == null || A.call(a), s("change", { value: l.value }), s("clear");
|
|
1396
1422
|
};
|
|
1397
1423
|
return ae(() => {
|
|
1398
|
-
|
|
1424
|
+
n(t.autoFocus) && B();
|
|
1399
1425
|
}), {
|
|
1400
1426
|
coreInputClasses: i,
|
|
1401
|
-
coreClasses:
|
|
1402
|
-
title:
|
|
1403
|
-
value:
|
|
1427
|
+
coreClasses: d,
|
|
1428
|
+
title: x,
|
|
1429
|
+
value: l,
|
|
1404
1430
|
helpTipId: k,
|
|
1405
1431
|
helpTipClasses: $,
|
|
1406
1432
|
helpTip: u,
|
|
1407
|
-
hideHelpTip:
|
|
1408
|
-
errorMessage:
|
|
1433
|
+
hideHelpTip: y,
|
|
1434
|
+
errorMessage: b,
|
|
1409
1435
|
clear: T,
|
|
1410
1436
|
focus: B,
|
|
1411
|
-
labelClasses:
|
|
1437
|
+
labelClasses: p
|
|
1412
1438
|
};
|
|
1413
1439
|
}
|
|
1414
|
-
const
|
|
1440
|
+
const rl = ["for"], il = { class: "relative" }, ul = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], cl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), dl = ["id"], Oo = /* @__PURE__ */ j({
|
|
1415
1441
|
__name: "TextArea",
|
|
1416
1442
|
props: {
|
|
1417
1443
|
name: null,
|
|
@@ -1434,100 +1460,100 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
|
|
|
1434
1460
|
},
|
|
1435
1461
|
emits: ["update:modelValue", "change", "input", "clear"],
|
|
1436
1462
|
setup(e, { expose: t, emit: r }) {
|
|
1437
|
-
const s = r,
|
|
1438
|
-
coreClasses:
|
|
1439
|
-
title:
|
|
1463
|
+
const s = r, a = e, l = O(null), {
|
|
1464
|
+
coreClasses: h,
|
|
1465
|
+
title: p,
|
|
1440
1466
|
value: i,
|
|
1441
|
-
helpTipId:
|
|
1442
|
-
helpTipClasses:
|
|
1443
|
-
helpTip:
|
|
1444
|
-
errorMessage:
|
|
1445
|
-
labelClasses:
|
|
1467
|
+
helpTipId: d,
|
|
1468
|
+
helpTipClasses: v,
|
|
1469
|
+
helpTip: x,
|
|
1470
|
+
errorMessage: b,
|
|
1471
|
+
labelClasses: y,
|
|
1446
1472
|
clear: u,
|
|
1447
1473
|
focus: S
|
|
1448
1474
|
} = Ze({
|
|
1449
|
-
props: le(
|
|
1475
|
+
props: le(a),
|
|
1450
1476
|
emit: s,
|
|
1451
|
-
inputEl:
|
|
1477
|
+
inputEl: l
|
|
1452
1478
|
}), k = c(() => {
|
|
1453
1479
|
const $ = ["pl-2"];
|
|
1454
|
-
return
|
|
1480
|
+
return a.showClear && b.value ? $.push("pr-12") : (a.showClear || b.value) && $.push("pr-8"), $.join(" ");
|
|
1455
1481
|
});
|
|
1456
|
-
return t({ focus: S }), ($, B) => (
|
|
1457
|
-
class:
|
|
1482
|
+
return t({ focus: S }), ($, B) => (o(), m("div", {
|
|
1483
|
+
class: g([e.fullWidth ? "w-full" : ""])
|
|
1458
1484
|
}, [
|
|
1459
1485
|
f("label", {
|
|
1460
1486
|
for: e.name,
|
|
1461
|
-
class:
|
|
1487
|
+
class: g(n(y))
|
|
1462
1488
|
}, [
|
|
1463
|
-
f("span", null,
|
|
1464
|
-
], 10,
|
|
1465
|
-
f("div",
|
|
1489
|
+
f("span", null, z(n(p)), 1)
|
|
1490
|
+
], 10, rl),
|
|
1491
|
+
f("div", il, [
|
|
1466
1492
|
be(f("textarea", ie({
|
|
1467
1493
|
id: e.name,
|
|
1468
1494
|
ref_key: "inputElement",
|
|
1469
|
-
ref:
|
|
1495
|
+
ref: l,
|
|
1470
1496
|
"onUpdate:modelValue": B[0] || (B[0] = (T) => Be(i) ? i.value = T : null),
|
|
1471
1497
|
name: e.name,
|
|
1472
1498
|
class: [
|
|
1473
|
-
|
|
1499
|
+
n(h),
|
|
1474
1500
|
k.value,
|
|
1475
1501
|
e.textareaClasses || "",
|
|
1476
1502
|
"min-h-[3rem] simple-scrollbar text-sm"
|
|
1477
1503
|
],
|
|
1478
1504
|
placeholder: e.placeholder,
|
|
1479
1505
|
disabled: e.disabled,
|
|
1480
|
-
"aria-invalid":
|
|
1481
|
-
"aria-describedby":
|
|
1506
|
+
"aria-invalid": n(b) ? "true" : "false",
|
|
1507
|
+
"aria-describedby": n(d)
|
|
1482
1508
|
}, $.$attrs, {
|
|
1483
|
-
onChange: B[1] || (B[1] = (T) => $.$emit("change", { event: T, value:
|
|
1484
|
-
onInput: B[2] || (B[2] = (T) => $.$emit("input", { event: T, value:
|
|
1485
|
-
}), null, 16,
|
|
1486
|
-
[qe,
|
|
1509
|
+
onChange: B[1] || (B[1] = (T) => $.$emit("change", { event: T, value: n(i) })),
|
|
1510
|
+
onInput: B[2] || (B[2] = (T) => $.$emit("input", { event: T, value: n(i) }))
|
|
1511
|
+
}), null, 16, ul), [
|
|
1512
|
+
[qe, n(i)]
|
|
1487
1513
|
]),
|
|
1488
|
-
e.showClear ? (
|
|
1514
|
+
e.showClear ? (o(), m("a", {
|
|
1489
1515
|
key: 0,
|
|
1490
1516
|
title: "Clear input",
|
|
1491
1517
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1492
1518
|
onClick: B[3] || (B[3] = //@ts-ignore
|
|
1493
|
-
(...T) =>
|
|
1519
|
+
(...T) => n(u) && n(u)(...T)),
|
|
1494
1520
|
onKeydown: B[4] || (B[4] = //@ts-ignore
|
|
1495
|
-
(...T) =>
|
|
1521
|
+
(...T) => n(u) && n(u)(...T))
|
|
1496
1522
|
}, [
|
|
1497
|
-
|
|
1498
|
-
|
|
1523
|
+
cl,
|
|
1524
|
+
V(n(xe), {
|
|
1499
1525
|
class: "h-5 w-5 text-foreground",
|
|
1500
1526
|
"aria-hidden": "true"
|
|
1501
1527
|
})
|
|
1502
1528
|
], 32)) : I("", !0),
|
|
1503
|
-
|
|
1529
|
+
n(b) ? (o(), m("div", {
|
|
1504
1530
|
key: 1,
|
|
1505
|
-
class:
|
|
1531
|
+
class: g([
|
|
1506
1532
|
"pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
|
|
1507
1533
|
e.showClear ? "pr-8" : "pr-2"
|
|
1508
1534
|
])
|
|
1509
1535
|
}, [
|
|
1510
|
-
|
|
1536
|
+
V(n(ze), {
|
|
1511
1537
|
class: "h-4 w-4 text-danger",
|
|
1512
1538
|
"aria-hidden": "true"
|
|
1513
1539
|
})
|
|
1514
1540
|
], 2)) : I("", !0),
|
|
1515
|
-
e.showRequired && !
|
|
1541
|
+
e.showRequired && !n(b) ? (o(), m("div", {
|
|
1516
1542
|
key: 2,
|
|
1517
|
-
class:
|
|
1543
|
+
class: g(["pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1518
1544
|
}, " * ", 2)) : I("", !0)
|
|
1519
1545
|
]),
|
|
1520
|
-
|
|
1546
|
+
n(d) ? (o(), m("p", {
|
|
1521
1547
|
key: 0,
|
|
1522
|
-
id:
|
|
1523
|
-
class:
|
|
1524
|
-
},
|
|
1548
|
+
id: n(d),
|
|
1549
|
+
class: g(n(v))
|
|
1550
|
+
}, z(n(x)), 11, dl)) : I("", !0)
|
|
1525
1551
|
], 2));
|
|
1526
1552
|
}
|
|
1527
|
-
}),
|
|
1553
|
+
}), fl = ["for"], pl = { class: "relative" }, ml = {
|
|
1528
1554
|
key: 0,
|
|
1529
1555
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1530
|
-
},
|
|
1556
|
+
}, hl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], vl = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), gl = ["id"], bl = /* @__PURE__ */ j({
|
|
1531
1557
|
inheritAttrs: !1,
|
|
1532
1558
|
__name: "TextInput",
|
|
1533
1559
|
props: {
|
|
@@ -1664,30 +1690,30 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
|
|
|
1664
1690
|
},
|
|
1665
1691
|
emits: ["update:modelValue", "change", "input", "clear", "focus", "blur"],
|
|
1666
1692
|
setup(e, { expose: t, emit: r }) {
|
|
1667
|
-
const s = e,
|
|
1668
|
-
coreClasses:
|
|
1693
|
+
const s = e, a = r, l = We(), h = O(null), {
|
|
1694
|
+
coreClasses: p,
|
|
1669
1695
|
title: i,
|
|
1670
|
-
value:
|
|
1671
|
-
helpTipId:
|
|
1672
|
-
helpTipClasses:
|
|
1673
|
-
helpTip:
|
|
1674
|
-
hideHelpTip:
|
|
1696
|
+
value: d,
|
|
1697
|
+
helpTipId: v,
|
|
1698
|
+
helpTipClasses: x,
|
|
1699
|
+
helpTip: b,
|
|
1700
|
+
hideHelpTip: y,
|
|
1675
1701
|
errorMessage: u,
|
|
1676
1702
|
clear: S,
|
|
1677
1703
|
focus: k,
|
|
1678
1704
|
labelClasses: $
|
|
1679
1705
|
} = Ze({
|
|
1680
1706
|
props: le(s),
|
|
1681
|
-
emit:
|
|
1682
|
-
inputEl:
|
|
1707
|
+
emit: a,
|
|
1708
|
+
inputEl: h
|
|
1683
1709
|
}), B = c(() => {
|
|
1684
|
-
const
|
|
1685
|
-
return u.value ?
|
|
1710
|
+
const D = ["h-5 w-5"];
|
|
1711
|
+
return u.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
|
|
1686
1712
|
}), T = c(
|
|
1687
1713
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1688
1714
|
), A = c(() => {
|
|
1689
|
-
const
|
|
1690
|
-
return T.value ?
|
|
1715
|
+
const D = [];
|
|
1716
|
+
return T.value ? D.push("pl-8") : D.push("pl-2"), l["input-right"] || (u.value || s.showClear) && (u.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
|
|
1691
1717
|
}), w = c(() => {
|
|
1692
1718
|
switch (s.size) {
|
|
1693
1719
|
case "sm":
|
|
@@ -1701,207 +1727,207 @@ const dl = ["for"], fl = { class: "relative" }, pl = ["id", "name", "placeholder
|
|
|
1701
1727
|
return "h-8 text-sm";
|
|
1702
1728
|
}
|
|
1703
1729
|
});
|
|
1704
|
-
return t({ focus: k }), (
|
|
1705
|
-
class:
|
|
1730
|
+
return t({ focus: k }), (D, q) => (o(), m("div", {
|
|
1731
|
+
class: g([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1706
1732
|
}, [
|
|
1707
1733
|
f("label", {
|
|
1708
1734
|
for: e.name,
|
|
1709
|
-
class:
|
|
1735
|
+
class: g(n($))
|
|
1710
1736
|
}, [
|
|
1711
|
-
f("span", null,
|
|
1712
|
-
], 10,
|
|
1713
|
-
f("div",
|
|
1714
|
-
T.value ? (
|
|
1715
|
-
e.customIcon ? (
|
|
1737
|
+
f("span", null, z(n(i)), 1)
|
|
1738
|
+
], 10, fl),
|
|
1739
|
+
f("div", pl, [
|
|
1740
|
+
T.value ? (o(), m("div", ml, [
|
|
1741
|
+
e.customIcon ? (o(), L(Q(e.customIcon), {
|
|
1716
1742
|
key: 0,
|
|
1717
|
-
class:
|
|
1743
|
+
class: g(B.value),
|
|
1718
1744
|
"aria-hidden": "true"
|
|
1719
|
-
}, null, 8, ["class"])) : e.type === "email" ? (
|
|
1745
|
+
}, null, 8, ["class"])) : e.type === "email" ? (o(), L(n(ns), {
|
|
1720
1746
|
key: 1,
|
|
1721
|
-
class:
|
|
1747
|
+
class: g(B.value),
|
|
1722
1748
|
"aria-hidden": "true"
|
|
1723
|
-
}, null, 8, ["class"])) : e.type === "password" ? (
|
|
1749
|
+
}, null, 8, ["class"])) : e.type === "password" ? (o(), L(n(ls), {
|
|
1724
1750
|
key: 2,
|
|
1725
|
-
class:
|
|
1751
|
+
class: g(B.value),
|
|
1726
1752
|
"aria-hidden": "true"
|
|
1727
1753
|
}, null, 8, ["class"])) : I("", !0)
|
|
1728
1754
|
])) : I("", !0),
|
|
1729
1755
|
be(f("input", ie({
|
|
1730
1756
|
id: e.name,
|
|
1731
1757
|
ref_key: "inputElement",
|
|
1732
|
-
ref:
|
|
1733
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
1758
|
+
ref: h,
|
|
1759
|
+
"onUpdate:modelValue": q[0] || (q[0] = (U) => Be(d) ? d.value = U : null),
|
|
1734
1760
|
type: e.type,
|
|
1735
1761
|
name: e.name,
|
|
1736
|
-
class: [
|
|
1762
|
+
class: [n(p), A.value, w.value, e.inputClasses || ""],
|
|
1737
1763
|
placeholder: e.placeholder,
|
|
1738
1764
|
disabled: e.disabled,
|
|
1739
|
-
"aria-invalid":
|
|
1740
|
-
"aria-describedby":
|
|
1765
|
+
"aria-invalid": n(u) ? "true" : "false",
|
|
1766
|
+
"aria-describedby": n(v),
|
|
1741
1767
|
role: "textbox"
|
|
1742
|
-
},
|
|
1743
|
-
onChange: q[1] || (q[1] = (
|
|
1744
|
-
onInput: q[2] || (q[2] = (
|
|
1745
|
-
onFocus: q[3] || (q[3] = (
|
|
1746
|
-
onBlur: q[4] || (q[4] = (
|
|
1747
|
-
}), null, 16,
|
|
1748
|
-
[
|
|
1768
|
+
}, D.$attrs, {
|
|
1769
|
+
onChange: q[1] || (q[1] = (U) => D.$emit("change", { event: U, value: n(d) })),
|
|
1770
|
+
onInput: q[2] || (q[2] = (U) => D.$emit("input", { event: U, value: n(d) })),
|
|
1771
|
+
onFocus: q[3] || (q[3] = (U) => D.$emit("focus")),
|
|
1772
|
+
onBlur: q[4] || (q[4] = (U) => D.$emit("blur"))
|
|
1773
|
+
}), null, 16, hl), [
|
|
1774
|
+
[Ot, n(d)]
|
|
1749
1775
|
]),
|
|
1750
|
-
D
|
|
1751
|
-
e.showClear ? (
|
|
1776
|
+
E(D.$slots, "input-right", {}, () => [
|
|
1777
|
+
e.showClear ? (o(), m("a", {
|
|
1752
1778
|
key: 0,
|
|
1753
1779
|
title: "Clear input",
|
|
1754
1780
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1755
1781
|
onClick: q[5] || (q[5] = //@ts-ignore
|
|
1756
|
-
(...
|
|
1782
|
+
(...U) => n(S) && n(S)(...U)),
|
|
1757
1783
|
onKeydown: q[6] || (q[6] = //@ts-ignore
|
|
1758
|
-
(...
|
|
1784
|
+
(...U) => n(S) && n(S)(...U))
|
|
1759
1785
|
}, [
|
|
1760
|
-
|
|
1761
|
-
|
|
1786
|
+
vl,
|
|
1787
|
+
V(n(xe), {
|
|
1762
1788
|
class: "h-5 w-5 text-foreground",
|
|
1763
1789
|
"aria-hidden": "true"
|
|
1764
1790
|
})
|
|
1765
1791
|
], 32)) : I("", !0),
|
|
1766
|
-
|
|
1792
|
+
n(u) ? (o(), m("div", {
|
|
1767
1793
|
key: 1,
|
|
1768
|
-
class:
|
|
1794
|
+
class: g([
|
|
1769
1795
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1770
1796
|
e.showClear ? "pr-8" : "pr-2"
|
|
1771
1797
|
])
|
|
1772
1798
|
}, [
|
|
1773
|
-
|
|
1799
|
+
V(n(ze), {
|
|
1774
1800
|
class: "h-4 w-4 text-danger",
|
|
1775
1801
|
"aria-hidden": "true"
|
|
1776
1802
|
})
|
|
1777
1803
|
], 2)) : I("", !0),
|
|
1778
|
-
e.showRequired && !
|
|
1804
|
+
e.showRequired && !n(u) ? (o(), m("div", {
|
|
1779
1805
|
key: 2,
|
|
1780
|
-
class:
|
|
1806
|
+
class: g(["pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1781
1807
|
}, " * ", 2)) : I("", !0)
|
|
1782
1808
|
])
|
|
1783
1809
|
]),
|
|
1784
|
-
|
|
1810
|
+
n(v) && !n(y) ? (o(), m("p", {
|
|
1785
1811
|
key: 0,
|
|
1786
|
-
id:
|
|
1787
|
-
class:
|
|
1788
|
-
},
|
|
1812
|
+
id: n(v),
|
|
1813
|
+
class: g(n(x))
|
|
1814
|
+
}, z(n(b)), 11, gl)) : I("", !0)
|
|
1789
1815
|
], 2));
|
|
1790
1816
|
}
|
|
1791
|
-
}),
|
|
1817
|
+
}), xt = /^https?:\/\//, Ne = /^[\w-_.+]+@[\w-_.+]+$/, yl = (e) => (e || "").match(Ne) ? !0 : "Value should be a valid e-mail address", xl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ne)) || "Value should be one or multiple comma-delimited e-mail addresses", kl = (e) => (ye(e) && (e = e.trim()), e ? !0 : "Value is required"), wl = (e, t) => (r, s) => r === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, Cl = (e) => (t) => {
|
|
1792
1818
|
const { minLength: r, maxLength: s } = e;
|
|
1793
|
-
return t = is(t) ? "" : t,
|
|
1794
|
-
},
|
|
1819
|
+
return t = is(t) ? "" : t, ye(t) ? !ge(r) && t.length < r ? `Value needs to be at least ${r} characters long` : !ge(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1820
|
+
}, $l = (e) => (t) => {
|
|
1795
1821
|
const { match: r, message: s } = e;
|
|
1796
|
-
return
|
|
1797
|
-
},
|
|
1822
|
+
return ye(t) ? r ? ye(r) ? t.includes(r) ? !0 : s : r.test(t) ? !0 : s : !0 : "Value should be a text string";
|
|
1823
|
+
}, Il = (e) => xt.test(e) ? !0 : "Value is not a valid URL", Sl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1798
1824
|
__proto__: null,
|
|
1799
1825
|
VALID_EMAIL: Ne,
|
|
1800
|
-
VALID_HTTP_URL:
|
|
1801
|
-
isEmail:
|
|
1802
|
-
isItemSelected:
|
|
1803
|
-
isOneOrMultipleEmails:
|
|
1804
|
-
isRequired:
|
|
1805
|
-
isSameAs:
|
|
1806
|
-
isStringOfLength:
|
|
1807
|
-
isUrl:
|
|
1808
|
-
stringContains:
|
|
1826
|
+
VALID_HTTP_URL: xt,
|
|
1827
|
+
isEmail: yl,
|
|
1828
|
+
isItemSelected: Sl,
|
|
1829
|
+
isOneOrMultipleEmails: xl,
|
|
1830
|
+
isRequired: kl,
|
|
1831
|
+
isSameAs: wl,
|
|
1832
|
+
isStringOfLength: Cl,
|
|
1833
|
+
isUrl: Il,
|
|
1834
|
+
stringContains: $l
|
|
1809
1835
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1810
|
-
function
|
|
1836
|
+
function kt(e) {
|
|
1811
1837
|
const {
|
|
1812
1838
|
skipCalculation: t,
|
|
1813
1839
|
elementToWatchForChanges: r,
|
|
1814
1840
|
itemContainer: s,
|
|
1815
|
-
trackResize:
|
|
1816
|
-
trackMutations:
|
|
1817
|
-
} = e || {},
|
|
1841
|
+
trackResize: a = !1,
|
|
1842
|
+
trackMutations: l = !0
|
|
1843
|
+
} = e || {}, h = O(0), p = () => {
|
|
1818
1844
|
const i = s.value;
|
|
1819
1845
|
if (t != null && t.value || !i)
|
|
1820
1846
|
return;
|
|
1821
|
-
const
|
|
1822
|
-
let
|
|
1823
|
-
for (const
|
|
1824
|
-
const u =
|
|
1825
|
-
ge(
|
|
1847
|
+
const d = i.children;
|
|
1848
|
+
let v = 0, x = 0, b;
|
|
1849
|
+
for (const y of d) {
|
|
1850
|
+
const u = y.offsetTop;
|
|
1851
|
+
ge(b) ? (b = u, v += 1) : u === b && (v += 1), x += 1;
|
|
1826
1852
|
}
|
|
1827
|
-
|
|
1853
|
+
h.value = x - v;
|
|
1828
1854
|
};
|
|
1829
|
-
return
|
|
1855
|
+
return a && fs(r, p), l && ps(r, p, {
|
|
1830
1856
|
childList: !0,
|
|
1831
1857
|
subtree: !0
|
|
1832
1858
|
}), {
|
|
1833
|
-
hiddenItemCount:
|
|
1859
|
+
hiddenItemCount: h
|
|
1834
1860
|
};
|
|
1835
1861
|
}
|
|
1836
|
-
function
|
|
1862
|
+
function wt(e) {
|
|
1837
1863
|
const { props: t, emit: r, dynamicVisibility: s } = e;
|
|
1838
|
-
let
|
|
1864
|
+
let a;
|
|
1839
1865
|
if (s) {
|
|
1840
|
-
const { elementToWatchForChanges:
|
|
1841
|
-
|
|
1866
|
+
const { elementToWatchForChanges: d, itemContainer: v } = s;
|
|
1867
|
+
a = kt({
|
|
1842
1868
|
skipCalculation: c(() => {
|
|
1843
|
-
var
|
|
1844
|
-
return !((
|
|
1869
|
+
var b;
|
|
1870
|
+
return !((b = t.multiple) != null && b.value);
|
|
1845
1871
|
}),
|
|
1846
|
-
elementToWatchForChanges:
|
|
1847
|
-
itemContainer:
|
|
1872
|
+
elementToWatchForChanges: d,
|
|
1873
|
+
itemContainer: v
|
|
1848
1874
|
}).hiddenItemCount;
|
|
1849
1875
|
} else
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1876
|
+
a = O(0);
|
|
1877
|
+
const l = c({
|
|
1852
1878
|
get: () => {
|
|
1853
|
-
var
|
|
1854
|
-
const
|
|
1855
|
-
return (
|
|
1879
|
+
var v, x;
|
|
1880
|
+
const d = (v = t.modelValue) == null ? void 0 : v.value;
|
|
1881
|
+
return (x = t.multiple) != null && x.value ? N(d) ? d : [] : N(d) ? void 0 : d;
|
|
1856
1882
|
},
|
|
1857
|
-
set: (
|
|
1858
|
-
var
|
|
1859
|
-
if ((
|
|
1883
|
+
set: (d) => {
|
|
1884
|
+
var v, x, b;
|
|
1885
|
+
if ((v = t.multiple) != null && v.value && !N(d)) {
|
|
1860
1886
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1861
1887
|
return;
|
|
1862
|
-
} else if (!((
|
|
1888
|
+
} else if (!((x = t.multiple) != null && x.value) && N(d)) {
|
|
1863
1889
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1864
1890
|
return;
|
|
1865
1891
|
}
|
|
1866
|
-
r("update:modelValue", (
|
|
1892
|
+
r("update:modelValue", (b = t.multiple) != null && b.value ? d || [] : d);
|
|
1867
1893
|
}
|
|
1868
|
-
}),
|
|
1894
|
+
}), h = (d) => N(d);
|
|
1869
1895
|
return {
|
|
1870
|
-
selectedValue:
|
|
1871
|
-
hiddenSelectedItemCount:
|
|
1872
|
-
isArrayValue:
|
|
1873
|
-
isMultiItemArrayValue: (
|
|
1874
|
-
firstItem: (
|
|
1896
|
+
selectedValue: l,
|
|
1897
|
+
hiddenSelectedItemCount: a,
|
|
1898
|
+
isArrayValue: h,
|
|
1899
|
+
isMultiItemArrayValue: (d) => N(d) && d.length > 1,
|
|
1900
|
+
firstItem: (d) => h(d) ? d[0] : d
|
|
1875
1901
|
};
|
|
1876
1902
|
}
|
|
1877
|
-
const
|
|
1878
|
-
|
|
1879
|
-
],
|
|
1903
|
+
const Bl = (e) => (Lt("data-v-89e77cae"), e = e(), Mt(), e), zl = /* @__PURE__ */ Bl(() => /* @__PURE__ */ f("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Vl = [
|
|
1904
|
+
zl
|
|
1905
|
+
], Ol = /* @__PURE__ */ j({
|
|
1880
1906
|
__name: "Bar",
|
|
1881
1907
|
props: {
|
|
1882
1908
|
loading: { type: Boolean }
|
|
1883
1909
|
},
|
|
1884
1910
|
setup(e) {
|
|
1885
|
-
return (t, r) => (
|
|
1886
|
-
class:
|
|
1911
|
+
return (t, r) => (o(), m("div", {
|
|
1912
|
+
class: g([
|
|
1887
1913
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1888
1914
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1889
1915
|
])
|
|
1890
|
-
},
|
|
1916
|
+
}, Vl, 2));
|
|
1891
1917
|
}
|
|
1892
1918
|
});
|
|
1893
|
-
const Qe = /* @__PURE__ */ Oe(
|
|
1919
|
+
const Qe = /* @__PURE__ */ Oe(Ol, [["__scopeId", "data-v-89e77cae"]]), Ll = { class: "flex items-center justify-between w-full" }, Ml = { class: "block truncate grow text-left text-xs sm:text-sm" }, Al = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, Pl = {
|
|
1894
1920
|
key: 1,
|
|
1895
1921
|
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
1896
|
-
},
|
|
1922
|
+
}, jl = ["disabled"], _l = {
|
|
1897
1923
|
key: 0,
|
|
1898
1924
|
class: "flex flex-col mx-1 mb-1"
|
|
1899
|
-
},
|
|
1925
|
+
}, Tl = /* @__PURE__ */ f("span", { class: "sr-only label text-foreground" }, "Search", -1), Fl = { class: "relative" }, Rl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, Dl = ["placeholder"], El = {
|
|
1900
1926
|
key: 0,
|
|
1901
1927
|
class: "px-1"
|
|
1902
|
-
},
|
|
1903
|
-
class: /* @__PURE__ */
|
|
1904
|
-
},
|
|
1928
|
+
}, Ul = { key: 1 }, ql = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Wl = {
|
|
1929
|
+
class: /* @__PURE__ */ g(["block truncate"])
|
|
1930
|
+
}, Hl = ["id"], Ct = /* @__PURE__ */ j({
|
|
1905
1931
|
__name: "Base",
|
|
1906
1932
|
props: {
|
|
1907
1933
|
multiple: {
|
|
@@ -2071,41 +2097,41 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2071
2097
|
},
|
|
2072
2098
|
emits: ["update:modelValue"],
|
|
2073
2099
|
setup(e, { expose: t, emit: r }) {
|
|
2074
|
-
const s = (C) =>
|
|
2075
|
-
validateOnMount:
|
|
2076
|
-
validateOnValueUpdate:
|
|
2077
|
-
initialValue:
|
|
2078
|
-
}), i = ms(),
|
|
2100
|
+
const s = (C) => _e(C), a = r, l = e, { value: h, errorMessage: p } = Se(l.name, l.rules, {
|
|
2101
|
+
validateOnMount: l.validateOnMount,
|
|
2102
|
+
validateOnValueUpdate: l.validateOnValueUpdate,
|
|
2103
|
+
initialValue: l.modelValue
|
|
2104
|
+
}), i = ms(), d = O(null), v = O(null), x = O(null), b = O(""), y = O([]), u = O(!1), S = O(1), k = O(Ve()), $ = hs(
|
|
2079
2105
|
c(() => {
|
|
2080
2106
|
var C;
|
|
2081
|
-
return (C =
|
|
2107
|
+
return (C = x.value) == null ? void 0 : C.el;
|
|
2082
2108
|
}),
|
|
2083
2109
|
{ windowResize: !0, windowScroll: !0, immediate: !0 }
|
|
2084
2110
|
);
|
|
2085
2111
|
vs(
|
|
2086
2112
|
c(() => {
|
|
2087
2113
|
var C;
|
|
2088
|
-
return (C =
|
|
2114
|
+
return (C = v.value) == null ? void 0 : C.el;
|
|
2089
2115
|
}),
|
|
2090
2116
|
([{ isIntersecting: C }]) => {
|
|
2091
|
-
C &&
|
|
2117
|
+
C && l.mountMenuOnBody && $.update();
|
|
2092
2118
|
}
|
|
2093
2119
|
);
|
|
2094
|
-
const B = c(() => l
|
|
2095
|
-
const C =
|
|
2096
|
-
return !C || !l
|
|
2097
|
-
}), A = c(() => T.value || l
|
|
2098
|
-
() => w.value ? `${l
|
|
2120
|
+
const B = c(() => n(l.label) || n(l.name)), T = c(() => {
|
|
2121
|
+
const C = p.value;
|
|
2122
|
+
return !C || !n(l.useLabelInErrors) ? C : C.replace("Value", B.value);
|
|
2123
|
+
}), A = c(() => T.value || n(l.help)), w = c(() => !!A.value), D = c(
|
|
2124
|
+
() => w.value ? `${n(l.name)}-${k.value}` : void 0
|
|
2099
2125
|
), q = c(
|
|
2100
|
-
() =>
|
|
2101
|
-
),
|
|
2102
|
-
() =>
|
|
2126
|
+
() => p.value ? "text-danger" : "text-foreground-2"
|
|
2127
|
+
), U = c(
|
|
2128
|
+
() => l.buttonStyle !== "simple" && l.clearable && !l.disabled
|
|
2103
2129
|
), Le = c(() => {
|
|
2104
2130
|
const C = ["relative flex group"];
|
|
2105
|
-
return
|
|
2131
|
+
return p.value ? (C.push("hover:shadow rounded-md"), C.push("text-danger-darker focus:border-danger focus:ring-danger"), l.buttonStyle !== "simple" && C.push("outline outline-2 outline-danger")) : l.buttonStyle !== "simple" && (C.push("hover:shadow rounded-md"), C.push("outline outline-2 outline-primary-muted")), l.fixedHeight && C.push("h-8"), C.join(" ");
|
|
2106
2132
|
}), re = c(() => {
|
|
2107
2133
|
const C = [];
|
|
2108
|
-
return
|
|
2134
|
+
return l.buttonStyle !== "simple" && C.push(
|
|
2109
2135
|
ce.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
2110
2136
|
), ce.value && C.push("cursor-not-allowed"), C.join(" ");
|
|
2111
2137
|
}), Me = c(() => {
|
|
@@ -2118,7 +2144,7 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2118
2144
|
];
|
|
2119
2145
|
return ce.value || (C.push(
|
|
2120
2146
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
2121
|
-
),
|
|
2147
|
+
), l.buttonStyle === "tinted" ? C.push("bg-outline-3") : C.push("bg-primary-muted")), C.join(" ");
|
|
2122
2148
|
}), Ae = c(() => {
|
|
2123
2149
|
const C = [
|
|
2124
2150
|
"relative z-[2]",
|
|
@@ -2126,83 +2152,83 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2126
2152
|
"flex items-center",
|
|
2127
2153
|
re.value
|
|
2128
2154
|
];
|
|
2129
|
-
return
|
|
2155
|
+
return l.buttonStyle !== "simple" && (C.push("py-2 px-3"), ce.value || (l.buttonStyle === "tinted" ? C.push("bg-foundation-page text-foreground") : C.push("bg-foundation text-foreground"))), U.value && he.value && C.push("rounded-r-none"), C.join(" ");
|
|
2130
2156
|
}), me = c(
|
|
2131
|
-
() => !!(
|
|
2132
|
-
), Y = c(() => me.value &&
|
|
2133
|
-
() =>
|
|
2157
|
+
() => !!(l.search && (l.filterPredicate || l.getSearchResults))
|
|
2158
|
+
), Y = c(() => me.value && l.getSearchResults), ce = c(
|
|
2159
|
+
() => l.disabled || !l.items.length && !Y.value
|
|
2134
2160
|
), X = c({
|
|
2135
2161
|
get: () => {
|
|
2136
|
-
const C =
|
|
2137
|
-
return
|
|
2162
|
+
const C = h.value;
|
|
2163
|
+
return l.multiple ? N(C) ? C : [] : N(C) ? void 0 : C;
|
|
2138
2164
|
},
|
|
2139
2165
|
set: (C) => {
|
|
2140
|
-
if (
|
|
2166
|
+
if (l.multiple && !N(C)) {
|
|
2141
2167
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
2142
2168
|
return;
|
|
2143
|
-
} else if (!
|
|
2169
|
+
} else if (!l.multiple && N(C)) {
|
|
2144
2170
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
2145
2171
|
return;
|
|
2146
2172
|
}
|
|
2147
2173
|
let H;
|
|
2148
|
-
if (
|
|
2174
|
+
if (l.multiple)
|
|
2149
2175
|
H = C || [];
|
|
2150
2176
|
else {
|
|
2151
|
-
const W =
|
|
2152
|
-
H =
|
|
2177
|
+
const W = h.value;
|
|
2178
|
+
H = l.allowUnset && W && C && _(W) === _(C) ? void 0 : C;
|
|
2153
2179
|
}
|
|
2154
|
-
|
|
2180
|
+
l.fullyControlValue ? a("update:modelValue", H) : h.value = H, S.value += 1;
|
|
2155
2181
|
}
|
|
2156
|
-
}), he = c(() =>
|
|
2157
|
-
|
|
2158
|
-
},
|
|
2159
|
-
const C =
|
|
2160
|
-
return !me.value || !(C != null && C.length) ?
|
|
2182
|
+
}), he = c(() => l.multiple && N(X.value) ? X.value.length !== 0 : !!X.value), Pe = () => {
|
|
2183
|
+
l.multiple ? X.value = [] : X.value = void 0;
|
|
2184
|
+
}, je = c(() => {
|
|
2185
|
+
const C = b.value;
|
|
2186
|
+
return !me.value || !(C != null && C.length) ? y.value : l.filterPredicate ? y.value.filter(
|
|
2161
2187
|
(H) => {
|
|
2162
2188
|
var W;
|
|
2163
|
-
return ((W =
|
|
2189
|
+
return ((W = l.filterPredicate) == null ? void 0 : W.call(l, H, C)) || !1;
|
|
2164
2190
|
}
|
|
2165
|
-
) :
|
|
2166
|
-
}),
|
|
2191
|
+
) : y.value;
|
|
2192
|
+
}), ke = c(() => {
|
|
2167
2193
|
const C = [
|
|
2168
2194
|
"rounded-md bg-foundation-2 py-1 label label--light outline outline-2 outline-primary-muted focus:outline-none shadow mt-1 "
|
|
2169
2195
|
];
|
|
2170
|
-
return
|
|
2196
|
+
return l.mountMenuOnBody ? C.push("fixed z-50") : C.push("absolute top-[100%] w-full z-10"), C.join(" ");
|
|
2171
2197
|
}), P = c(() => {
|
|
2172
2198
|
const C = {};
|
|
2173
|
-
if (
|
|
2199
|
+
if (l.mountMenuOnBody) {
|
|
2174
2200
|
const H = $.top.value, W = $.left.value, J = $.width.value, te = $.height.value;
|
|
2175
2201
|
C.top = `${H + te}px`, C.left = `${W}px`, C.width = `${J}px`;
|
|
2176
2202
|
}
|
|
2177
2203
|
return C;
|
|
2178
|
-
}), F = (C) => JSON.stringify(C),
|
|
2179
|
-
if (!(!Y.value || !
|
|
2204
|
+
}), F = (C) => JSON.stringify(C), _ = (C) => s(C) ? C[l.by || "id"] : C, Z = async () => {
|
|
2205
|
+
if (!(!Y.value || !l.getSearchResults)) {
|
|
2180
2206
|
u.value = !0;
|
|
2181
2207
|
try {
|
|
2182
|
-
|
|
2208
|
+
y.value = await l.getSearchResults(b.value);
|
|
2183
2209
|
} finally {
|
|
2184
2210
|
u.value = !1;
|
|
2185
2211
|
}
|
|
2186
2212
|
}
|
|
2187
|
-
}, ee = He(Z, 1e3),
|
|
2188
|
-
const { active: H, disabled: W } = C || {}, { hideCheckmarks: J } =
|
|
2213
|
+
}, ee = He(Z, 1e3), we = (C) => {
|
|
2214
|
+
const { active: H, disabled: W } = C || {}, { hideCheckmarks: J } = l, te = [
|
|
2189
2215
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
2190
2216
|
J ? "" : "pr-9"
|
|
2191
2217
|
];
|
|
2192
2218
|
return W ? te.push("opacity-50 cursor-not-allowed") : te.push(H ? "text-primary" : "text-foreground"), te.join(" ");
|
|
2193
2219
|
};
|
|
2194
2220
|
return fe(
|
|
2195
|
-
() =>
|
|
2221
|
+
() => l.items,
|
|
2196
2222
|
(C) => {
|
|
2197
|
-
|
|
2223
|
+
y.value = C.slice();
|
|
2198
2224
|
},
|
|
2199
2225
|
{ immediate: !0 }
|
|
2200
|
-
), fe(
|
|
2226
|
+
), fe(b, () => {
|
|
2201
2227
|
Y.value && ee();
|
|
2202
2228
|
}), ae(() => {
|
|
2203
|
-
Y.value && !
|
|
2204
|
-
}), t({ triggerSearch: Z }), (C, H) => (
|
|
2205
|
-
(
|
|
2229
|
+
Y.value && !l.items.length && Z();
|
|
2230
|
+
}), t({ triggerSearch: Z }), (C, H) => (o(), m("div", null, [
|
|
2231
|
+
(o(), L(n(ws), {
|
|
2206
2232
|
key: S.value,
|
|
2207
2233
|
modelValue: X.value,
|
|
2208
2234
|
"onUpdate:modelValue": H[4] || (H[4] = (W) => X.value = W),
|
|
@@ -2213,45 +2239,45 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2213
2239
|
as: "div"
|
|
2214
2240
|
}, {
|
|
2215
2241
|
default: M(() => [
|
|
2216
|
-
|
|
2217
|
-
class:
|
|
2242
|
+
V(n(Cs), {
|
|
2243
|
+
class: g(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
2218
2244
|
}, {
|
|
2219
2245
|
default: M(() => [
|
|
2220
|
-
R(
|
|
2246
|
+
R(z(e.label), 1)
|
|
2221
2247
|
]),
|
|
2222
2248
|
_: 1
|
|
2223
2249
|
}, 8, ["class"]),
|
|
2224
2250
|
f("div", {
|
|
2225
|
-
class:
|
|
2251
|
+
class: g(Le.value)
|
|
2226
2252
|
}, [
|
|
2227
|
-
|
|
2253
|
+
V(n($s), {
|
|
2228
2254
|
ref_key: "listboxButton",
|
|
2229
|
-
ref:
|
|
2230
|
-
class:
|
|
2255
|
+
ref: x,
|
|
2256
|
+
class: g(Ae.value)
|
|
2231
2257
|
}, {
|
|
2232
2258
|
default: M(({ open: W }) => [
|
|
2233
|
-
f("div",
|
|
2234
|
-
f("div",
|
|
2235
|
-
!X.value ||
|
|
2236
|
-
R(
|
|
2237
|
-
]) :
|
|
2259
|
+
f("div", Ll, [
|
|
2260
|
+
f("div", Ml, [
|
|
2261
|
+
!X.value || n(N)(X.value) && !X.value.length ? E(C.$slots, "nothing-selected", { key: 0 }, () => [
|
|
2262
|
+
R(z(e.placeholder ? e.placeholder : e.label), 1)
|
|
2263
|
+
]) : E(C.$slots, "something-selected", {
|
|
2238
2264
|
key: 1,
|
|
2239
2265
|
value: X.value
|
|
2240
2266
|
}, () => [
|
|
2241
|
-
R(
|
|
2267
|
+
R(z(F(X.value)), 1)
|
|
2242
2268
|
])
|
|
2243
2269
|
]),
|
|
2244
|
-
f("div",
|
|
2245
|
-
T.value ? (
|
|
2270
|
+
f("div", Al, [
|
|
2271
|
+
T.value ? (o(), L(n(Et), {
|
|
2246
2272
|
key: 0,
|
|
2247
2273
|
class: "h-4 w-4 text-danger",
|
|
2248
2274
|
"aria-hidden": "true"
|
|
2249
|
-
})) : e.showRequired ? (
|
|
2250
|
-
W ? (
|
|
2275
|
+
})) : e.showRequired ? (o(), m("div", Pl, " * ")) : I("", !0),
|
|
2276
|
+
W ? (o(), L(n(ft), {
|
|
2251
2277
|
key: 2,
|
|
2252
2278
|
class: "h-4 w-4 text-foreground",
|
|
2253
2279
|
"aria-hidden": "true"
|
|
2254
|
-
})) : (
|
|
2280
|
+
})) : (o(), L(n(Ut), {
|
|
2255
2281
|
key: 3,
|
|
2256
2282
|
class: "h-4 w-4 text-foreground",
|
|
2257
2283
|
"aria-hidden": "true"
|
|
@@ -2261,72 +2287,72 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2261
2287
|
]),
|
|
2262
2288
|
_: 3
|
|
2263
2289
|
}, 8, ["class"]),
|
|
2264
|
-
|
|
2290
|
+
U.value ? be((o(), m("button", {
|
|
2265
2291
|
key: 0,
|
|
2266
|
-
class:
|
|
2292
|
+
class: g(Me.value),
|
|
2267
2293
|
disabled: e.disabled,
|
|
2268
2294
|
onClick: H[0] || (H[0] = (W) => Pe())
|
|
2269
2295
|
}, [
|
|
2270
|
-
|
|
2271
|
-
], 10,
|
|
2272
|
-
[
|
|
2296
|
+
V(n(Ke), { class: "w-3 h-3" })
|
|
2297
|
+
], 10, jl)), [
|
|
2298
|
+
[n(gt), "Clear"]
|
|
2273
2299
|
]) : I("", !0),
|
|
2274
|
-
|
|
2300
|
+
n(i) ? (o(), L(Ee, {
|
|
2275
2301
|
key: 1,
|
|
2276
2302
|
"leave-active-class": "transition ease-in duration-100",
|
|
2277
2303
|
"leave-from-class": "opacity-100",
|
|
2278
2304
|
"leave-to-class": "opacity-0"
|
|
2279
2305
|
}, {
|
|
2280
2306
|
default: M(() => [
|
|
2281
|
-
(
|
|
2307
|
+
(o(), L(At, {
|
|
2282
2308
|
to: "body",
|
|
2283
2309
|
disabled: !e.mountMenuOnBody
|
|
2284
2310
|
}, [
|
|
2285
|
-
|
|
2311
|
+
V(n(Is), {
|
|
2286
2312
|
ref_key: "menuEl",
|
|
2287
|
-
ref:
|
|
2288
|
-
class:
|
|
2313
|
+
ref: v,
|
|
2314
|
+
class: g(ke.value),
|
|
2289
2315
|
style: ne(P.value),
|
|
2290
2316
|
onFocus: H[3] || (H[3] = (W) => {
|
|
2291
2317
|
var J;
|
|
2292
|
-
return (J =
|
|
2318
|
+
return (J = d.value) == null ? void 0 : J.focus();
|
|
2293
2319
|
})
|
|
2294
2320
|
}, {
|
|
2295
2321
|
default: M(() => [
|
|
2296
|
-
me.value ? (
|
|
2297
|
-
|
|
2298
|
-
f("div",
|
|
2299
|
-
f("div",
|
|
2300
|
-
|
|
2322
|
+
me.value ? (o(), m("label", _l, [
|
|
2323
|
+
Tl,
|
|
2324
|
+
f("div", Fl, [
|
|
2325
|
+
f("div", Rl, [
|
|
2326
|
+
V(n(qt), { class: "h-5 w-5 text-foreground" })
|
|
2301
2327
|
]),
|
|
2302
2328
|
be(f("input", {
|
|
2303
2329
|
ref_key: "searchInput",
|
|
2304
|
-
ref:
|
|
2305
|
-
"onUpdate:modelValue": H[1] || (H[1] = (W) =>
|
|
2330
|
+
ref: d,
|
|
2331
|
+
"onUpdate:modelValue": H[1] || (H[1] = (W) => b.value = W),
|
|
2306
2332
|
type: "text",
|
|
2307
2333
|
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",
|
|
2308
2334
|
placeholder: e.searchPlaceholder,
|
|
2309
2335
|
onKeydown: H[2] || (H[2] = pe(() => {
|
|
2310
2336
|
}, ["stop"]))
|
|
2311
|
-
}, null, 40,
|
|
2312
|
-
[qe,
|
|
2337
|
+
}, null, 40, Dl), [
|
|
2338
|
+
[qe, b.value]
|
|
2313
2339
|
])
|
|
2314
2340
|
])
|
|
2315
2341
|
])) : I("", !0),
|
|
2316
2342
|
f("div", {
|
|
2317
|
-
class:
|
|
2343
|
+
class: g(["overflow-auto simple-scrollbar", [me.value ? "max-h-52" : "max-h-40"]])
|
|
2318
2344
|
}, [
|
|
2319
|
-
Y.value && u.value ? (
|
|
2320
|
-
|
|
2321
|
-
])) : Y.value && !
|
|
2322
|
-
|
|
2323
|
-
|
|
2345
|
+
Y.value && u.value ? (o(), m("div", El, [
|
|
2346
|
+
V(Qe, { loading: !0 })
|
|
2347
|
+
])) : Y.value && !y.value.length ? (o(), m("div", Ul, [
|
|
2348
|
+
E(C.$slots, "nothing-found", {}, () => [
|
|
2349
|
+
ql
|
|
2324
2350
|
])
|
|
2325
2351
|
])) : I("", !0),
|
|
2326
|
-
!Y.value || !u.value ? (
|
|
2352
|
+
!Y.value || !u.value ? (o(!0), m(K, { key: 2 }, G(je.value, (W) => {
|
|
2327
2353
|
var J;
|
|
2328
|
-
return
|
|
2329
|
-
key:
|
|
2354
|
+
return o(), L(n(Ss), {
|
|
2355
|
+
key: _(W),
|
|
2330
2356
|
value: W,
|
|
2331
2357
|
disabled: ((J = e.disabledItemPredicate) == null ? void 0 : J.call(e, W)) || !1
|
|
2332
2358
|
}, {
|
|
@@ -2337,31 +2363,31 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2337
2363
|
var et, tt;
|
|
2338
2364
|
return [
|
|
2339
2365
|
f("li", {
|
|
2340
|
-
class:
|
|
2341
|
-
|
|
2366
|
+
class: g(
|
|
2367
|
+
we({
|
|
2342
2368
|
active: te,
|
|
2343
2369
|
disabled: ((et = e.disabledItemPredicate) == null ? void 0 : et.call(e, W)) || !1
|
|
2344
2370
|
})
|
|
2345
2371
|
)
|
|
2346
2372
|
}, [
|
|
2347
|
-
f("span",
|
|
2348
|
-
|
|
2373
|
+
f("span", Wl, [
|
|
2374
|
+
E(C.$slots, "option", {
|
|
2349
2375
|
item: W,
|
|
2350
2376
|
active: te,
|
|
2351
2377
|
selected: Ye,
|
|
2352
2378
|
disabled: ((tt = e.disabledItemPredicate) == null ? void 0 : tt.call(e, W)) || !1
|
|
2353
2379
|
}, () => [
|
|
2354
|
-
R(
|
|
2380
|
+
R(z(F(W)), 1)
|
|
2355
2381
|
])
|
|
2356
2382
|
]),
|
|
2357
|
-
!e.hideCheckmarks && Ye ? (
|
|
2383
|
+
!e.hideCheckmarks && Ye ? (o(), m("span", {
|
|
2358
2384
|
key: 0,
|
|
2359
|
-
class:
|
|
2385
|
+
class: g([
|
|
2360
2386
|
te ? "text-primary" : "text-foreground",
|
|
2361
2387
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
2362
2388
|
])
|
|
2363
2389
|
}, [
|
|
2364
|
-
|
|
2390
|
+
V(n(pt), {
|
|
2365
2391
|
class: "h-5 w-5",
|
|
2366
2392
|
"aria-hidden": "true"
|
|
2367
2393
|
})
|
|
@@ -2384,37 +2410,37 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2384
2410
|
]),
|
|
2385
2411
|
_: 3
|
|
2386
2412
|
}, 8, ["modelValue", "name", "multiple", "by", "disabled"])),
|
|
2387
|
-
|
|
2413
|
+
D.value ? (o(), m("p", {
|
|
2388
2414
|
key: 0,
|
|
2389
|
-
id:
|
|
2390
|
-
class:
|
|
2391
|
-
},
|
|
2415
|
+
id: D.value,
|
|
2416
|
+
class: g(["mt-2 text-xs sm:text-sm", q.value])
|
|
2417
|
+
}, z(A.value), 11, Hl)) : I("", !0)
|
|
2392
2418
|
]));
|
|
2393
2419
|
}
|
|
2394
|
-
}),
|
|
2420
|
+
}), Kl = /* @__PURE__ */ j({
|
|
2395
2421
|
__name: "SourceAppBadge",
|
|
2396
2422
|
props: {
|
|
2397
2423
|
sourceApp: null
|
|
2398
2424
|
},
|
|
2399
2425
|
setup(e) {
|
|
2400
|
-
return (t, r) => (
|
|
2426
|
+
return (t, r) => (o(), L(Xe, {
|
|
2401
2427
|
"color-classes": "text-foreground-on-primary",
|
|
2402
2428
|
rounded: "",
|
|
2403
2429
|
style: ne({ backgroundColor: e.sourceApp.bgColor })
|
|
2404
2430
|
}, {
|
|
2405
2431
|
default: M(() => [
|
|
2406
|
-
R(
|
|
2432
|
+
R(z(e.sourceApp.short), 1)
|
|
2407
2433
|
]),
|
|
2408
2434
|
_: 1
|
|
2409
2435
|
}, 8, ["style"]));
|
|
2410
2436
|
}
|
|
2411
|
-
}),
|
|
2437
|
+
}), Gl = {
|
|
2412
2438
|
key: 0,
|
|
2413
2439
|
class: "text-foreground-2 normal"
|
|
2414
|
-
},
|
|
2440
|
+
}, Xl = {
|
|
2415
2441
|
key: 1,
|
|
2416
2442
|
class: "flex items-center"
|
|
2417
|
-
},
|
|
2443
|
+
}, Zl = { class: "truncate" }, Nl = { class: "flex items-center" }, Ql = { class: "truncate" }, Mo = /* @__PURE__ */ j({
|
|
2418
2444
|
__name: "SourceApps",
|
|
2419
2445
|
props: {
|
|
2420
2446
|
/**
|
|
@@ -2480,72 +2506,72 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2480
2506
|
},
|
|
2481
2507
|
emits: ["update:modelValue"],
|
|
2482
2508
|
setup(e, { emit: t }) {
|
|
2483
|
-
const r = t, s = e,
|
|
2509
|
+
const r = t, s = e, a = O(null), l = O(null), { selectedValue: h, hiddenSelectedItemCount: p, isMultiItemArrayValue: i, firstItem: d } = wt({
|
|
2484
2510
|
props: le(s),
|
|
2485
2511
|
emit: r,
|
|
2486
|
-
dynamicVisibility: { elementToWatchForChanges:
|
|
2487
|
-
}),
|
|
2488
|
-
return (
|
|
2489
|
-
modelValue:
|
|
2490
|
-
"onUpdate:modelValue":
|
|
2512
|
+
dynamicVisibility: { elementToWatchForChanges: a, itemContainer: l }
|
|
2513
|
+
}), v = (x, b) => x.name.toLocaleLowerCase().includes(b.toLocaleLowerCase());
|
|
2514
|
+
return (x, b) => (o(), L(Ct, {
|
|
2515
|
+
modelValue: n(h),
|
|
2516
|
+
"onUpdate:modelValue": b[0] || (b[0] = (y) => Be(h) ? h.value = y : null),
|
|
2491
2517
|
multiple: e.multiple,
|
|
2492
|
-
items: e.items ??
|
|
2518
|
+
items: e.items ?? n(us),
|
|
2493
2519
|
search: e.search,
|
|
2494
2520
|
"search-placeholder": e.searchPlaceholder,
|
|
2495
2521
|
label: e.label,
|
|
2496
2522
|
"show-label": e.showLabel,
|
|
2497
2523
|
name: e.name || "sourceApps",
|
|
2498
|
-
"filter-predicate":
|
|
2524
|
+
"filter-predicate": v,
|
|
2499
2525
|
clearable: e.clearable,
|
|
2500
2526
|
help: e.help,
|
|
2501
2527
|
by: "name"
|
|
2502
2528
|
}, {
|
|
2503
2529
|
"nothing-selected": M(() => [
|
|
2504
|
-
e.selectorPlaceholder ? (
|
|
2505
|
-
R(
|
|
2506
|
-
], 64)) : (
|
|
2507
|
-
R(
|
|
2530
|
+
e.selectorPlaceholder ? (o(), m(K, { key: 0 }, [
|
|
2531
|
+
R(z(e.selectorPlaceholder), 1)
|
|
2532
|
+
], 64)) : (o(), m(K, { key: 1 }, [
|
|
2533
|
+
R(z(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2508
2534
|
], 64))
|
|
2509
2535
|
]),
|
|
2510
|
-
"something-selected": M(({ value:
|
|
2511
|
-
|
|
2536
|
+
"something-selected": M(({ value: y }) => [
|
|
2537
|
+
n(i)(y) ? (o(), m("div", {
|
|
2512
2538
|
key: 0,
|
|
2513
2539
|
ref_key: "elementToWatchForChanges",
|
|
2514
|
-
ref:
|
|
2540
|
+
ref: a,
|
|
2515
2541
|
class: "flex items-center space-x-0.5 h-5"
|
|
2516
2542
|
}, [
|
|
2517
2543
|
f("div", {
|
|
2518
2544
|
ref_key: "itemContainer",
|
|
2519
|
-
ref:
|
|
2545
|
+
ref: l,
|
|
2520
2546
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2521
2547
|
}, [
|
|
2522
|
-
(
|
|
2548
|
+
(o(!0), m(K, null, G(y, (u) => (o(), L(Kl, {
|
|
2523
2549
|
key: u.name,
|
|
2524
2550
|
"source-app": u
|
|
2525
2551
|
}, null, 8, ["source-app"]))), 128))
|
|
2526
2552
|
], 512),
|
|
2527
|
-
|
|
2528
|
-
], 512)) : (
|
|
2553
|
+
n(p) > 0 ? (o(), m("div", Gl, " +" + z(n(p)), 1)) : I("", !0)
|
|
2554
|
+
], 512)) : (o(), m("div", Xl, [
|
|
2529
2555
|
f("div", {
|
|
2530
2556
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2531
|
-
style: ne({ backgroundColor:
|
|
2557
|
+
style: ne({ backgroundColor: n(d)(y).bgColor })
|
|
2532
2558
|
}, null, 4),
|
|
2533
|
-
f("span",
|
|
2559
|
+
f("span", Zl, z(n(d)(y).name), 1)
|
|
2534
2560
|
]))
|
|
2535
2561
|
]),
|
|
2536
|
-
option: M(({ item:
|
|
2537
|
-
f("div",
|
|
2562
|
+
option: M(({ item: y }) => [
|
|
2563
|
+
f("div", Nl, [
|
|
2538
2564
|
f("div", {
|
|
2539
2565
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2540
|
-
style: ne({ backgroundColor:
|
|
2566
|
+
style: ne({ backgroundColor: y.bgColor })
|
|
2541
2567
|
}, null, 4),
|
|
2542
|
-
f("span",
|
|
2568
|
+
f("span", Ql, z(y.name), 1)
|
|
2543
2569
|
])
|
|
2544
2570
|
]),
|
|
2545
2571
|
_: 1
|
|
2546
2572
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
|
|
2547
2573
|
}
|
|
2548
|
-
}),
|
|
2574
|
+
}), Jl = { class: "flex flex-wrap gap-1.5 text-xs" }, Ao = /* @__PURE__ */ j({
|
|
2549
2575
|
__name: "Badges",
|
|
2550
2576
|
props: {
|
|
2551
2577
|
items: null,
|
|
@@ -2559,15 +2585,15 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2559
2585
|
},
|
|
2560
2586
|
emits: ["update:modelValue"],
|
|
2561
2587
|
setup(e, { emit: t }) {
|
|
2562
|
-
const r = t, s = e, { selectedValue:
|
|
2588
|
+
const r = t, s = e, { selectedValue: a, isArrayValue: l } = wt({
|
|
2563
2589
|
props: le(s),
|
|
2564
2590
|
emit: r
|
|
2565
|
-
}),
|
|
2566
|
-
|
|
2591
|
+
}), h = (p) => {
|
|
2592
|
+
l(a.value) ? a.value = a.value.filter((i) => i.id !== p.id) : a.value = void 0;
|
|
2567
2593
|
};
|
|
2568
|
-
return (
|
|
2569
|
-
modelValue:
|
|
2570
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2594
|
+
return (p, i) => (o(), L(Ct, {
|
|
2595
|
+
modelValue: n(a),
|
|
2596
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => Be(a) ? a.value = d : null),
|
|
2571
2597
|
multiple: e.multiple,
|
|
2572
2598
|
items: e.items,
|
|
2573
2599
|
label: e.label,
|
|
@@ -2576,32 +2602,32 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2576
2602
|
rules: e.rules,
|
|
2577
2603
|
by: e.by
|
|
2578
2604
|
}, {
|
|
2579
|
-
"something-selected": M(({ value:
|
|
2580
|
-
f("ul",
|
|
2581
|
-
(
|
|
2582
|
-
key:
|
|
2605
|
+
"something-selected": M(({ value: d }) => [
|
|
2606
|
+
f("ul", Jl, [
|
|
2607
|
+
(o(!0), m(K, null, G(n(l)(d) ? d : [d], (v) => (o(), m("li", {
|
|
2608
|
+
key: v[e.by]
|
|
2583
2609
|
}, [
|
|
2584
|
-
|
|
2610
|
+
V(Xe, {
|
|
2585
2611
|
size: "lg",
|
|
2586
2612
|
"clickable-icon": !0,
|
|
2587
|
-
"icon-left":
|
|
2588
|
-
onClickIcon: pe((
|
|
2613
|
+
"icon-left": n(Ke),
|
|
2614
|
+
onClickIcon: pe((x) => h(v), ["stop"])
|
|
2589
2615
|
}, {
|
|
2590
2616
|
default: M(() => [
|
|
2591
|
-
R(
|
|
2617
|
+
R(z(v.text), 1)
|
|
2592
2618
|
]),
|
|
2593
2619
|
_: 2
|
|
2594
2620
|
}, 1032, ["icon-left", "onClickIcon"])
|
|
2595
2621
|
]))), 128))
|
|
2596
2622
|
])
|
|
2597
2623
|
]),
|
|
2598
|
-
option: M(({ item:
|
|
2599
|
-
R(
|
|
2624
|
+
option: M(({ item: d }) => [
|
|
2625
|
+
R(z(d.text), 1)
|
|
2600
2626
|
]),
|
|
2601
2627
|
_: 1
|
|
2602
2628
|
}, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
|
|
2603
2629
|
}
|
|
2604
|
-
}),
|
|
2630
|
+
}), Yl = { class: "flex items-center" }, ea = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Po = /* @__PURE__ */ j({
|
|
2605
2631
|
__name: "Switch",
|
|
2606
2632
|
props: {
|
|
2607
2633
|
modelValue: { type: Boolean }
|
|
@@ -2609,26 +2635,26 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2609
2635
|
emits: ["update:modelValue"],
|
|
2610
2636
|
setup(e) {
|
|
2611
2637
|
const t = it(e, "modelValue");
|
|
2612
|
-
return (r, s) => (
|
|
2613
|
-
|
|
2638
|
+
return (r, s) => (o(), m("div", Yl, [
|
|
2639
|
+
V(n(Bs), {
|
|
2614
2640
|
modelValue: t.value,
|
|
2615
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2616
|
-
class:
|
|
2641
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
|
|
2642
|
+
class: g(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": t.value, "bg-primary-muted": !t.value }])
|
|
2617
2643
|
}, {
|
|
2618
2644
|
default: M(() => [
|
|
2619
|
-
f("div",
|
|
2620
|
-
|
|
2621
|
-
|
|
2645
|
+
f("div", ea, [
|
|
2646
|
+
V(n(pt), { class: "h-5 w-5 drop-shadow-md" }),
|
|
2647
|
+
V(n(Ke), { class: "h-5 w-5 drop-shadow-md" })
|
|
2622
2648
|
]),
|
|
2623
2649
|
f("span", {
|
|
2624
|
-
class:
|
|
2650
|
+
class: g(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": t.value, "translate-x-0": !t.value }])
|
|
2625
2651
|
}, null, 2)
|
|
2626
2652
|
]),
|
|
2627
2653
|
_: 1
|
|
2628
2654
|
}, 8, ["modelValue", "class"])
|
|
2629
2655
|
]));
|
|
2630
2656
|
}
|
|
2631
|
-
}),
|
|
2657
|
+
}), ta = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" }, sa = { class: "absolute inset-0 right-2 flex justify-end items-center" }, jo = /* @__PURE__ */ j({
|
|
2632
2658
|
__name: "ClipboardInput",
|
|
2633
2659
|
props: {
|
|
2634
2660
|
value: null,
|
|
@@ -2637,23 +2663,23 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2637
2663
|
},
|
|
2638
2664
|
emits: ["copy"],
|
|
2639
2665
|
setup(e, { emit: t }) {
|
|
2640
|
-
const r = e, s = t, { copy:
|
|
2641
|
-
r.value && (await
|
|
2642
|
-
|
|
2666
|
+
const r = e, s = t, { copy: a } = gs({ legacy: !0 }), l = O(!1), h = async () => {
|
|
2667
|
+
r.value && (await a(r.value), l.value = !0, s("copy", r.value), setTimeout(() => {
|
|
2668
|
+
l.value = !1;
|
|
2643
2669
|
}, 2e3));
|
|
2644
|
-
},
|
|
2645
|
-
const
|
|
2646
|
-
if (
|
|
2647
|
-
const
|
|
2648
|
-
|
|
2670
|
+
}, p = (i) => {
|
|
2671
|
+
const d = i.target, v = window.getSelection();
|
|
2672
|
+
if (v) {
|
|
2673
|
+
const x = document.createRange();
|
|
2674
|
+
x.selectNodeContents(d), v.removeAllRanges(), v.addRange(x);
|
|
2649
2675
|
}
|
|
2650
2676
|
};
|
|
2651
|
-
return (i,
|
|
2652
|
-
e.isMultiline ? (
|
|
2677
|
+
return (i, d) => (o(), m("div", ta, [
|
|
2678
|
+
e.isMultiline ? (o(), m("div", {
|
|
2653
2679
|
key: 0,
|
|
2654
2680
|
class: "relative z-10 text-xs sm:text-sm text-foreground font-mono break-all p-2 pl-3 max-h-[4.8rem] simple-scrollbar overflow-y-auto",
|
|
2655
|
-
onKeypress:
|
|
2656
|
-
},
|
|
2681
|
+
onKeypress: d[0] || (d[0] = (v) => n(bt)(p))
|
|
2682
|
+
}, z(e.value), 33)) : (o(), L(n(bl), {
|
|
2657
2683
|
key: 1,
|
|
2658
2684
|
color: "transparent",
|
|
2659
2685
|
name: "contentInput",
|
|
@@ -2661,45 +2687,45 @@ const Qe = /* @__PURE__ */ Oe(Pl, [["__scopeId", "data-v-89e77cae"]]), _l = { cl
|
|
|
2661
2687
|
"model-value": e.value,
|
|
2662
2688
|
class: "relative z-10 text-sm text-foreground font-mono"
|
|
2663
2689
|
}, null, 8, ["model-value"])),
|
|
2664
|
-
f("div",
|
|
2665
|
-
|
|
2690
|
+
f("div", sa, [
|
|
2691
|
+
V(n(oe), {
|
|
2666
2692
|
color: "invert",
|
|
2667
2693
|
size: "sm",
|
|
2668
|
-
"icon-left":
|
|
2694
|
+
"icon-left": l.value ? n(Qt) : n(Jt),
|
|
2669
2695
|
"hide-text": "",
|
|
2670
|
-
onClick:
|
|
2696
|
+
onClick: h
|
|
2671
2697
|
}, null, 8, ["icon-left"])
|
|
2672
2698
|
])
|
|
2673
2699
|
]));
|
|
2674
2700
|
}
|
|
2675
2701
|
});
|
|
2676
|
-
var
|
|
2677
|
-
const Fe = cs(),
|
|
2702
|
+
var Ie = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Ie || {});
|
|
2703
|
+
const Fe = cs(), na = {
|
|
2678
2704
|
"cmd-or-ctrl": Fe === Te.Mac ? "Cmd" : "Ctrl",
|
|
2679
2705
|
"alt-or-opt": Fe === Te.Mac ? "Opt" : "Alt",
|
|
2680
2706
|
shift: "Shift"
|
|
2681
2707
|
};
|
|
2682
|
-
function
|
|
2683
|
-
const t = (r) => Object.values(
|
|
2684
|
-
return e.map((r) => t(r) ?
|
|
2708
|
+
function _o(e) {
|
|
2709
|
+
const t = (r) => Object.values(Ie).includes(r);
|
|
2710
|
+
return e.map((r) => t(r) ? na[r] : r).join("+");
|
|
2685
2711
|
}
|
|
2686
|
-
function
|
|
2712
|
+
function To(e, ...t) {
|
|
2687
2713
|
bs(
|
|
2688
2714
|
t[0],
|
|
2689
2715
|
(r) => {
|
|
2690
|
-
const s = r.getModifierState("Alt"),
|
|
2691
|
-
for (const
|
|
2692
|
-
switch (
|
|
2693
|
-
case
|
|
2694
|
-
if (!
|
|
2716
|
+
const s = r.getModifierState("Alt"), a = Fe === Te.Mac ? r.getModifierState("Meta") : r.getModifierState("Control"), l = r.getModifierState("Shift");
|
|
2717
|
+
for (const h of e)
|
|
2718
|
+
switch (h) {
|
|
2719
|
+
case Ie.CtrlOrCmd:
|
|
2720
|
+
if (!a)
|
|
2695
2721
|
return;
|
|
2696
2722
|
break;
|
|
2697
|
-
case
|
|
2723
|
+
case Ie.AltOrOpt:
|
|
2698
2724
|
if (!s)
|
|
2699
2725
|
return;
|
|
2700
2726
|
break;
|
|
2701
|
-
case
|
|
2702
|
-
if (!
|
|
2727
|
+
case Ie.Shift:
|
|
2728
|
+
if (!l)
|
|
2703
2729
|
return;
|
|
2704
2730
|
break;
|
|
2705
2731
|
}
|
|
@@ -2708,17 +2734,17 @@ function Eo(e, ...t) {
|
|
|
2708
2734
|
t[2]
|
|
2709
2735
|
);
|
|
2710
2736
|
}
|
|
2711
|
-
function
|
|
2737
|
+
function Fo(e) {
|
|
2712
2738
|
const t = (e == null ? void 0 : e.model) || O(), r = c({
|
|
2713
2739
|
get: () => !!t.value,
|
|
2714
2740
|
set: (s) => t.value = s ? !0 : void 0
|
|
2715
2741
|
});
|
|
2716
2742
|
return { model: t, isChecked: r };
|
|
2717
2743
|
}
|
|
2718
|
-
const
|
|
2744
|
+
const la = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), aa = { class: "fixed inset-0 z-10 h-[100dvh] w-screen" }, oa = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, ra = {
|
|
2719
2745
|
key: 0,
|
|
2720
2746
|
class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[4rem] py-2 px-4 sm:px-8 truncate text-lg sm:text-2xl font-bold"
|
|
2721
|
-
},
|
|
2747
|
+
}, ia = { class: "w-full truncate pr-12" }, Ro = /* @__PURE__ */ j({
|
|
2722
2748
|
__name: "Dialog",
|
|
2723
2749
|
props: {
|
|
2724
2750
|
open: { type: Boolean },
|
|
@@ -2731,10 +2757,10 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2731
2757
|
},
|
|
2732
2758
|
emits: ["update:open", "fully-closed"],
|
|
2733
2759
|
setup(e, { emit: t }) {
|
|
2734
|
-
const r = t, s = e,
|
|
2760
|
+
const r = t, s = e, a = We(), l = O(!1), h = O(!0), p = c(() => !!s.onSubmit), i = c(() => s.buttons || a.buttons), d = c(() => s.title || a.header), v = c({
|
|
2735
2761
|
get: () => s.open,
|
|
2736
2762
|
set: (S) => r("update:open", S)
|
|
2737
|
-
}),
|
|
2763
|
+
}), x = c(() => {
|
|
2738
2764
|
switch (s.maxWidth) {
|
|
2739
2765
|
case "sm":
|
|
2740
2766
|
return 0;
|
|
@@ -2747,27 +2773,27 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2747
2773
|
default:
|
|
2748
2774
|
return 1e4;
|
|
2749
2775
|
}
|
|
2750
|
-
}),
|
|
2776
|
+
}), b = c(() => {
|
|
2751
2777
|
const S = ["w-full", "sm:w-full sm:max-w-2xl"];
|
|
2752
|
-
return
|
|
2753
|
-
}),
|
|
2754
|
-
s.preventCloseOnClickOutside || (
|
|
2778
|
+
return x.value >= 1 && S.push("md:max-w-2xl"), x.value >= 2 && S.push("lg:max-w-4xl"), x.value >= 3 && S.push("xl:max-w-6xl"), x.value >= 4 && S.push("2xl:max-w-7xl"), S.join(" ");
|
|
2779
|
+
}), y = () => {
|
|
2780
|
+
s.preventCloseOnClickOutside || (v.value = !1);
|
|
2755
2781
|
}, u = ut((S) => {
|
|
2756
2782
|
const k = S.target, { scrollTop: $, offsetHeight: B, scrollHeight: T } = k;
|
|
2757
|
-
|
|
2783
|
+
l.value = $ > 0, h.value = $ + B >= T;
|
|
2758
2784
|
}, 60);
|
|
2759
|
-
return (S, k) => (
|
|
2785
|
+
return (S, k) => (o(), L(n(vt), {
|
|
2760
2786
|
as: "template",
|
|
2761
|
-
show:
|
|
2787
|
+
show: v.value
|
|
2762
2788
|
}, {
|
|
2763
2789
|
default: M(() => [
|
|
2764
|
-
|
|
2790
|
+
V(n(zs), {
|
|
2765
2791
|
as: "div",
|
|
2766
2792
|
class: "relative z-40",
|
|
2767
|
-
onClose:
|
|
2793
|
+
onClose: y
|
|
2768
2794
|
}, {
|
|
2769
2795
|
default: M(() => [
|
|
2770
|
-
|
|
2796
|
+
V(n(at), {
|
|
2771
2797
|
as: "template",
|
|
2772
2798
|
enter: "ease-out duration-300",
|
|
2773
2799
|
"enter-from": "opacity-0",
|
|
@@ -2777,13 +2803,13 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2777
2803
|
"leave-to": "opacity-0"
|
|
2778
2804
|
}, {
|
|
2779
2805
|
default: M(() => [
|
|
2780
|
-
|
|
2806
|
+
la
|
|
2781
2807
|
]),
|
|
2782
2808
|
_: 1
|
|
2783
2809
|
}),
|
|
2784
|
-
f("div",
|
|
2785
|
-
f("div",
|
|
2786
|
-
|
|
2810
|
+
f("div", aa, [
|
|
2811
|
+
f("div", oa, [
|
|
2812
|
+
V(n(at), {
|
|
2787
2813
|
as: "template",
|
|
2788
2814
|
enter: "ease-out duration-300",
|
|
2789
2815
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2794,55 +2820,55 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2794
2820
|
onAfterLeave: k[2] || (k[2] = ($) => S.$emit("fully-closed"))
|
|
2795
2821
|
}, {
|
|
2796
2822
|
default: M(() => [
|
|
2797
|
-
|
|
2798
|
-
class:
|
|
2823
|
+
V(n(Vs), {
|
|
2824
|
+
class: g([
|
|
2799
2825
|
"transform rounded-lg text-foreground overflow-hidden bg-foundation text-left shadow-xl transition-all flex flex-col max-h-[90dvh]",
|
|
2800
|
-
|
|
2826
|
+
b.value
|
|
2801
2827
|
]),
|
|
2802
|
-
as:
|
|
2828
|
+
as: p.value ? "form" : "div",
|
|
2803
2829
|
onSubmit: pe(e.onSubmit, ["prevent"])
|
|
2804
2830
|
}, {
|
|
2805
2831
|
default: M(() => [
|
|
2806
2832
|
f("div", {
|
|
2807
|
-
class:
|
|
2833
|
+
class: g(l.value && "relative z-20 shadow-lg")
|
|
2808
2834
|
}, [
|
|
2809
|
-
|
|
2810
|
-
f("div",
|
|
2811
|
-
R(
|
|
2812
|
-
|
|
2835
|
+
d.value ? (o(), m("div", ra, [
|
|
2836
|
+
f("div", ia, [
|
|
2837
|
+
R(z(e.title) + " ", 1),
|
|
2838
|
+
E(S.$slots, "header")
|
|
2813
2839
|
])
|
|
2814
2840
|
])) : I("", !0)
|
|
2815
2841
|
], 2),
|
|
2816
|
-
e.hideCloser ? I("", !0) : (
|
|
2842
|
+
e.hideCloser ? I("", !0) : (o(), m("button", {
|
|
2817
2843
|
key: 0,
|
|
2818
|
-
class:
|
|
2819
|
-
onClick: k[0] || (k[0] = ($) =>
|
|
2844
|
+
class: g(["absolute z-20 bg-foundation rounded-full p-1", d.value ? "top-2 right-3 sm:top-4" : "right-4 top-3"]),
|
|
2845
|
+
onClick: k[0] || (k[0] = ($) => v.value = !1)
|
|
2820
2846
|
}, [
|
|
2821
|
-
|
|
2847
|
+
V(n(Yt), { class: "h-5 sm:h-6 w-5 sm:w-6" })
|
|
2822
2848
|
], 2)),
|
|
2823
2849
|
f("div", {
|
|
2824
|
-
class:
|
|
2850
|
+
class: g(["flex-1 simple-scrollbar overflow-y-auto", d.value ? "p-3 sm:py-6 sm:px-8" : "p-10"]),
|
|
2825
2851
|
onScroll: k[1] || (k[1] = //@ts-ignore
|
|
2826
|
-
(...$) =>
|
|
2852
|
+
(...$) => n(u) && n(u)(...$))
|
|
2827
2853
|
}, [
|
|
2828
|
-
|
|
2854
|
+
E(S.$slots, "default", {}, () => [
|
|
2829
2855
|
R("Put your content here!")
|
|
2830
2856
|
])
|
|
2831
2857
|
], 34),
|
|
2832
|
-
i.value ? (
|
|
2858
|
+
i.value ? (o(), m("div", {
|
|
2833
2859
|
key: 1,
|
|
2834
|
-
class:
|
|
2860
|
+
class: g(["relative z-50 flex px-4 py-2 sm:py-4 sm:px-6 gap-2 shrink-0 bg-foundation", !h.value && "shadow-t"])
|
|
2835
2861
|
}, [
|
|
2836
|
-
e.buttons ? (
|
|
2862
|
+
e.buttons ? (o(!0), m(K, { key: 0 }, G(e.buttons, ($, B) => (o(), L(n(oe), ie({ key: B }, $.props, {
|
|
2837
2863
|
disabled: $.disabled,
|
|
2838
2864
|
type: $.submit && "submit",
|
|
2839
2865
|
onClick: $.onClick
|
|
2840
2866
|
}), {
|
|
2841
2867
|
default: M(() => [
|
|
2842
|
-
R(
|
|
2868
|
+
R(z($.text), 1)
|
|
2843
2869
|
]),
|
|
2844
2870
|
_: 2
|
|
2845
|
-
}, 1040, ["disabled", "type", "onClick"]))), 128)) :
|
|
2871
|
+
}, 1040, ["disabled", "type", "onClick"]))), 128)) : E(S.$slots, "buttons", { key: 1 })
|
|
2846
2872
|
], 2)) : I("", !0)
|
|
2847
2873
|
]),
|
|
2848
2874
|
_: 3
|
|
@@ -2859,7 +2885,7 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2859
2885
|
_: 3
|
|
2860
2886
|
}, 8, ["show"]));
|
|
2861
2887
|
}
|
|
2862
|
-
}),
|
|
2888
|
+
}), ua = { class: "h-4 sm:h-5 h-4 sm:w-5 empty:h-0 empty:w-0" }, Do = /* @__PURE__ */ j({
|
|
2863
2889
|
__name: "DialogSection",
|
|
2864
2890
|
props: {
|
|
2865
2891
|
title: String,
|
|
@@ -2878,10 +2904,10 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2878
2904
|
}
|
|
2879
2905
|
},
|
|
2880
2906
|
setup(e) {
|
|
2881
|
-
const t = e, r = O(null), s = O(0),
|
|
2907
|
+
const t = e, r = O(null), s = O(0), a = O(!1), l = c(() => {
|
|
2882
2908
|
const i = [];
|
|
2883
|
-
return !t.button && !t.alwaysOpen && i.push("cursor-pointer", "hover:bg-foundation"),
|
|
2884
|
-
}),
|
|
2909
|
+
return !t.button && !t.alwaysOpen && i.push("cursor-pointer", "hover:bg-foundation"), a.value && i.push("bg-foundation"), i;
|
|
2910
|
+
}), h = c(() => {
|
|
2885
2911
|
switch (t.titleColor) {
|
|
2886
2912
|
case "danger":
|
|
2887
2913
|
return "text-danger";
|
|
@@ -2896,85 +2922,85 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2896
2922
|
default:
|
|
2897
2923
|
return "text-foreground";
|
|
2898
2924
|
}
|
|
2899
|
-
}),
|
|
2925
|
+
}), p = async () => {
|
|
2900
2926
|
var i;
|
|
2901
|
-
|
|
2927
|
+
a.value = !a.value, a.value && (await Pt(), s.value = (((i = n(r)) == null ? void 0 : i.scrollHeight) || 0) + 64);
|
|
2902
2928
|
};
|
|
2903
|
-
return (i,
|
|
2904
|
-
var
|
|
2905
|
-
return
|
|
2906
|
-
class:
|
|
2929
|
+
return (i, d) => {
|
|
2930
|
+
var v, x;
|
|
2931
|
+
return o(), m("div", {
|
|
2932
|
+
class: g(["flex flex-col border-primary-muted", {
|
|
2907
2933
|
"border-t": e.borderT,
|
|
2908
2934
|
"border-b": e.borderB,
|
|
2909
|
-
"relative z-10":
|
|
2935
|
+
"relative z-10": a.value
|
|
2910
2936
|
}])
|
|
2911
2937
|
}, [
|
|
2912
2938
|
f("div", ie({
|
|
2913
|
-
class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2",
|
|
2939
|
+
class: ["flex justify-between items-center gap-4 sm:gap-8 py-3 sm:py-4 px-2", l.value],
|
|
2914
2940
|
tabindex: "0"
|
|
2915
2941
|
}, st(
|
|
2916
2942
|
!e.button && !e.alwaysOpen ? {
|
|
2917
|
-
click:
|
|
2918
|
-
keypress:
|
|
2943
|
+
click: p,
|
|
2944
|
+
keypress: n(bt)(p)
|
|
2919
2945
|
} : {},
|
|
2920
2946
|
!0
|
|
2921
2947
|
)), [
|
|
2922
2948
|
f("div", {
|
|
2923
|
-
class:
|
|
2949
|
+
class: g(["text-sm sm:text-base font-bold flex items-center gap-1 sm:gap-2 select-none", h.value])
|
|
2924
2950
|
}, [
|
|
2925
|
-
f("div",
|
|
2926
|
-
|
|
2951
|
+
f("div", ua, [
|
|
2952
|
+
E(i.$slots, "icon")
|
|
2927
2953
|
]),
|
|
2928
|
-
f("span", null,
|
|
2954
|
+
f("span", null, z(e.title), 1)
|
|
2929
2955
|
], 2),
|
|
2930
2956
|
f("div", null, [
|
|
2931
|
-
!e.button && !e.alwaysOpen ? (
|
|
2957
|
+
!e.button && !e.alwaysOpen ? (o(), L(n(es), {
|
|
2932
2958
|
key: 0,
|
|
2933
|
-
class:
|
|
2959
|
+
class: g(["w-4 h-4 sm:w-5 sm:h-5 transition-all duration-400", a.value && "rotate-180"])
|
|
2934
2960
|
}, null, 8, ["class"])) : I("", !0),
|
|
2935
|
-
e.button ? (
|
|
2961
|
+
e.button ? (o(), L(n(oe), ie({
|
|
2936
2962
|
key: 1,
|
|
2937
2963
|
size: "sm",
|
|
2938
2964
|
to: e.button.expandContent ? void 0 : e.button.to,
|
|
2939
|
-
color: e.button.expandContent &&
|
|
2940
|
-
"icon-right": e.button.expandContent &&
|
|
2941
|
-
onClick: (
|
|
2942
|
-
}, st((
|
|
2965
|
+
color: e.button.expandContent && a.value ? "invert" : e.button.color,
|
|
2966
|
+
"icon-right": e.button.expandContent && a.value ? void 0 : e.button.iconRight,
|
|
2967
|
+
onClick: (v = e.button) == null ? void 0 : v.onClick
|
|
2968
|
+
}, st((x = e.button) != null && x.expandContent ? { click: p } : {})), {
|
|
2943
2969
|
default: M(() => [
|
|
2944
|
-
R(
|
|
2970
|
+
R(z(e.button.expandContent && a.value ? "Cancel" : e.button.text), 1)
|
|
2945
2971
|
]),
|
|
2946
2972
|
_: 1
|
|
2947
2973
|
}, 16, ["to", "color", "icon-right", "onClick"])) : I("", !0)
|
|
2948
2974
|
])
|
|
2949
2975
|
], 16),
|
|
2950
2976
|
f("div", {
|
|
2951
|
-
class:
|
|
2952
|
-
e.allowOverflow &&
|
|
2953
|
-
|
|
2977
|
+
class: g(["transition-all duration-700 overflow-hidden", [
|
|
2978
|
+
e.allowOverflow && a.value ? "!overflow-visible" : "",
|
|
2979
|
+
a.value ? "mb-3 mt-1" : "",
|
|
2954
2980
|
!e.button && !e.alwaysOpen ? "cursor-pointer hover:bg-foundation" : ""
|
|
2955
2981
|
]]),
|
|
2956
2982
|
style: ne(
|
|
2957
|
-
e.alwaysOpen ? "max-height: none;" : `max-height: ${
|
|
2983
|
+
e.alwaysOpen ? "max-height: none;" : `max-height: ${a.value ? s.value + "px" : "0px"}`
|
|
2958
2984
|
)
|
|
2959
2985
|
}, [
|
|
2960
|
-
t.lazyLoad ? (
|
|
2961
|
-
|
|
2986
|
+
t.lazyLoad ? (o(), m(K, { key: 0 }, [
|
|
2987
|
+
a.value || t.alwaysOpen ? (o(), m("div", {
|
|
2962
2988
|
key: 0,
|
|
2963
2989
|
ref_key: "content",
|
|
2964
2990
|
ref: r,
|
|
2965
2991
|
class: "rounded-md text-sm pb-3 px-2 mt-1"
|
|
2966
2992
|
}, [
|
|
2967
|
-
|
|
2993
|
+
E(i.$slots, "default", {}, () => [
|
|
2968
2994
|
R("Panel contents")
|
|
2969
2995
|
])
|
|
2970
2996
|
], 512)) : I("", !0)
|
|
2971
|
-
], 64)) : (
|
|
2997
|
+
], 64)) : (o(), m("div", {
|
|
2972
2998
|
key: 1,
|
|
2973
2999
|
ref_key: "content",
|
|
2974
3000
|
ref: r,
|
|
2975
3001
|
class: "rounded-md text-sm pb-3 px-2 mt-1"
|
|
2976
3002
|
}, [
|
|
2977
|
-
|
|
3003
|
+
E(i.$slots, "default", {}, () => [
|
|
2978
3004
|
R("Panel contents")
|
|
2979
3005
|
])
|
|
2980
3006
|
], 512))
|
|
@@ -2982,7 +3008,7 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2982
3008
|
], 2);
|
|
2983
3009
|
};
|
|
2984
3010
|
}
|
|
2985
|
-
}),
|
|
3011
|
+
}), ca = { class: "inline-flex items-center space-x-2" }, da = { class: "label-light" }, Eo = /* @__PURE__ */ j({
|
|
2986
3012
|
__name: "Disclosure",
|
|
2987
3013
|
props: {
|
|
2988
3014
|
title: null,
|
|
@@ -2991,77 +3017,77 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2991
3017
|
},
|
|
2992
3018
|
setup(e) {
|
|
2993
3019
|
const t = e, r = c(() => {
|
|
2994
|
-
const
|
|
3020
|
+
const a = [
|
|
2995
3021
|
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2996
3022
|
"ring-1 font-medium"
|
|
2997
3023
|
];
|
|
2998
3024
|
switch (t.color) {
|
|
2999
3025
|
case "warning":
|
|
3000
|
-
|
|
3026
|
+
a.push(
|
|
3001
3027
|
"border-warning text-warning ring-warning-lighter hover:ring-warning"
|
|
3002
3028
|
);
|
|
3003
3029
|
break;
|
|
3004
3030
|
case "success":
|
|
3005
|
-
|
|
3031
|
+
a.push(
|
|
3006
3032
|
"border-success text-success ring-success-lighter hover:ring-success"
|
|
3007
3033
|
);
|
|
3008
3034
|
break;
|
|
3009
3035
|
case "danger":
|
|
3010
|
-
|
|
3036
|
+
a.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
|
|
3011
3037
|
break;
|
|
3012
3038
|
case "default":
|
|
3013
3039
|
default:
|
|
3014
|
-
|
|
3040
|
+
a.push(
|
|
3015
3041
|
"border-primary text-primary ring-primary-muted hover:ring-primary"
|
|
3016
3042
|
);
|
|
3017
3043
|
break;
|
|
3018
3044
|
}
|
|
3019
|
-
return
|
|
3045
|
+
return a.join(" ");
|
|
3020
3046
|
}), s = c(() => {
|
|
3021
|
-
const
|
|
3047
|
+
const a = ["p-3 border-x border-b rounded-b-md"];
|
|
3022
3048
|
switch (t.color) {
|
|
3023
3049
|
case "warning":
|
|
3024
|
-
|
|
3050
|
+
a.push("border-warning-lighter");
|
|
3025
3051
|
break;
|
|
3026
3052
|
case "success":
|
|
3027
|
-
|
|
3053
|
+
a.push("border-success-lighter");
|
|
3028
3054
|
break;
|
|
3029
3055
|
case "danger":
|
|
3030
|
-
|
|
3056
|
+
a.push("border-danger-lighter");
|
|
3031
3057
|
break;
|
|
3032
3058
|
case "default":
|
|
3033
3059
|
default:
|
|
3034
|
-
|
|
3060
|
+
a.push("border-primary-muted");
|
|
3035
3061
|
break;
|
|
3036
3062
|
}
|
|
3037
|
-
return
|
|
3063
|
+
return a.join(" ");
|
|
3038
3064
|
});
|
|
3039
|
-
return (
|
|
3040
|
-
|
|
3041
|
-
default: M(({ open:
|
|
3042
|
-
|
|
3043
|
-
class:
|
|
3065
|
+
return (a, l) => (o(), m("div", null, [
|
|
3066
|
+
V(n(Os), null, {
|
|
3067
|
+
default: M(({ open: h }) => [
|
|
3068
|
+
V(n(Ls), {
|
|
3069
|
+
class: g(r.value)
|
|
3044
3070
|
}, {
|
|
3045
3071
|
default: M(() => [
|
|
3046
|
-
f("div",
|
|
3047
|
-
e.icon ? (
|
|
3072
|
+
f("div", ca, [
|
|
3073
|
+
e.icon ? (o(), L(Q(e.icon), {
|
|
3048
3074
|
key: 0,
|
|
3049
3075
|
class: "h-5 w-5"
|
|
3050
3076
|
})) : I("", !0),
|
|
3051
|
-
f("span", null,
|
|
3077
|
+
f("span", null, z(e.title), 1)
|
|
3052
3078
|
]),
|
|
3053
|
-
|
|
3054
|
-
class:
|
|
3079
|
+
V(n(ft), {
|
|
3080
|
+
class: g([h ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
3055
3081
|
}, null, 8, ["class"])
|
|
3056
3082
|
]),
|
|
3057
3083
|
_: 2
|
|
3058
3084
|
}, 1032, ["class"]),
|
|
3059
|
-
|
|
3060
|
-
class:
|
|
3085
|
+
V(n(Ms), {
|
|
3086
|
+
class: g(s.value)
|
|
3061
3087
|
}, {
|
|
3062
3088
|
default: M(() => [
|
|
3063
|
-
f("div",
|
|
3064
|
-
|
|
3089
|
+
f("div", da, [
|
|
3090
|
+
E(a.$slots, "default", {}, () => [
|
|
3065
3091
|
R("Panel contents")
|
|
3066
3092
|
])
|
|
3067
3093
|
])
|
|
@@ -3075,93 +3101,93 @@ const ia = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
3075
3101
|
}
|
|
3076
3102
|
});
|
|
3077
3103
|
var de = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(de || {});
|
|
3078
|
-
const
|
|
3104
|
+
const fa = { class: "relative flex bg-foundation rounded-md" }, pa = { class: "relative z-10 flex gap-1 items-center p-1 rounded-l" }, ma = { class: "relative z-10 flex gap-1 items-center p-1 rounded-r" }, Uo = /* @__PURE__ */ j({
|
|
3079
3105
|
__name: "GridListToggle",
|
|
3080
3106
|
props: {
|
|
3081
3107
|
modelValue: null
|
|
3082
3108
|
},
|
|
3083
3109
|
emits: ["click", "update:modelValue"],
|
|
3084
3110
|
setup(e, { emit: t }) {
|
|
3085
|
-
const r = t, s = e,
|
|
3111
|
+
const r = t, s = e, a = c({
|
|
3086
3112
|
get: () => s.modelValue || de.Grid,
|
|
3087
|
-
set: (
|
|
3088
|
-
}),
|
|
3089
|
-
r("click",
|
|
3090
|
-
const
|
|
3091
|
-
|
|
3113
|
+
set: (h) => r("update:modelValue", h)
|
|
3114
|
+
}), l = (h) => {
|
|
3115
|
+
r("click", h);
|
|
3116
|
+
const p = a.value === de.Grid ? de.List : de.Grid;
|
|
3117
|
+
a.value = p;
|
|
3092
3118
|
};
|
|
3093
|
-
return (
|
|
3119
|
+
return (h, p) => (o(), m("button", {
|
|
3094
3120
|
class: "max-w-max transition flex justify-center items-center gap-2 outline-none select-none h-8 text-foreground border-2 bg-foundation border-foundation-2 rounded-md hover:ring-2 active:scale-[0.97] grow",
|
|
3095
|
-
onClick:
|
|
3121
|
+
onClick: l
|
|
3096
3122
|
}, [
|
|
3097
|
-
f("div",
|
|
3123
|
+
f("div", fa, [
|
|
3098
3124
|
f("div", {
|
|
3099
|
-
class:
|
|
3100
|
-
"translate-x-7":
|
|
3125
|
+
class: g(["absolute -top-[2px] -left-[2px] transition", {
|
|
3126
|
+
"translate-x-7": a.value !== n(de).Grid
|
|
3101
3127
|
}])
|
|
3102
3128
|
}, [
|
|
3103
3129
|
f("div", {
|
|
3104
|
-
class:
|
|
3130
|
+
class: g([a.value !== n(de).Grid ? "rounded-r-md" : "rounded-l-md", "w-8 h-8 bg-primary-muted shadow-inner transition"])
|
|
3105
3131
|
}, null, 2)
|
|
3106
3132
|
], 2),
|
|
3107
|
-
f("div",
|
|
3108
|
-
|
|
3133
|
+
f("div", pa, [
|
|
3134
|
+
V(n(Wt), { class: "h-5 w-5" })
|
|
3109
3135
|
]),
|
|
3110
|
-
f("div",
|
|
3111
|
-
|
|
3136
|
+
f("div", ma, [
|
|
3137
|
+
V(n(Ht), { class: "h-5 w-5" })
|
|
3112
3138
|
])
|
|
3113
3139
|
])
|
|
3114
3140
|
]));
|
|
3115
3141
|
}
|
|
3116
3142
|
});
|
|
3117
|
-
var
|
|
3118
|
-
function
|
|
3143
|
+
var ha = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(ha || {}), Re = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Re || {});
|
|
3144
|
+
function va(e, t) {
|
|
3119
3145
|
if (!Ge)
|
|
3120
3146
|
return;
|
|
3121
3147
|
const {
|
|
3122
3148
|
wait: r = 100,
|
|
3123
3149
|
throttleOrDebounce: s = 0
|
|
3124
3150
|
/* Throttle */
|
|
3125
|
-
} = t || {},
|
|
3126
|
-
ae(() => window.addEventListener("resize",
|
|
3151
|
+
} = t || {}, a = r ? s === 0 ? ut(e, r) : He(e, r) : e;
|
|
3152
|
+
ae(() => window.addEventListener("resize", a)), Ue(() => window.removeEventListener("resize", a));
|
|
3127
3153
|
}
|
|
3128
|
-
function
|
|
3154
|
+
function qo(e) {
|
|
3129
3155
|
ae(() => {
|
|
3130
3156
|
window.addEventListener("beforeunload", e);
|
|
3131
3157
|
}), Ue(() => {
|
|
3132
3158
|
window.removeEventListener("beforeunload", e);
|
|
3133
3159
|
});
|
|
3134
3160
|
}
|
|
3135
|
-
function
|
|
3161
|
+
function ga(e) {
|
|
3136
3162
|
const { el: t, defaultDirection: r } = e, s = O(
|
|
3137
3163
|
ge(r) ? 1 : r
|
|
3138
3164
|
/* Right */
|
|
3139
|
-
),
|
|
3140
|
-
const
|
|
3141
|
-
if (!ge(
|
|
3142
|
-
return
|
|
3143
|
-
const
|
|
3144
|
-
return
|
|
3145
|
-
}),
|
|
3165
|
+
), a = c(() => {
|
|
3166
|
+
const h = n(e.stopUpdatesBelowWidth);
|
|
3167
|
+
if (!ge(h))
|
|
3168
|
+
return h;
|
|
3169
|
+
const p = n(t);
|
|
3170
|
+
return p != null && p.offsetWidth ? p.offsetWidth * 2 : void 0;
|
|
3171
|
+
}), l = () => {
|
|
3146
3172
|
if (!Ge)
|
|
3147
3173
|
return;
|
|
3148
|
-
const
|
|
3149
|
-
if (!
|
|
3174
|
+
const h = n(t);
|
|
3175
|
+
if (!h)
|
|
3150
3176
|
return;
|
|
3151
|
-
const
|
|
3152
|
-
i &&
|
|
3177
|
+
const p = h.getBoundingClientRect(), i = p.x + p.width > window.innerWidth, d = p.x < 0;
|
|
3178
|
+
i && d || !ge(a.value) && window.innerWidth < a.value || (i ? s.value = 0 : d && (s.value = 1));
|
|
3153
3179
|
};
|
|
3154
|
-
return
|
|
3155
|
-
() =>
|
|
3156
|
-
(
|
|
3157
|
-
|
|
3180
|
+
return va(() => l()), fe(
|
|
3181
|
+
() => n(t),
|
|
3182
|
+
(h) => {
|
|
3183
|
+
h && l();
|
|
3158
3184
|
}
|
|
3159
3185
|
), {
|
|
3160
3186
|
direction: c(() => s.value),
|
|
3161
|
-
recalculateDirection:
|
|
3187
|
+
recalculateDirection: l
|
|
3162
3188
|
};
|
|
3163
3189
|
}
|
|
3164
|
-
const
|
|
3190
|
+
const ba = ["disabled", "onClick"], Wo = /* @__PURE__ */ j({
|
|
3165
3191
|
__name: "Menu",
|
|
3166
3192
|
props: {
|
|
3167
3193
|
open: { type: Boolean },
|
|
@@ -3169,57 +3195,57 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3169
3195
|
},
|
|
3170
3196
|
emits: ["update:open", "chosen"],
|
|
3171
3197
|
setup(e, { emit: t }) {
|
|
3172
|
-
const r = t, s = e,
|
|
3198
|
+
const r = t, s = e, a = O(null), { direction: l } = ga({
|
|
3173
3199
|
el: c(() => {
|
|
3174
|
-
var
|
|
3175
|
-
return ((
|
|
3200
|
+
var y;
|
|
3201
|
+
return ((y = a.value) == null ? void 0 : y.el) || null;
|
|
3176
3202
|
}),
|
|
3177
3203
|
defaultDirection: Re.Left,
|
|
3178
3204
|
stopUpdatesBelowWidth: 300
|
|
3179
|
-
}),
|
|
3205
|
+
}), h = O(null), p = O(!1), i = c({
|
|
3180
3206
|
get: () => s.open || !1,
|
|
3181
|
-
set: (
|
|
3182
|
-
}),
|
|
3183
|
-
const { active: u, disabled: S, color: k } =
|
|
3207
|
+
set: (y) => r("update:open", y)
|
|
3208
|
+
}), d = (y) => {
|
|
3209
|
+
const { active: u, disabled: S, color: k } = y, $ = [
|
|
3184
3210
|
"group flex gap-3 w-full items-center rounded-md px-2 py-1.5 text-sm"
|
|
3185
3211
|
];
|
|
3186
3212
|
return u && !k ? $.push("bg-foundation-focus text-foreground") : S ? $.push("text-foreground-disabled") : k === "danger" && u ? $.push("text-foreground-on-primary bg-danger") : k === "danger" && !u ? $.push("text-danger") : k === "info" && u ? $.push("text-foreground-on-primary bg-info") : k === "info" && !u ? $.push("text-info") : $.push("text-foreground"), $.join(" ");
|
|
3187
|
-
},
|
|
3188
|
-
r("chosen", { item:
|
|
3189
|
-
},
|
|
3190
|
-
var
|
|
3191
|
-
return (
|
|
3192
|
-
},
|
|
3193
|
-
const u = !!
|
|
3194
|
-
return
|
|
3213
|
+
}, v = (y, u) => {
|
|
3214
|
+
r("chosen", { item: y, event: u });
|
|
3215
|
+
}, x = () => {
|
|
3216
|
+
var y;
|
|
3217
|
+
return (y = h.value) == null ? void 0 : y.el.click();
|
|
3218
|
+
}, b = (y) => {
|
|
3219
|
+
const u = !!y;
|
|
3220
|
+
return p.value = u, u;
|
|
3195
3221
|
};
|
|
3196
|
-
return fe(
|
|
3197
|
-
|
|
3198
|
-
}), fe(i, (
|
|
3199
|
-
(
|
|
3200
|
-
}), (
|
|
3222
|
+
return fe(p, (y, u) => {
|
|
3223
|
+
y !== u && (i.value = y);
|
|
3224
|
+
}), fe(i, (y) => {
|
|
3225
|
+
(y && !p.value || !y && p.value) && x();
|
|
3226
|
+
}), (y, u) => (o(), L(n(As), {
|
|
3201
3227
|
as: "div",
|
|
3202
3228
|
class: "relative inline-block"
|
|
3203
3229
|
}, {
|
|
3204
3230
|
default: M(({ open: S }) => [
|
|
3205
3231
|
f("div", null, [
|
|
3206
|
-
|
|
3232
|
+
V(n(Ps), {
|
|
3207
3233
|
ref_key: "menuButton",
|
|
3208
|
-
ref:
|
|
3234
|
+
ref: h,
|
|
3209
3235
|
class: "hidden",
|
|
3210
3236
|
onClick: u[0] || (u[0] = pe(() => {
|
|
3211
3237
|
}, ["stop", "prevent"]))
|
|
3212
3238
|
}, null, 512),
|
|
3213
3239
|
f("div", {
|
|
3214
|
-
class:
|
|
3240
|
+
class: g(S ? "pointer-events-none" : "")
|
|
3215
3241
|
}, [
|
|
3216
|
-
|
|
3217
|
-
toggle:
|
|
3218
|
-
open:
|
|
3242
|
+
E(y.$slots, "default", {
|
|
3243
|
+
toggle: x,
|
|
3244
|
+
open: b(S)
|
|
3219
3245
|
})
|
|
3220
3246
|
], 2)
|
|
3221
3247
|
]),
|
|
3222
|
-
|
|
3248
|
+
V(Ee, {
|
|
3223
3249
|
"enter-active-class": "transition duration-100 ease-out",
|
|
3224
3250
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
3225
3251
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -3228,41 +3254,41 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3228
3254
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
3229
3255
|
}, {
|
|
3230
3256
|
default: M(() => [
|
|
3231
|
-
|
|
3257
|
+
V(n(js), {
|
|
3232
3258
|
ref_key: "menuItems",
|
|
3233
|
-
ref:
|
|
3234
|
-
class:
|
|
3259
|
+
ref: a,
|
|
3260
|
+
class: g([
|
|
3235
3261
|
"absolute mt-2 w-48 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",
|
|
3236
|
-
l
|
|
3262
|
+
n(l) === n(Re).Left ? "right-0" : ""
|
|
3237
3263
|
])
|
|
3238
3264
|
}, {
|
|
3239
3265
|
default: M(() => [
|
|
3240
|
-
(
|
|
3266
|
+
(o(!0), m(K, null, G(e.items, (k, $) => (o(), m("div", {
|
|
3241
3267
|
key: $,
|
|
3242
3268
|
class: "p-1"
|
|
3243
3269
|
}, [
|
|
3244
|
-
(
|
|
3270
|
+
(o(!0), m(K, null, G(k, (B) => (o(), L(n(_s), {
|
|
3245
3271
|
key: B.id,
|
|
3246
3272
|
disabled: B.disabled,
|
|
3247
3273
|
color: B.color
|
|
3248
3274
|
}, {
|
|
3249
3275
|
default: M(({ active: T, disabled: A }) => [
|
|
3250
|
-
be((
|
|
3276
|
+
be((o(), m("span", null, [
|
|
3251
3277
|
f("button", {
|
|
3252
|
-
class:
|
|
3278
|
+
class: g(d({ active: T, disabled: A, color: B.color })),
|
|
3253
3279
|
disabled: A,
|
|
3254
|
-
onClick: (w) =>
|
|
3280
|
+
onClick: (w) => v(B, w)
|
|
3255
3281
|
}, [
|
|
3256
|
-
B.icon ? (
|
|
3282
|
+
B.icon ? (o(), L(Q(B.icon), {
|
|
3257
3283
|
key: 0,
|
|
3258
3284
|
class: "h-5 w-5"
|
|
3259
3285
|
})) : I("", !0),
|
|
3260
|
-
|
|
3261
|
-
R(
|
|
3286
|
+
E(y.$slots, "item", { item: B }, () => [
|
|
3287
|
+
R(z(B.title), 1)
|
|
3262
3288
|
])
|
|
3263
|
-
], 10,
|
|
3289
|
+
], 10, ba)
|
|
3264
3290
|
])), [
|
|
3265
|
-
[
|
|
3291
|
+
[n(gt), B.disabled && B.disabledTooltip]
|
|
3266
3292
|
])
|
|
3267
3293
|
]),
|
|
3268
3294
|
_: 2
|
|
@@ -3278,108 +3304,124 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3278
3304
|
_: 3
|
|
3279
3305
|
}));
|
|
3280
3306
|
}
|
|
3281
|
-
}),
|
|
3307
|
+
}), ya = { class: "flex flex-col gap-y-0 sm:gap-y-4" }, xa = { class: "flex gap-x-6" }, Ho = /* @__PURE__ */ j({
|
|
3282
3308
|
__name: "Tabs",
|
|
3283
3309
|
props: {
|
|
3284
3310
|
items: null
|
|
3285
3311
|
},
|
|
3286
3312
|
setup(e) {
|
|
3287
|
-
const t = e, r = O(null), s = c(() => r.value && t.items.find((
|
|
3288
|
-
r.value =
|
|
3313
|
+
const t = e, r = O(null), s = c(() => r.value && t.items.find((l) => l.id === r.value) || t.items[0]), a = (l) => {
|
|
3314
|
+
r.value = l.id;
|
|
3289
3315
|
};
|
|
3290
|
-
return (
|
|
3291
|
-
f("div",
|
|
3292
|
-
(
|
|
3293
|
-
key:
|
|
3316
|
+
return (l, h) => (o(), m("div", ya, [
|
|
3317
|
+
f("div", xa, [
|
|
3318
|
+
(o(!0), m(K, null, G(e.items, (p) => (o(), L(oe, {
|
|
3319
|
+
key: p.id,
|
|
3294
3320
|
link: "",
|
|
3295
|
-
color: s.value.id ===
|
|
3296
|
-
onClick: (i) =>
|
|
3321
|
+
color: s.value.id === p.id ? "default" : "secondary",
|
|
3322
|
+
onClick: (i) => a(p)
|
|
3297
3323
|
}, {
|
|
3298
3324
|
default: M(() => [
|
|
3299
|
-
R(
|
|
3325
|
+
R(z(p.title), 1)
|
|
3300
3326
|
]),
|
|
3301
3327
|
_: 2
|
|
3302
3328
|
}, 1032, ["color", "onClick"]))), 128))
|
|
3303
3329
|
]),
|
|
3304
|
-
|
|
3330
|
+
E(l.$slots, "default", { activeItem: s.value })
|
|
3305
3331
|
]));
|
|
3306
3332
|
}
|
|
3307
|
-
}),
|
|
3333
|
+
}), ka = { class: "text-foreground" }, wa = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, Ca = ["onClick", "onKeypress"], $a = /* @__PURE__ */ f("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), Ia = { class: "absolute right-1.5 gap-1 flex items-center p-0 h-full" }, Ko = /* @__PURE__ */ j({
|
|
3308
3334
|
__name: "Table",
|
|
3309
3335
|
props: {
|
|
3310
3336
|
items: null,
|
|
3311
3337
|
buttons: null,
|
|
3312
3338
|
columns: null,
|
|
3313
3339
|
overflowCells: { type: Boolean },
|
|
3314
|
-
onRowClick: { type: Function }
|
|
3340
|
+
onRowClick: { type: Function },
|
|
3341
|
+
rowItemsAlign: { default: "center" }
|
|
3315
3342
|
},
|
|
3316
3343
|
setup(e) {
|
|
3317
3344
|
const t = e, r = c(() => {
|
|
3318
|
-
const
|
|
3319
|
-
let
|
|
3320
|
-
return
|
|
3321
|
-
}), s = (
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3345
|
+
const p = (t.buttons || []).length;
|
|
3346
|
+
let i = 16;
|
|
3347
|
+
return p > 0 && (i = 48 + (p - 1) * 42), `${i}px`;
|
|
3348
|
+
}), s = c(() => {
|
|
3349
|
+
const p = [
|
|
3350
|
+
"relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation"
|
|
3351
|
+
];
|
|
3352
|
+
switch (t.onRowClick && p.push("cursor-pointer hover:bg-primary-muted"), t.rowItemsAlign) {
|
|
3353
|
+
case "center":
|
|
3354
|
+
p.push("items-center");
|
|
3355
|
+
break;
|
|
3356
|
+
case "stretch":
|
|
3357
|
+
p.push("items-stretch");
|
|
3358
|
+
break;
|
|
3359
|
+
}
|
|
3360
|
+
return p.join(" ");
|
|
3361
|
+
}), a = (p) => {
|
|
3362
|
+
var i;
|
|
3363
|
+
return ((i = t.columns.find((d) => d.id === p)) == null ? void 0 : i.classes) || "";
|
|
3364
|
+
}, l = (p, i) => {
|
|
3365
|
+
const d = a(p);
|
|
3366
|
+
return i === 0 ? `bg-transparent py-3 pr-5 px-1 ${d}` : `lg:p-0 px-1 my-2 ${d}`;
|
|
3367
|
+
}, h = (p) => {
|
|
3368
|
+
var i;
|
|
3369
|
+
(i = t.onRowClick) == null || i.call(t, p);
|
|
3330
3370
|
};
|
|
3331
|
-
return (
|
|
3332
|
-
f("div",
|
|
3333
|
-
e.items.length > 0 ? (
|
|
3371
|
+
return (p, i) => (o(), m("div", ka, [
|
|
3372
|
+
f("div", wa, [
|
|
3373
|
+
e.items.length > 0 ? (o(), m("div", {
|
|
3334
3374
|
key: 0,
|
|
3335
3375
|
class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[900px]",
|
|
3336
3376
|
style: ne({ paddingRight: r.value })
|
|
3337
3377
|
}, [
|
|
3338
|
-
(
|
|
3339
|
-
key:
|
|
3340
|
-
class:
|
|
3341
|
-
},
|
|
3378
|
+
(o(!0), m(K, null, G(e.columns, (d) => (o(), m("div", {
|
|
3379
|
+
key: d.id,
|
|
3380
|
+
class: g([a(d.id), "capitalize"])
|
|
3381
|
+
}, z(d.header), 3))), 128))
|
|
3342
3382
|
], 4)) : I("", !0),
|
|
3343
3383
|
f("div", {
|
|
3344
|
-
class:
|
|
3384
|
+
class: g(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
|
|
3345
3385
|
}, [
|
|
3346
|
-
(
|
|
3347
|
-
key:
|
|
3348
|
-
class: b(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
|
|
3386
|
+
(o(!0), m(K, null, G(e.items, (d) => (o(), m("div", {
|
|
3387
|
+
key: d.id,
|
|
3349
3388
|
style: ne({ paddingRight: r.value }),
|
|
3389
|
+
class: g(s.value),
|
|
3350
3390
|
tabindex: "0",
|
|
3351
|
-
onClick: (
|
|
3352
|
-
onKeypress: (
|
|
3391
|
+
onClick: (v) => h(d),
|
|
3392
|
+
onKeypress: (v) => h(d)
|
|
3353
3393
|
}, [
|
|
3354
|
-
(
|
|
3355
|
-
key:
|
|
3356
|
-
class:
|
|
3394
|
+
(o(!0), m(K, null, G(e.columns, (v, x) => (o(), m("div", {
|
|
3395
|
+
key: v.id,
|
|
3396
|
+
class: g(l(v.id, x)),
|
|
3357
3397
|
tabindex: "0"
|
|
3358
3398
|
}, [
|
|
3359
|
-
|
|
3360
|
-
|
|
3399
|
+
E(p.$slots, v.id, { item: d }, () => [
|
|
3400
|
+
$a
|
|
3361
3401
|
])
|
|
3362
3402
|
], 2))), 128)),
|
|
3363
|
-
f("div",
|
|
3364
|
-
(
|
|
3365
|
-
key:
|
|
3403
|
+
f("div", Ia, [
|
|
3404
|
+
(o(!0), m(K, null, G(e.buttons, (v) => (o(), m("div", {
|
|
3405
|
+
key: v.label
|
|
3366
3406
|
}, [
|
|
3367
|
-
|
|
3368
|
-
"icon-left":
|
|
3407
|
+
V(n(oe), {
|
|
3408
|
+
"icon-left": v.icon,
|
|
3369
3409
|
size: "sm",
|
|
3370
3410
|
color: "secondary",
|
|
3371
3411
|
"hide-text": "",
|
|
3372
|
-
class:
|
|
3373
|
-
|
|
3374
|
-
|
|
3412
|
+
class: g(v.class),
|
|
3413
|
+
"text-color": v.textColor,
|
|
3414
|
+
to: n(ye)(v.action) ? v.action : void 0,
|
|
3415
|
+
onClick: pe((x) => n(ye)(v.action) ? n(ct) : v.action(d), ["stop"])
|
|
3416
|
+
}, null, 8, ["icon-left", "class", "text-color", "to", "onClick"])
|
|
3375
3417
|
]))), 128))
|
|
3376
3418
|
])
|
|
3377
|
-
], 46,
|
|
3419
|
+
], 46, Ca))), 128))
|
|
3378
3420
|
], 2)
|
|
3379
3421
|
])
|
|
3380
3422
|
]));
|
|
3381
3423
|
}
|
|
3382
|
-
}),
|
|
3424
|
+
}), Sa = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Ba = { class: "inline-flex items-center space-x-1" }, za = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), Va = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, Oa = { class: "inline-flex items-center space-x-1" }, La = /* @__PURE__ */ f("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), Go = /* @__PURE__ */ j({
|
|
3383
3425
|
__name: "InfiniteLoading",
|
|
3384
3426
|
props: {
|
|
3385
3427
|
settings: null,
|
|
@@ -3390,39 +3432,39 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3390
3432
|
const t = O(null), r = O(!1);
|
|
3391
3433
|
return Ge && ae(() => {
|
|
3392
3434
|
const s = setInterval(() => {
|
|
3393
|
-
var
|
|
3394
|
-
(
|
|
3435
|
+
var a;
|
|
3436
|
+
(a = t.value) != null && a.isConnected && (r.value = !0, clearInterval(s));
|
|
3395
3437
|
}, 200);
|
|
3396
|
-
}), (s,
|
|
3438
|
+
}), (s, a) => (o(), m("div", {
|
|
3397
3439
|
ref_key: "wrapper",
|
|
3398
3440
|
ref: t
|
|
3399
3441
|
}, [
|
|
3400
|
-
r.value ? (
|
|
3401
|
-
onInfinite:
|
|
3442
|
+
r.value ? (o(), L(n(Ds), ie({ key: 0 }, s.$props.settings || {}, {
|
|
3443
|
+
onInfinite: a[0] || (a[0] = (l) => s.$emit("infinite", l))
|
|
3402
3444
|
}), {
|
|
3403
3445
|
spinner: M(() => [
|
|
3404
|
-
|
|
3446
|
+
V(Qe, {
|
|
3405
3447
|
loading: !0,
|
|
3406
3448
|
class: "my-2"
|
|
3407
3449
|
})
|
|
3408
3450
|
]),
|
|
3409
3451
|
complete: M(() => [
|
|
3410
|
-
f("div",
|
|
3411
|
-
f("div",
|
|
3412
|
-
|
|
3413
|
-
|
|
3452
|
+
f("div", Sa, [
|
|
3453
|
+
f("div", Ba, [
|
|
3454
|
+
V(n(ts), { class: "w-5 h-5 text-success" }),
|
|
3455
|
+
za
|
|
3414
3456
|
])
|
|
3415
3457
|
])
|
|
3416
3458
|
]),
|
|
3417
|
-
error: M(({ retry:
|
|
3418
|
-
f("div",
|
|
3419
|
-
f("div",
|
|
3420
|
-
|
|
3421
|
-
|
|
3459
|
+
error: M(({ retry: l }) => [
|
|
3460
|
+
f("div", Va, [
|
|
3461
|
+
f("div", Oa, [
|
|
3462
|
+
V(n(ss), { class: "w-5 h-5 text-danger" }),
|
|
3463
|
+
La
|
|
3422
3464
|
]),
|
|
3423
|
-
e.allowRetry ? (
|
|
3465
|
+
e.allowRetry ? (o(), L(oe, {
|
|
3424
3466
|
key: 0,
|
|
3425
|
-
onClick:
|
|
3467
|
+
onClick: l
|
|
3426
3468
|
}, {
|
|
3427
3469
|
default: M(() => [
|
|
3428
3470
|
R("Retry")
|
|
@@ -3435,10 +3477,10 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3435
3477
|
}, 16)) : I("", !0)
|
|
3436
3478
|
], 512));
|
|
3437
3479
|
}
|
|
3438
|
-
}),
|
|
3480
|
+
}), Ma = { class: "relative group" }, Aa = {
|
|
3439
3481
|
key: 0,
|
|
3440
3482
|
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"
|
|
3441
|
-
},
|
|
3483
|
+
}, Xo = /* @__PURE__ */ j({
|
|
3442
3484
|
__name: "Panel",
|
|
3443
3485
|
props: {
|
|
3444
3486
|
/**
|
|
@@ -3476,47 +3518,47 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3476
3518
|
},
|
|
3477
3519
|
emits: ["submit"],
|
|
3478
3520
|
setup(e, { emit: t }) {
|
|
3479
|
-
const r = t, s = e,
|
|
3521
|
+
const r = t, s = e, a = c(
|
|
3480
3522
|
() => s.customPadding ? "" : "px-4 py-4 sm:px-6"
|
|
3481
|
-
),
|
|
3523
|
+
), l = c(
|
|
3482
3524
|
() => s.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
3483
|
-
),
|
|
3484
|
-
const
|
|
3485
|
-
return s.noShadow ||
|
|
3525
|
+
), h = c(() => {
|
|
3526
|
+
const p = ["rounded-lg"];
|
|
3527
|
+
return s.noShadow || p.push("shadow"), s.ring && p.push("ring-outline-2 hover:ring-2"), s.panelClasses && p.push(s.panelClasses), p.join(" ");
|
|
3486
3528
|
});
|
|
3487
|
-
return (
|
|
3488
|
-
e.fancyGlow ? (
|
|
3489
|
-
(
|
|
3490
|
-
class:
|
|
3529
|
+
return (p, i) => (o(), m("div", Ma, [
|
|
3530
|
+
e.fancyGlow ? (o(), m("div", Aa)) : I("", !0),
|
|
3531
|
+
(o(), L(Q(e.form ? "form" : "div"), {
|
|
3532
|
+
class: g([
|
|
3491
3533
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
3492
|
-
|
|
3534
|
+
h.value
|
|
3493
3535
|
]),
|
|
3494
|
-
onSubmit: i[0] || (i[0] = (
|
|
3536
|
+
onSubmit: i[0] || (i[0] = (d) => r("submit", d))
|
|
3495
3537
|
}, {
|
|
3496
3538
|
default: M(() => [
|
|
3497
|
-
|
|
3539
|
+
p.$slots.header ? (o(), m("div", {
|
|
3498
3540
|
key: 0,
|
|
3499
|
-
class:
|
|
3541
|
+
class: g(a.value)
|
|
3500
3542
|
}, [
|
|
3501
|
-
|
|
3543
|
+
E(p.$slots, "header")
|
|
3502
3544
|
], 2)) : I("", !0),
|
|
3503
3545
|
f("div", {
|
|
3504
|
-
class:
|
|
3546
|
+
class: g(["grow", l.value])
|
|
3505
3547
|
}, [
|
|
3506
|
-
|
|
3548
|
+
E(p.$slots, "default")
|
|
3507
3549
|
], 2),
|
|
3508
|
-
|
|
3550
|
+
p.$slots.footer ? (o(), m("div", {
|
|
3509
3551
|
key: 1,
|
|
3510
|
-
class:
|
|
3552
|
+
class: g(a.value)
|
|
3511
3553
|
}, [
|
|
3512
|
-
|
|
3554
|
+
E(p.$slots, "footer")
|
|
3513
3555
|
], 2)) : I("", !0)
|
|
3514
3556
|
]),
|
|
3515
3557
|
_: 3
|
|
3516
3558
|
}, 40, ["class"]))
|
|
3517
3559
|
]));
|
|
3518
3560
|
}
|
|
3519
|
-
}),
|
|
3561
|
+
}), Pa = { class: "flex-shrink-0" }, ja = /* @__PURE__ */ f("span", { class: "sr-only" }, "Dismiss", -1), Zo = /* @__PURE__ */ j({
|
|
3520
3562
|
__name: "Alert",
|
|
3521
3563
|
props: {
|
|
3522
3564
|
color: { default: "success" },
|
|
@@ -3527,21 +3569,21 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3527
3569
|
},
|
|
3528
3570
|
emits: ["dismiss"],
|
|
3529
3571
|
setup(e) {
|
|
3530
|
-
const t = e, r = We(), s = c(() => !!r.description),
|
|
3572
|
+
const t = e, r = We(), s = c(() => !!r.description), a = c(() => {
|
|
3531
3573
|
if (t.customIcon)
|
|
3532
3574
|
return t.customIcon;
|
|
3533
3575
|
switch (t.color) {
|
|
3534
3576
|
case "info":
|
|
3535
3577
|
return os;
|
|
3536
3578
|
case "warning":
|
|
3537
|
-
return
|
|
3579
|
+
return ze;
|
|
3538
3580
|
case "danger":
|
|
3539
3581
|
return as;
|
|
3540
3582
|
case "success":
|
|
3541
3583
|
default:
|
|
3542
|
-
return
|
|
3584
|
+
return ht;
|
|
3543
3585
|
}
|
|
3544
|
-
}),
|
|
3586
|
+
}), l = c(() => {
|
|
3545
3587
|
const u = [];
|
|
3546
3588
|
switch (t.size) {
|
|
3547
3589
|
case "xs":
|
|
@@ -3567,7 +3609,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3567
3609
|
break;
|
|
3568
3610
|
}
|
|
3569
3611
|
return u.join(" ");
|
|
3570
|
-
}),
|
|
3612
|
+
}), h = c(() => {
|
|
3571
3613
|
const u = [];
|
|
3572
3614
|
if (s.value)
|
|
3573
3615
|
u.push("");
|
|
@@ -3582,7 +3624,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3582
3624
|
break;
|
|
3583
3625
|
}
|
|
3584
3626
|
return u.join(" ");
|
|
3585
|
-
}),
|
|
3627
|
+
}), p = c(() => {
|
|
3586
3628
|
const u = ["grow"];
|
|
3587
3629
|
switch (s.value || u.push("flex items-center space-x-2"), t.size) {
|
|
3588
3630
|
case "xs":
|
|
@@ -3606,7 +3648,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3606
3648
|
break;
|
|
3607
3649
|
}
|
|
3608
3650
|
return u.join(" ");
|
|
3609
|
-
}),
|
|
3651
|
+
}), d = c(() => {
|
|
3610
3652
|
var k;
|
|
3611
3653
|
const u = ["flex"];
|
|
3612
3654
|
s.value || u.push("grow justify-end");
|
|
@@ -3621,7 +3663,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3621
3663
|
break;
|
|
3622
3664
|
}
|
|
3623
3665
|
return u.join(" ");
|
|
3624
|
-
}),
|
|
3666
|
+
}), v = c(() => {
|
|
3625
3667
|
const u = [];
|
|
3626
3668
|
switch (t.color) {
|
|
3627
3669
|
case "success":
|
|
@@ -3638,7 +3680,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3638
3680
|
break;
|
|
3639
3681
|
}
|
|
3640
3682
|
return u.join(" ");
|
|
3641
|
-
}),
|
|
3683
|
+
}), x = c(() => {
|
|
3642
3684
|
const u = [];
|
|
3643
3685
|
switch (t.size) {
|
|
3644
3686
|
case "xs":
|
|
@@ -3664,7 +3706,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3664
3706
|
break;
|
|
3665
3707
|
}
|
|
3666
3708
|
return u.join(" ");
|
|
3667
|
-
}),
|
|
3709
|
+
}), b = c(() => {
|
|
3668
3710
|
const u = [];
|
|
3669
3711
|
switch (t.color) {
|
|
3670
3712
|
case "success":
|
|
@@ -3681,7 +3723,7 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3681
3723
|
break;
|
|
3682
3724
|
}
|
|
3683
3725
|
return u.join(" ");
|
|
3684
|
-
}),
|
|
3726
|
+
}), y = c(() => {
|
|
3685
3727
|
switch (t.size) {
|
|
3686
3728
|
case "xs":
|
|
3687
3729
|
return "xs";
|
|
@@ -3690,65 +3732,65 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3690
3732
|
return "sm";
|
|
3691
3733
|
}
|
|
3692
3734
|
});
|
|
3693
|
-
return (u, S) => (
|
|
3694
|
-
class:
|
|
3735
|
+
return (u, S) => (o(), m("div", {
|
|
3736
|
+
class: g(["rounded-md", [l.value, v.value]])
|
|
3695
3737
|
}, [
|
|
3696
3738
|
f("div", {
|
|
3697
|
-
class:
|
|
3739
|
+
class: g(["flex", h.value])
|
|
3698
3740
|
}, [
|
|
3699
|
-
f("div",
|
|
3700
|
-
(
|
|
3701
|
-
class:
|
|
3741
|
+
f("div", Pa, [
|
|
3742
|
+
(o(), L(Q(a.value), {
|
|
3743
|
+
class: g(x.value),
|
|
3702
3744
|
"aria-hidden": "true"
|
|
3703
3745
|
}, null, 8, ["class"]))
|
|
3704
3746
|
]),
|
|
3705
3747
|
f("div", {
|
|
3706
|
-
class:
|
|
3748
|
+
class: g(p.value)
|
|
3707
3749
|
}, [
|
|
3708
3750
|
f("h3", {
|
|
3709
|
-
class:
|
|
3751
|
+
class: g(["text-sm", [s.value ? "font-medium" : ""]])
|
|
3710
3752
|
}, [
|
|
3711
|
-
|
|
3753
|
+
E(u.$slots, "title", {}, () => [
|
|
3712
3754
|
R("Title")
|
|
3713
3755
|
])
|
|
3714
3756
|
], 2),
|
|
3715
|
-
s.value ? (
|
|
3757
|
+
s.value ? (o(), m("div", {
|
|
3716
3758
|
key: 0,
|
|
3717
|
-
class:
|
|
3759
|
+
class: g(i.value)
|
|
3718
3760
|
}, [
|
|
3719
|
-
|
|
3761
|
+
E(u.$slots, "description", {}, () => [
|
|
3720
3762
|
R(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
3721
3763
|
])
|
|
3722
3764
|
], 2)) : I("", !0),
|
|
3723
3765
|
f("div", {
|
|
3724
|
-
class:
|
|
3766
|
+
class: g(d.value)
|
|
3725
3767
|
}, [
|
|
3726
|
-
(
|
|
3768
|
+
(o(!0), m(K, null, G(e.actions || [], (k, $) => (o(), L(oe, {
|
|
3727
3769
|
key: $,
|
|
3728
3770
|
color: e.color,
|
|
3729
|
-
size:
|
|
3771
|
+
size: y.value,
|
|
3730
3772
|
to: k.url,
|
|
3731
3773
|
external: k.externalUrl || !1,
|
|
3732
|
-
onClick: (B) => k.onClick ||
|
|
3774
|
+
onClick: (B) => k.onClick || n(ct)
|
|
3733
3775
|
}, {
|
|
3734
3776
|
default: M(() => [
|
|
3735
|
-
R(
|
|
3777
|
+
R(z(k.title), 1)
|
|
3736
3778
|
]),
|
|
3737
3779
|
_: 2
|
|
3738
3780
|
}, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
|
|
3739
3781
|
], 2)
|
|
3740
3782
|
], 2),
|
|
3741
|
-
e.withDismiss ? (
|
|
3783
|
+
e.withDismiss ? (o(), m("div", {
|
|
3742
3784
|
key: 0,
|
|
3743
|
-
class:
|
|
3785
|
+
class: g(["flex", [s.value ? "items-start" : "items-center"]])
|
|
3744
3786
|
}, [
|
|
3745
3787
|
f("button", {
|
|
3746
3788
|
type: "button",
|
|
3747
|
-
class:
|
|
3789
|
+
class: g(["inline-flex rounded-md focus:outline-none focus:ring-2", b.value]),
|
|
3748
3790
|
onClick: S[0] || (S[0] = (k) => u.$emit("dismiss"))
|
|
3749
3791
|
}, [
|
|
3750
|
-
|
|
3751
|
-
|
|
3792
|
+
ja,
|
|
3793
|
+
V(n(xe), {
|
|
3752
3794
|
class: "h-5 w-5",
|
|
3753
3795
|
"aria-hidden": "true"
|
|
3754
3796
|
})
|
|
@@ -3758,41 +3800,41 @@ const wa = ["disabled", "onClick"], Xo = /* @__PURE__ */ _({
|
|
|
3758
3800
|
], 2));
|
|
3759
3801
|
}
|
|
3760
3802
|
});
|
|
3761
|
-
function
|
|
3803
|
+
function No(e) {
|
|
3762
3804
|
var u, S;
|
|
3763
|
-
const { get: t, initialState: r, readOptions: s, set:
|
|
3805
|
+
const { get: t, initialState: r, readOptions: s, set: a, asyncRead: l = !0, debugging: h } = e, p = h == null ? void 0 : h.log, i = () => (new Error("Trace:").stack || "").substring(7), d = ((S = (u = e.debugging) == null ? void 0 : u.log) == null ? void 0 : S.logger) || console.debug, v = p && !p.writesOnly ? () => {
|
|
3764
3806
|
const k = t();
|
|
3765
|
-
return
|
|
3766
|
-
} : t,
|
|
3767
|
-
return
|
|
3807
|
+
return d(`debugging: '${p.name}' read`, k, i()), k;
|
|
3808
|
+
} : t, x = p && !p.readsOnly ? (k) => (d(`debugging: '${p.name}' written to`, k, i()), a(k)) : a, b = l ? ys(v, r, s) : c(v), y = c(() => b.value);
|
|
3809
|
+
return y.update = x, y;
|
|
3768
3810
|
}
|
|
3769
|
-
const
|
|
3811
|
+
const _a = /* @__PURE__ */ j({
|
|
3770
3812
|
__name: "ContextManager",
|
|
3771
3813
|
setup(e, { expose: t }) {
|
|
3772
|
-
const s =
|
|
3773
|
-
(
|
|
3814
|
+
const s = jt().provides, a = Object.getOwnPropertySymbols(s).find(
|
|
3815
|
+
(b) => b.description === "ComboboxContext"
|
|
3774
3816
|
);
|
|
3775
|
-
|
|
3776
|
-
const
|
|
3777
|
-
return
|
|
3778
|
-
|
|
3817
|
+
a || console.error("FormTagsContextManager ctx key not found!");
|
|
3818
|
+
const l = _t(a || "__undefined");
|
|
3819
|
+
return l || console.error("FormTagsContextManager ctx not found!"), t({ goUp: () => {
|
|
3820
|
+
l == null || l.goToOption(1);
|
|
3779
3821
|
}, goDown: () => {
|
|
3780
|
-
|
|
3822
|
+
l == null || l.goToOption(2);
|
|
3781
3823
|
}, open: () => {
|
|
3782
|
-
|
|
3824
|
+
l && l.openCombobox();
|
|
3783
3825
|
}, close: () => {
|
|
3784
|
-
|
|
3826
|
+
l == null || l.closeCombobox();
|
|
3785
3827
|
}, selectActive: () => {
|
|
3786
|
-
|
|
3787
|
-
}, isOpen: () => (
|
|
3828
|
+
l == null || l.selectActiveOption();
|
|
3829
|
+
}, isOpen: () => (l == null ? void 0 : l.comboboxState.value) === 0 }), (b, y) => E(b.$slots, "default");
|
|
3788
3830
|
}
|
|
3789
|
-
}),
|
|
3831
|
+
}), Ta = ["for"], Fa = ["disabled", "placeholder", "onKeydown"], Ra = /* @__PURE__ */ f("span", { class: "text-xs sr-only" }, "Clear input", -1), Da = { key: 1 }, Ea = /* @__PURE__ */ f("div", { class: "text-foreground-2 text-center" }, [
|
|
3790
3832
|
/* @__PURE__ */ R(" Press "),
|
|
3791
3833
|
/* @__PURE__ */ f("strong", null, "Enter"),
|
|
3792
3834
|
/* @__PURE__ */ R(" to create tag ⚡ ")
|
|
3793
|
-
], -1),
|
|
3794
|
-
|
|
3795
|
-
],
|
|
3835
|
+
], -1), Ua = [
|
|
3836
|
+
Ea
|
|
3837
|
+
], qa = ["id"], Qo = /* @__PURE__ */ j({
|
|
3796
3838
|
__name: "Tags",
|
|
3797
3839
|
props: {
|
|
3798
3840
|
name: null,
|
|
@@ -3816,14 +3858,14 @@ const Da = /* @__PURE__ */ _({
|
|
|
3816
3858
|
},
|
|
3817
3859
|
emits: ["update:modelValue", "change", "clear"],
|
|
3818
3860
|
setup(e, { expose: t, emit: r }) {
|
|
3819
|
-
const s = (P) => P.type === "input",
|
|
3861
|
+
const s = (P) => P.type === "input", a = r, l = e, h = O(null), { focused: p } = xs(h), i = O(
|
|
3820
3862
|
null
|
|
3821
3863
|
), {
|
|
3822
|
-
coreInputClasses:
|
|
3823
|
-
coreClasses:
|
|
3824
|
-
labelClasses:
|
|
3825
|
-
title:
|
|
3826
|
-
helpTip:
|
|
3864
|
+
coreInputClasses: d,
|
|
3865
|
+
coreClasses: v,
|
|
3866
|
+
labelClasses: x,
|
|
3867
|
+
title: b,
|
|
3868
|
+
helpTip: y,
|
|
3827
3869
|
helpTipId: u,
|
|
3828
3870
|
hideHelpTip: S,
|
|
3829
3871
|
helpTipClasses: k,
|
|
@@ -3831,19 +3873,19 @@ const Da = /* @__PURE__ */ _({
|
|
|
3831
3873
|
clear: B,
|
|
3832
3874
|
value: T
|
|
3833
3875
|
} = Ze({
|
|
3834
|
-
props: le(
|
|
3835
|
-
emit:
|
|
3836
|
-
inputEl:
|
|
3876
|
+
props: le(l),
|
|
3877
|
+
emit: a,
|
|
3878
|
+
inputEl: h
|
|
3837
3879
|
// options: {
|
|
3838
3880
|
// customClear: () => (selectedItems.value = [])
|
|
3839
3881
|
// }
|
|
3840
|
-
}), A = O([]), w = O(!1),
|
|
3882
|
+
}), A = O([]), w = O(!1), D = O(!1), q = O(""), U = c({
|
|
3841
3883
|
get: () => T.value || [],
|
|
3842
3884
|
set: (P) => {
|
|
3843
3885
|
T.value = Ft(P).filter((F) => !!F.length);
|
|
3844
3886
|
}
|
|
3845
3887
|
}), Le = c(() => {
|
|
3846
|
-
switch (
|
|
3888
|
+
switch (l.size) {
|
|
3847
3889
|
case "sm":
|
|
3848
3890
|
return "h-6";
|
|
3849
3891
|
case "lg":
|
|
@@ -3854,185 +3896,185 @@ const Da = /* @__PURE__ */ _({
|
|
|
3854
3896
|
default:
|
|
3855
3897
|
return "h-8";
|
|
3856
3898
|
}
|
|
3857
|
-
}), re = c(() =>
|
|
3899
|
+
}), re = c(() => l.showClear && !!U.value.length), Me = c(() => {
|
|
3858
3900
|
const P = [
|
|
3859
|
-
|
|
3860
|
-
|
|
3901
|
+
v.value,
|
|
3902
|
+
l.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
|
|
3861
3903
|
];
|
|
3862
|
-
return re.value && ($.value ||
|
|
3904
|
+
return re.value && ($.value || l.showRequired) ? P.push("pr-14") : (re.value || $.value || l.showRequired) && P.push("pr-8"), $.value ? (P.push("border-2 border-danger text-danger-darker"), p.value && P.push("ring-1 ring-danger")) : (P.push("border-2 border-transparent"), p.value && P.push("ring-2 ring-outline-2")), P.join(" ");
|
|
3863
3905
|
}), Ae = (P) => {
|
|
3864
|
-
if (
|
|
3906
|
+
if (l.disabled)
|
|
3865
3907
|
return;
|
|
3866
|
-
const F =
|
|
3908
|
+
const F = U.value.indexOf(P);
|
|
3867
3909
|
if (F !== -1) {
|
|
3868
|
-
const
|
|
3869
|
-
|
|
3910
|
+
const _ = U.value.slice();
|
|
3911
|
+
_.splice(F, 1), U.value = _;
|
|
3870
3912
|
}
|
|
3871
3913
|
}, me = () => {
|
|
3872
3914
|
var P;
|
|
3873
|
-
(P =
|
|
3915
|
+
(P = h.value) == null || P.blur(), D.value = !1;
|
|
3874
3916
|
}, Y = (P) => {
|
|
3875
3917
|
if (P.key !== "Backspace" || q.value.length)
|
|
3876
3918
|
return;
|
|
3877
|
-
const F =
|
|
3878
|
-
F.pop(),
|
|
3919
|
+
const F = U.value.slice();
|
|
3920
|
+
F.pop(), U.value = F, D.value = !1;
|
|
3879
3921
|
}, ce = () => {
|
|
3880
|
-
var P, F,
|
|
3881
|
-
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goUp() : (
|
|
3922
|
+
var P, F, _;
|
|
3923
|
+
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goUp() : (_ = i.value) == null || _.open();
|
|
3882
3924
|
}, X = () => {
|
|
3883
|
-
var P, F,
|
|
3884
|
-
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goDown() : (
|
|
3925
|
+
var P, F, _;
|
|
3926
|
+
(P = i.value) != null && P.isOpen() ? (F = i.value) == null || F.goDown() : (_ = i.value) == null || _.open();
|
|
3885
3927
|
}, he = async () => {
|
|
3886
|
-
|
|
3887
|
-
|
|
3928
|
+
l.getAutocompleteItems && (w.value = !0, A.value = await Promise.resolve(
|
|
3929
|
+
l.getAutocompleteItems(q.value)
|
|
3888
3930
|
), w.value = !1);
|
|
3889
|
-
}, Pe = He(he, 1e3),
|
|
3931
|
+
}, Pe = He(he, 1e3), je = () => {
|
|
3890
3932
|
w.value = !0, Pe();
|
|
3891
|
-
},
|
|
3933
|
+
}, ke = (P, F) => {
|
|
3892
3934
|
var Z, ee;
|
|
3893
3935
|
if (s(P) ? P.data === " " || P.data === "," || P.data === ";" : !0) {
|
|
3894
|
-
let
|
|
3936
|
+
let we = !1;
|
|
3895
3937
|
if ((Z = i.value) != null && Z.isOpen() && A.value.length && !F)
|
|
3896
|
-
(ee = i.value) == null || ee.selectActive(),
|
|
3938
|
+
(ee = i.value) == null || ee.selectActive(), we = !0;
|
|
3897
3939
|
else {
|
|
3898
|
-
const C = q.value.trim().substring(0, q.value.length - (s(P) ? 1 : 0)), H =
|
|
3899
|
-
C.length > 0 && !H && (
|
|
3940
|
+
const C = q.value.trim().substring(0, q.value.length - (s(P) ? 1 : 0)), H = U.value.includes(C);
|
|
3941
|
+
C.length > 0 && !H && (U.value = [...U.value, C], we = !0);
|
|
3900
3942
|
}
|
|
3901
|
-
|
|
3943
|
+
we && (q.value = "", D.value = !1);
|
|
3902
3944
|
} else
|
|
3903
|
-
|
|
3945
|
+
D.value = !!q.value.length;
|
|
3904
3946
|
};
|
|
3905
|
-
return fe(
|
|
3906
|
-
var
|
|
3907
|
-
P && !F ?
|
|
3947
|
+
return fe(D, (P, F) => {
|
|
3948
|
+
var _, Z;
|
|
3949
|
+
P && !F ? l.getAutocompleteItems && ((_ = i.value) == null || _.open()) : !P && F && ((Z = i.value) == null || Z.close());
|
|
3908
3950
|
}), fe(q, () => {
|
|
3909
|
-
|
|
3951
|
+
je();
|
|
3910
3952
|
}), ae(() => {
|
|
3911
3953
|
he();
|
|
3912
|
-
}), t({ resolveAutocompleteItems: he }), (P, F) => (
|
|
3913
|
-
modelValue:
|
|
3914
|
-
"onUpdate:modelValue": F[5] || (F[5] = (
|
|
3954
|
+
}), t({ resolveAutocompleteItems: he }), (P, F) => (o(), L(n(Ts), {
|
|
3955
|
+
modelValue: U.value,
|
|
3956
|
+
"onUpdate:modelValue": F[5] || (F[5] = (_) => U.value = _),
|
|
3915
3957
|
as: "div",
|
|
3916
3958
|
multiple: "",
|
|
3917
3959
|
clearable: "",
|
|
3918
|
-
class:
|
|
3960
|
+
class: g([e.wrapperClasses])
|
|
3919
3961
|
}, {
|
|
3920
3962
|
default: M(() => [
|
|
3921
|
-
|
|
3963
|
+
V(_a, {
|
|
3922
3964
|
ref_key: "ctxManager",
|
|
3923
3965
|
ref: i
|
|
3924
3966
|
}, {
|
|
3925
3967
|
default: M(() => [
|
|
3926
3968
|
f("label", {
|
|
3927
3969
|
for: e.name,
|
|
3928
|
-
class:
|
|
3970
|
+
class: g(n(x))
|
|
3929
3971
|
}, [
|
|
3930
|
-
f("span", null,
|
|
3931
|
-
], 10,
|
|
3972
|
+
f("span", null, z(n(b)), 1)
|
|
3973
|
+
], 10, Ta),
|
|
3932
3974
|
f("div", {
|
|
3933
|
-
class:
|
|
3975
|
+
class: g(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Me.value])
|
|
3934
3976
|
}, [
|
|
3935
|
-
(
|
|
3936
|
-
key:
|
|
3937
|
-
"icon-left": e.disabled ? void 0 :
|
|
3977
|
+
(o(!0), m(K, null, G(U.value, (_) => (o(), L(Xe, {
|
|
3978
|
+
key: _,
|
|
3979
|
+
"icon-left": e.disabled ? void 0 : n(xe),
|
|
3938
3980
|
"clickable-icon": "",
|
|
3939
3981
|
size: "lg",
|
|
3940
|
-
onClickIcon: () => Ae(
|
|
3982
|
+
onClickIcon: () => Ae(_)
|
|
3941
3983
|
}, {
|
|
3942
3984
|
default: M(() => [
|
|
3943
|
-
R(
|
|
3985
|
+
R(z(_), 1)
|
|
3944
3986
|
]),
|
|
3945
3987
|
_: 2
|
|
3946
3988
|
}, 1032, ["icon-left", "onClickIcon"]))), 128)),
|
|
3947
3989
|
be(f("input", {
|
|
3948
3990
|
ref_key: "inputEl",
|
|
3949
|
-
ref:
|
|
3950
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
3991
|
+
ref: h,
|
|
3992
|
+
"onUpdate:modelValue": F[0] || (F[0] = (_) => q.value = _),
|
|
3951
3993
|
disabled: e.disabled,
|
|
3952
|
-
class:
|
|
3994
|
+
class: g(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [n(d), Le.value]]),
|
|
3953
3995
|
style: { "flex-basis": "70px", "min-width": "70px" },
|
|
3954
|
-
placeholder:
|
|
3955
|
-
onInput:
|
|
3996
|
+
placeholder: U.value.length ? void 0 : e.placeholder,
|
|
3997
|
+
onInput: ke,
|
|
3956
3998
|
onKeydown: [
|
|
3957
3999
|
ve(me, ["escape"]),
|
|
3958
|
-
F[1] || (F[1] = ve(pe((
|
|
3959
|
-
ve(
|
|
4000
|
+
F[1] || (F[1] = ve(pe((_) => ke(_, !0), ["stop", "prevent"]), ["enter"])),
|
|
4001
|
+
ve(ke, ["tab"]),
|
|
3960
4002
|
ve(Y, ["backspace"]),
|
|
3961
4003
|
ve(ce, ["arrow-up"]),
|
|
3962
4004
|
ve(X, ["arrow-down"])
|
|
3963
4005
|
],
|
|
3964
|
-
onBlur: F[2] || (F[2] = (
|
|
3965
|
-
}, null, 42,
|
|
4006
|
+
onBlur: F[2] || (F[2] = (_) => D.value = !1)
|
|
4007
|
+
}, null, 42, Fa), [
|
|
3966
4008
|
[qe, q.value]
|
|
3967
4009
|
]),
|
|
3968
|
-
re.value ? (
|
|
4010
|
+
re.value ? (o(), m("a", {
|
|
3969
4011
|
key: 0,
|
|
3970
4012
|
title: "Clear input",
|
|
3971
4013
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
3972
4014
|
onClick: F[3] || (F[3] = //@ts-ignore
|
|
3973
|
-
(...
|
|
4015
|
+
(..._) => n(B) && n(B)(..._)),
|
|
3974
4016
|
onKeydown: F[4] || (F[4] = //@ts-ignore
|
|
3975
|
-
(...
|
|
4017
|
+
(..._) => n(B) && n(B)(..._))
|
|
3976
4018
|
}, [
|
|
3977
|
-
|
|
3978
|
-
|
|
4019
|
+
Ra,
|
|
4020
|
+
V(n(xe), {
|
|
3979
4021
|
class: "h-5 w-5 text-foreground",
|
|
3980
4022
|
"aria-hidden": "true"
|
|
3981
4023
|
})
|
|
3982
4024
|
], 32)) : I("", !0),
|
|
3983
|
-
|
|
4025
|
+
n($) ? (o(), m("div", {
|
|
3984
4026
|
key: 1,
|
|
3985
|
-
class:
|
|
4027
|
+
class: g([
|
|
3986
4028
|
"pointer-events-none absolute top-[10px] right-0 flex items-center",
|
|
3987
4029
|
re.value ? "pr-8" : "pr-2"
|
|
3988
4030
|
])
|
|
3989
4031
|
}, [
|
|
3990
|
-
|
|
4032
|
+
V(n(ze), {
|
|
3991
4033
|
class: "h-4 w-4 text-danger",
|
|
3992
4034
|
"aria-hidden": "true"
|
|
3993
4035
|
})
|
|
3994
4036
|
], 2)) : I("", !0),
|
|
3995
|
-
e.showRequired && !
|
|
4037
|
+
e.showRequired && !n($) ? (o(), m("div", {
|
|
3996
4038
|
key: 2,
|
|
3997
|
-
class:
|
|
4039
|
+
class: g(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", re.value ? "pr-8" : "pr-2"])
|
|
3998
4040
|
}, " * ", 2)) : I("", !0)
|
|
3999
4041
|
], 2),
|
|
4000
|
-
|
|
4042
|
+
V(n(vt), {
|
|
4001
4043
|
leave: "transition ease-in duration-100",
|
|
4002
4044
|
"leave-from": "opacity-100",
|
|
4003
4045
|
"leave-to": "opacity-0",
|
|
4004
4046
|
class: "relative px-0.5"
|
|
4005
4047
|
}, {
|
|
4006
4048
|
default: M(() => [
|
|
4007
|
-
|
|
4049
|
+
V(n(Fs), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
|
|
4008
4050
|
default: M(() => [
|
|
4009
|
-
w.value ? (
|
|
4051
|
+
w.value ? (o(), m("div", {
|
|
4010
4052
|
key: 0,
|
|
4011
|
-
class:
|
|
4053
|
+
class: g(["px-1", A.value.length ? "mb-1" : ""])
|
|
4012
4054
|
}, [
|
|
4013
|
-
|
|
4055
|
+
V(Qe, { loading: !0 })
|
|
4014
4056
|
], 2)) : I("", !0),
|
|
4015
|
-
!A.value.length && !w.value ? (
|
|
4016
|
-
A.value.length ? (
|
|
4017
|
-
key:
|
|
4057
|
+
!A.value.length && !w.value ? (o(), m("div", Da, Ua)) : I("", !0),
|
|
4058
|
+
A.value.length ? (o(!0), m(K, { key: 2 }, G(A.value, (_) => (o(), L(n(Rs), {
|
|
4059
|
+
key: _,
|
|
4018
4060
|
as: "template",
|
|
4019
|
-
value:
|
|
4061
|
+
value: _
|
|
4020
4062
|
}, {
|
|
4021
4063
|
default: M(({ selected: Z, active: ee }) => [
|
|
4022
4064
|
f("li", {
|
|
4023
|
-
class:
|
|
4065
|
+
class: g(["relative cursor-pointer select-none py-1.5 pl-3", {
|
|
4024
4066
|
"text-primary": ee,
|
|
4025
4067
|
"text-foreground": !ee
|
|
4026
4068
|
}])
|
|
4027
4069
|
}, [
|
|
4028
4070
|
f("span", {
|
|
4029
|
-
class:
|
|
4030
|
-
},
|
|
4031
|
-
Z ? (
|
|
4071
|
+
class: g(["block truncate", { "font-medium": Z, "font-normal": !Z }])
|
|
4072
|
+
}, z(_), 3),
|
|
4073
|
+
Z ? (o(), m("span", {
|
|
4032
4074
|
key: 0,
|
|
4033
|
-
class:
|
|
4075
|
+
class: g(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-primary": ee, "text-foreground": !ee }])
|
|
4034
4076
|
}, [
|
|
4035
|
-
|
|
4077
|
+
V(n(mt), {
|
|
4036
4078
|
class: "h-5 w-5",
|
|
4037
4079
|
"aria-hidden": "true"
|
|
4038
4080
|
})
|
|
@@ -4047,11 +4089,11 @@ const Da = /* @__PURE__ */ _({
|
|
|
4047
4089
|
]),
|
|
4048
4090
|
_: 1
|
|
4049
4091
|
}),
|
|
4050
|
-
|
|
4092
|
+
n(u) && !n(S) ? (o(), m("p", {
|
|
4051
4093
|
key: 0,
|
|
4052
|
-
id:
|
|
4053
|
-
class:
|
|
4054
|
-
},
|
|
4094
|
+
id: n(u),
|
|
4095
|
+
class: g(n(k))
|
|
4096
|
+
}, z(n(y)), 11, qa)) : I("", !0)
|
|
4055
4097
|
]),
|
|
4056
4098
|
_: 1
|
|
4057
4099
|
}, 512)
|
|
@@ -4060,7 +4102,7 @@ const Da = /* @__PURE__ */ _({
|
|
|
4060
4102
|
}, 8, ["modelValue", "class"]));
|
|
4061
4103
|
}
|
|
4062
4104
|
});
|
|
4063
|
-
function
|
|
4105
|
+
function $t(e) {
|
|
4064
4106
|
const { props: t } = e, r = c(() => {
|
|
4065
4107
|
var i;
|
|
4066
4108
|
switch ((i = t.size) == null ? void 0 : i.value) {
|
|
@@ -4099,7 +4141,7 @@ function Ct(e) {
|
|
|
4099
4141
|
default:
|
|
4100
4142
|
return "w-8";
|
|
4101
4143
|
}
|
|
4102
|
-
}),
|
|
4144
|
+
}), a = c(() => {
|
|
4103
4145
|
var i;
|
|
4104
4146
|
switch ((i = t.size) == null ? void 0 : i.value) {
|
|
4105
4147
|
case "xs":
|
|
@@ -4118,7 +4160,7 @@ function Ct(e) {
|
|
|
4118
4160
|
default:
|
|
4119
4161
|
return "text-sm";
|
|
4120
4162
|
}
|
|
4121
|
-
}),
|
|
4163
|
+
}), l = c(() => {
|
|
4122
4164
|
var i;
|
|
4123
4165
|
switch ((i = t.size) == null ? void 0 : i.value) {
|
|
4124
4166
|
case "xs":
|
|
@@ -4137,15 +4179,15 @@ function Ct(e) {
|
|
|
4137
4179
|
default:
|
|
4138
4180
|
return "w-4 h-4";
|
|
4139
4181
|
}
|
|
4140
|
-
}),
|
|
4141
|
-
() => `${s.value} ${r.value} ${
|
|
4182
|
+
}), h = c(
|
|
4183
|
+
() => `${s.value} ${r.value} ${a.value}`
|
|
4142
4184
|
);
|
|
4143
|
-
return { heightClasses: r, widthClasses: s, sizeClasses:
|
|
4185
|
+
return { heightClasses: r, widthClasses: s, sizeClasses: h, iconClasses: l };
|
|
4144
4186
|
}
|
|
4145
|
-
const
|
|
4187
|
+
const Wa = {
|
|
4146
4188
|
key: 1,
|
|
4147
4189
|
class: "flex h-full w-full select-none items-center justify-center"
|
|
4148
|
-
},
|
|
4190
|
+
}, Ha = { key: 2 }, De = /* @__PURE__ */ j({
|
|
4149
4191
|
__name: "Avatar",
|
|
4150
4192
|
props: {
|
|
4151
4193
|
user: { default: null },
|
|
@@ -4156,41 +4198,41 @@ const Xa = {
|
|
|
4156
4198
|
noBg: { type: Boolean }
|
|
4157
4199
|
},
|
|
4158
4200
|
setup(e) {
|
|
4159
|
-
const t = e, { sizeClasses: r, iconClasses: s } =
|
|
4160
|
-
var
|
|
4161
|
-
if (!((
|
|
4201
|
+
const t = e, { sizeClasses: r, iconClasses: s } = $t({ props: le(t) }), a = c(() => {
|
|
4202
|
+
var b, y, u;
|
|
4203
|
+
if (!((b = t.user) != null && b.name.length))
|
|
4162
4204
|
return;
|
|
4163
|
-
const
|
|
4164
|
-
return t.size === "sm" || t.size === "xs" ?
|
|
4165
|
-
}),
|
|
4166
|
-
return (
|
|
4167
|
-
class:
|
|
4205
|
+
const d = t.user.name.split(" "), v = ((y = d[0]) == null ? void 0 : y[0]) || "", x = ((u = d[1]) == null ? void 0 : u[0]) || "";
|
|
4206
|
+
return t.size === "sm" || t.size === "xs" ? v : v + x;
|
|
4207
|
+
}), l = c(() => t.noBorder ? "" : "border-2 border-foundation"), h = c(() => t.noBg ? "" : "bg-primary"), p = c(() => t.hoverEffect ? "hover:border-primary focus:border-primary active:scale-95" : ""), i = c(() => t.active ? "border-primary" : "");
|
|
4208
|
+
return (d, v) => (o(), m("div", {
|
|
4209
|
+
class: g([
|
|
4168
4210
|
"text-foreground-on-primary flex shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold uppercase transition",
|
|
4169
|
-
|
|
4170
|
-
d.value,
|
|
4171
|
-
n.value,
|
|
4211
|
+
n(r),
|
|
4172
4212
|
h.value,
|
|
4213
|
+
l.value,
|
|
4214
|
+
p.value,
|
|
4173
4215
|
i.value
|
|
4174
4216
|
])
|
|
4175
4217
|
}, [
|
|
4176
|
-
|
|
4177
|
-
var
|
|
4218
|
+
E(d.$slots, "default", {}, () => {
|
|
4219
|
+
var x;
|
|
4178
4220
|
return [
|
|
4179
|
-
(
|
|
4221
|
+
(x = e.user) != null && x.avatar ? (o(), m("div", {
|
|
4180
4222
|
key: 0,
|
|
4181
4223
|
class: "h-full w-full bg-cover bg-center bg-no-repeat",
|
|
4182
4224
|
style: ne({ backgroundImage: `url('${e.user.avatar}')` })
|
|
4183
|
-
}, null, 4)) :
|
|
4184
|
-
|
|
4185
|
-
class:
|
|
4225
|
+
}, null, 4)) : a.value ? (o(), m("div", Wa, z(a.value), 1)) : (o(), m("div", Ha, [
|
|
4226
|
+
V(n(Kt), {
|
|
4227
|
+
class: g(n(s))
|
|
4186
4228
|
}, null, 8, ["class"])
|
|
4187
4229
|
]))
|
|
4188
4230
|
];
|
|
4189
4231
|
}),
|
|
4190
|
-
|
|
4232
|
+
E(d.$slots, "absolute-anchor")
|
|
4191
4233
|
], 2));
|
|
4192
4234
|
}
|
|
4193
|
-
}),
|
|
4235
|
+
}), Jo = /* @__PURE__ */ j({
|
|
4194
4236
|
__name: "AvatarGroup",
|
|
4195
4237
|
props: {
|
|
4196
4238
|
users: { default: () => [] },
|
|
@@ -4199,44 +4241,44 @@ const Xa = {
|
|
|
4199
4241
|
maxCount: { default: void 0 }
|
|
4200
4242
|
},
|
|
4201
4243
|
setup(e) {
|
|
4202
|
-
const t = e, r = O(null), s = O(null), { hiddenItemCount:
|
|
4244
|
+
const t = e, r = O(null), s = O(null), { hiddenItemCount: a } = kt({
|
|
4203
4245
|
elementToWatchForChanges: r,
|
|
4204
4246
|
itemContainer: s,
|
|
4205
4247
|
trackResize: !0,
|
|
4206
4248
|
trackMutations: !0
|
|
4207
|
-
}), { heightClasses:
|
|
4208
|
-
() =>
|
|
4249
|
+
}), { heightClasses: l } = $t({ props: le(t) }), h = c(() => t.maxCount ? Math.max(t.users.length - t.maxCount, 0) : 0), p = c(
|
|
4250
|
+
() => a.value + h.value
|
|
4209
4251
|
), i = c(
|
|
4210
4252
|
() => t.maxCount ? t.users.slice(0, t.maxCount) : t.users
|
|
4211
4253
|
);
|
|
4212
|
-
return (
|
|
4254
|
+
return (d, v) => (o(), m("div", {
|
|
4213
4255
|
ref_key: "elementToWatchForChanges",
|
|
4214
4256
|
ref: r,
|
|
4215
|
-
class:
|
|
4257
|
+
class: g(`flex ${e.overlap ? "-space-x-2" : ""}`)
|
|
4216
4258
|
}, [
|
|
4217
4259
|
f("div", {
|
|
4218
4260
|
ref_key: "itemContainer",
|
|
4219
4261
|
ref: s,
|
|
4220
|
-
class:
|
|
4262
|
+
class: g(`flex flex-wrap overflow-hidden ${e.overlap ? "-space-x-2 " : ""} ${n(l)}`)
|
|
4221
4263
|
}, [
|
|
4222
|
-
(
|
|
4223
|
-
key:
|
|
4224
|
-
user:
|
|
4264
|
+
(o(!0), m(K, null, G(i.value, (x, b) => (o(), L(De, {
|
|
4265
|
+
key: x.id || b,
|
|
4266
|
+
user: x,
|
|
4225
4267
|
size: e.size
|
|
4226
4268
|
}, null, 8, ["user", "size"]))), 128))
|
|
4227
4269
|
], 2),
|
|
4228
|
-
|
|
4270
|
+
p.value ? (o(), L(De, {
|
|
4229
4271
|
key: 0,
|
|
4230
4272
|
size: e.size
|
|
4231
4273
|
}, {
|
|
4232
4274
|
default: M(() => [
|
|
4233
|
-
R(" +" +
|
|
4275
|
+
R(" +" + z(p.value), 1)
|
|
4234
4276
|
]),
|
|
4235
4277
|
_: 1
|
|
4236
4278
|
}, 8, ["size"])) : I("", !0)
|
|
4237
4279
|
], 2));
|
|
4238
4280
|
}
|
|
4239
|
-
}),
|
|
4281
|
+
}), Ka = /* @__PURE__ */ j({
|
|
4240
4282
|
__name: "Icon",
|
|
4241
4283
|
props: {
|
|
4242
4284
|
loading: { type: Boolean, default: !0 },
|
|
@@ -4258,17 +4300,17 @@ const Xa = {
|
|
|
4258
4300
|
}
|
|
4259
4301
|
return s.join(" ");
|
|
4260
4302
|
});
|
|
4261
|
-
return (s,
|
|
4262
|
-
class:
|
|
4303
|
+
return (s, a) => (o(), L(n(dt), {
|
|
4304
|
+
class: g(r.value)
|
|
4263
4305
|
}, null, 8, ["class"]));
|
|
4264
4306
|
}
|
|
4265
|
-
}),
|
|
4307
|
+
}), Ga = { class: "flex flex-col items-center space-y-2" }, Xa = {
|
|
4266
4308
|
key: 1,
|
|
4267
4309
|
class: "relative group"
|
|
4268
|
-
},
|
|
4310
|
+
}, Za = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, Na = {
|
|
4269
4311
|
key: 2,
|
|
4270
4312
|
class: "w-full text-center text-danger text-sm"
|
|
4271
|
-
},
|
|
4313
|
+
}, Yo = /* @__PURE__ */ j({
|
|
4272
4314
|
__name: "AvatarEditable",
|
|
4273
4315
|
props: nt({
|
|
4274
4316
|
modelValue: null,
|
|
@@ -4284,37 +4326,37 @@ const Xa = {
|
|
|
4284
4326
|
}),
|
|
4285
4327
|
emits: nt(["save", "update:modelValue"], ["update:editMode"]),
|
|
4286
4328
|
setup(e, { expose: t, emit: r }) {
|
|
4287
|
-
const s =
|
|
4329
|
+
const s = Tt({
|
|
4288
4330
|
loader: () => import("./AvatarEditor-ce4e7960.js"),
|
|
4289
|
-
loadingComponent:
|
|
4331
|
+
loadingComponent: Ka,
|
|
4290
4332
|
delay: 100
|
|
4291
|
-
}),
|
|
4292
|
-
validateOnMount:
|
|
4293
|
-
validateOnValueUpdate:
|
|
4294
|
-
initialValue:
|
|
4295
|
-
}), i = it(e, "editMode", { local: !0 }),
|
|
4333
|
+
}), a = r, l = e, { value: h, errorMessage: p } = Se(l.name, l.rules, {
|
|
4334
|
+
validateOnMount: l.validateOnMount,
|
|
4335
|
+
validateOnValueUpdate: l.validateOnValueUpdate,
|
|
4336
|
+
initialValue: l.modelValue || void 0
|
|
4337
|
+
}), i = it(e, "editMode", { local: !0 }), d = c(
|
|
4296
4338
|
() => ({
|
|
4297
|
-
avatar:
|
|
4298
|
-
name:
|
|
4339
|
+
avatar: h.value,
|
|
4340
|
+
name: l.placeholder
|
|
4299
4341
|
})
|
|
4300
|
-
),
|
|
4301
|
-
|
|
4342
|
+
), v = (y) => {
|
|
4343
|
+
h.value = y, a("save", y);
|
|
4302
4344
|
};
|
|
4303
|
-
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (
|
|
4304
|
-
i.value ? (
|
|
4345
|
+
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (y, u) => (o(), m("div", Ga, [
|
|
4346
|
+
i.value ? (o(), L(n(s), {
|
|
4305
4347
|
key: 0,
|
|
4306
|
-
user:
|
|
4348
|
+
user: d.value,
|
|
4307
4349
|
disabled: e.disabled,
|
|
4308
4350
|
size: e.size,
|
|
4309
4351
|
onCancel: u[0] || (u[0] = (S) => i.value = !1),
|
|
4310
|
-
onSave:
|
|
4311
|
-
}, null, 8, ["user", "disabled", "size"])) : (
|
|
4312
|
-
|
|
4313
|
-
user:
|
|
4352
|
+
onSave: v
|
|
4353
|
+
}, null, 8, ["user", "disabled", "size"])) : (o(), m("div", Xa, [
|
|
4354
|
+
V(De, {
|
|
4355
|
+
user: d.value,
|
|
4314
4356
|
size: e.size
|
|
4315
4357
|
}, null, 8, ["user", "size"]),
|
|
4316
|
-
f("div",
|
|
4317
|
-
|
|
4358
|
+
f("div", Za, [
|
|
4359
|
+
V(oe, {
|
|
4318
4360
|
disabled: e.disabled,
|
|
4319
4361
|
color: "secondary",
|
|
4320
4362
|
onClick: u[1] || (u[1] = (S) => i.value = !0)
|
|
@@ -4326,7 +4368,7 @@ const Xa = {
|
|
|
4326
4368
|
}, 8, ["disabled"])
|
|
4327
4369
|
])
|
|
4328
4370
|
])),
|
|
4329
|
-
|
|
4371
|
+
n(p) ? (o(), m("div", Na, z(n(p)), 1)) : I("", !0)
|
|
4330
4372
|
]));
|
|
4331
4373
|
}
|
|
4332
4374
|
});
|
|
@@ -4339,26 +4381,26 @@ class ue extends Error {
|
|
|
4339
4381
|
* Default message if none is passed
|
|
4340
4382
|
*/
|
|
4341
4383
|
se(ue, "defaultMessage", "Unexpected error occurred");
|
|
4342
|
-
class
|
|
4384
|
+
class Qa extends ue {
|
|
4343
4385
|
}
|
|
4344
|
-
se(
|
|
4345
|
-
class
|
|
4386
|
+
se(Qa, "defaultMessage", "An unexpected logic error occurred!");
|
|
4387
|
+
class Ja extends ue {
|
|
4346
4388
|
}
|
|
4347
|
-
se(
|
|
4348
|
-
class
|
|
4389
|
+
se(Ja, "defaultMessage", "Attempting to access an uninitialized resource");
|
|
4390
|
+
class Ya extends ue {
|
|
4349
4391
|
}
|
|
4350
|
-
se(
|
|
4351
|
-
class
|
|
4392
|
+
se(Ya, "defaultMessage", "getCurrentInstance() returned null. Method must be called at the top of a setup function");
|
|
4393
|
+
class eo extends ue {
|
|
4352
4394
|
}
|
|
4353
|
-
se(
|
|
4395
|
+
se(eo, "defaultMessage", "Operation not supported in current (server or client) environment");
|
|
4354
4396
|
var Je = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(Je || {});
|
|
4355
|
-
function
|
|
4397
|
+
function to(e, t) {
|
|
4356
4398
|
const r = Rt(
|
|
4357
4399
|
Object.values(Je),
|
|
4358
4400
|
t
|
|
4359
4401
|
);
|
|
4360
|
-
for (const
|
|
4361
|
-
switch (
|
|
4402
|
+
for (const l of r)
|
|
4403
|
+
switch (l) {
|
|
4362
4404
|
case "audio/*":
|
|
4363
4405
|
if (e.type.startsWith("audio"))
|
|
4364
4406
|
return !0;
|
|
@@ -4372,23 +4414,23 @@ function ao(e, t) {
|
|
|
4372
4414
|
return !0;
|
|
4373
4415
|
break;
|
|
4374
4416
|
}
|
|
4375
|
-
const s = Dt(t, r),
|
|
4376
|
-
if (!
|
|
4377
|
-
return new
|
|
4378
|
-
for (const
|
|
4379
|
-
if (
|
|
4417
|
+
const s = Dt(t, r), a = so(e.name);
|
|
4418
|
+
if (!a)
|
|
4419
|
+
return new It();
|
|
4420
|
+
for (const l of s)
|
|
4421
|
+
if (l.toLowerCase() === a.toLowerCase())
|
|
4380
4422
|
return !0;
|
|
4381
|
-
return new
|
|
4423
|
+
return new St();
|
|
4382
4424
|
}
|
|
4383
|
-
function
|
|
4425
|
+
function so(e) {
|
|
4384
4426
|
const t = e.split(".").pop() || null;
|
|
4385
4427
|
return t ? `.${t}` : null;
|
|
4386
4428
|
}
|
|
4387
|
-
function
|
|
4429
|
+
function no(e) {
|
|
4388
4430
|
return e.startsWith(".") || Object.values(Je).includes(e);
|
|
4389
4431
|
}
|
|
4390
4432
|
function rt(e) {
|
|
4391
|
-
const t = (
|
|
4433
|
+
const t = (l) => parseFloat(l.toFixed(2)).toString();
|
|
4392
4434
|
if (e < 1024)
|
|
4393
4435
|
return `${e}bytes`;
|
|
4394
4436
|
const r = e / 1024;
|
|
@@ -4397,10 +4439,10 @@ function rt(e) {
|
|
|
4397
4439
|
const s = r / 1024;
|
|
4398
4440
|
if (s < 1024)
|
|
4399
4441
|
return `${t(s)}MB`;
|
|
4400
|
-
const
|
|
4401
|
-
return `${t(
|
|
4442
|
+
const a = s / 1024;
|
|
4443
|
+
return `${t(a)}GB`;
|
|
4402
4444
|
}
|
|
4403
|
-
function
|
|
4445
|
+
function lo(e) {
|
|
4404
4446
|
const t = {
|
|
4405
4447
|
name: e.name,
|
|
4406
4448
|
lastModified: e.lastModified,
|
|
@@ -4409,69 +4451,69 @@ function io(e) {
|
|
|
4409
4451
|
};
|
|
4410
4452
|
return ds(JSON.stringify(t));
|
|
4411
4453
|
}
|
|
4412
|
-
class $t extends ue {
|
|
4413
|
-
}
|
|
4414
|
-
se($t, "defaultMessage", "The selected file has a missing extension");
|
|
4415
4454
|
class It extends ue {
|
|
4416
4455
|
}
|
|
4417
|
-
se(It, "defaultMessage", "The selected file
|
|
4418
|
-
|
|
4419
|
-
|
|
4456
|
+
se(It, "defaultMessage", "The selected file has a missing extension");
|
|
4457
|
+
class St extends ue {
|
|
4458
|
+
}
|
|
4459
|
+
se(St, "defaultMessage", "The selected file type is forbidden");
|
|
4460
|
+
var ao = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2] = "Failure", e))(ao || {});
|
|
4461
|
+
function oo(e) {
|
|
4420
4462
|
if (!e)
|
|
4421
4463
|
return;
|
|
4422
|
-
const t = e.split(",").map((r) =>
|
|
4464
|
+
const t = e.split(",").map((r) => no(r) ? r : null).filter((r) => r !== null);
|
|
4423
4465
|
return t.length ? t : void 0;
|
|
4424
4466
|
}
|
|
4425
|
-
function
|
|
4426
|
-
const { disabled: t, accept: r, multiple: s, sizeLimit:
|
|
4427
|
-
const
|
|
4428
|
-
for (const
|
|
4429
|
-
const
|
|
4430
|
-
if (!
|
|
4431
|
-
if (
|
|
4467
|
+
function ro(e) {
|
|
4468
|
+
const { disabled: t, accept: r, multiple: s, sizeLimit: a, countLimit: l } = e, h = c(() => oo(n(r))), p = (i) => {
|
|
4469
|
+
const d = [], v = h.value;
|
|
4470
|
+
for (const x of i) {
|
|
4471
|
+
const b = lo(x), y = n(s) ? n(l) : 1;
|
|
4472
|
+
if (!d.find((u) => u.id === b)) {
|
|
4473
|
+
if (y && d.length >= y)
|
|
4432
4474
|
break;
|
|
4433
|
-
if (
|
|
4434
|
-
const u =
|
|
4475
|
+
if (v) {
|
|
4476
|
+
const u = to(x, v);
|
|
4435
4477
|
if (u instanceof Error) {
|
|
4436
|
-
|
|
4437
|
-
file:
|
|
4438
|
-
id:
|
|
4478
|
+
d.push({
|
|
4479
|
+
file: x,
|
|
4480
|
+
id: b,
|
|
4439
4481
|
error: u
|
|
4440
4482
|
});
|
|
4441
4483
|
continue;
|
|
4442
4484
|
}
|
|
4443
4485
|
}
|
|
4444
|
-
if (
|
|
4445
|
-
|
|
4446
|
-
file:
|
|
4447
|
-
id:
|
|
4448
|
-
error: new
|
|
4486
|
+
if (x.size > n(a)) {
|
|
4487
|
+
d.push({
|
|
4488
|
+
file: x,
|
|
4489
|
+
id: b,
|
|
4490
|
+
error: new Bt(
|
|
4449
4491
|
`The selected file's size (${rt(
|
|
4450
|
-
|
|
4451
|
-
)}) is too big (over ${rt(
|
|
4492
|
+
x.size
|
|
4493
|
+
)}) is too big (over ${rt(n(a))})`
|
|
4452
4494
|
)
|
|
4453
4495
|
});
|
|
4454
4496
|
continue;
|
|
4455
4497
|
}
|
|
4456
|
-
|
|
4498
|
+
d.push({ file: x, id: b, error: null });
|
|
4457
4499
|
}
|
|
4458
4500
|
}
|
|
4459
|
-
return
|
|
4501
|
+
return d;
|
|
4460
4502
|
};
|
|
4461
4503
|
return {
|
|
4462
4504
|
/**
|
|
4463
4505
|
* Validate incoming files and build UploadableFileItem structs out of them
|
|
4464
4506
|
*/
|
|
4465
4507
|
buildUploadableFiles: (i) => {
|
|
4466
|
-
if (!
|
|
4467
|
-
return
|
|
4508
|
+
if (!n(t || !1))
|
|
4509
|
+
return p(i);
|
|
4468
4510
|
}
|
|
4469
4511
|
};
|
|
4470
4512
|
}
|
|
4471
|
-
class
|
|
4513
|
+
class Bt extends ue {
|
|
4472
4514
|
}
|
|
4473
|
-
se(
|
|
4474
|
-
const
|
|
4515
|
+
se(Bt, "defaultMessage", "The selected file's size is too large");
|
|
4516
|
+
const io = ["accept", "multiple"], er = /* @__PURE__ */ j({
|
|
4475
4517
|
__name: "Zone",
|
|
4476
4518
|
props: {
|
|
4477
4519
|
accept: null,
|
|
@@ -4482,114 +4524,114 @@ const po = ["accept", "multiple"], lr = /* @__PURE__ */ _({
|
|
|
4482
4524
|
},
|
|
4483
4525
|
emits: ["files-selected"],
|
|
4484
4526
|
setup(e, { expose: t, emit: r }) {
|
|
4485
|
-
const s = r,
|
|
4486
|
-
sizeLimit: c(() =>
|
|
4487
|
-
countLimit: c(() =>
|
|
4488
|
-
accept: c(() =>
|
|
4489
|
-
multiple: c(() =>
|
|
4490
|
-
disabled: c(() =>
|
|
4491
|
-
}), i = (
|
|
4492
|
-
const
|
|
4493
|
-
|
|
4494
|
-
}, { isOverDropZone:
|
|
4495
|
-
|
|
4496
|
-
}),
|
|
4497
|
-
const
|
|
4498
|
-
if (!
|
|
4527
|
+
const s = r, a = e, l = O(null), h = O(null), { buildUploadableFiles: p } = ro({
|
|
4528
|
+
sizeLimit: c(() => a.sizeLimit),
|
|
4529
|
+
countLimit: c(() => a.countLimit),
|
|
4530
|
+
accept: c(() => a.accept),
|
|
4531
|
+
multiple: c(() => a.multiple),
|
|
4532
|
+
disabled: c(() => a.disabled)
|
|
4533
|
+
}), i = (b) => {
|
|
4534
|
+
const y = p(b);
|
|
4535
|
+
y != null && y.length && s("files-selected", { files: y });
|
|
4536
|
+
}, { isOverDropZone: d } = ks(l, (b) => {
|
|
4537
|
+
b != null && b.length && i(b);
|
|
4538
|
+
}), v = () => {
|
|
4539
|
+
const b = h.value;
|
|
4540
|
+
if (!b)
|
|
4499
4541
|
return;
|
|
4500
|
-
const
|
|
4501
|
-
|
|
4502
|
-
},
|
|
4503
|
-
var
|
|
4504
|
-
(
|
|
4542
|
+
const y = [...b.files || []];
|
|
4543
|
+
b.value = "", y.length && i(y);
|
|
4544
|
+
}, x = () => {
|
|
4545
|
+
var b;
|
|
4546
|
+
(b = h.value) == null || b.click();
|
|
4505
4547
|
};
|
|
4506
4548
|
return t({
|
|
4507
|
-
triggerPicker:
|
|
4508
|
-
}), (
|
|
4549
|
+
triggerPicker: x
|
|
4550
|
+
}), (b, y) => (o(), m("div", {
|
|
4509
4551
|
ref_key: "fileUploadZone",
|
|
4510
|
-
ref:
|
|
4552
|
+
ref: l,
|
|
4511
4553
|
class: "file-upload-zone"
|
|
4512
4554
|
}, [
|
|
4513
|
-
|
|
4514
|
-
isDraggingFiles:
|
|
4515
|
-
openFilePicker:
|
|
4516
|
-
activatorOn: { click:
|
|
4555
|
+
E(b.$slots, "default", {
|
|
4556
|
+
isDraggingFiles: n(d),
|
|
4557
|
+
openFilePicker: x,
|
|
4558
|
+
activatorOn: { click: x }
|
|
4517
4559
|
}),
|
|
4518
4560
|
f("input", {
|
|
4519
4561
|
ref_key: "fileInput",
|
|
4520
|
-
ref:
|
|
4562
|
+
ref: h,
|
|
4521
4563
|
type: "file",
|
|
4522
4564
|
class: "hidden",
|
|
4523
4565
|
accept: e.accept,
|
|
4524
4566
|
multiple: e.multiple,
|
|
4525
|
-
onClick:
|
|
4567
|
+
onClick: y[0] || (y[0] = pe(() => {
|
|
4526
4568
|
}, ["stop"])),
|
|
4527
|
-
onChange:
|
|
4528
|
-
}, null, 40,
|
|
4569
|
+
onChange: v
|
|
4570
|
+
}, null, 40, io)
|
|
4529
4571
|
], 512));
|
|
4530
4572
|
}
|
|
4531
4573
|
});
|
|
4532
4574
|
export {
|
|
4533
4575
|
ue as BaseError,
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4576
|
+
ao as BlobUploadStatus,
|
|
4577
|
+
Zo as CommonAlert,
|
|
4578
|
+
So as CommonAnimationInstructional,
|
|
4537
4579
|
Xe as CommonBadge,
|
|
4538
4580
|
Qe as CommonLoadingBar,
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4581
|
+
Ka as CommonLoadingIcon,
|
|
4582
|
+
Io as CommonStepsBullet,
|
|
4583
|
+
$o as CommonStepsNumber,
|
|
4542
4584
|
Us as CommonTextLink,
|
|
4543
|
-
|
|
4585
|
+
Ya as ComposableInvokedOutOfScopeError,
|
|
4544
4586
|
oe as FormButton,
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4587
|
+
Bo as FormCardButton,
|
|
4588
|
+
zo as FormCheckbox,
|
|
4589
|
+
jo as FormClipboardInput,
|
|
4590
|
+
er as FormFileUploadZone,
|
|
4591
|
+
Vo as FormRadio,
|
|
4592
|
+
Ao as FormSelectBadges,
|
|
4593
|
+
Ct as FormSelectBase,
|
|
4594
|
+
Mo as FormSelectSourceApps,
|
|
4595
|
+
Po as FormSwitch,
|
|
4596
|
+
Qo as FormTags,
|
|
4597
|
+
Oo as FormTextArea,
|
|
4598
|
+
bl as FormTextInput,
|
|
4599
|
+
Co as GlobalToastRenderer,
|
|
4558
4600
|
de as GridListToggleValue,
|
|
4559
4601
|
Re as HorizontalDirection,
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4602
|
+
Go as InfiniteLoading,
|
|
4603
|
+
Ro as LayoutDialog,
|
|
4604
|
+
Do as LayoutDialogSection,
|
|
4605
|
+
Eo as LayoutDisclosure,
|
|
4606
|
+
Uo as LayoutGridListToggle,
|
|
4607
|
+
Wo as LayoutMenu,
|
|
4608
|
+
Xo as LayoutPanel,
|
|
4609
|
+
Ko as LayoutTable,
|
|
4610
|
+
Ho as LayoutTabs,
|
|
4611
|
+
Qa as LogicError,
|
|
4612
|
+
Ie as ModifierKeys,
|
|
4613
|
+
Kl as SourceAppBadge,
|
|
4614
|
+
$e as TailwindBreakpoints,
|
|
4615
|
+
ha as ThrottleOrDebounce,
|
|
4616
|
+
Ce as ToastNotificationType,
|
|
4617
|
+
Ja as UninitializedResourceAccessError,
|
|
4576
4618
|
Je as UniqueFileTypeSpecifier,
|
|
4577
|
-
|
|
4619
|
+
eo as UnsupportedEnvironmentError,
|
|
4578
4620
|
De as UserAvatar,
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4621
|
+
Yo as UserAvatarEditable,
|
|
4622
|
+
Jo as UserAvatarGroup,
|
|
4623
|
+
Lo as ValidationHelpers,
|
|
4582
4624
|
Fe as clientOs,
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4625
|
+
_o as getKeyboardShortcutTitle,
|
|
4626
|
+
bt as keyboardClick,
|
|
4627
|
+
To as onKeyboardShortcut,
|
|
4586
4628
|
rt as prettyFileSize,
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4629
|
+
Fo as useFormCheckboxModel,
|
|
4630
|
+
wt as useFormSelectChildInternals,
|
|
4631
|
+
qo as useOnBeforeWindowUnload,
|
|
4632
|
+
ga as useResponsiveHorizontalDirectionCalculation,
|
|
4633
|
+
va as useWindowResizeHandler,
|
|
4634
|
+
kt as useWrappingContainerHiddenCount,
|
|
4635
|
+
No as writableAsyncComputed
|
|
4594
4636
|
};
|
|
4595
4637
|
//# sourceMappingURL=lib.js.map
|