@reinosoft-ui/core 0.1.16 → 0.1.17
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/components/Icon/icons/checkShield.d.ts +2 -0
- package/dist/components/Icon/icons/cookie.d.ts +2 -0
- package/dist/components/Icon/icons/index.d.ts +3 -0
- package/dist/components/Icon/icons/keyShield.d.ts +2 -0
- package/dist/reinosoft-ui.es.js +692 -629
- package/dist/reinosoft-ui.umd.js +1 -1
- package/package.json +1 -1
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 se, renderSlot as U, createCommentVNode as F, withDirectives as Ve, createElementVNode as g, vShow 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 se, renderSlot as U, createCommentVNode as F, 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 P, 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 K, createTextVNode as me, onBeforeUnmount as He, Teleport as Be, resolveDynamicComponent as Ie, useAttrs as Oe, inject as le, h as N, 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: {
|
|
@@ -19,7 +19,7 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
19
19
|
aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
|
|
20
20
|
} : void 0), l = () => {
|
|
21
21
|
i.value = "loaded", a("loaded");
|
|
22
|
-
},
|
|
22
|
+
}, d = () => {
|
|
23
23
|
if (t.fallbackSrc && r.value !== t.fallbackSrc) {
|
|
24
24
|
r.value = t.fallbackSrc, i.value = "loading";
|
|
25
25
|
return;
|
|
@@ -28,10 +28,10 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
28
28
|
};
|
|
29
29
|
return Y(
|
|
30
30
|
() => t.src,
|
|
31
|
-
(
|
|
32
|
-
r.value =
|
|
31
|
+
(c) => {
|
|
32
|
+
r.value = c, i.value = "loading";
|
|
33
33
|
}
|
|
34
|
-
), te(() => s.value?.complete && s.value.naturalWidth > 0 && (i.value = "loaded")), (
|
|
34
|
+
), te(() => s.value?.complete && s.value.naturalWidth > 0 && (i.value = "loaded")), (c, h) => (v(), f("div", {
|
|
35
35
|
class: se(["ui-image", {
|
|
36
36
|
"is-loading": i.value === "loading",
|
|
37
37
|
"is-error": i.value === "error",
|
|
@@ -41,12 +41,12 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
41
41
|
style: ye(n.value),
|
|
42
42
|
"aria-busy": i.value === "loading" || void 0
|
|
43
43
|
}, [
|
|
44
|
-
i.value === "loading" ? U(
|
|
44
|
+
i.value === "loading" ? U(c.$slots, "placeholder", { key: 0 }, () => [
|
|
45
45
|
h[0] || (h[0] = g("div", {
|
|
46
46
|
class: "ui-image__placeholder",
|
|
47
47
|
"aria-hidden": "true"
|
|
48
48
|
}, null, -1))
|
|
49
|
-
], !0) : i.value === "error" ? U(
|
|
49
|
+
], !0) : i.value === "error" ? U(c.$slots, "fallback", { key: 1 }, () => [
|
|
50
50
|
g("div", {
|
|
51
51
|
class: "ui-image__fallback",
|
|
52
52
|
role: "img",
|
|
@@ -65,9 +65,9 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
65
65
|
loading: e.lazy ? "lazy" : void 0,
|
|
66
66
|
decoding: e.decoding,
|
|
67
67
|
onLoad: l,
|
|
68
|
-
onError:
|
|
68
|
+
onError: d
|
|
69
69
|
}, null, 40, w1), [
|
|
70
|
-
[
|
|
70
|
+
[ze, i.value !== "error"]
|
|
71
71
|
])
|
|
72
72
|
], 14, g1));
|
|
73
73
|
}
|
|
@@ -131,12 +131,12 @@ const n1 = (e) => {
|
|
|
131
131
|
if (!r) return;
|
|
132
132
|
const i = I1("p");
|
|
133
133
|
document.createRange().selectNodeContents(r);
|
|
134
|
-
const l = a.cloneRange(),
|
|
135
|
-
|
|
136
|
-
const
|
|
134
|
+
const l = a.cloneRange(), d = document.createRange();
|
|
135
|
+
d.selectNodeContents(r), d.setEnd(l.startContainer, l.startOffset);
|
|
136
|
+
const c = d.cloneContents(), h = document.createRange();
|
|
137
137
|
h.selectNodeContents(r), h.setStart(l.startContainer, l.startOffset);
|
|
138
138
|
const L = h.cloneContents();
|
|
139
|
-
r.innerHTML = "", r.appendChild(
|
|
139
|
+
r.innerHTML = "", r.appendChild(c), r.innerHTML === "" && (r.innerHTML = "<br>"), i.innerHTML = "", i.appendChild(L), i.innerHTML === "" && (i.innerHTML = "<br>"), r.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 = () => {
|
|
@@ -171,15 +171,15 @@ const n1 = (e) => {
|
|
|
171
171
|
}, i = (p) => {
|
|
172
172
|
const x = window.getSelection();
|
|
173
173
|
if (!x || x.rangeCount === 0 || x.isCollapsed) return !1;
|
|
174
|
-
const V = x.getRangeAt(0),
|
|
175
|
-
if (!
|
|
176
|
-
const Z = n(V,
|
|
174
|
+
const V = x.getRangeAt(0), O = e;
|
|
175
|
+
if (!O) return !1;
|
|
176
|
+
const Z = n(V, O), q = [];
|
|
177
177
|
if (Z.forEach((m) => {
|
|
178
178
|
const b = m === V.startContainer ? V.startOffset : 0, T = m === V.endContainer ? V.endOffset : m.textContent.length;
|
|
179
179
|
if (b === T) return;
|
|
180
180
|
let w;
|
|
181
181
|
b === 0 && T === m.textContent.length ? w = m : (w = m.splitText(b), T - b < w.textContent.length && w.splitText(T - b));
|
|
182
|
-
const A = x1(w, p,
|
|
182
|
+
const A = x1(w, p, O);
|
|
183
183
|
if (A)
|
|
184
184
|
$1(A), q.push(w);
|
|
185
185
|
else {
|
|
@@ -195,8 +195,8 @@ const n1 = (e) => {
|
|
|
195
195
|
return M(), u(p);
|
|
196
196
|
}, n = (p, x) => {
|
|
197
197
|
if (!p || !x || !(x instanceof HTMLElement)) return [];
|
|
198
|
-
const V = p.commonAncestorContainer,
|
|
199
|
-
|
|
198
|
+
const V = p.commonAncestorContainer, O = x.contains(V) ? x : V.nodeType === 3 ? V.parentNode : V, Z = document.createTreeWalker(
|
|
199
|
+
O,
|
|
200
200
|
NodeFilter.SHOW_TEXT,
|
|
201
201
|
{
|
|
202
202
|
acceptNode(b) {
|
|
@@ -210,14 +210,14 @@ const n1 = (e) => {
|
|
|
210
210
|
}, l = (p) => {
|
|
211
211
|
const x = window.getSelection();
|
|
212
212
|
if (!x || x.rangeCount === 0) return !1;
|
|
213
|
-
const V = x.getRangeAt(0),
|
|
214
|
-
if (!
|
|
215
|
-
const q =
|
|
216
|
-
for (q === "blockquote" && m.setAttribute("class", "rs-blockquote"), m.dataset.block = "true";
|
|
217
|
-
|
|
213
|
+
const V = x.getRangeAt(0), O = d(V.startContainer);
|
|
214
|
+
if (!O) return !1;
|
|
215
|
+
const q = O.tagName.toLowerCase() === p.toLowerCase() ? "p" : p.toLowerCase(), m = document.createElement(q);
|
|
216
|
+
for (q === "blockquote" && m.setAttribute("class", "rs-blockquote"), m.dataset.block = "true"; O.firstChild; ) m.appendChild(O.firstChild);
|
|
217
|
+
O.replaceWith(m);
|
|
218
218
|
const b = document.createRange();
|
|
219
219
|
return b.selectNodeContents(m), x.removeAllRanges(), x.addRange(b), s(), M(), y(p);
|
|
220
|
-
},
|
|
220
|
+
}, d = (p) => {
|
|
221
221
|
const x = e;
|
|
222
222
|
if (!x) return null;
|
|
223
223
|
for (; p && p !== x; ) {
|
|
@@ -225,7 +225,7 @@ const n1 = (e) => {
|
|
|
225
225
|
p = p.parentNode;
|
|
226
226
|
}
|
|
227
227
|
return null;
|
|
228
|
-
},
|
|
228
|
+
}, c = (p, x) => {
|
|
229
229
|
const V = e;
|
|
230
230
|
if (!V) return null;
|
|
231
231
|
for (; p && p !== V; ) {
|
|
@@ -237,18 +237,18 @@ const n1 = (e) => {
|
|
|
237
237
|
if (p.key !== "Enter" || p.shiftKey) return;
|
|
238
238
|
const x = window.getSelection();
|
|
239
239
|
if (!x || x.rangeCount === 0) return;
|
|
240
|
-
const V = x.getRangeAt(0),
|
|
241
|
-
if (!
|
|
240
|
+
const V = x.getRangeAt(0), O = c(V.startContainer, "li");
|
|
241
|
+
if (!O) return;
|
|
242
242
|
p.preventDefault(), p.stopPropagation();
|
|
243
|
-
const Z =
|
|
243
|
+
const Z = O.parentElement;
|
|
244
244
|
if (!Z) return;
|
|
245
|
-
if (
|
|
245
|
+
if (O.textContent?.trim() === "") {
|
|
246
246
|
const b = document.createElement("p");
|
|
247
|
-
b.dataset.block = "true", b.innerHTML = "<br>", Z.after(b),
|
|
247
|
+
b.dataset.block = "true", b.innerHTML = "<br>", Z.after(b), O.remove(), Z.children.length === 0 && Z.remove(), L(b);
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
250
|
const m = document.createElement("li");
|
|
251
|
-
m.innerHTML = "<br>",
|
|
251
|
+
m.innerHTML = "<br>", O.after(m), L(m);
|
|
252
252
|
}, L = (p) => {
|
|
253
253
|
const x = document.createRange(), V = window.getSelection();
|
|
254
254
|
x.selectNodeContents(p), x.collapse(!0), V?.removeAllRanges(), V?.addRange(x);
|
|
@@ -259,9 +259,9 @@ const n1 = (e) => {
|
|
|
259
259
|
if (!x) return !1;
|
|
260
260
|
let V = x.startContainer;
|
|
261
261
|
V.nodeType === Node.TEXT_NODE && (V = V.parentNode);
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
264
|
-
for (; V && V !==
|
|
262
|
+
const O = e;
|
|
263
|
+
if (!O) return !1;
|
|
264
|
+
for (; V && V !== O; ) {
|
|
265
265
|
if (V instanceof HTMLElement && V.tagName.toLowerCase() === p.toLowerCase()) return !0;
|
|
266
266
|
V = V.parentNode;
|
|
267
267
|
}
|
|
@@ -271,9 +271,9 @@ const n1 = (e) => {
|
|
|
271
271
|
if (!x) return !1;
|
|
272
272
|
let V = x.startContainer;
|
|
273
273
|
V.nodeType === Node.TEXT_NODE && (V = V.parentNode);
|
|
274
|
-
const
|
|
275
|
-
if (!
|
|
276
|
-
for (; V && V !==
|
|
274
|
+
const O = e;
|
|
275
|
+
if (!O) return !1;
|
|
276
|
+
for (; V && V !== O; ) {
|
|
277
277
|
if (V instanceof HTMLElement && V.dataset.block !== void 0 && V.tagName.toLowerCase() === p.toLowerCase()) return !0;
|
|
278
278
|
V = V.parentNode;
|
|
279
279
|
}
|
|
@@ -289,26 +289,26 @@ const n1 = (e) => {
|
|
|
289
289
|
}, k = () => r.value?.focusFirstButton?.(), D = (p) => {
|
|
290
290
|
const x = window.getSelection();
|
|
291
291
|
if (!x || x.rangeCount === 0) return;
|
|
292
|
-
const V = x.getRangeAt(0),
|
|
293
|
-
if (!
|
|
292
|
+
const V = x.getRangeAt(0), O = d(V.startContainer);
|
|
293
|
+
if (!O) return;
|
|
294
294
|
const Z = V.cloneRange();
|
|
295
|
-
Z.selectNodeContents(
|
|
295
|
+
Z.selectNodeContents(O), Z.setEnd(V.startContainer, V.startOffset);
|
|
296
296
|
const q = Z.toString().length, m = V.cloneRange();
|
|
297
|
-
m.selectNodeContents(
|
|
298
|
-
const b = m.toString().length, T = V.collapsed, w = p(
|
|
299
|
-
|
|
297
|
+
m.selectNodeContents(O), m.setEnd(V.endContainer, V.endOffset);
|
|
298
|
+
const b = m.toString().length, T = V.collapsed, w = p(O);
|
|
299
|
+
O.replaceWith(w);
|
|
300
300
|
const A = document.createTreeWalker(
|
|
301
301
|
w,
|
|
302
302
|
NodeFilter.SHOW_TEXT,
|
|
303
303
|
null
|
|
304
304
|
);
|
|
305
|
-
let J = 0,
|
|
305
|
+
let J = 0, de = null, H = 0, z = null, Q = 0;
|
|
306
306
|
for (; A.nextNode(); ) {
|
|
307
307
|
const X = A.currentNode, re = X.textContent?.length ?? 0;
|
|
308
|
-
!
|
|
308
|
+
!de && J + re >= q && (de = X, H = q - J), !z && J + re >= b && (z = X, Q = b - J), J += re;
|
|
309
309
|
}
|
|
310
310
|
const S = document.createRange();
|
|
311
|
-
|
|
311
|
+
de ? S.setStart(de, H) : S.setStart(w, 0), !T && z ? S.setEnd(z, Q) : S.collapse(!0), x.removeAllRanges(), x.addRange(S), s(), M();
|
|
312
312
|
}, E = (p) => {
|
|
313
313
|
const x = e.parentElement?.querySelector("#editor-status");
|
|
314
314
|
x && (x.textContent = p, setTimeout(() => x.textContent = "", 2e3));
|
|
@@ -360,8 +360,8 @@ const n1 = (e) => {
|
|
|
360
360
|
if (!n || n.rangeCount === 0) return;
|
|
361
361
|
const l = r.value;
|
|
362
362
|
if (!l) return;
|
|
363
|
-
const
|
|
364
|
-
l.contains(
|
|
363
|
+
const d = n.getRangeAt(0);
|
|
364
|
+
l.contains(d.commonAncestorContainer) && t.editor?.saveSelection();
|
|
365
365
|
};
|
|
366
366
|
return te(() => document.addEventListener("selectionchange", i)), ge(() => document.removeEventListener("selectionchange", i)), o({
|
|
367
367
|
getRoot: () => r
|
|
@@ -378,17 +378,17 @@ const n1 = (e) => {
|
|
|
378
378
|
"aria-describedby": "editor-help editor-status",
|
|
379
379
|
onKeydown: [
|
|
380
380
|
s,
|
|
381
|
-
l[0] || (l[0] = fe((
|
|
381
|
+
l[0] || (l[0] = fe((d) => R(V1)(d, e.editor), ["enter"])),
|
|
382
382
|
l[1] || (l[1] = fe(
|
|
383
383
|
//@ts-ignore
|
|
384
|
-
(...
|
|
384
|
+
(...d) => R(Ge) && R(Ge)(...d),
|
|
385
385
|
["backspace"]
|
|
386
386
|
))
|
|
387
387
|
],
|
|
388
388
|
onMouseup: l[2] || (l[2] = //@ts-ignore
|
|
389
|
-
(...
|
|
389
|
+
(...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d)),
|
|
390
390
|
onKeyup: l[3] || (l[3] = //@ts-ignore
|
|
391
|
-
(...
|
|
391
|
+
(...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d))
|
|
392
392
|
}, [...l[4] || (l[4] = [
|
|
393
393
|
g("p", { "data-block": "" }, "Write here...", -1)
|
|
394
394
|
])], 40, Z1),
|
|
@@ -421,7 +421,7 @@ const n1 = (e) => {
|
|
|
421
421
|
"stroke-linecap": "round"
|
|
422
422
|
}
|
|
423
423
|
]
|
|
424
|
-
},
|
|
424
|
+
}, z1 = {
|
|
425
425
|
viewBox: "0 0 24 24",
|
|
426
426
|
paths: [
|
|
427
427
|
{
|
|
@@ -441,7 +441,7 @@ const n1 = (e) => {
|
|
|
441
441
|
"stroke-width": 2
|
|
442
442
|
}
|
|
443
443
|
]
|
|
444
|
-
},
|
|
444
|
+
}, O1 = {
|
|
445
445
|
viewBox: "0 0 24 24",
|
|
446
446
|
paths: [
|
|
447
447
|
{
|
|
@@ -849,7 +849,7 @@ const n1 = (e) => {
|
|
|
849
849
|
"stroke-width": 2
|
|
850
850
|
}
|
|
851
851
|
]
|
|
852
|
-
},
|
|
852
|
+
}, ct = {
|
|
853
853
|
viewBox: "0 0 24 24",
|
|
854
854
|
paths: [
|
|
855
855
|
{
|
|
@@ -895,7 +895,7 @@ const n1 = (e) => {
|
|
|
895
895
|
"stroke-width": 2
|
|
896
896
|
}
|
|
897
897
|
]
|
|
898
|
-
},
|
|
898
|
+
}, dt = {
|
|
899
899
|
viewBox: "0 0 24 24",
|
|
900
900
|
paths: [
|
|
901
901
|
{
|
|
@@ -995,13 +995,6 @@ const n1 = (e) => {
|
|
|
995
995
|
fill: "none",
|
|
996
996
|
stroke: "currentColor",
|
|
997
997
|
"stroke-width": 2
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
type: "path",
|
|
1001
|
-
d: "M9 12l2 2 4-4",
|
|
1002
|
-
fill: "none",
|
|
1003
|
-
stroke: "currentColor",
|
|
1004
|
-
"stroke-width": 2
|
|
1005
998
|
}
|
|
1006
999
|
]
|
|
1007
1000
|
}, mt = {
|
|
@@ -1080,14 +1073,54 @@ const n1 = (e) => {
|
|
|
1080
1073
|
paths: [
|
|
1081
1074
|
{
|
|
1082
1075
|
type: "path",
|
|
1083
|
-
d: "
|
|
1076
|
+
d: "M12 3a9 9 0 0 0 9 9 9 9 0 1 1-9-9Z",
|
|
1084
1077
|
stroke: "currentColor",
|
|
1085
1078
|
"stroke-width": 2,
|
|
1086
1079
|
"stroke-linecap": "round",
|
|
1087
1080
|
"stroke-linejoin": "round"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
type: "circle",
|
|
1084
|
+
cx: 7.5,
|
|
1085
|
+
cy: 11.5,
|
|
1086
|
+
r: 1.25,
|
|
1087
|
+
fill: "currentColor"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
type: "circle",
|
|
1091
|
+
cx: 10.5,
|
|
1092
|
+
cy: 8.5,
|
|
1093
|
+
r: 1.25,
|
|
1094
|
+
fill: "currentColor"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
type: "circle",
|
|
1098
|
+
cx: 14.5,
|
|
1099
|
+
cy: 12.5,
|
|
1100
|
+
r: 1.25,
|
|
1101
|
+
fill: "currentColor"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
type: "circle",
|
|
1105
|
+
cx: 10.5,
|
|
1106
|
+
cy: 15.5,
|
|
1107
|
+
r: 1.25,
|
|
1108
|
+
fill: "currentColor"
|
|
1088
1109
|
}
|
|
1089
1110
|
]
|
|
1090
1111
|
}, wt = {
|
|
1112
|
+
viewBox: "0 0 24 24",
|
|
1113
|
+
paths: [
|
|
1114
|
+
{
|
|
1115
|
+
type: "path",
|
|
1116
|
+
d: "M22 12h-4l-3 9L9 3l-3 9H2",
|
|
1117
|
+
stroke: "currentColor",
|
|
1118
|
+
"stroke-width": 2,
|
|
1119
|
+
"stroke-linecap": "round",
|
|
1120
|
+
"stroke-linejoin": "round"
|
|
1121
|
+
}
|
|
1122
|
+
]
|
|
1123
|
+
}, Mt = {
|
|
1091
1124
|
viewBox: "0 0 24 24",
|
|
1092
1125
|
paths: [
|
|
1093
1126
|
{
|
|
@@ -1099,7 +1132,7 @@ const n1 = (e) => {
|
|
|
1099
1132
|
"stroke-linecap": "round"
|
|
1100
1133
|
}
|
|
1101
1134
|
]
|
|
1102
|
-
},
|
|
1135
|
+
}, Lt = {
|
|
1103
1136
|
viewBox: "0 0 24 24",
|
|
1104
1137
|
paths: [
|
|
1105
1138
|
{
|
|
@@ -1109,7 +1142,7 @@ const n1 = (e) => {
|
|
|
1109
1142
|
"stroke-width": 2
|
|
1110
1143
|
}
|
|
1111
1144
|
]
|
|
1112
|
-
},
|
|
1145
|
+
}, xt = {
|
|
1113
1146
|
viewBox: "0 0 24 24",
|
|
1114
1147
|
paths: [
|
|
1115
1148
|
{
|
|
@@ -1146,7 +1179,7 @@ const n1 = (e) => {
|
|
|
1146
1179
|
"stroke-width": 2
|
|
1147
1180
|
}
|
|
1148
1181
|
]
|
|
1149
|
-
},
|
|
1182
|
+
}, $t = {
|
|
1150
1183
|
viewBox: "0 0 24 24",
|
|
1151
1184
|
paths: [
|
|
1152
1185
|
{
|
|
@@ -1159,7 +1192,7 @@ const n1 = (e) => {
|
|
|
1159
1192
|
"stroke-linejoin": "round"
|
|
1160
1193
|
}
|
|
1161
1194
|
]
|
|
1162
|
-
},
|
|
1195
|
+
}, It = {
|
|
1163
1196
|
viewBox: "0 0 24 24",
|
|
1164
1197
|
paths: [
|
|
1165
1198
|
{
|
|
@@ -1172,7 +1205,7 @@ const n1 = (e) => {
|
|
|
1172
1205
|
"stroke-linejoin": "round"
|
|
1173
1206
|
}
|
|
1174
1207
|
]
|
|
1175
|
-
},
|
|
1208
|
+
}, Vt = {
|
|
1176
1209
|
viewBox: "0 0 24 24",
|
|
1177
1210
|
paths: [
|
|
1178
1211
|
{
|
|
@@ -1181,7 +1214,7 @@ const n1 = (e) => {
|
|
|
1181
1214
|
fill: "currentColor"
|
|
1182
1215
|
}
|
|
1183
1216
|
]
|
|
1184
|
-
},
|
|
1217
|
+
}, Ht = {
|
|
1185
1218
|
viewBox: "0 0 24 24",
|
|
1186
1219
|
paths: [
|
|
1187
1220
|
{
|
|
@@ -1202,7 +1235,7 @@ const n1 = (e) => {
|
|
|
1202
1235
|
"stroke-linejoin": "round"
|
|
1203
1236
|
}
|
|
1204
1237
|
]
|
|
1205
|
-
},
|
|
1238
|
+
}, Bt = {
|
|
1206
1239
|
viewBox: "0 0 24 24",
|
|
1207
1240
|
paths: [
|
|
1208
1241
|
{
|
|
@@ -1218,7 +1251,7 @@ const n1 = (e) => {
|
|
|
1218
1251
|
"stroke-width": 2
|
|
1219
1252
|
}
|
|
1220
1253
|
]
|
|
1221
|
-
},
|
|
1254
|
+
}, _t = {
|
|
1222
1255
|
viewBox: "0 0 24 24",
|
|
1223
1256
|
paths: [
|
|
1224
1257
|
{
|
|
@@ -1247,7 +1280,7 @@ const n1 = (e) => {
|
|
|
1247
1280
|
"stroke-width": 2
|
|
1248
1281
|
}
|
|
1249
1282
|
]
|
|
1250
|
-
},
|
|
1283
|
+
}, Rt = {
|
|
1251
1284
|
viewBox: "0 0 24 24",
|
|
1252
1285
|
paths: [
|
|
1253
1286
|
{
|
|
@@ -1289,7 +1322,7 @@ const n1 = (e) => {
|
|
|
1289
1322
|
"stroke-width": 2
|
|
1290
1323
|
}
|
|
1291
1324
|
]
|
|
1292
|
-
},
|
|
1325
|
+
}, Zt = {
|
|
1293
1326
|
viewBox: "0 0 24 24",
|
|
1294
1327
|
paths: [
|
|
1295
1328
|
{
|
|
@@ -1299,7 +1332,7 @@ const n1 = (e) => {
|
|
|
1299
1332
|
"stroke-width": 2
|
|
1300
1333
|
}
|
|
1301
1334
|
]
|
|
1302
|
-
},
|
|
1335
|
+
}, At = {
|
|
1303
1336
|
viewBox: "0 0 24 24",
|
|
1304
1337
|
paths: [
|
|
1305
1338
|
{
|
|
@@ -1309,7 +1342,7 @@ const n1 = (e) => {
|
|
|
1309
1342
|
"stroke-width": 2
|
|
1310
1343
|
}
|
|
1311
1344
|
]
|
|
1312
|
-
},
|
|
1345
|
+
}, St = {
|
|
1313
1346
|
viewBox: "0 0 24 24",
|
|
1314
1347
|
paths: [
|
|
1315
1348
|
{
|
|
@@ -1332,7 +1365,7 @@ const n1 = (e) => {
|
|
|
1332
1365
|
fill: "currentColor"
|
|
1333
1366
|
}
|
|
1334
1367
|
]
|
|
1335
|
-
},
|
|
1368
|
+
}, Tt = {
|
|
1336
1369
|
viewBox: "0 0 24 24",
|
|
1337
1370
|
paths: [
|
|
1338
1371
|
{
|
|
@@ -1349,7 +1382,7 @@ const n1 = (e) => {
|
|
|
1349
1382
|
"stroke-width": 2
|
|
1350
1383
|
}
|
|
1351
1384
|
]
|
|
1352
|
-
},
|
|
1385
|
+
}, Et = {
|
|
1353
1386
|
viewBox: "0 0 24 24",
|
|
1354
1387
|
paths: [
|
|
1355
1388
|
{
|
|
@@ -1362,7 +1395,7 @@ const n1 = (e) => {
|
|
|
1362
1395
|
"stroke-linejoin": "round"
|
|
1363
1396
|
}
|
|
1364
1397
|
]
|
|
1365
|
-
},
|
|
1398
|
+
}, Dt = {
|
|
1366
1399
|
viewBox: "0 0 24 24",
|
|
1367
1400
|
paths: [
|
|
1368
1401
|
{
|
|
@@ -1371,7 +1404,16 @@ const n1 = (e) => {
|
|
|
1371
1404
|
fill: "currentColor"
|
|
1372
1405
|
}
|
|
1373
1406
|
]
|
|
1374
|
-
},
|
|
1407
|
+
}, zt = {
|
|
1408
|
+
viewBox: "0 0 24 24",
|
|
1409
|
+
paths: [
|
|
1410
|
+
{
|
|
1411
|
+
type: "path",
|
|
1412
|
+
d: "m20.949 3.497c-.057-.278-.23-.519-.475-.662-.129-.076-3.201-1.835-8.383-1.835-5.091 0-8.557 1.778-8.565 1.835-.245.143-.418.384-.475.662-.534 2.6-2.094 12.773.038 15.037 2.346 2.493 7.986 4.234 8.621 4.424.188.055.392.057.58 0 .635-.19 6.274-1.931 8.622-4.424 2.131-2.264.571-12.437.037-15.037zm-1.494 13.666c-1.544 1.641-5.395 3.146-7.455 3.792-2.06-.647-5.911-2.151-7.456-3.792-.796-.846-.764-6.953.371-12.79.853-.417 3.585-1.373 7.167-1.373 3.626 0 6.099.957 7.003 1.373 1.135 5.837 1.167 11.944.37 12.79zm-7.455-10.163c-1.991 0-3 1.009-3 3 0 1.619.679 2.578 2 2.883v2.117c0 .552.448 1 1 1s1-.448 1-1v-2.117c1.321-.306 2-1.264 2-2.883 0-1.991-1.009-3-3-3zm0 4c-.878 0-1-.122-1-1s.122-1 1-1 1 .122 1 1-.122 1-1 1z",
|
|
1413
|
+
fill: "currentColor"
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
1416
|
+
}, Ot = {
|
|
1375
1417
|
viewBox: "0 0 24 24",
|
|
1376
1418
|
paths: [
|
|
1377
1419
|
{
|
|
@@ -1401,7 +1443,7 @@ const n1 = (e) => {
|
|
|
1401
1443
|
"stroke-width": 2
|
|
1402
1444
|
}
|
|
1403
1445
|
]
|
|
1404
|
-
},
|
|
1446
|
+
}, qt = {
|
|
1405
1447
|
viewBox: "0 0 24 24",
|
|
1406
1448
|
paths: [
|
|
1407
1449
|
{
|
|
@@ -1452,7 +1494,7 @@ const n1 = (e) => {
|
|
|
1452
1494
|
"stroke-width": 2
|
|
1453
1495
|
}
|
|
1454
1496
|
]
|
|
1455
|
-
},
|
|
1497
|
+
}, Nt = {
|
|
1456
1498
|
viewBox: "0 0 24 24",
|
|
1457
1499
|
paths: [
|
|
1458
1500
|
{
|
|
@@ -1492,7 +1534,7 @@ const n1 = (e) => {
|
|
|
1492
1534
|
"stroke-width": 2
|
|
1493
1535
|
}
|
|
1494
1536
|
]
|
|
1495
|
-
},
|
|
1537
|
+
}, Ft = {
|
|
1496
1538
|
viewBox: "0 0 24 24",
|
|
1497
1539
|
paths: [
|
|
1498
1540
|
{
|
|
@@ -1503,7 +1545,7 @@ const n1 = (e) => {
|
|
|
1503
1545
|
"stroke-width": 2
|
|
1504
1546
|
}
|
|
1505
1547
|
]
|
|
1506
|
-
},
|
|
1548
|
+
}, Kt = {
|
|
1507
1549
|
viewBox: "0 0 24 24",
|
|
1508
1550
|
paths: [
|
|
1509
1551
|
{
|
|
@@ -1512,7 +1554,7 @@ const n1 = (e) => {
|
|
|
1512
1554
|
fill: "currentColor"
|
|
1513
1555
|
}
|
|
1514
1556
|
]
|
|
1515
|
-
},
|
|
1557
|
+
}, Pt = {
|
|
1516
1558
|
viewBox: "0 0 24 24",
|
|
1517
1559
|
paths: [
|
|
1518
1560
|
{
|
|
@@ -1530,7 +1572,7 @@ const n1 = (e) => {
|
|
|
1530
1572
|
"stroke-width": 2
|
|
1531
1573
|
}
|
|
1532
1574
|
]
|
|
1533
|
-
},
|
|
1575
|
+
}, Ut = {
|
|
1534
1576
|
viewBox: "0 0 24 24",
|
|
1535
1577
|
paths: [
|
|
1536
1578
|
{
|
|
@@ -1539,7 +1581,7 @@ const n1 = (e) => {
|
|
|
1539
1581
|
fill: "currentColor"
|
|
1540
1582
|
}
|
|
1541
1583
|
]
|
|
1542
|
-
},
|
|
1584
|
+
}, jt = {
|
|
1543
1585
|
viewBox: "0 0 24 24",
|
|
1544
1586
|
paths: [
|
|
1545
1587
|
{
|
|
@@ -1567,7 +1609,25 @@ const n1 = (e) => {
|
|
|
1567
1609
|
"stroke-width": 2
|
|
1568
1610
|
}
|
|
1569
1611
|
]
|
|
1570
|
-
},
|
|
1612
|
+
}, Xt = {
|
|
1613
|
+
viewBox: "0 0 24 24",
|
|
1614
|
+
paths: [
|
|
1615
|
+
{
|
|
1616
|
+
type: "path",
|
|
1617
|
+
d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",
|
|
1618
|
+
fill: "none",
|
|
1619
|
+
stroke: "currentColor",
|
|
1620
|
+
"stroke-width": 2
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
type: "path",
|
|
1624
|
+
d: "M9 12l2 2 4-4",
|
|
1625
|
+
fill: "none",
|
|
1626
|
+
stroke: "currentColor",
|
|
1627
|
+
"stroke-width": 2
|
|
1628
|
+
}
|
|
1629
|
+
]
|
|
1630
|
+
}, Gt = {
|
|
1571
1631
|
viewBox: "0 0 24 24",
|
|
1572
1632
|
paths: [
|
|
1573
1633
|
{
|
|
@@ -1595,7 +1655,7 @@ const n1 = (e) => {
|
|
|
1595
1655
|
"stroke-width": 2
|
|
1596
1656
|
}
|
|
1597
1657
|
]
|
|
1598
|
-
},
|
|
1658
|
+
}, Wt = {
|
|
1599
1659
|
viewBox: "0 0 24 24",
|
|
1600
1660
|
paths: [
|
|
1601
1661
|
{
|
|
@@ -1608,7 +1668,7 @@ const n1 = (e) => {
|
|
|
1608
1668
|
"stroke-linejoin": "round"
|
|
1609
1669
|
}
|
|
1610
1670
|
]
|
|
1611
|
-
},
|
|
1671
|
+
}, Jt = {
|
|
1612
1672
|
viewBox: "0 0 24 24",
|
|
1613
1673
|
paths: [
|
|
1614
1674
|
{
|
|
@@ -1619,7 +1679,7 @@ const n1 = (e) => {
|
|
|
1619
1679
|
clipRule: "evenodd"
|
|
1620
1680
|
}
|
|
1621
1681
|
]
|
|
1622
|
-
},
|
|
1682
|
+
}, Yt = {
|
|
1623
1683
|
viewBox: "0 0 24 24",
|
|
1624
1684
|
paths: [
|
|
1625
1685
|
{
|
|
@@ -1635,8 +1695,8 @@ const n1 = (e) => {
|
|
|
1635
1695
|
}, Se = {
|
|
1636
1696
|
x: E1,
|
|
1637
1697
|
eye: D1,
|
|
1638
|
-
sun:
|
|
1639
|
-
box:
|
|
1698
|
+
sun: z1,
|
|
1699
|
+
box: O1,
|
|
1640
1700
|
art: q1,
|
|
1641
1701
|
bell: N1,
|
|
1642
1702
|
lock: F1,
|
|
@@ -1652,7 +1712,7 @@ const n1 = (e) => {
|
|
|
1652
1712
|
head: G1,
|
|
1653
1713
|
bold: et,
|
|
1654
1714
|
card: tt,
|
|
1655
|
-
heart:
|
|
1715
|
+
heart: dt,
|
|
1656
1716
|
oList: at,
|
|
1657
1717
|
uList: ot,
|
|
1658
1718
|
close: nt,
|
|
@@ -1661,10 +1721,10 @@ const n1 = (e) => {
|
|
|
1661
1721
|
image: it,
|
|
1662
1722
|
phone: ut,
|
|
1663
1723
|
trash: st,
|
|
1664
|
-
share:
|
|
1724
|
+
share: ct,
|
|
1665
1725
|
spotfy: vt,
|
|
1666
1726
|
church: ft,
|
|
1667
|
-
health:
|
|
1727
|
+
health: wt,
|
|
1668
1728
|
blocks: Ct,
|
|
1669
1729
|
shield: pt,
|
|
1670
1730
|
upload: mt,
|
|
@@ -1672,35 +1732,38 @@ const n1 = (e) => {
|
|
|
1672
1732
|
logout: yt,
|
|
1673
1733
|
ticket: gt,
|
|
1674
1734
|
search: bt,
|
|
1675
|
-
eyeOff:
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1735
|
+
eyeOff: Mt,
|
|
1736
|
+
cookie: kt,
|
|
1737
|
+
fashion: Lt,
|
|
1738
|
+
addUser: xt,
|
|
1739
|
+
loading: It,
|
|
1740
|
+
sortAsc: $t,
|
|
1741
|
+
profile: Vt,
|
|
1742
|
+
youtube: Bt,
|
|
1743
|
+
warning: Ht,
|
|
1744
|
+
calendar: Rt,
|
|
1745
|
+
whatsapp: Zt,
|
|
1746
|
+
linkedin: _t,
|
|
1747
|
+
facebook: At,
|
|
1748
|
+
question: St,
|
|
1749
|
+
envelope: Tt,
|
|
1750
|
+
sortDesc: Et,
|
|
1751
|
+
location: Dt,
|
|
1752
|
+
keyShield: zt,
|
|
1753
|
+
clipboard: qt,
|
|
1754
|
+
corporate: Nt,
|
|
1755
|
+
instagram: Ot,
|
|
1756
|
+
arrowLeft: Ft,
|
|
1757
|
+
starSolid: Kt,
|
|
1758
|
+
basketball: Pt,
|
|
1759
|
+
gastronomy: jt,
|
|
1760
|
+
closeSolid: Ut,
|
|
1761
|
+
checkShield: Xt,
|
|
1762
|
+
musicalNote: Gt,
|
|
1763
|
+
shoppingBag: Wt,
|
|
1764
|
+
directionDown: Jt,
|
|
1765
|
+
shoppingBasket: Yt
|
|
1766
|
+
}, Qt = ["viewBox", "transform", "width", "height"], e2 = /* @__PURE__ */ _({
|
|
1704
1767
|
__name: "Icon",
|
|
1705
1768
|
props: {
|
|
1706
1769
|
name: {},
|
|
@@ -1718,7 +1781,7 @@ const n1 = (e) => {
|
|
|
1718
1781
|
fill: "none",
|
|
1719
1782
|
"aria-hidden": "true"
|
|
1720
1783
|
}, [
|
|
1721
|
-
(v(!0), f(ae, null,
|
|
1784
|
+
(v(!0), f(ae, null, ce(R(Se)[e.name].paths, (a, r) => (v(), f(ae, { key: r }, [
|
|
1722
1785
|
a.type === "path" ? (v(), f("path", Ce({
|
|
1723
1786
|
key: 0,
|
|
1724
1787
|
ref_for: !0
|
|
@@ -1744,9 +1807,9 @@ const n1 = (e) => {
|
|
|
1744
1807
|
ref_for: !0
|
|
1745
1808
|
}, a), null, 16)) : F("", !0)
|
|
1746
1809
|
], 64))), 128))
|
|
1747
|
-
], 10,
|
|
1810
|
+
], 10, Qt));
|
|
1748
1811
|
}
|
|
1749
|
-
}), ue = /* @__PURE__ */ j(
|
|
1812
|
+
}), ue = /* @__PURE__ */ j(e2, [["__scopeId", "data-v-dd8423eb"]]), t2 = ["aria-controls"], a2 = ["aria-pressed", "onMousedown", "aria-label"], o2 = { key: 1 }, n2 = /* @__PURE__ */ _({
|
|
1750
1813
|
__name: "FloatingToolbar",
|
|
1751
1814
|
props: {
|
|
1752
1815
|
editor: {},
|
|
@@ -1762,7 +1825,7 @@ const n1 = (e) => {
|
|
|
1762
1825
|
const n = $(() => ({
|
|
1763
1826
|
top: `${r.value}px`,
|
|
1764
1827
|
left: `${a.value}px`
|
|
1765
|
-
})), l = (u, y) => u && (i.value[y] = u),
|
|
1828
|
+
})), l = (u, y) => u && (i.value[y] = u), d = $(() => [
|
|
1766
1829
|
{
|
|
1767
1830
|
key: "strong",
|
|
1768
1831
|
label: "bold",
|
|
@@ -1814,8 +1877,8 @@ const n1 = (e) => {
|
|
|
1814
1877
|
},
|
|
1815
1878
|
isActive: (u) => u.isBlockActive("blockquote")
|
|
1816
1879
|
}
|
|
1817
|
-
]),
|
|
1818
|
-
...
|
|
1880
|
+
]), c = $(() => [
|
|
1881
|
+
...d.value,
|
|
1819
1882
|
...t.editor?.buttons ?? []
|
|
1820
1883
|
]), h = async () => {
|
|
1821
1884
|
await Le(), i.value[0]?.focus();
|
|
@@ -1867,7 +1930,7 @@ const n1 = (e) => {
|
|
|
1867
1930
|
onKeydown: L
|
|
1868
1931
|
}, [
|
|
1869
1932
|
y[0] || (y[0] = g("div", { class: "arrow" }, null, -1)),
|
|
1870
|
-
(v(!0), f(ae, null,
|
|
1933
|
+
(v(!0), f(ae, null, ce(c.value, (I, B) => (v(), f("button", {
|
|
1871
1934
|
key: I.key ?? B,
|
|
1872
1935
|
type: "button",
|
|
1873
1936
|
ref_for: !0,
|
|
@@ -1881,14 +1944,14 @@ const n1 = (e) => {
|
|
|
1881
1944
|
key: 0,
|
|
1882
1945
|
name: I.label,
|
|
1883
1946
|
size: I.size ?? 14
|
|
1884
|
-
}, null, 8, ["name", "size"])) : (v(), f("span",
|
|
1885
|
-
], 42,
|
|
1886
|
-
], 44,
|
|
1947
|
+
}, null, 8, ["name", "size"])) : (v(), f("span", o2, P(I.label), 1))
|
|
1948
|
+
], 42, a2))), 128))
|
|
1949
|
+
], 44, t2)) : F("", !0)
|
|
1887
1950
|
]),
|
|
1888
1951
|
_: 1
|
|
1889
1952
|
}));
|
|
1890
1953
|
}
|
|
1891
|
-
}),
|
|
1954
|
+
}), l2 = /* @__PURE__ */ j(n2, [["__scopeId", "data-v-3f279ebe"]]), r2 = { class: "editor" }, We = /* @__PURE__ */ _({
|
|
1892
1955
|
__name: "Editor",
|
|
1893
1956
|
props: /* @__PURE__ */ oe({
|
|
1894
1957
|
ariaLabel: {},
|
|
@@ -1912,9 +1975,9 @@ const n1 = (e) => {
|
|
|
1912
1975
|
const l = i.value?.getRoot()?.value;
|
|
1913
1976
|
if (!l) return;
|
|
1914
1977
|
s.value = R1(l, { buttons: t.buttons ?? [] }), s.value && (s.value.toolbarRef = r);
|
|
1915
|
-
const
|
|
1916
|
-
l.addEventListener("input",
|
|
1917
|
-
}), be("announce", (n) => s.value?.announce(n)), (n, l) => (v(), f("section",
|
|
1978
|
+
const d = () => o.value = l.innerHTML;
|
|
1979
|
+
l.addEventListener("input", d), ge(() => l.removeEventListener("input", d));
|
|
1980
|
+
}), be("announce", (n) => s.value?.announce(n)), (n, l) => (v(), f("section", r2, [
|
|
1918
1981
|
K(T1, {
|
|
1919
1982
|
ref_key: "contentRef",
|
|
1920
1983
|
ref: i,
|
|
@@ -1922,7 +1985,7 @@ const n1 = (e) => {
|
|
|
1922
1985
|
"editor-id": R(a),
|
|
1923
1986
|
"aria-label": e.ariaLabel
|
|
1924
1987
|
}, null, 8, ["editor", "editor-id", "aria-label"]),
|
|
1925
|
-
K(
|
|
1988
|
+
K(l2, {
|
|
1926
1989
|
ref_key: "toolbarRef",
|
|
1927
1990
|
ref: r,
|
|
1928
1991
|
editor: s.value,
|
|
@@ -1934,30 +1997,30 @@ const n1 = (e) => {
|
|
|
1934
1997
|
We.install = (e) => {
|
|
1935
1998
|
e.component("Editor", We);
|
|
1936
1999
|
};
|
|
1937
|
-
const
|
|
2000
|
+
const s2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], i2 = ["multiple", "accept", "disabled"], u2 = {
|
|
1938
2001
|
key: 1,
|
|
1939
2002
|
class: "ui-upload__list"
|
|
1940
|
-
},
|
|
2003
|
+
}, c2 = { class: "ui-upload__item--default" }, d2 = { class: "ui-upload__file-name" }, v2 = { class: "ui-upload__file-size" }, f2 = {
|
|
1941
2004
|
key: 0,
|
|
1942
2005
|
class: "ui-upload__progress-wrapper"
|
|
1943
|
-
},
|
|
2006
|
+
}, C2 = { class: "ui-upload__progress-text" }, p2 = ["value", "aria-label"], m2 = {
|
|
1944
2007
|
key: 1,
|
|
1945
2008
|
class: "ui-upload__status success",
|
|
1946
2009
|
style: { color: "var(--green-color)" },
|
|
1947
2010
|
role: "status"
|
|
1948
|
-
},
|
|
2011
|
+
}, h2 = {
|
|
1949
2012
|
key: 2,
|
|
1950
2013
|
class: "ui-upload__status error",
|
|
1951
2014
|
style: { color: "var(--red-color)" },
|
|
1952
2015
|
role: "alert"
|
|
1953
|
-
},
|
|
2016
|
+
}, y2 = {
|
|
1954
2017
|
key: 3,
|
|
1955
2018
|
class: "ui-upload__status canceled",
|
|
1956
2019
|
role: "status"
|
|
1957
|
-
},
|
|
2020
|
+
}, b2 = { class: "ui-upload__actions" }, g2 = {
|
|
1958
2021
|
class: "sr-only",
|
|
1959
2022
|
"aria-live": "polite"
|
|
1960
|
-
},
|
|
2023
|
+
}, k2 = ["id"], w2 = /* @__PURE__ */ _({
|
|
1961
2024
|
__name: "Upload",
|
|
1962
2025
|
props: /* @__PURE__ */ oe({
|
|
1963
2026
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -1975,7 +2038,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1975
2038
|
}),
|
|
1976
2039
|
emits: /* @__PURE__ */ oe(["select", "upload", "remove"], ["update:modelValue"]),
|
|
1977
2040
|
setup(e, { emit: o }) {
|
|
1978
|
-
const t = pe(e, "modelValue"), a = e, r = o, s = C(0), i = C(""), n = C(!1), l = ie(),
|
|
2041
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = C(0), i = C(""), n = C(!1), l = 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 = () => {
|
|
1979
2042
|
a.disabled || (s.value++, n.value = !0);
|
|
1980
2043
|
}, I = () => {
|
|
1981
2044
|
s.value = Math.max(0, s.value - 1), s.value === 0 && (n.value = !1);
|
|
@@ -1994,7 +2057,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1994
2057
|
}, D = (m) => {
|
|
1995
2058
|
const b = [];
|
|
1996
2059
|
for (const w of m) {
|
|
1997
|
-
if (
|
|
2060
|
+
if (c.value.length + b.length >= a.maxFiles) break;
|
|
1998
2061
|
w.size > a.maxSize || b.push({
|
|
1999
2062
|
id: crypto.randomUUID(),
|
|
2000
2063
|
file: w,
|
|
@@ -2004,7 +2067,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2004
2067
|
}
|
|
2005
2068
|
if (!b.length) return;
|
|
2006
2069
|
r("select", b.map((w) => w.file));
|
|
2007
|
-
const T = [...
|
|
2070
|
+
const T = [...c.value, ...b];
|
|
2008
2071
|
t.value = T, a.autoUpload && b.forEach(E);
|
|
2009
2072
|
}, E = (m) => {
|
|
2010
2073
|
const b = new AbortController();
|
|
@@ -2030,7 +2093,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2030
2093
|
m.controller && (m.controller.abort(), m.status = "canceled", m.controller = void 0, Z(`Canceled uploading ${m.file.name}`), V());
|
|
2031
2094
|
}, x = (m) => {
|
|
2032
2095
|
m.status !== "error" && m.status !== "canceled" || E(m);
|
|
2033
|
-
}, V = () => t.value = [...
|
|
2096
|
+
}, V = () => t.value = [...c.value], O = (m) => {
|
|
2034
2097
|
const b = ["B", "KB", "MB", "GB", "TB"];
|
|
2035
2098
|
let T = 0;
|
|
2036
2099
|
for (; m >= 1024 && T < b.length - 1; )
|
|
@@ -2041,7 +2104,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2041
2104
|
i.value = m;
|
|
2042
2105
|
});
|
|
2043
2106
|
}, q = (m) => {
|
|
2044
|
-
m.controller && m.controller.abort(), r("remove", m), t.value =
|
|
2107
|
+
m.controller && m.controller.abort(), r("remove", m), t.value = c.value.filter((b) => b.id !== m.id);
|
|
2045
2108
|
};
|
|
2046
2109
|
return (m, b) => (v(), f("div", {
|
|
2047
2110
|
role: "button",
|
|
@@ -2065,13 +2128,13 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2065
2128
|
g("input", {
|
|
2066
2129
|
type: "file",
|
|
2067
2130
|
ref_key: "inputRef",
|
|
2068
|
-
ref:
|
|
2131
|
+
ref: d,
|
|
2069
2132
|
class: "ui-upload__input",
|
|
2070
2133
|
multiple: e.multiple,
|
|
2071
2134
|
accept: e.accept,
|
|
2072
2135
|
disabled: e.disabled,
|
|
2073
2136
|
onChange: k
|
|
2074
|
-
}, null, 40,
|
|
2137
|
+
}, null, 40, i2),
|
|
2075
2138
|
e.multiple || !e.multiple && t.value.length === 0 ? U(m.$slots, "default", {
|
|
2076
2139
|
key: 0,
|
|
2077
2140
|
dragging: n.value
|
|
@@ -2093,8 +2156,8 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2093
2156
|
}),
|
|
2094
2157
|
g("span", null, "Maximum size: " + P(h.value), 1)
|
|
2095
2158
|
], !0) : F("", !0),
|
|
2096
|
-
|
|
2097
|
-
(v(!0), f(ae, null,
|
|
2159
|
+
c.value?.length ? (v(), f("ul", u2, [
|
|
2160
|
+
(v(!0), f(ae, null, ce(c.value, (T) => (v(), f("li", {
|
|
2098
2161
|
key: T.id,
|
|
2099
2162
|
class: "ui-upload__item"
|
|
2100
2163
|
}, [
|
|
@@ -2104,23 +2167,23 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2104
2167
|
cancel: () => p(T),
|
|
2105
2168
|
retry: () => x(T)
|
|
2106
2169
|
}, () => [
|
|
2107
|
-
g("div",
|
|
2108
|
-
g("span",
|
|
2109
|
-
g("span",
|
|
2170
|
+
g("div", c2, [
|
|
2171
|
+
g("span", d2, P(T.file.name), 1),
|
|
2172
|
+
g("span", v2, P(O(T.file.size)), 1)
|
|
2110
2173
|
]),
|
|
2111
|
-
T.status === "uploading" ? (v(), f("div",
|
|
2112
|
-
g("span",
|
|
2174
|
+
T.status === "uploading" ? (v(), f("div", f2, [
|
|
2175
|
+
g("span", C2, P(T.progress) + "% ", 1),
|
|
2113
2176
|
g("progress", {
|
|
2114
2177
|
class: "ui-upload__progress",
|
|
2115
2178
|
value: T.progress,
|
|
2116
2179
|
max: "100",
|
|
2117
2180
|
"aria-label": `Upload progress for ${T.file.name}`
|
|
2118
|
-
}, null, 8,
|
|
2181
|
+
}, null, 8, p2)
|
|
2119
2182
|
])) : F("", !0),
|
|
2120
|
-
T.status === "success" ? (v(), f("span",
|
|
2121
|
-
T.status === "error" ? (v(), f("span",
|
|
2122
|
-
T.status === "canceled" ? (v(), f("span",
|
|
2123
|
-
g("div",
|
|
2183
|
+
T.status === "success" ? (v(), f("span", m2, " Uploaded successful ")) : F("", !0),
|
|
2184
|
+
T.status === "error" ? (v(), f("span", h2, P(T.error || "Upload failed"), 1)) : F("", !0),
|
|
2185
|
+
T.status === "canceled" ? (v(), f("span", y2, " Upload canceled ")) : F("", !0),
|
|
2186
|
+
g("div", b2, [
|
|
2124
2187
|
T.status === "uploading" ? (v(), W(he, {
|
|
2125
2188
|
key: 0,
|
|
2126
2189
|
type: "button",
|
|
@@ -2159,23 +2222,23 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2159
2222
|
], !0)
|
|
2160
2223
|
]))), 128))
|
|
2161
2224
|
])) : F("", !0),
|
|
2162
|
-
g("div",
|
|
2225
|
+
g("div", g2, P(i.value), 1),
|
|
2163
2226
|
g("p", {
|
|
2164
2227
|
id: R(l),
|
|
2165
2228
|
class: "sr-only"
|
|
2166
|
-
}, " Drop files to upload ", 8,
|
|
2167
|
-
], 40,
|
|
2229
|
+
}, " Drop files to upload ", 8, k2)
|
|
2230
|
+
], 40, s2));
|
|
2168
2231
|
}
|
|
2169
|
-
}), Je = /* @__PURE__ */ j(
|
|
2232
|
+
}), Je = /* @__PURE__ */ j(w2, [["__scopeId", "data-v-041ff337"]]);
|
|
2170
2233
|
Je.install = (e) => {
|
|
2171
2234
|
e.component("Upload", Je);
|
|
2172
2235
|
};
|
|
2173
|
-
const
|
|
2236
|
+
const M2 = (e) => {
|
|
2174
2237
|
const o = () => e(), t = () => e();
|
|
2175
2238
|
return window.addEventListener("scroll", o, !0), window.addEventListener("resize", t), () => {
|
|
2176
2239
|
window.removeEventListener("scroll", o, !0), window.removeEventListener("resize", t);
|
|
2177
2240
|
};
|
|
2178
|
-
},
|
|
2241
|
+
}, L2 = ["aria-describedby", "aria-disabled", "aria-expanded"], x2 = ["aria-hidden", "data-placement"], $2 = 8, I2 = 6, V2 = /* @__PURE__ */ _({
|
|
2179
2242
|
__name: "Tooltip",
|
|
2180
2243
|
props: {
|
|
2181
2244
|
content: {},
|
|
@@ -2184,8 +2247,8 @@ const g2 = (e) => {
|
|
|
2184
2247
|
disabled: { type: Boolean, default: !1 }
|
|
2185
2248
|
},
|
|
2186
2249
|
setup(e) {
|
|
2187
|
-
const o = e, t =
|
|
2188
|
-
let l = null,
|
|
2250
|
+
const o = e, t = $2 + I2, a = C(!1), r = `tooltip-${ie()}`, s = C(null), i = C(null), n = C({});
|
|
2251
|
+
let l = null, d = null, c = null;
|
|
2189
2252
|
const h = () => {
|
|
2190
2253
|
o.disabled || (l && (clearTimeout(l), l = null), o.delay ? l = window.setTimeout(() => {
|
|
2191
2254
|
a.value = !0, l = null;
|
|
@@ -2217,12 +2280,12 @@ const g2 = (e) => {
|
|
|
2217
2280
|
};
|
|
2218
2281
|
return Y(a, async (y) => {
|
|
2219
2282
|
if (!y) {
|
|
2220
|
-
|
|
2283
|
+
d?.(), d = null, c?.disconnect(), c = null;
|
|
2221
2284
|
return;
|
|
2222
2285
|
}
|
|
2223
|
-
await Le(), u(),
|
|
2286
|
+
await Le(), u(), d = M2(u), c = new ResizeObserver(u), i.value && c.observe(i.value), s.value && c.observe(s.value);
|
|
2224
2287
|
}), He(() => {
|
|
2225
|
-
|
|
2288
|
+
d?.(), c?.disconnect();
|
|
2226
2289
|
}), (y, I) => (v(), f(ae, null, [
|
|
2227
2290
|
g("span", {
|
|
2228
2291
|
ref_key: "triggerRef",
|
|
@@ -2238,7 +2301,7 @@ const g2 = (e) => {
|
|
|
2238
2301
|
onKeydown: fe(L, ["esc"])
|
|
2239
2302
|
}, [
|
|
2240
2303
|
U(y.$slots, "default", {}, void 0, !0)
|
|
2241
|
-
], 40,
|
|
2304
|
+
], 40, L2),
|
|
2242
2305
|
(v(), W(Be, { to: "body" }, [
|
|
2243
2306
|
K($e, { name: "tooltip-fade" }, {
|
|
2244
2307
|
default: G(() => [
|
|
@@ -2258,21 +2321,21 @@ const g2 = (e) => {
|
|
|
2258
2321
|
U(y.$slots, "content", {}, () => [
|
|
2259
2322
|
me(P(e.content), 1)
|
|
2260
2323
|
], !0)
|
|
2261
|
-
], 12,
|
|
2324
|
+
], 12, x2)) : F("", !0)
|
|
2262
2325
|
]),
|
|
2263
2326
|
_: 3
|
|
2264
2327
|
})
|
|
2265
2328
|
]))
|
|
2266
2329
|
], 64));
|
|
2267
2330
|
}
|
|
2268
|
-
}), Ye = /* @__PURE__ */ j(
|
|
2331
|
+
}), Ye = /* @__PURE__ */ j(V2, [["__scopeId", "data-v-c489ef7b"]]);
|
|
2269
2332
|
Ye.install = (e) => {
|
|
2270
2333
|
e.component("Tooltip", Ye);
|
|
2271
2334
|
};
|
|
2272
|
-
const
|
|
2335
|
+
const H2 = {
|
|
2273
2336
|
key: 0,
|
|
2274
2337
|
class: "ui-tag__icon"
|
|
2275
|
-
},
|
|
2338
|
+
}, B2 = { class: "ui-tag__label" }, _2 = ["aria-label"], R2 = /* @__PURE__ */ _({
|
|
2276
2339
|
__name: "Tag",
|
|
2277
2340
|
props: {
|
|
2278
2341
|
as: { default: "span" },
|
|
@@ -2292,10 +2355,10 @@ const $2 = {
|
|
|
2292
2355
|
"is-clickable": t.clickable,
|
|
2293
2356
|
"is-removable": t.removable
|
|
2294
2357
|
}
|
|
2295
|
-
]), n = $(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (
|
|
2296
|
-
t.disabled || !s.value || a("click",
|
|
2297
|
-
},
|
|
2298
|
-
return (
|
|
2358
|
+
]), n = $(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (c) => {
|
|
2359
|
+
t.disabled || !s.value || a("click", c);
|
|
2360
|
+
}, d = () => a("remove");
|
|
2361
|
+
return (c, h) => (v(), W(Ie(e.as), {
|
|
2299
2362
|
ref_key: "rootRef",
|
|
2300
2363
|
ref: r,
|
|
2301
2364
|
class: se(["ui-tag", i.value]),
|
|
@@ -2309,29 +2372,29 @@ const $2 = {
|
|
|
2309
2372
|
]
|
|
2310
2373
|
}, {
|
|
2311
2374
|
default: G(() => [
|
|
2312
|
-
|
|
2313
|
-
U(
|
|
2375
|
+
c.$slots.icon ? (v(), f("span", H2, [
|
|
2376
|
+
U(c.$slots, "icon", {}, void 0, !0)
|
|
2314
2377
|
])) : F("", !0),
|
|
2315
|
-
g("span",
|
|
2316
|
-
U(
|
|
2378
|
+
g("span", B2, [
|
|
2379
|
+
U(c.$slots, "default", {}, void 0, !0)
|
|
2317
2380
|
]),
|
|
2318
2381
|
e.removable ? (v(), f("button", {
|
|
2319
2382
|
key: 1,
|
|
2320
2383
|
class: "ui-tag__remove",
|
|
2321
2384
|
type: "button",
|
|
2322
2385
|
"aria-label": `Remove ${e.textContent}`,
|
|
2323
|
-
onClick: ne(
|
|
2386
|
+
onClick: ne(d, ["stop"])
|
|
2324
2387
|
}, [
|
|
2325
2388
|
K(ue, {
|
|
2326
2389
|
name: "close",
|
|
2327
2390
|
size: 32
|
|
2328
2391
|
})
|
|
2329
|
-
], 8,
|
|
2392
|
+
], 8, _2)) : F("", !0)
|
|
2330
2393
|
]),
|
|
2331
2394
|
_: 3
|
|
2332
2395
|
}, 40, ["class", "aria-disabled", "tabindex", "role"]));
|
|
2333
2396
|
}
|
|
2334
|
-
}),
|
|
2397
|
+
}), Z2 = /* @__PURE__ */ j(R2, [["__scopeId", "data-v-ea48b943"]]), A2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], S2 = /* @__PURE__ */ _({
|
|
2335
2398
|
__name: "Link",
|
|
2336
2399
|
props: {
|
|
2337
2400
|
target: {},
|
|
@@ -2359,9 +2422,9 @@ const $2 = {
|
|
|
2359
2422
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2360
2423
|
}, [
|
|
2361
2424
|
U(s.$slots, "default", {}, void 0, !0)
|
|
2362
|
-
], 8,
|
|
2425
|
+
], 8, A2));
|
|
2363
2426
|
}
|
|
2364
|
-
}),
|
|
2427
|
+
}), no = /* @__PURE__ */ j(S2, [["__scopeId", "data-v-0f5d7308"]]), Ne = (e, o, t, a) => $(() => {
|
|
2365
2428
|
const r = [];
|
|
2366
2429
|
return e.invalid && e.errorMessage && r.push(t), o.hint && r.push(a), r.length > 0 ? r.join(" ") : void 0;
|
|
2367
2430
|
}), _e = (e) => $(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), l1 = (e) => $(() => e.disabled === !0 ? "true" : void 0), Fe = (e, o, t) => {
|
|
@@ -2370,7 +2433,7 @@ const $2 = {
|
|
|
2370
2433
|
we(o, t), t && (t?.classList.remove("focused"), a("blur", e));
|
|
2371
2434
|
}, we = (e, o) => {
|
|
2372
2435
|
!e || !o || (e.value.length > 0 ? o.classList.add("filled") : o.classList.remove("filled"));
|
|
2373
|
-
},
|
|
2436
|
+
}, T2 = ["id"], Pe = /* @__PURE__ */ _({
|
|
2374
2437
|
__name: "Hint",
|
|
2375
2438
|
props: {
|
|
2376
2439
|
hintId: {}
|
|
@@ -2382,9 +2445,9 @@ const $2 = {
|
|
|
2382
2445
|
class: "visually-hidden"
|
|
2383
2446
|
}, [
|
|
2384
2447
|
U(o.$slots, "default")
|
|
2385
|
-
], 8,
|
|
2448
|
+
], 8, T2)) : F("", !0);
|
|
2386
2449
|
}
|
|
2387
|
-
}),
|
|
2450
|
+
}), E2 = ["id"], Ue = /* @__PURE__ */ _({
|
|
2388
2451
|
__name: "RequiredHint",
|
|
2389
2452
|
props: {
|
|
2390
2453
|
baseId: {},
|
|
@@ -2395,9 +2458,9 @@ const $2 = {
|
|
|
2395
2458
|
key: 0,
|
|
2396
2459
|
id: `${e.baseId}-required-hint`,
|
|
2397
2460
|
class: "visually-hidden"
|
|
2398
|
-
}, " Required field ", 8,
|
|
2461
|
+
}, " Required field ", 8, E2)) : F("", !0);
|
|
2399
2462
|
}
|
|
2400
|
-
}),
|
|
2463
|
+
}), D2 = ["id"], je = /* @__PURE__ */ _({
|
|
2401
2464
|
__name: "ErrorMessage",
|
|
2402
2465
|
props: {
|
|
2403
2466
|
errorId: {},
|
|
@@ -2410,9 +2473,9 @@ const $2 = {
|
|
|
2410
2473
|
id: e.errorId,
|
|
2411
2474
|
class: "error-text",
|
|
2412
2475
|
role: "alert"
|
|
2413
|
-
}, P(e.errorMessage), 9,
|
|
2476
|
+
}, P(e.errorMessage), 9, D2)) : F("", !0);
|
|
2414
2477
|
}
|
|
2415
|
-
}),
|
|
2478
|
+
}), z2 = ["for"], O2 = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], q2 = /* @__PURE__ */ _({
|
|
2416
2479
|
__name: "Input",
|
|
2417
2480
|
props: /* @__PURE__ */ oe({
|
|
2418
2481
|
id: {},
|
|
@@ -2428,7 +2491,7 @@ const $2 = {
|
|
|
2428
2491
|
}),
|
|
2429
2492
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
2430
2493
|
setup(e, { emit: o }) {
|
|
2431
|
-
const t = pe(e, "modelValue"), a = e, r = o, s =
|
|
2494
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = Oe(), i = ie(), n = `${i}-error`, l = `${i}-hint`, d = _e(s).value, c = $(() => d ? `${l} ${i}-required-hint` : l), h = $(() => a.invalid === !0 && a.errorMessage ? n : void 0), L = $(() => a.type === "password" ? I.value ? "text" : "password" : a.type), M = $(() => {
|
|
2432
2495
|
const { type: D, ...E } = s;
|
|
2433
2496
|
return E;
|
|
2434
2497
|
}), u = C(null), y = C(null), I = C(!1), B = () => I.value = !I.value, k = (D) => {
|
|
@@ -2439,14 +2502,14 @@ const $2 = {
|
|
|
2439
2502
|
return te(() => {
|
|
2440
2503
|
we(u.value, y.value);
|
|
2441
2504
|
}), (D, E) => (v(), f("div", {
|
|
2442
|
-
class: se(["input-box", { required: R(
|
|
2505
|
+
class: se(["input-box", { required: R(d), error: e.invalid }]),
|
|
2443
2506
|
ref_key: "inputBoxRef",
|
|
2444
2507
|
ref: y
|
|
2445
2508
|
}, [
|
|
2446
2509
|
g("label", {
|
|
2447
2510
|
for: e.id,
|
|
2448
2511
|
class: "label"
|
|
2449
|
-
}, P(e.label), 9,
|
|
2512
|
+
}, P(e.label), 9, z2),
|
|
2450
2513
|
g("input", Ce({
|
|
2451
2514
|
id: e.id,
|
|
2452
2515
|
type: L.value
|
|
@@ -2456,13 +2519,13 @@ const $2 = {
|
|
|
2456
2519
|
onFocus: E[0] || (E[0] = (p) => R(Fe)(p, y.value, r)),
|
|
2457
2520
|
onBlur: E[1] || (E[1] = (p) => R(Ke)(p, u.value, y.value, r)),
|
|
2458
2521
|
value: t.value,
|
|
2459
|
-
required: R(
|
|
2522
|
+
required: R(d),
|
|
2460
2523
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2461
2524
|
"aria-errormessage": h.value,
|
|
2462
|
-
"aria-describedby": R(Ne)(D.$props, D.$slots, n,
|
|
2525
|
+
"aria-describedby": R(Ne)(D.$props, D.$slots, n, c.value).value,
|
|
2463
2526
|
ref_key: "inputRef",
|
|
2464
2527
|
ref: u
|
|
2465
|
-
}), null, 16,
|
|
2528
|
+
}), null, 16, O2),
|
|
2466
2529
|
K(Pe, { hintId: l }, {
|
|
2467
2530
|
default: G(() => [
|
|
2468
2531
|
U(D.$slots, "hint", {}, void 0, !0)
|
|
@@ -2471,7 +2534,7 @@ const $2 = {
|
|
|
2471
2534
|
}),
|
|
2472
2535
|
K(Ue, {
|
|
2473
2536
|
baseId: R(i),
|
|
2474
|
-
isRequired: R(
|
|
2537
|
+
isRequired: R(d)
|
|
2475
2538
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2476
2539
|
K(je, {
|
|
2477
2540
|
errorId: n,
|
|
@@ -2493,14 +2556,14 @@ const $2 = {
|
|
|
2493
2556
|
}, 16, ["aria-label"])) : F("", !0)
|
|
2494
2557
|
], 2));
|
|
2495
2558
|
}
|
|
2496
|
-
}),
|
|
2559
|
+
}), lo = /* @__PURE__ */ j(q2, [["__scopeId", "data-v-a4f7bb5b"]]), N2 = ["data-size", "data-shape", "aria-label", "aria-busy"], F2 = {
|
|
2497
2560
|
key: 1,
|
|
2498
2561
|
class: "ui-avatar__loading"
|
|
2499
|
-
},
|
|
2562
|
+
}, K2 = {
|
|
2500
2563
|
key: 2,
|
|
2501
2564
|
class: "ui-avatar__fallback",
|
|
2502
2565
|
"aria-hidden": "true"
|
|
2503
|
-
},
|
|
2566
|
+
}, P2 = /* @__PURE__ */ _({
|
|
2504
2567
|
__name: "Avatar",
|
|
2505
2568
|
props: {
|
|
2506
2569
|
src: {},
|
|
@@ -2514,7 +2577,7 @@ const $2 = {
|
|
|
2514
2577
|
return Y(
|
|
2515
2578
|
() => o.src,
|
|
2516
2579
|
() => o.src && (t.value = "loading")
|
|
2517
|
-
), te(() => !o.src && (t.value = "error")), (l,
|
|
2580
|
+
), te(() => !o.src && (t.value = "error")), (l, d) => (v(), f("div", {
|
|
2518
2581
|
class: "ui-avatar",
|
|
2519
2582
|
"data-size": e.size,
|
|
2520
2583
|
"data-shape": e.shape,
|
|
@@ -2528,14 +2591,14 @@ const $2 = {
|
|
|
2528
2591
|
class: "ui-avatar__img",
|
|
2529
2592
|
onLoad: i,
|
|
2530
2593
|
onError: n
|
|
2531
|
-
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div",
|
|
2594
|
+
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div", F2)) : (v(), f("div", K2, [
|
|
2532
2595
|
U(l.$slots, "default", {}, () => [
|
|
2533
2596
|
me(P(r.value), 1)
|
|
2534
2597
|
], !0)
|
|
2535
2598
|
]))
|
|
2536
|
-
], 8,
|
|
2599
|
+
], 8, N2));
|
|
2537
2600
|
}
|
|
2538
|
-
}),
|
|
2601
|
+
}), ro = /* @__PURE__ */ j(P2, [["__scopeId", "data-v-e36c822a"]]), U2 = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled", "disabled"], j2 = ["innerHTML"], X2 = ["id", "aria-disabled", "aria-selected", "onClick"], G2 = ["innerHTML"], W2 = /* @__PURE__ */ _({
|
|
2539
2602
|
__name: "Select",
|
|
2540
2603
|
props: /* @__PURE__ */ oe({
|
|
2541
2604
|
id: {},
|
|
@@ -2553,7 +2616,7 @@ const $2 = {
|
|
|
2553
2616
|
Y(s, (w) => {
|
|
2554
2617
|
w ? document.addEventListener("mousedown", T) : document.removeEventListener("mousedown", T);
|
|
2555
2618
|
});
|
|
2556
|
-
const i =
|
|
2619
|
+
const i = Oe(), n = C(null), l = $(() => a.id ?? ie()), d = `${l.value}-label`, c = `${l.value}-listbox`, h = `${l.value}-error`, L = `${l.value}-hint`, M = `${l.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} ${l.value}-required-hint` : L), D = $(() => s.value && I.value ? I.value : void 0), E = $(() => y.value !== null ? a.options[y.value]?.value : ""), p = (w) => {
|
|
2557
2620
|
const A = n.value;
|
|
2558
2621
|
A && (A.classList.add("focused"), r("focus", w));
|
|
2559
2622
|
}, x = (w) => {
|
|
@@ -2561,7 +2624,7 @@ const $2 = {
|
|
|
2561
2624
|
!J || J?.contains(A) || (J.classList.remove("focused"), s.value = !1, r("blur", w));
|
|
2562
2625
|
}, V = (w) => {
|
|
2563
2626
|
s.value = !s.value, s.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && r("click", w);
|
|
2564
|
-
},
|
|
2627
|
+
}, O = (w, A) => {
|
|
2565
2628
|
const J = n.value;
|
|
2566
2629
|
!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, r("change", w.key));
|
|
2567
2630
|
}, Z = (w) => {
|
|
@@ -2582,7 +2645,7 @@ const $2 = {
|
|
|
2582
2645
|
if (u.value === null) return;
|
|
2583
2646
|
const A = a.options[u.value];
|
|
2584
2647
|
if (!A || A.disabled) return;
|
|
2585
|
-
|
|
2648
|
+
O(A, u.value), s.value = !1, w.preventDefault();
|
|
2586
2649
|
}
|
|
2587
2650
|
w.key === "Escape" && (s.value = !1);
|
|
2588
2651
|
}
|
|
@@ -2621,9 +2684,9 @@ const $2 = {
|
|
|
2621
2684
|
type: "button",
|
|
2622
2685
|
"aria-haspopup": "listbox",
|
|
2623
2686
|
"aria-expanded": s.value,
|
|
2624
|
-
"aria-controls":
|
|
2687
|
+
"aria-controls": c,
|
|
2625
2688
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2626
|
-
"aria-labelledby": `${
|
|
2689
|
+
"aria-labelledby": `${d} ${M}`,
|
|
2627
2690
|
"aria-required": R(B),
|
|
2628
2691
|
"aria-describedby": R(Ne)(w.$props, w.$slots, h, k.value).value,
|
|
2629
2692
|
"aria-activedescendant": D.value,
|
|
@@ -2636,7 +2699,7 @@ const $2 = {
|
|
|
2636
2699
|
ref: "buttonRef"
|
|
2637
2700
|
}, [
|
|
2638
2701
|
g("span", {
|
|
2639
|
-
id:
|
|
2702
|
+
id: d,
|
|
2640
2703
|
class: "label"
|
|
2641
2704
|
}, P(e.label), 1),
|
|
2642
2705
|
g("span", {
|
|
@@ -2645,35 +2708,35 @@ const $2 = {
|
|
|
2645
2708
|
"aria-live": "polite",
|
|
2646
2709
|
"aria-atomic": "true",
|
|
2647
2710
|
innerHTML: E.value
|
|
2648
|
-
}, null, 8,
|
|
2711
|
+
}, null, 8, j2),
|
|
2649
2712
|
K(ue, {
|
|
2650
2713
|
name: "directionDown",
|
|
2651
2714
|
"aria-hidden": "true"
|
|
2652
2715
|
})
|
|
2653
|
-
], 40,
|
|
2716
|
+
], 40, U2),
|
|
2654
2717
|
K($e, { name: "select" }, {
|
|
2655
2718
|
default: G(() => [
|
|
2656
2719
|
Ve(g("ul", {
|
|
2657
|
-
id:
|
|
2720
|
+
id: c,
|
|
2658
2721
|
role: "listbox",
|
|
2659
2722
|
class: "options"
|
|
2660
2723
|
}, [
|
|
2661
|
-
(v(!0), f(ae, null,
|
|
2662
|
-
id: `${
|
|
2663
|
-
key:
|
|
2724
|
+
(v(!0), f(ae, null, ce(e.options, (J, de) => (v(), f("li", {
|
|
2725
|
+
id: `${c}-option-${de}`,
|
|
2726
|
+
key: de,
|
|
2664
2727
|
role: "option",
|
|
2665
|
-
class: se(["option", { "focus-visible": u.value ===
|
|
2728
|
+
class: se(["option", { "focus-visible": u.value === de }]),
|
|
2666
2729
|
"aria-disabled": J.disabled,
|
|
2667
|
-
"aria-selected": y.value ===
|
|
2668
|
-
onClick: (H) => !J.disabled &&
|
|
2730
|
+
"aria-selected": y.value === de,
|
|
2731
|
+
onClick: (H) => !J.disabled && O(J, de)
|
|
2669
2732
|
}, [
|
|
2670
2733
|
g("div", {
|
|
2671
2734
|
class: "option-value",
|
|
2672
2735
|
innerHTML: J.value
|
|
2673
|
-
}, null, 8,
|
|
2674
|
-
], 10,
|
|
2736
|
+
}, null, 8, G2)
|
|
2737
|
+
], 10, X2))), 128))
|
|
2675
2738
|
], 512), [
|
|
2676
|
-
[
|
|
2739
|
+
[ze, s.value]
|
|
2677
2740
|
])
|
|
2678
2741
|
]),
|
|
2679
2742
|
_: 1
|
|
@@ -2695,10 +2758,10 @@ const $2 = {
|
|
|
2695
2758
|
}, null, 8, ["invalid", "errorMessage"])
|
|
2696
2759
|
], 2));
|
|
2697
2760
|
}
|
|
2698
|
-
}),
|
|
2761
|
+
}), so = /* @__PURE__ */ j(W2, [["__scopeId", "data-v-7be7a049"]]), J2 = ["aria-label"], Y2 = ["onKeydown"], Q2 = {
|
|
2699
2762
|
key: 1,
|
|
2700
2763
|
class: "rs-gallery-thumbs"
|
|
2701
|
-
},
|
|
2764
|
+
}, e5 = ["aria-selected"], t5 = ["onClick"], a5 = /* @__PURE__ */ _({
|
|
2702
2765
|
__name: "GalleryCarousel",
|
|
2703
2766
|
props: /* @__PURE__ */ oe({
|
|
2704
2767
|
images: {},
|
|
@@ -2719,28 +2782,28 @@ const $2 = {
|
|
|
2719
2782
|
}),
|
|
2720
2783
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
2721
2784
|
setup(e, { emit: o }) {
|
|
2722
|
-
const t = pe(e, "modelValue"), a = e, r = o, s = C([]), i = C("next"), n = C(null), l = `gallery-caption-${ie()}`,
|
|
2785
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = C([]), i = C("next"), n = C(null), l = `gallery-caption-${ie()}`, d = C(null), c = $(() => t.value), h = $(() => a.images[c.value]), L = (k, D) => {
|
|
2723
2786
|
k && (s.value[D] = k);
|
|
2724
2787
|
}, M = (k) => {
|
|
2725
|
-
k !==
|
|
2788
|
+
k !== c.value && (i.value = k > c.value ? "next" : "prev", t.value = k, r("change", k));
|
|
2726
2789
|
}, u = () => {
|
|
2727
|
-
if (
|
|
2790
|
+
if (c.value === a.images.length - 1) {
|
|
2728
2791
|
a.loop && M(0);
|
|
2729
2792
|
return;
|
|
2730
2793
|
}
|
|
2731
|
-
M(
|
|
2794
|
+
M(c.value + 1);
|
|
2732
2795
|
}, y = () => {
|
|
2733
|
-
if (
|
|
2796
|
+
if (c.value === 0) {
|
|
2734
2797
|
a.loop && M(a.images.length - 1);
|
|
2735
2798
|
return;
|
|
2736
2799
|
}
|
|
2737
|
-
M(
|
|
2800
|
+
M(c.value - 1);
|
|
2738
2801
|
}, I = () => {
|
|
2739
|
-
|
|
2802
|
+
d.value && (n.value = d.value.offsetHeight);
|
|
2740
2803
|
}, B = () => {
|
|
2741
2804
|
n.value = null;
|
|
2742
2805
|
};
|
|
2743
|
-
return Y(
|
|
2806
|
+
return Y(c, async (k) => {
|
|
2744
2807
|
await Le();
|
|
2745
2808
|
const D = s.value[k];
|
|
2746
2809
|
D && D.scrollIntoView({
|
|
@@ -2760,7 +2823,7 @@ const $2 = {
|
|
|
2760
2823
|
}, [
|
|
2761
2824
|
g("div", {
|
|
2762
2825
|
ref_key: "previewRef",
|
|
2763
|
-
ref:
|
|
2826
|
+
ref: d,
|
|
2764
2827
|
tabindex: "0",
|
|
2765
2828
|
class: "rs-gallery-review",
|
|
2766
2829
|
style: ye(n.value ? { height: `${n.value}px` } : void 0),
|
|
@@ -2787,24 +2850,24 @@ const $2 = {
|
|
|
2787
2850
|
}, 8, ["name"]),
|
|
2788
2851
|
U(k.$slots, "overlay", {
|
|
2789
2852
|
image: h.value,
|
|
2790
|
-
index:
|
|
2853
|
+
index: c.value
|
|
2791
2854
|
}, void 0, !0)
|
|
2792
|
-
], 44,
|
|
2855
|
+
], 44, Y2),
|
|
2793
2856
|
h.value?.title ? (v(), f("p", {
|
|
2794
2857
|
key: 0,
|
|
2795
2858
|
id: l,
|
|
2796
2859
|
class: "rs-gallery-caption"
|
|
2797
2860
|
}, P(h.value.title), 1)) : F("", !0),
|
|
2798
|
-
e.showThumbnails ? (v(), f("ul",
|
|
2799
|
-
(v(!0), f(ae, null,
|
|
2861
|
+
e.showThumbnails ? (v(), f("ul", Q2, [
|
|
2862
|
+
(v(!0), f(ae, null, ce(e.images, (E, p) => (v(), f("li", {
|
|
2800
2863
|
key: E.src,
|
|
2801
2864
|
ref_for: !0,
|
|
2802
2865
|
ref: (x) => L(x, p),
|
|
2803
|
-
"aria-selected":
|
|
2866
|
+
"aria-selected": c.value === p
|
|
2804
2867
|
}, [
|
|
2805
2868
|
g("button", {
|
|
2806
2869
|
type: "button",
|
|
2807
|
-
class: se(["rs-gallery-thumb", { active:
|
|
2870
|
+
class: se(["rs-gallery-thumb", { active: c.value === p }]),
|
|
2808
2871
|
onClick: (x) => M(p)
|
|
2809
2872
|
}, [
|
|
2810
2873
|
K(xe, {
|
|
@@ -2812,12 +2875,12 @@ const $2 = {
|
|
|
2812
2875
|
alt: `Select image ${p + 1}`,
|
|
2813
2876
|
transform: e.transformThumbnails
|
|
2814
2877
|
}, null, 8, ["src", "alt", "transform"])
|
|
2815
|
-
], 10,
|
|
2816
|
-
], 8,
|
|
2878
|
+
], 10, t5)
|
|
2879
|
+
], 8, e5))), 128))
|
|
2817
2880
|
])) : F("", !0)
|
|
2818
|
-
], 8,
|
|
2881
|
+
], 8, J2));
|
|
2819
2882
|
}
|
|
2820
|
-
}), r1 = /* @__PURE__ */ j(
|
|
2883
|
+
}), r1 = /* @__PURE__ */ j(a5, [["__scopeId", "data-v-dcfacff6"]]), o5 = ["aria-label"], n5 = ["onClick"], l5 = /* @__PURE__ */ _({
|
|
2821
2884
|
__name: "GalleryGrid",
|
|
2822
2885
|
props: {
|
|
2823
2886
|
images: {},
|
|
@@ -2838,7 +2901,7 @@ const $2 = {
|
|
|
2838
2901
|
role: "list",
|
|
2839
2902
|
"aria-label": e.ariaLabel || "Image grid gallery"
|
|
2840
2903
|
}, [
|
|
2841
|
-
(v(!0), f(ae, null,
|
|
2904
|
+
(v(!0), f(ae, null, ce(e.images, (a, r) => (v(), f("button", {
|
|
2842
2905
|
key: a.src,
|
|
2843
2906
|
type: "button",
|
|
2844
2907
|
class: "grid-item",
|
|
@@ -2849,10 +2912,10 @@ const $2 = {
|
|
|
2849
2912
|
alt: a.alt || "",
|
|
2850
2913
|
transform: e.transform
|
|
2851
2914
|
}, null, 8, ["src", "alt", "transform"])
|
|
2852
|
-
], 8,
|
|
2853
|
-
], 12,
|
|
2915
|
+
], 8, n5))), 128))
|
|
2916
|
+
], 12, o5));
|
|
2854
2917
|
}
|
|
2855
|
-
}), s1 = /* @__PURE__ */ j(
|
|
2918
|
+
}), s1 = /* @__PURE__ */ j(l5, [["__scopeId", "data-v-17067a4b"]]), Re = /* @__PURE__ */ Symbol("ModalContext");
|
|
2856
2919
|
let Te = 0, Qe = 0, Ee = null;
|
|
2857
2920
|
const De = _({
|
|
2858
2921
|
name: "Modal",
|
|
@@ -2874,11 +2937,11 @@ const De = _({
|
|
|
2874
2937
|
Y(() => e.open, (h) => r.value = h), Y(r, (h) => {
|
|
2875
2938
|
o("update:open", h), o(h ? "opened" : "closed");
|
|
2876
2939
|
});
|
|
2877
|
-
const l = () => r.value = !1,
|
|
2940
|
+
const l = () => r.value = !1, d = $(() => e.motion), c = $(() => e.size);
|
|
2878
2941
|
return be(Re, {
|
|
2879
2942
|
isOpen: r,
|
|
2880
|
-
motion:
|
|
2881
|
-
size:
|
|
2943
|
+
motion: d,
|
|
2944
|
+
size: c,
|
|
2882
2945
|
close: l,
|
|
2883
2946
|
closeOnOverlay: e.closeOnOverlay,
|
|
2884
2947
|
labelId: i,
|
|
@@ -2891,29 +2954,29 @@ const De = _({
|
|
|
2891
2954
|
setup(e, { slots: o }) {
|
|
2892
2955
|
const t = le(Re);
|
|
2893
2956
|
if (!t) throw new Error("ModalContent components must be used inside <Modal>");
|
|
2894
|
-
const a = C(null), r = ++Te, s = (
|
|
2895
|
-
|
|
2957
|
+
const a = C(null), r = ++Te, s = (c) => {
|
|
2958
|
+
c.key === "Escape" && r === Te && t.close();
|
|
2896
2959
|
};
|
|
2897
2960
|
let i = null;
|
|
2898
|
-
const n = (
|
|
2961
|
+
const n = (c) => {
|
|
2899
2962
|
const h = Array.from(
|
|
2900
|
-
|
|
2963
|
+
c.querySelectorAll(
|
|
2901
2964
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2902
2965
|
)
|
|
2903
2966
|
).filter((y) => !y.hasAttribute("disabled"));
|
|
2904
2967
|
if (h.length === 0) {
|
|
2905
|
-
|
|
2968
|
+
c.setAttribute("tabindex", "-1"), c.focus();
|
|
2906
2969
|
return;
|
|
2907
2970
|
}
|
|
2908
2971
|
const L = h[0], M = h[h.length - 1], u = (y) => {
|
|
2909
2972
|
y.key === "Tab" && (y.shiftKey && document.activeElement === L ? (y.preventDefault(), M?.focus()) : !y.shiftKey && document.activeElement === M && (y.preventDefault(), L?.focus()));
|
|
2910
2973
|
};
|
|
2911
|
-
|
|
2912
|
-
|
|
2974
|
+
c.addEventListener("keydown", u), L?.focus(), i = () => {
|
|
2975
|
+
c.removeEventListener("keydown", u), i = null;
|
|
2913
2976
|
};
|
|
2914
2977
|
}, l = () => {
|
|
2915
2978
|
++Qe === 1 && (document.body.style.overflow = "hidden");
|
|
2916
|
-
},
|
|
2979
|
+
}, d = () => {
|
|
2917
2980
|
--Qe === 0 && (document.body.style.overflow = "");
|
|
2918
2981
|
};
|
|
2919
2982
|
return () => N(
|
|
@@ -2931,7 +2994,7 @@ const De = _({
|
|
|
2931
2994
|
a.value && (n(a.value), document.addEventListener("keydown", s));
|
|
2932
2995
|
},
|
|
2933
2996
|
onAfterLeave: () => {
|
|
2934
|
-
Te--, document.removeEventListener("keydown", s), i?.(),
|
|
2997
|
+
Te--, document.removeEventListener("keydown", s), i?.(), d(), Ee?.focus(), Ee = null;
|
|
2935
2998
|
}
|
|
2936
2999
|
},
|
|
2937
3000
|
{
|
|
@@ -2950,7 +3013,7 @@ const De = _({
|
|
|
2950
3013
|
"aria-labelledby": t.labelId,
|
|
2951
3014
|
"aria-describedby": t.descriptionId,
|
|
2952
3015
|
class: ["modal-content", `modal--${t.size.value}`],
|
|
2953
|
-
onClick: (
|
|
3016
|
+
onClick: (c) => c.stopPropagation()
|
|
2954
3017
|
},
|
|
2955
3018
|
o.default?.()
|
|
2956
3019
|
)
|
|
@@ -2966,17 +3029,17 @@ const De = _({
|
|
|
2966
3029
|
if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
|
|
2967
3030
|
return t.hasTitle.value = !0, () => N("h2", { id: t.labelId }, o.default?.());
|
|
2968
3031
|
}
|
|
2969
|
-
}),
|
|
3032
|
+
}), c1 = _({
|
|
2970
3033
|
name: "ModalHeader",
|
|
2971
3034
|
setup(e, { slots: o }) {
|
|
2972
3035
|
return () => N("div", { class: "modal-header" }, o.default?.());
|
|
2973
3036
|
}
|
|
2974
|
-
}),
|
|
3037
|
+
}), d1 = _({
|
|
2975
3038
|
name: "ModalBody",
|
|
2976
3039
|
setup(e, { slots: o }) {
|
|
2977
3040
|
return () => N("div", { class: "modal-body" }, o.default?.());
|
|
2978
3041
|
}
|
|
2979
|
-
}),
|
|
3042
|
+
}), io = _({
|
|
2980
3043
|
name: "ModalFooter",
|
|
2981
3044
|
setup(e, { slots: o }) {
|
|
2982
3045
|
return () => N("div", { class: "modal-footer" }, o.default?.());
|
|
@@ -3000,10 +3063,10 @@ const De = _({
|
|
|
3000
3063
|
});
|
|
3001
3064
|
Object.assign(De, {
|
|
3002
3065
|
install(e) {
|
|
3003
|
-
e.component("Modal", De), e.component("ModalBody",
|
|
3066
|
+
e.component("Modal", De), e.component("ModalBody", d1), e.component("ModalTitle", u1), e.component("ModalClose", v1), e.component("ModalHeader", c1), e.component("ModalContent", i1);
|
|
3004
3067
|
}
|
|
3005
3068
|
});
|
|
3006
|
-
const
|
|
3069
|
+
const r5 = /* @__PURE__ */ _({
|
|
3007
3070
|
__name: "GalleryGridWithLightbox",
|
|
3008
3071
|
props: {
|
|
3009
3072
|
images: {},
|
|
@@ -3037,7 +3100,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3037
3100
|
default: G(() => [
|
|
3038
3101
|
K(R(i1), null, {
|
|
3039
3102
|
default: G(() => [
|
|
3040
|
-
K(R(
|
|
3103
|
+
K(R(c1), null, {
|
|
3041
3104
|
default: G(() => [
|
|
3042
3105
|
K(R(u1), null, {
|
|
3043
3106
|
default: G(() => [...i[3] || (i[3] = [
|
|
@@ -3049,7 +3112,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3049
3112
|
]),
|
|
3050
3113
|
_: 1
|
|
3051
3114
|
}),
|
|
3052
|
-
K(R(
|
|
3115
|
+
K(R(d1), null, {
|
|
3053
3116
|
default: G(() => [
|
|
3054
3117
|
K(r1, {
|
|
3055
3118
|
modelValue: o.value,
|
|
@@ -3071,7 +3134,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3071
3134
|
}, 8, ["open"])
|
|
3072
3135
|
], 64));
|
|
3073
3136
|
}
|
|
3074
|
-
}),
|
|
3137
|
+
}), s5 = { class: "rs-gallery-masonry" }, i5 = /* @__PURE__ */ _({
|
|
3075
3138
|
__name: "GalleryMasonry",
|
|
3076
3139
|
props: {
|
|
3077
3140
|
images: {},
|
|
@@ -3085,8 +3148,8 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3085
3148
|
gap: { default: "1rem" }
|
|
3086
3149
|
},
|
|
3087
3150
|
setup(e) {
|
|
3088
|
-
return (o, t) => (v(), f("div",
|
|
3089
|
-
(v(!0), f(ae, null,
|
|
3151
|
+
return (o, t) => (v(), f("div", s5, [
|
|
3152
|
+
(v(!0), f(ae, null, ce(e.images, (a) => (v(), f("button", {
|
|
3090
3153
|
key: a.src,
|
|
3091
3154
|
class: "masonry-item"
|
|
3092
3155
|
}, [
|
|
@@ -3098,11 +3161,11 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3098
3161
|
]))), 128))
|
|
3099
3162
|
]));
|
|
3100
3163
|
}
|
|
3101
|
-
}),
|
|
3164
|
+
}), u5 = /* @__PURE__ */ j(i5, [["__scopeId", "data-v-afb75845"]]), c5 = {
|
|
3102
3165
|
class: "rs-image-gallery",
|
|
3103
3166
|
role: "region",
|
|
3104
3167
|
"aria-label": "Image gallery"
|
|
3105
|
-
},
|
|
3168
|
+
}, d5 = /* @__PURE__ */ _({
|
|
3106
3169
|
__name: "ImageGallery",
|
|
3107
3170
|
props: /* @__PURE__ */ oe({
|
|
3108
3171
|
images: {},
|
|
@@ -3129,7 +3192,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3129
3192
|
t.value = i, a("change", i);
|
|
3130
3193
|
}
|
|
3131
3194
|
}), s = (i) => r.value = i;
|
|
3132
|
-
return (i, n) => (v(), f("section",
|
|
3195
|
+
return (i, n) => (v(), f("section", c5, [
|
|
3133
3196
|
e.layout === "carousel" ? (v(), W(r1, {
|
|
3134
3197
|
key: 0,
|
|
3135
3198
|
modelValue: r.value,
|
|
@@ -3150,14 +3213,14 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3150
3213
|
gap: e.gap,
|
|
3151
3214
|
transform: e.transform,
|
|
3152
3215
|
"aria-label": e.ariaLabel
|
|
3153
|
-
}, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), W(
|
|
3216
|
+
}, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), W(r5, {
|
|
3154
3217
|
key: 2,
|
|
3155
3218
|
modelValue: r.value,
|
|
3156
3219
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => r.value = l),
|
|
3157
3220
|
images: e.images,
|
|
3158
3221
|
transform: e.transform,
|
|
3159
3222
|
"aria-label": e.ariaLabel
|
|
3160
|
-
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), W(
|
|
3223
|
+
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), W(u5, {
|
|
3161
3224
|
key: 3,
|
|
3162
3225
|
modelValue: r.value,
|
|
3163
3226
|
"onUpdate:modelValue": n[3] || (n[3] = (l) => r.value = l),
|
|
@@ -3167,16 +3230,16 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3167
3230
|
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : F("", !0)
|
|
3168
3231
|
]));
|
|
3169
3232
|
}
|
|
3170
|
-
}), e1 = /* @__PURE__ */ j(
|
|
3233
|
+
}), e1 = /* @__PURE__ */ j(d5, [["__scopeId", "data-v-d6be1b96"]]);
|
|
3171
3234
|
e1.install = (e) => e.component("ImageGallery", e1);
|
|
3172
|
-
const
|
|
3235
|
+
const v5 = ["aria-busy"], f5 = {
|
|
3173
3236
|
key: 0,
|
|
3174
3237
|
class: "message",
|
|
3175
3238
|
"aria-hidden": "true"
|
|
3176
|
-
},
|
|
3239
|
+
}, C5 = {
|
|
3177
3240
|
class: "message sr-only",
|
|
3178
3241
|
"aria-atomic": "true"
|
|
3179
|
-
},
|
|
3242
|
+
}, p5 = /* @__PURE__ */ _({
|
|
3180
3243
|
__name: "Spinner",
|
|
3181
3244
|
props: {
|
|
3182
3245
|
message: {}
|
|
@@ -3204,21 +3267,21 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3204
3267
|
class: "spinner",
|
|
3205
3268
|
"aria-hidden": "true"
|
|
3206
3269
|
}, null, -1)),
|
|
3207
|
-
e.message ? (v(), f("span",
|
|
3208
|
-
g("span",
|
|
3209
|
-
], 8,
|
|
3270
|
+
e.message ? (v(), f("span", f5, P(r.value), 1)) : F("", !0),
|
|
3271
|
+
g("span", C5, P(e.message || "Loading"), 1)
|
|
3272
|
+
], 8, v5));
|
|
3210
3273
|
}
|
|
3211
|
-
}), f1 = /* @__PURE__ */ j(
|
|
3274
|
+
}), f1 = /* @__PURE__ */ j(p5, [["__scopeId", "data-v-e61a1cf5"]]), m5 = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], h5 = {
|
|
3212
3275
|
class: "checkbox-control",
|
|
3213
3276
|
"aria-hidden": "true"
|
|
3214
|
-
},
|
|
3277
|
+
}, y5 = {
|
|
3215
3278
|
key: 0,
|
|
3216
3279
|
"view-box": "0 0 16 16"
|
|
3217
|
-
},
|
|
3280
|
+
}, b5 = {
|
|
3218
3281
|
key: 1,
|
|
3219
3282
|
class: "indeterminate",
|
|
3220
3283
|
"view-box": "0 0 16 16"
|
|
3221
|
-
},
|
|
3284
|
+
}, g5 = { class: "checkbox-label" }, k5 = /* @__PURE__ */ _({
|
|
3222
3285
|
__name: "Checkbox",
|
|
3223
3286
|
props: /* @__PURE__ */ oe({
|
|
3224
3287
|
id: {},
|
|
@@ -3232,7 +3295,7 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3232
3295
|
}),
|
|
3233
3296
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3234
3297
|
setup(e, { emit: o }) {
|
|
3235
|
-
const t = o, a = pe(e, "modelValue"), r = e, s = ie(), i = $(() => r.id ?? `checkbox-${s}`), n = C(null), l = l1(r).value,
|
|
3298
|
+
const t = o, a = pe(e, "modelValue"), r = e, s = ie(), i = $(() => r.id ?? `checkbox-${s}`), n = C(null), l = l1(r).value, d = $(() => r.required ? !0 : void 0), c = $(() => r.triState && a.value === void 0 ? "mixed" : void 0);
|
|
3236
3299
|
Y(
|
|
3237
3300
|
() => a.value,
|
|
3238
3301
|
(L) => {
|
|
@@ -3251,42 +3314,42 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3251
3314
|
}
|
|
3252
3315
|
};
|
|
3253
3316
|
return (L, M) => (v(), f("label", {
|
|
3254
|
-
class: se(["checkbox-root", { required:
|
|
3317
|
+
class: se(["checkbox-root", { required: d.value, error: e.invalid }])
|
|
3255
3318
|
}, [
|
|
3256
3319
|
g("input", {
|
|
3257
3320
|
id: i.value,
|
|
3258
3321
|
type: "checkbox",
|
|
3259
3322
|
class: "checkbox",
|
|
3260
|
-
required:
|
|
3323
|
+
required: d.value,
|
|
3261
3324
|
checked: a.value === !0,
|
|
3262
3325
|
disabled: e.disabled,
|
|
3263
3326
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3264
3327
|
"aria-disabled": R(l),
|
|
3265
|
-
"aria-checked":
|
|
3328
|
+
"aria-checked": c.value,
|
|
3266
3329
|
onClick: M[0] || (M[0] = (u) => e.triState ? h(u) : void 0),
|
|
3267
3330
|
onChange: M[1] || (M[1] = (u) => e.triState ? void 0 : h(u)),
|
|
3268
3331
|
ref_key: "inputRef",
|
|
3269
3332
|
ref: n
|
|
3270
|
-
}, null, 40,
|
|
3271
|
-
g("span",
|
|
3272
|
-
a.value === !0 ? (v(), f("svg",
|
|
3333
|
+
}, null, 40, m5),
|
|
3334
|
+
g("span", h5, [
|
|
3335
|
+
a.value === !0 ? (v(), f("svg", y5, [...M[2] || (M[2] = [
|
|
3273
3336
|
g("path", {
|
|
3274
3337
|
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",
|
|
3275
3338
|
fill: "currentColor"
|
|
3276
3339
|
}, null, -1)
|
|
3277
|
-
])])) : a.value === void 0 ? (v(), f("svg",
|
|
3340
|
+
])])) : a.value === void 0 ? (v(), f("svg", b5, [...M[3] || (M[3] = [
|
|
3278
3341
|
g("path", {
|
|
3279
3342
|
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",
|
|
3280
3343
|
fill: "currentColor"
|
|
3281
3344
|
}, null, -1)
|
|
3282
3345
|
])])) : F("", !0)
|
|
3283
3346
|
]),
|
|
3284
|
-
g("span",
|
|
3347
|
+
g("span", g5, [
|
|
3285
3348
|
U(L.$slots, "default", {}, void 0, !0)
|
|
3286
3349
|
])
|
|
3287
3350
|
], 2));
|
|
3288
3351
|
}
|
|
3289
|
-
}),
|
|
3352
|
+
}), uo = /* @__PURE__ */ j(k5, [["__scopeId", "data-v-3a0c4f73"]]), w5 = ["for"], M5 = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], L5 = /* @__PURE__ */ _({
|
|
3290
3353
|
__name: "Textarea",
|
|
3291
3354
|
props: /* @__PURE__ */ oe({
|
|
3292
3355
|
id: {},
|
|
@@ -3302,11 +3365,11 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3302
3365
|
}),
|
|
3303
3366
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
3304
3367
|
setup(e, { emit: o }) {
|
|
3305
|
-
const t = pe(e, "modelValue"), a =
|
|
3368
|
+
const t = pe(e, "modelValue"), a = Oe(), r = qe(), s = o, i = e, n = C(null), l = C(null), d = ie(), c = `${d}-error`, h = `${d}-hint`, L = _e(a).value, M = $(() => L ? `${h} ${d}-required-hint` : h), u = Ne(i, r, c, M.value).value, y = (B) => {
|
|
3306
3369
|
we(n.value, l.value);
|
|
3307
3370
|
const k = B.target;
|
|
3308
3371
|
t.value = i.type === "number" ? Number(k.value) : k.value;
|
|
3309
|
-
}, I = $(() => i.invalid === !0 && i.errorMessage ?
|
|
3372
|
+
}, I = $(() => i.invalid === !0 && i.errorMessage ? c : void 0);
|
|
3310
3373
|
return te(() => {
|
|
3311
3374
|
we(n.value, l.value);
|
|
3312
3375
|
}), (B, k) => (v(), f("div", {
|
|
@@ -3317,7 +3380,7 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3317
3380
|
g("label", {
|
|
3318
3381
|
for: e.id,
|
|
3319
3382
|
class: "label"
|
|
3320
|
-
}, P(e.label), 9,
|
|
3383
|
+
}, P(e.label), 9, w5),
|
|
3321
3384
|
g("textarea", Ce({ id: e.id }, B.$attrs, {
|
|
3322
3385
|
class: "custom-textarea",
|
|
3323
3386
|
onFocus: k[0] || (k[0] = (D) => R(Fe)(D, l.value, s)),
|
|
@@ -3330,7 +3393,7 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3330
3393
|
"aria-describedby": R(u),
|
|
3331
3394
|
ref_key: "textareaRef",
|
|
3332
3395
|
ref: n
|
|
3333
|
-
}), " ", 16,
|
|
3396
|
+
}), " ", 16, M5),
|
|
3334
3397
|
K(Pe, { hintId: h }, {
|
|
3335
3398
|
default: G(() => [
|
|
3336
3399
|
U(B.$slots, "hint", {}, void 0, !0)
|
|
@@ -3338,17 +3401,17 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3338
3401
|
_: 3
|
|
3339
3402
|
}),
|
|
3340
3403
|
K(Ue, {
|
|
3341
|
-
baseId: R(
|
|
3404
|
+
baseId: R(d),
|
|
3342
3405
|
isRequired: R(L)
|
|
3343
3406
|
}, null, 8, ["baseId", "isRequired"]),
|
|
3344
3407
|
K(je, {
|
|
3345
|
-
errorId:
|
|
3408
|
+
errorId: c,
|
|
3346
3409
|
invalid: e.invalid,
|
|
3347
3410
|
errorMessage: e.errorMessage
|
|
3348
3411
|
}, null, 8, ["invalid", "errorMessage"])
|
|
3349
3412
|
], 2));
|
|
3350
3413
|
}
|
|
3351
|
-
}),
|
|
3414
|
+
}), co = /* @__PURE__ */ j(L5, [["__scopeId", "data-v-3615613f"]]), x5 = { key: 0 }, $5 = { key: 1 }, I5 = /* @__PURE__ */ _({
|
|
3352
3415
|
__name: "Highlight",
|
|
3353
3416
|
props: {
|
|
3354
3417
|
text: {},
|
|
@@ -3359,57 +3422,57 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3359
3422
|
if (!a) return [{ text: t, match: !1 }];
|
|
3360
3423
|
const r = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(r, "ig"), i = [];
|
|
3361
3424
|
let n = 0;
|
|
3362
|
-
return t.replace(s, (l,
|
|
3425
|
+
return t.replace(s, (l, d) => (d > n && i.push({ text: t.slice(n, d), match: !1 }), i.push({ text: l, match: !0 }), n = d + l.length, l)), n < t.length && i.push({ text: t.slice(n), match: !1 }), i;
|
|
3363
3426
|
};
|
|
3364
|
-
return (t, a) => (v(!0), f(ae, null,
|
|
3365
|
-
r.match ? (v(), f("mark",
|
|
3427
|
+
return (t, a) => (v(!0), f(ae, null, ce(o(e.text, e.query), (r, s) => (v(), f(ae, { key: s }, [
|
|
3428
|
+
r.match ? (v(), f("mark", x5, P(r.text), 1)) : (v(), f("span", $5, P(r.text), 1))
|
|
3366
3429
|
], 64))), 128));
|
|
3367
3430
|
}
|
|
3368
|
-
}),
|
|
3431
|
+
}), V5 = /* @__PURE__ */ j(I5, [["__scopeId", "data-v-edfa70b3"]]);
|
|
3369
3432
|
process.env.NODE_ENV;
|
|
3370
3433
|
process.env.NODE_ENV;
|
|
3371
3434
|
process.env.NODE_ENV;
|
|
3372
|
-
const
|
|
3435
|
+
const H5 = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
3373
3436
|
process.env.NODE_ENV;
|
|
3374
3437
|
process.env.NODE_ENV;
|
|
3375
|
-
const
|
|
3438
|
+
const B5 = {
|
|
3376
3439
|
class: "ui-breadcrumb",
|
|
3377
3440
|
"aria-label": "Breadcrumb"
|
|
3378
|
-
},
|
|
3441
|
+
}, _5 = { class: "ui-breadcrumb__list" }, R5 = {
|
|
3379
3442
|
key: 0,
|
|
3380
3443
|
class: "ui-breadcrumb__separator",
|
|
3381
3444
|
"aria-hidden": "true"
|
|
3382
|
-
},
|
|
3445
|
+
}, Z5 = /* @__PURE__ */ _({
|
|
3383
3446
|
__name: "Breadcrumb",
|
|
3384
3447
|
props: {
|
|
3385
3448
|
items: {},
|
|
3386
3449
|
separator: { default: "/" }
|
|
3387
3450
|
},
|
|
3388
3451
|
setup(e) {
|
|
3389
|
-
const o = e, t = le(
|
|
3452
|
+
const o = e, t = le(H5), a = (n) => n === o.items.length - 1, r = (n, l) => s(n, l), s = (n, l) => a(l) || n.disabled ? "span" : n.to && t ? C1("RouterLink") : n.href ? "a" : "span", i = (n, l) => a(l) || n.disabled ? { "data-disabled": n.disabled || void 0 } : n.to ? { to: n.to } : n.href ? {
|
|
3390
3453
|
href: n.href,
|
|
3391
3454
|
target: n.external ? "_blank" : void 0,
|
|
3392
3455
|
rel: n.external ? "noopener noreferrer" : void 0,
|
|
3393
3456
|
"aria-label": n.external ? `${n.label} (opens in a new tab)` : void 0
|
|
3394
3457
|
} : {};
|
|
3395
|
-
return (n, l) => (v(), f("nav",
|
|
3396
|
-
g("ol",
|
|
3397
|
-
(v(!0), f(ae, null,
|
|
3398
|
-
key:
|
|
3458
|
+
return (n, l) => (v(), f("nav", B5, [
|
|
3459
|
+
g("ol", _5, [
|
|
3460
|
+
(v(!0), f(ae, null, ce(e.items, (d, c) => (v(), f("li", {
|
|
3461
|
+
key: d.to ?? d.href ?? `${d.label}-${c}`,
|
|
3399
3462
|
class: "ui-breadcrumb__item"
|
|
3400
3463
|
}, [
|
|
3401
|
-
(v(), W(Ie(r(
|
|
3402
|
-
"aria-posinset":
|
|
3464
|
+
(v(), W(Ie(r(d, c)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(d, c), {
|
|
3465
|
+
"aria-posinset": c + 1,
|
|
3403
3466
|
"aria-setsize": e.items.length,
|
|
3404
|
-
"aria-current": a(
|
|
3405
|
-
tabindex: a(
|
|
3467
|
+
"aria-current": a(c) ? "page" : void 0,
|
|
3468
|
+
tabindex: a(c) || r(d, c) === "span" ? -1 : void 0
|
|
3406
3469
|
}), {
|
|
3407
3470
|
default: G(() => [
|
|
3408
|
-
me(P(
|
|
3471
|
+
me(P(d.label), 1)
|
|
3409
3472
|
]),
|
|
3410
3473
|
_: 2
|
|
3411
3474
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
3412
|
-
a(
|
|
3475
|
+
a(c) ? F("", !0) : (v(), f("span", R5, [
|
|
3413
3476
|
U(n.$slots, "separator", {}, () => [
|
|
3414
3477
|
me(P(e.separator), 1)
|
|
3415
3478
|
], !0)
|
|
@@ -3418,11 +3481,11 @@ const I5 = {
|
|
|
3418
3481
|
])
|
|
3419
3482
|
]));
|
|
3420
3483
|
}
|
|
3421
|
-
}),
|
|
3484
|
+
}), vo = /* @__PURE__ */ j(Z5, [["__scopeId", "data-v-baed1592"]]), A5 = ["aria-invalid", "aria-required", "disabled"], S5 = { class: "sr-only" }, T5 = ["name", "value", "disabled", "required"], E5 = {
|
|
3422
3485
|
key: 0,
|
|
3423
3486
|
class: "radio-control",
|
|
3424
3487
|
"aria-hidden": "true"
|
|
3425
|
-
},
|
|
3488
|
+
}, D5 = { class: "radio-label" }, z5 = /* @__PURE__ */ _({
|
|
3426
3489
|
__name: "RadioButton",
|
|
3427
3490
|
props: /* @__PURE__ */ oe({
|
|
3428
3491
|
name: {},
|
|
@@ -3447,8 +3510,8 @@ const I5 = {
|
|
|
3447
3510
|
"aria-required": r.value,
|
|
3448
3511
|
disabled: s.value
|
|
3449
3512
|
}, [
|
|
3450
|
-
g("legend",
|
|
3451
|
-
(v(!0), f(ae, null,
|
|
3513
|
+
g("legend", S5, P(e.name), 1),
|
|
3514
|
+
(v(!0), f(ae, null, ce(e.options, (l) => (v(), f("label", {
|
|
3452
3515
|
key: l.key,
|
|
3453
3516
|
class: se(["radio", { checked: t.value === l.key, disabled: e.disabled || l.disabled }])
|
|
3454
3517
|
}, [
|
|
@@ -3459,32 +3522,32 @@ const I5 = {
|
|
|
3459
3522
|
value: l.key,
|
|
3460
3523
|
disabled: e.disabled || l.disabled,
|
|
3461
3524
|
required: e.required,
|
|
3462
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3463
|
-
}, null, 8,
|
|
3525
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3526
|
+
}, null, 8, T5), [
|
|
3464
3527
|
[p1, t.value]
|
|
3465
3528
|
]),
|
|
3466
|
-
e.mode === "standard" ? (v(), f("span",
|
|
3467
|
-
g("span",
|
|
3529
|
+
e.mode === "standard" ? (v(), f("span", E5)) : F("", !0),
|
|
3530
|
+
g("span", D5, P(l.label), 1)
|
|
3468
3531
|
], 2))), 128))
|
|
3469
|
-
], 10,
|
|
3532
|
+
], 10, A5));
|
|
3470
3533
|
}
|
|
3471
|
-
}),
|
|
3534
|
+
}), fo = /* @__PURE__ */ j(z5, [["__scopeId", "data-v-8f76f7f0"]]), O5 = ["for"], q5 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], N5 = ["id", "aria-disabled", "aria-selected", "onClick"], F5 = {
|
|
3472
3535
|
class: "option-value",
|
|
3473
3536
|
"aria-hidden": "true"
|
|
3474
|
-
},
|
|
3537
|
+
}, K5 = { class: "option-value sr-only" }, P5 = {
|
|
3475
3538
|
key: 1,
|
|
3476
3539
|
class: "option no-found",
|
|
3477
3540
|
"aria-disabled": "true"
|
|
3478
|
-
},
|
|
3541
|
+
}, U5 = {
|
|
3479
3542
|
key: 3,
|
|
3480
3543
|
class: "option recents",
|
|
3481
3544
|
"aria-disabled": "true",
|
|
3482
3545
|
"aria-hidden": "true"
|
|
3483
|
-
},
|
|
3546
|
+
}, j5 = ["onClick"], X5 = { class: "option-value" }, G5 = {
|
|
3484
3547
|
key: 0,
|
|
3485
3548
|
class: "start-icon",
|
|
3486
3549
|
"aria-hidden": "true"
|
|
3487
|
-
},
|
|
3550
|
+
}, W5 = /* @__PURE__ */ _({
|
|
3488
3551
|
__name: "Autocomplete",
|
|
3489
3552
|
props: /* @__PURE__ */ oe({
|
|
3490
3553
|
id: {},
|
|
@@ -3510,25 +3573,25 @@ const I5 = {
|
|
|
3510
3573
|
}),
|
|
3511
3574
|
emits: /* @__PURE__ */ oe(["change", "select", "focus", "blur"], ["update:modelValue"]),
|
|
3512
3575
|
setup(e, { emit: o }) {
|
|
3513
|
-
const t = e, a = o, r = pe(e, "modelValue"), s = C(null), i = C(null), n = C(""), l = C(!1),
|
|
3576
|
+
const t = e, a = o, r = pe(e, "modelValue"), s = C(null), i = C(null), n = C(""), l = 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 = $(() => l.value && y.value ? y.value : void 0), B = $(() => d.value.length > 0), k = $(() => {
|
|
3514
3577
|
if (!t.filterable) return t.options;
|
|
3515
3578
|
const H = n.value.toLowerCase();
|
|
3516
|
-
return t.options.filter((
|
|
3579
|
+
return t.options.filter((z) => t.getValue(z).toLowerCase().includes(H));
|
|
3517
3580
|
}), D = l1(t).value, E = _e(t).value;
|
|
3518
3581
|
Y(n, () => we(s.value, i.value)), Y(
|
|
3519
3582
|
() => L.value,
|
|
3520
3583
|
(H) => {
|
|
3521
3584
|
if (H)
|
|
3522
3585
|
try {
|
|
3523
|
-
|
|
3586
|
+
d.value = JSON.parse(localStorage.getItem(H) || "[]");
|
|
3524
3587
|
} catch {
|
|
3525
|
-
|
|
3588
|
+
d.value = [];
|
|
3526
3589
|
}
|
|
3527
3590
|
},
|
|
3528
3591
|
{ immediate: !0 }
|
|
3529
3592
|
), Y(l, async (H) => {
|
|
3530
3593
|
if (!H) {
|
|
3531
|
-
|
|
3594
|
+
c.value = null;
|
|
3532
3595
|
return;
|
|
3533
3596
|
}
|
|
3534
3597
|
k.value.length !== 0 && (await Le(), A());
|
|
@@ -3546,68 +3609,68 @@ const I5 = {
|
|
|
3546
3609
|
const p = (H) => {
|
|
3547
3610
|
n.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), Fe(H, i.value, a);
|
|
3548
3611
|
}, x = (H) => {
|
|
3549
|
-
const
|
|
3550
|
-
i.value?.contains(
|
|
3551
|
-
}, V = (H,
|
|
3612
|
+
const z = H.relatedTarget;
|
|
3613
|
+
i.value?.contains(z) || (l.value = !1, r.value ? m() : n.value = "", Ke(H, s.value, i.value, a));
|
|
3614
|
+
}, V = (H, z) => {
|
|
3552
3615
|
const Q = i.value;
|
|
3553
3616
|
if (!Q || t.isDisabled(H)) return;
|
|
3554
|
-
l.value = !1, T(n.value), h.value =
|
|
3617
|
+
l.value = !1, T(n.value), h.value = z, c.value = z;
|
|
3555
3618
|
const S = t.getKey(H);
|
|
3556
3619
|
S && S.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), n.value = t.getValue(H), r.value = S, a("select", S);
|
|
3557
|
-
},
|
|
3620
|
+
}, O = (H) => {
|
|
3558
3621
|
if (!l.value && ["ArrowDown", "ArrowUp"].includes(H.key)) {
|
|
3559
|
-
l.value = !0,
|
|
3622
|
+
l.value = !0, c.value = c.value ?? k.value.findIndex((z) => !t.isDisabled(z)), H.preventDefault();
|
|
3560
3623
|
return;
|
|
3561
3624
|
}
|
|
3562
3625
|
if (l.value) {
|
|
3563
3626
|
if (H.key === "ArrowDown" && (Z(1), H.preventDefault()), H.key === "ArrowUp" && (Z(-1), H.preventDefault()), H.key === "Home") {
|
|
3564
|
-
const
|
|
3565
|
-
|
|
3627
|
+
const z = J();
|
|
3628
|
+
z >= 0 && (c.value = z), H.preventDefault();
|
|
3566
3629
|
}
|
|
3567
3630
|
if (H.key === "End") {
|
|
3568
|
-
const
|
|
3569
|
-
|
|
3631
|
+
const z = de();
|
|
3632
|
+
z >= 0 && (c.value = z), H.preventDefault();
|
|
3570
3633
|
}
|
|
3571
3634
|
if (H.key === "Enter") {
|
|
3572
|
-
if (
|
|
3573
|
-
const
|
|
3574
|
-
if (!
|
|
3575
|
-
V(
|
|
3635
|
+
if (c.value === null) return;
|
|
3636
|
+
const z = k.value[c.value];
|
|
3637
|
+
if (!z || t.isDisabled(z)) return;
|
|
3638
|
+
V(z, c.value), l.value = !1, H.preventDefault();
|
|
3576
3639
|
}
|
|
3577
3640
|
H.key === "Escape" && (l.value = !1);
|
|
3578
3641
|
}
|
|
3579
3642
|
}, Z = (H) => {
|
|
3580
|
-
if (
|
|
3581
|
-
let
|
|
3643
|
+
if (c.value === null) return;
|
|
3644
|
+
let z = c.value;
|
|
3582
3645
|
do
|
|
3583
|
-
|
|
3584
|
-
while (
|
|
3585
|
-
|
|
3646
|
+
z += H;
|
|
3647
|
+
while (z >= 0 && z < k.value.length && t.isDisabled(k.value[z]));
|
|
3648
|
+
z >= 0 && z < k.value.length && (c.value = z);
|
|
3586
3649
|
}, q = () => {
|
|
3587
3650
|
n.value.length === 0 && (r.value = ""), we(s.value, i.value), n.value.length >= t.minChars ? (a("change", n.value), l.value = !0) : l.value = !1;
|
|
3588
3651
|
}, m = () => {
|
|
3589
3652
|
if (r.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
3590
|
-
const H = t.options.findIndex((
|
|
3591
|
-
H > -1 && (
|
|
3653
|
+
const H = t.options.findIndex((z) => t.getKey(z) === r.value);
|
|
3654
|
+
H > -1 && (c.value = H, h.value = H, n.value = t.getValue(t.options[H]), we(s.value, i.value));
|
|
3592
3655
|
}, b = () => {
|
|
3593
3656
|
n.value = "", r.value = "";
|
|
3594
3657
|
}, T = (H) => {
|
|
3595
|
-
!H || H.trim().length === 0 || (
|
|
3658
|
+
!H || H.trim().length === 0 || (d.value = [
|
|
3596
3659
|
H,
|
|
3597
|
-
...
|
|
3598
|
-
].slice(0, t.suggestionsLimit), localStorage.setItem(L.value, JSON.stringify(
|
|
3660
|
+
...d.value.filter((z) => z !== H)
|
|
3661
|
+
].slice(0, t.suggestionsLimit), localStorage.setItem(L.value, JSON.stringify(d.value)));
|
|
3599
3662
|
}, w = (H) => {
|
|
3600
3663
|
n.value = H, q();
|
|
3601
3664
|
}, A = () => {
|
|
3602
3665
|
const H = J();
|
|
3603
|
-
H >= 0 && (
|
|
3604
|
-
}, J = () => k.value.findIndex((H) => !t.isDisabled(H)),
|
|
3666
|
+
H >= 0 && (c.value = H);
|
|
3667
|
+
}, J = () => k.value.findIndex((H) => !t.isDisabled(H)), de = () => {
|
|
3605
3668
|
for (let H = k.value.length - 1; H >= 0; H--) if (!t.isDisabled(k.value[H])) return H;
|
|
3606
3669
|
return -1;
|
|
3607
3670
|
};
|
|
3608
3671
|
return te(() => {
|
|
3609
3672
|
m(), we(s.value, i.value);
|
|
3610
|
-
}), (H,
|
|
3673
|
+
}), (H, z) => (v(), f("div", {
|
|
3611
3674
|
class: se(["autocomplete", { required: R(E), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon") }]),
|
|
3612
3675
|
ref_key: "autocompleteRef",
|
|
3613
3676
|
ref: i
|
|
@@ -3615,7 +3678,7 @@ const I5 = {
|
|
|
3615
3678
|
g("label", {
|
|
3616
3679
|
for: e.id,
|
|
3617
3680
|
class: "label"
|
|
3618
|
-
}, P(e.label), 9,
|
|
3681
|
+
}, P(e.label), 9, O5),
|
|
3619
3682
|
Ve(g("input", Ce({
|
|
3620
3683
|
id: e.id,
|
|
3621
3684
|
type: e.type
|
|
@@ -3630,12 +3693,12 @@ const I5 = {
|
|
|
3630
3693
|
"aria-required": R(E),
|
|
3631
3694
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3632
3695
|
disabled: R(D),
|
|
3633
|
-
"onUpdate:modelValue":
|
|
3696
|
+
"onUpdate:modelValue": z[0] || (z[0] = (Q) => n.value = Q),
|
|
3634
3697
|
onFocus: p,
|
|
3635
3698
|
onBlur: x,
|
|
3636
3699
|
onInput: q,
|
|
3637
|
-
onKeydown:
|
|
3638
|
-
}), null, 16,
|
|
3700
|
+
onKeydown: O
|
|
3701
|
+
}), null, 16, q5), [
|
|
3639
3702
|
[m1, n.value]
|
|
3640
3703
|
]),
|
|
3641
3704
|
K($e, { name: "select" }, {
|
|
@@ -3645,14 +3708,14 @@ const I5 = {
|
|
|
3645
3708
|
role: "listbox",
|
|
3646
3709
|
class: "options"
|
|
3647
3710
|
}, [
|
|
3648
|
-
k.value.length > 0 ? (v(!0), f(ae, { key: 0 },
|
|
3711
|
+
k.value.length > 0 ? (v(!0), f(ae, { key: 0 }, ce(k.value, (Q, S) => (v(), f("li", {
|
|
3649
3712
|
id: `${u}-option-${S}`,
|
|
3650
3713
|
key: e.getKey(Q),
|
|
3651
3714
|
role: "option",
|
|
3652
|
-
class: se(["option", { "focus-visible":
|
|
3715
|
+
class: se(["option", { "focus-visible": c.value === S }]),
|
|
3653
3716
|
"aria-disabled": t.isDisabled(Q) || void 0,
|
|
3654
3717
|
"aria-selected": S === h.value,
|
|
3655
|
-
onMousedown:
|
|
3718
|
+
onMousedown: z[1] || (z[1] = ne(() => {
|
|
3656
3719
|
}, ["prevent"])),
|
|
3657
3720
|
onClick: (X) => !t.isDisabled(Q) && V(Q, S)
|
|
3658
3721
|
}, [
|
|
@@ -3666,17 +3729,17 @@ const I5 = {
|
|
|
3666
3729
|
value: e.getValue(Q),
|
|
3667
3730
|
query: n.value,
|
|
3668
3731
|
selected: S === h.value,
|
|
3669
|
-
active: S ===
|
|
3732
|
+
active: S === c.value
|
|
3670
3733
|
}, () => [
|
|
3671
|
-
g("div",
|
|
3672
|
-
K(
|
|
3734
|
+
g("div", F5, [
|
|
3735
|
+
K(V5, {
|
|
3673
3736
|
text: e.getValue(Q),
|
|
3674
3737
|
query: n.value
|
|
3675
3738
|
}, null, 8, ["text", "query"])
|
|
3676
3739
|
])
|
|
3677
3740
|
], !0),
|
|
3678
|
-
g("div",
|
|
3679
|
-
], 42,
|
|
3741
|
+
g("div", K5, P(e.getValue(Q)), 1)
|
|
3742
|
+
], 42, N5))), 128)) : k.value.length === 0 && !e.loading ? (v(), f("li", P5, [...z[3] || (z[3] = [
|
|
3680
3743
|
g("div", { class: "option-value" }, "No results found", -1)
|
|
3681
3744
|
])])) : (v(), W(f1, {
|
|
3682
3745
|
key: 2,
|
|
@@ -3684,10 +3747,10 @@ const I5 = {
|
|
|
3684
3747
|
role: "status",
|
|
3685
3748
|
message: "Loading"
|
|
3686
3749
|
})),
|
|
3687
|
-
B.value ? (v(), f("li",
|
|
3750
|
+
B.value ? (v(), f("li", U5, [...z[4] || (z[4] = [
|
|
3688
3751
|
g("div", { class: "option-value" }, " Recents ", -1)
|
|
3689
3752
|
])])) : F("", !0),
|
|
3690
|
-
(v(!0), f(ae, null,
|
|
3753
|
+
(v(!0), f(ae, null, ce(d.value, (Q) => (v(), f("li", {
|
|
3691
3754
|
key: Q,
|
|
3692
3755
|
role: "presentation",
|
|
3693
3756
|
"aria-hidden": "true",
|
|
@@ -3695,15 +3758,15 @@ const I5 = {
|
|
|
3695
3758
|
onClick: (S) => w(Q)
|
|
3696
3759
|
}, [
|
|
3697
3760
|
K(ue, { name: "clock" }),
|
|
3698
|
-
g("div",
|
|
3699
|
-
], 8,
|
|
3761
|
+
g("div", X5, P(Q), 1)
|
|
3762
|
+
], 8, j5))), 128))
|
|
3700
3763
|
], 512), [
|
|
3701
|
-
[
|
|
3764
|
+
[ze, l.value]
|
|
3702
3765
|
])
|
|
3703
3766
|
]),
|
|
3704
3767
|
_: 3
|
|
3705
3768
|
}),
|
|
3706
|
-
H.$slots.icon ? (v(), f("span",
|
|
3769
|
+
H.$slots.icon ? (v(), f("span", G5, [
|
|
3707
3770
|
U(H.$slots, "icon", {}, void 0, !0)
|
|
3708
3771
|
])) : F("", !0),
|
|
3709
3772
|
n.value.length > 0 ? (v(), W(he, {
|
|
@@ -3712,7 +3775,7 @@ const I5 = {
|
|
|
3712
3775
|
class: "btn btn-icon",
|
|
3713
3776
|
"aria-label": "Clear search query",
|
|
3714
3777
|
title: "Clear search query",
|
|
3715
|
-
onMousedown:
|
|
3778
|
+
onMousedown: z[2] || (z[2] = ne(() => {
|
|
3716
3779
|
}, ["prevent"])),
|
|
3717
3780
|
onClick: b
|
|
3718
3781
|
}, {
|
|
@@ -3728,22 +3791,22 @@ const I5 = {
|
|
|
3728
3791
|
})) : F("", !0)
|
|
3729
3792
|
], 2));
|
|
3730
3793
|
}
|
|
3731
|
-
}),
|
|
3794
|
+
}), Co = /* @__PURE__ */ j(W5, [["__scopeId", "data-v-aefb7615"]]), J5 = 5, ve = o1({
|
|
3732
3795
|
toasts: []
|
|
3733
3796
|
});
|
|
3734
|
-
let
|
|
3797
|
+
let Y5 = 0;
|
|
3735
3798
|
const Me = (e, o = "info") => {
|
|
3736
3799
|
const t = {
|
|
3737
|
-
id: `toast-${
|
|
3800
|
+
id: `toast-${Y5++}`,
|
|
3738
3801
|
duration: 4e3,
|
|
3739
3802
|
...typeof e == "string" ? { description: e } : e,
|
|
3740
3803
|
variant: o
|
|
3741
3804
|
};
|
|
3742
|
-
return ve.toasts.push(t), ve.toasts.length >
|
|
3743
|
-
},
|
|
3805
|
+
return ve.toasts.push(t), ve.toasts.length > J5 && ve.toasts.shift(), t.id;
|
|
3806
|
+
}, Q5 = (e, o) => ve.toasts = ve.toasts.map((t) => t.id === e ? { ...t, ...o, loading: !1 } : t), po = Object.assign(
|
|
3744
3807
|
(e) => Me(e),
|
|
3745
3808
|
{
|
|
3746
|
-
update:
|
|
3809
|
+
update: Q5,
|
|
3747
3810
|
success: (e) => Me(e, "success"),
|
|
3748
3811
|
error: (e) => Me(e, "error"),
|
|
3749
3812
|
info: (e) => Me(e, "info"),
|
|
@@ -3755,10 +3818,10 @@ const Me = (e, o = "info") => {
|
|
|
3755
3818
|
return e.then(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: o.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: o.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
|
|
3756
3819
|
}
|
|
3757
3820
|
}
|
|
3758
|
-
),
|
|
3821
|
+
), ea = ["data-variant", "data-state", "role", "aria-describedby"], ta = { class: "content" }, aa = {
|
|
3759
3822
|
key: 0,
|
|
3760
3823
|
class: "progress"
|
|
3761
|
-
},
|
|
3824
|
+
}, oa = 160, na = /* @__PURE__ */ _({
|
|
3762
3825
|
__name: "ToastRoot",
|
|
3763
3826
|
props: {
|
|
3764
3827
|
id: {},
|
|
@@ -3771,9 +3834,9 @@ const Me = (e, o = "info") => {
|
|
|
3771
3834
|
const o = e, t = C(null), a = C("open"), r = C(100);
|
|
3772
3835
|
let s = Date.now(), i;
|
|
3773
3836
|
const n = () => {
|
|
3774
|
-
const
|
|
3775
|
-
if (r.value = Math.max(0, 100 -
|
|
3776
|
-
|
|
3837
|
+
const c = Date.now() - s;
|
|
3838
|
+
if (r.value = Math.max(0, 100 - c / o.duration * 100), r.value <= 0) {
|
|
3839
|
+
d();
|
|
3777
3840
|
return;
|
|
3778
3841
|
}
|
|
3779
3842
|
i = requestAnimationFrame(n);
|
|
@@ -3789,10 +3852,10 @@ const Me = (e, o = "info") => {
|
|
|
3789
3852
|
() => l(),
|
|
3790
3853
|
{ immediate: !0 }
|
|
3791
3854
|
);
|
|
3792
|
-
const
|
|
3793
|
-
cancelAnimationFrame(i), a.value = "closing", setTimeout(() => ve.toasts = ve.toasts.filter((
|
|
3855
|
+
const d = () => {
|
|
3856
|
+
cancelAnimationFrame(i), a.value = "closing", setTimeout(() => ve.toasts = ve.toasts.filter((c) => c.id !== o.id), oa);
|
|
3794
3857
|
};
|
|
3795
|
-
return te(() => o.variant === "error" && o.focus && t.value?.focus()), He(() => cancelAnimationFrame(i)), (
|
|
3858
|
+
return te(() => o.variant === "error" && o.focus && t.value?.focus()), He(() => cancelAnimationFrame(i)), (c, h) => (v(), f("div", {
|
|
3796
3859
|
ref_key: "rootRef",
|
|
3797
3860
|
ref: t,
|
|
3798
3861
|
tabindex: "-1",
|
|
@@ -3804,11 +3867,11 @@ const Me = (e, o = "info") => {
|
|
|
3804
3867
|
"aria-atomic": "true",
|
|
3805
3868
|
"aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
|
|
3806
3869
|
}, [
|
|
3807
|
-
g("div",
|
|
3808
|
-
U(
|
|
3870
|
+
g("div", ta, [
|
|
3871
|
+
U(c.$slots, "default", {}, void 0, !0),
|
|
3809
3872
|
K(he, {
|
|
3810
3873
|
type: "button",
|
|
3811
|
-
onClick:
|
|
3874
|
+
onClick: d,
|
|
3812
3875
|
"aria-label": `Close ${e.variant} notification`,
|
|
3813
3876
|
class: "btn-sm"
|
|
3814
3877
|
}, {
|
|
@@ -3821,22 +3884,22 @@ const Me = (e, o = "info") => {
|
|
|
3821
3884
|
_: 1
|
|
3822
3885
|
}, 8, ["aria-label"])
|
|
3823
3886
|
]),
|
|
3824
|
-
e.duration !== 1 / 0 ? (v(), f("div",
|
|
3887
|
+
e.duration !== 1 / 0 ? (v(), f("div", aa, [
|
|
3825
3888
|
g("div", {
|
|
3826
3889
|
class: "bar",
|
|
3827
3890
|
style: ye({ width: r.value + "%" })
|
|
3828
3891
|
}, null, 4)
|
|
3829
3892
|
])) : F("", !0)
|
|
3830
|
-
], 8,
|
|
3893
|
+
], 8, ea));
|
|
3831
3894
|
}
|
|
3832
|
-
}),
|
|
3895
|
+
}), la = /* @__PURE__ */ j(na, [["__scopeId", "data-v-f9e75b9d"]]), ra = { class: "toast-viewport" }, sa = { class: "toast-message" }, ia = { key: 0 }, ua = ["id"], ca = /* @__PURE__ */ _({
|
|
3833
3896
|
__name: "ToastViewport",
|
|
3834
3897
|
setup(e) {
|
|
3835
3898
|
return (o, t) => (v(), W(Be, { to: "body" }, [
|
|
3836
|
-
g("div",
|
|
3899
|
+
g("div", ra, [
|
|
3837
3900
|
K(h1, { name: "toast-stack" }, {
|
|
3838
3901
|
default: G(() => [
|
|
3839
|
-
(v(!0), f(ae, null,
|
|
3902
|
+
(v(!0), f(ae, null, ce(R(ve).toasts, (a) => (v(), W(la, {
|
|
3840
3903
|
key: a.id,
|
|
3841
3904
|
id: a.id,
|
|
3842
3905
|
duration: a.duration,
|
|
@@ -3844,8 +3907,8 @@ const Me = (e, o = "info") => {
|
|
|
3844
3907
|
loading: a.loading
|
|
3845
3908
|
}, {
|
|
3846
3909
|
default: G(() => [
|
|
3847
|
-
g("div",
|
|
3848
|
-
a.title ? (v(), f("strong",
|
|
3910
|
+
g("div", sa, [
|
|
3911
|
+
a.title ? (v(), f("strong", ia, P(a.title), 1)) : F("", !0),
|
|
3849
3912
|
a.loading ? (v(), W(f1, {
|
|
3850
3913
|
key: 1,
|
|
3851
3914
|
message: a.description,
|
|
@@ -3853,7 +3916,7 @@ const Me = (e, o = "info") => {
|
|
|
3853
3916
|
}, null, 8, ["message"])) : (v(), f("p", {
|
|
3854
3917
|
key: 2,
|
|
3855
3918
|
id: `toast-desc-${a.id}`
|
|
3856
|
-
}, P(a.description), 9,
|
|
3919
|
+
}, P(a.description), 9, ua))
|
|
3857
3920
|
])
|
|
3858
3921
|
]),
|
|
3859
3922
|
_: 2
|
|
@@ -3864,9 +3927,9 @@ const Me = (e, o = "info") => {
|
|
|
3864
3927
|
])
|
|
3865
3928
|
]));
|
|
3866
3929
|
}
|
|
3867
|
-
}), t1 = /* @__PURE__ */ j(
|
|
3930
|
+
}), t1 = /* @__PURE__ */ j(ca, [["__scopeId", "data-v-afe47f2a"]]);
|
|
3868
3931
|
let a1 = !1;
|
|
3869
|
-
const
|
|
3932
|
+
const mo = {
|
|
3870
3933
|
install(e, o = {}) {
|
|
3871
3934
|
const { autoMount: t = !0 } = o;
|
|
3872
3935
|
if (e.component("ToastViewport", t1), t && !a1 && typeof window < "u") {
|
|
@@ -3875,7 +3938,7 @@ const fo = {
|
|
|
3875
3938
|
a.setAttribute("data-toast-host", ""), document.body.appendChild(a), y1(t1).mount(a);
|
|
3876
3939
|
}
|
|
3877
3940
|
}
|
|
3878
|
-
},
|
|
3941
|
+
}, da = /* @__PURE__ */ _({
|
|
3879
3942
|
__name: "Card",
|
|
3880
3943
|
props: {
|
|
3881
3944
|
as: { default: "div" },
|
|
@@ -3886,14 +3949,14 @@ const fo = {
|
|
|
3886
3949
|
const t = e, a = o, r = C(), s = C();
|
|
3887
3950
|
be("card:labelId", r), be("card:descriptionId", s);
|
|
3888
3951
|
const i = $(() => t.clickable && t.as !== "button" && t.as !== "a"), n = () => t.clickable && a("click");
|
|
3889
|
-
return (l,
|
|
3952
|
+
return (l, d) => (v(), W(Ie(e.as), {
|
|
3890
3953
|
class: se(["rs-card", { clickable: e.clickable }]),
|
|
3891
3954
|
tabindex: i.value ? 0 : void 0,
|
|
3892
3955
|
role: i.value ? "button" : void 0,
|
|
3893
3956
|
onClick: n,
|
|
3894
3957
|
onKeydown: [
|
|
3895
|
-
|
|
3896
|
-
|
|
3958
|
+
d[0] || (d[0] = fe(ne((c) => i.value && n(), ["prevent"]), ["enter"])),
|
|
3959
|
+
d[1] || (d[1] = fe(ne((c) => i.value && n(), ["prevent"]), ["space"]))
|
|
3897
3960
|
],
|
|
3898
3961
|
"aria-labelledby": r.value,
|
|
3899
3962
|
"aria-describedby": s.value
|
|
@@ -3904,7 +3967,7 @@ const fo = {
|
|
|
3904
3967
|
_: 3
|
|
3905
3968
|
}, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
|
|
3906
3969
|
}
|
|
3907
|
-
}),
|
|
3970
|
+
}), ho = /* @__PURE__ */ j(da, [["__scopeId", "data-v-e892a9f2"]]), va = /* @__PURE__ */ _({
|
|
3908
3971
|
__name: "CardHeader",
|
|
3909
3972
|
props: {
|
|
3910
3973
|
as: { default: "div" }
|
|
@@ -3921,7 +3984,7 @@ const fo = {
|
|
|
3921
3984
|
_: 3
|
|
3922
3985
|
}));
|
|
3923
3986
|
}
|
|
3924
|
-
}),
|
|
3987
|
+
}), yo = /* @__PURE__ */ j(va, [["__scopeId", "data-v-570794b4"]]), fa = /* @__PURE__ */ _({
|
|
3925
3988
|
__name: "CardBody",
|
|
3926
3989
|
setup(e) {
|
|
3927
3990
|
const o = le("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
|
|
@@ -3932,7 +3995,7 @@ const fo = {
|
|
|
3932
3995
|
U(a.$slots, "default", {}, void 0, !0)
|
|
3933
3996
|
]));
|
|
3934
3997
|
}
|
|
3935
|
-
}),
|
|
3998
|
+
}), bo = /* @__PURE__ */ j(fa, [["__scopeId", "data-v-f0380fda"]]), Ca = /* @__PURE__ */ _({
|
|
3936
3999
|
__name: "CardFooter",
|
|
3937
4000
|
props: {
|
|
3938
4001
|
as: { default: "div" }
|
|
@@ -3945,23 +4008,23 @@ const fo = {
|
|
|
3945
4008
|
_: 3
|
|
3946
4009
|
}));
|
|
3947
4010
|
}
|
|
3948
|
-
}),
|
|
4011
|
+
}), go = /* @__PURE__ */ j(Ca, [["__scopeId", "data-v-9b223473"]]), pa = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], ma = {
|
|
3949
4012
|
key: 2,
|
|
3950
4013
|
class: "icon",
|
|
3951
4014
|
"aria-hidden": "true",
|
|
3952
4015
|
focusable: "false"
|
|
3953
|
-
},
|
|
4016
|
+
}, ha = {
|
|
3954
4017
|
key: 3,
|
|
3955
4018
|
class: "icon",
|
|
3956
4019
|
"aria-hidden": "true",
|
|
3957
4020
|
focusable: "false"
|
|
3958
|
-
},
|
|
4021
|
+
}, ya = {
|
|
3959
4022
|
key: 4,
|
|
3960
4023
|
class: "dot"
|
|
3961
|
-
},
|
|
4024
|
+
}, ba = ["id"], ga = { class: "addons" }, ka = ["id"], wa = {
|
|
3962
4025
|
key: 0,
|
|
3963
4026
|
class: "slot-default"
|
|
3964
|
-
},
|
|
4027
|
+
}, Ma = /* @__PURE__ */ _({
|
|
3965
4028
|
__name: "Step",
|
|
3966
4029
|
props: {
|
|
3967
4030
|
title: {},
|
|
@@ -3974,10 +4037,10 @@ const fo = {
|
|
|
3974
4037
|
if (!t) throw new Error("Step component must be used inside Steps.");
|
|
3975
4038
|
const a = qe(), r = C(null), s = C(null), i = $(() => t.orientation ?? "horizontal");
|
|
3976
4039
|
let n = null, l = null;
|
|
3977
|
-
const
|
|
3978
|
-
if (
|
|
3979
|
-
const
|
|
3980
|
-
switch (
|
|
4040
|
+
const d = le("StepIndex");
|
|
4041
|
+
if (d == null) throw new Error("StepIndex component must be used inside Steps.");
|
|
4042
|
+
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 = $(() => {
|
|
4043
|
+
switch (c.value) {
|
|
3981
4044
|
case "completed":
|
|
3982
4045
|
return "Stage completed";
|
|
3983
4046
|
case "active":
|
|
@@ -3988,7 +4051,7 @@ const fo = {
|
|
|
3988
4051
|
return "Stage pending";
|
|
3989
4052
|
}
|
|
3990
4053
|
}), u = $(() => {
|
|
3991
|
-
switch (
|
|
4054
|
+
switch (c.value) {
|
|
3992
4055
|
case "completed":
|
|
3993
4056
|
return "success";
|
|
3994
4057
|
case "active":
|
|
@@ -3999,7 +4062,7 @@ const fo = {
|
|
|
3999
4062
|
return "default";
|
|
4000
4063
|
}
|
|
4001
4064
|
}), y = $(() => o.size ?? t.size ?? "sm"), I = $(() => {
|
|
4002
|
-
switch (
|
|
4065
|
+
switch (c.value) {
|
|
4003
4066
|
case "completed":
|
|
4004
4067
|
return "Completed";
|
|
4005
4068
|
case "active":
|
|
@@ -4011,8 +4074,8 @@ const fo = {
|
|
|
4011
4074
|
}
|
|
4012
4075
|
});
|
|
4013
4076
|
Y(
|
|
4014
|
-
() =>
|
|
4015
|
-
(E) => t.registerStepStatus(
|
|
4077
|
+
() => c.value,
|
|
4078
|
+
(E) => t.registerStepStatus(d, E),
|
|
4016
4079
|
{ immediate: !0 }
|
|
4017
4080
|
);
|
|
4018
4081
|
const B = () => {
|
|
@@ -4022,7 +4085,7 @@ const fo = {
|
|
|
4022
4085
|
}, k = () => {
|
|
4023
4086
|
if (!r.value || !s.value) return;
|
|
4024
4087
|
const E = s.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;
|
|
4025
|
-
t.registerIndicatorCenter(
|
|
4088
|
+
t.registerIndicatorCenter(d, x);
|
|
4026
4089
|
}, D = (E) => {
|
|
4027
4090
|
const p = t.orientation === "horizontal", x = t.orientation === "vertical";
|
|
4028
4091
|
switch (E.key) {
|
|
@@ -4062,16 +4125,16 @@ const fo = {
|
|
|
4062
4125
|
ref: r,
|
|
4063
4126
|
class: se(["step", `step__${y.value}`]),
|
|
4064
4127
|
role: "listitem",
|
|
4065
|
-
"data-status":
|
|
4128
|
+
"data-status": c.value,
|
|
4066
4129
|
"data-orientation": i.value,
|
|
4067
|
-
"data-active":
|
|
4068
|
-
"data-completed":
|
|
4069
|
-
"aria-labelledby": `step-title-${R(
|
|
4070
|
-
tabindex:
|
|
4071
|
-
"aria-current":
|
|
4072
|
-
"aria-posinset": R(
|
|
4130
|
+
"data-active": c.value === "active",
|
|
4131
|
+
"data-completed": c.value === "completed",
|
|
4132
|
+
"aria-labelledby": `step-title-${R(d)}`,
|
|
4133
|
+
tabindex: c.value === "active" ? 0 : -1,
|
|
4134
|
+
"aria-current": c.value === "active" ? "step" : void 0,
|
|
4135
|
+
"aria-posinset": R(d) + 1,
|
|
4073
4136
|
"aria-setsize": R(t).stepsCount.value,
|
|
4074
|
-
"aria-describedby": `step-status-${R(
|
|
4137
|
+
"aria-describedby": `step-status-${R(d)}`,
|
|
4075
4138
|
onKeydown: D
|
|
4076
4139
|
}, [
|
|
4077
4140
|
g("span", {
|
|
@@ -4082,34 +4145,34 @@ const fo = {
|
|
|
4082
4145
|
}, [
|
|
4083
4146
|
E.$slots.icon ? U(E.$slots, "icon", {
|
|
4084
4147
|
key: 0,
|
|
4085
|
-
status:
|
|
4148
|
+
status: c.value
|
|
4086
4149
|
}, void 0, !0) : L.value ? (v(), W(ue, {
|
|
4087
4150
|
key: 1,
|
|
4088
4151
|
name: L.value,
|
|
4089
4152
|
class: "icon"
|
|
4090
4153
|
}, null, 8, ["name"])) : F("", !0),
|
|
4091
|
-
|
|
4154
|
+
c.value === "completed" ? (v(), f("svg", ma, [...p[0] || (p[0] = [
|
|
4092
4155
|
g("path", {
|
|
4093
4156
|
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",
|
|
4094
4157
|
fill: "currentColor"
|
|
4095
4158
|
}, null, -1)
|
|
4096
|
-
])])) :
|
|
4159
|
+
])])) : c.value === "error" ? (v(), f("svg", ha, [...p[1] || (p[1] = [
|
|
4097
4160
|
g("path", {
|
|
4098
4161
|
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",
|
|
4099
4162
|
fill: "currentColor"
|
|
4100
4163
|
}, null, -1)
|
|
4101
|
-
])])) :
|
|
4164
|
+
])])) : c.value === "active" ? (v(), f("span", ya)) : F("", !0)
|
|
4102
4165
|
], 512),
|
|
4103
4166
|
g("span", {
|
|
4104
|
-
id: `step-status-${R(
|
|
4167
|
+
id: `step-status-${R(d)}`,
|
|
4105
4168
|
class: "sr-only"
|
|
4106
|
-
}, P(M.value), 9,
|
|
4107
|
-
g("div",
|
|
4169
|
+
}, P(M.value), 9, ba),
|
|
4170
|
+
g("div", ga, [
|
|
4108
4171
|
g("span", {
|
|
4109
|
-
id: `step-title-${R(
|
|
4172
|
+
id: `step-title-${R(d)}`,
|
|
4110
4173
|
class: "title"
|
|
4111
|
-
}, P(e.title), 9,
|
|
4112
|
-
K(
|
|
4174
|
+
}, P(e.title), 9, ka),
|
|
4175
|
+
K(Z2, {
|
|
4113
4176
|
variant: u.value,
|
|
4114
4177
|
size: "sm"
|
|
4115
4178
|
}, {
|
|
@@ -4118,13 +4181,13 @@ const fo = {
|
|
|
4118
4181
|
]),
|
|
4119
4182
|
_: 1
|
|
4120
4183
|
}, 8, ["variant"]),
|
|
4121
|
-
E.$slots.default ? (v(), f("span",
|
|
4184
|
+
E.$slots.default ? (v(), f("span", wa, [
|
|
4122
4185
|
U(E.$slots, "default", {}, void 0, !0)
|
|
4123
4186
|
])) : F("", !0)
|
|
4124
4187
|
])
|
|
4125
|
-
], 42,
|
|
4188
|
+
], 42, pa));
|
|
4126
4189
|
}
|
|
4127
|
-
}),
|
|
4190
|
+
}), ko = /* @__PURE__ */ j(Ma, [["__scopeId", "data-v-5c2d8caa"]]), La = /* @__PURE__ */ _({
|
|
4128
4191
|
__name: "StepsItem",
|
|
4129
4192
|
props: {
|
|
4130
4193
|
index: {}
|
|
@@ -4132,11 +4195,11 @@ const fo = {
|
|
|
4132
4195
|
setup(e) {
|
|
4133
4196
|
return be("StepIndex", e.index), (t, a) => U(t.$slots, "default");
|
|
4134
4197
|
}
|
|
4135
|
-
}),
|
|
4198
|
+
}), xa = ["data-size", "data-orientation"], $a = ["data-error", "data-completed"], Ia = {
|
|
4136
4199
|
"aria-live": "polite",
|
|
4137
4200
|
"aria-atomic": "true",
|
|
4138
4201
|
class: "sr-only"
|
|
4139
|
-
},
|
|
4202
|
+
}, Va = /* @__PURE__ */ _({
|
|
4140
4203
|
__name: "Steps",
|
|
4141
4204
|
props: /* @__PURE__ */ oe({
|
|
4142
4205
|
orientation: { default: "horizontal" },
|
|
@@ -4151,12 +4214,12 @@ const fo = {
|
|
|
4151
4214
|
}),
|
|
4152
4215
|
emits: ["update:modelValue"],
|
|
4153
4216
|
setup(e) {
|
|
4154
|
-
const o = e, t = C(0), a = qe(), r = pe(e, "modelValue"), s = C([]), i = C(null), n = $(() => r.value ?? 0), l = `steps-description-${ie()}`,
|
|
4217
|
+
const o = e, t = C(0), a = qe(), r = pe(e, "modelValue"), s = C([]), i = C(null), n = $(() => r.value ?? 0), l = `steps-description-${ie()}`, d = b1({}), c = o1({});
|
|
4155
4218
|
let h = null;
|
|
4156
|
-
const L = $(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), M = $(() => Object.entries(
|
|
4157
|
-
() => Object.values(
|
|
4219
|
+
const L = $(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), M = $(() => Object.entries(c).filter(([, Z]) => Z !== "completed").length === 0), u = $(
|
|
4220
|
+
() => Object.values(c).includes("error")
|
|
4158
4221
|
), y = $(() => {
|
|
4159
|
-
const Z = n.value, q =
|
|
4222
|
+
const Z = n.value, q = d;
|
|
4160
4223
|
if (q.value[0] == null || q.value[Z] == null)
|
|
4161
4224
|
return o.orientation === "vertical" ? {
|
|
4162
4225
|
height: "100%",
|
|
@@ -4174,7 +4237,7 @@ const fo = {
|
|
|
4174
4237
|
width: `${b - m}px`
|
|
4175
4238
|
};
|
|
4176
4239
|
}), I = $(() => {
|
|
4177
|
-
const Z = Object.values(
|
|
4240
|
+
const Z = Object.values(d.value).sort((b, T) => b - T);
|
|
4178
4241
|
if (Z.length < 2) return {};
|
|
4179
4242
|
const q = Z[0], m = Z[Z.length - 1];
|
|
4180
4243
|
return o.orientation === "vertical" ? {
|
|
@@ -4184,7 +4247,7 @@ const fo = {
|
|
|
4184
4247
|
left: `${q}px`,
|
|
4185
4248
|
right: `calc(100% - ${m}px)`
|
|
4186
4249
|
};
|
|
4187
|
-
}), B = (Z, q) =>
|
|
4250
|
+
}), B = (Z, q) => d.value = { ...d.value, [Z]: q };
|
|
4188
4251
|
function k(Z) {
|
|
4189
4252
|
s.value.push(Z), t.value = s.value.length;
|
|
4190
4253
|
}
|
|
@@ -4203,7 +4266,7 @@ const fo = {
|
|
|
4203
4266
|
function V() {
|
|
4204
4267
|
E(0);
|
|
4205
4268
|
}
|
|
4206
|
-
function
|
|
4269
|
+
function O() {
|
|
4207
4270
|
E(t.value - 1);
|
|
4208
4271
|
}
|
|
4209
4272
|
return te(() => {
|
|
@@ -4216,10 +4279,10 @@ const fo = {
|
|
|
4216
4279
|
icons: o.icons,
|
|
4217
4280
|
size: o.size,
|
|
4218
4281
|
orientation: o.orientation,
|
|
4219
|
-
stepStatusMap:
|
|
4282
|
+
stepStatusMap: c,
|
|
4220
4283
|
stepsRef: i,
|
|
4221
4284
|
registerStepStatus: (Z, q) => {
|
|
4222
|
-
|
|
4285
|
+
c[Z] = q;
|
|
4223
4286
|
},
|
|
4224
4287
|
registerIndicatorCenter: B,
|
|
4225
4288
|
registerStep: k,
|
|
@@ -4227,7 +4290,7 @@ const fo = {
|
|
|
4227
4290
|
focusNext: p,
|
|
4228
4291
|
focusPrev: x,
|
|
4229
4292
|
focusFirst: V,
|
|
4230
|
-
focusLast:
|
|
4293
|
+
focusLast: O
|
|
4231
4294
|
}), (Z, q) => (v(), f(ae, null, [
|
|
4232
4295
|
g("ol", {
|
|
4233
4296
|
ref_key: "stepsRef",
|
|
@@ -4252,9 +4315,9 @@ const fo = {
|
|
|
4252
4315
|
"data-error": u.value,
|
|
4253
4316
|
"data-completed": M.value,
|
|
4254
4317
|
style: ye(y.value)
|
|
4255
|
-
}, null, 12,
|
|
4318
|
+
}, null, 12, $a)
|
|
4256
4319
|
], 4),
|
|
4257
|
-
(v(!0), f(ae, null,
|
|
4320
|
+
(v(!0), f(ae, null, ce(Z.$slots.default?.(), (m, b) => (v(), W(La, {
|
|
4258
4321
|
key: b,
|
|
4259
4322
|
index: b
|
|
4260
4323
|
}, {
|
|
@@ -4263,11 +4326,11 @@ const fo = {
|
|
|
4263
4326
|
]),
|
|
4264
4327
|
_: 2
|
|
4265
4328
|
}, 1032, ["index"]))), 128))
|
|
4266
|
-
], 8,
|
|
4267
|
-
g("div",
|
|
4329
|
+
], 8, xa),
|
|
4330
|
+
g("div", Ia, " Step " + P(n.value + 1) + " of " + P(t.value) + ": " + P(L.value), 1)
|
|
4268
4331
|
], 64));
|
|
4269
4332
|
}
|
|
4270
|
-
}),
|
|
4333
|
+
}), wo = /* @__PURE__ */ j(Va, [["__scopeId", "data-v-8697173d"]]), Ha = ["data-align"], Ba = /* @__PURE__ */ _({
|
|
4271
4334
|
__name: "Timeline",
|
|
4272
4335
|
props: {
|
|
4273
4336
|
align: { default: "left" }
|
|
@@ -4279,9 +4342,9 @@ const fo = {
|
|
|
4279
4342
|
"data-align": e.align
|
|
4280
4343
|
}, [
|
|
4281
4344
|
U(t.$slots, "default", {}, void 0, !0)
|
|
4282
|
-
], 8,
|
|
4345
|
+
], 8, Ha));
|
|
4283
4346
|
}
|
|
4284
|
-
}),
|
|
4347
|
+
}), Mo = /* @__PURE__ */ j(Ba, [["__scopeId", "data-v-d56deb2b"]]), _a = ["data-align", "aria-labelledby", "aria-describedby"], Ra = { class: "ui-timeline-content" }, Za = ["datetime"], Aa = { class: "ui-timeline-date--month" }, Sa = { class: "ui-timeline-date--day" }, Ta = { class: "ui-timeline-date--year" }, Ea = ["data-direction"], Da = { class: "info" }, za = ["id"], Oa = { class: "addons" }, qa = /* @__PURE__ */ _({
|
|
4285
4348
|
__name: "TimelineItem",
|
|
4286
4349
|
props: {
|
|
4287
4350
|
date: {},
|
|
@@ -4294,37 +4357,37 @@ const fo = {
|
|
|
4294
4357
|
setup(e) {
|
|
4295
4358
|
const o = e, t = le("TimelineContext");
|
|
4296
4359
|
if (!t) throw new Error("TimelineItem must be used within a Timeline component");
|
|
4297
|
-
const a = ie(), r = ie(), s = $(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (
|
|
4298
|
-
const
|
|
4299
|
-
return
|
|
4300
|
-
}, n = (
|
|
4301
|
-
return (
|
|
4360
|
+
const a = ie(), r = ie(), s = $(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (d) => {
|
|
4361
|
+
const c = new Date(d).getDay();
|
|
4362
|
+
return c < 10 ? `0${c}` : c;
|
|
4363
|
+
}, n = (d) => new Date(d).toLocaleString("default", { month: "short" }), l = (d) => new Date(d).getFullYear();
|
|
4364
|
+
return (d, c) => (v(), f("li", {
|
|
4302
4365
|
tabindex: "0",
|
|
4303
4366
|
class: se([s.value, "ui-timeline-item"]),
|
|
4304
4367
|
"data-align": R(t).align,
|
|
4305
4368
|
"aria-labelledby": e.title ? R(a) : void 0,
|
|
4306
4369
|
"aria-describedby": e.description ? R(r) : void 0
|
|
4307
4370
|
}, [
|
|
4308
|
-
|
|
4371
|
+
c[0] || (c[0] = g("div", {
|
|
4309
4372
|
class: "ui-timeline-marker",
|
|
4310
4373
|
"aria-hidden": "true"
|
|
4311
4374
|
}, null, -1)),
|
|
4312
|
-
g("div",
|
|
4375
|
+
g("div", Ra, [
|
|
4313
4376
|
e.date ? (v(), f("time", {
|
|
4314
4377
|
key: 0,
|
|
4315
4378
|
class: "ui-timeline-date",
|
|
4316
4379
|
datetime: e.date
|
|
4317
4380
|
}, [
|
|
4318
|
-
g("span",
|
|
4319
|
-
g("span",
|
|
4320
|
-
g("span",
|
|
4321
|
-
], 8,
|
|
4381
|
+
g("span", Aa, P(n(e.date)), 1),
|
|
4382
|
+
g("span", Sa, P(i(e.date)), 1),
|
|
4383
|
+
g("span", Ta, P(l(e.date)), 1)
|
|
4384
|
+
], 8, Za)) : F("", !0),
|
|
4322
4385
|
g("div", {
|
|
4323
4386
|
class: "ui-timeline-body",
|
|
4324
4387
|
"data-direction": e.flexDirection
|
|
4325
4388
|
}, [
|
|
4326
|
-
g("div",
|
|
4327
|
-
U(
|
|
4389
|
+
g("div", Da, [
|
|
4390
|
+
U(d.$slots, "title", {}, () => [
|
|
4328
4391
|
(v(), W(Ie(e.titleAs ?? "h3"), {
|
|
4329
4392
|
id: R(a),
|
|
4330
4393
|
class: "ui-timeline-title"
|
|
@@ -4335,29 +4398,29 @@ const fo = {
|
|
|
4335
4398
|
_: 1
|
|
4336
4399
|
}, 8, ["id"]))
|
|
4337
4400
|
], !0),
|
|
4338
|
-
U(
|
|
4401
|
+
U(d.$slots, "description", {}, () => [
|
|
4339
4402
|
e.description ? (v(), f("p", {
|
|
4340
4403
|
key: 0,
|
|
4341
4404
|
id: R(r),
|
|
4342
4405
|
class: "ui-timeline-description"
|
|
4343
|
-
}, P(e.description), 9,
|
|
4406
|
+
}, P(e.description), 9, za)) : F("", !0)
|
|
4344
4407
|
], !0)
|
|
4345
4408
|
]),
|
|
4346
|
-
g("div",
|
|
4347
|
-
U(
|
|
4409
|
+
g("div", Oa, [
|
|
4410
|
+
U(d.$slots, "default", {}, void 0, !0)
|
|
4348
4411
|
])
|
|
4349
|
-
], 8,
|
|
4412
|
+
], 8, Ea)
|
|
4350
4413
|
])
|
|
4351
|
-
], 10,
|
|
4414
|
+
], 10, _a));
|
|
4352
4415
|
}
|
|
4353
|
-
}),
|
|
4416
|
+
}), Lo = /* @__PURE__ */ j(qa, [["__scopeId", "data-v-10599410"]]), Na = ["aria-label", "aria-activedescendant"], Fa = { class: "carousel-viewport" }, Ka = {
|
|
4354
4417
|
class: "sr-only",
|
|
4355
4418
|
"aria-live": "polite"
|
|
4356
|
-
},
|
|
4419
|
+
}, Pa = {
|
|
4357
4420
|
key: 0,
|
|
4358
4421
|
role: "tablist",
|
|
4359
4422
|
class: "carousel-indicators"
|
|
4360
|
-
},
|
|
4423
|
+
}, Ua = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], ja = 0.35, Xa = 0.2, Ga = /* @__PURE__ */ _({
|
|
4361
4424
|
__name: "Carousel",
|
|
4362
4425
|
props: /* @__PURE__ */ oe({
|
|
4363
4426
|
ariaLabel: { default: "Carousel" },
|
|
@@ -4379,19 +4442,19 @@ const fo = {
|
|
|
4379
4442
|
}),
|
|
4380
4443
|
emits: ["update:modelValue"],
|
|
4381
4444
|
setup(e) {
|
|
4382
|
-
const o = pe(e, "modelValue"), t = e, a = C(0), r = C(0), s = C(0), i = C(0), n = C(0), l = C(0),
|
|
4445
|
+
const o = pe(e, "modelValue"), t = e, a = C(0), r = C(0), s = C(0), i = C(0), n = C(0), l = 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);
|
|
4383
4446
|
let B = null, k = null;
|
|
4384
4447
|
Y(
|
|
4385
4448
|
() => o.value,
|
|
4386
4449
|
(S) => u.value = S
|
|
4387
4450
|
);
|
|
4388
4451
|
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 = $(() => {
|
|
4389
|
-
const S = u.value * (100 / M.value), X =
|
|
4452
|
+
const S = u.value * (100 / M.value), X = c.value && I.value ? s.value / I.value.clientWidth * 100 : 0;
|
|
4390
4453
|
return {
|
|
4391
4454
|
transform: `translateX(calc(-${S}% + ${X}%))`,
|
|
4392
|
-
transition:
|
|
4455
|
+
transition: c.value ? "none" : "transform 300ms ease"
|
|
4393
4456
|
};
|
|
4394
|
-
}),
|
|
4457
|
+
}), O = (S) => {
|
|
4395
4458
|
let X = S;
|
|
4396
4459
|
if (t.loop) {
|
|
4397
4460
|
const re = Math.round(S / M.value), ee = p.value;
|
|
@@ -4402,15 +4465,15 @@ const fo = {
|
|
|
4402
4465
|
x.value
|
|
4403
4466
|
);
|
|
4404
4467
|
u.value = X, o.value = X;
|
|
4405
|
-
}, Z = () =>
|
|
4468
|
+
}, Z = () => O(u.value + M.value), q = () => O(u.value - M.value), m = (S) => {
|
|
4406
4469
|
S.key === "ArrowRight" ? Z() : S.key === "ArrowLeft" && q();
|
|
4407
4470
|
}, b = (S) => (L.value.includes(S) || L.value.push(S), L.value.indexOf(S)), T = (S) => L.value = L.value.filter((X) => X !== S), w = $(() => L.value.length), A = () => {
|
|
4408
4471
|
!t.autoplay || B !== null || (B = window.setInterval(() => {
|
|
4409
|
-
|
|
4472
|
+
d.value || Z();
|
|
4410
4473
|
}, t.autoplayDelay));
|
|
4411
4474
|
}, J = () => {
|
|
4412
4475
|
B !== null && (clearInterval(B), B = null);
|
|
4413
|
-
},
|
|
4476
|
+
}, de = (S) => {
|
|
4414
4477
|
if (typeof t.itemsPerView == "number")
|
|
4415
4478
|
return t.itemsPerView;
|
|
4416
4479
|
const X = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
|
|
@@ -4418,21 +4481,21 @@ const fo = {
|
|
|
4418
4481
|
for (const [ee, ke] of X) S >= ee && (re = ke);
|
|
4419
4482
|
return re;
|
|
4420
4483
|
}, H = (S) => {
|
|
4421
|
-
S.button === 0 && (
|
|
4422
|
-
},
|
|
4423
|
-
if (!
|
|
4484
|
+
S.button === 0 && (c.value = !0, r.value = S.clientX, a.value = S.clientX, l.value = S.clientX, s.value = 0, i.value = performance.now(), n.value = 0, h.value = u.value, I.value?.setPointerCapture(S.pointerId), J(), I.value.style.userSelect = "");
|
|
4485
|
+
}, z = (S) => {
|
|
4486
|
+
if (!c.value) return;
|
|
4424
4487
|
const X = performance.now(), re = S.clientX - a.value, ee = X - i.value;
|
|
4425
4488
|
ee > 0 && (n.value = re / ee), a.value = S.clientX, i.value = X, l.value = S.clientX, s.value = l.value - r.value;
|
|
4426
4489
|
}, Q = (S) => {
|
|
4427
|
-
if (!
|
|
4428
|
-
|
|
4490
|
+
if (!c.value) return;
|
|
4491
|
+
c.value = !1, I.value?.releasePointerCapture(S.pointerId), I.value.style.userSelect = "";
|
|
4429
4492
|
const X = I.value.clientWidth / M.value, re = s.value / X;
|
|
4430
|
-
Math.abs(n.value) >
|
|
4493
|
+
Math.abs(n.value) > ja ? n.value < 0 ? Z() : q() : Math.abs(re) > Xa ? re < 0 ? Z() : q() : O(h.value), s.value = 0, n.value = 0, A();
|
|
4431
4494
|
};
|
|
4432
4495
|
return te(() => {
|
|
4433
4496
|
A(), y.value && (k = new ResizeObserver((S) => {
|
|
4434
4497
|
const X = S[0]?.contentRect.width;
|
|
4435
|
-
X !== void 0 && (M.value =
|
|
4498
|
+
X !== void 0 && (M.value = de(X));
|
|
4436
4499
|
}), k.observe(y.value));
|
|
4437
4500
|
}), ge(() => {
|
|
4438
4501
|
J(), k?.disconnect();
|
|
@@ -4460,30 +4523,30 @@ const fo = {
|
|
|
4460
4523
|
"aria-activedescendant": D.value,
|
|
4461
4524
|
style: ye({ "--items-per-view": M.value }),
|
|
4462
4525
|
onKeydown: m,
|
|
4463
|
-
onMouseenter: X[0] || (X[0] = (re) =>
|
|
4464
|
-
onMouseleave: X[1] || (X[1] = (re) =>
|
|
4465
|
-
onFocusin: X[2] || (X[2] = (re) =>
|
|
4466
|
-
onFocusout: X[3] || (X[3] = (re) =>
|
|
4526
|
+
onMouseenter: X[0] || (X[0] = (re) => d.value = !0),
|
|
4527
|
+
onMouseleave: X[1] || (X[1] = (re) => d.value = !1),
|
|
4528
|
+
onFocusin: X[2] || (X[2] = (re) => d.value = !0),
|
|
4529
|
+
onFocusout: X[3] || (X[3] = (re) => d.value = !1)
|
|
4467
4530
|
}, [
|
|
4468
4531
|
X[4] || (X[4] = g("span", {
|
|
4469
4532
|
id: "carousel-instructions",
|
|
4470
4533
|
class: "sr-only"
|
|
4471
4534
|
}, " Use left and right arrow keys to navigate slides ", -1)),
|
|
4472
|
-
g("div",
|
|
4535
|
+
g("div", Fa, [
|
|
4473
4536
|
g("div", {
|
|
4474
4537
|
ref_key: "trackRef",
|
|
4475
4538
|
ref: I,
|
|
4476
4539
|
class: "carousel-track",
|
|
4477
4540
|
style: ye(V.value),
|
|
4478
4541
|
onPointerdown: H,
|
|
4479
|
-
onPointermove:
|
|
4542
|
+
onPointermove: z,
|
|
4480
4543
|
onPointerup: Q,
|
|
4481
4544
|
onPointercancel: Q
|
|
4482
4545
|
}, [
|
|
4483
4546
|
U(S.$slots, "default", {}, void 0, !0)
|
|
4484
4547
|
], 36)
|
|
4485
4548
|
]),
|
|
4486
|
-
g("span",
|
|
4549
|
+
g("span", Ka, " Slide " + P(Math.floor(u.value / M.value) + 1) + " of " + P(p.value), 1),
|
|
4487
4550
|
g("button", {
|
|
4488
4551
|
type: "button",
|
|
4489
4552
|
class: "carousel-control prev",
|
|
@@ -4500,8 +4563,8 @@ const fo = {
|
|
|
4500
4563
|
}, [
|
|
4501
4564
|
K(ue, { name: "directionDown" })
|
|
4502
4565
|
]),
|
|
4503
|
-
e.showIndicators ? (v(), f("div",
|
|
4504
|
-
(v(!0), f(ae, null,
|
|
4566
|
+
e.showIndicators ? (v(), f("div", Pa, [
|
|
4567
|
+
(v(!0), f(ae, null, ce(p.value, (re, ee) => (v(), f("button", {
|
|
4505
4568
|
role: "tab",
|
|
4506
4569
|
type: "button",
|
|
4507
4570
|
key: ee,
|
|
@@ -4509,16 +4572,16 @@ const fo = {
|
|
|
4509
4572
|
"aria-label": `Go to slide ${ee + 1}`,
|
|
4510
4573
|
"aria-selected": ee === E.value,
|
|
4511
4574
|
"aria-current": ee === E.value,
|
|
4512
|
-
onClick: (ke) =>
|
|
4575
|
+
onClick: (ke) => O(ee * M.value),
|
|
4513
4576
|
onKeydown: [
|
|
4514
|
-
fe(ne((ke) =>
|
|
4515
|
-
fe(ne((ke) =>
|
|
4577
|
+
fe(ne((ke) => O((ee - 1 + p.value) % p.value * M.value), ["prevent"]), ["left"]),
|
|
4578
|
+
fe(ne((ke) => O((ee + 1) % p.value * M.value), ["prevent"]), ["right"])
|
|
4516
4579
|
]
|
|
4517
|
-
}, null, 42,
|
|
4580
|
+
}, null, 42, Ua))), 128))
|
|
4518
4581
|
])) : F("", !0)
|
|
4519
|
-
], 44,
|
|
4582
|
+
], 44, Na));
|
|
4520
4583
|
}
|
|
4521
|
-
}),
|
|
4584
|
+
}), xo = /* @__PURE__ */ j(Ga, [["__scopeId", "data-v-30cdfc00"]]), Wa = ["aria-hidden", "aria-label"], Ja = /* @__PURE__ */ _({
|
|
4522
4585
|
__name: "CarouselItem",
|
|
4523
4586
|
setup(e) {
|
|
4524
4587
|
const o = le("CarouselContext");
|
|
@@ -4534,9 +4597,9 @@ const fo = {
|
|
|
4534
4597
|
onClickCapture: n[0] || (n[0] = (l) => r.value && l.preventDefault())
|
|
4535
4598
|
}, [
|
|
4536
4599
|
U(i.$slots, "default", {}, void 0, !0)
|
|
4537
|
-
], 40,
|
|
4600
|
+
], 40, Wa));
|
|
4538
4601
|
}
|
|
4539
|
-
}),
|
|
4602
|
+
}), $o = /* @__PURE__ */ j(Ja, [["__scopeId", "data-v-a569d055"]]), Ze = /* @__PURE__ */ Symbol("TabsContext"), Io = _({
|
|
4540
4603
|
name: "Tabs",
|
|
4541
4604
|
props: {
|
|
4542
4605
|
modelValue: String,
|
|
@@ -4565,7 +4628,7 @@ const fo = {
|
|
|
4565
4628
|
), Y(s, (u) => {
|
|
4566
4629
|
!a.value && u.length && (a.value = u[0]);
|
|
4567
4630
|
});
|
|
4568
|
-
const l = (u, y) => s.value[y] = u,
|
|
4631
|
+
const l = (u, y) => s.value[y] = u, d = (u) => {
|
|
4569
4632
|
const y = s.value.filter(Boolean);
|
|
4570
4633
|
if (!y.length) return;
|
|
4571
4634
|
const I = a.value;
|
|
@@ -4579,7 +4642,7 @@ const fo = {
|
|
|
4579
4642
|
return;
|
|
4580
4643
|
}
|
|
4581
4644
|
B !== -1 && k !== -1 && (i.value = k > B ? "forward" : "backward"), I !== u && (a.value = u, o("update:modelValue", u));
|
|
4582
|
-
},
|
|
4645
|
+
}, c = $(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (u) => {
|
|
4583
4646
|
u instanceof HTMLElement && n.value && (n.value.style.height = `${u.offsetHeight}px`);
|
|
4584
4647
|
}, L = (u) => {
|
|
4585
4648
|
if (u instanceof HTMLElement && n.value) {
|
|
@@ -4593,7 +4656,7 @@ const fo = {
|
|
|
4593
4656
|
};
|
|
4594
4657
|
return be(Ze, {
|
|
4595
4658
|
activeValue: a,
|
|
4596
|
-
setValue:
|
|
4659
|
+
setValue: d,
|
|
4597
4660
|
registerTrigger: l,
|
|
4598
4661
|
direction: i,
|
|
4599
4662
|
activationMode: C(e.activationMode),
|
|
@@ -4618,7 +4681,7 @@ const fo = {
|
|
|
4618
4681
|
N(
|
|
4619
4682
|
$e,
|
|
4620
4683
|
{
|
|
4621
|
-
name:
|
|
4684
|
+
name: c.value,
|
|
4622
4685
|
mode: "out-in",
|
|
4623
4686
|
onBeforeLeave: h,
|
|
4624
4687
|
onEnter: L,
|
|
@@ -4633,7 +4696,7 @@ const fo = {
|
|
|
4633
4696
|
];
|
|
4634
4697
|
};
|
|
4635
4698
|
}
|
|
4636
|
-
}),
|
|
4699
|
+
}), Vo = _({
|
|
4637
4700
|
name: "TabsList",
|
|
4638
4701
|
setup(e, { slots: o }) {
|
|
4639
4702
|
const t = le(Ze);
|
|
@@ -4648,7 +4711,7 @@ const fo = {
|
|
|
4648
4711
|
o.default?.()
|
|
4649
4712
|
);
|
|
4650
4713
|
}
|
|
4651
|
-
}),
|
|
4714
|
+
}), Ho = _({
|
|
4652
4715
|
name: "TabsTrigger",
|
|
4653
4716
|
props: {
|
|
4654
4717
|
value: {
|
|
@@ -4671,30 +4734,30 @@ const fo = {
|
|
|
4671
4734
|
if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
|
|
4672
4735
|
i.preventDefault();
|
|
4673
4736
|
const l = t.triggers.value.filter(Boolean);
|
|
4674
|
-
let
|
|
4737
|
+
let c = l.indexOf(e.value);
|
|
4675
4738
|
const h = t.orientation.value === "horizontal";
|
|
4676
4739
|
switch (i.key) {
|
|
4677
4740
|
case "ArrowRight":
|
|
4678
|
-
h &&
|
|
4741
|
+
h && c++;
|
|
4679
4742
|
break;
|
|
4680
4743
|
case "ArrowLeft":
|
|
4681
|
-
h &&
|
|
4744
|
+
h && c--;
|
|
4682
4745
|
break;
|
|
4683
4746
|
case "ArrowDown":
|
|
4684
|
-
h ||
|
|
4747
|
+
h || c++;
|
|
4685
4748
|
break;
|
|
4686
4749
|
case "ArrowUp":
|
|
4687
|
-
h ||
|
|
4750
|
+
h || c--;
|
|
4688
4751
|
break;
|
|
4689
4752
|
case "Home":
|
|
4690
|
-
|
|
4753
|
+
c = 0;
|
|
4691
4754
|
break;
|
|
4692
4755
|
case "End":
|
|
4693
|
-
|
|
4756
|
+
c = l.length - 1;
|
|
4694
4757
|
break;
|
|
4695
4758
|
}
|
|
4696
|
-
|
|
4697
|
-
const L = l[
|
|
4759
|
+
c = (c + l.length) % l.length;
|
|
4760
|
+
const L = l[c];
|
|
4698
4761
|
t.activationMode.value === "auto" && t.setValue(L), requestAnimationFrame(() => {
|
|
4699
4762
|
document.getElementById(`tab-${L}`)?.focus();
|
|
4700
4763
|
});
|
|
@@ -4716,7 +4779,7 @@ const fo = {
|
|
|
4716
4779
|
{ default: () => o.default?.() }
|
|
4717
4780
|
);
|
|
4718
4781
|
}
|
|
4719
|
-
}),
|
|
4782
|
+
}), Bo = _({
|
|
4720
4783
|
name: "TabsContent",
|
|
4721
4784
|
props: {
|
|
4722
4785
|
value: {
|
|
@@ -4738,13 +4801,13 @@ const fo = {
|
|
|
4738
4801
|
o.default?.()
|
|
4739
4802
|
);
|
|
4740
4803
|
}
|
|
4741
|
-
}),
|
|
4804
|
+
}), Ya = { class: "ui-dropdown" }, _o = /* @__PURE__ */ _({
|
|
4742
4805
|
__name: "Dropdown",
|
|
4743
4806
|
setup(e) {
|
|
4744
4807
|
let o = 0;
|
|
4745
|
-
const t = C(!1), a = C(null), r = C({}), s = `dropdown-${ie()}`, i = `${s}-menu`, n = `${s}-trigger`, l = () => t.value = !0,
|
|
4808
|
+
const t = C(!1), a = C(null), r = C({}), s = `dropdown-${ie()}`, i = `${s}-menu`, n = `${s}-trigger`, l = () => t.value = !0, d = () => {
|
|
4746
4809
|
t.value = !1, r.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
|
|
4747
|
-
},
|
|
4810
|
+
}, c = () => t.value = !t.value, h = (k) => {
|
|
4748
4811
|
const D = `dropdown-item-${o++}`;
|
|
4749
4812
|
return r.value[D] = k, D;
|
|
4750
4813
|
}, L = (k) => {
|
|
@@ -4765,8 +4828,8 @@ const fo = {
|
|
|
4765
4828
|
}, B = (k) => Object.keys(r.value).indexOf(k);
|
|
4766
4829
|
return be("DropdownContext", {
|
|
4767
4830
|
open: l,
|
|
4768
|
-
close:
|
|
4769
|
-
toggle:
|
|
4831
|
+
close: d,
|
|
4832
|
+
toggle: c,
|
|
4770
4833
|
isOpen: t,
|
|
4771
4834
|
registerItem: h,
|
|
4772
4835
|
focusItem: L,
|
|
@@ -4777,11 +4840,11 @@ const fo = {
|
|
|
4777
4840
|
triggerRef: a,
|
|
4778
4841
|
menuId: i,
|
|
4779
4842
|
triggerId: n
|
|
4780
|
-
}), (k, D) => (v(), f("div",
|
|
4843
|
+
}), (k, D) => (v(), f("div", Ya, [
|
|
4781
4844
|
U(k.$slots, "default")
|
|
4782
4845
|
]));
|
|
4783
4846
|
}
|
|
4784
|
-
}),
|
|
4847
|
+
}), Qa = /* @__PURE__ */ _({
|
|
4785
4848
|
__name: "DropdownTrigger",
|
|
4786
4849
|
setup(e) {
|
|
4787
4850
|
const o = le("DropdownContext");
|
|
@@ -4807,7 +4870,7 @@ const fo = {
|
|
|
4807
4870
|
_: 3
|
|
4808
4871
|
}, 8, ["id", "aria-controls", "aria-expanded", "onClick"]));
|
|
4809
4872
|
}
|
|
4810
|
-
}),
|
|
4873
|
+
}), Ro = /* @__PURE__ */ j(Qa, [["__scopeId", "data-v-b8f0b77e"]]), eo = ["id", "aria-labelledby"], to = /* @__PURE__ */ _({
|
|
4811
4874
|
__name: "DropdownMenu",
|
|
4812
4875
|
setup(e) {
|
|
4813
4876
|
const o = le("DropdownContext");
|
|
@@ -4853,10 +4916,10 @@ const fo = {
|
|
|
4853
4916
|
onKeydown: s
|
|
4854
4917
|
}, [
|
|
4855
4918
|
U(n.$slots, "default", {}, void 0, !0)
|
|
4856
|
-
], 44,
|
|
4919
|
+
], 44, eo)) : F("", !0)
|
|
4857
4920
|
]));
|
|
4858
4921
|
}
|
|
4859
|
-
}),
|
|
4922
|
+
}), Zo = /* @__PURE__ */ j(to, [["__scopeId", "data-v-3b7b0ae5"]]), ao = /* @__PURE__ */ _({
|
|
4860
4923
|
__name: "DropdownItem",
|
|
4861
4924
|
setup(e) {
|
|
4862
4925
|
const o = le("DropdownContext");
|
|
@@ -4879,7 +4942,7 @@ const fo = {
|
|
|
4879
4942
|
U(s.$slots, "default", {}, void 0, !0)
|
|
4880
4943
|
], 544));
|
|
4881
4944
|
}
|
|
4882
|
-
}),
|
|
4945
|
+
}), Ao = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-69de3d9c"]]), So = _({
|
|
4883
4946
|
name: "Table",
|
|
4884
4947
|
props: {
|
|
4885
4948
|
columns: {
|
|
@@ -4926,28 +4989,28 @@ const fo = {
|
|
|
4926
4989
|
role: e.rowClickable ? "button" : "listitem",
|
|
4927
4990
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
4928
4991
|
onClick: e.rowClickable ? () => o("rowClick", n) : void 0,
|
|
4929
|
-
onKeydown: e.rowClickable ? (
|
|
4930
|
-
(
|
|
4992
|
+
onKeydown: e.rowClickable ? (d) => {
|
|
4993
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), o("rowClick", n));
|
|
4931
4994
|
} : void 0
|
|
4932
4995
|
},
|
|
4933
4996
|
e.columns.map(
|
|
4934
|
-
(
|
|
4997
|
+
(d) => N(
|
|
4935
4998
|
"div",
|
|
4936
4999
|
{ class: "rs-table-card-row" },
|
|
4937
5000
|
[
|
|
4938
5001
|
N(
|
|
4939
5002
|
"span",
|
|
4940
5003
|
{ class: "rs-table-card-label" },
|
|
4941
|
-
|
|
5004
|
+
d.header
|
|
4942
5005
|
),
|
|
4943
5006
|
N(
|
|
4944
5007
|
"span",
|
|
4945
5008
|
{ class: "rs-table-card-value" },
|
|
4946
5009
|
t.cell?.({
|
|
4947
5010
|
row: n,
|
|
4948
|
-
column:
|
|
4949
|
-
value: n[
|
|
4950
|
-
}) ?? n[
|
|
5011
|
+
column: d,
|
|
5012
|
+
value: n[d.key]
|
|
5013
|
+
}) ?? n[d.key]
|
|
4951
5014
|
)
|
|
4952
5015
|
]
|
|
4953
5016
|
)
|
|
@@ -5046,25 +5109,25 @@ const fo = {
|
|
|
5046
5109
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
5047
5110
|
role: e.rowClickable ? "button" : void 0,
|
|
5048
5111
|
onClick: e.rowClickable ? () => o("rowClick", n) : void 0,
|
|
5049
|
-
onKeydown: e.rowClickable ? (
|
|
5050
|
-
(
|
|
5112
|
+
onKeydown: e.rowClickable ? (d) => {
|
|
5113
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), o("rowClick", n));
|
|
5051
5114
|
} : void 0,
|
|
5052
5115
|
"data-clickable": e.rowClickable || void 0
|
|
5053
5116
|
},
|
|
5054
5117
|
e.columns.map(
|
|
5055
|
-
(
|
|
5118
|
+
(d) => N(
|
|
5056
5119
|
"td",
|
|
5057
5120
|
{
|
|
5058
|
-
key:
|
|
5121
|
+
key: d.key,
|
|
5059
5122
|
style: {
|
|
5060
|
-
textAlign:
|
|
5123
|
+
textAlign: d.align || "left"
|
|
5061
5124
|
}
|
|
5062
5125
|
},
|
|
5063
5126
|
t.cell?.({
|
|
5064
5127
|
row: n,
|
|
5065
|
-
column:
|
|
5066
|
-
value: n[
|
|
5067
|
-
}) ?? n[
|
|
5128
|
+
column: d,
|
|
5129
|
+
value: n[d.key]
|
|
5130
|
+
}) ?? n[d.key]
|
|
5068
5131
|
)
|
|
5069
5132
|
)
|
|
5070
5133
|
)
|
|
@@ -5083,7 +5146,7 @@ const fo = {
|
|
|
5083
5146
|
);
|
|
5084
5147
|
};
|
|
5085
5148
|
}
|
|
5086
|
-
}), Ae = /* @__PURE__ */ Symbol("AccordionContext"),
|
|
5149
|
+
}), Ae = /* @__PURE__ */ Symbol("AccordionContext"), To = _({
|
|
5087
5150
|
name: "Accordion",
|
|
5088
5151
|
props: {
|
|
5089
5152
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -5107,7 +5170,7 @@ const fo = {
|
|
|
5107
5170
|
}, l = (h) => {
|
|
5108
5171
|
const L = t.value.indexOf(h);
|
|
5109
5172
|
t.value[(L - 1 + t.value.length) % t.value.length]?.focus();
|
|
5110
|
-
},
|
|
5173
|
+
}, d = () => t.value[0]?.focus(), c = () => {
|
|
5111
5174
|
const h = t.value;
|
|
5112
5175
|
h.length && h[h.length - 1]?.focus();
|
|
5113
5176
|
};
|
|
@@ -5119,11 +5182,11 @@ const fo = {
|
|
|
5119
5182
|
unregisterHeader: i,
|
|
5120
5183
|
focusNext: n,
|
|
5121
5184
|
focusPrev: l,
|
|
5122
|
-
focusFirst:
|
|
5123
|
-
focusLast:
|
|
5185
|
+
focusFirst: d,
|
|
5186
|
+
focusLast: c
|
|
5124
5187
|
}), () => o.default?.();
|
|
5125
5188
|
}
|
|
5126
|
-
}),
|
|
5189
|
+
}), Eo = _({
|
|
5127
5190
|
name: "AccordionItem",
|
|
5128
5191
|
props: {
|
|
5129
5192
|
id: { type: String, required: !0 },
|
|
@@ -5142,7 +5205,7 @@ const fo = {
|
|
|
5142
5205
|
o.default?.({ open: a.value })
|
|
5143
5206
|
);
|
|
5144
5207
|
}
|
|
5145
|
-
}),
|
|
5208
|
+
}), Do = _({
|
|
5146
5209
|
name: "AccordionHeader",
|
|
5147
5210
|
props: {
|
|
5148
5211
|
id: { type: String, required: !0 },
|
|
@@ -5202,7 +5265,7 @@ const fo = {
|
|
|
5202
5265
|
]
|
|
5203
5266
|
);
|
|
5204
5267
|
}
|
|
5205
|
-
}),
|
|
5268
|
+
}), zo = _({
|
|
5206
5269
|
name: "AccordionPanel",
|
|
5207
5270
|
props: {
|
|
5208
5271
|
id: { type: String, required: !0 }
|
|
@@ -5230,56 +5293,56 @@ const fo = {
|
|
|
5230
5293
|
}
|
|
5231
5294
|
});
|
|
5232
5295
|
export {
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5296
|
+
To as Accordion,
|
|
5297
|
+
Do as AccordionHeader,
|
|
5298
|
+
Eo as AccordionItem,
|
|
5299
|
+
zo as AccordionPanel,
|
|
5300
|
+
Co as Autocomplete,
|
|
5301
|
+
ro as Avatar,
|
|
5302
|
+
vo as Breadcrumb,
|
|
5240
5303
|
he as Button,
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5304
|
+
ho as Card,
|
|
5305
|
+
bo as CardBody,
|
|
5306
|
+
go as CardFooter,
|
|
5307
|
+
yo as CardHeader,
|
|
5308
|
+
xo as Carousel,
|
|
5309
|
+
$o as CarouselItem,
|
|
5310
|
+
uo as Checkbox,
|
|
5311
|
+
_o as Dropdown,
|
|
5312
|
+
Ao as DropdownItem,
|
|
5313
|
+
Zo as DropdownMenu,
|
|
5314
|
+
Ro as DropdownTrigger,
|
|
5252
5315
|
We as Editor,
|
|
5253
|
-
|
|
5316
|
+
V5 as Highlight,
|
|
5254
5317
|
ue as Icon,
|
|
5255
5318
|
xe as Image,
|
|
5256
5319
|
e1 as ImageGallery,
|
|
5257
|
-
|
|
5258
|
-
|
|
5320
|
+
lo as Input,
|
|
5321
|
+
no as Link,
|
|
5259
5322
|
De as Modal,
|
|
5260
|
-
|
|
5323
|
+
d1 as ModalBody,
|
|
5261
5324
|
v1 as ModalClose,
|
|
5262
5325
|
i1 as ModalContent,
|
|
5263
|
-
|
|
5264
|
-
|
|
5326
|
+
io as ModalFooter,
|
|
5327
|
+
c1 as ModalHeader,
|
|
5265
5328
|
u1 as ModalTitle,
|
|
5266
|
-
|
|
5267
|
-
|
|
5329
|
+
fo as RadioButton,
|
|
5330
|
+
so as Select,
|
|
5268
5331
|
f1 as Spinner,
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5332
|
+
ko as Step,
|
|
5333
|
+
wo as Steps,
|
|
5334
|
+
So as Table,
|
|
5335
|
+
Io as Tabs,
|
|
5336
|
+
Bo as TabsContent,
|
|
5337
|
+
Vo as TabsList,
|
|
5338
|
+
Ho as TabsTrigger,
|
|
5339
|
+
Z2 as Tag,
|
|
5340
|
+
co as Textarea,
|
|
5341
|
+
Mo as Timeline,
|
|
5342
|
+
Lo as TimelineItem,
|
|
5343
|
+
mo as ToastPlugin,
|
|
5281
5344
|
t1 as ToastViewport,
|
|
5282
5345
|
Ye as Tooltip,
|
|
5283
5346
|
Je as Upload,
|
|
5284
|
-
|
|
5347
|
+
po as toast
|
|
5285
5348
|
};
|