@speckle/ui-components 2.16.1-alpha5 → 2.16.1-alpha6
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/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +1032 -1025
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as R, resolveDynamicComponent as
|
|
2
|
-
import { isObjectLike as
|
|
3
|
-
import { ArrowPathIcon as
|
|
4
|
-
import { CheckCircleIcon as
|
|
5
|
-
import { XMarkIcon as
|
|
6
|
-
import { useField as
|
|
7
|
-
import { nanoid as
|
|
8
|
-
import { isNullOrUndefined as
|
|
9
|
-
import { useResizeObserver as
|
|
10
|
-
import { Listbox as
|
|
1
|
+
import { defineComponent as R, resolveDynamicComponent as N, computed as d, openBlock as a, createBlock as O, normalizeClass as g, withCtx as P, createCommentVNode as B, renderSlot as F, createTextVNode as z, createElementBlock as p, createElementVNode as u, createVNode as V, Transition as Le, unref as l, toDisplayString as _, toRefs as te, Fragment as W, renderList as H, ref as T, onMounted as se, mergeProps as ge, withDirectives as ie, isRef as ke, vModelText as je, useSlots as Oe, vModelDynamic as rt, pushScopeId as it, popScopeId as ut, watch as Z, withModifiers as ce, normalizeStyle as ve, useModel as Ge, onBeforeUnmount as Xe, getCurrentInstance as ct, inject as dt, mergeModels as qe, withKeys as ae } from "vue";
|
|
2
|
+
import { isObjectLike as Be, clamp as We, isArray as X, isString as xe, isUndefined as re, debounce as Ae, throttle as ft, noop as pt, uniq as ht } from "lodash";
|
|
3
|
+
import { ArrowPathIcon as mt, ExclamationCircleIcon as vt, ChevronUpIcon as Qe, ChevronDownIcon as gt, XMarkIcon as Me, MagnifyingGlassIcon as bt, CheckIcon as Ne, Bars3Icon as yt, Squares2X2Icon as xt } from "@heroicons/vue/24/solid";
|
|
4
|
+
import { CheckCircleIcon as kt, XCircleIcon as wt, ExclamationCircleIcon as Ct, InformationCircleIcon as $t, XMarkIcon as It, CheckIcon as St, ExclamationTriangleIcon as Bt } from "@heroicons/vue/24/outline";
|
|
5
|
+
import { XMarkIcon as ue, CheckIcon as Je, CheckCircleIcon as Ye, ExclamationCircleIcon as we, EnvelopeIcon as Vt, KeyIcon as _t, XCircleIcon as Pt, InformationCircleIcon as Lt } from "@heroicons/vue/20/solid";
|
|
6
|
+
import { useField as Te } from "vee-validate";
|
|
7
|
+
import { nanoid as Re } from "nanoid";
|
|
8
|
+
import { isNullOrUndefined as jt, SourceApps as Ot, getClientOperatingSystem as At, OperatingSystem as Ve } from "@speckle/shared";
|
|
9
|
+
import { useResizeObserver as Mt, useMutationObserver as Tt, onKeyDown as Rt, isClient as ze, computedAsync as zt, useFocus as Dt } from "@vueuse/core";
|
|
10
|
+
import { Listbox as Ft, ListboxLabel as Et, ListboxButton as Ut, ListboxOptions as qt, ListboxOption as Wt, Switch as Kt, TransitionRoot as Ze, Dialog as Ht, TransitionChild as Ke, DialogPanel as Gt, Disclosure as Xt, DisclosureButton as Qt, DisclosurePanel as Nt, Menu as Jt, MenuButton as Yt, MenuItems as Zt, MenuItem as es, Combobox as ts, ComboboxOptions as ss, ComboboxOption as ls } from "@headlessui/vue";
|
|
11
11
|
import { directive as et } from "vue-tippy";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import ns from "v3-infinite-loading";
|
|
13
|
+
const as = {
|
|
14
14
|
key: 2,
|
|
15
15
|
style: { margin: "0 !important", width: "0.01px" }
|
|
16
|
-
},
|
|
16
|
+
}, os = /* @__PURE__ */ R({
|
|
17
17
|
__name: "Button",
|
|
18
18
|
props: {
|
|
19
19
|
/**
|
|
@@ -141,135 +141,135 @@ const ns = {
|
|
|
141
141
|
},
|
|
142
142
|
emits: ["click"],
|
|
143
143
|
setup(e, { emit: n }) {
|
|
144
|
-
const t = e, s =
|
|
144
|
+
const t = e, s = N("NuxtLink"), o = N("RouterLink"), r = d(() => t.linkComponent ? t.linkComponent : t.external ? "a" : Be(s) ? s : Be(o) ? o : "a"), i = d(() => {
|
|
145
145
|
if (!t.to)
|
|
146
146
|
return t.submit ? "submit" : "button";
|
|
147
|
-
}), c =
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
|
|
147
|
+
}), c = d(() => t.disabled || t.loading), h = d(() => t.loading ? mt : t.iconLeft), f = d(() => {
|
|
148
|
+
const b = [];
|
|
149
|
+
if (b.push("border-2"), c.value)
|
|
150
|
+
b.push(
|
|
151
151
|
t.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
|
|
152
152
|
);
|
|
153
153
|
else
|
|
154
154
|
switch (t.color) {
|
|
155
155
|
case "invert":
|
|
156
|
-
|
|
156
|
+
b.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
|
+
b.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
|
-
|
|
166
|
+
b.push(t.outlined ? "border-danger" : "bg-danger border-danger");
|
|
167
167
|
break;
|
|
168
168
|
case "secondary":
|
|
169
|
-
|
|
169
|
+
b.push(
|
|
170
170
|
t.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
|
|
171
171
|
);
|
|
172
172
|
break;
|
|
173
173
|
case "warning":
|
|
174
|
-
|
|
174
|
+
b.push(t.outlined ? "border-warning" : "bg-warning border-warning");
|
|
175
175
|
break;
|
|
176
176
|
case "info":
|
|
177
|
-
|
|
177
|
+
b.push(t.outlined ? "border-info" : "bg-info border-info");
|
|
178
178
|
break;
|
|
179
179
|
case "success":
|
|
180
|
-
|
|
180
|
+
b.push(t.outlined ? "border-success" : "bg-success border-success");
|
|
181
181
|
break;
|
|
182
182
|
case "default":
|
|
183
183
|
default:
|
|
184
|
-
|
|
184
|
+
b.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
|
-
return
|
|
190
|
-
}),
|
|
191
|
-
const
|
|
189
|
+
return b.join(" ");
|
|
190
|
+
}), y = d(() => {
|
|
191
|
+
const b = [];
|
|
192
192
|
if (!t.text && !t.link)
|
|
193
193
|
if (c.value)
|
|
194
|
-
|
|
194
|
+
b.push(
|
|
195
195
|
(t.outlined, "text-foreground-disabled")
|
|
196
196
|
);
|
|
197
197
|
else
|
|
198
198
|
switch (t.color) {
|
|
199
199
|
case "invert":
|
|
200
|
-
|
|
200
|
+
b.push(
|
|
201
201
|
t.outlined ? "text-foundation dark:text-foreground" : "text-primary"
|
|
202
202
|
);
|
|
203
203
|
break;
|
|
204
204
|
case "card":
|
|
205
|
-
|
|
205
|
+
b.push((t.outlined, "text-foreground"));
|
|
206
206
|
break;
|
|
207
207
|
case "danger":
|
|
208
|
-
|
|
208
|
+
b.push(
|
|
209
209
|
t.outlined ? "text-danger" : "text-foundation dark:text-foreground"
|
|
210
210
|
);
|
|
211
211
|
break;
|
|
212
212
|
case "warning":
|
|
213
|
-
|
|
213
|
+
b.push(
|
|
214
214
|
t.outlined ? "text-warning" : "text-foundation dark:text-foreground"
|
|
215
215
|
);
|
|
216
216
|
break;
|
|
217
217
|
case "info":
|
|
218
|
-
|
|
218
|
+
b.push(
|
|
219
219
|
t.outlined ? "text-info" : "text-foundation dark:text-foreground"
|
|
220
220
|
);
|
|
221
221
|
break;
|
|
222
222
|
case "success":
|
|
223
|
-
|
|
223
|
+
b.push(
|
|
224
224
|
t.outlined ? "text-success" : "text-foundation dark:text-foreground"
|
|
225
225
|
);
|
|
226
226
|
break;
|
|
227
227
|
case "secondary":
|
|
228
|
-
|
|
228
|
+
b.push(
|
|
229
229
|
(t.outlined, "text-foreground hover:text-primary")
|
|
230
230
|
);
|
|
231
231
|
break;
|
|
232
232
|
case "default":
|
|
233
233
|
default:
|
|
234
|
-
|
|
234
|
+
b.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
|
-
c.value ?
|
|
240
|
+
c.value ? b.push("text-foreground-disabled") : t.color === "invert" ? b.push(
|
|
241
241
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
242
|
-
) : t.color === "secondary" ?
|
|
243
|
-
return
|
|
244
|
-
}),
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
}), v =
|
|
248
|
-
const
|
|
242
|
+
) : t.color === "secondary" ? b.push("text-foreground-2 hover:text-primary-focus") : t.color === "success" ? b.push("text-success") : t.color === "warning" ? b.push("text-warning") : t.color === "info" ? b.push("text-info") : t.color === "danger" ? b.push("text-danger") : b.push("text-primary hover:text-primary-focus");
|
|
243
|
+
return b.join(" ");
|
|
244
|
+
}), k = d(() => {
|
|
245
|
+
const b = [];
|
|
246
|
+
return b.push(t.rounded ? "rounded-full" : "rounded-md"), b.join(" ");
|
|
247
|
+
}), v = d(() => {
|
|
248
|
+
const b = [];
|
|
249
249
|
if (!c.value)
|
|
250
250
|
switch (t.color) {
|
|
251
251
|
case "invert":
|
|
252
|
-
|
|
252
|
+
b.push("hover:ring-4 ring-white/50");
|
|
253
253
|
break;
|
|
254
254
|
case "danger":
|
|
255
|
-
|
|
255
|
+
b.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
|
|
256
256
|
break;
|
|
257
257
|
case "warning":
|
|
258
|
-
|
|
258
|
+
b.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
|
|
259
259
|
break;
|
|
260
260
|
case "info":
|
|
261
|
-
|
|
261
|
+
b.push("hover:ring-4 ring-info-lighter dark:ring-info-darker");
|
|
262
262
|
break;
|
|
263
263
|
case "success":
|
|
264
|
-
|
|
264
|
+
b.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
|
|
265
265
|
break;
|
|
266
266
|
case "default":
|
|
267
267
|
default:
|
|
268
|
-
|
|
268
|
+
b.push("hover:ring-2");
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
|
-
return
|
|
272
|
-
}), $ =
|
|
271
|
+
return b.join(" ");
|
|
272
|
+
}), $ = d(() => {
|
|
273
273
|
switch (t.size) {
|
|
274
274
|
case "xs":
|
|
275
275
|
return "h-5 text-xs font-medium xxx-tracking-wide";
|
|
@@ -283,7 +283,7 @@ const ns = {
|
|
|
283
283
|
case "base":
|
|
284
284
|
return "h-8 text-base font-medium xxx-tracking-wide";
|
|
285
285
|
}
|
|
286
|
-
}), m =
|
|
286
|
+
}), m = d(() => {
|
|
287
287
|
switch (t.size) {
|
|
288
288
|
case "xs":
|
|
289
289
|
return "px-1";
|
|
@@ -297,77 +297,77 @@ const ns = {
|
|
|
297
297
|
case "base":
|
|
298
298
|
return "px-3";
|
|
299
299
|
}
|
|
300
|
-
}), M =
|
|
301
|
-
const
|
|
302
|
-
return t.fullWidth &&
|
|
303
|
-
}),
|
|
304
|
-
const
|
|
305
|
-
return !c.value && !t.link && !t.text &&
|
|
300
|
+
}), M = d(() => {
|
|
301
|
+
const b = [];
|
|
302
|
+
return t.fullWidth && b.push("w-full"), c.value && b.push("cursor-not-allowed"), b.join(" ");
|
|
303
|
+
}), x = d(() => {
|
|
304
|
+
const b = [];
|
|
305
|
+
return !c.value && !t.link && !t.text && b.push("active:scale-[0.97]"), !c.value && t.link && b.push(
|
|
306
306
|
"underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
|
|
307
|
-
),
|
|
308
|
-
}), C =
|
|
309
|
-
const
|
|
307
|
+
), b.join(" ");
|
|
308
|
+
}), C = d(() => {
|
|
309
|
+
const b = t.link || t.text;
|
|
310
310
|
return [
|
|
311
311
|
"transition inline-flex justify-center items-center space-x-2 outline-none select-none",
|
|
312
312
|
M.value,
|
|
313
313
|
$.value,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
y.value,
|
|
315
|
+
b ? "" : f.value,
|
|
316
|
+
b ? "" : k.value,
|
|
317
|
+
b ? "" : v.value,
|
|
318
318
|
t.link ? "" : m.value,
|
|
319
|
-
|
|
319
|
+
x.value
|
|
320
320
|
].join(" ");
|
|
321
|
-
}),
|
|
322
|
-
const
|
|
323
|
-
switch (t.loading &&
|
|
321
|
+
}), L = d(() => {
|
|
322
|
+
const b = [""];
|
|
323
|
+
switch (t.loading && b.push("animate-spin"), t.size) {
|
|
324
324
|
case "xs":
|
|
325
|
-
|
|
325
|
+
b.push("h-3 w-3");
|
|
326
326
|
break;
|
|
327
327
|
case "sm":
|
|
328
|
-
|
|
328
|
+
b.push("h-4 w-4");
|
|
329
329
|
break;
|
|
330
330
|
case "lg":
|
|
331
|
-
|
|
331
|
+
b.push("h-6 w-6");
|
|
332
332
|
break;
|
|
333
333
|
case "xl":
|
|
334
|
-
|
|
334
|
+
b.push("h-8 w-8");
|
|
335
335
|
break;
|
|
336
336
|
case "base":
|
|
337
337
|
default:
|
|
338
|
-
|
|
338
|
+
b.push("h-5 w-5");
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
|
-
return
|
|
342
|
-
}),
|
|
341
|
+
return b.join(" ");
|
|
342
|
+
}), A = (b) => {
|
|
343
343
|
if (c.value) {
|
|
344
|
-
|
|
344
|
+
b.preventDefault(), b.stopPropagation(), b.stopImmediatePropagation();
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
|
-
n("click",
|
|
347
|
+
n("click", b);
|
|
348
348
|
};
|
|
349
|
-
return (
|
|
349
|
+
return (b, D) => (a(), O(N(e.to ? r.value : "button"), {
|
|
350
350
|
href: e.to,
|
|
351
351
|
to: e.to,
|
|
352
352
|
type: i.value,
|
|
353
353
|
external: e.external,
|
|
354
|
-
class:
|
|
354
|
+
class: g(C.value),
|
|
355
355
|
disabled: c.value,
|
|
356
356
|
role: "button",
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: A
|
|
358
358
|
}, {
|
|
359
359
|
default: P(() => [
|
|
360
|
-
h.value ? (a(),
|
|
360
|
+
h.value ? (a(), O(N(h.value), {
|
|
361
361
|
key: 0,
|
|
362
|
-
class:
|
|
363
|
-
}, null, 8, ["class"])) :
|
|
364
|
-
e.hideText ? (a(), p("div",
|
|
362
|
+
class: g(`${L.value} ${e.hideText ? "" : "mr-2"}`)
|
|
363
|
+
}, null, 8, ["class"])) : B("", !0),
|
|
364
|
+
e.hideText ? (a(), p("div", as, " ")) : F(b.$slots, "default", { key: 1 }, () => [
|
|
365
365
|
z("Button")
|
|
366
366
|
], !0),
|
|
367
|
-
e.iconRight || !e.loading ? (a(),
|
|
367
|
+
e.iconRight || !e.loading ? (a(), O(N(e.iconRight), {
|
|
368
368
|
key: 3,
|
|
369
|
-
class:
|
|
370
|
-
}, null, 8, ["class"])) :
|
|
369
|
+
class: g(`${L.value} ${e.hideText ? "" : "ml-2"}`)
|
|
370
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
371
371
|
]),
|
|
372
372
|
_: 3
|
|
373
373
|
}, 8, ["href", "to", "type", "external", "class", "disabled"]));
|
|
@@ -378,7 +378,7 @@ const tt = (e, n) => {
|
|
|
378
378
|
for (const [s, o] of n)
|
|
379
379
|
t[s] = o;
|
|
380
380
|
return t;
|
|
381
|
-
},
|
|
381
|
+
}, de = /* @__PURE__ */ tt(os, [["__scopeId", "data-v-38aa371e"]]), rs = /* @__PURE__ */ R({
|
|
382
382
|
__name: "Link",
|
|
383
383
|
props: {
|
|
384
384
|
to: {
|
|
@@ -435,7 +435,7 @@ const tt = (e, n) => {
|
|
|
435
435
|
}
|
|
436
436
|
n("click", o);
|
|
437
437
|
};
|
|
438
|
-
return (o, r) => (a(),
|
|
438
|
+
return (o, r) => (a(), O(de, {
|
|
439
439
|
link: "",
|
|
440
440
|
to: e.to,
|
|
441
441
|
external: e.external,
|
|
@@ -449,7 +449,7 @@ const tt = (e, n) => {
|
|
|
449
449
|
onClickCapture: s
|
|
450
450
|
}, {
|
|
451
451
|
default: P(() => [
|
|
452
|
-
|
|
452
|
+
F(o.$slots, "default", {}, () => [
|
|
453
453
|
z("Link")
|
|
454
454
|
])
|
|
455
455
|
]),
|
|
@@ -458,29 +458,29 @@ const tt = (e, n) => {
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
var pe = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(pe || {});
|
|
461
|
-
const
|
|
461
|
+
const is = {
|
|
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
|
+
}, us = { class: "flex w-full flex-col items-center space-y-4 sm:items-end" }, cs = {
|
|
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
|
+
}, ds = { class: "p-4" }, fs = { class: "flex items-start" }, ps = { class: "flex-shrink-0" }, hs = { class: "ml-2 w-0 flex-1 flex flex-col" }, ms = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "text-foreground font-bold"
|
|
470
|
-
},
|
|
470
|
+
}, vs = {
|
|
471
471
|
key: 1,
|
|
472
472
|
class: "label label--light text-foreground-2"
|
|
473
473
|
}, gs = {
|
|
474
474
|
key: 2,
|
|
475
475
|
class: "flex justify-start mt-2"
|
|
476
|
-
},
|
|
476
|
+
}, bs = /* @__PURE__ */ u("span", { class: "sr-only" }, "Close", -1), Jn = /* @__PURE__ */ R({
|
|
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 t = e, s =
|
|
483
|
+
const t = e, s = d(
|
|
484
484
|
() => {
|
|
485
485
|
var i, c;
|
|
486
486
|
return !((i = t.notification) != null && i.description) && !((c = t.notification) != null && c.cta);
|
|
@@ -488,12 +488,12 @@ const rs = {
|
|
|
488
488
|
), o = () => {
|
|
489
489
|
n("update:notification", null);
|
|
490
490
|
}, r = (i) => {
|
|
491
|
-
var c, h,
|
|
492
|
-
(
|
|
491
|
+
var c, h, f;
|
|
492
|
+
(f = (h = (c = t.notification) == null ? void 0 : c.cta) == null ? void 0 : h.onClick) == null || f.call(h, i), o();
|
|
493
493
|
};
|
|
494
|
-
return (i, c) => (a(), p("div",
|
|
495
|
-
u("div",
|
|
496
|
-
|
|
494
|
+
return (i, c) => (a(), p("div", is, [
|
|
495
|
+
u("div", us, [
|
|
496
|
+
V(Le, {
|
|
497
497
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
498
498
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
499
499
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -502,55 +502,55 @@ const rs = {
|
|
|
502
502
|
"leave-to-class": "opacity-0"
|
|
503
503
|
}, {
|
|
504
504
|
default: P(() => [
|
|
505
|
-
e.notification ? (a(), p("div",
|
|
506
|
-
u("div",
|
|
507
|
-
u("div",
|
|
508
|
-
u("div",
|
|
509
|
-
e.notification.type === l(pe).Success ? (a(),
|
|
505
|
+
e.notification ? (a(), p("div", cs, [
|
|
506
|
+
u("div", ds, [
|
|
507
|
+
u("div", fs, [
|
|
508
|
+
u("div", ps, [
|
|
509
|
+
e.notification.type === l(pe).Success ? (a(), O(l(kt), {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "h-6 w-6 text-success",
|
|
512
512
|
"aria-hidden": "true"
|
|
513
|
-
})) : e.notification.type === l(pe).Danger ? (a(),
|
|
513
|
+
})) : e.notification.type === l(pe).Danger ? (a(), O(l(wt), {
|
|
514
514
|
key: 1,
|
|
515
515
|
class: "h-6 w-6 text-danger",
|
|
516
516
|
"aria-hidden": "true"
|
|
517
|
-
})) : e.notification.type === l(pe).Warning ? (a(),
|
|
517
|
+
})) : e.notification.type === l(pe).Warning ? (a(), O(l(Ct), {
|
|
518
518
|
key: 2,
|
|
519
519
|
class: "h-6 w-6 text-warning",
|
|
520
520
|
"aria-hidden": "true"
|
|
521
|
-
})) : e.notification.type === l(pe).Info ? (a(),
|
|
521
|
+
})) : e.notification.type === l(pe).Info ? (a(), O(l($t), {
|
|
522
522
|
key: 3,
|
|
523
523
|
class: "h-6 w-6 text-info",
|
|
524
524
|
"aria-hidden": "true"
|
|
525
|
-
})) :
|
|
525
|
+
})) : B("", !0)
|
|
526
526
|
]),
|
|
527
|
-
u("div",
|
|
528
|
-
e.notification.title ? (a(), p("p",
|
|
529
|
-
e.notification.description ? (a(), p("p",
|
|
527
|
+
u("div", hs, [
|
|
528
|
+
e.notification.title ? (a(), p("p", ms, _(e.notification.title), 1)) : B("", !0),
|
|
529
|
+
e.notification.description ? (a(), p("p", vs, _(e.notification.description), 1)) : B("", !0),
|
|
530
530
|
e.notification.cta ? (a(), p("div", gs, [
|
|
531
|
-
|
|
531
|
+
V(rs, {
|
|
532
532
|
to: e.notification.cta.url,
|
|
533
533
|
class: "label",
|
|
534
534
|
primary: "",
|
|
535
535
|
onClick: r
|
|
536
536
|
}, {
|
|
537
537
|
default: P(() => [
|
|
538
|
-
z(
|
|
538
|
+
z(_(e.notification.cta.title), 1)
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["to"])
|
|
542
|
-
])) :
|
|
542
|
+
])) : B("", !0)
|
|
543
543
|
]),
|
|
544
544
|
u("div", {
|
|
545
|
-
class:
|
|
545
|
+
class: g(["ml-4 flex flex-shrink-0", { "self-center": s.value }])
|
|
546
546
|
}, [
|
|
547
547
|
u("button", {
|
|
548
548
|
type: "button",
|
|
549
549
|
class: "inline-flex rounded-md bg-foundation text-foreground-2 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
550
550
|
onClick: o
|
|
551
551
|
}, [
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
bs,
|
|
553
|
+
V(l(ue), {
|
|
554
554
|
class: "h-6 w-6",
|
|
555
555
|
"aria-hidden": "true"
|
|
556
556
|
})
|
|
@@ -558,20 +558,20 @@ const rs = {
|
|
|
558
558
|
], 2)
|
|
559
559
|
])
|
|
560
560
|
])
|
|
561
|
-
])) :
|
|
561
|
+
])) : B("", !0)
|
|
562
562
|
]),
|
|
563
563
|
_: 1
|
|
564
564
|
})
|
|
565
565
|
])
|
|
566
566
|
]));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), ys = /* @__PURE__ */ u("circle", {
|
|
569
569
|
cx: "4",
|
|
570
570
|
cy: "4",
|
|
571
571
|
r: "3"
|
|
572
|
-
}, null, -1),
|
|
573
|
-
|
|
574
|
-
],
|
|
572
|
+
}, null, -1), xs = [
|
|
573
|
+
ys
|
|
574
|
+
], De = /* @__PURE__ */ R({
|
|
575
575
|
__name: "Badge",
|
|
576
576
|
props: {
|
|
577
577
|
size: null,
|
|
@@ -584,62 +584,62 @@ const rs = {
|
|
|
584
584
|
},
|
|
585
585
|
emits: ["click-icon"],
|
|
586
586
|
setup(e, { emit: n }) {
|
|
587
|
-
const t = e, s =
|
|
587
|
+
const t = e, s = d(
|
|
588
588
|
() => t.colorClasses || "bg-blue-100 text-blue-800"
|
|
589
|
-
), o =
|
|
589
|
+
), o = d(
|
|
590
590
|
() => t.dotIconColorClasses || "text-blue-400"
|
|
591
|
-
), r =
|
|
592
|
-
const
|
|
591
|
+
), r = d(() => {
|
|
592
|
+
const f = [
|
|
593
593
|
"inline-flex items-center",
|
|
594
594
|
s.value,
|
|
595
595
|
t.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
596
596
|
];
|
|
597
|
-
return t.rounded ? (
|
|
597
|
+
return t.rounded ? (f.push("rounded"), f.push(
|
|
598
598
|
t.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
599
|
-
)) : (
|
|
599
|
+
)) : (f.push("rounded-full"), f.push(
|
|
600
600
|
t.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
|
|
601
|
-
)),
|
|
602
|
-
}), i =
|
|
603
|
-
const
|
|
601
|
+
)), f.join(" ");
|
|
602
|
+
}), i = d(() => {
|
|
603
|
+
const f = [
|
|
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 t.clickableIcon ?
|
|
607
|
-
}), c =
|
|
606
|
+
return t.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
|
|
607
|
+
}), c = d(() => [
|
|
608
608
|
"-ml-0.5 mr-1.5 h-2 w-2",
|
|
609
609
|
o.value
|
|
610
|
-
].join(" ")), h = (
|
|
610
|
+
].join(" ")), h = (f) => {
|
|
611
611
|
if (!t.clickableIcon) {
|
|
612
|
-
|
|
612
|
+
f.stopPropagation(), f.stopImmediatePropagation(), f.preventDefault();
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
n("click-icon",
|
|
615
|
+
n("click-icon", f);
|
|
616
616
|
};
|
|
617
|
-
return (
|
|
618
|
-
class:
|
|
617
|
+
return (f, y) => (a(), p("span", {
|
|
618
|
+
class: g(r.value)
|
|
619
619
|
}, [
|
|
620
620
|
e.dot ? (a(), p("svg", {
|
|
621
621
|
key: 0,
|
|
622
|
-
class:
|
|
622
|
+
class: g(c.value),
|
|
623
623
|
fill: "currentColor",
|
|
624
624
|
viewBox: "0 0 8 8"
|
|
625
|
-
},
|
|
626
|
-
|
|
625
|
+
}, xs, 2)) : B("", !0),
|
|
626
|
+
F(f.$slots, "default", {}, () => [
|
|
627
627
|
z("Badge")
|
|
628
628
|
]),
|
|
629
629
|
e.iconLeft ? (a(), p("button", {
|
|
630
630
|
key: 1,
|
|
631
|
-
class:
|
|
632
|
-
onClick:
|
|
631
|
+
class: g(i.value),
|
|
632
|
+
onClick: y[0] || (y[0] = (k) => h(k))
|
|
633
633
|
}, [
|
|
634
|
-
(a(),
|
|
635
|
-
class:
|
|
634
|
+
(a(), O(N(e.iconLeft), {
|
|
635
|
+
class: g(["h-4 w-4", o.value])
|
|
636
636
|
}, null, 8, ["class"]))
|
|
637
|
-
], 2)) :
|
|
637
|
+
], 2)) : B("", !0)
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
641
|
let He = [];
|
|
642
|
-
function
|
|
642
|
+
function ks(e) {
|
|
643
643
|
He = He ? e : e.slice();
|
|
644
644
|
}
|
|
645
645
|
var he = /* @__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))(he || {});
|
|
@@ -654,48 +654,48 @@ function st(e) {
|
|
|
654
654
|
stepsPadding: i
|
|
655
655
|
},
|
|
656
656
|
emit: c
|
|
657
|
-
} = e, h =
|
|
657
|
+
} = e, h = d(
|
|
658
658
|
() => (s == null ? void 0 : s.value) === "vertical" ? "vertical" : "horizontal"
|
|
659
|
-
),
|
|
659
|
+
), f = d({
|
|
660
660
|
get: () => We((n == null ? void 0 : n.value) || 0, -1, t.value.length),
|
|
661
|
-
set: (
|
|
662
|
-
}),
|
|
663
|
-
var
|
|
661
|
+
set: (x) => c("update:modelValue", We(x, 0, t.value.length))
|
|
662
|
+
}), y = (x) => `${x + 1}`, k = (x) => x === f.value, v = (x) => x < f.value, $ = (x, C) => {
|
|
663
|
+
var A;
|
|
664
664
|
if (r != null && r.value) {
|
|
665
665
|
C == null || C.preventDefault(), C == null || C.stopPropagation(), C == null || C.stopImmediatePropagation();
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
(
|
|
671
|
-
}, m =
|
|
672
|
-
const
|
|
673
|
-
let C,
|
|
674
|
-
return (i == null ? void 0 : i.value) === "xs" ? (C = "space-x-2",
|
|
668
|
+
f.value = x;
|
|
669
|
+
const L = t.value[f.value];
|
|
670
|
+
(A = L == null ? void 0 : L.onClick) == null || A.call(L);
|
|
671
|
+
}, m = d(() => {
|
|
672
|
+
const x = ["flex"];
|
|
673
|
+
let C, L;
|
|
674
|
+
return (i == null ? void 0 : i.value) === "xs" ? (C = "space-x-2", L = "space-y-1") : (i == null ? void 0 : i.value) === "sm" ? (C = "space-x-4", L = "space-y-1") : (C = "space-x-8", L = "space-y-4"), x.push("flex"), h.value === "vertical" || o != null && o.value ? (x.push(`flex-col ${L} justify-center`), (o == null ? void 0 : o.value) === he.sm ? x.push(
|
|
675
675
|
`sm:flex-row sm:space-y-0 sm:justify-start sm:${C} sm:items-center`
|
|
676
|
-
) : (o == null ? void 0 : o.value) === he.md ?
|
|
676
|
+
) : (o == null ? void 0 : o.value) === he.md ? x.push(
|
|
677
677
|
`md:flex-row md:space-y-0 md:justify-start md:${C} md:items-center`
|
|
678
|
-
) : (o == null ? void 0 : o.value) === he.lg ?
|
|
678
|
+
) : (o == null ? void 0 : o.value) === he.lg ? x.push(
|
|
679
679
|
`lg:flex-row lg:space-y-0 lg:justify-start lg:${C} lg:items-center`
|
|
680
|
-
) : (o == null ? void 0 : o.value) === he.xl &&
|
|
680
|
+
) : (o == null ? void 0 : o.value) === he.xl && x.push(
|
|
681
681
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${C} xl:items-center`
|
|
682
|
-
)) :
|
|
683
|
-
}), M =
|
|
684
|
-
const
|
|
685
|
-
return r != null && r.value ||
|
|
682
|
+
)) : x.push(`flex-row ${C} items-center`), x.join(" ");
|
|
683
|
+
}), M = d(() => {
|
|
684
|
+
const x = ["flex items-center"];
|
|
685
|
+
return r != null && r.value || x.push("cursor-pointer"), x.join(" ");
|
|
686
686
|
});
|
|
687
687
|
return {
|
|
688
|
-
value:
|
|
689
|
-
isCurrentStep:
|
|
688
|
+
value: f,
|
|
689
|
+
isCurrentStep: k,
|
|
690
690
|
isFinishedStep: v,
|
|
691
691
|
switchStep: $,
|
|
692
|
-
getStepDisplayValue:
|
|
692
|
+
getStepDisplayValue: y,
|
|
693
693
|
listClasses: m,
|
|
694
694
|
linkClasses: M,
|
|
695
695
|
orientation: h
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
ks([
|
|
699
699
|
"sm:space-x-8",
|
|
700
700
|
"md:space-x-8",
|
|
701
701
|
"lg:space-x-8",
|
|
@@ -709,16 +709,16 @@ xs([
|
|
|
709
709
|
"lg:space-x-4",
|
|
710
710
|
"xl:space-x-4"
|
|
711
711
|
]);
|
|
712
|
-
const
|
|
712
|
+
const ws = ["aria-label"], Cs = ["href", "onClick"], $s = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Is = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Ss = { class: "flex flex-col" }, Bs = {
|
|
713
713
|
key: 0,
|
|
714
714
|
class: "label label--light text-foreground"
|
|
715
|
-
},
|
|
715
|
+
}, Vs = ["href", "onClick"], _s = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Ps = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center" }, Ls = { class: "flex flex-col" }, js = {
|
|
716
716
|
key: 0,
|
|
717
717
|
class: "label label--light text-foreground"
|
|
718
|
-
},
|
|
718
|
+
}, Os = ["href", "onClick"], As = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, Ms = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center" }, Ts = { class: "flex flex-col" }, Rs = {
|
|
719
719
|
key: 0,
|
|
720
720
|
class: "label label--light"
|
|
721
|
-
},
|
|
721
|
+
}, Yn = /* @__PURE__ */ R({
|
|
722
722
|
__name: "Number",
|
|
723
723
|
props: {
|
|
724
724
|
ariaLabel: null,
|
|
@@ -739,85 +739,85 @@ const ks = ["aria-label"], ws = ["href", "onClick"], Cs = { class: "flex space-x
|
|
|
739
739
|
listClasses: c,
|
|
740
740
|
linkClasses: h
|
|
741
741
|
} = st({
|
|
742
|
-
props:
|
|
742
|
+
props: te(t),
|
|
743
743
|
emit: n
|
|
744
744
|
});
|
|
745
|
-
return (
|
|
745
|
+
return (f, y) => (a(), p("nav", {
|
|
746
746
|
class: "flex justify-center",
|
|
747
747
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
748
748
|
}, [
|
|
749
749
|
u("ol", {
|
|
750
|
-
class:
|
|
750
|
+
class: g(l(c))
|
|
751
751
|
}, [
|
|
752
|
-
(a(!0), p(
|
|
753
|
-
key:
|
|
752
|
+
(a(!0), p(W, null, H(e.steps, (k, v) => (a(), p("li", {
|
|
753
|
+
key: k.name
|
|
754
754
|
}, [
|
|
755
755
|
l(o)(v) ? (a(), p("a", {
|
|
756
756
|
key: 0,
|
|
757
|
-
href:
|
|
758
|
-
class:
|
|
757
|
+
href: k.href,
|
|
758
|
+
class: g(l(h)),
|
|
759
759
|
onClick: ($) => l(r)(v, $)
|
|
760
760
|
}, [
|
|
761
|
-
u("div",
|
|
762
|
-
u("div", $s, [
|
|
763
|
-
B(l(Je), { class: "w-5 h-5" })
|
|
764
|
-
]),
|
|
761
|
+
u("div", $s, [
|
|
765
762
|
u("div", Is, [
|
|
766
|
-
|
|
767
|
-
|
|
763
|
+
V(l(Je), { class: "w-5 h-5" })
|
|
764
|
+
]),
|
|
765
|
+
u("div", Ss, [
|
|
766
|
+
u("div", null, _(k.name), 1),
|
|
767
|
+
k.description ? (a(), p("div", Bs, _(k.description), 1)) : B("", !0)
|
|
768
768
|
])
|
|
769
769
|
])
|
|
770
|
-
], 10,
|
|
770
|
+
], 10, Cs)) : l(s)(v) ? (a(), p("a", {
|
|
771
771
|
key: 1,
|
|
772
|
-
href:
|
|
773
|
-
class:
|
|
772
|
+
href: k.href,
|
|
773
|
+
class: g(l(h)),
|
|
774
774
|
"aria-current": "step",
|
|
775
775
|
onClick: ($) => l(r)(v, $)
|
|
776
776
|
}, [
|
|
777
|
-
u("div",
|
|
778
|
-
u("div", Ps,
|
|
777
|
+
u("div", _s, [
|
|
778
|
+
u("div", Ps, _(l(i)(v)), 1),
|
|
779
779
|
u("div", Ls, [
|
|
780
|
-
u("div", null,
|
|
781
|
-
|
|
780
|
+
u("div", null, _(k.name), 1),
|
|
781
|
+
k.description ? (a(), p("div", js, _(k.description), 1)) : B("", !0)
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
|
-
], 10,
|
|
784
|
+
], 10, Vs)) : (a(), p("a", {
|
|
785
785
|
key: 2,
|
|
786
|
-
href:
|
|
787
|
-
class:
|
|
786
|
+
href: k.href,
|
|
787
|
+
class: g(l(h)),
|
|
788
788
|
onClick: ($) => l(r)(v, $)
|
|
789
789
|
}, [
|
|
790
|
-
u("div",
|
|
791
|
-
u("div",
|
|
792
|
-
u("div",
|
|
793
|
-
u("div", null,
|
|
794
|
-
|
|
790
|
+
u("div", As, [
|
|
791
|
+
u("div", Ms, _(l(i)(v)), 1),
|
|
792
|
+
u("div", Ts, [
|
|
793
|
+
u("div", null, _(k.name), 1),
|
|
794
|
+
k.description ? (a(), p("div", Rs, _(k.description), 1)) : B("", !0)
|
|
795
795
|
])
|
|
796
796
|
])
|
|
797
|
-
], 10,
|
|
797
|
+
], 10, Os))
|
|
798
798
|
]))), 128))
|
|
799
799
|
], 2)
|
|
800
|
-
], 8,
|
|
800
|
+
], 8, ws));
|
|
801
801
|
}
|
|
802
|
-
}),
|
|
802
|
+
}), zs = ["aria-label"], Ds = ["href", "onClick"], Fs = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, Es = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
805
|
-
},
|
|
805
|
+
}, Us = ["href", "onClick"], qs = {
|
|
806
806
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
807
807
|
"aria-hidden": "true"
|
|
808
|
-
},
|
|
808
|
+
}, Ws = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
811
|
-
},
|
|
811
|
+
}, Ks = /* @__PURE__ */ u("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Hs = /* @__PURE__ */ u("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), Gs = ["href", "onClick"], Xs = {
|
|
812
812
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
813
813
|
"aria-hidden": "true"
|
|
814
|
-
},
|
|
814
|
+
}, Qs = {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
817
|
-
},
|
|
817
|
+
}, Ns = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
820
|
-
},
|
|
820
|
+
}, Zn = /* @__PURE__ */ R({
|
|
821
821
|
__name: "Bullet",
|
|
822
822
|
props: {
|
|
823
823
|
ariaLabel: null,
|
|
@@ -832,76 +832,76 @@ const ks = ["aria-label"], ws = ["href", "onClick"], Cs = { class: "flex space-x
|
|
|
832
832
|
emits: ["update:modelValue"],
|
|
833
833
|
setup(e, { emit: n }) {
|
|
834
834
|
const t = e, { isCurrentStep: s, isFinishedStep: o, switchStep: r, listClasses: i, linkClasses: c } = st({
|
|
835
|
-
props:
|
|
835
|
+
props: te(t),
|
|
836
836
|
emit: n
|
|
837
|
-
}), h =
|
|
838
|
-
const
|
|
839
|
-
let
|
|
840
|
-
return t.stepsPadding === "xs" ?
|
|
841
|
-
}),
|
|
842
|
-
const
|
|
843
|
-
return t.basic &&
|
|
837
|
+
}), h = d(() => {
|
|
838
|
+
const y = ["h6 font-medium leading-7"];
|
|
839
|
+
let k;
|
|
840
|
+
return t.stepsPadding === "xs" ? k = "ml-1" : t.stepsPadding === "sm" ? k = "ml-2" : k = "ml-3", y.push(k), t.basic && y.push("sr-only"), y.join(" ");
|
|
841
|
+
}), f = d(() => {
|
|
842
|
+
const y = [];
|
|
843
|
+
return t.basic && y.push("basic"), y.join(" ");
|
|
844
844
|
});
|
|
845
|
-
return (
|
|
845
|
+
return (y, k) => (a(), p("nav", {
|
|
846
846
|
class: "flex justify-center",
|
|
847
847
|
"aria-label": e.ariaLabel || "Progress steps"
|
|
848
848
|
}, [
|
|
849
849
|
u("ol", {
|
|
850
|
-
class:
|
|
850
|
+
class: g([l(i), f.value])
|
|
851
851
|
}, [
|
|
852
|
-
(a(!0), p(
|
|
852
|
+
(a(!0), p(W, null, H(e.steps, (v, $) => (a(), p("li", {
|
|
853
853
|
key: v.name
|
|
854
854
|
}, [
|
|
855
855
|
l(o)($) ? (a(), p("a", {
|
|
856
856
|
key: 0,
|
|
857
857
|
href: v.href,
|
|
858
|
-
class:
|
|
858
|
+
class: g(l(c)),
|
|
859
859
|
onClick: (m) => l(r)($, m)
|
|
860
860
|
}, [
|
|
861
|
-
u("span",
|
|
862
|
-
e.basic ? (a(), p("span",
|
|
861
|
+
u("span", Fs, [
|
|
862
|
+
e.basic ? (a(), p("span", Es)) : (a(), O(l(Ye), {
|
|
863
863
|
key: 1,
|
|
864
864
|
class: "h-full w-full text-primary",
|
|
865
865
|
"aria-hidden": "true"
|
|
866
866
|
}))
|
|
867
867
|
]),
|
|
868
868
|
u("span", {
|
|
869
|
-
class:
|
|
870
|
-
},
|
|
871
|
-
], 10,
|
|
869
|
+
class: g(["text-foreground", h.value])
|
|
870
|
+
}, _(v.name), 3)
|
|
871
|
+
], 10, Ds)) : l(s)($) ? (a(), p("a", {
|
|
872
872
|
key: 1,
|
|
873
873
|
href: v.href,
|
|
874
|
-
class:
|
|
874
|
+
class: g(l(c)),
|
|
875
875
|
"aria-current": "step",
|
|
876
876
|
onClick: (m) => l(r)($, m)
|
|
877
877
|
}, [
|
|
878
|
-
u("span",
|
|
879
|
-
e.basic ? (a(), p("span",
|
|
880
|
-
|
|
881
|
-
|
|
878
|
+
u("span", qs, [
|
|
879
|
+
e.basic ? (a(), p("span", Ws)) : (a(), p(W, { key: 1 }, [
|
|
880
|
+
Ks,
|
|
881
|
+
Hs
|
|
882
882
|
], 64))
|
|
883
883
|
]),
|
|
884
884
|
u("span", {
|
|
885
|
-
class:
|
|
886
|
-
},
|
|
887
|
-
], 10,
|
|
885
|
+
class: g(["text-primary-focus", h.value])
|
|
886
|
+
}, _(v.name), 3)
|
|
887
|
+
], 10, Us)) : (a(), p("a", {
|
|
888
888
|
key: 2,
|
|
889
889
|
href: v.href,
|
|
890
|
-
class:
|
|
890
|
+
class: g(l(c)),
|
|
891
891
|
onClick: (m) => l(r)($, m)
|
|
892
892
|
}, [
|
|
893
|
-
u("div",
|
|
894
|
-
e.basic ? (a(), p("span",
|
|
893
|
+
u("div", Xs, [
|
|
894
|
+
e.basic ? (a(), p("span", Qs)) : (a(), p("div", Ns))
|
|
895
895
|
]),
|
|
896
896
|
u("p", {
|
|
897
|
-
class:
|
|
898
|
-
},
|
|
899
|
-
], 10,
|
|
897
|
+
class: g(["text-foreground-disabled", h.value])
|
|
898
|
+
}, _(v.name), 3)
|
|
899
|
+
], 10, Gs))
|
|
900
900
|
]))), 128))
|
|
901
901
|
], 2)
|
|
902
|
-
], 8,
|
|
902
|
+
], 8, zs));
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), Js = ["disabled"], ea = /* @__PURE__ */ R({
|
|
905
905
|
__name: "CardButton",
|
|
906
906
|
props: {
|
|
907
907
|
disabled: { type: Boolean },
|
|
@@ -909,7 +909,7 @@ const ks = ["aria-label"], ws = ["href", "onClick"], Cs = { class: "flex space-x
|
|
|
909
909
|
},
|
|
910
910
|
emits: ["update:modelValue", "click"],
|
|
911
911
|
setup(e, { emit: n }) {
|
|
912
|
-
const t = e, s =
|
|
912
|
+
const t = e, s = d(() => {
|
|
913
913
|
const r = [
|
|
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"
|
|
@@ -925,22 +925,22 @@ const ks = ["aria-label"], ws = ["href", "onClick"], Cs = { class: "flex space-x
|
|
|
925
925
|
n("update:modelValue", !t.modelValue), n("click", r);
|
|
926
926
|
};
|
|
927
927
|
return (r, i) => (a(), p("button", {
|
|
928
|
-
class:
|
|
928
|
+
class: g(s.value),
|
|
929
929
|
disabled: e.disabled,
|
|
930
930
|
onClick: o
|
|
931
931
|
}, [
|
|
932
|
-
|
|
932
|
+
F(r.$slots, "default", {}, () => [
|
|
933
933
|
z("Text")
|
|
934
934
|
])
|
|
935
|
-
], 10,
|
|
935
|
+
], 10, Js));
|
|
936
936
|
}
|
|
937
|
-
}),
|
|
937
|
+
}), Ys = { class: "relative flex items-start" }, Zs = { class: "flex h-6 items-center" }, el = ["id", "checked", "aria-describedby", "name", "disabled", "value"], tl = {
|
|
938
938
|
class: "ml-2 text-sm",
|
|
939
939
|
style: { "padding-top": "2px" }
|
|
940
|
-
},
|
|
940
|
+
}, sl = ["for"], ll = {
|
|
941
941
|
key: 0,
|
|
942
942
|
class: "text-danger ml-1"
|
|
943
|
-
},
|
|
943
|
+
}, nl = ["id"], ta = /* @__PURE__ */ R({
|
|
944
944
|
inheritAttrs: !1,
|
|
945
945
|
__name: "Checkbox",
|
|
946
946
|
props: {
|
|
@@ -1029,109 +1029,109 @@ const ks = ["aria-label"], ws = ["href", "onClick"], Cs = { class: "flex space-x
|
|
|
1029
1029
|
},
|
|
1030
1030
|
emits: ["update:modelValue"],
|
|
1031
1031
|
setup(e) {
|
|
1032
|
-
const n = e, t = (
|
|
1032
|
+
const n = e, t = (x) => `${x}-${Re()}`, s = d(() => n.value || n.name), {
|
|
1033
1033
|
checked: o,
|
|
1034
1034
|
errorMessage: r,
|
|
1035
1035
|
handleChange: i,
|
|
1036
1036
|
value: c
|
|
1037
|
-
} =
|
|
1037
|
+
} = Te(n.name, n.rules, {
|
|
1038
1038
|
validateOnMount: n.validateOnMount,
|
|
1039
1039
|
type: "checkbox",
|
|
1040
1040
|
checkedValue: s,
|
|
1041
1041
|
initialValue: n.modelValue || void 0
|
|
1042
|
-
}), h =
|
|
1043
|
-
const
|
|
1044
|
-
return n.inlineDescription ?
|
|
1045
|
-
}), $ = T(t("checkbox")), m =
|
|
1046
|
-
n.disabled || i(
|
|
1042
|
+
}), h = d(() => n.label || n.name), f = d(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), y = d(() => n.description || r.value), k = d(() => `${n.name}-description`), v = d(() => {
|
|
1043
|
+
const x = [];
|
|
1044
|
+
return n.inlineDescription ? x.push("inline ml-2") : x.push("block"), r.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
|
|
1045
|
+
}), $ = T(t("checkbox")), m = d(() => n.id || $.value), M = (x) => {
|
|
1046
|
+
n.disabled || i(x);
|
|
1047
1047
|
};
|
|
1048
|
-
return
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1051
|
-
}), (
|
|
1052
|
-
u("div",
|
|
1053
|
-
u("input",
|
|
1048
|
+
return se(() => {
|
|
1049
|
+
const x = n.modelValue, C = c.value, L = Array.isArray(x) ? x.includes(n.value) : x === n.value, A = Array.isArray(C) ? C.includes(n.value) : C === n.value;
|
|
1050
|
+
L !== A && i(x);
|
|
1051
|
+
}), (x, C) => (a(), p("div", Ys, [
|
|
1052
|
+
u("div", Zs, [
|
|
1053
|
+
u("input", ge({
|
|
1054
1054
|
id: m.value,
|
|
1055
1055
|
checked: l(o),
|
|
1056
|
-
"aria-describedby":
|
|
1056
|
+
"aria-describedby": k.value,
|
|
1057
1057
|
name: e.name,
|
|
1058
1058
|
disabled: e.disabled,
|
|
1059
1059
|
value: s.value,
|
|
1060
1060
|
type: "checkbox",
|
|
1061
|
-
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2",
|
|
1062
|
-
},
|
|
1061
|
+
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", f.value]
|
|
1062
|
+
}, x.$attrs, { onChange: M }), null, 16, el)
|
|
1063
1063
|
]),
|
|
1064
|
-
u("div",
|
|
1064
|
+
u("div", tl, [
|
|
1065
1065
|
u("label", {
|
|
1066
1066
|
for: m.value,
|
|
1067
|
-
class:
|
|
1067
|
+
class: g(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1068
1068
|
}, [
|
|
1069
|
-
u("span", null,
|
|
1070
|
-
e.showRequired ? (a(), p("span",
|
|
1071
|
-
], 10,
|
|
1072
|
-
|
|
1069
|
+
u("span", null, _(h.value), 1),
|
|
1070
|
+
e.showRequired ? (a(), p("span", ll, "*")) : B("", !0)
|
|
1071
|
+
], 10, sl),
|
|
1072
|
+
y.value ? (a(), p("p", {
|
|
1073
1073
|
key: 0,
|
|
1074
|
-
id:
|
|
1075
|
-
class:
|
|
1076
|
-
},
|
|
1074
|
+
id: k.value,
|
|
1075
|
+
class: g(v.value)
|
|
1076
|
+
}, _(y.value), 11, nl)) : B("", !0)
|
|
1077
1077
|
])
|
|
1078
1078
|
]));
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
|
-
function
|
|
1082
|
-
const { props: n, inputEl: t, emit: s } = e, { value: o, errorMessage: r } =
|
|
1081
|
+
function Fe(e) {
|
|
1082
|
+
const { props: n, inputEl: t, emit: s } = e, { value: o, errorMessage: r } = Te(n.name, n.rules, {
|
|
1083
1083
|
validateOnMount: l(n.validateOnMount),
|
|
1084
1084
|
validateOnValueUpdate: l(n.validateOnValueUpdate),
|
|
1085
1085
|
initialValue: l(n.modelValue) || void 0
|
|
1086
|
-
}), i =
|
|
1087
|
-
const
|
|
1088
|
-
return l(n.showLabel) ||
|
|
1089
|
-
}), c =
|
|
1086
|
+
}), i = d(() => {
|
|
1087
|
+
const A = ["block label text-foreground-2 mb-2"];
|
|
1088
|
+
return l(n.showLabel) || A.push("sr-only"), A.join(" ");
|
|
1089
|
+
}), c = d(() => [
|
|
1090
1090
|
"focus:outline-none disabled:cursor-not-allowed disabled:bg-foundation-disabled",
|
|
1091
1091
|
"disabled:text-disabled-muted placeholder:text-foreground-2",
|
|
1092
1092
|
"rounded"
|
|
1093
|
-
].join(" ")), h =
|
|
1094
|
-
const
|
|
1093
|
+
].join(" ")), h = d(() => {
|
|
1094
|
+
const A = [
|
|
1095
1095
|
"block w-full text-foreground transition-all",
|
|
1096
1096
|
c.value
|
|
1097
1097
|
];
|
|
1098
|
-
return r.value ?
|
|
1098
|
+
return r.value ? A.push(
|
|
1099
1099
|
"focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
|
|
1100
|
-
) :
|
|
1101
|
-
}),
|
|
1102
|
-
const
|
|
1103
|
-
return !
|
|
1104
|
-
}), v =
|
|
1105
|
-
() =>
|
|
1106
|
-
), $ =
|
|
1107
|
-
() => m.value ? `${l(n.name)}-${
|
|
1108
|
-
),
|
|
1109
|
-
const
|
|
1110
|
-
return
|
|
1100
|
+
) : A.push("border-0 focus:ring-2 focus:ring-outline-2"), l(n.color) === "foundation" ? A.push("bg-foundation shadow-sm hover:shadow") : A.push("bg-foundation-page"), A.join(" ");
|
|
1101
|
+
}), f = T(Re()), y = d(() => l(n.label) || l(n.name)), k = d(() => {
|
|
1102
|
+
const A = r.value;
|
|
1103
|
+
return !A || !l(n.useLabelInErrors) ? A : A.replace("Value", y.value);
|
|
1104
|
+
}), v = d(
|
|
1105
|
+
() => k.value && l(n.hideErrorMessage)
|
|
1106
|
+
), $ = d(() => k.value || l(n.help)), m = d(() => !!$.value), M = d(
|
|
1107
|
+
() => m.value ? `${l(n.name)}-${f.value}` : void 0
|
|
1108
|
+
), x = d(() => {
|
|
1109
|
+
const A = ["mt-2 text-sm"];
|
|
1110
|
+
return A.push(r.value ? "text-danger" : "text-foreground-2"), A.join(" ");
|
|
1111
1111
|
}), C = () => {
|
|
1112
|
-
var
|
|
1113
|
-
(
|
|
1114
|
-
},
|
|
1115
|
-
o.value =
|
|
1112
|
+
var A;
|
|
1113
|
+
(A = t.value) == null || A.focus();
|
|
1114
|
+
}, L = () => {
|
|
1115
|
+
o.value = X(o.value) ? [] : "", s("change", { value: o.value }), s("clear");
|
|
1116
1116
|
};
|
|
1117
|
-
return
|
|
1117
|
+
return se(() => {
|
|
1118
1118
|
l(n.autoFocus) && C();
|
|
1119
1119
|
}), {
|
|
1120
1120
|
coreInputClasses: c,
|
|
1121
1121
|
coreClasses: h,
|
|
1122
|
-
title:
|
|
1122
|
+
title: y,
|
|
1123
1123
|
value: o,
|
|
1124
1124
|
helpTipId: M,
|
|
1125
|
-
helpTipClasses:
|
|
1125
|
+
helpTipClasses: x,
|
|
1126
1126
|
helpTip: $,
|
|
1127
1127
|
hideHelpTip: v,
|
|
1128
|
-
errorMessage:
|
|
1129
|
-
clear:
|
|
1128
|
+
errorMessage: k,
|
|
1129
|
+
clear: L,
|
|
1130
1130
|
focus: C,
|
|
1131
1131
|
labelClasses: i
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
const
|
|
1134
|
+
const al = ["for"], ol = { class: "relative" }, rl = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], il = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), ul = ["id"], sa = /* @__PURE__ */ R({
|
|
1135
1135
|
__name: "TextArea",
|
|
1136
1136
|
props: {
|
|
1137
1137
|
name: null,
|
|
@@ -1159,35 +1159,35 @@ const nl = ["for"], al = { class: "relative" }, ol = ["id", "name", "placeholder
|
|
|
1159
1159
|
title: i,
|
|
1160
1160
|
value: c,
|
|
1161
1161
|
helpTipId: h,
|
|
1162
|
-
helpTipClasses:
|
|
1163
|
-
helpTip:
|
|
1164
|
-
errorMessage:
|
|
1162
|
+
helpTipClasses: f,
|
|
1163
|
+
helpTip: y,
|
|
1164
|
+
errorMessage: k,
|
|
1165
1165
|
labelClasses: v,
|
|
1166
1166
|
clear: $,
|
|
1167
1167
|
focus: m
|
|
1168
|
-
} =
|
|
1169
|
-
props:
|
|
1168
|
+
} = Fe({
|
|
1169
|
+
props: te(s),
|
|
1170
1170
|
emit: t,
|
|
1171
1171
|
inputEl: o
|
|
1172
|
-
}), M =
|
|
1173
|
-
const
|
|
1174
|
-
return s.showClear &&
|
|
1172
|
+
}), M = d(() => {
|
|
1173
|
+
const x = ["pl-2"];
|
|
1174
|
+
return s.showClear && k.value ? x.push("pr-12") : (s.showClear || k.value) && x.push("pr-8"), x.join(" ");
|
|
1175
1175
|
});
|
|
1176
|
-
return n({ focus: m }), (
|
|
1177
|
-
class:
|
|
1176
|
+
return n({ focus: m }), (x, C) => (a(), p("div", {
|
|
1177
|
+
class: g([e.fullWidth ? "w-full" : ""])
|
|
1178
1178
|
}, [
|
|
1179
1179
|
u("label", {
|
|
1180
1180
|
for: e.name,
|
|
1181
|
-
class:
|
|
1181
|
+
class: g(l(v))
|
|
1182
1182
|
}, [
|
|
1183
|
-
u("span", null,
|
|
1184
|
-
], 10,
|
|
1185
|
-
u("div",
|
|
1186
|
-
|
|
1183
|
+
u("span", null, _(l(i)), 1)
|
|
1184
|
+
], 10, al),
|
|
1185
|
+
u("div", ol, [
|
|
1186
|
+
ie(u("textarea", ge({
|
|
1187
1187
|
id: e.name,
|
|
1188
1188
|
ref_key: "inputElement",
|
|
1189
1189
|
ref: o,
|
|
1190
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1190
|
+
"onUpdate:modelValue": C[0] || (C[0] = (L) => ke(c) ? c.value = L : null),
|
|
1191
1191
|
name: e.name,
|
|
1192
1192
|
class: [
|
|
1193
1193
|
l(r),
|
|
@@ -1197,57 +1197,57 @@ const nl = ["for"], al = { class: "relative" }, ol = ["id", "name", "placeholder
|
|
|
1197
1197
|
],
|
|
1198
1198
|
placeholder: e.placeholder,
|
|
1199
1199
|
disabled: e.disabled,
|
|
1200
|
-
"aria-invalid": l(
|
|
1200
|
+
"aria-invalid": l(k) ? "true" : "false",
|
|
1201
1201
|
"aria-describedby": l(h)
|
|
1202
|
-
},
|
|
1203
|
-
onChange: C[1] || (C[1] = (
|
|
1204
|
-
onInput: C[2] || (C[2] = (
|
|
1205
|
-
}), null, 16,
|
|
1206
|
-
[
|
|
1202
|
+
}, x.$attrs, {
|
|
1203
|
+
onChange: C[1] || (C[1] = (L) => x.$emit("change", { event: L, value: l(c) })),
|
|
1204
|
+
onInput: C[2] || (C[2] = (L) => x.$emit("input", { event: L, value: l(c) }))
|
|
1205
|
+
}), null, 16, rl), [
|
|
1206
|
+
[je, l(c)]
|
|
1207
1207
|
]),
|
|
1208
1208
|
e.showClear ? (a(), p("a", {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
title: "Clear input",
|
|
1211
1211
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1212
1212
|
onClick: C[3] || (C[3] = //@ts-ignore
|
|
1213
|
-
(...
|
|
1213
|
+
(...L) => l($) && l($)(...L)),
|
|
1214
1214
|
onKeydown: C[4] || (C[4] = //@ts-ignore
|
|
1215
|
-
(...
|
|
1215
|
+
(...L) => l($) && l($)(...L))
|
|
1216
1216
|
}, [
|
|
1217
|
-
|
|
1218
|
-
|
|
1217
|
+
il,
|
|
1218
|
+
V(l(ue), {
|
|
1219
1219
|
class: "h-5 w-5 text-foreground",
|
|
1220
1220
|
"aria-hidden": "true"
|
|
1221
1221
|
})
|
|
1222
|
-
], 32)) :
|
|
1223
|
-
l(
|
|
1222
|
+
], 32)) : B("", !0),
|
|
1223
|
+
l(k) ? (a(), p("div", {
|
|
1224
1224
|
key: 1,
|
|
1225
|
-
class:
|
|
1225
|
+
class: g([
|
|
1226
1226
|
"pointer-events-none absolute inset-y-0 right-0 flex items-start mt-2",
|
|
1227
1227
|
e.showClear ? "pr-8" : "pr-2"
|
|
1228
1228
|
])
|
|
1229
1229
|
}, [
|
|
1230
|
-
|
|
1230
|
+
V(l(we), {
|
|
1231
1231
|
class: "h-4 w-4 text-danger",
|
|
1232
1232
|
"aria-hidden": "true"
|
|
1233
1233
|
})
|
|
1234
|
-
], 2)) :
|
|
1235
|
-
e.showRequired && !l(
|
|
1234
|
+
], 2)) : B("", !0),
|
|
1235
|
+
e.showRequired && !l(k) ? (a(), p("div", {
|
|
1236
1236
|
key: 2,
|
|
1237
|
-
class:
|
|
1238
|
-
}, " * ", 2)) :
|
|
1237
|
+
class: g(["pointer-events-none absolute inset-y-0 mt-0.5 text-4xl right-0 flex items-start text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1238
|
+
}, " * ", 2)) : B("", !0)
|
|
1239
1239
|
]),
|
|
1240
1240
|
l(h) ? (a(), p("p", {
|
|
1241
1241
|
key: 0,
|
|
1242
1242
|
id: l(h),
|
|
1243
|
-
class:
|
|
1244
|
-
},
|
|
1243
|
+
class: g(l(f))
|
|
1244
|
+
}, _(l(y)), 11, ul)) : B("", !0)
|
|
1245
1245
|
], 2));
|
|
1246
1246
|
}
|
|
1247
|
-
}),
|
|
1247
|
+
}), cl = ["for"], dl = { class: "relative" }, fl = {
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1250
|
-
},
|
|
1250
|
+
}, pl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], hl = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), ml = ["id"], la = /* @__PURE__ */ R({
|
|
1251
1251
|
inheritAttrs: !1,
|
|
1252
1252
|
__name: "TextInput",
|
|
1253
1253
|
props: {
|
|
@@ -1384,31 +1384,31 @@ const nl = ["for"], al = { class: "relative" }, ol = ["id", "name", "placeholder
|
|
|
1384
1384
|
},
|
|
1385
1385
|
emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
|
|
1386
1386
|
setup(e, { expose: n, emit: t }) {
|
|
1387
|
-
const s = e, o =
|
|
1387
|
+
const s = e, o = Oe(), r = T(null), {
|
|
1388
1388
|
coreClasses: i,
|
|
1389
1389
|
title: c,
|
|
1390
1390
|
value: h,
|
|
1391
|
-
helpTipId:
|
|
1392
|
-
helpTipClasses:
|
|
1393
|
-
helpTip:
|
|
1391
|
+
helpTipId: f,
|
|
1392
|
+
helpTipClasses: y,
|
|
1393
|
+
helpTip: k,
|
|
1394
1394
|
hideHelpTip: v,
|
|
1395
1395
|
errorMessage: $,
|
|
1396
1396
|
clear: m,
|
|
1397
1397
|
focus: M,
|
|
1398
|
-
labelClasses:
|
|
1399
|
-
} =
|
|
1400
|
-
props:
|
|
1398
|
+
labelClasses: x
|
|
1399
|
+
} = Fe({
|
|
1400
|
+
props: te(s),
|
|
1401
1401
|
emit: t,
|
|
1402
1402
|
inputEl: r
|
|
1403
|
-
}), C =
|
|
1403
|
+
}), C = d(() => {
|
|
1404
1404
|
const D = ["h-5 w-5"];
|
|
1405
1405
|
return $.value ? D.push("text-danger") : D.push("text-foreground-2"), D.join(" ");
|
|
1406
|
-
}),
|
|
1406
|
+
}), L = d(
|
|
1407
1407
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1408
|
-
),
|
|
1408
|
+
), A = d(() => {
|
|
1409
1409
|
const D = [];
|
|
1410
|
-
return
|
|
1411
|
-
}),
|
|
1410
|
+
return L.value ? D.push("pl-8") : D.push("pl-2"), o["input-right"] || ($.value || s.showClear) && ($.value && s.showClear ? D.push("pr-12") : D.push("pr-8")), D.join(" ");
|
|
1411
|
+
}), b = d(() => {
|
|
1412
1412
|
switch (s.size) {
|
|
1413
1413
|
case "sm":
|
|
1414
1414
|
return "h-6";
|
|
@@ -1421,111 +1421,111 @@ const nl = ["for"], al = { class: "relative" }, ol = ["id", "name", "placeholder
|
|
|
1421
1421
|
return "h-8";
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
|
-
return n({ focus: M }), (D,
|
|
1425
|
-
class:
|
|
1424
|
+
return n({ focus: M }), (D, U) => (a(), p("div", {
|
|
1425
|
+
class: g([e.fullWidth ? "w-full" : "", e.wrapperClasses])
|
|
1426
1426
|
}, [
|
|
1427
1427
|
u("label", {
|
|
1428
1428
|
for: e.name,
|
|
1429
|
-
class:
|
|
1429
|
+
class: g(l(x))
|
|
1430
1430
|
}, [
|
|
1431
|
-
u("span", null,
|
|
1432
|
-
], 10,
|
|
1433
|
-
u("div",
|
|
1434
|
-
|
|
1435
|
-
e.customIcon ? (a(),
|
|
1431
|
+
u("span", null, _(l(c)), 1)
|
|
1432
|
+
], 10, cl),
|
|
1433
|
+
u("div", dl, [
|
|
1434
|
+
L.value ? (a(), p("div", fl, [
|
|
1435
|
+
e.customIcon ? (a(), O(N(e.customIcon), {
|
|
1436
1436
|
key: 0,
|
|
1437
|
-
class:
|
|
1437
|
+
class: g(C.value),
|
|
1438
1438
|
"aria-hidden": "true"
|
|
1439
|
-
}, null, 8, ["class"])) : e.type === "email" ? (a(),
|
|
1439
|
+
}, null, 8, ["class"])) : e.type === "email" ? (a(), O(l(Vt), {
|
|
1440
1440
|
key: 1,
|
|
1441
|
-
class:
|
|
1441
|
+
class: g(C.value),
|
|
1442
1442
|
"aria-hidden": "true"
|
|
1443
|
-
}, null, 8, ["class"])) : e.type === "password" ? (a(),
|
|
1443
|
+
}, null, 8, ["class"])) : e.type === "password" ? (a(), O(l(_t), {
|
|
1444
1444
|
key: 2,
|
|
1445
|
-
class:
|
|
1445
|
+
class: g(C.value),
|
|
1446
1446
|
"aria-hidden": "true"
|
|
1447
|
-
}, null, 8, ["class"])) :
|
|
1448
|
-
])) :
|
|
1449
|
-
|
|
1447
|
+
}, null, 8, ["class"])) : B("", !0)
|
|
1448
|
+
])) : B("", !0),
|
|
1449
|
+
ie(u("input", ge({
|
|
1450
1450
|
id: e.name,
|
|
1451
1451
|
ref_key: "inputElement",
|
|
1452
1452
|
ref: r,
|
|
1453
|
-
"onUpdate:modelValue":
|
|
1453
|
+
"onUpdate:modelValue": U[0] || (U[0] = (E) => ke(h) ? h.value = E : null),
|
|
1454
1454
|
type: e.type,
|
|
1455
1455
|
name: e.name,
|
|
1456
|
-
class: [l(i),
|
|
1456
|
+
class: [l(i), A.value, b.value, e.inputClasses || ""],
|
|
1457
1457
|
placeholder: e.placeholder,
|
|
1458
1458
|
disabled: e.disabled,
|
|
1459
1459
|
"aria-invalid": l($) ? "true" : "false",
|
|
1460
|
-
"aria-describedby": l(
|
|
1460
|
+
"aria-describedby": l(f),
|
|
1461
1461
|
role: "textbox"
|
|
1462
1462
|
}, D.$attrs, {
|
|
1463
|
-
onChange:
|
|
1464
|
-
onInput:
|
|
1465
|
-
}), null, 16,
|
|
1466
|
-
[
|
|
1463
|
+
onChange: U[1] || (U[1] = (E) => D.$emit("change", { event: E, value: l(h) })),
|
|
1464
|
+
onInput: U[2] || (U[2] = (E) => D.$emit("input", { event: E, value: l(h) }))
|
|
1465
|
+
}), null, 16, pl), [
|
|
1466
|
+
[rt, l(h)]
|
|
1467
1467
|
]),
|
|
1468
|
-
|
|
1468
|
+
F(D.$slots, "input-right", {}, () => [
|
|
1469
1469
|
e.showClear ? (a(), p("a", {
|
|
1470
1470
|
key: 0,
|
|
1471
1471
|
title: "Clear input",
|
|
1472
1472
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1473
|
-
onClick:
|
|
1474
|
-
(...
|
|
1475
|
-
onKeydown:
|
|
1476
|
-
(...
|
|
1473
|
+
onClick: U[3] || (U[3] = //@ts-ignore
|
|
1474
|
+
(...E) => l(m) && l(m)(...E)),
|
|
1475
|
+
onKeydown: U[4] || (U[4] = //@ts-ignore
|
|
1476
|
+
(...E) => l(m) && l(m)(...E))
|
|
1477
1477
|
}, [
|
|
1478
|
-
|
|
1479
|
-
|
|
1478
|
+
hl,
|
|
1479
|
+
V(l(ue), {
|
|
1480
1480
|
class: "h-5 w-5 text-foreground",
|
|
1481
1481
|
"aria-hidden": "true"
|
|
1482
1482
|
})
|
|
1483
|
-
], 32)) :
|
|
1483
|
+
], 32)) : B("", !0),
|
|
1484
1484
|
l($) ? (a(), p("div", {
|
|
1485
1485
|
key: 1,
|
|
1486
|
-
class:
|
|
1486
|
+
class: g([
|
|
1487
1487
|
"pointer-events-none absolute inset-y-0 right-0 flex items-center",
|
|
1488
1488
|
e.showClear ? "pr-8" : "pr-2"
|
|
1489
1489
|
])
|
|
1490
1490
|
}, [
|
|
1491
|
-
|
|
1491
|
+
V(l(we), {
|
|
1492
1492
|
class: "h-4 w-4 text-danger",
|
|
1493
1493
|
"aria-hidden": "true"
|
|
1494
1494
|
})
|
|
1495
|
-
], 2)) :
|
|
1495
|
+
], 2)) : B("", !0),
|
|
1496
1496
|
e.showRequired && !l($) ? (a(), p("div", {
|
|
1497
1497
|
key: 2,
|
|
1498
|
-
class:
|
|
1499
|
-
}, " * ", 2)) :
|
|
1498
|
+
class: g(["pointer-events-none absolute inset-y-0 mt-3 text-4xl right-0 flex items-center text-danger opacity-50", [e.showClear ? "pr-8" : "pr-2"]])
|
|
1499
|
+
}, " * ", 2)) : B("", !0)
|
|
1500
1500
|
])
|
|
1501
1501
|
]),
|
|
1502
|
-
l(
|
|
1502
|
+
l(f) && !l(v) ? (a(), p("p", {
|
|
1503
1503
|
key: 0,
|
|
1504
|
-
id: l(
|
|
1505
|
-
class:
|
|
1506
|
-
},
|
|
1504
|
+
id: l(f),
|
|
1505
|
+
class: g(l(y))
|
|
1506
|
+
}, _(l(k)), 11, ml)) : B("", !0)
|
|
1507
1507
|
], 2));
|
|
1508
1508
|
}
|
|
1509
|
-
}), lt = /^https?:\/\//,
|
|
1509
|
+
}), lt = /^https?:\/\//, Ee = /^[\w-_.+]+@[\w-_.+]+$/, vl = (e) => (e || "").match(Ee) ? !0 : "Value should be a valid e-mail address", gl = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(Ee)) || "Value should be one or multiple comma-delimited e-mail addresses", bl = (e) => (xe(e) && (e = e.trim()), e ? !0 : "Value is required"), yl = (e, n) => (t, s) => t === s.form[e] ? !0 : `Value must be the same as in field '${n || e}'`, xl = (e) => (n) => {
|
|
1510
1510
|
const { minLength: t, maxLength: s } = e;
|
|
1511
|
-
return n =
|
|
1512
|
-
},
|
|
1511
|
+
return n = jt(n) ? "" : n, xe(n) ? !re(t) && n.length < t ? `Value needs to be at least ${t} characters long` : !re(s) && n.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1512
|
+
}, kl = (e) => (n) => {
|
|
1513
1513
|
const { match: t, message: s } = e;
|
|
1514
|
-
return
|
|
1515
|
-
},
|
|
1514
|
+
return xe(n) ? t ? xe(t) ? n.includes(t) ? !0 : s : t.test(n) ? !0 : s : !0 : "Value should be a text string";
|
|
1515
|
+
}, wl = (e) => lt.test(e) ? !0 : "Value is not a valid URL", Cl = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1516
1516
|
__proto__: null,
|
|
1517
|
-
VALID_EMAIL:
|
|
1517
|
+
VALID_EMAIL: Ee,
|
|
1518
1518
|
VALID_HTTP_URL: lt,
|
|
1519
|
-
isEmail:
|
|
1520
|
-
isItemSelected:
|
|
1519
|
+
isEmail: vl,
|
|
1520
|
+
isItemSelected: Cl,
|
|
1521
1521
|
isOneOrMultipleEmails: gl,
|
|
1522
|
-
isRequired:
|
|
1523
|
-
isSameAs:
|
|
1524
|
-
isStringOfLength:
|
|
1525
|
-
isUrl:
|
|
1526
|
-
stringContains:
|
|
1522
|
+
isRequired: bl,
|
|
1523
|
+
isSameAs: yl,
|
|
1524
|
+
isStringOfLength: xl,
|
|
1525
|
+
isUrl: wl,
|
|
1526
|
+
stringContains: kl
|
|
1527
1527
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1528
|
-
function
|
|
1528
|
+
function $l(e) {
|
|
1529
1529
|
const {
|
|
1530
1530
|
skipCalculation: n,
|
|
1531
1531
|
elementToWatchForChanges: t,
|
|
@@ -1536,15 +1536,15 @@ function Cl(e) {
|
|
|
1536
1536
|
const h = s.value;
|
|
1537
1537
|
if (n != null && n.value || !h)
|
|
1538
1538
|
return;
|
|
1539
|
-
const
|
|
1540
|
-
let
|
|
1541
|
-
for (const $ of
|
|
1539
|
+
const f = h.children;
|
|
1540
|
+
let y = 0, k = 0, v;
|
|
1541
|
+
for (const $ of f) {
|
|
1542
1542
|
const m = $.offsetTop;
|
|
1543
|
-
|
|
1543
|
+
re(v) ? (v = m, y += 1) : m === v && (y += 1), k += 1;
|
|
1544
1544
|
}
|
|
1545
|
-
i.value =
|
|
1545
|
+
i.value = k - y;
|
|
1546
1546
|
};
|
|
1547
|
-
return o &&
|
|
1547
|
+
return o && Mt(t, c), r && Tt(t, c, {
|
|
1548
1548
|
childList: !0,
|
|
1549
1549
|
subtree: !0
|
|
1550
1550
|
}), {
|
|
@@ -1555,71 +1555,71 @@ function nt(e) {
|
|
|
1555
1555
|
const { props: n, emit: t, dynamicVisibility: s } = e;
|
|
1556
1556
|
let o;
|
|
1557
1557
|
if (s) {
|
|
1558
|
-
const { elementToWatchForChanges:
|
|
1559
|
-
o =
|
|
1560
|
-
skipCalculation:
|
|
1558
|
+
const { elementToWatchForChanges: f, itemContainer: y } = s;
|
|
1559
|
+
o = $l({
|
|
1560
|
+
skipCalculation: d(() => {
|
|
1561
1561
|
var v;
|
|
1562
1562
|
return !((v = n.multiple) != null && v.value);
|
|
1563
1563
|
}),
|
|
1564
|
-
elementToWatchForChanges:
|
|
1565
|
-
itemContainer:
|
|
1564
|
+
elementToWatchForChanges: f,
|
|
1565
|
+
itemContainer: y
|
|
1566
1566
|
}).hiddenItemCount;
|
|
1567
1567
|
} else
|
|
1568
1568
|
o = T(0);
|
|
1569
|
-
const r =
|
|
1569
|
+
const r = d({
|
|
1570
1570
|
get: () => {
|
|
1571
|
-
var
|
|
1572
|
-
const
|
|
1573
|
-
return (
|
|
1571
|
+
var y, k;
|
|
1572
|
+
const f = (y = n.modelValue) == null ? void 0 : y.value;
|
|
1573
|
+
return (k = n.multiple) != null && k.value ? X(f) ? f : [] : X(f) ? void 0 : f;
|
|
1574
1574
|
},
|
|
1575
|
-
set: (
|
|
1576
|
-
var
|
|
1577
|
-
if ((
|
|
1575
|
+
set: (f) => {
|
|
1576
|
+
var y, k, v;
|
|
1577
|
+
if ((y = n.multiple) != null && y.value && !X(f)) {
|
|
1578
1578
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1579
1579
|
return;
|
|
1580
|
-
} else if (!((
|
|
1580
|
+
} else if (!((k = n.multiple) != null && k.value) && X(f)) {
|
|
1581
1581
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
|
-
t("update:modelValue", (v = n.multiple) != null && v.value ?
|
|
1584
|
+
t("update:modelValue", (v = n.multiple) != null && v.value ? f || [] : f);
|
|
1585
1585
|
}
|
|
1586
|
-
}), i = (
|
|
1586
|
+
}), i = (f) => X(f);
|
|
1587
1587
|
return {
|
|
1588
1588
|
selectedValue: r,
|
|
1589
1589
|
hiddenSelectedItemCount: o,
|
|
1590
1590
|
isArrayValue: i,
|
|
1591
|
-
isMultiItemArrayValue: (
|
|
1592
|
-
firstItem: (
|
|
1591
|
+
isMultiItemArrayValue: (f) => X(f) && f.length > 1,
|
|
1592
|
+
firstItem: (f) => i(f) ? f[0] : f
|
|
1593
1593
|
};
|
|
1594
1594
|
}
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1597
|
-
],
|
|
1595
|
+
const Il = (e) => (it("data-v-60cf597b"), e = e(), ut(), e), Sl = /* @__PURE__ */ Il(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), Bl = [
|
|
1596
|
+
Sl
|
|
1597
|
+
], Vl = /* @__PURE__ */ R({
|
|
1598
1598
|
__name: "Bar",
|
|
1599
1599
|
props: {
|
|
1600
1600
|
loading: { type: Boolean }
|
|
1601
1601
|
},
|
|
1602
1602
|
setup(e) {
|
|
1603
1603
|
return (n, t) => (a(), p("div", {
|
|
1604
|
-
class:
|
|
1604
|
+
class: g([
|
|
1605
1605
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
1606
1606
|
e.loading ? "opacity-100" : "opacity-0"
|
|
1607
1607
|
])
|
|
1608
|
-
},
|
|
1608
|
+
}, Bl, 2));
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
|
-
const
|
|
1611
|
+
const Ue = /* @__PURE__ */ tt(Vl, [["__scopeId", "data-v-60cf597b"]]), _l = { class: "flex items-center justify-between w-full" }, Pl = { class: "block truncate grow text-left" }, Ll = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, jl = {
|
|
1612
1612
|
key: 1,
|
|
1613
1613
|
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
1614
|
-
},
|
|
1614
|
+
}, Ol = ["disabled"], Al = {
|
|
1615
1615
|
key: 0,
|
|
1616
1616
|
class: "flex flex-col mx-1 mb-1"
|
|
1617
|
-
},
|
|
1617
|
+
}, Ml = /* @__PURE__ */ u("span", { class: "sr-only label text-foreground" }, "Search", -1), Tl = { class: "relative" }, Rl = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, zl = ["placeholder"], Dl = {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
class: "px-1"
|
|
1620
|
-
},
|
|
1621
|
-
class: /* @__PURE__ */
|
|
1622
|
-
},
|
|
1620
|
+
}, Fl = { key: 1 }, El = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, "Nothing found 🤷♂️", -1), Ul = {
|
|
1621
|
+
class: /* @__PURE__ */ g(["block truncate"])
|
|
1622
|
+
}, ql = ["id"], at = /* @__PURE__ */ R({
|
|
1623
1623
|
__name: "Base",
|
|
1624
1624
|
props: {
|
|
1625
1625
|
multiple: {
|
|
@@ -1781,157 +1781,157 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
1781
1781
|
},
|
|
1782
1782
|
emits: ["update:modelValue"],
|
|
1783
1783
|
setup(e, { expose: n, emit: t }) {
|
|
1784
|
-
const s = e, o = (
|
|
1784
|
+
const s = e, o = (w) => Be(w), { value: r, errorMessage: i } = Te(s.name, s.rules, {
|
|
1785
1785
|
validateOnMount: s.validateOnMount,
|
|
1786
1786
|
validateOnValueUpdate: s.validateOnValueUpdate,
|
|
1787
1787
|
initialValue: s.modelValue
|
|
1788
|
-
}), c = T(null), h = T(""),
|
|
1789
|
-
const
|
|
1790
|
-
return !
|
|
1791
|
-
}), M =
|
|
1792
|
-
() =>
|
|
1793
|
-
),
|
|
1788
|
+
}), c = T(null), h = T(""), f = T([]), y = T(!1), k = T(1), v = T(Re()), $ = d(() => l(s.label) || l(s.name)), m = d(() => {
|
|
1789
|
+
const w = i.value;
|
|
1790
|
+
return !w || !l(s.useLabelInErrors) ? w : w.replace("Value", $.value);
|
|
1791
|
+
}), M = d(() => m.value || l(s.help)), x = d(() => !!M.value), C = d(
|
|
1792
|
+
() => x.value ? `${l(s.name)}-${v.value}` : void 0
|
|
1793
|
+
), L = d(
|
|
1794
1794
|
() => i.value ? "text-danger" : "text-foreground-2"
|
|
1795
|
-
),
|
|
1795
|
+
), A = d(
|
|
1796
1796
|
() => s.buttonStyle !== "simple" && s.clearable && !s.disabled
|
|
1797
|
-
),
|
|
1798
|
-
const
|
|
1799
|
-
return i.value ? (
|
|
1800
|
-
}), D =
|
|
1801
|
-
const
|
|
1802
|
-
return s.buttonStyle !== "simple" &&
|
|
1803
|
-
|
|
1804
|
-
),
|
|
1805
|
-
}),
|
|
1806
|
-
const
|
|
1797
|
+
), b = d(() => {
|
|
1798
|
+
const w = ["relative flex group"];
|
|
1799
|
+
return i.value ? (w.push("hover:shadow rounded-md"), w.push("text-danger-darker focus:border-danger focus:ring-danger"), s.buttonStyle !== "simple" && w.push("outline outline-2 outline-danger")) : s.buttonStyle !== "simple" && (w.push("hover:shadow rounded-md"), w.push("outline outline-2 outline-primary-muted")), s.fixedHeight && w.push("h-8"), w.join(" ");
|
|
1800
|
+
}), D = d(() => {
|
|
1801
|
+
const w = [];
|
|
1802
|
+
return s.buttonStyle !== "simple" && w.push(
|
|
1803
|
+
Q.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
1804
|
+
), Q.value && w.push("cursor-not-allowed"), w.join(" ");
|
|
1805
|
+
}), U = d(() => {
|
|
1806
|
+
const w = [
|
|
1807
1807
|
"relative z-[1]",
|
|
1808
1808
|
"flex items-center justify-center text-center shrink-0",
|
|
1809
1809
|
"rounded-r-md overflow-hidden transition-all",
|
|
1810
1810
|
"text-foreground",
|
|
1811
|
-
|
|
1811
|
+
be.value ? `w-6 ${D.value}` : "w-0"
|
|
1812
1812
|
];
|
|
1813
|
-
return
|
|
1813
|
+
return Q.value || (w.push(
|
|
1814
1814
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
1815
|
-
), s.buttonStyle === "tinted" ?
|
|
1816
|
-
}),
|
|
1817
|
-
const
|
|
1815
|
+
), s.buttonStyle === "tinted" ? w.push("bg-outline-3") : w.push("bg-primary-muted")), w.join(" ");
|
|
1816
|
+
}), E = d(() => {
|
|
1817
|
+
const w = [
|
|
1818
1818
|
"relative z-[2]",
|
|
1819
1819
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
1820
1820
|
"flex items-center",
|
|
1821
1821
|
D.value
|
|
1822
1822
|
];
|
|
1823
|
-
return s.buttonStyle !== "simple" && (
|
|
1824
|
-
}),
|
|
1823
|
+
return s.buttonStyle !== "simple" && (w.push("py-2 px-3"), Q.value || (s.buttonStyle === "tinted" ? w.push("bg-foundation-page text-foreground") : w.push("bg-foundation text-foreground"))), A.value && be.value && w.push("rounded-r-none"), w.join(" ");
|
|
1824
|
+
}), q = d(
|
|
1825
1825
|
() => !!(s.search && (s.filterPredicate || s.getSearchResults))
|
|
1826
|
-
),
|
|
1827
|
-
() => s.disabled || !s.items.length && !
|
|
1828
|
-
),
|
|
1826
|
+
), Y = d(() => q.value && s.getSearchResults), Q = d(
|
|
1827
|
+
() => s.disabled || !s.items.length && !Y.value
|
|
1828
|
+
), G = d({
|
|
1829
1829
|
get: () => {
|
|
1830
|
-
const
|
|
1831
|
-
return s.multiple ?
|
|
1830
|
+
const w = r.value;
|
|
1831
|
+
return s.multiple ? X(w) ? w : [] : X(w) ? void 0 : w;
|
|
1832
1832
|
},
|
|
1833
|
-
set: (
|
|
1834
|
-
if (s.multiple && !
|
|
1833
|
+
set: (w) => {
|
|
1834
|
+
if (s.multiple && !X(w)) {
|
|
1835
1835
|
console.warn("Attempting to set non-array value in selector w/ multiple=true");
|
|
1836
1836
|
return;
|
|
1837
|
-
} else if (!s.multiple &&
|
|
1837
|
+
} else if (!s.multiple && X(w)) {
|
|
1838
1838
|
console.warn("Attempting to set array value in selector w/ multiple=false");
|
|
1839
1839
|
return;
|
|
1840
1840
|
}
|
|
1841
|
-
let
|
|
1841
|
+
let I;
|
|
1842
1842
|
if (s.multiple)
|
|
1843
|
-
|
|
1843
|
+
I = w || [];
|
|
1844
1844
|
else {
|
|
1845
|
-
const
|
|
1846
|
-
|
|
1845
|
+
const S = r.value;
|
|
1846
|
+
I = s.allowUnset && S && w && fe(S) === fe(w) ? void 0 : w;
|
|
1847
1847
|
}
|
|
1848
|
-
s.fullyControlValue ? t("update:modelValue",
|
|
1848
|
+
s.fullyControlValue ? t("update:modelValue", I) : r.value = I, k.value += 1;
|
|
1849
1849
|
}
|
|
1850
|
-
}),
|
|
1851
|
-
s.multiple ?
|
|
1852
|
-
},
|
|
1853
|
-
const
|
|
1854
|
-
return !
|
|
1855
|
-
(
|
|
1856
|
-
var
|
|
1857
|
-
return ((
|
|
1850
|
+
}), be = d(() => s.multiple && X(G.value) ? G.value.length !== 0 : !!G.value), Ce = () => {
|
|
1851
|
+
s.multiple ? G.value = [] : G.value = void 0;
|
|
1852
|
+
}, $e = d(() => {
|
|
1853
|
+
const w = h.value;
|
|
1854
|
+
return !q.value || !(w != null && w.length) ? f.value : s.filterPredicate ? f.value.filter(
|
|
1855
|
+
(I) => {
|
|
1856
|
+
var S;
|
|
1857
|
+
return ((S = s.filterPredicate) == null ? void 0 : S.call(s, I, w)) || !1;
|
|
1858
1858
|
}
|
|
1859
|
-
) :
|
|
1860
|
-
}),
|
|
1861
|
-
if (!(!
|
|
1862
|
-
|
|
1859
|
+
) : f.value;
|
|
1860
|
+
}), ye = (w) => JSON.stringify(w), fe = (w) => o(w) ? w[s.by || "id"] : w, ee = async () => {
|
|
1861
|
+
if (!(!Y.value || !s.getSearchResults)) {
|
|
1862
|
+
y.value = !0;
|
|
1863
1863
|
try {
|
|
1864
|
-
|
|
1864
|
+
f.value = await s.getSearchResults(h.value);
|
|
1865
1865
|
} finally {
|
|
1866
|
-
|
|
1866
|
+
y.value = !1;
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
},
|
|
1870
|
-
const { active:
|
|
1869
|
+
}, Ie = Ae(ee, 1e3), Se = (w) => {
|
|
1870
|
+
const { active: I, disabled: S } = w || {}, { hideCheckmarks: j } = s, K = [
|
|
1871
1871
|
"relative transition cursor-pointer select-none py-1.5 pl-3",
|
|
1872
|
-
|
|
1872
|
+
j ? "" : "pr-9"
|
|
1873
1873
|
];
|
|
1874
|
-
return
|
|
1874
|
+
return S ? K.push("opacity-50 cursor-not-allowed") : K.push(I ? "text-primary" : "text-foreground"), K.join(" ");
|
|
1875
1875
|
};
|
|
1876
|
-
return
|
|
1876
|
+
return Z(
|
|
1877
1877
|
() => s.items,
|
|
1878
|
-
(
|
|
1879
|
-
|
|
1878
|
+
(w) => {
|
|
1879
|
+
f.value = w.slice();
|
|
1880
1880
|
},
|
|
1881
1881
|
{ immediate: !0 }
|
|
1882
|
-
),
|
|
1883
|
-
|
|
1884
|
-
}),
|
|
1885
|
-
|
|
1886
|
-
}), n({ triggerSearch:
|
|
1887
|
-
(a(),
|
|
1888
|
-
key:
|
|
1889
|
-
modelValue:
|
|
1890
|
-
"onUpdate:modelValue":
|
|
1882
|
+
), Z(h, () => {
|
|
1883
|
+
Y.value && Ie();
|
|
1884
|
+
}), se(() => {
|
|
1885
|
+
Y.value && !s.items.length && ee();
|
|
1886
|
+
}), n({ triggerSearch: ee }), (w, I) => (a(), p("div", null, [
|
|
1887
|
+
(a(), O(l(Ft), {
|
|
1888
|
+
key: k.value,
|
|
1889
|
+
modelValue: G.value,
|
|
1890
|
+
"onUpdate:modelValue": I[4] || (I[4] = (S) => G.value = S),
|
|
1891
1891
|
name: e.name,
|
|
1892
1892
|
multiple: e.multiple,
|
|
1893
1893
|
by: e.by,
|
|
1894
|
-
disabled:
|
|
1894
|
+
disabled: Q.value,
|
|
1895
1895
|
as: "div"
|
|
1896
1896
|
}, {
|
|
1897
1897
|
default: P(() => [
|
|
1898
|
-
|
|
1899
|
-
class:
|
|
1898
|
+
V(l(Et), {
|
|
1899
|
+
class: g(["block label text-foreground-2 mb-2", { "sr-only": !e.showLabel }])
|
|
1900
1900
|
}, {
|
|
1901
1901
|
default: P(() => [
|
|
1902
|
-
z(
|
|
1902
|
+
z(_(e.label), 1)
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 1
|
|
1905
1905
|
}, 8, ["class"]),
|
|
1906
1906
|
u("div", {
|
|
1907
|
-
class: b
|
|
1907
|
+
class: g(b.value)
|
|
1908
1908
|
}, [
|
|
1909
|
-
|
|
1910
|
-
class:
|
|
1909
|
+
V(l(Ut), {
|
|
1910
|
+
class: g(E.value)
|
|
1911
1911
|
}, {
|
|
1912
|
-
default: P(({ open:
|
|
1913
|
-
u("div",
|
|
1912
|
+
default: P(({ open: S }) => [
|
|
1913
|
+
u("div", _l, [
|
|
1914
1914
|
u("div", Pl, [
|
|
1915
|
-
!
|
|
1916
|
-
z(
|
|
1917
|
-
]) :
|
|
1915
|
+
!G.value || l(X)(G.value) && !G.value.length ? F(w.$slots, "nothing-selected", { key: 0 }, () => [
|
|
1916
|
+
z(_(e.placeholder ? e.placeholder : e.label), 1)
|
|
1917
|
+
]) : F(w.$slots, "something-selected", {
|
|
1918
1918
|
key: 1,
|
|
1919
|
-
value:
|
|
1919
|
+
value: G.value
|
|
1920
1920
|
}, () => [
|
|
1921
|
-
z(
|
|
1921
|
+
z(_(ye(G.value)), 1)
|
|
1922
1922
|
])
|
|
1923
1923
|
]),
|
|
1924
1924
|
u("div", Ll, [
|
|
1925
|
-
m.value ? (a(),
|
|
1925
|
+
m.value ? (a(), O(l(vt), {
|
|
1926
1926
|
key: 0,
|
|
1927
1927
|
class: "h-4 w-4 text-danger",
|
|
1928
1928
|
"aria-hidden": "true"
|
|
1929
|
-
})) : e.showRequired ? (a(), p("div",
|
|
1930
|
-
|
|
1929
|
+
})) : e.showRequired ? (a(), p("div", jl, " * ")) : B("", !0),
|
|
1930
|
+
S ? (a(), O(l(Qe), {
|
|
1931
1931
|
key: 2,
|
|
1932
1932
|
class: "h-4 w-4 text-foreground",
|
|
1933
1933
|
"aria-hidden": "true"
|
|
1934
|
-
})) : (a(),
|
|
1934
|
+
})) : (a(), O(l(gt), {
|
|
1935
1935
|
key: 3,
|
|
1936
1936
|
class: "h-4 w-4 text-foreground",
|
|
1937
1937
|
"aria-hidden": "true"
|
|
@@ -1941,106 +1941,106 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
1941
1941
|
]),
|
|
1942
1942
|
_: 3
|
|
1943
1943
|
}, 8, ["class"]),
|
|
1944
|
-
|
|
1944
|
+
A.value ? ie((a(), p("button", {
|
|
1945
1945
|
key: 0,
|
|
1946
|
-
class:
|
|
1946
|
+
class: g(U.value),
|
|
1947
1947
|
disabled: e.disabled,
|
|
1948
|
-
onClick:
|
|
1948
|
+
onClick: I[0] || (I[0] = (S) => Ce())
|
|
1949
1949
|
}, [
|
|
1950
|
-
|
|
1951
|
-
], 10,
|
|
1950
|
+
V(l(Me), { class: "w-3 h-3" })
|
|
1951
|
+
], 10, Ol)), [
|
|
1952
1952
|
[l(et), "Clear"]
|
|
1953
|
-
]) :
|
|
1954
|
-
|
|
1953
|
+
]) : B("", !0),
|
|
1954
|
+
V(Le, {
|
|
1955
1955
|
"leave-active-class": "transition ease-in duration-100",
|
|
1956
1956
|
"leave-from-class": "opacity-100",
|
|
1957
1957
|
"leave-to-class": "opacity-0"
|
|
1958
1958
|
}, {
|
|
1959
1959
|
default: P(() => [
|
|
1960
|
-
|
|
1960
|
+
V(l(qt), {
|
|
1961
1961
|
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",
|
|
1962
|
-
onFocus:
|
|
1963
|
-
var
|
|
1964
|
-
return (
|
|
1962
|
+
onFocus: I[3] || (I[3] = (S) => {
|
|
1963
|
+
var j;
|
|
1964
|
+
return (j = c.value) == null ? void 0 : j.focus();
|
|
1965
1965
|
})
|
|
1966
1966
|
}, {
|
|
1967
1967
|
default: P(() => [
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
u("div",
|
|
1971
|
-
u("div",
|
|
1972
|
-
|
|
1968
|
+
q.value ? (a(), p("label", Al, [
|
|
1969
|
+
Ml,
|
|
1970
|
+
u("div", Tl, [
|
|
1971
|
+
u("div", Rl, [
|
|
1972
|
+
V(l(bt), { class: "h-5 w-5 text-foreground" })
|
|
1973
1973
|
]),
|
|
1974
|
-
|
|
1974
|
+
ie(u("input", {
|
|
1975
1975
|
ref_key: "searchInput",
|
|
1976
1976
|
ref: c,
|
|
1977
|
-
"onUpdate:modelValue":
|
|
1977
|
+
"onUpdate:modelValue": I[1] || (I[1] = (S) => h.value = S),
|
|
1978
1978
|
type: "text",
|
|
1979
1979
|
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",
|
|
1980
1980
|
placeholder: e.searchPlaceholder,
|
|
1981
|
-
onKeydown:
|
|
1981
|
+
onKeydown: I[2] || (I[2] = ce(() => {
|
|
1982
1982
|
}, ["stop"]))
|
|
1983
|
-
}, null, 40,
|
|
1984
|
-
[
|
|
1983
|
+
}, null, 40, zl), [
|
|
1984
|
+
[je, h.value]
|
|
1985
1985
|
])
|
|
1986
1986
|
])
|
|
1987
|
-
])) :
|
|
1987
|
+
])) : B("", !0),
|
|
1988
1988
|
u("div", {
|
|
1989
|
-
class:
|
|
1989
|
+
class: g(["overflow-auto simple-scrollbar", [q.value ? "max-h-52" : "max-h-60"]])
|
|
1990
1990
|
}, [
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
])) :
|
|
1994
|
-
|
|
1995
|
-
|
|
1991
|
+
Y.value && y.value ? (a(), p("div", Dl, [
|
|
1992
|
+
V(Ue, { loading: !0 })
|
|
1993
|
+
])) : Y.value && !f.value.length ? (a(), p("div", Fl, [
|
|
1994
|
+
F(w.$slots, "nothing-found", {}, () => [
|
|
1995
|
+
El
|
|
1996
1996
|
])
|
|
1997
|
-
])) :
|
|
1998
|
-
!
|
|
1999
|
-
var
|
|
2000
|
-
return a(),
|
|
2001
|
-
key:
|
|
2002
|
-
value:
|
|
2003
|
-
disabled: ((
|
|
1997
|
+
])) : B("", !0),
|
|
1998
|
+
!Y.value || !y.value ? (a(!0), p(W, { key: 2 }, H($e.value, (S) => {
|
|
1999
|
+
var j;
|
|
2000
|
+
return a(), O(l(Wt), {
|
|
2001
|
+
key: fe(S),
|
|
2002
|
+
value: S,
|
|
2003
|
+
disabled: ((j = e.disabledItemPredicate) == null ? void 0 : j.call(e, S)) || !1
|
|
2004
2004
|
}, {
|
|
2005
|
-
default: P(({ active:
|
|
2006
|
-
var
|
|
2005
|
+
default: P(({ active: K, selected: J }) => {
|
|
2006
|
+
var le, ne;
|
|
2007
2007
|
return [
|
|
2008
2008
|
u("li", {
|
|
2009
|
-
class:
|
|
2010
|
-
|
|
2011
|
-
active:
|
|
2012
|
-
disabled: ((
|
|
2009
|
+
class: g(
|
|
2010
|
+
Se({
|
|
2011
|
+
active: K,
|
|
2012
|
+
disabled: ((le = e.disabledItemPredicate) == null ? void 0 : le.call(e, S)) || !1
|
|
2013
2013
|
})
|
|
2014
2014
|
)
|
|
2015
2015
|
}, [
|
|
2016
|
-
u("span",
|
|
2017
|
-
|
|
2018
|
-
item:
|
|
2019
|
-
active:
|
|
2020
|
-
selected:
|
|
2021
|
-
disabled: ((
|
|
2016
|
+
u("span", Ul, [
|
|
2017
|
+
F(w.$slots, "option", {
|
|
2018
|
+
item: S,
|
|
2019
|
+
active: K,
|
|
2020
|
+
selected: J,
|
|
2021
|
+
disabled: ((ne = e.disabledItemPredicate) == null ? void 0 : ne.call(e, S)) || !1
|
|
2022
2022
|
}, () => [
|
|
2023
|
-
z(
|
|
2023
|
+
z(_(ye(S)), 1)
|
|
2024
2024
|
])
|
|
2025
2025
|
]),
|
|
2026
|
-
!e.hideCheckmarks &&
|
|
2026
|
+
!e.hideCheckmarks && J ? (a(), p("span", {
|
|
2027
2027
|
key: 0,
|
|
2028
|
-
class:
|
|
2029
|
-
|
|
2028
|
+
class: g([
|
|
2029
|
+
K ? "text-primary" : "text-foreground",
|
|
2030
2030
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
2031
2031
|
])
|
|
2032
2032
|
}, [
|
|
2033
|
-
|
|
2033
|
+
V(l(Ne), {
|
|
2034
2034
|
class: "h-5 w-5",
|
|
2035
2035
|
"aria-hidden": "true"
|
|
2036
2036
|
})
|
|
2037
|
-
], 2)) :
|
|
2037
|
+
], 2)) : B("", !0)
|
|
2038
2038
|
], 2)
|
|
2039
2039
|
];
|
|
2040
2040
|
}),
|
|
2041
2041
|
_: 2
|
|
2042
2042
|
}, 1032, ["value", "disabled"]);
|
|
2043
|
-
}), 128)) :
|
|
2043
|
+
}), 128)) : B("", !0)
|
|
2044
2044
|
], 2)
|
|
2045
2045
|
]),
|
|
2046
2046
|
_: 3
|
|
@@ -2055,34 +2055,34 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2055
2055
|
C.value ? (a(), p("p", {
|
|
2056
2056
|
key: 0,
|
|
2057
2057
|
id: C.value,
|
|
2058
|
-
class:
|
|
2059
|
-
},
|
|
2058
|
+
class: g(["mt-2 text-sm", L.value])
|
|
2059
|
+
}, _(M.value), 11, ql)) : B("", !0)
|
|
2060
2060
|
]));
|
|
2061
2061
|
}
|
|
2062
|
-
}),
|
|
2062
|
+
}), Wl = /* @__PURE__ */ R({
|
|
2063
2063
|
__name: "SourceAppBadge",
|
|
2064
2064
|
props: {
|
|
2065
2065
|
sourceApp: null
|
|
2066
2066
|
},
|
|
2067
2067
|
setup(e) {
|
|
2068
|
-
return (n, t) => (a(),
|
|
2068
|
+
return (n, t) => (a(), O(De, {
|
|
2069
2069
|
"color-classes": "text-foreground-on-primary",
|
|
2070
2070
|
rounded: "",
|
|
2071
|
-
style:
|
|
2071
|
+
style: ve({ backgroundColor: e.sourceApp.bgColor })
|
|
2072
2072
|
}, {
|
|
2073
2073
|
default: P(() => [
|
|
2074
|
-
z(
|
|
2074
|
+
z(_(e.sourceApp.short), 1)
|
|
2075
2075
|
]),
|
|
2076
2076
|
_: 1
|
|
2077
2077
|
}, 8, ["style"]));
|
|
2078
2078
|
}
|
|
2079
|
-
}),
|
|
2079
|
+
}), Kl = {
|
|
2080
2080
|
key: 0,
|
|
2081
2081
|
class: "text-foreground-2 normal"
|
|
2082
|
-
},
|
|
2082
|
+
}, Hl = {
|
|
2083
2083
|
key: 1,
|
|
2084
2084
|
class: "flex items-center"
|
|
2085
|
-
},
|
|
2085
|
+
}, Gl = { class: "truncate" }, Xl = { class: "flex items-center" }, Ql = { class: "truncate" }, aa = /* @__PURE__ */ R({
|
|
2086
2086
|
__name: "SourceApps",
|
|
2087
2087
|
props: {
|
|
2088
2088
|
/**
|
|
@@ -2149,30 +2149,30 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2149
2149
|
emits: ["update:modelValue"],
|
|
2150
2150
|
setup(e, { emit: n }) {
|
|
2151
2151
|
const t = e, s = T(null), o = T(null), { selectedValue: r, hiddenSelectedItemCount: i, isMultiItemArrayValue: c, firstItem: h } = nt({
|
|
2152
|
-
props:
|
|
2152
|
+
props: te(t),
|
|
2153
2153
|
emit: n,
|
|
2154
2154
|
dynamicVisibility: { elementToWatchForChanges: s, itemContainer: o }
|
|
2155
|
-
}),
|
|
2156
|
-
return (
|
|
2155
|
+
}), f = (y, k) => y.name.toLocaleLowerCase().includes(k.toLocaleLowerCase());
|
|
2156
|
+
return (y, k) => (a(), O(at, {
|
|
2157
2157
|
modelValue: l(r),
|
|
2158
|
-
"onUpdate:modelValue":
|
|
2158
|
+
"onUpdate:modelValue": k[0] || (k[0] = (v) => ke(r) ? r.value = v : null),
|
|
2159
2159
|
multiple: e.multiple,
|
|
2160
|
-
items: e.items ?? l(
|
|
2160
|
+
items: e.items ?? l(Ot),
|
|
2161
2161
|
search: e.search,
|
|
2162
2162
|
"search-placeholder": e.searchPlaceholder,
|
|
2163
2163
|
label: e.label,
|
|
2164
2164
|
"show-label": e.showLabel,
|
|
2165
2165
|
name: e.name || "sourceApps",
|
|
2166
|
-
"filter-predicate":
|
|
2166
|
+
"filter-predicate": f,
|
|
2167
2167
|
clearable: e.clearable,
|
|
2168
2168
|
help: e.help,
|
|
2169
2169
|
by: "name"
|
|
2170
2170
|
}, {
|
|
2171
2171
|
"nothing-selected": P(() => [
|
|
2172
|
-
e.selectorPlaceholder ? (a(), p(
|
|
2173
|
-
z(
|
|
2174
|
-
], 64)) : (a(), p(
|
|
2175
|
-
z(
|
|
2172
|
+
e.selectorPlaceholder ? (a(), p(W, { key: 0 }, [
|
|
2173
|
+
z(_(e.selectorPlaceholder), 1)
|
|
2174
|
+
], 64)) : (a(), p(W, { key: 1 }, [
|
|
2175
|
+
z(_(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2176
2176
|
], 64))
|
|
2177
2177
|
]),
|
|
2178
2178
|
"something-selected": P(({ value: v }) => [
|
|
@@ -2187,33 +2187,33 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2187
2187
|
ref: o,
|
|
2188
2188
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2189
2189
|
}, [
|
|
2190
|
-
(a(!0), p(
|
|
2190
|
+
(a(!0), p(W, null, H(v, ($) => (a(), O(Wl, {
|
|
2191
2191
|
key: $.name,
|
|
2192
2192
|
"source-app": $
|
|
2193
2193
|
}, null, 8, ["source-app"]))), 128))
|
|
2194
2194
|
], 512),
|
|
2195
|
-
l(i) > 0 ? (a(), p("div",
|
|
2196
|
-
], 512)) : (a(), p("div",
|
|
2195
|
+
l(i) > 0 ? (a(), p("div", Kl, " +" + _(l(i)), 1)) : B("", !0)
|
|
2196
|
+
], 512)) : (a(), p("div", Hl, [
|
|
2197
2197
|
u("div", {
|
|
2198
2198
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2199
|
-
style:
|
|
2199
|
+
style: ve({ backgroundColor: l(h)(v).bgColor })
|
|
2200
2200
|
}, null, 4),
|
|
2201
|
-
u("span",
|
|
2201
|
+
u("span", Gl, _(l(h)(v).name), 1)
|
|
2202
2202
|
]))
|
|
2203
2203
|
]),
|
|
2204
2204
|
option: P(({ item: v }) => [
|
|
2205
|
-
u("div",
|
|
2205
|
+
u("div", Xl, [
|
|
2206
2206
|
u("div", {
|
|
2207
2207
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2208
|
-
style:
|
|
2208
|
+
style: ve({ backgroundColor: v.bgColor })
|
|
2209
2209
|
}, null, 4),
|
|
2210
|
-
u("span",
|
|
2210
|
+
u("span", Ql, _(v.name), 1)
|
|
2211
2211
|
])
|
|
2212
2212
|
]),
|
|
2213
2213
|
_: 1
|
|
2214
2214
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help"]));
|
|
2215
2215
|
}
|
|
2216
|
-
}),
|
|
2216
|
+
}), Nl = { class: "flex flex-wrap gap-1.5 text-xs" }, oa = /* @__PURE__ */ R({
|
|
2217
2217
|
__name: "Badges",
|
|
2218
2218
|
props: {
|
|
2219
2219
|
items: null,
|
|
@@ -2228,14 +2228,14 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2228
2228
|
emits: ["update:modelValue"],
|
|
2229
2229
|
setup(e, { emit: n }) {
|
|
2230
2230
|
const t = e, { selectedValue: s, isArrayValue: o } = nt({
|
|
2231
|
-
props:
|
|
2231
|
+
props: te(t),
|
|
2232
2232
|
emit: n
|
|
2233
2233
|
}), r = (i) => {
|
|
2234
2234
|
o(s.value) ? s.value = s.value.filter((c) => c.id !== i.id) : s.value = void 0;
|
|
2235
2235
|
};
|
|
2236
|
-
return (i, c) => (a(),
|
|
2236
|
+
return (i, c) => (a(), O(at, {
|
|
2237
2237
|
modelValue: l(s),
|
|
2238
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) =>
|
|
2238
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => ke(s) ? s.value = h : null),
|
|
2239
2239
|
multiple: e.multiple,
|
|
2240
2240
|
items: e.items,
|
|
2241
2241
|
label: e.label,
|
|
@@ -2245,18 +2245,18 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2245
2245
|
by: e.by
|
|
2246
2246
|
}, {
|
|
2247
2247
|
"something-selected": P(({ value: h }) => [
|
|
2248
|
-
u("ul",
|
|
2249
|
-
(a(!0), p(
|
|
2250
|
-
key:
|
|
2248
|
+
u("ul", Nl, [
|
|
2249
|
+
(a(!0), p(W, null, H(l(o)(h) ? h : [h], (f) => (a(), p("li", {
|
|
2250
|
+
key: f[e.by]
|
|
2251
2251
|
}, [
|
|
2252
|
-
|
|
2252
|
+
V(De, {
|
|
2253
2253
|
size: "lg",
|
|
2254
2254
|
"clickable-icon": !0,
|
|
2255
|
-
"icon-left": l(
|
|
2256
|
-
onClickIcon:
|
|
2255
|
+
"icon-left": l(Me),
|
|
2256
|
+
onClickIcon: ce((y) => r(f), ["stop"])
|
|
2257
2257
|
}, {
|
|
2258
2258
|
default: P(() => [
|
|
2259
|
-
z(
|
|
2259
|
+
z(_(f.text), 1)
|
|
2260
2260
|
]),
|
|
2261
2261
|
_: 2
|
|
2262
2262
|
}, 1032, ["icon-left", "onClickIcon"])
|
|
@@ -2264,12 +2264,12 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2264
2264
|
])
|
|
2265
2265
|
]),
|
|
2266
2266
|
option: P(({ item: h }) => [
|
|
2267
|
-
z(
|
|
2267
|
+
z(_(h.text), 1)
|
|
2268
2268
|
]),
|
|
2269
2269
|
_: 1
|
|
2270
2270
|
}, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by"]));
|
|
2271
2271
|
}
|
|
2272
|
-
}),
|
|
2272
|
+
}), Jl = { class: "flex items-center" }, Yl = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, ra = /* @__PURE__ */ R({
|
|
2273
2273
|
__name: "Switch",
|
|
2274
2274
|
props: {
|
|
2275
2275
|
modelValue: { type: Boolean }
|
|
@@ -2277,19 +2277,19 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2277
2277
|
emits: ["update:modelValue"],
|
|
2278
2278
|
setup(e) {
|
|
2279
2279
|
const n = Ge(e, "modelValue");
|
|
2280
|
-
return (t, s) => (a(), p("div",
|
|
2281
|
-
|
|
2280
|
+
return (t, s) => (a(), p("div", Jl, [
|
|
2281
|
+
V(l(Kt), {
|
|
2282
2282
|
modelValue: n.value,
|
|
2283
2283
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => n.value = o),
|
|
2284
|
-
class:
|
|
2284
|
+
class: g(["relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary", { "bg-primary": n.value, "bg-primary-muted": !n.value }])
|
|
2285
2285
|
}, {
|
|
2286
2286
|
default: P(() => [
|
|
2287
|
-
u("div",
|
|
2288
|
-
|
|
2289
|
-
|
|
2287
|
+
u("div", Yl, [
|
|
2288
|
+
V(l(Ne), { class: "h-5 w-5 drop-shadow-md" }),
|
|
2289
|
+
V(l(Me), { class: "h-5 w-5 drop-shadow-md" })
|
|
2290
2290
|
]),
|
|
2291
2291
|
u("span", {
|
|
2292
|
-
class:
|
|
2292
|
+
class: g(["scale-95 pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200", { "translate-x-5": n.value, "translate-x-0": !n.value }])
|
|
2293
2293
|
}, null, 2)
|
|
2294
2294
|
]),
|
|
2295
2295
|
_: 1
|
|
@@ -2298,26 +2298,26 @@ const Ee = /* @__PURE__ */ tt(Bl, [["__scopeId", "data-v-60cf597b"]]), Vl = { cl
|
|
|
2298
2298
|
}
|
|
2299
2299
|
});
|
|
2300
2300
|
var me = /* @__PURE__ */ ((e) => (e.CtrlOrCmd = "cmd-or-ctrl", e.AltOrOpt = "alt-or-opt", e.Shift = "shift", e))(me || {});
|
|
2301
|
-
const
|
|
2301
|
+
const _e = At(), Zl = {
|
|
2302
2302
|
[
|
|
2303
2303
|
"cmd-or-ctrl"
|
|
2304
2304
|
/* CtrlOrCmd */
|
|
2305
|
-
]:
|
|
2305
|
+
]: _e === Ve.Mac ? "Cmd" : "Ctrl",
|
|
2306
2306
|
[
|
|
2307
2307
|
"alt-or-opt"
|
|
2308
2308
|
/* AltOrOpt */
|
|
2309
|
-
]:
|
|
2309
|
+
]: _e === Ve.Mac ? "Opt" : "Alt",
|
|
2310
2310
|
shift: "Shift"
|
|
2311
2311
|
};
|
|
2312
|
-
function
|
|
2312
|
+
function ia(e) {
|
|
2313
2313
|
const n = (t) => Object.values(me).includes(t);
|
|
2314
|
-
return e.map((t) => n(t) ?
|
|
2314
|
+
return e.map((t) => n(t) ? Zl[t] : t).join("+");
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2317
|
-
|
|
2316
|
+
function ua(e, ...n) {
|
|
2317
|
+
Rt(
|
|
2318
2318
|
n[0],
|
|
2319
2319
|
(t) => {
|
|
2320
|
-
const s = t.getModifierState("Alt"), o =
|
|
2320
|
+
const s = t.getModifierState("Alt"), o = _e === Ve.Mac ? t.getModifierState("Meta") : t.getModifierState("Control"), r = t.getModifierState("Shift");
|
|
2321
2321
|
for (const i of e)
|
|
2322
2322
|
switch (i) {
|
|
2323
2323
|
case me.CtrlOrCmd:
|
|
@@ -2338,20 +2338,20 @@ function ia(e, ...n) {
|
|
|
2338
2338
|
n[2]
|
|
2339
2339
|
);
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2342
|
-
const n = (e == null ? void 0 : e.model) || T(), t =
|
|
2341
|
+
function ca(e) {
|
|
2342
|
+
const n = (e == null ? void 0 : e.model) || T(), t = d({
|
|
2343
2343
|
get: () => !!n.value,
|
|
2344
2344
|
set: (s) => n.value = s ? !0 : void 0
|
|
2345
2345
|
});
|
|
2346
2346
|
return { model: n, isChecked: t };
|
|
2347
2347
|
}
|
|
2348
|
-
const
|
|
2348
|
+
const en = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity" }, null, -1), tn = { class: "fixed inset-0 z-10 overflow-y-auto" }, sn = { class: "flex min-h-full justify-center p-4 text-center items-center sm:p-0" }, ln = {
|
|
2349
2349
|
key: 0,
|
|
2350
2350
|
class: "flex items-center justify-center shadow p-4 relative z-10 bg-foundation rounded-t-lg"
|
|
2351
|
-
},
|
|
2351
|
+
}, nn = { class: "text-2xl font-bold" }, an = { class: "p-4 sm:p-6" }, on = {
|
|
2352
2352
|
key: 2,
|
|
2353
2353
|
class: "flex p-4 sm:px-6 sm:py-5 border-t gap-2 border-outline-3"
|
|
2354
|
-
},
|
|
2354
|
+
}, da = /* @__PURE__ */ R({
|
|
2355
2355
|
__name: "Dialog",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
open: { type: Boolean },
|
|
@@ -2364,10 +2364,10 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2364
2364
|
},
|
|
2365
2365
|
emits: ["update:open", "fully-closed"],
|
|
2366
2366
|
setup(e, { emit: n }) {
|
|
2367
|
-
const t = e, s =
|
|
2367
|
+
const t = e, s = Oe(), o = d(() => !!t.onSubmit), r = d(() => t.buttons || s.buttons), i = d({
|
|
2368
2368
|
get: () => t.open,
|
|
2369
|
-
set: (
|
|
2370
|
-
}), c =
|
|
2369
|
+
set: (y) => n("update:open", y)
|
|
2370
|
+
}), c = d(() => {
|
|
2371
2371
|
switch (t.maxWidth) {
|
|
2372
2372
|
case "sm":
|
|
2373
2373
|
return 0;
|
|
@@ -2380,24 +2380,24 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2380
2380
|
default:
|
|
2381
2381
|
return 1e4;
|
|
2382
2382
|
}
|
|
2383
|
-
}), h =
|
|
2384
|
-
const
|
|
2385
|
-
return !t.title && !r.value &&
|
|
2386
|
-
}),
|
|
2383
|
+
}), h = d(() => {
|
|
2384
|
+
const y = ["w-full", "sm:my-8 sm:w-full sm:max-w-xl"];
|
|
2385
|
+
return !t.title && !r.value && y.push("px-4 pt-4 pb-4", "sm:p-6"), c.value >= 1 && y.push("md:max-w-2xl"), c.value >= 2 && y.push("lg:max-w-4xl"), c.value >= 3 && y.push("xl:max-w-6xl"), c.value >= 4 && y.push("2xl:max-w-7xl"), y.join(" ");
|
|
2386
|
+
}), f = () => {
|
|
2387
2387
|
t.preventCloseOnClickOutside || (i.value = !1);
|
|
2388
2388
|
};
|
|
2389
|
-
return (
|
|
2389
|
+
return (y, k) => (a(), O(l(Ze), {
|
|
2390
2390
|
as: "template",
|
|
2391
2391
|
show: i.value
|
|
2392
2392
|
}, {
|
|
2393
2393
|
default: P(() => [
|
|
2394
|
-
|
|
2394
|
+
V(l(Ht), {
|
|
2395
2395
|
as: "div",
|
|
2396
2396
|
class: "relative z-40",
|
|
2397
|
-
onClose:
|
|
2397
|
+
onClose: f
|
|
2398
2398
|
}, {
|
|
2399
2399
|
default: P(() => [
|
|
2400
|
-
|
|
2400
|
+
V(l(Ke), {
|
|
2401
2401
|
as: "template",
|
|
2402
2402
|
enter: "ease-out duration-300",
|
|
2403
2403
|
"enter-from": "opacity-0",
|
|
@@ -2407,13 +2407,13 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2407
2407
|
"leave-to": "opacity-0"
|
|
2408
2408
|
}, {
|
|
2409
2409
|
default: P(() => [
|
|
2410
|
-
|
|
2410
|
+
en
|
|
2411
2411
|
]),
|
|
2412
2412
|
_: 1
|
|
2413
2413
|
}),
|
|
2414
|
-
u("div",
|
|
2415
|
-
u("div",
|
|
2416
|
-
|
|
2414
|
+
u("div", tn, [
|
|
2415
|
+
u("div", sn, [
|
|
2416
|
+
V(l(Ke), {
|
|
2417
2417
|
as: "template",
|
|
2418
2418
|
enter: "ease-out duration-300",
|
|
2419
2419
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -2421,43 +2421,43 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2421
2421
|
leave: "ease-in duration-200",
|
|
2422
2422
|
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
2423
2423
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2424
|
-
onAfterLeave:
|
|
2424
|
+
onAfterLeave: k[1] || (k[1] = (v) => y.$emit("fully-closed"))
|
|
2425
2425
|
}, {
|
|
2426
2426
|
default: P(() => [
|
|
2427
|
-
|
|
2428
|
-
class:
|
|
2427
|
+
V(l(Gt), {
|
|
2428
|
+
class: g([
|
|
2429
2429
|
"transform rounded-lg bg-foundation text-left shadow-xl transition-all",
|
|
2430
2430
|
h.value
|
|
2431
2431
|
]),
|
|
2432
2432
|
as: o.value ? "form" : "div",
|
|
2433
|
-
onSubmit:
|
|
2433
|
+
onSubmit: ce(e.onSubmit, ["prevent"])
|
|
2434
2434
|
}, {
|
|
2435
2435
|
default: P(() => [
|
|
2436
|
-
e.title ? (a(), p("div",
|
|
2437
|
-
u("h4",
|
|
2438
|
-
])) :
|
|
2439
|
-
e.hideCloser ?
|
|
2436
|
+
e.title ? (a(), p("div", ln, [
|
|
2437
|
+
u("h4", nn, _(e.title), 1)
|
|
2438
|
+
])) : B("", !0),
|
|
2439
|
+
e.hideCloser ? B("", !0) : (a(), p("button", {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
class: "absolute z-20 top-5 right-4 text-foreground",
|
|
2442
|
-
onClick:
|
|
2442
|
+
onClick: k[0] || (k[0] = (v) => i.value = !1)
|
|
2443
2443
|
}, [
|
|
2444
|
-
|
|
2444
|
+
V(l(It), { class: "h-6 w-6" })
|
|
2445
2445
|
])),
|
|
2446
|
-
u("div",
|
|
2447
|
-
|
|
2446
|
+
u("div", an, [
|
|
2447
|
+
F(y.$slots, "default", {}, () => [
|
|
2448
2448
|
z("Put your content here!")
|
|
2449
2449
|
])
|
|
2450
2450
|
]),
|
|
2451
|
-
r.value ? (a(), p("div",
|
|
2452
|
-
e.buttons ? (a(!0), p(
|
|
2451
|
+
r.value ? (a(), p("div", on, [
|
|
2452
|
+
e.buttons ? (a(!0), p(W, { key: 0 }, H(e.buttons, (v, $) => (a(), O(l(de), ge({ key: $ }, v.props, {
|
|
2453
2453
|
onClick: v.onClick
|
|
2454
2454
|
}), {
|
|
2455
2455
|
default: P(() => [
|
|
2456
|
-
z(
|
|
2456
|
+
z(_(v.text), 1)
|
|
2457
2457
|
]),
|
|
2458
2458
|
_: 2
|
|
2459
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
2460
|
-
])) :
|
|
2459
|
+
}, 1040, ["onClick"]))), 128)) : F(y.$slots, "buttons", { key: 1 })
|
|
2460
|
+
])) : B("", !0)
|
|
2461
2461
|
]),
|
|
2462
2462
|
_: 3
|
|
2463
2463
|
}, 8, ["class", "as", "onSubmit"])
|
|
@@ -2473,7 +2473,7 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2473
2473
|
_: 3
|
|
2474
2474
|
}, 8, ["show"]));
|
|
2475
2475
|
}
|
|
2476
|
-
}),
|
|
2476
|
+
}), rn = { class: "inline-flex items-center space-x-2" }, un = { class: "label-light" }, fa = /* @__PURE__ */ R({
|
|
2477
2477
|
__name: "Disclosure",
|
|
2478
2478
|
props: {
|
|
2479
2479
|
title: null,
|
|
@@ -2481,7 +2481,7 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2481
2481
|
color: { default: "default" }
|
|
2482
2482
|
},
|
|
2483
2483
|
setup(e) {
|
|
2484
|
-
const n = e, t =
|
|
2484
|
+
const n = e, t = d(() => {
|
|
2485
2485
|
const o = [
|
|
2486
2486
|
"pr-3 h-10 w-full flex items-center justify-between border-l-2 px-2 rounded transition",
|
|
2487
2487
|
"ring-1 font-medium"
|
|
@@ -2508,7 +2508,7 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2508
2508
|
break;
|
|
2509
2509
|
}
|
|
2510
2510
|
return o.join(" ");
|
|
2511
|
-
}), s =
|
|
2511
|
+
}), s = d(() => {
|
|
2512
2512
|
const o = ["mt-4 px-3 py-1 border-x "];
|
|
2513
2513
|
switch (n.color) {
|
|
2514
2514
|
case "warning":
|
|
@@ -2528,31 +2528,31 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2528
2528
|
return o.join(" ");
|
|
2529
2529
|
});
|
|
2530
2530
|
return (o, r) => (a(), p("div", null, [
|
|
2531
|
-
|
|
2531
|
+
V(l(Xt), null, {
|
|
2532
2532
|
default: P(({ open: i }) => [
|
|
2533
|
-
|
|
2534
|
-
class:
|
|
2533
|
+
V(l(Qt), {
|
|
2534
|
+
class: g(t.value)
|
|
2535
2535
|
}, {
|
|
2536
2536
|
default: P(() => [
|
|
2537
|
-
u("div",
|
|
2538
|
-
e.icon ? (a(),
|
|
2537
|
+
u("div", rn, [
|
|
2538
|
+
e.icon ? (a(), O(N(e.icon), {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
class: "h-4 w-4"
|
|
2541
|
-
})) :
|
|
2542
|
-
u("span", null,
|
|
2541
|
+
})) : B("", !0),
|
|
2542
|
+
u("span", null, _(e.title), 1)
|
|
2543
2543
|
]),
|
|
2544
|
-
|
|
2545
|
-
class:
|
|
2544
|
+
V(l(Qe), {
|
|
2545
|
+
class: g([i ? "" : "rotate-180 transform", "h-5 w-5"])
|
|
2546
2546
|
}, null, 8, ["class"])
|
|
2547
2547
|
]),
|
|
2548
2548
|
_: 2
|
|
2549
2549
|
}, 1032, ["class"]),
|
|
2550
|
-
|
|
2551
|
-
class:
|
|
2550
|
+
V(l(Nt), {
|
|
2551
|
+
class: g(s.value)
|
|
2552
2552
|
}, {
|
|
2553
2553
|
default: P(() => [
|
|
2554
|
-
u("div",
|
|
2555
|
-
|
|
2554
|
+
u("div", un, [
|
|
2555
|
+
F(o.$slots, "default", {}, () => [
|
|
2556
2556
|
z("Panel contents")
|
|
2557
2557
|
])
|
|
2558
2558
|
])
|
|
@@ -2565,80 +2565,80 @@ const Zl = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
|
|
|
2565
2565
|
]));
|
|
2566
2566
|
}
|
|
2567
2567
|
});
|
|
2568
|
-
var
|
|
2569
|
-
const
|
|
2568
|
+
var oe = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(oe || {});
|
|
2569
|
+
const pa = /* @__PURE__ */ R({
|
|
2570
2570
|
__name: "GridListToggle",
|
|
2571
2571
|
props: {
|
|
2572
2572
|
modelValue: null
|
|
2573
2573
|
},
|
|
2574
2574
|
emits: ["click", "update:modelValue"],
|
|
2575
2575
|
setup(e, { emit: n }) {
|
|
2576
|
-
const t = e, s =
|
|
2577
|
-
get: () => t.modelValue ||
|
|
2576
|
+
const t = e, s = d({
|
|
2577
|
+
get: () => t.modelValue || oe.Grid,
|
|
2578
2578
|
set: (i) => n("update:modelValue", i)
|
|
2579
|
-
}), o =
|
|
2580
|
-
() => s.value ===
|
|
2579
|
+
}), o = d(
|
|
2580
|
+
() => s.value === oe.Grid ? yt : xt
|
|
2581
2581
|
), r = (i) => {
|
|
2582
2582
|
n("click", i);
|
|
2583
|
-
const c = s.value ===
|
|
2583
|
+
const c = s.value === oe.Grid ? oe.List : oe.Grid;
|
|
2584
2584
|
s.value = c;
|
|
2585
2585
|
};
|
|
2586
2586
|
return (i, c) => (a(), p("button", {
|
|
2587
2587
|
class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
|
|
2588
2588
|
onClick: r
|
|
2589
2589
|
}, [
|
|
2590
|
-
(a(),
|
|
2590
|
+
(a(), O(N(o.value), { class: "h-6 w-6" }))
|
|
2591
2591
|
]));
|
|
2592
2592
|
}
|
|
2593
2593
|
});
|
|
2594
|
-
var
|
|
2595
|
-
function
|
|
2596
|
-
if (!
|
|
2594
|
+
var cn = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(cn || {}), Pe = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Pe || {});
|
|
2595
|
+
function dn(e, n) {
|
|
2596
|
+
if (!ze)
|
|
2597
2597
|
return;
|
|
2598
2598
|
const {
|
|
2599
2599
|
wait: t = 100,
|
|
2600
2600
|
throttleOrDebounce: s = 0
|
|
2601
2601
|
/* Throttle */
|
|
2602
|
-
} = n || {}, o = t ? s === 0 ?
|
|
2603
|
-
|
|
2602
|
+
} = n || {}, o = t ? s === 0 ? ft(e, t) : Ae(e, t) : e;
|
|
2603
|
+
se(() => window.addEventListener("resize", o)), Xe(() => window.removeEventListener("resize", o));
|
|
2604
2604
|
}
|
|
2605
|
-
function
|
|
2606
|
-
|
|
2605
|
+
function ha(e) {
|
|
2606
|
+
se(() => {
|
|
2607
2607
|
window.addEventListener("beforeunload", e);
|
|
2608
2608
|
}), Xe(() => {
|
|
2609
2609
|
window.removeEventListener("beforeunload", e);
|
|
2610
2610
|
});
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function fn(e) {
|
|
2613
2613
|
const { el: n, defaultDirection: t } = e, s = T(
|
|
2614
|
-
|
|
2614
|
+
re(t) ? 1 : t
|
|
2615
2615
|
/* Right */
|
|
2616
|
-
), o =
|
|
2616
|
+
), o = d(() => {
|
|
2617
2617
|
const i = l(e.stopUpdatesBelowWidth);
|
|
2618
|
-
if (!
|
|
2618
|
+
if (!re(i))
|
|
2619
2619
|
return i;
|
|
2620
2620
|
const c = l(n);
|
|
2621
2621
|
return c != null && c.offsetWidth ? c.offsetWidth * 2 : void 0;
|
|
2622
2622
|
}), r = () => {
|
|
2623
|
-
if (!
|
|
2623
|
+
if (!ze)
|
|
2624
2624
|
return;
|
|
2625
2625
|
const i = l(n);
|
|
2626
2626
|
if (!i)
|
|
2627
2627
|
return;
|
|
2628
|
-
const c = i.getBoundingClientRect(), h = c.x + c.width > window.innerWidth,
|
|
2629
|
-
h &&
|
|
2628
|
+
const c = i.getBoundingClientRect(), h = c.x + c.width > window.innerWidth, f = c.x < 0;
|
|
2629
|
+
h && f || !re(o.value) && window.innerWidth < o.value || (h ? s.value = 0 : f && (s.value = 1));
|
|
2630
2630
|
};
|
|
2631
|
-
return
|
|
2631
|
+
return dn(() => r()), Z(
|
|
2632
2632
|
() => l(n),
|
|
2633
2633
|
(i) => {
|
|
2634
2634
|
i && r();
|
|
2635
2635
|
}
|
|
2636
2636
|
), {
|
|
2637
|
-
direction:
|
|
2637
|
+
direction: d(() => s.value),
|
|
2638
2638
|
recalculateDirection: r
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
|
-
const
|
|
2641
|
+
const pn = ["disabled", "onClick"], ma = /* @__PURE__ */ R({
|
|
2642
2642
|
__name: "Menu",
|
|
2643
2643
|
props: {
|
|
2644
2644
|
open: { type: Boolean },
|
|
@@ -2646,55 +2646,55 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2646
2646
|
},
|
|
2647
2647
|
emits: ["update:open", "chosen"],
|
|
2648
2648
|
setup(e, { emit: n }) {
|
|
2649
|
-
const t = e, s = T(null), { direction: o } =
|
|
2650
|
-
el:
|
|
2649
|
+
const t = e, s = T(null), { direction: o } = fn({
|
|
2650
|
+
el: d(() => {
|
|
2651
2651
|
var v;
|
|
2652
2652
|
return ((v = s.value) == null ? void 0 : v.el) || null;
|
|
2653
2653
|
}),
|
|
2654
2654
|
defaultDirection: Pe.Left,
|
|
2655
2655
|
stopUpdatesBelowWidth: 300
|
|
2656
|
-
}), r = T(null), i = T(!1), c =
|
|
2656
|
+
}), r = T(null), i = T(!1), c = d({
|
|
2657
2657
|
get: () => t.open || !1,
|
|
2658
2658
|
set: (v) => n("update:open", v)
|
|
2659
2659
|
}), h = (v) => {
|
|
2660
2660
|
const { active: $, disabled: m } = v, M = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
|
|
2661
2661
|
return $ ? M.push("bg-primary text-foreground-on-primary") : m ? M.push("text-foreground-disabled") : M.push("text-foreground"), M.join(" ");
|
|
2662
|
-
},
|
|
2662
|
+
}, f = (v, $) => {
|
|
2663
2663
|
n("chosen", { item: v, event: $ });
|
|
2664
|
-
},
|
|
2664
|
+
}, y = () => {
|
|
2665
2665
|
var v;
|
|
2666
2666
|
return (v = r.value) == null ? void 0 : v.el.click();
|
|
2667
|
-
},
|
|
2667
|
+
}, k = (v) => {
|
|
2668
2668
|
const $ = !!v;
|
|
2669
2669
|
return i.value = $, $;
|
|
2670
2670
|
};
|
|
2671
|
-
return
|
|
2671
|
+
return Z(i, (v, $) => {
|
|
2672
2672
|
v !== $ && (c.value = v);
|
|
2673
|
-
}),
|
|
2674
|
-
(v && !i.value || !v && i.value) &&
|
|
2675
|
-
}), (v, $) => (a(),
|
|
2673
|
+
}), Z(c, (v) => {
|
|
2674
|
+
(v && !i.value || !v && i.value) && y();
|
|
2675
|
+
}), (v, $) => (a(), O(l(Jt), {
|
|
2676
2676
|
as: "div",
|
|
2677
2677
|
class: "relative inline-block"
|
|
2678
2678
|
}, {
|
|
2679
2679
|
default: P(({ open: m }) => [
|
|
2680
2680
|
u("div", null, [
|
|
2681
|
-
|
|
2681
|
+
V(l(Yt), {
|
|
2682
2682
|
ref_key: "menuButton",
|
|
2683
2683
|
ref: r,
|
|
2684
2684
|
class: "hidden",
|
|
2685
|
-
onClick: $[0] || ($[0] =
|
|
2685
|
+
onClick: $[0] || ($[0] = ce(() => {
|
|
2686
2686
|
}, ["stop", "prevent"]))
|
|
2687
2687
|
}, null, 512),
|
|
2688
2688
|
u("div", {
|
|
2689
|
-
class:
|
|
2689
|
+
class: g(m ? "pointer-events-none" : "")
|
|
2690
2690
|
}, [
|
|
2691
|
-
|
|
2692
|
-
toggle:
|
|
2693
|
-
open:
|
|
2691
|
+
F(v.$slots, "default", {
|
|
2692
|
+
toggle: y,
|
|
2693
|
+
open: k(m)
|
|
2694
2694
|
})
|
|
2695
2695
|
], 2)
|
|
2696
2696
|
]),
|
|
2697
|
-
|
|
2697
|
+
V(Le, {
|
|
2698
2698
|
"enter-active-class": "transition duration-100 ease-out",
|
|
2699
2699
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
2700
2700
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -2703,34 +2703,34 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2703
2703
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
2704
2704
|
}, {
|
|
2705
2705
|
default: P(() => [
|
|
2706
|
-
|
|
2706
|
+
V(l(Zt), {
|
|
2707
2707
|
ref_key: "menuItems",
|
|
2708
2708
|
ref: s,
|
|
2709
|
-
class:
|
|
2709
|
+
class: g([
|
|
2710
2710
|
"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",
|
|
2711
2711
|
l(o) === l(Pe).Left ? "right-0" : ""
|
|
2712
2712
|
])
|
|
2713
2713
|
}, {
|
|
2714
2714
|
default: P(() => [
|
|
2715
|
-
(a(!0), p(
|
|
2716
|
-
key:
|
|
2715
|
+
(a(!0), p(W, null, H(e.items, (M, x) => (a(), p("div", {
|
|
2716
|
+
key: x,
|
|
2717
2717
|
class: "px-1 py-1"
|
|
2718
2718
|
}, [
|
|
2719
|
-
(a(!0), p(
|
|
2719
|
+
(a(!0), p(W, null, H(M, (C) => (a(), O(l(es), {
|
|
2720
2720
|
key: C.id,
|
|
2721
2721
|
disabled: C.disabled
|
|
2722
2722
|
}, {
|
|
2723
|
-
default: P(({ active:
|
|
2724
|
-
|
|
2723
|
+
default: P(({ active: L, disabled: A }) => [
|
|
2724
|
+
ie((a(), p("span", null, [
|
|
2725
2725
|
u("button", {
|
|
2726
|
-
class:
|
|
2727
|
-
disabled:
|
|
2728
|
-
onClick: (
|
|
2726
|
+
class: g(h({ active: L, disabled: A })),
|
|
2727
|
+
disabled: A,
|
|
2728
|
+
onClick: (b) => f(C, b)
|
|
2729
2729
|
}, [
|
|
2730
|
-
|
|
2731
|
-
z(
|
|
2730
|
+
F(v.$slots, "item", { item: C }, () => [
|
|
2731
|
+
z(_(C.title), 1)
|
|
2732
2732
|
])
|
|
2733
|
-
], 10,
|
|
2733
|
+
], 10, pn)
|
|
2734
2734
|
])), [
|
|
2735
2735
|
[l(et), C.disabled && C.disabledTooltip]
|
|
2736
2736
|
])
|
|
@@ -2748,33 +2748,33 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2748
2748
|
_: 3
|
|
2749
2749
|
}));
|
|
2750
2750
|
}
|
|
2751
|
-
}),
|
|
2751
|
+
}), hn = { class: "flex flex-col space-y-4" }, mn = { class: "flex space-x-6" }, va = /* @__PURE__ */ R({
|
|
2752
2752
|
__name: "Tabs",
|
|
2753
2753
|
props: {
|
|
2754
2754
|
items: null
|
|
2755
2755
|
},
|
|
2756
2756
|
setup(e) {
|
|
2757
|
-
const n = e, t = T(null), s =
|
|
2757
|
+
const n = e, t = T(null), s = d(() => t.value && n.items.find((r) => r.id === t.value) || n.items[0]), o = (r) => {
|
|
2758
2758
|
t.value = r.id;
|
|
2759
2759
|
};
|
|
2760
|
-
return (r, i) => (a(), p("div",
|
|
2761
|
-
u("div",
|
|
2762
|
-
(a(!0), p(
|
|
2760
|
+
return (r, i) => (a(), p("div", hn, [
|
|
2761
|
+
u("div", mn, [
|
|
2762
|
+
(a(!0), p(W, null, H(e.items, (c) => (a(), O(de, {
|
|
2763
2763
|
key: c.id,
|
|
2764
2764
|
link: "",
|
|
2765
2765
|
color: s.value.id === c.id ? "default" : "secondary",
|
|
2766
2766
|
onClick: (h) => o(c)
|
|
2767
2767
|
}, {
|
|
2768
2768
|
default: P(() => [
|
|
2769
|
-
z(
|
|
2769
|
+
z(_(c.title), 1)
|
|
2770
2770
|
]),
|
|
2771
2771
|
_: 2
|
|
2772
2772
|
}, 1032, ["color", "onClick"]))), 128))
|
|
2773
2773
|
]),
|
|
2774
|
-
|
|
2774
|
+
F(r.$slots, "default", { activeItem: s.value })
|
|
2775
2775
|
]));
|
|
2776
2776
|
}
|
|
2777
|
-
}),
|
|
2777
|
+
}), vn = { class: "text-foreground" }, gn = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar" }, bn = ["onClick", "onKeypress"], yn = /* @__PURE__ */ u("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), xn = { class: "absolute right-1.5 gap-1 flex items-center p-0" }, ga = /* @__PURE__ */ R({
|
|
2778
2778
|
__name: "Table",
|
|
2779
2779
|
props: {
|
|
2780
2780
|
items: null,
|
|
@@ -2784,7 +2784,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2784
2784
|
onRowClick: { type: Function }
|
|
2785
2785
|
},
|
|
2786
2786
|
setup(e) {
|
|
2787
|
-
const n = e, t =
|
|
2787
|
+
const n = e, t = d(() => {
|
|
2788
2788
|
const i = (n.buttons || []).length;
|
|
2789
2789
|
let c = 16;
|
|
2790
2790
|
return i > 0 && (c = 48 + (i - 1) * 42), `${c}px`;
|
|
@@ -2798,58 +2798,58 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2798
2798
|
var c;
|
|
2799
2799
|
(c = n.onRowClick) == null || c.call(n, i);
|
|
2800
2800
|
};
|
|
2801
|
-
return (i, c) => (a(), p("div",
|
|
2801
|
+
return (i, c) => (a(), p("div", vn, [
|
|
2802
2802
|
u("div", gn, [
|
|
2803
2803
|
e.items.length > 0 ? (a(), p("div", {
|
|
2804
2804
|
key: 0,
|
|
2805
2805
|
class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[900px]",
|
|
2806
|
-
style:
|
|
2806
|
+
style: ve({ paddingRight: t.value })
|
|
2807
2807
|
}, [
|
|
2808
|
-
(a(!0), p(
|
|
2808
|
+
(a(!0), p(W, null, H(e.columns, (h) => (a(), p("div", {
|
|
2809
2809
|
key: h.id,
|
|
2810
|
-
class:
|
|
2811
|
-
},
|
|
2812
|
-
], 4)) :
|
|
2810
|
+
class: g([s(h.id), "capitalize"])
|
|
2811
|
+
}, _(h.header), 3))), 128))
|
|
2812
|
+
], 4)) : B("", !0),
|
|
2813
2813
|
u("div", {
|
|
2814
|
-
class:
|
|
2814
|
+
class: g(["divide-y divide-outline-3 h-full overflow-visible", { "pb-32": e.overflowCells }])
|
|
2815
2815
|
}, [
|
|
2816
|
-
(a(!0), p(
|
|
2816
|
+
(a(!0), p(W, null, H(e.items, (h) => (a(), p("div", {
|
|
2817
2817
|
key: h.id,
|
|
2818
|
-
class:
|
|
2819
|
-
style:
|
|
2818
|
+
class: g(["relative grid grid-cols-12 items-center gap-6 px-4 py-1 min-w-[900px] bg-foundation", { "cursor-pointer hover:bg-primary-muted": !!e.onRowClick }]),
|
|
2819
|
+
style: ve({ paddingRight: t.value }),
|
|
2820
2820
|
tabindex: "0",
|
|
2821
|
-
onClick: (
|
|
2822
|
-
onKeypress: (
|
|
2821
|
+
onClick: (f) => r(h),
|
|
2822
|
+
onKeypress: (f) => r(h)
|
|
2823
2823
|
}, [
|
|
2824
|
-
(a(!0), p(
|
|
2825
|
-
key:
|
|
2826
|
-
class:
|
|
2824
|
+
(a(!0), p(W, null, H(e.columns, (f, y) => (a(), p("div", {
|
|
2825
|
+
key: f.id,
|
|
2826
|
+
class: g(o(f.id, y)),
|
|
2827
2827
|
tabindex: "0"
|
|
2828
2828
|
}, [
|
|
2829
|
-
|
|
2830
|
-
|
|
2829
|
+
F(i.$slots, f.id, { item: h }, () => [
|
|
2830
|
+
yn
|
|
2831
2831
|
])
|
|
2832
2832
|
], 2))), 128)),
|
|
2833
|
-
u("div",
|
|
2834
|
-
(a(!0), p(
|
|
2835
|
-
key:
|
|
2833
|
+
u("div", xn, [
|
|
2834
|
+
(a(!0), p(W, null, H(e.buttons, (f) => (a(), p("div", {
|
|
2835
|
+
key: f.label
|
|
2836
2836
|
}, [
|
|
2837
|
-
|
|
2838
|
-
"icon-left":
|
|
2837
|
+
V(l(de), {
|
|
2838
|
+
"icon-left": f.icon,
|
|
2839
2839
|
size: "sm",
|
|
2840
2840
|
color: "secondary",
|
|
2841
2841
|
"hide-text": "",
|
|
2842
|
-
class:
|
|
2843
|
-
onClick:
|
|
2842
|
+
class: g(f.class),
|
|
2843
|
+
onClick: ce((y) => f.action(h), ["stop"])
|
|
2844
2844
|
}, null, 8, ["icon-left", "class", "onClick"])
|
|
2845
2845
|
]))), 128))
|
|
2846
2846
|
])
|
|
2847
|
-
], 46,
|
|
2847
|
+
], 46, bn))), 128))
|
|
2848
2848
|
], 2)
|
|
2849
2849
|
])
|
|
2850
2850
|
]));
|
|
2851
2851
|
}
|
|
2852
|
-
}),
|
|
2852
|
+
}), kn = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, wn = { class: "inline-flex items-center space-x-1" }, Cn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "That's it, you've loaded everything!", -1), $n = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, In = { class: "inline-flex items-center space-x-1" }, Sn = /* @__PURE__ */ u("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), ba = /* @__PURE__ */ R({
|
|
2853
2853
|
__name: "InfiniteLoading",
|
|
2854
2854
|
props: {
|
|
2855
2855
|
settings: null,
|
|
@@ -2858,7 +2858,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2858
2858
|
emits: ["infinite"],
|
|
2859
2859
|
setup(e) {
|
|
2860
2860
|
const n = T(null), t = T(!1);
|
|
2861
|
-
return
|
|
2861
|
+
return ze && se(() => {
|
|
2862
2862
|
const s = setInterval(() => {
|
|
2863
2863
|
var o;
|
|
2864
2864
|
(o = n.value) != null && o.isConnected && (t.value = !0, clearInterval(s));
|
|
@@ -2867,30 +2867,30 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2867
2867
|
ref_key: "wrapper",
|
|
2868
2868
|
ref: n
|
|
2869
2869
|
}, [
|
|
2870
|
-
t.value ? (a(),
|
|
2870
|
+
t.value ? (a(), O(l(ns), ge({ key: 0 }, s.$props.settings || {}, {
|
|
2871
2871
|
onInfinite: o[0] || (o[0] = (r) => s.$emit("infinite", r))
|
|
2872
2872
|
}), {
|
|
2873
2873
|
spinner: P(() => [
|
|
2874
|
-
|
|
2874
|
+
V(Ue, {
|
|
2875
2875
|
loading: !0,
|
|
2876
2876
|
class: "my-2"
|
|
2877
2877
|
})
|
|
2878
2878
|
]),
|
|
2879
2879
|
complete: P(() => [
|
|
2880
|
-
u("div",
|
|
2881
|
-
u("div",
|
|
2882
|
-
|
|
2883
|
-
|
|
2880
|
+
u("div", kn, [
|
|
2881
|
+
u("div", wn, [
|
|
2882
|
+
V(l(St), { class: "w-5 h-5 text-success" }),
|
|
2883
|
+
Cn
|
|
2884
2884
|
])
|
|
2885
2885
|
])
|
|
2886
2886
|
]),
|
|
2887
2887
|
error: P(({ retry: r }) => [
|
|
2888
|
-
u("div",
|
|
2889
|
-
u("div",
|
|
2890
|
-
|
|
2891
|
-
|
|
2888
|
+
u("div", $n, [
|
|
2889
|
+
u("div", In, [
|
|
2890
|
+
V(l(Bt), { class: "w-5 h-5 text-danger" }),
|
|
2891
|
+
Sn
|
|
2892
2892
|
]),
|
|
2893
|
-
e.allowRetry ? (a(),
|
|
2893
|
+
e.allowRetry ? (a(), O(de, {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
onClick: r
|
|
2896
2896
|
}, {
|
|
@@ -2898,17 +2898,17 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2898
2898
|
z("Retry")
|
|
2899
2899
|
]),
|
|
2900
2900
|
_: 2
|
|
2901
|
-
}, 1032, ["onClick"])) :
|
|
2901
|
+
}, 1032, ["onClick"])) : B("", !0)
|
|
2902
2902
|
])
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
|
-
}, 16)) :
|
|
2905
|
+
}, 16)) : B("", !0)
|
|
2906
2906
|
], 512));
|
|
2907
2907
|
}
|
|
2908
|
-
}),
|
|
2908
|
+
}), Bn = { class: "relative group" }, Vn = {
|
|
2909
2909
|
key: 0,
|
|
2910
2910
|
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"
|
|
2911
|
-
},
|
|
2911
|
+
}, ya = /* @__PURE__ */ R({
|
|
2912
2912
|
__name: "Panel",
|
|
2913
2913
|
props: {
|
|
2914
2914
|
/**
|
|
@@ -2946,18 +2946,18 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2946
2946
|
},
|
|
2947
2947
|
emits: ["submit"],
|
|
2948
2948
|
setup(e, { emit: n }) {
|
|
2949
|
-
const t = e, s =
|
|
2949
|
+
const t = e, s = d(
|
|
2950
2950
|
() => t.customPadding ? "" : "px-4 py-4 sm:px-6"
|
|
2951
|
-
), o =
|
|
2951
|
+
), o = d(
|
|
2952
2952
|
() => t.customPadding ? "" : "px-4 py-4 sm:p-6"
|
|
2953
|
-
), r =
|
|
2953
|
+
), r = d(() => {
|
|
2954
2954
|
const i = ["rounded-lg"];
|
|
2955
2955
|
return t.noShadow || i.push("shadow"), t.ring && i.push("ring-outline-2 hover:ring-2"), t.panelClasses && i.push(t.panelClasses), i.join(" ");
|
|
2956
2956
|
});
|
|
2957
|
-
return (i, c) => (a(), p("div",
|
|
2958
|
-
e.fancyGlow ? (a(), p("div",
|
|
2959
|
-
(a(),
|
|
2960
|
-
class:
|
|
2957
|
+
return (i, c) => (a(), p("div", Bn, [
|
|
2958
|
+
e.fancyGlow ? (a(), p("div", Vn)) : B("", !0),
|
|
2959
|
+
(a(), O(N(e.form ? "form" : "div"), {
|
|
2960
|
+
class: g([
|
|
2961
2961
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
2962
2962
|
r.value
|
|
2963
2963
|
]),
|
|
@@ -2966,27 +2966,27 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2966
2966
|
default: P(() => [
|
|
2967
2967
|
i.$slots.header ? (a(), p("div", {
|
|
2968
2968
|
key: 0,
|
|
2969
|
-
class:
|
|
2969
|
+
class: g(s.value)
|
|
2970
2970
|
}, [
|
|
2971
|
-
|
|
2972
|
-
], 2)) :
|
|
2971
|
+
F(i.$slots, "header")
|
|
2972
|
+
], 2)) : B("", !0),
|
|
2973
2973
|
u("div", {
|
|
2974
|
-
class:
|
|
2974
|
+
class: g(["grow", o.value])
|
|
2975
2975
|
}, [
|
|
2976
|
-
|
|
2976
|
+
F(i.$slots, "default")
|
|
2977
2977
|
], 2),
|
|
2978
2978
|
i.$slots.footer ? (a(), p("div", {
|
|
2979
2979
|
key: 1,
|
|
2980
|
-
class:
|
|
2980
|
+
class: g(s.value)
|
|
2981
2981
|
}, [
|
|
2982
|
-
|
|
2983
|
-
], 2)) :
|
|
2982
|
+
F(i.$slots, "footer")
|
|
2983
|
+
], 2)) : B("", !0)
|
|
2984
2984
|
]),
|
|
2985
2985
|
_: 3
|
|
2986
2986
|
}, 40, ["class"]))
|
|
2987
2987
|
]));
|
|
2988
2988
|
}
|
|
2989
|
-
}),
|
|
2989
|
+
}), _n = { class: "flex-shrink-0" }, Pn = /* @__PURE__ */ u("span", { class: "sr-only" }, "Dismiss", -1), xa = /* @__PURE__ */ R({
|
|
2990
2990
|
__name: "Alert",
|
|
2991
2991
|
props: {
|
|
2992
2992
|
color: { default: "success" },
|
|
@@ -2997,21 +2997,21 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
2997
2997
|
},
|
|
2998
2998
|
emits: ["dismiss"],
|
|
2999
2999
|
setup(e) {
|
|
3000
|
-
const n = e, t =
|
|
3000
|
+
const n = e, t = Oe(), s = d(() => !!t.description), o = d(() => {
|
|
3001
3001
|
if (n.customIcon)
|
|
3002
3002
|
return n.customIcon;
|
|
3003
3003
|
switch (n.color) {
|
|
3004
3004
|
case "info":
|
|
3005
3005
|
return Lt;
|
|
3006
3006
|
case "warning":
|
|
3007
|
-
return
|
|
3007
|
+
return we;
|
|
3008
3008
|
case "danger":
|
|
3009
3009
|
return Pt;
|
|
3010
3010
|
case "success":
|
|
3011
3011
|
default:
|
|
3012
3012
|
return Ye;
|
|
3013
3013
|
}
|
|
3014
|
-
}), r =
|
|
3014
|
+
}), r = d(() => {
|
|
3015
3015
|
const m = [];
|
|
3016
3016
|
switch (n.size) {
|
|
3017
3017
|
case "xs":
|
|
@@ -3037,7 +3037,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3037
3037
|
break;
|
|
3038
3038
|
}
|
|
3039
3039
|
return m.join(" ");
|
|
3040
|
-
}), i =
|
|
3040
|
+
}), i = d(() => {
|
|
3041
3041
|
const m = [];
|
|
3042
3042
|
if (s.value)
|
|
3043
3043
|
m.push("");
|
|
@@ -3052,7 +3052,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3052
3052
|
break;
|
|
3053
3053
|
}
|
|
3054
3054
|
return m.join(" ");
|
|
3055
|
-
}), c =
|
|
3055
|
+
}), c = d(() => {
|
|
3056
3056
|
const m = ["grow"];
|
|
3057
3057
|
switch (s.value || m.push("flex items-center space-x-2"), n.size) {
|
|
3058
3058
|
case "xs":
|
|
@@ -3064,7 +3064,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3064
3064
|
break;
|
|
3065
3065
|
}
|
|
3066
3066
|
return m.join(" ");
|
|
3067
|
-
}), h =
|
|
3067
|
+
}), h = d(() => {
|
|
3068
3068
|
const m = [];
|
|
3069
3069
|
switch (n.size) {
|
|
3070
3070
|
case "xs":
|
|
@@ -3076,11 +3076,11 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3076
3076
|
break;
|
|
3077
3077
|
}
|
|
3078
3078
|
return m.join(" ");
|
|
3079
|
-
}),
|
|
3080
|
-
var
|
|
3079
|
+
}), f = d(() => {
|
|
3080
|
+
var x;
|
|
3081
3081
|
const m = ["flex"];
|
|
3082
3082
|
s.value || m.push("grow justify-end");
|
|
3083
|
-
const M = s.value && ((
|
|
3083
|
+
const M = s.value && ((x = n.actions) == null ? void 0 : x.length);
|
|
3084
3084
|
switch (n.size) {
|
|
3085
3085
|
case "xs":
|
|
3086
3086
|
m.push("space-x-1"), M && m.push("mt-1");
|
|
@@ -3091,7 +3091,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3091
3091
|
break;
|
|
3092
3092
|
}
|
|
3093
3093
|
return m.join(" ");
|
|
3094
|
-
}),
|
|
3094
|
+
}), y = d(() => {
|
|
3095
3095
|
const m = [];
|
|
3096
3096
|
switch (n.color) {
|
|
3097
3097
|
case "success":
|
|
@@ -3108,7 +3108,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3108
3108
|
break;
|
|
3109
3109
|
}
|
|
3110
3110
|
return m.join(" ");
|
|
3111
|
-
}),
|
|
3111
|
+
}), k = d(() => {
|
|
3112
3112
|
const m = [];
|
|
3113
3113
|
switch (n.size) {
|
|
3114
3114
|
case "xs":
|
|
@@ -3134,7 +3134,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3134
3134
|
break;
|
|
3135
3135
|
}
|
|
3136
3136
|
return m.join(" ");
|
|
3137
|
-
}), v =
|
|
3137
|
+
}), v = d(() => {
|
|
3138
3138
|
const m = [];
|
|
3139
3139
|
switch (n.color) {
|
|
3140
3140
|
case "success":
|
|
@@ -3151,7 +3151,7 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3151
3151
|
break;
|
|
3152
3152
|
}
|
|
3153
3153
|
return m.join(" ");
|
|
3154
|
-
}), $ =
|
|
3154
|
+
}), $ = d(() => {
|
|
3155
3155
|
switch (n.size) {
|
|
3156
3156
|
case "xs":
|
|
3157
3157
|
return "xs";
|
|
@@ -3161,48 +3161,48 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3161
3161
|
}
|
|
3162
3162
|
});
|
|
3163
3163
|
return (m, M) => (a(), p("div", {
|
|
3164
|
-
class:
|
|
3164
|
+
class: g(["rounded-md", [r.value, y.value]])
|
|
3165
3165
|
}, [
|
|
3166
3166
|
u("div", {
|
|
3167
|
-
class:
|
|
3167
|
+
class: g(["flex", i.value])
|
|
3168
3168
|
}, [
|
|
3169
|
-
u("div",
|
|
3170
|
-
(a(),
|
|
3171
|
-
class:
|
|
3169
|
+
u("div", _n, [
|
|
3170
|
+
(a(), O(N(o.value), {
|
|
3171
|
+
class: g(k.value),
|
|
3172
3172
|
"aria-hidden": "true"
|
|
3173
3173
|
}, null, 8, ["class"]))
|
|
3174
3174
|
]),
|
|
3175
3175
|
u("div", {
|
|
3176
|
-
class:
|
|
3176
|
+
class: g(c.value)
|
|
3177
3177
|
}, [
|
|
3178
3178
|
u("h3", {
|
|
3179
|
-
class:
|
|
3179
|
+
class: g(["text-sm", [s.value ? "font-medium" : ""]])
|
|
3180
3180
|
}, [
|
|
3181
|
-
|
|
3181
|
+
F(m.$slots, "title", {}, () => [
|
|
3182
3182
|
z("Title")
|
|
3183
3183
|
])
|
|
3184
3184
|
], 2),
|
|
3185
3185
|
s.value ? (a(), p("div", {
|
|
3186
3186
|
key: 0,
|
|
3187
|
-
class:
|
|
3187
|
+
class: g(h.value)
|
|
3188
3188
|
}, [
|
|
3189
|
-
|
|
3189
|
+
F(m.$slots, "description", {}, () => [
|
|
3190
3190
|
z(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam. ")
|
|
3191
3191
|
])
|
|
3192
|
-
], 2)) :
|
|
3192
|
+
], 2)) : B("", !0),
|
|
3193
3193
|
u("div", {
|
|
3194
|
-
class:
|
|
3194
|
+
class: g(f.value)
|
|
3195
3195
|
}, [
|
|
3196
|
-
(a(!0), p(
|
|
3196
|
+
(a(!0), p(W, null, H(e.actions || [], (x, C) => (a(), O(de, {
|
|
3197
3197
|
key: C,
|
|
3198
3198
|
color: e.color,
|
|
3199
3199
|
size: $.value,
|
|
3200
|
-
to:
|
|
3201
|
-
external:
|
|
3202
|
-
onClick: (
|
|
3200
|
+
to: x.url,
|
|
3201
|
+
external: x.externalUrl || !1,
|
|
3202
|
+
onClick: (L) => x.onClick || l(pt)
|
|
3203
3203
|
}, {
|
|
3204
3204
|
default: P(() => [
|
|
3205
|
-
z(
|
|
3205
|
+
z(_(x.title), 1)
|
|
3206
3206
|
]),
|
|
3207
3207
|
_: 2
|
|
3208
3208
|
}, 1032, ["color", "size", "to", "external", "onClick"]))), 128))
|
|
@@ -3210,40 +3210,40 @@ const fn = ["disabled", "onClick"], ha = /* @__PURE__ */ R({
|
|
|
3210
3210
|
], 2),
|
|
3211
3211
|
e.withDismiss ? (a(), p("div", {
|
|
3212
3212
|
key: 0,
|
|
3213
|
-
class:
|
|
3213
|
+
class: g(["flex", [s.value ? "items-start" : "items-center"]])
|
|
3214
3214
|
}, [
|
|
3215
3215
|
u("button", {
|
|
3216
3216
|
type: "button",
|
|
3217
|
-
class:
|
|
3218
|
-
onClick: M[0] || (M[0] = (
|
|
3217
|
+
class: g(["inline-flex rounded-md focus:outline-none focus:ring-2", v.value]),
|
|
3218
|
+
onClick: M[0] || (M[0] = (x) => m.$emit("dismiss"))
|
|
3219
3219
|
}, [
|
|
3220
3220
|
Pn,
|
|
3221
|
-
|
|
3221
|
+
V(l(ue), {
|
|
3222
3222
|
class: "h-5 w-5",
|
|
3223
3223
|
"aria-hidden": "true"
|
|
3224
3224
|
})
|
|
3225
3225
|
], 2)
|
|
3226
|
-
], 2)) :
|
|
3226
|
+
], 2)) : B("", !0)
|
|
3227
3227
|
], 2)
|
|
3228
3228
|
], 2));
|
|
3229
3229
|
}
|
|
3230
3230
|
});
|
|
3231
|
-
function
|
|
3231
|
+
function ka(e) {
|
|
3232
3232
|
var m, M;
|
|
3233
|
-
const { get: n, initialState: t, readOptions: s, set: o, asyncRead: r = !0, debugging: i } = e, c = i == null ? void 0 : i.log, h = () => (new Error("Trace:").stack || "").substring(7),
|
|
3234
|
-
const
|
|
3235
|
-
return
|
|
3236
|
-
} : n,
|
|
3237
|
-
return $.update =
|
|
3233
|
+
const { get: n, initialState: t, readOptions: s, set: o, asyncRead: r = !0, debugging: i } = e, c = i == null ? void 0 : i.log, h = () => (new Error("Trace:").stack || "").substring(7), f = ((M = (m = e.debugging) == null ? void 0 : m.log) == null ? void 0 : M.logger) || console.debug, y = c && !c.writesOnly ? () => {
|
|
3234
|
+
const x = n();
|
|
3235
|
+
return f(`debugging: '${c.name}' read`, x, h()), x;
|
|
3236
|
+
} : n, k = c && !c.readsOnly ? (x) => (f(`debugging: '${c.name}' written to`, x, h()), o(x)) : o, v = r ? zt(y, t, s) : d(y), $ = d(() => v.value);
|
|
3237
|
+
return $.update = k, $;
|
|
3238
3238
|
}
|
|
3239
3239
|
const Ln = /* @__PURE__ */ R({
|
|
3240
3240
|
__name: "ContextManager",
|
|
3241
3241
|
setup(e, { expose: n }) {
|
|
3242
|
-
const s =
|
|
3242
|
+
const s = ct().provides, o = Object.getOwnPropertySymbols(s).find(
|
|
3243
3243
|
(v) => v.description === "ComboboxContext"
|
|
3244
3244
|
);
|
|
3245
3245
|
o || console.error("FormTagsContextManager ctx key not found!");
|
|
3246
|
-
const r =
|
|
3246
|
+
const r = dt(o || "__undefined");
|
|
3247
3247
|
return r || console.error("FormTagsContextManager ctx not found!"), n({ goUp: () => {
|
|
3248
3248
|
r == null || r.goToOption(1);
|
|
3249
3249
|
}, goDown: () => {
|
|
@@ -3254,15 +3254,15 @@ const Ln = /* @__PURE__ */ R({
|
|
|
3254
3254
|
r == null || r.closeCombobox();
|
|
3255
3255
|
}, selectActive: () => {
|
|
3256
3256
|
r == null || r.selectActiveOption();
|
|
3257
|
-
}, isOpen: () => (r == null ? void 0 : r.comboboxState.value) === 0 }), (v, $) =>
|
|
3257
|
+
}, isOpen: () => (r == null ? void 0 : r.comboboxState.value) === 0 }), (v, $) => F(v.$slots, "default");
|
|
3258
3258
|
}
|
|
3259
|
-
}),
|
|
3259
|
+
}), jn = ["for"], On = ["disabled", "placeholder", "onKeydown"], An = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Mn = { key: 1 }, Tn = /* @__PURE__ */ u("div", { class: "text-foreground-2 text-center" }, [
|
|
3260
3260
|
/* @__PURE__ */ z(" Press "),
|
|
3261
3261
|
/* @__PURE__ */ u("strong", null, "Enter"),
|
|
3262
3262
|
/* @__PURE__ */ z(" to create tag ⚡ ")
|
|
3263
|
-
], -1),
|
|
3264
|
-
|
|
3265
|
-
],
|
|
3263
|
+
], -1), Rn = [
|
|
3264
|
+
Tn
|
|
3265
|
+
], zn = ["id"], wa = /* @__PURE__ */ R({
|
|
3266
3266
|
__name: "Tags",
|
|
3267
3267
|
props: qe({
|
|
3268
3268
|
name: null,
|
|
@@ -3287,29 +3287,30 @@ const Ln = /* @__PURE__ */ R({
|
|
|
3287
3287
|
}),
|
|
3288
3288
|
emits: qe(["change", "clear"], ["update:modelValue"]),
|
|
3289
3289
|
setup(e, { expose: n, emit: t }) {
|
|
3290
|
-
const s = e, o = (
|
|
3290
|
+
const s = e, o = (I) => I.type === "input", r = Ge(e, "modelValue", { local: !0 }), i = T(null), { focused: c } = Dt(i), h = T(
|
|
3291
3291
|
null
|
|
3292
3292
|
), {
|
|
3293
|
-
coreInputClasses:
|
|
3294
|
-
coreClasses:
|
|
3295
|
-
labelClasses:
|
|
3293
|
+
coreInputClasses: f,
|
|
3294
|
+
coreClasses: y,
|
|
3295
|
+
labelClasses: k,
|
|
3296
3296
|
title: v,
|
|
3297
3297
|
helpTip: $,
|
|
3298
3298
|
helpTipId: m,
|
|
3299
3299
|
hideHelpTip: M,
|
|
3300
|
-
helpTipClasses:
|
|
3300
|
+
helpTipClasses: x,
|
|
3301
3301
|
errorMessage: C,
|
|
3302
|
-
clear:
|
|
3303
|
-
|
|
3304
|
-
|
|
3302
|
+
clear: L,
|
|
3303
|
+
value: A
|
|
3304
|
+
} = Fe({
|
|
3305
|
+
props: te(s),
|
|
3305
3306
|
emit: t,
|
|
3306
3307
|
inputEl: i
|
|
3307
|
-
}),
|
|
3308
|
+
}), b = T([]), D = T(!1), U = T(!1), E = T(""), q = d({
|
|
3308
3309
|
get: () => r.value || [],
|
|
3309
|
-
set: (
|
|
3310
|
-
r.value =
|
|
3310
|
+
set: (I) => {
|
|
3311
|
+
r.value = ht(I).filter((S) => !!S.length);
|
|
3311
3312
|
}
|
|
3312
|
-
}),
|
|
3313
|
+
}), Y = d(() => {
|
|
3313
3314
|
switch (s.size) {
|
|
3314
3315
|
case "sm":
|
|
3315
3316
|
return "h-6";
|
|
@@ -3321,193 +3322,199 @@ const Ln = /* @__PURE__ */ R({
|
|
|
3321
3322
|
default:
|
|
3322
3323
|
return "h-8";
|
|
3323
3324
|
}
|
|
3324
|
-
}),
|
|
3325
|
-
const
|
|
3326
|
-
|
|
3325
|
+
}), Q = d(() => s.showClear && !!q.value.length), G = d(() => {
|
|
3326
|
+
const I = [
|
|
3327
|
+
y.value,
|
|
3327
3328
|
s.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
|
|
3328
3329
|
];
|
|
3329
|
-
return
|
|
3330
|
-
}),
|
|
3330
|
+
return Q.value && (C.value || s.showRequired) ? I.push("pr-14") : (Q.value || C.value || s.showRequired) && I.push("pr-8"), C.value ? (I.push("border-2 border-danger text-danger-darker"), c.value && I.push("ring-1 ring-danger")) : (I.push("border-2 border-transparent"), c.value && I.push("ring-2 ring-outline-2")), I.join(" ");
|
|
3331
|
+
}), be = (I) => {
|
|
3331
3332
|
if (s.disabled)
|
|
3332
3333
|
return;
|
|
3333
|
-
const
|
|
3334
|
-
if (
|
|
3335
|
-
const
|
|
3336
|
-
|
|
3334
|
+
const S = q.value.indexOf(I);
|
|
3335
|
+
if (S !== -1) {
|
|
3336
|
+
const j = q.value.slice();
|
|
3337
|
+
j.splice(S, 1), q.value = j;
|
|
3337
3338
|
}
|
|
3338
|
-
},
|
|
3339
|
-
var
|
|
3340
|
-
(
|
|
3341
|
-
},
|
|
3342
|
-
if (
|
|
3339
|
+
}, Ce = () => {
|
|
3340
|
+
var I;
|
|
3341
|
+
(I = i.value) == null || I.blur(), U.value = !1;
|
|
3342
|
+
}, $e = (I) => {
|
|
3343
|
+
if (I.key !== "Backspace" || E.value.length)
|
|
3343
3344
|
return;
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
},
|
|
3347
|
-
var
|
|
3348
|
-
(
|
|
3349
|
-
},
|
|
3350
|
-
var
|
|
3351
|
-
(
|
|
3352
|
-
},
|
|
3353
|
-
s.getAutocompleteItems && (
|
|
3345
|
+
const S = q.value.slice();
|
|
3346
|
+
S.pop(), q.value = S, U.value = !1;
|
|
3347
|
+
}, ye = () => {
|
|
3348
|
+
var I, S, j;
|
|
3349
|
+
(I = h.value) != null && I.isOpen() ? (S = h.value) == null || S.goUp() : (j = h.value) == null || j.open();
|
|
3350
|
+
}, fe = () => {
|
|
3351
|
+
var I, S, j;
|
|
3352
|
+
(I = h.value) != null && I.isOpen() ? (S = h.value) == null || S.goDown() : (j = h.value) == null || j.open();
|
|
3353
|
+
}, ee = async () => {
|
|
3354
|
+
s.getAutocompleteItems && (D.value = !0, b.value = await Promise.resolve(
|
|
3354
3355
|
s.getAutocompleteItems(E.value)
|
|
3355
|
-
),
|
|
3356
|
-
},
|
|
3357
|
-
|
|
3358
|
-
},
|
|
3359
|
-
var
|
|
3360
|
-
if (o(
|
|
3361
|
-
let
|
|
3362
|
-
if ((
|
|
3363
|
-
(
|
|
3356
|
+
), D.value = !1);
|
|
3357
|
+
}, Ie = Ae(ee, 1e3), Se = () => {
|
|
3358
|
+
D.value = !0, Ie();
|
|
3359
|
+
}, w = (I, S) => {
|
|
3360
|
+
var K, J;
|
|
3361
|
+
if (o(I) ? I.data === " " || I.data === "," || I.data === ";" : !0) {
|
|
3362
|
+
let le = !1;
|
|
3363
|
+
if ((K = h.value) != null && K.isOpen() && b.value.length && !S)
|
|
3364
|
+
(J = h.value) == null || J.selectActive(), le = !0;
|
|
3364
3365
|
else {
|
|
3365
|
-
const
|
|
3366
|
-
|
|
3366
|
+
const ne = E.value.trim().substring(0, E.value.length - (o(I) ? 1 : 0)), ot = q.value.includes(ne);
|
|
3367
|
+
ne.length > 0 && !ot && (q.value = [...q.value, ne], le = !0);
|
|
3367
3368
|
}
|
|
3368
|
-
|
|
3369
|
+
le && (E.value = "", U.value = !1);
|
|
3369
3370
|
} else
|
|
3370
|
-
|
|
3371
|
+
U.value = !!E.value.length;
|
|
3371
3372
|
};
|
|
3372
|
-
return
|
|
3373
|
-
var
|
|
3374
|
-
|
|
3375
|
-
}),
|
|
3376
|
-
|
|
3377
|
-
}),
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3373
|
+
return Z(U, (I, S) => {
|
|
3374
|
+
var j, K;
|
|
3375
|
+
I && !S ? s.getAutocompleteItems && ((j = h.value) == null || j.open()) : !I && S && ((K = h.value) == null || K.close());
|
|
3376
|
+
}), Z(E, () => {
|
|
3377
|
+
Se();
|
|
3378
|
+
}), Z(
|
|
3379
|
+
() => q.value,
|
|
3380
|
+
(I) => {
|
|
3381
|
+
A.value = I.slice();
|
|
3382
|
+
},
|
|
3383
|
+
{ deep: !0 }
|
|
3384
|
+
), se(() => {
|
|
3385
|
+
ee();
|
|
3386
|
+
}), n({ resolveAutocompleteItems: ee }), (I, S) => (a(), O(l(ts), {
|
|
3387
|
+
modelValue: q.value,
|
|
3388
|
+
"onUpdate:modelValue": S[5] || (S[5] = (j) => q.value = j),
|
|
3382
3389
|
as: "div",
|
|
3383
3390
|
multiple: "",
|
|
3384
3391
|
clearable: "",
|
|
3385
|
-
class:
|
|
3392
|
+
class: g([e.wrapperClasses])
|
|
3386
3393
|
}, {
|
|
3387
3394
|
default: P(() => [
|
|
3388
|
-
|
|
3395
|
+
V(Ln, {
|
|
3389
3396
|
ref_key: "ctxManager",
|
|
3390
3397
|
ref: h
|
|
3391
3398
|
}, {
|
|
3392
3399
|
default: P(() => [
|
|
3393
3400
|
u("label", {
|
|
3394
3401
|
for: e.name,
|
|
3395
|
-
class:
|
|
3402
|
+
class: g(l(k))
|
|
3396
3403
|
}, [
|
|
3397
|
-
u("span", null,
|
|
3398
|
-
], 10,
|
|
3404
|
+
u("span", null, _(l(v)), 1)
|
|
3405
|
+
], 10, jn),
|
|
3399
3406
|
u("div", {
|
|
3400
|
-
class:
|
|
3407
|
+
class: g(["relative flex flex-wrap items-center space-x-1 px-2 py-1", G.value])
|
|
3401
3408
|
}, [
|
|
3402
|
-
(a(!0), p(
|
|
3403
|
-
key:
|
|
3404
|
-
"icon-left": e.disabled ? void 0 : l(
|
|
3409
|
+
(a(!0), p(W, null, H(q.value, (j) => (a(), O(De, {
|
|
3410
|
+
key: j,
|
|
3411
|
+
"icon-left": e.disabled ? void 0 : l(ue),
|
|
3405
3412
|
"clickable-icon": "",
|
|
3406
3413
|
size: "lg",
|
|
3407
|
-
onClickIcon: () =>
|
|
3414
|
+
onClickIcon: () => be(j)
|
|
3408
3415
|
}, {
|
|
3409
3416
|
default: P(() => [
|
|
3410
|
-
z(
|
|
3417
|
+
z(_(j), 1)
|
|
3411
3418
|
]),
|
|
3412
3419
|
_: 2
|
|
3413
3420
|
}, 1032, ["icon-left", "onClickIcon"]))), 128)),
|
|
3414
|
-
|
|
3421
|
+
ie(u("input", {
|
|
3415
3422
|
ref_key: "inputEl",
|
|
3416
3423
|
ref: i,
|
|
3417
|
-
"onUpdate:modelValue":
|
|
3424
|
+
"onUpdate:modelValue": S[0] || (S[0] = (j) => E.value = j),
|
|
3418
3425
|
disabled: e.disabled,
|
|
3419
|
-
class:
|
|
3426
|
+
class: g(["bg-transparent grow shrink border-0 focus:ring-0 p-0", [l(f), Y.value]]),
|
|
3420
3427
|
style: { "flex-basis": "70px", "min-width": "70px" },
|
|
3421
|
-
placeholder:
|
|
3422
|
-
onInput:
|
|
3428
|
+
placeholder: q.value.length ? void 0 : e.placeholder,
|
|
3429
|
+
onInput: w,
|
|
3423
3430
|
onKeydown: [
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3431
|
+
ae(Ce, ["escape"]),
|
|
3432
|
+
S[1] || (S[1] = ae(ce((j) => w(j, !0), ["stop", "prevent"]), ["enter"])),
|
|
3433
|
+
ae(w, ["tab"]),
|
|
3434
|
+
ae($e, ["backspace"]),
|
|
3435
|
+
ae(ye, ["arrow-up"]),
|
|
3436
|
+
ae(fe, ["arrow-down"])
|
|
3430
3437
|
],
|
|
3431
|
-
onBlur:
|
|
3432
|
-
}, null, 42,
|
|
3433
|
-
[
|
|
3438
|
+
onBlur: S[2] || (S[2] = (j) => U.value = !1)
|
|
3439
|
+
}, null, 42, On), [
|
|
3440
|
+
[je, E.value]
|
|
3434
3441
|
]),
|
|
3435
|
-
|
|
3442
|
+
Q.value ? (a(), p("a", {
|
|
3436
3443
|
key: 0,
|
|
3437
3444
|
title: "Clear input",
|
|
3438
3445
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
3439
|
-
onClick:
|
|
3440
|
-
(...
|
|
3441
|
-
onKeydown:
|
|
3442
|
-
(...
|
|
3446
|
+
onClick: S[3] || (S[3] = //@ts-ignore
|
|
3447
|
+
(...j) => l(L) && l(L)(...j)),
|
|
3448
|
+
onKeydown: S[4] || (S[4] = //@ts-ignore
|
|
3449
|
+
(...j) => l(L) && l(L)(...j))
|
|
3443
3450
|
}, [
|
|
3444
|
-
|
|
3445
|
-
|
|
3451
|
+
An,
|
|
3452
|
+
V(l(ue), {
|
|
3446
3453
|
class: "h-5 w-5 text-foreground",
|
|
3447
3454
|
"aria-hidden": "true"
|
|
3448
3455
|
})
|
|
3449
|
-
], 32)) :
|
|
3456
|
+
], 32)) : B("", !0),
|
|
3450
3457
|
l(C) ? (a(), p("div", {
|
|
3451
3458
|
key: 1,
|
|
3452
|
-
class:
|
|
3459
|
+
class: g([
|
|
3453
3460
|
"pointer-events-none absolute top-[10px] right-0 flex items-center",
|
|
3454
|
-
|
|
3461
|
+
Q.value ? "pr-8" : "pr-2"
|
|
3455
3462
|
])
|
|
3456
3463
|
}, [
|
|
3457
|
-
|
|
3464
|
+
V(l(we), {
|
|
3458
3465
|
class: "h-4 w-4 text-danger",
|
|
3459
3466
|
"aria-hidden": "true"
|
|
3460
3467
|
})
|
|
3461
|
-
], 2)) :
|
|
3468
|
+
], 2)) : B("", !0),
|
|
3462
3469
|
e.showRequired && !l(C) ? (a(), p("div", {
|
|
3463
3470
|
key: 2,
|
|
3464
|
-
class:
|
|
3465
|
-
}, " * ", 2)) :
|
|
3471
|
+
class: g(["pointer-events-none absolute top-[2px] text-4xl right-0 flex items-center text-danger opacity-50", Q.value ? "pr-8" : "pr-2"])
|
|
3472
|
+
}, " * ", 2)) : B("", !0)
|
|
3466
3473
|
], 2),
|
|
3467
|
-
|
|
3474
|
+
V(l(Ze), {
|
|
3468
3475
|
leave: "transition ease-in duration-100",
|
|
3469
3476
|
"leave-from": "opacity-100",
|
|
3470
3477
|
"leave-to": "opacity-0",
|
|
3471
3478
|
class: "relative px-0.5"
|
|
3472
3479
|
}, {
|
|
3473
3480
|
default: P(() => [
|
|
3474
|
-
|
|
3481
|
+
V(l(ss), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
|
|
3475
3482
|
default: P(() => [
|
|
3476
|
-
|
|
3483
|
+
D.value ? (a(), p("div", {
|
|
3477
3484
|
key: 0,
|
|
3478
|
-
class:
|
|
3485
|
+
class: g(["px-1", b.value.length ? "mb-1" : ""])
|
|
3479
3486
|
}, [
|
|
3480
|
-
|
|
3481
|
-
], 2)) :
|
|
3482
|
-
!
|
|
3483
|
-
|
|
3484
|
-
key:
|
|
3487
|
+
V(Ue, { loading: !0 })
|
|
3488
|
+
], 2)) : B("", !0),
|
|
3489
|
+
!b.value.length && !D.value ? (a(), p("div", Mn, Rn)) : B("", !0),
|
|
3490
|
+
b.value.length ? (a(!0), p(W, { key: 2 }, H(b.value, (j) => (a(), O(l(ls), {
|
|
3491
|
+
key: j,
|
|
3485
3492
|
as: "template",
|
|
3486
|
-
value:
|
|
3493
|
+
value: j
|
|
3487
3494
|
}, {
|
|
3488
|
-
default: P(({ selected:
|
|
3495
|
+
default: P(({ selected: K, active: J }) => [
|
|
3489
3496
|
u("li", {
|
|
3490
|
-
class:
|
|
3491
|
-
"text-primary":
|
|
3492
|
-
"text-foreground": !
|
|
3497
|
+
class: g(["relative cursor-pointer select-none py-1.5 pl-3", {
|
|
3498
|
+
"text-primary": J,
|
|
3499
|
+
"text-foreground": !J
|
|
3493
3500
|
}])
|
|
3494
3501
|
}, [
|
|
3495
3502
|
u("span", {
|
|
3496
|
-
class:
|
|
3497
|
-
},
|
|
3498
|
-
|
|
3503
|
+
class: g(["block truncate", { "font-medium": K, "font-normal": !K }])
|
|
3504
|
+
}, _(j), 3),
|
|
3505
|
+
K ? (a(), p("span", {
|
|
3499
3506
|
key: 0,
|
|
3500
|
-
class:
|
|
3507
|
+
class: g(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-primary": J, "text-foreground": !J }])
|
|
3501
3508
|
}, [
|
|
3502
|
-
|
|
3509
|
+
V(l(Je), {
|
|
3503
3510
|
class: "h-5 w-5",
|
|
3504
3511
|
"aria-hidden": "true"
|
|
3505
3512
|
})
|
|
3506
|
-
], 2)) :
|
|
3513
|
+
], 2)) : B("", !0)
|
|
3507
3514
|
], 2)
|
|
3508
3515
|
]),
|
|
3509
3516
|
_: 2
|
|
3510
|
-
}, 1032, ["value"]))), 128)) :
|
|
3517
|
+
}, 1032, ["value"]))), 128)) : B("", !0)
|
|
3511
3518
|
]),
|
|
3512
3519
|
_: 1
|
|
3513
3520
|
})
|
|
@@ -3517,8 +3524,8 @@ const Ln = /* @__PURE__ */ R({
|
|
|
3517
3524
|
l(m) && !l(M) ? (a(), p("p", {
|
|
3518
3525
|
key: 0,
|
|
3519
3526
|
id: l(m),
|
|
3520
|
-
class:
|
|
3521
|
-
},
|
|
3527
|
+
class: g(l(x))
|
|
3528
|
+
}, _(l($)), 11, zn)) : B("", !0)
|
|
3522
3529
|
]),
|
|
3523
3530
|
_: 1
|
|
3524
3531
|
}, 512)
|
|
@@ -3528,48 +3535,48 @@ const Ln = /* @__PURE__ */ R({
|
|
|
3528
3535
|
}
|
|
3529
3536
|
});
|
|
3530
3537
|
export {
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3538
|
+
xa as CommonAlert,
|
|
3539
|
+
De as CommonBadge,
|
|
3540
|
+
Ue as CommonLoadingBar,
|
|
3541
|
+
Zn as CommonStepsBullet,
|
|
3542
|
+
Yn as CommonStepsNumber,
|
|
3543
|
+
rs as CommonTextLink,
|
|
3544
|
+
de as FormButton,
|
|
3545
|
+
ea as FormCardButton,
|
|
3546
|
+
ta as FormCheckbox,
|
|
3547
|
+
oa as FormSelectBadges,
|
|
3541
3548
|
at as FormSelectBase,
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
+
aa as FormSelectSourceApps,
|
|
3550
|
+
ra as FormSwitch,
|
|
3551
|
+
wa as FormTags,
|
|
3552
|
+
sa as FormTextArea,
|
|
3553
|
+
la as FormTextInput,
|
|
3554
|
+
Jn as GlobalToastRenderer,
|
|
3555
|
+
oe as GridListToggleValue,
|
|
3549
3556
|
Pe as HorizontalDirection,
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3557
|
+
ba as InfiniteLoading,
|
|
3558
|
+
da as LayoutDialog,
|
|
3559
|
+
fa as LayoutDisclosure,
|
|
3560
|
+
pa as LayoutGridListToggle,
|
|
3561
|
+
ma as LayoutMenu,
|
|
3562
|
+
ya as LayoutPanel,
|
|
3556
3563
|
ga as LayoutTable,
|
|
3557
|
-
|
|
3564
|
+
va as LayoutTabs,
|
|
3558
3565
|
me as ModifierKeys,
|
|
3559
|
-
|
|
3566
|
+
Wl as SourceAppBadge,
|
|
3560
3567
|
he as TailwindBreakpoints,
|
|
3561
|
-
|
|
3568
|
+
cn as ThrottleOrDebounce,
|
|
3562
3569
|
pe as ToastNotificationType,
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3570
|
+
na as ValidationHelpers,
|
|
3571
|
+
_e as clientOs,
|
|
3572
|
+
ia as getKeyboardShortcutTitle,
|
|
3573
|
+
ua as onKeyboardShortcut,
|
|
3574
|
+
ca as useFormCheckboxModel,
|
|
3568
3575
|
nt as useFormSelectChildInternals,
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3576
|
+
ha as useOnBeforeWindowUnload,
|
|
3577
|
+
fn as useResponsiveHorizontalDirectionCalculation,
|
|
3578
|
+
dn as useWindowResizeHandler,
|
|
3579
|
+
$l as useWrappingContainerHiddenCount,
|
|
3580
|
+
ka as writableAsyncComputed
|
|
3574
3581
|
};
|
|
3575
3582
|
//# sourceMappingURL=lib.js.map
|