@avenirs-esr/avenirs-dsav 0.1.40 → 0.1.41
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/avenirs-dsav.es.js +190 -182
- package/dist/avenirs-dsav.umd.js +5 -5
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +4 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +6 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +1 -1
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +1 -1
- package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/avenirs-dsav.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DsfrBadge as ta, VIcon as aa, DsfrNotice as na, DsfrButton as ra, registerNavigationLinkKey as Aa, DsfrLanguageSelector as ia, DsfrSearchBar as oa, DsfrAccordionsGroup as la, DsfrAccordion as sa, useRandomId as ca, DsfrInput as ua, DsfrTag as da, DsfrRadioButtonSet as fa, DsfrRadioButton as va, DsfrMultiselect as ma, DsfrSelect as ga, DsfrTabs as Ia, DsfrTabContent as ha, DsfrTabItem as ba, DsfrNavigation as Ca, DsfrModal as ya } from "@gouvminint/vue-dsfr";
|
|
2
2
|
import { registerNavigationLinkKey as ls } from "@gouvminint/vue-dsfr";
|
|
3
|
-
import { defineComponent as S, useCssVars as
|
|
3
|
+
import { defineComponent as S, useCssVars as te, computed as p, createBlock as x, openBlock as u, mergeProps as ee, unref as o, createPropsRestProxy as Lt, createElementBlock as g, createVNode as P, normalizeClass as F, createElementVNode as y, toDisplayString as Z, withCtx as Y, useSlots as ie, normalizeStyle as Ve, createCommentVNode as O, renderSlot as B, resolveDynamicComponent as ue, createTextVNode as rt, TransitionGroup as Ea, Fragment as _, renderList as re, toRef as Ma, ref as J, onMounted as xe, onUnmounted as je, provide as St, resolveComponent as pa, withModifiers as se, mergeModels as ve, useModel as ke, nextTick as Re, createSlots as Le, watch as ce, isRef as At, inject as Na, getCurrentScope as Ta, onScopeDispose as Qa, getCurrentInstance as kt, toValue as ae, shallowRef as Pe, reactive as dt, normalizeProps as Da, guardReactiveProps as Oa, toRefs as it, withKeys as ot, Teleport as zt, onBeforeUnmount as wa } from "vue";
|
|
4
4
|
const ml = {
|
|
5
5
|
name: "AvBadge",
|
|
6
6
|
template: '<div class="av-badge"/>',
|
|
@@ -32,7 +32,7 @@ const ml = {
|
|
|
32
32
|
ellipsis: { type: Boolean }
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
|
-
|
|
35
|
+
te((r) => ({
|
|
36
36
|
v07eeafc6: r.color,
|
|
37
37
|
v406561e2: r.backgroundColor,
|
|
38
38
|
v6fc40bd1: r.borderColor
|
|
@@ -69,7 +69,7 @@ const ml = {
|
|
|
69
69
|
ssr: { type: Boolean }
|
|
70
70
|
},
|
|
71
71
|
setup(e) {
|
|
72
|
-
|
|
72
|
+
te((r) => ({
|
|
73
73
|
v53885778: o(n)
|
|
74
74
|
}));
|
|
75
75
|
const t = Lt(e, ["size"]), a = p(() => ka * e.size), n = p(() => `${e.size}rem`);
|
|
@@ -80,7 +80,7 @@ const ml = {
|
|
|
80
80
|
]);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), ne = /* @__PURE__ */ V(za, [["__scopeId", "data-v-bc7be51b"]]), xa = /* @__PURE__ */ S({
|
|
84
84
|
__name: "AvIconText",
|
|
85
85
|
props: {
|
|
86
86
|
textColor: { default: "var(--text1)" },
|
|
@@ -92,7 +92,7 @@ const ml = {
|
|
|
92
92
|
inline: { type: Boolean, default: !1 }
|
|
93
93
|
},
|
|
94
94
|
setup(e) {
|
|
95
|
-
|
|
95
|
+
te((r) => ({
|
|
96
96
|
v1b1615da: r.gap,
|
|
97
97
|
v274632b3: r.textColor
|
|
98
98
|
}));
|
|
@@ -100,7 +100,7 @@ const ml = {
|
|
|
100
100
|
return (r, i) => (u(), g("div", {
|
|
101
101
|
class: F(["icon-text--container", [o(a)]])
|
|
102
102
|
}, [
|
|
103
|
-
P(
|
|
103
|
+
P(ne, {
|
|
104
104
|
class: "icon-text--icon",
|
|
105
105
|
name: e.icon,
|
|
106
106
|
color: e.iconColor,
|
|
@@ -284,7 +284,7 @@ const Ha = /* @__PURE__ */ S({
|
|
|
284
284
|
onClick: {}
|
|
285
285
|
},
|
|
286
286
|
setup(e, { expose: t }) {
|
|
287
|
-
|
|
287
|
+
te((c) => ({
|
|
288
288
|
v8ea3f2fe: o(s)
|
|
289
289
|
}));
|
|
290
290
|
const a = e, n = { name: R.LOADING_OUTLINE, animation: "spin" }, r = p(() => a.isLoading ? n : a.icon), i = p(() => `av-button--variant-${a.variant.toLowerCase()}`), A = p(() => `av-button--theme-${a.theme.toLowerCase()}`), l = p(() => a.noRadius ? "av-button--no-radius" : ""), s = p(() => {
|
|
@@ -362,7 +362,7 @@ const Ha = /* @__PURE__ */ S({
|
|
|
362
362
|
}, [
|
|
363
363
|
y("div", qa, [
|
|
364
364
|
y("div", Ya, [
|
|
365
|
-
P(
|
|
365
|
+
P(ne, ee(o(i), { size: 3 }), null, 16),
|
|
366
366
|
y("div", Ra, [
|
|
367
367
|
e.small ? O("", !0) : (u(), x(ue(e.titleTag), {
|
|
368
368
|
key: 0,
|
|
@@ -421,7 +421,7 @@ const Ha = /* @__PURE__ */ S({
|
|
|
421
421
|
class: "toasters"
|
|
422
422
|
}, {
|
|
423
423
|
default: Y(() => [
|
|
424
|
-
(u(!0), g(_, null,
|
|
424
|
+
(u(!0), g(_, null, re(e.messages, (i) => (u(), x(Ga, ee({
|
|
425
425
|
key: i.id,
|
|
426
426
|
class: ["av-toaster", t(i.type)]
|
|
427
427
|
}, { ref_for: !0 }, i, {
|
|
@@ -447,7 +447,7 @@ const Ha = /* @__PURE__ */ S({
|
|
|
447
447
|
"aria-label": e.navAriaLabel
|
|
448
448
|
}, [
|
|
449
449
|
y("ul", en, [
|
|
450
|
-
(u(!0), g(_, null,
|
|
450
|
+
(u(!0), g(_, null, re(e.links, (i, A) => (u(), g("li", { key: A }, [
|
|
451
451
|
P(Ce, {
|
|
452
452
|
icon: i.icon,
|
|
453
453
|
label: i.label ?? "",
|
|
@@ -555,7 +555,7 @@ const rn = /* @__PURE__ */ V(tn, [["render", nn]]), An = {
|
|
|
555
555
|
(M = document.getElementById("close-button")) == null || M.focus();
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function h() {
|
|
559
559
|
s.value = !0, A.value = !1, l.value = !0;
|
|
560
560
|
}
|
|
561
561
|
const I = c, m = p(() => [a.homeLabel, a.serviceTitle].filter((M) => M).join(" - ")), C = p(() => !!r.mainnav);
|
|
@@ -587,7 +587,7 @@ const rn = /* @__PURE__ */ V(tn, [["render", nn]]), An = {
|
|
|
587
587
|
"aria-label": e.showSearchLabel,
|
|
588
588
|
title: e.showSearchLabel,
|
|
589
589
|
"data-fr-opened": o(l),
|
|
590
|
-
onClick: T[0] || (T[0] = se((z) =>
|
|
590
|
+
onClick: T[0] || (T[0] = se((z) => h(), ["prevent", "stop"]))
|
|
591
591
|
}, null, 8, vn)) : O("", !0),
|
|
592
592
|
o(C) || (W = e.quickLinks) != null && W.length ? (u(), g("button", {
|
|
593
593
|
key: 1,
|
|
@@ -716,7 +716,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
716
716
|
color: {}
|
|
717
717
|
},
|
|
718
718
|
setup(e) {
|
|
719
|
-
|
|
719
|
+
te((a) => ({
|
|
720
720
|
v1dadd14a: a.color
|
|
721
721
|
}));
|
|
722
722
|
const t = p(() => ({
|
|
@@ -757,7 +757,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
757
757
|
"aria-label": "Accordion group"
|
|
758
758
|
}, {
|
|
759
759
|
default: Y(() => [
|
|
760
|
-
(u(!0), g(_, null,
|
|
760
|
+
(u(!0), g(_, null, re(o(a), (l, s) => (u(), x(o(sa), {
|
|
761
761
|
id: `${r}-accordion-${s}`,
|
|
762
762
|
key: s,
|
|
763
763
|
"aria-labelledby": `accordion-title-${s}`,
|
|
@@ -767,7 +767,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
767
767
|
var c, d, f;
|
|
768
768
|
return [
|
|
769
769
|
y("div", kn, [
|
|
770
|
-
(c = l.props) != null && c.icon ? (u(), x(
|
|
770
|
+
(c = l.props) != null && c.icon ? (u(), x(ne, {
|
|
771
771
|
key: 0,
|
|
772
772
|
size: 2,
|
|
773
773
|
name: (d = l.props) == null ? void 0 : d.icon,
|
|
@@ -805,7 +805,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
805
805
|
onClick: { type: Function }
|
|
806
806
|
},
|
|
807
807
|
setup(e) {
|
|
808
|
-
return
|
|
808
|
+
return te((t) => ({
|
|
809
809
|
v4a373320: t.customPadding
|
|
810
810
|
})), (t, a) => (u(), g("button", {
|
|
811
811
|
class: "av-rich-button",
|
|
@@ -816,7 +816,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
816
816
|
}, [
|
|
817
817
|
y("div", Pn, [
|
|
818
818
|
y("div", Wn, [
|
|
819
|
-
e.iconLeft ? (u(), x(
|
|
819
|
+
e.iconLeft ? (u(), x(ne, {
|
|
820
820
|
key: 0,
|
|
821
821
|
name: e.iconLeft,
|
|
822
822
|
color: "var(--dark-background-primary1)",
|
|
@@ -824,7 +824,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
824
824
|
}, null, 8, ["name"])) : O("", !0),
|
|
825
825
|
B(t.$slots, "default", {}, void 0, !0)
|
|
826
826
|
]),
|
|
827
|
-
e.iconRight ? (u(), x(
|
|
827
|
+
e.iconRight ? (u(), x(ne, {
|
|
828
828
|
key: 0,
|
|
829
829
|
name: e.iconRight,
|
|
830
830
|
color: "var(--dark-background-primary1)",
|
|
@@ -882,7 +882,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
882
882
|
},
|
|
883
883
|
emits: ["update:modelValue", "update:validMessage", "update:error", "change", "onDropAcceptTypeError"],
|
|
884
884
|
setup(e, { emit: t }) {
|
|
885
|
-
|
|
885
|
+
te((I) => ({
|
|
886
886
|
v38bbeb48: I.maxWidth
|
|
887
887
|
}));
|
|
888
888
|
const a = t, n = p(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), r = J(!1);
|
|
@@ -923,7 +923,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
923
923
|
onDragleave: s,
|
|
924
924
|
onDrop: A
|
|
925
925
|
}));
|
|
926
|
-
function
|
|
926
|
+
function h(I) {
|
|
927
927
|
var m;
|
|
928
928
|
I ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (m = e.onDeleteFile) == null || m.call(e);
|
|
929
929
|
}
|
|
@@ -938,7 +938,7 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
938
938
|
y("div", Hn, [
|
|
939
939
|
y("div", Zn, [
|
|
940
940
|
B(I.$slots, "left", {}, () => [
|
|
941
|
-
P(
|
|
941
|
+
P(ne, {
|
|
942
942
|
size: 2.5,
|
|
943
943
|
name: o(R).ATTACHMENT_PLUS,
|
|
944
944
|
color: "var(--icon)"
|
|
@@ -962,8 +962,8 @@ const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S
|
|
|
962
962
|
key: 0,
|
|
963
963
|
label: e.deleteButtonLabel,
|
|
964
964
|
theme: "SECONDARY",
|
|
965
|
-
onClick: m[0] || (m[0] = () =>
|
|
966
|
-
}, null, 8, ["label"])) : (u(), x(
|
|
965
|
+
onClick: m[0] || (m[0] = () => h(e.modelValue))
|
|
966
|
+
}, null, 8, ["label"])) : (u(), x(ne, {
|
|
967
967
|
key: 1,
|
|
968
968
|
size: 1.5,
|
|
969
969
|
name: o(R).TRAY_UPLOAD,
|
|
@@ -1506,8 +1506,8 @@ function Xr(e, t) {
|
|
|
1506
1506
|
return Math.round(n / xt) + 1;
|
|
1507
1507
|
}
|
|
1508
1508
|
function Pt(e, t) {
|
|
1509
|
-
var d, f,
|
|
1510
|
-
const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Fe(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (
|
|
1509
|
+
var d, f, h, I;
|
|
1510
|
+
const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Fe(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, A = me((t == null ? void 0 : t.in) || e, 0);
|
|
1511
1511
|
A.setFullYear(n + 1, 0, i), A.setHours(0, 0, 0, 0);
|
|
1512
1512
|
const l = ze(A, t), s = me((t == null ? void 0 : t.in) || e, 0);
|
|
1513
1513
|
s.setFullYear(n, 0, i), s.setHours(0, 0, 0, 0);
|
|
@@ -2219,8 +2219,8 @@ function $r(e, t, a) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
const eA = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tA = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, aA = /^'([^]*?)'?$/, nA = /''/g, rA = /[a-zA-Z]/;
|
|
2221
2221
|
function AA(e, t, a) {
|
|
2222
|
-
var d, f,
|
|
2223
|
-
const n = Fe(), r = n.locale ?? Vr, i = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, A = n.weekStartsOn ?? ((I = (
|
|
2222
|
+
var d, f, h, I;
|
|
2223
|
+
const n = Fe(), r = n.locale ?? Vr, i = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, A = n.weekStartsOn ?? ((I = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : I.weekStartsOn) ?? 0, l = le(e, a == null ? void 0 : a.in);
|
|
2224
2224
|
if (!Bt(l))
|
|
2225
2225
|
throw new RangeError("Invalid time value");
|
|
2226
2226
|
let s = t.match(tA).map((m) => {
|
|
@@ -2297,21 +2297,25 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2297
2297
|
minlength: {},
|
|
2298
2298
|
errorMessage: {},
|
|
2299
2299
|
validMessage: {},
|
|
2300
|
-
prefixIcon: {}
|
|
2300
|
+
prefixIcon: {},
|
|
2301
|
+
width: {}
|
|
2301
2302
|
},
|
|
2302
2303
|
emits: ["update:modelValue"],
|
|
2303
2304
|
setup(e, { emit: t }) {
|
|
2305
|
+
te((h) => ({
|
|
2306
|
+
bbb0de5c: h.width
|
|
2307
|
+
}));
|
|
2304
2308
|
const a = e, n = t, r = ie(), i = p(() => a.errorMessage ? Array.isArray(a.errorMessage) ? a.errorMessage : [a.errorMessage] : []), A = p(() => a.validMessage ? Array.isArray(a.validMessage) ? a.validMessage : [a.validMessage] : []), l = p(() => a.id || `av-input-${crypto.randomUUID()}`), s = p(() => !!a.errorMessage), c = p(() => f(a.minDate)), d = p(() => f(a.maxDate));
|
|
2305
|
-
function f(
|
|
2306
|
-
if (!(a.type !== "date" && a.type !== "datetime-local" ||
|
|
2307
|
-
return AA(
|
|
2309
|
+
function f(h) {
|
|
2310
|
+
if (!(a.type !== "date" && a.type !== "datetime-local" || h === void 0 || !Bt(h)))
|
|
2311
|
+
return AA(h, "yyyy-MM-dd");
|
|
2308
2312
|
}
|
|
2309
|
-
return (
|
|
2313
|
+
return (h, I) => (u(), g("div", {
|
|
2310
2314
|
class: F(["av-input", { "av-input--date": e.type === "date" }])
|
|
2311
2315
|
}, [
|
|
2312
2316
|
y("div", oA, [
|
|
2313
2317
|
e.prefixIcon ? (u(), g("div", lA, [
|
|
2314
|
-
P(
|
|
2318
|
+
P(ne, {
|
|
2315
2319
|
name: e.prefixIcon,
|
|
2316
2320
|
size: 1.2
|
|
2317
2321
|
}, null, 8, ["name"])
|
|
@@ -2334,7 +2338,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2334
2338
|
required: e.required,
|
|
2335
2339
|
maxlength: e.maxlength,
|
|
2336
2340
|
minlength: e.minlength
|
|
2337
|
-
},
|
|
2341
|
+
}, h.$attrs, {
|
|
2338
2342
|
max: o(d),
|
|
2339
2343
|
min: o(c),
|
|
2340
2344
|
"onUpdate:modelValue": I[0] || (I[0] = (m) => n("update:modelValue", m))
|
|
@@ -2347,7 +2351,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2347
2351
|
key: "0"
|
|
2348
2352
|
} : void 0
|
|
2349
2353
|
]), 1040, ["id", "model-value", "label", "label-visible", "label-class", "hint", "description-id", "is-invalid", "is-valid", "is-textarea", "placeholder", "type", "disabled", "required", "maxlength", "minlength", "max", "min"]),
|
|
2350
|
-
B(
|
|
2354
|
+
B(h.$slots, "customCaptions", {
|
|
2351
2355
|
currentValue: e.modelValue,
|
|
2352
2356
|
maxlength: e.maxlength
|
|
2353
2357
|
}, () => {
|
|
@@ -2358,20 +2362,20 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2358
2362
|
}, !0)
|
|
2359
2363
|
]),
|
|
2360
2364
|
o(i).length > 0 ? (u(), g("div", cA, [
|
|
2361
|
-
(u(!0), g(_, null,
|
|
2365
|
+
(u(!0), g(_, null, re(o(i), (m, C) => (u(), g("div", {
|
|
2362
2366
|
key: C,
|
|
2363
2367
|
class: "av-input__error-message"
|
|
2364
2368
|
}, Z(m), 1))), 128))
|
|
2365
2369
|
])) : O("", !0),
|
|
2366
2370
|
o(A).length > 0 ? (u(), g("div", uA, [
|
|
2367
|
-
(u(!0), g(_, null,
|
|
2371
|
+
(u(!0), g(_, null, re(o(A), (m, C) => (u(), g("div", {
|
|
2368
2372
|
key: C,
|
|
2369
2373
|
class: "av-input__valid-message"
|
|
2370
2374
|
}, Z(m), 1))), 128))
|
|
2371
2375
|
])) : O("", !0)
|
|
2372
2376
|
], 2));
|
|
2373
2377
|
}
|
|
2374
|
-
}), fA = /* @__PURE__ */ V(dA, [["__scopeId", "data-v-
|
|
2378
|
+
}), fA = /* @__PURE__ */ V(dA, [["__scopeId", "data-v-055da9a3"]]), Ll = {
|
|
2375
2379
|
name: "AvList",
|
|
2376
2380
|
props: ["size"],
|
|
2377
2381
|
template: '<div class="av-list"><slot /></div>'
|
|
@@ -2391,7 +2395,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2391
2395
|
role: { default: "list" }
|
|
2392
2396
|
},
|
|
2393
2397
|
setup(e) {
|
|
2394
|
-
|
|
2398
|
+
te((r) => ({
|
|
2395
2399
|
v667a1c12: r.backgroundColor,
|
|
2396
2400
|
v4da6b808: r.borderRadius,
|
|
2397
2401
|
v61717933: r.padding,
|
|
@@ -2447,7 +2451,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2447
2451
|
role: { default: "listitem" }
|
|
2448
2452
|
},
|
|
2449
2453
|
setup(e) {
|
|
2450
|
-
|
|
2454
|
+
te((c) => ({
|
|
2451
2455
|
v2a637eba: c.colorOnHover,
|
|
2452
2456
|
v09ecd263: c.color,
|
|
2453
2457
|
v479455c7: c.descriptionColor,
|
|
@@ -2486,7 +2490,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2486
2490
|
}, {
|
|
2487
2491
|
default: Y(() => [
|
|
2488
2492
|
e.icon ? (u(), g("div", IA, [
|
|
2489
|
-
P(
|
|
2493
|
+
P(ne, {
|
|
2490
2494
|
name: e.icon,
|
|
2491
2495
|
color: e.iconColor ?? e.color,
|
|
2492
2496
|
size: e.iconSize
|
|
@@ -2516,7 +2520,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2516
2520
|
labelTypographyClass: { default: "b2-regular" }
|
|
2517
2521
|
},
|
|
2518
2522
|
setup(e) {
|
|
2519
|
-
|
|
2523
|
+
te((C) => ({
|
|
2520
2524
|
v68aa0dfa: o(n)
|
|
2521
2525
|
}));
|
|
2522
2526
|
const t = e, {
|
|
@@ -2534,7 +2538,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2534
2538
|
function f(C) {
|
|
2535
2539
|
return d.value.some((M) => M.value === C.value);
|
|
2536
2540
|
}
|
|
2537
|
-
function
|
|
2541
|
+
function h(C) {
|
|
2538
2542
|
A ? (f(C) ? d.value = d.value.filter(
|
|
2539
2543
|
(T) => T.value !== C.value
|
|
2540
2544
|
) : d.value.push(C), l([...d.value])) : (d.value = [C], l(C));
|
|
@@ -2554,7 +2558,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2554
2558
|
key: 0,
|
|
2555
2559
|
class: F(["av-select-label", [o(r)]])
|
|
2556
2560
|
}, Z(o(a)), 3)) : O("", !0),
|
|
2557
|
-
(u(!0), g(_, null,
|
|
2561
|
+
(u(!0), g(_, null, re(o(s), (Q) => (u(), g("div", {
|
|
2558
2562
|
key: Q.value,
|
|
2559
2563
|
class: "tag-wrapper"
|
|
2560
2564
|
}, [
|
|
@@ -2568,7 +2572,7 @@ const oA = { class: "av-input__wrapper" }, lA = {
|
|
|
2568
2572
|
disabled: m(Q),
|
|
2569
2573
|
selectable: "",
|
|
2570
2574
|
selected: f(Q),
|
|
2571
|
-
onSelect: () =>
|
|
2575
|
+
onSelect: () => h(Q)
|
|
2572
2576
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
2573
2577
|
]))), 128))
|
|
2574
2578
|
]);
|
|
@@ -2672,14 +2676,14 @@ const kl = [
|
|
|
2672
2676
|
d && r("update:modelValue", d);
|
|
2673
2677
|
}), t({ selected: c }), (d, f) => (u(), x(o(fa), ee(n, { "model-value": o(c) }), {
|
|
2674
2678
|
default: Y(() => [
|
|
2675
|
-
(u(!0), g(_, null,
|
|
2679
|
+
(u(!0), g(_, null, re(o(s), (h, I) => {
|
|
2676
2680
|
var m, C;
|
|
2677
2681
|
return u(), x(o(va), {
|
|
2678
2682
|
key: I,
|
|
2679
2683
|
modelValue: o(c),
|
|
2680
2684
|
"onUpdate:modelValue": f[0] || (f[0] = (M) => At(c) ? c.value = M : null),
|
|
2681
|
-
value: (m =
|
|
2682
|
-
disabled: ((C =
|
|
2685
|
+
value: (m = h.props) == null ? void 0 : m.value,
|
|
2686
|
+
disabled: ((C = h.props) == null ? void 0 : C.disabled) ?? n.disabled,
|
|
2683
2687
|
small: n.small,
|
|
2684
2688
|
inline: n.inline,
|
|
2685
2689
|
name: n.name
|
|
@@ -2687,7 +2691,7 @@ const kl = [
|
|
|
2687
2691
|
label: Y(() => {
|
|
2688
2692
|
var M;
|
|
2689
2693
|
return [
|
|
2690
|
-
(u(), x(ue((M =
|
|
2694
|
+
(u(), x(ue((M = h.children) == null ? void 0 : M.default)))
|
|
2691
2695
|
];
|
|
2692
2696
|
}),
|
|
2693
2697
|
_: 2
|
|
@@ -2744,9 +2748,9 @@ function kA(e, t = {}) {
|
|
|
2744
2748
|
};
|
|
2745
2749
|
let A;
|
|
2746
2750
|
return (s) => {
|
|
2747
|
-
const c =
|
|
2748
|
-
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((f,
|
|
2749
|
-
r = t.rejectOnCancel ?
|
|
2751
|
+
const c = ae(e), d = ae(t.maxWait);
|
|
2752
|
+
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((f, h) => {
|
|
2753
|
+
r = t.rejectOnCancel ? h : f, A = s, d && !n && (n = setTimeout(() => {
|
|
2750
2754
|
a && i(a), n = void 0, f(A());
|
|
2751
2755
|
}, d)), a = setTimeout(() => {
|
|
2752
2756
|
n && i(n), n = void 0, f(s());
|
|
@@ -2760,8 +2764,8 @@ function zA(...e) {
|
|
|
2760
2764
|
const d = () => {
|
|
2761
2765
|
a && (clearTimeout(a), a = void 0, r(), r = pe);
|
|
2762
2766
|
};
|
|
2763
|
-
return (
|
|
2764
|
-
const I =
|
|
2767
|
+
return (h) => {
|
|
2768
|
+
const I = ae(A), m = Date.now() - t, C = () => i = h();
|
|
2765
2769
|
return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (s || !n) ? (t = Date.now(), C()) : l && (i = new Promise((M, T) => {
|
|
2766
2770
|
r = c ? T : M, a = setTimeout(() => {
|
|
2767
2771
|
t = Date.now(), n = !0, M(C()), d();
|
|
@@ -2805,24 +2809,24 @@ function WA(e, t, a) {
|
|
|
2805
2809
|
const st = OA ? window : void 0;
|
|
2806
2810
|
function ct(e) {
|
|
2807
2811
|
var t;
|
|
2808
|
-
const a =
|
|
2812
|
+
const a = ae(e);
|
|
2809
2813
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
2810
2814
|
}
|
|
2811
2815
|
function yt(...e) {
|
|
2812
2816
|
const t = [], a = () => {
|
|
2813
2817
|
t.forEach((l) => l()), t.length = 0;
|
|
2814
2818
|
}, n = (l, s, c, d) => (l.addEventListener(s, c, d), () => l.removeEventListener(s, c, d)), r = p(() => {
|
|
2815
|
-
const l = We(
|
|
2819
|
+
const l = We(ae(e[0])).filter((s) => s != null);
|
|
2816
2820
|
return l.every((s) => typeof s != "string") ? l : void 0;
|
|
2817
2821
|
}), i = WA(
|
|
2818
2822
|
() => {
|
|
2819
2823
|
var l, s;
|
|
2820
2824
|
return [
|
|
2821
2825
|
(s = (l = r.value) == null ? void 0 : l.map((c) => ct(c))) != null ? s : [st].filter((c) => c != null),
|
|
2822
|
-
We(
|
|
2826
|
+
We(ae(r.value ? e[1] : e[0])),
|
|
2823
2827
|
We(o(r.value ? e[2] : e[1])),
|
|
2824
2828
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
2825
|
-
|
|
2829
|
+
ae(r.value ? e[3] : e[2])
|
|
2826
2830
|
];
|
|
2827
2831
|
},
|
|
2828
2832
|
([l, s, c, d]) => {
|
|
@@ -2831,8 +2835,8 @@ function yt(...e) {
|
|
|
2831
2835
|
const f = SA(d) ? { ...d } : d;
|
|
2832
2836
|
t.push(
|
|
2833
2837
|
...l.flatMap(
|
|
2834
|
-
(
|
|
2835
|
-
(I) => c.map((m) => n(
|
|
2838
|
+
(h) => s.flatMap(
|
|
2839
|
+
(I) => c.map((m) => n(h, I, m, f))
|
|
2836
2840
|
)
|
|
2837
2841
|
)
|
|
2838
2842
|
);
|
|
@@ -2861,12 +2865,12 @@ function XA(e, t, a = {}) {
|
|
|
2861
2865
|
const A = /* @__PURE__ */ UA(() => n && "MutationObserver" in n), l = () => {
|
|
2862
2866
|
i && (i.disconnect(), i = void 0);
|
|
2863
2867
|
}, s = p(() => {
|
|
2864
|
-
const
|
|
2868
|
+
const h = ae(e), I = We(h).map(ct).filter(wA);
|
|
2865
2869
|
return new Set(I);
|
|
2866
2870
|
}), c = ce(
|
|
2867
2871
|
s,
|
|
2868
|
-
(
|
|
2869
|
-
l(), A.value &&
|
|
2872
|
+
(h) => {
|
|
2873
|
+
l(), A.value && h.size && (i = new MutationObserver(t), h.forEach((I) => i.observe(I, r)));
|
|
2870
2874
|
},
|
|
2871
2875
|
{ immediate: !0, flush: "post" }
|
|
2872
2876
|
), d = () => i == null ? void 0 : i.takeRecords(), f = () => {
|
|
@@ -2903,7 +2907,7 @@ function HA(e, t = {}) {
|
|
|
2903
2907
|
onError: f = (w) => {
|
|
2904
2908
|
console.error(w);
|
|
2905
2909
|
}
|
|
2906
|
-
} = t,
|
|
2910
|
+
} = t, h = typeof l == "boolean" ? {
|
|
2907
2911
|
mutation: l
|
|
2908
2912
|
} : l, I = Pe(0), m = Pe(0), C = p({
|
|
2909
2913
|
get() {
|
|
@@ -2921,18 +2925,18 @@ function HA(e, t = {}) {
|
|
|
2921
2925
|
}
|
|
2922
2926
|
});
|
|
2923
2927
|
function T(w, oe) {
|
|
2924
|
-
var $, X, v,
|
|
2928
|
+
var $, X, v, b;
|
|
2925
2929
|
if (!d)
|
|
2926
2930
|
return;
|
|
2927
|
-
const N =
|
|
2931
|
+
const N = ae(e);
|
|
2928
2932
|
if (!N)
|
|
2929
2933
|
return;
|
|
2930
2934
|
(v = N instanceof Document ? d.document.body : N) == null || v.scrollTo({
|
|
2931
|
-
top: ($ =
|
|
2932
|
-
left: (X =
|
|
2933
|
-
behavior:
|
|
2935
|
+
top: ($ = ae(oe)) != null ? $ : M.value,
|
|
2936
|
+
left: (X = ae(w)) != null ? X : C.value,
|
|
2937
|
+
behavior: ae(c)
|
|
2934
2938
|
});
|
|
2935
|
-
const k = ((
|
|
2939
|
+
const k = ((b = N == null ? void 0 : N.document) == null ? void 0 : b.documentElement) || (N == null ? void 0 : N.documentElement) || N;
|
|
2936
2940
|
C != null && (I.value = k.scrollLeft), M != null && (m.value = k.scrollTop);
|
|
2937
2941
|
}
|
|
2938
2942
|
const Q = Pe(!1), E = dt({
|
|
@@ -2951,7 +2955,7 @@ function HA(e, t = {}) {
|
|
|
2951
2955
|
var oe;
|
|
2952
2956
|
if (!d)
|
|
2953
2957
|
return;
|
|
2954
|
-
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction:
|
|
2958
|
+
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction: b } = getComputedStyle($), N = b === "rtl" ? -1 : 1, k = $.scrollLeft;
|
|
2955
2959
|
D.left = k < I.value, D.right = k > I.value;
|
|
2956
2960
|
const U = Math.abs(k * N) <= (A.left || 0), q = Math.abs(k * N) + $.clientWidth >= $.scrollWidth - (A.right || 0) - Et;
|
|
2957
2961
|
X === "flex" && v === "row-reverse" ? (E.left = q, E.right = U) : (E.left = U, E.right = q), I.value = k;
|
|
@@ -2973,17 +2977,17 @@ function HA(e, t = {}) {
|
|
|
2973
2977
|
s
|
|
2974
2978
|
), PA(() => {
|
|
2975
2979
|
try {
|
|
2976
|
-
const w =
|
|
2980
|
+
const w = ae(e);
|
|
2977
2981
|
if (!w)
|
|
2978
2982
|
return;
|
|
2979
2983
|
z(w);
|
|
2980
2984
|
} catch (w) {
|
|
2981
2985
|
f(w);
|
|
2982
2986
|
}
|
|
2983
|
-
}),
|
|
2987
|
+
}), h != null && h.mutation && e != null && e !== d && e !== document && XA(
|
|
2984
2988
|
e,
|
|
2985
2989
|
() => {
|
|
2986
|
-
const w =
|
|
2990
|
+
const w = ae(e);
|
|
2987
2991
|
w && z(w);
|
|
2988
2992
|
},
|
|
2989
2993
|
{
|
|
@@ -3003,7 +3007,7 @@ function HA(e, t = {}) {
|
|
|
3003
3007
|
arrivedState: E,
|
|
3004
3008
|
directions: D,
|
|
3005
3009
|
measure() {
|
|
3006
|
-
const w =
|
|
3010
|
+
const w = ae(e);
|
|
3007
3011
|
d && w && z(w);
|
|
3008
3012
|
}
|
|
3009
3013
|
};
|
|
@@ -3068,10 +3072,10 @@ var $e = function() {
|
|
|
3068
3072
|
return Yt.Date.now();
|
|
3069
3073
|
}, di = "Expected a function", fi = Math.max, vi = Math.min;
|
|
3070
3074
|
function Ft(e, t, a) {
|
|
3071
|
-
var n, r, i, A, l, s, c = 0, d = !1, f = !1,
|
|
3075
|
+
var n, r, i, A, l, s, c = 0, d = !1, f = !1, h = !0;
|
|
3072
3076
|
if (typeof e != "function")
|
|
3073
3077
|
throw new TypeError(di);
|
|
3074
|
-
t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, i = f ? fi(Nt(a.maxWait) || 0, t) : i,
|
|
3078
|
+
t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, i = f ? fi(Nt(a.maxWait) || 0, t) : i, h = "trailing" in a ? !!a.trailing : h);
|
|
3075
3079
|
function I(W) {
|
|
3076
3080
|
var z = n, Ae = r;
|
|
3077
3081
|
return n = r = void 0, c = W, A = e.apply(Ae, z), A;
|
|
@@ -3094,7 +3098,7 @@ function Ft(e, t, a) {
|
|
|
3094
3098
|
l = setTimeout(T, C(W));
|
|
3095
3099
|
}
|
|
3096
3100
|
function Q(W) {
|
|
3097
|
-
return l = void 0,
|
|
3101
|
+
return l = void 0, h && n ? I(W) : (n = r = void 0, A);
|
|
3098
3102
|
}
|
|
3099
3103
|
function E() {
|
|
3100
3104
|
l !== void 0 && clearTimeout(l), c = 0, n = s = r = l = void 0;
|
|
@@ -3134,7 +3138,7 @@ const mi = {
|
|
|
3134
3138
|
props: s,
|
|
3135
3139
|
getOptionId: c,
|
|
3136
3140
|
getDisplayLabel: d
|
|
3137
|
-
} = lt(), f = J(),
|
|
3141
|
+
} = lt(), f = J(), h = J(), I = p(() => {
|
|
3138
3142
|
if (!s.options)
|
|
3139
3143
|
return [];
|
|
3140
3144
|
if (s.serverSideFiltering)
|
|
@@ -3164,7 +3168,7 @@ const mi = {
|
|
|
3164
3168
|
(z) => c(z) !== j
|
|
3165
3169
|
) : i.value = [...D, E];
|
|
3166
3170
|
}
|
|
3167
|
-
const { arrivedState: T } = HA(
|
|
3171
|
+
const { arrivedState: T } = HA(h, {
|
|
3168
3172
|
throttle: 100
|
|
3169
3173
|
}), Q = Ft(() => {
|
|
3170
3174
|
n("loadMore");
|
|
@@ -3183,7 +3187,7 @@ const mi = {
|
|
|
3183
3187
|
style: Ve({ width: o(s).dropdownWidth, maxHeight: o(s).maxDropdownHeight })
|
|
3184
3188
|
}, [
|
|
3185
3189
|
o(m) === o(Me).LOADING ? (u(), g("div", mi, [
|
|
3186
|
-
P(
|
|
3190
|
+
P(ne, {
|
|
3187
3191
|
name: o(R).LOADING_OUTLINE,
|
|
3188
3192
|
size: 1.5,
|
|
3189
3193
|
class: "av-autocomplete-dropdown__spinner"
|
|
@@ -3194,12 +3198,12 @@ const mi = {
|
|
|
3194
3198
|
])) : (u(), x(Vt, ee({
|
|
3195
3199
|
key: 2,
|
|
3196
3200
|
ref_key: "listRef",
|
|
3197
|
-
ref:
|
|
3201
|
+
ref: h
|
|
3198
3202
|
}, o(s).listOptions, {
|
|
3199
3203
|
class: ["av-autocomplete-dropdown__options", o(s).scrollbarClass]
|
|
3200
3204
|
}), {
|
|
3201
3205
|
default: Y(() => [
|
|
3202
|
-
(u(!0), g(_, null,
|
|
3206
|
+
(u(!0), g(_, null, re(o(I), (j) => (u(), g(_, {
|
|
3203
3207
|
key: o(c)(j)
|
|
3204
3208
|
}, [
|
|
3205
3209
|
r.item ? B(E.$slots, "item", {
|
|
@@ -3238,7 +3242,7 @@ const mi = {
|
|
|
3238
3242
|
inputId: c,
|
|
3239
3243
|
handleBlur: d,
|
|
3240
3244
|
getDisplayLabel: f
|
|
3241
|
-
} = lt(),
|
|
3245
|
+
} = lt(), h = J(), I = p(() => !s.multiSelect && i.value.length > 0 ? f(i.value[0]) : s.multiSelect && i.value.length > 0 ? s.showSelectedSection ? `${i.value.length} element(s) selected` : i.value.map(f).join(", ") : A.value), m = p(() => {
|
|
3242
3246
|
var E;
|
|
3243
3247
|
return ((E = s.inputOptions) == null ? void 0 : E.placeholder) || "Search...";
|
|
3244
3248
|
}), C = Ft((E) => {
|
|
@@ -3256,13 +3260,13 @@ const mi = {
|
|
|
3256
3260
|
return je(() => {
|
|
3257
3261
|
C.cancel();
|
|
3258
3262
|
}), t({
|
|
3259
|
-
inputRef:
|
|
3263
|
+
inputRef: h,
|
|
3260
3264
|
searchQuery: p(() => A.value)
|
|
3261
3265
|
}), (E, D) => (u(), g("div", Ci, [
|
|
3262
3266
|
P(fA, ee({
|
|
3263
3267
|
id: o(c),
|
|
3264
3268
|
ref_key: "inputRef",
|
|
3265
|
-
ref:
|
|
3269
|
+
ref: h,
|
|
3266
3270
|
"model-value": o(I),
|
|
3267
3271
|
placeholder: o(m)
|
|
3268
3272
|
}, o(s).inputOptions, {
|
|
@@ -3312,7 +3316,7 @@ const mi = {
|
|
|
3312
3316
|
);
|
|
3313
3317
|
}
|
|
3314
3318
|
return (l, s) => o(n).multiSelect && o(a).length > 0 && o(n).showSelectedSection ? (u(), g("div", pi, [
|
|
3315
|
-
(u(!0), g(_, null,
|
|
3319
|
+
(u(!0), g(_, null, re(o(a), (c) => (u(), g("div", {
|
|
3316
3320
|
key: o(r)(c),
|
|
3317
3321
|
class: "av-autocomplete-selected-tags__item"
|
|
3318
3322
|
}, [
|
|
@@ -3366,7 +3370,7 @@ const mi = {
|
|
|
3366
3370
|
emits: /* @__PURE__ */ ve(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
3367
3371
|
setup(e, { emit: t }) {
|
|
3368
3372
|
const a = e, n = t, r = ie(), i = ke(e, "modelValue"), A = J(!1), l = J(""), s = J(), c = J(), d = J(), f = p(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
3369
|
-
function
|
|
3373
|
+
function h(Q) {
|
|
3370
3374
|
l.value = Q, n("search", Q);
|
|
3371
3375
|
}
|
|
3372
3376
|
function I(Q) {
|
|
@@ -3409,7 +3413,7 @@ const mi = {
|
|
|
3409
3413
|
P(Mi, {
|
|
3410
3414
|
ref_key: "inputRef",
|
|
3411
3415
|
ref: c,
|
|
3412
|
-
onSearch:
|
|
3416
|
+
onSearch: h,
|
|
3413
3417
|
onClear: E[0] || (E[0] = (D) => n("clear"))
|
|
3414
3418
|
}, Le({ _: 2 }, [
|
|
3415
3419
|
r.requiredTip ? {
|
|
@@ -3481,8 +3485,8 @@ const mi = {
|
|
|
3481
3485
|
},
|
|
3482
3486
|
emits: ["update:modelValue"],
|
|
3483
3487
|
setup(e, { emit: t }) {
|
|
3484
|
-
|
|
3485
|
-
|
|
3488
|
+
te((f) => ({
|
|
3489
|
+
v5e495a53: f.width
|
|
3486
3490
|
}));
|
|
3487
3491
|
const a = e, n = t, r = p(() => a.modelValue.map((f) => f.value)), i = p(() => {
|
|
3488
3492
|
if (!a.modelValue || a.modelValue.length === 0)
|
|
@@ -3493,7 +3497,7 @@ const mi = {
|
|
|
3493
3497
|
return `${a.modelValue.length} option${f} sélectionnée${f}`;
|
|
3494
3498
|
});
|
|
3495
3499
|
function A(f) {
|
|
3496
|
-
return a.modelValue.some((
|
|
3500
|
+
return a.modelValue.some((h) => h.value === f.value);
|
|
3497
3501
|
}
|
|
3498
3502
|
function l(f) {
|
|
3499
3503
|
return A(f) ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE;
|
|
@@ -3506,15 +3510,19 @@ const mi = {
|
|
|
3506
3510
|
}
|
|
3507
3511
|
function d(f) {
|
|
3508
3512
|
var I;
|
|
3509
|
-
const
|
|
3513
|
+
const h = ((I = a.options) == null ? void 0 : I.filter(
|
|
3510
3514
|
(m) => f.includes(m.value)
|
|
3511
3515
|
)) ?? [];
|
|
3512
|
-
n("update:modelValue",
|
|
3516
|
+
n("update:modelValue", h);
|
|
3513
3517
|
}
|
|
3514
|
-
return (f,
|
|
3515
|
-
const I =
|
|
3518
|
+
return (f, h) => {
|
|
3519
|
+
const I = ne;
|
|
3516
3520
|
return u(), g("div", {
|
|
3517
|
-
class: F({
|
|
3521
|
+
class: F({
|
|
3522
|
+
"fr-multiselect--dense": a.dense,
|
|
3523
|
+
"fr-multiselect--unselected": a.modelValue.length === 0,
|
|
3524
|
+
"fr-multiselect--selected": a.modelValue.length > 0
|
|
3525
|
+
})
|
|
3518
3526
|
}, [
|
|
3519
3527
|
P(o(ma), ee(a, {
|
|
3520
3528
|
"model-value": o(r),
|
|
@@ -3522,7 +3530,7 @@ const mi = {
|
|
|
3522
3530
|
"button-label": o(i),
|
|
3523
3531
|
"id-key": "value",
|
|
3524
3532
|
"filtering-keys": ["label"],
|
|
3525
|
-
"onUpdate:modelValue":
|
|
3533
|
+
"onUpdate:modelValue": h[0] || (h[0] = (m) => d(m))
|
|
3526
3534
|
}), {
|
|
3527
3535
|
"checkbox-label": Y(({ option: m }) => [
|
|
3528
3536
|
y("div", Oi, [
|
|
@@ -3549,7 +3557,7 @@ const mi = {
|
|
|
3549
3557
|
], 2);
|
|
3550
3558
|
};
|
|
3551
3559
|
}
|
|
3552
|
-
}), Wl = /* @__PURE__ */ V(wi, [["__scopeId", "data-v-
|
|
3560
|
+
}), Wl = /* @__PURE__ */ V(wi, [["__scopeId", "data-v-4cc765fa"]]), Vl = {
|
|
3553
3561
|
name: "AvSelect",
|
|
3554
3562
|
props: {
|
|
3555
3563
|
modelValue: [String, Number],
|
|
@@ -3626,12 +3634,12 @@ const mi = {
|
|
|
3626
3634
|
emits: ["update:modelValue"],
|
|
3627
3635
|
setup(e, { expose: t, emit: a }) {
|
|
3628
3636
|
const n = a, r = ie(), i = J(e.modelValue), A = p(() => {
|
|
3629
|
-
var
|
|
3630
|
-
return ((
|
|
3637
|
+
var h;
|
|
3638
|
+
return ((h = r.default) == null ? void 0 : h.call(r)) || [];
|
|
3631
3639
|
});
|
|
3632
|
-
function l(
|
|
3640
|
+
function l(h) {
|
|
3633
3641
|
const I = A.value.length;
|
|
3634
|
-
i.value = (i.value +
|
|
3642
|
+
i.value = (i.value + h + I) % I;
|
|
3635
3643
|
}
|
|
3636
3644
|
function s() {
|
|
3637
3645
|
l(-1);
|
|
@@ -3645,11 +3653,11 @@ const mi = {
|
|
|
3645
3653
|
function f() {
|
|
3646
3654
|
i.value = A.value.length - 1;
|
|
3647
3655
|
}
|
|
3648
|
-
return ce(() => e.modelValue, (
|
|
3649
|
-
|
|
3650
|
-
}), ce(i, (
|
|
3651
|
-
n("update:modelValue",
|
|
3652
|
-
}), t({ activeTab: i }), (
|
|
3656
|
+
return ce(() => e.modelValue, (h) => {
|
|
3657
|
+
h !== void 0 && (i.value = h);
|
|
3658
|
+
}), ce(i, (h) => {
|
|
3659
|
+
n("update:modelValue", h);
|
|
3660
|
+
}), t({ activeTab: i }), (h, I) => {
|
|
3653
3661
|
const m = ba, C = ha, M = Ia;
|
|
3654
3662
|
return u(), x(M, {
|
|
3655
3663
|
modelValue: o(i),
|
|
@@ -3659,7 +3667,7 @@ const mi = {
|
|
|
3659
3667
|
"tab-titles": []
|
|
3660
3668
|
}, {
|
|
3661
3669
|
"tab-items": Y(() => [
|
|
3662
|
-
(u(!0), g(_, null,
|
|
3670
|
+
(u(!0), g(_, null, re(o(A), (T, Q) => {
|
|
3663
3671
|
var E;
|
|
3664
3672
|
return u(), x(m, {
|
|
3665
3673
|
key: Q,
|
|
@@ -3684,7 +3692,7 @@ const mi = {
|
|
|
3684
3692
|
}), 128))
|
|
3685
3693
|
]),
|
|
3686
3694
|
default: Y(() => [
|
|
3687
|
-
(u(!0), g(_, null,
|
|
3695
|
+
(u(!0), g(_, null, re(o(A), (T, Q) => (u(), x(C, {
|
|
3688
3696
|
key: Q,
|
|
3689
3697
|
"panel-id": `panel-${Q}`,
|
|
3690
3698
|
"tab-id": `tab-${Q}`
|
|
@@ -3799,7 +3807,7 @@ const mi = {
|
|
|
3799
3807
|
},
|
|
3800
3808
|
emits: ["update:current-page"],
|
|
3801
3809
|
setup(e, { emit: t }) {
|
|
3802
|
-
const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I), l = (I) => A(I), s = () => l(0), c = () => l(Math.max(0, e.currentPage - 1)), d = () => l(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => l(e.pages.length - 1),
|
|
3810
|
+
const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I), l = (I) => A(I), s = () => l(0), c = () => l(Math.max(0, e.currentPage - 1)), d = () => l(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => l(e.pages.length - 1), h = (I) => e.pages.indexOf(I) === e.currentPage;
|
|
3803
3811
|
return (I, m) => {
|
|
3804
3812
|
var C, M, T, Q;
|
|
3805
3813
|
return u(), g("nav", {
|
|
@@ -3820,7 +3828,7 @@ const mi = {
|
|
|
3820
3828
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
3821
3829
|
onClick: m[0] || (m[0] = se((E) => s(), ["prevent"]))
|
|
3822
3830
|
}, [
|
|
3823
|
-
P(
|
|
3831
|
+
P(ne, {
|
|
3824
3832
|
name: o(R).PAGE_FIRST,
|
|
3825
3833
|
size: 1.5,
|
|
3826
3834
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
@@ -3836,7 +3844,7 @@ const mi = {
|
|
|
3836
3844
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
3837
3845
|
onClick: m[1] || (m[1] = se((E) => c(), ["prevent"]))
|
|
3838
3846
|
}, [
|
|
3839
|
-
P(
|
|
3847
|
+
P(ne, {
|
|
3840
3848
|
name: o(R).NAVIGATE_BEFORE,
|
|
3841
3849
|
size: 1.5,
|
|
3842
3850
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
@@ -3844,12 +3852,12 @@ const mi = {
|
|
|
3844
3852
|
e.compact ? O("", !0) : (u(), g("span", _i, Z(e.prevPageLabel), 1))
|
|
3845
3853
|
], 8, Ji)
|
|
3846
3854
|
]),
|
|
3847
|
-
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 },
|
|
3855
|
+
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 }, re(o(i), (E, D) => (u(), g("li", { key: D }, [
|
|
3848
3856
|
y("a", {
|
|
3849
3857
|
href: E == null ? void 0 : E.href,
|
|
3850
3858
|
class: "fr-pagination__link fr-unhidden-lg",
|
|
3851
3859
|
title: E.title,
|
|
3852
|
-
"aria-current":
|
|
3860
|
+
"aria-current": h(E) ? "page" : void 0,
|
|
3853
3861
|
onClick: se((j) => l(e.pages.indexOf(E)), ["prevent"])
|
|
3854
3862
|
}, [
|
|
3855
3863
|
o(i).indexOf(E) === 0 && o(n) > 0 ? (u(), g("span", eo, "...")) : O("", !0),
|
|
@@ -3867,7 +3875,7 @@ const mi = {
|
|
|
3867
3875
|
onClick: m[2] || (m[2] = se((E) => d(), ["prevent"]))
|
|
3868
3876
|
}, [
|
|
3869
3877
|
e.compact ? O("", !0) : (u(), g("span", no, Z(e.nextPageLabel), 1)),
|
|
3870
|
-
P(
|
|
3878
|
+
P(ne, {
|
|
3871
3879
|
name: o(R).NAVIGATE_NEXT,
|
|
3872
3880
|
size: 1.5,
|
|
3873
3881
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
@@ -3885,7 +3893,7 @@ const mi = {
|
|
|
3885
3893
|
onClick: m[3] || (m[3] = se((E) => f(), ["prevent"]))
|
|
3886
3894
|
}, [
|
|
3887
3895
|
y("span", Ao, Z(e.lastPageLabel), 1),
|
|
3888
|
-
P(
|
|
3896
|
+
P(ne, {
|
|
3889
3897
|
name: o(R).PAGE_LAST,
|
|
3890
3898
|
size: 1.5,
|
|
3891
3899
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
@@ -3925,7 +3933,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
3925
3933
|
}),
|
|
3926
3934
|
emits: /* @__PURE__ */ ve(["update:collapsed"], ["update:collapsed"]),
|
|
3927
3935
|
setup(e) {
|
|
3928
|
-
|
|
3936
|
+
te((d) => ({
|
|
3929
3937
|
v4d5b7c17: o(s),
|
|
3930
3938
|
v4a813d87: d.padding
|
|
3931
3939
|
}));
|
|
@@ -4003,7 +4011,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
4003
4011
|
role: "menu"
|
|
4004
4012
|
}, {
|
|
4005
4013
|
default: Y(() => [
|
|
4006
|
-
(u(!0), g(_, null,
|
|
4014
|
+
(u(!0), g(_, null, re(e.items, (A) => (u(), x(o(Ut), {
|
|
4007
4015
|
key: A.id,
|
|
4008
4016
|
title: a.value ? void 0 : A.label,
|
|
4009
4017
|
icon: A.icon,
|
|
@@ -4057,7 +4065,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
4057
4065
|
width: { default: "100%" }
|
|
4058
4066
|
},
|
|
4059
4067
|
setup(e) {
|
|
4060
|
-
|
|
4068
|
+
te((i) => ({
|
|
4061
4069
|
v06d1bdf1: o(r)
|
|
4062
4070
|
}));
|
|
4063
4071
|
const t = e, { steps: a, currentStep: n, width: r } = it(t);
|
|
@@ -4070,7 +4078,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
4070
4078
|
}, [...A[0] || (A[0] = [
|
|
4071
4079
|
y("span", { class: "b1-regular" }, "1", -1)
|
|
4072
4080
|
])], 8, Io),
|
|
4073
|
-
(u(!0), g(_, null,
|
|
4081
|
+
(u(!0), g(_, null, re(o(a).slice(1, o(a).length), (l, s) => (u(), g("div", {
|
|
4074
4082
|
key: s,
|
|
4075
4083
|
class: "steps-container"
|
|
4076
4084
|
}, [
|
|
@@ -4086,7 +4094,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
4086
4094
|
]))), 128))
|
|
4087
4095
|
]),
|
|
4088
4096
|
y("div", Co, [
|
|
4089
|
-
(u(!0), g(_, null,
|
|
4097
|
+
(u(!0), g(_, null, re(o(a), (l, s) => (u(), g("div", {
|
|
4090
4098
|
key: s,
|
|
4091
4099
|
class: "label-container"
|
|
4092
4100
|
}, [
|
|
@@ -4124,7 +4132,7 @@ const oo = ["id", "aria-label"], lo = {
|
|
|
4124
4132
|
},
|
|
4125
4133
|
emits: ["escapePressed"],
|
|
4126
4134
|
setup(e, { emit: t }) {
|
|
4127
|
-
|
|
4135
|
+
te((s) => ({
|
|
4128
4136
|
b9426bca: o(A),
|
|
4129
4137
|
v7249d1b4: o(l)
|
|
4130
4138
|
}));
|
|
@@ -4266,8 +4274,8 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4266
4274
|
var d = be.call(A, He);
|
|
4267
4275
|
d && n.filter(A) && (a || !t.includes(A)) && r.push(A);
|
|
4268
4276
|
var f = A.shadowRoot || // check for an undisclosed shadow
|
|
4269
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(A),
|
|
4270
|
-
if (f &&
|
|
4277
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(A), h = !qe(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(A));
|
|
4278
|
+
if (f && h) {
|
|
4271
4279
|
var I = e(f === !0 ? A.children : f.children, !0, n);
|
|
4272
4280
|
n.flatten ? r.push.apply(r, I) : r.push({
|
|
4273
4281
|
scopeParent: A,
|
|
@@ -4571,10 +4579,10 @@ var Ot = {
|
|
|
4571
4579
|
delayInitialFocusTimer: void 0,
|
|
4572
4580
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
4573
4581
|
recentNavEvent: void 0
|
|
4574
|
-
}, l, s = function(v,
|
|
4575
|
-
return v && v[
|
|
4576
|
-
}, c = function(v,
|
|
4577
|
-
var N = typeof (
|
|
4582
|
+
}, l, s = function(v, b, N) {
|
|
4583
|
+
return v && v[b] !== void 0 ? v[b] : i[N || b];
|
|
4584
|
+
}, c = function(v, b) {
|
|
4585
|
+
var N = typeof (b == null ? void 0 : b.composedPath) == "function" ? b.composedPath() : void 0;
|
|
4578
4586
|
return A.containerGroups.findIndex(function(k) {
|
|
4579
4587
|
var U = k.container, q = k.tabbableNodes;
|
|
4580
4588
|
return U.contains(v) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -4586,7 +4594,7 @@ var Ot = {
|
|
|
4586
4594
|
});
|
|
4587
4595
|
});
|
|
4588
4596
|
}, d = function(v) {
|
|
4589
|
-
var
|
|
4597
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = b.hasFallback, k = N === void 0 ? !1 : N, U = b.params, q = U === void 0 ? [] : U, L = i[v];
|
|
4590
4598
|
if (typeof L == "function" && (L = L.apply(void 0, el(q))), L === !0 && (L = void 0), !L) {
|
|
4591
4599
|
if (L === void 0 || L === !1)
|
|
4592
4600
|
return L;
|
|
@@ -4613,25 +4621,25 @@ var Ot = {
|
|
|
4613
4621
|
if (c(n.activeElement) >= 0)
|
|
4614
4622
|
v = n.activeElement;
|
|
4615
4623
|
else {
|
|
4616
|
-
var
|
|
4624
|
+
var b = A.tabbableGroups[0], N = b && b.firstTabbableNode;
|
|
4617
4625
|
v = N || d("fallbackFocus");
|
|
4618
4626
|
}
|
|
4619
4627
|
else v === null && (v = d("fallbackFocus"));
|
|
4620
4628
|
if (!v)
|
|
4621
4629
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
4622
4630
|
return v;
|
|
4623
|
-
},
|
|
4631
|
+
}, h = function() {
|
|
4624
4632
|
if (A.containerGroups = A.containers.map(function(v) {
|
|
4625
|
-
var
|
|
4633
|
+
var b = Ro(v, i.tabbableOptions), N = Fo(v, i.tabbableOptions), k = b.length > 0 ? b[0] : void 0, U = b.length > 0 ? b[b.length - 1] : void 0, q = N.find(function(G) {
|
|
4626
4634
|
return Ee(G);
|
|
4627
4635
|
}), L = N.slice().reverse().find(function(G) {
|
|
4628
4636
|
return Ee(G);
|
|
4629
|
-
}), K = !!
|
|
4637
|
+
}), K = !!b.find(function(G) {
|
|
4630
4638
|
return he(G) > 0;
|
|
4631
4639
|
});
|
|
4632
4640
|
return {
|
|
4633
4641
|
container: v,
|
|
4634
|
-
tabbableNodes:
|
|
4642
|
+
tabbableNodes: b,
|
|
4635
4643
|
focusableNodes: N,
|
|
4636
4644
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
4637
4645
|
posTabIndexesFound: K,
|
|
@@ -4659,12 +4667,12 @@ var Ot = {
|
|
|
4659
4667
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4660
4668
|
*/
|
|
4661
4669
|
nextTabbableNode: function(ge) {
|
|
4662
|
-
var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de =
|
|
4670
|
+
var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de = b.indexOf(ge);
|
|
4663
4671
|
return de < 0 ? Ne ? N.slice(N.indexOf(ge) + 1).find(function(Te) {
|
|
4664
4672
|
return Ee(Te);
|
|
4665
4673
|
}) : N.slice(0, N.indexOf(ge)).reverse().find(function(Te) {
|
|
4666
4674
|
return Ee(Te);
|
|
4667
|
-
}) :
|
|
4675
|
+
}) : b[de + (Ne ? 1 : -1)];
|
|
4668
4676
|
}
|
|
4669
4677
|
};
|
|
4670
4678
|
}), A.tabbableGroups = A.containerGroups.filter(function(v) {
|
|
@@ -4676,9 +4684,9 @@ var Ot = {
|
|
|
4676
4684
|
}) && A.containerGroups.length > 1)
|
|
4677
4685
|
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.");
|
|
4678
4686
|
}, I = function(v) {
|
|
4679
|
-
var
|
|
4680
|
-
if (
|
|
4681
|
-
return
|
|
4687
|
+
var b = v.activeElement;
|
|
4688
|
+
if (b)
|
|
4689
|
+
return b.shadowRoot && b.shadowRoot.activeElement !== null ? I(b.shadowRoot) : b;
|
|
4682
4690
|
}, m = function(v) {
|
|
4683
4691
|
if (v !== !1 && v !== I(document)) {
|
|
4684
4692
|
if (!v || !v.focus) {
|
|
@@ -4690,43 +4698,43 @@ var Ot = {
|
|
|
4690
4698
|
}), A.mostRecentlyFocusedNode = v, rl(v) && v.select();
|
|
4691
4699
|
}
|
|
4692
4700
|
}, C = function(v) {
|
|
4693
|
-
var
|
|
4701
|
+
var b = d("setReturnFocus", {
|
|
4694
4702
|
params: [v]
|
|
4695
4703
|
});
|
|
4696
|
-
return
|
|
4704
|
+
return b || (b === !1 ? !1 : v);
|
|
4697
4705
|
}, M = function(v) {
|
|
4698
|
-
var
|
|
4699
|
-
|
|
4706
|
+
var b = v.target, N = v.event, k = v.isBackward, U = k === void 0 ? !1 : k;
|
|
4707
|
+
b = b || Be(N), h();
|
|
4700
4708
|
var q = null;
|
|
4701
4709
|
if (A.tabbableGroups.length > 0) {
|
|
4702
|
-
var L = c(
|
|
4710
|
+
var L = c(b, N), K = L >= 0 ? A.containerGroups[L] : void 0;
|
|
4703
4711
|
if (L < 0)
|
|
4704
4712
|
U ? q = A.tabbableGroups[A.tabbableGroups.length - 1].lastTabbableNode : q = A.tabbableGroups[0].firstTabbableNode;
|
|
4705
4713
|
else if (U) {
|
|
4706
4714
|
var G = A.tabbableGroups.findIndex(function(Ke) {
|
|
4707
4715
|
var Ge = Ke.firstTabbableNode;
|
|
4708
|
-
return
|
|
4716
|
+
return b === Ge;
|
|
4709
4717
|
});
|
|
4710
|
-
if (G < 0 && (K.container ===
|
|
4718
|
+
if (G < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b, !1)) && (G = L), G >= 0) {
|
|
4711
4719
|
var ge = G === 0 ? A.tabbableGroups.length - 1 : G - 1, Ne = A.tabbableGroups[ge];
|
|
4712
|
-
q = he(
|
|
4713
|
-
} else Se(N) || (q = K.nextTabbableNode(
|
|
4720
|
+
q = he(b) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
|
|
4721
|
+
} else Se(N) || (q = K.nextTabbableNode(b, !1));
|
|
4714
4722
|
} else {
|
|
4715
4723
|
var de = A.tabbableGroups.findIndex(function(Ke) {
|
|
4716
4724
|
var Ge = Ke.lastTabbableNode;
|
|
4717
|
-
return
|
|
4725
|
+
return b === Ge;
|
|
4718
4726
|
});
|
|
4719
|
-
if (de < 0 && (K.container ===
|
|
4727
|
+
if (de < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b)) && (de = L), de >= 0) {
|
|
4720
4728
|
var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1, ut = A.tabbableGroups[Te];
|
|
4721
|
-
q = he(
|
|
4722
|
-
} else Se(N) || (q = K.nextTabbableNode(
|
|
4729
|
+
q = he(b) >= 0 ? ut.firstTabbableNode : ut.firstDomTabbableNode;
|
|
4730
|
+
} else Se(N) || (q = K.nextTabbableNode(b));
|
|
4723
4731
|
}
|
|
4724
4732
|
} else
|
|
4725
4733
|
q = d("fallbackFocus");
|
|
4726
4734
|
return q;
|
|
4727
4735
|
}, T = function(v) {
|
|
4728
|
-
var
|
|
4729
|
-
if (!(c(
|
|
4736
|
+
var b = Be(v);
|
|
4737
|
+
if (!(c(b, v) >= 0)) {
|
|
4730
4738
|
if (we(i.clickOutsideDeactivates, v)) {
|
|
4731
4739
|
l.deactivate({
|
|
4732
4740
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -4742,9 +4750,9 @@ var Ot = {
|
|
|
4742
4750
|
we(i.allowOutsideClick, v) || v.preventDefault();
|
|
4743
4751
|
}
|
|
4744
4752
|
}, Q = function(v) {
|
|
4745
|
-
var
|
|
4746
|
-
if (N ||
|
|
4747
|
-
N && (A.mostRecentlyFocusedNode =
|
|
4753
|
+
var b = Be(v), N = c(b, v) >= 0;
|
|
4754
|
+
if (N || b instanceof Document)
|
|
4755
|
+
N && (A.mostRecentlyFocusedNode = b);
|
|
4748
4756
|
else {
|
|
4749
4757
|
v.stopImmediatePropagation();
|
|
4750
4758
|
var k, U = !0;
|
|
@@ -4774,11 +4782,11 @@ var Ot = {
|
|
|
4774
4782
|
}
|
|
4775
4783
|
A.recentNavEvent = void 0;
|
|
4776
4784
|
}, E = function(v) {
|
|
4777
|
-
var
|
|
4785
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
4778
4786
|
A.recentNavEvent = v;
|
|
4779
4787
|
var N = M({
|
|
4780
4788
|
event: v,
|
|
4781
|
-
isBackward:
|
|
4789
|
+
isBackward: b
|
|
4782
4790
|
});
|
|
4783
4791
|
N && (Se(v) && v.preventDefault(), m(N));
|
|
4784
4792
|
}, D = function(v) {
|
|
@@ -4786,8 +4794,8 @@ var Ot = {
|
|
|
4786
4794
|
}, j = function(v) {
|
|
4787
4795
|
Al(v) && we(i.escapeDeactivates, v) !== !1 && (v.preventDefault(), l.deactivate());
|
|
4788
4796
|
}, W = function(v) {
|
|
4789
|
-
var
|
|
4790
|
-
c(
|
|
4797
|
+
var b = Be(v);
|
|
4798
|
+
c(b, v) >= 0 || we(i.clickOutsideDeactivates, v) || we(i.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
|
|
4791
4799
|
}, z = function() {
|
|
4792
4800
|
if (A.active)
|
|
4793
4801
|
return Ot.activateTrap(r, l), A.delayInitialFocusTimer = i.delayInitialFocus ? wt(function() {
|
|
@@ -4809,13 +4817,13 @@ var Ot = {
|
|
|
4809
4817
|
if (A.active)
|
|
4810
4818
|
return n.removeEventListener("focusin", Q, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", W, !0), n.removeEventListener("keydown", D, !0), n.removeEventListener("keydown", j), l;
|
|
4811
4819
|
}, w = function(v) {
|
|
4812
|
-
var
|
|
4820
|
+
var b = v.some(function(N) {
|
|
4813
4821
|
var k = Array.from(N.removedNodes);
|
|
4814
4822
|
return k.some(function(U) {
|
|
4815
4823
|
return U === A.mostRecentlyFocusedNode;
|
|
4816
4824
|
});
|
|
4817
4825
|
});
|
|
4818
|
-
|
|
4826
|
+
b && m(f());
|
|
4819
4827
|
}, oe = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(w) : void 0, $ = function() {
|
|
4820
4828
|
oe && (oe.disconnect(), A.active && !A.paused && A.containers.map(function(v) {
|
|
4821
4829
|
oe.observe(v, {
|
|
@@ -4834,23 +4842,23 @@ var Ot = {
|
|
|
4834
4842
|
activate: function(v) {
|
|
4835
4843
|
if (A.active)
|
|
4836
4844
|
return this;
|
|
4837
|
-
var
|
|
4838
|
-
k ||
|
|
4845
|
+
var b = s(v, "onActivate"), N = s(v, "onPostActivate"), k = s(v, "checkCanFocusTrap");
|
|
4846
|
+
k || h(), A.active = !0, A.paused = !1, A.nodeFocusedBeforeActivation = I(n), b == null || b();
|
|
4839
4847
|
var U = function() {
|
|
4840
|
-
k &&
|
|
4848
|
+
k && h(), z(), $(), N == null || N();
|
|
4841
4849
|
};
|
|
4842
4850
|
return k ? (k(A.containers.concat()).then(U, U), this) : (U(), this);
|
|
4843
4851
|
},
|
|
4844
4852
|
deactivate: function(v) {
|
|
4845
4853
|
if (!A.active)
|
|
4846
4854
|
return this;
|
|
4847
|
-
var
|
|
4855
|
+
var b = Dt({
|
|
4848
4856
|
onDeactivate: i.onDeactivate,
|
|
4849
4857
|
onPostDeactivate: i.onPostDeactivate,
|
|
4850
4858
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
4851
4859
|
}, v);
|
|
4852
4860
|
clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(), Ot.deactivateTrap(r, l);
|
|
4853
|
-
var N = s(
|
|
4861
|
+
var N = s(b, "onDeactivate"), k = s(b, "onPostDeactivate"), U = s(b, "checkCanReturnFocus"), q = s(b, "returnFocus", "returnFocusOnDeactivate");
|
|
4854
4862
|
N == null || N();
|
|
4855
4863
|
var L = function() {
|
|
4856
4864
|
wt(function() {
|
|
@@ -4866,10 +4874,10 @@ var Ot = {
|
|
|
4866
4874
|
return A.active ? (A.manuallyPaused = !1, r[r.length - 1] !== this ? this : this._setPausedState(!1, v)) : this;
|
|
4867
4875
|
},
|
|
4868
4876
|
updateContainerElements: function(v) {
|
|
4869
|
-
var
|
|
4870
|
-
return A.containers =
|
|
4877
|
+
var b = [].concat(v).filter(Boolean);
|
|
4878
|
+
return A.containers = b.map(function(N) {
|
|
4871
4879
|
return typeof N == "string" ? n.querySelector(N) : N;
|
|
4872
|
-
}), A.active &&
|
|
4880
|
+
}), A.active && h(), $(), this;
|
|
4873
4881
|
}
|
|
4874
4882
|
}, Object.defineProperties(l, {
|
|
4875
4883
|
_isManuallyPaused: {
|
|
@@ -4878,15 +4886,15 @@ var Ot = {
|
|
|
4878
4886
|
}
|
|
4879
4887
|
},
|
|
4880
4888
|
_setPausedState: {
|
|
4881
|
-
value: function(v,
|
|
4889
|
+
value: function(v, b) {
|
|
4882
4890
|
if (A.paused === v)
|
|
4883
4891
|
return this;
|
|
4884
4892
|
if (A.paused = v, v) {
|
|
4885
|
-
var N = s(
|
|
4893
|
+
var N = s(b, "onPause"), k = s(b, "onPostPause");
|
|
4886
4894
|
N == null || N(), Ae(), $(), k == null || k();
|
|
4887
4895
|
} else {
|
|
4888
|
-
var U = s(
|
|
4889
|
-
U == null || U(),
|
|
4896
|
+
var U = s(b, "onUnpause"), q = s(b, "onPostUnpause");
|
|
4897
|
+
U == null || U(), h(), z(), $(), q == null || q();
|
|
4890
4898
|
}
|
|
4891
4899
|
return this;
|
|
4892
4900
|
}
|
|
@@ -4920,7 +4928,7 @@ const ul = { class: "av-popover-wrapper" }, dl = /* @__PURE__ */ S({
|
|
|
4920
4928
|
padding: { default: "var(--spacing-md)" }
|
|
4921
4929
|
},
|
|
4922
4930
|
setup(e, { expose: t }) {
|
|
4923
|
-
|
|
4931
|
+
te((f) => ({
|
|
4924
4932
|
v75959032: f.width,
|
|
4925
4933
|
v330e9906: f.padding
|
|
4926
4934
|
}));
|
|
@@ -4934,14 +4942,14 @@ const ul = { class: "av-popover-wrapper" }, dl = /* @__PURE__ */ S({
|
|
|
4934
4942
|
a.value = f;
|
|
4935
4943
|
return;
|
|
4936
4944
|
}
|
|
4937
|
-
const
|
|
4938
|
-
|
|
4945
|
+
const h = f.$el;
|
|
4946
|
+
h instanceof HTMLElement ? a.value = h : a.value = null;
|
|
4939
4947
|
}
|
|
4940
4948
|
return t({ setTriggerRef: d, triggerRef: a }), ce(r, async (f) => {
|
|
4941
4949
|
f ? (await Re(), s()) : c();
|
|
4942
4950
|
}), wa(() => {
|
|
4943
4951
|
c();
|
|
4944
|
-
}), (f,
|
|
4952
|
+
}), (f, h) => (u(), g("div", ul, [
|
|
4945
4953
|
y("div", {
|
|
4946
4954
|
ref: d,
|
|
4947
4955
|
class: "av-popover-trigger-wrapper"
|
|
@@ -4956,7 +4964,7 @@ const ul = { class: "av-popover-wrapper" }, dl = /* @__PURE__ */ S({
|
|
|
4956
4964
|
tabindex: "-1",
|
|
4957
4965
|
class: "av-popover",
|
|
4958
4966
|
style: Ve(`top: ${o(i).top}rem; left: ${o(i).left}rem;`),
|
|
4959
|
-
onKeydown:
|
|
4967
|
+
onKeydown: h[0] || (h[0] = ot(se(
|
|
4960
4968
|
//@ts-ignore
|
|
4961
4969
|
(...I) => o(l) && o(l)(...I),
|
|
4962
4970
|
["prevent"]
|
|
@@ -5038,7 +5046,7 @@ export {
|
|
|
5038
5046
|
xl as AvTagPickerStub,
|
|
5039
5047
|
Ml as AvToaster,
|
|
5040
5048
|
Zl as AvToggle,
|
|
5041
|
-
|
|
5049
|
+
ne as AvVIcon,
|
|
5042
5050
|
hl as AvVIconStub,
|
|
5043
5051
|
Me as DropdownState,
|
|
5044
5052
|
as as DsfrBadgeStub,
|