@avenirs-esr/avenirs-dsav 0.1.84 → 0.1.86
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/badges/AvBadge/AvBadge.stub.d.ts +2 -2
- package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +3 -3
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +188 -184
- package/dist/test-utils.cjs.js +1 -1
- package/dist/test-utils.es.js +1 -1
- package/dist/tokens/icons.d.ts +1 -0
- package/dist/utils/storybook.d.ts +4 -0
- package/package.json +1 -1
- package/src/styles/components/_icons.scss +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as se, computed as
|
|
1
|
+
import { defineComponent as Q, useCssVars as se, computed as h, createElementBlock as I, openBlock as u, normalizeStyle as ce, normalizeClass as j, unref as i, createElementVNode as b, toDisplayString as B, createPropsRestProxy as Da, createBlock as p, resolveDynamicComponent as Me, mergeProps as ee, withCtx as G, createCommentVNode as L, createVNode as U, Fragment as $, renderList as le, useSlots as fe, createTextVNode as De, renderSlot as P, ref as W, normalizeProps as La, withDirectives as It, vShow as qt, TransitionGroup as wa, toRefs as Ft, watch as oe, onBeforeUnmount as gt, inject as tt, toRef as bt, onMounted as de, provide as ht, onUnmounted as ve, nextTick as at, getCurrentScope as Oa, onScopeDispose as Sa, getCurrentInstance as yt, hasInjectionContext as Ct, isRef as Mt, toValue as ie, 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, Transition as pa, useTemplateRef as ka, resolveComponent as Et, Teleport as Kt, Comment as ja, cloneVNode as za } from "vue";
|
|
2
2
|
import { r as Gt } from "./injection-key.es.js";
|
|
3
3
|
const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
4
4
|
__name: "AvBadge",
|
|
@@ -6,26 +6,29 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
6
6
|
color: {},
|
|
7
7
|
backgroundColor: {},
|
|
8
8
|
borderColor: {},
|
|
9
|
-
|
|
9
|
+
icon: {},
|
|
10
10
|
label: {},
|
|
11
11
|
small: { type: Boolean, default: !1 },
|
|
12
12
|
ellipsis: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
se((
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
se((l) => ({
|
|
16
|
+
v249f14f6: l.color,
|
|
17
|
+
v667d0b12: l.backgroundColor,
|
|
18
|
+
v23262b39: l.borderColor
|
|
19
19
|
}));
|
|
20
|
-
const t =
|
|
21
|
-
|
|
20
|
+
const t = h(() => {
|
|
21
|
+
var l, o;
|
|
22
|
+
return (l = e.icon) != null && l.startsWith("data:") ? null : (o = e.icon) == null ? void 0 : o.replace(":", "-");
|
|
23
|
+
}), a = h(() => `--icon-${t.value}`), n = h(() => t.value ? { "--icon-path": `var(${a.value})` } : e.icon ? { "--icon-path": `url(${e.icon})` } : {});
|
|
24
|
+
return (l, o) => (u(), I("p", {
|
|
22
25
|
class: j(["av-badge", {
|
|
23
26
|
"av-badge--sm": e.small,
|
|
24
|
-
"av-badge--custom-icon": e.
|
|
25
|
-
"av-badge--no-icon": !e.
|
|
27
|
+
"av-badge--custom-icon": e.icon,
|
|
28
|
+
"av-badge--no-icon": !e.icon
|
|
26
29
|
}]),
|
|
27
30
|
title: e.ellipsis ? e.label : void 0,
|
|
28
|
-
style: ce(i(
|
|
31
|
+
style: ce(i(n))
|
|
29
32
|
}, [
|
|
30
33
|
b("span", {
|
|
31
34
|
class: j({
|
|
@@ -41,7 +44,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
41
44
|
for (const [n, l] of t)
|
|
42
45
|
a[n] = l;
|
|
43
46
|
return a;
|
|
44
|
-
}, IA = /* @__PURE__ */ z(Pa, [["__scopeId", "data-v-
|
|
47
|
+
}, IA = /* @__PURE__ */ z(Pa, [["__scopeId", "data-v-75f1ba66"]]), Wa = ["title"], Ua = /* @__PURE__ */ Q({
|
|
45
48
|
__name: "AvIcon",
|
|
46
49
|
props: {
|
|
47
50
|
size: { default: 1 },
|
|
@@ -57,7 +60,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
57
60
|
v45e97e25: i(t),
|
|
58
61
|
v7f7f664e: l.color
|
|
59
62
|
}));
|
|
60
|
-
const t =
|
|
63
|
+
const t = h(() => `${e.size}rem`), a = h(() => e.name.replace(":", "-")), n = h(() => `--icon-${a.value}`);
|
|
61
64
|
return (l, o) => (u(), I("div", {
|
|
62
65
|
class: j(["av-icon", {
|
|
63
66
|
"av-icon--spin": e.animation === "spin",
|
|
@@ -157,6 +160,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
157
160
|
RECORD_CIRCLE_OUTLINE: "mdi:record-circle-outline",
|
|
158
161
|
SCHOOL_OUTLINE: "mdi:school-outline",
|
|
159
162
|
SHARE_VARIANT_OUTLINE: "mdi:share-variant-outline",
|
|
163
|
+
STAR: "mdi:star",
|
|
160
164
|
STAR_CHECK_OUTLINE: "mdi:star-check-outline",
|
|
161
165
|
STAR_SHOOTING_OUTLINE: "mdi:star-shooting-outline",
|
|
162
166
|
STARS: "mdi:stars",
|
|
@@ -217,7 +221,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
217
221
|
},
|
|
218
222
|
emits: ["select"],
|
|
219
223
|
setup(e) {
|
|
220
|
-
const t = Da(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a =
|
|
224
|
+
const t = Da(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a = h(() => e.disabled && e.tagName === "p" || t.selectable ? "button" : e.tagName), n = h(() => ({
|
|
221
225
|
"--icon-path": `url(${me.MDI_CHECK_CIRCLE_OUTLINE})`
|
|
222
226
|
}));
|
|
223
227
|
return (l, o) => (u(), p(Me(i(a)), ee({
|
|
@@ -261,7 +265,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
261
265
|
v7e6d040d: l.gap,
|
|
262
266
|
v19519e2d: l.textColor
|
|
263
267
|
}));
|
|
264
|
-
const t =
|
|
268
|
+
const t = h(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = h(() => e.inline ? void 0 : "ellipsis-container"), n = h(() => e.inline ? void 0 : "ellipsis");
|
|
265
269
|
return (l, o) => (u(), I("div", {
|
|
266
270
|
class: j(["icon-text--container", [i(a)]])
|
|
267
271
|
}, [
|
|
@@ -287,7 +291,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
287
291
|
message: {}
|
|
288
292
|
},
|
|
289
293
|
setup(e) {
|
|
290
|
-
const t =
|
|
294
|
+
const t = h(() => e.messageId ?? `message-${crypto.randomUUID()}`), a = h(() => {
|
|
291
295
|
switch (e.type) {
|
|
292
296
|
case "success":
|
|
293
297
|
return {
|
|
@@ -318,7 +322,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
318
322
|
typographyClass: "caption-regular"
|
|
319
323
|
};
|
|
320
324
|
}
|
|
321
|
-
}), n =
|
|
325
|
+
}), n = h(() => e.message ? Array.isArray(e.message) ? e.message : [e.message ?? ""] : []);
|
|
322
326
|
return (l, o) => {
|
|
323
327
|
const r = Za;
|
|
324
328
|
return u(), I("div", Xa, [
|
|
@@ -350,7 +354,7 @@ const Ba = ["title"], Pa = /* @__PURE__ */ Q({
|
|
|
350
354
|
required: { type: Boolean, default: !1 }
|
|
351
355
|
},
|
|
352
356
|
setup(e) {
|
|
353
|
-
const t = fe(), a =
|
|
357
|
+
const t = fe(), a = h(() => e.errorMessage || e.successMessage);
|
|
354
358
|
return (n, l) => {
|
|
355
359
|
const o = pe;
|
|
356
360
|
return u(), I("fieldset", {
|
|
@@ -418,7 +422,7 @@ const tn = { class: "b2-bold" }, an = { class: "b2-regular" }, nn = ["innerHTML"
|
|
|
418
422
|
type: {}
|
|
419
423
|
},
|
|
420
424
|
setup(e) {
|
|
421
|
-
const t =
|
|
425
|
+
const t = h(() => _a(e.text)), a = h(() => {
|
|
422
426
|
switch (e.type) {
|
|
423
427
|
case "warning":
|
|
424
428
|
return { name: R.WARNING, color: "var(--dark-background-warn)" };
|
|
@@ -474,14 +478,14 @@ const rn = ["title", "disabled", "aria-disabled", "aria-label"], sn = /* @__PURE
|
|
|
474
478
|
(f = a.value) == null || f.focus();
|
|
475
479
|
}
|
|
476
480
|
t({ focus: n });
|
|
477
|
-
const l = { name: R.LOADING, animation: "spin" }, o =
|
|
481
|
+
const l = { name: R.LOADING, animation: "spin" }, o = h(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : e.small ? 1 : 1.5), r = h(() => {
|
|
478
482
|
if (e.isLoading)
|
|
479
483
|
return { ...l, size: o.value };
|
|
480
484
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
481
485
|
return { name: e.icon, size: o.value };
|
|
482
486
|
if (e.icon && typeof e.icon != "string")
|
|
483
487
|
return { ...e.icon, size: o.value };
|
|
484
|
-
}), s =
|
|
488
|
+
}), s = h(() => e.noSentenceCase ? e.label : en(e.label)), c = h(() => e.disabled || e.isLoading), A = h(() => `av-button--variant-${e.variant.toLowerCase()}`), d = h(() => `av-button--theme-${e.theme.toLowerCase()}`);
|
|
485
489
|
return (f, C) => {
|
|
486
490
|
const m = ne;
|
|
487
491
|
return u(), I("button", {
|
|
@@ -564,7 +568,7 @@ const rn = ["title", "disabled", "aria-disabled", "aria-label"], sn = /* @__PURE
|
|
|
564
568
|
], 4);
|
|
565
569
|
};
|
|
566
570
|
}
|
|
567
|
-
}), yA = /* @__PURE__ */ z(dn, [["__scopeId", "data-v-
|
|
571
|
+
}), yA = /* @__PURE__ */ z(dn, [["__scopeId", "data-v-52922478"]]), fn = ["id", "role"], vn = { class: "av-alert__container" }, mn = { class: "av-alert__content" }, In = { class: "av-alert__title" }, gn = {
|
|
568
572
|
key: 0,
|
|
569
573
|
class: "s2-bold"
|
|
570
574
|
}, bn = { class: "b1-regular" }, hn = /* @__PURE__ */ Q({
|
|
@@ -582,14 +586,14 @@ const rn = ["title", "disabled", "aria-disabled", "aria-label"], sn = /* @__PURE
|
|
|
582
586
|
},
|
|
583
587
|
emits: ["close"],
|
|
584
588
|
setup(e, { emit: t }) {
|
|
585
|
-
const a = t, n =
|
|
589
|
+
const a = t, n = h(() => e.id ?? `alert-${crypto.randomUUID()}`), l = () => a("close"), o = h(
|
|
586
590
|
() => [
|
|
587
591
|
`av-alert--${e.type}`,
|
|
588
592
|
{
|
|
589
593
|
"av-alert--sm": e.small
|
|
590
594
|
}
|
|
591
595
|
]
|
|
592
|
-
), r =
|
|
596
|
+
), r = h(() => {
|
|
593
597
|
switch (e.type) {
|
|
594
598
|
case "error":
|
|
595
599
|
return { name: R.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
@@ -766,10 +770,10 @@ const Qn = { class: "av-accordion" }, xn = { class: "av-accordion__title" }, pn
|
|
|
766
770
|
cssExpanded: n,
|
|
767
771
|
doExpand: l,
|
|
768
772
|
onTransitionEnd: o
|
|
769
|
-
} = Ze(), r =
|
|
773
|
+
} = Ze(), r = h(() => e.id ?? `accordion-${crypto.randomUUID()}`), s = W(), c = tt(Gt), { isActive: A, expand: d } = (c == null ? void 0 : c(bt(() => e.title))) ?? {
|
|
770
774
|
isActive: s,
|
|
771
775
|
expand: () => s.value = !s.value
|
|
772
|
-
}, f =
|
|
776
|
+
}, f = h(() => ({
|
|
773
777
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
774
778
|
}));
|
|
775
779
|
return de(() => {
|
|
@@ -829,7 +833,7 @@ const Qn = { class: "av-accordion" }, xn = { class: "av-accordion__title" }, pn
|
|
|
829
833
|
},
|
|
830
834
|
emits: ["update:activeAccordion"],
|
|
831
835
|
setup(e, { emit: t }) {
|
|
832
|
-
const a = t, n = W(e.activeAccordion ?? -1), l =
|
|
836
|
+
const a = t, n = W(e.activeAccordion ?? -1), l = h({
|
|
833
837
|
get: () => n.value,
|
|
834
838
|
set(s) {
|
|
835
839
|
n.value = s, a("update:activeAccordion", s);
|
|
@@ -838,7 +842,7 @@ const Qn = { class: "av-accordion" }, xn = { class: "av-accordion__title" }, pn
|
|
|
838
842
|
return ht(Gt, (s) => {
|
|
839
843
|
const c = r.value++;
|
|
840
844
|
o.value.set(c, s.value);
|
|
841
|
-
const A =
|
|
845
|
+
const A = h(() => c === l.value);
|
|
842
846
|
oe(s, () => {
|
|
843
847
|
o.value.set(c, s.value);
|
|
844
848
|
});
|
|
@@ -962,7 +966,7 @@ function Nt(e) {
|
|
|
962
966
|
function dt(...e) {
|
|
963
967
|
const t = [], a = () => {
|
|
964
968
|
t.forEach((s) => s()), t.length = 0;
|
|
965
|
-
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), l =
|
|
969
|
+
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), l = h(() => {
|
|
966
970
|
const s = Fe(ie(e[0])).filter((c) => c != null);
|
|
967
971
|
return s.every((c) => typeof c != "string") ? s : void 0;
|
|
968
972
|
}), o = Jn(
|
|
@@ -1004,14 +1008,14 @@ function $n() {
|
|
|
1004
1008
|
// @__NO_SIDE_EFFECTS__
|
|
1005
1009
|
function aa(e) {
|
|
1006
1010
|
const t = /* @__PURE__ */ $n();
|
|
1007
|
-
return
|
|
1011
|
+
return h(() => (t.value, !!e()));
|
|
1008
1012
|
}
|
|
1009
1013
|
function _n(e, t, a = {}) {
|
|
1010
1014
|
const { window: n = Xe, ...l } = a;
|
|
1011
1015
|
let o;
|
|
1012
1016
|
const r = /* @__PURE__ */ aa(() => n && "MutationObserver" in n), s = () => {
|
|
1013
1017
|
o && (o.disconnect(), o = void 0);
|
|
1014
|
-
}, c =
|
|
1018
|
+
}, c = h(() => {
|
|
1015
1019
|
const C = ie(e), m = Fe(C).map(Nt).filter(Hn);
|
|
1016
1020
|
return new Set(m);
|
|
1017
1021
|
}), A = oe(
|
|
@@ -1051,7 +1055,7 @@ function ze(e, t = {}) {
|
|
|
1051
1055
|
return;
|
|
1052
1056
|
}
|
|
1053
1057
|
l.value && (r.value = a.matchMedia(ie(e)), s.value = r.value.matches);
|
|
1054
|
-
}), dt(r, "change", c, { passive: !0 }),
|
|
1058
|
+
}), dt(r, "change", c, { passive: !0 }), h(() => s.value);
|
|
1055
1059
|
}
|
|
1056
1060
|
// @__NO_SIDE_EFFECTS__
|
|
1057
1061
|
function tl(e, t = {}) {
|
|
@@ -1071,7 +1075,7 @@ function tl(e, t = {}) {
|
|
|
1071
1075
|
}), m), {});
|
|
1072
1076
|
function C() {
|
|
1073
1077
|
const m = Object.keys(e).map((v) => [v, f[v], Ve(a(v))]).sort((v, g) => v[2] - g[2]);
|
|
1074
|
-
return
|
|
1078
|
+
return h(() => m.filter(([, v]) => v.value).map(([v]) => v));
|
|
1075
1079
|
}
|
|
1076
1080
|
return Object.assign(f, {
|
|
1077
1081
|
greaterOrEqual: A,
|
|
@@ -1103,7 +1107,7 @@ function tl(e, t = {}) {
|
|
|
1103
1107
|
current: C,
|
|
1104
1108
|
active() {
|
|
1105
1109
|
const m = C();
|
|
1106
|
-
return
|
|
1110
|
+
return h(() => m.value.length === 0 ? "" : m.value.at(l === "min-width" ? -1 : 0));
|
|
1107
1111
|
}
|
|
1108
1112
|
});
|
|
1109
1113
|
}
|
|
@@ -1134,14 +1138,14 @@ function al(e, t = {}) {
|
|
|
1134
1138
|
}
|
|
1135
1139
|
} = t, C = typeof s == "boolean" ? {
|
|
1136
1140
|
mutation: s
|
|
1137
|
-
} : s, m = ye(0), v = ye(0), g =
|
|
1141
|
+
} : s, m = ye(0), v = ye(0), g = h({
|
|
1138
1142
|
get() {
|
|
1139
1143
|
return m.value;
|
|
1140
1144
|
},
|
|
1141
1145
|
set(x) {
|
|
1142
1146
|
E(x, void 0);
|
|
1143
1147
|
}
|
|
1144
|
-
}), D =
|
|
1148
|
+
}), D = h({
|
|
1145
1149
|
get() {
|
|
1146
1150
|
return v.value;
|
|
1147
1151
|
},
|
|
@@ -1150,13 +1154,13 @@ function al(e, t = {}) {
|
|
|
1150
1154
|
}
|
|
1151
1155
|
});
|
|
1152
1156
|
function E(x, H) {
|
|
1153
|
-
var O, k,
|
|
1157
|
+
var O, k, y, M;
|
|
1154
1158
|
if (!d)
|
|
1155
1159
|
return;
|
|
1156
1160
|
const S = ie(e);
|
|
1157
1161
|
if (!S)
|
|
1158
1162
|
return;
|
|
1159
|
-
(
|
|
1163
|
+
(y = S instanceof Document ? d.document.body : S) == null || y.scrollTo({
|
|
1160
1164
|
top: (O = ie(H)) != null ? O : D.value,
|
|
1161
1165
|
left: (k = ie(x)) != null ? k : g.value,
|
|
1162
1166
|
behavior: ie(A)
|
|
@@ -1180,14 +1184,14 @@ function al(e, t = {}) {
|
|
|
1180
1184
|
var H;
|
|
1181
1185
|
if (!d)
|
|
1182
1186
|
return;
|
|
1183
|
-
const O = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Nt(x), { display: k, flexDirection:
|
|
1187
|
+
const O = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Nt(x), { display: k, flexDirection: y, direction: M } = getComputedStyle(O), S = M === "rtl" ? -1 : 1, Y = O.scrollLeft;
|
|
1184
1188
|
w.left = Y < m.value, w.right = Y > m.value;
|
|
1185
1189
|
const F = Math.abs(Y * S) <= (r.left || 0), J = Math.abs(Y * S) + O.clientWidth >= O.scrollWidth - (r.right || 0) - wt;
|
|
1186
|
-
k === "flex" &&
|
|
1190
|
+
k === "flex" && y === "row-reverse" ? (N.left = J, N.right = F) : (N.left = F, N.right = J), m.value = Y;
|
|
1187
1191
|
let X = O.scrollTop;
|
|
1188
1192
|
x === d.document && !X && (X = d.document.body.scrollTop), w.top = X < v.value, w.bottom = X > v.value;
|
|
1189
1193
|
const _ = Math.abs(X) <= (r.top || 0), ae = Math.abs(X) + O.clientHeight >= O.scrollHeight - (r.bottom || 0) - wt;
|
|
1190
|
-
k === "flex" &&
|
|
1194
|
+
k === "flex" && y === "column-reverse" ? (N.top = ae, N.bottom = _) : (N.top = _, N.bottom = ae), v.value = X;
|
|
1191
1195
|
}, te = (x) => {
|
|
1192
1196
|
var H;
|
|
1193
1197
|
if (!d)
|
|
@@ -1248,7 +1252,7 @@ const nl = {
|
|
|
1248
1252
|
/* 90rem */
|
|
1249
1253
|
};
|
|
1250
1254
|
function nt() {
|
|
1251
|
-
const e = /* @__PURE__ */ tl(nl), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), l = e.smaller("xl"), o = e.greater("md"), r = e.greater("lg"), s = a, c =
|
|
1255
|
+
const e = /* @__PURE__ */ tl(nl), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), l = e.smaller("xl"), o = e.greater("md"), r = e.greater("lg"), s = a, c = h(() => o.value && n.value), A = r, d = e.active();
|
|
1252
1256
|
return {
|
|
1253
1257
|
isMobile: s,
|
|
1254
1258
|
isTablet: c,
|
|
@@ -1604,58 +1608,58 @@ var xt = {
|
|
|
1604
1608
|
delayInitialFocusTimer: void 0,
|
|
1605
1609
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1606
1610
|
recentNavEvent: void 0
|
|
1607
|
-
}, s, c = function(
|
|
1608
|
-
return
|
|
1609
|
-
}, A = function(
|
|
1611
|
+
}, s, c = function(y, M, S) {
|
|
1612
|
+
return y && y[M] !== void 0 ? y[M] : o[S || M];
|
|
1613
|
+
}, A = function(y, M) {
|
|
1610
1614
|
var S = typeof (M == null ? void 0 : M.composedPath) == "function" ? M.composedPath() : void 0;
|
|
1611
1615
|
return r.containerGroups.findIndex(function(Y) {
|
|
1612
1616
|
var F = Y.container, J = Y.tabbableNodes;
|
|
1613
|
-
return F.contains(
|
|
1617
|
+
return F.contains(y) || // fall back to explicit tabbable search which will take into consideration any
|
|
1614
1618
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
1615
1619
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
1616
1620
|
// look inside web components even if open)
|
|
1617
1621
|
(S == null ? void 0 : S.includes(F)) || J.find(function(X) {
|
|
1618
|
-
return X ===
|
|
1622
|
+
return X === y;
|
|
1619
1623
|
});
|
|
1620
1624
|
});
|
|
1621
|
-
}, d = function(
|
|
1622
|
-
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = M.hasFallback, Y = S === void 0 ? !1 : S, F = M.params, J = F === void 0 ? [] : F, X = o[
|
|
1625
|
+
}, d = function(y) {
|
|
1626
|
+
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = M.hasFallback, Y = S === void 0 ? !1 : S, F = M.params, J = F === void 0 ? [] : F, X = o[y];
|
|
1623
1627
|
if (typeof X == "function" && (X = X.apply(void 0, Tl(J))), X === !0 && (X = void 0), !X) {
|
|
1624
1628
|
if (X === void 0 || X === !1)
|
|
1625
1629
|
return X;
|
|
1626
|
-
throw new Error("`".concat(
|
|
1630
|
+
throw new Error("`".concat(y, "` was specified but was not a node, or did not return a node"));
|
|
1627
1631
|
}
|
|
1628
1632
|
var _ = X;
|
|
1629
1633
|
if (typeof X == "string") {
|
|
1630
1634
|
try {
|
|
1631
1635
|
_ = n.querySelector(X);
|
|
1632
1636
|
} catch (ae) {
|
|
1633
|
-
throw new Error("`".concat(
|
|
1637
|
+
throw new Error("`".concat(y, '` appears to be an invalid selector; error="').concat(ae.message, '"'));
|
|
1634
1638
|
}
|
|
1635
1639
|
if (!_ && !Y)
|
|
1636
|
-
throw new Error("`".concat(
|
|
1640
|
+
throw new Error("`".concat(y, "` as selector refers to no known node"));
|
|
1637
1641
|
}
|
|
1638
1642
|
return _;
|
|
1639
1643
|
}, f = function() {
|
|
1640
|
-
var
|
|
1644
|
+
var y = d("initialFocus", {
|
|
1641
1645
|
hasFallback: !0
|
|
1642
1646
|
});
|
|
1643
|
-
if (
|
|
1647
|
+
if (y === !1)
|
|
1644
1648
|
return !1;
|
|
1645
|
-
if (
|
|
1649
|
+
if (y === void 0 || y && !st(y, o.tabbableOptions))
|
|
1646
1650
|
if (A(n.activeElement) >= 0)
|
|
1647
|
-
|
|
1651
|
+
y = n.activeElement;
|
|
1648
1652
|
else {
|
|
1649
1653
|
var M = r.tabbableGroups[0], S = M && M.firstTabbableNode;
|
|
1650
|
-
|
|
1654
|
+
y = S || d("fallbackFocus");
|
|
1651
1655
|
}
|
|
1652
|
-
else
|
|
1653
|
-
if (!
|
|
1656
|
+
else y === null && (y = d("fallbackFocus"));
|
|
1657
|
+
if (!y)
|
|
1654
1658
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1655
|
-
return
|
|
1659
|
+
return y;
|
|
1656
1660
|
}, C = function() {
|
|
1657
|
-
if (r.containerGroups = r.containers.map(function(
|
|
1658
|
-
var M = bl(
|
|
1661
|
+
if (r.containerGroups = r.containers.map(function(y) {
|
|
1662
|
+
var M = bl(y, o.tabbableOptions), S = hl(y, o.tabbableOptions), Y = M.length > 0 ? M[0] : void 0, F = M.length > 0 ? M[M.length - 1] : void 0, J = S.find(function(ae) {
|
|
1659
1663
|
return Oe(ae);
|
|
1660
1664
|
}), X = S.slice().reverse().find(function(ae) {
|
|
1661
1665
|
return Oe(ae);
|
|
@@ -1663,7 +1667,7 @@ var xt = {
|
|
|
1663
1667
|
return Te(ae) > 0;
|
|
1664
1668
|
});
|
|
1665
1669
|
return {
|
|
1666
|
-
container:
|
|
1670
|
+
container: y,
|
|
1667
1671
|
tabbableNodes: M,
|
|
1668
1672
|
focusableNodes: S,
|
|
1669
1673
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
@@ -1700,35 +1704,35 @@ var xt = {
|
|
|
1700
1704
|
}) : M[be + (ke ? 1 : -1)];
|
|
1701
1705
|
}
|
|
1702
1706
|
};
|
|
1703
|
-
}), r.tabbableGroups = r.containerGroups.filter(function(
|
|
1704
|
-
return
|
|
1707
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(y) {
|
|
1708
|
+
return y.tabbableNodes.length > 0;
|
|
1705
1709
|
}), r.tabbableGroups.length <= 0 && !d("fallbackFocus"))
|
|
1706
1710
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1707
|
-
if (r.containerGroups.find(function(
|
|
1708
|
-
return
|
|
1711
|
+
if (r.containerGroups.find(function(y) {
|
|
1712
|
+
return y.posTabIndexesFound;
|
|
1709
1713
|
}) && r.containerGroups.length > 1)
|
|
1710
1714
|
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.");
|
|
1711
|
-
}, m = function(
|
|
1712
|
-
var M =
|
|
1715
|
+
}, m = function(y) {
|
|
1716
|
+
var M = y.activeElement;
|
|
1713
1717
|
if (M)
|
|
1714
1718
|
return M.shadowRoot && M.shadowRoot.activeElement !== null ? m(M.shadowRoot) : M;
|
|
1715
|
-
}, v = function(
|
|
1716
|
-
if (
|
|
1717
|
-
if (!
|
|
1719
|
+
}, v = function(y) {
|
|
1720
|
+
if (y !== !1 && y !== m(document)) {
|
|
1721
|
+
if (!y || !y.focus) {
|
|
1718
1722
|
v(f());
|
|
1719
1723
|
return;
|
|
1720
1724
|
}
|
|
1721
|
-
|
|
1725
|
+
y.focus({
|
|
1722
1726
|
preventScroll: !!o.preventScroll
|
|
1723
|
-
}), r.mostRecentlyFocusedNode =
|
|
1727
|
+
}), r.mostRecentlyFocusedNode = y, Ol(y) && y.select();
|
|
1724
1728
|
}
|
|
1725
|
-
}, g = function(
|
|
1729
|
+
}, g = function(y) {
|
|
1726
1730
|
var M = d("setReturnFocus", {
|
|
1727
|
-
params: [
|
|
1731
|
+
params: [y]
|
|
1728
1732
|
});
|
|
1729
|
-
return M || (M === !1 ? !1 :
|
|
1730
|
-
}, D = function(
|
|
1731
|
-
var M =
|
|
1733
|
+
return M || (M === !1 ? !1 : y);
|
|
1734
|
+
}, D = function(y) {
|
|
1735
|
+
var M = y.target, S = y.event, Y = y.isBackward, F = Y === void 0 ? !1 : Y;
|
|
1732
1736
|
M = M || Ye(S), C();
|
|
1733
1737
|
var J = null;
|
|
1734
1738
|
if (r.tabbableGroups.length > 0) {
|
|
@@ -1757,10 +1761,10 @@ var xt = {
|
|
|
1757
1761
|
} else
|
|
1758
1762
|
J = d("fallbackFocus");
|
|
1759
1763
|
return J;
|
|
1760
|
-
}, E = function(
|
|
1761
|
-
var M = Ye(
|
|
1762
|
-
if (!(A(M,
|
|
1763
|
-
if (Be(o.clickOutsideDeactivates,
|
|
1764
|
+
}, E = function(y) {
|
|
1765
|
+
var M = Ye(y);
|
|
1766
|
+
if (!(A(M, y) >= 0)) {
|
|
1767
|
+
if (Be(o.clickOutsideDeactivates, y)) {
|
|
1764
1768
|
s.deactivate({
|
|
1765
1769
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
1766
1770
|
// which will result in the outside click setting focus to the node
|
|
@@ -1772,14 +1776,14 @@ var xt = {
|
|
|
1772
1776
|
});
|
|
1773
1777
|
return;
|
|
1774
1778
|
}
|
|
1775
|
-
Be(o.allowOutsideClick,
|
|
1779
|
+
Be(o.allowOutsideClick, y) || y.preventDefault();
|
|
1776
1780
|
}
|
|
1777
|
-
}, T = function(
|
|
1778
|
-
var M = Ye(
|
|
1781
|
+
}, T = function(y) {
|
|
1782
|
+
var M = Ye(y), S = A(M, y) >= 0;
|
|
1779
1783
|
if (S || M instanceof Document)
|
|
1780
1784
|
S && (r.mostRecentlyFocusedNode = M);
|
|
1781
1785
|
else {
|
|
1782
|
-
|
|
1786
|
+
y.stopImmediatePropagation();
|
|
1783
1787
|
var Y, F = !0;
|
|
1784
1788
|
if (r.mostRecentlyFocusedNode)
|
|
1785
1789
|
if (Te(r.mostRecentlyFocusedNode) > 0) {
|
|
@@ -1806,21 +1810,21 @@ var xt = {
|
|
|
1806
1810
|
})), v(Y || r.mostRecentlyFocusedNode || f());
|
|
1807
1811
|
}
|
|
1808
1812
|
r.recentNavEvent = void 0;
|
|
1809
|
-
}, N = function(
|
|
1813
|
+
}, N = function(y) {
|
|
1810
1814
|
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1811
|
-
r.recentNavEvent =
|
|
1815
|
+
r.recentNavEvent = y;
|
|
1812
1816
|
var S = D({
|
|
1813
|
-
event:
|
|
1817
|
+
event: y,
|
|
1814
1818
|
isBackward: M
|
|
1815
1819
|
});
|
|
1816
|
-
S && (He(
|
|
1817
|
-
}, w = function(
|
|
1818
|
-
(o.isKeyForward(
|
|
1819
|
-
}, V = function(
|
|
1820
|
-
Sl(
|
|
1821
|
-
}, Z = function(
|
|
1822
|
-
var M = Ye(
|
|
1823
|
-
A(M,
|
|
1820
|
+
S && (He(y) && y.preventDefault(), v(S));
|
|
1821
|
+
}, w = function(y) {
|
|
1822
|
+
(o.isKeyForward(y) || o.isKeyBackward(y)) && N(y, o.isKeyBackward(y));
|
|
1823
|
+
}, V = function(y) {
|
|
1824
|
+
Sl(y) && Be(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), s.deactivate());
|
|
1825
|
+
}, Z = function(y) {
|
|
1826
|
+
var M = Ye(y);
|
|
1827
|
+
A(M, y) >= 0 || Be(o.clickOutsideDeactivates, y) || Be(o.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
|
|
1824
1828
|
}, q = function() {
|
|
1825
1829
|
if (r.active)
|
|
1826
1830
|
return xt.activateTrap(l, s), r.delayInitialFocusTimer = o.delayInitialFocus ? pt(function() {
|
|
@@ -1841,8 +1845,8 @@ var xt = {
|
|
|
1841
1845
|
}, te = function() {
|
|
1842
1846
|
if (r.active)
|
|
1843
1847
|
return n.removeEventListener("focusin", T, !0), n.removeEventListener("mousedown", E, !0), n.removeEventListener("touchstart", E, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", w, !0), n.removeEventListener("keydown", V), s;
|
|
1844
|
-
}, x = function(
|
|
1845
|
-
var M =
|
|
1848
|
+
}, x = function(y) {
|
|
1849
|
+
var M = y.some(function(S) {
|
|
1846
1850
|
var Y = Array.from(S.removedNodes);
|
|
1847
1851
|
return Y.some(function(F) {
|
|
1848
1852
|
return F === r.mostRecentlyFocusedNode;
|
|
@@ -1850,8 +1854,8 @@ var xt = {
|
|
|
1850
1854
|
});
|
|
1851
1855
|
M && v(f());
|
|
1852
1856
|
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(x) : void 0, O = function() {
|
|
1853
|
-
H && (H.disconnect(), r.active && !r.paused && r.containers.map(function(
|
|
1854
|
-
H.observe(
|
|
1857
|
+
H && (H.disconnect(), r.active && !r.paused && r.containers.map(function(y) {
|
|
1858
|
+
H.observe(y, {
|
|
1855
1859
|
subtree: !0,
|
|
1856
1860
|
childList: !0
|
|
1857
1861
|
});
|
|
@@ -1864,24 +1868,24 @@ var xt = {
|
|
|
1864
1868
|
get paused() {
|
|
1865
1869
|
return r.paused;
|
|
1866
1870
|
},
|
|
1867
|
-
activate: function(
|
|
1871
|
+
activate: function(y) {
|
|
1868
1872
|
if (r.active)
|
|
1869
1873
|
return this;
|
|
1870
|
-
var M = c(
|
|
1874
|
+
var M = c(y, "onActivate"), S = c(y, "onPostActivate"), Y = c(y, "checkCanFocusTrap");
|
|
1871
1875
|
Y || C(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = m(n), M == null || M();
|
|
1872
1876
|
var F = function() {
|
|
1873
1877
|
Y && C(), q(), O(), S == null || S();
|
|
1874
1878
|
};
|
|
1875
1879
|
return Y ? (Y(r.containers.concat()).then(F, F), this) : (F(), this);
|
|
1876
1880
|
},
|
|
1877
|
-
deactivate: function(
|
|
1881
|
+
deactivate: function(y) {
|
|
1878
1882
|
if (!r.active)
|
|
1879
1883
|
return this;
|
|
1880
1884
|
var M = Qt({
|
|
1881
1885
|
onDeactivate: o.onDeactivate,
|
|
1882
1886
|
onPostDeactivate: o.onPostDeactivate,
|
|
1883
1887
|
checkCanReturnFocus: o.checkCanReturnFocus
|
|
1884
|
-
},
|
|
1888
|
+
}, y);
|
|
1885
1889
|
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, te(), r.active = !1, r.paused = !1, O(), xt.deactivateTrap(l, s);
|
|
1886
1890
|
var S = c(M, "onDeactivate"), Y = c(M, "onPostDeactivate"), F = c(M, "checkCanReturnFocus"), J = c(M, "returnFocus", "returnFocusOnDeactivate");
|
|
1887
1891
|
S == null || S();
|
|
@@ -1892,14 +1896,14 @@ var xt = {
|
|
|
1892
1896
|
};
|
|
1893
1897
|
return J && F ? (F(g(r.nodeFocusedBeforeActivation)).then(X, X), this) : (X(), this);
|
|
1894
1898
|
},
|
|
1895
|
-
pause: function(
|
|
1896
|
-
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0,
|
|
1899
|
+
pause: function(y) {
|
|
1900
|
+
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, y)) : this;
|
|
1897
1901
|
},
|
|
1898
|
-
unpause: function(
|
|
1899
|
-
return r.active ? (r.manuallyPaused = !1, l[l.length - 1] !== this ? this : this._setPausedState(!1,
|
|
1902
|
+
unpause: function(y) {
|
|
1903
|
+
return r.active ? (r.manuallyPaused = !1, l[l.length - 1] !== this ? this : this._setPausedState(!1, y)) : this;
|
|
1900
1904
|
},
|
|
1901
|
-
updateContainerElements: function(
|
|
1902
|
-
var M = [].concat(
|
|
1905
|
+
updateContainerElements: function(y) {
|
|
1906
|
+
var M = [].concat(y).filter(Boolean);
|
|
1903
1907
|
return r.containers = M.map(function(S) {
|
|
1904
1908
|
return typeof S == "string" ? n.querySelector(S) : S;
|
|
1905
1909
|
}), r.active && C(), O(), this;
|
|
@@ -1911,10 +1915,10 @@ var xt = {
|
|
|
1911
1915
|
}
|
|
1912
1916
|
},
|
|
1913
1917
|
_setPausedState: {
|
|
1914
|
-
value: function(
|
|
1915
|
-
if (r.paused ===
|
|
1918
|
+
value: function(y, M) {
|
|
1919
|
+
if (r.paused === y)
|
|
1916
1920
|
return this;
|
|
1917
|
-
if (r.paused =
|
|
1921
|
+
if (r.paused = y, y) {
|
|
1918
1922
|
var S = c(M, "onPause"), Y = c(M, "onPostPause");
|
|
1919
1923
|
S == null || S(), te(), O(), Y == null || Y();
|
|
1920
1924
|
} else {
|
|
@@ -1972,13 +1976,13 @@ const jl = {
|
|
|
1972
1976
|
cssExpanded: o,
|
|
1973
1977
|
doExpand: r,
|
|
1974
1978
|
onTransitionEnd: s
|
|
1975
|
-
} = Ze(), { isBelowLg: c } = nt(), A =
|
|
1979
|
+
} = Ze(), { isBelowLg: c } = nt(), A = h(() => e.id ?? `language-selector-${crypto.randomUUID()}`), d = h(
|
|
1976
1980
|
() => e.languages.find(({ codeIso: g }) => g === e.currentLanguage)
|
|
1977
|
-
), f =
|
|
1981
|
+
), f = h(() => {
|
|
1978
1982
|
var E, T;
|
|
1979
1983
|
const g = ((E = d.value) == null ? void 0 : E.codeIso.toUpperCase()) ?? "", D = `${g} - ${(T = d.value) == null ? void 0 : T.label}`;
|
|
1980
1984
|
return c.value ? D : g;
|
|
1981
|
-
}), C = W(!1), m =
|
|
1985
|
+
}), C = W(!1), m = h(() => ({
|
|
1982
1986
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
1983
1987
|
}));
|
|
1984
1988
|
function v(g) {
|
|
@@ -2096,7 +2100,7 @@ const jl = {
|
|
|
2096
2100
|
}),
|
|
2097
2101
|
emits: ["update:modelValue"],
|
|
2098
2102
|
setup(e) {
|
|
2099
|
-
const t =
|
|
2103
|
+
const t = h(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = h(() => e.errorMessage || e.validMessage), n = h(() => a.value ? `message-${t.value}` : void 0), l = Le(e, "modelValue"), o = h(() => l.value.includes(e.value)), r = h(() => o.value ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE), s = h(() => o.value ? "var(--dark-background-primary1)" : "var(--icon)"), c = h(() => e.small ? 1 : 1.5), A = h(() => e.small ? o.value ? "caption-bold" : "caption-regular" : o.value ? "b2-bold" : "b2-regular");
|
|
2100
2104
|
return (d, f) => {
|
|
2101
2105
|
const C = ne, m = pe, v = $t;
|
|
2102
2106
|
return u(), p(v, {
|
|
@@ -2175,7 +2179,7 @@ const jl = {
|
|
|
2175
2179
|
inline: { type: Boolean, default: !1 }
|
|
2176
2180
|
},
|
|
2177
2181
|
setup(e) {
|
|
2178
|
-
const t =
|
|
2182
|
+
const t = h(() => e.id ?? `checkboxes-group-${crypto.randomUUID()}`);
|
|
2179
2183
|
return (a, n) => {
|
|
2180
2184
|
const l = Jt;
|
|
2181
2185
|
return u(), p(l, {
|
|
@@ -2247,7 +2251,7 @@ const jl = {
|
|
|
2247
2251
|
se((v) => ({
|
|
2248
2252
|
v8df8b300: v.maxWidth
|
|
2249
2253
|
}));
|
|
2250
|
-
const a = t, n =
|
|
2254
|
+
const a = t, n = h(() => e.id ?? `file-upload-${crypto.randomUUID()}`), l = h(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), o = W(!1);
|
|
2251
2255
|
function r(v) {
|
|
2252
2256
|
const g = l.value;
|
|
2253
2257
|
return g ? g.split(",").map((E) => E.trim().toLowerCase()).some((E) => E.startsWith(".") ? v.name.toLowerCase().endsWith(E) : E.includes("/") ? v.type === E || v.type.startsWith(`${E.split("/")[0]}/`) : !1) : !0;
|
|
@@ -2269,7 +2273,7 @@ const jl = {
|
|
|
2269
2273
|
const g = v.target.files;
|
|
2270
2274
|
a("change", g), a("update:modelValue", (g == null ? void 0 : g[0]) ?? null);
|
|
2271
2275
|
}
|
|
2272
|
-
const f =
|
|
2276
|
+
const f = h(() => e.fileName || e.modelValue && !e.enableMultiple), C = h(() => ({
|
|
2273
2277
|
for: n.value,
|
|
2274
2278
|
class: [
|
|
2275
2279
|
"av-upload-group",
|
|
@@ -3671,7 +3675,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3671
3675
|
se((g) => ({
|
|
3672
3676
|
v1a9de3ee: g.width
|
|
3673
3677
|
}));
|
|
3674
|
-
const n = a, l =
|
|
3678
|
+
const n = a, l = h(() => e.id ?? `input-${crypto.randomUUID()}`), o = h(() => e.errorMessage ? Array.isArray(e.errorMessage) ? e.errorMessage : [e.errorMessage] : []), r = h(() => e.validMessage ? Array.isArray(e.validMessage) ? e.validMessage : [e.validMessage] : []), s = h(() => !!e.errorMessage), c = h(() => d(e.minDate)), A = h(() => d(e.maxDate));
|
|
3675
3679
|
function d(g) {
|
|
3676
3680
|
if (!(e.type !== "date" && e.type !== "datetime-local" || g === void 0 || !fa(g)))
|
|
3677
3681
|
return go(g, "yyyy-MM-dd");
|
|
@@ -3679,7 +3683,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3679
3683
|
const f = W(null), C = () => {
|
|
3680
3684
|
var g;
|
|
3681
3685
|
return (g = f.value) == null ? void 0 : g.focus();
|
|
3682
|
-
}, m =
|
|
3686
|
+
}, m = h(() => e.isTextarea ? "textarea" : "input"), v = h(() => [
|
|
3683
3687
|
"av-label",
|
|
3684
3688
|
{ invisible: !e.labelVisible }
|
|
3685
3689
|
]);
|
|
@@ -3774,7 +3778,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3774
3778
|
},
|
|
3775
3779
|
emits: ["update:modelValue", "search"],
|
|
3776
3780
|
setup(e, { emit: t }) {
|
|
3777
|
-
const a = t, n =
|
|
3781
|
+
const a = t, n = h(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
3778
3782
|
return (l, o) => {
|
|
3779
3783
|
const r = Tt, s = re;
|
|
3780
3784
|
return u(), I("div", wo, [
|
|
@@ -3828,7 +3832,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3828
3832
|
v61717933: l.padding,
|
|
3829
3833
|
v718f62b9: l.borderColor
|
|
3830
3834
|
}));
|
|
3831
|
-
const t =
|
|
3835
|
+
const t = h(() => `av-list--${e.size}`), a = h(() => e.bordered ? "av-list--bordered" : ""), n = h(() => e.divided ? "av-list--divided" : "");
|
|
3832
3836
|
return (l, o) => (u(), I("div", {
|
|
3833
3837
|
class: j(["av-list", [i(t), i(a), i(n)]]),
|
|
3834
3838
|
role: e.role,
|
|
@@ -3879,7 +3883,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3879
3883
|
v304bbb39: A.descriptionColor,
|
|
3880
3884
|
a575c12a: A.hoverBackgroundColor
|
|
3881
3885
|
}));
|
|
3882
|
-
const t = fe(), a =
|
|
3886
|
+
const t = fe(), a = h(() => e.clickable ? e.tag : "div"), n = h(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0);
|
|
3883
3887
|
function l(A) {
|
|
3884
3888
|
var d;
|
|
3885
3889
|
!e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, A);
|
|
@@ -3895,7 +3899,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3895
3899
|
(d = e.onClick) == null || d.call(e, f);
|
|
3896
3900
|
}
|
|
3897
3901
|
}
|
|
3898
|
-
const r =
|
|
3902
|
+
const r = h(() => e.clickable ? "av-list-item--clickable" : ""), s = h(() => e.disabled ? "av-list-item--disabled" : ""), c = h(() => e.selected ? "av-list-item--selected" : "");
|
|
3899
3903
|
return (A, d) => (u(), I("div", { role: e.role }, [
|
|
3900
3904
|
(u(), p(Me(i(a)), {
|
|
3901
3905
|
class: j(["av-list-item", [i(r), i(s), i(c)]]),
|
|
@@ -3952,7 +3956,7 @@ const ho = { class: "av-input__wrapper" }, yo = {
|
|
|
3952
3956
|
selected: o,
|
|
3953
3957
|
multiple: r,
|
|
3954
3958
|
handleSelectChange: s
|
|
3955
|
-
} = t, c =
|
|
3959
|
+
} = t, c = h(() => on(t.options));
|
|
3956
3960
|
function A(g) {
|
|
3957
3961
|
return g ? Array.isArray(g) ? g : [g] : [];
|
|
3958
3962
|
}
|
|
@@ -4012,10 +4016,10 @@ const LA = [
|
|
|
4012
4016
|
handleSelectChange: { type: Function }
|
|
4013
4017
|
},
|
|
4014
4018
|
setup(e) {
|
|
4015
|
-
const t =
|
|
4019
|
+
const t = h(() => Object.values(ba).filter((n) => typeof n == "number").map((n) => ({
|
|
4016
4020
|
label: n.toString(),
|
|
4017
4021
|
value: n.toString()
|
|
4018
|
-
}))), a =
|
|
4022
|
+
}))), a = h(() => ({
|
|
4019
4023
|
label: e.pageSizeSelected.toString(),
|
|
4020
4024
|
value: e.pageSizeSelected.toString()
|
|
4021
4025
|
}));
|
|
@@ -4106,18 +4110,18 @@ const LA = [
|
|
|
4106
4110
|
},
|
|
4107
4111
|
emits: ["update:modelValue"],
|
|
4108
4112
|
setup(e, { expose: t, emit: a }) {
|
|
4109
|
-
const n = a, l =
|
|
4113
|
+
const n = a, l = h(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), o = h(() => e.errorMessage || e.validMessage);
|
|
4110
4114
|
function r(m) {
|
|
4111
4115
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4112
4116
|
}
|
|
4113
|
-
const s =
|
|
4117
|
+
const s = h(() => o.value ? `messages-${l.value}` : void 0), c = fe();
|
|
4114
4118
|
function A(m) {
|
|
4115
4119
|
return m != null && typeof m == "object" && "type" in m && m.type === Zo;
|
|
4116
4120
|
}
|
|
4117
4121
|
function d(m) {
|
|
4118
4122
|
return m ? m.flatMap((v) => !v || typeof v != "object" || !("type" in v) ? [] : v.type === $ && Array.isArray(v.children) ? d(v.children) : A(v) ? [v] : []) : [];
|
|
4119
4123
|
}
|
|
4120
|
-
const f =
|
|
4124
|
+
const f = h(() => {
|
|
4121
4125
|
var m;
|
|
4122
4126
|
return d((m = c.default) == null ? void 0 : m.call(c));
|
|
4123
4127
|
}), C = W(e.modelValue);
|
|
@@ -4305,7 +4309,7 @@ const yr = {
|
|
|
4305
4309
|
props: c,
|
|
4306
4310
|
getOptionId: A,
|
|
4307
4311
|
getDisplayLabel: d
|
|
4308
|
-
} = Dt(), f = W(), C = W(), m =
|
|
4312
|
+
} = Dt(), f = W(), C = W(), m = h(() => {
|
|
4309
4313
|
if (!c.options)
|
|
4310
4314
|
return [];
|
|
4311
4315
|
if (c.serverSideFiltering)
|
|
@@ -4317,7 +4321,7 @@ const yr = {
|
|
|
4317
4321
|
}
|
|
4318
4322
|
let w;
|
|
4319
4323
|
return c.filterOptions ? w = c.filterOptions(c.options, N) : w = c.options.filter((V) => d(V).toLowerCase().includes(N)), c.maxResults ? w.slice(0, c.maxResults) : w;
|
|
4320
|
-
}), v =
|
|
4324
|
+
}), v = h(() => c.loading ? Qe.LOADING : s.value && c.options && c.options.length > 0 && m.value.length > 0 ? Qe.HAS_OPTIONS : Qe.NO_OPTIONS);
|
|
4321
4325
|
function g(N) {
|
|
4322
4326
|
return o.value.some(
|
|
4323
4327
|
(w) => A(w) === A(N)
|
|
@@ -4409,7 +4413,7 @@ const yr = {
|
|
|
4409
4413
|
inputId: A,
|
|
4410
4414
|
handleBlur: d,
|
|
4411
4415
|
getDisplayLabel: f
|
|
4412
|
-
} = Dt(), C = W(), m =
|
|
4416
|
+
} = Dt(), C = W(), m = h(() => !c.multiSelect && o.value.length > 0 ? f(o.value[0]) : c.multiSelect && o.value.length > 0 ? c.showSelectedSection ? `${o.value.length} element(s) selected` : o.value.map(f).join(", ") : r.value), v = h(() => {
|
|
4413
4417
|
var N;
|
|
4414
4418
|
return ((N = c.inputOptions) == null ? void 0 : N.placeholder) || "Search...";
|
|
4415
4419
|
}), g = Ma((N) => {
|
|
@@ -4428,7 +4432,7 @@ const yr = {
|
|
|
4428
4432
|
g.cancel();
|
|
4429
4433
|
}), t({
|
|
4430
4434
|
inputRef: C,
|
|
4431
|
-
searchQuery:
|
|
4435
|
+
searchQuery: h(() => r.value)
|
|
4432
4436
|
}), (N, w) => (u(), I("div", Tr, [
|
|
4433
4437
|
U(Tt, ee({
|
|
4434
4438
|
id: i(A),
|
|
@@ -4535,7 +4539,7 @@ const yr = {
|
|
|
4535
4539
|
}),
|
|
4536
4540
|
emits: /* @__PURE__ */ ge(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
4537
4541
|
setup(e, { emit: t }) {
|
|
4538
|
-
const a = e, n = t, l = fe(), o = Le(e, "modelValue"), r = W(!1), s = W(""), c = W(), A = W(), d = W(), f =
|
|
4542
|
+
const a = e, n = t, l = fe(), o = Le(e, "modelValue"), r = W(!1), s = W(""), c = W(), A = W(), d = W(), f = h(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
4539
4543
|
function C(T) {
|
|
4540
4544
|
s.value = T, n("search", T);
|
|
4541
4545
|
}
|
|
@@ -4670,9 +4674,9 @@ const yr = {
|
|
|
4670
4674
|
H.key === "Escape" && a("close");
|
|
4671
4675
|
}
|
|
4672
4676
|
function D(H) {
|
|
4673
|
-
var k,
|
|
4677
|
+
var k, y;
|
|
4674
4678
|
const O = H.target;
|
|
4675
|
-
!((k = l.value) != null && k.$el.contains(O)) && !((
|
|
4679
|
+
!((k = l.value) != null && k.$el.contains(O)) && !((y = A.value) != null && y.contains(O)) && a("close");
|
|
4676
4680
|
}
|
|
4677
4681
|
function E() {
|
|
4678
4682
|
for (; c.length; ) {
|
|
@@ -4681,9 +4685,9 @@ const yr = {
|
|
|
4681
4685
|
}
|
|
4682
4686
|
document.removeEventListener("click", D), document.removeEventListener("keydown", g);
|
|
4683
4687
|
}
|
|
4684
|
-
const T =
|
|
4688
|
+
const T = h(
|
|
4685
4689
|
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[Wr]}`.toLowerCase().includes(v.value.toLowerCase()) : `${H}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
4686
|
-
), N =
|
|
4690
|
+
), N = h(() => e.selected.length < T.value.length ? !1 : T.value.every((H) => e.selected.includes(H)));
|
|
4687
4691
|
function w() {
|
|
4688
4692
|
const H = new Set(r.value || []);
|
|
4689
4693
|
N.value ? T.value.forEach((O) => {
|
|
@@ -4698,17 +4702,17 @@ const yr = {
|
|
|
4698
4702
|
}
|
|
4699
4703
|
function Z(H) {
|
|
4700
4704
|
H.preventDefault();
|
|
4701
|
-
const O = m(), k = document.activeElement,
|
|
4702
|
-
if (
|
|
4703
|
-
const M = (
|
|
4705
|
+
const O = m(), k = document.activeElement, y = Array.from(O).indexOf(k);
|
|
4706
|
+
if (y !== -1) {
|
|
4707
|
+
const M = (y + 1) % O.length;
|
|
4704
4708
|
O[M].focus();
|
|
4705
4709
|
}
|
|
4706
4710
|
}
|
|
4707
4711
|
function q(H) {
|
|
4708
4712
|
H.preventDefault();
|
|
4709
|
-
const O = m(), k = document.activeElement,
|
|
4710
|
-
if (
|
|
4711
|
-
const M = (
|
|
4713
|
+
const O = m(), k = document.activeElement, y = Array.from(O).indexOf(k);
|
|
4714
|
+
if (y !== -1) {
|
|
4715
|
+
const M = (y - 1 + O.length) % O.length;
|
|
4712
4716
|
O[M].focus();
|
|
4713
4717
|
}
|
|
4714
4718
|
}
|
|
@@ -4724,7 +4728,7 @@ const yr = {
|
|
|
4724
4728
|
return ve(() => {
|
|
4725
4729
|
E();
|
|
4726
4730
|
}), (H, O) => {
|
|
4727
|
-
const k = re,
|
|
4731
|
+
const k = re, y = Tt;
|
|
4728
4732
|
return e.isVisible ? (u(), I("div", {
|
|
4729
4733
|
key: 0,
|
|
4730
4734
|
id: `${e.id}-collapse`,
|
|
@@ -4754,7 +4758,7 @@ const yr = {
|
|
|
4754
4758
|
])
|
|
4755
4759
|
])) : L("", !0),
|
|
4756
4760
|
e.search ? (u(), I("div", Br, [
|
|
4757
|
-
U(
|
|
4761
|
+
U(y, {
|
|
4758
4762
|
modelValue: i(v),
|
|
4759
4763
|
"onUpdate:modelValue": O[0] || (O[0] = (M) => Mt(v) ? v.value = M : null),
|
|
4760
4764
|
"aria-describedby": `${e.id}-text-hint`,
|
|
@@ -4837,7 +4841,7 @@ const yr = {
|
|
|
4837
4841
|
v7d3d0889: O.width,
|
|
4838
4842
|
v10950ec4: O.height
|
|
4839
4843
|
}));
|
|
4840
|
-
const a = t, n =
|
|
4844
|
+
const a = t, n = h(() => e.id ?? `multi-select-${crypto.randomUUID()}`), l = W(null), o = W(!1), r = h(() => e.errorMessage || e.successMessage), s = h(() => e.errorMessage ? "error" : "success"), {
|
|
4841
4845
|
collapse: c,
|
|
4842
4846
|
collapsing: A,
|
|
4843
4847
|
cssExpanded: d,
|
|
@@ -4849,7 +4853,7 @@ const yr = {
|
|
|
4849
4853
|
cssExpanded: d,
|
|
4850
4854
|
doExpand: f,
|
|
4851
4855
|
onTransitionEnd: C
|
|
4852
|
-
}, v =
|
|
4856
|
+
}, v = h(() => e.modelValue.map((O) => O.value)), g = h(() => {
|
|
4853
4857
|
if (!e.modelValue || e.modelValue.length === 0)
|
|
4854
4858
|
return e.placeholder;
|
|
4855
4859
|
if (e.selectedText)
|
|
@@ -4861,9 +4865,9 @@ const yr = {
|
|
|
4861
4865
|
O.key === "Escape" && w();
|
|
4862
4866
|
}
|
|
4863
4867
|
function T(O) {
|
|
4864
|
-
var
|
|
4868
|
+
var y, M;
|
|
4865
4869
|
const k = O.target;
|
|
4866
|
-
!((
|
|
4870
|
+
!((y = l.value) != null && y.$el.contains(k)) && !((M = c.value) != null && M.contains(k)) && w();
|
|
4867
4871
|
}
|
|
4868
4872
|
function N() {
|
|
4869
4873
|
o.value = !0, D.value = !0, document.addEventListener("click", T), document.addEventListener("keydown", E), setTimeout(() => {
|
|
@@ -4882,13 +4886,13 @@ const yr = {
|
|
|
4882
4886
|
document.removeEventListener("click", T), document.removeEventListener("keydown", E);
|
|
4883
4887
|
}
|
|
4884
4888
|
function q(O) {
|
|
4885
|
-
var
|
|
4889
|
+
var y;
|
|
4886
4890
|
const k = document.activeElement;
|
|
4887
|
-
O.shiftKey && k === ((
|
|
4891
|
+
O.shiftKey && k === ((y = l.value) == null ? void 0 : y.$el) && w();
|
|
4888
4892
|
}
|
|
4889
4893
|
function te(O) {
|
|
4890
|
-
var
|
|
4891
|
-
const k = ((
|
|
4894
|
+
var y;
|
|
4895
|
+
const k = ((y = e.options) == null ? void 0 : y.filter(
|
|
4892
4896
|
(M) => O.includes(M.value)
|
|
4893
4897
|
)) ?? [];
|
|
4894
4898
|
a("update:modelValue", k);
|
|
@@ -4896,15 +4900,15 @@ const yr = {
|
|
|
4896
4900
|
ve(() => {
|
|
4897
4901
|
Z();
|
|
4898
4902
|
});
|
|
4899
|
-
const x =
|
|
4903
|
+
const x = h(() => [
|
|
4900
4904
|
"av-label",
|
|
4901
4905
|
{ invisible: !e.labelVisible },
|
|
4902
4906
|
e.labelClass
|
|
4903
|
-
]), H =
|
|
4907
|
+
]), H = h(() => ({
|
|
4904
4908
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4905
4909
|
}));
|
|
4906
4910
|
return (O, k) => {
|
|
4907
|
-
const
|
|
4911
|
+
const y = re, M = pe;
|
|
4908
4912
|
return u(), I($, null, [
|
|
4909
4913
|
b("div", {
|
|
4910
4914
|
class: j(["av-select-group", { [`av-select-group--${i(s)}`]: i(r) }]),
|
|
@@ -4918,7 +4922,7 @@ const yr = {
|
|
|
4918
4922
|
"required" in O.$attrs && O.$attrs.required !== !1 ? (u(), I("span", Xr)) : L("", !0),
|
|
4919
4923
|
e.hint ? (u(), I("span", Yr, B(e.hint), 1)) : L("", !0)
|
|
4920
4924
|
], 10, Rr),
|
|
4921
|
-
U(
|
|
4925
|
+
U(y, ee({
|
|
4922
4926
|
id: i(n),
|
|
4923
4927
|
ref_key: "host",
|
|
4924
4928
|
ref: l,
|
|
@@ -4988,15 +4992,15 @@ const yr = {
|
|
|
4988
4992
|
},
|
|
4989
4993
|
emits: ["update:modelValue"],
|
|
4990
4994
|
setup(e, { emit: t }) {
|
|
4991
|
-
const a = t, n =
|
|
4995
|
+
const a = t, n = h(() => e.id ?? `select-${crypto.randomUUID()}`), l = h(() => {
|
|
4992
4996
|
var A;
|
|
4993
4997
|
if (!e.modelValue)
|
|
4994
4998
|
return e.placeholder;
|
|
4995
4999
|
const c = (A = e.options) == null ? void 0 : A.find((d) => String(d.value) === String(e.modelValue));
|
|
4996
5000
|
return c ? c.text : e.placeholder;
|
|
4997
|
-
}), o =
|
|
5001
|
+
}), o = h(() => ({
|
|
4998
5002
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4999
|
-
})), r =
|
|
5003
|
+
})), r = h(() => e.errorMessage || e.successMessage), s = h(() => e.errorMessage ? "error" : "success");
|
|
5000
5004
|
return (c, A) => {
|
|
5001
5005
|
const d = pe;
|
|
5002
5006
|
return u(), I("div", {
|
|
@@ -5063,7 +5067,7 @@ const yr = {
|
|
|
5063
5067
|
}
|
|
5064
5068
|
});
|
|
5065
5069
|
function ts(e) {
|
|
5066
|
-
const t = { true: "100%", false: "-100%" }, a =
|
|
5070
|
+
const t = { true: "100%", false: "-100%" }, a = h(() => e.value ? t.true : t.false), n = h(() => e.value ? t.false : t.true);
|
|
5067
5071
|
return {
|
|
5068
5072
|
translateValueFrom: a,
|
|
5069
5073
|
translateValueTo: n
|
|
@@ -5117,7 +5121,7 @@ const as = ["id", "aria-labelledby", "tabindex"], ns = /* @__PURE__ */ Q({
|
|
|
5117
5121
|
},
|
|
5118
5122
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5119
5123
|
setup(e, { emit: t }) {
|
|
5120
|
-
const a = t, n = W(null), l = ka("button"), o =
|
|
5124
|
+
const a = t, n = W(null), l = ka("button"), o = h(() => e.isSelected ? "s2-bold" : "s2-regular"), r = {
|
|
5121
5125
|
ArrowRight: "next",
|
|
5122
5126
|
ArrowLeft: "previous",
|
|
5123
5127
|
Home: "first",
|
|
@@ -5201,12 +5205,12 @@ const cs = ["aria-label"], As = /* @__PURE__ */ Q({
|
|
|
5201
5205
|
}),
|
|
5202
5206
|
emits: ["update:modelValue"],
|
|
5203
5207
|
setup(e) {
|
|
5204
|
-
const t = fe(), a =
|
|
5208
|
+
const t = fe(), a = h(() => {
|
|
5205
5209
|
var E;
|
|
5206
5210
|
return ((E = t.default) == null ? void 0 : E.call(t)) || [];
|
|
5207
5211
|
}), n = Le(e, "modelValue"), l = W(!1), o = W(null), r = W(null), s = ut({}), { tabsStyle: c, updateTabsStyle: A } = ss(
|
|
5208
5212
|
r,
|
|
5209
|
-
|
|
5213
|
+
h(() => {
|
|
5210
5214
|
var E;
|
|
5211
5215
|
return Array.from(((E = o.value) == null ? void 0 : E.querySelectorAll(".av-tab-content")) || []);
|
|
5212
5216
|
}),
|
|
@@ -5322,7 +5326,7 @@ const cs = ["aria-label"], As = /* @__PURE__ */ Q({
|
|
|
5322
5326
|
},
|
|
5323
5327
|
emits: ["update:modelValue"],
|
|
5324
5328
|
setup(e) {
|
|
5325
|
-
const t =
|
|
5329
|
+
const t = h(() => e.id ?? `toggle-${crypto.randomUUID()}`), a = h(() => `${t.value}-label`);
|
|
5326
5330
|
return (n, l) => (u(), I($, null, [
|
|
5327
5331
|
b("label", {
|
|
5328
5332
|
id: i(a),
|
|
@@ -5531,7 +5535,7 @@ const ws = /* @__PURE__ */ z(Ts, [["render", Ls]]), Os = {
|
|
|
5531
5535
|
function C() {
|
|
5532
5536
|
c.value = !0, r.value = !1, s.value = !0;
|
|
5533
5537
|
}
|
|
5534
|
-
const m = A, v =
|
|
5538
|
+
const m = A, v = h(() => [e.homeLabel, e.serviceTitle].filter((D) => D).join(" - ")), g = h(() => !!n.mainnav);
|
|
5535
5539
|
return ht(Na, () => A), (D, E) => {
|
|
5536
5540
|
var Z, q, te;
|
|
5537
5541
|
const T = Et("RouterLink"), N = re, w = Ea, V = Sn;
|
|
@@ -5704,7 +5708,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5704
5708
|
se((a) => ({
|
|
5705
5709
|
v1dadd14a: a.color
|
|
5706
5710
|
}));
|
|
5707
|
-
const t =
|
|
5711
|
+
const t = h(() => ({
|
|
5708
5712
|
...e.width && { width: e.width },
|
|
5709
5713
|
...e.height && { height: e.height }
|
|
5710
5714
|
}));
|
|
@@ -5726,7 +5730,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5726
5730
|
collapsing: a,
|
|
5727
5731
|
cssExpanded: n,
|
|
5728
5732
|
doExpand: l
|
|
5729
|
-
} = Ze(), { isAboveMd: o } = nt(), r =
|
|
5733
|
+
} = Ze(), { isAboveMd: o } = nt(), r = h(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = h(() => ({
|
|
5730
5734
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
5731
5735
|
})), c = W(o.value);
|
|
5732
5736
|
return oe(c, (A, d) => {
|
|
@@ -5796,7 +5800,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5796
5800
|
active: { type: Boolean }
|
|
5797
5801
|
},
|
|
5798
5802
|
setup(e) {
|
|
5799
|
-
const t =
|
|
5803
|
+
const t = h(() => e.id ?? `nav-item-${crypto.randomUUID()}`);
|
|
5800
5804
|
return (a, n) => (u(), I("li", {
|
|
5801
5805
|
id: i(t),
|
|
5802
5806
|
class: j(["av-nav__item", { "av-nav__item--active": e.active }]),
|
|
@@ -5812,7 +5816,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5812
5816
|
active: { type: Boolean }
|
|
5813
5817
|
},
|
|
5814
5818
|
setup(e) {
|
|
5815
|
-
const t =
|
|
5819
|
+
const t = h(() => e.id ?? `nav-menu-item-${crypto.randomUUID()}`);
|
|
5816
5820
|
return (a, n) => (u(), I("li", {
|
|
5817
5821
|
id: i(t),
|
|
5818
5822
|
class: "av-menu__item",
|
|
@@ -5834,7 +5838,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5834
5838
|
},
|
|
5835
5839
|
emits: ["toggleId"],
|
|
5836
5840
|
setup(e) {
|
|
5837
|
-
const { isBelowLg: t } = nt(), a =
|
|
5841
|
+
const { isBelowLg: t } = nt(), a = h(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = h(() => typeof e.to == "string" && e.to.startsWith("http")), l = Ct() ? tt(Na) : void 0, o = (l == null ? void 0 : l()) ?? (() => {
|
|
5838
5842
|
});
|
|
5839
5843
|
return (r, s) => {
|
|
5840
5844
|
const c = ne, A = Et("RouterLink");
|
|
@@ -5890,7 +5894,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5890
5894
|
cssExpanded: n,
|
|
5891
5895
|
doExpand: l,
|
|
5892
5896
|
onTransitionEnd: o
|
|
5893
|
-
} = Ze(), r =
|
|
5897
|
+
} = Ze(), r = h(() => e.id ?? `menu-${crypto.randomUUID()}`), s = h(() => r.value === e.expandedId), c = h(() => ({
|
|
5894
5898
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5895
5899
|
}));
|
|
5896
5900
|
return oe(s, (A, d) => {
|
|
@@ -5940,7 +5944,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
5940
5944
|
navItems: {}
|
|
5941
5945
|
},
|
|
5942
5946
|
setup(e) {
|
|
5943
|
-
const t =
|
|
5947
|
+
const t = h(() => e.id ?? `nav-${crypto.randomUUID()}`), a = W(void 0);
|
|
5944
5948
|
function n(s) {
|
|
5945
5949
|
if (s === a.value) {
|
|
5946
5950
|
a.value = void 0;
|
|
@@ -6019,7 +6023,7 @@ const Js = { render: Gs }, $s = { class: "svg-wrapper" }, _s = /* @__PURE__ */ Q
|
|
|
6019
6023
|
},
|
|
6020
6024
|
emits: ["update:current-page"],
|
|
6021
6025
|
setup(e, { emit: t }) {
|
|
6022
|
-
const a = t, n =
|
|
6026
|
+
const a = t, n = h(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), l = h(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), o = h(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, l.value + 1) : e.pages), r = (m) => a("update:current-page", m), s = (m) => r(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;
|
|
6023
6027
|
return (m, v) => {
|
|
6024
6028
|
var g, D, E, T;
|
|
6025
6029
|
return u(), I("nav", {
|
|
@@ -6145,12 +6149,12 @@ const Wc = ["id", "aria-label"], Uc = {
|
|
|
6145
6149
|
v4d5b7c17: i(c),
|
|
6146
6150
|
v4a813d87: d.padding
|
|
6147
6151
|
}));
|
|
6148
|
-
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: l } = Ft(t), o =
|
|
6152
|
+
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: l } = Ft(t), o = h(() => t.id ?? crypto.randomUUID()), r = h(() => `${o.value} navigation`), s = h({
|
|
6149
6153
|
get: () => t.collapsible ? a.value : !1,
|
|
6150
6154
|
set: (d) => {
|
|
6151
6155
|
t.collapsible && (a.value = d);
|
|
6152
6156
|
}
|
|
6153
|
-
}), c =
|
|
6157
|
+
}), c = h(() => t.collapsible && s.value ? l.value : n.value);
|
|
6154
6158
|
function A() {
|
|
6155
6159
|
t.collapsible && (s.value = !s.value);
|
|
6156
6160
|
}
|
|
@@ -6469,7 +6473,7 @@ const lA = {
|
|
|
6469
6473
|
},
|
|
6470
6474
|
setup(e, { slots: t, emit: a }) {
|
|
6471
6475
|
let n;
|
|
6472
|
-
const l = W(null), o =
|
|
6476
|
+
const l = W(null), o = h(() => {
|
|
6473
6477
|
const s = l.value;
|
|
6474
6478
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
6475
6479
|
});
|
|
@@ -6534,7 +6538,7 @@ const lA = {
|
|
|
6534
6538
|
},
|
|
6535
6539
|
emits: ["close", "confirm"],
|
|
6536
6540
|
setup(e, { emit: t }) {
|
|
6537
|
-
const a = t, n = fe(), l =
|
|
6541
|
+
const a = t, n = fe(), l = h(() => e.id ?? `modal-${crypto.randomUUID()}`), o = h(() => e.isAlert ? "alertdialog" : "dialog"), r = W(null), s = W();
|
|
6538
6542
|
oe(() => e.opened, (A) => {
|
|
6539
6543
|
var d, f, C;
|
|
6540
6544
|
A ? ((d = s.value) == null || d.showModal(), (f = r.value) == null || f.focus()) : (C = s.value) == null || C.close(), c(A);
|