@speckle/ui-components 2.14.5 → 2.14.7-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form/Button.vue.d.ts +15 -0
- package/dist/components/layout/Dialog.vue.d.ts +33 -0
- package/dist/components/layout/Disclosure.vue.d.ts +35 -0
- package/dist/components/layout/GridListToggle.vue.d.ts +17 -0
- package/dist/components/layout/Menu.vue.d.ts +25 -0
- package/dist/components/layout/Tabs.vue.d.ts +14 -0
- package/dist/composables/common/window.d.ts +26 -0
- package/dist/helpers/layout/components.d.ts +13 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +10 -2
- package/dist/lib.js +1240 -837
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/lib.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as M, resolveDynamicComponent as
|
|
2
|
-
import { isObjectLike as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { directive as
|
|
12
|
-
const
|
|
1
|
+
import { defineComponent as M, resolveDynamicComponent as U, computed as i, openBlock as l, createBlock as j, unref as t, normalizeClass as x, withCtx as L, createCommentVNode as S, renderSlot as z, createTextVNode as T, createElementBlock as m, createElementVNode as c, createVNode as B, Transition as ue, toDisplayString as $, toRefs as Z, Fragment as W, renderList as H, pushScopeId as we, popScopeId as $e, ref as A, mergeProps as ce, onMounted as se, withDirectives as ee, isRef as ne, vModelText as _e, useSlots as Fe, vModelDynamic as ze, watch as Y, withModifiers as Se, normalizeStyle as ae, onBeforeUnmount as Ie } from "vue";
|
|
2
|
+
import { isObjectLike as xe, clamp as ke, isString as te, isUndefined as X, isArray as E, debounce as Be, throttle as Ee } from "lodash";
|
|
3
|
+
import { ArrowPathIcon as We, ChevronUpIcon as Le, ChevronDownIcon as Ue, XMarkIcon as qe, MagnifyingGlassIcon as He, CheckIcon as Ge, Bars3Icon as Ke, Squares2X2Icon as Xe } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { CheckCircleIcon as Ne, XCircleIcon as Je, ExclamationCircleIcon as Qe, InformationCircleIcon as Ye, XMarkIcon as Ze } from "@heroicons/vue/24/outline";
|
|
5
|
+
import { XMarkIcon as de, CheckIcon as et, CheckCircleIcon as tt, ExclamationCircleIcon as Ve, EnvelopeIcon as st, KeyIcon as nt } from "@heroicons/vue/20/solid";
|
|
6
|
+
import { useField as fe } from "vee-validate";
|
|
7
|
+
import { nanoid as pe } from "nanoid";
|
|
8
|
+
import { isNullOrUndefined as lt, SourceApps as at, getClientOperatingSystem as ot, OperatingSystem as oe } from "@speckle/shared";
|
|
9
|
+
import { useResizeObserver as rt, useMutationObserver as it, onKeyDown as ut, isClient as je } from "@vueuse/core";
|
|
10
|
+
import { Listbox as ct, ListboxLabel as dt, ListboxButton as ft, ListboxOptions as pt, ListboxOption as ht, TransitionRoot as mt, Dialog as gt, TransitionChild as Ce, DialogPanel as yt, Disclosure as vt, DisclosureButton as bt, DisclosurePanel as xt, Menu as kt, MenuButton as Ct, MenuItems as wt, MenuItem as $t } from "@headlessui/vue";
|
|
11
|
+
import { directive as _t } from "vue-tippy";
|
|
12
|
+
const St = {
|
|
13
13
|
key: 2,
|
|
14
14
|
style: { margin: "0 !important", width: "0.01px" }
|
|
15
|
-
},
|
|
15
|
+
}, It = /* @__PURE__ */ M({
|
|
16
16
|
__name: "Button",
|
|
17
17
|
props: {
|
|
18
18
|
/**
|
|
@@ -129,129 +129,136 @@ const at = {
|
|
|
129
129
|
linkComponent: {
|
|
130
130
|
type: [Object, Function],
|
|
131
131
|
default: null
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* Disables the button and shows a spinning loader
|
|
135
|
+
*/
|
|
136
|
+
loading: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !1
|
|
132
139
|
}
|
|
133
140
|
},
|
|
134
141
|
emits: ["click"],
|
|
135
142
|
setup(e, { emit: s }) {
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
139
|
-
}),
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
const n = e, o = U("NuxtLink"), a = U("RouterLink"), r = i(() => n.linkComponent ? n.linkComponent : n.external ? "a" : xe(o) ? o : xe(a) ? a : "a"), d = i(() => {
|
|
144
|
+
if (!n.to)
|
|
145
|
+
return n.submit ? "submit" : "button";
|
|
146
|
+
}), u = i(() => n.disabled || n.loading), y = i(() => n.loading ? We : n.iconLeft), p = i(() => {
|
|
147
|
+
const f = [];
|
|
148
|
+
if (f.push("border-2"), u.value)
|
|
149
|
+
f.push(
|
|
150
|
+
n.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
144
151
|
);
|
|
145
152
|
else
|
|
146
|
-
switch (
|
|
153
|
+
switch (n.color) {
|
|
147
154
|
case "invert":
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
f.push(
|
|
156
|
+
n.outlined ? "border-foundation dark:border-foreground" : "bg-foundation dark:bg-foreground border-transparent"
|
|
150
157
|
);
|
|
151
158
|
break;
|
|
152
159
|
case "card":
|
|
153
|
-
|
|
154
|
-
|
|
160
|
+
f.push(
|
|
161
|
+
n.outlined ? "border-foundation-2 shadow" : "bg-foundation-2 dark:bg-foundation-2 border-foundation shadow"
|
|
155
162
|
);
|
|
156
163
|
break;
|
|
157
164
|
case "danger":
|
|
158
|
-
|
|
165
|
+
f.push(n.outlined ? "border-danger" : "bg-danger border-danger");
|
|
159
166
|
break;
|
|
160
167
|
case "secondary":
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
f.push(
|
|
169
|
+
n.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
|
|
163
170
|
);
|
|
164
171
|
break;
|
|
165
172
|
case "warning":
|
|
166
|
-
|
|
173
|
+
f.push(n.outlined ? "border-warning" : "bg-warning border-warning");
|
|
167
174
|
break;
|
|
168
175
|
case "success":
|
|
169
|
-
|
|
176
|
+
f.push(n.outlined ? "border-success" : "bg-success border-success");
|
|
170
177
|
break;
|
|
171
178
|
case "default":
|
|
172
179
|
default:
|
|
173
|
-
|
|
174
|
-
|
|
180
|
+
f.push(
|
|
181
|
+
n.outlined ? "border-primary hover:border-primary-focus" : "bg-primary hover:bg-primary-focus border-transparent"
|
|
175
182
|
);
|
|
176
183
|
break;
|
|
177
184
|
}
|
|
178
|
-
return
|
|
179
|
-
}),
|
|
180
|
-
const
|
|
181
|
-
if (!
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
(
|
|
185
|
+
return f.join(" ");
|
|
186
|
+
}), w = i(() => {
|
|
187
|
+
const f = [];
|
|
188
|
+
if (!n.text && !n.link)
|
|
189
|
+
if (u.value)
|
|
190
|
+
f.push(
|
|
191
|
+
(n.outlined, "text-foreground-disabled")
|
|
185
192
|
);
|
|
186
193
|
else
|
|
187
|
-
switch (
|
|
194
|
+
switch (n.color) {
|
|
188
195
|
case "invert":
|
|
189
|
-
|
|
190
|
-
|
|
196
|
+
f.push(
|
|
197
|
+
n.outlined ? "text-foundation dark:text-foreground" : "text-primary"
|
|
191
198
|
);
|
|
192
199
|
break;
|
|
193
200
|
case "card":
|
|
194
|
-
|
|
201
|
+
f.push((n.outlined, "text-foreground"));
|
|
195
202
|
break;
|
|
196
203
|
case "danger":
|
|
197
|
-
|
|
198
|
-
|
|
204
|
+
f.push(
|
|
205
|
+
n.outlined ? "text-danger" : "text-foundation dark:text-foreground"
|
|
199
206
|
);
|
|
200
207
|
break;
|
|
201
208
|
case "warning":
|
|
202
|
-
|
|
203
|
-
|
|
209
|
+
f.push(
|
|
210
|
+
n.outlined ? "text-warning" : "text-foundation dark:text-foreground"
|
|
204
211
|
);
|
|
205
212
|
break;
|
|
206
213
|
case "success":
|
|
207
|
-
|
|
208
|
-
|
|
214
|
+
f.push(
|
|
215
|
+
n.outlined ? "text-success" : "text-foundation dark:text-foreground"
|
|
209
216
|
);
|
|
210
217
|
break;
|
|
211
218
|
case "secondary":
|
|
212
|
-
|
|
213
|
-
(
|
|
219
|
+
f.push(
|
|
220
|
+
(n.outlined, "text-foreground hover:text-primary")
|
|
214
221
|
);
|
|
215
222
|
break;
|
|
216
223
|
case "default":
|
|
217
224
|
default:
|
|
218
|
-
|
|
219
|
-
|
|
225
|
+
f.push(
|
|
226
|
+
n.outlined ? "text-primary hover:text-primary-focus" : "text-foundation dark:text-foreground"
|
|
220
227
|
);
|
|
221
228
|
break;
|
|
222
229
|
}
|
|
223
230
|
else
|
|
224
|
-
|
|
231
|
+
u.value ? f.push("text-foreground-disabled") : n.color === "invert" ? f.push(
|
|
225
232
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
226
|
-
) :
|
|
227
|
-
return
|
|
228
|
-
}),
|
|
229
|
-
const
|
|
230
|
-
return
|
|
231
|
-
}),
|
|
232
|
-
const
|
|
233
|
-
if (!
|
|
234
|
-
switch (
|
|
233
|
+
) : n.color === "secondary" ? f.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? f.push("text-success") : n.color === "warning" ? f.push("text-warning") : n.color === "danger" ? f.push("text-danger") : f.push("text-primary hover:text-primary-focus");
|
|
234
|
+
return f.join(" ");
|
|
235
|
+
}), g = i(() => {
|
|
236
|
+
const f = [];
|
|
237
|
+
return f.push(n.rounded ? "rounded-full" : "rounded-md"), f.join(" ");
|
|
238
|
+
}), h = i(() => {
|
|
239
|
+
const f = [];
|
|
240
|
+
if (!u.value)
|
|
241
|
+
switch (n.color) {
|
|
235
242
|
case "invert":
|
|
236
|
-
|
|
243
|
+
f.push("hover:ring-4 ring-white/50");
|
|
237
244
|
break;
|
|
238
245
|
case "danger":
|
|
239
|
-
|
|
246
|
+
f.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
|
|
240
247
|
break;
|
|
241
248
|
case "warning":
|
|
242
|
-
|
|
249
|
+
f.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
|
|
243
250
|
break;
|
|
244
251
|
case "success":
|
|
245
|
-
|
|
252
|
+
f.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
|
|
246
253
|
break;
|
|
247
254
|
case "default":
|
|
248
255
|
default:
|
|
249
|
-
|
|
256
|
+
f.push("hover:ring-2");
|
|
250
257
|
break;
|
|
251
258
|
}
|
|
252
|
-
return
|
|
253
|
-
}),
|
|
254
|
-
switch (
|
|
259
|
+
return f.join(" ");
|
|
260
|
+
}), v = i(() => {
|
|
261
|
+
switch (n.size) {
|
|
255
262
|
case "xs":
|
|
256
263
|
return "h-5 text-xs font-medium xxx-tracking-wide";
|
|
257
264
|
case "sm":
|
|
@@ -264,8 +271,8 @@ const at = {
|
|
|
264
271
|
case "base":
|
|
265
272
|
return "h-8 text-base font-medium xxx-tracking-wide";
|
|
266
273
|
}
|
|
267
|
-
}),
|
|
268
|
-
switch (
|
|
274
|
+
}), V = i(() => {
|
|
275
|
+
switch (n.size) {
|
|
269
276
|
case "xs":
|
|
270
277
|
return "px-1";
|
|
271
278
|
case "sm":
|
|
@@ -278,88 +285,88 @@ const at = {
|
|
|
278
285
|
case "base":
|
|
279
286
|
return "px-3";
|
|
280
287
|
}
|
|
281
|
-
}), k = i(() => {
|
|
282
|
-
const n = [];
|
|
283
|
-
return l.fullWidth && n.push("w-full"), l.disabled && n.push("cursor-not-allowed"), n.join(" ");
|
|
284
|
-
}), V = i(() => {
|
|
285
|
-
const n = [];
|
|
286
|
-
return !l.disabled && !l.link && !l.text && n.push("active:scale-[0.97]"), !l.disabled && l.link && n.push(
|
|
287
|
-
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
288
|
-
), n.join(" ");
|
|
289
288
|
}), b = i(() => {
|
|
290
|
-
const
|
|
289
|
+
const f = [];
|
|
290
|
+
return n.fullWidth && f.push("w-full"), u.value && f.push("cursor-not-allowed"), f.join(" ");
|
|
291
|
+
}), I = i(() => {
|
|
292
|
+
const f = [];
|
|
293
|
+
return !u.value && !n.link && !n.text && f.push("active:scale-[0.97]"), !u.value && n.link && f.push(
|
|
294
|
+
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
295
|
+
), f.join(" ");
|
|
296
|
+
}), _ = i(() => {
|
|
297
|
+
const f = n.link || n.text;
|
|
291
298
|
return [
|
|
292
299
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
b.value,
|
|
301
|
+
v.value,
|
|
302
|
+
w.value,
|
|
303
|
+
f ? "" : p.value,
|
|
304
|
+
f ? "" : g.value,
|
|
305
|
+
f ? "" : h.value,
|
|
306
|
+
n.link ? "" : V.value,
|
|
307
|
+
I.value
|
|
301
308
|
].join(" ");
|
|
302
|
-
}),
|
|
303
|
-
const
|
|
304
|
-
switch (
|
|
309
|
+
}), C = i(() => {
|
|
310
|
+
const f = [""];
|
|
311
|
+
switch (n.loading && f.push("animate-spin"), n.size) {
|
|
305
312
|
case "xs":
|
|
306
|
-
|
|
313
|
+
f.push("h-3 w-3");
|
|
307
314
|
break;
|
|
308
315
|
case "sm":
|
|
309
|
-
|
|
316
|
+
f.push("h-4 w-4");
|
|
310
317
|
break;
|
|
311
318
|
case "lg":
|
|
312
|
-
|
|
319
|
+
f.push("h-6 w-6");
|
|
313
320
|
break;
|
|
314
321
|
case "xl":
|
|
315
|
-
|
|
322
|
+
f.push("h-8 w-8");
|
|
316
323
|
break;
|
|
317
324
|
case "base":
|
|
318
325
|
default:
|
|
319
|
-
|
|
326
|
+
f.push("h-5 w-5");
|
|
320
327
|
break;
|
|
321
328
|
}
|
|
322
|
-
return
|
|
323
|
-
}),
|
|
324
|
-
if (
|
|
325
|
-
|
|
329
|
+
return f.join(" ");
|
|
330
|
+
}), q = (f) => {
|
|
331
|
+
if (u.value) {
|
|
332
|
+
f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation();
|
|
326
333
|
return;
|
|
327
334
|
}
|
|
328
|
-
s("click",
|
|
335
|
+
s("click", f);
|
|
329
336
|
};
|
|
330
|
-
return (
|
|
337
|
+
return (f, P) => (l(), j(U(e.to ? t(r) : "button"), {
|
|
331
338
|
href: e.to,
|
|
332
339
|
to: e.to,
|
|
333
|
-
type: t(
|
|
340
|
+
type: t(d),
|
|
334
341
|
external: e.external,
|
|
335
|
-
class:
|
|
336
|
-
disabled:
|
|
342
|
+
class: x(t(_)),
|
|
343
|
+
disabled: t(u),
|
|
337
344
|
role: "button",
|
|
338
|
-
onClick:
|
|
345
|
+
onClick: q
|
|
339
346
|
}, {
|
|
340
|
-
default:
|
|
341
|
-
|
|
347
|
+
default: L(() => [
|
|
348
|
+
t(y) ? (l(), j(U(t(y)), {
|
|
342
349
|
key: 0,
|
|
343
|
-
class:
|
|
344
|
-
}, null, 8, ["class"])) :
|
|
345
|
-
e.hideText ? (
|
|
346
|
-
|
|
350
|
+
class: x(`${t(C)} ${e.hideText ? "" : "mr-2"}`)
|
|
351
|
+
}, null, 8, ["class"])) : S("", !0),
|
|
352
|
+
e.hideText ? (l(), m("div", St, " ")) : z(f.$slots, "default", { key: 1 }, () => [
|
|
353
|
+
T("Button")
|
|
347
354
|
], !0),
|
|
348
|
-
e.iconRight ? (
|
|
355
|
+
e.iconRight || !e.loading ? (l(), j(U(e.iconRight), {
|
|
349
356
|
key: 3,
|
|
350
|
-
class:
|
|
351
|
-
}, null, 8, ["class"])) :
|
|
357
|
+
class: x(`${t(C)} ${e.hideText ? "" : "ml-2"}`)
|
|
358
|
+
}, null, 8, ["class"])) : S("", !0)
|
|
352
359
|
]),
|
|
353
360
|
_: 3
|
|
354
361
|
}, 8, ["href", "to", "type", "external", "class", "disabled"]));
|
|
355
362
|
}
|
|
356
363
|
});
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
-
for (const [
|
|
360
|
-
|
|
361
|
-
return
|
|
362
|
-
},
|
|
364
|
+
const he = (e, s) => {
|
|
365
|
+
const n = e.__vccOpts || e;
|
|
366
|
+
for (const [o, a] of s)
|
|
367
|
+
n[o] = a;
|
|
368
|
+
return n;
|
|
369
|
+
}, Pe = /* @__PURE__ */ he(It, [["__scopeId", "data-v-da9a3400"]]), Bt = /* @__PURE__ */ M({
|
|
363
370
|
__name: "Link",
|
|
364
371
|
props: {
|
|
365
372
|
to: {
|
|
@@ -409,14 +416,14 @@ const ue = (e, s) => {
|
|
|
409
416
|
},
|
|
410
417
|
emits: ["click"],
|
|
411
418
|
setup(e, { emit: s }) {
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
|
|
419
|
+
const n = e, o = (a) => {
|
|
420
|
+
if (n.disabled) {
|
|
421
|
+
a.preventDefault(), a.stopPropagation(), a.stopImmediatePropagation();
|
|
415
422
|
return;
|
|
416
423
|
}
|
|
417
|
-
s("click",
|
|
424
|
+
s("click", a);
|
|
418
425
|
};
|
|
419
|
-
return (
|
|
426
|
+
return (a, r) => (l(), j(Pe, {
|
|
420
427
|
link: "",
|
|
421
428
|
to: e.to,
|
|
422
429
|
external: e.external,
|
|
@@ -427,54 +434,54 @@ const ue = (e, s) => {
|
|
|
427
434
|
"icon-right": e.iconRight,
|
|
428
435
|
"hide-text": e.hideText,
|
|
429
436
|
role: "link",
|
|
430
|
-
onClickCapture:
|
|
437
|
+
onClickCapture: o
|
|
431
438
|
}, {
|
|
432
|
-
default:
|
|
433
|
-
|
|
434
|
-
|
|
439
|
+
default: L(() => [
|
|
440
|
+
z(a.$slots, "default", {}, () => [
|
|
441
|
+
T("Link")
|
|
435
442
|
])
|
|
436
443
|
]),
|
|
437
444
|
_: 3
|
|
438
445
|
}, 8, ["to", "external", "disabled", "size", "foreground-link", "icon-left", "icon-right", "hide-text"]));
|
|
439
446
|
}
|
|
440
447
|
});
|
|
441
|
-
var
|
|
442
|
-
const
|
|
448
|
+
var N = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(N || {});
|
|
449
|
+
const Lt = {
|
|
443
450
|
"aria-live": "assertive",
|
|
444
451
|
class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
|
|
445
|
-
},
|
|
452
|
+
}, Vt = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, jt = {
|
|
446
453
|
key: 0,
|
|
447
454
|
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"
|
|
448
|
-
},
|
|
455
|
+
}, Pt = { class: "p-4" }, Ot = { class: "flex items-start" }, Mt = { class: "flex-shrink-0" }, At = { class: "ml-2 w-0 flex-1 flex flex-col" }, Dt = {
|
|
449
456
|
key: 0,
|
|
450
457
|
class: "text-foreground font-bold"
|
|
451
|
-
},
|
|
458
|
+
}, Rt = {
|
|
452
459
|
key: 1,
|
|
453
460
|
class: "label label--light text-foreground-2"
|
|
454
|
-
},
|
|
461
|
+
}, Tt = {
|
|
455
462
|
key: 2,
|
|
456
463
|
class: "flex justify-start mt-2"
|
|
457
|
-
},
|
|
464
|
+
}, Ft = /* @__PURE__ */ c("span", { class: "sr-only" }, "Close", -1), Xn = /* @__PURE__ */ M({
|
|
458
465
|
__name: "ToastRenderer",
|
|
459
466
|
props: {
|
|
460
467
|
notification: null
|
|
461
468
|
},
|
|
462
469
|
emits: ["update:notification"],
|
|
463
470
|
setup(e, { emit: s }) {
|
|
464
|
-
const
|
|
471
|
+
const n = e, o = i(
|
|
465
472
|
() => {
|
|
466
|
-
var
|
|
467
|
-
return !((
|
|
473
|
+
var d, u;
|
|
474
|
+
return !((d = n.notification) != null && d.description) && !((u = n.notification) != null && u.cta);
|
|
468
475
|
}
|
|
469
|
-
),
|
|
476
|
+
), a = () => {
|
|
470
477
|
s("update:notification", null);
|
|
471
|
-
},
|
|
472
|
-
var
|
|
473
|
-
(
|
|
478
|
+
}, r = (d) => {
|
|
479
|
+
var u, y, p;
|
|
480
|
+
(p = (y = (u = n.notification) == null ? void 0 : u.cta) == null ? void 0 : y.onClick) == null || p.call(y, d), a();
|
|
474
481
|
};
|
|
475
|
-
return (
|
|
476
|
-
|
|
477
|
-
|
|
482
|
+
return (d, u) => (l(), m("div", Lt, [
|
|
483
|
+
c("div", Vt, [
|
|
484
|
+
B(ue, {
|
|
478
485
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
479
486
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
480
487
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -482,56 +489,56 @@ const ut = {
|
|
|
482
489
|
"leave-from-class": "opacity-100",
|
|
483
490
|
"leave-to-class": "opacity-0"
|
|
484
491
|
}, {
|
|
485
|
-
default:
|
|
486
|
-
e.notification ? (
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
e.notification.type === t(
|
|
492
|
+
default: L(() => [
|
|
493
|
+
e.notification ? (l(), m("div", jt, [
|
|
494
|
+
c("div", Pt, [
|
|
495
|
+
c("div", Ot, [
|
|
496
|
+
c("div", Mt, [
|
|
497
|
+
e.notification.type === t(N).Success ? (l(), j(t(Ne), {
|
|
491
498
|
key: 0,
|
|
492
499
|
class: "h-6 w-6 text-success",
|
|
493
500
|
"aria-hidden": "true"
|
|
494
|
-
})) : e.notification.type === t(
|
|
501
|
+
})) : e.notification.type === t(N).Danger ? (l(), j(t(Je), {
|
|
495
502
|
key: 1,
|
|
496
503
|
class: "h-6 w-6 text-danger",
|
|
497
504
|
"aria-hidden": "true"
|
|
498
|
-
})) : e.notification.type === t(
|
|
505
|
+
})) : e.notification.type === t(N).Warning ? (l(), j(t(Qe), {
|
|
499
506
|
key: 2,
|
|
500
507
|
class: "h-6 w-6 text-warning",
|
|
501
508
|
"aria-hidden": "true"
|
|
502
|
-
})) : e.notification.type === t(
|
|
509
|
+
})) : e.notification.type === t(N).Info ? (l(), j(t(Ye), {
|
|
503
510
|
key: 3,
|
|
504
511
|
class: "h-6 w-6 text-info",
|
|
505
512
|
"aria-hidden": "true"
|
|
506
|
-
})) :
|
|
513
|
+
})) : S("", !0)
|
|
507
514
|
]),
|
|
508
|
-
|
|
509
|
-
e.notification.title ? (
|
|
510
|
-
e.notification.description ? (
|
|
511
|
-
e.notification.cta ? (
|
|
512
|
-
|
|
515
|
+
c("div", At, [
|
|
516
|
+
e.notification.title ? (l(), m("p", Dt, $(e.notification.title), 1)) : S("", !0),
|
|
517
|
+
e.notification.description ? (l(), m("p", Rt, $(e.notification.description), 1)) : S("", !0),
|
|
518
|
+
e.notification.cta ? (l(), m("div", Tt, [
|
|
519
|
+
B(Bt, {
|
|
513
520
|
to: e.notification.cta.url,
|
|
514
521
|
class: "label",
|
|
515
522
|
primary: "",
|
|
516
|
-
onClick:
|
|
523
|
+
onClick: r
|
|
517
524
|
}, {
|
|
518
|
-
default:
|
|
519
|
-
|
|
525
|
+
default: L(() => [
|
|
526
|
+
T($(e.notification.cta.title), 1)
|
|
520
527
|
]),
|
|
521
528
|
_: 1
|
|
522
529
|
}, 8, ["to"])
|
|
523
|
-
])) :
|
|
530
|
+
])) : S("", !0)
|
|
524
531
|
]),
|
|
525
|
-
|
|
526
|
-
class:
|
|
532
|
+
c("div", {
|
|
533
|
+
class: x(["ml-4 flex flex-shrink-0", { "self-center": t(o) }])
|
|
527
534
|
}, [
|
|
528
|
-
|
|
535
|
+
c("button", {
|
|
529
536
|
type: "button",
|
|
530
537
|
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",
|
|
531
|
-
onClick:
|
|
538
|
+
onClick: a
|
|
532
539
|
}, [
|
|
533
|
-
|
|
534
|
-
|
|
540
|
+
Ft,
|
|
541
|
+
B(t(de), {
|
|
535
542
|
class: "h-6 w-6",
|
|
536
543
|
"aria-hidden": "true"
|
|
537
544
|
})
|
|
@@ -539,20 +546,20 @@ const ut = {
|
|
|
539
546
|
], 2)
|
|
540
547
|
])
|
|
541
548
|
])
|
|
542
|
-
])) :
|
|
549
|
+
])) : S("", !0)
|
|
543
550
|
]),
|
|
544
551
|
_: 1
|
|
545
552
|
})
|
|
546
553
|
])
|
|
547
554
|
]));
|
|
548
555
|
}
|
|
549
|
-
}),
|
|
556
|
+
}), zt = /* @__PURE__ */ c("circle", {
|
|
550
557
|
cx: "4",
|
|
551
558
|
cy: "4",
|
|
552
559
|
r: "3"
|
|
553
|
-
}, null, -1),
|
|
554
|
-
|
|
555
|
-
],
|
|
560
|
+
}, null, -1), Et = [
|
|
561
|
+
zt
|
|
562
|
+
], Wt = /* @__PURE__ */ M({
|
|
556
563
|
__name: "Badge",
|
|
557
564
|
props: {
|
|
558
565
|
size: null,
|
|
@@ -565,115 +572,115 @@ const ut = {
|
|
|
565
572
|
},
|
|
566
573
|
emits: ["click-icon"],
|
|
567
574
|
setup(e, { emit: s }) {
|
|
568
|
-
const
|
|
569
|
-
() =>
|
|
570
|
-
),
|
|
571
|
-
() =>
|
|
572
|
-
),
|
|
573
|
-
const
|
|
575
|
+
const n = e, o = i(
|
|
576
|
+
() => n.colorClasses || "bg-blue-100 text-blue-800"
|
|
577
|
+
), a = i(
|
|
578
|
+
() => n.dotIconColorClasses || "text-blue-400"
|
|
579
|
+
), r = i(() => {
|
|
580
|
+
const p = [
|
|
574
581
|
"inline-flex items-center",
|
|
575
|
-
|
|
576
|
-
|
|
582
|
+
o.value,
|
|
583
|
+
n.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
577
584
|
];
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
)) : (
|
|
581
|
-
|
|
582
|
-
)),
|
|
583
|
-
}),
|
|
584
|
-
const
|
|
585
|
+
return n.rounded ? (p.push("rounded"), p.push(
|
|
586
|
+
n.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
587
|
+
)) : (p.push("rounded-full"), p.push(
|
|
588
|
+
n.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
589
|
+
)), p.join(" ");
|
|
590
|
+
}), d = i(() => {
|
|
591
|
+
const p = [
|
|
585
592
|
"mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
|
|
586
593
|
];
|
|
587
|
-
return
|
|
588
|
-
}),
|
|
594
|
+
return n.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
|
|
595
|
+
}), u = i(() => [
|
|
589
596
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
590
|
-
|
|
591
|
-
].join(" ")),
|
|
592
|
-
if (!
|
|
593
|
-
|
|
597
|
+
a.value
|
|
598
|
+
].join(" ")), y = (p) => {
|
|
599
|
+
if (!n.clickableIcon) {
|
|
600
|
+
p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
|
|
594
601
|
return;
|
|
595
602
|
}
|
|
596
|
-
s("click-icon",
|
|
603
|
+
s("click-icon", p);
|
|
597
604
|
};
|
|
598
|
-
return (
|
|
599
|
-
class:
|
|
605
|
+
return (p, w) => (l(), m("span", {
|
|
606
|
+
class: x(t(r))
|
|
600
607
|
}, [
|
|
601
|
-
e.dot ? (
|
|
608
|
+
e.dot ? (l(), m("svg", {
|
|
602
609
|
key: 0,
|
|
603
|
-
class:
|
|
610
|
+
class: x(t(u)),
|
|
604
611
|
fill: "currentColor",
|
|
605
612
|
viewBox: "0 0 8 8"
|
|
606
|
-
},
|
|
607
|
-
|
|
608
|
-
|
|
613
|
+
}, Et, 2)) : S("", !0),
|
|
614
|
+
z(p.$slots, "default", {}, () => [
|
|
615
|
+
T("Badge")
|
|
609
616
|
]),
|
|
610
|
-
e.iconLeft ? (
|
|
617
|
+
e.iconLeft ? (l(), m("button", {
|
|
611
618
|
key: 1,
|
|
612
|
-
class:
|
|
613
|
-
onClick:
|
|
619
|
+
class: x(t(d)),
|
|
620
|
+
onClick: w[0] || (w[0] = (g) => y(g))
|
|
614
621
|
}, [
|
|
615
|
-
(
|
|
616
|
-
class:
|
|
622
|
+
(l(), j(U(e.iconLeft), {
|
|
623
|
+
class: x(["h-4 w-4", t(a)])
|
|
617
624
|
}, null, 8, ["class"]))
|
|
618
|
-
], 2)) :
|
|
625
|
+
], 2)) : S("", !0)
|
|
619
626
|
], 2));
|
|
620
627
|
}
|
|
621
628
|
});
|
|
622
|
-
var
|
|
623
|
-
function
|
|
629
|
+
var J = /* @__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))(J || {});
|
|
630
|
+
function Oe(e) {
|
|
624
631
|
const {
|
|
625
|
-
props: { modelValue: s, steps:
|
|
626
|
-
emit:
|
|
627
|
-
} = e,
|
|
628
|
-
() => (
|
|
629
|
-
),
|
|
630
|
-
get: () =>
|
|
631
|
-
set: (b) =>
|
|
632
|
-
}),
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
635
|
-
|
|
632
|
+
props: { modelValue: s, steps: n, orientation: o, goVerticalBelow: a, nonInteractive: r },
|
|
633
|
+
emit: d
|
|
634
|
+
} = e, u = i(
|
|
635
|
+
() => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
|
|
636
|
+
), y = i({
|
|
637
|
+
get: () => ke((s == null ? void 0 : s.value) || 0, -1, n.value.length),
|
|
638
|
+
set: (b) => d("update:modelValue", ke(b, 0, n.value.length))
|
|
639
|
+
}), p = (b) => `${b + 1}`, w = (b) => b === y.value, g = (b) => b < y.value, h = (b, I) => {
|
|
640
|
+
var C;
|
|
641
|
+
if (r != null && r.value) {
|
|
642
|
+
I == null || I.preventDefault(), I == null || I.stopPropagation(), I == null || I.stopImmediatePropagation();
|
|
636
643
|
return;
|
|
637
644
|
}
|
|
638
|
-
|
|
639
|
-
const _ =
|
|
640
|
-
(
|
|
641
|
-
},
|
|
645
|
+
y.value = b;
|
|
646
|
+
const _ = n.value[y.value];
|
|
647
|
+
(C = _ == null ? void 0 : _.onClick) == null || C.call(_);
|
|
648
|
+
}, v = i(() => {
|
|
642
649
|
const b = ["flex"];
|
|
643
|
-
return b.push("flex"),
|
|
650
|
+
return b.push("flex"), u.value === "vertical" || a != null && a.value ? (b.push("flex-col space-y-4 justify-center"), (a == null ? void 0 : a.value) === J.sm ? b.push(
|
|
644
651
|
"sm:flex-row sm:space-y-0 sm:justify-start sm:space-x-8 sm:items-center"
|
|
645
|
-
) : (
|
|
652
|
+
) : (a == null ? void 0 : a.value) === J.md ? b.push(
|
|
646
653
|
"md:flex-row md:space-y-0 md:justify-start md:space-x-8 md:items-center"
|
|
647
|
-
) : (
|
|
654
|
+
) : (a == null ? void 0 : a.value) === J.lg ? b.push(
|
|
648
655
|
"lg:flex-row lg:space-y-0 lg:justify-start lg:space-x-8 lg:items-center"
|
|
649
|
-
) : (
|
|
656
|
+
) : (a == null ? void 0 : a.value) === J.xl && b.push(
|
|
650
657
|
"xl:flex-row xl:space-y-0 xl:justify-start xl:space-x-8 xl:items-center"
|
|
651
658
|
)) : b.push("flex-row space-x-8 items-center"), b.join(" ");
|
|
652
659
|
}), V = i(() => {
|
|
653
660
|
const b = ["flex items-center"];
|
|
654
|
-
return
|
|
661
|
+
return r != null && r.value || b.push("cursor-pointer"), b.join(" ");
|
|
655
662
|
});
|
|
656
663
|
return {
|
|
657
|
-
value:
|
|
658
|
-
isCurrentStep:
|
|
659
|
-
isFinishedStep:
|
|
660
|
-
switchStep:
|
|
661
|
-
getStepDisplayValue:
|
|
662
|
-
listClasses:
|
|
664
|
+
value: y,
|
|
665
|
+
isCurrentStep: w,
|
|
666
|
+
isFinishedStep: g,
|
|
667
|
+
switchStep: h,
|
|
668
|
+
getStepDisplayValue: p,
|
|
669
|
+
listClasses: v,
|
|
663
670
|
linkClasses: V,
|
|
664
|
-
orientation:
|
|
671
|
+
orientation: u
|
|
665
672
|
};
|
|
666
673
|
}
|
|
667
|
-
const
|
|
674
|
+
const Ut = ["aria-label"], qt = ["href", "onClick"], Ht = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Gt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Kt = { class: "flex flex-col" }, Xt = {
|
|
668
675
|
key: 0,
|
|
669
676
|
class: "label label--light text-foreground"
|
|
670
|
-
},
|
|
677
|
+
}, Nt = ["href", "onClick"], Jt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Qt = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, Yt = { class: "flex flex-col" }, Zt = {
|
|
671
678
|
key: 0,
|
|
672
679
|
class: "label label--light text-foreground"
|
|
673
|
-
},
|
|
680
|
+
}, es = ["href", "onClick"], ts = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, ss = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, ns = { class: "flex flex-col" }, ls = {
|
|
674
681
|
key: 0,
|
|
675
682
|
class: "label label--light"
|
|
676
|
-
},
|
|
683
|
+
}, Nn = /* @__PURE__ */ M({
|
|
677
684
|
__name: "Number",
|
|
678
685
|
props: {
|
|
679
686
|
ariaLabel: null,
|
|
@@ -685,93 +692,93 @@ const wt = ["aria-label"], $t = ["href", "onClick"], St = { class: "flex space-x
|
|
|
685
692
|
},
|
|
686
693
|
emits: ["update:modelValue"],
|
|
687
694
|
setup(e, { emit: s }) {
|
|
688
|
-
const
|
|
689
|
-
isCurrentStep:
|
|
690
|
-
isFinishedStep:
|
|
691
|
-
switchStep:
|
|
692
|
-
getStepDisplayValue:
|
|
693
|
-
listClasses:
|
|
694
|
-
linkClasses:
|
|
695
|
-
} =
|
|
696
|
-
props:
|
|
695
|
+
const n = e, {
|
|
696
|
+
isCurrentStep: o,
|
|
697
|
+
isFinishedStep: a,
|
|
698
|
+
switchStep: r,
|
|
699
|
+
getStepDisplayValue: d,
|
|
700
|
+
listClasses: u,
|
|
701
|
+
linkClasses: y
|
|
702
|
+
} = Oe({
|
|
703
|
+
props: Z(n),
|
|
697
704
|
emit: s
|
|
698
705
|
});
|
|
699
|
-
return (
|
|
706
|
+
return (p, w) => (l(), m("nav", {
|
|
700
707
|
class: "flex justify-center",
|
|
701
708
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
702
709
|
}, [
|
|
703
|
-
|
|
704
|
-
class:
|
|
710
|
+
c("ol", {
|
|
711
|
+
class: x(t(u))
|
|
705
712
|
}, [
|
|
706
|
-
(
|
|
707
|
-
key:
|
|
713
|
+
(l(!0), m(W, null, H(e.steps, (g, h) => (l(), m("li", {
|
|
714
|
+
key: g.name
|
|
708
715
|
}, [
|
|
709
|
-
t(
|
|
716
|
+
t(a)(h) ? (l(), m("a", {
|
|
710
717
|
key: 0,
|
|
711
|
-
href:
|
|
712
|
-
class:
|
|
713
|
-
onClick: (
|
|
718
|
+
href: g.href,
|
|
719
|
+
class: x(t(y)),
|
|
720
|
+
onClick: (v) => t(r)(h, v)
|
|
714
721
|
}, [
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
722
|
+
c("div", Ht, [
|
|
723
|
+
c("div", Gt, [
|
|
724
|
+
B(t(et), { class: "w-5 h-5" })
|
|
718
725
|
]),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
726
|
+
c("div", Kt, [
|
|
727
|
+
c("div", null, $(g.name), 1),
|
|
728
|
+
g.description ? (l(), m("div", Xt, $(g.description), 1)) : S("", !0)
|
|
722
729
|
])
|
|
723
730
|
])
|
|
724
|
-
], 10,
|
|
731
|
+
], 10, qt)) : t(o)(h) ? (l(), m("a", {
|
|
725
732
|
key: 1,
|
|
726
|
-
href:
|
|
727
|
-
class:
|
|
733
|
+
href: g.href,
|
|
734
|
+
class: x(t(y)),
|
|
728
735
|
"aria-current": "step",
|
|
729
|
-
onClick: (
|
|
736
|
+
onClick: (v) => t(r)(h, v)
|
|
730
737
|
}, [
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
738
|
+
c("div", Jt, [
|
|
739
|
+
c("div", Qt, $(t(d)(h)), 1),
|
|
740
|
+
c("div", Yt, [
|
|
741
|
+
c("div", null, $(g.name), 1),
|
|
742
|
+
g.description ? (l(), m("div", Zt, $(g.description), 1)) : S("", !0)
|
|
736
743
|
])
|
|
737
744
|
])
|
|
738
|
-
], 10,
|
|
745
|
+
], 10, Nt)) : (l(), m("a", {
|
|
739
746
|
key: 2,
|
|
740
|
-
href:
|
|
741
|
-
class:
|
|
742
|
-
onClick: (
|
|
747
|
+
href: g.href,
|
|
748
|
+
class: x(t(y)),
|
|
749
|
+
onClick: (v) => t(r)(h, v)
|
|
743
750
|
}, [
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
751
|
+
c("div", ts, [
|
|
752
|
+
c("div", ss, $(t(d)(h)), 1),
|
|
753
|
+
c("div", ns, [
|
|
754
|
+
c("div", null, $(g.name), 1),
|
|
755
|
+
g.description ? (l(), m("div", ls, $(g.description), 1)) : S("", !0)
|
|
749
756
|
])
|
|
750
757
|
])
|
|
751
|
-
], 10,
|
|
758
|
+
], 10, es))
|
|
752
759
|
]))), 128))
|
|
753
760
|
], 2)
|
|
754
|
-
], 8,
|
|
761
|
+
], 8, Ut));
|
|
755
762
|
}
|
|
756
|
-
}),
|
|
763
|
+
}), Me = (e) => (we("data-v-56fc6520"), e = e(), $e(), e), as = ["aria-label"], os = ["href", "onClick"], rs = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, is = {
|
|
757
764
|
key: 0,
|
|
758
765
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
759
|
-
},
|
|
766
|
+
}, us = ["href", "onClick"], cs = {
|
|
760
767
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
761
768
|
"aria-hidden": "true"
|
|
762
|
-
},
|
|
769
|
+
}, ds = {
|
|
763
770
|
key: 0,
|
|
764
771
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
765
|
-
},
|
|
772
|
+
}, fs = /* @__PURE__ */ Me(() => /* @__PURE__ */ c("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1)), ps = /* @__PURE__ */ Me(() => /* @__PURE__ */ c("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1)), hs = ["href", "onClick"], ms = {
|
|
766
773
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
767
774
|
"aria-hidden": "true"
|
|
768
|
-
},
|
|
775
|
+
}, gs = {
|
|
769
776
|
key: 0,
|
|
770
777
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
771
|
-
},
|
|
778
|
+
}, ys = {
|
|
772
779
|
key: 1,
|
|
773
780
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
774
|
-
},
|
|
781
|
+
}, vs = /* @__PURE__ */ M({
|
|
775
782
|
__name: "Bullet",
|
|
776
783
|
props: {
|
|
777
784
|
ariaLabel: null,
|
|
@@ -784,74 +791,74 @@ const wt = ["aria-label"], $t = ["href", "onClick"], St = { class: "flex space-x
|
|
|
784
791
|
},
|
|
785
792
|
emits: ["update:modelValue"],
|
|
786
793
|
setup(e, { emit: s }) {
|
|
787
|
-
const
|
|
788
|
-
props:
|
|
794
|
+
const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: d, linkClasses: u } = Oe({
|
|
795
|
+
props: Z(n),
|
|
789
796
|
emit: s
|
|
790
|
-
}),
|
|
791
|
-
const
|
|
792
|
-
return
|
|
797
|
+
}), y = i(() => {
|
|
798
|
+
const p = ["ml-3 h6 font-medium leading-7"];
|
|
799
|
+
return n.basic && p.push("sr-only"), p.join(" ");
|
|
793
800
|
});
|
|
794
|
-
return (
|
|
801
|
+
return (p, w) => (l(), m("nav", {
|
|
795
802
|
class: "flex justify-center",
|
|
796
803
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
797
804
|
}, [
|
|
798
|
-
|
|
799
|
-
class:
|
|
805
|
+
c("ol", {
|
|
806
|
+
class: x([t(d), e.basic ? "basic" : ""])
|
|
800
807
|
}, [
|
|
801
|
-
(
|
|
802
|
-
key:
|
|
808
|
+
(l(!0), m(W, null, H(e.steps, (g, h) => (l(), m("li", {
|
|
809
|
+
key: g.name
|
|
803
810
|
}, [
|
|
804
|
-
t(
|
|
811
|
+
t(a)(h) ? (l(), m("a", {
|
|
805
812
|
key: 0,
|
|
806
|
-
href:
|
|
807
|
-
class:
|
|
808
|
-
onClick: (
|
|
813
|
+
href: g.href,
|
|
814
|
+
class: x(t(u)),
|
|
815
|
+
onClick: (v) => t(r)(h, v)
|
|
809
816
|
}, [
|
|
810
|
-
|
|
811
|
-
e.basic ? (
|
|
817
|
+
c("span", rs, [
|
|
818
|
+
e.basic ? (l(), m("span", is)) : (l(), j(t(tt), {
|
|
812
819
|
key: 1,
|
|
813
820
|
class: "h-full w-full text-primary",
|
|
814
821
|
"aria-hidden": "true"
|
|
815
822
|
}))
|
|
816
823
|
]),
|
|
817
|
-
|
|
818
|
-
class:
|
|
819
|
-
},
|
|
820
|
-
], 10,
|
|
824
|
+
c("span", {
|
|
825
|
+
class: x(["text-foreground", t(y)])
|
|
826
|
+
}, $(g.name), 3)
|
|
827
|
+
], 10, os)) : t(o)(h) ? (l(), m("a", {
|
|
821
828
|
key: 1,
|
|
822
|
-
href:
|
|
823
|
-
class:
|
|
829
|
+
href: g.href,
|
|
830
|
+
class: x(t(u)),
|
|
824
831
|
"aria-current": "step",
|
|
825
|
-
onClick: (
|
|
832
|
+
onClick: (v) => t(r)(h, v)
|
|
826
833
|
}, [
|
|
827
|
-
|
|
828
|
-
e.basic ? (
|
|
829
|
-
|
|
830
|
-
|
|
834
|
+
c("span", cs, [
|
|
835
|
+
e.basic ? (l(), m("span", ds)) : (l(), m(W, { key: 1 }, [
|
|
836
|
+
fs,
|
|
837
|
+
ps
|
|
831
838
|
], 64))
|
|
832
839
|
]),
|
|
833
|
-
|
|
834
|
-
class:
|
|
835
|
-
},
|
|
836
|
-
], 10,
|
|
840
|
+
c("span", {
|
|
841
|
+
class: x(["text-primary-focus", t(y)])
|
|
842
|
+
}, $(g.name), 3)
|
|
843
|
+
], 10, us)) : (l(), m("a", {
|
|
837
844
|
key: 2,
|
|
838
|
-
href:
|
|
839
|
-
class:
|
|
840
|
-
onClick: (
|
|
845
|
+
href: g.href,
|
|
846
|
+
class: x(t(u)),
|
|
847
|
+
onClick: (v) => t(r)(h, v)
|
|
841
848
|
}, [
|
|
842
|
-
|
|
843
|
-
e.basic ? (
|
|
849
|
+
c("div", ms, [
|
|
850
|
+
e.basic ? (l(), m("span", gs)) : (l(), m("div", ys))
|
|
844
851
|
]),
|
|
845
|
-
|
|
846
|
-
class:
|
|
847
|
-
},
|
|
848
|
-
], 10,
|
|
852
|
+
c("p", {
|
|
853
|
+
class: x(["text-foreground-disabled", t(y)])
|
|
854
|
+
}, $(g.name), 3)
|
|
855
|
+
], 10, hs))
|
|
849
856
|
]))), 128))
|
|
850
857
|
], 2)
|
|
851
|
-
], 8,
|
|
858
|
+
], 8, as));
|
|
852
859
|
}
|
|
853
860
|
});
|
|
854
|
-
const
|
|
861
|
+
const Jn = /* @__PURE__ */ he(vs, [["__scopeId", "data-v-56fc6520"]]), bs = ["disabled"], Qn = /* @__PURE__ */ M({
|
|
855
862
|
__name: "CardButton",
|
|
856
863
|
props: {
|
|
857
864
|
disabled: { type: Boolean },
|
|
@@ -859,41 +866,41 @@ const bl = /* @__PURE__ */ ue(Yt, [["__scopeId", "data-v-56fc6520"]]), Zt = ["di
|
|
|
859
866
|
},
|
|
860
867
|
emits: ["update:modelValue", "click"],
|
|
861
868
|
setup(e, { emit: s }) {
|
|
862
|
-
const
|
|
863
|
-
const
|
|
869
|
+
const n = e, o = i(() => {
|
|
870
|
+
const r = [
|
|
864
871
|
"h-20 bg-foundation-2 inline-flex justify-center items-center outline-none",
|
|
865
872
|
"normal px-16 py-5 shadow rounded transition active:scale-95"
|
|
866
873
|
];
|
|
867
|
-
return
|
|
868
|
-
|
|
869
|
-
),
|
|
870
|
-
}),
|
|
871
|
-
if (
|
|
872
|
-
|
|
874
|
+
return n.disabled ? r.push("bg-foundation-disabled text-foreground-2 cursor-not-allowed") : (r.push(
|
|
875
|
+
n.modelValue ? "bg-primary-focus text-foreground-on-primary" : "bg-foundation text-foreground"
|
|
876
|
+
), r.push("ring-outline-2 hover:ring-4")), r.join(" ");
|
|
877
|
+
}), a = (r) => {
|
|
878
|
+
if (n.disabled) {
|
|
879
|
+
r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation();
|
|
873
880
|
return;
|
|
874
881
|
}
|
|
875
|
-
s("update:modelValue", !
|
|
882
|
+
s("update:modelValue", !n.modelValue), s("click", r);
|
|
876
883
|
};
|
|
877
|
-
return (
|
|
878
|
-
class:
|
|
884
|
+
return (r, d) => (l(), m("button", {
|
|
885
|
+
class: x(t(o)),
|
|
879
886
|
disabled: e.disabled,
|
|
880
|
-
onClick:
|
|
887
|
+
onClick: a
|
|
881
888
|
}, [
|
|
882
|
-
|
|
883
|
-
|
|
889
|
+
z(r.$slots, "default", {}, () => [
|
|
890
|
+
T("Text")
|
|
884
891
|
])
|
|
885
|
-
], 10,
|
|
892
|
+
], 10, bs));
|
|
886
893
|
}
|
|
887
|
-
}),
|
|
894
|
+
}), xs = { class: "relative flex items-start" }, ks = { class: "flex h-6 items-center" }, Cs = ["id", "checked", "aria-describedby", "name", "value", "disabled"], ws = {
|
|
888
895
|
class: "ml-2 text-sm",
|
|
889
896
|
style: { "padding-top": "2px" }
|
|
890
|
-
},
|
|
897
|
+
}, $s = ["for"], _s = {
|
|
891
898
|
key: 0,
|
|
892
899
|
class: "text-danger ml-1"
|
|
893
|
-
},
|
|
900
|
+
}, Ss = ["id"], Is = M({
|
|
894
901
|
inheritAttrs: !1
|
|
895
|
-
}),
|
|
896
|
-
...
|
|
902
|
+
}), Yn = /* @__PURE__ */ M({
|
|
903
|
+
...Is,
|
|
897
904
|
__name: "Checkbox",
|
|
898
905
|
props: {
|
|
899
906
|
/**
|
|
@@ -981,104 +988,104 @@ const bl = /* @__PURE__ */ ue(Yt, [["__scopeId", "data-v-56fc6520"]]), Zt = ["di
|
|
|
981
988
|
},
|
|
982
989
|
emits: ["update:modelValue"],
|
|
983
990
|
setup(e) {
|
|
984
|
-
const s = e,
|
|
985
|
-
checked:
|
|
986
|
-
errorMessage:
|
|
987
|
-
handleChange:
|
|
988
|
-
} =
|
|
991
|
+
const s = e, n = (b) => `${b}-${pe()}`, o = i(() => s.value || s.name), {
|
|
992
|
+
checked: a,
|
|
993
|
+
errorMessage: r,
|
|
994
|
+
handleChange: d
|
|
995
|
+
} = fe(s.name, s.rules, {
|
|
989
996
|
validateOnMount: s.validateOnMount,
|
|
990
997
|
type: "checkbox",
|
|
991
|
-
checkedValue:
|
|
998
|
+
checkedValue: o,
|
|
992
999
|
initialValue: s.modelValue || void 0
|
|
993
|
-
}),
|
|
994
|
-
s.disabled ||
|
|
995
|
-
},
|
|
1000
|
+
}), u = (b) => {
|
|
1001
|
+
s.disabled || d(b);
|
|
1002
|
+
}, y = i(() => s.label || s.name), p = i(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = i(() => s.description || r.value), g = i(() => `${s.name}-description`), h = i(() => {
|
|
996
1003
|
const b = [];
|
|
997
|
-
return s.inlineDescription ? b.push("inline ml-2") : b.push("block"),
|
|
998
|
-
}),
|
|
999
|
-
return (b,
|
|
1000
|
-
|
|
1001
|
-
|
|
1004
|
+
return s.inlineDescription ? b.push("inline ml-2") : b.push("block"), r.value ? b.push("text-danger") : b.push("text-foreground-2"), b.join(" ");
|
|
1005
|
+
}), v = A(n("checkbox")), V = i(() => s.id || v.value);
|
|
1006
|
+
return (b, I) => (l(), m("div", xs, [
|
|
1007
|
+
c("div", ks, [
|
|
1008
|
+
c("input", ce({
|
|
1002
1009
|
id: t(V),
|
|
1003
|
-
checked: t(
|
|
1004
|
-
"aria-describedby": t(
|
|
1010
|
+
checked: t(a),
|
|
1011
|
+
"aria-describedby": t(g),
|
|
1005
1012
|
name: e.name,
|
|
1006
|
-
value: t(
|
|
1013
|
+
value: t(o),
|
|
1007
1014
|
disabled: e.disabled,
|
|
1008
1015
|
type: "checkbox",
|
|
1009
|
-
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(
|
|
1010
|
-
}, b.$attrs, { onChange:
|
|
1016
|
+
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)]
|
|
1017
|
+
}, b.$attrs, { onChange: u }), null, 16, Cs)
|
|
1011
1018
|
]),
|
|
1012
|
-
|
|
1013
|
-
|
|
1019
|
+
c("div", ws, [
|
|
1020
|
+
c("label", {
|
|
1014
1021
|
for: t(V),
|
|
1015
|
-
class:
|
|
1022
|
+
class: x(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1016
1023
|
}, [
|
|
1017
|
-
|
|
1018
|
-
e.showRequired ? (
|
|
1019
|
-
], 10,
|
|
1020
|
-
t(
|
|
1024
|
+
c("span", null, $(t(y)), 1),
|
|
1025
|
+
e.showRequired ? (l(), m("span", _s, "*")) : S("", !0)
|
|
1026
|
+
], 10, $s),
|
|
1027
|
+
t(w) ? (l(), m("p", {
|
|
1021
1028
|
key: 0,
|
|
1022
|
-
id: t(
|
|
1023
|
-
class:
|
|
1024
|
-
},
|
|
1029
|
+
id: t(g),
|
|
1030
|
+
class: x(t(h))
|
|
1031
|
+
}, $(t(w)), 11, Ss)) : S("", !0)
|
|
1025
1032
|
])
|
|
1026
1033
|
]));
|
|
1027
1034
|
}
|
|
1028
1035
|
});
|
|
1029
|
-
function
|
|
1030
|
-
const { props: s, inputEl:
|
|
1036
|
+
function Ae(e) {
|
|
1037
|
+
const { props: s, inputEl: n, emit: o } = e, { value: a, errorMessage: r } = fe(s.name, s.rules, {
|
|
1031
1038
|
validateOnMount: t(s.validateOnMount),
|
|
1032
1039
|
validateOnValueUpdate: t(s.validateOnValueUpdate),
|
|
1033
1040
|
initialValue: t(s.modelValue) || void 0
|
|
1034
|
-
}),
|
|
1035
|
-
const
|
|
1036
|
-
return t(s.showLabel) ||
|
|
1037
|
-
}),
|
|
1038
|
-
const
|
|
1041
|
+
}), d = i(() => {
|
|
1042
|
+
const C = ["block label text-foreground-2 mb-2"];
|
|
1043
|
+
return t(s.showLabel) || C.push("sr-only"), C.join(" ");
|
|
1044
|
+
}), u = i(() => {
|
|
1045
|
+
const C = [
|
|
1039
1046
|
"block w-full rounded focus:outline-none text-foreground transition-all",
|
|
1040
1047
|
"disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
|
|
1041
1048
|
"placeholder:text-foreground-2"
|
|
1042
1049
|
];
|
|
1043
|
-
return
|
|
1050
|
+
return r.value ? C.push(
|
|
1044
1051
|
"border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
|
|
1045
|
-
) :
|
|
1046
|
-
}),
|
|
1047
|
-
const
|
|
1048
|
-
return !
|
|
1049
|
-
}),
|
|
1050
|
-
() =>
|
|
1051
|
-
),
|
|
1052
|
-
() =>
|
|
1052
|
+
) : C.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? C.push("bg-foundation shadow-sm hover:shadow") : C.push("bg-foundation-page"), C.join(" ");
|
|
1053
|
+
}), y = A(pe()), p = i(() => t(s.label) || t(s.name)), w = i(() => {
|
|
1054
|
+
const C = r.value;
|
|
1055
|
+
return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", p.value);
|
|
1056
|
+
}), g = i(
|
|
1057
|
+
() => w.value && t(s.hideErrorMessage)
|
|
1058
|
+
), h = i(() => w.value || t(s.help)), v = i(() => !!h.value), V = i(
|
|
1059
|
+
() => v.value ? `${t(s.name)}-${y.value}` : void 0
|
|
1053
1060
|
), b = i(() => {
|
|
1054
|
-
const
|
|
1055
|
-
return
|
|
1056
|
-
}),
|
|
1057
|
-
var
|
|
1058
|
-
(
|
|
1061
|
+
const C = ["mt-2 text-sm"];
|
|
1062
|
+
return C.push(r.value ? "text-danger" : "text-foreground-2"), C.join(" ");
|
|
1063
|
+
}), I = () => {
|
|
1064
|
+
var C;
|
|
1065
|
+
(C = n.value) == null || C.focus();
|
|
1059
1066
|
}, _ = () => {
|
|
1060
|
-
|
|
1067
|
+
a.value = "", o("change", { value: "" }), o("clear");
|
|
1061
1068
|
};
|
|
1062
|
-
return
|
|
1063
|
-
t(s.autoFocus) &&
|
|
1069
|
+
return se(() => {
|
|
1070
|
+
t(s.autoFocus) && I();
|
|
1064
1071
|
}), {
|
|
1065
|
-
coreClasses:
|
|
1066
|
-
title:
|
|
1067
|
-
value:
|
|
1072
|
+
coreClasses: u,
|
|
1073
|
+
title: p,
|
|
1074
|
+
value: a,
|
|
1068
1075
|
helpTipId: V,
|
|
1069
1076
|
helpTipClasses: b,
|
|
1070
|
-
helpTip:
|
|
1071
|
-
hideHelpTip:
|
|
1072
|
-
errorMessage:
|
|
1077
|
+
helpTip: h,
|
|
1078
|
+
hideHelpTip: g,
|
|
1079
|
+
errorMessage: w,
|
|
1073
1080
|
clear: _,
|
|
1074
|
-
focus:
|
|
1075
|
-
labelClasses:
|
|
1081
|
+
focus: I,
|
|
1082
|
+
labelClasses: d
|
|
1076
1083
|
};
|
|
1077
1084
|
}
|
|
1078
|
-
const
|
|
1085
|
+
const Bs = ["for"], Ls = { class: "relative" }, Vs = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], js = /* @__PURE__ */ c("span", { class: "text-xs sr-only" }, "Clear input", -1), Ps = {
|
|
1079
1086
|
key: 2,
|
|
1080
1087
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1081
|
-
},
|
|
1088
|
+
}, Os = ["id"], Zn = /* @__PURE__ */ M({
|
|
1082
1089
|
__name: "TextArea",
|
|
1083
1090
|
props: {
|
|
1084
1091
|
name: null,
|
|
@@ -1099,99 +1106,99 @@ const is = ["for"], us = { class: "relative" }, ds = ["id", "name", "placeholder
|
|
|
1099
1106
|
color: { default: "page" }
|
|
1100
1107
|
},
|
|
1101
1108
|
emits: ["update:modelValue", "change", "input", "clear"],
|
|
1102
|
-
setup(e, { expose: s, emit:
|
|
1103
|
-
const
|
|
1104
|
-
coreClasses:
|
|
1105
|
-
title:
|
|
1106
|
-
value:
|
|
1107
|
-
helpTipId:
|
|
1108
|
-
helpTipClasses:
|
|
1109
|
-
helpTip:
|
|
1110
|
-
errorMessage:
|
|
1111
|
-
labelClasses:
|
|
1112
|
-
clear:
|
|
1109
|
+
setup(e, { expose: s, emit: n }) {
|
|
1110
|
+
const o = e, a = A(null), {
|
|
1111
|
+
coreClasses: r,
|
|
1112
|
+
title: d,
|
|
1113
|
+
value: u,
|
|
1114
|
+
helpTipId: y,
|
|
1115
|
+
helpTipClasses: p,
|
|
1116
|
+
helpTip: w,
|
|
1117
|
+
errorMessage: g,
|
|
1118
|
+
labelClasses: h,
|
|
1119
|
+
clear: v,
|
|
1113
1120
|
focus: V
|
|
1114
|
-
} =
|
|
1115
|
-
props:
|
|
1116
|
-
emit:
|
|
1117
|
-
inputEl:
|
|
1121
|
+
} = Ae({
|
|
1122
|
+
props: Z(o),
|
|
1123
|
+
emit: n,
|
|
1124
|
+
inputEl: a
|
|
1118
1125
|
}), b = i(() => {
|
|
1119
|
-
const
|
|
1120
|
-
return
|
|
1126
|
+
const I = ["pl-2"];
|
|
1127
|
+
return o.showClear && g.value ? I.push("pr-12") : (o.showClear || g.value) && I.push("pr-8"), I.join(" ");
|
|
1121
1128
|
});
|
|
1122
|
-
return s({ focus: V }), (
|
|
1123
|
-
class:
|
|
1129
|
+
return s({ focus: V }), (I, _) => (l(), m("div", {
|
|
1130
|
+
class: x([e.fullWidth ? "w-full" : ""])
|
|
1124
1131
|
}, [
|
|
1125
|
-
|
|
1132
|
+
c("label", {
|
|
1126
1133
|
for: e.name,
|
|
1127
|
-
class:
|
|
1134
|
+
class: x(t(h))
|
|
1128
1135
|
}, [
|
|
1129
|
-
|
|
1130
|
-
], 10,
|
|
1131
|
-
|
|
1132
|
-
|
|
1136
|
+
c("span", null, $(t(d)), 1)
|
|
1137
|
+
], 10, Bs),
|
|
1138
|
+
c("div", Ls, [
|
|
1139
|
+
ee(c("textarea", ce({
|
|
1133
1140
|
id: e.name,
|
|
1134
1141
|
ref_key: "inputElement",
|
|
1135
|
-
ref:
|
|
1136
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
1142
|
+
ref: a,
|
|
1143
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => ne(u) ? u.value = C : null),
|
|
1137
1144
|
name: e.name,
|
|
1138
|
-
class: [t(
|
|
1145
|
+
class: [t(r), t(b), "min-h-[4rem]"],
|
|
1139
1146
|
placeholder: e.placeholder,
|
|
1140
1147
|
disabled: e.disabled,
|
|
1141
|
-
"aria-invalid": t(
|
|
1142
|
-
"aria-describedby": t(
|
|
1143
|
-
},
|
|
1144
|
-
onChange: _[1] || (_[1] = (
|
|
1145
|
-
onInput: _[2] || (_[2] = (
|
|
1146
|
-
}), null, 16,
|
|
1147
|
-
[
|
|
1148
|
+
"aria-invalid": t(g) ? "true" : "false",
|
|
1149
|
+
"aria-describedby": t(y)
|
|
1150
|
+
}, I.$attrs, {
|
|
1151
|
+
onChange: _[1] || (_[1] = (C) => I.$emit("change", { event: C, value: t(u) })),
|
|
1152
|
+
onInput: _[2] || (_[2] = (C) => I.$emit("input", { event: C, value: t(u) }))
|
|
1153
|
+
}), null, 16, Vs), [
|
|
1154
|
+
[_e, t(u)]
|
|
1148
1155
|
]),
|
|
1149
|
-
e.showClear ? (
|
|
1156
|
+
e.showClear ? (l(), m("a", {
|
|
1150
1157
|
key: 0,
|
|
1151
1158
|
title: "Clear input",
|
|
1152
1159
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1153
1160
|
onClick: _[3] || (_[3] = //@ts-ignore
|
|
1154
|
-
(...
|
|
1161
|
+
(...C) => t(v) && t(v)(...C)),
|
|
1155
1162
|
onKeydown: _[4] || (_[4] = //@ts-ignore
|
|
1156
|
-
(...
|
|
1163
|
+
(...C) => t(v) && t(v)(...C))
|
|
1157
1164
|
}, [
|
|
1158
|
-
|
|
1159
|
-
|
|
1165
|
+
js,
|
|
1166
|
+
B(t(de), {
|
|
1160
1167
|
class: "h-5 w-5 text-foreground",
|
|
1161
1168
|
"aria-hidden": "true"
|
|
1162
1169
|
})
|
|
1163
|
-
], 32)) :
|
|
1164
|
-
t(
|
|
1170
|
+
], 32)) : S("", !0),
|
|
1171
|
+
t(g) ? (l(), m("div", {
|
|
1165
1172
|
key: 1,
|
|
1166
|
-
class:
|
|
1173
|
+
class: x([
|
|
1167
1174
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1168
1175
|
e.showClear ? "pr-8" : "pr-2"
|
|
1169
1176
|
])
|
|
1170
1177
|
}, [
|
|
1171
|
-
|
|
1178
|
+
B(t(Ve), {
|
|
1172
1179
|
class: "h-4 w-4 text-danger",
|
|
1173
1180
|
"aria-hidden": "true"
|
|
1174
1181
|
})
|
|
1175
|
-
], 2)) :
|
|
1176
|
-
e.showRequired && !t(
|
|
1182
|
+
], 2)) : S("", !0),
|
|
1183
|
+
e.showRequired && !t(g) ? (l(), m("div", Ps, " * ")) : S("", !0)
|
|
1177
1184
|
]),
|
|
1178
|
-
t(
|
|
1185
|
+
t(y) ? (l(), m("p", {
|
|
1179
1186
|
key: 0,
|
|
1180
|
-
id: t(
|
|
1181
|
-
class:
|
|
1182
|
-
},
|
|
1187
|
+
id: t(y),
|
|
1188
|
+
class: x(t(p))
|
|
1189
|
+
}, $(t(w)), 11, Os)) : S("", !0)
|
|
1183
1190
|
], 2));
|
|
1184
1191
|
}
|
|
1185
|
-
}),
|
|
1192
|
+
}), Ms = ["for"], As = { class: "relative" }, Ds = {
|
|
1186
1193
|
key: 0,
|
|
1187
1194
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1188
|
-
},
|
|
1195
|
+
}, Rs = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Ts = /* @__PURE__ */ c("span", { class: "text-xs sr-only" }, "Clear input", -1), Fs = {
|
|
1189
1196
|
key: 2,
|
|
1190
1197
|
class: "pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center pr-2 text-danger opacity-50"
|
|
1191
|
-
},
|
|
1198
|
+
}, zs = ["id"], Es = M({
|
|
1192
1199
|
inheritAttrs: !1
|
|
1193
|
-
}),
|
|
1194
|
-
...
|
|
1200
|
+
}), el = /* @__PURE__ */ M({
|
|
1201
|
+
...Es,
|
|
1195
1202
|
__name: "TextInput",
|
|
1196
1203
|
props: {
|
|
1197
1204
|
/**
|
|
@@ -1326,33 +1333,33 @@ const is = ["for"], us = { class: "relative" }, ds = ["id", "name", "placeholder
|
|
|
1326
1333
|
}
|
|
1327
1334
|
},
|
|
1328
1335
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1329
|
-
setup(e, { expose: s, emit:
|
|
1330
|
-
const
|
|
1331
|
-
coreClasses:
|
|
1332
|
-
title:
|
|
1333
|
-
value:
|
|
1334
|
-
helpTipId:
|
|
1335
|
-
helpTipClasses:
|
|
1336
|
-
helpTip:
|
|
1337
|
-
hideHelpTip:
|
|
1338
|
-
errorMessage:
|
|
1336
|
+
setup(e, { expose: s, emit: n }) {
|
|
1337
|
+
const o = e, a = Fe(), r = A(null), {
|
|
1338
|
+
coreClasses: d,
|
|
1339
|
+
title: u,
|
|
1340
|
+
value: y,
|
|
1341
|
+
helpTipId: p,
|
|
1342
|
+
helpTipClasses: w,
|
|
1343
|
+
helpTip: g,
|
|
1344
|
+
hideHelpTip: h,
|
|
1345
|
+
errorMessage: v,
|
|
1339
1346
|
clear: V,
|
|
1340
1347
|
focus: b,
|
|
1341
|
-
labelClasses:
|
|
1342
|
-
} =
|
|
1343
|
-
props:
|
|
1344
|
-
emit:
|
|
1345
|
-
inputEl:
|
|
1348
|
+
labelClasses: I
|
|
1349
|
+
} = Ae({
|
|
1350
|
+
props: Z(o),
|
|
1351
|
+
emit: n,
|
|
1352
|
+
inputEl: r
|
|
1346
1353
|
}), _ = i(() => {
|
|
1347
|
-
const
|
|
1348
|
-
return
|
|
1349
|
-
}),
|
|
1350
|
-
() => ["email", "password"].includes(
|
|
1351
|
-
),
|
|
1352
|
-
const
|
|
1353
|
-
return
|
|
1354
|
-
}),
|
|
1355
|
-
switch (
|
|
1354
|
+
const P = ["h-5 w-5"];
|
|
1355
|
+
return v.value ? P.push("text-danger") : P.push("text-foreground-2"), P.join(" ");
|
|
1356
|
+
}), C = i(
|
|
1357
|
+
() => ["email", "password"].includes(o.type) || o.customIcon
|
|
1358
|
+
), q = i(() => {
|
|
1359
|
+
const P = [];
|
|
1360
|
+
return C.value ? P.push("pl-8") : P.push("pl-2"), a["input-right"] || (v.value || o.showClear) && (v.value && o.showClear ? P.push("pr-12") : P.push("pr-8")), P.join(" ");
|
|
1361
|
+
}), f = i(() => {
|
|
1362
|
+
switch (o.size) {
|
|
1356
1363
|
case "sm":
|
|
1357
1364
|
return "h-6";
|
|
1358
1365
|
case "lg":
|
|
@@ -1364,197 +1371,197 @@ const is = ["for"], us = { class: "relative" }, ds = ["id", "name", "placeholder
|
|
|
1364
1371
|
return "h-8";
|
|
1365
1372
|
}
|
|
1366
1373
|
});
|
|
1367
|
-
return s({ focus: b }), (
|
|
1368
|
-
class:
|
|
1374
|
+
return s({ focus: b }), (P, R) => (l(), m("div", {
|
|
1375
|
+
class: x([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1369
1376
|
}, [
|
|
1370
|
-
|
|
1377
|
+
c("label", {
|
|
1371
1378
|
for: e.name,
|
|
1372
|
-
class:
|
|
1379
|
+
class: x(t(I))
|
|
1373
1380
|
}, [
|
|
1374
|
-
|
|
1375
|
-
], 10,
|
|
1376
|
-
|
|
1377
|
-
t(
|
|
1378
|
-
e.customIcon ? (
|
|
1381
|
+
c("span", null, $(t(u)), 1)
|
|
1382
|
+
], 10, Ms),
|
|
1383
|
+
c("div", As, [
|
|
1384
|
+
t(C) ? (l(), m("div", Ds, [
|
|
1385
|
+
e.customIcon ? (l(), j(U(e.customIcon), {
|
|
1379
1386
|
key: 0,
|
|
1380
|
-
class:
|
|
1387
|
+
class: x(t(_)),
|
|
1381
1388
|
"aria-hidden": "true"
|
|
1382
|
-
}, null, 8, ["class"])) : e.type === "email" ? (
|
|
1389
|
+
}, null, 8, ["class"])) : e.type === "email" ? (l(), j(t(st), {
|
|
1383
1390
|
key: 1,
|
|
1384
|
-
class:
|
|
1391
|
+
class: x(t(_)),
|
|
1385
1392
|
"aria-hidden": "true"
|
|
1386
|
-
}, null, 8, ["class"])) : e.type === "password" ? (
|
|
1393
|
+
}, null, 8, ["class"])) : e.type === "password" ? (l(), j(t(nt), {
|
|
1387
1394
|
key: 2,
|
|
1388
|
-
class:
|
|
1395
|
+
class: x(t(_)),
|
|
1389
1396
|
"aria-hidden": "true"
|
|
1390
|
-
}, null, 8, ["class"])) :
|
|
1391
|
-
])) :
|
|
1392
|
-
|
|
1397
|
+
}, null, 8, ["class"])) : S("", !0)
|
|
1398
|
+
])) : S("", !0),
|
|
1399
|
+
ee(c("input", ce({
|
|
1393
1400
|
id: e.name,
|
|
1394
1401
|
ref_key: "inputElement",
|
|
1395
|
-
ref:
|
|
1396
|
-
"onUpdate:modelValue":
|
|
1402
|
+
ref: r,
|
|
1403
|
+
"onUpdate:modelValue": R[0] || (R[0] = (O) => ne(y) ? y.value = O : null),
|
|
1397
1404
|
type: e.type,
|
|
1398
1405
|
name: e.name,
|
|
1399
|
-
class: [t(
|
|
1406
|
+
class: [t(d), t(q), t(f), e.inputClasses || ""],
|
|
1400
1407
|
placeholder: e.placeholder,
|
|
1401
1408
|
disabled: e.disabled,
|
|
1402
|
-
"aria-invalid": t(
|
|
1403
|
-
"aria-describedby": t(
|
|
1409
|
+
"aria-invalid": t(v) ? "true" : "false",
|
|
1410
|
+
"aria-describedby": t(p),
|
|
1404
1411
|
role: "textbox"
|
|
1405
|
-
},
|
|
1406
|
-
onChange:
|
|
1407
|
-
onInput:
|
|
1408
|
-
}), null, 16,
|
|
1409
|
-
[
|
|
1412
|
+
}, P.$attrs, {
|
|
1413
|
+
onChange: R[1] || (R[1] = (O) => P.$emit("change", { event: O, value: t(y) })),
|
|
1414
|
+
onInput: R[2] || (R[2] = (O) => P.$emit("input", { event: O, value: t(y) }))
|
|
1415
|
+
}), null, 16, Rs), [
|
|
1416
|
+
[ze, t(y)]
|
|
1410
1417
|
]),
|
|
1411
|
-
|
|
1412
|
-
e.showClear ? (
|
|
1418
|
+
z(P.$slots, "input-right", {}, () => [
|
|
1419
|
+
e.showClear ? (l(), m("a", {
|
|
1413
1420
|
key: 0,
|
|
1414
1421
|
title: "Clear input",
|
|
1415
1422
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1416
|
-
onClick:
|
|
1417
|
-
(...
|
|
1418
|
-
onKeydown:
|
|
1419
|
-
(...
|
|
1423
|
+
onClick: R[3] || (R[3] = //@ts-ignore
|
|
1424
|
+
(...O) => t(V) && t(V)(...O)),
|
|
1425
|
+
onKeydown: R[4] || (R[4] = //@ts-ignore
|
|
1426
|
+
(...O) => t(V) && t(V)(...O))
|
|
1420
1427
|
}, [
|
|
1421
|
-
|
|
1422
|
-
|
|
1428
|
+
Ts,
|
|
1429
|
+
B(t(de), {
|
|
1423
1430
|
class: "h-5 w-5 text-foreground",
|
|
1424
1431
|
"aria-hidden": "true"
|
|
1425
1432
|
})
|
|
1426
|
-
], 32)) :
|
|
1427
|
-
t(
|
|
1433
|
+
], 32)) : S("", !0),
|
|
1434
|
+
t(v) ? (l(), m("div", {
|
|
1428
1435
|
key: 1,
|
|
1429
|
-
class:
|
|
1436
|
+
class: x([
|
|
1430
1437
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1431
1438
|
e.showClear ? "pr-8" : "pr-2"
|
|
1432
1439
|
])
|
|
1433
1440
|
}, [
|
|
1434
|
-
|
|
1441
|
+
B(t(Ve), {
|
|
1435
1442
|
class: "h-4 w-4 text-danger",
|
|
1436
1443
|
"aria-hidden": "true"
|
|
1437
1444
|
})
|
|
1438
|
-
], 2)) :
|
|
1439
|
-
e.showRequired && !t(
|
|
1445
|
+
], 2)) : S("", !0),
|
|
1446
|
+
e.showRequired && !t(v) ? (l(), m("div", Fs, " * ")) : S("", !0)
|
|
1440
1447
|
])
|
|
1441
1448
|
]),
|
|
1442
|
-
t(
|
|
1449
|
+
t(p) && !t(h) ? (l(), m("p", {
|
|
1443
1450
|
key: 0,
|
|
1444
|
-
id: t(
|
|
1445
|
-
class:
|
|
1446
|
-
},
|
|
1451
|
+
id: t(p),
|
|
1452
|
+
class: x(t(w))
|
|
1453
|
+
}, $(t(g)), 11, zs)) : S("", !0)
|
|
1447
1454
|
], 2));
|
|
1448
1455
|
}
|
|
1449
|
-
}),
|
|
1450
|
-
const { minLength:
|
|
1451
|
-
return s =
|
|
1452
|
-
},
|
|
1453
|
-
const { match:
|
|
1454
|
-
return
|
|
1455
|
-
},
|
|
1456
|
+
}), Ws = /^https?:\/\//, me = /^[\w-_.+]+@[\w-_.+]+$/, Us = (e) => (e || "").match(me) ? !0 : "Value should be a valid e-mail address", qs = (e) => (e || "").split(",").map((o) => o.trim()).every((o) => o.match(me)) || "Value should be one or multiple comma-delimited e-mail addresses", Hs = (e) => (te(e) && (e = e.trim()), e ? !0 : "Value is required"), Gs = (e, s) => (n, o) => n === o.form[e] ? !0 : `Value must be the same as in field '${s || e}'`, Ks = (e) => (s) => {
|
|
1457
|
+
const { minLength: n, maxLength: o } = e;
|
|
1458
|
+
return s = lt(s) ? "" : s, te(s) ? !X(n) && s.length < n ? `Value needs to be at least ${n} characters long` : !X(o) && s.length > o ? `Value needs to be no more than ${o} characters long` : !0 : "Value should be a text string";
|
|
1459
|
+
}, Xs = (e) => (s) => {
|
|
1460
|
+
const { match: n, message: o } = e;
|
|
1461
|
+
return te(s) ? n ? te(n) ? s.includes(n) ? !0 : o : n.test(s) ? !0 : o : !0 : "Value should be a text string";
|
|
1462
|
+
}, tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1456
1463
|
__proto__: null,
|
|
1457
|
-
VALID_EMAIL:
|
|
1458
|
-
VALID_HTTP_URL:
|
|
1459
|
-
isEmail:
|
|
1460
|
-
isOneOrMultipleEmails:
|
|
1461
|
-
isRequired:
|
|
1462
|
-
isSameAs:
|
|
1463
|
-
isStringOfLength:
|
|
1464
|
-
stringContains:
|
|
1464
|
+
VALID_EMAIL: me,
|
|
1465
|
+
VALID_HTTP_URL: Ws,
|
|
1466
|
+
isEmail: Us,
|
|
1467
|
+
isOneOrMultipleEmails: qs,
|
|
1468
|
+
isRequired: Hs,
|
|
1469
|
+
isSameAs: Gs,
|
|
1470
|
+
isStringOfLength: Ks,
|
|
1471
|
+
stringContains: Xs
|
|
1465
1472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1466
|
-
function
|
|
1473
|
+
function Ns(e) {
|
|
1467
1474
|
const {
|
|
1468
1475
|
skipCalculation: s,
|
|
1469
|
-
elementToWatchForChanges:
|
|
1470
|
-
itemContainer:
|
|
1471
|
-
trackResize:
|
|
1472
|
-
trackMutations:
|
|
1473
|
-
} = e || {},
|
|
1474
|
-
const
|
|
1475
|
-
if (s != null && s.value || !
|
|
1476
|
+
elementToWatchForChanges: n,
|
|
1477
|
+
itemContainer: o,
|
|
1478
|
+
trackResize: a = !1,
|
|
1479
|
+
trackMutations: r = !0
|
|
1480
|
+
} = e || {}, d = A(0), u = () => {
|
|
1481
|
+
const y = o.value;
|
|
1482
|
+
if (s != null && s.value || !y)
|
|
1476
1483
|
return;
|
|
1477
|
-
const
|
|
1478
|
-
let
|
|
1479
|
-
for (const
|
|
1480
|
-
const V =
|
|
1481
|
-
|
|
1484
|
+
const p = y.children;
|
|
1485
|
+
let w = 0, g = 0, h;
|
|
1486
|
+
for (const v of p) {
|
|
1487
|
+
const V = v.offsetTop;
|
|
1488
|
+
X(h) ? (h = V, w += 1) : V === h && (w += 1), g += 1;
|
|
1482
1489
|
}
|
|
1483
|
-
|
|
1490
|
+
d.value = g - w;
|
|
1484
1491
|
};
|
|
1485
|
-
return
|
|
1492
|
+
return a && rt(n, u), r && it(n, u, {
|
|
1486
1493
|
childList: !0,
|
|
1487
1494
|
subtree: !0
|
|
1488
1495
|
}), {
|
|
1489
|
-
hiddenItemCount:
|
|
1496
|
+
hiddenItemCount: d
|
|
1490
1497
|
};
|
|
1491
1498
|
}
|
|
1492
|
-
function
|
|
1493
|
-
const { props: s, emit:
|
|
1494
|
-
let
|
|
1495
|
-
if (
|
|
1496
|
-
const { elementToWatchForChanges:
|
|
1497
|
-
|
|
1499
|
+
function Js(e) {
|
|
1500
|
+
const { props: s, emit: n, dynamicVisibility: o } = e;
|
|
1501
|
+
let a;
|
|
1502
|
+
if (o) {
|
|
1503
|
+
const { elementToWatchForChanges: p, itemContainer: w } = o;
|
|
1504
|
+
a = Ns({
|
|
1498
1505
|
skipCalculation: i(() => {
|
|
1499
|
-
var
|
|
1500
|
-
return !((
|
|
1506
|
+
var h;
|
|
1507
|
+
return !((h = s.multiple) != null && h.value);
|
|
1501
1508
|
}),
|
|
1502
|
-
elementToWatchForChanges:
|
|
1503
|
-
itemContainer:
|
|
1509
|
+
elementToWatchForChanges: p,
|
|
1510
|
+
itemContainer: w
|
|
1504
1511
|
}).hiddenItemCount;
|
|
1505
1512
|
} else
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1513
|
+
a = A(0);
|
|
1514
|
+
const r = i({
|
|
1508
1515
|
get: () => {
|
|
1509
|
-
var
|
|
1510
|
-
const
|
|
1511
|
-
return (
|
|
1516
|
+
var w, g;
|
|
1517
|
+
const p = (w = s.modelValue) == null ? void 0 : w.value;
|
|
1518
|
+
return (g = s.multiple) != null && g.value ? E(p) ? p : [] : E(p) ? void 0 : p;
|
|
1512
1519
|
},
|
|
1513
|
-
set: (
|
|
1514
|
-
var
|
|
1515
|
-
if ((
|
|
1520
|
+
set: (p) => {
|
|
1521
|
+
var w, g, h;
|
|
1522
|
+
if ((w = s.multiple) != null && w.value && !E(p)) {
|
|
1516
1523
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1517
1524
|
return;
|
|
1518
|
-
} else if (!((
|
|
1525
|
+
} else if (!((g = s.multiple) != null && g.value) && E(p)) {
|
|
1519
1526
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1520
1527
|
return;
|
|
1521
1528
|
}
|
|
1522
|
-
|
|
1529
|
+
n("update:modelValue", (h = s.multiple) != null && h.value ? p || [] : p);
|
|
1523
1530
|
}
|
|
1524
|
-
}),
|
|
1531
|
+
}), d = (p) => E(p);
|
|
1525
1532
|
return {
|
|
1526
|
-
selectedValue:
|
|
1527
|
-
hiddenSelectedItemCount:
|
|
1528
|
-
isArrayValue:
|
|
1529
|
-
isMultiItemArrayValue: (
|
|
1530
|
-
firstItem: (
|
|
1533
|
+
selectedValue: r,
|
|
1534
|
+
hiddenSelectedItemCount: a,
|
|
1535
|
+
isArrayValue: d,
|
|
1536
|
+
isMultiItemArrayValue: (p) => E(p) && p.length > 1,
|
|
1537
|
+
firstItem: (p) => d(p) ? p[0] : p
|
|
1531
1538
|
};
|
|
1532
1539
|
}
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
],
|
|
1540
|
+
const Qs = (e) => (we("data-v-60cf597b"), e = e(), $e(), e), Ys = /* @__PURE__ */ Qs(() => /* @__PURE__ */ c("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Zs = [
|
|
1541
|
+
Ys
|
|
1542
|
+
], en = /* @__PURE__ */ M({
|
|
1536
1543
|
__name: "Bar",
|
|
1537
1544
|
props: {
|
|
1538
1545
|
loading: { type: Boolean }
|
|
1539
1546
|
},
|
|
1540
1547
|
setup(e) {
|
|
1541
|
-
return (s,
|
|
1542
|
-
class:
|
|
1548
|
+
return (s, n) => (l(), m("div", {
|
|
1549
|
+
class: x([
|
|
1543
1550
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1544
1551
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1545
1552
|
])
|
|
1546
|
-
},
|
|
1553
|
+
}, Zs, 2));
|
|
1547
1554
|
}
|
|
1548
1555
|
});
|
|
1549
|
-
const
|
|
1556
|
+
const tn = /* @__PURE__ */ he(en, [["__scopeId", "data-v-60cf597b"]]), sn = { class: "flex items-center justify-between w-full" }, nn = { class: "block truncate grow text-left" }, ln = { class: "pointer-events-none shrink-0 ml-1 flex items-center" }, an = ["disabled"], on = {
|
|
1550
1557
|
key: 0,
|
|
1551
1558
|
class: "flex flex-col mx-1 mb-1"
|
|
1552
|
-
},
|
|
1559
|
+
}, rn = /* @__PURE__ */ c("span", { class: "sr-only label text-foreground" }, "Search", -1), un = { class: "relative" }, cn = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, dn = ["placeholder"], fn = {
|
|
1553
1560
|
key: 0,
|
|
1554
1561
|
class: "px-1"
|
|
1555
|
-
},
|
|
1556
|
-
class: /* @__PURE__ */
|
|
1557
|
-
},
|
|
1562
|
+
}, pn = { key: 1 }, hn = /* @__PURE__ */ c("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), mn = {
|
|
1563
|
+
class: /* @__PURE__ */ x(["block truncate"])
|
|
1564
|
+
}, gn = ["id"], yn = /* @__PURE__ */ M({
|
|
1558
1565
|
__name: "Base",
|
|
1559
1566
|
props: {
|
|
1560
1567
|
multiple: {
|
|
@@ -1686,142 +1693,142 @@ const As = /* @__PURE__ */ ue(Ms, [["__scopeId", "data-v-60cf597b"]]), Fs = { cl
|
|
|
1686
1693
|
},
|
|
1687
1694
|
emits: ["update:modelValue"],
|
|
1688
1695
|
setup(e) {
|
|
1689
|
-
const s = e, { value:
|
|
1696
|
+
const s = e, { value: n, errorMessage: o } = fe(s.name, s.rules, {
|
|
1690
1697
|
validateOnMount: s.validateOnMount,
|
|
1691
1698
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1692
1699
|
initialValue: s.modelValue
|
|
1693
|
-
}),
|
|
1694
|
-
const
|
|
1695
|
-
return !
|
|
1696
|
-
}),
|
|
1697
|
-
() =>
|
|
1700
|
+
}), a = A(null), r = A(""), d = A([]), u = A(!1), y = A(pe()), p = i(() => t(s.label) || t(s.name)), w = i(() => {
|
|
1701
|
+
const k = o.value;
|
|
1702
|
+
return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", p.value);
|
|
1703
|
+
}), g = i(() => w.value || t(s.help)), h = i(() => !!g.value), v = i(
|
|
1704
|
+
() => h.value ? `${t(s.name)}-${y.value}` : void 0
|
|
1698
1705
|
), V = i(
|
|
1699
|
-
() =>
|
|
1706
|
+
() => o.value ? "text-danger" : "text-foreground-2"
|
|
1700
1707
|
), b = i(
|
|
1701
1708
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1702
|
-
),
|
|
1703
|
-
const
|
|
1704
|
-
return s.buttonStyle !== "simple" && (
|
|
1709
|
+
), I = i(() => {
|
|
1710
|
+
const k = ["relative flex group", s.showLabel ? "mt-1" : ""];
|
|
1711
|
+
return s.buttonStyle !== "simple" && (k.push("hover:shadow rounded-md"), k.push("outline outline-2 outline-primary-muted")), s.fixedHeight && k.push("h-8"), k.join(" ");
|
|
1705
1712
|
}), _ = i(() => {
|
|
1706
|
-
const
|
|
1707
|
-
return s.buttonStyle !== "simple" &&
|
|
1708
|
-
|
|
1709
|
-
),
|
|
1710
|
-
}),
|
|
1711
|
-
const
|
|
1713
|
+
const k = [];
|
|
1714
|
+
return s.buttonStyle !== "simple" && k.push(
|
|
1715
|
+
R.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1716
|
+
), R.value && k.push("cursor-not-allowed"), k.join(" ");
|
|
1717
|
+
}), C = i(() => {
|
|
1718
|
+
const k = [
|
|
1712
1719
|
"relative z-[1]",
|
|
1713
1720
|
"flex items-center justify-center text-center shrink-0",
|
|
1714
1721
|
"rounded-r-md overflow-hidden transition-all",
|
|
1715
|
-
|
|
1722
|
+
ge.value ? `w-6 ${_.value}` : "w-0"
|
|
1716
1723
|
];
|
|
1717
|
-
return
|
|
1724
|
+
return R.value || k.push(
|
|
1718
1725
|
"bg-primary-muted hover:bg-primary hover:text-foreground-on-primary"
|
|
1719
|
-
),
|
|
1720
|
-
}),
|
|
1721
|
-
const
|
|
1726
|
+
), k.join(" ");
|
|
1727
|
+
}), q = i(() => {
|
|
1728
|
+
const k = [
|
|
1722
1729
|
"relative z-[2]",
|
|
1723
1730
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1724
1731
|
"flex items-center",
|
|
1725
1732
|
_.value
|
|
1726
1733
|
];
|
|
1727
|
-
return s.buttonStyle !== "simple" && (
|
|
1728
|
-
}),
|
|
1734
|
+
return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), R.value || k.push("bg-foundation text-foreground")), b.value && ge.value && k.push("rounded-r-none"), k.join(" ");
|
|
1735
|
+
}), f = i(
|
|
1729
1736
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1730
|
-
),
|
|
1731
|
-
() => s.disabled || !s.items.length && !
|
|
1732
|
-
),
|
|
1737
|
+
), P = i(() => f.value && s.getSearchResults), R = i(
|
|
1738
|
+
() => s.disabled || !s.items.length && !P.value
|
|
1739
|
+
), O = i({
|
|
1733
1740
|
get: () => {
|
|
1734
|
-
const
|
|
1735
|
-
return s.multiple ?
|
|
1741
|
+
const k = n.value;
|
|
1742
|
+
return s.multiple ? E(k) ? k : [] : E(k) ? void 0 : k;
|
|
1736
1743
|
},
|
|
1737
|
-
set: (
|
|
1738
|
-
if (s.multiple && !
|
|
1744
|
+
set: (k) => {
|
|
1745
|
+
if (s.multiple && !E(k)) {
|
|
1739
1746
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1740
1747
|
return;
|
|
1741
|
-
} else if (!s.multiple &&
|
|
1748
|
+
} else if (!s.multiple && E(k)) {
|
|
1742
1749
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1743
1750
|
return;
|
|
1744
1751
|
}
|
|
1745
1752
|
if (s.multiple)
|
|
1746
|
-
|
|
1753
|
+
n.value = k || [];
|
|
1747
1754
|
else {
|
|
1748
|
-
const
|
|
1749
|
-
|
|
1755
|
+
const F = n.value, D = s.allowUnset && F && k && le(F) === le(k);
|
|
1756
|
+
n.value = D ? void 0 : k;
|
|
1750
1757
|
}
|
|
1751
1758
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
s.multiple ?
|
|
1754
|
-
},
|
|
1755
|
-
const
|
|
1756
|
-
return !
|
|
1757
|
-
(
|
|
1758
|
-
var
|
|
1759
|
-
return ((
|
|
1759
|
+
}), ge = i(() => s.multiple ? O.value.length !== 0 : !!O.value), De = () => {
|
|
1760
|
+
s.multiple ? O.value = [] : O.value = void 0;
|
|
1761
|
+
}, Re = i(() => {
|
|
1762
|
+
const k = r.value;
|
|
1763
|
+
return !f.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
|
|
1764
|
+
(F) => {
|
|
1765
|
+
var D;
|
|
1766
|
+
return ((D = s.filterPredicate) == null ? void 0 : D.call(s, F, k)) || !1;
|
|
1760
1767
|
}
|
|
1761
|
-
) :
|
|
1762
|
-
}),
|
|
1763
|
-
if (console.log("triggerSearch"), !(!
|
|
1764
|
-
|
|
1768
|
+
) : d.value;
|
|
1769
|
+
}), ye = (k) => JSON.stringify(k), le = (k) => s.by ? k[s.by] : k, ve = async () => {
|
|
1770
|
+
if (console.log("triggerSearch"), !(!P.value || !s.getSearchResults)) {
|
|
1771
|
+
u.value = !0;
|
|
1765
1772
|
try {
|
|
1766
|
-
|
|
1773
|
+
d.value = await s.getSearchResults(r.value);
|
|
1767
1774
|
} finally {
|
|
1768
|
-
|
|
1775
|
+
u.value = !1;
|
|
1769
1776
|
}
|
|
1770
1777
|
}
|
|
1771
|
-
},
|
|
1772
|
-
return
|
|
1778
|
+
}, Te = Be(ve, 1e3);
|
|
1779
|
+
return Y(
|
|
1773
1780
|
() => s.items,
|
|
1774
|
-
(
|
|
1775
|
-
|
|
1781
|
+
(k) => {
|
|
1782
|
+
d.value = k.slice();
|
|
1776
1783
|
},
|
|
1777
1784
|
{ immediate: !0 }
|
|
1778
|
-
),
|
|
1779
|
-
|
|
1780
|
-
}),
|
|
1781
|
-
|
|
1782
|
-
}), (
|
|
1783
|
-
|
|
1784
|
-
modelValue: t(
|
|
1785
|
-
"onUpdate:modelValue":
|
|
1785
|
+
), Y(r, () => {
|
|
1786
|
+
P.value && Te();
|
|
1787
|
+
}), se(() => {
|
|
1788
|
+
P.value && !s.items.length && ve();
|
|
1789
|
+
}), (k, F) => (l(), m("div", null, [
|
|
1790
|
+
B(t(ct), {
|
|
1791
|
+
modelValue: t(O),
|
|
1792
|
+
"onUpdate:modelValue": F[4] || (F[4] = (D) => ne(O) ? O.value = D : null),
|
|
1786
1793
|
name: e.name,
|
|
1787
1794
|
multiple: e.multiple,
|
|
1788
1795
|
by: e.by,
|
|
1789
|
-
disabled: t(
|
|
1796
|
+
disabled: t(R),
|
|
1790
1797
|
as: "div"
|
|
1791
1798
|
}, {
|
|
1792
|
-
default:
|
|
1793
|
-
|
|
1794
|
-
class:
|
|
1799
|
+
default: L(() => [
|
|
1800
|
+
B(t(dt), {
|
|
1801
|
+
class: x(["block label text-foreground", { "sr-only": !e.showLabel }])
|
|
1795
1802
|
}, {
|
|
1796
|
-
default:
|
|
1797
|
-
|
|
1803
|
+
default: L(() => [
|
|
1804
|
+
T($(e.label), 1)
|
|
1798
1805
|
]),
|
|
1799
1806
|
_: 1
|
|
1800
1807
|
}, 8, ["class"]),
|
|
1801
|
-
|
|
1802
|
-
class:
|
|
1808
|
+
c("div", {
|
|
1809
|
+
class: x(t(I))
|
|
1803
1810
|
}, [
|
|
1804
|
-
|
|
1805
|
-
class:
|
|
1811
|
+
B(t(ft), {
|
|
1812
|
+
class: x(t(q))
|
|
1806
1813
|
}, {
|
|
1807
|
-
default:
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
!t(
|
|
1811
|
-
|
|
1812
|
-
]) :
|
|
1814
|
+
default: L(({ open: D }) => [
|
|
1815
|
+
c("div", sn, [
|
|
1816
|
+
c("div", nn, [
|
|
1817
|
+
!t(O) || t(E)(t(O)) && !t(O).length ? z(k.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1818
|
+
T($(e.label), 1)
|
|
1819
|
+
]) : z(k.$slots, "something-selected", {
|
|
1813
1820
|
key: 1,
|
|
1814
|
-
value: t(
|
|
1821
|
+
value: t(O)
|
|
1815
1822
|
}, () => [
|
|
1816
|
-
|
|
1823
|
+
T($(ye(t(O))), 1)
|
|
1817
1824
|
])
|
|
1818
1825
|
]),
|
|
1819
|
-
|
|
1820
|
-
|
|
1826
|
+
c("div", ln, [
|
|
1827
|
+
D ? (l(), j(t(Le), {
|
|
1821
1828
|
key: 0,
|
|
1822
1829
|
class: "h-4 w-4 text-foreground",
|
|
1823
1830
|
"aria-hidden": "true"
|
|
1824
|
-
})) : (
|
|
1831
|
+
})) : (l(), j(t(Ue), {
|
|
1825
1832
|
key: 1,
|
|
1826
1833
|
class: "h-4 w-4 text-foreground",
|
|
1827
1834
|
"aria-hidden": "true"
|
|
@@ -1831,97 +1838,97 @@ const As = /* @__PURE__ */ ue(Ms, [["__scopeId", "data-v-60cf597b"]]), Fs = { cl
|
|
|
1831
1838
|
]),
|
|
1832
1839
|
_: 3
|
|
1833
1840
|
}, 8, ["class"]),
|
|
1834
|
-
t(b) ?
|
|
1841
|
+
t(b) ? ee((l(), m("button", {
|
|
1835
1842
|
key: 0,
|
|
1836
|
-
class:
|
|
1843
|
+
class: x(t(C)),
|
|
1837
1844
|
disabled: e.disabled,
|
|
1838
|
-
onClick:
|
|
1845
|
+
onClick: F[0] || (F[0] = (D) => De())
|
|
1839
1846
|
}, [
|
|
1840
|
-
|
|
1841
|
-
], 10,
|
|
1842
|
-
[t(
|
|
1843
|
-
]) :
|
|
1844
|
-
|
|
1847
|
+
B(t(qe), { class: "w-3 h-3" })
|
|
1848
|
+
], 10, an)), [
|
|
1849
|
+
[t(_t), "Clear"]
|
|
1850
|
+
]) : S("", !0),
|
|
1851
|
+
B(ue, {
|
|
1845
1852
|
"leave-active-class": "transition ease-in duration-100",
|
|
1846
1853
|
"leave-from-class": "opacity-100",
|
|
1847
1854
|
"leave-to-class": "opacity-0"
|
|
1848
1855
|
}, {
|
|
1849
|
-
default:
|
|
1850
|
-
|
|
1856
|
+
default: L(() => [
|
|
1857
|
+
B(t(pt), {
|
|
1851
1858
|
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",
|
|
1852
|
-
onFocus:
|
|
1853
|
-
var
|
|
1854
|
-
return (
|
|
1859
|
+
onFocus: F[3] || (F[3] = (D) => {
|
|
1860
|
+
var G;
|
|
1861
|
+
return (G = a.value) == null ? void 0 : G.focus();
|
|
1855
1862
|
})
|
|
1856
1863
|
}, {
|
|
1857
|
-
default:
|
|
1858
|
-
t(
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1864
|
+
default: L(() => [
|
|
1865
|
+
t(f) ? (l(), m("label", on, [
|
|
1866
|
+
rn,
|
|
1867
|
+
c("div", un, [
|
|
1868
|
+
c("div", cn, [
|
|
1869
|
+
B(t(He), { class: "h-5 w-5 text-foreground" })
|
|
1863
1870
|
]),
|
|
1864
|
-
|
|
1871
|
+
ee(c("input", {
|
|
1865
1872
|
ref_key: "searchInput",
|
|
1866
|
-
ref:
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1873
|
+
ref: a,
|
|
1874
|
+
"onUpdate:modelValue": F[1] || (F[1] = (D) => r.value = D),
|
|
1868
1875
|
type: "text",
|
|
1869
1876
|
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",
|
|
1870
1877
|
placeholder: e.searchPlaceholder,
|
|
1871
|
-
onKeydown:
|
|
1878
|
+
onKeydown: F[2] || (F[2] = Se(() => {
|
|
1872
1879
|
}, ["stop"]))
|
|
1873
|
-
}, null, 40,
|
|
1874
|
-
[
|
|
1880
|
+
}, null, 40, dn), [
|
|
1881
|
+
[_e, r.value]
|
|
1875
1882
|
])
|
|
1876
1883
|
])
|
|
1877
|
-
])) :
|
|
1878
|
-
|
|
1879
|
-
class:
|
|
1884
|
+
])) : S("", !0),
|
|
1885
|
+
c("div", {
|
|
1886
|
+
class: x(["overflow-auto simple-scrollbar", [t(f) ? "max-h-52" : "max-h-60"]])
|
|
1880
1887
|
}, [
|
|
1881
|
-
t(
|
|
1882
|
-
|
|
1883
|
-
])) : t(
|
|
1884
|
-
|
|
1885
|
-
|
|
1888
|
+
t(P) && u.value ? (l(), m("div", fn, [
|
|
1889
|
+
B(tn, { loading: !0 })
|
|
1890
|
+
])) : t(P) && !d.value.length ? (l(), m("div", pn, [
|
|
1891
|
+
z(k.$slots, "nothing-found", {}, () => [
|
|
1892
|
+
hn
|
|
1886
1893
|
])
|
|
1887
|
-
])) :
|
|
1888
|
-
!t(
|
|
1889
|
-
key:
|
|
1890
|
-
value:
|
|
1894
|
+
])) : S("", !0),
|
|
1895
|
+
!t(P) || !u.value ? (l(!0), m(W, { key: 2 }, H(t(Re), (D) => (l(), j(t(ht), {
|
|
1896
|
+
key: le(D),
|
|
1897
|
+
value: D
|
|
1891
1898
|
}, {
|
|
1892
|
-
default:
|
|
1893
|
-
|
|
1894
|
-
class:
|
|
1895
|
-
|
|
1899
|
+
default: L(({ active: G, selected: be }) => [
|
|
1900
|
+
c("li", {
|
|
1901
|
+
class: x([
|
|
1902
|
+
G ? "text-primary" : "text-foreground",
|
|
1896
1903
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1897
1904
|
e.hideCheckmarks ? "" : "pr-9"
|
|
1898
1905
|
])
|
|
1899
1906
|
}, [
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
item:
|
|
1903
|
-
active:
|
|
1904
|
-
selected:
|
|
1907
|
+
c("span", mn, [
|
|
1908
|
+
z(k.$slots, "option", {
|
|
1909
|
+
item: D,
|
|
1910
|
+
active: G,
|
|
1911
|
+
selected: be
|
|
1905
1912
|
}, () => [
|
|
1906
|
-
|
|
1913
|
+
T($(ye(D)), 1)
|
|
1907
1914
|
])
|
|
1908
1915
|
]),
|
|
1909
|
-
!e.hideCheckmarks &&
|
|
1916
|
+
!e.hideCheckmarks && be ? (l(), m("span", {
|
|
1910
1917
|
key: 0,
|
|
1911
|
-
class:
|
|
1912
|
-
|
|
1918
|
+
class: x([
|
|
1919
|
+
G ? "text-primary" : "text-foreground",
|
|
1913
1920
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
1914
1921
|
])
|
|
1915
1922
|
}, [
|
|
1916
|
-
|
|
1923
|
+
B(t(Ge), {
|
|
1917
1924
|
class: "h-5 w-5",
|
|
1918
1925
|
"aria-hidden": "true"
|
|
1919
1926
|
})
|
|
1920
|
-
], 2)) :
|
|
1927
|
+
], 2)) : S("", !0)
|
|
1921
1928
|
], 2)
|
|
1922
1929
|
]),
|
|
1923
1930
|
_: 2
|
|
1924
|
-
}, 1032, ["value"]))), 128)) :
|
|
1931
|
+
}, 1032, ["value"]))), 128)) : S("", !0)
|
|
1925
1932
|
], 2)
|
|
1926
1933
|
]),
|
|
1927
1934
|
_: 3
|
|
@@ -1933,37 +1940,37 @@ const As = /* @__PURE__ */ ue(Ms, [["__scopeId", "data-v-60cf597b"]]), Fs = { cl
|
|
|
1933
1940
|
]),
|
|
1934
1941
|
_: 3
|
|
1935
1942
|
}, 8, ["modelValue", "name", "multiple", "by", "disabled"]),
|
|
1936
|
-
t(
|
|
1943
|
+
t(v) ? (l(), m("p", {
|
|
1937
1944
|
key: 0,
|
|
1938
|
-
id: t(
|
|
1939
|
-
class:
|
|
1940
|
-
},
|
|
1945
|
+
id: t(v),
|
|
1946
|
+
class: x(["mt-2 ml-3 text-sm", t(V)])
|
|
1947
|
+
}, $(t(g)), 11, gn)) : S("", !0)
|
|
1941
1948
|
]));
|
|
1942
1949
|
}
|
|
1943
|
-
}),
|
|
1950
|
+
}), vn = /* @__PURE__ */ M({
|
|
1944
1951
|
__name: "SourceAppBadge",
|
|
1945
1952
|
props: {
|
|
1946
1953
|
sourceApp: null
|
|
1947
1954
|
},
|
|
1948
1955
|
setup(e) {
|
|
1949
|
-
return (s,
|
|
1956
|
+
return (s, n) => (l(), j(Wt, {
|
|
1950
1957
|
"color-classes": "text-foreground-on-primary",
|
|
1951
1958
|
rounded: "",
|
|
1952
|
-
style:
|
|
1959
|
+
style: ae({ backgroundColor: e.sourceApp.bgColor })
|
|
1953
1960
|
}, {
|
|
1954
|
-
default:
|
|
1955
|
-
|
|
1961
|
+
default: L(() => [
|
|
1962
|
+
T($(e.sourceApp.short), 1)
|
|
1956
1963
|
]),
|
|
1957
1964
|
_: 1
|
|
1958
1965
|
}, 8, ["style"]));
|
|
1959
1966
|
}
|
|
1960
|
-
}),
|
|
1967
|
+
}), bn = {
|
|
1961
1968
|
key: 0,
|
|
1962
1969
|
class: "text-foreground-2 normal"
|
|
1963
|
-
},
|
|
1970
|
+
}, xn = {
|
|
1964
1971
|
key: 1,
|
|
1965
1972
|
class: "flex items-center"
|
|
1966
|
-
},
|
|
1973
|
+
}, kn = { class: "truncate" }, Cn = { class: "flex items-center" }, wn = { class: "truncate" }, sl = /* @__PURE__ */ M({
|
|
1967
1974
|
__name: "SourceApps",
|
|
1968
1975
|
props: {
|
|
1969
1976
|
/**
|
|
@@ -2023,133 +2030,529 @@ const As = /* @__PURE__ */ ue(Ms, [["__scopeId", "data-v-60cf597b"]]), Fs = { cl
|
|
|
2023
2030
|
},
|
|
2024
2031
|
emits: ["update:modelValue"],
|
|
2025
2032
|
setup(e, { emit: s }) {
|
|
2026
|
-
const
|
|
2027
|
-
props:
|
|
2033
|
+
const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: d, isMultiItemArrayValue: u, firstItem: y } = Js({
|
|
2034
|
+
props: Z(n),
|
|
2028
2035
|
emit: s,
|
|
2029
|
-
dynamicVisibility: { elementToWatchForChanges:
|
|
2030
|
-
}),
|
|
2031
|
-
return (
|
|
2032
|
-
modelValue: t(
|
|
2033
|
-
"onUpdate:modelValue":
|
|
2036
|
+
dynamicVisibility: { elementToWatchForChanges: o, itemContainer: a }
|
|
2037
|
+
}), p = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
|
|
2038
|
+
return (w, g) => (l(), j(yn, {
|
|
2039
|
+
modelValue: t(r),
|
|
2040
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => ne(r) ? r.value = h : null),
|
|
2034
2041
|
multiple: e.multiple,
|
|
2035
|
-
items: e.items ?? t(
|
|
2042
|
+
items: e.items ?? t(at),
|
|
2036
2043
|
search: e.search,
|
|
2037
2044
|
"search-placeholder": e.searchPlaceholder,
|
|
2038
2045
|
label: e.label,
|
|
2039
2046
|
"show-label": e.showLabel,
|
|
2040
2047
|
name: e.name || "sourceApps",
|
|
2041
|
-
"filter-predicate":
|
|
2048
|
+
"filter-predicate": p,
|
|
2042
2049
|
by: "name"
|
|
2043
2050
|
}, {
|
|
2044
|
-
"nothing-selected":
|
|
2045
|
-
e.selectorPlaceholder ? (
|
|
2046
|
-
|
|
2047
|
-
], 64)) : (
|
|
2048
|
-
|
|
2051
|
+
"nothing-selected": L(() => [
|
|
2052
|
+
e.selectorPlaceholder ? (l(), m(W, { key: 0 }, [
|
|
2053
|
+
T($(e.selectorPlaceholder), 1)
|
|
2054
|
+
], 64)) : (l(), m(W, { key: 1 }, [
|
|
2055
|
+
T($(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2049
2056
|
], 64))
|
|
2050
2057
|
]),
|
|
2051
|
-
"something-selected":
|
|
2052
|
-
t(
|
|
2058
|
+
"something-selected": L(({ value: h }) => [
|
|
2059
|
+
t(u)(h) ? (l(), m("div", {
|
|
2053
2060
|
key: 0,
|
|
2054
2061
|
ref_key: "elementToWatchForChanges",
|
|
2055
|
-
ref:
|
|
2062
|
+
ref: o,
|
|
2056
2063
|
class: "flex items-center space-x-0.5 h-5"
|
|
2057
2064
|
}, [
|
|
2058
|
-
|
|
2065
|
+
c("div", {
|
|
2059
2066
|
ref_key: "itemContainer",
|
|
2060
|
-
ref:
|
|
2067
|
+
ref: a,
|
|
2061
2068
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2062
2069
|
}, [
|
|
2063
|
-
(
|
|
2064
|
-
key:
|
|
2065
|
-
"source-app":
|
|
2070
|
+
(l(!0), m(W, null, H(h, (v) => (l(), j(vn, {
|
|
2071
|
+
key: v.name,
|
|
2072
|
+
"source-app": v
|
|
2066
2073
|
}, null, 8, ["source-app"]))), 128))
|
|
2067
2074
|
], 512),
|
|
2068
|
-
t(
|
|
2069
|
-
], 512)) : (
|
|
2070
|
-
|
|
2075
|
+
t(d) > 0 ? (l(), m("div", bn, " +" + $(t(d)), 1)) : S("", !0)
|
|
2076
|
+
], 512)) : (l(), m("div", xn, [
|
|
2077
|
+
c("div", {
|
|
2071
2078
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2072
|
-
style:
|
|
2079
|
+
style: ae({ backgroundColor: t(y)(h).bgColor })
|
|
2073
2080
|
}, null, 4),
|
|
2074
|
-
|
|
2081
|
+
c("span", kn, $(t(y)(h).name), 1)
|
|
2075
2082
|
]))
|
|
2076
2083
|
]),
|
|
2077
|
-
option:
|
|
2078
|
-
|
|
2079
|
-
|
|
2084
|
+
option: L(({ item: h }) => [
|
|
2085
|
+
c("div", Cn, [
|
|
2086
|
+
c("div", {
|
|
2080
2087
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2081
|
-
style:
|
|
2088
|
+
style: ae({ backgroundColor: h.bgColor })
|
|
2082
2089
|
}, null, 4),
|
|
2083
|
-
|
|
2090
|
+
c("span", wn, $(h.name), 1)
|
|
2084
2091
|
])
|
|
2085
2092
|
]),
|
|
2086
2093
|
_: 1
|
|
2087
2094
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name"]));
|
|
2088
2095
|
}
|
|
2089
2096
|
});
|
|
2090
|
-
var
|
|
2091
|
-
const
|
|
2097
|
+
var Q = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(Q || {});
|
|
2098
|
+
const re = ot(), $n = {
|
|
2092
2099
|
[
|
|
2093
2100
|
"cmd-or-ctrl"
|
|
2094
2101
|
/* CtrlOrCmd */
|
|
2095
|
-
]:
|
|
2102
|
+
]: re === oe.Mac ? "Cmd" : "Ctrl",
|
|
2096
2103
|
[
|
|
2097
2104
|
"alt-or-opt"
|
|
2098
2105
|
/* AltOrOpt */
|
|
2099
|
-
]:
|
|
2106
|
+
]: re === oe.Mac ? "Opt" : "Alt",
|
|
2100
2107
|
shift: "Shift"
|
|
2101
2108
|
};
|
|
2102
|
-
function
|
|
2103
|
-
const s = (
|
|
2104
|
-
return e.map((
|
|
2109
|
+
function nl(e) {
|
|
2110
|
+
const s = (n) => Object.values(Q).includes(n);
|
|
2111
|
+
return e.map((n) => s(n) ? $n[n] : n).join("+");
|
|
2105
2112
|
}
|
|
2106
|
-
function
|
|
2107
|
-
|
|
2113
|
+
function ll(e, ...s) {
|
|
2114
|
+
ut(
|
|
2108
2115
|
s[0],
|
|
2109
|
-
(
|
|
2110
|
-
const
|
|
2111
|
-
for (const
|
|
2112
|
-
switch (
|
|
2113
|
-
case
|
|
2114
|
-
if (!
|
|
2116
|
+
(n) => {
|
|
2117
|
+
const o = n.getModifierState("Alt"), a = re === oe.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), r = n.getModifierState("Shift");
|
|
2118
|
+
for (const d of e)
|
|
2119
|
+
switch (d) {
|
|
2120
|
+
case Q.CtrlOrCmd:
|
|
2121
|
+
if (!a)
|
|
2115
2122
|
return;
|
|
2116
2123
|
break;
|
|
2117
|
-
case
|
|
2118
|
-
if (!
|
|
2124
|
+
case Q.AltOrOpt:
|
|
2125
|
+
if (!o)
|
|
2119
2126
|
return;
|
|
2120
2127
|
break;
|
|
2121
|
-
case
|
|
2122
|
-
if (!
|
|
2128
|
+
case Q.Shift:
|
|
2129
|
+
if (!r)
|
|
2123
2130
|
return;
|
|
2124
2131
|
break;
|
|
2125
2132
|
}
|
|
2126
|
-
s[1](
|
|
2133
|
+
s[1](n);
|
|
2127
2134
|
},
|
|
2128
2135
|
s[2]
|
|
2129
2136
|
);
|
|
2130
2137
|
}
|
|
2138
|
+
const _n = /* @__PURE__ */ c("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), Sn = { class: "fixed inset-0 z-10 overflow-y-auto" }, In = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, Bn = { class: "relative" }, al = /* @__PURE__ */ M({
|
|
2139
|
+
__name: "Dialog",
|
|
2140
|
+
props: {
|
|
2141
|
+
open: { type: Boolean },
|
|
2142
|
+
maxWidth: null,
|
|
2143
|
+
hideCloser: { type: Boolean }
|
|
2144
|
+
},
|
|
2145
|
+
emits: ["update:open", "fully-closed"],
|
|
2146
|
+
setup(e, { emit: s }) {
|
|
2147
|
+
const n = e, o = i({
|
|
2148
|
+
get: () => n.open,
|
|
2149
|
+
set: (d) => s("update:open", d)
|
|
2150
|
+
}), a = i(() => {
|
|
2151
|
+
switch (n.maxWidth) {
|
|
2152
|
+
case "sm":
|
|
2153
|
+
return 0;
|
|
2154
|
+
case "md":
|
|
2155
|
+
return 1;
|
|
2156
|
+
case "lg":
|
|
2157
|
+
return 2;
|
|
2158
|
+
case "xl":
|
|
2159
|
+
return 3;
|
|
2160
|
+
default:
|
|
2161
|
+
return 1e4;
|
|
2162
|
+
}
|
|
2163
|
+
}), r = i(() => {
|
|
2164
|
+
const d = [
|
|
2165
|
+
"px-4 pt-4 pb-4 w-full",
|
|
2166
|
+
"sm:my-8 sm:w-full sm:max-w-xl sm:p-6"
|
|
2167
|
+
];
|
|
2168
|
+
return a.value >= 1 && d.push("md:max-w-2xl"), a.value >= 2 && d.push("lg:max-w-4xl"), a.value >= 3 && d.push("xl:max-w-6xl"), a.value >= 4 && d.push("2xl:max-w-7xl"), d.join(" ");
|
|
2169
|
+
});
|
|
2170
|
+
return (d, u) => (l(), j(t(mt), {
|
|
2171
|
+
as: "template",
|
|
2172
|
+
show: t(o)
|
|
2173
|
+
}, {
|
|
2174
|
+
default: L(() => [
|
|
2175
|
+
B(t(gt), {
|
|
2176
|
+
as: "div",
|
|
2177
|
+
class: "relative z-40",
|
|
2178
|
+
onClose: u[2] || (u[2] = (y) => o.value = !1)
|
|
2179
|
+
}, {
|
|
2180
|
+
default: L(() => [
|
|
2181
|
+
B(t(Ce), {
|
|
2182
|
+
as: "template",
|
|
2183
|
+
enter: "ease-out duration-300",
|
|
2184
|
+
"enter-from": "opacity-0",
|
|
2185
|
+
"enter-to": "opacity-100",
|
|
2186
|
+
leave: "ease-in duration-200",
|
|
2187
|
+
"leave-from": "opacity-100",
|
|
2188
|
+
"leave-to": "opacity-0"
|
|
2189
|
+
}, {
|
|
2190
|
+
default: L(() => [
|
|
2191
|
+
_n
|
|
2192
|
+
]),
|
|
2193
|
+
_: 1
|
|
2194
|
+
}),
|
|
2195
|
+
c("div", Sn, [
|
|
2196
|
+
c("div", In, [
|
|
2197
|
+
B(t(Ce), {
|
|
2198
|
+
as: "template",
|
|
2199
|
+
enter: "ease-out duration-300",
|
|
2200
|
+
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2201
|
+
"enter-to": "opacity-100 translate-y-0 sm:scale-100",
|
|
2202
|
+
leave: "ease-in duration-200",
|
|
2203
|
+
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
2204
|
+
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2205
|
+
onAfterLeave: u[1] || (u[1] = (y) => d.$emit("fully-closed"))
|
|
2206
|
+
}, {
|
|
2207
|
+
default: L(() => [
|
|
2208
|
+
B(t(yt), {
|
|
2209
|
+
class: x([
|
|
2210
|
+
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2211
|
+
t(r)
|
|
2212
|
+
])
|
|
2213
|
+
}, {
|
|
2214
|
+
default: L(() => [
|
|
2215
|
+
c("div", Bn, [
|
|
2216
|
+
z(d.$slots, "default", {}, () => [
|
|
2217
|
+
T("Put your content here!")
|
|
2218
|
+
]),
|
|
2219
|
+
e.hideCloser ? S("", !0) : (l(), m("button", {
|
|
2220
|
+
key: 0,
|
|
2221
|
+
class: "absolute top-0 right-0 text-foreground",
|
|
2222
|
+
onClick: u[0] || (u[0] = (y) => o.value = !1)
|
|
2223
|
+
}, [
|
|
2224
|
+
B(t(Ze), { class: "h-6 w-6" })
|
|
2225
|
+
]))
|
|
2226
|
+
])
|
|
2227
|
+
]),
|
|
2228
|
+
_: 3
|
|
2229
|
+
}, 8, ["class"])
|
|
2230
|
+
]),
|
|
2231
|
+
_: 3
|
|
2232
|
+
})
|
|
2233
|
+
])
|
|
2234
|
+
])
|
|
2235
|
+
]),
|
|
2236
|
+
_: 3
|
|
2237
|
+
})
|
|
2238
|
+
]),
|
|
2239
|
+
_: 3
|
|
2240
|
+
}, 8, ["show"]));
|
|
2241
|
+
}
|
|
2242
|
+
}), Ln = { class: "inline-flex items-center space-x-2" }, Vn = { class: "label-light" }, ol = /* @__PURE__ */ M({
|
|
2243
|
+
__name: "Disclosure",
|
|
2244
|
+
props: {
|
|
2245
|
+
title: null,
|
|
2246
|
+
icon: null,
|
|
2247
|
+
color: { default: "default" }
|
|
2248
|
+
},
|
|
2249
|
+
setup(e) {
|
|
2250
|
+
const s = e, n = i(() => {
|
|
2251
|
+
const a = [
|
|
2252
|
+
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2253
|
+
"ring-1"
|
|
2254
|
+
];
|
|
2255
|
+
switch (s.color) {
|
|
2256
|
+
case "danger":
|
|
2257
|
+
a.push("border-danger text-danger ring-danger-lighter hover:ring-danger");
|
|
2258
|
+
break;
|
|
2259
|
+
case "default":
|
|
2260
|
+
default:
|
|
2261
|
+
a.push(
|
|
2262
|
+
"border-primary text-primary ring-primary-muted hover:ring-primary"
|
|
2263
|
+
);
|
|
2264
|
+
break;
|
|
2265
|
+
}
|
|
2266
|
+
return a.join(" ");
|
|
2267
|
+
}), o = i(() => {
|
|
2268
|
+
const a = ["mt-4 px-3 py-1 border-x "];
|
|
2269
|
+
switch (s.color) {
|
|
2270
|
+
case "danger":
|
|
2271
|
+
a.push("border-danger-lighter");
|
|
2272
|
+
break;
|
|
2273
|
+
case "default":
|
|
2274
|
+
default:
|
|
2275
|
+
a.push("border-primary-muted");
|
|
2276
|
+
break;
|
|
2277
|
+
}
|
|
2278
|
+
return a.join(" ");
|
|
2279
|
+
});
|
|
2280
|
+
return (a, r) => (l(), m("div", null, [
|
|
2281
|
+
B(t(vt), null, {
|
|
2282
|
+
default: L(({ open: d }) => [
|
|
2283
|
+
B(t(bt), {
|
|
2284
|
+
class: x(t(n))
|
|
2285
|
+
}, {
|
|
2286
|
+
default: L(() => [
|
|
2287
|
+
c("div", Ln, [
|
|
2288
|
+
e.icon ? (l(), j(U(e.icon), {
|
|
2289
|
+
key: 0,
|
|
2290
|
+
class: "h-4 w-4"
|
|
2291
|
+
})) : S("", !0),
|
|
2292
|
+
c("span", null, $(e.title), 1)
|
|
2293
|
+
]),
|
|
2294
|
+
B(t(Le), {
|
|
2295
|
+
class: x([d ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2296
|
+
}, null, 8, ["class"])
|
|
2297
|
+
]),
|
|
2298
|
+
_: 2
|
|
2299
|
+
}, 1032, ["class"]),
|
|
2300
|
+
B(t(xt), {
|
|
2301
|
+
class: x(t(o))
|
|
2302
|
+
}, {
|
|
2303
|
+
default: L(() => [
|
|
2304
|
+
c("div", Vn, [
|
|
2305
|
+
z(a.$slots, "default", {}, () => [
|
|
2306
|
+
T("Panel contents")
|
|
2307
|
+
])
|
|
2308
|
+
])
|
|
2309
|
+
]),
|
|
2310
|
+
_: 3
|
|
2311
|
+
}, 8, ["class"])
|
|
2312
|
+
]),
|
|
2313
|
+
_: 3
|
|
2314
|
+
})
|
|
2315
|
+
]));
|
|
2316
|
+
}
|
|
2317
|
+
});
|
|
2318
|
+
var K = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(K || {});
|
|
2319
|
+
const rl = /* @__PURE__ */ M({
|
|
2320
|
+
__name: "GridListToggle",
|
|
2321
|
+
props: {
|
|
2322
|
+
modelValue: null
|
|
2323
|
+
},
|
|
2324
|
+
emits: ["click", "update:modelValue"],
|
|
2325
|
+
setup(e, { emit: s }) {
|
|
2326
|
+
const n = e, o = i({
|
|
2327
|
+
get: () => n.modelValue || K.Grid,
|
|
2328
|
+
set: (d) => s("update:modelValue", d)
|
|
2329
|
+
}), a = i(
|
|
2330
|
+
() => o.value === K.Grid ? Ke : Xe
|
|
2331
|
+
), r = (d) => {
|
|
2332
|
+
s("click", d);
|
|
2333
|
+
const u = o.value === K.Grid ? K.List : K.Grid;
|
|
2334
|
+
o.value = u;
|
|
2335
|
+
};
|
|
2336
|
+
return (d, u) => (l(), m("button", {
|
|
2337
|
+
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2338
|
+
onClick: r
|
|
2339
|
+
}, [
|
|
2340
|
+
(l(), j(U(t(a)), { class: "h-6 w-6" }))
|
|
2341
|
+
]));
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
var jn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(jn || {}), ie = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(ie || {});
|
|
2345
|
+
function Pn(e, s) {
|
|
2346
|
+
if (!je)
|
|
2347
|
+
return;
|
|
2348
|
+
const {
|
|
2349
|
+
wait: n = 100,
|
|
2350
|
+
throttleOrDebounce: o = 0
|
|
2351
|
+
/* Throttle */
|
|
2352
|
+
} = s || {}, a = n ? o === 0 ? Ee(e, n) : Be(e, n) : e;
|
|
2353
|
+
se(() => window.addEventListener("resize", a)), Ie(() => window.removeEventListener("resize", a));
|
|
2354
|
+
}
|
|
2355
|
+
function il(e) {
|
|
2356
|
+
se(() => {
|
|
2357
|
+
window.addEventListener("beforeunload", e);
|
|
2358
|
+
}), Ie(() => {
|
|
2359
|
+
window.removeEventListener("beforeunload", e);
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2362
|
+
function On(e) {
|
|
2363
|
+
const { el: s, defaultDirection: n } = e, o = A(
|
|
2364
|
+
X(n) ? 1 : n
|
|
2365
|
+
/* Right */
|
|
2366
|
+
), a = i(() => {
|
|
2367
|
+
const d = t(e.stopUpdatesBelowWidth);
|
|
2368
|
+
if (!X(d))
|
|
2369
|
+
return d;
|
|
2370
|
+
const u = t(s);
|
|
2371
|
+
return u != null && u.offsetWidth ? u.offsetWidth * 2 : void 0;
|
|
2372
|
+
}), r = () => {
|
|
2373
|
+
if (!je)
|
|
2374
|
+
return;
|
|
2375
|
+
const d = t(s);
|
|
2376
|
+
if (!d)
|
|
2377
|
+
return;
|
|
2378
|
+
const u = d.getBoundingClientRect(), y = u.x + u.width > window.innerWidth, p = u.x < 0;
|
|
2379
|
+
y && p || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : p && (o.value = 1));
|
|
2380
|
+
};
|
|
2381
|
+
return Pn(() => r()), Y(
|
|
2382
|
+
() => t(s),
|
|
2383
|
+
(d) => {
|
|
2384
|
+
d && r();
|
|
2385
|
+
}
|
|
2386
|
+
), {
|
|
2387
|
+
direction: i(() => o.value),
|
|
2388
|
+
recalculateDirection: r
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
const Mn = ["onClick"], ul = /* @__PURE__ */ M({
|
|
2392
|
+
__name: "Menu",
|
|
2393
|
+
props: {
|
|
2394
|
+
open: { type: Boolean },
|
|
2395
|
+
items: null
|
|
2396
|
+
},
|
|
2397
|
+
emits: ["update:open", "chosen"],
|
|
2398
|
+
setup(e, { emit: s }) {
|
|
2399
|
+
const n = e, o = A(null), { direction: a } = On({
|
|
2400
|
+
el: i(() => {
|
|
2401
|
+
var h;
|
|
2402
|
+
return ((h = o.value) == null ? void 0 : h.el) || null;
|
|
2403
|
+
}),
|
|
2404
|
+
defaultDirection: ie.Left,
|
|
2405
|
+
stopUpdatesBelowWidth: 300
|
|
2406
|
+
}), r = A(null), d = A(!1), u = i({
|
|
2407
|
+
get: () => n.open || !1,
|
|
2408
|
+
set: (h) => s("update:open", h)
|
|
2409
|
+
}), y = (h) => {
|
|
2410
|
+
const { active: v, disabled: V } = h, b = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2411
|
+
return v ? b.push("bg-primary text-foreground-on-primary") : V ? b.push("text-foreground-disabled") : b.push("text-foreground"), b.join(" ");
|
|
2412
|
+
}, p = (h, v) => {
|
|
2413
|
+
s("chosen", { item: h, event: v });
|
|
2414
|
+
}, w = () => {
|
|
2415
|
+
var h;
|
|
2416
|
+
return (h = r.value) == null ? void 0 : h.el.click();
|
|
2417
|
+
}, g = (h) => {
|
|
2418
|
+
const v = !!h;
|
|
2419
|
+
return d.value = v, v;
|
|
2420
|
+
};
|
|
2421
|
+
return Y(d, (h, v) => {
|
|
2422
|
+
h !== v && (u.value = h);
|
|
2423
|
+
}), Y(u, (h) => {
|
|
2424
|
+
(h && !d.value || !h && d.value) && w();
|
|
2425
|
+
}), (h, v) => (l(), j(t(kt), {
|
|
2426
|
+
as: "div",
|
|
2427
|
+
class: "relative inline-block"
|
|
2428
|
+
}, {
|
|
2429
|
+
default: L(({ open: V }) => [
|
|
2430
|
+
c("div", null, [
|
|
2431
|
+
B(t(Ct), {
|
|
2432
|
+
ref_key: "menuButton",
|
|
2433
|
+
ref: r,
|
|
2434
|
+
class: "hidden",
|
|
2435
|
+
onClick: v[0] || (v[0] = Se(() => {
|
|
2436
|
+
}, ["stop", "prevent"]))
|
|
2437
|
+
}, null, 512),
|
|
2438
|
+
c("div", {
|
|
2439
|
+
class: x(V ? "pointer-events-none" : "")
|
|
2440
|
+
}, [
|
|
2441
|
+
z(h.$slots, "default", {
|
|
2442
|
+
toggle: w,
|
|
2443
|
+
open: g(V)
|
|
2444
|
+
})
|
|
2445
|
+
], 2)
|
|
2446
|
+
]),
|
|
2447
|
+
B(ue, {
|
|
2448
|
+
"enter-active-class": "transition duration-100 ease-out",
|
|
2449
|
+
"enter-from-class": "transform scale-95 opacity-0",
|
|
2450
|
+
"enter-to-class": "transform scale-100 opacity-100",
|
|
2451
|
+
"leave-active-class": "transition duration-75 ease-in",
|
|
2452
|
+
"leave-from-class": "transform scale-100 opacity-100",
|
|
2453
|
+
"leave-to-class": "transform scale-95 opacity-0"
|
|
2454
|
+
}, {
|
|
2455
|
+
default: L(() => [
|
|
2456
|
+
B(t(wt), {
|
|
2457
|
+
ref_key: "menuItems",
|
|
2458
|
+
ref: o,
|
|
2459
|
+
class: x([
|
|
2460
|
+
"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",
|
|
2461
|
+
t(a) === t(ie).Left ? "right-0" : ""
|
|
2462
|
+
])
|
|
2463
|
+
}, {
|
|
2464
|
+
default: L(() => [
|
|
2465
|
+
(l(!0), m(W, null, H(e.items, (b, I) => (l(), m("div", {
|
|
2466
|
+
key: I,
|
|
2467
|
+
class: "px-1 py-1"
|
|
2468
|
+
}, [
|
|
2469
|
+
(l(!0), m(W, null, H(b, (_) => (l(), j(t($t), {
|
|
2470
|
+
key: _.id,
|
|
2471
|
+
disabled: _.disabled
|
|
2472
|
+
}, {
|
|
2473
|
+
default: L(({ active: C, disabled: q }) => [
|
|
2474
|
+
c("button", {
|
|
2475
|
+
class: x(y({ active: C, disabled: q })),
|
|
2476
|
+
onClick: (f) => p(_, f)
|
|
2477
|
+
}, [
|
|
2478
|
+
z(h.$slots, "item", { item: _ }, () => [
|
|
2479
|
+
T($(_.title), 1)
|
|
2480
|
+
])
|
|
2481
|
+
], 10, Mn)
|
|
2482
|
+
]),
|
|
2483
|
+
_: 2
|
|
2484
|
+
}, 1032, ["disabled"]))), 128))
|
|
2485
|
+
]))), 128))
|
|
2486
|
+
]),
|
|
2487
|
+
_: 3
|
|
2488
|
+
}, 8, ["class"])
|
|
2489
|
+
]),
|
|
2490
|
+
_: 3
|
|
2491
|
+
})
|
|
2492
|
+
]),
|
|
2493
|
+
_: 3
|
|
2494
|
+
}));
|
|
2495
|
+
}
|
|
2496
|
+
}), An = { class: "flex flex-col space-y-4" }, Dn = { class: "flex space-x-6" }, cl = /* @__PURE__ */ M({
|
|
2497
|
+
__name: "Tabs",
|
|
2498
|
+
props: {
|
|
2499
|
+
items: null
|
|
2500
|
+
},
|
|
2501
|
+
setup(e) {
|
|
2502
|
+
const s = e, n = A(null), o = i(() => n.value && s.items.find((r) => r.id === n.value) || s.items[0]), a = (r) => {
|
|
2503
|
+
n.value = r.id;
|
|
2504
|
+
};
|
|
2505
|
+
return (r, d) => (l(), m("div", An, [
|
|
2506
|
+
c("div", Dn, [
|
|
2507
|
+
(l(!0), m(W, null, H(e.items, (u) => (l(), j(Pe, {
|
|
2508
|
+
key: u.id,
|
|
2509
|
+
link: "",
|
|
2510
|
+
color: t(o).id === u.id ? "default" : "secondary",
|
|
2511
|
+
onClick: (y) => a(u)
|
|
2512
|
+
}, {
|
|
2513
|
+
default: L(() => [
|
|
2514
|
+
T($(u.title), 1)
|
|
2515
|
+
]),
|
|
2516
|
+
_: 2
|
|
2517
|
+
}, 1032, ["color", "onClick"]))), 128))
|
|
2518
|
+
]),
|
|
2519
|
+
z(r.$slots, "default", { activeItem: t(o) })
|
|
2520
|
+
]));
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2131
2523
|
export {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2524
|
+
Wt as CommonBadge,
|
|
2525
|
+
tn as CommonLoadingBar,
|
|
2526
|
+
Jn as CommonStepsBullet,
|
|
2527
|
+
Nn as CommonStepsNumber,
|
|
2528
|
+
Bt as CommonTextLink,
|
|
2529
|
+
Pe as FormButton,
|
|
2530
|
+
Qn as FormCardButton,
|
|
2531
|
+
Yn as FormCheckbox,
|
|
2532
|
+
yn as FormSelectBase,
|
|
2533
|
+
sl as FormSelectSourceApps,
|
|
2534
|
+
Zn as FormTextArea,
|
|
2535
|
+
el as FormTextInput,
|
|
2536
|
+
Xn as GlobalToastRenderer,
|
|
2537
|
+
K as GridListToggleValue,
|
|
2538
|
+
ie as HorizontalDirection,
|
|
2539
|
+
al as LayoutDialog,
|
|
2540
|
+
ol as LayoutDisclosure,
|
|
2541
|
+
rl as LayoutGridListToggle,
|
|
2542
|
+
ul as LayoutMenu,
|
|
2543
|
+
cl as LayoutTabs,
|
|
2544
|
+
Q as ModifierKeys,
|
|
2545
|
+
vn as SourceAppBadge,
|
|
2546
|
+
J as TailwindBreakpoints,
|
|
2547
|
+
jn as ThrottleOrDebounce,
|
|
2548
|
+
N as ToastNotificationType,
|
|
2549
|
+
tl as ValidationHelpers,
|
|
2550
|
+
re as clientOs,
|
|
2551
|
+
nl as getKeyboardShortcutTitle,
|
|
2552
|
+
ll as onKeyboardShortcut,
|
|
2553
|
+
Js as useFormSelectChildInternals,
|
|
2554
|
+
il as useOnBeforeWindowUnload,
|
|
2555
|
+
On as useResponsiveHorizontalDirectionCalculation,
|
|
2556
|
+
Pn as useWindowResizeHandler,
|
|
2557
|
+
Ns as useWrappingContainerHiddenCount
|
|
2155
2558
|
};
|