@reinosoft-ui/core 0.1.6 → 0.1.7
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/types.d.ts +7 -0
- package/dist/reinosoft-ui.es.js +371 -348
- package/dist/reinosoft-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/reinosoft-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as p, computed as L, watch as Y, onMounted as te, createElementBlock as m, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as
|
|
1
|
+
import { defineComponent as S, ref as p, computed as L, watch as Y, onMounted as te, createElementBlock as m, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as W, createCommentVNode as K, withDirectives as He, createElementVNode as y, vShow as qe, mergeProps as he, onUnmounted as ye, Fragment as ae, withKeys as ve, unref as I, toDisplayString as U, renderList as de, createBlock as J, Transition as xe, withCtx as G, withModifiers as le, nextTick as Me, mergeModels as ne, useModel as me, useId as ie, provide as Ce, createVNode as P, createTextVNode as pe, onBeforeUnmount as _e, Teleport as Re, resolveDynamicComponent as Ie, useAttrs as Ne, inject as se, h as F, useSlots as ze, resolveComponent as pt, vModelRadio as bt, vModelDynamic as gt, reactive as ot, TransitionGroup as Ct, createApp as ht, shallowRef as yt } from "vue";
|
|
2
2
|
const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Mt = /* @__PURE__ */ S({
|
|
3
3
|
__name: "Image",
|
|
4
4
|
props: {
|
|
@@ -41,12 +41,12 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
|
|
|
41
41
|
style: ge(o.value),
|
|
42
42
|
"aria-busy": i.value === "loading" || void 0
|
|
43
43
|
}, [
|
|
44
|
-
i.value === "loading" ?
|
|
44
|
+
i.value === "loading" ? W(d.$slots, "placeholder", { key: 0 }, () => [
|
|
45
45
|
g[0] || (g[0] = y("div", {
|
|
46
46
|
class: "ui-image__placeholder",
|
|
47
47
|
"aria-hidden": "true"
|
|
48
48
|
}, null, -1))
|
|
49
|
-
], !0) : i.value === "error" ?
|
|
49
|
+
], !0) : i.value === "error" ? W(d.$slots, "fallback", { key: 1 }, () => [
|
|
50
50
|
y("div", {
|
|
51
51
|
class: "ui-image__fallback",
|
|
52
52
|
role: "img",
|
|
@@ -67,16 +67,16 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
|
|
|
67
67
|
onLoad: l,
|
|
68
68
|
onError: c
|
|
69
69
|
}, null, 40, Lt), [
|
|
70
|
-
[
|
|
70
|
+
[qe, i.value !== "error"]
|
|
71
71
|
])
|
|
72
72
|
], 14, kt));
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), j = (e, n) => {
|
|
75
75
|
const t = e.__vccOpts || e;
|
|
76
76
|
for (const [a, s] of n)
|
|
77
77
|
t[a] = s;
|
|
78
78
|
return t;
|
|
79
|
-
}, $e = /* @__PURE__ */
|
|
79
|
+
}, $e = /* @__PURE__ */ j(Mt, [["__scopeId", "data-v-4c5a40da"]]);
|
|
80
80
|
$e.install = (e) => {
|
|
81
81
|
e.component("Image", $e);
|
|
82
82
|
};
|
|
@@ -86,16 +86,16 @@ const $t = /* @__PURE__ */ S({
|
|
|
86
86
|
const t = p();
|
|
87
87
|
return n({
|
|
88
88
|
el: t
|
|
89
|
-
}), (a, s) => (v(), m("button",
|
|
89
|
+
}), (a, s) => (v(), m("button", he({
|
|
90
90
|
ref_key: "rootRef",
|
|
91
91
|
ref: t,
|
|
92
92
|
type: "button",
|
|
93
93
|
class: "btn"
|
|
94
94
|
}, a.$attrs), [
|
|
95
|
-
|
|
95
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
96
96
|
], 16));
|
|
97
97
|
}
|
|
98
|
-
}), be = /* @__PURE__ */
|
|
98
|
+
}), be = /* @__PURE__ */ j($t, [["__scopeId", "data-v-3b1d64a5"]]);
|
|
99
99
|
be.install = (e) => {
|
|
100
100
|
e.component("Button", be);
|
|
101
101
|
};
|
|
@@ -114,7 +114,7 @@ const lt = (e) => {
|
|
|
114
114
|
}, It = (e) => e.replaceWith(...Array.from(e.childNodes)), Ht = (e = "p") => {
|
|
115
115
|
const n = document.createElement(e);
|
|
116
116
|
return n.dataset.block = "", n.innerHTML = "<br>", n;
|
|
117
|
-
},
|
|
117
|
+
}, Xe = (e) => {
|
|
118
118
|
const n = document.createRange(), t = window.getSelection();
|
|
119
119
|
n.selectNodeContents(e), n.collapse(!0), t?.removeAllRanges(), t?.addRange(n);
|
|
120
120
|
}, Vt = (e, n) => {
|
|
@@ -144,17 +144,17 @@ const lt = (e) => {
|
|
|
144
144
|
if (!e || e.rangeCount === 0) return;
|
|
145
145
|
const n = e.getRangeAt(0), t = document.createElement("br");
|
|
146
146
|
n.insertNode(t), n.setStartAfter(t), n.collapse(!0), e.removeAllRanges(), e.addRange(n);
|
|
147
|
-
},
|
|
147
|
+
}, Ge = (e) => {
|
|
148
148
|
const n = window.getSelection();
|
|
149
149
|
if (!n || n.rangeCount === 0) return;
|
|
150
150
|
const t = n.getRangeAt(0), a = lt(t.startContainer);
|
|
151
151
|
if (!a || !(a.textContent === "" || a.innerHTML === "<br>")) return;
|
|
152
152
|
const r = a.previousElementSibling, i = a.nextElementSibling;
|
|
153
153
|
if (e.preventDefault(), !r && !i) {
|
|
154
|
-
a.innerHTML = "<br>",
|
|
154
|
+
a.innerHTML = "<br>", Xe(a);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
r && r.dataset.block !== void 0 ? (a.remove(), Bt(r)) : i && i.dataset.block !== void 0 && (a.remove(),
|
|
157
|
+
r && r.dataset.block !== void 0 ? (a.remove(), Bt(r)) : i && i.dataset.block !== void 0 && (a.remove(), Xe(i));
|
|
158
158
|
}, Bt = (e) => {
|
|
159
159
|
const n = document.createRange(), t = window.getSelection();
|
|
160
160
|
n.selectNodeContents(e), n.collapse(!1), t?.removeAllRanges(), t?.addRange(n);
|
|
@@ -179,9 +179,9 @@ const lt = (e) => {
|
|
|
179
179
|
if (h === E) return;
|
|
180
180
|
let X;
|
|
181
181
|
h === 0 && E === b.textContent.length ? X = b : (X = b.splitText(h), E - h < X.textContent.length && X.splitText(E - h));
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
184
|
-
It(
|
|
182
|
+
const V = xt(X, f, N);
|
|
183
|
+
if (V)
|
|
184
|
+
It(V), z.push(X);
|
|
185
185
|
else {
|
|
186
186
|
const A = document.createElement(f);
|
|
187
187
|
X.replaceWith(A), A.appendChild(X), z.push(X);
|
|
@@ -278,7 +278,7 @@ const lt = (e) => {
|
|
|
278
278
|
_ = _.parentNode;
|
|
279
279
|
}
|
|
280
280
|
return !1;
|
|
281
|
-
},
|
|
281
|
+
}, H = () => {
|
|
282
282
|
const f = e;
|
|
283
283
|
f && f.focus();
|
|
284
284
|
}, R = () => {
|
|
@@ -297,14 +297,14 @@ const lt = (e) => {
|
|
|
297
297
|
b.selectNodeContents(N), b.setEnd(_.endContainer, _.endOffset);
|
|
298
298
|
const h = b.toString().length, E = _.collapsed, X = f(N);
|
|
299
299
|
N.replaceWith(X);
|
|
300
|
-
const
|
|
300
|
+
const V = document.createTreeWalker(
|
|
301
301
|
X,
|
|
302
302
|
NodeFilter.SHOW_TEXT,
|
|
303
303
|
null
|
|
304
304
|
);
|
|
305
305
|
let A = 0, Q = null, fe = 0, x = null, O = 0;
|
|
306
|
-
for (;
|
|
307
|
-
const q =
|
|
306
|
+
for (; V.nextNode(); ) {
|
|
307
|
+
const q = V.currentNode, oe = q.textContent?.length ?? 0;
|
|
308
308
|
!Q && A + oe >= z && (Q = q, fe = z - A), !x && A + oe >= h && (x = q, O = h - A), A += oe;
|
|
309
309
|
}
|
|
310
310
|
const B = document.createRange();
|
|
@@ -322,7 +322,7 @@ const lt = (e) => {
|
|
|
322
322
|
restoreSelection: R,
|
|
323
323
|
isInlineActive: u,
|
|
324
324
|
isBlockActive: C,
|
|
325
|
-
focus:
|
|
325
|
+
focus: H,
|
|
326
326
|
toolbarRef: s,
|
|
327
327
|
focusFirstToolbarButton: k,
|
|
328
328
|
replaceCurrentBlock: D,
|
|
@@ -363,7 +363,7 @@ const lt = (e) => {
|
|
|
363
363
|
const c = o.getRangeAt(0);
|
|
364
364
|
l.contains(c.commonAncestorContainer) && t.editor?.saveSelection();
|
|
365
365
|
};
|
|
366
|
-
return te(() => document.addEventListener("selectionchange", i)),
|
|
366
|
+
return te(() => document.addEventListener("selectionchange", i)), ye(() => document.removeEventListener("selectionchange", i)), n({
|
|
367
367
|
getRoot: () => s
|
|
368
368
|
}), (o, l) => (v(), m(ae, null, [
|
|
369
369
|
y("div", {
|
|
@@ -378,10 +378,10 @@ const lt = (e) => {
|
|
|
378
378
|
"aria-describedby": "editor-help editor-status",
|
|
379
379
|
onKeydown: [
|
|
380
380
|
r,
|
|
381
|
-
l[0] || (l[0] = ve((c) =>
|
|
381
|
+
l[0] || (l[0] = ve((c) => I(Vt)(c, e.editor), ["enter"])),
|
|
382
382
|
l[1] || (l[1] = ve(
|
|
383
383
|
//@ts-ignore
|
|
384
|
-
(...c) =>
|
|
384
|
+
(...c) => I(Ge) && I(Ge)(...c),
|
|
385
385
|
["backspace"]
|
|
386
386
|
))
|
|
387
387
|
],
|
|
@@ -399,7 +399,7 @@ const lt = (e) => {
|
|
|
399
399
|
}, " Use Ctrl+B for bold, Ctrl+I for italic, Alt+Ctrl+1 for heading level 1. ", -1))
|
|
400
400
|
], 64));
|
|
401
401
|
}
|
|
402
|
-
}), Et = /* @__PURE__ */
|
|
402
|
+
}), Et = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-445744be"]]), Dt = {
|
|
403
403
|
viewBox: "0 0 24 24",
|
|
404
404
|
paths: [
|
|
405
405
|
{
|
|
@@ -500,7 +500,7 @@ const lt = (e) => {
|
|
|
500
500
|
fill: "currentColor"
|
|
501
501
|
}
|
|
502
502
|
]
|
|
503
|
-
},
|
|
503
|
+
}, Wt = {
|
|
504
504
|
viewBox: "0 0 24 24",
|
|
505
505
|
paths: [
|
|
506
506
|
{
|
|
@@ -522,7 +522,7 @@ const lt = (e) => {
|
|
|
522
522
|
fill: "currentColor"
|
|
523
523
|
}
|
|
524
524
|
]
|
|
525
|
-
},
|
|
525
|
+
}, jt = {
|
|
526
526
|
viewBox: "0 0 24 24",
|
|
527
527
|
paths: [
|
|
528
528
|
{
|
|
@@ -645,12 +645,25 @@ const lt = (e) => {
|
|
|
645
645
|
paths: [
|
|
646
646
|
{
|
|
647
647
|
type: "path",
|
|
648
|
-
d: "M15
|
|
648
|
+
d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",
|
|
649
649
|
fill: "none",
|
|
650
650
|
stroke: "currentColor",
|
|
651
|
-
strokeWidth:
|
|
652
|
-
|
|
653
|
-
|
|
651
|
+
strokeWidth: 2
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
type: "polyline",
|
|
655
|
+
points: "10,17 15,12 10,7",
|
|
656
|
+
stroke: "currentColor",
|
|
657
|
+
strokeWidth: 2
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
type: "line",
|
|
661
|
+
x1: 15,
|
|
662
|
+
y1: 12,
|
|
663
|
+
x2: 3,
|
|
664
|
+
y2: 12,
|
|
665
|
+
stroke: "currentColor",
|
|
666
|
+
strokeWidth: 2
|
|
654
667
|
}
|
|
655
668
|
]
|
|
656
669
|
}, ta = {
|
|
@@ -713,24 +726,29 @@ const lt = (e) => {
|
|
|
713
726
|
]
|
|
714
727
|
}, la = {
|
|
715
728
|
viewBox: "0 0 24 24",
|
|
729
|
+
transform: "matrix(-1,0,0,1,0,0)",
|
|
716
730
|
paths: [
|
|
717
731
|
{
|
|
718
732
|
type: "path",
|
|
719
|
-
d: "
|
|
733
|
+
d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",
|
|
720
734
|
fill: "none",
|
|
721
735
|
stroke: "currentColor",
|
|
722
|
-
strokeWidth:
|
|
723
|
-
strokeLinecap: "round",
|
|
724
|
-
strokeLinejoin: "round"
|
|
736
|
+
strokeWidth: 2
|
|
725
737
|
},
|
|
726
738
|
{
|
|
727
|
-
type: "
|
|
728
|
-
|
|
729
|
-
fill: "none",
|
|
739
|
+
type: "polyline",
|
|
740
|
+
points: "10,17 15,12 10,7",
|
|
730
741
|
stroke: "currentColor",
|
|
731
|
-
strokeWidth:
|
|
732
|
-
|
|
733
|
-
|
|
742
|
+
strokeWidth: 2
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
type: "line",
|
|
746
|
+
x1: 15,
|
|
747
|
+
y1: 12,
|
|
748
|
+
x2: 3,
|
|
749
|
+
y2: 12,
|
|
750
|
+
stroke: "currentColor",
|
|
751
|
+
strokeWidth: 2
|
|
734
752
|
}
|
|
735
753
|
]
|
|
736
754
|
}, sa = {
|
|
@@ -899,16 +917,16 @@ const lt = (e) => {
|
|
|
899
917
|
strokeLinejoin: "round"
|
|
900
918
|
}
|
|
901
919
|
]
|
|
902
|
-
},
|
|
920
|
+
}, Ze = {
|
|
903
921
|
eye: Dt,
|
|
904
922
|
star: Ot,
|
|
905
923
|
home: Nt,
|
|
906
924
|
edit: qt,
|
|
907
925
|
disk: Ut,
|
|
908
|
-
user:
|
|
926
|
+
user: Wt,
|
|
909
927
|
info: zt,
|
|
910
928
|
sort: Pt,
|
|
911
|
-
tick:
|
|
929
|
+
tick: jt,
|
|
912
930
|
link: Ft,
|
|
913
931
|
head: Kt,
|
|
914
932
|
bold: Xt,
|
|
@@ -936,7 +954,7 @@ const lt = (e) => {
|
|
|
936
954
|
shoppingBag: ga,
|
|
937
955
|
directionDown: Ca,
|
|
938
956
|
shoppingBasket: ha
|
|
939
|
-
}, ya = ["viewBox", "width", "height"], ka = /* @__PURE__ */ S({
|
|
957
|
+
}, ya = ["viewBox", "transform", "width", "height"], ka = /* @__PURE__ */ S({
|
|
940
958
|
__name: "Icon",
|
|
941
959
|
props: {
|
|
942
960
|
name: {},
|
|
@@ -947,29 +965,34 @@ const lt = (e) => {
|
|
|
947
965
|
return (n, t) => (v(), m("svg", {
|
|
948
966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
949
967
|
class: re(["icon", { spin: e.spin }]),
|
|
950
|
-
viewBox:
|
|
968
|
+
viewBox: I(Ze)[e.name].viewBox,
|
|
969
|
+
transform: I(Ze)[e.name].transform || void 0,
|
|
951
970
|
width: e.size || 24,
|
|
952
971
|
height: e.size || 24,
|
|
953
972
|
fill: "none",
|
|
954
973
|
"aria-hidden": "true"
|
|
955
974
|
}, [
|
|
956
|
-
(v(!0), m(ae, null, de(
|
|
957
|
-
a.type === "path" ? (v(), m("path",
|
|
975
|
+
(v(!0), m(ae, null, de(I(Ze)[e.name].paths, (a, s) => (v(), m(ae, { key: s }, [
|
|
976
|
+
a.type === "path" ? (v(), m("path", he({
|
|
958
977
|
key: 0,
|
|
959
978
|
ref_for: !0
|
|
960
979
|
}, a), null, 16)) : K("", !0),
|
|
961
|
-
a.type === "circle" ? (v(), m("circle",
|
|
980
|
+
a.type === "circle" ? (v(), m("circle", he({
|
|
962
981
|
key: 1,
|
|
963
982
|
ref_for: !0
|
|
964
983
|
}, a), null, 16)) : K("", !0),
|
|
965
|
-
a.type === "line" ? (v(), m("line",
|
|
984
|
+
a.type === "line" ? (v(), m("line", he({
|
|
966
985
|
key: 2,
|
|
967
986
|
ref_for: !0
|
|
987
|
+
}, a), null, 16)) : K("", !0),
|
|
988
|
+
a.type === "polyline" ? (v(), m("polyline", he({
|
|
989
|
+
key: 3,
|
|
990
|
+
ref_for: !0
|
|
968
991
|
}, a), null, 16)) : K("", !0)
|
|
969
992
|
], 64))), 128))
|
|
970
993
|
], 10, ya));
|
|
971
994
|
}
|
|
972
|
-
}), ue = /* @__PURE__ */
|
|
995
|
+
}), ue = /* @__PURE__ */ j(ka, [["__scopeId", "data-v-96562865"]]), wa = ["aria-controls"], La = ["aria-pressed", "onMousedown", "aria-label"], Ma = { key: 1 }, $a = /* @__PURE__ */ S({
|
|
973
996
|
__name: "FloatingToolbar",
|
|
974
997
|
props: {
|
|
975
998
|
editor: {},
|
|
@@ -1043,15 +1066,15 @@ const lt = (e) => {
|
|
|
1043
1066
|
]), g = async () => {
|
|
1044
1067
|
await Me(), i.value[0]?.focus();
|
|
1045
1068
|
}, $ = (u) => {
|
|
1046
|
-
const C = i.value,
|
|
1069
|
+
const C = i.value, H = C.indexOf(document.activeElement);
|
|
1047
1070
|
if (u.key === "ArrowRight") {
|
|
1048
1071
|
u.preventDefault();
|
|
1049
|
-
const R =
|
|
1072
|
+
const R = H < C.length - 1 ? H + 1 : 0;
|
|
1050
1073
|
C[R]?.focus();
|
|
1051
1074
|
}
|
|
1052
1075
|
if (u.key === "ArrowLeft") {
|
|
1053
1076
|
u.preventDefault();
|
|
1054
|
-
const R =
|
|
1077
|
+
const R = H > 0 ? H - 1 : C.length - 1;
|
|
1055
1078
|
C[R]?.focus();
|
|
1056
1079
|
}
|
|
1057
1080
|
u.key === "Home" && (u.preventDefault(), C[0]?.focus()), u.key === "End" && (u.preventDefault(), C[C.length - 1]?.focus()), u.key === "Escape" && (u.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
|
|
@@ -1063,17 +1086,17 @@ const lt = (e) => {
|
|
|
1063
1086
|
}
|
|
1064
1087
|
const C = t.editor?.rootElement;
|
|
1065
1088
|
if (!C) return;
|
|
1066
|
-
const
|
|
1067
|
-
if (!C.contains(
|
|
1089
|
+
const H = u.getRangeAt(0);
|
|
1090
|
+
if (!C.contains(H.commonAncestorContainer) || u.isCollapsed) {
|
|
1068
1091
|
r.value = !1;
|
|
1069
1092
|
return;
|
|
1070
1093
|
}
|
|
1071
|
-
const R =
|
|
1094
|
+
const R = H.getBoundingClientRect();
|
|
1072
1095
|
a.value = R.left + R.width / 2, s.value = R.top - 45, r.value = !0;
|
|
1073
1096
|
};
|
|
1074
1097
|
return te(() => {
|
|
1075
1098
|
document.addEventListener("selectionchange", M), window.addEventListener("scroll", M, !0), window.addEventListener("resize", M);
|
|
1076
|
-
}),
|
|
1099
|
+
}), ye(() => {
|
|
1077
1100
|
document.removeEventListener("selectionchange", M), window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
1078
1101
|
}), n({
|
|
1079
1102
|
focusFirstButton: g
|
|
@@ -1090,28 +1113,28 @@ const lt = (e) => {
|
|
|
1090
1113
|
onKeydown: $
|
|
1091
1114
|
}, [
|
|
1092
1115
|
C[0] || (C[0] = y("div", { class: "arrow" }, null, -1)),
|
|
1093
|
-
(v(!0), m(ae, null, de(d.value, (
|
|
1094
|
-
key:
|
|
1116
|
+
(v(!0), m(ae, null, de(d.value, (H, R) => (v(), m("button", {
|
|
1117
|
+
key: H.key ?? R,
|
|
1095
1118
|
type: "button",
|
|
1096
1119
|
ref_for: !0,
|
|
1097
1120
|
ref: (k) => l(k, R),
|
|
1098
|
-
class: re({ "is-active":
|
|
1099
|
-
"aria-pressed":
|
|
1100
|
-
onMousedown: le((k) =>
|
|
1101
|
-
"aria-label":
|
|
1121
|
+
class: re({ "is-active": H.isActive?.(t.editor) }),
|
|
1122
|
+
"aria-pressed": H.isActive?.(t.editor),
|
|
1123
|
+
onMousedown: le((k) => H.action(t.editor), ["prevent"]),
|
|
1124
|
+
"aria-label": H.ariaLabel
|
|
1102
1125
|
}, [
|
|
1103
|
-
|
|
1126
|
+
H.type === "icon" ? (v(), J(ue, {
|
|
1104
1127
|
key: 0,
|
|
1105
|
-
name:
|
|
1106
|
-
size:
|
|
1107
|
-
}, null, 8, ["name", "size"])) : (v(), m("span", Ma, U(
|
|
1128
|
+
name: H.label,
|
|
1129
|
+
size: H.size ?? 14
|
|
1130
|
+
}, null, 8, ["name", "size"])) : (v(), m("span", Ma, U(H.label), 1))
|
|
1108
1131
|
], 42, La))), 128))
|
|
1109
1132
|
], 44, wa)) : K("", !0)
|
|
1110
1133
|
]),
|
|
1111
1134
|
_: 1
|
|
1112
1135
|
}));
|
|
1113
1136
|
}
|
|
1114
|
-
}), xa = /* @__PURE__ */
|
|
1137
|
+
}), xa = /* @__PURE__ */ j($a, [["__scopeId", "data-v-3f279ebe"]]), Ia = { class: "editor" }, Je = /* @__PURE__ */ S({
|
|
1115
1138
|
__name: "Editor",
|
|
1116
1139
|
props: /* @__PURE__ */ ne({
|
|
1117
1140
|
ariaLabel: {},
|
|
@@ -1136,20 +1159,20 @@ const lt = (e) => {
|
|
|
1136
1159
|
if (!l) return;
|
|
1137
1160
|
r.value = St(l, { buttons: t.buttons ?? [] }), r.value && (r.value.toolbarRef = s);
|
|
1138
1161
|
const c = () => n.value = l.innerHTML;
|
|
1139
|
-
l.addEventListener("input", c),
|
|
1162
|
+
l.addEventListener("input", c), ye(() => l.removeEventListener("input", c));
|
|
1140
1163
|
}), Ce("announce", (o) => r.value?.announce(o)), (o, l) => (v(), m("section", Ia, [
|
|
1141
1164
|
P(Et, {
|
|
1142
1165
|
ref_key: "contentRef",
|
|
1143
1166
|
ref: i,
|
|
1144
1167
|
editor: r.value,
|
|
1145
|
-
"editor-id":
|
|
1168
|
+
"editor-id": I(a),
|
|
1146
1169
|
"aria-label": e.ariaLabel
|
|
1147
1170
|
}, null, 8, ["editor", "editor-id", "aria-label"]),
|
|
1148
1171
|
P(xa, {
|
|
1149
1172
|
ref_key: "toolbarRef",
|
|
1150
1173
|
ref: s,
|
|
1151
1174
|
editor: r.value,
|
|
1152
|
-
"editor-id":
|
|
1175
|
+
"editor-id": I(a)
|
|
1153
1176
|
}, null, 8, ["editor", "editor-id"])
|
|
1154
1177
|
]));
|
|
1155
1178
|
}
|
|
@@ -1200,7 +1223,7 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1200
1223
|
setup(e, { emit: n }) {
|
|
1201
1224
|
const t = me(e, "modelValue"), a = e, s = n, r = p(0), i = p(""), o = p(!1), l = ie(), c = p(), d = L(() => t.value), g = L(() => a.maxSize === 1 / 0 ? "Unlimited" : N(a.maxSize)), $ = L(() => !a.disabled && (a.multiple || t.value.length === 0)), M = L(() => d.value.some((b) => b.status === "uploading")), u = () => $.value && c.value?.click(), C = () => {
|
|
1202
1225
|
a.disabled || (r.value++, o.value = !0);
|
|
1203
|
-
},
|
|
1226
|
+
}, H = () => {
|
|
1204
1227
|
r.value = Math.max(0, r.value - 1), r.value === 0 && (o.value = !1);
|
|
1205
1228
|
}, R = (b) => {
|
|
1206
1229
|
if (!a.disabled && !(!a.multiple && t.value.length > 0) && (r.value = 0, o.value = !1, !!b.dataTransfer)) {
|
|
@@ -1238,14 +1261,14 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1238
1261
|
h.signal.addEventListener("abort", E);
|
|
1239
1262
|
const X = {
|
|
1240
1263
|
signal: h.signal,
|
|
1241
|
-
onProgress: (
|
|
1242
|
-
b.progress =
|
|
1264
|
+
onProgress: (V) => {
|
|
1265
|
+
b.progress = V, _();
|
|
1243
1266
|
},
|
|
1244
1267
|
done: () => {
|
|
1245
1268
|
b.status = "success", b.progress = 100, b.controller = void 0, T(`Finished uploading ${b.file.name}`), _();
|
|
1246
1269
|
},
|
|
1247
|
-
fail: (
|
|
1248
|
-
b.status = "error", b.error =
|
|
1270
|
+
fail: (V) => {
|
|
1271
|
+
b.status = "error", b.error = V, b.controller = void 0, T(`Failed to upload ${b.file.name}: ${V}`), _();
|
|
1249
1272
|
}
|
|
1250
1273
|
};
|
|
1251
1274
|
s("upload", b, X);
|
|
@@ -1271,7 +1294,7 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1271
1294
|
class: "ui-upload",
|
|
1272
1295
|
tabindex: e.disabled ? -1 : 0,
|
|
1273
1296
|
"aria-label": e.ariaLabel || "File upload area",
|
|
1274
|
-
"aria-describedby": o.value ?
|
|
1297
|
+
"aria-describedby": o.value ? I(l) : void 0,
|
|
1275
1298
|
"aria-busy": M.value ? "true" : void 0,
|
|
1276
1299
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
1277
1300
|
"data-disabled": e.disabled || void 0,
|
|
@@ -1282,7 +1305,7 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1282
1305
|
h[2] || (h[2] = ve(le((E) => !e.disabled && u(), ["prevent"]), ["space"]))
|
|
1283
1306
|
],
|
|
1284
1307
|
onDragover: h[3] || (h[3] = le((E) => !e.disabled && C(), ["prevent"])),
|
|
1285
|
-
onDragleave:
|
|
1308
|
+
onDragleave: H,
|
|
1286
1309
|
onDrop: h[4] || (h[4] = le((E) => !e.disabled && R(E), ["prevent"]))
|
|
1287
1310
|
}, [
|
|
1288
1311
|
y("input", {
|
|
@@ -1295,7 +1318,7 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1295
1318
|
disabled: e.disabled,
|
|
1296
1319
|
onChange: k
|
|
1297
1320
|
}, null, 40, Va),
|
|
1298
|
-
e.multiple || !e.multiple && t.value.length === 0 ?
|
|
1321
|
+
e.multiple || !e.multiple && t.value.length === 0 ? W(b.$slots, "default", {
|
|
1299
1322
|
key: 0,
|
|
1300
1323
|
dragging: o.value
|
|
1301
1324
|
}, () => [
|
|
@@ -1321,7 +1344,7 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1321
1344
|
key: E.id,
|
|
1322
1345
|
class: "ui-upload__item"
|
|
1323
1346
|
}, [
|
|
1324
|
-
|
|
1347
|
+
W(b.$slots, "file", {
|
|
1325
1348
|
file: E,
|
|
1326
1349
|
remove: () => z(E),
|
|
1327
1350
|
cancel: () => f(E),
|
|
@@ -1384,12 +1407,12 @@ const Ha = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1384
1407
|
])) : K("", !0),
|
|
1385
1408
|
y("div", Na, U(i.value), 1),
|
|
1386
1409
|
y("p", {
|
|
1387
|
-
id:
|
|
1410
|
+
id: I(l),
|
|
1388
1411
|
class: "sr-only"
|
|
1389
1412
|
}, " Drop files to upload ", 8, za)
|
|
1390
1413
|
], 40, Ha));
|
|
1391
1414
|
}
|
|
1392
|
-
}), Ye = /* @__PURE__ */
|
|
1415
|
+
}), Ye = /* @__PURE__ */ j(Fa, [["__scopeId", "data-v-041ff337"]]);
|
|
1393
1416
|
Ye.install = (e) => {
|
|
1394
1417
|
e.component("Upload", Ye);
|
|
1395
1418
|
};
|
|
@@ -1398,7 +1421,7 @@ const Ka = (e) => {
|
|
|
1398
1421
|
return window.addEventListener("scroll", n, !0), window.addEventListener("resize", t), () => {
|
|
1399
1422
|
window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", t);
|
|
1400
1423
|
};
|
|
1401
|
-
}, Pa = ["aria-describedby", "aria-disabled", "aria-expanded"], Ua = ["aria-hidden", "data-placement"],
|
|
1424
|
+
}, Pa = ["aria-describedby", "aria-disabled", "aria-expanded"], Ua = ["aria-hidden", "data-placement"], Wa = 8, ja = 6, Xa = /* @__PURE__ */ S({
|
|
1402
1425
|
__name: "Tooltip",
|
|
1403
1426
|
props: {
|
|
1404
1427
|
content: {},
|
|
@@ -1407,7 +1430,7 @@ const Ka = (e) => {
|
|
|
1407
1430
|
disabled: { type: Boolean, default: !1 }
|
|
1408
1431
|
},
|
|
1409
1432
|
setup(e) {
|
|
1410
|
-
const n = e, t =
|
|
1433
|
+
const n = e, t = Wa + ja, a = p(!1), s = `tooltip-${ie()}`, r = p(null), i = p(null), o = p({});
|
|
1411
1434
|
let l = null, c = null, d = null;
|
|
1412
1435
|
const g = () => {
|
|
1413
1436
|
n.disabled || (l && (clearTimeout(l), l = null), n.delay ? l = window.setTimeout(() => {
|
|
@@ -1417,21 +1440,21 @@ const Ka = (e) => {
|
|
|
1417
1440
|
l && (clearTimeout(l), l = null), a.value = !1;
|
|
1418
1441
|
}, M = () => {
|
|
1419
1442
|
if (!r.value || !i.value) return {};
|
|
1420
|
-
const C = r.value.getBoundingClientRect(),
|
|
1443
|
+
const C = r.value.getBoundingClientRect(), H = i.value.getBoundingClientRect(), R = {
|
|
1421
1444
|
position: "fixed"
|
|
1422
1445
|
};
|
|
1423
1446
|
switch (n.placement) {
|
|
1424
1447
|
case "top":
|
|
1425
|
-
R.left = `${C.left + C.width / 2 -
|
|
1448
|
+
R.left = `${C.left + C.width / 2 - H.width / 2}px`, R.top = `${C.top - H.height - t}px`;
|
|
1426
1449
|
break;
|
|
1427
1450
|
case "bottom":
|
|
1428
|
-
R.left = `${C.left + C.width / 2 -
|
|
1451
|
+
R.left = `${C.left + C.width / 2 - H.width / 2}px`, R.top = `${C.bottom + t}px`;
|
|
1429
1452
|
break;
|
|
1430
1453
|
case "left":
|
|
1431
|
-
R.left = `${C.left -
|
|
1454
|
+
R.left = `${C.left - H.width - t}px`, R.top = `${C.top + C.height / 2 - H.height / 2}px`;
|
|
1432
1455
|
break;
|
|
1433
1456
|
case "right":
|
|
1434
|
-
R.left = `${C.right + t}px`, R.top = `${C.top + C.height / 2 -
|
|
1457
|
+
R.left = `${C.right + t}px`, R.top = `${C.top + C.height / 2 - H.height / 2}px`;
|
|
1435
1458
|
break;
|
|
1436
1459
|
}
|
|
1437
1460
|
return R;
|
|
@@ -1446,7 +1469,7 @@ const Ka = (e) => {
|
|
|
1446
1469
|
await Me(), u(), c = Ka(u), d = new ResizeObserver(u), i.value && d.observe(i.value), r.value && d.observe(r.value);
|
|
1447
1470
|
}), _e(() => {
|
|
1448
1471
|
c?.(), d?.disconnect();
|
|
1449
|
-
}), (C,
|
|
1472
|
+
}), (C, H) => (v(), m(ae, null, [
|
|
1450
1473
|
y("span", {
|
|
1451
1474
|
ref_key: "triggerRef",
|
|
1452
1475
|
ref: r,
|
|
@@ -1460,7 +1483,7 @@ const Ka = (e) => {
|
|
|
1460
1483
|
onBlur: $,
|
|
1461
1484
|
onKeydown: ve($, ["esc"])
|
|
1462
1485
|
}, [
|
|
1463
|
-
|
|
1486
|
+
W(C.$slots, "default", {}, void 0, !0)
|
|
1464
1487
|
], 40, Pa),
|
|
1465
1488
|
(v(), J(Re, { to: "body" }, [
|
|
1466
1489
|
P(xe, { name: "tooltip-fade" }, {
|
|
@@ -1477,8 +1500,8 @@ const Ka = (e) => {
|
|
|
1477
1500
|
"data-placement": n.placement,
|
|
1478
1501
|
style: ge(o.value)
|
|
1479
1502
|
}, [
|
|
1480
|
-
|
|
1481
|
-
|
|
1503
|
+
H[0] || (H[0] = y("div", { class: "tooltip-arrow" }, null, -1)),
|
|
1504
|
+
W(C.$slots, "content", {}, () => [
|
|
1482
1505
|
pe(U(e.content), 1)
|
|
1483
1506
|
], !0)
|
|
1484
1507
|
], 12, Ua)) : K("", !0)
|
|
@@ -1488,7 +1511,7 @@ const Ka = (e) => {
|
|
|
1488
1511
|
]))
|
|
1489
1512
|
], 64));
|
|
1490
1513
|
}
|
|
1491
|
-
}), Qe = /* @__PURE__ */
|
|
1514
|
+
}), Qe = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-c489ef7b"]]);
|
|
1492
1515
|
Qe.install = (e) => {
|
|
1493
1516
|
e.component("Tooltip", Qe);
|
|
1494
1517
|
};
|
|
@@ -1533,10 +1556,10 @@ const Ga = {
|
|
|
1533
1556
|
}, {
|
|
1534
1557
|
default: G(() => [
|
|
1535
1558
|
d.$slots.icon ? (v(), m("span", Ga, [
|
|
1536
|
-
|
|
1559
|
+
W(d.$slots, "icon", {}, void 0, !0)
|
|
1537
1560
|
])) : K("", !0),
|
|
1538
1561
|
y("span", Ja, [
|
|
1539
|
-
|
|
1562
|
+
W(d.$slots, "default", {}, void 0, !0)
|
|
1540
1563
|
]),
|
|
1541
1564
|
e.removable ? (v(), m("button", {
|
|
1542
1565
|
key: 1,
|
|
@@ -1554,7 +1577,7 @@ const Ga = {
|
|
|
1554
1577
|
_: 3
|
|
1555
1578
|
}, 40, ["class", "aria-disabled", "tabindex", "role"]));
|
|
1556
1579
|
}
|
|
1557
|
-
}), en = /* @__PURE__ */
|
|
1580
|
+
}), en = /* @__PURE__ */ j(Qa, [["__scopeId", "data-v-ea48b943"]]), tn = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], an = /* @__PURE__ */ S({
|
|
1558
1581
|
__name: "Link",
|
|
1559
1582
|
props: {
|
|
1560
1583
|
target: {},
|
|
@@ -1581,19 +1604,19 @@ const Ga = {
|
|
|
1581
1604
|
"aria-current": e.ariaCurrent,
|
|
1582
1605
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1583
1606
|
}, [
|
|
1584
|
-
|
|
1607
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
1585
1608
|
], 8, tn));
|
|
1586
1609
|
}
|
|
1587
|
-
}), Il = /* @__PURE__ */
|
|
1610
|
+
}), Il = /* @__PURE__ */ j(an, [["__scopeId", "data-v-0f5d7308"]]), Fe = (e, n, t, a) => L(() => {
|
|
1588
1611
|
const s = [];
|
|
1589
1612
|
return e.invalid && e.errorMessage && s.push(t), n.hint && s.push(a), s.length > 0 ? s.join(" ") : void 0;
|
|
1590
|
-
}), Be = (e) => L(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Ve = (e) => L(() => e.invalid === !0 ? "true" : void 0), st = (e) => L(() => e.disabled === !0 ? "true" : void 0),
|
|
1613
|
+
}), Be = (e) => L(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Ve = (e) => L(() => e.invalid === !0 ? "true" : void 0), st = (e) => L(() => e.disabled === !0 ? "true" : void 0), Ke = (e, n, t) => {
|
|
1591
1614
|
n && (n.classList.add("focused"), t("focus", e));
|
|
1592
|
-
},
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1615
|
+
}, Pe = (e, n, t, a) => {
|
|
1616
|
+
we(n, t), t && (t?.classList.remove("focused"), a("blur", e));
|
|
1617
|
+
}, we = (e, n) => {
|
|
1595
1618
|
!e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
|
|
1596
|
-
}, nn = ["id"],
|
|
1619
|
+
}, nn = ["id"], Ue = /* @__PURE__ */ S({
|
|
1597
1620
|
__name: "Hint",
|
|
1598
1621
|
props: {
|
|
1599
1622
|
hintId: {}
|
|
@@ -1604,10 +1627,10 @@ const Ga = {
|
|
|
1604
1627
|
id: e.hintId,
|
|
1605
1628
|
class: "visually-hidden"
|
|
1606
1629
|
}, [
|
|
1607
|
-
|
|
1630
|
+
W(n.$slots, "default")
|
|
1608
1631
|
], 8, nn)) : K("", !0);
|
|
1609
1632
|
}
|
|
1610
|
-
}), on = ["id"],
|
|
1633
|
+
}), on = ["id"], We = /* @__PURE__ */ S({
|
|
1611
1634
|
__name: "RequiredHint",
|
|
1612
1635
|
props: {
|
|
1613
1636
|
baseId: {},
|
|
@@ -1651,57 +1674,57 @@ const Ga = {
|
|
|
1651
1674
|
}),
|
|
1652
1675
|
emits: /* @__PURE__ */ ne(["focus", "blur"], ["update:modelValue"]),
|
|
1653
1676
|
setup(e, { emit: n }) {
|
|
1654
|
-
const t = me(e, "modelValue"), a = e, s = n, r =
|
|
1677
|
+
const t = me(e, "modelValue"), a = e, s = n, r = Ne(), i = ie(), o = `${i}-error`, l = `${i}-hint`, c = Be(r).value, d = Ve(a).value, g = L(() => c ? `${l} ${i}-required-hint` : l), $ = L(() => a.invalid === !0 && a.errorMessage ? o : void 0), M = L(() => a.type === "password" ? R.value ? "text" : "password" : a.type), u = L(() => {
|
|
1655
1678
|
const { type: Z, ...f } = r;
|
|
1656
1679
|
return f;
|
|
1657
|
-
}), C = p(null),
|
|
1658
|
-
|
|
1680
|
+
}), C = p(null), H = p(null), R = p(!1), k = () => R.value = !R.value, D = (Z) => {
|
|
1681
|
+
we(C.value, H.value);
|
|
1659
1682
|
const f = Z.target;
|
|
1660
1683
|
t.value = a.type === "number" ? Number(f.value) : f.value;
|
|
1661
1684
|
};
|
|
1662
1685
|
return te(() => {
|
|
1663
|
-
|
|
1686
|
+
we(C.value, H.value);
|
|
1664
1687
|
}), (Z, f) => (v(), m("div", {
|
|
1665
|
-
class: re(["input-box", { required:
|
|
1688
|
+
class: re(["input-box", { required: I(c), error: I(d) }]),
|
|
1666
1689
|
ref_key: "inputBoxRef",
|
|
1667
|
-
ref:
|
|
1690
|
+
ref: H
|
|
1668
1691
|
}, [
|
|
1669
1692
|
y("label", {
|
|
1670
1693
|
for: e.id,
|
|
1671
1694
|
class: "label"
|
|
1672
1695
|
}, U(e.label), 9, sn),
|
|
1673
|
-
y("input",
|
|
1696
|
+
y("input", he({
|
|
1674
1697
|
id: e.id,
|
|
1675
1698
|
type: M.value
|
|
1676
1699
|
}, u.value, {
|
|
1677
1700
|
class: "input",
|
|
1678
1701
|
onInput: D,
|
|
1679
|
-
onFocus: f[0] || (f[0] = (w) =>
|
|
1680
|
-
onBlur: f[1] || (f[1] = (w) =>
|
|
1702
|
+
onFocus: f[0] || (f[0] = (w) => I(Ke)(w, H.value, s)),
|
|
1703
|
+
onBlur: f[1] || (f[1] = (w) => I(Pe)(w, C.value, H.value, s)),
|
|
1681
1704
|
value: t.value,
|
|
1682
|
-
required:
|
|
1683
|
-
"aria-invalid":
|
|
1705
|
+
required: I(c),
|
|
1706
|
+
"aria-invalid": I(d),
|
|
1684
1707
|
"aria-errormessage": $.value,
|
|
1685
|
-
"aria-describedby":
|
|
1708
|
+
"aria-describedby": I(Fe)(Z.$props, Z.$slots, o, g.value).value,
|
|
1686
1709
|
ref_key: "inputRef",
|
|
1687
1710
|
ref: C
|
|
1688
1711
|
}), null, 16, rn),
|
|
1689
|
-
P(
|
|
1712
|
+
P(Ue, { hintId: l }, {
|
|
1690
1713
|
default: G(() => [
|
|
1691
|
-
|
|
1714
|
+
W(Z.$slots, "hint", {}, void 0, !0)
|
|
1692
1715
|
]),
|
|
1693
1716
|
_: 3
|
|
1694
1717
|
}),
|
|
1695
|
-
P(
|
|
1696
|
-
baseId:
|
|
1697
|
-
isRequired:
|
|
1718
|
+
P(We, {
|
|
1719
|
+
baseId: I(i),
|
|
1720
|
+
isRequired: I(c)
|
|
1698
1721
|
}, null, 8, ["baseId", "isRequired"]),
|
|
1699
1722
|
P(je, {
|
|
1700
1723
|
errorId: o,
|
|
1701
|
-
invalid:
|
|
1724
|
+
invalid: I(d),
|
|
1702
1725
|
errorMessage: e.errorMessage
|
|
1703
1726
|
}, null, 8, ["invalid", "errorMessage"]),
|
|
1704
|
-
e.type === "password" ? (v(), J(be,
|
|
1727
|
+
e.type === "password" ? (v(), J(be, he({ key: 0 }, Object.keys(Z.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
|
|
1705
1728
|
type: "button",
|
|
1706
1729
|
class: "btn-icon",
|
|
1707
1730
|
onClick: k,
|
|
@@ -1716,7 +1739,7 @@ const Ga = {
|
|
|
1716
1739
|
}, 16, ["aria-label"])) : K("", !0)
|
|
1717
1740
|
], 2));
|
|
1718
1741
|
}
|
|
1719
|
-
}), Hl = /* @__PURE__ */
|
|
1742
|
+
}), Hl = /* @__PURE__ */ j(un, [["__scopeId", "data-v-7a6dcf4f"]]), dn = ["data-size", "data-shape", "aria-label", "aria-busy"], cn = {
|
|
1720
1743
|
key: 1,
|
|
1721
1744
|
class: "ui-avatar__loading"
|
|
1722
1745
|
}, vn = {
|
|
@@ -1752,13 +1775,13 @@ const Ga = {
|
|
|
1752
1775
|
onLoad: i,
|
|
1753
1776
|
onError: o
|
|
1754
1777
|
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), m("div", cn)) : (v(), m("div", vn, [
|
|
1755
|
-
|
|
1778
|
+
W(l.$slots, "default", {}, () => [
|
|
1756
1779
|
pe(U(s.value), 1)
|
|
1757
1780
|
], !0)
|
|
1758
1781
|
]))
|
|
1759
1782
|
], 8, dn));
|
|
1760
1783
|
}
|
|
1761
|
-
}), Vl = /* @__PURE__ */
|
|
1784
|
+
}), Vl = /* @__PURE__ */ j(fn, [["__scopeId", "data-v-e36c822a"]]), mn = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled", "disabled"], pn = ["innerHTML"], bn = ["id", "aria-disabled", "aria-selected", "onClick"], gn = ["innerHTML"], Cn = /* @__PURE__ */ S({
|
|
1762
1785
|
__name: "Select",
|
|
1763
1786
|
props: /* @__PURE__ */ ne({
|
|
1764
1787
|
id: {},
|
|
@@ -1773,69 +1796,69 @@ const Ga = {
|
|
|
1773
1796
|
emits: /* @__PURE__ */ ne(["focus", "blur", "change", "click"], ["update:modelValue"]),
|
|
1774
1797
|
setup(e, { emit: n }) {
|
|
1775
1798
|
const t = me(e, "modelValue"), a = e, s = n, r = p(!1);
|
|
1776
|
-
Y(r, (
|
|
1777
|
-
|
|
1799
|
+
Y(r, (V) => {
|
|
1800
|
+
V ? document.addEventListener("mousedown", X) : document.removeEventListener("mousedown", X);
|
|
1778
1801
|
});
|
|
1779
|
-
const i =
|
|
1802
|
+
const i = Ne(), o = p(null), l = L(() => a.id ?? ie()), c = `${l.value}-label`, d = `${l.value}-listbox`, g = `${l.value}-error`, $ = `${l.value}-hint`, M = `${l.value}-value`, u = p(null), C = p(null), H = L(() => u.value !== null ? `${d}-option-${u.value}` : void 0), R = Ve(a).value, k = Be(i).value, D = L(() => k ? `${$} ${l.value}-required-hint` : $), Z = L(() => r.value && H.value ? H.value : void 0), f = L(() => C.value !== null ? a.options[C.value]?.value : ""), w = (V) => {
|
|
1780
1803
|
const A = o.value;
|
|
1781
|
-
A && (A.classList.add("focused"), s("focus",
|
|
1782
|
-
}, _ = (
|
|
1783
|
-
const A =
|
|
1784
|
-
!Q || Q?.contains(A) || (Q.classList.remove("focused"), r.value = !1, s("blur",
|
|
1785
|
-
}, N = (
|
|
1786
|
-
r.value = !r.value, r.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && s("click",
|
|
1787
|
-
}, T = (
|
|
1804
|
+
A && (A.classList.add("focused"), s("focus", V));
|
|
1805
|
+
}, _ = (V) => {
|
|
1806
|
+
const A = V.relatedTarget, Q = o.value;
|
|
1807
|
+
!Q || Q?.contains(A) || (Q.classList.remove("focused"), r.value = !1, s("blur", V));
|
|
1808
|
+
}, N = (V) => {
|
|
1809
|
+
r.value = !r.value, r.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && s("click", V);
|
|
1810
|
+
}, T = (V, A) => {
|
|
1788
1811
|
const Q = o.value;
|
|
1789
|
-
!Q ||
|
|
1790
|
-
}, z = (
|
|
1791
|
-
if (!r.value && ["ArrowDown", "ArrowUp"].includes(
|
|
1792
|
-
r.value = !0, u.value = u.value ?? a.options.findIndex((A) => !A.disabled),
|
|
1812
|
+
!Q || V.disabled || (C.value = A, u.value = A, V && V.key && V.key.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), t.value = V.key, s("change", V.key));
|
|
1813
|
+
}, z = (V) => {
|
|
1814
|
+
if (!r.value && ["ArrowDown", "ArrowUp"].includes(V.key)) {
|
|
1815
|
+
r.value = !0, u.value = u.value ?? a.options.findIndex((A) => !A.disabled), V.preventDefault();
|
|
1793
1816
|
return;
|
|
1794
1817
|
}
|
|
1795
1818
|
if (r.value) {
|
|
1796
|
-
if (
|
|
1819
|
+
if (V.key === "ArrowDown" && (b(1), V.preventDefault()), V.key === "ArrowUp" && (b(-1), V.preventDefault()), V.key === "Home") {
|
|
1797
1820
|
const A = h();
|
|
1798
|
-
A >= 0 && (u.value = A),
|
|
1821
|
+
A >= 0 && (u.value = A), V.preventDefault();
|
|
1799
1822
|
}
|
|
1800
|
-
if (
|
|
1823
|
+
if (V.key === "End") {
|
|
1801
1824
|
const A = E();
|
|
1802
|
-
A >= 0 && (u.value = A),
|
|
1825
|
+
A >= 0 && (u.value = A), V.preventDefault();
|
|
1803
1826
|
}
|
|
1804
|
-
if (
|
|
1827
|
+
if (V.key === "Enter" || V.key === " ") {
|
|
1805
1828
|
if (u.value === null) return;
|
|
1806
1829
|
const A = a.options[u.value];
|
|
1807
1830
|
if (!A || A.disabled) return;
|
|
1808
|
-
T(A, u.value), r.value = !1,
|
|
1831
|
+
T(A, u.value), r.value = !1, V.preventDefault();
|
|
1809
1832
|
}
|
|
1810
|
-
|
|
1833
|
+
V.key === "Escape" && (r.value = !1);
|
|
1811
1834
|
}
|
|
1812
|
-
}, b = (
|
|
1835
|
+
}, b = (V) => {
|
|
1813
1836
|
if (u.value === null) return;
|
|
1814
1837
|
let A = u.value;
|
|
1815
1838
|
do
|
|
1816
|
-
A +=
|
|
1839
|
+
A += V;
|
|
1817
1840
|
while (A >= 0 && A < a.options.length && a.options[A]?.disabled);
|
|
1818
1841
|
A >= 0 && A < a.options.length && (u.value = A);
|
|
1819
|
-
}, h = () => a.options.findIndex((
|
|
1842
|
+
}, h = () => a.options.findIndex((V) => !V.disabled), E = () => [...a.options].reverse().findIndex((V) => !V.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((V) => !V.disabled) : -1, X = (V) => {
|
|
1820
1843
|
const A = o.value;
|
|
1821
|
-
!A || A.contains(
|
|
1844
|
+
!A || A.contains(V.target) || (r.value = !1);
|
|
1822
1845
|
};
|
|
1823
1846
|
return _e(() => {
|
|
1824
1847
|
document.removeEventListener("mousedown", X);
|
|
1825
1848
|
}), te(() => {
|
|
1826
1849
|
if (t.value.toString().length > 0) {
|
|
1827
1850
|
if (!a.options || a.options.length === 0) return;
|
|
1828
|
-
const
|
|
1829
|
-
if (
|
|
1830
|
-
C.value =
|
|
1851
|
+
const V = a.options.findIndex((A) => A.key === t.value);
|
|
1852
|
+
if (V > -1) {
|
|
1853
|
+
C.value = V, u.value = V;
|
|
1831
1854
|
const A = o.value;
|
|
1832
1855
|
A && A.classList.add("filled");
|
|
1833
1856
|
}
|
|
1834
1857
|
}
|
|
1835
|
-
}), (
|
|
1858
|
+
}), (V, A) => (v(), m("div", {
|
|
1836
1859
|
ref_key: "selectRef",
|
|
1837
1860
|
ref: o,
|
|
1838
|
-
class: re(["select-box", { required: Object.keys(
|
|
1861
|
+
class: re(["select-box", { required: Object.keys(V.$attrs).includes("required"), error: e.invalid }])
|
|
1839
1862
|
}, [
|
|
1840
1863
|
y("button", {
|
|
1841
1864
|
id: l.value,
|
|
@@ -1845,13 +1868,13 @@ const Ga = {
|
|
|
1845
1868
|
"aria-haspopup": "listbox",
|
|
1846
1869
|
"aria-expanded": r.value,
|
|
1847
1870
|
"aria-controls": d,
|
|
1848
|
-
"aria-invalid":
|
|
1871
|
+
"aria-invalid": I(R),
|
|
1849
1872
|
"aria-labelledby": `${c} ${M}`,
|
|
1850
|
-
"aria-required":
|
|
1851
|
-
"aria-describedby":
|
|
1873
|
+
"aria-required": I(k),
|
|
1874
|
+
"aria-describedby": I(Fe)(V.$props, V.$slots, g, D.value).value,
|
|
1852
1875
|
"aria-activedescendant": Z.value,
|
|
1853
|
-
"aria-disabled":
|
|
1854
|
-
disabled:
|
|
1876
|
+
"aria-disabled": V.$attrs.disabled ? "true" : void 0,
|
|
1877
|
+
disabled: V.$attrs.disabled ? "true" : void 0,
|
|
1855
1878
|
onBlur: _,
|
|
1856
1879
|
onFocus: w,
|
|
1857
1880
|
onClick: N,
|
|
@@ -1896,29 +1919,29 @@ const Ga = {
|
|
|
1896
1919
|
}, null, 8, gn)
|
|
1897
1920
|
], 10, bn))), 128))
|
|
1898
1921
|
], 512), [
|
|
1899
|
-
[
|
|
1922
|
+
[qe, r.value]
|
|
1900
1923
|
])
|
|
1901
1924
|
]),
|
|
1902
1925
|
_: 1
|
|
1903
1926
|
}),
|
|
1904
|
-
P(
|
|
1927
|
+
P(Ue, { hintId: $ }, {
|
|
1905
1928
|
default: G(() => [
|
|
1906
|
-
|
|
1929
|
+
W(V.$slots, "hint", {}, void 0, !0)
|
|
1907
1930
|
]),
|
|
1908
1931
|
_: 3
|
|
1909
1932
|
}),
|
|
1910
|
-
P(
|
|
1933
|
+
P(We, {
|
|
1911
1934
|
baseId: l.value,
|
|
1912
|
-
isRequired:
|
|
1935
|
+
isRequired: I(k)
|
|
1913
1936
|
}, null, 8, ["baseId", "isRequired"]),
|
|
1914
1937
|
P(je, {
|
|
1915
1938
|
errorId: g,
|
|
1916
|
-
invalid:
|
|
1939
|
+
invalid: I(R),
|
|
1917
1940
|
errorMessage: e.errorMessage
|
|
1918
1941
|
}, null, 8, ["invalid", "errorMessage"])
|
|
1919
1942
|
], 2));
|
|
1920
1943
|
}
|
|
1921
|
-
}), _l = /* @__PURE__ */
|
|
1944
|
+
}), _l = /* @__PURE__ */ j(Cn, [["__scopeId", "data-v-a3ab3a6e"]]), hn = ["aria-label"], yn = ["onKeydown"], kn = {
|
|
1922
1945
|
key: 1,
|
|
1923
1946
|
class: "rs-gallery-thumbs"
|
|
1924
1947
|
}, wn = ["aria-selected"], Ln = ["onClick"], Mn = /* @__PURE__ */ S({
|
|
@@ -1958,7 +1981,7 @@ const Ga = {
|
|
|
1958
1981
|
return;
|
|
1959
1982
|
}
|
|
1960
1983
|
M(d.value - 1);
|
|
1961
|
-
},
|
|
1984
|
+
}, H = () => {
|
|
1962
1985
|
c.value && (o.value = c.value.offsetHeight);
|
|
1963
1986
|
}, R = () => {
|
|
1964
1987
|
o.value = null;
|
|
@@ -1995,7 +2018,7 @@ const Ga = {
|
|
|
1995
2018
|
P(xe, {
|
|
1996
2019
|
name: `rs-gallery-slide-${i.value}`,
|
|
1997
2020
|
mode: "out-in",
|
|
1998
|
-
onBeforeLeave:
|
|
2021
|
+
onBeforeLeave: H,
|
|
1999
2022
|
onAfterEnter: R
|
|
2000
2023
|
}, {
|
|
2001
2024
|
default: G(() => [
|
|
@@ -2008,7 +2031,7 @@ const Ga = {
|
|
|
2008
2031
|
]),
|
|
2009
2032
|
_: 1
|
|
2010
2033
|
}, 8, ["name"]),
|
|
2011
|
-
|
|
2034
|
+
W(k.$slots, "overlay", {
|
|
2012
2035
|
image: g.value,
|
|
2013
2036
|
index: d.value
|
|
2014
2037
|
}, void 0, !0)
|
|
@@ -2040,7 +2063,7 @@ const Ga = {
|
|
|
2040
2063
|
])) : K("", !0)
|
|
2041
2064
|
], 8, hn));
|
|
2042
2065
|
}
|
|
2043
|
-
}), rt = /* @__PURE__ */
|
|
2066
|
+
}), rt = /* @__PURE__ */ j(Mn, [["__scopeId", "data-v-dcfacff6"]]), $n = ["aria-label"], xn = ["onClick"], In = /* @__PURE__ */ S({
|
|
2044
2067
|
__name: "GalleryGrid",
|
|
2045
2068
|
props: {
|
|
2046
2069
|
images: {},
|
|
@@ -2075,9 +2098,9 @@ const Ga = {
|
|
|
2075
2098
|
], 8, xn))), 128))
|
|
2076
2099
|
], 12, $n));
|
|
2077
2100
|
}
|
|
2078
|
-
}), it = /* @__PURE__ */
|
|
2079
|
-
let
|
|
2080
|
-
const
|
|
2101
|
+
}), it = /* @__PURE__ */ j(In, [["__scopeId", "data-v-17067a4b"]]), Se = /* @__PURE__ */ Symbol("ModalContext");
|
|
2102
|
+
let Ee = 0, et = 0, De = null;
|
|
2103
|
+
const Oe = S({
|
|
2081
2104
|
name: "Modal",
|
|
2082
2105
|
props: {
|
|
2083
2106
|
motion: {
|
|
@@ -2114,8 +2137,8 @@ const De = S({
|
|
|
2114
2137
|
setup(e, { slots: n }) {
|
|
2115
2138
|
const t = se(Se);
|
|
2116
2139
|
if (!t) throw new Error("ModalContent components must be used inside <Modal>");
|
|
2117
|
-
const a = p(null), s = ++
|
|
2118
|
-
d.key === "Escape" && s ===
|
|
2140
|
+
const a = p(null), s = ++Ee, r = (d) => {
|
|
2141
|
+
d.key === "Escape" && s === Ee && t.close();
|
|
2119
2142
|
};
|
|
2120
2143
|
let i = null;
|
|
2121
2144
|
const o = (d) => {
|
|
@@ -2148,13 +2171,13 @@ const De = S({
|
|
|
2148
2171
|
name: `modal-${t.motion.value}`,
|
|
2149
2172
|
appear: !0,
|
|
2150
2173
|
onEnter: () => {
|
|
2151
|
-
|
|
2174
|
+
De = document.activeElement, l();
|
|
2152
2175
|
},
|
|
2153
2176
|
onAfterEnter: () => {
|
|
2154
2177
|
a.value && (o(a.value), document.addEventListener("keydown", r));
|
|
2155
2178
|
},
|
|
2156
2179
|
onAfterLeave: () => {
|
|
2157
|
-
|
|
2180
|
+
Ee--, document.removeEventListener("keydown", r), i?.(), c(), De?.focus(), De = null;
|
|
2158
2181
|
}
|
|
2159
2182
|
},
|
|
2160
2183
|
{
|
|
@@ -2221,9 +2244,9 @@ const De = S({
|
|
|
2221
2244
|
);
|
|
2222
2245
|
}
|
|
2223
2246
|
});
|
|
2224
|
-
Object.assign(
|
|
2247
|
+
Object.assign(Oe, {
|
|
2225
2248
|
install(e) {
|
|
2226
|
-
e.component("Modal",
|
|
2249
|
+
e.component("Modal", Oe), e.component("ModalBody", vt), e.component("ModalTitle", dt), e.component("ModalClose", ft), e.component("ModalHeader", ct), e.component("ModalContent", ut);
|
|
2227
2250
|
}
|
|
2228
2251
|
});
|
|
2229
2252
|
const Hn = /* @__PURE__ */ S({
|
|
@@ -2251,28 +2274,28 @@ const Hn = /* @__PURE__ */ S({
|
|
|
2251
2274
|
"aria-label": e.ariaLabel,
|
|
2252
2275
|
transform: e.transform
|
|
2253
2276
|
}, null, 8, ["images", "aria-label", "transform"]),
|
|
2254
|
-
P(
|
|
2277
|
+
P(I(Oe), {
|
|
2255
2278
|
open: t.value,
|
|
2256
2279
|
"onUpdate:open": i[2] || (i[2] = (o) => t.value = o),
|
|
2257
2280
|
motion: "fade",
|
|
2258
2281
|
size: "xl"
|
|
2259
2282
|
}, {
|
|
2260
2283
|
default: G(() => [
|
|
2261
|
-
P(
|
|
2284
|
+
P(I(ut), null, {
|
|
2262
2285
|
default: G(() => [
|
|
2263
|
-
P(
|
|
2286
|
+
P(I(ct), null, {
|
|
2264
2287
|
default: G(() => [
|
|
2265
|
-
P(
|
|
2288
|
+
P(I(dt), null, {
|
|
2266
2289
|
default: G(() => [...i[3] || (i[3] = [
|
|
2267
2290
|
pe("Image Gallery", -1)
|
|
2268
2291
|
])]),
|
|
2269
2292
|
_: 1
|
|
2270
2293
|
}),
|
|
2271
|
-
P(
|
|
2294
|
+
P(I(ft))
|
|
2272
2295
|
]),
|
|
2273
2296
|
_: 1
|
|
2274
2297
|
}),
|
|
2275
|
-
P(
|
|
2298
|
+
P(I(vt), null, {
|
|
2276
2299
|
default: G(() => [
|
|
2277
2300
|
P(rt, {
|
|
2278
2301
|
modelValue: n.value,
|
|
@@ -2321,7 +2344,7 @@ const Hn = /* @__PURE__ */ S({
|
|
|
2321
2344
|
]))), 128))
|
|
2322
2345
|
]));
|
|
2323
2346
|
}
|
|
2324
|
-
}), Rn = /* @__PURE__ */
|
|
2347
|
+
}), Rn = /* @__PURE__ */ j(_n, [["__scopeId", "data-v-afb75845"]]), Bn = {
|
|
2325
2348
|
class: "rs-image-gallery",
|
|
2326
2349
|
role: "region",
|
|
2327
2350
|
"aria-label": "Image gallery"
|
|
@@ -2390,7 +2413,7 @@ const Hn = /* @__PURE__ */ S({
|
|
|
2390
2413
|
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : K("", !0)
|
|
2391
2414
|
]));
|
|
2392
2415
|
}
|
|
2393
|
-
}), tt = /* @__PURE__ */
|
|
2416
|
+
}), tt = /* @__PURE__ */ j(Sn, [["__scopeId", "data-v-d6be1b96"]]);
|
|
2394
2417
|
tt.install = (e) => e.component("ImageGallery", tt);
|
|
2395
2418
|
const Tn = ["aria-busy"], An = {
|
|
2396
2419
|
key: 0,
|
|
@@ -2417,7 +2440,7 @@ const Tn = ["aria-busy"], An = {
|
|
|
2417
2440
|
(o, l) => {
|
|
2418
2441
|
o !== l && (s.value = o || "", i());
|
|
2419
2442
|
}
|
|
2420
|
-
), te(r),
|
|
2443
|
+
), te(r), ye(i), (o, l) => (v(), m("div", {
|
|
2421
2444
|
class: "spinner-container",
|
|
2422
2445
|
role: "status",
|
|
2423
2446
|
"aria-live": "polite",
|
|
@@ -2431,7 +2454,7 @@ const Tn = ["aria-busy"], An = {
|
|
|
2431
2454
|
y("span", Zn, U(e.message || "Loading"), 1)
|
|
2432
2455
|
], 8, Tn));
|
|
2433
2456
|
}
|
|
2434
|
-
}), mt = /* @__PURE__ */
|
|
2457
|
+
}), mt = /* @__PURE__ */ j(En, [["__scopeId", "data-v-e61a1cf5"]]), Dn = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], On = {
|
|
2435
2458
|
class: "checkbox-control",
|
|
2436
2459
|
"aria-hidden": "true"
|
|
2437
2460
|
}, qn = {
|
|
@@ -2483,8 +2506,8 @@ const Tn = ["aria-busy"], An = {
|
|
|
2483
2506
|
required: d.value,
|
|
2484
2507
|
checked: a.value === !0,
|
|
2485
2508
|
disabled: e.disabled,
|
|
2486
|
-
"aria-invalid":
|
|
2487
|
-
"aria-disabled":
|
|
2509
|
+
"aria-invalid": I(l),
|
|
2510
|
+
"aria-disabled": I(c),
|
|
2488
2511
|
"aria-checked": g.value,
|
|
2489
2512
|
onClick: u[0] || (u[0] = (C) => e.triState ? $(C) : void 0),
|
|
2490
2513
|
onChange: u[1] || (u[1] = (C) => e.triState ? void 0 : $(C)),
|
|
@@ -2505,11 +2528,11 @@ const Tn = ["aria-busy"], An = {
|
|
|
2505
2528
|
])])) : K("", !0)
|
|
2506
2529
|
]),
|
|
2507
2530
|
y("span", zn, [
|
|
2508
|
-
|
|
2531
|
+
W(M.$slots, "default", {}, void 0, !0)
|
|
2509
2532
|
])
|
|
2510
2533
|
], 2));
|
|
2511
2534
|
}
|
|
2512
|
-
}), Bl = /* @__PURE__ */
|
|
2535
|
+
}), Bl = /* @__PURE__ */ j(Fn, [["__scopeId", "data-v-c5dd6f08"]]), Kn = ["for"], Pn = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Un = /* @__PURE__ */ S({
|
|
2513
2536
|
__name: "Textarea",
|
|
2514
2537
|
props: /* @__PURE__ */ ne({
|
|
2515
2538
|
id: {},
|
|
@@ -2525,15 +2548,15 @@ const Tn = ["aria-busy"], An = {
|
|
|
2525
2548
|
}),
|
|
2526
2549
|
emits: /* @__PURE__ */ ne(["focus", "blur"], ["update:modelValue"]),
|
|
2527
2550
|
setup(e, { emit: n }) {
|
|
2528
|
-
const t = me(e, "modelValue"), a =
|
|
2529
|
-
|
|
2551
|
+
const t = me(e, "modelValue"), a = Ne(), s = ze(), r = n, i = e, o = p(null), l = p(null), c = ie(), d = `${c}-error`, g = `${c}-hint`, $ = Be(a).value, M = Ve(i).value, u = L(() => $ ? `${g} ${c}-required-hint` : g), C = Fe(i, s, d, u.value).value, H = (k) => {
|
|
2552
|
+
we(o.value, l.value);
|
|
2530
2553
|
const D = k.target;
|
|
2531
2554
|
t.value = i.type === "number" ? Number(D.value) : D.value;
|
|
2532
2555
|
}, R = L(() => i.invalid === !0 && i.errorMessage ? d : void 0);
|
|
2533
2556
|
return te(() => {
|
|
2534
|
-
|
|
2557
|
+
we(o.value, l.value);
|
|
2535
2558
|
}), (k, D) => (v(), m("div", {
|
|
2536
|
-
class: re(["textarea-box", { required:
|
|
2559
|
+
class: re(["textarea-box", { required: I($), error: I(M) }]),
|
|
2537
2560
|
ref_key: "inputBoxRef",
|
|
2538
2561
|
ref: l
|
|
2539
2562
|
}, [
|
|
@@ -2541,37 +2564,37 @@ const Tn = ["aria-busy"], An = {
|
|
|
2541
2564
|
for: e.id,
|
|
2542
2565
|
class: "label"
|
|
2543
2566
|
}, U(e.label), 9, Kn),
|
|
2544
|
-
y("textarea",
|
|
2567
|
+
y("textarea", he({ id: e.id }, k.$attrs, {
|
|
2545
2568
|
class: "custom-textarea",
|
|
2546
|
-
onFocus: D[0] || (D[0] = (Z) =>
|
|
2547
|
-
onBlur: D[1] || (D[1] = (Z) =>
|
|
2548
|
-
onInput:
|
|
2569
|
+
onFocus: D[0] || (D[0] = (Z) => I(Ke)(Z, l.value, r)),
|
|
2570
|
+
onBlur: D[1] || (D[1] = (Z) => I(Pe)(Z, o.value, l.value, r)),
|
|
2571
|
+
onInput: H,
|
|
2549
2572
|
value: t.value,
|
|
2550
|
-
required:
|
|
2551
|
-
"aria-invalid":
|
|
2573
|
+
required: I($),
|
|
2574
|
+
"aria-invalid": I(M),
|
|
2552
2575
|
"aria-errormessage": R.value,
|
|
2553
|
-
"aria-describedby":
|
|
2576
|
+
"aria-describedby": I(C),
|
|
2554
2577
|
ref_key: "textareaRef",
|
|
2555
2578
|
ref: o
|
|
2556
2579
|
}), " ", 16, Pn),
|
|
2557
|
-
P(
|
|
2580
|
+
P(Ue, { hintId: g }, {
|
|
2558
2581
|
default: G(() => [
|
|
2559
|
-
|
|
2582
|
+
W(k.$slots, "hint", {}, void 0, !0)
|
|
2560
2583
|
]),
|
|
2561
2584
|
_: 3
|
|
2562
2585
|
}),
|
|
2563
|
-
P(
|
|
2564
|
-
baseId:
|
|
2565
|
-
isRequired:
|
|
2586
|
+
P(We, {
|
|
2587
|
+
baseId: I(c),
|
|
2588
|
+
isRequired: I($)
|
|
2566
2589
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2567
2590
|
P(je, {
|
|
2568
2591
|
errorId: d,
|
|
2569
|
-
invalid:
|
|
2592
|
+
invalid: I(M),
|
|
2570
2593
|
errorMessage: e.errorMessage
|
|
2571
2594
|
}, null, 8, ["invalid", "errorMessage"])
|
|
2572
2595
|
], 2));
|
|
2573
2596
|
}
|
|
2574
|
-
}), Sl = /* @__PURE__ */
|
|
2597
|
+
}), Sl = /* @__PURE__ */ j(Un, [["__scopeId", "data-v-d5062a27"]]), Wn = { key: 0 }, jn = { key: 1 }, Xn = /* @__PURE__ */ S({
|
|
2575
2598
|
__name: "Highlight",
|
|
2576
2599
|
props: {
|
|
2577
2600
|
text: {},
|
|
@@ -2585,10 +2608,10 @@ const Tn = ["aria-busy"], An = {
|
|
|
2585
2608
|
return t.replace(r, (l, c) => (c > o && i.push({ text: t.slice(o, c), match: !1 }), i.push({ text: l, match: !0 }), o = c + l.length, l)), o < t.length && i.push({ text: t.slice(o), match: !1 }), i;
|
|
2586
2609
|
};
|
|
2587
2610
|
return (t, a) => (v(!0), m(ae, null, de(n(e.text, e.query), (s, r) => (v(), m(ae, { key: r }, [
|
|
2588
|
-
s.match ? (v(), m("mark",
|
|
2611
|
+
s.match ? (v(), m("mark", Wn, U(s.text), 1)) : (v(), m("span", jn, U(s.text), 1))
|
|
2589
2612
|
], 64))), 128));
|
|
2590
2613
|
}
|
|
2591
|
-
}), Gn = /* @__PURE__ */
|
|
2614
|
+
}), Gn = /* @__PURE__ */ j(Xn, [["__scopeId", "data-v-edfa70b3"]]);
|
|
2592
2615
|
process.env.NODE_ENV;
|
|
2593
2616
|
process.env.NODE_ENV;
|
|
2594
2617
|
process.env.NODE_ENV;
|
|
@@ -2621,7 +2644,7 @@ const Yn = {
|
|
|
2621
2644
|
key: c.to ?? c.href ?? `${c.label}-${d}`,
|
|
2622
2645
|
class: "ui-breadcrumb__item"
|
|
2623
2646
|
}, [
|
|
2624
|
-
(v(), J(Ie(s(c, d)),
|
|
2647
|
+
(v(), J(Ie(s(c, d)), he({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(c, d), {
|
|
2625
2648
|
"aria-posinset": d + 1,
|
|
2626
2649
|
"aria-setsize": e.items.length,
|
|
2627
2650
|
"aria-current": a(d) ? "page" : void 0,
|
|
@@ -2633,7 +2656,7 @@ const Yn = {
|
|
|
2633
2656
|
_: 2
|
|
2634
2657
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
2635
2658
|
a(d) ? K("", !0) : (v(), m("span", eo, [
|
|
2636
|
-
|
|
2659
|
+
W(o.$slots, "separator", {}, () => [
|
|
2637
2660
|
pe(U(e.separator), 1)
|
|
2638
2661
|
], !0)
|
|
2639
2662
|
]))
|
|
@@ -2641,7 +2664,7 @@ const Yn = {
|
|
|
2641
2664
|
])
|
|
2642
2665
|
]));
|
|
2643
2666
|
}
|
|
2644
|
-
}), Tl = /* @__PURE__ */
|
|
2667
|
+
}), Tl = /* @__PURE__ */ j(to, [["__scopeId", "data-v-baed1592"]]), ao = ["aria-invalid", "aria-required", "disabled"], no = { class: "sr-only" }, oo = ["name", "value", "disabled", "required"], lo = {
|
|
2645
2668
|
key: 0,
|
|
2646
2669
|
class: "radio-control",
|
|
2647
2670
|
"aria-hidden": "true"
|
|
@@ -2691,7 +2714,7 @@ const Yn = {
|
|
|
2691
2714
|
], 2))), 128))
|
|
2692
2715
|
], 10, ao));
|
|
2693
2716
|
}
|
|
2694
|
-
}), Al = /* @__PURE__ */
|
|
2717
|
+
}), Al = /* @__PURE__ */ j(ro, [["__scopeId", "data-v-8f76f7f0"]]), io = ["for"], uo = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], co = ["id", "aria-disabled", "aria-selected", "onClick"], vo = {
|
|
2695
2718
|
class: "option-value",
|
|
2696
2719
|
"aria-hidden": "true"
|
|
2697
2720
|
}, fo = { class: "option-value sr-only" }, mo = {
|
|
@@ -2732,12 +2755,12 @@ const Yn = {
|
|
|
2732
2755
|
}),
|
|
2733
2756
|
emits: /* @__PURE__ */ ne(["change", "select", "focus", "blur"], ["update:modelValue"]),
|
|
2734
2757
|
setup(e, { emit: n }) {
|
|
2735
|
-
const t = e, a = n, s = me(e, "modelValue"), r = p(null), i = p(null), o = p(""), l = p(!1), c = p([]), d = p(null), g = p(null), $ = L(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, C = L(() => d.value !== null ? `${u}-option-${d.value}` : void 0),
|
|
2758
|
+
const t = e, a = n, s = me(e, "modelValue"), r = p(null), i = p(null), o = p(""), l = p(!1), c = p([]), d = p(null), g = p(null), $ = L(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, C = L(() => d.value !== null ? `${u}-option-${d.value}` : void 0), H = L(() => l.value && C.value ? C.value : void 0), R = L(() => c.value.length > 0), k = L(() => {
|
|
2736
2759
|
if (!t.filterable) return t.options;
|
|
2737
2760
|
const x = o.value.toLowerCase();
|
|
2738
2761
|
return t.options.filter((O) => t.getValue(O).toLowerCase().includes(x));
|
|
2739
2762
|
}), D = Ve(t).value, Z = st(t).value, f = Be(t).value;
|
|
2740
|
-
Y(o, () =>
|
|
2763
|
+
Y(o, () => we(r.value, i.value)), Y(
|
|
2741
2764
|
() => $.value,
|
|
2742
2765
|
(x) => {
|
|
2743
2766
|
if (x)
|
|
@@ -2766,10 +2789,10 @@ const Yn = {
|
|
|
2766
2789
|
}
|
|
2767
2790
|
);
|
|
2768
2791
|
const w = (x) => {
|
|
2769
|
-
o.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0),
|
|
2792
|
+
o.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), Ke(x, i.value, a);
|
|
2770
2793
|
}, _ = (x) => {
|
|
2771
2794
|
const O = x.relatedTarget;
|
|
2772
|
-
i.value?.contains(O) || (l.value = !1, s.value ? h() : o.value = "",
|
|
2795
|
+
i.value?.contains(O) || (l.value = !1, s.value ? h() : o.value = "", Pe(x, r.value, i.value, a));
|
|
2773
2796
|
}, N = (x, O) => {
|
|
2774
2797
|
const B = i.value;
|
|
2775
2798
|
if (!B || t.isDisabled(x)) return;
|
|
@@ -2806,11 +2829,11 @@ const Yn = {
|
|
|
2806
2829
|
while (O >= 0 && O < k.value.length && t.isDisabled(k.value[O]));
|
|
2807
2830
|
O >= 0 && O < k.value.length && (d.value = O);
|
|
2808
2831
|
}, b = () => {
|
|
2809
|
-
o.value.length === 0 && (s.value = ""),
|
|
2832
|
+
o.value.length === 0 && (s.value = ""), we(r.value, i.value), o.value.length >= t.minChars ? (a("change", o.value), l.value = !0) : l.value = !1;
|
|
2810
2833
|
}, h = () => {
|
|
2811
2834
|
if (s.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
2812
2835
|
const x = t.options.findIndex((O) => t.getKey(O) === s.value);
|
|
2813
|
-
x > -1 && (d.value = x, g.value = x, o.value = t.getValue(t.options[x]),
|
|
2836
|
+
x > -1 && (d.value = x, g.value = x, o.value = t.getValue(t.options[x]), we(r.value, i.value));
|
|
2814
2837
|
}, E = () => {
|
|
2815
2838
|
o.value = "", s.value = "";
|
|
2816
2839
|
}, X = (x) => {
|
|
@@ -2818,7 +2841,7 @@ const Yn = {
|
|
|
2818
2841
|
x,
|
|
2819
2842
|
...c.value.filter((O) => O !== x)
|
|
2820
2843
|
].slice(0, t.suggestionsLimit), localStorage.setItem($.value, JSON.stringify(c.value)));
|
|
2821
|
-
},
|
|
2844
|
+
}, V = (x) => {
|
|
2822
2845
|
o.value = x, b();
|
|
2823
2846
|
}, A = () => {
|
|
2824
2847
|
const x = Q();
|
|
@@ -2828,9 +2851,9 @@ const Yn = {
|
|
|
2828
2851
|
return -1;
|
|
2829
2852
|
};
|
|
2830
2853
|
return te(() => {
|
|
2831
|
-
h(),
|
|
2854
|
+
h(), we(r.value, i.value);
|
|
2832
2855
|
}), (x, O) => (v(), m("div", {
|
|
2833
|
-
class: re(["autocomplete", { required:
|
|
2856
|
+
class: re(["autocomplete", { required: I(f), error: I(D), "has-icon": Object.keys(x.$slots).includes("icon") }]),
|
|
2834
2857
|
ref_key: "autocompleteRef",
|
|
2835
2858
|
ref: i
|
|
2836
2859
|
}, [
|
|
@@ -2838,7 +2861,7 @@ const Yn = {
|
|
|
2838
2861
|
for: e.id,
|
|
2839
2862
|
class: "label"
|
|
2840
2863
|
}, U(e.label), 9, io),
|
|
2841
|
-
He(y("input",
|
|
2864
|
+
He(y("input", he({
|
|
2842
2865
|
id: e.id,
|
|
2843
2866
|
type: e.type
|
|
2844
2867
|
}, x.$attrs, {
|
|
@@ -2848,10 +2871,10 @@ const Yn = {
|
|
|
2848
2871
|
"aria-autocomplete": "list",
|
|
2849
2872
|
"aria-expanded": l.value,
|
|
2850
2873
|
"aria-controls": u,
|
|
2851
|
-
"aria-activedescendant":
|
|
2852
|
-
"aria-required":
|
|
2853
|
-
"aria-invalid":
|
|
2854
|
-
disabled:
|
|
2874
|
+
"aria-activedescendant": H.value,
|
|
2875
|
+
"aria-required": I(f),
|
|
2876
|
+
"aria-invalid": I(D),
|
|
2877
|
+
disabled: I(Z),
|
|
2855
2878
|
"onUpdate:modelValue": O[0] || (O[0] = (B) => o.value = B),
|
|
2856
2879
|
onFocus: w,
|
|
2857
2880
|
onBlur: _,
|
|
@@ -2883,7 +2906,7 @@ const Yn = {
|
|
|
2883
2906
|
name: "search",
|
|
2884
2907
|
size: 22
|
|
2885
2908
|
})),
|
|
2886
|
-
|
|
2909
|
+
W(x.$slots, "option", {
|
|
2887
2910
|
option: B,
|
|
2888
2911
|
value: e.getValue(B),
|
|
2889
2912
|
query: o.value,
|
|
@@ -2914,19 +2937,19 @@ const Yn = {
|
|
|
2914
2937
|
role: "presentation",
|
|
2915
2938
|
"aria-hidden": "true",
|
|
2916
2939
|
class: "option recent-item",
|
|
2917
|
-
onClick: (q) =>
|
|
2940
|
+
onClick: (q) => V(B)
|
|
2918
2941
|
}, [
|
|
2919
2942
|
P(ue, { name: "clock" }),
|
|
2920
2943
|
y("div", go, U(B), 1)
|
|
2921
2944
|
], 8, bo))), 128))
|
|
2922
2945
|
], 512), [
|
|
2923
|
-
[
|
|
2946
|
+
[qe, l.value]
|
|
2924
2947
|
])
|
|
2925
2948
|
]),
|
|
2926
2949
|
_: 3
|
|
2927
2950
|
}),
|
|
2928
2951
|
x.$slots.icon ? (v(), m("span", Co, [
|
|
2929
|
-
|
|
2952
|
+
W(x.$slots, "icon", {}, void 0, !0)
|
|
2930
2953
|
])) : K("", !0),
|
|
2931
2954
|
o.value.length > 0 ? (v(), J(be, {
|
|
2932
2955
|
key: 1,
|
|
@@ -2950,7 +2973,7 @@ const Yn = {
|
|
|
2950
2973
|
})) : K("", !0)
|
|
2951
2974
|
], 2));
|
|
2952
2975
|
}
|
|
2953
|
-
}), Zl = /* @__PURE__ */
|
|
2976
|
+
}), Zl = /* @__PURE__ */ j(ho, [["__scopeId", "data-v-7fffa12c"]]), yo = 5, ce = ot({
|
|
2954
2977
|
toasts: []
|
|
2955
2978
|
});
|
|
2956
2979
|
let ko = 0;
|
|
@@ -3027,7 +3050,7 @@ const Le = (e, n = "info") => {
|
|
|
3027
3050
|
"aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
|
|
3028
3051
|
}, [
|
|
3029
3052
|
y("div", Mo, [
|
|
3030
|
-
|
|
3053
|
+
W(d.$slots, "default", {}, void 0, !0),
|
|
3031
3054
|
P(be, {
|
|
3032
3055
|
type: "button",
|
|
3033
3056
|
onClick: c,
|
|
@@ -3051,14 +3074,14 @@ const Le = (e, n = "info") => {
|
|
|
3051
3074
|
])) : K("", !0)
|
|
3052
3075
|
], 8, Lo));
|
|
3053
3076
|
}
|
|
3054
|
-
}), Ho = /* @__PURE__ */
|
|
3077
|
+
}), Ho = /* @__PURE__ */ j(Io, [["__scopeId", "data-v-f9e75b9d"]]), Vo = { class: "toast-viewport" }, _o = { class: "toast-message" }, Ro = { key: 0 }, Bo = ["id"], So = /* @__PURE__ */ S({
|
|
3055
3078
|
__name: "ToastViewport",
|
|
3056
3079
|
setup(e) {
|
|
3057
3080
|
return (n, t) => (v(), J(Re, { to: "body" }, [
|
|
3058
3081
|
y("div", Vo, [
|
|
3059
3082
|
P(Ct, { name: "toast-stack" }, {
|
|
3060
3083
|
default: G(() => [
|
|
3061
|
-
(v(!0), m(ae, null, de(
|
|
3084
|
+
(v(!0), m(ae, null, de(I(ce).toasts, (a) => (v(), J(Ho, {
|
|
3062
3085
|
key: a.id,
|
|
3063
3086
|
id: a.id,
|
|
3064
3087
|
duration: a.duration,
|
|
@@ -3086,7 +3109,7 @@ const Le = (e, n = "info") => {
|
|
|
3086
3109
|
])
|
|
3087
3110
|
]));
|
|
3088
3111
|
}
|
|
3089
|
-
}), at = /* @__PURE__ */
|
|
3112
|
+
}), at = /* @__PURE__ */ j(So, [["__scopeId", "data-v-afe47f2a"]]);
|
|
3090
3113
|
let nt = !1;
|
|
3091
3114
|
const Dl = {
|
|
3092
3115
|
install(e, n = {}) {
|
|
@@ -3121,12 +3144,12 @@ const Dl = {
|
|
|
3121
3144
|
"aria-describedby": r.value
|
|
3122
3145
|
}, {
|
|
3123
3146
|
default: G(() => [
|
|
3124
|
-
|
|
3147
|
+
W(l.$slots, "default", {}, void 0, !0)
|
|
3125
3148
|
]),
|
|
3126
3149
|
_: 3
|
|
3127
3150
|
}, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
|
|
3128
3151
|
}
|
|
3129
|
-
}), Ol = /* @__PURE__ */
|
|
3152
|
+
}), Ol = /* @__PURE__ */ j(To, [["__scopeId", "data-v-e892a9f2"]]), Ao = /* @__PURE__ */ S({
|
|
3130
3153
|
__name: "CardHeader",
|
|
3131
3154
|
props: {
|
|
3132
3155
|
as: { default: "div" }
|
|
@@ -3138,12 +3161,12 @@ const Dl = {
|
|
|
3138
3161
|
class: "rs-card-header"
|
|
3139
3162
|
}, {
|
|
3140
3163
|
default: G(() => [
|
|
3141
|
-
|
|
3164
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
3142
3165
|
]),
|
|
3143
3166
|
_: 3
|
|
3144
3167
|
}));
|
|
3145
3168
|
}
|
|
3146
|
-
}), ql = /* @__PURE__ */
|
|
3169
|
+
}), ql = /* @__PURE__ */ j(Ao, [["__scopeId", "data-v-570794b4"]]), Zo = /* @__PURE__ */ S({
|
|
3147
3170
|
__name: "CardBody",
|
|
3148
3171
|
setup(e) {
|
|
3149
3172
|
const n = se("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
|
|
@@ -3151,10 +3174,10 @@ const Dl = {
|
|
|
3151
3174
|
id: t,
|
|
3152
3175
|
class: "rs-card-body"
|
|
3153
3176
|
}, [
|
|
3154
|
-
|
|
3177
|
+
W(a.$slots, "default", {}, void 0, !0)
|
|
3155
3178
|
]));
|
|
3156
3179
|
}
|
|
3157
|
-
}), Nl = /* @__PURE__ */
|
|
3180
|
+
}), Nl = /* @__PURE__ */ j(Zo, [["__scopeId", "data-v-f0380fda"]]), Eo = /* @__PURE__ */ S({
|
|
3158
3181
|
__name: "CardFooter",
|
|
3159
3182
|
props: {
|
|
3160
3183
|
as: { default: "div" }
|
|
@@ -3162,12 +3185,12 @@ const Dl = {
|
|
|
3162
3185
|
setup(e) {
|
|
3163
3186
|
return (n, t) => (v(), J(Ie(e.as), { class: "rs-card-footer" }, {
|
|
3164
3187
|
default: G(() => [
|
|
3165
|
-
|
|
3188
|
+
W(n.$slots, "default", {}, void 0, !0)
|
|
3166
3189
|
]),
|
|
3167
3190
|
_: 3
|
|
3168
3191
|
}));
|
|
3169
3192
|
}
|
|
3170
|
-
}), zl = /* @__PURE__ */
|
|
3193
|
+
}), zl = /* @__PURE__ */ j(Eo, [["__scopeId", "data-v-9b223473"]]), Do = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], Oo = {
|
|
3171
3194
|
key: 2,
|
|
3172
3195
|
class: "icon",
|
|
3173
3196
|
"aria-hidden": "true",
|
|
@@ -3194,7 +3217,7 @@ const Dl = {
|
|
|
3194
3217
|
setup(e) {
|
|
3195
3218
|
const n = e, t = se("StepsContext");
|
|
3196
3219
|
if (!t) throw new Error("Step component must be used inside Steps.");
|
|
3197
|
-
const a =
|
|
3220
|
+
const a = ze(), s = p(null), r = p(null), i = L(() => t.orientation ?? "horizontal");
|
|
3198
3221
|
let o = null, l = null;
|
|
3199
3222
|
const c = se("StepIndex");
|
|
3200
3223
|
if (c == null) throw new Error("StepIndex component must be used inside Steps.");
|
|
@@ -3220,7 +3243,7 @@ const Dl = {
|
|
|
3220
3243
|
default:
|
|
3221
3244
|
return "default";
|
|
3222
3245
|
}
|
|
3223
|
-
}), C = L(() => n.size ?? t.size ?? "sm"),
|
|
3246
|
+
}), C = L(() => n.size ?? t.size ?? "sm"), H = L(() => {
|
|
3224
3247
|
switch (d.value) {
|
|
3225
3248
|
case "completed":
|
|
3226
3249
|
return "Completed";
|
|
@@ -3277,7 +3300,7 @@ const Dl = {
|
|
|
3277
3300
|
}), l = new ResizeObserver(() => {
|
|
3278
3301
|
R();
|
|
3279
3302
|
}), l.observe(s.value), l.observe(r.value), t.stepsRef.value && l.observe(t.stepsRef.value), t.registerStep(s.value));
|
|
3280
|
-
}),
|
|
3303
|
+
}), ye(() => {
|
|
3281
3304
|
l?.disconnect(), t.unregisterStep(s.value), o != null && cancelAnimationFrame(o);
|
|
3282
3305
|
}), (Z, f) => (v(), m("li", {
|
|
3283
3306
|
ref_key: "stepRef",
|
|
@@ -3288,12 +3311,12 @@ const Dl = {
|
|
|
3288
3311
|
"data-orientation": i.value,
|
|
3289
3312
|
"data-active": d.value === "active",
|
|
3290
3313
|
"data-completed": d.value === "completed",
|
|
3291
|
-
"aria-labelledby": `step-title-${
|
|
3314
|
+
"aria-labelledby": `step-title-${I(c)}`,
|
|
3292
3315
|
tabindex: d.value === "active" ? 0 : -1,
|
|
3293
3316
|
"aria-current": d.value === "active" ? "step" : void 0,
|
|
3294
|
-
"aria-posinset":
|
|
3295
|
-
"aria-setsize":
|
|
3296
|
-
"aria-describedby": `step-status-${
|
|
3317
|
+
"aria-posinset": I(c) + 1,
|
|
3318
|
+
"aria-setsize": I(t).stepsCount.value,
|
|
3319
|
+
"aria-describedby": `step-status-${I(c)}`,
|
|
3297
3320
|
onKeydown: D
|
|
3298
3321
|
}, [
|
|
3299
3322
|
y("span", {
|
|
@@ -3302,7 +3325,7 @@ const Dl = {
|
|
|
3302
3325
|
class: "indicator",
|
|
3303
3326
|
"aria-hidden": "true"
|
|
3304
3327
|
}, [
|
|
3305
|
-
Z.$slots.icon ?
|
|
3328
|
+
Z.$slots.icon ? W(Z.$slots, "icon", {
|
|
3306
3329
|
key: 0,
|
|
3307
3330
|
status: d.value
|
|
3308
3331
|
}, void 0, !0) : $.value ? (v(), J(ue, {
|
|
@@ -3323,12 +3346,12 @@ const Dl = {
|
|
|
3323
3346
|
])])) : d.value === "active" ? (v(), m("span", No)) : K("", !0)
|
|
3324
3347
|
], 512),
|
|
3325
3348
|
y("span", {
|
|
3326
|
-
id: `step-status-${
|
|
3349
|
+
id: `step-status-${I(c)}`,
|
|
3327
3350
|
class: "sr-only"
|
|
3328
3351
|
}, U(M.value), 9, zo),
|
|
3329
3352
|
y("div", Fo, [
|
|
3330
3353
|
y("span", {
|
|
3331
|
-
id: `step-title-${
|
|
3354
|
+
id: `step-title-${I(c)}`,
|
|
3332
3355
|
class: "title"
|
|
3333
3356
|
}, U(e.title), 9, Ko),
|
|
3334
3357
|
P(en, {
|
|
@@ -3336,25 +3359,25 @@ const Dl = {
|
|
|
3336
3359
|
size: "sm"
|
|
3337
3360
|
}, {
|
|
3338
3361
|
default: G(() => [
|
|
3339
|
-
pe(U(
|
|
3362
|
+
pe(U(H.value), 1)
|
|
3340
3363
|
]),
|
|
3341
3364
|
_: 1
|
|
3342
3365
|
}, 8, ["variant"]),
|
|
3343
3366
|
Z.$slots.default ? (v(), m("span", Po, [
|
|
3344
|
-
|
|
3367
|
+
W(Z.$slots, "default", {}, void 0, !0)
|
|
3345
3368
|
])) : K("", !0)
|
|
3346
3369
|
])
|
|
3347
3370
|
], 42, Do));
|
|
3348
3371
|
}
|
|
3349
|
-
}), Fl = /* @__PURE__ */
|
|
3372
|
+
}), Fl = /* @__PURE__ */ j(Uo, [["__scopeId", "data-v-5c2d8caa"]]), Wo = /* @__PURE__ */ S({
|
|
3350
3373
|
__name: "StepsItem",
|
|
3351
3374
|
props: {
|
|
3352
3375
|
index: {}
|
|
3353
3376
|
},
|
|
3354
3377
|
setup(e) {
|
|
3355
|
-
return Ce("StepIndex", e.index), (t, a) =>
|
|
3378
|
+
return Ce("StepIndex", e.index), (t, a) => W(t.$slots, "default");
|
|
3356
3379
|
}
|
|
3357
|
-
}),
|
|
3380
|
+
}), jo = ["data-size", "data-orientation"], Xo = ["data-error", "data-completed"], Go = {
|
|
3358
3381
|
"aria-live": "polite",
|
|
3359
3382
|
"aria-atomic": "true",
|
|
3360
3383
|
class: "sr-only"
|
|
@@ -3373,7 +3396,7 @@ const Dl = {
|
|
|
3373
3396
|
}),
|
|
3374
3397
|
emits: ["update:modelValue"],
|
|
3375
3398
|
setup(e) {
|
|
3376
|
-
const n = e, t = p(0), a =
|
|
3399
|
+
const n = e, t = p(0), a = ze(), s = me(e, "modelValue"), r = p([]), i = p(null), o = L(() => s.value ?? 0), l = `steps-description-${ie()}`, c = yt({}), d = ot({});
|
|
3377
3400
|
let g = null;
|
|
3378
3401
|
const $ = L(() => (a.default?.() ?? [])[o.value]?.props?.title ?? ""), M = L(() => Object.entries(d).filter(([, T]) => T !== "completed").length === 0), u = L(
|
|
3379
3402
|
() => Object.values(d).includes("error")
|
|
@@ -3395,7 +3418,7 @@ const Dl = {
|
|
|
3395
3418
|
left: `${b}px`,
|
|
3396
3419
|
width: `${h - b}px`
|
|
3397
3420
|
};
|
|
3398
|
-
}),
|
|
3421
|
+
}), H = L(() => {
|
|
3399
3422
|
const T = Object.values(c.value).sort((h, E) => h - E);
|
|
3400
3423
|
if (T.length < 2) return {};
|
|
3401
3424
|
const z = T[0], b = T[T.length - 1];
|
|
@@ -3431,7 +3454,7 @@ const Dl = {
|
|
|
3431
3454
|
return te(() => {
|
|
3432
3455
|
i.value && (g = new ResizeObserver(() => {
|
|
3433
3456
|
}), g.observe(i.value));
|
|
3434
|
-
}),
|
|
3457
|
+
}), ye(() => g?.disconnect()), Ce("StepsContext", {
|
|
3435
3458
|
current: L(() => s.value),
|
|
3436
3459
|
update: (T) => s.value = T,
|
|
3437
3460
|
stepsCount: t,
|
|
@@ -3467,7 +3490,7 @@ const Dl = {
|
|
|
3467
3490
|
y("div", {
|
|
3468
3491
|
class: "track",
|
|
3469
3492
|
"aria-hidden": "true",
|
|
3470
|
-
style: ge(
|
|
3493
|
+
style: ge(H.value)
|
|
3471
3494
|
}, [
|
|
3472
3495
|
y("div", {
|
|
3473
3496
|
class: "track-progress",
|
|
@@ -3476,7 +3499,7 @@ const Dl = {
|
|
|
3476
3499
|
style: ge(C.value)
|
|
3477
3500
|
}, null, 12, Xo)
|
|
3478
3501
|
], 4),
|
|
3479
|
-
(v(!0), m(ae, null, de(T.$slots.default?.(), (b, h) => (v(), J(
|
|
3502
|
+
(v(!0), m(ae, null, de(T.$slots.default?.(), (b, h) => (v(), J(Wo, {
|
|
3480
3503
|
key: h,
|
|
3481
3504
|
index: h
|
|
3482
3505
|
}, {
|
|
@@ -3485,11 +3508,11 @@ const Dl = {
|
|
|
3485
3508
|
]),
|
|
3486
3509
|
_: 2
|
|
3487
3510
|
}, 1032, ["index"]))), 128))
|
|
3488
|
-
], 8,
|
|
3511
|
+
], 8, jo),
|
|
3489
3512
|
y("div", Go, " Step " + U(o.value + 1) + " of " + U(t.value) + ": " + U($.value), 1)
|
|
3490
3513
|
], 64));
|
|
3491
3514
|
}
|
|
3492
|
-
}), Kl = /* @__PURE__ */
|
|
3515
|
+
}), Kl = /* @__PURE__ */ j(Jo, [["__scopeId", "data-v-8697173d"]]), Yo = ["data-align"], Qo = /* @__PURE__ */ S({
|
|
3493
3516
|
__name: "Timeline",
|
|
3494
3517
|
props: {
|
|
3495
3518
|
align: { default: "left" }
|
|
@@ -3500,10 +3523,10 @@ const Dl = {
|
|
|
3500
3523
|
class: "ui-timeline",
|
|
3501
3524
|
"data-align": e.align
|
|
3502
3525
|
}, [
|
|
3503
|
-
|
|
3526
|
+
W(t.$slots, "default", {}, void 0, !0)
|
|
3504
3527
|
], 8, Yo));
|
|
3505
3528
|
}
|
|
3506
|
-
}), Pl = /* @__PURE__ */
|
|
3529
|
+
}), Pl = /* @__PURE__ */ j(Qo, [["__scopeId", "data-v-d56deb2b"]]), el = ["data-align", "aria-labelledby", "aria-describedby"], tl = { class: "ui-timeline-content" }, al = ["datetime"], nl = { class: "ui-timeline-date--month" }, ol = { class: "ui-timeline-date--day" }, ll = { class: "ui-timeline-date--year" }, sl = ["data-direction"], rl = { class: "info" }, il = ["id"], ul = { class: "addons" }, dl = /* @__PURE__ */ S({
|
|
3507
3530
|
__name: "TimelineItem",
|
|
3508
3531
|
props: {
|
|
3509
3532
|
date: {},
|
|
@@ -3523,9 +3546,9 @@ const Dl = {
|
|
|
3523
3546
|
return (c, d) => (v(), m("li", {
|
|
3524
3547
|
tabindex: "0",
|
|
3525
3548
|
class: re([r.value, "ui-timeline-item"]),
|
|
3526
|
-
"data-align":
|
|
3527
|
-
"aria-labelledby": e.title ?
|
|
3528
|
-
"aria-describedby": e.description ?
|
|
3549
|
+
"data-align": I(t).align,
|
|
3550
|
+
"aria-labelledby": e.title ? I(a) : void 0,
|
|
3551
|
+
"aria-describedby": e.description ? I(s) : void 0
|
|
3529
3552
|
}, [
|
|
3530
3553
|
d[0] || (d[0] = y("div", {
|
|
3531
3554
|
class: "ui-timeline-marker",
|
|
@@ -3546,9 +3569,9 @@ const Dl = {
|
|
|
3546
3569
|
"data-direction": e.flexDirection
|
|
3547
3570
|
}, [
|
|
3548
3571
|
y("div", rl, [
|
|
3549
|
-
|
|
3572
|
+
W(c.$slots, "title", {}, () => [
|
|
3550
3573
|
(v(), J(Ie(e.titleAs ?? "h3"), {
|
|
3551
|
-
id:
|
|
3574
|
+
id: I(a),
|
|
3552
3575
|
class: "ui-timeline-title"
|
|
3553
3576
|
}, {
|
|
3554
3577
|
default: G(() => [
|
|
@@ -3557,22 +3580,22 @@ const Dl = {
|
|
|
3557
3580
|
_: 1
|
|
3558
3581
|
}, 8, ["id"]))
|
|
3559
3582
|
], !0),
|
|
3560
|
-
|
|
3583
|
+
W(c.$slots, "description", {}, () => [
|
|
3561
3584
|
e.description ? (v(), m("p", {
|
|
3562
3585
|
key: 0,
|
|
3563
|
-
id:
|
|
3586
|
+
id: I(s),
|
|
3564
3587
|
class: "ui-timeline-description"
|
|
3565
3588
|
}, U(e.description), 9, il)) : K("", !0)
|
|
3566
3589
|
], !0)
|
|
3567
3590
|
]),
|
|
3568
3591
|
y("div", ul, [
|
|
3569
|
-
|
|
3592
|
+
W(c.$slots, "default", {}, void 0, !0)
|
|
3570
3593
|
])
|
|
3571
3594
|
], 8, sl)
|
|
3572
3595
|
])
|
|
3573
3596
|
], 10, el));
|
|
3574
3597
|
}
|
|
3575
|
-
}), Ul = /* @__PURE__ */
|
|
3598
|
+
}), Ul = /* @__PURE__ */ j(dl, [["__scopeId", "data-v-10599410"]]), cl = ["aria-label", "aria-activedescendant"], vl = { class: "carousel-viewport" }, fl = {
|
|
3576
3599
|
class: "sr-only",
|
|
3577
3600
|
"aria-live": "polite"
|
|
3578
3601
|
}, ml = {
|
|
@@ -3601,14 +3624,14 @@ const Dl = {
|
|
|
3601
3624
|
}),
|
|
3602
3625
|
emits: ["update:modelValue"],
|
|
3603
3626
|
setup(e) {
|
|
3604
|
-
const n = me(e, "modelValue"), t = e, a = p(0), s = p(0), r = p(0), i = p(0), o = p(0), l = p(0), c = p(!1), d = p(!1), g = p(0), $ = p([]), M = p(1), u = p(n.value), C = p(null),
|
|
3627
|
+
const n = me(e, "modelValue"), t = e, a = p(0), s = p(0), r = p(0), i = p(0), o = p(0), l = p(0), c = p(!1), d = p(!1), g = p(0), $ = p([]), M = p(1), u = p(n.value), C = p(null), H = p(null);
|
|
3605
3628
|
let R = null, k = null;
|
|
3606
3629
|
Y(
|
|
3607
3630
|
() => n.value,
|
|
3608
3631
|
(B) => u.value = B
|
|
3609
3632
|
);
|
|
3610
3633
|
const D = L(() => $.value[u.value] ?? void 0), Z = L(() => Math.floor(u.value / M.value)), f = L(() => Math.ceil(X.value / M.value)), w = L(() => Math.max(0, X.value - M.value)), _ = L(() => {
|
|
3611
|
-
const B = u.value * (100 / M.value), q = d.value &&
|
|
3634
|
+
const B = u.value * (100 / M.value), q = d.value && H.value ? r.value / H.value.clientWidth * 100 : 0;
|
|
3612
3635
|
return {
|
|
3613
3636
|
transform: `translateX(calc(-${B}% + ${q}%))`,
|
|
3614
3637
|
transition: d.value ? "none" : "transform 300ms ease"
|
|
@@ -3626,7 +3649,7 @@ const Dl = {
|
|
|
3626
3649
|
u.value = q, n.value = q;
|
|
3627
3650
|
}, T = () => N(u.value + M.value), z = () => N(u.value - M.value), b = (B) => {
|
|
3628
3651
|
B.key === "ArrowRight" ? T() : B.key === "ArrowLeft" && z();
|
|
3629
|
-
}, h = (B) => ($.value.includes(B) || $.value.push(B), $.value.indexOf(B)), E = (B) => $.value = $.value.filter((q) => q !== B), X = L(() => $.value.length),
|
|
3652
|
+
}, h = (B) => ($.value.includes(B) || $.value.push(B), $.value.indexOf(B)), E = (B) => $.value = $.value.filter((q) => q !== B), X = L(() => $.value.length), V = () => {
|
|
3630
3653
|
!t.autoplay || R !== null || (R = window.setInterval(() => {
|
|
3631
3654
|
c.value || T();
|
|
3632
3655
|
}, t.autoplayDelay));
|
|
@@ -3635,33 +3658,33 @@ const Dl = {
|
|
|
3635
3658
|
}, Q = (B) => {
|
|
3636
3659
|
if (typeof t.itemsPerView == "number")
|
|
3637
3660
|
return t.itemsPerView;
|
|
3638
|
-
const q = Object.entries(t.itemsPerView).map(([ee,
|
|
3661
|
+
const q = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
|
|
3639
3662
|
let oe = q[0]?.[1] ?? 1;
|
|
3640
|
-
for (const [ee,
|
|
3663
|
+
for (const [ee, ke] of q) B >= ee && (oe = ke);
|
|
3641
3664
|
return oe;
|
|
3642
3665
|
}, fe = (B) => {
|
|
3643
|
-
B.button === 0 && (d.value = !0, s.value = B.clientX, a.value = B.clientX, l.value = B.clientX, r.value = 0, i.value = performance.now(), o.value = 0, g.value = u.value,
|
|
3666
|
+
B.button === 0 && (d.value = !0, s.value = B.clientX, a.value = B.clientX, l.value = B.clientX, r.value = 0, i.value = performance.now(), o.value = 0, g.value = u.value, H.value?.setPointerCapture(B.pointerId), A(), H.value.style.userSelect = "");
|
|
3644
3667
|
}, x = (B) => {
|
|
3645
3668
|
if (!d.value) return;
|
|
3646
3669
|
const q = performance.now(), oe = B.clientX - a.value, ee = q - i.value;
|
|
3647
3670
|
ee > 0 && (o.value = oe / ee), a.value = B.clientX, i.value = q, l.value = B.clientX, r.value = l.value - s.value;
|
|
3648
3671
|
}, O = (B) => {
|
|
3649
3672
|
if (!d.value) return;
|
|
3650
|
-
d.value = !1,
|
|
3651
|
-
const q =
|
|
3652
|
-
Math.abs(o.value) > bl ? o.value < 0 ? T() : z() : Math.abs(oe) > gl ? oe < 0 ? T() : z() : N(g.value), r.value = 0, o.value = 0,
|
|
3673
|
+
d.value = !1, H.value?.releasePointerCapture(B.pointerId), H.value.style.userSelect = "";
|
|
3674
|
+
const q = H.value.clientWidth / M.value, oe = r.value / q;
|
|
3675
|
+
Math.abs(o.value) > bl ? o.value < 0 ? T() : z() : Math.abs(oe) > gl ? oe < 0 ? T() : z() : N(g.value), r.value = 0, o.value = 0, V();
|
|
3653
3676
|
};
|
|
3654
3677
|
return te(() => {
|
|
3655
|
-
|
|
3678
|
+
V(), C.value && (k = new ResizeObserver((B) => {
|
|
3656
3679
|
const q = B[0]?.contentRect.width;
|
|
3657
3680
|
q !== void 0 && (M.value = Q(q));
|
|
3658
3681
|
}), k.observe(C.value));
|
|
3659
|
-
}),
|
|
3682
|
+
}), ye(() => {
|
|
3660
3683
|
A(), k?.disconnect();
|
|
3661
3684
|
}), Y(
|
|
3662
3685
|
() => t.autoplay,
|
|
3663
3686
|
(B) => {
|
|
3664
|
-
B ?
|
|
3687
|
+
B ? V() : A();
|
|
3665
3688
|
},
|
|
3666
3689
|
{ immediate: !0 }
|
|
3667
3690
|
), Y(M, () => u.value = Math.min(u.value, w.value)), Ce("CarouselContext", {
|
|
@@ -3694,7 +3717,7 @@ const Dl = {
|
|
|
3694
3717
|
y("div", vl, [
|
|
3695
3718
|
y("div", {
|
|
3696
3719
|
ref_key: "trackRef",
|
|
3697
|
-
ref:
|
|
3720
|
+
ref: H,
|
|
3698
3721
|
class: "carousel-track",
|
|
3699
3722
|
style: ge(_.value),
|
|
3700
3723
|
onPointerdown: fe,
|
|
@@ -3702,7 +3725,7 @@ const Dl = {
|
|
|
3702
3725
|
onPointerup: O,
|
|
3703
3726
|
onPointercancel: O
|
|
3704
3727
|
}, [
|
|
3705
|
-
|
|
3728
|
+
W(B.$slots, "default", {}, void 0, !0)
|
|
3706
3729
|
], 36)
|
|
3707
3730
|
]),
|
|
3708
3731
|
y("span", fl, " Slide " + U(Math.floor(u.value / M.value) + 1) + " of " + U(f.value), 1),
|
|
@@ -3731,22 +3754,22 @@ const Dl = {
|
|
|
3731
3754
|
"aria-label": `Go to slide ${ee + 1}`,
|
|
3732
3755
|
"aria-selected": ee === Z.value,
|
|
3733
3756
|
"aria-current": ee === Z.value,
|
|
3734
|
-
onClick: (
|
|
3757
|
+
onClick: (ke) => N(ee * M.value),
|
|
3735
3758
|
onKeydown: [
|
|
3736
|
-
ve(le((
|
|
3737
|
-
ve(le((
|
|
3759
|
+
ve(le((ke) => N((ee - 1 + f.value) % f.value * M.value), ["prevent"]), ["left"]),
|
|
3760
|
+
ve(le((ke) => N((ee + 1) % f.value * M.value), ["prevent"]), ["right"])
|
|
3738
3761
|
]
|
|
3739
3762
|
}, null, 42, pl))), 128))
|
|
3740
3763
|
])) : K("", !0)
|
|
3741
3764
|
], 44, cl));
|
|
3742
3765
|
}
|
|
3743
|
-
}),
|
|
3766
|
+
}), Wl = /* @__PURE__ */ j(Cl, [["__scopeId", "data-v-30cdfc00"]]), hl = ["aria-hidden", "aria-label"], yl = /* @__PURE__ */ S({
|
|
3744
3767
|
__name: "CarouselItem",
|
|
3745
3768
|
setup(e) {
|
|
3746
3769
|
const n = se("CarouselContext");
|
|
3747
3770
|
if (!n) throw new Error("CarouselItem must be used inside a Carousel");
|
|
3748
3771
|
const t = "carousel-item-" + ie(), a = p(0), s = L(() => Math.abs(n.deltaX.value) > 5), r = L(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
|
|
3749
|
-
return te(() => a.value = n.register(t)),
|
|
3772
|
+
return te(() => a.value = n.register(t)), ye(() => n.unregister(t)), (i, o) => (v(), m("div", {
|
|
3750
3773
|
role: "group",
|
|
3751
3774
|
class: "carousel-item",
|
|
3752
3775
|
id: t,
|
|
@@ -3755,10 +3778,10 @@ const Dl = {
|
|
|
3755
3778
|
"aria-label": `Slide ${a.value + 1}`,
|
|
3756
3779
|
onClickCapture: o[0] || (o[0] = (l) => s.value && l.preventDefault())
|
|
3757
3780
|
}, [
|
|
3758
|
-
|
|
3781
|
+
W(i.$slots, "default", {}, void 0, !0)
|
|
3759
3782
|
], 40, hl));
|
|
3760
3783
|
}
|
|
3761
|
-
}),
|
|
3784
|
+
}), jl = /* @__PURE__ */ j(yl, [["__scopeId", "data-v-a569d055"]]), Te = /* @__PURE__ */ Symbol("TabsContext"), Xl = S({
|
|
3762
3785
|
name: "Tabs",
|
|
3763
3786
|
props: {
|
|
3764
3787
|
modelValue: String,
|
|
@@ -3790,17 +3813,17 @@ const Dl = {
|
|
|
3790
3813
|
const l = (u, C) => r.value[C] = u, c = (u) => {
|
|
3791
3814
|
const C = r.value.filter(Boolean);
|
|
3792
3815
|
if (!C.length) return;
|
|
3793
|
-
const
|
|
3794
|
-
if (!
|
|
3816
|
+
const H = a.value;
|
|
3817
|
+
if (!H) {
|
|
3795
3818
|
a.value = u, n("update:modelValue", u);
|
|
3796
3819
|
return;
|
|
3797
3820
|
}
|
|
3798
|
-
const R = C.indexOf(
|
|
3821
|
+
const R = C.indexOf(H), k = C.indexOf(u);
|
|
3799
3822
|
if (R === -1 || k === -1) {
|
|
3800
3823
|
a.value = u, n("update:modelValue", u);
|
|
3801
3824
|
return;
|
|
3802
3825
|
}
|
|
3803
|
-
R !== -1 && k !== -1 && (i.value = k > R ? "forward" : "backward"),
|
|
3826
|
+
R !== -1 && k !== -1 && (i.value = k > R ? "forward" : "backward"), H !== u && (a.value = u, n("update:modelValue", u));
|
|
3804
3827
|
}, d = L(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), g = (u) => {
|
|
3805
3828
|
u instanceof HTMLElement && o.value && (o.value.style.height = `${u.offsetHeight}px`);
|
|
3806
3829
|
}, $ = (u) => {
|
|
@@ -3824,11 +3847,11 @@ const Dl = {
|
|
|
3824
3847
|
contentWrapperRef: o,
|
|
3825
3848
|
focusOnChange: s
|
|
3826
3849
|
}), () => {
|
|
3827
|
-
const u = t.default?.() || [], C = [],
|
|
3850
|
+
const u = t.default?.() || [], C = [], H = [];
|
|
3828
3851
|
u.forEach((k) => {
|
|
3829
|
-
k.type?.name === "TabsContent" ?
|
|
3852
|
+
k.type?.name === "TabsContent" ? H.push(k) : C.push(k);
|
|
3830
3853
|
});
|
|
3831
|
-
const R =
|
|
3854
|
+
const R = H.find((k) => k.props?.value === a.value);
|
|
3832
3855
|
return [
|
|
3833
3856
|
...C,
|
|
3834
3857
|
F(
|
|
@@ -3921,7 +3944,7 @@ const Dl = {
|
|
|
3921
3944
|
document.getElementById(`tab-${$}`)?.focus();
|
|
3922
3945
|
});
|
|
3923
3946
|
};
|
|
3924
|
-
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)),
|
|
3947
|
+
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ye(() => t.triggers.value[e.index] = void 0), () => F(
|
|
3925
3948
|
be,
|
|
3926
3949
|
{
|
|
3927
3950
|
role: "tab",
|
|
@@ -3981,7 +4004,7 @@ const Dl = {
|
|
|
3981
4004
|
}, C = (k) => {
|
|
3982
4005
|
const D = Object.keys(s.value), Z = R(k), f = D[Z + 1];
|
|
3983
4006
|
Z >= 0 && Z < D.length - 1 && f && $(f);
|
|
3984
|
-
},
|
|
4007
|
+
}, H = (k) => {
|
|
3985
4008
|
const D = Object.keys(s.value), Z = R(k), f = D[Z - 1];
|
|
3986
4009
|
Z > 0 && f && $(f);
|
|
3987
4010
|
}, R = (k) => Object.keys(s.value).indexOf(k);
|
|
@@ -3993,14 +4016,14 @@ const Dl = {
|
|
|
3993
4016
|
registerItem: g,
|
|
3994
4017
|
focusItem: $,
|
|
3995
4018
|
focusNextItem: C,
|
|
3996
|
-
focusPrevItem:
|
|
4019
|
+
focusPrevItem: H,
|
|
3997
4020
|
focusFirstItem: M,
|
|
3998
4021
|
focusLastItem: u,
|
|
3999
4022
|
triggerRef: a,
|
|
4000
4023
|
menuId: i,
|
|
4001
4024
|
triggerId: o
|
|
4002
4025
|
}), (k, D) => (v(), m("div", kl, [
|
|
4003
|
-
|
|
4026
|
+
W(k.$slots, "default")
|
|
4004
4027
|
]));
|
|
4005
4028
|
}
|
|
4006
4029
|
}), wl = /* @__PURE__ */ S({
|
|
@@ -4014,22 +4037,22 @@ const Dl = {
|
|
|
4014
4037
|
return te(() => n.triggerRef.value = t.value?.el), (s, r) => (v(), J(be, {
|
|
4015
4038
|
ref_key: "btn",
|
|
4016
4039
|
ref: t,
|
|
4017
|
-
id:
|
|
4040
|
+
id: I(n).triggerId,
|
|
4018
4041
|
class: "btn-outline ui-dropdown-trigger",
|
|
4019
4042
|
"aria-haspopup": "menu",
|
|
4020
|
-
"aria-controls":
|
|
4021
|
-
"aria-expanded":
|
|
4022
|
-
onClick:
|
|
4043
|
+
"aria-controls": I(n).menuId,
|
|
4044
|
+
"aria-expanded": I(n).isOpen.value,
|
|
4045
|
+
onClick: I(n).toggle,
|
|
4023
4046
|
onKeydown: a
|
|
4024
4047
|
}, {
|
|
4025
4048
|
default: G(() => [
|
|
4026
|
-
|
|
4049
|
+
W(s.$slots, "default", {}, void 0, !0),
|
|
4027
4050
|
P(ue, { name: "directionDown" })
|
|
4028
4051
|
]),
|
|
4029
4052
|
_: 3
|
|
4030
4053
|
}, 8, ["id", "aria-controls", "aria-expanded", "onClick"]));
|
|
4031
4054
|
}
|
|
4032
|
-
}),
|
|
4055
|
+
}), es = /* @__PURE__ */ j(wl, [["__scopeId", "data-v-b8f0b77e"]]), Ll = ["id", "aria-labelledby"], Ml = /* @__PURE__ */ S({
|
|
4033
4056
|
__name: "DropdownMenu",
|
|
4034
4057
|
setup(e) {
|
|
4035
4058
|
const n = se("DropdownContext");
|
|
@@ -4059,26 +4082,26 @@ const Dl = {
|
|
|
4059
4082
|
}
|
|
4060
4083
|
), te(() => {
|
|
4061
4084
|
window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
|
|
4062
|
-
}),
|
|
4085
|
+
}), ye(() => {
|
|
4063
4086
|
window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
|
|
4064
4087
|
}), (o, l) => (v(), J(Re, { to: "body" }, [
|
|
4065
|
-
|
|
4088
|
+
I(n).isOpen.value ? (v(), m("div", {
|
|
4066
4089
|
key: 0,
|
|
4067
4090
|
role: "menu",
|
|
4068
4091
|
ref_key: "menuRef",
|
|
4069
4092
|
ref: t,
|
|
4070
4093
|
style: ge(a.value),
|
|
4071
|
-
id:
|
|
4094
|
+
id: I(n).menuId,
|
|
4072
4095
|
"aria-orientation": "vertical",
|
|
4073
|
-
"aria-labelledby":
|
|
4096
|
+
"aria-labelledby": I(n).triggerId,
|
|
4074
4097
|
class: "ui-dropdown-menu",
|
|
4075
4098
|
onKeydown: r
|
|
4076
4099
|
}, [
|
|
4077
|
-
|
|
4100
|
+
W(o.$slots, "default", {}, void 0, !0)
|
|
4078
4101
|
], 44, Ll)) : K("", !0)
|
|
4079
4102
|
]));
|
|
4080
4103
|
}
|
|
4081
|
-
}),
|
|
4104
|
+
}), ts = /* @__PURE__ */ j(Ml, [["__scopeId", "data-v-3b7b0ae5"]]), $l = /* @__PURE__ */ S({
|
|
4082
4105
|
__name: "DropdownItem",
|
|
4083
4106
|
setup(e) {
|
|
4084
4107
|
const n = se("DropdownContext");
|
|
@@ -4095,13 +4118,13 @@ const Dl = {
|
|
|
4095
4118
|
tabindex: "-1",
|
|
4096
4119
|
onKeydown: s,
|
|
4097
4120
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
4098
|
-
(...o) =>
|
|
4121
|
+
(...o) => I(n).close && I(n).close(...o)),
|
|
4099
4122
|
onPointerenter: i[1] || (i[1] = (o) => a.value?.focus())
|
|
4100
4123
|
}, [
|
|
4101
|
-
|
|
4124
|
+
W(r.$slots, "default", {}, void 0, !0)
|
|
4102
4125
|
], 544));
|
|
4103
4126
|
}
|
|
4104
|
-
}),
|
|
4127
|
+
}), as = /* @__PURE__ */ j($l, [["__scopeId", "data-v-69de3d9c"]]), ns = S({
|
|
4105
4128
|
name: "Table",
|
|
4106
4129
|
props: {
|
|
4107
4130
|
columns: {
|
|
@@ -4305,7 +4328,7 @@ const Dl = {
|
|
|
4305
4328
|
);
|
|
4306
4329
|
};
|
|
4307
4330
|
}
|
|
4308
|
-
}), Ae = /* @__PURE__ */ Symbol("AccordionContext"),
|
|
4331
|
+
}), Ae = /* @__PURE__ */ Symbol("AccordionContext"), os = S({
|
|
4309
4332
|
name: "Accordion",
|
|
4310
4333
|
props: {
|
|
4311
4334
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -4345,7 +4368,7 @@ const Dl = {
|
|
|
4345
4368
|
focusLast: d
|
|
4346
4369
|
}), () => n.default?.();
|
|
4347
4370
|
}
|
|
4348
|
-
}),
|
|
4371
|
+
}), ls = S({
|
|
4349
4372
|
name: "AccordionItem",
|
|
4350
4373
|
props: {
|
|
4351
4374
|
id: { type: String, required: !0 },
|
|
@@ -4364,7 +4387,7 @@ const Dl = {
|
|
|
4364
4387
|
n.default?.({ open: a.value })
|
|
4365
4388
|
);
|
|
4366
4389
|
}
|
|
4367
|
-
}),
|
|
4390
|
+
}), ss = S({
|
|
4368
4391
|
name: "AccordionHeader",
|
|
4369
4392
|
props: {
|
|
4370
4393
|
id: { type: String, required: !0 },
|
|
@@ -4424,7 +4447,7 @@ const Dl = {
|
|
|
4424
4447
|
]
|
|
4425
4448
|
);
|
|
4426
4449
|
}
|
|
4427
|
-
}),
|
|
4450
|
+
}), rs = S({
|
|
4428
4451
|
name: "AccordionPanel",
|
|
4429
4452
|
props: {
|
|
4430
4453
|
id: { type: String, required: !0 }
|
|
@@ -4452,10 +4475,10 @@ const Dl = {
|
|
|
4452
4475
|
}
|
|
4453
4476
|
});
|
|
4454
4477
|
export {
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4478
|
+
os as Accordion,
|
|
4479
|
+
ss as AccordionHeader,
|
|
4480
|
+
ls as AccordionItem,
|
|
4481
|
+
rs as AccordionPanel,
|
|
4459
4482
|
Zl as Autocomplete,
|
|
4460
4483
|
Vl as Avatar,
|
|
4461
4484
|
Tl as Breadcrumb,
|
|
@@ -4464,13 +4487,13 @@ export {
|
|
|
4464
4487
|
Nl as CardBody,
|
|
4465
4488
|
zl as CardFooter,
|
|
4466
4489
|
ql as CardHeader,
|
|
4467
|
-
|
|
4468
|
-
|
|
4490
|
+
Wl as Carousel,
|
|
4491
|
+
jl as CarouselItem,
|
|
4469
4492
|
Bl as Checkbox,
|
|
4470
4493
|
Ql as Dropdown,
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4494
|
+
as as DropdownItem,
|
|
4495
|
+
ts as DropdownMenu,
|
|
4496
|
+
es as DropdownTrigger,
|
|
4474
4497
|
Je as Editor,
|
|
4475
4498
|
Gn as Highlight,
|
|
4476
4499
|
ue as Icon,
|
|
@@ -4478,7 +4501,7 @@ export {
|
|
|
4478
4501
|
tt as ImageGallery,
|
|
4479
4502
|
Hl as Input,
|
|
4480
4503
|
Il as Link,
|
|
4481
|
-
|
|
4504
|
+
Oe as Modal,
|
|
4482
4505
|
vt as ModalBody,
|
|
4483
4506
|
ft as ModalClose,
|
|
4484
4507
|
ut as ModalContent,
|
|
@@ -4490,7 +4513,7 @@ export {
|
|
|
4490
4513
|
mt as Spinner,
|
|
4491
4514
|
Fl as Step,
|
|
4492
4515
|
Kl as Steps,
|
|
4493
|
-
|
|
4516
|
+
ns as Table,
|
|
4494
4517
|
Xl as Tabs,
|
|
4495
4518
|
Yl as TabsContent,
|
|
4496
4519
|
Gl as TabsList,
|