@avenirs-esr/avenirs-dsav 0.1.97 → 0.1.99
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/avenirs-dsav.css +1 -1
- package/dist/components/cards/AvCard/AvCard.stories.d.ts +1 -0
- package/dist/components/cards/AvCard/AvCard.stub.d.ts +64 -0
- package/dist/components/cards/AvCard/AvCard.vue.d.ts +5 -0
- package/dist/components/cards/index.d.ts +1 -1
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +97 -18
- package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +5 -7
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +5 -7
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +746 -741
- package/dist/test-utils.cjs.js +13 -13
- package/dist/test-utils.es.js +65 -40
- package/dist/tests/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as se, computed as b, createElementBlock as I, openBlock as u, normalizeStyle as ce, normalizeClass as j, unref as l, createElementVNode as g, toDisplayString as B, createPropsRestProxy as Da, createBlock as
|
|
1
|
+
import { defineComponent as Q, useCssVars as se, computed as b, createElementBlock as I, openBlock as u, normalizeStyle as ce, normalizeClass as j, unref as l, createElementVNode as g, toDisplayString as B, createPropsRestProxy as Da, createBlock as p, resolveDynamicComponent as Me, mergeProps as ee, withCtx as G, createCommentVNode as D, createVNode as W, Fragment as $, renderList as ie, useSlots as fe, createTextVNode as De, renderSlot as P, ref as U, normalizeProps as La, withDirectives as It, vShow as Yt, TransitionGroup as wa, toRefs as qt, watch as re, onBeforeUnmount as gt, inject as tt, toRef as Ft, onMounted as de, provide as bt, onUnmounted as ve, nextTick as at, getCurrentScope as Oa, onScopeDispose as Sa, getCurrentInstance as ht, hasInjectionContext as yt, isRef as Ct, toValue as le, shallowRef as ye, reactive as ut, watchEffect as Qa, withModifiers as ue, mergeModels as ge, useModel as Le, vModelCheckbox as xa, withKeys as Ae, createSlots as qe, useTemplateRef as pa, resolveComponent as Mt, Teleport as Kt, Comment as ka, cloneVNode as ja } from "vue";
|
|
2
2
|
import { r as Gt } from "./injection-key.es.js";
|
|
3
3
|
const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
4
4
|
__name: "AvBadge",
|
|
@@ -18,10 +18,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
18
18
|
v23262b39: i.borderColor
|
|
19
19
|
}));
|
|
20
20
|
const t = b(() => {
|
|
21
|
-
var i,
|
|
22
|
-
return (i = e.icon) != null && i.startsWith("data:") ? null : (
|
|
21
|
+
var i, r;
|
|
22
|
+
return (i = e.icon) != null && i.startsWith("data:") ? null : (r = e.icon) == null ? void 0 : r.replace(":", "-");
|
|
23
23
|
}), a = b(() => `--icon-${t.value}`), n = b(() => t.value ? { "--icon-path": `var(${a.value})` } : e.icon ? { "--icon-path": `url(${e.icon})` } : {});
|
|
24
|
-
return (i,
|
|
24
|
+
return (i, r) => (u(), I("p", {
|
|
25
25
|
class: j(["av-badge", {
|
|
26
26
|
"av-badge--sm": e.small,
|
|
27
27
|
"av-badge--custom-icon": e.icon,
|
|
@@ -61,7 +61,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
61
61
|
v7f7f664e: i.color
|
|
62
62
|
}));
|
|
63
63
|
const t = b(() => `${e.size}rem`), a = b(() => e.name.replace(":", "-")), n = b(() => `--icon-${a.value}`);
|
|
64
|
-
return (i,
|
|
64
|
+
return (i, r) => (u(), I("div", {
|
|
65
65
|
class: j(["av-icon", {
|
|
66
66
|
"av-icon--spin": e.animation === "spin",
|
|
67
67
|
"av-icon--wrench": e.animation === "wrench",
|
|
@@ -232,7 +232,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
232
232
|
const t = Da(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a = b(() => e.disabled && e.tagName === "p" || t.selectable ? "button" : e.tagName), n = b(() => ({
|
|
233
233
|
"--icon-path": `url(${me.MDI_CHECK_CIRCLE_OUTLINE})`
|
|
234
234
|
}));
|
|
235
|
-
return (i,
|
|
235
|
+
return (i, r) => (u(), p(Me(l(a)), ee({
|
|
236
236
|
class: ["av-tag", {
|
|
237
237
|
"av-tag--sm": e.small
|
|
238
238
|
}],
|
|
@@ -240,10 +240,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
240
240
|
"aria-pressed": t.selectable ? t.selected : void 0
|
|
241
241
|
}, { ...i.$attrs }, {
|
|
242
242
|
style: l(n),
|
|
243
|
-
onClick:
|
|
243
|
+
onClick: r[0] || (r[0] = (o) => !e.disabled && t.selectable && i.$emit("select", [t.value, t.selected ?? !1]))
|
|
244
244
|
}), {
|
|
245
245
|
default: G(() => [
|
|
246
|
-
e.icon ? (u(),
|
|
246
|
+
e.icon ? (u(), p(ne, {
|
|
247
247
|
key: 0,
|
|
248
248
|
title: e.iconOnly ? e.label : void 0,
|
|
249
249
|
size: e.small ? 0.875 : 1,
|
|
@@ -274,7 +274,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
274
274
|
v19519e2d: i.textColor
|
|
275
275
|
}));
|
|
276
276
|
const t = b(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = b(() => e.inline ? void 0 : "ellipsis-container"), n = b(() => e.inline ? void 0 : "ellipsis");
|
|
277
|
-
return (i,
|
|
277
|
+
return (i, r) => (u(), I("div", {
|
|
278
278
|
class: j(["icon-text--container", [l(a)]])
|
|
279
279
|
}, [
|
|
280
280
|
W(ne, {
|
|
@@ -331,10 +331,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
}), n = b(() => e.message ? Array.isArray(e.message) ? e.message : [e.message ?? ""] : []);
|
|
334
|
-
return (i,
|
|
335
|
-
const
|
|
334
|
+
return (i, r) => {
|
|
335
|
+
const o = Ra;
|
|
336
336
|
return u(), I("div", Za, [
|
|
337
|
-
(u(!0), I($, null, ie(l(n), (s, c) => (u(),
|
|
337
|
+
(u(!0), I($, null, ie(l(n), (s, c) => (u(), p(o, ee({
|
|
338
338
|
id: `${l(t)}-${c}`,
|
|
339
339
|
key: `${l(t)}-${c}`,
|
|
340
340
|
class: `av-message--${e.type}`
|
|
@@ -342,7 +342,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
342
342
|
]);
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), pe = /* @__PURE__ */ z(Xa, [["__scopeId", "data-v-8203bafa"]]), Ya = ["id"], qa = {
|
|
346
346
|
key: 1,
|
|
347
347
|
class: "av-fieldset__element"
|
|
348
348
|
}, Fa = {
|
|
@@ -364,7 +364,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
364
364
|
setup(e) {
|
|
365
365
|
const t = fe(), a = b(() => e.errorMessage || e.successMessage);
|
|
366
366
|
return (n, i) => {
|
|
367
|
-
const
|
|
367
|
+
const r = pe;
|
|
368
368
|
return u(), I("fieldset", {
|
|
369
369
|
class: j(["av-fieldset", {
|
|
370
370
|
"av-fieldset--error": e.errorMessage,
|
|
@@ -393,7 +393,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
393
393
|
g("div", Ka, [
|
|
394
394
|
P(n.$slots, "default", {}, void 0, !0)
|
|
395
395
|
]),
|
|
396
|
-
W(
|
|
396
|
+
W(r, {
|
|
397
397
|
type: e.errorMessage ? "error" : "success",
|
|
398
398
|
message: l(a)
|
|
399
399
|
}, null, 8, ["type", "message"])
|
|
@@ -442,11 +442,11 @@ const en = { class: "b2-bold" }, tn = { class: "b2-regular" }, an = ["innerHTML"
|
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
return (n, i) => {
|
|
445
|
-
const
|
|
445
|
+
const r = ne;
|
|
446
446
|
return u(), I("div", {
|
|
447
447
|
class: j(["av-notice", `av-notice--${e.type}`])
|
|
448
448
|
}, [
|
|
449
|
-
W(
|
|
449
|
+
W(r, ee(l(a), { size: 1.5 }), null, 16),
|
|
450
450
|
g("span", en, [
|
|
451
451
|
De(B(e.title) + " ", 1),
|
|
452
452
|
g("span", tn, [
|
|
@@ -463,7 +463,7 @@ function ln(e) {
|
|
|
463
463
|
function bA(e) {
|
|
464
464
|
return /^[^\s@]+@[^\s.@]+\.[^\s@]+$/.test(e);
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const rn = ["title", "disabled", "aria-disabled", "aria-label"], on = /* @__PURE__ */ Q({
|
|
467
467
|
__name: "AvButton",
|
|
468
468
|
props: {
|
|
469
469
|
variant: { default: "DEFAULT" },
|
|
@@ -476,9 +476,9 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
476
476
|
iconOnly: { type: Boolean, default: !1 },
|
|
477
477
|
small: { type: Boolean, default: !1 },
|
|
478
478
|
icon: {},
|
|
479
|
-
noSentenceCase: { type: Boolean, default: !1 }
|
|
480
|
-
onClick: { type: Function }
|
|
479
|
+
noSentenceCase: { type: Boolean, default: !1 }
|
|
481
480
|
},
|
|
481
|
+
emits: ["click"],
|
|
482
482
|
setup(e, { expose: t }) {
|
|
483
483
|
const a = U(null);
|
|
484
484
|
function n() {
|
|
@@ -486,13 +486,13 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
486
486
|
(f = a.value) == null || f.focus();
|
|
487
487
|
}
|
|
488
488
|
t({ focus: n });
|
|
489
|
-
const i = { name: R.LOADING, animation: "spin" },
|
|
489
|
+
const i = { name: R.LOADING, animation: "spin" }, r = b(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : e.small ? 1 : 1.5), o = b(() => {
|
|
490
490
|
if (e.isLoading)
|
|
491
|
-
return { ...i, size:
|
|
491
|
+
return { ...i, size: r.value };
|
|
492
492
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
493
|
-
return { name: e.icon, size:
|
|
493
|
+
return { name: e.icon, size: r.value };
|
|
494
494
|
if (e.icon && typeof e.icon != "string")
|
|
495
|
-
return { ...e.icon, size:
|
|
495
|
+
return { ...e.icon, size: r.value };
|
|
496
496
|
}), s = b(() => e.noSentenceCase ? e.label : _a(e.label)), c = b(() => e.disabled || e.isLoading), A = b(() => `av-button--variant-${e.variant.toLowerCase()}`), d = b(() => `av-button--theme-${e.theme.toLowerCase()}`);
|
|
497
497
|
return (f, C) => {
|
|
498
498
|
const m = ne;
|
|
@@ -513,18 +513,20 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
513
513
|
"aria-disabled": l(c),
|
|
514
514
|
"aria-label": l(s),
|
|
515
515
|
style: ce(e.iconOnly ? { "padding-inline": "var(--spacing-xs)" } : {}),
|
|
516
|
-
onClick: C[0] || (C[0] = (v) =>
|
|
517
|
-
})
|
|
516
|
+
onClick: C[0] || (C[0] = (v) => f.$emit("click", v))
|
|
518
517
|
}, [
|
|
519
|
-
l(
|
|
518
|
+
l(o) ? (u(), p(m, La(ee({ key: 0 }, l(o))), null, 16)) : D("", !0),
|
|
520
519
|
e.iconOnly ? D("", !0) : (u(), I("span", {
|
|
521
520
|
key: 1,
|
|
522
521
|
class: j(e.small ? "b2-regular" : "b1-regular")
|
|
523
522
|
}, B(l(s)), 3))
|
|
524
|
-
], 14,
|
|
523
|
+
], 14, rn);
|
|
525
524
|
};
|
|
526
525
|
}
|
|
527
|
-
}),
|
|
526
|
+
}), oe = /* @__PURE__ */ z(on, [["__scopeId", "data-v-72290081"]]), sn = {
|
|
527
|
+
key: 1,
|
|
528
|
+
class: "av-card__content-collapsible"
|
|
529
|
+
}, cn = {
|
|
528
530
|
key: 0,
|
|
529
531
|
class: "av-card__body"
|
|
530
532
|
}, An = {
|
|
@@ -533,6 +535,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
533
535
|
}, un = /* @__PURE__ */ Q({
|
|
534
536
|
__name: "AvCard",
|
|
535
537
|
props: {
|
|
538
|
+
titleOnly: { type: Boolean, default: !1 },
|
|
536
539
|
backgroundColor: { default: "var(--card)" },
|
|
537
540
|
borderColor: { default: "var(--stroke)" },
|
|
538
541
|
titleBackground: { default: "var(--surface-background)" },
|
|
@@ -543,26 +546,29 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
543
546
|
setup(e) {
|
|
544
547
|
const t = fe(), a = U(e.collapsed);
|
|
545
548
|
return (n, i) => {
|
|
546
|
-
const
|
|
549
|
+
const r = oe;
|
|
547
550
|
return u(), I("div", {
|
|
548
551
|
class: "av-card",
|
|
549
552
|
style: ce({ borderColor: e.borderColor, background: e.backgroundColor })
|
|
550
553
|
}, [
|
|
551
554
|
t.title ? (u(), I("div", {
|
|
552
555
|
key: 0,
|
|
553
|
-
class: j(["av-card__title", {
|
|
556
|
+
class: j(["av-card__title", {
|
|
557
|
+
"av-card__title--collapsed": l(a),
|
|
558
|
+
"av-card__title--title-only": e.titleOnly
|
|
559
|
+
}]),
|
|
554
560
|
style: ce({ background: e.titleBackground, minHeight: e.titleHeight, maxHeight: e.titleHeight })
|
|
555
561
|
}, [
|
|
556
562
|
P(n.$slots, "title", {}, void 0, !0),
|
|
557
|
-
e.collapsible ? (u(),
|
|
563
|
+
!e.titleOnly && e.collapsible ? (u(), p(r, {
|
|
558
564
|
key: 0,
|
|
559
565
|
icon: l(a) ? l(R).CHEVRON_DOWN : l(R).CHEVRON_LEFT,
|
|
560
566
|
"icon-only": "",
|
|
561
567
|
label: "",
|
|
562
|
-
onClick: i[0] || (i[0] = (
|
|
568
|
+
onClick: i[0] || (i[0] = (o) => a.value = !l(a))
|
|
563
569
|
}, null, 8, ["icon"])) : D("", !0)
|
|
564
570
|
], 6)) : D("", !0),
|
|
565
|
-
It(
|
|
571
|
+
e.titleOnly ? D("", !0) : It((u(), I("div", sn, [
|
|
566
572
|
P(n.$slots, "default", {}, void 0, !0),
|
|
567
573
|
t.body ? (u(), I("div", cn, [
|
|
568
574
|
P(n.$slots, "body", {}, void 0, !0)
|
|
@@ -570,13 +576,13 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
570
576
|
t.footer ? (u(), I("div", An, [
|
|
571
577
|
P(n.$slots, "footer", {}, void 0, !0)
|
|
572
578
|
])) : D("", !0)
|
|
573
|
-
], 512), [
|
|
579
|
+
], 512)), [
|
|
574
580
|
[Yt, !e.collapsible || !l(a)]
|
|
575
581
|
])
|
|
576
582
|
], 4);
|
|
577
583
|
};
|
|
578
584
|
}
|
|
579
|
-
}), hA = /* @__PURE__ */ z(un, [["__scopeId", "data-v-
|
|
585
|
+
}), hA = /* @__PURE__ */ z(un, [["__scopeId", "data-v-fd200882"]]), dn = ["id", "role"], fn = { class: "av-alert__container" }, vn = { class: "av-alert__content" }, mn = { class: "av-alert__title" }, In = {
|
|
580
586
|
key: 0,
|
|
581
587
|
class: "s2-bold"
|
|
582
588
|
}, gn = { class: "b1-regular" }, bn = /* @__PURE__ */ Q({
|
|
@@ -594,14 +600,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
594
600
|
},
|
|
595
601
|
emits: ["close"],
|
|
596
602
|
setup(e, { emit: t }) {
|
|
597
|
-
const a = t, n = b(() => e.id ?? `alert-${crypto.randomUUID()}`), i = () => a("close"),
|
|
603
|
+
const a = t, n = b(() => e.id ?? `alert-${crypto.randomUUID()}`), i = () => a("close"), r = b(
|
|
598
604
|
() => [
|
|
599
605
|
`av-alert--${e.type}`,
|
|
600
606
|
{
|
|
601
607
|
"av-alert--sm": e.small
|
|
602
608
|
}
|
|
603
609
|
]
|
|
604
|
-
),
|
|
610
|
+
), o = b(() => {
|
|
605
611
|
switch (e.type) {
|
|
606
612
|
case "error":
|
|
607
613
|
return { name: R.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
@@ -617,12 +623,12 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
617
623
|
return (s, c) => e.closed ? D("", !0) : (u(), I("div", {
|
|
618
624
|
key: 0,
|
|
619
625
|
id: l(n),
|
|
620
|
-
class: j(["av-alert", l(
|
|
626
|
+
class: j(["av-alert", l(r)]),
|
|
621
627
|
role: e.alert ? "alert" : void 0
|
|
622
628
|
}, [
|
|
623
629
|
g("div", fn, [
|
|
624
630
|
g("div", vn, [
|
|
625
|
-
W(ne, ee(l(
|
|
631
|
+
W(ne, ee(l(o), { size: 3 }), null, 16),
|
|
626
632
|
g("div", mn, [
|
|
627
633
|
e.small ? D("", !0) : (u(), I("span", In, B(e.title), 1)),
|
|
628
634
|
P(s.$slots, "default", {}, () => [
|
|
@@ -630,7 +636,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
630
636
|
], !0)
|
|
631
637
|
])
|
|
632
638
|
]),
|
|
633
|
-
e.closeable ? (u(),
|
|
639
|
+
e.closeable ? (u(), p(oe, {
|
|
634
640
|
key: 0,
|
|
635
641
|
"icon-only": "",
|
|
636
642
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
@@ -672,12 +678,12 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
672
678
|
class: "toasters"
|
|
673
679
|
}, {
|
|
674
680
|
default: G(() => [
|
|
675
|
-
(u(!0), I($, null, ie(e.messages, (
|
|
676
|
-
key:
|
|
677
|
-
class: ["av-toaster", t(
|
|
678
|
-
}, { ref_for: !0 },
|
|
679
|
-
style: a(
|
|
680
|
-
onClose: (
|
|
681
|
+
(u(!0), I($, null, ie(e.messages, (r) => (u(), p(hn, ee({
|
|
682
|
+
key: r.id,
|
|
683
|
+
class: ["av-toaster", t(r.type)]
|
|
684
|
+
}, { ref_for: !0 }, r, {
|
|
685
|
+
style: a(r.type),
|
|
686
|
+
onClose: (o) => e.onRemoveMessage(r.id)
|
|
681
687
|
}), null, 16, ["class", "style", "onClose"]))), 128))
|
|
682
688
|
]),
|
|
683
689
|
_: 1
|
|
@@ -703,14 +709,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
703
709
|
emits: ["escapePressed"],
|
|
704
710
|
setup(e, { emit: t }) {
|
|
705
711
|
se((d) => ({
|
|
706
|
-
a82a08d0: l(
|
|
712
|
+
a82a08d0: l(o),
|
|
707
713
|
v45be453a: l(s)
|
|
708
714
|
}));
|
|
709
|
-
const a = e, n = t, i = fe(), { position:
|
|
715
|
+
const a = e, n = t, i = fe(), { position: r, width: o, padding: s, show: c } = qt(a);
|
|
710
716
|
function A(d) {
|
|
711
717
|
d.key === "Escape" && n("escapePressed");
|
|
712
718
|
}
|
|
713
|
-
return
|
|
719
|
+
return re(
|
|
714
720
|
c,
|
|
715
721
|
(d) => {
|
|
716
722
|
d ? window.addEventListener("keydown", A) : window.removeEventListener("keydown", A);
|
|
@@ -721,7 +727,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
721
727
|
}), (d, f) => l(c) ? (u(), I("div", Mn, [
|
|
722
728
|
e.backdrop ? (u(), I("div", En)) : D("", !0),
|
|
723
729
|
g("div", {
|
|
724
|
-
class: j(["av-drawer", `av-drawer--${l(
|
|
730
|
+
class: j(["av-drawer", `av-drawer--${l(r)}`]),
|
|
725
731
|
role: "dialog",
|
|
726
732
|
"aria-modal": "true",
|
|
727
733
|
"aria-label": e.ariaLabel
|
|
@@ -743,28 +749,28 @@ function Ze() {
|
|
|
743
749
|
if (!e.value)
|
|
744
750
|
return;
|
|
745
751
|
e.value.style.setProperty("--collapser", "none");
|
|
746
|
-
const
|
|
747
|
-
e.value.style.setProperty("--collapse", `${-
|
|
752
|
+
const o = e.value.offsetHeight;
|
|
753
|
+
e.value.style.setProperty("--collapse", `${-o}px`), e.value.style.setProperty("--collapser", "");
|
|
748
754
|
};
|
|
749
755
|
return {
|
|
750
756
|
collapse: e,
|
|
751
757
|
collapsing: t,
|
|
752
758
|
cssExpanded: a,
|
|
753
|
-
doExpand: (
|
|
754
|
-
e.value && (
|
|
759
|
+
doExpand: (o) => {
|
|
760
|
+
e.value && (o === !0 && e.value.style.setProperty("--collapse-max-height", "none"), window.requestAnimationFrame(() => {
|
|
755
761
|
t.value = !0, n(), window.requestAnimationFrame(() => {
|
|
756
|
-
a.value =
|
|
762
|
+
a.value = o;
|
|
757
763
|
});
|
|
758
764
|
}));
|
|
759
765
|
},
|
|
760
766
|
adjust: n,
|
|
761
|
-
onTransitionEnd: (
|
|
767
|
+
onTransitionEnd: (o, s = !0) => {
|
|
762
768
|
var c, A;
|
|
763
|
-
t.value = !1, s && ((A = (c = e.value) == null ? void 0 : c.querySelector("a")) == null || A.focus()), e.value &&
|
|
769
|
+
t.value = !1, s && ((A = (c = e.value) == null ? void 0 : c.querySelector("a")) == null || A.focus()), e.value && o === !1 && e.value.style.removeProperty("--collapse-max-height");
|
|
764
770
|
}
|
|
765
771
|
};
|
|
766
772
|
}
|
|
767
|
-
const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn = ["aria-expanded", "aria-controls"],
|
|
773
|
+
const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn = ["aria-expanded", "aria-controls"], pn = { class: "title-container" }, kn = { class: "n6" }, jn = ["id"], zn = { class: "accordion-content-container" }, Bn = /* @__PURE__ */ Q({
|
|
768
774
|
__name: "AvAccordion",
|
|
769
775
|
props: {
|
|
770
776
|
id: {},
|
|
@@ -777,8 +783,8 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
777
783
|
collapsing: a,
|
|
778
784
|
cssExpanded: n,
|
|
779
785
|
doExpand: i,
|
|
780
|
-
onTransitionEnd:
|
|
781
|
-
} = Ze(),
|
|
786
|
+
onTransitionEnd: r
|
|
787
|
+
} = Ze(), o = b(() => e.id ?? `accordion-${crypto.randomUUID()}`), s = U(), c = tt(Gt), { isActive: A, expand: d } = (c == null ? void 0 : c(Ft(() => e.title))) ?? {
|
|
782
788
|
isActive: s,
|
|
783
789
|
expand: () => s.value = !s.value
|
|
784
790
|
}, f = b(() => ({
|
|
@@ -786,7 +792,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
786
792
|
}));
|
|
787
793
|
return de(() => {
|
|
788
794
|
A.value && i(!0);
|
|
789
|
-
}),
|
|
795
|
+
}), re(A, (C, m) => {
|
|
790
796
|
C !== m && i(C);
|
|
791
797
|
}), (C, m) => {
|
|
792
798
|
const v = ne;
|
|
@@ -795,25 +801,25 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
795
801
|
g("button", {
|
|
796
802
|
class: "av-accordion__btn",
|
|
797
803
|
"aria-expanded": l(A),
|
|
798
|
-
"aria-controls": l(
|
|
804
|
+
"aria-controls": l(o),
|
|
799
805
|
type: "button",
|
|
800
806
|
style: ce(l(f)),
|
|
801
807
|
onClick: m[0] || (m[0] = //@ts-ignore
|
|
802
808
|
(...y) => l(d) && l(d)(...y))
|
|
803
809
|
}, [
|
|
804
|
-
g("div",
|
|
805
|
-
e.icon ? (u(),
|
|
810
|
+
g("div", pn, [
|
|
811
|
+
e.icon ? (u(), p(v, {
|
|
806
812
|
key: 0,
|
|
807
813
|
size: 2,
|
|
808
814
|
name: e.icon,
|
|
809
815
|
color: "var(--icon)"
|
|
810
816
|
}, null, 8, ["name"])) : D("", !0),
|
|
811
|
-
g("h6",
|
|
817
|
+
g("h6", kn, B(e.title), 1)
|
|
812
818
|
])
|
|
813
819
|
], 12, xn)
|
|
814
820
|
]),
|
|
815
821
|
g("div", {
|
|
816
|
-
id: l(
|
|
822
|
+
id: l(o),
|
|
817
823
|
ref_key: "collapse",
|
|
818
824
|
ref: t,
|
|
819
825
|
class: j(["av-collapse", {
|
|
@@ -821,7 +827,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
821
827
|
// Need to use a separate data to add/remove the class after a RAF
|
|
822
828
|
"av-collapsing": l(a)
|
|
823
829
|
}]),
|
|
824
|
-
onTransitionend: m[1] || (m[1] = (y) => l(
|
|
830
|
+
onTransitionend: m[1] || (m[1] = (y) => l(r)(l(A), !1))
|
|
825
831
|
}, [
|
|
826
832
|
g("div", zn, [
|
|
827
833
|
P(C.$slots, "default", {}, void 0, !0)
|
|
@@ -846,13 +852,13 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
846
852
|
set(s) {
|
|
847
853
|
n.value = s, a("update:activeAccordion", s);
|
|
848
854
|
}
|
|
849
|
-
}),
|
|
855
|
+
}), r = U(/* @__PURE__ */ new Map()), o = U(0);
|
|
850
856
|
return bt(Gt, (s) => {
|
|
851
|
-
const c =
|
|
852
|
-
|
|
857
|
+
const c = o.value++;
|
|
858
|
+
r.value.set(c, s.value);
|
|
853
859
|
const A = b(() => c === i.value);
|
|
854
|
-
|
|
855
|
-
|
|
860
|
+
re(s, () => {
|
|
861
|
+
r.value.set(c, s.value);
|
|
856
862
|
});
|
|
857
863
|
function d() {
|
|
858
864
|
if (i.value === c) {
|
|
@@ -862,7 +868,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
862
868
|
i.value = c;
|
|
863
869
|
}
|
|
864
870
|
return ve(() => {
|
|
865
|
-
|
|
871
|
+
r.value.delete(c);
|
|
866
872
|
}), { isActive: A, expand: d };
|
|
867
873
|
}), (s, c) => (u(), I("div", Pn, [
|
|
868
874
|
P(s.$slots, "default")
|
|
@@ -872,62 +878,62 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
872
878
|
function _t(e) {
|
|
873
879
|
return Oa() ? (Sa(e), !0) : !1;
|
|
874
880
|
}
|
|
875
|
-
const
|
|
881
|
+
const ot = /* @__PURE__ */ new WeakMap(), Wn = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
876
882
|
var t;
|
|
877
883
|
const a = e[0], n = (t = ht()) == null ? void 0 : t.proxy;
|
|
878
884
|
if (n == null && !yt())
|
|
879
885
|
throw new Error("injectLocal must be called in setup");
|
|
880
|
-
return n &&
|
|
886
|
+
return n && ot.has(n) && a in ot.get(n) ? ot.get(n)[a] : tt(...e);
|
|
881
887
|
}, Un = typeof window < "u" && typeof document < "u";
|
|
882
888
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
883
889
|
const Vn = (e) => e != null, Hn = Object.prototype.toString, Rn = (e) => Hn.call(e) === "[object Object]", xe = () => {
|
|
884
890
|
};
|
|
885
891
|
function ea(e, t) {
|
|
886
892
|
function a(...n) {
|
|
887
|
-
return new Promise((i,
|
|
888
|
-
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(
|
|
893
|
+
return new Promise((i, r) => {
|
|
894
|
+
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(r);
|
|
889
895
|
});
|
|
890
896
|
}
|
|
891
897
|
return a;
|
|
892
898
|
}
|
|
893
899
|
function Zn(e, t = {}) {
|
|
894
900
|
let a, n, i = xe;
|
|
895
|
-
const
|
|
901
|
+
const r = (c) => {
|
|
896
902
|
clearTimeout(c), i(), i = xe;
|
|
897
903
|
};
|
|
898
|
-
let
|
|
904
|
+
let o;
|
|
899
905
|
return (c) => {
|
|
900
906
|
const A = le(e), d = le(t.maxWait);
|
|
901
|
-
return a &&
|
|
902
|
-
i = t.rejectOnCancel ? C : f,
|
|
903
|
-
a &&
|
|
907
|
+
return a && r(a), A <= 0 || d !== void 0 && d <= 0 ? (n && (r(n), n = void 0), Promise.resolve(c())) : new Promise((f, C) => {
|
|
908
|
+
i = t.rejectOnCancel ? C : f, o = c, d && !n && (n = setTimeout(() => {
|
|
909
|
+
a && r(a), n = void 0, f(o());
|
|
904
910
|
}, d)), a = setTimeout(() => {
|
|
905
|
-
n &&
|
|
911
|
+
n && r(n), n = void 0, f(c());
|
|
906
912
|
}, A);
|
|
907
913
|
});
|
|
908
914
|
};
|
|
909
915
|
}
|
|
910
916
|
function Xn(...e) {
|
|
911
|
-
let t = 0, a, n = !0, i = xe,
|
|
912
|
-
!Ct(e[0]) && typeof e[0] == "object" ? { delay:
|
|
917
|
+
let t = 0, a, n = !0, i = xe, r, o, s, c, A;
|
|
918
|
+
!Ct(e[0]) && typeof e[0] == "object" ? { delay: o, trailing: s = !0, leading: c = !0, rejectOnCancel: A = !1 } = e[0] : [o, s = !0, c = !0, A = !1] = e;
|
|
913
919
|
const d = () => {
|
|
914
920
|
a && (clearTimeout(a), a = void 0, i(), i = xe);
|
|
915
921
|
};
|
|
916
922
|
return (C) => {
|
|
917
|
-
const m = le(
|
|
918
|
-
return d(), m <= 0 ? (t = Date.now(), y()) : (v > m && (c || !n) ? (t = Date.now(), y()) : s && (
|
|
923
|
+
const m = le(o), v = Date.now() - t, y = () => r = C();
|
|
924
|
+
return d(), m <= 0 ? (t = Date.now(), y()) : (v > m && (c || !n) ? (t = Date.now(), y()) : s && (r = new Promise((M, T) => {
|
|
919
925
|
i = A ? T : M, a = setTimeout(() => {
|
|
920
926
|
t = Date.now(), n = !0, M(y()), d();
|
|
921
927
|
}, Math.max(0, m - v));
|
|
922
|
-
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1,
|
|
928
|
+
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1, r);
|
|
923
929
|
};
|
|
924
930
|
}
|
|
925
931
|
function Yn(e, t) {
|
|
926
932
|
var a;
|
|
927
933
|
if (typeof e == "number")
|
|
928
934
|
return e + t;
|
|
929
|
-
const n = ((a = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : a[0]) || "", i = e.slice(n.length),
|
|
930
|
-
return Number.isNaN(
|
|
935
|
+
const n = ((a = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : a[0]) || "", i = e.slice(n.length), r = Number.parseFloat(n) + t;
|
|
936
|
+
return Number.isNaN(r) ? e : r + i;
|
|
931
937
|
}
|
|
932
938
|
function Ve(e) {
|
|
933
939
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
@@ -956,7 +962,7 @@ function ta(e, t = !0, a) {
|
|
|
956
962
|
qn() ? de(e, a) : t ? e() : at(e);
|
|
957
963
|
}
|
|
958
964
|
function Gn(e, t, a) {
|
|
959
|
-
return
|
|
965
|
+
return re(
|
|
960
966
|
e,
|
|
961
967
|
t,
|
|
962
968
|
{
|
|
@@ -977,7 +983,7 @@ function dt(...e) {
|
|
|
977
983
|
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), i = b(() => {
|
|
978
984
|
const s = Fe(le(e[0])).filter((c) => c != null);
|
|
979
985
|
return s.every((c) => typeof c != "string") ? s : void 0;
|
|
980
|
-
}),
|
|
986
|
+
}), r = Gn(
|
|
981
987
|
() => {
|
|
982
988
|
var s, c;
|
|
983
989
|
return [
|
|
@@ -1001,10 +1007,10 @@ function dt(...e) {
|
|
|
1001
1007
|
);
|
|
1002
1008
|
},
|
|
1003
1009
|
{ flush: "post" }
|
|
1004
|
-
),
|
|
1005
|
-
|
|
1010
|
+
), o = () => {
|
|
1011
|
+
r(), a();
|
|
1006
1012
|
};
|
|
1007
|
-
return _t(a),
|
|
1013
|
+
return _t(a), o;
|
|
1008
1014
|
}
|
|
1009
1015
|
// @__NO_SIDE_EFFECTS__
|
|
1010
1016
|
function Jn() {
|
|
@@ -1020,23 +1026,23 @@ function aa(e) {
|
|
|
1020
1026
|
}
|
|
1021
1027
|
function $n(e, t, a = {}) {
|
|
1022
1028
|
const { window: n = Xe, ...i } = a;
|
|
1023
|
-
let
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1029
|
+
let r;
|
|
1030
|
+
const o = /* @__PURE__ */ aa(() => n && "MutationObserver" in n), s = () => {
|
|
1031
|
+
r && (r.disconnect(), r = void 0);
|
|
1026
1032
|
}, c = b(() => {
|
|
1027
1033
|
const C = le(e), m = Fe(C).map(Et).filter(Vn);
|
|
1028
1034
|
return new Set(m);
|
|
1029
|
-
}), A =
|
|
1035
|
+
}), A = re(
|
|
1030
1036
|
c,
|
|
1031
1037
|
(C) => {
|
|
1032
|
-
s(),
|
|
1038
|
+
s(), o.value && C.size && (r = new MutationObserver(t), C.forEach((m) => r.observe(m, i)));
|
|
1033
1039
|
},
|
|
1034
1040
|
{ immediate: !0, flush: "post" }
|
|
1035
|
-
), d = () =>
|
|
1041
|
+
), d = () => r == null ? void 0 : r.takeRecords(), f = () => {
|
|
1036
1042
|
A(), s();
|
|
1037
1043
|
};
|
|
1038
1044
|
return _t(f), {
|
|
1039
|
-
isSupported:
|
|
1045
|
+
isSupported: o,
|
|
1040
1046
|
stop: f,
|
|
1041
1047
|
takeRecords: d
|
|
1042
1048
|
};
|
|
@@ -1048,12 +1054,12 @@ function na() {
|
|
|
1048
1054
|
return typeof e == "number" ? e : void 0;
|
|
1049
1055
|
}
|
|
1050
1056
|
function ze(e, t = {}) {
|
|
1051
|
-
const { window: a = Xe, ssrWidth: n = /* @__PURE__ */ na() } = t, i = /* @__PURE__ */ aa(() => a && "matchMedia" in a && typeof a.matchMedia == "function"),
|
|
1057
|
+
const { window: a = Xe, ssrWidth: n = /* @__PURE__ */ na() } = t, i = /* @__PURE__ */ aa(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), r = ye(typeof n == "number"), o = ye(), s = ye(!1), c = (A) => {
|
|
1052
1058
|
s.value = A.matches;
|
|
1053
1059
|
};
|
|
1054
1060
|
return Qa(() => {
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1061
|
+
if (r.value) {
|
|
1062
|
+
r.value = !i.value;
|
|
1057
1063
|
const A = le(e).split(",");
|
|
1058
1064
|
s.value = A.some((d) => {
|
|
1059
1065
|
const f = d.includes("not all"), C = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
@@ -1062,8 +1068,8 @@ function ze(e, t = {}) {
|
|
|
1062
1068
|
});
|
|
1063
1069
|
return;
|
|
1064
1070
|
}
|
|
1065
|
-
i.value && (
|
|
1066
|
-
}), dt(
|
|
1071
|
+
i.value && (o.value = a.matchMedia(le(e)), s.value = o.value.matches);
|
|
1072
|
+
}), dt(o, "change", c, { passive: !0 }), b(() => s.value);
|
|
1067
1073
|
}
|
|
1068
1074
|
// @__NO_SIDE_EFFECTS__
|
|
1069
1075
|
function ei(e, t = {}) {
|
|
@@ -1071,10 +1077,10 @@ function ei(e, t = {}) {
|
|
|
1071
1077
|
let y = le(e[le(m)]);
|
|
1072
1078
|
return v != null && (y = Yn(y, v)), typeof y == "number" && (y = `${y}px`), y;
|
|
1073
1079
|
}
|
|
1074
|
-
const { window: n = Xe, strategy: i = "min-width", ssrWidth:
|
|
1075
|
-
|
|
1080
|
+
const { window: n = Xe, strategy: i = "min-width", ssrWidth: r = /* @__PURE__ */ na() } = t, o = typeof r == "number", s = o ? ye(!1) : { value: !0 };
|
|
1081
|
+
o && ta(() => s.value = !!n);
|
|
1076
1082
|
function c(m, v) {
|
|
1077
|
-
return !s.value &&
|
|
1083
|
+
return !s.value && o ? m === "min" ? r >= Ve(v) : r <= Ve(v) : n ? n.matchMedia(`(${m}-width: ${v})`).matches : !1;
|
|
1078
1084
|
}
|
|
1079
1085
|
const A = (m) => ze(() => `(min-width: ${a(m)})`, t), d = (m) => ze(() => `(max-width: ${a(m)})`, t), f = Object.keys(e).reduce((m, v) => (Object.defineProperty(m, v, {
|
|
1080
1086
|
get: () => i === "min-width" ? A(v) : d(v),
|
|
@@ -1125,8 +1131,8 @@ function ti(e, t = {}) {
|
|
|
1125
1131
|
throttle: a = 0,
|
|
1126
1132
|
idle: n = 200,
|
|
1127
1133
|
onStop: i = xe,
|
|
1128
|
-
onScroll:
|
|
1129
|
-
offset:
|
|
1134
|
+
onScroll: r = xe,
|
|
1135
|
+
offset: o = {
|
|
1130
1136
|
left: 0,
|
|
1131
1137
|
right: 0,
|
|
1132
1138
|
top: 0,
|
|
@@ -1162,7 +1168,7 @@ function ti(e, t = {}) {
|
|
|
1162
1168
|
}
|
|
1163
1169
|
});
|
|
1164
1170
|
function T(x, H) {
|
|
1165
|
-
var w,
|
|
1171
|
+
var w, k, h, E;
|
|
1166
1172
|
if (!d)
|
|
1167
1173
|
return;
|
|
1168
1174
|
const S = le(e);
|
|
@@ -1170,7 +1176,7 @@ function ti(e, t = {}) {
|
|
|
1170
1176
|
return;
|
|
1171
1177
|
(h = S instanceof Document ? d.document.body : S) == null || h.scrollTo({
|
|
1172
1178
|
top: (w = le(H)) != null ? w : M.value,
|
|
1173
|
-
left: (
|
|
1179
|
+
left: (k = le(x)) != null ? k : y.value,
|
|
1174
1180
|
behavior: le(A)
|
|
1175
1181
|
});
|
|
1176
1182
|
const Y = ((E = S == null ? void 0 : S.document) == null ? void 0 : E.documentElement) || (S == null ? void 0 : S.documentElement) || S;
|
|
@@ -1192,20 +1198,20 @@ function ti(e, t = {}) {
|
|
|
1192
1198
|
var H;
|
|
1193
1199
|
if (!d)
|
|
1194
1200
|
return;
|
|
1195
|
-
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display:
|
|
1201
|
+
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display: k, flexDirection: h, direction: E } = getComputedStyle(w), S = E === "rtl" ? -1 : 1, Y = w.scrollLeft;
|
|
1196
1202
|
O.left = Y < m.value, O.right = Y > m.value;
|
|
1197
|
-
const q = Math.abs(Y * S) <= (
|
|
1198
|
-
|
|
1203
|
+
const q = Math.abs(Y * S) <= (o.left || 0), J = Math.abs(Y * S) + w.clientWidth >= w.scrollWidth - (o.right || 0) - Lt;
|
|
1204
|
+
k === "flex" && h === "row-reverse" ? (N.left = J, N.right = q) : (N.left = q, N.right = J), m.value = Y;
|
|
1199
1205
|
let X = w.scrollTop;
|
|
1200
1206
|
x === d.document && !X && (X = d.document.body.scrollTop), O.top = X < v.value, O.bottom = X > v.value;
|
|
1201
|
-
const _ = Math.abs(X) <= (
|
|
1202
|
-
|
|
1207
|
+
const _ = Math.abs(X) <= (o.top || 0), ae = Math.abs(X) + w.clientHeight >= w.scrollHeight - (o.bottom || 0) - Lt;
|
|
1208
|
+
k === "flex" && h === "column-reverse" ? (N.top = ae, N.bottom = _) : (N.top = _, N.bottom = ae), v.value = X;
|
|
1203
1209
|
}, te = (x) => {
|
|
1204
1210
|
var H;
|
|
1205
1211
|
if (!d)
|
|
1206
1212
|
return;
|
|
1207
1213
|
const w = (H = x.target.documentElement) != null ? H : x.target;
|
|
1208
|
-
F(w), L.value = !0, Z(x),
|
|
1214
|
+
F(w), L.value = !0, Z(x), r(x);
|
|
1209
1215
|
};
|
|
1210
1216
|
return dt(
|
|
1211
1217
|
e,
|
|
@@ -1260,7 +1266,7 @@ const ai = {
|
|
|
1260
1266
|
/* 90rem */
|
|
1261
1267
|
};
|
|
1262
1268
|
function nt() {
|
|
1263
|
-
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"),
|
|
1269
|
+
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"), r = e.greater("md"), o = e.greater("lg"), s = a, c = b(() => r.value && n.value), A = o, d = e.active();
|
|
1264
1270
|
return {
|
|
1265
1271
|
isMobile: s,
|
|
1266
1272
|
isTablet: c,
|
|
@@ -1269,8 +1275,8 @@ function nt() {
|
|
|
1269
1275
|
isBelowMd: a,
|
|
1270
1276
|
isBelowLg: n,
|
|
1271
1277
|
isBelowXl: i,
|
|
1272
|
-
isAboveMd:
|
|
1273
|
-
isAboveLg:
|
|
1278
|
+
isAboveMd: r,
|
|
1279
|
+
isAboveLg: o,
|
|
1274
1280
|
currentBreakpoint: d
|
|
1275
1281
|
};
|
|
1276
1282
|
}
|
|
@@ -1287,39 +1293,39 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1287
1293
|
}, Je = function e(t, a) {
|
|
1288
1294
|
var n;
|
|
1289
1295
|
a === void 0 && (a = !0);
|
|
1290
|
-
var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"),
|
|
1291
|
-
return
|
|
1296
|
+
var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), r = i === "" || i === "true", o = r || a && t && e(t.parentNode);
|
|
1297
|
+
return o;
|
|
1292
1298
|
}, ni = function(t) {
|
|
1293
1299
|
var a, n = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
1294
1300
|
return n === "" || n === "true";
|
|
1295
|
-
},
|
|
1301
|
+
}, ra = function(t, a, n) {
|
|
1296
1302
|
if (Je(t))
|
|
1297
1303
|
return [];
|
|
1298
1304
|
var i = Array.prototype.slice.apply(t.querySelectorAll(Ke));
|
|
1299
1305
|
return a && we.call(t, Ke) && i.unshift(t), i = i.filter(n), i;
|
|
1300
|
-
},
|
|
1301
|
-
for (var i = [],
|
|
1302
|
-
var
|
|
1303
|
-
if (!Je(
|
|
1304
|
-
if (
|
|
1305
|
-
var s =
|
|
1306
|
+
}, oa = function e(t, a, n) {
|
|
1307
|
+
for (var i = [], r = Array.from(t); r.length; ) {
|
|
1308
|
+
var o = r.shift();
|
|
1309
|
+
if (!Je(o, !1))
|
|
1310
|
+
if (o.tagName === "SLOT") {
|
|
1311
|
+
var s = o.assignedElements(), c = s.length ? s : o.children, A = e(c, !0, n);
|
|
1306
1312
|
n.flatten ? i.push.apply(i, A) : i.push({
|
|
1307
|
-
scopeParent:
|
|
1313
|
+
scopeParent: o,
|
|
1308
1314
|
candidates: A
|
|
1309
1315
|
});
|
|
1310
1316
|
} else {
|
|
1311
|
-
var d = we.call(
|
|
1312
|
-
d && n.filter(
|
|
1313
|
-
var f =
|
|
1314
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(
|
|
1317
|
+
var d = we.call(o, Ke);
|
|
1318
|
+
d && n.filter(o) && (a || !t.includes(o)) && i.push(o);
|
|
1319
|
+
var f = o.shadowRoot || // check for an undisclosed shadow
|
|
1320
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), C = !Je(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
1315
1321
|
if (f && C) {
|
|
1316
|
-
var m = e(f === !0 ?
|
|
1322
|
+
var m = e(f === !0 ? o.children : f.children, !0, n);
|
|
1317
1323
|
n.flatten ? i.push.apply(i, m) : i.push({
|
|
1318
|
-
scopeParent:
|
|
1324
|
+
scopeParent: o,
|
|
1319
1325
|
candidates: m
|
|
1320
1326
|
});
|
|
1321
1327
|
} else
|
|
1322
|
-
|
|
1328
|
+
r.unshift.apply(r, o.children);
|
|
1323
1329
|
}
|
|
1324
1330
|
}
|
|
1325
1331
|
return i;
|
|
@@ -1336,9 +1342,9 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1336
1342
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
1337
1343
|
}, ca = function(t) {
|
|
1338
1344
|
return t.tagName === "INPUT";
|
|
1339
|
-
}, oi = function(t) {
|
|
1340
|
-
return ca(t) && t.type === "hidden";
|
|
1341
1345
|
}, ri = function(t) {
|
|
1346
|
+
return ca(t) && t.type === "hidden";
|
|
1347
|
+
}, oi = function(t) {
|
|
1342
1348
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
1343
1349
|
return n.tagName === "SUMMARY";
|
|
1344
1350
|
});
|
|
@@ -1358,25 +1364,25 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1358
1364
|
else
|
|
1359
1365
|
try {
|
|
1360
1366
|
i = n(t.name);
|
|
1361
|
-
} catch (
|
|
1362
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",
|
|
1367
|
+
} catch (o) {
|
|
1368
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
1363
1369
|
}
|
|
1364
|
-
var
|
|
1365
|
-
return !
|
|
1370
|
+
var r = si(i, t.form);
|
|
1371
|
+
return !r || r === t;
|
|
1366
1372
|
}, Ai = function(t) {
|
|
1367
1373
|
return ca(t) && t.type === "radio";
|
|
1368
1374
|
}, ui = function(t) {
|
|
1369
1375
|
return Ai(t) && !ci(t);
|
|
1370
1376
|
}, di = function(t) {
|
|
1371
|
-
var a, n = t && Ge(t), i = (a = n) === null || a === void 0 ? void 0 : a.host,
|
|
1377
|
+
var a, n = t && Ge(t), i = (a = n) === null || a === void 0 ? void 0 : a.host, r = !1;
|
|
1372
1378
|
if (n && n !== t) {
|
|
1373
|
-
var
|
|
1374
|
-
for (
|
|
1379
|
+
var o, s, c;
|
|
1380
|
+
for (r = !!((o = i) !== null && o !== void 0 && (s = o.ownerDocument) !== null && s !== void 0 && s.contains(i) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !r && i; ) {
|
|
1375
1381
|
var A, d, f;
|
|
1376
|
-
n = Ge(i), i = (A = n) === null || A === void 0 ? void 0 : A.host,
|
|
1382
|
+
n = Ge(i), i = (A = n) === null || A === void 0 ? void 0 : A.host, r = !!((d = i) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(i));
|
|
1377
1383
|
}
|
|
1378
1384
|
}
|
|
1379
|
-
return
|
|
1385
|
+
return r;
|
|
1380
1386
|
}, wt = function(t) {
|
|
1381
1387
|
var a = t.getBoundingClientRect(), n = a.width, i = a.height;
|
|
1382
1388
|
return n === 0 && i === 0;
|
|
@@ -1384,8 +1390,8 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1384
1390
|
var n = a.displayCheck, i = a.getShadowRoot;
|
|
1385
1391
|
if (getComputedStyle(t).visibility === "hidden")
|
|
1386
1392
|
return !0;
|
|
1387
|
-
var
|
|
1388
|
-
if (we.call(
|
|
1393
|
+
var r = we.call(t, "details>summary:first-of-type"), o = r ? t.parentElement : t;
|
|
1394
|
+
if (we.call(o, "details:not([open]) *"))
|
|
1389
1395
|
return !0;
|
|
1390
1396
|
if (!n || n === "full" || n === "legacy-full") {
|
|
1391
1397
|
if (typeof i == "function") {
|
|
@@ -1422,8 +1428,8 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1422
1428
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1423
1429
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1424
1430
|
// note related to `candidateSelectors`)
|
|
1425
|
-
Je(a) ||
|
|
1426
|
-
|
|
1431
|
+
Je(a) || ri(a) || fi(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
1432
|
+
oi(a) || vi(a));
|
|
1427
1433
|
}, ft = function(t, a) {
|
|
1428
1434
|
return !(ui(a) || Te(a) < 0 || !$e(t, a));
|
|
1429
1435
|
}, mi = function(t) {
|
|
@@ -1431,35 +1437,35 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1431
1437
|
return !!(isNaN(a) || a >= 0);
|
|
1432
1438
|
}, Ii = function e(t) {
|
|
1433
1439
|
var a = [], n = [];
|
|
1434
|
-
return t.forEach(function(i,
|
|
1435
|
-
var
|
|
1436
|
-
c === 0 ?
|
|
1437
|
-
documentOrder:
|
|
1440
|
+
return t.forEach(function(i, r) {
|
|
1441
|
+
var o = !!i.scopeParent, s = o ? i.scopeParent : i, c = ii(s, o), A = o ? e(i.candidates) : s;
|
|
1442
|
+
c === 0 ? o ? a.push.apply(a, A) : a.push(s) : n.push({
|
|
1443
|
+
documentOrder: r,
|
|
1438
1444
|
tabIndex: c,
|
|
1439
1445
|
item: i,
|
|
1440
|
-
isScope:
|
|
1446
|
+
isScope: o,
|
|
1441
1447
|
content: A
|
|
1442
1448
|
});
|
|
1443
|
-
}), n.sort(li).reduce(function(i,
|
|
1444
|
-
return
|
|
1449
|
+
}), n.sort(li).reduce(function(i, r) {
|
|
1450
|
+
return r.isScope ? i.push.apply(i, r.content) : i.push(r.content), i;
|
|
1445
1451
|
}, []).concat(a);
|
|
1446
1452
|
}, gi = function(t, a) {
|
|
1447
1453
|
a = a || {};
|
|
1448
1454
|
var n;
|
|
1449
|
-
return a.getShadowRoot ? n =
|
|
1455
|
+
return a.getShadowRoot ? n = oa([t], a.includeContainer, {
|
|
1450
1456
|
filter: ft.bind(null, a),
|
|
1451
1457
|
flatten: !1,
|
|
1452
1458
|
getShadowRoot: a.getShadowRoot,
|
|
1453
1459
|
shadowRootFilter: mi
|
|
1454
|
-
}) : n =
|
|
1460
|
+
}) : n = ra(t, a.includeContainer, ft.bind(null, a)), Ii(n);
|
|
1455
1461
|
}, bi = function(t, a) {
|
|
1456
1462
|
a = a || {};
|
|
1457
1463
|
var n;
|
|
1458
|
-
return a.getShadowRoot ? n =
|
|
1464
|
+
return a.getShadowRoot ? n = oa([t], a.includeContainer, {
|
|
1459
1465
|
filter: $e.bind(null, a),
|
|
1460
1466
|
flatten: !0,
|
|
1461
1467
|
getShadowRoot: a.getShadowRoot
|
|
1462
|
-
}) : n =
|
|
1468
|
+
}) : n = ra(t, a.includeContainer, $e.bind(null, a)), n;
|
|
1463
1469
|
}, Oe = function(t, a) {
|
|
1464
1470
|
if (a = a || {}, !t)
|
|
1465
1471
|
throw new Error("No node provided");
|
|
@@ -1573,13 +1579,13 @@ var Qt = {
|
|
|
1573
1579
|
}, Ye = function(t) {
|
|
1574
1580
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
1575
1581
|
}, xi = [], Aa = function(t, a) {
|
|
1576
|
-
var n = (a == null ? void 0 : a.document) || document, i = (a == null ? void 0 : a.trapStack) || xi,
|
|
1582
|
+
var n = (a == null ? void 0 : a.document) || document, i = (a == null ? void 0 : a.trapStack) || xi, r = St({
|
|
1577
1583
|
returnFocusOnDeactivate: !0,
|
|
1578
1584
|
escapeDeactivates: !0,
|
|
1579
1585
|
delayInitialFocus: !0,
|
|
1580
1586
|
isKeyForward: Si,
|
|
1581
1587
|
isKeyBackward: Qi
|
|
1582
|
-
}, a),
|
|
1588
|
+
}, a), o = {
|
|
1583
1589
|
// containers given to createFocusTrap()
|
|
1584
1590
|
// @type {Array<HTMLElement>}
|
|
1585
1591
|
containers: [],
|
|
@@ -1617,10 +1623,10 @@ var Qt = {
|
|
|
1617
1623
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1618
1624
|
recentNavEvent: void 0
|
|
1619
1625
|
}, s, c = function(h, E, S) {
|
|
1620
|
-
return h && h[E] !== void 0 ? h[E] :
|
|
1626
|
+
return h && h[E] !== void 0 ? h[E] : r[S || E];
|
|
1621
1627
|
}, A = function(h, E) {
|
|
1622
1628
|
var S = typeof (E == null ? void 0 : E.composedPath) == "function" ? E.composedPath() : void 0;
|
|
1623
|
-
return
|
|
1629
|
+
return o.containerGroups.findIndex(function(Y) {
|
|
1624
1630
|
var q = Y.container, J = Y.tabbableNodes;
|
|
1625
1631
|
return q.contains(h) || // fall back to explicit tabbable search which will take into consideration any
|
|
1626
1632
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
@@ -1631,7 +1637,7 @@ var Qt = {
|
|
|
1631
1637
|
});
|
|
1632
1638
|
});
|
|
1633
1639
|
}, d = function(h) {
|
|
1634
|
-
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = E.hasFallback, Y = S === void 0 ? !1 : S, q = E.params, J = q === void 0 ? [] : q, X =
|
|
1640
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = E.hasFallback, Y = S === void 0 ? !1 : S, q = E.params, J = q === void 0 ? [] : q, X = r[h];
|
|
1635
1641
|
if (typeof X == "function" && (X = X.apply(void 0, Ni(J))), X === !0 && (X = void 0), !X) {
|
|
1636
1642
|
if (X === void 0 || X === !1)
|
|
1637
1643
|
return X;
|
|
@@ -1654,11 +1660,11 @@ var Qt = {
|
|
|
1654
1660
|
});
|
|
1655
1661
|
if (h === !1)
|
|
1656
1662
|
return !1;
|
|
1657
|
-
if (h === void 0 || h && !st(h,
|
|
1663
|
+
if (h === void 0 || h && !st(h, r.tabbableOptions))
|
|
1658
1664
|
if (A(n.activeElement) >= 0)
|
|
1659
1665
|
h = n.activeElement;
|
|
1660
1666
|
else {
|
|
1661
|
-
var E =
|
|
1667
|
+
var E = o.tabbableGroups[0], S = E && E.firstTabbableNode;
|
|
1662
1668
|
h = S || d("fallbackFocus");
|
|
1663
1669
|
}
|
|
1664
1670
|
else h === null && (h = d("fallbackFocus"));
|
|
@@ -1666,8 +1672,8 @@ var Qt = {
|
|
|
1666
1672
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1667
1673
|
return h;
|
|
1668
1674
|
}, C = function() {
|
|
1669
|
-
if (
|
|
1670
|
-
var E = gi(h,
|
|
1675
|
+
if (o.containerGroups = o.containers.map(function(h) {
|
|
1676
|
+
var E = gi(h, r.tabbableOptions), S = bi(h, r.tabbableOptions), Y = E.length > 0 ? E[0] : void 0, q = E.length > 0 ? E[E.length - 1] : void 0, J = S.find(function(ae) {
|
|
1671
1677
|
return Oe(ae);
|
|
1672
1678
|
}), X = S.slice().reverse().find(function(ae) {
|
|
1673
1679
|
return Oe(ae);
|
|
@@ -1704,21 +1710,21 @@ var Qt = {
|
|
|
1704
1710
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1705
1711
|
*/
|
|
1706
1712
|
nextTabbableNode: function(Ee) {
|
|
1707
|
-
var
|
|
1708
|
-
return be < 0 ?
|
|
1713
|
+
var ke = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, be = E.indexOf(Ee);
|
|
1714
|
+
return be < 0 ? ke ? S.slice(S.indexOf(Ee) + 1).find(function(je) {
|
|
1709
1715
|
return Oe(je);
|
|
1710
1716
|
}) : S.slice(0, S.indexOf(Ee)).reverse().find(function(je) {
|
|
1711
1717
|
return Oe(je);
|
|
1712
|
-
}) : E[be + (
|
|
1718
|
+
}) : E[be + (ke ? 1 : -1)];
|
|
1713
1719
|
}
|
|
1714
1720
|
};
|
|
1715
|
-
}),
|
|
1721
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(h) {
|
|
1716
1722
|
return h.tabbableNodes.length > 0;
|
|
1717
|
-
}),
|
|
1723
|
+
}), o.tabbableGroups.length <= 0 && !d("fallbackFocus"))
|
|
1718
1724
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1719
|
-
if (
|
|
1725
|
+
if (o.containerGroups.find(function(h) {
|
|
1720
1726
|
return h.posTabIndexesFound;
|
|
1721
|
-
}) &&
|
|
1727
|
+
}) && o.containerGroups.length > 1)
|
|
1722
1728
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
1723
1729
|
}, m = function(h) {
|
|
1724
1730
|
var E = h.activeElement;
|
|
@@ -1731,8 +1737,8 @@ var Qt = {
|
|
|
1731
1737
|
return;
|
|
1732
1738
|
}
|
|
1733
1739
|
h.focus({
|
|
1734
|
-
preventScroll: !!
|
|
1735
|
-
}),
|
|
1740
|
+
preventScroll: !!r.preventScroll
|
|
1741
|
+
}), o.mostRecentlyFocusedNode = h, wi(h) && h.select();
|
|
1736
1742
|
}
|
|
1737
1743
|
}, y = function(h) {
|
|
1738
1744
|
var E = d("setReturnFocus", {
|
|
@@ -1743,26 +1749,26 @@ var Qt = {
|
|
|
1743
1749
|
var E = h.target, S = h.event, Y = h.isBackward, q = Y === void 0 ? !1 : Y;
|
|
1744
1750
|
E = E || Ye(S), C();
|
|
1745
1751
|
var J = null;
|
|
1746
|
-
if (
|
|
1747
|
-
var X = A(E, S), _ = X >= 0 ?
|
|
1752
|
+
if (o.tabbableGroups.length > 0) {
|
|
1753
|
+
var X = A(E, S), _ = X >= 0 ? o.containerGroups[X] : void 0;
|
|
1748
1754
|
if (X < 0)
|
|
1749
|
-
q ? J =
|
|
1755
|
+
q ? J = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : J = o.tabbableGroups[0].firstTabbableNode;
|
|
1750
1756
|
else if (q) {
|
|
1751
|
-
var ae =
|
|
1752
|
-
var
|
|
1753
|
-
return E ===
|
|
1757
|
+
var ae = o.tabbableGroups.findIndex(function(lt) {
|
|
1758
|
+
var rt = lt.firstTabbableNode;
|
|
1759
|
+
return E === rt;
|
|
1754
1760
|
});
|
|
1755
|
-
if (ae < 0 && (_.container === E || st(E,
|
|
1756
|
-
var Ee = ae === 0 ?
|
|
1757
|
-
J = Te(E) >= 0 ?
|
|
1761
|
+
if (ae < 0 && (_.container === E || st(E, r.tabbableOptions) && !Oe(E, r.tabbableOptions) && !_.nextTabbableNode(E, !1)) && (ae = X), ae >= 0) {
|
|
1762
|
+
var Ee = ae === 0 ? o.tabbableGroups.length - 1 : ae - 1, ke = o.tabbableGroups[Ee];
|
|
1763
|
+
J = Te(E) >= 0 ? ke.lastTabbableNode : ke.lastDomTabbableNode;
|
|
1758
1764
|
} else He(S) || (J = _.nextTabbableNode(E, !1));
|
|
1759
1765
|
} else {
|
|
1760
|
-
var be =
|
|
1761
|
-
var
|
|
1762
|
-
return E ===
|
|
1766
|
+
var be = o.tabbableGroups.findIndex(function(lt) {
|
|
1767
|
+
var rt = lt.lastTabbableNode;
|
|
1768
|
+
return E === rt;
|
|
1763
1769
|
});
|
|
1764
|
-
if (be < 0 && (_.container === E || st(E,
|
|
1765
|
-
var je = be ===
|
|
1770
|
+
if (be < 0 && (_.container === E || st(E, r.tabbableOptions) && !Oe(E, r.tabbableOptions) && !_.nextTabbableNode(E)) && (be = X), be >= 0) {
|
|
1771
|
+
var je = be === o.tabbableGroups.length - 1 ? 0 : be + 1, Dt = o.tabbableGroups[je];
|
|
1766
1772
|
J = Te(E) >= 0 ? Dt.firstTabbableNode : Dt.firstDomTabbableNode;
|
|
1767
1773
|
} else He(S) || (J = _.nextTabbableNode(E));
|
|
1768
1774
|
}
|
|
@@ -1772,7 +1778,7 @@ var Qt = {
|
|
|
1772
1778
|
}, T = function(h) {
|
|
1773
1779
|
var E = Ye(h);
|
|
1774
1780
|
if (!(A(E, h) >= 0)) {
|
|
1775
|
-
if (Be(
|
|
1781
|
+
if (Be(r.clickOutsideDeactivates, h)) {
|
|
1776
1782
|
s.deactivate({
|
|
1777
1783
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
1778
1784
|
// which will result in the outside click setting focus to the node
|
|
@@ -1780,30 +1786,30 @@ var Qt = {
|
|
|
1780
1786
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
1781
1787
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
1782
1788
|
// outside click was on a focusable node or not
|
|
1783
|
-
returnFocus:
|
|
1789
|
+
returnFocus: r.returnFocusOnDeactivate
|
|
1784
1790
|
});
|
|
1785
1791
|
return;
|
|
1786
1792
|
}
|
|
1787
|
-
Be(
|
|
1793
|
+
Be(r.allowOutsideClick, h) || h.preventDefault();
|
|
1788
1794
|
}
|
|
1789
1795
|
}, L = function(h) {
|
|
1790
1796
|
var E = Ye(h), S = A(E, h) >= 0;
|
|
1791
1797
|
if (S || E instanceof Document)
|
|
1792
|
-
S && (
|
|
1798
|
+
S && (o.mostRecentlyFocusedNode = E);
|
|
1793
1799
|
else {
|
|
1794
1800
|
h.stopImmediatePropagation();
|
|
1795
1801
|
var Y, q = !0;
|
|
1796
|
-
if (
|
|
1797
|
-
if (Te(
|
|
1798
|
-
var J = A(
|
|
1802
|
+
if (o.mostRecentlyFocusedNode)
|
|
1803
|
+
if (Te(o.mostRecentlyFocusedNode) > 0) {
|
|
1804
|
+
var J = A(o.mostRecentlyFocusedNode), X = o.containerGroups[J].tabbableNodes;
|
|
1799
1805
|
if (X.length > 0) {
|
|
1800
1806
|
var _ = X.findIndex(function(ae) {
|
|
1801
|
-
return ae ===
|
|
1807
|
+
return ae === o.mostRecentlyFocusedNode;
|
|
1802
1808
|
});
|
|
1803
|
-
_ >= 0 && (
|
|
1809
|
+
_ >= 0 && (r.isKeyForward(o.recentNavEvent) ? _ + 1 < X.length && (Y = X[_ + 1], q = !1) : _ - 1 >= 0 && (Y = X[_ - 1], q = !1));
|
|
1804
1810
|
}
|
|
1805
1811
|
} else
|
|
1806
|
-
|
|
1812
|
+
o.containerGroups.some(function(ae) {
|
|
1807
1813
|
return ae.tabbableNodes.some(function(Ee) {
|
|
1808
1814
|
return Te(Ee) > 0;
|
|
1809
1815
|
});
|
|
@@ -1813,29 +1819,29 @@ var Qt = {
|
|
|
1813
1819
|
q && (Y = M({
|
|
1814
1820
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1815
1821
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1816
|
-
target:
|
|
1817
|
-
isBackward:
|
|
1818
|
-
})), v(Y ||
|
|
1822
|
+
target: o.mostRecentlyFocusedNode,
|
|
1823
|
+
isBackward: r.isKeyBackward(o.recentNavEvent)
|
|
1824
|
+
})), v(Y || o.mostRecentlyFocusedNode || f());
|
|
1819
1825
|
}
|
|
1820
|
-
|
|
1826
|
+
o.recentNavEvent = void 0;
|
|
1821
1827
|
}, N = function(h) {
|
|
1822
1828
|
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1823
|
-
|
|
1829
|
+
o.recentNavEvent = h;
|
|
1824
1830
|
var S = M({
|
|
1825
1831
|
event: h,
|
|
1826
1832
|
isBackward: E
|
|
1827
1833
|
});
|
|
1828
1834
|
S && (He(h) && h.preventDefault(), v(S));
|
|
1829
1835
|
}, O = function(h) {
|
|
1830
|
-
(
|
|
1836
|
+
(r.isKeyForward(h) || r.isKeyBackward(h)) && N(h, r.isKeyBackward(h));
|
|
1831
1837
|
}, V = function(h) {
|
|
1832
|
-
Oi(h) && Be(
|
|
1838
|
+
Oi(h) && Be(r.escapeDeactivates, h) !== !1 && (h.preventDefault(), s.deactivate());
|
|
1833
1839
|
}, Z = function(h) {
|
|
1834
1840
|
var E = Ye(h);
|
|
1835
|
-
A(E, h) >= 0 || Be(
|
|
1841
|
+
A(E, h) >= 0 || Be(r.clickOutsideDeactivates, h) || Be(r.allowOutsideClick, h) || (h.preventDefault(), h.stopImmediatePropagation());
|
|
1836
1842
|
}, F = function() {
|
|
1837
|
-
if (
|
|
1838
|
-
return Qt.activateTrap(i, s),
|
|
1843
|
+
if (o.active)
|
|
1844
|
+
return Qt.activateTrap(i, s), o.delayInitialFocusTimer = r.delayInitialFocus ? xt(function() {
|
|
1839
1845
|
v(f());
|
|
1840
1846
|
}) : v(f()), n.addEventListener("focusin", L, !0), n.addEventListener("mousedown", T, {
|
|
1841
1847
|
capture: !0,
|
|
@@ -1851,18 +1857,18 @@ var Qt = {
|
|
|
1851
1857
|
passive: !1
|
|
1852
1858
|
}), n.addEventListener("keydown", V), s;
|
|
1853
1859
|
}, te = function() {
|
|
1854
|
-
if (
|
|
1860
|
+
if (o.active)
|
|
1855
1861
|
return n.removeEventListener("focusin", L, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", O, !0), n.removeEventListener("keydown", V), s;
|
|
1856
1862
|
}, x = function(h) {
|
|
1857
1863
|
var E = h.some(function(S) {
|
|
1858
1864
|
var Y = Array.from(S.removedNodes);
|
|
1859
1865
|
return Y.some(function(q) {
|
|
1860
|
-
return q ===
|
|
1866
|
+
return q === o.mostRecentlyFocusedNode;
|
|
1861
1867
|
});
|
|
1862
1868
|
});
|
|
1863
1869
|
E && v(f());
|
|
1864
1870
|
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(x) : void 0, w = function() {
|
|
1865
|
-
H && (H.disconnect(),
|
|
1871
|
+
H && (H.disconnect(), o.active && !o.paused && o.containers.map(function(h) {
|
|
1866
1872
|
H.observe(h, {
|
|
1867
1873
|
subtree: !0,
|
|
1868
1874
|
childList: !0
|
|
@@ -1871,62 +1877,62 @@ var Qt = {
|
|
|
1871
1877
|
};
|
|
1872
1878
|
return s = {
|
|
1873
1879
|
get active() {
|
|
1874
|
-
return
|
|
1880
|
+
return o.active;
|
|
1875
1881
|
},
|
|
1876
1882
|
get paused() {
|
|
1877
|
-
return
|
|
1883
|
+
return o.paused;
|
|
1878
1884
|
},
|
|
1879
1885
|
activate: function(h) {
|
|
1880
|
-
if (
|
|
1886
|
+
if (o.active)
|
|
1881
1887
|
return this;
|
|
1882
1888
|
var E = c(h, "onActivate"), S = c(h, "onPostActivate"), Y = c(h, "checkCanFocusTrap");
|
|
1883
|
-
Y || C(),
|
|
1889
|
+
Y || C(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(n), E == null || E();
|
|
1884
1890
|
var q = function() {
|
|
1885
1891
|
Y && C(), F(), w(), S == null || S();
|
|
1886
1892
|
};
|
|
1887
|
-
return Y ? (Y(
|
|
1893
|
+
return Y ? (Y(o.containers.concat()).then(q, q), this) : (q(), this);
|
|
1888
1894
|
},
|
|
1889
1895
|
deactivate: function(h) {
|
|
1890
|
-
if (!
|
|
1896
|
+
if (!o.active)
|
|
1891
1897
|
return this;
|
|
1892
1898
|
var E = St({
|
|
1893
|
-
onDeactivate:
|
|
1894
|
-
onPostDeactivate:
|
|
1895
|
-
checkCanReturnFocus:
|
|
1899
|
+
onDeactivate: r.onDeactivate,
|
|
1900
|
+
onPostDeactivate: r.onPostDeactivate,
|
|
1901
|
+
checkCanReturnFocus: r.checkCanReturnFocus
|
|
1896
1902
|
}, h);
|
|
1897
|
-
clearTimeout(
|
|
1903
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, te(), o.active = !1, o.paused = !1, w(), Qt.deactivateTrap(i, s);
|
|
1898
1904
|
var S = c(E, "onDeactivate"), Y = c(E, "onPostDeactivate"), q = c(E, "checkCanReturnFocus"), J = c(E, "returnFocus", "returnFocusOnDeactivate");
|
|
1899
1905
|
S == null || S();
|
|
1900
1906
|
var X = function() {
|
|
1901
1907
|
xt(function() {
|
|
1902
|
-
J && v(y(
|
|
1908
|
+
J && v(y(o.nodeFocusedBeforeActivation)), Y == null || Y();
|
|
1903
1909
|
});
|
|
1904
1910
|
};
|
|
1905
|
-
return J && q ? (q(y(
|
|
1911
|
+
return J && q ? (q(y(o.nodeFocusedBeforeActivation)).then(X, X), this) : (X(), this);
|
|
1906
1912
|
},
|
|
1907
1913
|
pause: function(h) {
|
|
1908
|
-
return
|
|
1914
|
+
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, h)) : this;
|
|
1909
1915
|
},
|
|
1910
1916
|
unpause: function(h) {
|
|
1911
|
-
return
|
|
1917
|
+
return o.active ? (o.manuallyPaused = !1, i[i.length - 1] !== this ? this : this._setPausedState(!1, h)) : this;
|
|
1912
1918
|
},
|
|
1913
1919
|
updateContainerElements: function(h) {
|
|
1914
1920
|
var E = [].concat(h).filter(Boolean);
|
|
1915
|
-
return
|
|
1921
|
+
return o.containers = E.map(function(S) {
|
|
1916
1922
|
return typeof S == "string" ? n.querySelector(S) : S;
|
|
1917
|
-
}),
|
|
1923
|
+
}), o.active && C(), w(), this;
|
|
1918
1924
|
}
|
|
1919
1925
|
}, Object.defineProperties(s, {
|
|
1920
1926
|
_isManuallyPaused: {
|
|
1921
1927
|
value: function() {
|
|
1922
|
-
return
|
|
1928
|
+
return o.manuallyPaused;
|
|
1923
1929
|
}
|
|
1924
1930
|
},
|
|
1925
1931
|
_setPausedState: {
|
|
1926
1932
|
value: function(h, E) {
|
|
1927
|
-
if (
|
|
1933
|
+
if (o.paused === h)
|
|
1928
1934
|
return this;
|
|
1929
|
-
if (
|
|
1935
|
+
if (o.paused = h, h) {
|
|
1930
1936
|
var S = c(E, "onPause"), Y = c(E, "onPostPause");
|
|
1931
1937
|
S == null || S(), te(), w(), Y == null || Y();
|
|
1932
1938
|
} else {
|
|
@@ -1938,7 +1944,7 @@ var Qt = {
|
|
|
1938
1944
|
}
|
|
1939
1945
|
}), s.updateContainerElements(t), s;
|
|
1940
1946
|
};
|
|
1941
|
-
function
|
|
1947
|
+
function pi(e, t) {
|
|
1942
1948
|
let a = null;
|
|
1943
1949
|
function n() {
|
|
1944
1950
|
!e.value || !e.value.querySelector(
|
|
@@ -1965,7 +1971,7 @@ function EA(e) {
|
|
|
1965
1971
|
document.documentElement.style.setProperty("--global-background-color", "var(--default-global-background-color)");
|
|
1966
1972
|
});
|
|
1967
1973
|
}
|
|
1968
|
-
const
|
|
1974
|
+
const ki = {
|
|
1969
1975
|
role: "navigation",
|
|
1970
1976
|
class: "av-translate av-nav"
|
|
1971
1977
|
}, ji = { class: "av-nav__item" }, zi = ["id"], Bi = { class: "av-menu__list" }, Pi = ["hreflang", "lang", "aria-current", "href", "onClick"], Wi = /* @__PURE__ */ Q({
|
|
@@ -1981,8 +1987,8 @@ const pi = {
|
|
|
1981
1987
|
const a = t, {
|
|
1982
1988
|
collapse: n,
|
|
1983
1989
|
collapsing: i,
|
|
1984
|
-
cssExpanded:
|
|
1985
|
-
doExpand:
|
|
1990
|
+
cssExpanded: r,
|
|
1991
|
+
doExpand: o,
|
|
1986
1992
|
onTransitionEnd: s
|
|
1987
1993
|
} = Ze(), { isBelowLg: c } = nt(), A = b(() => e.id ?? `language-selector-${crypto.randomUUID()}`), d = b(
|
|
1988
1994
|
() => e.languages.find(({ codeIso: y }) => y === e.currentLanguage)
|
|
@@ -1996,11 +2002,11 @@ const pi = {
|
|
|
1996
2002
|
function v(y) {
|
|
1997
2003
|
C.value = !1, a("select", y);
|
|
1998
2004
|
}
|
|
1999
|
-
return
|
|
2000
|
-
y !== M &&
|
|
2005
|
+
return re(C, (y, M) => {
|
|
2006
|
+
y !== M && o(y);
|
|
2001
2007
|
}), (y, M) => {
|
|
2002
|
-
const T =
|
|
2003
|
-
return u(), I("nav",
|
|
2008
|
+
const T = oe;
|
|
2009
|
+
return u(), I("nav", ki, [
|
|
2004
2010
|
g("div", ji, [
|
|
2005
2011
|
W(T, {
|
|
2006
2012
|
class: "av-translate__btn",
|
|
@@ -2021,7 +2027,7 @@ const pi = {
|
|
|
2021
2027
|
ref_key: "collapse",
|
|
2022
2028
|
ref: n,
|
|
2023
2029
|
class: j(["av-collapse av-translate__menu av-menu", {
|
|
2024
|
-
"av-collapse--expanded": l(
|
|
2030
|
+
"av-collapse--expanded": l(r),
|
|
2025
2031
|
"av-collapsing": l(i)
|
|
2026
2032
|
}]),
|
|
2027
2033
|
onTransitionend: M[1] || (M[1] = (L) => l(s)(l(C)))
|
|
@@ -2043,7 +2049,7 @@ const pi = {
|
|
|
2043
2049
|
]);
|
|
2044
2050
|
};
|
|
2045
2051
|
}
|
|
2046
|
-
}),
|
|
2052
|
+
}), pt = /* @__PURE__ */ z(Wi, [["__scopeId", "data-v-4cdd2381"]]), Ui = ["title", "aria-label"], Vi = { class: "av-rich-button__line" }, Hi = { class: "av-rich-button__left" }, Ri = /* @__PURE__ */ Q({
|
|
2047
2053
|
__name: "AvRichButton",
|
|
2048
2054
|
props: {
|
|
2049
2055
|
label: {},
|
|
@@ -2051,22 +2057,21 @@ const pi = {
|
|
|
2051
2057
|
} },
|
|
2052
2058
|
iconRight: { default: () => {
|
|
2053
2059
|
} },
|
|
2054
|
-
customPadding: { default: "var(--spacing-sm)" }
|
|
2055
|
-
onClick: { type: Function }
|
|
2060
|
+
customPadding: { default: "var(--spacing-sm)" }
|
|
2056
2061
|
},
|
|
2062
|
+
emits: ["click"],
|
|
2057
2063
|
setup(e) {
|
|
2058
2064
|
return se((t) => ({
|
|
2059
|
-
|
|
2065
|
+
v121e8ff2: t.customPadding
|
|
2060
2066
|
})), (t, a) => (u(), I("button", {
|
|
2061
2067
|
class: "av-rich-button",
|
|
2062
2068
|
title: e.label,
|
|
2063
2069
|
"aria-label": e.label,
|
|
2064
|
-
onClick: a[0] || (a[0] = (n) =>
|
|
2065
|
-
})
|
|
2070
|
+
onClick: a[0] || (a[0] = (n) => t.$emit("click", n))
|
|
2066
2071
|
}, [
|
|
2067
2072
|
g("div", Vi, [
|
|
2068
2073
|
g("div", Hi, [
|
|
2069
|
-
e.iconLeft ? (u(),
|
|
2074
|
+
e.iconLeft ? (u(), p(ne, {
|
|
2070
2075
|
key: 0,
|
|
2071
2076
|
name: e.iconLeft,
|
|
2072
2077
|
color: "var(--dark-background-primary1)",
|
|
@@ -2074,7 +2079,7 @@ const pi = {
|
|
|
2074
2079
|
}, null, 8, ["name"])) : D("", !0),
|
|
2075
2080
|
P(t.$slots, "default", {}, void 0, !0)
|
|
2076
2081
|
]),
|
|
2077
|
-
e.iconRight ? (u(),
|
|
2082
|
+
e.iconRight ? (u(), p(ne, {
|
|
2078
2083
|
key: 0,
|
|
2079
2084
|
name: e.iconRight,
|
|
2080
2085
|
color: "var(--dark-background-primary1)",
|
|
@@ -2083,7 +2088,7 @@ const pi = {
|
|
|
2083
2088
|
])
|
|
2084
2089
|
], 8, Ui));
|
|
2085
2090
|
}
|
|
2086
|
-
}), NA = /* @__PURE__ */ z(Ri, [["__scopeId", "data-v-
|
|
2091
|
+
}), NA = /* @__PURE__ */ z(Ri, [["__scopeId", "data-v-bc95d37c"]]), Zi = ["id", "name", "value", "checked", "required", "data-testid", "data-test", "tabindex", "aria-describedby"], Xi = ["for"], Yi = { class: "label-container" }, qi = {
|
|
2087
2092
|
key: 0,
|
|
2088
2093
|
class: "av-hint-text"
|
|
2089
2094
|
}, Fi = /* @__PURE__ */ Q({
|
|
@@ -2108,10 +2113,10 @@ const pi = {
|
|
|
2108
2113
|
}),
|
|
2109
2114
|
emits: ["update:modelValue"],
|
|
2110
2115
|
setup(e) {
|
|
2111
|
-
const t = b(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = b(() => e.errorMessage || e.validMessage), n = b(() => a.value ? `message-${t.value}` : void 0), i = Le(e, "modelValue"),
|
|
2116
|
+
const t = b(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = b(() => e.errorMessage || e.validMessage), n = b(() => a.value ? `message-${t.value}` : void 0), i = Le(e, "modelValue"), r = b(() => i.value.includes(e.value)), o = b(() => r.value ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE), s = b(() => r.value ? "var(--dark-background-primary1)" : "var(--icon)"), c = b(() => e.small ? 1 : 1.5), A = b(() => e.small ? r.value ? "caption-bold" : "caption-regular" : r.value ? "b2-bold" : "b2-regular");
|
|
2112
2117
|
return (d, f) => {
|
|
2113
|
-
const C = ne, m =
|
|
2114
|
-
return u(),
|
|
2118
|
+
const C = ne, m = pe, v = $t;
|
|
2119
|
+
return u(), p(v, {
|
|
2115
2120
|
inline: e.inline,
|
|
2116
2121
|
disabled: e.disabled
|
|
2117
2122
|
}, {
|
|
@@ -2123,7 +2128,7 @@ const pi = {
|
|
|
2123
2128
|
class: "av-sr-only",
|
|
2124
2129
|
type: "checkbox",
|
|
2125
2130
|
value: e.value,
|
|
2126
|
-
checked: l(
|
|
2131
|
+
checked: l(r),
|
|
2127
2132
|
required: e.required
|
|
2128
2133
|
}, d.$attrs, {
|
|
2129
2134
|
"data-testid": `input-checkbox-${l(t)}`,
|
|
@@ -2140,11 +2145,11 @@ const pi = {
|
|
|
2140
2145
|
g("div", Yi, [
|
|
2141
2146
|
W(C, {
|
|
2142
2147
|
class: "option-checkbox",
|
|
2143
|
-
name: l(
|
|
2148
|
+
name: l(o),
|
|
2144
2149
|
color: l(s),
|
|
2145
2150
|
size: l(c)
|
|
2146
2151
|
}, null, 8, ["name", "color", "size"]),
|
|
2147
|
-
e.icon ? (u(),
|
|
2152
|
+
e.icon ? (u(), p(C, {
|
|
2148
2153
|
key: 0,
|
|
2149
2154
|
class: "option-icon",
|
|
2150
2155
|
name: e.icon,
|
|
@@ -2190,7 +2195,7 @@ const pi = {
|
|
|
2190
2195
|
const t = b(() => e.id ?? `checkboxes-group-${crypto.randomUUID()}`);
|
|
2191
2196
|
return (a, n) => {
|
|
2192
2197
|
const i = Jt;
|
|
2193
|
-
return u(),
|
|
2198
|
+
return u(), p(i, {
|
|
2194
2199
|
id: l(t),
|
|
2195
2200
|
legend: e.legend,
|
|
2196
2201
|
"legend-id": e.legendId,
|
|
@@ -2221,8 +2226,8 @@ const pi = {
|
|
|
2221
2226
|
},
|
|
2222
2227
|
setup(e) {
|
|
2223
2228
|
return (t, a) => {
|
|
2224
|
-
const n =
|
|
2225
|
-
return u(),
|
|
2229
|
+
const n = pe;
|
|
2230
|
+
return u(), p(n, {
|
|
2226
2231
|
type: e.error ? "error" : "success",
|
|
2227
2232
|
message: e.error ? e.error : e.validMessage
|
|
2228
2233
|
}, null, 8, ["type", "message"]);
|
|
@@ -2231,7 +2236,7 @@ const pi = {
|
|
|
2231
2236
|
}), _i = { class: "file-upload-content" }, el = { class: "left-content-container" }, tl = { class: "content-container" }, al = { key: 0 }, nl = { class: "b2-bold" }, il = {
|
|
2232
2237
|
key: 1,
|
|
2233
2238
|
class: "title-container"
|
|
2234
|
-
}, ll = { class: "b2-regular" },
|
|
2239
|
+
}, ll = { class: "b2-regular" }, rl = { class: "caption-light" }, ol = {
|
|
2235
2240
|
key: 0,
|
|
2236
2241
|
class: "right-icon-container"
|
|
2237
2242
|
}, sl = ["id", "aria-describedby", "disabled", "aria-disabled", "accept"], cl = { class: "caption-light" }, Al = /* @__PURE__ */ Q({
|
|
@@ -2259,23 +2264,23 @@ const pi = {
|
|
|
2259
2264
|
se((v) => ({
|
|
2260
2265
|
v8df8b300: v.maxWidth
|
|
2261
2266
|
}));
|
|
2262
|
-
const a = t, n = b(() => e.id ?? `file-upload-${crypto.randomUUID()}`), i = b(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept),
|
|
2263
|
-
function
|
|
2267
|
+
const a = t, n = b(() => e.id ?? `file-upload-${crypto.randomUUID()}`), i = b(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), r = U(!1);
|
|
2268
|
+
function o(v) {
|
|
2264
2269
|
const y = i.value;
|
|
2265
2270
|
return y ? y.split(",").map((T) => T.trim().toLowerCase()).some((T) => T.startsWith(".") ? v.name.toLowerCase().endsWith(T) : T.includes("/") ? v.type === T || v.type.startsWith(`${T.split("/")[0]}/`) : !1) : !0;
|
|
2266
2271
|
}
|
|
2267
2272
|
async function s(v) {
|
|
2268
2273
|
var M, T;
|
|
2269
|
-
if (v.preventDefault(),
|
|
2274
|
+
if (v.preventDefault(), r.value = !1, e.disabled || !((T = (M = v.dataTransfer) == null ? void 0 : M.files) != null && T.length))
|
|
2270
2275
|
return;
|
|
2271
|
-
const y = Array.from(v.dataTransfer.files).filter(
|
|
2276
|
+
const y = Array.from(v.dataTransfer.files).filter(o);
|
|
2272
2277
|
await at(), y.length ? (a("change", y), a("update:modelValue", y[0] ?? "")) : a("onDropAcceptTypeError");
|
|
2273
2278
|
}
|
|
2274
2279
|
function c(v) {
|
|
2275
|
-
v.preventDefault(), e.disabled || (
|
|
2280
|
+
v.preventDefault(), e.disabled || (r.value = !0);
|
|
2276
2281
|
}
|
|
2277
2282
|
function A() {
|
|
2278
|
-
|
|
2283
|
+
r.value = !1;
|
|
2279
2284
|
}
|
|
2280
2285
|
function d(v) {
|
|
2281
2286
|
const y = v.target.files;
|
|
@@ -2289,7 +2294,7 @@ const pi = {
|
|
|
2289
2294
|
"av-upload-group--error": e.error,
|
|
2290
2295
|
"av-upload-group--valid": e.validMessage,
|
|
2291
2296
|
"av-upload-group--disabled": e.disabled,
|
|
2292
|
-
"drag-over":
|
|
2297
|
+
"drag-over": r.value
|
|
2293
2298
|
}
|
|
2294
2299
|
],
|
|
2295
2300
|
"aria-label": e.ariaLabel,
|
|
@@ -2302,7 +2307,7 @@ const pi = {
|
|
|
2302
2307
|
v ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (y = e.onDeleteFile) == null || y.call(e);
|
|
2303
2308
|
}
|
|
2304
2309
|
return (v, y) => (u(), I($, null, [
|
|
2305
|
-
(u(),
|
|
2310
|
+
(u(), p(Me(l(f) ? "div" : "label"), ee(l(f) ? {} : l(C), {
|
|
2306
2311
|
class: l(f) ? "file-preview-container" : ""
|
|
2307
2312
|
}), {
|
|
2308
2313
|
default: G(() => [
|
|
@@ -2324,20 +2329,20 @@ const pi = {
|
|
|
2324
2329
|
g("span", nl, B(e.fileName || e.modelValue.name), 1)
|
|
2325
2330
|
])) : (u(), I("div", il, [
|
|
2326
2331
|
g("span", ll, B(e.title), 1),
|
|
2327
|
-
g("span",
|
|
2332
|
+
g("span", rl, B(e.description), 1)
|
|
2328
2333
|
])),
|
|
2329
2334
|
W($i, {
|
|
2330
2335
|
"valid-message": e.validMessage,
|
|
2331
2336
|
error: e.error
|
|
2332
2337
|
}, null, 8, ["valid-message", "error"])
|
|
2333
2338
|
]),
|
|
2334
|
-
e.disabled ? D("", !0) : (u(), I("div",
|
|
2335
|
-
l(f) ? (u(),
|
|
2339
|
+
e.disabled ? D("", !0) : (u(), I("div", ol, [
|
|
2340
|
+
l(f) ? (u(), p(oe, {
|
|
2336
2341
|
key: 0,
|
|
2337
2342
|
label: e.deleteButtonLabel,
|
|
2338
2343
|
theme: "SECONDARY",
|
|
2339
2344
|
onClick: y[0] || (y[0] = () => m(e.modelValue))
|
|
2340
|
-
}, null, 8, ["label"])) : (u(),
|
|
2345
|
+
}, null, 8, ["label"])) : (u(), p(ne, {
|
|
2341
2346
|
key: 1,
|
|
2342
2347
|
size: 1.5,
|
|
2343
2348
|
name: l(R).TRAY_UPLOAD,
|
|
@@ -2366,9 +2371,9 @@ const pi = {
|
|
|
2366
2371
|
])
|
|
2367
2372
|
], 64));
|
|
2368
2373
|
}
|
|
2369
|
-
}), TA = /* @__PURE__ */ z(Al, [["__scopeId", "data-v-b3d7bf33"]]), ua = 6048e5, ul = 864e5,
|
|
2374
|
+
}), TA = /* @__PURE__ */ z(Al, [["__scopeId", "data-v-b3d7bf33"]]), ua = 6048e5, ul = 864e5, kt = Symbol.for("constructDateFrom");
|
|
2370
2375
|
function Ce(e, t) {
|
|
2371
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
2376
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2372
2377
|
}
|
|
2373
2378
|
function Ie(e, t) {
|
|
2374
2379
|
return Ce(t || e, e);
|
|
@@ -2379,8 +2384,8 @@ function it() {
|
|
|
2379
2384
|
}
|
|
2380
2385
|
function Re(e, t) {
|
|
2381
2386
|
var s, c, A, d;
|
|
2382
|
-
const a = it(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.weekStartsOn) ?? a.weekStartsOn ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.weekStartsOn) ?? 0, i = Ie(e, t == null ? void 0 : t.in),
|
|
2383
|
-
return i.setDate(i.getDate() -
|
|
2387
|
+
const a = it(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.weekStartsOn) ?? a.weekStartsOn ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.weekStartsOn) ?? 0, i = Ie(e, t == null ? void 0 : t.in), r = i.getDay(), o = (r < n ? 7 : 0) + r - n;
|
|
2388
|
+
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
2384
2389
|
}
|
|
2385
2390
|
function _e(e, t) {
|
|
2386
2391
|
return Re(e, { ...t, weekStartsOn: 1 });
|
|
@@ -2388,10 +2393,10 @@ function _e(e, t) {
|
|
|
2388
2393
|
function da(e, t) {
|
|
2389
2394
|
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = Ce(a, 0);
|
|
2390
2395
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
const s = _e(
|
|
2394
|
-
return a.getTime() >=
|
|
2396
|
+
const r = _e(i), o = Ce(a, 0);
|
|
2397
|
+
o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2398
|
+
const s = _e(o);
|
|
2399
|
+
return a.getTime() >= r.getTime() ? n + 1 : a.getTime() >= s.getTime() ? n : n - 1;
|
|
2395
2400
|
}
|
|
2396
2401
|
function jt(e) {
|
|
2397
2402
|
const t = Ie(e), a = new Date(
|
|
@@ -2423,7 +2428,7 @@ function vl(e, t, a) {
|
|
|
2423
2428
|
a == null ? void 0 : a.in,
|
|
2424
2429
|
e,
|
|
2425
2430
|
t
|
|
2426
|
-
),
|
|
2431
|
+
), r = zt(n), o = zt(i), s = +r - jt(r), c = +o - jt(o);
|
|
2427
2432
|
return Math.round((s - c) / ul);
|
|
2428
2433
|
}
|
|
2429
2434
|
function ml(e, t) {
|
|
@@ -2554,14 +2559,14 @@ function Pe(e) {
|
|
|
2554
2559
|
const n = a != null && a.context ? String(a.context) : "standalone";
|
|
2555
2560
|
let i;
|
|
2556
2561
|
if (n === "formatting" && e.formattingValues) {
|
|
2557
|
-
const
|
|
2558
|
-
i = e.formattingValues[s] || e.formattingValues[
|
|
2562
|
+
const o = e.defaultFormattingWidth || e.defaultWidth, s = a != null && a.width ? String(a.width) : o;
|
|
2563
|
+
i = e.formattingValues[s] || e.formattingValues[o];
|
|
2559
2564
|
} else {
|
|
2560
|
-
const
|
|
2561
|
-
i = e.values[s] || e.values[
|
|
2565
|
+
const o = e.defaultWidth, s = a != null && a.width ? String(a.width) : e.defaultWidth;
|
|
2566
|
+
i = e.values[s] || e.values[o];
|
|
2562
2567
|
}
|
|
2563
|
-
const
|
|
2564
|
-
return i[
|
|
2568
|
+
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
2569
|
+
return i[r];
|
|
2565
2570
|
};
|
|
2566
2571
|
}
|
|
2567
2572
|
const Dl = {
|
|
@@ -2689,7 +2694,7 @@ const Dl = {
|
|
|
2689
2694
|
return a + "rd";
|
|
2690
2695
|
}
|
|
2691
2696
|
return a + "th";
|
|
2692
|
-
},
|
|
2697
|
+
}, pl = {
|
|
2693
2698
|
ordinalNumber: xl,
|
|
2694
2699
|
era: Pe({
|
|
2695
2700
|
values: Dl,
|
|
@@ -2717,23 +2722,23 @@ const Dl = {
|
|
|
2717
2722
|
};
|
|
2718
2723
|
function We(e) {
|
|
2719
2724
|
return (t, a = {}) => {
|
|
2720
|
-
const n = a.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth],
|
|
2721
|
-
if (!
|
|
2725
|
+
const n = a.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], r = t.match(i);
|
|
2726
|
+
if (!r)
|
|
2722
2727
|
return null;
|
|
2723
|
-
const
|
|
2728
|
+
const o = r[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? jl(s, (f) => f.test(o)) : (
|
|
2724
2729
|
// [TODO] -- I challenge you to fix the type
|
|
2725
|
-
|
|
2730
|
+
kl(s, (f) => f.test(o))
|
|
2726
2731
|
);
|
|
2727
2732
|
let A;
|
|
2728
2733
|
A = e.valueCallback ? e.valueCallback(c) : c, A = a.valueCallback ? (
|
|
2729
2734
|
// [TODO] -- I challenge you to fix the type
|
|
2730
2735
|
a.valueCallback(A)
|
|
2731
2736
|
) : A;
|
|
2732
|
-
const d = t.slice(
|
|
2737
|
+
const d = t.slice(o.length);
|
|
2733
2738
|
return { value: A, rest: d };
|
|
2734
2739
|
};
|
|
2735
2740
|
}
|
|
2736
|
-
function
|
|
2741
|
+
function kl(e, t) {
|
|
2737
2742
|
for (const a in e)
|
|
2738
2743
|
if (Object.prototype.hasOwnProperty.call(e, a) && t(e[a]))
|
|
2739
2744
|
return a;
|
|
@@ -2747,12 +2752,12 @@ function zl(e) {
|
|
|
2747
2752
|
return (t, a = {}) => {
|
|
2748
2753
|
const n = t.match(e.matchPattern);
|
|
2749
2754
|
if (!n) return null;
|
|
2750
|
-
const i = n[0],
|
|
2751
|
-
if (!
|
|
2752
|
-
let
|
|
2753
|
-
|
|
2755
|
+
const i = n[0], r = t.match(e.parsePattern);
|
|
2756
|
+
if (!r) return null;
|
|
2757
|
+
let o = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
2758
|
+
o = a.valueCallback ? a.valueCallback(o) : o;
|
|
2754
2759
|
const s = t.slice(i.length);
|
|
2755
|
-
return { value:
|
|
2760
|
+
return { value: o, rest: s };
|
|
2756
2761
|
};
|
|
2757
2762
|
}
|
|
2758
2763
|
const Bl = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, Wl = {
|
|
@@ -2864,7 +2869,7 @@ const Bl = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, Wl = {
|
|
|
2864
2869
|
formatDistance: hl,
|
|
2865
2870
|
formatLong: El,
|
|
2866
2871
|
formatRelative: Tl,
|
|
2867
|
-
localize:
|
|
2872
|
+
localize: pl,
|
|
2868
2873
|
match: Kl,
|
|
2869
2874
|
options: {
|
|
2870
2875
|
weekStartsOn: 0,
|
|
@@ -2881,19 +2886,19 @@ function $l(e, t) {
|
|
|
2881
2886
|
}
|
|
2882
2887
|
function va(e, t) {
|
|
2883
2888
|
var d, f, C, m;
|
|
2884
|
-
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = it(),
|
|
2885
|
-
|
|
2886
|
-
const s = Re(
|
|
2887
|
-
c.setFullYear(n, 0,
|
|
2889
|
+
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = it(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (C = i.locale) == null ? void 0 : C.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2890
|
+
o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
|
|
2891
|
+
const s = Re(o, t), c = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2892
|
+
c.setFullYear(n, 0, r), c.setHours(0, 0, 0, 0);
|
|
2888
2893
|
const A = Re(c, t);
|
|
2889
2894
|
return +a >= +s ? n + 1 : +a >= +A ? n : n - 1;
|
|
2890
2895
|
}
|
|
2891
2896
|
function _l(e, t) {
|
|
2892
2897
|
var s, c, A, d;
|
|
2893
|
-
const a = it(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = va(e, t),
|
|
2894
|
-
return
|
|
2898
|
+
const a = it(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = va(e, t), r = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2899
|
+
return r.setFullYear(i, 0, n), r.setHours(0, 0, 0, 0), Re(r, t);
|
|
2895
2900
|
}
|
|
2896
|
-
function
|
|
2901
|
+
function er(e, t) {
|
|
2897
2902
|
const a = Ie(e, t == null ? void 0 : t.in), n = +Re(a, t) - +_l(a, t);
|
|
2898
2903
|
return Math.round(n / ua) + 1;
|
|
2899
2904
|
}
|
|
@@ -2991,12 +2996,12 @@ const he = {
|
|
|
2991
2996
|
},
|
|
2992
2997
|
// Local week-numbering year
|
|
2993
2998
|
Y: function(e, t, a, n) {
|
|
2994
|
-
const i = va(e, n),
|
|
2999
|
+
const i = va(e, n), r = i > 0 ? i : 1 - i;
|
|
2995
3000
|
if (t === "YY") {
|
|
2996
|
-
const
|
|
2997
|
-
return K(
|
|
3001
|
+
const o = r % 100;
|
|
3002
|
+
return K(o, 2);
|
|
2998
3003
|
}
|
|
2999
|
-
return t === "Yo" ? a.ordinalNumber(
|
|
3004
|
+
return t === "Yo" ? a.ordinalNumber(r, { unit: "year" }) : K(r, t.length);
|
|
3000
3005
|
},
|
|
3001
3006
|
// ISO week-numbering year
|
|
3002
3007
|
R: function(e, t) {
|
|
@@ -3145,7 +3150,7 @@ const he = {
|
|
|
3145
3150
|
},
|
|
3146
3151
|
// Local week of year
|
|
3147
3152
|
w: function(e, t, a, n) {
|
|
3148
|
-
const i =
|
|
3153
|
+
const i = er(e, n);
|
|
3149
3154
|
return t === "wo" ? a.ordinalNumber(i, { unit: "week" }) : K(i, t.length);
|
|
3150
3155
|
},
|
|
3151
3156
|
// ISO week of year
|
|
@@ -3197,17 +3202,17 @@ const he = {
|
|
|
3197
3202
|
},
|
|
3198
3203
|
// Local day of week
|
|
3199
3204
|
e: function(e, t, a, n) {
|
|
3200
|
-
const i = e.getDay(),
|
|
3205
|
+
const i = e.getDay(), r = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
3201
3206
|
switch (t) {
|
|
3202
3207
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
3203
3208
|
case "e":
|
|
3204
|
-
return String(
|
|
3209
|
+
return String(r);
|
|
3205
3210
|
// Padded numerical value
|
|
3206
3211
|
case "ee":
|
|
3207
|
-
return K(
|
|
3212
|
+
return K(r, 2);
|
|
3208
3213
|
// 1st, 2nd, ..., 7th
|
|
3209
3214
|
case "eo":
|
|
3210
|
-
return a.ordinalNumber(
|
|
3215
|
+
return a.ordinalNumber(r, { unit: "day" });
|
|
3211
3216
|
case "eee":
|
|
3212
3217
|
return a.day(i, {
|
|
3213
3218
|
width: "abbreviated",
|
|
@@ -3236,17 +3241,17 @@ const he = {
|
|
|
3236
3241
|
},
|
|
3237
3242
|
// Stand-alone local day of week
|
|
3238
3243
|
c: function(e, t, a, n) {
|
|
3239
|
-
const i = e.getDay(),
|
|
3244
|
+
const i = e.getDay(), r = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
3240
3245
|
switch (t) {
|
|
3241
3246
|
// Numerical value (same as in `e`)
|
|
3242
3247
|
case "c":
|
|
3243
|
-
return String(
|
|
3248
|
+
return String(r);
|
|
3244
3249
|
// Padded numerical value
|
|
3245
3250
|
case "cc":
|
|
3246
|
-
return K(
|
|
3251
|
+
return K(r, t.length);
|
|
3247
3252
|
// 1st, 2nd, ..., 7th
|
|
3248
3253
|
case "co":
|
|
3249
|
-
return a.ordinalNumber(
|
|
3254
|
+
return a.ordinalNumber(r, { unit: "day" });
|
|
3250
3255
|
case "ccc":
|
|
3251
3256
|
return a.day(i, {
|
|
3252
3257
|
width: "abbreviated",
|
|
@@ -3518,15 +3523,15 @@ const he = {
|
|
|
3518
3523
|
}
|
|
3519
3524
|
};
|
|
3520
3525
|
function Pt(e, t = "") {
|
|
3521
|
-
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60),
|
|
3522
|
-
return
|
|
3526
|
+
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), r = n % 60;
|
|
3527
|
+
return r === 0 ? a + String(i) : a + String(i) + t + K(r, 2);
|
|
3523
3528
|
}
|
|
3524
3529
|
function Wt(e, t) {
|
|
3525
3530
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + K(Math.abs(e) / 60, 2) : Ne(e, t);
|
|
3526
3531
|
}
|
|
3527
3532
|
function Ne(e, t = "") {
|
|
3528
|
-
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = K(Math.trunc(n / 60), 2),
|
|
3529
|
-
return a + i + t +
|
|
3533
|
+
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = K(Math.trunc(n / 60), 2), r = K(n % 60, 2);
|
|
3534
|
+
return a + i + t + r;
|
|
3530
3535
|
}
|
|
3531
3536
|
const Ut = (e, t) => {
|
|
3532
3537
|
switch (e) {
|
|
@@ -3552,67 +3557,67 @@ const Ut = (e, t) => {
|
|
|
3552
3557
|
default:
|
|
3553
3558
|
return t.time({ width: "full" });
|
|
3554
3559
|
}
|
|
3555
|
-
},
|
|
3560
|
+
}, tr = (e, t) => {
|
|
3556
3561
|
const a = e.match(/(P+)(p+)?/) || [], n = a[1], i = a[2];
|
|
3557
3562
|
if (!i)
|
|
3558
3563
|
return Ut(e, t);
|
|
3559
|
-
let
|
|
3564
|
+
let r;
|
|
3560
3565
|
switch (n) {
|
|
3561
3566
|
case "P":
|
|
3562
|
-
|
|
3567
|
+
r = t.dateTime({ width: "short" });
|
|
3563
3568
|
break;
|
|
3564
3569
|
case "PP":
|
|
3565
|
-
|
|
3570
|
+
r = t.dateTime({ width: "medium" });
|
|
3566
3571
|
break;
|
|
3567
3572
|
case "PPP":
|
|
3568
|
-
|
|
3573
|
+
r = t.dateTime({ width: "long" });
|
|
3569
3574
|
break;
|
|
3570
3575
|
case "PPPP":
|
|
3571
3576
|
default:
|
|
3572
|
-
|
|
3577
|
+
r = t.dateTime({ width: "full" });
|
|
3573
3578
|
break;
|
|
3574
3579
|
}
|
|
3575
|
-
return
|
|
3576
|
-
},
|
|
3580
|
+
return r.replace("{{date}}", Ut(n, t)).replace("{{time}}", ma(i, t));
|
|
3581
|
+
}, ar = {
|
|
3577
3582
|
p: ma,
|
|
3578
|
-
P:
|
|
3579
|
-
},
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3583
|
+
P: tr
|
|
3584
|
+
}, nr = /^D+$/, ir = /^Y+$/, lr = ["D", "DD", "YY", "YYYY"];
|
|
3585
|
+
function rr(e) {
|
|
3586
|
+
return nr.test(e);
|
|
3582
3587
|
}
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3588
|
+
function or(e) {
|
|
3589
|
+
return ir.test(e);
|
|
3585
3590
|
}
|
|
3586
|
-
function
|
|
3587
|
-
const n =
|
|
3588
|
-
if (console.warn(n),
|
|
3591
|
+
function sr(e, t, a) {
|
|
3592
|
+
const n = cr(e, t, a);
|
|
3593
|
+
if (console.warn(n), lr.includes(e)) throw new RangeError(n);
|
|
3589
3594
|
}
|
|
3590
|
-
function
|
|
3595
|
+
function cr(e, t, a) {
|
|
3591
3596
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
3592
3597
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3593
3598
|
}
|
|
3594
|
-
const
|
|
3595
|
-
function
|
|
3599
|
+
const Ar = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ur = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dr = /^'([^]*?)'?$/, fr = /''/g, vr = /[a-zA-Z]/;
|
|
3600
|
+
function mr(e, t, a) {
|
|
3596
3601
|
var d, f, C, m;
|
|
3597
|
-
const n = it(), i = n.locale ?? Gl,
|
|
3602
|
+
const n = it(), i = n.locale ?? Gl, r = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = n.weekStartsOn ?? ((m = (C = n.locale) == null ? void 0 : C.options) == null ? void 0 : m.weekStartsOn) ?? 0, s = Ie(e, a == null ? void 0 : a.in);
|
|
3598
3603
|
if (!fa(s))
|
|
3599
3604
|
throw new RangeError("Invalid time value");
|
|
3600
|
-
let c = t.match(
|
|
3605
|
+
let c = t.match(ur).map((v) => {
|
|
3601
3606
|
const y = v[0];
|
|
3602
3607
|
if (y === "p" || y === "P") {
|
|
3603
|
-
const M =
|
|
3608
|
+
const M = ar[y];
|
|
3604
3609
|
return M(v, i.formatLong);
|
|
3605
3610
|
}
|
|
3606
3611
|
return v;
|
|
3607
|
-
}).join("").match(
|
|
3612
|
+
}).join("").match(Ar).map((v) => {
|
|
3608
3613
|
if (v === "''")
|
|
3609
3614
|
return { isToken: !1, value: "'" };
|
|
3610
3615
|
const y = v[0];
|
|
3611
3616
|
if (y === "'")
|
|
3612
|
-
return { isToken: !1, value:
|
|
3617
|
+
return { isToken: !1, value: Ir(v) };
|
|
3613
3618
|
if (Bt[y])
|
|
3614
3619
|
return { isToken: !0, value: v };
|
|
3615
|
-
if (y.match(
|
|
3620
|
+
if (y.match(vr))
|
|
3616
3621
|
throw new RangeError(
|
|
3617
3622
|
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
3618
3623
|
);
|
|
@@ -3620,38 +3625,38 @@ function Io(e, t, a) {
|
|
|
3620
3625
|
});
|
|
3621
3626
|
i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
|
|
3622
3627
|
const A = {
|
|
3623
|
-
firstWeekContainsDate:
|
|
3624
|
-
weekStartsOn:
|
|
3628
|
+
firstWeekContainsDate: r,
|
|
3629
|
+
weekStartsOn: o,
|
|
3625
3630
|
locale: i
|
|
3626
3631
|
};
|
|
3627
3632
|
return c.map((v) => {
|
|
3628
3633
|
if (!v.isToken) return v.value;
|
|
3629
3634
|
const y = v.value;
|
|
3630
|
-
(
|
|
3635
|
+
(or(y) || rr(y)) && sr(y, t, String(e));
|
|
3631
3636
|
const M = Bt[y[0]];
|
|
3632
3637
|
return M(s, y, i.localize, A);
|
|
3633
3638
|
}).join("");
|
|
3634
3639
|
}
|
|
3635
|
-
function
|
|
3636
|
-
const t = e.match(
|
|
3637
|
-
return t ? t[1].replace(
|
|
3640
|
+
function Ir(e) {
|
|
3641
|
+
const t = e.match(dr);
|
|
3642
|
+
return t ? t[1].replace(fr, "'") : e;
|
|
3638
3643
|
}
|
|
3639
|
-
const
|
|
3644
|
+
const gr = { class: "av-input__wrapper" }, br = { class: "av-input__control" }, hr = {
|
|
3640
3645
|
key: 0,
|
|
3641
3646
|
class: "av-input__prefix"
|
|
3642
|
-
},
|
|
3647
|
+
}, yr = ["for"], Cr = {
|
|
3643
3648
|
key: 0,
|
|
3644
3649
|
class: "required"
|
|
3645
|
-
},
|
|
3650
|
+
}, Mr = {
|
|
3646
3651
|
key: 0,
|
|
3647
3652
|
class: "av-hint-text"
|
|
3648
|
-
},
|
|
3653
|
+
}, Er = {
|
|
3649
3654
|
key: 0,
|
|
3650
3655
|
class: "caption-light"
|
|
3651
|
-
},
|
|
3656
|
+
}, Nr = {
|
|
3652
3657
|
key: 0,
|
|
3653
3658
|
role: "alert"
|
|
3654
|
-
},
|
|
3659
|
+
}, Tr = { key: 1 }, Dr = /* @__PURE__ */ Q({
|
|
3655
3660
|
inheritAttrs: !1,
|
|
3656
3661
|
__name: "AvInput",
|
|
3657
3662
|
props: {
|
|
@@ -3686,10 +3691,10 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3686
3691
|
v74ffa07a: l(y),
|
|
3687
3692
|
c75a0fd0: M.textareaMinHeight
|
|
3688
3693
|
}));
|
|
3689
|
-
const n = a, i = b(() => e.id ?? `input-${crypto.randomUUID()}`),
|
|
3694
|
+
const n = a, i = b(() => e.id ?? `input-${crypto.randomUUID()}`), r = b(() => e.errorMessage ? Array.isArray(e.errorMessage) ? e.errorMessage : [e.errorMessage] : []), o = b(() => e.validMessage ? Array.isArray(e.validMessage) ? e.validMessage : [e.validMessage] : []), s = b(() => !!e.errorMessage), c = b(() => d(e.minDate)), A = b(() => d(e.maxDate));
|
|
3690
3695
|
function d(M) {
|
|
3691
3696
|
if (!(e.type !== "date" && e.type !== "datetime-local" || M === void 0 || !fa(M)))
|
|
3692
|
-
return
|
|
3697
|
+
return mr(M, "yyyy-MM-dd");
|
|
3693
3698
|
}
|
|
3694
3699
|
const f = U(null), C = () => {
|
|
3695
3700
|
var M;
|
|
@@ -3701,16 +3706,16 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3701
3706
|
return t({
|
|
3702
3707
|
focus: C
|
|
3703
3708
|
}), (M, T) => {
|
|
3704
|
-
const L =
|
|
3709
|
+
const L = pe;
|
|
3705
3710
|
return u(), I("div", {
|
|
3706
3711
|
class: j(["av-input", {
|
|
3707
3712
|
"av-input--date": e.type === "date",
|
|
3708
3713
|
"av-input--no-radius": e.noRadius
|
|
3709
3714
|
}])
|
|
3710
3715
|
}, [
|
|
3711
|
-
g("div",
|
|
3712
|
-
g("div",
|
|
3713
|
-
e.prefixIcon ? (u(), I("div",
|
|
3716
|
+
g("div", gr, [
|
|
3717
|
+
g("div", br, [
|
|
3718
|
+
e.prefixIcon ? (u(), I("div", hr, [
|
|
3714
3719
|
W(ne, {
|
|
3715
3720
|
name: e.prefixIcon,
|
|
3716
3721
|
size: 1.2
|
|
@@ -3725,12 +3730,12 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3725
3730
|
}, [
|
|
3726
3731
|
De(B(e.label) + " ", 1),
|
|
3727
3732
|
P(M.$slots, "requiredTip", {}, () => [
|
|
3728
|
-
e.required ? (u(), I("span",
|
|
3733
|
+
e.required ? (u(), I("span", Cr, "*")) : D("", !0)
|
|
3729
3734
|
], !0),
|
|
3730
|
-
e.hint ? (u(), I("span",
|
|
3735
|
+
e.hint ? (u(), I("span", Mr, B(e.hint), 1)) : D("", !0)
|
|
3731
3736
|
], 2)
|
|
3732
|
-
], 10,
|
|
3733
|
-
(u(),
|
|
3737
|
+
], 10, yr),
|
|
3738
|
+
(u(), p(Me(l(m)), ee({
|
|
3734
3739
|
id: l(i),
|
|
3735
3740
|
ref_key: "__input",
|
|
3736
3741
|
ref: f,
|
|
@@ -3758,29 +3763,29 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3758
3763
|
}, () => {
|
|
3759
3764
|
var N;
|
|
3760
3765
|
return [
|
|
3761
|
-
e.maxlength ? (u(), I("span",
|
|
3766
|
+
e.maxlength ? (u(), I("span", Er, B((N = e.modelValue) == null ? void 0 : N.toString().length) + " / " + B(e.maxlength), 1)) : D("", !0)
|
|
3762
3767
|
];
|
|
3763
3768
|
}, !0)
|
|
3764
3769
|
]),
|
|
3765
|
-
l(
|
|
3770
|
+
l(r).length > 0 ? (u(), I("div", Nr, [
|
|
3766
3771
|
W(L, {
|
|
3767
|
-
message: l(
|
|
3772
|
+
message: l(r),
|
|
3768
3773
|
type: "error"
|
|
3769
3774
|
}, null, 8, ["message"])
|
|
3770
3775
|
])) : D("", !0),
|
|
3771
|
-
l(
|
|
3776
|
+
l(o).length > 0 ? (u(), I("div", Tr, [
|
|
3772
3777
|
W(L, {
|
|
3773
|
-
message: l(
|
|
3778
|
+
message: l(o),
|
|
3774
3779
|
type: "success"
|
|
3775
3780
|
}, null, 8, ["message"])
|
|
3776
3781
|
])) : D("", !0)
|
|
3777
3782
|
], 2);
|
|
3778
3783
|
};
|
|
3779
3784
|
}
|
|
3780
|
-
}), Nt = /* @__PURE__ */ z(
|
|
3785
|
+
}), Nt = /* @__PURE__ */ z(Dr, [["__scopeId", "data-v-dc99341b"]]), Lr = {
|
|
3781
3786
|
class: "av-search-bar",
|
|
3782
3787
|
role: "search"
|
|
3783
|
-
},
|
|
3788
|
+
}, wr = /* @__PURE__ */ Q({
|
|
3784
3789
|
__name: "AvSearchBar",
|
|
3785
3790
|
props: {
|
|
3786
3791
|
id: {},
|
|
@@ -3792,11 +3797,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3792
3797
|
emits: ["update:modelValue", "search"],
|
|
3793
3798
|
setup(e, { emit: t }) {
|
|
3794
3799
|
const a = t, n = b(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
3795
|
-
return (i,
|
|
3796
|
-
const
|
|
3797
|
-
return u(), I("div",
|
|
3800
|
+
return (i, r) => {
|
|
3801
|
+
const o = Nt, s = oe;
|
|
3802
|
+
return u(), I("div", Lr, [
|
|
3798
3803
|
g("div", null, [
|
|
3799
|
-
W(
|
|
3804
|
+
W(o, {
|
|
3800
3805
|
id: l(n),
|
|
3801
3806
|
type: "search",
|
|
3802
3807
|
"no-radius": "",
|
|
@@ -3806,8 +3811,8 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3806
3811
|
disabled: e.disabled,
|
|
3807
3812
|
"aria-disabled": e.disabled,
|
|
3808
3813
|
"label-visible": !1,
|
|
3809
|
-
"onUpdate:modelValue":
|
|
3810
|
-
onKeydown:
|
|
3814
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => a("update:modelValue", (c == null ? void 0 : c.toString()) ?? "")),
|
|
3815
|
+
onKeydown: r[1] || (r[1] = Ae((c) => a("search", e.modelValue), ["enter"]))
|
|
3811
3816
|
}, null, 8, ["id", "placeholder", "model-value", "label", "disabled", "aria-disabled"])
|
|
3812
3817
|
]),
|
|
3813
3818
|
W(s, {
|
|
@@ -3818,12 +3823,12 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3818
3823
|
icon: l(R).MAGNIFY,
|
|
3819
3824
|
disabled: e.disabled,
|
|
3820
3825
|
"aria-disabled": e.disabled,
|
|
3821
|
-
onClick:
|
|
3826
|
+
onClick: r[2] || (r[2] = (c) => a("search", e.modelValue))
|
|
3822
3827
|
}, null, 8, ["label", "icon", "disabled", "aria-disabled"])
|
|
3823
3828
|
]);
|
|
3824
3829
|
};
|
|
3825
3830
|
}
|
|
3826
|
-
}), Vt = /* @__PURE__ */ z(
|
|
3831
|
+
}), Vt = /* @__PURE__ */ z(wr, [["__scopeId", "data-v-ecbc647b"]]), Or = ["role", "aria-label", "aria-labelledby", "aria-describedby"], Sr = /* @__PURE__ */ Q({
|
|
3827
3832
|
__name: "AvList",
|
|
3828
3833
|
props: {
|
|
3829
3834
|
backgroundColor: { default: "transparent" },
|
|
@@ -3846,7 +3851,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3846
3851
|
v718f62b9: i.borderColor
|
|
3847
3852
|
}));
|
|
3848
3853
|
const t = b(() => `av-list--${e.size}`), a = b(() => e.bordered ? "av-list--bordered" : ""), n = b(() => e.divided ? "av-list--divided" : "");
|
|
3849
|
-
return (i,
|
|
3854
|
+
return (i, r) => (u(), I("div", {
|
|
3850
3855
|
class: j(["av-list", [l(t), l(a), l(n)]]),
|
|
3851
3856
|
role: e.role,
|
|
3852
3857
|
"aria-label": e.ariaLabel,
|
|
@@ -3854,18 +3859,18 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3854
3859
|
"aria-describedby": e.ariaDescribedby
|
|
3855
3860
|
}, [
|
|
3856
3861
|
P(i.$slots, "default", {}, void 0, !0)
|
|
3857
|
-
], 10,
|
|
3862
|
+
], 10, Or));
|
|
3858
3863
|
}
|
|
3859
|
-
}), Ia = /* @__PURE__ */ z(
|
|
3864
|
+
}), Ia = /* @__PURE__ */ z(Sr, [["__scopeId", "data-v-f74989f7"]]), Qr = ["role"], xr = {
|
|
3860
3865
|
key: 0,
|
|
3861
3866
|
class: "av-list-item__icon"
|
|
3862
|
-
},
|
|
3867
|
+
}, pr = { class: "av-list-item__content" }, kr = {
|
|
3863
3868
|
key: 0,
|
|
3864
3869
|
class: "av-list-item__title"
|
|
3865
|
-
},
|
|
3870
|
+
}, jr = {
|
|
3866
3871
|
key: 1,
|
|
3867
3872
|
class: "av-list-item__description"
|
|
3868
|
-
},
|
|
3873
|
+
}, zr = { key: 2 }, Br = /* @__PURE__ */ Q({
|
|
3869
3874
|
__name: "AvListItem",
|
|
3870
3875
|
props: {
|
|
3871
3876
|
icon: {},
|
|
@@ -3901,7 +3906,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3901
3906
|
var d;
|
|
3902
3907
|
!e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, A);
|
|
3903
3908
|
}
|
|
3904
|
-
function
|
|
3909
|
+
function r(A) {
|
|
3905
3910
|
var d;
|
|
3906
3911
|
if (!(!e.clickable || e.disabled) && (A.key === "Enter" || A.key === " ")) {
|
|
3907
3912
|
A.preventDefault();
|
|
@@ -3912,10 +3917,10 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3912
3917
|
(d = e.onClick) == null || d.call(e, f);
|
|
3913
3918
|
}
|
|
3914
3919
|
}
|
|
3915
|
-
const
|
|
3920
|
+
const o = b(() => e.clickable ? "av-list-item--clickable" : ""), s = b(() => e.disabled ? "av-list-item--disabled" : ""), c = b(() => e.selected ? "av-list-item--selected" : "");
|
|
3916
3921
|
return (A, d) => (u(), I("div", { role: e.role }, [
|
|
3917
|
-
(u(),
|
|
3918
|
-
class: j(["av-list-item", [l(
|
|
3922
|
+
(u(), p(Me(l(a)), {
|
|
3923
|
+
class: j(["av-list-item", [l(o), l(s), l(c)]]),
|
|
3919
3924
|
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
3920
3925
|
"aria-label": e.clickable ? l(n) : void 0,
|
|
3921
3926
|
"aria-describedby": e.ariaDescribedby,
|
|
@@ -3925,29 +3930,29 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3925
3930
|
target: l(a) === "a" ? e.target : void 0,
|
|
3926
3931
|
rel: l(a) === "a" ? e.rel : void 0,
|
|
3927
3932
|
onClick: i,
|
|
3928
|
-
onKeydown:
|
|
3933
|
+
onKeydown: r
|
|
3929
3934
|
}, {
|
|
3930
3935
|
default: G(() => [
|
|
3931
|
-
e.icon ? (u(), I("div",
|
|
3936
|
+
e.icon ? (u(), I("div", xr, [
|
|
3932
3937
|
W(ne, {
|
|
3933
3938
|
name: e.icon,
|
|
3934
3939
|
color: e.iconColor ?? e.color,
|
|
3935
3940
|
size: e.iconSize
|
|
3936
3941
|
}, null, 8, ["name", "color", "size"])
|
|
3937
3942
|
])) : D("", !0),
|
|
3938
|
-
g("div",
|
|
3939
|
-
e.title ? (u(), I("div",
|
|
3940
|
-
e.description ? (u(), I("div",
|
|
3941
|
-
t.default ? (u(), I("div",
|
|
3943
|
+
g("div", pr, [
|
|
3944
|
+
e.title ? (u(), I("div", kr, B(e.title), 1)) : D("", !0),
|
|
3945
|
+
e.description ? (u(), I("div", jr, B(e.description), 1)) : D("", !0),
|
|
3946
|
+
t.default ? (u(), I("div", zr, [
|
|
3942
3947
|
P(A.$slots, "default", {}, void 0, !0)
|
|
3943
3948
|
])) : D("", !0)
|
|
3944
3949
|
])
|
|
3945
3950
|
]),
|
|
3946
3951
|
_: 3
|
|
3947
3952
|
}, 40, ["class", "tabindex", "aria-label", "aria-describedby", "aria-disabled", "disabled", "href", "target", "rel"]))
|
|
3948
|
-
], 8,
|
|
3953
|
+
], 8, Qr));
|
|
3949
3954
|
}
|
|
3950
|
-
}), ga = /* @__PURE__ */ z(
|
|
3955
|
+
}), ga = /* @__PURE__ */ z(Br, [["__scopeId", "data-v-51545aa6"]]), Pr = { class: "av-select-container" }, Wr = /* @__PURE__ */ Q({
|
|
3951
3956
|
__name: "AvTagPicker",
|
|
3952
3957
|
props: {
|
|
3953
3958
|
multiple: { type: Boolean },
|
|
@@ -3966,19 +3971,19 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3966
3971
|
label: a,
|
|
3967
3972
|
labelColor: n,
|
|
3968
3973
|
labelTypographyClass: i,
|
|
3969
|
-
selected:
|
|
3970
|
-
multiple:
|
|
3974
|
+
selected: r,
|
|
3975
|
+
multiple: o,
|
|
3971
3976
|
handleSelectChange: s
|
|
3972
3977
|
} = t, c = b(() => ln(t.options));
|
|
3973
3978
|
function A(y) {
|
|
3974
3979
|
return y ? Array.isArray(y) ? y : [y] : [];
|
|
3975
3980
|
}
|
|
3976
|
-
const d = U(A(
|
|
3981
|
+
const d = U(A(r));
|
|
3977
3982
|
function f(y) {
|
|
3978
3983
|
return d.value.some((M) => M.value === y.value);
|
|
3979
3984
|
}
|
|
3980
3985
|
function C(y) {
|
|
3981
|
-
|
|
3986
|
+
o ? (f(y) ? d.value = d.value.filter(
|
|
3982
3987
|
(T) => T.value !== y.value
|
|
3983
3988
|
) : d.value.push(y), s([...d.value])) : (d.value = [y], s(y));
|
|
3984
3989
|
}
|
|
@@ -3986,11 +3991,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3986
3991
|
return f(y) ? R.CHECK : void 0;
|
|
3987
3992
|
}
|
|
3988
3993
|
function v(y) {
|
|
3989
|
-
return f(y) && !
|
|
3994
|
+
return f(y) && !o;
|
|
3990
3995
|
}
|
|
3991
|
-
return
|
|
3996
|
+
return re(() => t.selected, (y) => {
|
|
3992
3997
|
d.value = A(y);
|
|
3993
|
-
}, { immediate: !0 }), (y, M) => (u(), I("div",
|
|
3998
|
+
}, { immediate: !0 }), (y, M) => (u(), I("div", Pr, [
|
|
3994
3999
|
l(a) ? (u(), I("span", {
|
|
3995
4000
|
key: 0,
|
|
3996
4001
|
class: j(["av-select-label", [l(i)]])
|
|
@@ -4014,14 +4019,14 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
4014
4019
|
]))), 128))
|
|
4015
4020
|
]));
|
|
4016
4021
|
}
|
|
4017
|
-
}),
|
|
4022
|
+
}), Ur = /* @__PURE__ */ z(Wr, [["__scopeId", "data-v-f6ec3112"]]);
|
|
4018
4023
|
var ba = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(ba || {});
|
|
4019
4024
|
const DA = [
|
|
4020
4025
|
4,
|
|
4021
4026
|
8,
|
|
4022
4027
|
12
|
|
4023
4028
|
/* TWELVE */
|
|
4024
|
-
],
|
|
4029
|
+
], Vr = { class: "pagination-size-picker-container" }, Hr = /* @__PURE__ */ Q({
|
|
4025
4030
|
__name: "AvPageSizePicker",
|
|
4026
4031
|
props: {
|
|
4027
4032
|
label: {},
|
|
@@ -4036,8 +4041,8 @@ const DA = [
|
|
|
4036
4041
|
label: e.pageSizeSelected.toString(),
|
|
4037
4042
|
value: e.pageSizeSelected.toString()
|
|
4038
4043
|
}));
|
|
4039
|
-
return (n, i) => (u(), I("div",
|
|
4040
|
-
W(
|
|
4044
|
+
return (n, i) => (u(), I("div", Vr, [
|
|
4045
|
+
W(Ur, {
|
|
4041
4046
|
options: l(t),
|
|
4042
4047
|
selected: l(a),
|
|
4043
4048
|
"handle-select-change": e.handleSelectChange,
|
|
@@ -4048,7 +4053,7 @@ const DA = [
|
|
|
4048
4053
|
}, null, 8, ["options", "selected", "handle-select-change", "label"])
|
|
4049
4054
|
]));
|
|
4050
4055
|
}
|
|
4051
|
-
}), LA = /* @__PURE__ */ z(
|
|
4056
|
+
}), LA = /* @__PURE__ */ z(Hr, [["__scopeId", "data-v-d72fe5ab"]]), Rr = /* @__PURE__ */ Q({
|
|
4052
4057
|
__name: "AvRadioButton",
|
|
4053
4058
|
props: {
|
|
4054
4059
|
value: { type: [String, Number, Boolean] },
|
|
@@ -4059,7 +4064,7 @@ const DA = [
|
|
|
4059
4064
|
setup(e) {
|
|
4060
4065
|
return (t, a) => P(t.$slots, "default");
|
|
4061
4066
|
}
|
|
4062
|
-
}),
|
|
4067
|
+
}), Zr = ["id", "name", "value", "checked", "disabled"], Xr = ["for"], Yr = /* @__PURE__ */ Q({
|
|
4063
4068
|
__name: "RadioButton",
|
|
4064
4069
|
props: {
|
|
4065
4070
|
value: { type: [String, Number, Boolean] },
|
|
@@ -4072,9 +4077,9 @@ const DA = [
|
|
|
4072
4077
|
emits: ["update:modelValue"],
|
|
4073
4078
|
setup(e, { emit: t }) {
|
|
4074
4079
|
const a = t, n = U(`av-radio-button-${crypto.randomUUID()}`);
|
|
4075
|
-
return (i,
|
|
4076
|
-
const
|
|
4077
|
-
return u(),
|
|
4080
|
+
return (i, r) => {
|
|
4081
|
+
const o = $t;
|
|
4082
|
+
return u(), p(o, {
|
|
4078
4083
|
inline: e.inline,
|
|
4079
4084
|
disabled: e.disabled
|
|
4080
4085
|
}, {
|
|
@@ -4092,21 +4097,21 @@ const DA = [
|
|
|
4092
4097
|
checked: e.modelValue === e.value,
|
|
4093
4098
|
disabled: e.disabled
|
|
4094
4099
|
}, i.$attrs, {
|
|
4095
|
-
onClick:
|
|
4096
|
-
}), null, 16,
|
|
4100
|
+
onClick: r[0] || (r[0] = (s) => a("update:modelValue", e.value))
|
|
4101
|
+
}), null, 16, Zr),
|
|
4097
4102
|
g("label", {
|
|
4098
4103
|
for: l(n),
|
|
4099
4104
|
class: "av-label"
|
|
4100
4105
|
}, [
|
|
4101
4106
|
P(i.$slots, "default", {}, void 0, !0)
|
|
4102
|
-
], 8,
|
|
4107
|
+
], 8, Xr)
|
|
4103
4108
|
], 2)
|
|
4104
4109
|
]),
|
|
4105
4110
|
_: 3
|
|
4106
4111
|
}, 8, ["inline", "disabled"]);
|
|
4107
4112
|
};
|
|
4108
4113
|
}
|
|
4109
|
-
}),
|
|
4114
|
+
}), qr = /* @__PURE__ */ z(Yr, [["__scopeId", "data-v-33d4a9ed"]]), wA = /* @__PURE__ */ Q({
|
|
4110
4115
|
__name: "AvRadioButtonSet",
|
|
4111
4116
|
props: {
|
|
4112
4117
|
id: {},
|
|
@@ -4123,13 +4128,13 @@ const DA = [
|
|
|
4123
4128
|
},
|
|
4124
4129
|
emits: ["update:modelValue"],
|
|
4125
4130
|
setup(e, { expose: t, emit: a }) {
|
|
4126
|
-
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`),
|
|
4127
|
-
function
|
|
4131
|
+
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), r = b(() => e.errorMessage || e.validMessage);
|
|
4132
|
+
function o(m) {
|
|
4128
4133
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4129
4134
|
}
|
|
4130
|
-
const s = b(() =>
|
|
4135
|
+
const s = b(() => r.value ? `messages-${i.value}` : void 0), c = fe();
|
|
4131
4136
|
function A(m) {
|
|
4132
|
-
return m != null && typeof m == "object" && "type" in m && m.type ===
|
|
4137
|
+
return m != null && typeof m == "object" && "type" in m && m.type === Rr;
|
|
4133
4138
|
}
|
|
4134
4139
|
function d(m) {
|
|
4135
4140
|
return m ? m.flatMap((v) => !v || typeof v != "object" || !("type" in v) ? [] : v.type === $ && Array.isArray(v.children) ? d(v.children) : A(v) ? [v] : []) : [];
|
|
@@ -4138,13 +4143,13 @@ const DA = [
|
|
|
4138
4143
|
var m;
|
|
4139
4144
|
return d((m = c.default) == null ? void 0 : m.call(c));
|
|
4140
4145
|
}), C = U(e.modelValue);
|
|
4141
|
-
return
|
|
4146
|
+
return re(() => e.modelValue, (m) => {
|
|
4142
4147
|
C.value = m;
|
|
4143
|
-
}),
|
|
4148
|
+
}), re(C, (m) => {
|
|
4144
4149
|
m && n("update:modelValue", m);
|
|
4145
4150
|
}), t({ selected: C }), (m, v) => {
|
|
4146
4151
|
const y = Jt;
|
|
4147
|
-
return u(),
|
|
4152
|
+
return u(), p(y, {
|
|
4148
4153
|
id: l(i),
|
|
4149
4154
|
legend: e.legend,
|
|
4150
4155
|
hint: e.hint,
|
|
@@ -4160,12 +4165,12 @@ const DA = [
|
|
|
4160
4165
|
default: G(() => [
|
|
4161
4166
|
(u(!0), I($, null, ie(l(f), (M, T) => {
|
|
4162
4167
|
var L, N;
|
|
4163
|
-
return u(),
|
|
4168
|
+
return u(), p(qr, {
|
|
4164
4169
|
key: T,
|
|
4165
4170
|
modelValue: l(C),
|
|
4166
4171
|
"onUpdate:modelValue": [
|
|
4167
4172
|
v[0] || (v[0] = (O) => Ct(C) ? C.value = O : null),
|
|
4168
|
-
v[1] || (v[1] = (O) =>
|
|
4173
|
+
v[1] || (v[1] = (O) => o(O))
|
|
4169
4174
|
],
|
|
4170
4175
|
value: (L = M.props) == null ? void 0 : L.value,
|
|
4171
4176
|
disabled: ((N = M.props) == null ? void 0 : N.disabled) ?? e.disabled,
|
|
@@ -4176,7 +4181,7 @@ const DA = [
|
|
|
4176
4181
|
default: G(() => {
|
|
4177
4182
|
var O;
|
|
4178
4183
|
return [
|
|
4179
|
-
(u(),
|
|
4184
|
+
(u(), p(Me((O = M.children) == null ? void 0 : O.default)))
|
|
4180
4185
|
];
|
|
4181
4186
|
}),
|
|
4182
4187
|
_: 2
|
|
@@ -4196,51 +4201,51 @@ function Tt() {
|
|
|
4196
4201
|
throw new Error("useAutocompleteContext must be used within AvAutocomplete component");
|
|
4197
4202
|
return e;
|
|
4198
4203
|
}
|
|
4199
|
-
var
|
|
4200
|
-
function
|
|
4201
|
-
var t =
|
|
4204
|
+
var Fr = typeof global == "object" && global && global.Object === Object && global, Kr = typeof self == "object" && self && self.Object === Object && self, ya = Fr || Kr || Function("return this")(), et = ya.Symbol, Ca = Object.prototype, Gr = Ca.hasOwnProperty, Jr = Ca.toString, Ue = et ? et.toStringTag : void 0;
|
|
4205
|
+
function $r(e) {
|
|
4206
|
+
var t = Gr.call(e, Ue), a = e[Ue];
|
|
4202
4207
|
try {
|
|
4203
4208
|
e[Ue] = void 0;
|
|
4204
4209
|
var n = !0;
|
|
4205
4210
|
} catch {
|
|
4206
4211
|
}
|
|
4207
|
-
var i =
|
|
4212
|
+
var i = Jr.call(e);
|
|
4208
4213
|
return n && (t ? e[Ue] = a : delete e[Ue]), i;
|
|
4209
4214
|
}
|
|
4210
|
-
var
|
|
4211
|
-
function
|
|
4212
|
-
return
|
|
4215
|
+
var _r = Object.prototype, eo = _r.toString;
|
|
4216
|
+
function to(e) {
|
|
4217
|
+
return eo.call(e);
|
|
4213
4218
|
}
|
|
4214
|
-
var
|
|
4215
|
-
function
|
|
4216
|
-
return e == null ? e === void 0 ?
|
|
4219
|
+
var ao = "[object Null]", no = "[object Undefined]", Ht = et ? et.toStringTag : void 0;
|
|
4220
|
+
function io(e) {
|
|
4221
|
+
return e == null ? e === void 0 ? no : ao : Ht && Ht in Object(e) ? $r(e) : to(e);
|
|
4217
4222
|
}
|
|
4218
|
-
function
|
|
4223
|
+
function lo(e) {
|
|
4219
4224
|
return e != null && typeof e == "object";
|
|
4220
4225
|
}
|
|
4221
|
-
var
|
|
4222
|
-
function
|
|
4223
|
-
return typeof e == "symbol" ||
|
|
4226
|
+
var ro = "[object Symbol]";
|
|
4227
|
+
function oo(e) {
|
|
4228
|
+
return typeof e == "symbol" || lo(e) && io(e) == ro;
|
|
4224
4229
|
}
|
|
4225
|
-
var
|
|
4226
|
-
function
|
|
4227
|
-
for (var t = e.length; t-- &&
|
|
4230
|
+
var so = /\s/;
|
|
4231
|
+
function co(e) {
|
|
4232
|
+
for (var t = e.length; t-- && so.test(e.charAt(t)); )
|
|
4228
4233
|
;
|
|
4229
4234
|
return t;
|
|
4230
4235
|
}
|
|
4231
|
-
var
|
|
4232
|
-
function
|
|
4233
|
-
return e && e.slice(0,
|
|
4236
|
+
var Ao = /^\s+/;
|
|
4237
|
+
function uo(e) {
|
|
4238
|
+
return e && e.slice(0, co(e) + 1).replace(Ao, "");
|
|
4234
4239
|
}
|
|
4235
4240
|
function mt(e) {
|
|
4236
4241
|
var t = typeof e;
|
|
4237
4242
|
return e != null && (t == "object" || t == "function");
|
|
4238
4243
|
}
|
|
4239
|
-
var Rt = NaN,
|
|
4244
|
+
var Rt = NaN, fo = /^[-+]0x[0-9a-f]+$/i, vo = /^0b[01]+$/i, mo = /^0o[0-7]+$/i, Io = parseInt;
|
|
4240
4245
|
function Zt(e) {
|
|
4241
4246
|
if (typeof e == "number")
|
|
4242
4247
|
return e;
|
|
4243
|
-
if (
|
|
4248
|
+
if (oo(e))
|
|
4244
4249
|
return Rt;
|
|
4245
4250
|
if (mt(e)) {
|
|
4246
4251
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -4248,32 +4253,32 @@ function Zt(e) {
|
|
|
4248
4253
|
}
|
|
4249
4254
|
if (typeof e != "string")
|
|
4250
4255
|
return e === 0 ? e : +e;
|
|
4251
|
-
e =
|
|
4252
|
-
var a =
|
|
4253
|
-
return a ||
|
|
4256
|
+
e = uo(e);
|
|
4257
|
+
var a = vo.test(e);
|
|
4258
|
+
return a || mo.test(e) ? Io(e.slice(2), a ? 2 : 8) : fo.test(e) ? Rt : +e;
|
|
4254
4259
|
}
|
|
4255
4260
|
var At = function() {
|
|
4256
4261
|
return ya.Date.now();
|
|
4257
|
-
},
|
|
4262
|
+
}, go = "Expected a function", bo = Math.max, ho = Math.min;
|
|
4258
4263
|
function Ma(e, t, a) {
|
|
4259
|
-
var n, i,
|
|
4264
|
+
var n, i, r, o, s, c, A = 0, d = !1, f = !1, C = !0;
|
|
4260
4265
|
if (typeof e != "function")
|
|
4261
|
-
throw new TypeError(
|
|
4262
|
-
t = Zt(t) || 0, mt(a) && (d = !!a.leading, f = "maxWait" in a,
|
|
4266
|
+
throw new TypeError(go);
|
|
4267
|
+
t = Zt(t) || 0, mt(a) && (d = !!a.leading, f = "maxWait" in a, r = f ? bo(Zt(a.maxWait) || 0, t) : r, C = "trailing" in a ? !!a.trailing : C);
|
|
4263
4268
|
function m(Z) {
|
|
4264
4269
|
var F = n, te = i;
|
|
4265
|
-
return n = i = void 0, A = Z,
|
|
4270
|
+
return n = i = void 0, A = Z, o = e.apply(te, F), o;
|
|
4266
4271
|
}
|
|
4267
4272
|
function v(Z) {
|
|
4268
|
-
return A = Z, s = setTimeout(T, t), d ? m(Z) :
|
|
4273
|
+
return A = Z, s = setTimeout(T, t), d ? m(Z) : o;
|
|
4269
4274
|
}
|
|
4270
4275
|
function y(Z) {
|
|
4271
4276
|
var F = Z - c, te = Z - A, x = t - F;
|
|
4272
|
-
return f ?
|
|
4277
|
+
return f ? ho(x, r - te) : x;
|
|
4273
4278
|
}
|
|
4274
4279
|
function M(Z) {
|
|
4275
4280
|
var F = Z - c, te = Z - A;
|
|
4276
|
-
return c === void 0 || F >= t || F < 0 || f && te >=
|
|
4281
|
+
return c === void 0 || F >= t || F < 0 || f && te >= r;
|
|
4277
4282
|
}
|
|
4278
4283
|
function T() {
|
|
4279
4284
|
var Z = At();
|
|
@@ -4282,13 +4287,13 @@ function Ma(e, t, a) {
|
|
|
4282
4287
|
s = setTimeout(T, y(Z));
|
|
4283
4288
|
}
|
|
4284
4289
|
function L(Z) {
|
|
4285
|
-
return s = void 0, C && n ? m(Z) : (n = i = void 0,
|
|
4290
|
+
return s = void 0, C && n ? m(Z) : (n = i = void 0, o);
|
|
4286
4291
|
}
|
|
4287
4292
|
function N() {
|
|
4288
4293
|
s !== void 0 && clearTimeout(s), A = 0, n = c = i = s = void 0;
|
|
4289
4294
|
}
|
|
4290
4295
|
function O() {
|
|
4291
|
-
return s === void 0 ?
|
|
4296
|
+
return s === void 0 ? o : L(At());
|
|
4292
4297
|
}
|
|
4293
4298
|
function V() {
|
|
4294
4299
|
var Z = At(), F = M(Z);
|
|
@@ -4298,26 +4303,26 @@ function Ma(e, t, a) {
|
|
|
4298
4303
|
if (f)
|
|
4299
4304
|
return clearTimeout(s), s = setTimeout(T, t), m(c);
|
|
4300
4305
|
}
|
|
4301
|
-
return s === void 0 && (s = setTimeout(T, t)),
|
|
4306
|
+
return s === void 0 && (s = setTimeout(T, t)), o;
|
|
4302
4307
|
}
|
|
4303
4308
|
return V.cancel = N, V.flush = O, V;
|
|
4304
4309
|
}
|
|
4305
|
-
const
|
|
4310
|
+
const yo = {
|
|
4306
4311
|
key: 0,
|
|
4307
4312
|
class: "av-autocomplete-dropdown__loading"
|
|
4308
|
-
},
|
|
4313
|
+
}, Co = {
|
|
4309
4314
|
key: 1,
|
|
4310
4315
|
class: "av-autocomplete-dropdown__empty"
|
|
4311
|
-
},
|
|
4316
|
+
}, Mo = {
|
|
4312
4317
|
key: 1,
|
|
4313
4318
|
class: "av-autocomplete-dropdown__empty-text"
|
|
4314
|
-
},
|
|
4319
|
+
}, Eo = /* @__PURE__ */ Q({
|
|
4315
4320
|
__name: "AvAutocompleteDropdown",
|
|
4316
4321
|
emits: ["loadMore"],
|
|
4317
4322
|
setup(e, { expose: t, emit: a }) {
|
|
4318
4323
|
const n = a, i = fe(), {
|
|
4319
|
-
selectedItems:
|
|
4320
|
-
searchQuery:
|
|
4324
|
+
selectedItems: r,
|
|
4325
|
+
searchQuery: o,
|
|
4321
4326
|
isOpen: s,
|
|
4322
4327
|
props: c,
|
|
4323
4328
|
getOptionId: A,
|
|
@@ -4327,7 +4332,7 @@ const yr = {
|
|
|
4327
4332
|
return [];
|
|
4328
4333
|
if (c.serverSideFiltering)
|
|
4329
4334
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
4330
|
-
const N =
|
|
4335
|
+
const N = o.value.toLowerCase().trim();
|
|
4331
4336
|
if (!N) {
|
|
4332
4337
|
const V = c.options;
|
|
4333
4338
|
return c.maxResults ? V.slice(0, c.maxResults) : V;
|
|
@@ -4336,28 +4341,28 @@ const yr = {
|
|
|
4336
4341
|
return c.filterOptions ? O = c.filterOptions(c.options, N) : O = c.options.filter((V) => d(V).toLowerCase().includes(N)), c.maxResults ? O.slice(0, c.maxResults) : O;
|
|
4337
4342
|
}), v = b(() => c.loading ? Qe.LOADING : s.value && c.options && c.options.length > 0 && m.value.length > 0 ? Qe.HAS_OPTIONS : Qe.NO_OPTIONS);
|
|
4338
4343
|
function y(N) {
|
|
4339
|
-
return
|
|
4344
|
+
return r.value.some(
|
|
4340
4345
|
(O) => A(O) === A(N)
|
|
4341
4346
|
);
|
|
4342
4347
|
}
|
|
4343
4348
|
function M(N) {
|
|
4344
4349
|
if (!c.multiSelect) {
|
|
4345
|
-
|
|
4350
|
+
r.value = [N], s.value = !1, o.value = "";
|
|
4346
4351
|
return;
|
|
4347
4352
|
}
|
|
4348
|
-
const O =
|
|
4353
|
+
const O = r.value, V = A(N);
|
|
4349
4354
|
O.some(
|
|
4350
4355
|
(F) => A(F) === V
|
|
4351
|
-
) ?
|
|
4356
|
+
) ? r.value = O.filter(
|
|
4352
4357
|
(F) => A(F) !== V
|
|
4353
|
-
) :
|
|
4358
|
+
) : r.value = [...O, N];
|
|
4354
4359
|
}
|
|
4355
4360
|
const { arrivedState: T } = ti(C, {
|
|
4356
4361
|
throttle: 100
|
|
4357
4362
|
}), L = Ma(() => {
|
|
4358
4363
|
n("loadMore");
|
|
4359
4364
|
}, c.loadMoreThrottleDelay);
|
|
4360
|
-
return
|
|
4365
|
+
return re(() => T.bottom, (N) => {
|
|
4361
4366
|
c.enableLoadMore && N && s.value && L();
|
|
4362
4367
|
}), ve(() => {
|
|
4363
4368
|
L.cancel();
|
|
@@ -4370,16 +4375,16 @@ const yr = {
|
|
|
4370
4375
|
class: j(["av-autocomplete-dropdown", l(c).dropdownClass]),
|
|
4371
4376
|
style: ce({ width: l(c).dropdownWidth, maxHeight: l(c).maxDropdownHeight })
|
|
4372
4377
|
}, [
|
|
4373
|
-
l(v) === l(Qe).LOADING ? (u(), I("div",
|
|
4378
|
+
l(v) === l(Qe).LOADING ? (u(), I("div", yo, [
|
|
4374
4379
|
W(ne, {
|
|
4375
4380
|
name: l(R).LOADING,
|
|
4376
4381
|
size: 1.5,
|
|
4377
4382
|
class: "av-autocomplete-dropdown__spinner"
|
|
4378
4383
|
}, null, 8, ["name"]),
|
|
4379
4384
|
O[0] || (O[0] = g("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
4380
|
-
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div",
|
|
4381
|
-
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div",
|
|
4382
|
-
])) : (u(),
|
|
4385
|
+
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div", Co, [
|
|
4386
|
+
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div", Mo, " No results found "))
|
|
4387
|
+
])) : (u(), p(Ia, ee({
|
|
4383
4388
|
key: 2,
|
|
4384
4389
|
ref_key: "listRef",
|
|
4385
4390
|
ref: C
|
|
@@ -4395,7 +4400,7 @@ const yr = {
|
|
|
4395
4400
|
option: V,
|
|
4396
4401
|
isSelected: y(V),
|
|
4397
4402
|
toggle: () => M(V)
|
|
4398
|
-
}, void 0, !0) : (u(),
|
|
4403
|
+
}, void 0, !0) : (u(), p(ga, {
|
|
4399
4404
|
key: 1,
|
|
4400
4405
|
title: l(d)(V),
|
|
4401
4406
|
icon: y(V) ? l(R).CHECK : void 0,
|
|
@@ -4411,42 +4416,42 @@ const yr = {
|
|
|
4411
4416
|
}, 16, ["class"]))
|
|
4412
4417
|
], 6)) : D("", !0);
|
|
4413
4418
|
}
|
|
4414
|
-
}),
|
|
4419
|
+
}), No = /* @__PURE__ */ z(Eo, [["__scopeId", "data-v-32439dba"]]), To = { class: "av-autocomplete-input" }, Do = {
|
|
4415
4420
|
key: 0,
|
|
4416
4421
|
class: "av-autocomplete-input__suffix"
|
|
4417
|
-
},
|
|
4422
|
+
}, Lo = /* @__PURE__ */ Q({
|
|
4418
4423
|
__name: "AvAutocompleteInput",
|
|
4419
4424
|
emits: ["search", "clear"],
|
|
4420
4425
|
setup(e, { expose: t, emit: a }) {
|
|
4421
4426
|
const n = a, i = fe(), {
|
|
4422
|
-
selectedItems:
|
|
4423
|
-
searchQuery:
|
|
4427
|
+
selectedItems: r,
|
|
4428
|
+
searchQuery: o,
|
|
4424
4429
|
isOpen: s,
|
|
4425
4430
|
props: c,
|
|
4426
4431
|
inputId: A,
|
|
4427
4432
|
handleBlur: d,
|
|
4428
4433
|
getDisplayLabel: f
|
|
4429
|
-
} = Tt(), C = U(), m = b(() => !c.multiSelect &&
|
|
4434
|
+
} = Tt(), C = U(), m = b(() => !c.multiSelect && r.value.length > 0 ? f(r.value[0]) : c.multiSelect && r.value.length > 0 ? c.showSelectedSection ? `${r.value.length} element(s) selected` : r.value.map(f).join(", ") : o.value), v = b(() => {
|
|
4430
4435
|
var N;
|
|
4431
4436
|
return ((N = c.inputOptions) == null ? void 0 : N.placeholder) || "Search...";
|
|
4432
4437
|
}), y = Ma((N) => {
|
|
4433
|
-
|
|
4438
|
+
o.value = N, n("search", N);
|
|
4434
4439
|
}, c.debounceDelay);
|
|
4435
4440
|
function M(N) {
|
|
4436
|
-
|
|
4441
|
+
o.value = String(N || ""), y(o.value);
|
|
4437
4442
|
}
|
|
4438
4443
|
function T() {
|
|
4439
4444
|
s.value = !0;
|
|
4440
4445
|
}
|
|
4441
4446
|
function L() {
|
|
4442
|
-
|
|
4447
|
+
r.value = [], o.value = "", n("clear");
|
|
4443
4448
|
}
|
|
4444
4449
|
return ve(() => {
|
|
4445
4450
|
y.cancel();
|
|
4446
4451
|
}), t({
|
|
4447
4452
|
inputRef: C,
|
|
4448
|
-
searchQuery: b(() =>
|
|
4449
|
-
}), (N, O) => (u(), I("div",
|
|
4453
|
+
searchQuery: b(() => o.value)
|
|
4454
|
+
}), (N, O) => (u(), I("div", To, [
|
|
4450
4455
|
W(Nt, ee({
|
|
4451
4456
|
id: l(A),
|
|
4452
4457
|
ref_key: "inputRef",
|
|
@@ -4462,13 +4467,13 @@ const yr = {
|
|
|
4462
4467
|
i.requiredTip ? {
|
|
4463
4468
|
name: "requiredTip",
|
|
4464
4469
|
fn: G(() => [
|
|
4465
|
-
(u(),
|
|
4470
|
+
(u(), p(Me(i.requiredTip)))
|
|
4466
4471
|
]),
|
|
4467
4472
|
key: "0"
|
|
4468
4473
|
} : void 0
|
|
4469
4474
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
4470
|
-
l(
|
|
4471
|
-
W(
|
|
4475
|
+
l(r).length > 0 ? (u(), I("div", Do, [
|
|
4476
|
+
W(oe, {
|
|
4472
4477
|
label: "Clear selected items",
|
|
4473
4478
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
4474
4479
|
"icon-only": "",
|
|
@@ -4480,25 +4485,25 @@ const yr = {
|
|
|
4480
4485
|
])) : D("", !0)
|
|
4481
4486
|
]));
|
|
4482
4487
|
}
|
|
4483
|
-
}),
|
|
4488
|
+
}), wo = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-318a09bc"]]), Oo = {
|
|
4484
4489
|
key: 0,
|
|
4485
4490
|
class: "av-autocomplete-selected-tags"
|
|
4486
|
-
},
|
|
4491
|
+
}, So = /* @__PURE__ */ Q({
|
|
4487
4492
|
__name: "AvAutocompleteSelectedTags",
|
|
4488
4493
|
setup(e) {
|
|
4489
4494
|
const t = fe(), {
|
|
4490
4495
|
selectedItems: a,
|
|
4491
4496
|
props: n,
|
|
4492
4497
|
getOptionId: i,
|
|
4493
|
-
getDisplayLabel:
|
|
4498
|
+
getDisplayLabel: r
|
|
4494
4499
|
} = Tt();
|
|
4495
|
-
function
|
|
4500
|
+
function o(s) {
|
|
4496
4501
|
const c = a.value, A = i(s);
|
|
4497
4502
|
a.value = c.filter(
|
|
4498
4503
|
(d) => i(d) !== A
|
|
4499
4504
|
);
|
|
4500
4505
|
}
|
|
4501
|
-
return (s, c) => l(n).multiSelect && l(a).length > 0 && l(n).showSelectedSection ? (u(), I("div",
|
|
4506
|
+
return (s, c) => l(n).multiSelect && l(a).length > 0 && l(n).showSelectedSection ? (u(), I("div", Oo, [
|
|
4502
4507
|
(u(!0), I($, null, ie(l(a), (A) => (u(), I("div", {
|
|
4503
4508
|
key: l(i)(A),
|
|
4504
4509
|
class: "av-autocomplete-selected-tags__item"
|
|
@@ -4506,21 +4511,21 @@ const yr = {
|
|
|
4506
4511
|
t.selectedItem ? P(s.$slots, "selectedItem", {
|
|
4507
4512
|
key: 0,
|
|
4508
4513
|
option: A,
|
|
4509
|
-
remove: () =>
|
|
4510
|
-
}, void 0, !0) : (u(),
|
|
4514
|
+
remove: () => o(A)
|
|
4515
|
+
}, void 0, !0) : (u(), p(oe, {
|
|
4511
4516
|
key: 1,
|
|
4512
|
-
label: l(
|
|
4517
|
+
label: l(r)(A),
|
|
4513
4518
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
4514
4519
|
"icon-right": "",
|
|
4515
4520
|
size: "sm",
|
|
4516
4521
|
variant: "OUTLINED",
|
|
4517
4522
|
theme: "SECONDARY",
|
|
4518
|
-
onClick: () =>
|
|
4523
|
+
onClick: () => o(A)
|
|
4519
4524
|
}, null, 8, ["label", "icon", "onClick"]))
|
|
4520
4525
|
]))), 128))
|
|
4521
4526
|
])) : D("", !0);
|
|
4522
4527
|
}
|
|
4523
|
-
}),
|
|
4528
|
+
}), Qo = /* @__PURE__ */ z(So, [["__scopeId", "data-v-c42c1ff5"]]), xo = { class: "av-autocomplete" }, po = /* @__PURE__ */ Q({
|
|
4524
4529
|
__name: "AvAutocomplete",
|
|
4525
4530
|
props: /* @__PURE__ */ ge({
|
|
4526
4531
|
id: {},
|
|
@@ -4552,14 +4557,14 @@ const yr = {
|
|
|
4552
4557
|
}),
|
|
4553
4558
|
emits: /* @__PURE__ */ ge(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
4554
4559
|
setup(e, { emit: t }) {
|
|
4555
|
-
const a = e, n = t, i = fe(),
|
|
4560
|
+
const a = e, n = t, i = fe(), r = Le(e, "modelValue"), o = U(!1), s = U(""), c = U(), A = U(), d = U(), f = b(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
4556
4561
|
function C(L) {
|
|
4557
4562
|
s.value = L, n("search", L);
|
|
4558
4563
|
}
|
|
4559
4564
|
function m(L) {
|
|
4560
4565
|
var N, O;
|
|
4561
4566
|
(O = (N = d.value) == null ? void 0 : N.dropdownRef) != null && O.contains(L.relatedTarget) || setTimeout(() => {
|
|
4562
|
-
|
|
4567
|
+
o.value = !1;
|
|
4563
4568
|
}, a.blurCloseDelay);
|
|
4564
4569
|
}
|
|
4565
4570
|
function v(L) {
|
|
@@ -4569,9 +4574,9 @@ const yr = {
|
|
|
4569
4574
|
return a.getOptionLabel ? a.getOptionLabel(L) : L.label;
|
|
4570
4575
|
}
|
|
4571
4576
|
bt(ha, {
|
|
4572
|
-
selectedItems:
|
|
4577
|
+
selectedItems: r,
|
|
4573
4578
|
searchQuery: s,
|
|
4574
|
-
isOpen:
|
|
4579
|
+
isOpen: o,
|
|
4575
4580
|
props: a,
|
|
4576
4581
|
inputId: f,
|
|
4577
4582
|
handleBlur: m,
|
|
@@ -4581,19 +4586,19 @@ const yr = {
|
|
|
4581
4586
|
function T(L) {
|
|
4582
4587
|
var V, Z, F, te, x;
|
|
4583
4588
|
const N = L.target, O = (V = A.value) == null ? void 0 : V.inputRef;
|
|
4584
|
-
!((Z = O == null ? void 0 : O.contains) != null && Z.call(O, N)) && !((F = c.value) != null && F.contains(N)) && !((x = (te = d.value) == null ? void 0 : te.dropdownRef) != null && x.contains(N)) && (
|
|
4589
|
+
!((Z = O == null ? void 0 : O.contains) != null && Z.call(O, N)) && !((F = c.value) != null && F.contains(N)) && !((x = (te = d.value) == null ? void 0 : te.dropdownRef) != null && x.contains(N)) && (o.value = !1);
|
|
4585
4590
|
}
|
|
4586
4591
|
return de(() => {
|
|
4587
4592
|
document.addEventListener("click", T);
|
|
4588
4593
|
}), ve(() => {
|
|
4589
4594
|
document.removeEventListener("click", T);
|
|
4590
|
-
}), (L, N) => (u(), I("div",
|
|
4595
|
+
}), (L, N) => (u(), I("div", xo, [
|
|
4591
4596
|
g("div", {
|
|
4592
4597
|
ref_key: "wrapperRef",
|
|
4593
4598
|
ref: c,
|
|
4594
4599
|
class: "av-autocomplete__wrapper"
|
|
4595
4600
|
}, [
|
|
4596
|
-
W(
|
|
4601
|
+
W(wo, {
|
|
4597
4602
|
ref_key: "inputRef",
|
|
4598
4603
|
ref: A,
|
|
4599
4604
|
onSearch: C,
|
|
@@ -4602,12 +4607,12 @@ const yr = {
|
|
|
4602
4607
|
i.requiredTip ? {
|
|
4603
4608
|
name: "requiredTip",
|
|
4604
4609
|
fn: G(() => [
|
|
4605
|
-
(u(),
|
|
4610
|
+
(u(), p(Me(i.requiredTip)))
|
|
4606
4611
|
]),
|
|
4607
4612
|
key: "0"
|
|
4608
4613
|
} : void 0
|
|
4609
4614
|
]), 1536),
|
|
4610
|
-
W(
|
|
4615
|
+
W(No, {
|
|
4611
4616
|
ref_key: "dropdownRef",
|
|
4612
4617
|
ref: d,
|
|
4613
4618
|
onLoadMore: N[1] || (N[1] = (O) => n("loadMore"))
|
|
@@ -4632,7 +4637,7 @@ const yr = {
|
|
|
4632
4637
|
} : void 0
|
|
4633
4638
|
]), 1536)
|
|
4634
4639
|
], 512),
|
|
4635
|
-
W(
|
|
4640
|
+
W(Qo, null, qe({ _: 2 }, [
|
|
4636
4641
|
i.selectedItem ? {
|
|
4637
4642
|
name: "selectedItem",
|
|
4638
4643
|
fn: G(({ option: O, remove: V }) => [
|
|
@@ -4646,10 +4651,10 @@ const yr = {
|
|
|
4646
4651
|
]), 1024)
|
|
4647
4652
|
]));
|
|
4648
4653
|
}
|
|
4649
|
-
}), OA = /* @__PURE__ */ z(
|
|
4654
|
+
}), OA = /* @__PURE__ */ z(po, [["__scopeId", "data-v-a8c4de33"]]), ko = ["id"], jo = ["id"], zo = {
|
|
4650
4655
|
key: 0,
|
|
4651
4656
|
class: "av-btns-group"
|
|
4652
|
-
},
|
|
4657
|
+
}, Bo = { key: 1 }, Po = { key: 2 }, Wo = "label", Uo = /* @__PURE__ */ Q({
|
|
4653
4658
|
__name: "MultiselectCollapse",
|
|
4654
4659
|
props: /* @__PURE__ */ ge({
|
|
4655
4660
|
isVisible: { type: Boolean },
|
|
@@ -4673,7 +4678,7 @@ const yr = {
|
|
|
4673
4678
|
function n(H, w) {
|
|
4674
4679
|
return `${w}-${H.value}`;
|
|
4675
4680
|
}
|
|
4676
|
-
const i = U(null),
|
|
4681
|
+
const i = U(null), r = U(!1), o = Le(e, "modelValue"), s = U(0), c = [], {
|
|
4677
4682
|
collapse: A,
|
|
4678
4683
|
collapsing: d,
|
|
4679
4684
|
cssExpanded: f,
|
|
@@ -4687,9 +4692,9 @@ const yr = {
|
|
|
4687
4692
|
H.key === "Escape" && a("close");
|
|
4688
4693
|
}
|
|
4689
4694
|
function M(H) {
|
|
4690
|
-
var
|
|
4695
|
+
var k, h;
|
|
4691
4696
|
const w = H.target;
|
|
4692
|
-
!((
|
|
4697
|
+
!((k = i.value) != null && k.$el.contains(w)) && !((h = A.value) != null && h.contains(w)) && a("close");
|
|
4693
4698
|
}
|
|
4694
4699
|
function T() {
|
|
4695
4700
|
for (; c.length; ) {
|
|
@@ -4699,15 +4704,15 @@ const yr = {
|
|
|
4699
4704
|
document.removeEventListener("click", M), document.removeEventListener("keydown", y);
|
|
4700
4705
|
}
|
|
4701
4706
|
const L = b(
|
|
4702
|
-
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[
|
|
4707
|
+
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[Wo]}`.toLowerCase().includes(v.value.toLowerCase()) : `${H}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
4703
4708
|
), N = b(() => e.selected.length < L.value.length ? !1 : L.value.every((H) => e.selected.includes(H)));
|
|
4704
4709
|
function O() {
|
|
4705
|
-
const H = new Set(
|
|
4710
|
+
const H = new Set(o.value || []);
|
|
4706
4711
|
N.value ? L.value.forEach((w) => {
|
|
4707
4712
|
H.delete(w.value);
|
|
4708
4713
|
}) : L.value.forEach((w) => {
|
|
4709
4714
|
H.add(w.value);
|
|
4710
|
-
}),
|
|
4715
|
+
}), o.value = Array.from(H);
|
|
4711
4716
|
}
|
|
4712
4717
|
function V(H) {
|
|
4713
4718
|
const [w] = m();
|
|
@@ -4715,7 +4720,7 @@ const yr = {
|
|
|
4715
4720
|
}
|
|
4716
4721
|
function Z(H) {
|
|
4717
4722
|
H.preventDefault();
|
|
4718
|
-
const w = m(),
|
|
4723
|
+
const w = m(), k = document.activeElement, h = Array.from(w).indexOf(k);
|
|
4719
4724
|
if (h !== -1) {
|
|
4720
4725
|
const E = (h + 1) % w.length;
|
|
4721
4726
|
w[E].focus();
|
|
@@ -4723,25 +4728,25 @@ const yr = {
|
|
|
4723
4728
|
}
|
|
4724
4729
|
function F(H) {
|
|
4725
4730
|
H.preventDefault();
|
|
4726
|
-
const w = m(),
|
|
4731
|
+
const w = m(), k = document.activeElement, h = Array.from(w).indexOf(k);
|
|
4727
4732
|
if (h !== -1) {
|
|
4728
4733
|
const E = (h - 1 + w.length) % w.length;
|
|
4729
4734
|
w[E].focus();
|
|
4730
4735
|
}
|
|
4731
4736
|
}
|
|
4732
4737
|
function te(H) {
|
|
4733
|
-
const w = m(),
|
|
4734
|
-
Array.from(w).indexOf(
|
|
4738
|
+
const w = m(), k = document.activeElement;
|
|
4739
|
+
Array.from(w).indexOf(k) + 1 === w.length && i.value && !H.shiftKey && a("close");
|
|
4735
4740
|
}
|
|
4736
4741
|
function x(H) {
|
|
4737
|
-
var
|
|
4742
|
+
var k;
|
|
4738
4743
|
const w = document.activeElement;
|
|
4739
|
-
H.shiftKey && w === ((
|
|
4744
|
+
H.shiftKey && w === ((k = i.value) == null ? void 0 : k.$el) && a("close");
|
|
4740
4745
|
}
|
|
4741
4746
|
return ve(() => {
|
|
4742
4747
|
T();
|
|
4743
4748
|
}), (H, w) => {
|
|
4744
|
-
const
|
|
4749
|
+
const k = oe, h = Nt;
|
|
4745
4750
|
return e.isVisible ? (u(), I("div", {
|
|
4746
4751
|
key: 0,
|
|
4747
4752
|
id: `${e.id}-collapse`,
|
|
@@ -4751,15 +4756,15 @@ const yr = {
|
|
|
4751
4756
|
"--width-host": `${l(s)}px`
|
|
4752
4757
|
}),
|
|
4753
4758
|
class: j(["av-multiselect__collapse av-collapse", { "av-collapse--expanded": l(f), "av-collapsing": l(d) }]),
|
|
4754
|
-
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(
|
|
4759
|
+
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(r)))
|
|
4755
4760
|
}, [
|
|
4756
4761
|
g("p", {
|
|
4757
4762
|
id: `${e.id}-text-hint`,
|
|
4758
4763
|
class: "av-sr-only"
|
|
4759
|
-
}, B(e.hint), 9,
|
|
4760
|
-
e.selectAll ? (u(), I("ul",
|
|
4764
|
+
}, B(e.hint), 9, jo),
|
|
4765
|
+
e.selectAll ? (u(), I("ul", zo, [
|
|
4761
4766
|
g("li", null, [
|
|
4762
|
-
W(
|
|
4767
|
+
W(k, {
|
|
4763
4768
|
name: "select-all",
|
|
4764
4769
|
size: "sm",
|
|
4765
4770
|
disabled: l(L).length === 0,
|
|
@@ -4770,7 +4775,7 @@ const yr = {
|
|
|
4770
4775
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
4771
4776
|
])
|
|
4772
4777
|
])) : D("", !0),
|
|
4773
|
-
e.search ? (u(), I("div",
|
|
4778
|
+
e.search ? (u(), I("div", Bo, [
|
|
4774
4779
|
W(h, {
|
|
4775
4780
|
modelValue: l(v),
|
|
4776
4781
|
"onUpdate:modelValue": w[0] || (w[0] = (E) => Ct(v) ? v.value = E : null),
|
|
@@ -4794,11 +4799,11 @@ const yr = {
|
|
|
4794
4799
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
4795
4800
|
}, {
|
|
4796
4801
|
default: G(() => [
|
|
4797
|
-
(u(!0), I($, null, ie(l(L), (E) => (u(),
|
|
4802
|
+
(u(!0), I($, null, ie(l(L), (E) => (u(), p(Ki, {
|
|
4798
4803
|
id: `${n(E, e.id)}-checkbox`,
|
|
4799
4804
|
key: `${n(E, e.id)}-fieldset`,
|
|
4800
|
-
modelValue:
|
|
4801
|
-
"onUpdate:modelValue": w[1] || (w[1] = (S) =>
|
|
4805
|
+
modelValue: o.value,
|
|
4806
|
+
"onUpdate:modelValue": w[1] || (w[1] = (S) => o.value = S),
|
|
4802
4807
|
value: E.value,
|
|
4803
4808
|
label: E.label,
|
|
4804
4809
|
icon: E.icon,
|
|
@@ -4814,17 +4819,17 @@ const yr = {
|
|
|
4814
4819
|
]),
|
|
4815
4820
|
_: 1
|
|
4816
4821
|
}, 8, ["id", "legend", "legend-id"]),
|
|
4817
|
-
l(L).length === 0 ? (u(), I("div",
|
|
4818
|
-
], 46,
|
|
4822
|
+
l(L).length === 0 ? (u(), I("div", Po, B(e.noResultLabel), 1)) : D("", !0)
|
|
4823
|
+
], 46, ko)) : D("", !0);
|
|
4819
4824
|
};
|
|
4820
4825
|
}
|
|
4821
|
-
}),
|
|
4826
|
+
}), Vo = /* @__PURE__ */ z(Uo, [["__scopeId", "data-v-f71505f2"]]), Ho = ["title"], Ro = ["for"], Zo = { class: "b2-light" }, Xo = {
|
|
4822
4827
|
key: 0,
|
|
4823
4828
|
class: "required"
|
|
4824
|
-
},
|
|
4829
|
+
}, Yo = {
|
|
4825
4830
|
key: 1,
|
|
4826
4831
|
class: "av-hint-text"
|
|
4827
|
-
},
|
|
4832
|
+
}, qo = /* @__PURE__ */ Q({
|
|
4828
4833
|
__name: "AvMultiselect",
|
|
4829
4834
|
props: {
|
|
4830
4835
|
disabled: { type: Boolean },
|
|
@@ -4854,7 +4859,7 @@ const yr = {
|
|
|
4854
4859
|
v7d3d0889: w.width,
|
|
4855
4860
|
v10950ec4: w.height
|
|
4856
4861
|
}));
|
|
4857
|
-
const a = t, n = b(() => e.id ?? `multi-select-${crypto.randomUUID()}`), i = U(null),
|
|
4862
|
+
const a = t, n = b(() => e.id ?? `multi-select-${crypto.randomUUID()}`), i = U(null), r = U(!1), o = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success"), {
|
|
4858
4863
|
collapse: c,
|
|
4859
4864
|
collapsing: A,
|
|
4860
4865
|
cssExpanded: d,
|
|
@@ -4879,16 +4884,16 @@ const yr = {
|
|
|
4879
4884
|
}
|
|
4880
4885
|
function L(w) {
|
|
4881
4886
|
var h, E;
|
|
4882
|
-
const
|
|
4883
|
-
!((h = i.value) != null && h.$el.contains(
|
|
4887
|
+
const k = w.target;
|
|
4888
|
+
!((h = i.value) != null && h.$el.contains(k)) && !((E = c.value) != null && E.contains(k)) && O();
|
|
4884
4889
|
}
|
|
4885
4890
|
function N() {
|
|
4886
|
-
|
|
4891
|
+
r.value = !0, M.value = !0, document.addEventListener("click", L), document.addEventListener("keydown", T), setTimeout(() => {
|
|
4887
4892
|
f(!0);
|
|
4888
4893
|
}, 100);
|
|
4889
4894
|
}
|
|
4890
4895
|
function O() {
|
|
4891
|
-
|
|
4896
|
+
r.value = !1, f(!1), setTimeout(() => {
|
|
4892
4897
|
M.value = !1;
|
|
4893
4898
|
}, 300), Z();
|
|
4894
4899
|
}
|
|
@@ -4900,15 +4905,15 @@ const yr = {
|
|
|
4900
4905
|
}
|
|
4901
4906
|
function F(w) {
|
|
4902
4907
|
var h;
|
|
4903
|
-
const
|
|
4904
|
-
w.shiftKey &&
|
|
4908
|
+
const k = document.activeElement;
|
|
4909
|
+
w.shiftKey && k === ((h = i.value) == null ? void 0 : h.$el) && O();
|
|
4905
4910
|
}
|
|
4906
4911
|
function te(w) {
|
|
4907
4912
|
var h;
|
|
4908
|
-
const
|
|
4913
|
+
const k = ((h = e.options) == null ? void 0 : h.filter(
|
|
4909
4914
|
(E) => w.includes(E.value)
|
|
4910
4915
|
)) ?? [];
|
|
4911
|
-
a("update:modelValue",
|
|
4916
|
+
a("update:modelValue", k);
|
|
4912
4917
|
}
|
|
4913
4918
|
ve(() => {
|
|
4914
4919
|
Z();
|
|
@@ -4920,21 +4925,21 @@ const yr = {
|
|
|
4920
4925
|
]), H = b(() => ({
|
|
4921
4926
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4922
4927
|
}));
|
|
4923
|
-
return (w,
|
|
4924
|
-
const h =
|
|
4928
|
+
return (w, k) => {
|
|
4929
|
+
const h = oe, E = pe;
|
|
4925
4930
|
return u(), I($, null, [
|
|
4926
4931
|
g("div", {
|
|
4927
|
-
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(
|
|
4932
|
+
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(o) }]),
|
|
4928
4933
|
title: l(y)
|
|
4929
4934
|
}, [
|
|
4930
4935
|
g("label", {
|
|
4931
4936
|
class: j(l(x)),
|
|
4932
4937
|
for: l(n)
|
|
4933
4938
|
}, [
|
|
4934
|
-
g("span",
|
|
4935
|
-
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span",
|
|
4936
|
-
e.hint ? (u(), I("span",
|
|
4937
|
-
], 10,
|
|
4939
|
+
g("span", Zo, B(e.label), 1),
|
|
4940
|
+
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span", Xo)) : D("", !0),
|
|
4941
|
+
e.hint ? (u(), I("span", Yo, B(e.hint), 1)) : D("", !0)
|
|
4942
|
+
], 10, Ro),
|
|
4938
4943
|
W(h, ee({
|
|
4939
4944
|
id: l(n),
|
|
4940
4945
|
ref_key: "host",
|
|
@@ -4944,20 +4949,20 @@ const yr = {
|
|
|
4944
4949
|
}, w.$attrs, {
|
|
4945
4950
|
label: l(y),
|
|
4946
4951
|
class: ["av-multiselect", {
|
|
4947
|
-
"av-multiselect--is-open": l(
|
|
4952
|
+
"av-multiselect--is-open": l(r),
|
|
4948
4953
|
"av-multiselect--dense": e.dense,
|
|
4949
4954
|
"av-multiselect--unselected": e.modelValue.length === 0,
|
|
4950
4955
|
"av-multiselect--selected": e.modelValue.length > 0
|
|
4951
4956
|
}],
|
|
4952
4957
|
disabled: e.disabled,
|
|
4953
|
-
"aria-expanded": l(
|
|
4958
|
+
"aria-expanded": l(r),
|
|
4954
4959
|
"aria-controls": `${l(n)}-collapse`,
|
|
4955
4960
|
small: e.dense,
|
|
4956
4961
|
style: l(H),
|
|
4957
4962
|
onClick: V,
|
|
4958
4963
|
onKeydown: Ae(ue(F, ["shift"]), ["tab"])
|
|
4959
4964
|
}), null, 16, ["id", "label", "disabled", "aria-expanded", "aria-controls", "class", "small", "style", "onKeydown"]),
|
|
4960
|
-
W(
|
|
4965
|
+
W(Vo, {
|
|
4961
4966
|
id: l(n),
|
|
4962
4967
|
legend: e.legend,
|
|
4963
4968
|
hint: e.collapseHint,
|
|
@@ -4972,22 +4977,22 @@ const yr = {
|
|
|
4972
4977
|
onClose: O,
|
|
4973
4978
|
"onUpdate:modelValue": te
|
|
4974
4979
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
4975
|
-
], 10,
|
|
4980
|
+
], 10, Ho),
|
|
4976
4981
|
W(E, {
|
|
4977
4982
|
"message-id": `multiselect-${l(s)}-desc-${l(s)}`,
|
|
4978
4983
|
type: l(s),
|
|
4979
|
-
message: l(
|
|
4984
|
+
message: l(o)
|
|
4980
4985
|
}, null, 8, ["message-id", "type", "message"])
|
|
4981
4986
|
], 64);
|
|
4982
4987
|
};
|
|
4983
4988
|
}
|
|
4984
|
-
}), SA = /* @__PURE__ */ z(
|
|
4989
|
+
}), SA = /* @__PURE__ */ z(qo, [["__scopeId", "data-v-4c2f8848"]]), Fo = ["for"], Ko = {
|
|
4985
4990
|
key: 0,
|
|
4986
4991
|
class: "required"
|
|
4987
|
-
},
|
|
4992
|
+
}, Go = {
|
|
4988
4993
|
key: 1,
|
|
4989
4994
|
class: "av-hint-text"
|
|
4990
|
-
},
|
|
4995
|
+
}, Jo = ["id", "name", "disabled", "aria-disabled", "required", "aria-required", "title"], $o = ["selected"], _o = ["selected", "value", "disabled", "aria-disabled"], es = /* @__PURE__ */ Q({
|
|
4991
4996
|
__name: "AvSelect",
|
|
4992
4997
|
props: {
|
|
4993
4998
|
required: { type: Boolean, default: !1 },
|
|
@@ -5011,28 +5016,28 @@ const yr = {
|
|
|
5011
5016
|
return e.placeholder;
|
|
5012
5017
|
const c = (A = e.options) == null ? void 0 : A.find((d) => String(d.value) === String(e.modelValue));
|
|
5013
5018
|
return c ? c.text : e.placeholder;
|
|
5014
|
-
}),
|
|
5019
|
+
}), r = b(() => ({
|
|
5015
5020
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5016
|
-
})),
|
|
5021
|
+
})), o = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success");
|
|
5017
5022
|
return (c, A) => {
|
|
5018
|
-
const d =
|
|
5023
|
+
const d = pe;
|
|
5019
5024
|
return u(), I("div", {
|
|
5020
5025
|
class: j({ "av-select--dense": e.dense })
|
|
5021
5026
|
}, [
|
|
5022
5027
|
g("div", {
|
|
5023
|
-
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(
|
|
5028
|
+
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(o) }])
|
|
5024
5029
|
}, [
|
|
5025
5030
|
g("label", {
|
|
5026
5031
|
class: "av-label b2-light",
|
|
5027
5032
|
for: l(n)
|
|
5028
5033
|
}, [
|
|
5029
5034
|
g("span", null, B(e.label), 1),
|
|
5030
|
-
e.required ? (u(), I("span",
|
|
5031
|
-
e.hint ? (u(), I("span",
|
|
5032
|
-
], 8,
|
|
5035
|
+
e.required ? (u(), I("span", Ko, " *")) : D("", !0),
|
|
5036
|
+
e.hint ? (u(), I("span", Go, B(e.hint), 1)) : D("", !0)
|
|
5037
|
+
], 8, Fo),
|
|
5033
5038
|
g("select", ee({
|
|
5034
5039
|
id: l(n),
|
|
5035
|
-
class: [{ [`av-select--${l(s)}`]: l(
|
|
5040
|
+
class: [{ [`av-select--${l(s)}`]: l(o) }, "av-select"],
|
|
5036
5041
|
name: e.name || l(n),
|
|
5037
5042
|
disabled: e.disabled,
|
|
5038
5043
|
"aria-disabled": e.disabled,
|
|
@@ -5040,7 +5045,7 @@ const yr = {
|
|
|
5040
5045
|
"aria-required": e.required,
|
|
5041
5046
|
title: l(i)
|
|
5042
5047
|
}, c.$attrs, {
|
|
5043
|
-
style: l(
|
|
5048
|
+
style: l(r),
|
|
5044
5049
|
onChange: A[0] || (A[0] = (f) => {
|
|
5045
5050
|
var C;
|
|
5046
5051
|
return a("update:modelValue", (C = f.target) == null ? void 0 : C.value);
|
|
@@ -5051,18 +5056,18 @@ const yr = {
|
|
|
5051
5056
|
disabled: "",
|
|
5052
5057
|
value: "",
|
|
5053
5058
|
hidden: ""
|
|
5054
|
-
}, B(e.placeholder), 9, $
|
|
5059
|
+
}, B(e.placeholder), 9, $o),
|
|
5055
5060
|
(u(!0), I($, null, ie(e.options, (f, C) => (u(), I("option", {
|
|
5056
5061
|
key: C,
|
|
5057
5062
|
selected: e.modelValue === f.value,
|
|
5058
5063
|
value: f.value,
|
|
5059
5064
|
disabled: f.disabled,
|
|
5060
5065
|
"aria-disabled": f.disabled
|
|
5061
|
-
}, B(f.text), 9,
|
|
5062
|
-
], 16,
|
|
5066
|
+
}, B(f.text), 9, _o))), 128))
|
|
5067
|
+
], 16, Jo),
|
|
5063
5068
|
W(d, {
|
|
5064
5069
|
"message-id": `select-${l(s)}-desc-${l(s)}`,
|
|
5065
|
-
message: l(
|
|
5070
|
+
message: l(o),
|
|
5066
5071
|
type: l(s)
|
|
5067
5072
|
}, null, 8, ["message-id", "message", "type"])
|
|
5068
5073
|
], 2)
|
|
@@ -5112,14 +5117,14 @@ const yr = {
|
|
|
5112
5117
|
},
|
|
5113
5118
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5114
5119
|
setup(e, { emit: t }) {
|
|
5115
|
-
const a = t, n = U(null), i =
|
|
5120
|
+
const a = t, n = U(null), i = pa("button"), r = b(() => e.isSelected ? "s2-bold" : "s2-regular"), o = {
|
|
5116
5121
|
ArrowRight: "next",
|
|
5117
5122
|
ArrowLeft: "previous",
|
|
5118
5123
|
Home: "first",
|
|
5119
5124
|
End: "last"
|
|
5120
5125
|
};
|
|
5121
5126
|
function s(c) {
|
|
5122
|
-
const A = c == null ? void 0 : c.key, d =
|
|
5127
|
+
const A = c == null ? void 0 : c.key, d = o[A];
|
|
5123
5128
|
if (d)
|
|
5124
5129
|
switch (d) {
|
|
5125
5130
|
case "next":
|
|
@@ -5136,7 +5141,7 @@ const yr = {
|
|
|
5136
5141
|
break;
|
|
5137
5142
|
}
|
|
5138
5143
|
}
|
|
5139
|
-
return
|
|
5144
|
+
return re(() => e.isSelected, () => {
|
|
5140
5145
|
var c;
|
|
5141
5146
|
e.isSelected && ((c = i.value) == null || c.focus());
|
|
5142
5147
|
}), (c, A) => {
|
|
@@ -5159,29 +5164,29 @@ const yr = {
|
|
|
5159
5164
|
onClick: A[0] || (A[0] = ue((f) => c.$emit("click", e.tabId), ["prevent"])),
|
|
5160
5165
|
onKeydown: A[1] || (A[1] = (f) => s(f))
|
|
5161
5166
|
}), [
|
|
5162
|
-
e.icon ? (u(),
|
|
5167
|
+
e.icon ? (u(), p(d, {
|
|
5163
5168
|
key: 0,
|
|
5164
5169
|
name: e.icon,
|
|
5165
5170
|
size: 2
|
|
5166
5171
|
}, null, 8, ["name"])) : D("", !0),
|
|
5167
5172
|
g("span", {
|
|
5168
|
-
class: j(l(
|
|
5173
|
+
class: j(l(r))
|
|
5169
5174
|
}, B(e.title), 3)
|
|
5170
5175
|
], 16, is)
|
|
5171
5176
|
], 2);
|
|
5172
5177
|
};
|
|
5173
5178
|
}
|
|
5174
|
-
}),
|
|
5175
|
-
function
|
|
5179
|
+
}), rs = /* @__PURE__ */ z(ls, [["__scopeId", "data-v-e92501ec"]]);
|
|
5180
|
+
function os(e, t, a) {
|
|
5176
5181
|
const n = U({ "--tabs-height": "100px" });
|
|
5177
5182
|
function i() {
|
|
5178
5183
|
if (a.value < 0 || !e.value || !e.value.offsetHeight)
|
|
5179
5184
|
return;
|
|
5180
|
-
const
|
|
5181
|
-
if (!
|
|
5185
|
+
const r = e.value.offsetHeight, o = t.value[a.value];
|
|
5186
|
+
if (!o || !o.offsetHeight)
|
|
5182
5187
|
return;
|
|
5183
|
-
const s =
|
|
5184
|
-
n.value["--tabs-height"] = `${
|
|
5188
|
+
const s = o.offsetHeight;
|
|
5189
|
+
n.value["--tabs-height"] = `${r + s}px`;
|
|
5185
5190
|
}
|
|
5186
5191
|
return { tabsStyle: n, updateTabsStyle: i };
|
|
5187
5192
|
}
|
|
@@ -5199,8 +5204,8 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5199
5204
|
const t = fe(), a = b(() => {
|
|
5200
5205
|
var M;
|
|
5201
5206
|
return ((M = t.default) == null ? void 0 : M.call(t)) || [];
|
|
5202
|
-
}), n = Le(e, "modelValue"), i = U(null),
|
|
5203
|
-
|
|
5207
|
+
}), n = Le(e, "modelValue"), i = U(null), r = U(null), o = ut({}), { tabsStyle: s, updateTabsStyle: c } = os(
|
|
5208
|
+
r,
|
|
5204
5209
|
b(() => {
|
|
5205
5210
|
var M;
|
|
5206
5211
|
return Array.from(((M = i.value) == null ? void 0 : M.querySelectorAll(".av-tab-content")) || []);
|
|
@@ -5208,10 +5213,10 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5208
5213
|
n
|
|
5209
5214
|
);
|
|
5210
5215
|
function A(M) {
|
|
5211
|
-
if (
|
|
5212
|
-
return
|
|
5216
|
+
if (o[M])
|
|
5217
|
+
return o[M];
|
|
5213
5218
|
const T = `tab-${crypto.randomUUID()}`;
|
|
5214
|
-
return
|
|
5219
|
+
return o[M] = T, T;
|
|
5215
5220
|
}
|
|
5216
5221
|
function d(M) {
|
|
5217
5222
|
const T = a.value.length;
|
|
@@ -5254,7 +5259,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5254
5259
|
}, [
|
|
5255
5260
|
g("ul", {
|
|
5256
5261
|
ref_key: "tablist",
|
|
5257
|
-
ref:
|
|
5262
|
+
ref: r,
|
|
5258
5263
|
class: j(["av-tabs__list", {
|
|
5259
5264
|
"av-tabs__list--compact": e.compact
|
|
5260
5265
|
}]),
|
|
@@ -5263,7 +5268,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5263
5268
|
}, [
|
|
5264
5269
|
(u(!0), I($, null, ie(l(a), (L, N) => {
|
|
5265
5270
|
var O, V;
|
|
5266
|
-
return u(),
|
|
5271
|
+
return u(), p(rs, {
|
|
5267
5272
|
key: N,
|
|
5268
5273
|
"tab-id": A(N),
|
|
5269
5274
|
"panel-id": `${A(N)}-panel`,
|
|
@@ -5279,20 +5284,20 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5279
5284
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5280
5285
|
}), 128))
|
|
5281
5286
|
], 10, ss),
|
|
5282
|
-
(u(!0), I($, null, ie(l(a), (L, N) => (u(),
|
|
5287
|
+
(u(!0), I($, null, ie(l(a), (L, N) => (u(), p(ns, {
|
|
5283
5288
|
key: N,
|
|
5284
5289
|
"panel-id": `${A(N)}-panel`,
|
|
5285
5290
|
"tab-id": A(N),
|
|
5286
5291
|
"is-visible": n.value === N
|
|
5287
5292
|
}, {
|
|
5288
5293
|
default: G(() => [
|
|
5289
|
-
n.value === N ? (u(),
|
|
5294
|
+
n.value === N ? (u(), p(Me(L.children.default), { key: 0 })) : D("", !0)
|
|
5290
5295
|
]),
|
|
5291
5296
|
_: 2
|
|
5292
5297
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
5293
5298
|
], 6));
|
|
5294
5299
|
}
|
|
5295
|
-
}),
|
|
5300
|
+
}), pA = /* @__PURE__ */ z(cs, [["__scopeId", "data-v-b408eadc"]]), As = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.6'%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%23D4D4EC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.5%2020C30.0228%2020%2034.5%2015.5228%2034.5%2010C34.5%204.47715%2030.0228%200%2024.5%200C18.9772%200%2014.5%204.47715%2014.5%2010C14.5%2015.5228%2018.9772%2020%2024.5%2020Z'%20fill='%23000091'/%3e%3c/svg%3e", us = "data:image/svg+xml,%3csvg%20width='34'%20height='20'%20viewBox='0%200%2034%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%2314171A'%20fill-opacity='0.36'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%23F6F6F6'/%3e%3cpath%20d='M10%200.5C15.2467%200.5%2019.5%204.75329%2019.5%2010C19.5%2015.2467%2015.2467%2019.5%2010%2019.5C4.75329%2019.5%200.5%2015.2467%200.5%2010C0.5%204.75329%204.75329%200.5%2010%200.5Z'%20stroke='%2314171A'%20stroke-opacity='0.36'/%3e%3c/svg%3e", ds = ["id", "for"], fs = {
|
|
5296
5301
|
width: "34",
|
|
5297
5302
|
height: "14"
|
|
5298
5303
|
}, vs = ["href"], ms = {
|
|
@@ -5349,11 +5354,11 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5349
5354
|
"data-testid": l(t),
|
|
5350
5355
|
"aria-describedby": l(a),
|
|
5351
5356
|
name: e.name,
|
|
5352
|
-
onInput: i[0] || (i[0] = (
|
|
5357
|
+
onInput: i[0] || (i[0] = (r) => n.$emit("update:modelValue", r.target.checked))
|
|
5353
5358
|
}, null, 40, bs)
|
|
5354
5359
|
], 64));
|
|
5355
5360
|
}
|
|
5356
|
-
}),
|
|
5361
|
+
}), kA = /* @__PURE__ */ z(hs, [["__scopeId", "data-v-bc5c5235"]]), ys = { class: "av-cancel-confirm-buttons-container" }, Cs = /* @__PURE__ */ Q({
|
|
5357
5362
|
__name: "AvCancelConfirmButtons",
|
|
5358
5363
|
props: {
|
|
5359
5364
|
cancelLabel: {},
|
|
@@ -5370,7 +5375,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5370
5375
|
setup(e, { emit: t }) {
|
|
5371
5376
|
const a = t;
|
|
5372
5377
|
return (n, i) => (u(), I("div", ys, [
|
|
5373
|
-
e.cancelLabel ? (u(),
|
|
5378
|
+
e.cancelLabel ? (u(), p(l(oe), {
|
|
5374
5379
|
key: 0,
|
|
5375
5380
|
icon: e.cancelIcon,
|
|
5376
5381
|
label: e.cancelLabel,
|
|
@@ -5379,9 +5384,9 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5379
5384
|
"is-loading": e.cancelIsLoading,
|
|
5380
5385
|
disabled: e.cancelDisabled,
|
|
5381
5386
|
small: "",
|
|
5382
|
-
onClick: i[0] || (i[0] = (
|
|
5387
|
+
onClick: i[0] || (i[0] = (r) => a("cancel"))
|
|
5383
5388
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : D("", !0),
|
|
5384
|
-
e.confirmLabel ? (u(),
|
|
5389
|
+
e.confirmLabel ? (u(), p(l(oe), {
|
|
5385
5390
|
key: 1,
|
|
5386
5391
|
icon: e.confirmIcon,
|
|
5387
5392
|
label: e.confirmLabel,
|
|
@@ -5392,7 +5397,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5392
5397
|
type: e.form ? "submit" : void 0,
|
|
5393
5398
|
form: e.form,
|
|
5394
5399
|
small: "",
|
|
5395
|
-
onClick: i[1] || (i[1] = (
|
|
5400
|
+
onClick: i[1] || (i[1] = (r) => a("confirm"))
|
|
5396
5401
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form"])) : D("", !0)
|
|
5397
5402
|
]));
|
|
5398
5403
|
}
|
|
@@ -5410,13 +5415,13 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5410
5415
|
"aria-label": e.navAriaLabel
|
|
5411
5416
|
}, [
|
|
5412
5417
|
g("ul", Es, [
|
|
5413
|
-
(u(!0), I($, null, ie(e.links, (
|
|
5414
|
-
W(
|
|
5415
|
-
icon:
|
|
5416
|
-
label:
|
|
5418
|
+
(u(!0), I($, null, ie(e.links, (r, o) => (u(), I("li", { key: o }, [
|
|
5419
|
+
W(oe, {
|
|
5420
|
+
icon: r.icon,
|
|
5421
|
+
label: r.label ?? "",
|
|
5417
5422
|
onClick: (s) => {
|
|
5418
5423
|
var c;
|
|
5419
|
-
a("linkClick", s), (c =
|
|
5424
|
+
a("linkClick", s), (c = r.onClick) == null || c.call(r, s);
|
|
5420
5425
|
}
|
|
5421
5426
|
}, null, 8, ["icon", "label", "onClick"])
|
|
5422
5427
|
]))), 128))
|
|
@@ -5463,7 +5468,7 @@ function Ds(e, t) {
|
|
|
5463
5468
|
const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
5464
5469
|
role: "banner",
|
|
5465
5470
|
class: "av-header"
|
|
5466
|
-
}, Os = { class: "av-header__body" }, Ss = { class: "av-container" }, Qs = { class: "av-header__body-row" }, xs = { class: "av-header__brand" },
|
|
5471
|
+
}, Os = { class: "av-header__body" }, Ss = { class: "av-container" }, Qs = { class: "av-header__body-row" }, xs = { class: "av-header__brand" }, ps = { class: "av-header__brand-top" }, ks = { class: "av-header__logo av-enlarge-link" }, js = {
|
|
5467
5472
|
key: 0,
|
|
5468
5473
|
class: "av-header__navbar"
|
|
5469
5474
|
}, zs = {
|
|
@@ -5501,10 +5506,10 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5501
5506
|
},
|
|
5502
5507
|
emits: ["update:modelValue", "search", "languageSelect"],
|
|
5503
5508
|
setup(e, { emit: t }) {
|
|
5504
|
-
const a = t, n = fe(), { isBelowLg: i } = nt(),
|
|
5509
|
+
const a = t, n = fe(), { isBelowLg: i } = nt(), r = Ft(() => e.languageSelector), o = U(!1), s = U(!1), c = U(!1);
|
|
5505
5510
|
function A() {
|
|
5506
5511
|
var M;
|
|
5507
|
-
c.value = !1,
|
|
5512
|
+
c.value = !1, o.value = !1, s.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
|
|
5508
5513
|
}
|
|
5509
5514
|
function d(M) {
|
|
5510
5515
|
M.key === "Escape" && A();
|
|
@@ -5515,25 +5520,25 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5515
5520
|
document.removeEventListener("keydown", d);
|
|
5516
5521
|
});
|
|
5517
5522
|
function f() {
|
|
5518
|
-
c.value = !0,
|
|
5523
|
+
c.value = !0, o.value = !0, s.value = !1, setTimeout(() => {
|
|
5519
5524
|
var M;
|
|
5520
5525
|
(M = document.getElementById("close-button")) == null || M.focus();
|
|
5521
5526
|
});
|
|
5522
5527
|
}
|
|
5523
5528
|
function C() {
|
|
5524
|
-
c.value = !0,
|
|
5529
|
+
c.value = !0, o.value = !1, s.value = !0;
|
|
5525
5530
|
}
|
|
5526
5531
|
const m = A, v = b(() => [e.homeLabel, e.serviceTitle].filter((M) => M).join(" - ")), y = b(() => !!n.mainnav);
|
|
5527
5532
|
return bt(Na, () => A), (M, T) => {
|
|
5528
5533
|
var Z, F, te;
|
|
5529
|
-
const L = Mt("RouterLink"), N =
|
|
5534
|
+
const L = Mt("RouterLink"), N = oe, O = Ea, V = On;
|
|
5530
5535
|
return u(), I("header", ws, [
|
|
5531
5536
|
g("div", Os, [
|
|
5532
5537
|
g("div", Ss, [
|
|
5533
5538
|
g("div", Qs, [
|
|
5534
5539
|
g("div", xs, [
|
|
5535
|
-
g("div",
|
|
5536
|
-
g("div",
|
|
5540
|
+
g("div", ps, [
|
|
5541
|
+
g("div", ks, [
|
|
5537
5542
|
W(L, {
|
|
5538
5543
|
to: e.homeTo,
|
|
5539
5544
|
title: l(v)
|
|
@@ -5545,7 +5550,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5545
5550
|
}, 8, ["to", "title"])
|
|
5546
5551
|
]),
|
|
5547
5552
|
e.showSearch || l(y) || (Z = e.quickLinks) != null && Z.length ? (u(), I("div", js, [
|
|
5548
|
-
e.showSearch ? (u(),
|
|
5553
|
+
e.showSearch ? (u(), p(N, {
|
|
5549
5554
|
key: 0,
|
|
5550
5555
|
class: "search-button",
|
|
5551
5556
|
label: e.showSearchLabel,
|
|
@@ -5556,7 +5561,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5556
5561
|
"icon-only": "",
|
|
5557
5562
|
onClick: T[0] || (T[0] = ue((x) => C(), ["prevent", "stop"]))
|
|
5558
5563
|
}, null, 8, ["label", "aria-label", "title", "icon"])) : D("", !0),
|
|
5559
|
-
l(y) || (F = e.quickLinks) != null && F.length ? (u(),
|
|
5564
|
+
l(y) || (F = e.quickLinks) != null && F.length ? (u(), p(N, {
|
|
5560
5565
|
key: 1,
|
|
5561
5566
|
id: "button-menu",
|
|
5562
5567
|
variant: "OUTLINED",
|
|
@@ -5580,13 +5585,13 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5580
5585
|
g("div", Ps, [
|
|
5581
5586
|
g("div", Ws, [
|
|
5582
5587
|
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5583
|
-
!l(
|
|
5588
|
+
!l(o) && ((te = e.quickLinks) != null && te.length) ? (u(), p(Xt, {
|
|
5584
5589
|
key: 0,
|
|
5585
5590
|
links: e.quickLinks,
|
|
5586
5591
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
5587
5592
|
}, null, 8, ["links", "nav-aria-label"])) : D("", !0),
|
|
5588
5593
|
P(M.$slots, "after-quick-links", {}, void 0, !0),
|
|
5589
|
-
l(
|
|
5594
|
+
l(r) ? (u(), p(pt, ee({ key: 1 }, l(r), {
|
|
5590
5595
|
onSelect: T[2] || (T[2] = (x) => a("languageSelect", x))
|
|
5591
5596
|
}), null, 16)) : D("", !0)
|
|
5592
5597
|
]),
|
|
@@ -5611,7 +5616,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5611
5616
|
P(M.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
5612
5617
|
])) : D("", !0)
|
|
5613
5618
|
]),
|
|
5614
|
-
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(
|
|
5619
|
+
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(r)) ? (u(), p(V, {
|
|
5615
5620
|
key: 0,
|
|
5616
5621
|
id: "header-navigation",
|
|
5617
5622
|
show: l(c),
|
|
@@ -5634,11 +5639,11 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5634
5639
|
]),
|
|
5635
5640
|
g("div", Zs, [
|
|
5636
5641
|
g("div", Xs, [
|
|
5637
|
-
l(
|
|
5638
|
-
onSelect: T[5] || (T[5] = (x) => l(
|
|
5642
|
+
l(r) ? (u(), p(pt, ee({ key: 0 }, l(r), {
|
|
5643
|
+
onSelect: T[5] || (T[5] = (x) => l(r).currentLanguage = x.codeIso)
|
|
5639
5644
|
}), null, 16)) : D("", !0),
|
|
5640
5645
|
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5641
|
-
l(
|
|
5646
|
+
l(o) ? (u(), p(Xt, {
|
|
5642
5647
|
key: 1,
|
|
5643
5648
|
role: "navigation",
|
|
5644
5649
|
links: e.quickLinks,
|
|
@@ -5718,34 +5723,34 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5718
5723
|
collapsing: a,
|
|
5719
5724
|
cssExpanded: n,
|
|
5720
5725
|
doExpand: i
|
|
5721
|
-
} = Ze(), { isAboveMd:
|
|
5726
|
+
} = Ze(), { isAboveMd: r } = nt(), o = b(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = b(() => ({
|
|
5722
5727
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
5723
|
-
})), c = U(
|
|
5724
|
-
return
|
|
5728
|
+
})), c = U(r.value);
|
|
5729
|
+
return re(c, (A, d) => {
|
|
5725
5730
|
A !== d && i(A);
|
|
5726
|
-
}),
|
|
5731
|
+
}), re(r, (A) => {
|
|
5727
5732
|
c.value = A;
|
|
5728
5733
|
}), de(() => {
|
|
5729
5734
|
i(c.value);
|
|
5730
5735
|
}), (A, d) => {
|
|
5731
|
-
const f =
|
|
5736
|
+
const f = oe, C = Mt("RouterLink");
|
|
5732
5737
|
return e.links && e.links.length ? (u(), I("nav", {
|
|
5733
5738
|
key: 0,
|
|
5734
5739
|
role: "navigation",
|
|
5735
5740
|
class: "av-breadcrumb",
|
|
5736
5741
|
"aria-label": e.navigationLabel
|
|
5737
5742
|
}, [
|
|
5738
|
-
l(c) ? D("", !0) : (u(),
|
|
5743
|
+
l(c) ? D("", !0) : (u(), p(f, {
|
|
5739
5744
|
key: 0,
|
|
5740
5745
|
class: "av-breadcrumb__button",
|
|
5741
5746
|
label: e.showBreadcrumbLabel,
|
|
5742
5747
|
"aria-expanded": l(c),
|
|
5743
|
-
"aria-controls": l(
|
|
5748
|
+
"aria-controls": l(o),
|
|
5744
5749
|
small: "",
|
|
5745
5750
|
onClick: d[0] || (d[0] = (m) => c.value = !l(c))
|
|
5746
5751
|
}, null, 8, ["label", "aria-expanded", "aria-controls"])),
|
|
5747
5752
|
g("div", {
|
|
5748
|
-
id: l(
|
|
5753
|
+
id: l(o),
|
|
5749
5754
|
ref_key: "collapse",
|
|
5750
5755
|
ref: t,
|
|
5751
5756
|
class: j(["av-collapse", {
|
|
@@ -5759,7 +5764,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5759
5764
|
class: "av-breadcrumb__item",
|
|
5760
5765
|
style: ce(l(s))
|
|
5761
5766
|
}, [
|
|
5762
|
-
m.to ? (u(),
|
|
5767
|
+
m.to ? (u(), p(C, {
|
|
5763
5768
|
key: 0,
|
|
5764
5769
|
class: "b2-regular av-breadcrumb__link",
|
|
5765
5770
|
to: m.to,
|
|
@@ -5797,7 +5802,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5797
5802
|
P(a.$slots, "default", {}, void 0, !0)
|
|
5798
5803
|
], 10, ic));
|
|
5799
5804
|
}
|
|
5800
|
-
}),
|
|
5805
|
+
}), rc = /* @__PURE__ */ z(lc, [["__scopeId", "data-v-94f974c7"]]), oc = ["id", "aria-current"], sc = /* @__PURE__ */ Q({
|
|
5801
5806
|
__name: "NavigationMenuItem",
|
|
5802
5807
|
props: {
|
|
5803
5808
|
id: {},
|
|
@@ -5811,7 +5816,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5811
5816
|
"aria-current": e.active ? "page" : void 0
|
|
5812
5817
|
}, [
|
|
5813
5818
|
P(a.$slots, "default", {}, void 0, !0)
|
|
5814
|
-
], 8,
|
|
5819
|
+
], 8, oc));
|
|
5815
5820
|
}
|
|
5816
5821
|
}), cc = /* @__PURE__ */ z(sc, [["__scopeId", "data-v-fe85d2ff"]]), Ac = ["href"], uc = { class: "b1-regular" }, dc = { class: "b1-regular" }, fc = /* @__PURE__ */ Q({
|
|
5817
5822
|
__name: "NavigationMenuLink",
|
|
@@ -5826,9 +5831,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5826
5831
|
},
|
|
5827
5832
|
emits: ["toggleId"],
|
|
5828
5833
|
setup(e) {
|
|
5829
|
-
const { isBelowLg: t } = nt(), a = b(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = b(() => typeof e.to == "string" && e.to.startsWith("http")), i = yt() ? tt(Na) : void 0,
|
|
5834
|
+
const { isBelowLg: t } = nt(), a = b(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = b(() => typeof e.to == "string" && e.to.startsWith("http")), i = yt() ? tt(Na) : void 0, r = (i == null ? void 0 : i()) ?? (() => {
|
|
5830
5835
|
});
|
|
5831
|
-
return (
|
|
5836
|
+
return (o, s) => {
|
|
5832
5837
|
const c = ne, A = Mt("RouterLink");
|
|
5833
5838
|
return l(n) ? (u(), I("a", {
|
|
5834
5839
|
key: 0,
|
|
@@ -5839,22 +5844,22 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5839
5844
|
"data-testid": "nav-external-link",
|
|
5840
5845
|
href: e.to,
|
|
5841
5846
|
onClick: s[0] || (s[0] = (d) => {
|
|
5842
|
-
|
|
5847
|
+
o.$emit("toggleId", l(a)), e.onClick(d);
|
|
5843
5848
|
})
|
|
5844
5849
|
}, [
|
|
5845
5850
|
g("span", uc, B(e.text), 1)
|
|
5846
|
-
], 10, Ac)) : (u(),
|
|
5851
|
+
], 10, Ac)) : (u(), p(A, {
|
|
5847
5852
|
key: 1,
|
|
5848
5853
|
class: "av-nav__link",
|
|
5849
5854
|
"data-testid": "nav-router-link",
|
|
5850
5855
|
to: e.to,
|
|
5851
5856
|
onClick: s[1] || (s[1] = (d) => {
|
|
5852
5857
|
var f;
|
|
5853
|
-
l(
|
|
5858
|
+
l(r)(), o.$emit("toggleId", l(a)), (f = e.onClick) == null || f.call(e, d);
|
|
5854
5859
|
})
|
|
5855
5860
|
}, {
|
|
5856
5861
|
default: G(() => [
|
|
5857
|
-
e.icon ? (u(),
|
|
5862
|
+
e.icon ? (u(), p(c, {
|
|
5858
5863
|
key: 0,
|
|
5859
5864
|
name: e.icon,
|
|
5860
5865
|
size: 1.5
|
|
@@ -5881,11 +5886,11 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5881
5886
|
collapsing: a,
|
|
5882
5887
|
cssExpanded: n,
|
|
5883
5888
|
doExpand: i,
|
|
5884
|
-
onTransitionEnd:
|
|
5885
|
-
} = Ze(),
|
|
5889
|
+
onTransitionEnd: r
|
|
5890
|
+
} = Ze(), o = b(() => e.id ?? `menu-${crypto.randomUUID()}`), s = b(() => o.value === e.expandedId), c = b(() => ({
|
|
5886
5891
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5887
5892
|
}));
|
|
5888
|
-
return
|
|
5893
|
+
return re(s, (A, d) => {
|
|
5889
5894
|
A !== d && i(A);
|
|
5890
5895
|
}), de(() => {
|
|
5891
5896
|
s.value && i(!0);
|
|
@@ -5894,22 +5899,22 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5894
5899
|
class: "av-nav__btn",
|
|
5895
5900
|
"aria-expanded": l(s),
|
|
5896
5901
|
"aria-current": e.active || void 0,
|
|
5897
|
-
"aria-controls": l(
|
|
5902
|
+
"aria-controls": l(o),
|
|
5898
5903
|
style: ce(l(c)),
|
|
5899
|
-
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(
|
|
5904
|
+
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(o)))
|
|
5900
5905
|
}, [
|
|
5901
5906
|
g("span", null, B(e.title), 1)
|
|
5902
5907
|
], 12, vc),
|
|
5903
5908
|
g("div", {
|
|
5904
|
-
id: l(
|
|
5909
|
+
id: l(o),
|
|
5905
5910
|
ref_key: "collapse",
|
|
5906
5911
|
ref: t,
|
|
5907
5912
|
class: j(["av-collapse av-menu", { "av-collapse--expanded": l(n), "av-collapsing": l(a) }]),
|
|
5908
5913
|
"data-testid": "navigation-menu",
|
|
5909
|
-
onTransitionend: d[2] || (d[2] = (f) => l(
|
|
5914
|
+
onTransitionend: d[2] || (d[2] = (f) => l(r)(l(s)))
|
|
5910
5915
|
}, [
|
|
5911
5916
|
g("ul", Ic, [
|
|
5912
|
-
(u(!0), I($, null, ie(e.links, (f, C) => (u(),
|
|
5917
|
+
(u(!0), I($, null, ie(e.links, (f, C) => (u(), p(cc, { key: C }, {
|
|
5913
5918
|
default: G(() => [
|
|
5914
5919
|
W(Ta, ee({ ref_for: !0 }, f, {
|
|
5915
5920
|
onToggleId: d[1] || (d[1] = (m) => A.$emit("toggleId", e.expandedId))
|
|
@@ -5949,16 +5954,16 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5949
5954
|
i(s.parentNode);
|
|
5950
5955
|
}
|
|
5951
5956
|
}
|
|
5952
|
-
function
|
|
5957
|
+
function r(s) {
|
|
5953
5958
|
i(s.target);
|
|
5954
5959
|
}
|
|
5955
|
-
function
|
|
5960
|
+
function o(s) {
|
|
5956
5961
|
s.key === "Escape" && n(a.value);
|
|
5957
5962
|
}
|
|
5958
5963
|
return de(() => {
|
|
5959
|
-
document.addEventListener("click",
|
|
5964
|
+
document.addEventListener("click", r), document.addEventListener("keydown", o);
|
|
5960
5965
|
}), ve(() => {
|
|
5961
|
-
document.removeEventListener("click",
|
|
5966
|
+
document.removeEventListener("click", r), document.removeEventListener("keydown", o);
|
|
5962
5967
|
}), (s, c) => (u(), I("div", hc, [
|
|
5963
5968
|
g("nav", {
|
|
5964
5969
|
id: l(t),
|
|
@@ -5967,15 +5972,15 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5967
5972
|
"aria-label": e.label
|
|
5968
5973
|
}, [
|
|
5969
5974
|
g("ul", Cc, [
|
|
5970
|
-
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(),
|
|
5975
|
+
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(), p(rc, { key: d }, {
|
|
5971
5976
|
default: G(() => [
|
|
5972
|
-
A.to && A.text ? (u(),
|
|
5977
|
+
A.to && A.text ? (u(), p(Ta, ee({
|
|
5973
5978
|
key: 0,
|
|
5974
5979
|
ref_for: !0
|
|
5975
5980
|
}, A, {
|
|
5976
5981
|
"active-id": l(a),
|
|
5977
5982
|
onToggleId: c[0] || (c[0] = (f) => n(f))
|
|
5978
|
-
}), null, 16, ["active-id"])) : A.title && A.links ? (u(),
|
|
5983
|
+
}), null, 16, ["active-id"])) : A.title && A.links ? (u(), p(bc, ee({
|
|
5979
5984
|
key: 1,
|
|
5980
5985
|
ref_for: !0
|
|
5981
5986
|
}, A, {
|
|
@@ -5992,7 +5997,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5992
5997
|
}), Mc = ["aria-label"], Ec = { class: "av-pagination__list" }, Nc = { key: 0 }, Tc = { class: "b2-regular" }, Dc = ["href", "title", "aria-disabled"], Lc = { class: "av-sr-only" }, wc = ["href", "title", "aria-disabled"], Oc = {
|
|
5993
5998
|
key: 0,
|
|
5994
5999
|
class: "caption-regular av-hidden av-unhidden-md"
|
|
5995
|
-
}, Sc = ["href", "title", "aria-current", "onClick"], Qc = { key: 0 }, xc = { key: 1 },
|
|
6000
|
+
}, Sc = ["href", "title", "aria-current", "onClick"], Qc = { key: 0 }, xc = { key: 1 }, pc = ["href", "title", "disabled", "aria-disabled"], kc = {
|
|
5996
6001
|
key: 0,
|
|
5997
6002
|
class: "caption-regular av-hidden av-unhidden-md"
|
|
5998
6003
|
}, jc = ["href", "title", "disabled", "aria-disabled"], zc = { class: "av-sr-only" }, Bc = /* @__PURE__ */ Q({
|
|
@@ -6011,7 +6016,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6011
6016
|
},
|
|
6012
6017
|
emits: ["update:current-page"],
|
|
6013
6018
|
setup(e, { emit: t }) {
|
|
6014
|
-
const a = t, n = b(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), i = b(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)),
|
|
6019
|
+
const a = t, n = b(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), i = b(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), r = b(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, i.value + 1) : e.pages), o = (m) => a("update:current-page", m), s = (m) => o(m), c = () => s(0), A = () => s(Math.max(0, e.currentPage - 1)), d = () => s(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => s(e.pages.length - 1), C = (m) => e.pages.indexOf(m) === e.currentPage;
|
|
6015
6020
|
return (m, v) => {
|
|
6016
6021
|
var y, M, T, L;
|
|
6017
6022
|
return u(), I("nav", {
|
|
@@ -6054,7 +6059,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6054
6059
|
e.compact ? D("", !0) : (u(), I("span", Oc, B(e.prevPageLabel), 1))
|
|
6055
6060
|
], 8, wc)
|
|
6056
6061
|
]),
|
|
6057
|
-
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(
|
|
6062
|
+
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(r), (N, O) => (u(), I("li", { key: O }, [
|
|
6058
6063
|
g("a", {
|
|
6059
6064
|
href: N == null ? void 0 : N.href,
|
|
6060
6065
|
class: "av-pagination__link",
|
|
@@ -6062,9 +6067,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6062
6067
|
"aria-current": C(N) ? "page" : void 0,
|
|
6063
6068
|
onClick: ue((V) => s(e.pages.indexOf(N)), ["prevent"])
|
|
6064
6069
|
}, [
|
|
6065
|
-
l(
|
|
6070
|
+
l(r).indexOf(N) === 0 && l(n) > 0 ? (u(), I("span", Qc, "...")) : D("", !0),
|
|
6066
6071
|
De(" " + B(N.label) + " ", 1),
|
|
6067
|
-
l(
|
|
6072
|
+
l(r).indexOf(N) === l(r).length - 1 && l(i) < e.pages.length - 1 ? (u(), I("span", xc, "...")) : D("", !0)
|
|
6068
6073
|
], 8, Sc)
|
|
6069
6074
|
]))), 128)),
|
|
6070
6075
|
g("li", null, [
|
|
@@ -6076,12 +6081,12 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6076
6081
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6077
6082
|
onClick: v[2] || (v[2] = ue((N) => d(), ["prevent"]))
|
|
6078
6083
|
}, [
|
|
6079
|
-
e.compact ? D("", !0) : (u(), I("span",
|
|
6084
|
+
e.compact ? D("", !0) : (u(), I("span", kc, B(e.nextPageLabel), 1)),
|
|
6080
6085
|
W(ne, {
|
|
6081
6086
|
name: l(R).NAVIGATE_NEXT,
|
|
6082
6087
|
size: 1.5
|
|
6083
6088
|
}, null, 8, ["name"])
|
|
6084
|
-
], 8,
|
|
6089
|
+
], 8, pc)
|
|
6085
6090
|
]),
|
|
6086
6091
|
g("li", null, [
|
|
6087
6092
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
@@ -6137,7 +6142,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6137
6142
|
v4d5b7c17: l(c),
|
|
6138
6143
|
v4a813d87: d.padding
|
|
6139
6144
|
}));
|
|
6140
|
-
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t),
|
|
6145
|
+
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t), r = b(() => t.id ?? crypto.randomUUID()), o = b(() => `${r.value} navigation`), s = b({
|
|
6141
6146
|
get: () => t.collapsible ? a.value : !1,
|
|
6142
6147
|
set: (d) => {
|
|
6143
6148
|
t.collapsible && (a.value = d);
|
|
@@ -6147,17 +6152,17 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6147
6152
|
t.collapsible && (s.value = !s.value);
|
|
6148
6153
|
}
|
|
6149
6154
|
return (d, f) => (u(), I("nav", {
|
|
6150
|
-
id: l(
|
|
6155
|
+
id: l(r),
|
|
6151
6156
|
class: j(["av-side-menu", { "av-side-menu--collapsed": l(s) }]),
|
|
6152
|
-
"aria-label": l(
|
|
6157
|
+
"aria-label": l(o)
|
|
6153
6158
|
}, [
|
|
6154
6159
|
t.collapsible ? (u(), I("div", Wc, [
|
|
6155
|
-
W(
|
|
6160
|
+
W(oe, {
|
|
6156
6161
|
"aria-expanded": !l(s),
|
|
6157
|
-
"aria-controls": l(
|
|
6162
|
+
"aria-controls": l(r),
|
|
6158
6163
|
icon: l(s) ? l(R).CHEVRON_DOUBLE_RIGHT : l(R).CHEVRON_DOUBLE_LEFT,
|
|
6159
6164
|
class: "av-side-menu__collapse-button",
|
|
6160
|
-
label: l(s) ? `${l(
|
|
6165
|
+
label: l(s) ? `${l(r)}-expand-button` : `${l(r)}-collapse-button`,
|
|
6161
6166
|
"icon-only": "",
|
|
6162
6167
|
onClick: A
|
|
6163
6168
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
@@ -6189,9 +6194,9 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6189
6194
|
function n(i) {
|
|
6190
6195
|
t.value = i;
|
|
6191
6196
|
}
|
|
6192
|
-
return (i,
|
|
6197
|
+
return (i, r) => (u(), p(Hc, {
|
|
6193
6198
|
collapsed: a.value,
|
|
6194
|
-
"onUpdate:collapsed":
|
|
6199
|
+
"onUpdate:collapsed": r[0] || (r[0] = (o) => a.value = o),
|
|
6195
6200
|
"collapsed-width": e.collapsedWidth,
|
|
6196
6201
|
color: e.selectedItemColor
|
|
6197
6202
|
}, {
|
|
@@ -6201,12 +6206,12 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6201
6206
|
role: "menu"
|
|
6202
6207
|
}, {
|
|
6203
6208
|
default: G(() => [
|
|
6204
|
-
(u(!0), I($, null, ie(e.items, (
|
|
6205
|
-
key:
|
|
6206
|
-
title: a.value ? void 0 :
|
|
6207
|
-
icon:
|
|
6209
|
+
(u(!0), I($, null, ie(e.items, (o) => (u(), p(l(ga), {
|
|
6210
|
+
key: o.id,
|
|
6211
|
+
title: a.value ? void 0 : o.label,
|
|
6212
|
+
icon: o.icon,
|
|
6208
6213
|
"icon-size": 1.8,
|
|
6209
|
-
selected: t.value ===
|
|
6214
|
+
selected: t.value === o.id,
|
|
6210
6215
|
"hover-background-color": e.selectedItemColor,
|
|
6211
6216
|
tag: "button",
|
|
6212
6217
|
role: "menuitem",
|
|
@@ -6214,7 +6219,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6214
6219
|
"av-side-navigation__menu-item--collapsed": a.value
|
|
6215
6220
|
}]),
|
|
6216
6221
|
clickable: "",
|
|
6217
|
-
onClick: (s) => n(
|
|
6222
|
+
onClick: (s) => n(o.id)
|
|
6218
6223
|
}, null, 8, ["title", "icon", "selected", "hover-background-color", "class", "onClick"]))), 128))
|
|
6219
6224
|
]),
|
|
6220
6225
|
_: 1
|
|
@@ -6284,20 +6289,20 @@ function Jc(e, t) {
|
|
|
6284
6289
|
}
|
|
6285
6290
|
n.value = { top: c / 16, left: A / 16 };
|
|
6286
6291
|
}
|
|
6287
|
-
},
|
|
6292
|
+
}, r = () => {
|
|
6288
6293
|
a.value = !1;
|
|
6289
|
-
},
|
|
6290
|
-
e.value && !e.value.contains(s.target) &&
|
|
6294
|
+
}, o = (s) => {
|
|
6295
|
+
e.value && !e.value.contains(s.target) && r();
|
|
6291
6296
|
};
|
|
6292
6297
|
return de(() => {
|
|
6293
|
-
document.addEventListener("click",
|
|
6298
|
+
document.addEventListener("click", o);
|
|
6294
6299
|
}), ve(() => {
|
|
6295
|
-
document.removeEventListener("click",
|
|
6300
|
+
document.removeEventListener("click", o);
|
|
6296
6301
|
}), {
|
|
6297
6302
|
showPopover: a,
|
|
6298
6303
|
popoverPosition: n,
|
|
6299
6304
|
togglePopover: i,
|
|
6300
|
-
closePopover:
|
|
6305
|
+
closePopover: r
|
|
6301
6306
|
};
|
|
6302
6307
|
}
|
|
6303
6308
|
const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
@@ -6311,7 +6316,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6311
6316
|
v553324d8: f.width,
|
|
6312
6317
|
d4f07f42: f.padding
|
|
6313
6318
|
}));
|
|
6314
|
-
const a = U(null), n = U(null), { showPopover: i, popoverPosition:
|
|
6319
|
+
const a = U(null), n = U(null), { showPopover: i, popoverPosition: r, togglePopover: o, closePopover: s } = Jc(a, n), { initializeFocusTrap: c, cleanupFocusTrap: A } = pi(n, s);
|
|
6315
6320
|
function d(f) {
|
|
6316
6321
|
if (!f) {
|
|
6317
6322
|
a.value = null;
|
|
@@ -6324,7 +6329,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6324
6329
|
const C = f.$el;
|
|
6325
6330
|
C instanceof HTMLElement ? a.value = C : a.value = null;
|
|
6326
6331
|
}
|
|
6327
|
-
return t({ setTriggerRef: d, triggerRef: a }),
|
|
6332
|
+
return t({ setTriggerRef: d, triggerRef: a }), re(i, async (f) => {
|
|
6328
6333
|
f ? (await at(), c()) : A();
|
|
6329
6334
|
}), gt(() => {
|
|
6330
6335
|
A();
|
|
@@ -6333,16 +6338,16 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6333
6338
|
ref: d,
|
|
6334
6339
|
class: "av-popover-trigger-wrapper"
|
|
6335
6340
|
}, [
|
|
6336
|
-
P(f.$slots, "trigger", { toggle: l(
|
|
6341
|
+
P(f.$slots, "trigger", { toggle: l(o) }, void 0, !0)
|
|
6337
6342
|
]),
|
|
6338
|
-
(u(),
|
|
6343
|
+
(u(), p(Kt, { to: "body" }, [
|
|
6339
6344
|
l(i) ? (u(), I("div", {
|
|
6340
6345
|
key: 0,
|
|
6341
6346
|
ref_key: "popoverRef",
|
|
6342
6347
|
ref: n,
|
|
6343
6348
|
tabindex: "-1",
|
|
6344
6349
|
class: "av-popover",
|
|
6345
|
-
style: ce(`top: ${l(
|
|
6350
|
+
style: ce(`top: ${l(r).top}rem; left: ${l(r).left}rem;`),
|
|
6346
6351
|
onKeydown: C[0] || (C[0] = Ae(ue(
|
|
6347
6352
|
//@ts-ignore
|
|
6348
6353
|
(...m) => l(s) && l(s)(...m),
|
|
@@ -6372,27 +6377,27 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6372
6377
|
emits: ["itemSelected"],
|
|
6373
6378
|
setup(e, { emit: t }) {
|
|
6374
6379
|
const a = t;
|
|
6375
|
-
function n(i,
|
|
6376
|
-
a("itemSelected", i),
|
|
6380
|
+
function n(i, r) {
|
|
6381
|
+
a("itemSelected", i), r();
|
|
6377
6382
|
}
|
|
6378
|
-
return (i,
|
|
6383
|
+
return (i, r) => (u(), p(eA, {
|
|
6379
6384
|
width: e.width,
|
|
6380
6385
|
padding: e.padding
|
|
6381
6386
|
}, {
|
|
6382
|
-
trigger: G(({ toggle:
|
|
6383
|
-
W(
|
|
6387
|
+
trigger: G(({ toggle: o }) => [
|
|
6388
|
+
W(oe, {
|
|
6384
6389
|
icon: e.triggerIcon,
|
|
6385
6390
|
label: e.triggerLabel || e.triggerAriaLabel,
|
|
6386
6391
|
"aria-label": e.triggerAriaLabel,
|
|
6387
6392
|
variant: e.triggerVariant,
|
|
6388
6393
|
small: e.triggerSmall,
|
|
6389
6394
|
"icon-only": !!e.triggerAriaLabel && !e.triggerLabel,
|
|
6390
|
-
onClick:
|
|
6395
|
+
onClick: o
|
|
6391
6396
|
}, null, 8, ["icon", "label", "aria-label", "variant", "small", "icon-only", "onClick"])
|
|
6392
6397
|
]),
|
|
6393
|
-
popover: G(({ close:
|
|
6398
|
+
popover: G(({ close: o }) => [
|
|
6394
6399
|
g("div", tA, [
|
|
6395
|
-
(u(!0), I($, null, ie(e.items, (s) => (u(),
|
|
6400
|
+
(u(!0), I($, null, ie(e.items, (s) => (u(), p(oe, {
|
|
6396
6401
|
key: s.name,
|
|
6397
6402
|
class: "av-dropdown__menu-item",
|
|
6398
6403
|
icon: s.icon,
|
|
@@ -6402,7 +6407,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6402
6407
|
theme: e.itemTheme,
|
|
6403
6408
|
"icon-scale": e.itemIconScale,
|
|
6404
6409
|
"no-radius": "",
|
|
6405
|
-
onClick: (c) => n(s.name,
|
|
6410
|
+
onClick: (c) => n(s.name, o)
|
|
6406
6411
|
}, null, 8, ["icon", "label", "aria-label", "small", "theme", "icon-scale", "onClick"]))), 128))
|
|
6407
6412
|
])
|
|
6408
6413
|
]),
|
|
@@ -6462,12 +6467,12 @@ const nA = {
|
|
|
6462
6467
|
},
|
|
6463
6468
|
setup(e, { slots: t, emit: a }) {
|
|
6464
6469
|
let n;
|
|
6465
|
-
const i = U(null),
|
|
6470
|
+
const i = U(null), r = b(() => {
|
|
6466
6471
|
const s = i.value;
|
|
6467
6472
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
6468
6473
|
});
|
|
6469
|
-
function
|
|
6470
|
-
return n || (n = Aa(
|
|
6474
|
+
function o() {
|
|
6475
|
+
return n || (n = Aa(r.value, {
|
|
6471
6476
|
escapeDeactivates: e.escapeDeactivates,
|
|
6472
6477
|
allowOutsideClick: e.allowOutsideClick,
|
|
6473
6478
|
returnFocusOnDeactivate: e.returnFocusOnDeactivate,
|
|
@@ -6488,14 +6493,14 @@ const nA = {
|
|
|
6488
6493
|
}));
|
|
6489
6494
|
}
|
|
6490
6495
|
return de(() => {
|
|
6491
|
-
|
|
6492
|
-
s &&
|
|
6496
|
+
re(() => e.active, (s) => {
|
|
6497
|
+
s && r.value ? o().activate() : n && (n.deactivate(), (!r.value || r.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
6493
6498
|
}, { immediate: !0, flush: "post" });
|
|
6494
6499
|
}), ve(() => {
|
|
6495
6500
|
n && n.deactivate(), n = null;
|
|
6496
6501
|
}), {
|
|
6497
6502
|
activate() {
|
|
6498
|
-
|
|
6503
|
+
o().activate();
|
|
6499
6504
|
},
|
|
6500
6505
|
deactivate() {
|
|
6501
6506
|
n && n.deactivate();
|
|
@@ -6503,12 +6508,12 @@ const nA = {
|
|
|
6503
6508
|
renderImpl() {
|
|
6504
6509
|
if (!t.default)
|
|
6505
6510
|
return null;
|
|
6506
|
-
const s = t.default().filter((A) => A.type !==
|
|
6511
|
+
const s = t.default().filter((A) => A.type !== ka);
|
|
6507
6512
|
return !s || !s.length || s.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), s) : ja(s[0], { ref: i });
|
|
6508
6513
|
}
|
|
6509
6514
|
};
|
|
6510
6515
|
}
|
|
6511
|
-
}), lA = ["id", "aria-labelledby", "role", "open"],
|
|
6516
|
+
}), lA = ["id", "aria-labelledby", "role", "open"], rA = { class: "av-container av-container-md av-container--fluid" }, oA = { class: "av-row-md av-row-md--center" }, sA = { class: "av-modal__body" }, cA = { class: "av-modal__content" }, AA = {
|
|
6512
6517
|
key: 0,
|
|
6513
6518
|
class: "header"
|
|
6514
6519
|
}, uA = { class: "av-modal__footer" }, dA = /* @__PURE__ */ Q({
|
|
@@ -6527,10 +6532,10 @@ const nA = {
|
|
|
6527
6532
|
},
|
|
6528
6533
|
emits: ["close", "confirm"],
|
|
6529
6534
|
setup(e, { emit: t }) {
|
|
6530
|
-
const a = t, n = fe(), i = b(() => e.id ?? `modal-${crypto.randomUUID()}`),
|
|
6531
|
-
|
|
6535
|
+
const a = t, n = fe(), i = b(() => e.id ?? `modal-${crypto.randomUUID()}`), r = b(() => e.isAlert ? "alertdialog" : "dialog"), o = U(null), s = U();
|
|
6536
|
+
re(() => e.opened, (A) => {
|
|
6532
6537
|
var d, f, C;
|
|
6533
|
-
A ? ((d = s.value) == null || d.showModal(), (f =
|
|
6538
|
+
A ? ((d = s.value) == null || d.showModal(), (f = o.value) == null || f.focus()) : (C = s.value) == null || C.close(), c(A);
|
|
6534
6539
|
});
|
|
6535
6540
|
function c(A) {
|
|
6536
6541
|
typeof window < "u" && document.body.classList.toggle("modal-open", A);
|
|
@@ -6541,8 +6546,8 @@ const nA = {
|
|
|
6541
6546
|
c(!1);
|
|
6542
6547
|
}), (A, d) => {
|
|
6543
6548
|
const f = Ea;
|
|
6544
|
-
return u(),
|
|
6545
|
-
e.opened ? (u(),
|
|
6549
|
+
return u(), p(Kt, { to: "body" }, [
|
|
6550
|
+
e.opened ? (u(), p(l(iA), { key: 0 }, {
|
|
6546
6551
|
default: G(() => [
|
|
6547
6552
|
g("dialog", {
|
|
6548
6553
|
id: l(i),
|
|
@@ -6550,13 +6555,13 @@ const nA = {
|
|
|
6550
6555
|
ref: s,
|
|
6551
6556
|
"aria-modal": "true",
|
|
6552
6557
|
"aria-labelledby": l(i),
|
|
6553
|
-
role: l(
|
|
6558
|
+
role: l(r),
|
|
6554
6559
|
class: j(["av-modal", { "av-modal--opened": e.opened }]),
|
|
6555
6560
|
open: e.opened,
|
|
6556
6561
|
onKeydown: d[2] || (d[2] = Ae((C) => a("close"), ["esc"]))
|
|
6557
6562
|
}, [
|
|
6558
|
-
g("div",
|
|
6559
|
-
g("div",
|
|
6563
|
+
g("div", rA, [
|
|
6564
|
+
g("div", oA, [
|
|
6560
6565
|
g("div", sA, [
|
|
6561
6566
|
g("div", cA, [
|
|
6562
6567
|
n.header ? (u(), I("div", AA, [
|
|
@@ -6567,7 +6572,7 @@ const nA = {
|
|
|
6567
6572
|
g("div", uA, [
|
|
6568
6573
|
W(f, {
|
|
6569
6574
|
ref_key: "closeBtn",
|
|
6570
|
-
ref:
|
|
6575
|
+
ref: o,
|
|
6571
6576
|
"cancel-label": e.closeButtonLabel,
|
|
6572
6577
|
"cancel-icon": e.closeButtonIcon,
|
|
6573
6578
|
"cancel-disabled": e.closeButtonDisabled,
|
|
@@ -6600,7 +6605,7 @@ export {
|
|
|
6600
6605
|
OA as AvAutocomplete,
|
|
6601
6606
|
mA as AvBadge,
|
|
6602
6607
|
BA as AvBreadcrumb,
|
|
6603
|
-
|
|
6608
|
+
oe as AvButton,
|
|
6604
6609
|
Ea as AvCancelConfirmButtons,
|
|
6605
6610
|
hA as AvCard,
|
|
6606
6611
|
Ki as AvCheckbox,
|
|
@@ -6615,7 +6620,7 @@ export {
|
|
|
6615
6620
|
ne as AvIcon,
|
|
6616
6621
|
Ra as AvIconText,
|
|
6617
6622
|
Nt as AvInput,
|
|
6618
|
-
|
|
6623
|
+
pt as AvLanguageSelector,
|
|
6619
6624
|
Ia as AvList,
|
|
6620
6625
|
ga as AvListItem,
|
|
6621
6626
|
Ls as AvLogo,
|
|
@@ -6626,7 +6631,7 @@ export {
|
|
|
6626
6631
|
LA as AvPageSizePicker,
|
|
6627
6632
|
WA as AvPagination,
|
|
6628
6633
|
eA as AvPopover,
|
|
6629
|
-
|
|
6634
|
+
Rr as AvRadioButton,
|
|
6630
6635
|
wA as AvRadioButtonSet,
|
|
6631
6636
|
NA as AvRichButton,
|
|
6632
6637
|
Vt as AvSearchBar,
|
|
@@ -6635,11 +6640,11 @@ export {
|
|
|
6635
6640
|
VA as AvSideNavigation,
|
|
6636
6641
|
HA as AvStepper,
|
|
6637
6642
|
xA as AvTab,
|
|
6638
|
-
|
|
6643
|
+
pA as AvTabs,
|
|
6639
6644
|
Va as AvTag,
|
|
6640
|
-
|
|
6645
|
+
Ur as AvTagPicker,
|
|
6641
6646
|
yA as AvToaster,
|
|
6642
|
-
|
|
6647
|
+
kA as AvToggle,
|
|
6643
6648
|
Qe as DropdownState,
|
|
6644
6649
|
zA as EsupLogo,
|
|
6645
6650
|
me as ICONS_DATA_URL,
|
|
@@ -6655,6 +6660,6 @@ export {
|
|
|
6655
6660
|
_a as toSentenceCase,
|
|
6656
6661
|
nt as useAvBreakpoints,
|
|
6657
6662
|
Ze as useCollapsable,
|
|
6658
|
-
|
|
6663
|
+
pi as useFocusTrap,
|
|
6659
6664
|
EA as useGlobalBackgroundColor
|
|
6660
6665
|
};
|