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