@reinosoft-ui/core 0.1.18 → 0.1.19
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/reinosoft-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as C, computed as $, watch as Y, onMounted as te, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as
|
|
1
|
+
import { defineComponent as _, ref as C, computed as $, watch as Y, onMounted as te, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as re, renderSlot as U, createCommentVNode as N, withDirectives as Ve, createElementVNode as g, vShow as ze, mergeProps as Ce, onUnmounted as ge, Fragment as ae, withKeys as fe, unref as R, toDisplayString as K, renderList as ce, createBlock as W, Transition as $e, withCtx as G, withModifiers as ne, nextTick as Le, mergeModels as oe, useModel as pe, useId as ie, provide as be, createVNode as P, createTextVNode as me, onBeforeUnmount as He, Teleport as Be, resolveDynamicComponent as Ie, useAttrs as Oe, inject as le, h as F, useSlots as qe, resolveComponent as C1, vModelRadio as p1, vModelDynamic as m1, reactive as o1, TransitionGroup as h1, createApp as y1, shallowRef as b1 } from "vue";
|
|
2
2
|
const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], M1 = /* @__PURE__ */ _({
|
|
3
3
|
__name: "Image",
|
|
4
4
|
props: {
|
|
@@ -15,13 +15,13 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["loaded", "error"],
|
|
17
17
|
setup(e, { emit: o }) {
|
|
18
|
-
const t = e, a = o,
|
|
18
|
+
const t = e, a = o, s = C(t.src), l = C(), i = C("loading"), n = $(() => t.ratio ? {
|
|
19
19
|
aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
|
|
20
20
|
} : void 0), r = () => {
|
|
21
21
|
i.value = "loaded", a("loaded");
|
|
22
22
|
}, d = () => {
|
|
23
|
-
if (t.fallbackSrc &&
|
|
24
|
-
|
|
23
|
+
if (t.fallbackSrc && s.value !== t.fallbackSrc) {
|
|
24
|
+
s.value = t.fallbackSrc, i.value = "loading";
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
i.value = "error", a("error");
|
|
@@ -29,10 +29,10 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
29
29
|
return Y(
|
|
30
30
|
() => t.src,
|
|
31
31
|
(c) => {
|
|
32
|
-
|
|
32
|
+
s.value = c, i.value = "loading";
|
|
33
33
|
}
|
|
34
|
-
), te(() =>
|
|
35
|
-
class:
|
|
34
|
+
), te(() => l.value?.complete && l.value.naturalWidth > 0 && (i.value = "loaded")), (c, h) => (v(), f("div", {
|
|
35
|
+
class: re(["ui-image", {
|
|
36
36
|
"is-loading": i.value === "loading",
|
|
37
37
|
"is-error": i.value === "error",
|
|
38
38
|
"is-loaded": i.value === "loaded",
|
|
@@ -52,12 +52,12 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
52
52
|
role: "img",
|
|
53
53
|
"aria-label": e.decorative ? void 0 : e.alt
|
|
54
54
|
}, "Image not available", 8, k1)
|
|
55
|
-
], !0) :
|
|
55
|
+
], !0) : N("", !0),
|
|
56
56
|
Ve(g("img", {
|
|
57
57
|
ref_key: "imgRef",
|
|
58
|
-
ref:
|
|
58
|
+
ref: l,
|
|
59
59
|
class: "ui-image__img",
|
|
60
|
-
src:
|
|
60
|
+
src: s.value,
|
|
61
61
|
srcset: e.srcset,
|
|
62
62
|
sizes: e.sizes,
|
|
63
63
|
alt: e.decorative ? "" : e.alt,
|
|
@@ -73,8 +73,8 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
73
73
|
}
|
|
74
74
|
}), j = (e, o) => {
|
|
75
75
|
const t = e.__vccOpts || e;
|
|
76
|
-
for (const [a,
|
|
77
|
-
t[a] =
|
|
76
|
+
for (const [a, s] of o)
|
|
77
|
+
t[a] = s;
|
|
78
78
|
return t;
|
|
79
79
|
}, xe = /* @__PURE__ */ j(M1, [["__scopeId", "data-v-4c5a40da"]]);
|
|
80
80
|
xe.install = (e) => {
|
|
@@ -86,7 +86,7 @@ const L1 = /* @__PURE__ */ _({
|
|
|
86
86
|
const t = C();
|
|
87
87
|
return o({
|
|
88
88
|
el: t
|
|
89
|
-
}), (a,
|
|
89
|
+
}), (a, s) => (v(), f("button", Ce({
|
|
90
90
|
ref_key: "rootRef",
|
|
91
91
|
ref: t,
|
|
92
92
|
type: "button",
|
|
@@ -127,16 +127,16 @@ const n1 = (e) => {
|
|
|
127
127
|
e.preventDefault();
|
|
128
128
|
const t = window.getSelection();
|
|
129
129
|
if (!t || t.rangeCount === 0) return;
|
|
130
|
-
const a = t.getRangeAt(0),
|
|
131
|
-
if (!
|
|
130
|
+
const a = t.getRangeAt(0), s = n1(a.startContainer);
|
|
131
|
+
if (!s) return;
|
|
132
132
|
const i = I1("p");
|
|
133
|
-
document.createRange().selectNodeContents(
|
|
133
|
+
document.createRange().selectNodeContents(s);
|
|
134
134
|
const r = a.cloneRange(), d = document.createRange();
|
|
135
|
-
d.selectNodeContents(
|
|
135
|
+
d.selectNodeContents(s), d.setEnd(r.startContainer, r.startOffset);
|
|
136
136
|
const c = d.cloneContents(), h = document.createRange();
|
|
137
|
-
h.selectNodeContents(
|
|
137
|
+
h.selectNodeContents(s), h.setStart(r.startContainer, r.startOffset);
|
|
138
138
|
const L = h.cloneContents();
|
|
139
|
-
|
|
139
|
+
s.innerHTML = "", s.appendChild(c), s.innerHTML === "" && (s.innerHTML = "<br>"), i.innerHTML = "", i.appendChild(L), i.innerHTML === "" && (i.innerHTML = "<br>"), s.after(i);
|
|
140
140
|
const M = document.createRange();
|
|
141
141
|
M.setStart(i, 0), M.collapse(!0), t.removeAllRanges(), t.addRange(M), o?.normalize();
|
|
142
142
|
}, B1 = () => {
|
|
@@ -149,19 +149,19 @@ const n1 = (e) => {
|
|
|
149
149
|
if (!o || o.rangeCount === 0) return;
|
|
150
150
|
const t = o.getRangeAt(0), a = n1(t.startContainer);
|
|
151
151
|
if (!a || !(a.textContent === "" || a.innerHTML === "<br>")) return;
|
|
152
|
-
const
|
|
153
|
-
if (e.preventDefault(), !
|
|
152
|
+
const l = a.previousElementSibling, i = a.nextElementSibling;
|
|
153
|
+
if (e.preventDefault(), !l && !i) {
|
|
154
154
|
a.innerHTML = "<br>", Xe(a);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
l && l.dataset.block !== void 0 ? (a.remove(), _1(l)) : i && i.dataset.block !== void 0 && (a.remove(), Xe(i));
|
|
158
158
|
}, _1 = (e) => {
|
|
159
159
|
const o = document.createRange(), t = window.getSelection();
|
|
160
160
|
o.selectNodeContents(e), o.collapse(!1), t?.removeAllRanges(), t?.addRange(o);
|
|
161
161
|
}, R1 = (e, o) => {
|
|
162
162
|
const t = C(null), a = o?.buttons ?? [];
|
|
163
|
-
let
|
|
164
|
-
const
|
|
163
|
+
let s = C(null);
|
|
164
|
+
const l = () => {
|
|
165
165
|
const p = e;
|
|
166
166
|
if (!p) return;
|
|
167
167
|
const x = window.getSelection();
|
|
@@ -190,7 +190,7 @@ const n1 = (e) => {
|
|
|
190
190
|
const m = document.createRange();
|
|
191
191
|
m.setStart(q[0], 0);
|
|
192
192
|
const b = q[q.length - 1];
|
|
193
|
-
m.setEnd(b, b.textContent.length), x.removeAllRanges(), x.addRange(m),
|
|
193
|
+
m.setEnd(b, b.textContent.length), x.removeAllRanges(), x.addRange(m), l();
|
|
194
194
|
}
|
|
195
195
|
return M(), u(p);
|
|
196
196
|
}, n = (p, x) => {
|
|
@@ -216,7 +216,7 @@ const n1 = (e) => {
|
|
|
216
216
|
for (q === "blockquote" && m.setAttribute("class", "rs-blockquote"), m.dataset.block = "true"; O.firstChild; ) m.appendChild(O.firstChild);
|
|
217
217
|
O.replaceWith(m);
|
|
218
218
|
const b = document.createRange();
|
|
219
|
-
return b.selectNodeContents(m), x.removeAllRanges(), x.addRange(b),
|
|
219
|
+
return b.selectNodeContents(m), x.removeAllRanges(), x.addRange(b), l(), M(), y(p);
|
|
220
220
|
}, d = (p) => {
|
|
221
221
|
const x = e;
|
|
222
222
|
if (!x) return null;
|
|
@@ -286,7 +286,7 @@ const n1 = (e) => {
|
|
|
286
286
|
if (!p || !t.value || !p || !p.contains(t.value.commonAncestorContainer)) return;
|
|
287
287
|
const x = window.getSelection();
|
|
288
288
|
x && (x.removeAllRanges(), x.addRange(t.value));
|
|
289
|
-
}, k = () =>
|
|
289
|
+
}, k = () => s.value?.focusFirstButton?.(), D = (p) => {
|
|
290
290
|
const x = window.getSelection();
|
|
291
291
|
if (!x || x.rangeCount === 0) return;
|
|
292
292
|
const V = x.getRangeAt(0), O = d(V.startContainer);
|
|
@@ -304,11 +304,11 @@ const n1 = (e) => {
|
|
|
304
304
|
);
|
|
305
305
|
let J = 0, de = null, H = 0, z = null, Q = 0;
|
|
306
306
|
for (; A.nextNode(); ) {
|
|
307
|
-
const X = A.currentNode,
|
|
308
|
-
!de && J +
|
|
307
|
+
const X = A.currentNode, se = X.textContent?.length ?? 0;
|
|
308
|
+
!de && J + se >= q && (de = X, H = q - J), !z && J + se >= b && (z = X, Q = b - J), J += se;
|
|
309
309
|
}
|
|
310
310
|
const S = document.createRange();
|
|
311
|
-
de ? S.setStart(de, H) : S.setStart(w, 0), !T && z ? S.setEnd(z, Q) : S.collapse(!0), x.removeAllRanges(), x.addRange(S),
|
|
311
|
+
de ? S.setStart(de, H) : S.setStart(w, 0), !T && z ? S.setEnd(z, Q) : S.collapse(!0), x.removeAllRanges(), x.addRange(S), l(), M();
|
|
312
312
|
}, E = (p) => {
|
|
313
313
|
const x = e.parentElement?.querySelector("#editor-status");
|
|
314
314
|
x && (x.textContent = p, setTimeout(() => x.textContent = "", 2e3));
|
|
@@ -318,12 +318,12 @@ const n1 = (e) => {
|
|
|
318
318
|
toggleBlock: r,
|
|
319
319
|
normalize: M,
|
|
320
320
|
rootElement: e,
|
|
321
|
-
saveSelection:
|
|
321
|
+
saveSelection: l,
|
|
322
322
|
restoreSelection: B,
|
|
323
323
|
isInlineActive: u,
|
|
324
324
|
isBlockActive: y,
|
|
325
325
|
focus: I,
|
|
326
|
-
toolbarRef:
|
|
326
|
+
toolbarRef: s,
|
|
327
327
|
focusFirstToolbarButton: k,
|
|
328
328
|
replaceCurrentBlock: D,
|
|
329
329
|
buttons: a,
|
|
@@ -342,7 +342,7 @@ const n1 = (e) => {
|
|
|
342
342
|
ariaLabel: {}
|
|
343
343
|
},
|
|
344
344
|
setup(e, { expose: o }) {
|
|
345
|
-
const t = e, a = C(""),
|
|
345
|
+
const t = e, a = C(""), s = C(null), l = (n) => {
|
|
346
346
|
if (n.ctrlKey || n.metaKey)
|
|
347
347
|
switch (n.altKey && n.key === "F10" && (n.preventDefault(), t.editor?.restoreSelection(), t.editor?.focusFirstToolbarButton()), n.key.toLowerCase()) {
|
|
348
348
|
case "b":
|
|
@@ -358,17 +358,17 @@ const n1 = (e) => {
|
|
|
358
358
|
}, i = () => {
|
|
359
359
|
const n = window.getSelection();
|
|
360
360
|
if (!n || n.rangeCount === 0) return;
|
|
361
|
-
const r =
|
|
361
|
+
const r = s.value;
|
|
362
362
|
if (!r) return;
|
|
363
363
|
const d = n.getRangeAt(0);
|
|
364
364
|
r.contains(d.commonAncestorContainer) && t.editor?.saveSelection();
|
|
365
365
|
};
|
|
366
366
|
return te(() => document.addEventListener("selectionchange", i)), ge(() => document.removeEventListener("selectionchange", i)), o({
|
|
367
|
-
getRoot: () =>
|
|
367
|
+
getRoot: () => s
|
|
368
368
|
}), (n, r) => (v(), f(ae, null, [
|
|
369
369
|
g("div", {
|
|
370
370
|
ref_key: "rootRef",
|
|
371
|
-
ref:
|
|
371
|
+
ref: s,
|
|
372
372
|
class: "editor",
|
|
373
373
|
contenteditable: "",
|
|
374
374
|
id: e.editorId,
|
|
@@ -377,7 +377,7 @@ const n1 = (e) => {
|
|
|
377
377
|
"aria-label": e.ariaLabel || "Text editor",
|
|
378
378
|
"aria-describedby": "editor-help editor-status",
|
|
379
379
|
onKeydown: [
|
|
380
|
-
|
|
380
|
+
l,
|
|
381
381
|
r[0] || (r[0] = fe((d) => R(V1)(d, e.editor), ["enter"])),
|
|
382
382
|
r[1] || (r[1] = fe(
|
|
383
383
|
//@ts-ignore
|
|
@@ -392,7 +392,7 @@ const n1 = (e) => {
|
|
|
392
392
|
}, [...r[4] || (r[4] = [
|
|
393
393
|
g("p", { "data-block": "" }, "Write here...", -1)
|
|
394
394
|
])], 40, Z1),
|
|
395
|
-
g("div", A1,
|
|
395
|
+
g("div", A1, K(a.value), 1),
|
|
396
396
|
r[5] || (r[5] = g("p", {
|
|
397
397
|
id: "editor-help",
|
|
398
398
|
class: "sr-only"
|
|
@@ -1828,7 +1828,7 @@ const n1 = (e) => {
|
|
|
1828
1828
|
setup(e) {
|
|
1829
1829
|
return (o, t) => (v(), f("svg", {
|
|
1830
1830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1831
|
-
class:
|
|
1831
|
+
class: re(["icon", { spin: e.spin }]),
|
|
1832
1832
|
viewBox: R(Se)[e.name].viewBox,
|
|
1833
1833
|
transform: R(Se)[e.name].transform || void 0,
|
|
1834
1834
|
width: e.size || 24,
|
|
@@ -1836,31 +1836,31 @@ const n1 = (e) => {
|
|
|
1836
1836
|
fill: "none",
|
|
1837
1837
|
"aria-hidden": "true"
|
|
1838
1838
|
}, [
|
|
1839
|
-
(v(!0), f(ae, null, ce(R(Se)[e.name].paths, (a,
|
|
1839
|
+
(v(!0), f(ae, null, ce(R(Se)[e.name].paths, (a, s) => (v(), f(ae, { key: s }, [
|
|
1840
1840
|
a.type === "path" ? (v(), f("path", Ce({
|
|
1841
1841
|
key: 0,
|
|
1842
1842
|
ref_for: !0
|
|
1843
|
-
}, a), null, 16)) :
|
|
1843
|
+
}, a), null, 16)) : N("", !0),
|
|
1844
1844
|
a.type === "circle" ? (v(), f("circle", Ce({
|
|
1845
1845
|
key: 1,
|
|
1846
1846
|
ref_for: !0
|
|
1847
|
-
}, a), null, 16)) :
|
|
1847
|
+
}, a), null, 16)) : N("", !0),
|
|
1848
1848
|
a.type === "line" ? (v(), f("line", Ce({
|
|
1849
1849
|
key: 2,
|
|
1850
1850
|
ref_for: !0
|
|
1851
|
-
}, a), null, 16)) :
|
|
1851
|
+
}, a), null, 16)) : N("", !0),
|
|
1852
1852
|
a.type === "polyline" ? (v(), f("polyline", Ce({
|
|
1853
1853
|
key: 3,
|
|
1854
1854
|
ref_for: !0
|
|
1855
|
-
}, a), null, 16)) :
|
|
1855
|
+
}, a), null, 16)) : N("", !0),
|
|
1856
1856
|
a.type === "rect" ? (v(), f("rect", Ce({
|
|
1857
1857
|
key: 4,
|
|
1858
1858
|
ref_for: !0
|
|
1859
|
-
}, a), null, 16)) :
|
|
1859
|
+
}, a), null, 16)) : N("", !0),
|
|
1860
1860
|
a.type === "polygon" ? (v(), f("polygon", Ce({
|
|
1861
1861
|
key: 5,
|
|
1862
1862
|
ref_for: !0
|
|
1863
|
-
}, a), null, 16)) :
|
|
1863
|
+
}, a), null, 16)) : N("", !0)
|
|
1864
1864
|
], 64))), 128))
|
|
1865
1865
|
], 10, a2));
|
|
1866
1866
|
}
|
|
@@ -1872,13 +1872,13 @@ const n1 = (e) => {
|
|
|
1872
1872
|
buttons: {}
|
|
1873
1873
|
},
|
|
1874
1874
|
setup(e, { expose: o }) {
|
|
1875
|
-
const t = e, a = C(0),
|
|
1875
|
+
const t = e, a = C(0), s = C(0), l = C(!1), i = C([]);
|
|
1876
1876
|
Y(
|
|
1877
|
-
|
|
1877
|
+
l,
|
|
1878
1878
|
(u) => !u && (i.value = [])
|
|
1879
1879
|
);
|
|
1880
1880
|
const n = $(() => ({
|
|
1881
|
-
top: `${
|
|
1881
|
+
top: `${s.value}px`,
|
|
1882
1882
|
left: `${a.value}px`
|
|
1883
1883
|
})), r = (u, y) => u && (i.value[y] = u), d = $(() => [
|
|
1884
1884
|
{
|
|
@@ -1953,18 +1953,18 @@ const n1 = (e) => {
|
|
|
1953
1953
|
}, M = () => {
|
|
1954
1954
|
const u = window.getSelection();
|
|
1955
1955
|
if (!u || u.rangeCount === 0) {
|
|
1956
|
-
|
|
1956
|
+
l.value = !1;
|
|
1957
1957
|
return;
|
|
1958
1958
|
}
|
|
1959
1959
|
const y = t.editor?.rootElement;
|
|
1960
1960
|
if (!y) return;
|
|
1961
1961
|
const I = u.getRangeAt(0);
|
|
1962
1962
|
if (!y.contains(I.commonAncestorContainer) || u.isCollapsed) {
|
|
1963
|
-
|
|
1963
|
+
l.value = !1;
|
|
1964
1964
|
return;
|
|
1965
1965
|
}
|
|
1966
1966
|
const B = I.getBoundingClientRect();
|
|
1967
|
-
a.value = B.left + B.width / 2,
|
|
1967
|
+
a.value = B.left + B.width / 2, s.value = B.top - 45, l.value = !0;
|
|
1968
1968
|
};
|
|
1969
1969
|
return te(() => {
|
|
1970
1970
|
document.addEventListener("selectionchange", M), window.addEventListener("scroll", M, !0), window.addEventListener("resize", M);
|
|
@@ -1974,7 +1974,7 @@ const n1 = (e) => {
|
|
|
1974
1974
|
focusFirstButton: h
|
|
1975
1975
|
}), (u, y) => (v(), W($e, { name: "tooltip-fade" }, {
|
|
1976
1976
|
default: G(() => [
|
|
1977
|
-
|
|
1977
|
+
l.value ? (v(), f("div", {
|
|
1978
1978
|
key: 0,
|
|
1979
1979
|
class: "toolbar",
|
|
1980
1980
|
role: "toolbar",
|
|
@@ -1990,7 +1990,7 @@ const n1 = (e) => {
|
|
|
1990
1990
|
type: "button",
|
|
1991
1991
|
ref_for: !0,
|
|
1992
1992
|
ref: (k) => r(k, B),
|
|
1993
|
-
class:
|
|
1993
|
+
class: re({ "is-active": I.isActive?.(t.editor) }),
|
|
1994
1994
|
"aria-pressed": I.isActive?.(t.editor),
|
|
1995
1995
|
onMousedown: ne((k) => I.action(t.editor), ["prevent"]),
|
|
1996
1996
|
"aria-label": I.ariaLabel
|
|
@@ -1999,9 +1999,9 @@ const n1 = (e) => {
|
|
|
1999
1999
|
key: 0,
|
|
2000
2000
|
name: I.label,
|
|
2001
2001
|
size: I.size ?? 14
|
|
2002
|
-
}, null, 8, ["name", "size"])) : (v(), f("span", l2,
|
|
2002
|
+
}, null, 8, ["name", "size"])) : (v(), f("span", l2, K(I.label), 1))
|
|
2003
2003
|
], 42, r2))), 128))
|
|
2004
|
-
], 44, n2)) :
|
|
2004
|
+
], 44, n2)) : N("", !0)
|
|
2005
2005
|
]),
|
|
2006
2006
|
_: 1
|
|
2007
2007
|
}));
|
|
@@ -2019,31 +2019,31 @@ const n1 = (e) => {
|
|
|
2019
2019
|
}),
|
|
2020
2020
|
emits: ["update:modelValue"],
|
|
2021
2021
|
setup(e) {
|
|
2022
|
-
const o = pe(e, "modelValue"), t = e, a = ie(),
|
|
2022
|
+
const o = pe(e, "modelValue"), t = e, a = ie(), s = C(), l = C(null), i = C(null);
|
|
2023
2023
|
return Y(
|
|
2024
2024
|
() => o.value,
|
|
2025
2025
|
(n) => {
|
|
2026
2026
|
const r = i.value?.getRoot()?.value;
|
|
2027
|
-
r && r.innerHTML !== n && (r.innerHTML = n,
|
|
2027
|
+
r && r.innerHTML !== n && (r.innerHTML = n, l.value?.normalize());
|
|
2028
2028
|
}
|
|
2029
2029
|
), te(() => {
|
|
2030
2030
|
const r = i.value?.getRoot()?.value;
|
|
2031
2031
|
if (!r) return;
|
|
2032
|
-
|
|
2032
|
+
l.value = R1(r, { buttons: t.buttons ?? [] }), l.value && (l.value.toolbarRef = s);
|
|
2033
2033
|
const d = () => o.value = r.innerHTML;
|
|
2034
2034
|
r.addEventListener("input", d), ge(() => r.removeEventListener("input", d));
|
|
2035
|
-
}), be("announce", (n) =>
|
|
2036
|
-
|
|
2035
|
+
}), be("announce", (n) => l.value?.announce(n)), (n, r) => (v(), f("section", u2, [
|
|
2036
|
+
P(T1, {
|
|
2037
2037
|
ref_key: "contentRef",
|
|
2038
2038
|
ref: i,
|
|
2039
|
-
editor:
|
|
2039
|
+
editor: l.value,
|
|
2040
2040
|
"editor-id": R(a),
|
|
2041
2041
|
"aria-label": e.ariaLabel
|
|
2042
2042
|
}, null, 8, ["editor", "editor-id", "aria-label"]),
|
|
2043
|
-
|
|
2043
|
+
P(i2, {
|
|
2044
2044
|
ref_key: "toolbarRef",
|
|
2045
|
-
ref:
|
|
2046
|
-
editor:
|
|
2045
|
+
ref: s,
|
|
2046
|
+
editor: l.value,
|
|
2047
2047
|
"editor-id": R(a)
|
|
2048
2048
|
}, null, 8, ["editor", "editor-id"])
|
|
2049
2049
|
]));
|
|
@@ -2093,12 +2093,12 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2093
2093
|
}),
|
|
2094
2094
|
emits: /* @__PURE__ */ oe(["select", "upload", "remove"], ["update:modelValue"]),
|
|
2095
2095
|
setup(e, { emit: o }) {
|
|
2096
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2097
|
-
a.disabled || (
|
|
2096
|
+
const t = pe(e, "modelValue"), a = e, s = o, l = C(0), i = C(""), n = C(!1), r = ie(), d = C(), c = $(() => t.value), h = $(() => a.maxSize === 1 / 0 ? "Unlimited" : O(a.maxSize)), L = $(() => !a.disabled && (a.multiple || t.value.length === 0)), M = $(() => c.value.some((m) => m.status === "uploading")), u = () => L.value && d.value?.click(), y = () => {
|
|
2097
|
+
a.disabled || (l.value++, n.value = !0);
|
|
2098
2098
|
}, I = () => {
|
|
2099
|
-
|
|
2099
|
+
l.value = Math.max(0, l.value - 1), l.value === 0 && (n.value = !1);
|
|
2100
2100
|
}, B = (m) => {
|
|
2101
|
-
if (!a.disabled && !(!a.multiple && t.value.length > 0) && (
|
|
2101
|
+
if (!a.disabled && !(!a.multiple && t.value.length > 0) && (l.value = 0, n.value = !1, !!m.dataTransfer)) {
|
|
2102
2102
|
if (!a.multiple && m.dataTransfer?.files.length) {
|
|
2103
2103
|
const b = m.dataTransfer.files[0];
|
|
2104
2104
|
D([b]);
|
|
@@ -2121,7 +2121,7 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2121
2121
|
});
|
|
2122
2122
|
}
|
|
2123
2123
|
if (!b.length) return;
|
|
2124
|
-
|
|
2124
|
+
s("select", b.map((w) => w.file));
|
|
2125
2125
|
const T = [...c.value, ...b];
|
|
2126
2126
|
t.value = T, a.autoUpload && b.forEach(E);
|
|
2127
2127
|
}, E = (m) => {
|
|
@@ -2143,7 +2143,7 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2143
2143
|
m.status = "error", m.error = A, m.controller = void 0, Z(`Failed to upload ${m.file.name}: ${A}`), V();
|
|
2144
2144
|
}
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2146
|
+
s("upload", m, w);
|
|
2147
2147
|
}, p = (m) => {
|
|
2148
2148
|
m.controller && (m.controller.abort(), m.status = "canceled", m.controller = void 0, Z(`Canceled uploading ${m.file.name}`), V());
|
|
2149
2149
|
}, x = (m) => {
|
|
@@ -2159,7 +2159,7 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2159
2159
|
i.value = m;
|
|
2160
2160
|
});
|
|
2161
2161
|
}, q = (m) => {
|
|
2162
|
-
m.controller && m.controller.abort(),
|
|
2162
|
+
m.controller && m.controller.abort(), s("remove", m), t.value = c.value.filter((b) => b.id !== m.id);
|
|
2163
2163
|
};
|
|
2164
2164
|
return (m, b) => (v(), f("div", {
|
|
2165
2165
|
role: "button",
|
|
@@ -2194,13 +2194,13 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2194
2194
|
key: 0,
|
|
2195
2195
|
dragging: n.value
|
|
2196
2196
|
}, () => [
|
|
2197
|
-
|
|
2197
|
+
P(ue, {
|
|
2198
2198
|
name: "upload",
|
|
2199
2199
|
size: 32
|
|
2200
2200
|
}),
|
|
2201
2201
|
b[6] || (b[6] = g("p", null, "Drag and Drop files here", -1)),
|
|
2202
2202
|
b[7] || (b[7] = g("span", null, "or", -1)),
|
|
2203
|
-
|
|
2203
|
+
P(he, {
|
|
2204
2204
|
type: "button",
|
|
2205
2205
|
class: "btn btn-outline"
|
|
2206
2206
|
}, {
|
|
@@ -2209,8 +2209,8 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2209
2209
|
])]),
|
|
2210
2210
|
_: 1
|
|
2211
2211
|
}),
|
|
2212
|
-
g("span", null, "Maximum size: " +
|
|
2213
|
-
], !0) :
|
|
2212
|
+
g("span", null, "Maximum size: " + K(h.value), 1)
|
|
2213
|
+
], !0) : N("", !0),
|
|
2214
2214
|
c.value?.length ? (v(), f("ul", v2, [
|
|
2215
2215
|
(v(!0), f(ae, null, ce(c.value, (T) => (v(), f("li", {
|
|
2216
2216
|
key: T.id,
|
|
@@ -2223,21 +2223,21 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2223
2223
|
retry: () => x(T)
|
|
2224
2224
|
}, () => [
|
|
2225
2225
|
g("div", f2, [
|
|
2226
|
-
g("span", C2,
|
|
2227
|
-
g("span", p2,
|
|
2226
|
+
g("span", C2, K(T.file.name), 1),
|
|
2227
|
+
g("span", p2, K(O(T.file.size)), 1)
|
|
2228
2228
|
]),
|
|
2229
2229
|
T.status === "uploading" ? (v(), f("div", m2, [
|
|
2230
|
-
g("span", h2,
|
|
2230
|
+
g("span", h2, K(T.progress) + "% ", 1),
|
|
2231
2231
|
g("progress", {
|
|
2232
2232
|
class: "ui-upload__progress",
|
|
2233
2233
|
value: T.progress,
|
|
2234
2234
|
max: "100",
|
|
2235
2235
|
"aria-label": `Upload progress for ${T.file.name}`
|
|
2236
2236
|
}, null, 8, y2)
|
|
2237
|
-
])) :
|
|
2238
|
-
T.status === "success" ? (v(), f("span", b2, " Uploaded successful ")) :
|
|
2239
|
-
T.status === "error" ? (v(), f("span", g2,
|
|
2240
|
-
T.status === "canceled" ? (v(), f("span", k2, " Upload canceled ")) :
|
|
2237
|
+
])) : N("", !0),
|
|
2238
|
+
T.status === "success" ? (v(), f("span", b2, " Uploaded successful ")) : N("", !0),
|
|
2239
|
+
T.status === "error" ? (v(), f("span", g2, K(T.error || "Upload failed"), 1)) : N("", !0),
|
|
2240
|
+
T.status === "canceled" ? (v(), f("span", k2, " Upload canceled ")) : N("", !0),
|
|
2241
2241
|
g("div", w2, [
|
|
2242
2242
|
T.status === "uploading" ? (v(), W(he, {
|
|
2243
2243
|
key: 0,
|
|
@@ -2249,7 +2249,7 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2249
2249
|
me(" Cancel ", -1)
|
|
2250
2250
|
])]),
|
|
2251
2251
|
_: 1
|
|
2252
|
-
}, 8, ["onClick"])) :
|
|
2252
|
+
}, 8, ["onClick"])) : N("", !0),
|
|
2253
2253
|
T.status === "error" || T.status === "canceled" ? (v(), W(he, {
|
|
2254
2254
|
key: 1,
|
|
2255
2255
|
type: "button",
|
|
@@ -2260,7 +2260,7 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2260
2260
|
me(" Retry ", -1)
|
|
2261
2261
|
])]),
|
|
2262
2262
|
_: 1
|
|
2263
|
-
}, 8, ["onClick"])) :
|
|
2263
|
+
}, 8, ["onClick"])) : N("", !0),
|
|
2264
2264
|
T.status !== "uploading" ? (v(), W(he, {
|
|
2265
2265
|
key: 2,
|
|
2266
2266
|
type: "button",
|
|
@@ -2272,12 +2272,12 @@ const c2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2272
2272
|
me(" Remove ", -1)
|
|
2273
2273
|
])]),
|
|
2274
2274
|
_: 1
|
|
2275
|
-
}, 8, ["onClick"])) :
|
|
2275
|
+
}, 8, ["onClick"])) : N("", !0)
|
|
2276
2276
|
])
|
|
2277
2277
|
], !0)
|
|
2278
2278
|
]))), 128))
|
|
2279
|
-
])) :
|
|
2280
|
-
g("div", M2,
|
|
2279
|
+
])) : N("", !0),
|
|
2280
|
+
g("div", M2, K(i.value), 1),
|
|
2281
2281
|
g("p", {
|
|
2282
2282
|
id: R(r),
|
|
2283
2283
|
class: "sr-only"
|
|
@@ -2302,7 +2302,7 @@ const $2 = (e) => {
|
|
|
2302
2302
|
disabled: { type: Boolean, default: !1 }
|
|
2303
2303
|
},
|
|
2304
2304
|
setup(e) {
|
|
2305
|
-
const o = e, t = H2 + B2, a = C(!1),
|
|
2305
|
+
const o = e, t = H2 + B2, a = C(!1), s = `tooltip-${ie()}`, l = C(null), i = C(null), n = C({});
|
|
2306
2306
|
let r = null, d = null, c = null;
|
|
2307
2307
|
const h = () => {
|
|
2308
2308
|
o.disabled || (r && (clearTimeout(r), r = null), o.delay ? r = window.setTimeout(() => {
|
|
@@ -2311,8 +2311,8 @@ const $2 = (e) => {
|
|
|
2311
2311
|
}, L = () => {
|
|
2312
2312
|
r && (clearTimeout(r), r = null), a.value = !1;
|
|
2313
2313
|
}, M = () => {
|
|
2314
|
-
if (!
|
|
2315
|
-
const y =
|
|
2314
|
+
if (!l.value || !i.value) return {};
|
|
2315
|
+
const y = l.value.getBoundingClientRect(), I = i.value.getBoundingClientRect(), B = {
|
|
2316
2316
|
position: "fixed"
|
|
2317
2317
|
};
|
|
2318
2318
|
switch (o.placement) {
|
|
@@ -2338,15 +2338,15 @@ const $2 = (e) => {
|
|
|
2338
2338
|
d?.(), d = null, c?.disconnect(), c = null;
|
|
2339
2339
|
return;
|
|
2340
2340
|
}
|
|
2341
|
-
await Le(), u(), d = $2(u), c = new ResizeObserver(u), i.value && c.observe(i.value),
|
|
2341
|
+
await Le(), u(), d = $2(u), c = new ResizeObserver(u), i.value && c.observe(i.value), l.value && c.observe(l.value);
|
|
2342
2342
|
}), He(() => {
|
|
2343
2343
|
d?.(), c?.disconnect();
|
|
2344
2344
|
}), (y, I) => (v(), f(ae, null, [
|
|
2345
2345
|
g("span", {
|
|
2346
2346
|
ref_key: "triggerRef",
|
|
2347
|
-
ref:
|
|
2347
|
+
ref: l,
|
|
2348
2348
|
class: "tooltip-trigger",
|
|
2349
|
-
"aria-describedby": a.value ?
|
|
2349
|
+
"aria-describedby": a.value ? s : void 0,
|
|
2350
2350
|
"aria-disabled": e.disabled || void 0,
|
|
2351
2351
|
"aria-expanded": a.value || void 0,
|
|
2352
2352
|
onMouseenter: h,
|
|
@@ -2358,13 +2358,13 @@ const $2 = (e) => {
|
|
|
2358
2358
|
U(y.$slots, "default", {}, void 0, !0)
|
|
2359
2359
|
], 40, I2),
|
|
2360
2360
|
(v(), W(Be, { to: "body" }, [
|
|
2361
|
-
|
|
2361
|
+
P($e, { name: "tooltip-fade" }, {
|
|
2362
2362
|
default: G(() => [
|
|
2363
2363
|
a.value ? (v(), f("div", {
|
|
2364
2364
|
key: 0,
|
|
2365
2365
|
ref_key: "tooltipRef",
|
|
2366
2366
|
ref: i,
|
|
2367
|
-
id:
|
|
2367
|
+
id: s,
|
|
2368
2368
|
class: "tooltip-content",
|
|
2369
2369
|
role: "tooltip",
|
|
2370
2370
|
"aria-live": "polite",
|
|
@@ -2374,9 +2374,9 @@ const $2 = (e) => {
|
|
|
2374
2374
|
}, [
|
|
2375
2375
|
I[0] || (I[0] = g("div", { class: "tooltip-arrow" }, null, -1)),
|
|
2376
2376
|
U(y.$slots, "content", {}, () => [
|
|
2377
|
-
me(
|
|
2377
|
+
me(K(e.content), 1)
|
|
2378
2378
|
], !0)
|
|
2379
|
-
], 12, V2)) :
|
|
2379
|
+
], 12, V2)) : N("", !0)
|
|
2380
2380
|
]),
|
|
2381
2381
|
_: 3
|
|
2382
2382
|
})
|
|
@@ -2403,7 +2403,7 @@ const R2 = {
|
|
|
2403
2403
|
},
|
|
2404
2404
|
emits: ["click", "remove"],
|
|
2405
2405
|
setup(e, { emit: o }) {
|
|
2406
|
-
const t = e, a = o,
|
|
2406
|
+
const t = e, a = o, s = C(), l = $(() => t.clickable || t.as === "button" || t.as === "a"), i = $(() => [
|
|
2407
2407
|
`ui-tag--${t.variant}`,
|
|
2408
2408
|
`ui-tag--${t.size}`,
|
|
2409
2409
|
{
|
|
@@ -2411,25 +2411,25 @@ const R2 = {
|
|
|
2411
2411
|
"is-removable": t.removable
|
|
2412
2412
|
}
|
|
2413
2413
|
]), n = $(() => t.clickable && t.as !== "button" && t.as !== "a"), r = (c) => {
|
|
2414
|
-
t.disabled || !
|
|
2414
|
+
t.disabled || !l.value || a("click", c);
|
|
2415
2415
|
}, d = () => a("remove");
|
|
2416
2416
|
return (c, h) => (v(), W(Ie(e.as), {
|
|
2417
2417
|
ref_key: "rootRef",
|
|
2418
|
-
ref:
|
|
2419
|
-
class:
|
|
2418
|
+
ref: s,
|
|
2419
|
+
class: re(["ui-tag", i.value]),
|
|
2420
2420
|
"aria-disabled": e.disabled || void 0,
|
|
2421
2421
|
tabindex: e.disabled ? -1 : n.value ? 0 : void 0,
|
|
2422
2422
|
role: n.value ? "button" : void 0,
|
|
2423
2423
|
onClick: r,
|
|
2424
2424
|
onKeydown: [
|
|
2425
|
-
h[0] || (h[0] = fe(ne((L) => !e.disabled &&
|
|
2426
|
-
h[1] || (h[1] = fe(ne((L) => !e.disabled &&
|
|
2425
|
+
h[0] || (h[0] = fe(ne((L) => !e.disabled && l.value && r(L), ["prevent"]), ["enter"])),
|
|
2426
|
+
h[1] || (h[1] = fe(ne((L) => !e.disabled && l.value && r(L), ["prevent"]), ["space"]))
|
|
2427
2427
|
]
|
|
2428
2428
|
}, {
|
|
2429
2429
|
default: G(() => [
|
|
2430
2430
|
c.$slots.icon ? (v(), f("span", R2, [
|
|
2431
2431
|
U(c.$slots, "icon", {}, void 0, !0)
|
|
2432
|
-
])) :
|
|
2432
|
+
])) : N("", !0),
|
|
2433
2433
|
g("span", Z2, [
|
|
2434
2434
|
U(c.$slots, "default", {}, void 0, !0)
|
|
2435
2435
|
]),
|
|
@@ -2440,11 +2440,11 @@ const R2 = {
|
|
|
2440
2440
|
"aria-label": `Remove ${e.textContent}`,
|
|
2441
2441
|
onClick: ne(d, ["stop"])
|
|
2442
2442
|
}, [
|
|
2443
|
-
|
|
2443
|
+
P(ue, {
|
|
2444
2444
|
name: "close",
|
|
2445
2445
|
size: 32
|
|
2446
2446
|
})
|
|
2447
|
-
], 8, A2)) :
|
|
2447
|
+
], 8, A2)) : N("", !0)
|
|
2448
2448
|
]),
|
|
2449
2449
|
_: 3
|
|
2450
2450
|
}, 40, ["class", "aria-disabled", "tabindex", "role"]));
|
|
@@ -2459,29 +2459,29 @@ const R2 = {
|
|
|
2459
2459
|
},
|
|
2460
2460
|
emits: ["click"],
|
|
2461
2461
|
setup(e, { emit: o }) {
|
|
2462
|
-
const t = e, a = o,
|
|
2463
|
-
if (t.disabled ||
|
|
2464
|
-
|
|
2462
|
+
const t = e, a = o, s = (l) => {
|
|
2463
|
+
if (t.disabled || l.button !== 0) {
|
|
2464
|
+
l.preventDefault();
|
|
2465
2465
|
return;
|
|
2466
2466
|
}
|
|
2467
|
-
a("click",
|
|
2467
|
+
a("click", l);
|
|
2468
2468
|
};
|
|
2469
|
-
return (
|
|
2469
|
+
return (l, i) => (v(), f("a", {
|
|
2470
2470
|
class: "link",
|
|
2471
2471
|
href: e.disabled ? void 0 : e.href,
|
|
2472
2472
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2473
2473
|
tabindex: e.disabled ? -1 : 0,
|
|
2474
|
-
onClick:
|
|
2474
|
+
onClick: s,
|
|
2475
2475
|
target: e.target,
|
|
2476
2476
|
"aria-current": e.ariaCurrent,
|
|
2477
2477
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2478
2478
|
}, [
|
|
2479
|
-
U(
|
|
2479
|
+
U(l.$slots, "default", {}, void 0, !0)
|
|
2480
2480
|
], 8, E2));
|
|
2481
2481
|
}
|
|
2482
2482
|
}), so = /* @__PURE__ */ j(D2, [["__scopeId", "data-v-0f5d7308"]]), Ne = (e, o, t, a) => $(() => {
|
|
2483
|
-
const
|
|
2484
|
-
return e.invalid && e.errorMessage &&
|
|
2483
|
+
const s = [];
|
|
2484
|
+
return e.invalid && e.errorMessage && s.push(t), o.hint && s.push(a), s.length > 0 ? s.join(" ") : void 0;
|
|
2485
2485
|
}), _e = (e) => $(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), r1 = (e) => $(() => e.disabled === !0 ? "true" : void 0), Fe = (e, o, t) => {
|
|
2486
2486
|
o && (o.classList.add("focused"), t("focus", e));
|
|
2487
2487
|
}, Ke = (e, o, t, a) => {
|
|
@@ -2500,7 +2500,7 @@ const R2 = {
|
|
|
2500
2500
|
class: "visually-hidden"
|
|
2501
2501
|
}, [
|
|
2502
2502
|
U(o.$slots, "default")
|
|
2503
|
-
], 8, z2)) :
|
|
2503
|
+
], 8, z2)) : N("", !0);
|
|
2504
2504
|
}
|
|
2505
2505
|
}), O2 = ["id"], Ue = /* @__PURE__ */ _({
|
|
2506
2506
|
__name: "RequiredHint",
|
|
@@ -2513,7 +2513,7 @@ const R2 = {
|
|
|
2513
2513
|
key: 0,
|
|
2514
2514
|
id: `${e.baseId}-required-hint`,
|
|
2515
2515
|
class: "visually-hidden"
|
|
2516
|
-
}, " Required field ", 8, O2)) :
|
|
2516
|
+
}, " Required field ", 8, O2)) : N("", !0);
|
|
2517
2517
|
}
|
|
2518
2518
|
}), q2 = ["id"], je = /* @__PURE__ */ _({
|
|
2519
2519
|
__name: "ErrorMessage",
|
|
@@ -2528,7 +2528,7 @@ const R2 = {
|
|
|
2528
2528
|
id: e.errorId,
|
|
2529
2529
|
class: "error-text",
|
|
2530
2530
|
role: "alert"
|
|
2531
|
-
},
|
|
2531
|
+
}, K(e.errorMessage), 9, q2)) : N("", !0);
|
|
2532
2532
|
}
|
|
2533
2533
|
}), N2 = ["for"], F2 = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], K2 = /* @__PURE__ */ _({
|
|
2534
2534
|
__name: "Input",
|
|
@@ -2546,8 +2546,8 @@ const R2 = {
|
|
|
2546
2546
|
}),
|
|
2547
2547
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
2548
2548
|
setup(e, { emit: o }) {
|
|
2549
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2550
|
-
const { type: D, ...E } =
|
|
2549
|
+
const t = pe(e, "modelValue"), a = e, s = o, l = Oe(), i = ie(), n = `${i}-error`, r = `${i}-hint`, d = _e(l).value, c = $(() => d ? `${r} ${i}-required-hint` : r), h = $(() => a.invalid === !0 && a.errorMessage ? n : void 0), L = $(() => a.type === "password" ? I.value ? "text" : "password" : a.type), M = $(() => {
|
|
2550
|
+
const { type: D, ...E } = l;
|
|
2551
2551
|
return E;
|
|
2552
2552
|
}), u = C(null), y = C(null), I = C(!1), B = () => I.value = !I.value, k = (D) => {
|
|
2553
2553
|
we(u.value, y.value);
|
|
@@ -2557,22 +2557,22 @@ const R2 = {
|
|
|
2557
2557
|
return te(() => {
|
|
2558
2558
|
we(u.value, y.value);
|
|
2559
2559
|
}), (D, E) => (v(), f("div", {
|
|
2560
|
-
class:
|
|
2560
|
+
class: re(["input-box", { required: R(d), error: e.invalid }]),
|
|
2561
2561
|
ref_key: "inputBoxRef",
|
|
2562
2562
|
ref: y
|
|
2563
2563
|
}, [
|
|
2564
2564
|
g("label", {
|
|
2565
2565
|
for: e.id,
|
|
2566
2566
|
class: "label"
|
|
2567
|
-
},
|
|
2567
|
+
}, K(e.label), 9, N2),
|
|
2568
2568
|
g("input", Ce({
|
|
2569
2569
|
id: e.id,
|
|
2570
2570
|
type: L.value
|
|
2571
2571
|
}, M.value, {
|
|
2572
2572
|
class: "input",
|
|
2573
2573
|
onInput: k,
|
|
2574
|
-
onFocus: E[0] || (E[0] = (p) => R(Fe)(p, y.value,
|
|
2575
|
-
onBlur: E[1] || (E[1] = (p) => R(Ke)(p, u.value, y.value,
|
|
2574
|
+
onFocus: E[0] || (E[0] = (p) => R(Fe)(p, y.value, s)),
|
|
2575
|
+
onBlur: E[1] || (E[1] = (p) => R(Ke)(p, u.value, y.value, s)),
|
|
2576
2576
|
value: t.value,
|
|
2577
2577
|
required: R(d),
|
|
2578
2578
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
@@ -2581,17 +2581,17 @@ const R2 = {
|
|
|
2581
2581
|
ref_key: "inputRef",
|
|
2582
2582
|
ref: u
|
|
2583
2583
|
}), null, 16, F2),
|
|
2584
|
-
|
|
2584
|
+
P(Pe, { hintId: r }, {
|
|
2585
2585
|
default: G(() => [
|
|
2586
2586
|
U(D.$slots, "hint", {}, void 0, !0)
|
|
2587
2587
|
]),
|
|
2588
2588
|
_: 3
|
|
2589
2589
|
}),
|
|
2590
|
-
|
|
2590
|
+
P(Ue, {
|
|
2591
2591
|
baseId: R(i),
|
|
2592
2592
|
isRequired: R(d)
|
|
2593
2593
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2594
|
-
|
|
2594
|
+
P(je, {
|
|
2595
2595
|
errorId: n,
|
|
2596
2596
|
invalid: e.invalid,
|
|
2597
2597
|
errorMessage: e.errorMessage
|
|
@@ -2603,12 +2603,12 @@ const R2 = {
|
|
|
2603
2603
|
"aria-label": I.value ? "Hide password" : "Show password"
|
|
2604
2604
|
}), {
|
|
2605
2605
|
default: G(() => [
|
|
2606
|
-
|
|
2606
|
+
P(ue, {
|
|
2607
2607
|
name: I.value ? "eyeOff" : "eye"
|
|
2608
2608
|
}, null, 8, ["name"])
|
|
2609
2609
|
]),
|
|
2610
2610
|
_: 1
|
|
2611
|
-
}, 16, ["aria-label"])) :
|
|
2611
|
+
}, 16, ["aria-label"])) : N("", !0)
|
|
2612
2612
|
], 2));
|
|
2613
2613
|
}
|
|
2614
2614
|
}), io = /* @__PURE__ */ j(K2, [["__scopeId", "data-v-a4f7bb5b"]]), P2 = ["data-size", "data-shape", "aria-label", "aria-busy"], U2 = {
|
|
@@ -2628,7 +2628,7 @@ const R2 = {
|
|
|
2628
2628
|
shape: { default: "circle" }
|
|
2629
2629
|
},
|
|
2630
2630
|
setup(e) {
|
|
2631
|
-
const o = e, t = C("loading"), a = $(() => o.src && t.value !== "error"),
|
|
2631
|
+
const o = e, t = C("loading"), a = $(() => o.src && t.value !== "error"), s = $(() => o.name ? o.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), l = $(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), i = () => t.value = "loaded", n = () => t.value = "error";
|
|
2632
2632
|
return Y(
|
|
2633
2633
|
() => o.src,
|
|
2634
2634
|
() => o.src && (t.value = "loading")
|
|
@@ -2636,7 +2636,7 @@ const R2 = {
|
|
|
2636
2636
|
class: "ui-avatar",
|
|
2637
2637
|
"data-size": e.size,
|
|
2638
2638
|
"data-shape": e.shape,
|
|
2639
|
-
"aria-label": a.value ? void 0 :
|
|
2639
|
+
"aria-label": a.value ? void 0 : l.value,
|
|
2640
2640
|
"aria-busy": t.value === "loading" || void 0
|
|
2641
2641
|
}, [
|
|
2642
2642
|
a.value ? (v(), W(xe, {
|
|
@@ -2648,7 +2648,7 @@ const R2 = {
|
|
|
2648
2648
|
onError: n
|
|
2649
2649
|
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div", U2)) : (v(), f("div", j2, [
|
|
2650
2650
|
U(r.$slots, "default", {}, () => [
|
|
2651
|
-
me(
|
|
2651
|
+
me(K(s.value), 1)
|
|
2652
2652
|
], !0)
|
|
2653
2653
|
]))
|
|
2654
2654
|
], 8, P2));
|
|
@@ -2667,27 +2667,27 @@ const R2 = {
|
|
|
2667
2667
|
}),
|
|
2668
2668
|
emits: /* @__PURE__ */ oe(["focus", "blur", "change", "click"], ["update:modelValue"]),
|
|
2669
2669
|
setup(e, { emit: o }) {
|
|
2670
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2671
|
-
Y(
|
|
2670
|
+
const t = pe(e, "modelValue"), a = e, s = o, l = C(!1);
|
|
2671
|
+
Y(l, (w) => {
|
|
2672
2672
|
w ? document.addEventListener("mousedown", T) : document.removeEventListener("mousedown", T);
|
|
2673
2673
|
});
|
|
2674
|
-
const i = Oe(), n = C(null), r = $(() => a.id ?? ie()), d = `${r.value}-label`, c = `${r.value}-listbox`, h = `${r.value}-error`, L = `${r.value}-hint`, M = `${r.value}-value`, u = C(null), y = C(null), I = $(() => u.value !== null ? `${c}-option-${u.value}` : void 0), B = _e(i).value, k = $(() => B ? `${L} ${r.value}-required-hint` : L), D = $(() =>
|
|
2674
|
+
const i = Oe(), n = C(null), r = $(() => a.id ?? ie()), d = `${r.value}-label`, c = `${r.value}-listbox`, h = `${r.value}-error`, L = `${r.value}-hint`, M = `${r.value}-value`, u = C(null), y = C(null), I = $(() => u.value !== null ? `${c}-option-${u.value}` : void 0), B = _e(i).value, k = $(() => B ? `${L} ${r.value}-required-hint` : L), D = $(() => l.value && I.value ? I.value : void 0), E = $(() => y.value !== null ? a.options[y.value]?.value : ""), p = (w) => {
|
|
2675
2675
|
const A = n.value;
|
|
2676
|
-
A && (A.classList.add("focused"),
|
|
2676
|
+
A && (A.classList.add("focused"), s("focus", w));
|
|
2677
2677
|
}, x = (w) => {
|
|
2678
2678
|
const A = w.relatedTarget, J = n.value;
|
|
2679
|
-
!J || J?.contains(A) || (J.classList.remove("focused"),
|
|
2679
|
+
!J || J?.contains(A) || (J.classList.remove("focused"), l.value = !1, s("blur", w));
|
|
2680
2680
|
}, V = (w) => {
|
|
2681
|
-
|
|
2681
|
+
l.value = !l.value, l.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && s("click", w);
|
|
2682
2682
|
}, O = (w, A) => {
|
|
2683
2683
|
const J = n.value;
|
|
2684
|
-
!J || w.disabled || (y.value = A, u.value = A, w && w.key && w.key.toString().length > 0 ? J.classList.add("filled") : J.classList.remove("filled"), t.value = w.key,
|
|
2684
|
+
!J || w.disabled || (y.value = A, u.value = A, w && w.key && w.key.toString().length > 0 ? J.classList.add("filled") : J.classList.remove("filled"), t.value = w.key, s("change", w.key));
|
|
2685
2685
|
}, Z = (w) => {
|
|
2686
|
-
if (!
|
|
2687
|
-
|
|
2686
|
+
if (!l.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
|
|
2687
|
+
l.value = !0, u.value = u.value ?? a.options.findIndex((A) => !A.disabled), w.preventDefault();
|
|
2688
2688
|
return;
|
|
2689
2689
|
}
|
|
2690
|
-
if (
|
|
2690
|
+
if (l.value) {
|
|
2691
2691
|
if (w.key === "ArrowDown" && (q(1), w.preventDefault()), w.key === "ArrowUp" && (q(-1), w.preventDefault()), w.key === "Home") {
|
|
2692
2692
|
const A = m();
|
|
2693
2693
|
A >= 0 && (u.value = A), w.preventDefault();
|
|
@@ -2700,9 +2700,9 @@ const R2 = {
|
|
|
2700
2700
|
if (u.value === null) return;
|
|
2701
2701
|
const A = a.options[u.value];
|
|
2702
2702
|
if (!A || A.disabled) return;
|
|
2703
|
-
O(A, u.value),
|
|
2703
|
+
O(A, u.value), l.value = !1, w.preventDefault();
|
|
2704
2704
|
}
|
|
2705
|
-
w.key === "Escape" && (
|
|
2705
|
+
w.key === "Escape" && (l.value = !1);
|
|
2706
2706
|
}
|
|
2707
2707
|
}, q = (w) => {
|
|
2708
2708
|
if (u.value === null) return;
|
|
@@ -2713,7 +2713,7 @@ const R2 = {
|
|
|
2713
2713
|
A >= 0 && A < a.options.length && (u.value = A);
|
|
2714
2714
|
}, m = () => a.options.findIndex((w) => !w.disabled), b = () => [...a.options].reverse().findIndex((w) => !w.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((w) => !w.disabled) : -1, T = (w) => {
|
|
2715
2715
|
const A = n.value;
|
|
2716
|
-
!A || A.contains(w.target) || (
|
|
2716
|
+
!A || A.contains(w.target) || (l.value = !1);
|
|
2717
2717
|
};
|
|
2718
2718
|
return He(() => {
|
|
2719
2719
|
document.removeEventListener("mousedown", T);
|
|
@@ -2730,7 +2730,7 @@ const R2 = {
|
|
|
2730
2730
|
}), (w, A) => (v(), f("div", {
|
|
2731
2731
|
ref_key: "selectRef",
|
|
2732
2732
|
ref: n,
|
|
2733
|
-
class:
|
|
2733
|
+
class: re(["select-box", { required: Object.keys(w.$attrs).includes("required"), error: e.invalid }])
|
|
2734
2734
|
}, [
|
|
2735
2735
|
g("button", {
|
|
2736
2736
|
id: r.value,
|
|
@@ -2738,7 +2738,7 @@ const R2 = {
|
|
|
2738
2738
|
role: "combobox",
|
|
2739
2739
|
type: "button",
|
|
2740
2740
|
"aria-haspopup": "listbox",
|
|
2741
|
-
"aria-expanded":
|
|
2741
|
+
"aria-expanded": l.value,
|
|
2742
2742
|
"aria-controls": c,
|
|
2743
2743
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2744
2744
|
"aria-labelledby": `${d} ${M}`,
|
|
@@ -2756,7 +2756,7 @@ const R2 = {
|
|
|
2756
2756
|
g("span", {
|
|
2757
2757
|
id: d,
|
|
2758
2758
|
class: "label"
|
|
2759
|
-
},
|
|
2759
|
+
}, K(e.label), 1),
|
|
2760
2760
|
g("span", {
|
|
2761
2761
|
id: M,
|
|
2762
2762
|
class: "selected-object",
|
|
@@ -2764,12 +2764,12 @@ const R2 = {
|
|
|
2764
2764
|
"aria-atomic": "true",
|
|
2765
2765
|
innerHTML: E.value
|
|
2766
2766
|
}, null, 8, W2),
|
|
2767
|
-
|
|
2767
|
+
P(ue, {
|
|
2768
2768
|
name: "directionDown",
|
|
2769
2769
|
"aria-hidden": "true"
|
|
2770
2770
|
})
|
|
2771
2771
|
], 40, G2),
|
|
2772
|
-
|
|
2772
|
+
P($e, { name: "select" }, {
|
|
2773
2773
|
default: G(() => [
|
|
2774
2774
|
Ve(g("ul", {
|
|
2775
2775
|
id: c,
|
|
@@ -2780,7 +2780,7 @@ const R2 = {
|
|
|
2780
2780
|
id: `${c}-option-${de}`,
|
|
2781
2781
|
key: de,
|
|
2782
2782
|
role: "option",
|
|
2783
|
-
class:
|
|
2783
|
+
class: re(["option", { "focus-visible": u.value === de }]),
|
|
2784
2784
|
"aria-disabled": J.disabled,
|
|
2785
2785
|
"aria-selected": y.value === de,
|
|
2786
2786
|
onClick: (H) => !J.disabled && O(J, de)
|
|
@@ -2791,22 +2791,22 @@ const R2 = {
|
|
|
2791
2791
|
}, null, 8, Y2)
|
|
2792
2792
|
], 10, J2))), 128))
|
|
2793
2793
|
], 512), [
|
|
2794
|
-
[ze,
|
|
2794
|
+
[ze, l.value]
|
|
2795
2795
|
])
|
|
2796
2796
|
]),
|
|
2797
2797
|
_: 1
|
|
2798
2798
|
}),
|
|
2799
|
-
|
|
2799
|
+
P(Pe, { hintId: L }, {
|
|
2800
2800
|
default: G(() => [
|
|
2801
2801
|
U(w.$slots, "hint", {}, void 0, !0)
|
|
2802
2802
|
]),
|
|
2803
2803
|
_: 3
|
|
2804
2804
|
}),
|
|
2805
|
-
|
|
2805
|
+
P(Ue, {
|
|
2806
2806
|
baseId: r.value,
|
|
2807
2807
|
isRequired: R(B)
|
|
2808
2808
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2809
|
-
|
|
2809
|
+
P(je, {
|
|
2810
2810
|
errorId: h,
|
|
2811
2811
|
invalid: e.invalid,
|
|
2812
2812
|
errorMessage: e.errorMessage
|
|
@@ -2837,10 +2837,10 @@ const R2 = {
|
|
|
2837
2837
|
}),
|
|
2838
2838
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
2839
2839
|
setup(e, { emit: o }) {
|
|
2840
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2841
|
-
k && (
|
|
2840
|
+
const t = pe(e, "modelValue"), a = e, s = o, l = C([]), i = C("next"), n = C(null), r = `gallery-caption-${ie()}`, d = C(null), c = $(() => t.value), h = $(() => a.images[c.value]), L = (k, D) => {
|
|
2841
|
+
k && (l.value[D] = k);
|
|
2842
2842
|
}, M = (k) => {
|
|
2843
|
-
k !== c.value && (i.value = k > c.value ? "next" : "prev", t.value = k,
|
|
2843
|
+
k !== c.value && (i.value = k > c.value ? "next" : "prev", t.value = k, s("change", k));
|
|
2844
2844
|
}, u = () => {
|
|
2845
2845
|
if (c.value === a.images.length - 1) {
|
|
2846
2846
|
a.loop && M(0);
|
|
@@ -2860,14 +2860,14 @@ const R2 = {
|
|
|
2860
2860
|
};
|
|
2861
2861
|
return Y(c, async (k) => {
|
|
2862
2862
|
await Le();
|
|
2863
|
-
const D =
|
|
2863
|
+
const D = l.value[k];
|
|
2864
2864
|
D && D.scrollIntoView({
|
|
2865
2865
|
behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
|
|
2866
2866
|
inline: "center",
|
|
2867
2867
|
block: "nearest"
|
|
2868
2868
|
});
|
|
2869
2869
|
}), Y(() => a.images, () => {
|
|
2870
|
-
|
|
2870
|
+
l.value = [];
|
|
2871
2871
|
}), (k, D) => (v(), f("div", {
|
|
2872
2872
|
role: "region",
|
|
2873
2873
|
class: "rs-gallery",
|
|
@@ -2887,7 +2887,7 @@ const R2 = {
|
|
|
2887
2887
|
fe(ne(u, ["prevent"]), ["right"])
|
|
2888
2888
|
]
|
|
2889
2889
|
}, [
|
|
2890
|
-
|
|
2890
|
+
P($e, {
|
|
2891
2891
|
name: `rs-gallery-slide-${i.value}`,
|
|
2892
2892
|
mode: "out-in",
|
|
2893
2893
|
onBeforeLeave: I,
|
|
@@ -2899,7 +2899,7 @@ const R2 = {
|
|
|
2899
2899
|
src: h.value.src,
|
|
2900
2900
|
alt: h.value.alt || "",
|
|
2901
2901
|
transform: e.transform
|
|
2902
|
-
}, null, 8, ["src", "alt", "transform"])) :
|
|
2902
|
+
}, null, 8, ["src", "alt", "transform"])) : N("", !0)
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["name"]),
|
|
@@ -2912,7 +2912,7 @@ const R2 = {
|
|
|
2912
2912
|
key: 0,
|
|
2913
2913
|
id: r,
|
|
2914
2914
|
class: "rs-gallery-caption"
|
|
2915
|
-
},
|
|
2915
|
+
}, K(h.value.title), 1)) : N("", !0),
|
|
2916
2916
|
e.showThumbnails ? (v(), f("ul", a5, [
|
|
2917
2917
|
(v(!0), f(ae, null, ce(e.images, (E, p) => (v(), f("li", {
|
|
2918
2918
|
key: E.src,
|
|
@@ -2922,17 +2922,17 @@ const R2 = {
|
|
|
2922
2922
|
}, [
|
|
2923
2923
|
g("button", {
|
|
2924
2924
|
type: "button",
|
|
2925
|
-
class:
|
|
2925
|
+
class: re(["rs-gallery-thumb", { active: c.value === p }]),
|
|
2926
2926
|
onClick: (x) => M(p)
|
|
2927
2927
|
}, [
|
|
2928
|
-
|
|
2928
|
+
P(xe, {
|
|
2929
2929
|
src: E.src,
|
|
2930
2930
|
alt: `Select image ${p + 1}`,
|
|
2931
2931
|
transform: e.transformThumbnails
|
|
2932
2932
|
}, null, 8, ["src", "alt", "transform"])
|
|
2933
2933
|
], 10, n5)
|
|
2934
2934
|
], 8, o5))), 128))
|
|
2935
|
-
])) :
|
|
2935
|
+
])) : N("", !0)
|
|
2936
2936
|
], 8, e5));
|
|
2937
2937
|
}
|
|
2938
2938
|
}), l1 = /* @__PURE__ */ j(r5, [["__scopeId", "data-v-dcfacff6"]]), l5 = ["aria-label"], s5 = ["onClick"], i5 = /* @__PURE__ */ _({
|
|
@@ -2956,13 +2956,13 @@ const R2 = {
|
|
|
2956
2956
|
role: "list",
|
|
2957
2957
|
"aria-label": e.ariaLabel || "Image grid gallery"
|
|
2958
2958
|
}, [
|
|
2959
|
-
(v(!0), f(ae, null, ce(e.images, (a,
|
|
2959
|
+
(v(!0), f(ae, null, ce(e.images, (a, s) => (v(), f("button", {
|
|
2960
2960
|
key: a.src,
|
|
2961
2961
|
type: "button",
|
|
2962
2962
|
class: "grid-item",
|
|
2963
|
-
onClick: (
|
|
2963
|
+
onClick: (l) => o.$emit("change", s)
|
|
2964
2964
|
}, [
|
|
2965
|
-
|
|
2965
|
+
P(xe, {
|
|
2966
2966
|
src: a.src,
|
|
2967
2967
|
alt: a.alt || "",
|
|
2968
2968
|
transform: e.transform
|
|
@@ -2988,13 +2988,13 @@ const De = _({
|
|
|
2988
2988
|
},
|
|
2989
2989
|
emits: ["update:open", "opened", "closed"],
|
|
2990
2990
|
setup(e, { emit: o, slots: t }) {
|
|
2991
|
-
const a = C(!1),
|
|
2992
|
-
Y(() => e.open, (h) =>
|
|
2991
|
+
const a = C(!1), s = C(e.open), l = ie(), i = `modal-title-${l}`, n = `modal-desc-${l}`;
|
|
2992
|
+
Y(() => e.open, (h) => s.value = h), Y(s, (h) => {
|
|
2993
2993
|
o("update:open", h), o(h ? "opened" : "closed");
|
|
2994
2994
|
});
|
|
2995
|
-
const r = () =>
|
|
2995
|
+
const r = () => s.value = !1, d = $(() => e.motion), c = $(() => e.size);
|
|
2996
2996
|
return be(Re, {
|
|
2997
|
-
isOpen:
|
|
2997
|
+
isOpen: s,
|
|
2998
2998
|
motion: d,
|
|
2999
2999
|
size: c,
|
|
3000
3000
|
close: r,
|
|
@@ -3007,10 +3007,10 @@ const De = _({
|
|
|
3007
3007
|
}), i1 = _({
|
|
3008
3008
|
name: "ModalContent",
|
|
3009
3009
|
setup(e, { slots: o }) {
|
|
3010
|
-
const t =
|
|
3010
|
+
const t = le(Re);
|
|
3011
3011
|
if (!t) throw new Error("ModalContent components must be used inside <Modal>");
|
|
3012
|
-
const a = C(null),
|
|
3013
|
-
c.key === "Escape" &&
|
|
3012
|
+
const a = C(null), s = ++Te, l = (c) => {
|
|
3013
|
+
c.key === "Escape" && s === Te && t.close();
|
|
3014
3014
|
};
|
|
3015
3015
|
let i = null;
|
|
3016
3016
|
const n = (c) => {
|
|
@@ -3034,10 +3034,10 @@ const De = _({
|
|
|
3034
3034
|
}, d = () => {
|
|
3035
3035
|
--Qe === 0 && (document.body.style.overflow = "");
|
|
3036
3036
|
};
|
|
3037
|
-
return () =>
|
|
3037
|
+
return () => F(
|
|
3038
3038
|
Be,
|
|
3039
3039
|
{ to: "body" },
|
|
3040
|
-
|
|
3040
|
+
F(
|
|
3041
3041
|
$e,
|
|
3042
3042
|
{
|
|
3043
3043
|
name: `modal-${t.motion.value}`,
|
|
@@ -3046,20 +3046,20 @@ const De = _({
|
|
|
3046
3046
|
Ee = document.activeElement, r();
|
|
3047
3047
|
},
|
|
3048
3048
|
onAfterEnter: () => {
|
|
3049
|
-
a.value && (n(a.value), document.addEventListener("keydown",
|
|
3049
|
+
a.value && (n(a.value), document.addEventListener("keydown", l));
|
|
3050
3050
|
},
|
|
3051
3051
|
onAfterLeave: () => {
|
|
3052
|
-
Te--, document.removeEventListener("keydown",
|
|
3052
|
+
Te--, document.removeEventListener("keydown", l), i?.(), d(), Ee?.focus(), Ee = null;
|
|
3053
3053
|
}
|
|
3054
3054
|
},
|
|
3055
3055
|
{
|
|
3056
|
-
default: () => t.isOpen.value ?
|
|
3056
|
+
default: () => t.isOpen.value ? F(
|
|
3057
3057
|
"div",
|
|
3058
3058
|
{
|
|
3059
3059
|
class: "modal-overlay",
|
|
3060
3060
|
onClick: () => t.closeOnOverlay && t.close()
|
|
3061
3061
|
},
|
|
3062
|
-
|
|
3062
|
+
F(
|
|
3063
3063
|
"div",
|
|
3064
3064
|
{
|
|
3065
3065
|
ref: a,
|
|
@@ -3080,31 +3080,31 @@ const De = _({
|
|
|
3080
3080
|
}), u1 = _({
|
|
3081
3081
|
name: "ModalTitle",
|
|
3082
3082
|
setup(e, { slots: o }) {
|
|
3083
|
-
const t =
|
|
3083
|
+
const t = le(Re);
|
|
3084
3084
|
if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
|
|
3085
|
-
return t.hasTitle.value = !0, () =>
|
|
3085
|
+
return t.hasTitle.value = !0, () => F("h2", { id: t.labelId }, o.default?.());
|
|
3086
3086
|
}
|
|
3087
3087
|
}), c1 = _({
|
|
3088
3088
|
name: "ModalHeader",
|
|
3089
3089
|
setup(e, { slots: o }) {
|
|
3090
|
-
return () =>
|
|
3090
|
+
return () => F("div", { class: "modal-header" }, o.default?.());
|
|
3091
3091
|
}
|
|
3092
3092
|
}), d1 = _({
|
|
3093
3093
|
name: "ModalBody",
|
|
3094
3094
|
setup(e, { slots: o }) {
|
|
3095
|
-
return () =>
|
|
3095
|
+
return () => F("div", { class: "modal-body" }, o.default?.());
|
|
3096
3096
|
}
|
|
3097
3097
|
}), vo = _({
|
|
3098
3098
|
name: "ModalFooter",
|
|
3099
3099
|
setup(e, { slots: o }) {
|
|
3100
|
-
return () =>
|
|
3100
|
+
return () => F("div", { class: "modal-footer" }, o.default?.());
|
|
3101
3101
|
}
|
|
3102
3102
|
}), v1 = _({
|
|
3103
3103
|
name: "ModalClose",
|
|
3104
3104
|
setup() {
|
|
3105
|
-
const e =
|
|
3105
|
+
const e = le(Re);
|
|
3106
3106
|
if (!e) throw new Error("ModalClose components must be used inside <Modal>");
|
|
3107
|
-
return () =>
|
|
3107
|
+
return () => F(
|
|
3108
3108
|
"button",
|
|
3109
3109
|
{
|
|
3110
3110
|
class: "modal-close",
|
|
@@ -3112,7 +3112,7 @@ const De = _({
|
|
|
3112
3112
|
"aria-label": "Close modal",
|
|
3113
3113
|
onClick: e.close
|
|
3114
3114
|
},
|
|
3115
|
-
|
|
3115
|
+
F(ue, { name: "close", size: 32 })
|
|
3116
3116
|
);
|
|
3117
3117
|
}
|
|
3118
3118
|
});
|
|
@@ -3136,45 +3136,45 @@ const u5 = /* @__PURE__ */ _({
|
|
|
3136
3136
|
},
|
|
3137
3137
|
emits: ["change"],
|
|
3138
3138
|
setup(e) {
|
|
3139
|
-
const o = C(0), t = C(!1), a = (
|
|
3140
|
-
o.value =
|
|
3141
|
-
},
|
|
3142
|
-
return (
|
|
3143
|
-
|
|
3139
|
+
const o = C(0), t = C(!1), a = (l) => {
|
|
3140
|
+
o.value = l, t.value = !0;
|
|
3141
|
+
}, s = () => t.value = !1;
|
|
3142
|
+
return (l, i) => (v(), f(ae, null, [
|
|
3143
|
+
P(s1, {
|
|
3144
3144
|
images: e.images,
|
|
3145
3145
|
onChange: a,
|
|
3146
3146
|
"aria-label": e.ariaLabel,
|
|
3147
3147
|
transform: e.transform
|
|
3148
3148
|
}, null, 8, ["images", "aria-label", "transform"]),
|
|
3149
|
-
|
|
3149
|
+
P(R(De), {
|
|
3150
3150
|
open: t.value,
|
|
3151
3151
|
"onUpdate:open": i[2] || (i[2] = (n) => t.value = n),
|
|
3152
3152
|
motion: "fade",
|
|
3153
3153
|
size: "xl"
|
|
3154
3154
|
}, {
|
|
3155
3155
|
default: G(() => [
|
|
3156
|
-
|
|
3156
|
+
P(R(i1), null, {
|
|
3157
3157
|
default: G(() => [
|
|
3158
|
-
|
|
3158
|
+
P(R(c1), null, {
|
|
3159
3159
|
default: G(() => [
|
|
3160
|
-
|
|
3160
|
+
P(R(u1), null, {
|
|
3161
3161
|
default: G(() => [...i[3] || (i[3] = [
|
|
3162
3162
|
me("Image Gallery", -1)
|
|
3163
3163
|
])]),
|
|
3164
3164
|
_: 1
|
|
3165
3165
|
}),
|
|
3166
|
-
|
|
3166
|
+
P(R(v1))
|
|
3167
3167
|
]),
|
|
3168
3168
|
_: 1
|
|
3169
3169
|
}),
|
|
3170
|
-
|
|
3170
|
+
P(R(d1), null, {
|
|
3171
3171
|
default: G(() => [
|
|
3172
|
-
|
|
3172
|
+
P(l1, {
|
|
3173
3173
|
modelValue: o.value,
|
|
3174
3174
|
"onUpdate:modelValue": i[0] || (i[0] = (n) => o.value = n),
|
|
3175
3175
|
images: e.images,
|
|
3176
|
-
onChange: i[1] || (i[1] = (n) =>
|
|
3177
|
-
onClose:
|
|
3176
|
+
onChange: i[1] || (i[1] = (n) => l.$emit("change", n)),
|
|
3177
|
+
onClose: s,
|
|
3178
3178
|
"aria-label": e.ariaLabel,
|
|
3179
3179
|
"transform-thumbnails": e.transform
|
|
3180
3180
|
}, null, 8, ["modelValue", "images", "aria-label", "transform-thumbnails"])
|
|
@@ -3208,7 +3208,7 @@ const u5 = /* @__PURE__ */ _({
|
|
|
3208
3208
|
key: a.src,
|
|
3209
3209
|
class: "masonry-item"
|
|
3210
3210
|
}, [
|
|
3211
|
-
|
|
3211
|
+
P(xe, {
|
|
3212
3212
|
src: a.src,
|
|
3213
3213
|
alt: a.alt || "",
|
|
3214
3214
|
transform: e.transform
|
|
@@ -3241,17 +3241,17 @@ const u5 = /* @__PURE__ */ _({
|
|
|
3241
3241
|
}),
|
|
3242
3242
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3243
3243
|
setup(e, { emit: o }) {
|
|
3244
|
-
const t = pe(e, "modelValue"), a = o,
|
|
3244
|
+
const t = pe(e, "modelValue"), a = o, s = $({
|
|
3245
3245
|
get: () => t.value ?? 0,
|
|
3246
3246
|
set: (i) => {
|
|
3247
3247
|
t.value = i, a("change", i);
|
|
3248
3248
|
}
|
|
3249
|
-
}),
|
|
3249
|
+
}), l = (i) => s.value = i;
|
|
3250
3250
|
return (i, n) => (v(), f("section", f5, [
|
|
3251
3251
|
e.layout === "carousel" ? (v(), W(l1, {
|
|
3252
3252
|
key: 0,
|
|
3253
|
-
modelValue:
|
|
3254
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
|
3253
|
+
modelValue: s.value,
|
|
3254
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => s.value = r),
|
|
3255
3255
|
images: e.images,
|
|
3256
3256
|
loop: e.loop,
|
|
3257
3257
|
"aria-label": e.ariaLabel,
|
|
@@ -3260,29 +3260,29 @@ const u5 = /* @__PURE__ */ _({
|
|
|
3260
3260
|
"show-thumbnails": e.showThumbnails
|
|
3261
3261
|
}, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), W(s1, {
|
|
3262
3262
|
key: 1,
|
|
3263
|
-
modelValue:
|
|
3264
|
-
"onUpdate:modelValue": n[1] || (n[1] = (r) =>
|
|
3263
|
+
modelValue: s.value,
|
|
3264
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => s.value = r),
|
|
3265
3265
|
images: e.images,
|
|
3266
|
-
onSelect:
|
|
3266
|
+
onSelect: l,
|
|
3267
3267
|
columns: e.columns,
|
|
3268
3268
|
gap: e.gap,
|
|
3269
3269
|
transform: e.transform,
|
|
3270
3270
|
"aria-label": e.ariaLabel
|
|
3271
3271
|
}, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), W(u5, {
|
|
3272
3272
|
key: 2,
|
|
3273
|
-
modelValue:
|
|
3274
|
-
"onUpdate:modelValue": n[2] || (n[2] = (r) =>
|
|
3273
|
+
modelValue: s.value,
|
|
3274
|
+
"onUpdate:modelValue": n[2] || (n[2] = (r) => s.value = r),
|
|
3275
3275
|
images: e.images,
|
|
3276
3276
|
transform: e.transform,
|
|
3277
3277
|
"aria-label": e.ariaLabel
|
|
3278
3278
|
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), W(v5, {
|
|
3279
3279
|
key: 3,
|
|
3280
|
-
modelValue:
|
|
3281
|
-
"onUpdate:modelValue": n[3] || (n[3] = (r) =>
|
|
3280
|
+
modelValue: s.value,
|
|
3281
|
+
"onUpdate:modelValue": n[3] || (n[3] = (r) => s.value = r),
|
|
3282
3282
|
images: e.images,
|
|
3283
3283
|
transform: e.transform,
|
|
3284
3284
|
"aria-label": e.ariaLabel
|
|
3285
|
-
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) :
|
|
3285
|
+
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : N("", !0)
|
|
3286
3286
|
]));
|
|
3287
3287
|
}
|
|
3288
3288
|
}), e1 = /* @__PURE__ */ j(C5, [["__scopeId", "data-v-d6be1b96"]]);
|
|
@@ -3300,9 +3300,9 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3300
3300
|
message: {}
|
|
3301
3301
|
},
|
|
3302
3302
|
setup(e) {
|
|
3303
|
-
const o = e, t = C(0), a = C(null),
|
|
3304
|
-
!o.message || a.value !== null ||
|
|
3305
|
-
t.value = t.value % 3 + 1,
|
|
3303
|
+
const o = e, t = C(0), a = C(null), s = C(o.message || ""), l = () => {
|
|
3304
|
+
!o.message || a.value !== null || s.value.length > 0 && (a.value = window.setInterval(() => {
|
|
3305
|
+
t.value = t.value % 3 + 1, s.value = `${o.message}${".".repeat(t.value)}`;
|
|
3306
3306
|
}, 750));
|
|
3307
3307
|
}, i = () => {
|
|
3308
3308
|
a.value !== null && (clearInterval(a.value), a.value = null);
|
|
@@ -3310,9 +3310,9 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3310
3310
|
return Y(
|
|
3311
3311
|
() => o.message,
|
|
3312
3312
|
(n, r) => {
|
|
3313
|
-
n !== r && (
|
|
3313
|
+
n !== r && (s.value = n || "", i());
|
|
3314
3314
|
}
|
|
3315
|
-
), te(
|
|
3315
|
+
), te(l), ge(i), (n, r) => (v(), f("div", {
|
|
3316
3316
|
class: "spinner-container",
|
|
3317
3317
|
role: "status",
|
|
3318
3318
|
"aria-live": "polite",
|
|
@@ -3322,8 +3322,8 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3322
3322
|
class: "spinner",
|
|
3323
3323
|
"aria-hidden": "true"
|
|
3324
3324
|
}, null, -1)),
|
|
3325
|
-
e.message ? (v(), f("span", m5,
|
|
3326
|
-
g("span", h5,
|
|
3325
|
+
e.message ? (v(), f("span", m5, K(s.value), 1)) : N("", !0),
|
|
3326
|
+
g("span", h5, K(e.message || "Loading"), 1)
|
|
3327
3327
|
], 8, p5));
|
|
3328
3328
|
}
|
|
3329
3329
|
}), f1 = /* @__PURE__ */ j(y5, [["__scopeId", "data-v-e61a1cf5"]]), b5 = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], g5 = {
|
|
@@ -3350,7 +3350,7 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3350
3350
|
}),
|
|
3351
3351
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3352
3352
|
setup(e, { emit: o }) {
|
|
3353
|
-
const t = o, a = pe(e, "modelValue"),
|
|
3353
|
+
const t = o, a = pe(e, "modelValue"), s = e, l = ie(), i = $(() => s.id ?? `checkbox-${l}`), n = C(null), r = r1(s).value, d = $(() => s.required ? !0 : void 0), c = $(() => s.triState && a.value === void 0 ? "mixed" : void 0);
|
|
3354
3354
|
Y(
|
|
3355
3355
|
() => a.value,
|
|
3356
3356
|
(L) => {
|
|
@@ -3359,8 +3359,8 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3359
3359
|
{ immediate: !0 }
|
|
3360
3360
|
);
|
|
3361
3361
|
const h = (L) => {
|
|
3362
|
-
if (!
|
|
3363
|
-
if (!
|
|
3362
|
+
if (!s.disabled) {
|
|
3363
|
+
if (!s.triState) {
|
|
3364
3364
|
const M = L.target.checked;
|
|
3365
3365
|
a.value = M, t("change", a.value);
|
|
3366
3366
|
return;
|
|
@@ -3369,7 +3369,7 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3369
3369
|
}
|
|
3370
3370
|
};
|
|
3371
3371
|
return (L, M) => (v(), f("label", {
|
|
3372
|
-
class:
|
|
3372
|
+
class: re(["checkbox-root", { required: d.value, error: e.invalid }])
|
|
3373
3373
|
}, [
|
|
3374
3374
|
g("input", {
|
|
3375
3375
|
id: i.value,
|
|
@@ -3397,7 +3397,7 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3397
3397
|
d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
|
|
3398
3398
|
fill: "currentColor"
|
|
3399
3399
|
}, null, -1)
|
|
3400
|
-
])])) :
|
|
3400
|
+
])])) : N("", !0)
|
|
3401
3401
|
]),
|
|
3402
3402
|
g("span", M5, [
|
|
3403
3403
|
U(L.$slots, "default", {}, void 0, !0)
|
|
@@ -3420,7 +3420,7 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3420
3420
|
}),
|
|
3421
3421
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
3422
3422
|
setup(e, { emit: o }) {
|
|
3423
|
-
const t = pe(e, "modelValue"), a = Oe(),
|
|
3423
|
+
const t = pe(e, "modelValue"), a = Oe(), s = qe(), l = o, i = e, n = C(null), r = C(null), d = ie(), c = `${d}-error`, h = `${d}-hint`, L = _e(a).value, M = $(() => L ? `${h} ${d}-required-hint` : h), u = Ne(i, s, c, M.value).value, y = (B) => {
|
|
3424
3424
|
we(n.value, r.value);
|
|
3425
3425
|
const k = B.target;
|
|
3426
3426
|
t.value = i.type === "number" ? Number(k.value) : k.value;
|
|
@@ -3428,18 +3428,18 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3428
3428
|
return te(() => {
|
|
3429
3429
|
we(n.value, r.value);
|
|
3430
3430
|
}), (B, k) => (v(), f("div", {
|
|
3431
|
-
class:
|
|
3431
|
+
class: re(["textarea-box", { required: R(L), error: e.invalid }]),
|
|
3432
3432
|
ref_key: "inputBoxRef",
|
|
3433
3433
|
ref: r
|
|
3434
3434
|
}, [
|
|
3435
3435
|
g("label", {
|
|
3436
3436
|
for: e.id,
|
|
3437
3437
|
class: "label"
|
|
3438
|
-
},
|
|
3438
|
+
}, K(e.label), 9, x5),
|
|
3439
3439
|
g("textarea", Ce({ id: e.id }, B.$attrs, {
|
|
3440
3440
|
class: "custom-textarea",
|
|
3441
|
-
onFocus: k[0] || (k[0] = (D) => R(Fe)(D, r.value,
|
|
3442
|
-
onBlur: k[1] || (k[1] = (D) => R(Ke)(D, n.value, r.value,
|
|
3441
|
+
onFocus: k[0] || (k[0] = (D) => R(Fe)(D, r.value, l)),
|
|
3442
|
+
onBlur: k[1] || (k[1] = (D) => R(Ke)(D, n.value, r.value, l)),
|
|
3443
3443
|
onInput: y,
|
|
3444
3444
|
value: t.value,
|
|
3445
3445
|
required: R(L),
|
|
@@ -3449,17 +3449,17 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3449
3449
|
ref_key: "textareaRef",
|
|
3450
3450
|
ref: n
|
|
3451
3451
|
}), " ", 16, $5),
|
|
3452
|
-
|
|
3452
|
+
P(Pe, { hintId: h }, {
|
|
3453
3453
|
default: G(() => [
|
|
3454
3454
|
U(B.$slots, "hint", {}, void 0, !0)
|
|
3455
3455
|
]),
|
|
3456
3456
|
_: 3
|
|
3457
3457
|
}),
|
|
3458
|
-
|
|
3458
|
+
P(Ue, {
|
|
3459
3459
|
baseId: R(d),
|
|
3460
3460
|
isRequired: R(L)
|
|
3461
3461
|
}, null, 8, ["baseId", "isRequired"]),
|
|
3462
|
-
|
|
3462
|
+
P(je, {
|
|
3463
3463
|
errorId: c,
|
|
3464
3464
|
invalid: e.invalid,
|
|
3465
3465
|
errorMessage: e.errorMessage
|
|
@@ -3475,12 +3475,12 @@ const p5 = ["aria-busy"], m5 = {
|
|
|
3475
3475
|
setup(e) {
|
|
3476
3476
|
const o = (t, a) => {
|
|
3477
3477
|
if (!a) return [{ text: t, match: !1 }];
|
|
3478
|
-
const
|
|
3478
|
+
const s = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), l = new RegExp(s, "ig"), i = [];
|
|
3479
3479
|
let n = 0;
|
|
3480
|
-
return t.replace(
|
|
3480
|
+
return t.replace(l, (r, d) => (d > n && i.push({ text: t.slice(n, d), match: !1 }), i.push({ text: r, match: !0 }), n = d + r.length, r)), n < t.length && i.push({ text: t.slice(n), match: !1 }), i;
|
|
3481
3481
|
};
|
|
3482
|
-
return (t, a) => (v(!0), f(ae, null, ce(o(e.text, e.query), (
|
|
3483
|
-
|
|
3482
|
+
return (t, a) => (v(!0), f(ae, null, ce(o(e.text, e.query), (s, l) => (v(), f(ae, { key: l }, [
|
|
3483
|
+
s.match ? (v(), f("mark", V5, K(s.text), 1)) : (v(), f("span", H5, K(s.text), 1))
|
|
3484
3484
|
], 64))), 128));
|
|
3485
3485
|
}
|
|
3486
3486
|
}), _5 = /* @__PURE__ */ j(B5, [["__scopeId", "data-v-edfa70b3"]]);
|
|
@@ -3504,7 +3504,7 @@ const Z5 = {
|
|
|
3504
3504
|
separator: { default: "/" }
|
|
3505
3505
|
},
|
|
3506
3506
|
setup(e) {
|
|
3507
|
-
const o = e, t =
|
|
3507
|
+
const o = e, t = le(R5), a = (n) => n === o.items.length - 1, s = (n, r) => l(n, r), l = (n, r) => a(r) || n.disabled ? "span" : n.to && t ? C1("RouterLink") : n.href ? "a" : "span", i = (n, r) => a(r) || n.disabled ? { "data-disabled": n.disabled || void 0 } : n.to ? { to: n.to } : n.href ? {
|
|
3508
3508
|
href: n.href,
|
|
3509
3509
|
target: n.external ? "_blank" : void 0,
|
|
3510
3510
|
rel: n.external ? "noopener noreferrer" : void 0,
|
|
@@ -3516,20 +3516,20 @@ const Z5 = {
|
|
|
3516
3516
|
key: d.to ?? d.href ?? `${d.label}-${c}`,
|
|
3517
3517
|
class: "ui-breadcrumb__item"
|
|
3518
3518
|
}, [
|
|
3519
|
-
(v(), W(Ie(
|
|
3519
|
+
(v(), W(Ie(s(d, c)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(d, c), {
|
|
3520
3520
|
"aria-posinset": c + 1,
|
|
3521
3521
|
"aria-setsize": e.items.length,
|
|
3522
3522
|
"aria-current": a(c) ? "page" : void 0,
|
|
3523
|
-
tabindex: a(c) ||
|
|
3523
|
+
tabindex: a(c) || s(d, c) === "span" ? -1 : void 0
|
|
3524
3524
|
}), {
|
|
3525
3525
|
default: G(() => [
|
|
3526
|
-
me(
|
|
3526
|
+
me(K(d.label), 1)
|
|
3527
3527
|
]),
|
|
3528
3528
|
_: 2
|
|
3529
3529
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
3530
|
-
a(c) ?
|
|
3530
|
+
a(c) ? N("", !0) : (v(), f("span", S5, [
|
|
3531
3531
|
U(n.$slots, "separator", {}, () => [
|
|
3532
|
-
me(
|
|
3532
|
+
me(K(e.separator), 1)
|
|
3533
3533
|
], !0)
|
|
3534
3534
|
]))
|
|
3535
3535
|
]))), 128))
|
|
@@ -3558,17 +3558,17 @@ const Z5 = {
|
|
|
3558
3558
|
}),
|
|
3559
3559
|
emits: ["update:modelValue"],
|
|
3560
3560
|
setup(e) {
|
|
3561
|
-
const o = e, t = pe(e, "modelValue"), a = $(() => o.invalid ? "true" : void 0),
|
|
3561
|
+
const o = e, t = pe(e, "modelValue"), a = $(() => o.invalid ? "true" : void 0), s = $(() => o.required && !o.disabled ? "true" : void 0), l = $(() => o.disabled ? !0 : void 0);
|
|
3562
3562
|
return (i, n) => (v(), f("fieldset", {
|
|
3563
|
-
class:
|
|
3563
|
+
class: re(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
|
|
3564
3564
|
"aria-invalid": a.value,
|
|
3565
|
-
"aria-required":
|
|
3566
|
-
disabled:
|
|
3565
|
+
"aria-required": s.value,
|
|
3566
|
+
disabled: l.value
|
|
3567
3567
|
}, [
|
|
3568
|
-
g("legend", D5,
|
|
3568
|
+
g("legend", D5, K(e.name), 1),
|
|
3569
3569
|
(v(!0), f(ae, null, ce(e.options, (r) => (v(), f("label", {
|
|
3570
3570
|
key: r.key,
|
|
3571
|
-
class:
|
|
3571
|
+
class: re(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
|
|
3572
3572
|
}, [
|
|
3573
3573
|
Ve(g("input", {
|
|
3574
3574
|
type: "radio",
|
|
@@ -3581,8 +3581,8 @@ const Z5 = {
|
|
|
3581
3581
|
}, null, 8, z5), [
|
|
3582
3582
|
[p1, t.value]
|
|
3583
3583
|
]),
|
|
3584
|
-
e.mode === "standard" ? (v(), f("span", O5)) :
|
|
3585
|
-
g("span", q5,
|
|
3584
|
+
e.mode === "standard" ? (v(), f("span", O5)) : N("", !0),
|
|
3585
|
+
g("span", q5, K(r.label), 1)
|
|
3586
3586
|
], 2))), 128))
|
|
3587
3587
|
], 10, E5));
|
|
3588
3588
|
}
|
|
@@ -3628,12 +3628,12 @@ const Z5 = {
|
|
|
3628
3628
|
}),
|
|
3629
3629
|
emits: /* @__PURE__ */ oe(["change", "select", "focus", "blur"], ["update:modelValue"]),
|
|
3630
3630
|
setup(e, { emit: o }) {
|
|
3631
|
-
const t = e, a = o,
|
|
3631
|
+
const t = e, a = o, s = pe(e, "modelValue"), l = C(null), i = C(null), n = C(""), r = C(!1), d = C([]), c = C(null), h = C(null), L = $(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, y = $(() => c.value !== null ? `${u}-option-${c.value}` : void 0), I = $(() => r.value && y.value ? y.value : void 0), B = $(() => d.value.length > 0), k = $(() => {
|
|
3632
3632
|
if (!t.filterable) return t.options;
|
|
3633
3633
|
const H = n.value.toLowerCase();
|
|
3634
3634
|
return t.options.filter((z) => t.getValue(z).toLowerCase().includes(H));
|
|
3635
3635
|
}), D = r1(t).value, E = _e(t).value;
|
|
3636
|
-
Y(n, () => we(
|
|
3636
|
+
Y(n, () => we(l.value, i.value)), Y(
|
|
3637
3637
|
() => L.value,
|
|
3638
3638
|
(H) => {
|
|
3639
3639
|
if (H)
|
|
@@ -3665,13 +3665,13 @@ const Z5 = {
|
|
|
3665
3665
|
n.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), Fe(H, i.value, a);
|
|
3666
3666
|
}, x = (H) => {
|
|
3667
3667
|
const z = H.relatedTarget;
|
|
3668
|
-
i.value?.contains(z) || (r.value = !1,
|
|
3668
|
+
i.value?.contains(z) || (r.value = !1, s.value ? m() : n.value = "", Ke(H, l.value, i.value, a));
|
|
3669
3669
|
}, V = (H, z) => {
|
|
3670
3670
|
const Q = i.value;
|
|
3671
3671
|
if (!Q || t.isDisabled(H)) return;
|
|
3672
3672
|
r.value = !1, T(n.value), h.value = z, c.value = z;
|
|
3673
3673
|
const S = t.getKey(H);
|
|
3674
|
-
S && S.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), n.value = t.getValue(H),
|
|
3674
|
+
S && S.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), n.value = t.getValue(H), s.value = S, a("select", S);
|
|
3675
3675
|
}, O = (H) => {
|
|
3676
3676
|
if (!r.value && ["ArrowDown", "ArrowUp"].includes(H.key)) {
|
|
3677
3677
|
r.value = !0, c.value = c.value ?? k.value.findIndex((z) => !t.isDisabled(z)), H.preventDefault();
|
|
@@ -3702,13 +3702,13 @@ const Z5 = {
|
|
|
3702
3702
|
while (z >= 0 && z < k.value.length && t.isDisabled(k.value[z]));
|
|
3703
3703
|
z >= 0 && z < k.value.length && (c.value = z);
|
|
3704
3704
|
}, q = () => {
|
|
3705
|
-
n.value.length === 0 && (
|
|
3705
|
+
n.value.length === 0 && (s.value = ""), we(l.value, i.value), n.value.length >= t.minChars ? (a("change", n.value), r.value = !0) : r.value = !1;
|
|
3706
3706
|
}, m = () => {
|
|
3707
|
-
if (
|
|
3708
|
-
const H = t.options.findIndex((z) => t.getKey(z) ===
|
|
3709
|
-
H > -1 && (c.value = H, h.value = H, n.value = t.getValue(t.options[H]), we(
|
|
3707
|
+
if (s.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
3708
|
+
const H = t.options.findIndex((z) => t.getKey(z) === s.value);
|
|
3709
|
+
H > -1 && (c.value = H, h.value = H, n.value = t.getValue(t.options[H]), we(l.value, i.value));
|
|
3710
3710
|
}, b = () => {
|
|
3711
|
-
n.value = "",
|
|
3711
|
+
n.value = "", s.value = "";
|
|
3712
3712
|
}, T = (H) => {
|
|
3713
3713
|
!H || H.trim().length === 0 || (d.value = [
|
|
3714
3714
|
H,
|
|
@@ -3724,22 +3724,22 @@ const Z5 = {
|
|
|
3724
3724
|
return -1;
|
|
3725
3725
|
};
|
|
3726
3726
|
return te(() => {
|
|
3727
|
-
m(), we(
|
|
3727
|
+
m(), we(l.value, i.value);
|
|
3728
3728
|
}), (H, z) => (v(), f("div", {
|
|
3729
|
-
class:
|
|
3729
|
+
class: re(["autocomplete", { required: R(E), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon") }]),
|
|
3730
3730
|
ref_key: "autocompleteRef",
|
|
3731
3731
|
ref: i
|
|
3732
3732
|
}, [
|
|
3733
3733
|
g("label", {
|
|
3734
3734
|
for: e.id,
|
|
3735
3735
|
class: "label"
|
|
3736
|
-
},
|
|
3736
|
+
}, K(e.label), 9, F5),
|
|
3737
3737
|
Ve(g("input", Ce({
|
|
3738
3738
|
id: e.id,
|
|
3739
3739
|
type: e.type
|
|
3740
3740
|
}, H.$attrs, {
|
|
3741
3741
|
ref_key: "inputRef",
|
|
3742
|
-
ref:
|
|
3742
|
+
ref: l,
|
|
3743
3743
|
role: "combobox",
|
|
3744
3744
|
"aria-autocomplete": "list",
|
|
3745
3745
|
"aria-expanded": r.value,
|
|
@@ -3756,7 +3756,7 @@ const Z5 = {
|
|
|
3756
3756
|
}), null, 16, K5), [
|
|
3757
3757
|
[m1, n.value]
|
|
3758
3758
|
]),
|
|
3759
|
-
|
|
3759
|
+
P($e, { name: "select" }, {
|
|
3760
3760
|
default: G(() => [
|
|
3761
3761
|
Ve(g("ul", {
|
|
3762
3762
|
id: u,
|
|
@@ -3767,14 +3767,14 @@ const Z5 = {
|
|
|
3767
3767
|
id: `${u}-option-${S}`,
|
|
3768
3768
|
key: e.getKey(Q),
|
|
3769
3769
|
role: "option",
|
|
3770
|
-
class:
|
|
3770
|
+
class: re(["option", { "focus-visible": c.value === S }]),
|
|
3771
3771
|
"aria-disabled": t.isDisabled(Q) || void 0,
|
|
3772
3772
|
"aria-selected": S === h.value,
|
|
3773
3773
|
onMousedown: z[1] || (z[1] = ne(() => {
|
|
3774
3774
|
}, ["prevent"])),
|
|
3775
3775
|
onClick: (X) => !t.isDisabled(Q) && V(Q, S)
|
|
3776
3776
|
}, [
|
|
3777
|
-
t.isDisabled(Q) ?
|
|
3777
|
+
t.isDisabled(Q) ? N("", !0) : (v(), W(ue, {
|
|
3778
3778
|
key: 0,
|
|
3779
3779
|
name: "search",
|
|
3780
3780
|
size: 22
|
|
@@ -3787,13 +3787,13 @@ const Z5 = {
|
|
|
3787
3787
|
active: S === c.value
|
|
3788
3788
|
}, () => [
|
|
3789
3789
|
g("div", U5, [
|
|
3790
|
-
|
|
3790
|
+
P(_5, {
|
|
3791
3791
|
text: e.getValue(Q),
|
|
3792
3792
|
query: n.value
|
|
3793
3793
|
}, null, 8, ["text", "query"])
|
|
3794
3794
|
])
|
|
3795
3795
|
], !0),
|
|
3796
|
-
g("div", j5,
|
|
3796
|
+
g("div", j5, K(e.getValue(Q)), 1)
|
|
3797
3797
|
], 42, P5))), 128)) : k.value.length === 0 && !e.loading ? (v(), f("li", X5, [...z[3] || (z[3] = [
|
|
3798
3798
|
g("div", { class: "option-value" }, "No results found", -1)
|
|
3799
3799
|
])])) : (v(), W(f1, {
|
|
@@ -3804,7 +3804,7 @@ const Z5 = {
|
|
|
3804
3804
|
})),
|
|
3805
3805
|
B.value ? (v(), f("li", G5, [...z[4] || (z[4] = [
|
|
3806
3806
|
g("div", { class: "option-value" }, " Recents ", -1)
|
|
3807
|
-
])])) :
|
|
3807
|
+
])])) : N("", !0),
|
|
3808
3808
|
(v(!0), f(ae, null, ce(d.value, (Q) => (v(), f("li", {
|
|
3809
3809
|
key: Q,
|
|
3810
3810
|
role: "presentation",
|
|
@@ -3812,8 +3812,8 @@ const Z5 = {
|
|
|
3812
3812
|
class: "option recent-item",
|
|
3813
3813
|
onClick: (S) => w(Q)
|
|
3814
3814
|
}, [
|
|
3815
|
-
|
|
3816
|
-
g("div", J5,
|
|
3815
|
+
P(ue, { name: "clock" }),
|
|
3816
|
+
g("div", J5, K(Q), 1)
|
|
3817
3817
|
], 8, W5))), 128))
|
|
3818
3818
|
], 512), [
|
|
3819
3819
|
[ze, r.value]
|
|
@@ -3823,7 +3823,7 @@ const Z5 = {
|
|
|
3823
3823
|
}),
|
|
3824
3824
|
H.$slots.icon ? (v(), f("span", Y5, [
|
|
3825
3825
|
U(H.$slots, "icon", {}, void 0, !0)
|
|
3826
|
-
])) :
|
|
3826
|
+
])) : N("", !0),
|
|
3827
3827
|
n.value.length > 0 ? (v(), W(he, {
|
|
3828
3828
|
key: 1,
|
|
3829
3829
|
type: "button",
|
|
@@ -3835,7 +3835,7 @@ const Z5 = {
|
|
|
3835
3835
|
onClick: b
|
|
3836
3836
|
}, {
|
|
3837
3837
|
default: G(() => [
|
|
3838
|
-
|
|
3838
|
+
P(ue, {
|
|
3839
3839
|
class: "clear-search",
|
|
3840
3840
|
"aria-hidden": "true",
|
|
3841
3841
|
name: "close",
|
|
@@ -3843,7 +3843,7 @@ const Z5 = {
|
|
|
3843
3843
|
})
|
|
3844
3844
|
]),
|
|
3845
3845
|
_: 1
|
|
3846
|
-
})) :
|
|
3846
|
+
})) : N("", !0)
|
|
3847
3847
|
], 2));
|
|
3848
3848
|
}
|
|
3849
3849
|
}), ho = /* @__PURE__ */ j(Q5, [["__scopeId", "data-v-aefb7615"]]), ea = 5, ve = o1({
|
|
@@ -3886,21 +3886,21 @@ const Me = (e, o = "info") => {
|
|
|
3886
3886
|
focus: { type: Boolean }
|
|
3887
3887
|
},
|
|
3888
3888
|
setup(e) {
|
|
3889
|
-
const o = e, t = C(null), a = C("open"),
|
|
3890
|
-
let
|
|
3889
|
+
const o = e, t = C(null), a = C("open"), s = C(100);
|
|
3890
|
+
let l = Date.now(), i;
|
|
3891
3891
|
const n = () => {
|
|
3892
|
-
const c = Date.now() -
|
|
3893
|
-
if (
|
|
3892
|
+
const c = Date.now() - l;
|
|
3893
|
+
if (s.value = Math.max(0, 100 - c / o.duration * 100), s.value <= 0) {
|
|
3894
3894
|
d();
|
|
3895
3895
|
return;
|
|
3896
3896
|
}
|
|
3897
3897
|
i = requestAnimationFrame(n);
|
|
3898
3898
|
}, r = () => {
|
|
3899
3899
|
if (cancelAnimationFrame(i), o.duration === 1 / 0) {
|
|
3900
|
-
|
|
3900
|
+
s.value = 100;
|
|
3901
3901
|
return;
|
|
3902
3902
|
}
|
|
3903
|
-
|
|
3903
|
+
l = Date.now(), i = requestAnimationFrame(n);
|
|
3904
3904
|
};
|
|
3905
3905
|
Y(
|
|
3906
3906
|
() => o.duration,
|
|
@@ -3924,14 +3924,14 @@ const Me = (e, o = "info") => {
|
|
|
3924
3924
|
}, [
|
|
3925
3925
|
g("div", na, [
|
|
3926
3926
|
U(c.$slots, "default", {}, void 0, !0),
|
|
3927
|
-
|
|
3927
|
+
P(he, {
|
|
3928
3928
|
type: "button",
|
|
3929
3929
|
onClick: d,
|
|
3930
3930
|
"aria-label": `Close ${e.variant} notification`,
|
|
3931
3931
|
class: "btn-sm"
|
|
3932
3932
|
}, {
|
|
3933
3933
|
default: G(() => [
|
|
3934
|
-
|
|
3934
|
+
P(ue, {
|
|
3935
3935
|
name: "close",
|
|
3936
3936
|
size: 32
|
|
3937
3937
|
})
|
|
@@ -3942,9 +3942,9 @@ const Me = (e, o = "info") => {
|
|
|
3942
3942
|
e.duration !== 1 / 0 ? (v(), f("div", ra, [
|
|
3943
3943
|
g("div", {
|
|
3944
3944
|
class: "bar",
|
|
3945
|
-
style: ye({ width:
|
|
3945
|
+
style: ye({ width: s.value + "%" })
|
|
3946
3946
|
}, null, 4)
|
|
3947
|
-
])) :
|
|
3947
|
+
])) : N("", !0)
|
|
3948
3948
|
], 8, oa));
|
|
3949
3949
|
}
|
|
3950
3950
|
}), ia = /* @__PURE__ */ j(sa, [["__scopeId", "data-v-f9e75b9d"]]), ua = { class: "toast-viewport" }, ca = { class: "toast-message" }, da = { key: 0 }, va = ["id"], fa = /* @__PURE__ */ _({
|
|
@@ -3952,7 +3952,7 @@ const Me = (e, o = "info") => {
|
|
|
3952
3952
|
setup(e) {
|
|
3953
3953
|
return (o, t) => (v(), W(Be, { to: "body" }, [
|
|
3954
3954
|
g("div", ua, [
|
|
3955
|
-
|
|
3955
|
+
P(h1, { name: "toast-stack" }, {
|
|
3956
3956
|
default: G(() => [
|
|
3957
3957
|
(v(!0), f(ae, null, ce(R(ve).toasts, (a) => (v(), W(ia, {
|
|
3958
3958
|
key: a.id,
|
|
@@ -3963,7 +3963,7 @@ const Me = (e, o = "info") => {
|
|
|
3963
3963
|
}, {
|
|
3964
3964
|
default: G(() => [
|
|
3965
3965
|
g("div", ca, [
|
|
3966
|
-
a.title ? (v(), f("strong", da,
|
|
3966
|
+
a.title ? (v(), f("strong", da, K(a.title), 1)) : N("", !0),
|
|
3967
3967
|
a.loading ? (v(), W(f1, {
|
|
3968
3968
|
key: 1,
|
|
3969
3969
|
message: a.description,
|
|
@@ -3971,7 +3971,7 @@ const Me = (e, o = "info") => {
|
|
|
3971
3971
|
}, null, 8, ["message"])) : (v(), f("p", {
|
|
3972
3972
|
key: 2,
|
|
3973
3973
|
id: `toast-desc-${a.id}`
|
|
3974
|
-
},
|
|
3974
|
+
}, K(a.description), 9, va))
|
|
3975
3975
|
])
|
|
3976
3976
|
]),
|
|
3977
3977
|
_: 2
|
|
@@ -4001,11 +4001,11 @@ const bo = {
|
|
|
4001
4001
|
},
|
|
4002
4002
|
emits: ["click"],
|
|
4003
4003
|
setup(e, { emit: o }) {
|
|
4004
|
-
const t = e, a = o,
|
|
4005
|
-
be("card:labelId",
|
|
4004
|
+
const t = e, a = o, s = C(), l = C();
|
|
4005
|
+
be("card:labelId", s), be("card:descriptionId", l);
|
|
4006
4006
|
const i = $(() => t.clickable && t.as !== "button" && t.as !== "a"), n = () => t.clickable && a("click");
|
|
4007
4007
|
return (r, d) => (v(), W(Ie(e.as), {
|
|
4008
|
-
class:
|
|
4008
|
+
class: re(["rs-card", { clickable: e.clickable }]),
|
|
4009
4009
|
tabindex: i.value ? 0 : void 0,
|
|
4010
4010
|
role: i.value ? "button" : void 0,
|
|
4011
4011
|
onClick: n,
|
|
@@ -4013,8 +4013,8 @@ const bo = {
|
|
|
4013
4013
|
d[0] || (d[0] = fe(ne((c) => i.value && n(), ["prevent"]), ["enter"])),
|
|
4014
4014
|
d[1] || (d[1] = fe(ne((c) => i.value && n(), ["prevent"]), ["space"]))
|
|
4015
4015
|
],
|
|
4016
|
-
"aria-labelledby":
|
|
4017
|
-
"aria-describedby":
|
|
4016
|
+
"aria-labelledby": s.value,
|
|
4017
|
+
"aria-describedby": l.value
|
|
4018
4018
|
}, {
|
|
4019
4019
|
default: G(() => [
|
|
4020
4020
|
U(r.$slots, "default", {}, void 0, !0)
|
|
@@ -4028,8 +4028,8 @@ const bo = {
|
|
|
4028
4028
|
as: { default: "div" }
|
|
4029
4029
|
},
|
|
4030
4030
|
setup(e) {
|
|
4031
|
-
const o =
|
|
4032
|
-
return te(() => o && (o.value = t)), (a,
|
|
4031
|
+
const o = le("card:labelId", void 0), t = `rs-card-label-${ie()}`;
|
|
4032
|
+
return te(() => o && (o.value = t)), (a, s) => (v(), W(Ie(e.as), {
|
|
4033
4033
|
id: t,
|
|
4034
4034
|
class: "rs-card-header"
|
|
4035
4035
|
}, {
|
|
@@ -4042,8 +4042,8 @@ const bo = {
|
|
|
4042
4042
|
}), ko = /* @__PURE__ */ j(pa, [["__scopeId", "data-v-570794b4"]]), ma = /* @__PURE__ */ _({
|
|
4043
4043
|
__name: "CardBody",
|
|
4044
4044
|
setup(e) {
|
|
4045
|
-
const o =
|
|
4046
|
-
return te(() => o && (o.value = t)), (a,
|
|
4045
|
+
const o = le("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
|
|
4046
|
+
return te(() => o && (o.value = t)), (a, s) => (v(), f("div", {
|
|
4047
4047
|
id: t,
|
|
4048
4048
|
class: "rs-card-body"
|
|
4049
4049
|
}, [
|
|
@@ -4088,11 +4088,11 @@ const bo = {
|
|
|
4088
4088
|
size: {}
|
|
4089
4089
|
},
|
|
4090
4090
|
setup(e) {
|
|
4091
|
-
const o = e, t =
|
|
4091
|
+
const o = e, t = le("StepsContext");
|
|
4092
4092
|
if (!t) throw new Error("Step component must be used inside Steps.");
|
|
4093
|
-
const a = qe(),
|
|
4093
|
+
const a = qe(), s = C(null), l = C(null), i = $(() => t.orientation ?? "horizontal");
|
|
4094
4094
|
let n = null, r = null;
|
|
4095
|
-
const d =
|
|
4095
|
+
const d = le("StepIndex");
|
|
4096
4096
|
if (d == null) throw new Error("StepIndex component must be used inside Steps.");
|
|
4097
4097
|
const c = $(() => o.status ? o.status : d < t.current.value ? "completed" : d === t.current.value ? "active" : "pending"), h = $(() => t?.icons?.[c.value]), L = $(() => a.icon ? "slot" : o.icon ? o.icon : h.value), M = $(() => {
|
|
4098
4098
|
switch (c.value) {
|
|
@@ -4138,8 +4138,8 @@ const bo = {
|
|
|
4138
4138
|
n = null, k();
|
|
4139
4139
|
}));
|
|
4140
4140
|
}, k = () => {
|
|
4141
|
-
if (!
|
|
4142
|
-
const E =
|
|
4141
|
+
if (!s.value || !l.value) return;
|
|
4142
|
+
const E = l.value.getBoundingClientRect(), p = t.stepsRef.value.getBoundingClientRect(), x = t.orientation === "vertical" ? E.top + E.height / 2 - p.top : E.left + E.width / 2 - p.left;
|
|
4143
4143
|
t.registerIndicatorCenter(d, x);
|
|
4144
4144
|
}, D = (E) => {
|
|
4145
4145
|
const p = t.orientation === "horizontal", x = t.orientation === "vertical";
|
|
@@ -4168,17 +4168,17 @@ const bo = {
|
|
|
4168
4168
|
E.preventDefault();
|
|
4169
4169
|
};
|
|
4170
4170
|
return te(() => {
|
|
4171
|
-
!
|
|
4171
|
+
!s.value || !l.value || (requestAnimationFrame(() => {
|
|
4172
4172
|
requestAnimationFrame(k);
|
|
4173
4173
|
}), r = new ResizeObserver(() => {
|
|
4174
4174
|
B();
|
|
4175
|
-
}), r.observe(
|
|
4175
|
+
}), r.observe(s.value), r.observe(l.value), t.stepsRef.value && r.observe(t.stepsRef.value), t.registerStep(s.value));
|
|
4176
4176
|
}), ge(() => {
|
|
4177
|
-
r?.disconnect(), t.unregisterStep(
|
|
4177
|
+
r?.disconnect(), t.unregisterStep(s.value), n != null && cancelAnimationFrame(n);
|
|
4178
4178
|
}), (E, p) => (v(), f("li", {
|
|
4179
4179
|
ref_key: "stepRef",
|
|
4180
|
-
ref:
|
|
4181
|
-
class:
|
|
4180
|
+
ref: s,
|
|
4181
|
+
class: re(["step", `step__${y.value}`]),
|
|
4182
4182
|
role: "listitem",
|
|
4183
4183
|
"data-status": c.value,
|
|
4184
4184
|
"data-orientation": i.value,
|
|
@@ -4194,7 +4194,7 @@ const bo = {
|
|
|
4194
4194
|
}, [
|
|
4195
4195
|
g("span", {
|
|
4196
4196
|
ref_key: "indicatorRef",
|
|
4197
|
-
ref:
|
|
4197
|
+
ref: l,
|
|
4198
4198
|
class: "indicator",
|
|
4199
4199
|
"aria-hidden": "true"
|
|
4200
4200
|
}, [
|
|
@@ -4205,7 +4205,7 @@ const bo = {
|
|
|
4205
4205
|
key: 1,
|
|
4206
4206
|
name: L.value,
|
|
4207
4207
|
class: "icon"
|
|
4208
|
-
}, null, 8, ["name"])) :
|
|
4208
|
+
}, null, 8, ["name"])) : N("", !0),
|
|
4209
4209
|
c.value === "completed" ? (v(), f("svg", ba, [...p[0] || (p[0] = [
|
|
4210
4210
|
g("path", {
|
|
4211
4211
|
d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
|
|
@@ -4216,29 +4216,29 @@ const bo = {
|
|
|
4216
4216
|
d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
|
|
4217
4217
|
fill: "currentColor"
|
|
4218
4218
|
}, null, -1)
|
|
4219
|
-
])])) : c.value === "active" ? (v(), f("span", ka)) :
|
|
4219
|
+
])])) : c.value === "active" ? (v(), f("span", ka)) : N("", !0)
|
|
4220
4220
|
], 512),
|
|
4221
4221
|
g("span", {
|
|
4222
4222
|
id: `step-status-${R(d)}`,
|
|
4223
4223
|
class: "sr-only"
|
|
4224
|
-
},
|
|
4224
|
+
}, K(M.value), 9, wa),
|
|
4225
4225
|
g("div", Ma, [
|
|
4226
4226
|
g("span", {
|
|
4227
4227
|
id: `step-title-${R(d)}`,
|
|
4228
4228
|
class: "title"
|
|
4229
|
-
},
|
|
4230
|
-
|
|
4229
|
+
}, K(e.title), 9, La),
|
|
4230
|
+
P(T2, {
|
|
4231
4231
|
variant: u.value,
|
|
4232
4232
|
size: "sm"
|
|
4233
4233
|
}, {
|
|
4234
4234
|
default: G(() => [
|
|
4235
|
-
me(
|
|
4235
|
+
me(K(I.value), 1)
|
|
4236
4236
|
]),
|
|
4237
4237
|
_: 1
|
|
4238
4238
|
}, 8, ["variant"]),
|
|
4239
4239
|
E.$slots.default ? (v(), f("span", xa, [
|
|
4240
4240
|
U(E.$slots, "default", {}, void 0, !0)
|
|
4241
|
-
])) :
|
|
4241
|
+
])) : N("", !0)
|
|
4242
4242
|
])
|
|
4243
4243
|
], 42, ya));
|
|
4244
4244
|
}
|
|
@@ -4269,7 +4269,7 @@ const bo = {
|
|
|
4269
4269
|
}),
|
|
4270
4270
|
emits: ["update:modelValue"],
|
|
4271
4271
|
setup(e) {
|
|
4272
|
-
const o = e, t = C(0), a = qe(),
|
|
4272
|
+
const o = e, t = C(0), a = qe(), s = pe(e, "modelValue"), l = C([]), i = C(null), n = $(() => s.value ?? 0), r = `steps-description-${ie()}`, d = b1({}), c = o1({});
|
|
4273
4273
|
let h = null;
|
|
4274
4274
|
const L = $(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), M = $(() => Object.entries(c).filter(([, Z]) => Z !== "completed").length === 0), u = $(
|
|
4275
4275
|
() => Object.values(c).includes("error")
|
|
@@ -4304,19 +4304,19 @@ const bo = {
|
|
|
4304
4304
|
};
|
|
4305
4305
|
}), B = (Z, q) => d.value = { ...d.value, [Z]: q };
|
|
4306
4306
|
function k(Z) {
|
|
4307
|
-
|
|
4307
|
+
l.value.push(Z), t.value = l.value.length;
|
|
4308
4308
|
}
|
|
4309
4309
|
function D(Z) {
|
|
4310
|
-
|
|
4310
|
+
l.value = l.value.filter((q) => q !== Z), t.value = l.value.length;
|
|
4311
4311
|
}
|
|
4312
4312
|
function E(Z) {
|
|
4313
|
-
Z < 0 || Z >=
|
|
4313
|
+
Z < 0 || Z >= l.value.length || (s.value = Z, l.value[Z]?.focus());
|
|
4314
4314
|
}
|
|
4315
4315
|
function p() {
|
|
4316
|
-
E(
|
|
4316
|
+
E(s.value + 1);
|
|
4317
4317
|
}
|
|
4318
4318
|
function x() {
|
|
4319
|
-
E(
|
|
4319
|
+
E(s.value - 1);
|
|
4320
4320
|
}
|
|
4321
4321
|
function V() {
|
|
4322
4322
|
E(0);
|
|
@@ -4328,8 +4328,8 @@ const bo = {
|
|
|
4328
4328
|
i.value && (h = new ResizeObserver(() => {
|
|
4329
4329
|
}), h.observe(i.value));
|
|
4330
4330
|
}), ge(() => h?.disconnect()), be("StepsContext", {
|
|
4331
|
-
current: $(() =>
|
|
4332
|
-
update: (Z) =>
|
|
4331
|
+
current: $(() => s.value),
|
|
4332
|
+
update: (Z) => s.value = Z,
|
|
4333
4333
|
stepsCount: t,
|
|
4334
4334
|
icons: o.icons,
|
|
4335
4335
|
size: o.size,
|
|
@@ -4382,7 +4382,7 @@ const bo = {
|
|
|
4382
4382
|
_: 2
|
|
4383
4383
|
}, 1032, ["index"]))), 128))
|
|
4384
4384
|
], 8, Va),
|
|
4385
|
-
g("div", Ba, " Step " +
|
|
4385
|
+
g("div", Ba, " Step " + K(n.value + 1) + " of " + K(t.value) + ": " + K(L.value), 1)
|
|
4386
4386
|
], 64));
|
|
4387
4387
|
}
|
|
4388
4388
|
}), xo = /* @__PURE__ */ j(_a, [["__scopeId", "data-v-8697173d"]]), Ra = ["data-align"], Za = /* @__PURE__ */ _({
|
|
@@ -4410,18 +4410,18 @@ const bo = {
|
|
|
4410
4410
|
titleAs: {}
|
|
4411
4411
|
},
|
|
4412
4412
|
setup(e) {
|
|
4413
|
-
const o = e, t =
|
|
4413
|
+
const o = e, t = le("TimelineContext");
|
|
4414
4414
|
if (!t) throw new Error("TimelineItem must be used within a Timeline component");
|
|
4415
|
-
const a = ie(),
|
|
4415
|
+
const a = ie(), s = ie(), l = $(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (d) => {
|
|
4416
4416
|
const c = new Date(d).getDay();
|
|
4417
4417
|
return c < 10 ? `0${c}` : c;
|
|
4418
4418
|
}, n = (d) => new Date(d).toLocaleString("default", { month: "short" }), r = (d) => new Date(d).getFullYear();
|
|
4419
4419
|
return (d, c) => (v(), f("li", {
|
|
4420
4420
|
tabindex: "0",
|
|
4421
|
-
class:
|
|
4421
|
+
class: re([l.value, "ui-timeline-item"]),
|
|
4422
4422
|
"data-align": R(t).align,
|
|
4423
4423
|
"aria-labelledby": e.title ? R(a) : void 0,
|
|
4424
|
-
"aria-describedby": e.description ? R(
|
|
4424
|
+
"aria-describedby": e.description ? R(s) : void 0
|
|
4425
4425
|
}, [
|
|
4426
4426
|
c[0] || (c[0] = g("div", {
|
|
4427
4427
|
class: "ui-timeline-marker",
|
|
@@ -4433,10 +4433,10 @@ const bo = {
|
|
|
4433
4433
|
class: "ui-timeline-date",
|
|
4434
4434
|
datetime: e.date
|
|
4435
4435
|
}, [
|
|
4436
|
-
g("span", Ea,
|
|
4437
|
-
g("span", Da,
|
|
4438
|
-
g("span", za,
|
|
4439
|
-
], 8, Ta)) :
|
|
4436
|
+
g("span", Ea, K(n(e.date)), 1),
|
|
4437
|
+
g("span", Da, K(i(e.date)), 1),
|
|
4438
|
+
g("span", za, K(r(e.date)), 1)
|
|
4439
|
+
], 8, Ta)) : N("", !0),
|
|
4440
4440
|
g("div", {
|
|
4441
4441
|
class: "ui-timeline-body",
|
|
4442
4442
|
"data-direction": e.flexDirection
|
|
@@ -4448,7 +4448,7 @@ const bo = {
|
|
|
4448
4448
|
class: "ui-timeline-title"
|
|
4449
4449
|
}, {
|
|
4450
4450
|
default: G(() => [
|
|
4451
|
-
me(
|
|
4451
|
+
me(K(e.title), 1)
|
|
4452
4452
|
]),
|
|
4453
4453
|
_: 1
|
|
4454
4454
|
}, 8, ["id"]))
|
|
@@ -4456,9 +4456,9 @@ const bo = {
|
|
|
4456
4456
|
U(d.$slots, "description", {}, () => [
|
|
4457
4457
|
e.description ? (v(), f("p", {
|
|
4458
4458
|
key: 0,
|
|
4459
|
-
id: R(
|
|
4459
|
+
id: R(s),
|
|
4460
4460
|
class: "ui-timeline-description"
|
|
4461
|
-
},
|
|
4461
|
+
}, K(e.description), 9, Na)) : N("", !0)
|
|
4462
4462
|
], !0)
|
|
4463
4463
|
]),
|
|
4464
4464
|
g("div", Fa, [
|
|
@@ -4497,14 +4497,14 @@ const bo = {
|
|
|
4497
4497
|
}),
|
|
4498
4498
|
emits: ["update:modelValue"],
|
|
4499
4499
|
setup(e) {
|
|
4500
|
-
const o = pe(e, "modelValue"), t = e, a = C(0),
|
|
4500
|
+
const o = pe(e, "modelValue"), t = e, a = C(0), s = C(0), l = C(0), i = C(0), n = C(0), r = C(0), d = C(!1), c = C(!1), h = C(0), L = C([]), M = C(1), u = C(o.value), y = C(null), I = C(null);
|
|
4501
4501
|
let B = null, k = null;
|
|
4502
4502
|
Y(
|
|
4503
4503
|
() => o.value,
|
|
4504
4504
|
(S) => u.value = S
|
|
4505
4505
|
);
|
|
4506
4506
|
const D = $(() => L.value[u.value] ?? void 0), E = $(() => Math.floor(u.value / M.value)), p = $(() => Math.ceil(w.value / M.value)), x = $(() => Math.max(0, w.value - M.value)), V = $(() => {
|
|
4507
|
-
const S = u.value * (100 / M.value), X = c.value && I.value ?
|
|
4507
|
+
const S = u.value * (100 / M.value), X = c.value && I.value ? l.value / I.value.clientWidth * 100 : 0;
|
|
4508
4508
|
return {
|
|
4509
4509
|
transform: `translateX(calc(-${S}% + ${X}%))`,
|
|
4510
4510
|
transition: c.value ? "none" : "transform 300ms ease"
|
|
@@ -4512,8 +4512,8 @@ const bo = {
|
|
|
4512
4512
|
}), O = (S) => {
|
|
4513
4513
|
let X = S;
|
|
4514
4514
|
if (t.loop) {
|
|
4515
|
-
const
|
|
4516
|
-
X = (
|
|
4515
|
+
const se = Math.round(S / M.value), ee = p.value;
|
|
4516
|
+
X = (se % ee + ee) % ee * M.value;
|
|
4517
4517
|
} else
|
|
4518
4518
|
X = Math.min(
|
|
4519
4519
|
Math.max(S, 0),
|
|
@@ -4532,20 +4532,20 @@ const bo = {
|
|
|
4532
4532
|
if (typeof t.itemsPerView == "number")
|
|
4533
4533
|
return t.itemsPerView;
|
|
4534
4534
|
const X = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
|
|
4535
|
-
let
|
|
4536
|
-
for (const [ee, ke] of X) S >= ee && (
|
|
4537
|
-
return
|
|
4535
|
+
let se = X[0]?.[1] ?? 1;
|
|
4536
|
+
for (const [ee, ke] of X) S >= ee && (se = ke);
|
|
4537
|
+
return se;
|
|
4538
4538
|
}, H = (S) => {
|
|
4539
|
-
S.button === 0 && (c.value = !0,
|
|
4539
|
+
S.button === 0 && (c.value = !0, s.value = S.clientX, a.value = S.clientX, r.value = S.clientX, l.value = 0, i.value = performance.now(), n.value = 0, h.value = u.value, I.value?.setPointerCapture(S.pointerId), J(), I.value.style.userSelect = "");
|
|
4540
4540
|
}, z = (S) => {
|
|
4541
4541
|
if (!c.value) return;
|
|
4542
|
-
const X = performance.now(),
|
|
4543
|
-
ee > 0 && (n.value =
|
|
4542
|
+
const X = performance.now(), se = S.clientX - a.value, ee = X - i.value;
|
|
4543
|
+
ee > 0 && (n.value = se / ee), a.value = S.clientX, i.value = X, r.value = S.clientX, l.value = r.value - s.value;
|
|
4544
4544
|
}, Q = (S) => {
|
|
4545
4545
|
if (!c.value) return;
|
|
4546
4546
|
c.value = !1, I.value?.releasePointerCapture(S.pointerId), I.value.style.userSelect = "";
|
|
4547
|
-
const X = I.value.clientWidth / M.value,
|
|
4548
|
-
Math.abs(n.value) > Wa ? n.value < 0 ? Z() : q() : Math.abs(
|
|
4547
|
+
const X = I.value.clientWidth / M.value, se = l.value / X;
|
|
4548
|
+
Math.abs(n.value) > Wa ? n.value < 0 ? Z() : q() : Math.abs(se) > Ja ? se < 0 ? Z() : q() : O(h.value), l.value = 0, n.value = 0, A();
|
|
4549
4549
|
};
|
|
4550
4550
|
return te(() => {
|
|
4551
4551
|
A(), y.value && (k = new ResizeObserver((S) => {
|
|
@@ -4565,7 +4565,7 @@ const bo = {
|
|
|
4565
4565
|
unregister: T,
|
|
4566
4566
|
activeIndex: u,
|
|
4567
4567
|
slideCount: w,
|
|
4568
|
-
deltaX:
|
|
4568
|
+
deltaX: l,
|
|
4569
4569
|
itemsPerView: t.itemsPerView instanceof Object ? M : C(t.itemsPerView)
|
|
4570
4570
|
}), (S, X) => (v(), f("div", {
|
|
4571
4571
|
ref_key: "rootRef",
|
|
@@ -4578,10 +4578,10 @@ const bo = {
|
|
|
4578
4578
|
"aria-activedescendant": D.value,
|
|
4579
4579
|
style: ye({ "--items-per-view": M.value }),
|
|
4580
4580
|
onKeydown: m,
|
|
4581
|
-
onMouseenter: X[0] || (X[0] = (
|
|
4582
|
-
onMouseleave: X[1] || (X[1] = (
|
|
4583
|
-
onFocusin: X[2] || (X[2] = (
|
|
4584
|
-
onFocusout: X[3] || (X[3] = (
|
|
4581
|
+
onMouseenter: X[0] || (X[0] = (se) => d.value = !0),
|
|
4582
|
+
onMouseleave: X[1] || (X[1] = (se) => d.value = !1),
|
|
4583
|
+
onFocusin: X[2] || (X[2] = (se) => d.value = !0),
|
|
4584
|
+
onFocusout: X[3] || (X[3] = (se) => d.value = !1)
|
|
4585
4585
|
}, [
|
|
4586
4586
|
X[4] || (X[4] = g("span", {
|
|
4587
4587
|
id: "carousel-instructions",
|
|
@@ -4601,14 +4601,14 @@ const bo = {
|
|
|
4601
4601
|
U(S.$slots, "default", {}, void 0, !0)
|
|
4602
4602
|
], 36)
|
|
4603
4603
|
]),
|
|
4604
|
-
g("span", ja, " Slide " +
|
|
4604
|
+
g("span", ja, " Slide " + K(Math.floor(u.value / M.value) + 1) + " of " + K(p.value), 1),
|
|
4605
4605
|
g("button", {
|
|
4606
4606
|
type: "button",
|
|
4607
4607
|
class: "carousel-control prev",
|
|
4608
4608
|
"aria-label": "Previous slide",
|
|
4609
4609
|
onClick: q
|
|
4610
4610
|
}, [
|
|
4611
|
-
|
|
4611
|
+
P(ue, { name: "directionDown" })
|
|
4612
4612
|
]),
|
|
4613
4613
|
g("button", {
|
|
4614
4614
|
type: "button",
|
|
@@ -4616,14 +4616,14 @@ const bo = {
|
|
|
4616
4616
|
"aria-label": "Next slide",
|
|
4617
4617
|
onClick: Z
|
|
4618
4618
|
}, [
|
|
4619
|
-
|
|
4619
|
+
P(ue, { name: "directionDown" })
|
|
4620
4620
|
]),
|
|
4621
4621
|
e.showIndicators ? (v(), f("div", Xa, [
|
|
4622
|
-
(v(!0), f(ae, null, ce(p.value, (
|
|
4622
|
+
(v(!0), f(ae, null, ce(p.value, (se, ee) => (v(), f("button", {
|
|
4623
4623
|
role: "tab",
|
|
4624
4624
|
type: "button",
|
|
4625
4625
|
key: ee,
|
|
4626
|
-
class:
|
|
4626
|
+
class: re(["indicator", { active: ee === Math.floor(u.value / M.value) }]),
|
|
4627
4627
|
"aria-label": `Go to slide ${ee + 1}`,
|
|
4628
4628
|
"aria-selected": ee === E.value,
|
|
4629
4629
|
"aria-current": ee === E.value,
|
|
@@ -4633,23 +4633,23 @@ const bo = {
|
|
|
4633
4633
|
fe(ne((ke) => O((ee + 1) % p.value * M.value), ["prevent"]), ["right"])
|
|
4634
4634
|
]
|
|
4635
4635
|
}, null, 42, Ga))), 128))
|
|
4636
|
-
])) :
|
|
4636
|
+
])) : N("", !0)
|
|
4637
4637
|
], 44, Pa));
|
|
4638
4638
|
}
|
|
4639
4639
|
}), Vo = /* @__PURE__ */ j(Ya, [["__scopeId", "data-v-30cdfc00"]]), Qa = ["aria-hidden", "aria-label"], eo = /* @__PURE__ */ _({
|
|
4640
4640
|
__name: "CarouselItem",
|
|
4641
4641
|
setup(e) {
|
|
4642
|
-
const o =
|
|
4642
|
+
const o = le("CarouselContext");
|
|
4643
4643
|
if (!o) throw new Error("CarouselItem must be used inside a Carousel");
|
|
4644
|
-
const t = "carousel-item-" + ie(), a = C(0),
|
|
4644
|
+
const t = "carousel-item-" + ie(), a = C(0), s = $(() => Math.abs(o.deltaX.value) > 5), l = $(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
|
|
4645
4645
|
return te(() => a.value = o.register(t)), ge(() => o.unregister(t)), (i, n) => (v(), f("div", {
|
|
4646
4646
|
role: "group",
|
|
4647
4647
|
class: "carousel-item",
|
|
4648
4648
|
id: t,
|
|
4649
4649
|
"aria-roledescription": "slide",
|
|
4650
|
-
"aria-hidden": !
|
|
4650
|
+
"aria-hidden": !l.value,
|
|
4651
4651
|
"aria-label": `Slide ${a.value + 1}`,
|
|
4652
|
-
onClickCapture: n[0] || (n[0] = (r) =>
|
|
4652
|
+
onClickCapture: n[0] || (n[0] = (r) => s.value && r.preventDefault())
|
|
4653
4653
|
}, [
|
|
4654
4654
|
U(i.$slots, "default", {}, void 0, !0)
|
|
4655
4655
|
], 40, Qa));
|
|
@@ -4670,21 +4670,21 @@ const bo = {
|
|
|
4670
4670
|
},
|
|
4671
4671
|
emits: ["update:modelValue"],
|
|
4672
4672
|
setup(e, { emit: o, slots: t }) {
|
|
4673
|
-
const a = C(e.modelValue ?? e.defaultValue),
|
|
4673
|
+
const a = C(e.modelValue ?? e.defaultValue), s = C(!1), l = C([]), i = C("forward"), n = C();
|
|
4674
4674
|
Y(a, (u) => {
|
|
4675
|
-
!u || !
|
|
4676
|
-
document.getElementById(`tab-${u}`)?.focus(),
|
|
4675
|
+
!u || !s.value || requestAnimationFrame(() => {
|
|
4676
|
+
document.getElementById(`tab-${u}`)?.focus(), s.value = !1;
|
|
4677
4677
|
});
|
|
4678
4678
|
}), Y(
|
|
4679
4679
|
() => e.modelValue,
|
|
4680
4680
|
(u) => {
|
|
4681
4681
|
u !== void 0 && (a.value = u);
|
|
4682
4682
|
}
|
|
4683
|
-
), Y(
|
|
4683
|
+
), Y(l, (u) => {
|
|
4684
4684
|
!a.value && u.length && (a.value = u[0]);
|
|
4685
4685
|
});
|
|
4686
|
-
const r = (u, y) =>
|
|
4687
|
-
const y =
|
|
4686
|
+
const r = (u, y) => l.value[y] = u, d = (u) => {
|
|
4687
|
+
const y = l.value.filter(Boolean);
|
|
4688
4688
|
if (!y.length) return;
|
|
4689
4689
|
const I = a.value;
|
|
4690
4690
|
if (!I) {
|
|
@@ -4716,9 +4716,9 @@ const bo = {
|
|
|
4716
4716
|
direction: i,
|
|
4717
4717
|
activationMode: C(e.activationMode),
|
|
4718
4718
|
orientation: C(e.orientation),
|
|
4719
|
-
triggers:
|
|
4719
|
+
triggers: l,
|
|
4720
4720
|
contentWrapperRef: n,
|
|
4721
|
-
focusOnChange:
|
|
4721
|
+
focusOnChange: s
|
|
4722
4722
|
}), () => {
|
|
4723
4723
|
const u = t.default?.() || [], y = [], I = [];
|
|
4724
4724
|
u.forEach((k) => {
|
|
@@ -4727,13 +4727,13 @@ const bo = {
|
|
|
4727
4727
|
const B = I.find((k) => k.props?.value === a.value);
|
|
4728
4728
|
return [
|
|
4729
4729
|
...y,
|
|
4730
|
-
|
|
4730
|
+
F(
|
|
4731
4731
|
"div",
|
|
4732
4732
|
{
|
|
4733
4733
|
class: "tabs-content-wrapper",
|
|
4734
4734
|
ref: n
|
|
4735
4735
|
},
|
|
4736
|
-
|
|
4736
|
+
F(
|
|
4737
4737
|
$e,
|
|
4738
4738
|
{
|
|
4739
4739
|
name: c.value,
|
|
@@ -4742,7 +4742,7 @@ const bo = {
|
|
|
4742
4742
|
onEnter: L,
|
|
4743
4743
|
onAfterEnter: M
|
|
4744
4744
|
},
|
|
4745
|
-
() => B ? [
|
|
4745
|
+
() => B ? [F(B.type, {
|
|
4746
4746
|
...B.props,
|
|
4747
4747
|
key: B.props.value
|
|
4748
4748
|
}, B.children)] : []
|
|
@@ -4754,9 +4754,9 @@ const bo = {
|
|
|
4754
4754
|
}), _o = _({
|
|
4755
4755
|
name: "TabsList",
|
|
4756
4756
|
setup(e, { slots: o }) {
|
|
4757
|
-
const t =
|
|
4757
|
+
const t = le(Ze);
|
|
4758
4758
|
if (!t) throw new Error("TabsList components must be used inside <Tabs>");
|
|
4759
|
-
return () =>
|
|
4759
|
+
return () => F(
|
|
4760
4760
|
"div",
|
|
4761
4761
|
{
|
|
4762
4762
|
role: "tablist",
|
|
@@ -4783,9 +4783,9 @@ const bo = {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
},
|
|
4785
4785
|
setup(e, { slots: o }) {
|
|
4786
|
-
const t =
|
|
4786
|
+
const t = le(Ze);
|
|
4787
4787
|
if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
|
|
4788
|
-
const a = $(() => t.activeValue.value === e.value),
|
|
4788
|
+
const a = $(() => t.activeValue.value === e.value), s = () => !e.disabled && t.setValue(e.value), l = (i) => {
|
|
4789
4789
|
if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
|
|
4790
4790
|
i.preventDefault();
|
|
4791
4791
|
const r = t.triggers.value.filter(Boolean);
|
|
@@ -4817,7 +4817,7 @@ const bo = {
|
|
|
4817
4817
|
document.getElementById(`tab-${L}`)?.focus();
|
|
4818
4818
|
});
|
|
4819
4819
|
};
|
|
4820
|
-
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ge(() => t.triggers.value[e.index] = void 0), () =>
|
|
4820
|
+
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ge(() => t.triggers.value[e.index] = void 0), () => F(
|
|
4821
4821
|
he,
|
|
4822
4822
|
{
|
|
4823
4823
|
role: "tab",
|
|
@@ -4828,8 +4828,8 @@ const bo = {
|
|
|
4828
4828
|
tabindex: a.value ? 0 : -1,
|
|
4829
4829
|
disabled: e.disabled ?? void 0,
|
|
4830
4830
|
class: "tabs-trigger",
|
|
4831
|
-
onClick:
|
|
4832
|
-
onKeydown:
|
|
4831
|
+
onClick: s,
|
|
4832
|
+
onKeydown: l
|
|
4833
4833
|
},
|
|
4834
4834
|
{ default: () => o.default?.() }
|
|
4835
4835
|
);
|
|
@@ -4843,8 +4843,8 @@ const bo = {
|
|
|
4843
4843
|
}
|
|
4844
4844
|
},
|
|
4845
4845
|
setup(e, { slots: o }) {
|
|
4846
|
-
if (!
|
|
4847
|
-
return () =>
|
|
4846
|
+
if (!le(Ze)) throw new Error("TabsContent components must be used inside <Tabs>");
|
|
4847
|
+
return () => F(
|
|
4848
4848
|
"div",
|
|
4849
4849
|
{
|
|
4850
4850
|
id: `panel-${e.value}`,
|
|
@@ -4860,27 +4860,27 @@ const bo = {
|
|
|
4860
4860
|
__name: "Dropdown",
|
|
4861
4861
|
setup(e) {
|
|
4862
4862
|
let o = 0;
|
|
4863
|
-
const t = C(!1), a = C(null),
|
|
4864
|
-
t.value = !1,
|
|
4863
|
+
const t = C(!1), a = C(null), s = C({}), l = `dropdown-${ie()}`, i = `${l}-menu`, n = `${l}-trigger`, r = () => t.value = !0, d = () => {
|
|
4864
|
+
t.value = !1, s.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
|
|
4865
4865
|
}, c = () => t.value = !t.value, h = (k) => {
|
|
4866
4866
|
const D = `dropdown-item-${o++}`;
|
|
4867
|
-
return
|
|
4867
|
+
return s.value[D] = k, D;
|
|
4868
4868
|
}, L = (k) => {
|
|
4869
|
-
const D =
|
|
4869
|
+
const D = s.value[k];
|
|
4870
4870
|
D && D.focus();
|
|
4871
4871
|
}, M = () => {
|
|
4872
|
-
const k = Object.keys(
|
|
4872
|
+
const k = Object.keys(s.value)[0];
|
|
4873
4873
|
k && L(k);
|
|
4874
4874
|
}, u = () => {
|
|
4875
|
-
const k = Object.keys(
|
|
4875
|
+
const k = Object.keys(s.value), D = k[k.length - 1];
|
|
4876
4876
|
D && L(D);
|
|
4877
4877
|
}, y = (k) => {
|
|
4878
|
-
const D = Object.keys(
|
|
4878
|
+
const D = Object.keys(s.value), E = B(k), p = D[E + 1];
|
|
4879
4879
|
E >= 0 && E < D.length - 1 && p && L(p);
|
|
4880
4880
|
}, I = (k) => {
|
|
4881
|
-
const D = Object.keys(
|
|
4881
|
+
const D = Object.keys(s.value), E = B(k), p = D[E - 1];
|
|
4882
4882
|
E > 0 && p && L(p);
|
|
4883
|
-
}, B = (k) => Object.keys(
|
|
4883
|
+
}, B = (k) => Object.keys(s.value).indexOf(k);
|
|
4884
4884
|
return be("DropdownContext", {
|
|
4885
4885
|
open: r,
|
|
4886
4886
|
close: d,
|
|
@@ -4901,39 +4901,45 @@ const bo = {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
}), ao = /* @__PURE__ */ _({
|
|
4903
4903
|
__name: "DropdownTrigger",
|
|
4904
|
+
props: {
|
|
4905
|
+
variant: { default: "button" }
|
|
4906
|
+
},
|
|
4904
4907
|
setup(e) {
|
|
4905
|
-
const o =
|
|
4906
|
-
if (!
|
|
4907
|
-
const
|
|
4908
|
-
l.key === "ArrowDown" && (l.preventDefault(),
|
|
4908
|
+
const o = e, t = le("DropdownContext");
|
|
4909
|
+
if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
|
|
4910
|
+
const a = C(), s = (l) => {
|
|
4911
|
+
l.key === "ArrowDown" && (l.preventDefault(), t.open(), Le(() => t.focusFirstItem())), l.key === "ArrowUp" && (l.preventDefault(), t.open(), Le(() => t.focusLastItem()));
|
|
4909
4912
|
};
|
|
4910
|
-
return te(() =>
|
|
4913
|
+
return te(() => t.triggerRef.value = a.value?.el), (l, i) => (v(), W(he, {
|
|
4911
4914
|
ref_key: "btn",
|
|
4912
|
-
ref:
|
|
4913
|
-
id: R(
|
|
4914
|
-
class: "
|
|
4915
|
+
ref: a,
|
|
4916
|
+
id: R(t).triggerId,
|
|
4917
|
+
class: re(["ui-dropdown-trigger", { "btn-outline": o.variant === "button" }]),
|
|
4915
4918
|
"aria-haspopup": "menu",
|
|
4916
|
-
"aria-controls": R(
|
|
4917
|
-
"aria-expanded": R(
|
|
4918
|
-
onClick: R(
|
|
4919
|
-
onKeydown:
|
|
4919
|
+
"aria-controls": R(t).menuId,
|
|
4920
|
+
"aria-expanded": R(t).isOpen.value,
|
|
4921
|
+
onClick: R(t).toggle,
|
|
4922
|
+
onKeydown: s
|
|
4920
4923
|
}, {
|
|
4921
4924
|
default: G(() => [
|
|
4922
4925
|
U(l.$slots, "default", {}, void 0, !0),
|
|
4923
|
-
|
|
4926
|
+
o.variant === "button" ? (v(), W(ue, {
|
|
4927
|
+
key: 0,
|
|
4928
|
+
name: "directionDown"
|
|
4929
|
+
})) : N("", !0)
|
|
4924
4930
|
]),
|
|
4925
4931
|
_: 3
|
|
4926
|
-
}, 8, ["id", "aria-controls", "aria-expanded", "onClick"]));
|
|
4932
|
+
}, 8, ["id", "class", "aria-controls", "aria-expanded", "onClick"]));
|
|
4927
4933
|
}
|
|
4928
|
-
}), So = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-
|
|
4934
|
+
}), So = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-267a3d51"]]), oo = ["id", "aria-labelledby"], no = /* @__PURE__ */ _({
|
|
4929
4935
|
__name: "DropdownMenu",
|
|
4930
4936
|
setup(e) {
|
|
4931
|
-
const o =
|
|
4937
|
+
const o = le("DropdownContext");
|
|
4932
4938
|
if (!o) throw new Error("DropdownMenu must be used within a Dropdown");
|
|
4933
|
-
const t = C(), a = C({}),
|
|
4939
|
+
const t = C(), a = C({}), s = (n) => {
|
|
4934
4940
|
const r = n.target;
|
|
4935
4941
|
t.value?.contains(r) || o.triggerRef.value?.contains(r) || o.close();
|
|
4936
|
-
},
|
|
4942
|
+
}, l = (n) => n.key === "Escape" && o.close(), i = () => {
|
|
4937
4943
|
const n = o.triggerRef.value;
|
|
4938
4944
|
if (!n) return;
|
|
4939
4945
|
const r = n.getBoundingClientRect();
|
|
@@ -4951,7 +4957,7 @@ const bo = {
|
|
|
4951
4957
|
), Y(
|
|
4952
4958
|
() => o.isOpen.value,
|
|
4953
4959
|
(n) => {
|
|
4954
|
-
n ? document.addEventListener("pointerdown",
|
|
4960
|
+
n ? document.addEventListener("pointerdown", s, !0) : document.removeEventListener("pointerdown", s, !0);
|
|
4955
4961
|
}
|
|
4956
4962
|
), te(() => {
|
|
4957
4963
|
window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
|
|
@@ -4968,33 +4974,33 @@ const bo = {
|
|
|
4968
4974
|
"aria-orientation": "vertical",
|
|
4969
4975
|
"aria-labelledby": R(o).triggerId,
|
|
4970
4976
|
class: "ui-dropdown-menu",
|
|
4971
|
-
onKeydown:
|
|
4977
|
+
onKeydown: l
|
|
4972
4978
|
}, [
|
|
4973
4979
|
U(n.$slots, "default", {}, void 0, !0)
|
|
4974
|
-
], 44, oo)) :
|
|
4980
|
+
], 44, oo)) : N("", !0)
|
|
4975
4981
|
]));
|
|
4976
4982
|
}
|
|
4977
4983
|
}), To = /* @__PURE__ */ j(no, [["__scopeId", "data-v-3b7b0ae5"]]), ro = /* @__PURE__ */ _({
|
|
4978
4984
|
__name: "DropdownItem",
|
|
4979
4985
|
setup(e) {
|
|
4980
|
-
const o =
|
|
4986
|
+
const o = le("DropdownContext");
|
|
4981
4987
|
if (!o) throw new Error("DropdownItem must be used within a Dropdown");
|
|
4982
4988
|
let t;
|
|
4983
|
-
const a = C(),
|
|
4984
|
-
|
|
4989
|
+
const a = C(), s = (l) => {
|
|
4990
|
+
l.key === "ArrowDown" && (l.preventDefault(), o.focusNextItem(t)), l.key === "ArrowUp" && (l.preventDefault(), o.focusPrevItem(t)), (l.key === "Enter" || l.key === " ") && (l.preventDefault(), a.value?.click(), o.close());
|
|
4985
4991
|
};
|
|
4986
|
-
return te(() => t = o.registerItem(a.value)), (
|
|
4992
|
+
return te(() => t = o.registerItem(a.value)), (l, i) => (v(), f("div", {
|
|
4987
4993
|
ref_key: "itemRef",
|
|
4988
4994
|
ref: a,
|
|
4989
4995
|
role: "menuitem",
|
|
4990
4996
|
class: "ui-dropdown-item",
|
|
4991
4997
|
tabindex: "-1",
|
|
4992
|
-
onKeydown:
|
|
4998
|
+
onKeydown: s,
|
|
4993
4999
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
4994
5000
|
(...n) => R(o).close && R(o).close(...n)),
|
|
4995
5001
|
onPointerenter: i[1] || (i[1] = (n) => a.value?.focus())
|
|
4996
5002
|
}, [
|
|
4997
|
-
U(
|
|
5003
|
+
U(l.$slots, "default", {}, void 0, !0)
|
|
4998
5004
|
], 544));
|
|
4999
5005
|
}
|
|
5000
5006
|
}), Eo = /* @__PURE__ */ j(ro, [["__scopeId", "data-v-69de3d9c"]]), Do = _({
|
|
@@ -5028,7 +5034,7 @@ const bo = {
|
|
|
5028
5034
|
if (!n.sortable) return;
|
|
5029
5035
|
const r = e.sort?.key === n.key && e.sort.direction === "asc" ? "desc" : "asc";
|
|
5030
5036
|
o("update:sort", { key: n.key, direction: r });
|
|
5031
|
-
},
|
|
5037
|
+
}, s = () => window.matchMedia("(max-width: 640px)").matches, l = () => F(
|
|
5032
5038
|
"div",
|
|
5033
5039
|
{
|
|
5034
5040
|
class: "rs-table-mobile",
|
|
@@ -5036,7 +5042,7 @@ const bo = {
|
|
|
5036
5042
|
"aria-busy": e.loading || void 0
|
|
5037
5043
|
},
|
|
5038
5044
|
e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
|
|
5039
|
-
(n, r) =>
|
|
5045
|
+
(n, r) => F(
|
|
5040
5046
|
"div",
|
|
5041
5047
|
{
|
|
5042
5048
|
key: n.id ?? r,
|
|
@@ -5049,16 +5055,16 @@ const bo = {
|
|
|
5049
5055
|
} : void 0
|
|
5050
5056
|
},
|
|
5051
5057
|
e.columns.map(
|
|
5052
|
-
(d) =>
|
|
5058
|
+
(d) => F(
|
|
5053
5059
|
"div",
|
|
5054
5060
|
{ class: "rs-table-card-row" },
|
|
5055
5061
|
[
|
|
5056
|
-
|
|
5062
|
+
F(
|
|
5057
5063
|
"span",
|
|
5058
5064
|
{ class: "rs-table-card-label" },
|
|
5059
5065
|
d.header
|
|
5060
5066
|
),
|
|
5061
|
-
|
|
5067
|
+
F(
|
|
5062
5068
|
"span",
|
|
5063
5069
|
{ class: "rs-table-card-value" },
|
|
5064
5070
|
t.cell?.({
|
|
@@ -5072,27 +5078,27 @@ const bo = {
|
|
|
5072
5078
|
)
|
|
5073
5079
|
)
|
|
5074
5080
|
)
|
|
5075
|
-
), i = () =>
|
|
5081
|
+
), i = () => F(
|
|
5076
5082
|
"div",
|
|
5077
5083
|
{ class: "rs-table-container" },
|
|
5078
|
-
|
|
5084
|
+
F(
|
|
5079
5085
|
"div",
|
|
5080
5086
|
{ class: "rs-table-scroll" },
|
|
5081
|
-
|
|
5087
|
+
F(
|
|
5082
5088
|
"table",
|
|
5083
5089
|
{
|
|
5084
5090
|
class: "rs-table",
|
|
5085
5091
|
"aria-busy": e.loading || void 0
|
|
5086
5092
|
},
|
|
5087
5093
|
[
|
|
5088
|
-
|
|
5094
|
+
F(
|
|
5089
5095
|
"thead",
|
|
5090
5096
|
null,
|
|
5091
|
-
|
|
5097
|
+
F(
|
|
5092
5098
|
"tr",
|
|
5093
5099
|
null,
|
|
5094
5100
|
e.columns.map(
|
|
5095
|
-
(n) =>
|
|
5101
|
+
(n) => F(
|
|
5096
5102
|
"th",
|
|
5097
5103
|
{
|
|
5098
5104
|
key: n.key,
|
|
@@ -5108,15 +5114,15 @@ const bo = {
|
|
|
5108
5114
|
} : void 0,
|
|
5109
5115
|
scope: "col"
|
|
5110
5116
|
},
|
|
5111
|
-
|
|
5117
|
+
F(
|
|
5112
5118
|
"div",
|
|
5113
5119
|
{ class: "rs-table-th-content" },
|
|
5114
5120
|
[
|
|
5115
|
-
|
|
5121
|
+
F(
|
|
5116
5122
|
"span",
|
|
5117
5123
|
n.header
|
|
5118
5124
|
),
|
|
5119
|
-
n.sortable ?
|
|
5125
|
+
n.sortable ? F(
|
|
5120
5126
|
ue,
|
|
5121
5127
|
{
|
|
5122
5128
|
name: e.sort?.key === n.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
|
|
@@ -5129,15 +5135,15 @@ const bo = {
|
|
|
5129
5135
|
)
|
|
5130
5136
|
)
|
|
5131
5137
|
),
|
|
5132
|
-
|
|
5138
|
+
F(
|
|
5133
5139
|
"tbody",
|
|
5134
5140
|
null,
|
|
5135
5141
|
e.loading ? [
|
|
5136
|
-
|
|
5142
|
+
F(
|
|
5137
5143
|
"tr",
|
|
5138
5144
|
null,
|
|
5139
5145
|
[
|
|
5140
|
-
|
|
5146
|
+
F(
|
|
5141
5147
|
"td",
|
|
5142
5148
|
{ colspan: e.columns.length },
|
|
5143
5149
|
t.loading?.() ?? "Loading..."
|
|
@@ -5145,11 +5151,11 @@ const bo = {
|
|
|
5145
5151
|
]
|
|
5146
5152
|
)
|
|
5147
5153
|
] : e.data.length === 0 ? [
|
|
5148
|
-
|
|
5154
|
+
F(
|
|
5149
5155
|
"tr",
|
|
5150
5156
|
null,
|
|
5151
5157
|
[
|
|
5152
|
-
|
|
5158
|
+
F(
|
|
5153
5159
|
"td",
|
|
5154
5160
|
{ colspan: e.columns.length },
|
|
5155
5161
|
t.empty?.() ?? "No data available."
|
|
@@ -5157,7 +5163,7 @@ const bo = {
|
|
|
5157
5163
|
]
|
|
5158
5164
|
)
|
|
5159
5165
|
] : e.data.map(
|
|
5160
|
-
(n, r) =>
|
|
5166
|
+
(n, r) => F(
|
|
5161
5167
|
"tr",
|
|
5162
5168
|
{
|
|
5163
5169
|
key: n.id ?? r,
|
|
@@ -5170,7 +5176,7 @@ const bo = {
|
|
|
5170
5176
|
"data-clickable": e.rowClickable || void 0
|
|
5171
5177
|
},
|
|
5172
5178
|
e.columns.map(
|
|
5173
|
-
(d) =>
|
|
5179
|
+
(d) => F(
|
|
5174
5180
|
"td",
|
|
5175
5181
|
{
|
|
5176
5182
|
key: d.key,
|
|
@@ -5193,11 +5199,11 @@ const bo = {
|
|
|
5193
5199
|
)
|
|
5194
5200
|
);
|
|
5195
5201
|
return () => {
|
|
5196
|
-
const n = e.responsive === "card" || e.responsive === "auto" &&
|
|
5197
|
-
return
|
|
5202
|
+
const n = e.responsive === "card" || e.responsive === "auto" && s();
|
|
5203
|
+
return F(
|
|
5198
5204
|
"div",
|
|
5199
5205
|
{ class: "rs-table-container" },
|
|
5200
|
-
n ?
|
|
5206
|
+
n ? l() : i()
|
|
5201
5207
|
);
|
|
5202
5208
|
};
|
|
5203
5209
|
}
|
|
@@ -5211,13 +5217,13 @@ const bo = {
|
|
|
5211
5217
|
}
|
|
5212
5218
|
},
|
|
5213
5219
|
setup(e, { slots: o }) {
|
|
5214
|
-
const t = C([]), a = C(new Set(e.defaultOpen)),
|
|
5220
|
+
const t = C([]), a = C(new Set(e.defaultOpen)), s = (h) => {
|
|
5215
5221
|
if (a.value.has(h)) {
|
|
5216
5222
|
a.value.delete(h);
|
|
5217
5223
|
return;
|
|
5218
5224
|
}
|
|
5219
5225
|
e.multiple || a.value.clear(), a.value.add(h);
|
|
5220
|
-
},
|
|
5226
|
+
}, l = (h) => {
|
|
5221
5227
|
h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((L, M) => L.offsetTop - M.offsetTop));
|
|
5222
5228
|
}, i = (h) => t.value = t.value.filter((L) => L !== h), n = (h) => {
|
|
5223
5229
|
const L = t.value.indexOf(h);
|
|
@@ -5232,8 +5238,8 @@ const bo = {
|
|
|
5232
5238
|
return be(Ae, {
|
|
5233
5239
|
multiple: e.multiple,
|
|
5234
5240
|
openItems: a,
|
|
5235
|
-
toggle:
|
|
5236
|
-
registerHeader:
|
|
5241
|
+
toggle: s,
|
|
5242
|
+
registerHeader: l,
|
|
5237
5243
|
unregisterHeader: i,
|
|
5238
5244
|
focusNext: n,
|
|
5239
5245
|
focusPrev: r,
|
|
@@ -5248,10 +5254,10 @@ const bo = {
|
|
|
5248
5254
|
disabled: { type: Boolean, default: !1 }
|
|
5249
5255
|
},
|
|
5250
5256
|
setup(e, { slots: o }) {
|
|
5251
|
-
const t =
|
|
5257
|
+
const t = le(Ae);
|
|
5252
5258
|
if (!t) throw new Error("AccordionItem must be used inside Accordion");
|
|
5253
5259
|
const a = $(() => t.openItems.value.has(e.id));
|
|
5254
|
-
return () =>
|
|
5260
|
+
return () => F(
|
|
5255
5261
|
"div",
|
|
5256
5262
|
{
|
|
5257
5263
|
class: "rs-accordion-item",
|
|
@@ -5267,9 +5273,9 @@ const bo = {
|
|
|
5267
5273
|
disabled: { type: Boolean, default: !1 }
|
|
5268
5274
|
},
|
|
5269
5275
|
setup(e, { slots: o }) {
|
|
5270
|
-
const t =
|
|
5276
|
+
const t = le(Ae), a = C(null);
|
|
5271
5277
|
if (!t) throw new Error("AccordionHeader must be used inside Accordion");
|
|
5272
|
-
const
|
|
5278
|
+
const s = $(() => t.openItems.value.has(e.id)), l = () => {
|
|
5273
5279
|
e.disabled || t.toggle?.(e.id);
|
|
5274
5280
|
}, i = (n) => {
|
|
5275
5281
|
if (a.value)
|
|
@@ -5292,30 +5298,30 @@ const bo = {
|
|
|
5292
5298
|
a.value && t.registerHeader(a.value);
|
|
5293
5299
|
}), He(() => {
|
|
5294
5300
|
a.value && t.unregisterHeader(a.value);
|
|
5295
|
-
}), () =>
|
|
5301
|
+
}), () => F(
|
|
5296
5302
|
"button",
|
|
5297
5303
|
{
|
|
5298
5304
|
ref: a,
|
|
5299
5305
|
id: `header-${e.id}`,
|
|
5300
5306
|
type: "button",
|
|
5301
5307
|
class: "rs-accordion-trigger",
|
|
5302
|
-
"aria-expanded":
|
|
5308
|
+
"aria-expanded": s.value,
|
|
5303
5309
|
"aria-controls": `panel-${e.id}`,
|
|
5304
5310
|
disabled: e.disabled,
|
|
5305
|
-
"data-state":
|
|
5306
|
-
onClick:
|
|
5311
|
+
"data-state": s.value ? "open" : "closed",
|
|
5312
|
+
onClick: l,
|
|
5307
5313
|
onKeydown: i
|
|
5308
5314
|
},
|
|
5309
5315
|
[
|
|
5310
|
-
|
|
5316
|
+
F(
|
|
5311
5317
|
"span",
|
|
5312
5318
|
{ class: "rs-accordion-trigger__label" },
|
|
5313
5319
|
o.default?.()
|
|
5314
5320
|
),
|
|
5315
|
-
|
|
5321
|
+
F(
|
|
5316
5322
|
"span",
|
|
5317
5323
|
{ class: "rs-accordion-trigger__icon", "aria-hidden": "true" },
|
|
5318
|
-
|
|
5324
|
+
F(ue, { name: "directionDown" })
|
|
5319
5325
|
)
|
|
5320
5326
|
]
|
|
5321
5327
|
);
|
|
@@ -5326,10 +5332,10 @@ const bo = {
|
|
|
5326
5332
|
id: { type: String, required: !0 }
|
|
5327
5333
|
},
|
|
5328
5334
|
setup(e, { slots: o }) {
|
|
5329
|
-
const t =
|
|
5335
|
+
const t = le(Ae);
|
|
5330
5336
|
if (!t) throw new Error("AccordionPanel must be used inside Accordion");
|
|
5331
5337
|
const a = $(() => t.openItems.value.has(e.id));
|
|
5332
|
-
return () =>
|
|
5338
|
+
return () => F(
|
|
5333
5339
|
"div",
|
|
5334
5340
|
{
|
|
5335
5341
|
id: `panel-${e.id}`,
|
|
@@ -5339,7 +5345,7 @@ const bo = {
|
|
|
5339
5345
|
"data-state": a.value ? "open" : "closed",
|
|
5340
5346
|
"aria-labelledby": `header-${e.id}`
|
|
5341
5347
|
},
|
|
5342
|
-
|
|
5348
|
+
F(
|
|
5343
5349
|
"div",
|
|
5344
5350
|
{ class: "rs-accordion-panel__inner" },
|
|
5345
5351
|
o.default?.()
|