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