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