@reinosoft-ui/core 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reinosoft-ui.es.js +299 -296
- 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 T, ref as g, computed as I, watch as W, onMounted as oe, createElementBlock as p, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as O, withDirectives as Me, createElementVNode as M, vShow as Ne, mergeProps as pe, mergeModels as te, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as ae, unref as A, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as
|
|
1
|
+
import { defineComponent as T, ref as g, computed as I, watch as W, onMounted as oe, createElementBlock as p, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as O, withDirectives as Me, createElementVNode as M, vShow as Ne, mergeProps as pe, mergeModels as te, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as ae, unref as A, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as de, provide as ye, createVNode as P, createTextVNode as me, onBeforeUnmount as Ie, Teleport as Be, resolveDynamicComponent as Ve, useAttrs as Fe, inject as se, h as F, useSlots as Pe, resolveComponent as bt, vModelRadio as kt, vModelDynamic as wt, reactive as it, TransitionGroup as Mt, createApp as xt, shallowRef as Lt, vModelText as Ae } from "vue";
|
|
2
2
|
import { routerKey as $t } from "vue-router";
|
|
3
3
|
const Vt = ["aria-busy"], It = ["aria-label"], Ht = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Bt = /* @__PURE__ */ T({
|
|
4
4
|
__name: "Image",
|
|
@@ -20,7 +20,7 @@ const Vt = ["aria-busy"], It = ["aria-label"], Ht = ["src", "srcset", "sizes", "
|
|
|
20
20
|
aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
|
|
21
21
|
} : void 0), r = () => {
|
|
22
22
|
s.value = "loaded", a("loaded");
|
|
23
|
-
},
|
|
23
|
+
}, d = () => {
|
|
24
24
|
if (t.fallbackSrc && n.value !== t.fallbackSrc) {
|
|
25
25
|
n.value = t.fallbackSrc, s.value = "loading";
|
|
26
26
|
return;
|
|
@@ -66,7 +66,7 @@ const Vt = ["aria-busy"], It = ["aria-label"], Ht = ["src", "srcset", "sizes", "
|
|
|
66
66
|
loading: e.lazy ? "lazy" : void 0,
|
|
67
67
|
decoding: e.decoding,
|
|
68
68
|
onLoad: r,
|
|
69
|
-
onError:
|
|
69
|
+
onError: d
|
|
70
70
|
}, null, 40, Ht), [
|
|
71
71
|
[Ne, s.value !== "error"]
|
|
72
72
|
])
|
|
@@ -171,9 +171,9 @@ const ut = (e) => {
|
|
|
171
171
|
if (!n) return;
|
|
172
172
|
const s = Tt("p");
|
|
173
173
|
document.createRange().selectNodeContents(n);
|
|
174
|
-
const r = a.cloneRange(),
|
|
175
|
-
|
|
176
|
-
const u =
|
|
174
|
+
const r = a.cloneRange(), d = document.createRange();
|
|
175
|
+
d.selectNodeContents(n), d.setEnd(r.startContainer, r.startOffset);
|
|
176
|
+
const u = d.cloneContents(), f = document.createRange();
|
|
177
177
|
f.selectNodeContents(n), f.setStart(r.startContainer, r.startOffset);
|
|
178
178
|
const k = f.cloneContents();
|
|
179
179
|
n.innerHTML = "", n.appendChild(u), n.innerHTML === "" && (n.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(k), s.innerHTML === "" && (s.innerHTML = "<br>"), n.after(s);
|
|
@@ -232,7 +232,7 @@ const ut = (e) => {
|
|
|
232
232
|
const w = $[$.length - 1];
|
|
233
233
|
C.setEnd(w, w.textContent.length), _.removeAllRanges(), _.addRange(C), i();
|
|
234
234
|
}
|
|
235
|
-
return y(),
|
|
235
|
+
return y(), c(x);
|
|
236
236
|
}, l = (x, _) => {
|
|
237
237
|
if (!x || !_ || !(_ instanceof HTMLElement)) return [];
|
|
238
238
|
const R = x.commonAncestorContainer, V = _.contains(R) ? _ : R.nodeType === 3 ? R.parentNode : R, D = document.createTreeWalker(
|
|
@@ -250,14 +250,14 @@ const ut = (e) => {
|
|
|
250
250
|
}, r = (x) => {
|
|
251
251
|
const _ = window.getSelection();
|
|
252
252
|
if (!_ || _.rangeCount === 0) return !1;
|
|
253
|
-
const R = _.getRangeAt(0), V =
|
|
253
|
+
const R = _.getRangeAt(0), V = d(R.startContainer);
|
|
254
254
|
if (!V) return !1;
|
|
255
255
|
const $ = V.tagName.toLowerCase() === x.toLowerCase() ? "p" : x.toLowerCase(), C = document.createElement($);
|
|
256
256
|
for ($ === "blockquote" && C.setAttribute("class", "rs-blockquote"), C.dataset.block = "true"; V.firstChild; ) C.appendChild(V.firstChild);
|
|
257
257
|
V.replaceWith(C);
|
|
258
258
|
const w = document.createRange();
|
|
259
259
|
return w.selectNodeContents(C), _.removeAllRanges(), _.addRange(w), i(), y(), m(x);
|
|
260
|
-
},
|
|
260
|
+
}, d = (x) => {
|
|
261
261
|
const _ = e;
|
|
262
262
|
if (!_) return null;
|
|
263
263
|
for (; x && x !== _; ) {
|
|
@@ -294,7 +294,7 @@ const ut = (e) => {
|
|
|
294
294
|
_.selectNodeContents(x), _.collapse(!0), R?.removeAllRanges(), R?.addRange(_);
|
|
295
295
|
}, y = () => {
|
|
296
296
|
e instanceof Node && e.normalize();
|
|
297
|
-
},
|
|
297
|
+
}, c = (x) => {
|
|
298
298
|
const _ = t.value;
|
|
299
299
|
if (!_) return !1;
|
|
300
300
|
let R = _.startContainer;
|
|
@@ -329,7 +329,7 @@ const ut = (e) => {
|
|
|
329
329
|
}, h = () => n.value?.focusFirstButton?.(), H = (x) => {
|
|
330
330
|
const _ = window.getSelection();
|
|
331
331
|
if (!_ || _.rangeCount === 0) return;
|
|
332
|
-
const R = _.getRangeAt(0), V =
|
|
332
|
+
const R = _.getRangeAt(0), V = d(R.startContainer);
|
|
333
333
|
if (!V) return;
|
|
334
334
|
const D = R.cloneRange();
|
|
335
335
|
D.selectNodeContents(V), D.setEnd(R.startContainer, R.startOffset);
|
|
@@ -360,7 +360,7 @@ const ut = (e) => {
|
|
|
360
360
|
rootElement: e,
|
|
361
361
|
saveSelection: i,
|
|
362
362
|
restoreSelection: L,
|
|
363
|
-
isInlineActive:
|
|
363
|
+
isInlineActive: c,
|
|
364
364
|
isBlockActive: m,
|
|
365
365
|
focus: B,
|
|
366
366
|
toolbarRef: n,
|
|
@@ -400,8 +400,8 @@ const ut = (e) => {
|
|
|
400
400
|
if (!l || l.rangeCount === 0) return;
|
|
401
401
|
const r = n.value;
|
|
402
402
|
if (!r) return;
|
|
403
|
-
const
|
|
404
|
-
r.contains(
|
|
403
|
+
const d = l.getRangeAt(0);
|
|
404
|
+
r.contains(d.commonAncestorContainer) && t.editor?.saveSelection();
|
|
405
405
|
};
|
|
406
406
|
return oe(() => document.addEventListener("selectionchange", s)), be(() => document.removeEventListener("selectionchange", s)), o({
|
|
407
407
|
getRoot: () => n
|
|
@@ -418,17 +418,17 @@ const ut = (e) => {
|
|
|
418
418
|
"aria-describedby": "editor-help editor-status",
|
|
419
419
|
onKeydown: [
|
|
420
420
|
i,
|
|
421
|
-
r[0] || (r[0] = ve((
|
|
421
|
+
r[0] || (r[0] = ve((d) => A(Zt)(d, e.editor), ["enter"])),
|
|
422
422
|
r[1] || (r[1] = ve(
|
|
423
423
|
//@ts-ignore
|
|
424
|
-
(...
|
|
424
|
+
(...d) => A(Xe) && A(Xe)(...d),
|
|
425
425
|
["backspace"]
|
|
426
426
|
))
|
|
427
427
|
],
|
|
428
428
|
onMouseup: r[2] || (r[2] = //@ts-ignore
|
|
429
|
-
(...
|
|
429
|
+
(...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d)),
|
|
430
430
|
onKeyup: r[3] || (r[3] = //@ts-ignore
|
|
431
|
-
(...
|
|
431
|
+
(...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d))
|
|
432
432
|
}, [...r[4] || (r[4] = [
|
|
433
433
|
M("p", { "data-block": "" }, "Write here...", -1)
|
|
434
434
|
])], 40, Nt),
|
|
@@ -698,7 +698,7 @@ const ut = (e) => {
|
|
|
698
698
|
fill: "currentColor"
|
|
699
699
|
}
|
|
700
700
|
]
|
|
701
|
-
},
|
|
701
|
+
}, d1 = {
|
|
702
702
|
viewBox: "0 0 24 24",
|
|
703
703
|
paths: [
|
|
704
704
|
{
|
|
@@ -711,7 +711,7 @@ const ut = (e) => {
|
|
|
711
711
|
"stroke-linejoin": "round"
|
|
712
712
|
}
|
|
713
713
|
]
|
|
714
|
-
},
|
|
714
|
+
}, c1 = {
|
|
715
715
|
viewBox: "0 0 24 24",
|
|
716
716
|
paths: [
|
|
717
717
|
{
|
|
@@ -1738,7 +1738,7 @@ const ut = (e) => {
|
|
|
1738
1738
|
"stroke-linejoin": "round"
|
|
1739
1739
|
}
|
|
1740
1740
|
]
|
|
1741
|
-
},
|
|
1741
|
+
}, d2 = {
|
|
1742
1742
|
viewBox: "0 0 24 24",
|
|
1743
1743
|
paths: [
|
|
1744
1744
|
{
|
|
@@ -1756,7 +1756,7 @@ const ut = (e) => {
|
|
|
1756
1756
|
"stroke-width": 2
|
|
1757
1757
|
}
|
|
1758
1758
|
]
|
|
1759
|
-
},
|
|
1759
|
+
}, c2 = {
|
|
1760
1760
|
viewBox: "0 0 24 24",
|
|
1761
1761
|
paths: [
|
|
1762
1762
|
{
|
|
@@ -1838,10 +1838,10 @@ const ut = (e) => {
|
|
|
1838
1838
|
user: u1,
|
|
1839
1839
|
info: n1,
|
|
1840
1840
|
sort: s1,
|
|
1841
|
-
tick:
|
|
1841
|
+
tick: d1,
|
|
1842
1842
|
link: l1,
|
|
1843
1843
|
head: r1,
|
|
1844
|
-
bold:
|
|
1844
|
+
bold: c1,
|
|
1845
1845
|
card: v1,
|
|
1846
1846
|
heart: w1,
|
|
1847
1847
|
oList: f1,
|
|
@@ -1894,8 +1894,8 @@ const ut = (e) => {
|
|
|
1894
1894
|
closeSolid: r2,
|
|
1895
1895
|
closeCircle: i2,
|
|
1896
1896
|
checkCircle: u2,
|
|
1897
|
-
checkShield:
|
|
1898
|
-
musicalNote:
|
|
1897
|
+
checkShield: d2,
|
|
1898
|
+
musicalNote: c2,
|
|
1899
1899
|
shoppingBag: v2,
|
|
1900
1900
|
directionDown: f2,
|
|
1901
1901
|
shoppingBasket: p2
|
|
@@ -1945,7 +1945,7 @@ const ut = (e) => {
|
|
|
1945
1945
|
], 64))), 128))
|
|
1946
1946
|
], 10, C2));
|
|
1947
1947
|
}
|
|
1948
|
-
}),
|
|
1948
|
+
}), ce = /* @__PURE__ */ K(m2, [["__scopeId", "data-v-dd8423eb"]]), h2 = ["aria-controls"], g2 = ["aria-pressed", "onMousedown", "aria-label"], y2 = { key: 1 }, b2 = /* @__PURE__ */ T({
|
|
1949
1949
|
__name: "FloatingToolbar",
|
|
1950
1950
|
props: {
|
|
1951
1951
|
editor: {},
|
|
@@ -1956,41 +1956,41 @@ const ut = (e) => {
|
|
|
1956
1956
|
const t = e, a = g(0), n = g(0), i = g(!1), s = g([]);
|
|
1957
1957
|
W(
|
|
1958
1958
|
i,
|
|
1959
|
-
(
|
|
1959
|
+
(c) => !c && (s.value = [])
|
|
1960
1960
|
);
|
|
1961
1961
|
const l = I(() => ({
|
|
1962
1962
|
top: `${n.value}px`,
|
|
1963
1963
|
left: `${a.value}px`
|
|
1964
|
-
})), r = (
|
|
1964
|
+
})), r = (c, m) => c && (s.value[m] = c), d = I(() => [
|
|
1965
1965
|
{
|
|
1966
1966
|
key: "strong",
|
|
1967
1967
|
label: "bold",
|
|
1968
1968
|
type: "icon",
|
|
1969
1969
|
ariaLabel: "Bold",
|
|
1970
|
-
action: (
|
|
1971
|
-
|
|
1970
|
+
action: (c) => {
|
|
1971
|
+
c.restoreSelection(), c.toggleInline("strong"), c.focus(), c.announce(c.isInlineActive("strong") ? "Bold enabled" : "Bold disabled");
|
|
1972
1972
|
},
|
|
1973
|
-
isActive: (
|
|
1973
|
+
isActive: (c) => c.isInlineActive("strong")
|
|
1974
1974
|
},
|
|
1975
1975
|
{
|
|
1976
1976
|
key: "em",
|
|
1977
1977
|
label: "italic",
|
|
1978
1978
|
type: "icon",
|
|
1979
1979
|
ariaLabel: "Italic",
|
|
1980
|
-
action: (
|
|
1981
|
-
|
|
1980
|
+
action: (c) => {
|
|
1981
|
+
c.restoreSelection(), c.toggleInline("em"), c.focus(), c.announce(c.isInlineActive("em") ? "Italic enabled" : "Italic disabled");
|
|
1982
1982
|
},
|
|
1983
|
-
isActive: (
|
|
1983
|
+
isActive: (c) => c.isInlineActive("em")
|
|
1984
1984
|
},
|
|
1985
1985
|
{
|
|
1986
1986
|
key: "h1",
|
|
1987
1987
|
label: "head",
|
|
1988
1988
|
type: "icon",
|
|
1989
1989
|
ariaLabel: "Heading 1",
|
|
1990
|
-
action: (
|
|
1991
|
-
|
|
1990
|
+
action: (c) => {
|
|
1991
|
+
c.restoreSelection(), c.toggleBlock("h1"), c.focus(), c.announce(c.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled");
|
|
1992
1992
|
},
|
|
1993
|
-
isActive: (
|
|
1993
|
+
isActive: (c) => c.isBlockActive("h1")
|
|
1994
1994
|
},
|
|
1995
1995
|
{
|
|
1996
1996
|
key: "h4",
|
|
@@ -1998,49 +1998,49 @@ const ut = (e) => {
|
|
|
1998
1998
|
type: "icon",
|
|
1999
1999
|
ariaLabel: "Heading 4",
|
|
2000
2000
|
size: 12,
|
|
2001
|
-
action: (
|
|
2002
|
-
|
|
2001
|
+
action: (c) => {
|
|
2002
|
+
c.restoreSelection(), c.toggleBlock("h4"), c.focus(), c.announce(c.isBlockActive("h4") ? "Heading level 4 enabled" : "Heading level 4 disabled");
|
|
2003
2003
|
},
|
|
2004
|
-
isActive: (
|
|
2004
|
+
isActive: (c) => c.isBlockActive("h4")
|
|
2005
2005
|
},
|
|
2006
2006
|
{
|
|
2007
2007
|
key: "quote",
|
|
2008
2008
|
label: "❝",
|
|
2009
2009
|
type: "text",
|
|
2010
2010
|
ariaLabel: "Blockquote",
|
|
2011
|
-
action: (
|
|
2012
|
-
|
|
2011
|
+
action: (c) => {
|
|
2012
|
+
c.restoreSelection(), c.toggleBlock("blockquote"), c.focus(), c.announce(c.isBlockActive("blockquote") ? "Blockquote enabled" : "Blockquote disabled");
|
|
2013
2013
|
},
|
|
2014
|
-
isActive: (
|
|
2014
|
+
isActive: (c) => c.isBlockActive("blockquote")
|
|
2015
2015
|
}
|
|
2016
2016
|
]), u = I(() => [
|
|
2017
|
-
...
|
|
2017
|
+
...d.value,
|
|
2018
2018
|
...t.editor?.buttons ?? []
|
|
2019
2019
|
]), f = async () => {
|
|
2020
2020
|
await we(), s.value[0]?.focus();
|
|
2021
|
-
}, k = (
|
|
2021
|
+
}, k = (c) => {
|
|
2022
2022
|
const m = s.value, B = m.indexOf(document.activeElement);
|
|
2023
|
-
if (
|
|
2024
|
-
|
|
2023
|
+
if (c.key === "ArrowRight") {
|
|
2024
|
+
c.preventDefault();
|
|
2025
2025
|
const L = B < m.length - 1 ? B + 1 : 0;
|
|
2026
2026
|
m[L]?.focus();
|
|
2027
2027
|
}
|
|
2028
|
-
if (
|
|
2029
|
-
|
|
2028
|
+
if (c.key === "ArrowLeft") {
|
|
2029
|
+
c.preventDefault();
|
|
2030
2030
|
const L = B > 0 ? B - 1 : m.length - 1;
|
|
2031
2031
|
m[L]?.focus();
|
|
2032
2032
|
}
|
|
2033
|
-
|
|
2033
|
+
c.key === "Home" && (c.preventDefault(), m[0]?.focus()), c.key === "End" && (c.preventDefault(), m[m.length - 1]?.focus()), c.key === "Escape" && (c.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
|
|
2034
2034
|
}, y = () => {
|
|
2035
|
-
const
|
|
2036
|
-
if (!
|
|
2035
|
+
const c = window.getSelection();
|
|
2036
|
+
if (!c || c.rangeCount === 0) {
|
|
2037
2037
|
i.value = !1;
|
|
2038
2038
|
return;
|
|
2039
2039
|
}
|
|
2040
2040
|
const m = t.editor?.rootElement;
|
|
2041
2041
|
if (!m) return;
|
|
2042
|
-
const B =
|
|
2043
|
-
if (!m.contains(B.commonAncestorContainer) ||
|
|
2042
|
+
const B = c.getRangeAt(0);
|
|
2043
|
+
if (!m.contains(B.commonAncestorContainer) || c.isCollapsed) {
|
|
2044
2044
|
i.value = !1;
|
|
2045
2045
|
return;
|
|
2046
2046
|
}
|
|
@@ -2053,7 +2053,7 @@ const ut = (e) => {
|
|
|
2053
2053
|
document.removeEventListener("selectionchange", y), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
|
|
2054
2054
|
}), o({
|
|
2055
2055
|
focusFirstButton: f
|
|
2056
|
-
}), (
|
|
2056
|
+
}), (c, m) => (v(), J($e, { name: "tooltip-fade" }, {
|
|
2057
2057
|
default: G(() => [
|
|
2058
2058
|
i.value ? (v(), p("div", {
|
|
2059
2059
|
key: 0,
|
|
@@ -2076,7 +2076,7 @@ const ut = (e) => {
|
|
|
2076
2076
|
onMousedown: le((h) => B.action(t.editor), ["prevent"]),
|
|
2077
2077
|
"aria-label": B.ariaLabel
|
|
2078
2078
|
}, [
|
|
2079
|
-
B.type === "icon" ? (v(), J(
|
|
2079
|
+
B.type === "icon" ? (v(), J(ce, {
|
|
2080
2080
|
key: 0,
|
|
2081
2081
|
name: B.label,
|
|
2082
2082
|
size: B.size ?? 14
|
|
@@ -2100,7 +2100,7 @@ const ut = (e) => {
|
|
|
2100
2100
|
}),
|
|
2101
2101
|
emits: ["update:modelValue"],
|
|
2102
2102
|
setup(e) {
|
|
2103
|
-
const o = fe(e, "modelValue"), t = e, a =
|
|
2103
|
+
const o = fe(e, "modelValue"), t = e, a = de(), n = g(), i = g(null), s = g(null);
|
|
2104
2104
|
return W(
|
|
2105
2105
|
() => o.value,
|
|
2106
2106
|
(l) => {
|
|
@@ -2111,8 +2111,8 @@ const ut = (e) => {
|
|
|
2111
2111
|
const r = s.value?.getRoot()?.value;
|
|
2112
2112
|
if (!r) return;
|
|
2113
2113
|
i.value = Ot(r, { buttons: t.buttons ?? [] }), i.value && (i.value.toolbarRef = n);
|
|
2114
|
-
const
|
|
2115
|
-
r.addEventListener("input",
|
|
2114
|
+
const d = () => o.value = r.innerHTML;
|
|
2115
|
+
r.addEventListener("input", d), be(() => r.removeEventListener("input", d));
|
|
2116
2116
|
}), ye("announce", (l) => i.value?.announce(l)), (l, r) => (v(), p("section", w2, [
|
|
2117
2117
|
P(Kt, {
|
|
2118
2118
|
ref_key: "contentRef",
|
|
@@ -2174,7 +2174,7 @@ const M2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2174
2174
|
}),
|
|
2175
2175
|
emits: /* @__PURE__ */ te(["select", "upload", "remove"], ["update:modelValue"]),
|
|
2176
2176
|
setup(e, { emit: o }) {
|
|
2177
|
-
const t = fe(e, "modelValue"), a = e, n = o, i = g(0), s = g(""), l = g(!1), r =
|
|
2177
|
+
const t = fe(e, "modelValue"), a = e, n = o, i = g(0), s = g(""), l = g(!1), r = de(), d = g(), u = I(() => t.value), f = I(() => a.maxSize === 1 / 0 ? "Unlimited" : V(a.maxSize)), k = I(() => !a.disabled && (a.multiple || t.value.length === 0)), y = I(() => u.value.some((C) => C.status === "uploading")), c = () => k.value && d.value?.click(), m = () => {
|
|
2178
2178
|
a.disabled || (i.value++, l.value = !0);
|
|
2179
2179
|
}, B = () => {
|
|
2180
2180
|
i.value = Math.max(0, i.value - 1), i.value === 0 && (l.value = !1);
|
|
@@ -2252,10 +2252,10 @@ const M2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2252
2252
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2253
2253
|
"data-disabled": e.disabled || void 0,
|
|
2254
2254
|
"data-dragging": l.value || void 0,
|
|
2255
|
-
onClick: w[0] || (w[0] = (E) => !e.disabled &&
|
|
2255
|
+
onClick: w[0] || (w[0] = (E) => !e.disabled && c()),
|
|
2256
2256
|
onKeydown: [
|
|
2257
|
-
w[1] || (w[1] = ve(le((E) => !e.disabled &&
|
|
2258
|
-
w[2] || (w[2] = ve(le((E) => !e.disabled &&
|
|
2257
|
+
w[1] || (w[1] = ve(le((E) => !e.disabled && c(), ["stop", "prevent"]), ["enter"])),
|
|
2258
|
+
w[2] || (w[2] = ve(le((E) => !e.disabled && c(), ["prevent"]), ["space"]))
|
|
2259
2259
|
],
|
|
2260
2260
|
onDragover: w[3] || (w[3] = le((E) => !e.disabled && m(), ["prevent"])),
|
|
2261
2261
|
onDragleave: B,
|
|
@@ -2264,7 +2264,7 @@ const M2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2264
2264
|
M("input", {
|
|
2265
2265
|
type: "file",
|
|
2266
2266
|
ref_key: "inputRef",
|
|
2267
|
-
ref:
|
|
2267
|
+
ref: d,
|
|
2268
2268
|
class: "ui-upload__input",
|
|
2269
2269
|
multiple: e.multiple,
|
|
2270
2270
|
accept: e.accept,
|
|
@@ -2275,7 +2275,7 @@ const M2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2275
2275
|
key: 0,
|
|
2276
2276
|
dragging: l.value
|
|
2277
2277
|
}, () => [
|
|
2278
|
-
P(
|
|
2278
|
+
P(ce, {
|
|
2279
2279
|
name: "upload",
|
|
2280
2280
|
size: 32
|
|
2281
2281
|
}),
|
|
@@ -2383,8 +2383,8 @@ const z2 = (e) => {
|
|
|
2383
2383
|
disabled: { type: Boolean, default: !1 }
|
|
2384
2384
|
},
|
|
2385
2385
|
setup(e) {
|
|
2386
|
-
const o = e, t = N2 + F2, a = g(!1), n = `tooltip-${
|
|
2387
|
-
let r = null,
|
|
2386
|
+
const o = e, t = N2 + F2, a = g(!1), n = `tooltip-${de()}`, i = g(null), s = g(null), l = g({});
|
|
2387
|
+
let r = null, d = null, u = null;
|
|
2388
2388
|
const f = () => {
|
|
2389
2389
|
o.disabled || (r && (clearTimeout(r), r = null), o.delay ? r = window.setTimeout(() => {
|
|
2390
2390
|
a.value = !0, r = null;
|
|
@@ -2411,17 +2411,17 @@ const z2 = (e) => {
|
|
|
2411
2411
|
break;
|
|
2412
2412
|
}
|
|
2413
2413
|
return L;
|
|
2414
|
-
},
|
|
2414
|
+
}, c = () => {
|
|
2415
2415
|
l.value = y();
|
|
2416
2416
|
};
|
|
2417
2417
|
return W(a, async (m) => {
|
|
2418
2418
|
if (!m) {
|
|
2419
|
-
|
|
2419
|
+
d?.(), d = null, u?.disconnect(), u = null;
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
|
-
await we(),
|
|
2422
|
+
await we(), c(), d = z2(c), u = new ResizeObserver(c), s.value && u.observe(s.value), i.value && u.observe(i.value);
|
|
2423
2423
|
}), Ie(() => {
|
|
2424
|
-
|
|
2424
|
+
d?.(), u?.disconnect();
|
|
2425
2425
|
}), (m, B) => (v(), p(ae, null, [
|
|
2426
2426
|
M("span", {
|
|
2427
2427
|
ref_key: "triggerRef",
|
|
@@ -2493,7 +2493,7 @@ const K2 = {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
]), l = I(() => t.clickable && t.as !== "button" && t.as !== "a"), r = (u) => {
|
|
2495
2495
|
t.disabled || !i.value || a("click", u);
|
|
2496
|
-
},
|
|
2496
|
+
}, d = () => a("remove");
|
|
2497
2497
|
return (u, f) => (v(), J(Ve(e.as), {
|
|
2498
2498
|
ref_key: "rootRef",
|
|
2499
2499
|
ref: n,
|
|
@@ -2519,9 +2519,9 @@ const K2 = {
|
|
|
2519
2519
|
class: "ui-tag__remove",
|
|
2520
2520
|
type: "button",
|
|
2521
2521
|
"aria-label": `Remove ${e.textContent}`,
|
|
2522
|
-
onClick: le(
|
|
2522
|
+
onClick: le(d, ["stop"])
|
|
2523
2523
|
}, [
|
|
2524
|
-
P(
|
|
2524
|
+
P(ce, {
|
|
2525
2525
|
name: "close",
|
|
2526
2526
|
size: 32
|
|
2527
2527
|
})
|
|
@@ -2560,7 +2560,7 @@ const K2 = {
|
|
|
2560
2560
|
U(i.$slots, "default", {}, void 0, !0)
|
|
2561
2561
|
], 8, G2));
|
|
2562
2562
|
}
|
|
2563
|
-
}), ol = /* @__PURE__ */ K(X2, [["__scopeId", "data-v-0f5d7308"]]), He = (e) => [...e].map((o) => o === "9" ? { type: "digit" } : o === "A" ? { type: "letter" } : o === "*" ? { type: "alphanumeric" } : { type: "literal", value: o }),
|
|
2563
|
+
}), ol = /* @__PURE__ */ K(X2, [["__scopeId", "data-v-0f5d7308"]]), He = (e) => [...e].map((o) => o === "9" ? { type: "digit" } : o === "A" ? { type: "letter" } : o === "*" ? { type: "alphanumeric" } : { type: "literal", value: o }), dt = (e, o) => o.type === "digit" ? /\d/.test(e) : o.type === "letter" ? /[a-z]/i.test(e) : o.type === "alphanumeric" ? /[a-z0-9]/i.test(e) : !1, tt = (e, o) => {
|
|
2564
2564
|
if (!e) return "";
|
|
2565
2565
|
const t = He(o);
|
|
2566
2566
|
let a = "", n = 0;
|
|
@@ -2571,7 +2571,7 @@ const K2 = {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
for (; n < e.length; ) {
|
|
2573
2573
|
const s = e[n++];
|
|
2574
|
-
if (s &&
|
|
2574
|
+
if (s && dt(s, i)) {
|
|
2575
2575
|
a += s;
|
|
2576
2576
|
break;
|
|
2577
2577
|
}
|
|
@@ -2584,7 +2584,7 @@ const K2 = {
|
|
|
2584
2584
|
let n = "", i = 0, s = 0;
|
|
2585
2585
|
for (; i < e.length && s < a.length; ) {
|
|
2586
2586
|
const l = e[i], r = a[s];
|
|
2587
|
-
r &&
|
|
2587
|
+
r && dt(l, r) && (n += l, s++), i++;
|
|
2588
2588
|
}
|
|
2589
2589
|
return n;
|
|
2590
2590
|
}, Q2 = (e, o) => e.slice(0, o).replace(/\D/g, "").length, ea = (e, o) => {
|
|
@@ -2650,7 +2650,7 @@ const K2 = {
|
|
|
2650
2650
|
role: "alert"
|
|
2651
2651
|
}, N(e.errorMessage), 9, sa)) : O("", !0);
|
|
2652
2652
|
}
|
|
2653
|
-
}), ia = ["for"], ua = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"],
|
|
2653
|
+
}), ia = ["for"], ua = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], da = /* @__PURE__ */ T({
|
|
2654
2654
|
__name: "Input",
|
|
2655
2655
|
props: /* @__PURE__ */ te({
|
|
2656
2656
|
id: {},
|
|
@@ -2667,7 +2667,7 @@ const K2 = {
|
|
|
2667
2667
|
}),
|
|
2668
2668
|
emits: /* @__PURE__ */ te(["focus", "blur"], ["update:modelValue"]),
|
|
2669
2669
|
setup(e, { emit: o }) {
|
|
2670
|
-
const t = fe(e, "modelValue"), a = e, n = o, i = Fe(), s = g(null), l =
|
|
2670
|
+
const t = fe(e, "modelValue"), a = e, n = o, i = Fe(), s = g(null), l = de(), r = `${l}-error`, d = `${l}-hint`, u = _e(i).value, f = g(!1), k = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), y = I(() => u ? `${d} ${l}-required-hint` : d), c = I(() => a.invalid === !0 && a.errorMessage ? r : void 0), m = I(() => a.type === "password" ? H.value ? "text" : "password" : a.type), B = I(() => {
|
|
2671
2671
|
const { type: $, ...C } = i;
|
|
2672
2672
|
return C;
|
|
2673
2673
|
}), L = I(() => a.mask ? tt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), h = I(() => He(a.mask ?? "").filter(($) => $.type !== "literal").length), H = g(!1), q = () => H.value = !H.value, x = ($) => {
|
|
@@ -2721,10 +2721,10 @@ const K2 = {
|
|
|
2721
2721
|
value: L.value,
|
|
2722
2722
|
required: A(u),
|
|
2723
2723
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2724
|
-
"aria-errormessage":
|
|
2724
|
+
"aria-errormessage": c.value,
|
|
2725
2725
|
"aria-describedby": A(Ke)($.$props, $.$slots, r, y.value).value
|
|
2726
2726
|
}), null, 16, ua),
|
|
2727
|
-
P(Ue, { hintId:
|
|
2727
|
+
P(Ue, { hintId: d }, {
|
|
2728
2728
|
default: G(() => [
|
|
2729
2729
|
U($.$slots, "hint", {}, void 0, !0)
|
|
2730
2730
|
]),
|
|
@@ -2746,7 +2746,7 @@ const K2 = {
|
|
|
2746
2746
|
"aria-label": H.value ? "Hide password" : "Show password"
|
|
2747
2747
|
}), {
|
|
2748
2748
|
default: G(() => [
|
|
2749
|
-
P(
|
|
2749
|
+
P(ce, {
|
|
2750
2750
|
name: H.value ? "eyeOff" : "eye"
|
|
2751
2751
|
}, null, 8, ["name"])
|
|
2752
2752
|
]),
|
|
@@ -2754,7 +2754,7 @@ const K2 = {
|
|
|
2754
2754
|
}, 16, ["aria-label"])) : O("", !0)
|
|
2755
2755
|
], 2));
|
|
2756
2756
|
}
|
|
2757
|
-
}), nl = /* @__PURE__ */ K(
|
|
2757
|
+
}), nl = /* @__PURE__ */ K(da, [["__scopeId", "data-v-a553eb5b"]]), ca = ["data-size", "data-shape", "aria-label", "aria-busy"], va = {
|
|
2758
2758
|
key: 1,
|
|
2759
2759
|
class: "ui-avatar__loading"
|
|
2760
2760
|
}, fa = {
|
|
@@ -2775,7 +2775,7 @@ const K2 = {
|
|
|
2775
2775
|
return W(
|
|
2776
2776
|
() => o.src,
|
|
2777
2777
|
() => o.src && (t.value = "loading")
|
|
2778
|
-
), oe(() => !o.src && (t.value = "error")), (r,
|
|
2778
|
+
), oe(() => !o.src && (t.value = "error")), (r, d) => (v(), p("div", {
|
|
2779
2779
|
class: "ui-avatar",
|
|
2780
2780
|
"data-size": e.size,
|
|
2781
2781
|
"data-shape": e.shape,
|
|
@@ -2794,7 +2794,7 @@ const K2 = {
|
|
|
2794
2794
|
me(N(n.value), 1)
|
|
2795
2795
|
], !0)
|
|
2796
2796
|
]))
|
|
2797
|
-
], 8,
|
|
2797
|
+
], 8, ca));
|
|
2798
2798
|
}
|
|
2799
2799
|
}), ll = /* @__PURE__ */ K(pa, [["__scopeId", "data-v-e36c822a"]]), Ca = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], ma = ["innerHTML"], ha = ["id", "aria-disabled", "aria-selected", "onClick"], ga = ["innerHTML"], ya = /* @__PURE__ */ T({
|
|
2800
2800
|
__name: "Select",
|
|
@@ -2814,7 +2814,7 @@ const K2 = {
|
|
|
2814
2814
|
W(i, (Z) => {
|
|
2815
2815
|
Z ? document.addEventListener("mousedown", Q) : document.removeEventListener("mousedown", Q);
|
|
2816
2816
|
});
|
|
2817
|
-
const s = Fe(), l = g(!1), r = g(null),
|
|
2817
|
+
const s = Fe(), l = g(!1), r = g(null), d = I(() => a.id ?? de()), u = `${d.value}-label`, f = `${d.value}-listbox`, k = `${d.value}-error`, y = `${d.value}-hint`, c = `${d.value}-value`, m = g(null), B = g(null), L = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), h = I(() => m.value !== null ? `${f}-option-${m.value}` : void 0), H = _e(s).value, q = I(() => H ? `${y} ${d.value}-required-hint` : y), x = I(() => i.value && h.value ? h.value : void 0), _ = I(() => B.value !== null ? a.options[B.value]?.value : "");
|
|
2818
2818
|
W(
|
|
2819
2819
|
() => t.value,
|
|
2820
2820
|
() => ee()
|
|
@@ -2888,7 +2888,7 @@ const K2 = {
|
|
|
2888
2888
|
class: re(["select-box", { required: Object.keys(Z.$attrs).includes("required"), error: e.invalid, filled: L.value, focused: l.value }])
|
|
2889
2889
|
}, [
|
|
2890
2890
|
M("button", pe({
|
|
2891
|
-
id:
|
|
2891
|
+
id: d.value,
|
|
2892
2892
|
class: "select-btn",
|
|
2893
2893
|
role: "combobox",
|
|
2894
2894
|
type: "button"
|
|
@@ -2897,7 +2897,7 @@ const K2 = {
|
|
|
2897
2897
|
"aria-expanded": i.value,
|
|
2898
2898
|
"aria-controls": f,
|
|
2899
2899
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2900
|
-
"aria-labelledby": `${u} ${
|
|
2900
|
+
"aria-labelledby": `${u} ${c}`,
|
|
2901
2901
|
"aria-required": A(H),
|
|
2902
2902
|
"aria-describedby": A(Ke)(Z.$props, Z.$slots, k, q.value).value,
|
|
2903
2903
|
"aria-activedescendant": x.value,
|
|
@@ -2913,13 +2913,13 @@ const K2 = {
|
|
|
2913
2913
|
class: "label"
|
|
2914
2914
|
}, N(e.label), 1),
|
|
2915
2915
|
M("span", {
|
|
2916
|
-
id:
|
|
2916
|
+
id: c,
|
|
2917
2917
|
class: "selected-object",
|
|
2918
2918
|
"aria-live": "polite",
|
|
2919
2919
|
"aria-atomic": "true",
|
|
2920
2920
|
innerHTML: _.value
|
|
2921
2921
|
}, null, 8, ma),
|
|
2922
|
-
P(
|
|
2922
|
+
P(ce, {
|
|
2923
2923
|
name: "directionDown",
|
|
2924
2924
|
"aria-hidden": "true"
|
|
2925
2925
|
})
|
|
@@ -2958,7 +2958,7 @@ const K2 = {
|
|
|
2958
2958
|
_: 3
|
|
2959
2959
|
}),
|
|
2960
2960
|
P(je, {
|
|
2961
|
-
baseId:
|
|
2961
|
+
baseId: d.value,
|
|
2962
2962
|
isRequired: A(H)
|
|
2963
2963
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2964
2964
|
P(Ye, {
|
|
@@ -2968,7 +2968,7 @@ const K2 = {
|
|
|
2968
2968
|
}, null, 8, ["invalid", "errorMessage"])
|
|
2969
2969
|
], 2));
|
|
2970
2970
|
}
|
|
2971
|
-
}), rl = /* @__PURE__ */ K(ya, [["__scopeId", "data-v-
|
|
2971
|
+
}), rl = /* @__PURE__ */ K(ya, [["__scopeId", "data-v-bb0418d3"]]), ba = ["aria-label"], ka = ["onKeydown"], wa = {
|
|
2972
2972
|
key: 1,
|
|
2973
2973
|
class: "rs-gallery-thumbs"
|
|
2974
2974
|
}, Ma = ["aria-selected"], xa = ["onClick"], La = /* @__PURE__ */ T({
|
|
@@ -2992,11 +2992,11 @@ const K2 = {
|
|
|
2992
2992
|
}),
|
|
2993
2993
|
emits: /* @__PURE__ */ te(["change"], ["update:modelValue"]),
|
|
2994
2994
|
setup(e, { emit: o }) {
|
|
2995
|
-
const t = fe(e, "modelValue"), a = e, n = o, i = g([]), s = g("next"), l = g(null), r = `gallery-caption-${
|
|
2995
|
+
const t = fe(e, "modelValue"), a = e, n = o, i = g([]), s = g("next"), l = g(null), r = `gallery-caption-${de()}`, d = g(null), u = I(() => t.value), f = I(() => a.images[u.value]), k = (h, H) => {
|
|
2996
2996
|
h && (i.value[H] = h);
|
|
2997
2997
|
}, y = (h) => {
|
|
2998
2998
|
h !== u.value && (s.value = h > u.value ? "next" : "prev", t.value = h, n("change", h));
|
|
2999
|
-
},
|
|
2999
|
+
}, c = () => {
|
|
3000
3000
|
if (u.value === a.images.length - 1) {
|
|
3001
3001
|
a.loop && y(0);
|
|
3002
3002
|
return;
|
|
@@ -3009,7 +3009,7 @@ const K2 = {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
y(u.value - 1);
|
|
3011
3011
|
}, B = () => {
|
|
3012
|
-
|
|
3012
|
+
d.value && (l.value = d.value.offsetHeight);
|
|
3013
3013
|
}, L = () => {
|
|
3014
3014
|
l.value = null;
|
|
3015
3015
|
};
|
|
@@ -3033,13 +3033,13 @@ const K2 = {
|
|
|
3033
3033
|
}, [
|
|
3034
3034
|
M("div", {
|
|
3035
3035
|
ref_key: "previewRef",
|
|
3036
|
-
ref:
|
|
3036
|
+
ref: d,
|
|
3037
3037
|
tabindex: "0",
|
|
3038
3038
|
class: "rs-gallery-review",
|
|
3039
3039
|
style: ge(l.value ? { height: `${l.value}px` } : void 0),
|
|
3040
3040
|
onKeydown: [
|
|
3041
3041
|
ve(le(m, ["prevent"]), ["left"]),
|
|
3042
|
-
ve(le(
|
|
3042
|
+
ve(le(c, ["prevent"]), ["right"])
|
|
3043
3043
|
]
|
|
3044
3044
|
}, [
|
|
3045
3045
|
P($e, {
|
|
@@ -3090,7 +3090,7 @@ const K2 = {
|
|
|
3090
3090
|
])) : O("", !0)
|
|
3091
3091
|
], 8, ba));
|
|
3092
3092
|
}
|
|
3093
|
-
}),
|
|
3093
|
+
}), ct = /* @__PURE__ */ K(La, [["__scopeId", "data-v-dcfacff6"]]), $a = ["aria-label"], Va = ["onClick"], Ia = /* @__PURE__ */ T({
|
|
3094
3094
|
__name: "GalleryGrid",
|
|
3095
3095
|
props: {
|
|
3096
3096
|
images: {},
|
|
@@ -3143,14 +3143,14 @@ const Oe = T({
|
|
|
3143
3143
|
},
|
|
3144
3144
|
emits: ["update:open", "opened", "closed"],
|
|
3145
3145
|
setup(e, { emit: o, slots: t }) {
|
|
3146
|
-
const a = g(!1), n = g(e.open), i =
|
|
3146
|
+
const a = g(!1), n = g(e.open), i = de(), s = `modal-title-${i}`, l = `modal-desc-${i}`;
|
|
3147
3147
|
W(() => e.open, (f) => n.value = f), W(n, (f) => {
|
|
3148
3148
|
o("update:open", f), o(f ? "opened" : "closed");
|
|
3149
3149
|
});
|
|
3150
|
-
const r = () => n.value = !1,
|
|
3150
|
+
const r = () => n.value = !1, d = I(() => e.motion), u = I(() => e.size);
|
|
3151
3151
|
return ye(De, {
|
|
3152
3152
|
isOpen: n,
|
|
3153
|
-
motion:
|
|
3153
|
+
motion: d,
|
|
3154
3154
|
size: u,
|
|
3155
3155
|
close: r,
|
|
3156
3156
|
closeOnOverlay: e.closeOnOverlay,
|
|
@@ -3178,15 +3178,15 @@ const Oe = T({
|
|
|
3178
3178
|
u.setAttribute("tabindex", "-1"), u.focus();
|
|
3179
3179
|
return;
|
|
3180
3180
|
}
|
|
3181
|
-
const k = f[0], y = f[f.length - 1],
|
|
3181
|
+
const k = f[0], y = f[f.length - 1], c = (m) => {
|
|
3182
3182
|
m.key === "Tab" && (m.shiftKey && document.activeElement === k ? (m.preventDefault(), y?.focus()) : !m.shiftKey && document.activeElement === y && (m.preventDefault(), k?.focus()));
|
|
3183
3183
|
};
|
|
3184
|
-
u.addEventListener("keydown",
|
|
3185
|
-
u.removeEventListener("keydown",
|
|
3184
|
+
u.addEventListener("keydown", c), k?.focus(), s = () => {
|
|
3185
|
+
u.removeEventListener("keydown", c), s = null;
|
|
3186
3186
|
};
|
|
3187
3187
|
}, r = () => {
|
|
3188
3188
|
++at === 1 && (document.body.style.overflow = "hidden");
|
|
3189
|
-
},
|
|
3189
|
+
}, d = () => {
|
|
3190
3190
|
--at === 0 && (document.body.style.overflow = "");
|
|
3191
3191
|
};
|
|
3192
3192
|
return () => F(
|
|
@@ -3204,7 +3204,7 @@ const Oe = T({
|
|
|
3204
3204
|
a.value && (l(a.value), document.addEventListener("keydown", i));
|
|
3205
3205
|
},
|
|
3206
3206
|
onAfterLeave: () => {
|
|
3207
|
-
Ze--, document.removeEventListener("keydown", i), s?.(),
|
|
3207
|
+
Ze--, document.removeEventListener("keydown", i), s?.(), d(), Ee?.focus(), Ee = null;
|
|
3208
3208
|
}
|
|
3209
3209
|
},
|
|
3210
3210
|
{
|
|
@@ -3267,7 +3267,7 @@ const Oe = T({
|
|
|
3267
3267
|
"aria-label": "Close modal",
|
|
3268
3268
|
onClick: e.close
|
|
3269
3269
|
},
|
|
3270
|
-
F(
|
|
3270
|
+
F(ce, { name: "close", size: 32 })
|
|
3271
3271
|
);
|
|
3272
3272
|
}
|
|
3273
3273
|
});
|
|
@@ -3324,7 +3324,7 @@ const Ha = /* @__PURE__ */ T({
|
|
|
3324
3324
|
}),
|
|
3325
3325
|
P(A(mt), null, {
|
|
3326
3326
|
default: G(() => [
|
|
3327
|
-
P(
|
|
3327
|
+
P(ct, {
|
|
3328
3328
|
modelValue: o.value,
|
|
3329
3329
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
|
|
3330
3330
|
images: e.images,
|
|
@@ -3403,7 +3403,7 @@ const Ha = /* @__PURE__ */ T({
|
|
|
3403
3403
|
}
|
|
3404
3404
|
}), i = (s) => n.value = s;
|
|
3405
3405
|
return (s, l) => (v(), p("section", Ra, [
|
|
3406
|
-
e.layout === "carousel" ? (v(), J(
|
|
3406
|
+
e.layout === "carousel" ? (v(), J(ct, {
|
|
3407
3407
|
key: 0,
|
|
3408
3408
|
modelValue: n.value,
|
|
3409
3409
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => n.value = r),
|
|
@@ -3505,7 +3505,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3505
3505
|
}),
|
|
3506
3506
|
emits: /* @__PURE__ */ te(["change"], ["update:modelValue"]),
|
|
3507
3507
|
setup(e, { emit: o }) {
|
|
3508
|
-
const t = o, a = fe(e, "modelValue"), n = e, i =
|
|
3508
|
+
const t = o, a = fe(e, "modelValue"), n = e, i = de(), s = I(() => n.id ?? `checkbox-${i}`), l = g(null), r = aa(n).value, d = I(() => n.required ? !0 : void 0), u = I(() => n.triState && a.value === void 0 ? "mixed" : void 0);
|
|
3509
3509
|
W(
|
|
3510
3510
|
() => a.value,
|
|
3511
3511
|
(k) => {
|
|
@@ -3524,20 +3524,20 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3524
3524
|
}
|
|
3525
3525
|
};
|
|
3526
3526
|
return (k, y) => (v(), p("label", {
|
|
3527
|
-
class: re(["checkbox-root", { required:
|
|
3527
|
+
class: re(["checkbox-root", { required: d.value, error: e.invalid }])
|
|
3528
3528
|
}, [
|
|
3529
3529
|
M("input", {
|
|
3530
3530
|
id: s.value,
|
|
3531
3531
|
type: "checkbox",
|
|
3532
3532
|
class: "checkbox",
|
|
3533
|
-
required:
|
|
3533
|
+
required: d.value,
|
|
3534
3534
|
checked: a.value === !0,
|
|
3535
3535
|
disabled: e.disabled,
|
|
3536
3536
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3537
3537
|
"aria-disabled": A(r),
|
|
3538
3538
|
"aria-checked": u.value,
|
|
3539
|
-
onClick: y[0] || (y[0] = (
|
|
3540
|
-
onChange: y[1] || (y[1] = (
|
|
3539
|
+
onClick: y[0] || (y[0] = (c) => e.triState ? f(c) : void 0),
|
|
3540
|
+
onChange: y[1] || (y[1] = (c) => e.triState ? void 0 : f(c)),
|
|
3541
3541
|
ref_key: "inputRef",
|
|
3542
3542
|
ref: l
|
|
3543
3543
|
}, null, 40, za),
|
|
@@ -3575,7 +3575,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3575
3575
|
}),
|
|
3576
3576
|
emits: /* @__PURE__ */ te(["focus", "blur"], ["update:modelValue"]),
|
|
3577
3577
|
setup(e, { emit: o }) {
|
|
3578
|
-
const t = fe(e, "modelValue"), a = Fe(), n = Pe(), i = o, s = e, l = g(null), r = g(null),
|
|
3578
|
+
const t = fe(e, "modelValue"), a = Fe(), n = Pe(), i = o, s = e, l = g(null), r = g(null), d = de(), u = `${d}-error`, f = `${d}-hint`, k = _e(a).value, y = I(() => k ? `${f} ${d}-required-hint` : f), c = Ke(s, n, u, y.value).value, m = (L) => {
|
|
3579
3579
|
qe(l.value, r.value);
|
|
3580
3580
|
const h = L.target;
|
|
3581
3581
|
t.value = s.type === "number" ? Number(h.value) : h.value;
|
|
@@ -3600,7 +3600,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3600
3600
|
required: A(k),
|
|
3601
3601
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3602
3602
|
"aria-errormessage": B.value,
|
|
3603
|
-
"aria-describedby": A(
|
|
3603
|
+
"aria-describedby": A(c),
|
|
3604
3604
|
ref_key: "textareaRef",
|
|
3605
3605
|
ref: l
|
|
3606
3606
|
}), " ", 16, Ua),
|
|
@@ -3611,7 +3611,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3611
3611
|
_: 3
|
|
3612
3612
|
}),
|
|
3613
3613
|
P(je, {
|
|
3614
|
-
baseId: A(
|
|
3614
|
+
baseId: A(d),
|
|
3615
3615
|
isRequired: A(k)
|
|
3616
3616
|
}, null, 8, ["baseId", "isRequired"]),
|
|
3617
3617
|
P(Ye, {
|
|
@@ -3632,7 +3632,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3632
3632
|
if (!a) return [{ text: t, match: !1 }];
|
|
3633
3633
|
const n = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(n, "ig"), s = [];
|
|
3634
3634
|
let l = 0;
|
|
3635
|
-
return t.replace(i, (r,
|
|
3635
|
+
return t.replace(i, (r, d) => (d > l && s.push({ text: t.slice(l, d), match: !1 }), s.push({ text: r, match: !0 }), l = d + r.length, r)), l < t.length && s.push({ text: t.slice(l), match: !1 }), s;
|
|
3636
3636
|
};
|
|
3637
3637
|
return (t, a) => (v(!0), p(ae, null, ue(o(e.text, e.query), (n, i) => (v(), p(ae, { key: i }, [
|
|
3638
3638
|
n.match ? (v(), p("mark", Ya, N(n.text), 1)) : (v(), p("span", Wa, N(n.text), 1))
|
|
@@ -3676,42 +3676,42 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3676
3676
|
},
|
|
3677
3677
|
emits: ["valid"],
|
|
3678
3678
|
setup(e, { emit: o }) {
|
|
3679
|
-
const t = e, a = o, n = g([]), i = g(null), s = g(null), l = (y,
|
|
3679
|
+
const t = e, a = o, n = g([]), i = g(null), s = g(null), l = (y, c) => y && (n.value[c] = y);
|
|
3680
3680
|
W(
|
|
3681
3681
|
() => t.password,
|
|
3682
3682
|
() => {
|
|
3683
|
-
a("valid",
|
|
3683
|
+
a("valid", d());
|
|
3684
3684
|
}
|
|
3685
3685
|
), W(
|
|
3686
3686
|
() => t.passwordConfirmation,
|
|
3687
3687
|
() => {
|
|
3688
|
-
a("valid",
|
|
3688
|
+
a("valid", d());
|
|
3689
3689
|
}
|
|
3690
3690
|
);
|
|
3691
3691
|
const r = {
|
|
3692
3692
|
"--strength-fill-color": t.strengthFillColor
|
|
3693
|
-
},
|
|
3694
|
-
const y = u(),
|
|
3695
|
-
return y &&
|
|
3693
|
+
}, d = () => {
|
|
3694
|
+
const y = u(), c = Object.values(f()).every(Boolean);
|
|
3695
|
+
return y && c;
|
|
3696
3696
|
}, u = () => {
|
|
3697
|
-
const y = f(),
|
|
3698
|
-
return i.value && (i.value.style.width = `${B}%`), s.value && (s.value.textContent = t.labels[L] ?? "Very weak"),
|
|
3697
|
+
const y = f(), c = Object.values(y).filter(Boolean).length, m = t.password.length >= 12 ? 1 : 0, B = Math.min(100, (c + m) * 20), L = Math.min(t.labels.length - 1, Math.floor(B / 25));
|
|
3698
|
+
return i.value && (i.value.style.width = `${B}%`), s.value && (s.value.textContent = t.labels[L] ?? "Very weak"), c === t.rules.length;
|
|
3699
3699
|
}, f = () => {
|
|
3700
3700
|
const y = k();
|
|
3701
|
-
return n.value.forEach((
|
|
3702
|
-
const m =
|
|
3703
|
-
|
|
3701
|
+
return n.value.forEach((c) => {
|
|
3702
|
+
const m = c.dataset.rule, B = !!y[m];
|
|
3703
|
+
c.classList.toggle("passed", B);
|
|
3704
3704
|
}), y;
|
|
3705
3705
|
}, k = () => {
|
|
3706
3706
|
const y = {};
|
|
3707
|
-
return t.rules.forEach((
|
|
3708
|
-
y[
|
|
3707
|
+
return t.rules.forEach((c) => {
|
|
3708
|
+
y[c.key] = c.validator(
|
|
3709
3709
|
t.password,
|
|
3710
3710
|
t.passwordConfirmation
|
|
3711
3711
|
);
|
|
3712
3712
|
}), y;
|
|
3713
3713
|
};
|
|
3714
|
-
return (y,
|
|
3714
|
+
return (y, c) => (v(), p("section", Qa, [
|
|
3715
3715
|
M("ul", eo, [
|
|
3716
3716
|
(v(!0), p(ae, null, ue(t.rules, (m, B) => (v(), p("li", {
|
|
3717
3717
|
key: m.key,
|
|
@@ -3720,13 +3720,13 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3720
3720
|
ref_for: !0,
|
|
3721
3721
|
ref: (L) => l(L, B)
|
|
3722
3722
|
}, [
|
|
3723
|
-
|
|
3723
|
+
c[0] || (c[0] = M("span", { class: "rule-icon" }, "•", -1)),
|
|
3724
3724
|
me(" " + N(m.label), 1)
|
|
3725
3725
|
], 8, to))), 128))
|
|
3726
3726
|
]),
|
|
3727
3727
|
M("div", ao, [
|
|
3728
3728
|
M("div", oo, [
|
|
3729
|
-
|
|
3729
|
+
c[1] || (c[1] = M("span", null, "Força da senha", -1)),
|
|
3730
3730
|
M("span", {
|
|
3731
3731
|
ref_key: "strengthLabelRef",
|
|
3732
3732
|
ref: s
|
|
@@ -3771,18 +3771,18 @@ const lo = {
|
|
|
3771
3771
|
} : {};
|
|
3772
3772
|
return (l, r) => (v(), p("nav", lo, [
|
|
3773
3773
|
M("ol", ro, [
|
|
3774
|
-
(v(!0), p(ae, null, ue(e.items, (
|
|
3775
|
-
key:
|
|
3774
|
+
(v(!0), p(ae, null, ue(e.items, (d, u) => (v(), p("li", {
|
|
3775
|
+
key: d.to ?? d.href ?? `${d.label}-${u}`,
|
|
3776
3776
|
class: "ui-breadcrumb__item"
|
|
3777
3777
|
}, [
|
|
3778
|
-
(v(), J(Ve(n(
|
|
3778
|
+
(v(), J(Ve(n(d, u)), pe({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, s(d, u), {
|
|
3779
3779
|
"aria-posinset": u + 1,
|
|
3780
3780
|
"aria-setsize": e.items.length,
|
|
3781
3781
|
"aria-current": a(u) ? "page" : void 0,
|
|
3782
|
-
tabindex: a(u) || n(
|
|
3782
|
+
tabindex: a(u) || n(d, u) === "span" ? -1 : void 0
|
|
3783
3783
|
}), {
|
|
3784
3784
|
default: G(() => [
|
|
3785
|
-
me(N(
|
|
3785
|
+
me(N(d.label), 1)
|
|
3786
3786
|
]),
|
|
3787
3787
|
_: 2
|
|
3788
3788
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
@@ -3795,7 +3795,7 @@ const lo = {
|
|
|
3795
3795
|
])
|
|
3796
3796
|
]));
|
|
3797
3797
|
}
|
|
3798
|
-
}),
|
|
3798
|
+
}), dl = /* @__PURE__ */ K(io, [["__scopeId", "data-v-baed1592"]]), uo = ["aria-invalid", "aria-required", "disabled"], co = { class: "sr-only" }, vo = ["name", "value", "disabled", "required"], fo = {
|
|
3799
3799
|
key: 0,
|
|
3800
3800
|
class: "radio-control",
|
|
3801
3801
|
"aria-hidden": "true"
|
|
@@ -3836,7 +3836,7 @@ const lo = {
|
|
|
3836
3836
|
value: r.key,
|
|
3837
3837
|
disabled: e.disabled || r.disabled,
|
|
3838
3838
|
required: e.required,
|
|
3839
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3839
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => t.value = d)
|
|
3840
3840
|
}, null, 8, vo), [
|
|
3841
3841
|
[kt, t.value]
|
|
3842
3842
|
]),
|
|
@@ -3845,7 +3845,7 @@ const lo = {
|
|
|
3845
3845
|
], 2))), 128))
|
|
3846
3846
|
], 10, uo));
|
|
3847
3847
|
}
|
|
3848
|
-
}),
|
|
3848
|
+
}), cl = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-8f76f7f0"]]), mo = ["for"], ho = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], go = ["id", "aria-disabled", "aria-selected", "onClick"], yo = {
|
|
3849
3849
|
class: "option-value",
|
|
3850
3850
|
"aria-hidden": "true"
|
|
3851
3851
|
}, bo = { class: "option-value sr-only" }, ko = {
|
|
@@ -3887,7 +3887,7 @@ const lo = {
|
|
|
3887
3887
|
}),
|
|
3888
3888
|
emits: /* @__PURE__ */ te(["change", "select", "focus", "blur"], ["update:modelValue"]),
|
|
3889
3889
|
setup(e, { emit: o }) {
|
|
3890
|
-
const t = e, a = o, n = fe(e, "modelValue"), i = g(null), s = g(""), l = g(!1), r = g([]),
|
|
3890
|
+
const t = e, a = o, n = fe(e, "modelValue"), i = g(null), s = g(""), l = g(!1), r = g([]), d = g(null), u = g(null), f = I(() => t.id ? `${t.id}-search-history` : "search-history"), y = `${de()}-list`, c = g(!1), m = I(() => n.value !== null && n.value !== void 0 && n.value !== ""), B = I(() => d.value !== null ? `${y}-option-${d.value}` : void 0), L = I(() => l.value && B.value ? B.value : void 0), h = I(() => r.value.length > 0), H = I(() => {
|
|
3891
3891
|
if (!t.filterable) return t.options;
|
|
3892
3892
|
const b = s.value.toLowerCase();
|
|
3893
3893
|
return t.options.filter((S) => t.getValue(S).toLowerCase().includes(b));
|
|
@@ -3905,7 +3905,7 @@ const lo = {
|
|
|
3905
3905
|
{ immediate: !0 }
|
|
3906
3906
|
), W(l, async (b) => {
|
|
3907
3907
|
if (!b) {
|
|
3908
|
-
|
|
3908
|
+
d.value = null;
|
|
3909
3909
|
return;
|
|
3910
3910
|
}
|
|
3911
3911
|
H.value.length !== 0 && (await we(), Q());
|
|
@@ -3917,55 +3917,55 @@ const lo = {
|
|
|
3917
3917
|
), W(
|
|
3918
3918
|
() => t.options,
|
|
3919
3919
|
() => {
|
|
3920
|
-
n.value || (u.value = null,
|
|
3920
|
+
n.value || (u.value = null, d.value = null);
|
|
3921
3921
|
}
|
|
3922
3922
|
);
|
|
3923
3923
|
const x = (b) => {
|
|
3924
|
-
s.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0),
|
|
3924
|
+
s.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), c.value = !0, a("focus", b);
|
|
3925
3925
|
}, _ = (b) => {
|
|
3926
3926
|
const S = b.relatedTarget;
|
|
3927
|
-
i.value?.contains(S) || (l.value = !1, n.value ? C() : s.value = "",
|
|
3927
|
+
i.value?.contains(S) || (l.value = !1, n.value ? C() : s.value = "", c.value = !1, a("blur", b));
|
|
3928
3928
|
}, R = (b, S) => {
|
|
3929
3929
|
const X = i.value;
|
|
3930
3930
|
if (!X || t.isDisabled(b)) return;
|
|
3931
|
-
l.value = !1, E(s.value), u.value = S,
|
|
3931
|
+
l.value = !1, E(s.value), u.value = S, d.value = S;
|
|
3932
3932
|
const z = t.getKey(b);
|
|
3933
3933
|
z && z.toString().length > 0 ? X.classList.add("filled") : X.classList.remove("filled"), s.value = t.getValue(b), n.value = z, a("select", z);
|
|
3934
3934
|
}, V = (b) => {
|
|
3935
3935
|
if (!l.value && ["ArrowDown", "ArrowUp"].includes(b.key)) {
|
|
3936
|
-
l.value = !0,
|
|
3936
|
+
l.value = !0, d.value = d.value ?? H.value.findIndex((S) => !t.isDisabled(S)), b.preventDefault();
|
|
3937
3937
|
return;
|
|
3938
3938
|
}
|
|
3939
3939
|
if (l.value) {
|
|
3940
3940
|
if (b.key === "ArrowDown" && (D(1), b.preventDefault()), b.key === "ArrowUp" && (D(-1), b.preventDefault()), b.key === "Home") {
|
|
3941
3941
|
const S = ee();
|
|
3942
|
-
S >= 0 && (
|
|
3942
|
+
S >= 0 && (d.value = S), b.preventDefault();
|
|
3943
3943
|
}
|
|
3944
3944
|
if (b.key === "End") {
|
|
3945
3945
|
const S = Z();
|
|
3946
|
-
S >= 0 && (
|
|
3946
|
+
S >= 0 && (d.value = S), b.preventDefault();
|
|
3947
3947
|
}
|
|
3948
3948
|
if (b.key === "Enter") {
|
|
3949
|
-
if (
|
|
3950
|
-
const S = H.value[
|
|
3949
|
+
if (d.value === null) return;
|
|
3950
|
+
const S = H.value[d.value];
|
|
3951
3951
|
if (!S || t.isDisabled(S)) return;
|
|
3952
|
-
R(S,
|
|
3952
|
+
R(S, d.value), l.value = !1, b.preventDefault();
|
|
3953
3953
|
}
|
|
3954
3954
|
b.key === "Escape" && (l.value = !1);
|
|
3955
3955
|
}
|
|
3956
3956
|
}, D = (b) => {
|
|
3957
|
-
if (
|
|
3958
|
-
let S =
|
|
3957
|
+
if (d.value === null) return;
|
|
3958
|
+
let S = d.value;
|
|
3959
3959
|
do
|
|
3960
3960
|
S += b;
|
|
3961
3961
|
while (S >= 0 && S < H.value.length && t.isDisabled(H.value[S]));
|
|
3962
|
-
S >= 0 && S < H.value.length && (
|
|
3962
|
+
S >= 0 && S < H.value.length && (d.value = S);
|
|
3963
3963
|
}, $ = () => {
|
|
3964
3964
|
s.value.length === 0 && (n.value = ""), s.value.length >= t.minChars ? (a("change", s.value), l.value = !0) : l.value = !1;
|
|
3965
3965
|
}, C = () => {
|
|
3966
3966
|
if (n.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
3967
3967
|
const b = t.options.findIndex((S) => t.getKey(S) === n.value);
|
|
3968
|
-
b > -1 && (
|
|
3968
|
+
b > -1 && (d.value = b, u.value = b, s.value = t.getValue(t.options[b]));
|
|
3969
3969
|
};
|
|
3970
3970
|
W(
|
|
3971
3971
|
[() => t.options.length, () => n.value],
|
|
@@ -3985,13 +3985,13 @@ const lo = {
|
|
|
3985
3985
|
s.value = b, $();
|
|
3986
3986
|
}, Q = () => {
|
|
3987
3987
|
const b = ee();
|
|
3988
|
-
b >= 0 && (
|
|
3988
|
+
b >= 0 && (d.value = b);
|
|
3989
3989
|
}, ee = () => H.value.findIndex((b) => !t.isDisabled(b)), Z = () => {
|
|
3990
3990
|
for (let b = H.value.length - 1; b >= 0; b--) if (!t.isDisabled(H.value[b])) return b;
|
|
3991
3991
|
return -1;
|
|
3992
3992
|
};
|
|
3993
3993
|
return oe(() => C()), (b, S) => (v(), p("div", {
|
|
3994
|
-
class: re(["autocomplete", { required: A(q), error: e.invalid, "has-icon": Object.keys(b.$slots).includes("icon"), filled: m.value, focused:
|
|
3994
|
+
class: re(["autocomplete", { required: A(q), error: e.invalid, "has-icon": Object.keys(b.$slots).includes("icon"), filled: m.value, focused: c.value }]),
|
|
3995
3995
|
ref_key: "autocompleteRef",
|
|
3996
3996
|
ref: i
|
|
3997
3997
|
}, [
|
|
@@ -4031,14 +4031,14 @@ const lo = {
|
|
|
4031
4031
|
id: `${y}-option-${z}`,
|
|
4032
4032
|
key: e.getKey(X),
|
|
4033
4033
|
role: "option",
|
|
4034
|
-
class: re(["option", { "focus-visible":
|
|
4034
|
+
class: re(["option", { "focus-visible": d.value === z }]),
|
|
4035
4035
|
"aria-disabled": t.isDisabled(X) || void 0,
|
|
4036
4036
|
"aria-selected": z === u.value,
|
|
4037
4037
|
onMousedown: S[1] || (S[1] = le(() => {
|
|
4038
4038
|
}, ["prevent"])),
|
|
4039
4039
|
onClick: (Y) => !t.isDisabled(X) && R(X, z)
|
|
4040
4040
|
}, [
|
|
4041
|
-
t.isDisabled(X) ? O("", !0) : (v(), J(
|
|
4041
|
+
t.isDisabled(X) ? O("", !0) : (v(), J(ce, {
|
|
4042
4042
|
key: 0,
|
|
4043
4043
|
name: "search",
|
|
4044
4044
|
size: 22
|
|
@@ -4048,7 +4048,7 @@ const lo = {
|
|
|
4048
4048
|
value: e.getValue(X),
|
|
4049
4049
|
query: s.value,
|
|
4050
4050
|
selected: z === u.value,
|
|
4051
|
-
active: z ===
|
|
4051
|
+
active: z === d.value
|
|
4052
4052
|
}, () => [
|
|
4053
4053
|
M("div", yo, [
|
|
4054
4054
|
P(Xa, {
|
|
@@ -4076,7 +4076,7 @@ const lo = {
|
|
|
4076
4076
|
class: "option recent-item",
|
|
4077
4077
|
onClick: (z) => j(X)
|
|
4078
4078
|
}, [
|
|
4079
|
-
P(
|
|
4079
|
+
P(ce, { name: "clock" }),
|
|
4080
4080
|
M("div", xo, N(X), 1)
|
|
4081
4081
|
], 8, Mo))), 128))
|
|
4082
4082
|
], 512), [
|
|
@@ -4100,7 +4100,7 @@ const lo = {
|
|
|
4100
4100
|
onClick: w
|
|
4101
4101
|
}, {
|
|
4102
4102
|
default: G(() => [
|
|
4103
|
-
P(
|
|
4103
|
+
P(ce, {
|
|
4104
4104
|
class: "clear-search",
|
|
4105
4105
|
"aria-hidden": "true",
|
|
4106
4106
|
name: "close",
|
|
@@ -4156,7 +4156,7 @@ const xe = (e, o = "info") => {
|
|
|
4156
4156
|
const l = () => {
|
|
4157
4157
|
const u = Date.now() - i;
|
|
4158
4158
|
if (n.value = Math.max(0, 100 - u / o.duration * 100), n.value <= 0) {
|
|
4159
|
-
|
|
4159
|
+
d();
|
|
4160
4160
|
return;
|
|
4161
4161
|
}
|
|
4162
4162
|
s = requestAnimationFrame(l);
|
|
@@ -4172,7 +4172,7 @@ const xe = (e, o = "info") => {
|
|
|
4172
4172
|
() => r(),
|
|
4173
4173
|
{ immediate: !0 }
|
|
4174
4174
|
);
|
|
4175
|
-
const
|
|
4175
|
+
const d = () => {
|
|
4176
4176
|
cancelAnimationFrame(s), a.value = "closing", setTimeout(() => Ce.toasts = Ce.toasts.filter((u) => u.id !== o.id), Ro);
|
|
4177
4177
|
};
|
|
4178
4178
|
return oe(() => o.variant === "error" && o.focus && t.value?.focus()), Ie(() => cancelAnimationFrame(s)), (u, f) => (v(), p("div", {
|
|
@@ -4191,12 +4191,12 @@ const xe = (e, o = "info") => {
|
|
|
4191
4191
|
U(u.$slots, "default", {}, void 0, !0),
|
|
4192
4192
|
P(he, {
|
|
4193
4193
|
type: "button",
|
|
4194
|
-
onClick:
|
|
4194
|
+
onClick: d,
|
|
4195
4195
|
"aria-label": `Close ${e.variant} notification`,
|
|
4196
4196
|
class: "btn-sm"
|
|
4197
4197
|
}, {
|
|
4198
4198
|
default: G(() => [
|
|
4199
|
-
P(
|
|
4199
|
+
P(ce, {
|
|
4200
4200
|
name: "close",
|
|
4201
4201
|
size: 32
|
|
4202
4202
|
})
|
|
@@ -4269,14 +4269,14 @@ const pl = {
|
|
|
4269
4269
|
const t = e, a = o, n = g(), i = g();
|
|
4270
4270
|
ye("card:labelId", n), ye("card:descriptionId", i);
|
|
4271
4271
|
const s = I(() => t.clickable && t.as !== "button" && t.as !== "a"), l = () => t.clickable && a("click");
|
|
4272
|
-
return (r,
|
|
4272
|
+
return (r, d) => (v(), J(Ve(e.as), {
|
|
4273
4273
|
class: re(["rs-card", { clickable: e.clickable }]),
|
|
4274
4274
|
tabindex: s.value ? 0 : void 0,
|
|
4275
4275
|
role: s.value ? "button" : void 0,
|
|
4276
4276
|
onClick: l,
|
|
4277
4277
|
onKeydown: [
|
|
4278
|
-
|
|
4279
|
-
|
|
4278
|
+
d[0] || (d[0] = ve(le((u) => s.value && l(), ["prevent"]), ["enter"])),
|
|
4279
|
+
d[1] || (d[1] = ve(le((u) => s.value && l(), ["prevent"]), ["space"]))
|
|
4280
4280
|
],
|
|
4281
4281
|
"aria-labelledby": n.value,
|
|
4282
4282
|
"aria-describedby": i.value
|
|
@@ -4293,7 +4293,7 @@ const pl = {
|
|
|
4293
4293
|
as: { default: "div" }
|
|
4294
4294
|
},
|
|
4295
4295
|
setup(e) {
|
|
4296
|
-
const o = se("card:labelId", void 0), t = `rs-card-label-${
|
|
4296
|
+
const o = se("card:labelId", void 0), t = `rs-card-label-${de()}`;
|
|
4297
4297
|
return oe(() => o && (o.value = t)), (a, n) => (v(), J(Ve(e.as), {
|
|
4298
4298
|
id: t,
|
|
4299
4299
|
class: "rs-card-header"
|
|
@@ -4307,7 +4307,7 @@ const pl = {
|
|
|
4307
4307
|
}), ml = /* @__PURE__ */ K(No, [["__scopeId", "data-v-570794b4"]]), Fo = /* @__PURE__ */ T({
|
|
4308
4308
|
__name: "CardBody",
|
|
4309
4309
|
setup(e) {
|
|
4310
|
-
const o = se("card:descriptionId", void 0), t = `rs-card-desc-${
|
|
4310
|
+
const o = se("card:descriptionId", void 0), t = `rs-card-desc-${de()}`;
|
|
4311
4311
|
return oe(() => o && (o.value = t)), (a, n) => (v(), p("div", {
|
|
4312
4312
|
id: t,
|
|
4313
4313
|
class: "rs-card-body"
|
|
@@ -4357,9 +4357,9 @@ const pl = {
|
|
|
4357
4357
|
if (!t) throw new Error("Step component must be used inside Steps.");
|
|
4358
4358
|
const a = Pe(), n = g(null), i = g(null), s = I(() => t.orientation ?? "horizontal");
|
|
4359
4359
|
let l = null, r = null;
|
|
4360
|
-
const
|
|
4361
|
-
if (
|
|
4362
|
-
const u = I(() => o.status ? o.status :
|
|
4360
|
+
const d = se("StepIndex");
|
|
4361
|
+
if (d == null) throw new Error("StepIndex component must be used inside Steps.");
|
|
4362
|
+
const u = I(() => o.status ? o.status : d < t.current.value ? "completed" : d === t.current.value ? "active" : "pending"), f = I(() => t?.icons?.[u.value]), k = I(() => a.icon ? "slot" : o.icon ? o.icon : f.value), y = I(() => {
|
|
4363
4363
|
switch (u.value) {
|
|
4364
4364
|
case "completed":
|
|
4365
4365
|
return "Stage completed";
|
|
@@ -4370,7 +4370,7 @@ const pl = {
|
|
|
4370
4370
|
default:
|
|
4371
4371
|
return "Stage pending";
|
|
4372
4372
|
}
|
|
4373
|
-
}),
|
|
4373
|
+
}), c = I(() => {
|
|
4374
4374
|
switch (u.value) {
|
|
4375
4375
|
case "completed":
|
|
4376
4376
|
return "success";
|
|
@@ -4395,7 +4395,7 @@ const pl = {
|
|
|
4395
4395
|
});
|
|
4396
4396
|
W(
|
|
4397
4397
|
() => u.value,
|
|
4398
|
-
(q) => t.registerStepStatus(
|
|
4398
|
+
(q) => t.registerStepStatus(d, q),
|
|
4399
4399
|
{ immediate: !0 }
|
|
4400
4400
|
);
|
|
4401
4401
|
const L = () => {
|
|
@@ -4405,7 +4405,7 @@ const pl = {
|
|
|
4405
4405
|
}, h = () => {
|
|
4406
4406
|
if (!n.value || !i.value) return;
|
|
4407
4407
|
const q = i.value.getBoundingClientRect(), x = t.stepsRef.value.getBoundingClientRect(), _ = t.orientation === "vertical" ? q.top + q.height / 2 - x.top : q.left + q.width / 2 - x.left;
|
|
4408
|
-
t.registerIndicatorCenter(
|
|
4408
|
+
t.registerIndicatorCenter(d, _);
|
|
4409
4409
|
}, H = (q) => {
|
|
4410
4410
|
const x = t.orientation === "horizontal", _ = t.orientation === "vertical";
|
|
4411
4411
|
switch (q.key) {
|
|
@@ -4449,12 +4449,12 @@ const pl = {
|
|
|
4449
4449
|
"data-orientation": s.value,
|
|
4450
4450
|
"data-active": u.value === "active",
|
|
4451
4451
|
"data-completed": u.value === "completed",
|
|
4452
|
-
"aria-labelledby": `step-title-${A(
|
|
4452
|
+
"aria-labelledby": `step-title-${A(d)}`,
|
|
4453
4453
|
tabindex: u.value === "active" ? 0 : -1,
|
|
4454
4454
|
"aria-current": u.value === "active" ? "step" : void 0,
|
|
4455
|
-
"aria-posinset": A(
|
|
4455
|
+
"aria-posinset": A(d) + 1,
|
|
4456
4456
|
"aria-setsize": A(t).stepsCount.value,
|
|
4457
|
-
"aria-describedby": `step-status-${A(
|
|
4457
|
+
"aria-describedby": `step-status-${A(d)}`,
|
|
4458
4458
|
onKeydown: H
|
|
4459
4459
|
}, [
|
|
4460
4460
|
M("span", {
|
|
@@ -4466,7 +4466,7 @@ const pl = {
|
|
|
4466
4466
|
q.$slots.icon ? U(q.$slots, "icon", {
|
|
4467
4467
|
key: 0,
|
|
4468
4468
|
status: u.value
|
|
4469
|
-
}, void 0, !0) : k.value ? (v(), J(
|
|
4469
|
+
}, void 0, !0) : k.value ? (v(), J(ce, {
|
|
4470
4470
|
key: 1,
|
|
4471
4471
|
name: k.value,
|
|
4472
4472
|
class: "icon"
|
|
@@ -4484,16 +4484,16 @@ const pl = {
|
|
|
4484
4484
|
])])) : u.value === "active" ? (v(), p("span", Yo)) : O("", !0)
|
|
4485
4485
|
], 512),
|
|
4486
4486
|
M("span", {
|
|
4487
|
-
id: `step-status-${A(
|
|
4487
|
+
id: `step-status-${A(d)}`,
|
|
4488
4488
|
class: "sr-only"
|
|
4489
4489
|
}, N(y.value), 9, Wo),
|
|
4490
4490
|
M("div", Go, [
|
|
4491
4491
|
M("span", {
|
|
4492
|
-
id: `step-title-${A(
|
|
4492
|
+
id: `step-title-${A(d)}`,
|
|
4493
4493
|
class: "title"
|
|
4494
4494
|
}, N(e.title), 9, Xo),
|
|
4495
4495
|
P(W2, {
|
|
4496
|
-
variant:
|
|
4496
|
+
variant: c.value,
|
|
4497
4497
|
size: "sm"
|
|
4498
4498
|
}, {
|
|
4499
4499
|
default: G(() => [
|
|
@@ -4540,12 +4540,12 @@ const pl = {
|
|
|
4540
4540
|
}),
|
|
4541
4541
|
emits: ["update:modelValue"],
|
|
4542
4542
|
setup(e) {
|
|
4543
|
-
const o = e, t = g(0), a = Pe(), n = fe(e, "modelValue"), i = g([]), s = g(null), l = I(() => n.value ?? 0), r = `steps-description-${
|
|
4543
|
+
const o = e, t = g(0), a = Pe(), n = fe(e, "modelValue"), i = g([]), s = g(null), l = I(() => n.value ?? 0), r = `steps-description-${de()}`, d = Lt({}), u = it({});
|
|
4544
4544
|
let f = null;
|
|
4545
|
-
const k = I(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), y = I(() => Object.entries(u).filter(([, D]) => D !== "completed").length === 0),
|
|
4545
|
+
const k = I(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), y = I(() => Object.entries(u).filter(([, D]) => D !== "completed").length === 0), c = I(
|
|
4546
4546
|
() => Object.values(u).includes("error")
|
|
4547
4547
|
), m = I(() => {
|
|
4548
|
-
const D = l.value, $ =
|
|
4548
|
+
const D = l.value, $ = d;
|
|
4549
4549
|
if ($.value[0] == null || $.value[D] == null)
|
|
4550
4550
|
return o.orientation === "vertical" ? {
|
|
4551
4551
|
height: "100%",
|
|
@@ -4563,7 +4563,7 @@ const pl = {
|
|
|
4563
4563
|
width: `${w - C}px`
|
|
4564
4564
|
};
|
|
4565
4565
|
}), B = I(() => {
|
|
4566
|
-
const D = Object.values(
|
|
4566
|
+
const D = Object.values(d.value).sort((w, E) => w - E);
|
|
4567
4567
|
if (D.length < 2) return {};
|
|
4568
4568
|
const $ = D[0], C = D[D.length - 1];
|
|
4569
4569
|
return o.orientation === "vertical" ? {
|
|
@@ -4573,7 +4573,7 @@ const pl = {
|
|
|
4573
4573
|
left: `${$}px`,
|
|
4574
4574
|
right: `calc(100% - ${C}px)`
|
|
4575
4575
|
};
|
|
4576
|
-
}), L = (D, $) =>
|
|
4576
|
+
}), L = (D, $) => d.value = { ...d.value, [D]: $ };
|
|
4577
4577
|
function h(D) {
|
|
4578
4578
|
i.value.push(D), t.value = i.value.length;
|
|
4579
4579
|
}
|
|
@@ -4639,7 +4639,7 @@ const pl = {
|
|
|
4639
4639
|
}, [
|
|
4640
4640
|
M("div", {
|
|
4641
4641
|
class: "track-progress",
|
|
4642
|
-
"data-error":
|
|
4642
|
+
"data-error": c.value,
|
|
4643
4643
|
"data-completed": y.value,
|
|
4644
4644
|
style: ge(m.value)
|
|
4645
4645
|
}, null, 12, an)
|
|
@@ -4671,7 +4671,7 @@ const pl = {
|
|
|
4671
4671
|
U(t.$slots, "default", {}, void 0, !0)
|
|
4672
4672
|
], 8, ln));
|
|
4673
4673
|
}
|
|
4674
|
-
}), kl = /* @__PURE__ */ K(rn, [["__scopeId", "data-v-d56deb2b"]]), sn = ["data-align", "aria-labelledby", "aria-describedby"], un = { class: "ui-timeline-content" },
|
|
4674
|
+
}), kl = /* @__PURE__ */ K(rn, [["__scopeId", "data-v-d56deb2b"]]), sn = ["data-align", "aria-labelledby", "aria-describedby"], un = { class: "ui-timeline-content" }, dn = ["datetime"], cn = { class: "ui-timeline-date--month" }, vn = { class: "ui-timeline-date--day" }, fn = { class: "ui-timeline-date--year" }, pn = ["data-direction"], Cn = { class: "info" }, mn = ["id"], hn = { class: "addons" }, gn = /* @__PURE__ */ T({
|
|
4675
4675
|
__name: "TimelineItem",
|
|
4676
4676
|
props: {
|
|
4677
4677
|
date: {},
|
|
@@ -4684,11 +4684,11 @@ const pl = {
|
|
|
4684
4684
|
setup(e) {
|
|
4685
4685
|
const o = e, t = se("TimelineContext");
|
|
4686
4686
|
if (!t) throw new Error("TimelineItem must be used within a Timeline component");
|
|
4687
|
-
const a =
|
|
4688
|
-
const u = new Date(
|
|
4687
|
+
const a = de(), n = de(), i = I(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), s = (d) => {
|
|
4688
|
+
const u = new Date(d).getDay();
|
|
4689
4689
|
return u < 10 ? `0${u}` : u;
|
|
4690
|
-
}, l = (
|
|
4691
|
-
return (
|
|
4690
|
+
}, l = (d) => new Date(d).toLocaleString("default", { month: "short" }), r = (d) => new Date(d).getFullYear();
|
|
4691
|
+
return (d, u) => (v(), p("li", {
|
|
4692
4692
|
tabindex: "0",
|
|
4693
4693
|
class: re([i.value, "ui-timeline-item"]),
|
|
4694
4694
|
"data-align": A(t).align,
|
|
@@ -4705,16 +4705,16 @@ const pl = {
|
|
|
4705
4705
|
class: "ui-timeline-date",
|
|
4706
4706
|
datetime: e.date
|
|
4707
4707
|
}, [
|
|
4708
|
-
M("span",
|
|
4708
|
+
M("span", cn, N(l(e.date)), 1),
|
|
4709
4709
|
M("span", vn, N(s(e.date)), 1),
|
|
4710
4710
|
M("span", fn, N(r(e.date)), 1)
|
|
4711
|
-
], 8,
|
|
4711
|
+
], 8, dn)) : O("", !0),
|
|
4712
4712
|
M("div", {
|
|
4713
4713
|
class: "ui-timeline-body",
|
|
4714
4714
|
"data-direction": e.flexDirection
|
|
4715
4715
|
}, [
|
|
4716
4716
|
M("div", Cn, [
|
|
4717
|
-
U(
|
|
4717
|
+
U(d.$slots, "title", {}, () => [
|
|
4718
4718
|
(v(), J(Ve(e.titleAs ?? "h3"), {
|
|
4719
4719
|
id: A(a),
|
|
4720
4720
|
class: "ui-timeline-title"
|
|
@@ -4725,7 +4725,7 @@ const pl = {
|
|
|
4725
4725
|
_: 1
|
|
4726
4726
|
}, 8, ["id"]))
|
|
4727
4727
|
], !0),
|
|
4728
|
-
U(
|
|
4728
|
+
U(d.$slots, "description", {}, () => [
|
|
4729
4729
|
e.description ? (v(), p("p", {
|
|
4730
4730
|
key: 0,
|
|
4731
4731
|
id: A(n),
|
|
@@ -4734,7 +4734,7 @@ const pl = {
|
|
|
4734
4734
|
], !0)
|
|
4735
4735
|
]),
|
|
4736
4736
|
M("div", hn, [
|
|
4737
|
-
U(
|
|
4737
|
+
U(d.$slots, "default", {}, void 0, !0)
|
|
4738
4738
|
])
|
|
4739
4739
|
], 8, pn)
|
|
4740
4740
|
])
|
|
@@ -4769,14 +4769,14 @@ const pl = {
|
|
|
4769
4769
|
}),
|
|
4770
4770
|
emits: ["update:modelValue"],
|
|
4771
4771
|
setup(e) {
|
|
4772
|
-
const o = fe(e, "modelValue"), t = e, a = g(0), n = g(0), i = g(0), s = g(0), l = g(0), r = g(0),
|
|
4772
|
+
const o = fe(e, "modelValue"), t = e, a = g(0), n = g(0), i = g(0), s = g(0), l = g(0), r = g(0), d = g(!1), u = g(!1), f = g(0), k = g([]), y = g(1), c = g(o.value), m = g(null), B = g(null);
|
|
4773
4773
|
let L = null, h = null;
|
|
4774
4774
|
W(
|
|
4775
4775
|
() => o.value,
|
|
4776
|
-
(z) =>
|
|
4776
|
+
(z) => c.value = z
|
|
4777
4777
|
);
|
|
4778
|
-
const H = I(() => k.value[
|
|
4779
|
-
const z =
|
|
4778
|
+
const H = I(() => k.value[c.value] ?? void 0), q = I(() => Math.floor(c.value / y.value)), x = I(() => Math.ceil(j.value / y.value)), _ = I(() => Math.max(0, j.value - y.value)), R = I(() => {
|
|
4779
|
+
const z = c.value * (100 / y.value), Y = u.value && B.value ? i.value / B.value.clientWidth * 100 : 0;
|
|
4780
4780
|
return {
|
|
4781
4781
|
transform: `translateX(calc(-${z}% + ${Y}%))`,
|
|
4782
4782
|
transition: u.value ? "none" : "transform 300ms ease"
|
|
@@ -4791,12 +4791,12 @@ const pl = {
|
|
|
4791
4791
|
Math.max(z, 0),
|
|
4792
4792
|
_.value
|
|
4793
4793
|
);
|
|
4794
|
-
|
|
4795
|
-
}, D = () => V(
|
|
4794
|
+
c.value = Y, o.value = Y;
|
|
4795
|
+
}, D = () => V(c.value + y.value), $ = () => V(c.value - y.value), C = (z) => {
|
|
4796
4796
|
z.key === "ArrowRight" ? D() : z.key === "ArrowLeft" && $();
|
|
4797
4797
|
}, w = (z) => (k.value.includes(z) || k.value.push(z), k.value.indexOf(z)), E = (z) => k.value = k.value.filter((Y) => Y !== z), j = I(() => k.value.length), Q = () => {
|
|
4798
4798
|
!t.autoplay || L !== null || (L = window.setInterval(() => {
|
|
4799
|
-
|
|
4799
|
+
d.value || D();
|
|
4800
4800
|
}, t.autoplayDelay));
|
|
4801
4801
|
}, ee = () => {
|
|
4802
4802
|
L !== null && (clearInterval(L), L = null);
|
|
@@ -4808,7 +4808,7 @@ const pl = {
|
|
|
4808
4808
|
for (const [ne, ke] of Y) z >= ne && (ie = ke);
|
|
4809
4809
|
return ie;
|
|
4810
4810
|
}, b = (z) => {
|
|
4811
|
-
z.button === 0 && (u.value = !0, n.value = z.clientX, a.value = z.clientX, r.value = z.clientX, i.value = 0, s.value = performance.now(), l.value = 0, f.value =
|
|
4811
|
+
z.button === 0 && (u.value = !0, n.value = z.clientX, a.value = z.clientX, r.value = z.clientX, i.value = 0, s.value = performance.now(), l.value = 0, f.value = c.value, B.value?.setPointerCapture(z.pointerId), ee(), B.value.style.userSelect = "");
|
|
4812
4812
|
}, S = (z) => {
|
|
4813
4813
|
if (!u.value) return;
|
|
4814
4814
|
const Y = performance.now(), ie = z.clientX - a.value, ne = Y - s.value;
|
|
@@ -4832,10 +4832,10 @@ const pl = {
|
|
|
4832
4832
|
z ? Q() : ee();
|
|
4833
4833
|
},
|
|
4834
4834
|
{ immediate: !0 }
|
|
4835
|
-
), W(y, () =>
|
|
4835
|
+
), W(y, () => c.value = Math.min(c.value, _.value)), ye("CarouselContext", {
|
|
4836
4836
|
register: w,
|
|
4837
4837
|
unregister: E,
|
|
4838
|
-
activeIndex:
|
|
4838
|
+
activeIndex: c,
|
|
4839
4839
|
slideCount: j,
|
|
4840
4840
|
deltaX: i,
|
|
4841
4841
|
itemsPerView: t.itemsPerView instanceof Object ? y : g(t.itemsPerView)
|
|
@@ -4850,10 +4850,10 @@ const pl = {
|
|
|
4850
4850
|
"aria-activedescendant": H.value,
|
|
4851
4851
|
style: ge({ "--items-per-view": y.value }),
|
|
4852
4852
|
onKeydown: C,
|
|
4853
|
-
onMouseenter: Y[0] || (Y[0] = (ie) =>
|
|
4854
|
-
onMouseleave: Y[1] || (Y[1] = (ie) =>
|
|
4855
|
-
onFocusin: Y[2] || (Y[2] = (ie) =>
|
|
4856
|
-
onFocusout: Y[3] || (Y[3] = (ie) =>
|
|
4853
|
+
onMouseenter: Y[0] || (Y[0] = (ie) => d.value = !0),
|
|
4854
|
+
onMouseleave: Y[1] || (Y[1] = (ie) => d.value = !1),
|
|
4855
|
+
onFocusin: Y[2] || (Y[2] = (ie) => d.value = !0),
|
|
4856
|
+
onFocusout: Y[3] || (Y[3] = (ie) => d.value = !1)
|
|
4857
4857
|
}, [
|
|
4858
4858
|
Y[4] || (Y[4] = M("span", {
|
|
4859
4859
|
id: "carousel-instructions",
|
|
@@ -4873,14 +4873,14 @@ const pl = {
|
|
|
4873
4873
|
U(z.$slots, "default", {}, void 0, !0)
|
|
4874
4874
|
], 36)
|
|
4875
4875
|
]),
|
|
4876
|
-
M("span", kn, " Slide " + N(Math.floor(
|
|
4876
|
+
M("span", kn, " Slide " + N(Math.floor(c.value / y.value) + 1) + " of " + N(x.value), 1),
|
|
4877
4877
|
M("button", {
|
|
4878
4878
|
type: "button",
|
|
4879
4879
|
class: "carousel-control prev",
|
|
4880
4880
|
"aria-label": "Previous slide",
|
|
4881
4881
|
onClick: $
|
|
4882
4882
|
}, [
|
|
4883
|
-
P(
|
|
4883
|
+
P(ce, { name: "directionDown" })
|
|
4884
4884
|
]),
|
|
4885
4885
|
M("button", {
|
|
4886
4886
|
type: "button",
|
|
@@ -4888,14 +4888,14 @@ const pl = {
|
|
|
4888
4888
|
"aria-label": "Next slide",
|
|
4889
4889
|
onClick: D
|
|
4890
4890
|
}, [
|
|
4891
|
-
P(
|
|
4891
|
+
P(ce, { name: "directionDown" })
|
|
4892
4892
|
]),
|
|
4893
4893
|
e.showIndicators ? (v(), p("div", wn, [
|
|
4894
4894
|
(v(!0), p(ae, null, ue(x.value, (ie, ne) => (v(), p("button", {
|
|
4895
4895
|
role: "tab",
|
|
4896
4896
|
type: "button",
|
|
4897
4897
|
key: ne,
|
|
4898
|
-
class: re(["indicator", { active: ne === Math.floor(
|
|
4898
|
+
class: re(["indicator", { active: ne === Math.floor(c.value / y.value) }]),
|
|
4899
4899
|
"aria-label": `Go to slide ${ne + 1}`,
|
|
4900
4900
|
"aria-selected": ne === q.value,
|
|
4901
4901
|
"aria-current": ne === q.value,
|
|
@@ -4913,7 +4913,7 @@ const pl = {
|
|
|
4913
4913
|
setup(e) {
|
|
4914
4914
|
const o = se("CarouselContext");
|
|
4915
4915
|
if (!o) throw new Error("CarouselItem must be used inside a Carousel");
|
|
4916
|
-
const t = "carousel-item-" +
|
|
4916
|
+
const t = "carousel-item-" + de(), a = g(0), n = I(() => Math.abs(o.deltaX.value) > 5), i = I(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
|
|
4917
4917
|
return oe(() => a.value = o.register(t)), be(() => o.unregister(t)), (s, l) => (v(), p("div", {
|
|
4918
4918
|
role: "group",
|
|
4919
4919
|
class: "carousel-item",
|
|
@@ -4943,37 +4943,37 @@ const pl = {
|
|
|
4943
4943
|
emits: ["update:modelValue"],
|
|
4944
4944
|
setup(e, { emit: o, slots: t }) {
|
|
4945
4945
|
const a = g(e.modelValue ?? e.defaultValue), n = g(!1), i = g([]), s = g("forward"), l = g();
|
|
4946
|
-
W(a, (
|
|
4947
|
-
!
|
|
4948
|
-
document.getElementById(`tab-${
|
|
4946
|
+
W(a, (c) => {
|
|
4947
|
+
!c || !n.value || requestAnimationFrame(() => {
|
|
4948
|
+
document.getElementById(`tab-${c}`)?.focus(), n.value = !1;
|
|
4949
4949
|
});
|
|
4950
4950
|
}), W(
|
|
4951
4951
|
() => e.modelValue,
|
|
4952
|
-
(
|
|
4953
|
-
|
|
4952
|
+
(c) => {
|
|
4953
|
+
c !== void 0 && (a.value = c);
|
|
4954
4954
|
}
|
|
4955
|
-
), W(i, (
|
|
4956
|
-
!a.value &&
|
|
4955
|
+
), W(i, (c) => {
|
|
4956
|
+
!a.value && c.length && (a.value = c[0]);
|
|
4957
4957
|
});
|
|
4958
|
-
const r = (
|
|
4958
|
+
const r = (c, m) => i.value[m] = c, d = (c) => {
|
|
4959
4959
|
const m = i.value.filter(Boolean);
|
|
4960
4960
|
if (!m.length) return;
|
|
4961
4961
|
const B = a.value;
|
|
4962
4962
|
if (!B) {
|
|
4963
|
-
a.value =
|
|
4963
|
+
a.value = c, o("update:modelValue", c);
|
|
4964
4964
|
return;
|
|
4965
4965
|
}
|
|
4966
|
-
const L = m.indexOf(B), h = m.indexOf(
|
|
4966
|
+
const L = m.indexOf(B), h = m.indexOf(c);
|
|
4967
4967
|
if (L === -1 || h === -1) {
|
|
4968
|
-
a.value =
|
|
4968
|
+
a.value = c, o("update:modelValue", c);
|
|
4969
4969
|
return;
|
|
4970
4970
|
}
|
|
4971
|
-
L !== -1 && h !== -1 && (s.value = h > L ? "forward" : "backward"), B !==
|
|
4972
|
-
}, u = I(() => s.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), f = (
|
|
4973
|
-
|
|
4974
|
-
}, k = (
|
|
4975
|
-
if (
|
|
4976
|
-
const m =
|
|
4971
|
+
L !== -1 && h !== -1 && (s.value = h > L ? "forward" : "backward"), B !== c && (a.value = c, o("update:modelValue", c));
|
|
4972
|
+
}, u = I(() => s.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), f = (c) => {
|
|
4973
|
+
c instanceof HTMLElement && l.value && (l.value.style.height = `${c.offsetHeight}px`);
|
|
4974
|
+
}, k = (c) => {
|
|
4975
|
+
if (c instanceof HTMLElement && l.value) {
|
|
4976
|
+
const m = c.offsetHeight;
|
|
4977
4977
|
requestAnimationFrame(() => {
|
|
4978
4978
|
l.value && (l.value.style.height = `${m}px`);
|
|
4979
4979
|
});
|
|
@@ -4983,7 +4983,7 @@ const pl = {
|
|
|
4983
4983
|
};
|
|
4984
4984
|
return ye(Re, {
|
|
4985
4985
|
activeValue: a,
|
|
4986
|
-
setValue:
|
|
4986
|
+
setValue: d,
|
|
4987
4987
|
registerTrigger: r,
|
|
4988
4988
|
direction: s,
|
|
4989
4989
|
activationMode: g(e.activationMode),
|
|
@@ -4992,8 +4992,8 @@ const pl = {
|
|
|
4992
4992
|
contentWrapperRef: l,
|
|
4993
4993
|
focusOnChange: n
|
|
4994
4994
|
}), () => {
|
|
4995
|
-
const
|
|
4996
|
-
|
|
4995
|
+
const c = t.default?.() || [], m = [], B = [];
|
|
4996
|
+
c.forEach((h) => {
|
|
4997
4997
|
h.type?.name === "TabsContent" ? B.push(h) : m.push(h);
|
|
4998
4998
|
});
|
|
4999
4999
|
const L = B.find((h) => h.props?.value === a.value);
|
|
@@ -5132,7 +5132,7 @@ const pl = {
|
|
|
5132
5132
|
__name: "Dropdown",
|
|
5133
5133
|
setup(e) {
|
|
5134
5134
|
let o = 0;
|
|
5135
|
-
const t = g(!1), a = g(null), n = g({}), i = `dropdown-${
|
|
5135
|
+
const t = g(!1), a = g(null), n = g({}), i = `dropdown-${de()}`, s = `${i}-menu`, l = `${i}-trigger`, r = () => t.value = !0, d = () => {
|
|
5136
5136
|
t.value = !1, n.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
|
|
5137
5137
|
}, u = () => t.value = !t.value, f = (h) => {
|
|
5138
5138
|
const H = `dropdown-item-${o++}`;
|
|
@@ -5143,7 +5143,7 @@ const pl = {
|
|
|
5143
5143
|
}, y = () => {
|
|
5144
5144
|
const h = Object.keys(n.value)[0];
|
|
5145
5145
|
h && k(h);
|
|
5146
|
-
},
|
|
5146
|
+
}, c = () => {
|
|
5147
5147
|
const h = Object.keys(n.value), H = h[h.length - 1];
|
|
5148
5148
|
H && k(H);
|
|
5149
5149
|
}, m = (h) => {
|
|
@@ -5155,7 +5155,7 @@ const pl = {
|
|
|
5155
5155
|
}, L = (h) => Object.keys(n.value).indexOf(h);
|
|
5156
5156
|
return ye("DropdownContext", {
|
|
5157
5157
|
open: r,
|
|
5158
|
-
close:
|
|
5158
|
+
close: d,
|
|
5159
5159
|
toggle: u,
|
|
5160
5160
|
isOpen: t,
|
|
5161
5161
|
registerItem: f,
|
|
@@ -5163,7 +5163,7 @@ const pl = {
|
|
|
5163
5163
|
focusNextItem: m,
|
|
5164
5164
|
focusPrevItem: B,
|
|
5165
5165
|
focusFirstItem: y,
|
|
5166
|
-
focusLastItem:
|
|
5166
|
+
focusLastItem: c,
|
|
5167
5167
|
triggerRef: a,
|
|
5168
5168
|
menuId: s,
|
|
5169
5169
|
triggerId: l
|
|
@@ -5195,7 +5195,7 @@ const pl = {
|
|
|
5195
5195
|
}, {
|
|
5196
5196
|
default: G(() => [
|
|
5197
5197
|
U(i.$slots, "default", {}, void 0, !0),
|
|
5198
|
-
o.variant === "button" ? (v(), J(
|
|
5198
|
+
o.variant === "button" ? (v(), J(ce, {
|
|
5199
5199
|
key: 0,
|
|
5200
5200
|
name: "directionDown"
|
|
5201
5201
|
})) : O("", !0)
|
|
@@ -5214,16 +5214,16 @@ const pl = {
|
|
|
5214
5214
|
}, i = (l) => l.key === "Escape" && o.close(), s = () => {
|
|
5215
5215
|
const l = o.triggerRef.value, r = t.value;
|
|
5216
5216
|
if (!l || !r) return;
|
|
5217
|
-
const
|
|
5217
|
+
const d = 16, u = l.getBoundingClientRect(), f = r.getBoundingClientRect();
|
|
5218
5218
|
let k = u.bottom, y = u.left;
|
|
5219
5219
|
y = Math.min(
|
|
5220
|
-
Math.max(
|
|
5221
|
-
window.innerWidth - f.width -
|
|
5220
|
+
Math.max(d, y),
|
|
5221
|
+
window.innerWidth - f.width - d
|
|
5222
5222
|
);
|
|
5223
|
-
const
|
|
5224
|
-
|
|
5225
|
-
Math.max(
|
|
5226
|
-
window.innerHeight - f.height -
|
|
5223
|
+
const c = window.innerHeight - u.bottom, m = u.top;
|
|
5224
|
+
c < f.height && m > f.height && (k = u.top - f.height), k = Math.min(
|
|
5225
|
+
Math.max(d, k),
|
|
5226
|
+
window.innerHeight - f.height - d
|
|
5227
5227
|
), a.value = {
|
|
5228
5228
|
"--dropdown-menu-position": "fixed",
|
|
5229
5229
|
"--dropdown-menu-top": `${k}px`,
|
|
@@ -5287,12 +5287,12 @@ const pl = {
|
|
|
5287
5287
|
return k.charAt(0).toUpperCase() + k.slice(1);
|
|
5288
5288
|
}), l = I(() => {
|
|
5289
5289
|
const k = new Date(2021, 5, 6);
|
|
5290
|
-
return Array.from({ length: 7 }).map((y,
|
|
5290
|
+
return Array.from({ length: 7 }).map((y, c) => {
|
|
5291
5291
|
const m = new Date(k);
|
|
5292
|
-
return m.setDate(k.getDate() + (
|
|
5292
|
+
return m.setDate(k.getDate() + (c + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(m).replace(".", "");
|
|
5293
5293
|
});
|
|
5294
5294
|
}), r = I(() => {
|
|
5295
|
-
const k = n.value.getFullYear(), y = n.value.getMonth(),
|
|
5295
|
+
const k = n.value.getFullYear(), y = n.value.getMonth(), c = new Date(k, y, 1), m = new Date(k, y + 1, 0), B = (c.getDay() - i + 7) % 7, L = m.getDate(), h = [];
|
|
5296
5296
|
for (let H = 0; H < B; H++) h.push(null);
|
|
5297
5297
|
for (let H = 1; H <= L; H++) h.push(new Date(k, y, H));
|
|
5298
5298
|
return h;
|
|
@@ -5321,8 +5321,8 @@ const pl = {
|
|
|
5321
5321
|
}, st = (e, o) => {
|
|
5322
5322
|
const t = o.replace("DD", "(?<day>\\d{2})").replace("MM", "(?<month>\\d{2})").replace("YYYY", "(?<year>\\d{4})").replace("HH", "(?<hour>\\d{2})").replace("mm", "(?<minute>\\d{2})").replace("ss", "(?<second>\\d{2})"), a = new RegExp(`^${t}$`), n = e.match(a);
|
|
5323
5323
|
if (!n?.groups) return null;
|
|
5324
|
-
const i = Number(n.groups.day ?? 1), s = Number(n.groups.month ?? 1), l = Number(n.groups.year ?? 1970), r = Number(n.groups.hour ?? 0),
|
|
5325
|
-
return An(i, s, l) ? new Date(l, s - 1, i, r,
|
|
5324
|
+
const i = Number(n.groups.day ?? 1), s = Number(n.groups.month ?? 1), l = Number(n.groups.year ?? 1970), r = Number(n.groups.hour ?? 0), d = Number(n.groups.minute ?? 0), u = Number(n.groups.second ?? 0);
|
|
5325
|
+
return An(i, s, l) ? new Date(l, s - 1, i, r, d, u, 0) : null;
|
|
5326
5326
|
};
|
|
5327
5327
|
function An(e, o, t, a = 1900, n = 2100) {
|
|
5328
5328
|
if (!Number.isInteger(e) || !Number.isInteger(o) || !Number.isInteger(t) || o < 1 || o > 12 || t < a || t > n) return !1;
|
|
@@ -5339,7 +5339,7 @@ const Tn = (e, o) => {
|
|
|
5339
5339
|
const l = s.length, r = t.slice(i, i + l);
|
|
5340
5340
|
if (!r) break;
|
|
5341
5341
|
if (n += r, i += r.length, i < t.length) {
|
|
5342
|
-
const
|
|
5342
|
+
const d = o.indexOf(s) + s.length, u = o[d];
|
|
5343
5343
|
u && !u.match(/[DMYHms]/) && (n += u);
|
|
5344
5344
|
}
|
|
5345
5345
|
}
|
|
@@ -5372,12 +5372,12 @@ const Tn = (e, o) => {
|
|
|
5372
5372
|
emits: /* @__PURE__ */ te(["update:open"], ["update:modelValue"]),
|
|
5373
5373
|
setup(e, { emit: o }) {
|
|
5374
5374
|
const t = fe(e, "modelValue"), a = o, n = e, i = g(!1), s = g(""), l = g(null), r = g(null), {
|
|
5375
|
-
monthLabel:
|
|
5375
|
+
monthLabel: d,
|
|
5376
5376
|
weekDays: u,
|
|
5377
5377
|
currentMonth: f,
|
|
5378
5378
|
days: k,
|
|
5379
5379
|
nextMonth: y,
|
|
5380
|
-
prevMonth:
|
|
5380
|
+
prevMonth: c,
|
|
5381
5381
|
select: m
|
|
5382
5382
|
} = Sn({
|
|
5383
5383
|
modelValue: t.value,
|
|
@@ -5469,7 +5469,7 @@ const Tn = (e, o) => {
|
|
|
5469
5469
|
disabled: e.disabled || void 0
|
|
5470
5470
|
}, {
|
|
5471
5471
|
default: G(() => [
|
|
5472
|
-
P(
|
|
5472
|
+
P(ce, { name: "calendar" })
|
|
5473
5473
|
]),
|
|
5474
5474
|
_: 1
|
|
5475
5475
|
}, 8, ["disabled"]),
|
|
@@ -5480,13 +5480,15 @@ const Tn = (e, o) => {
|
|
|
5480
5480
|
i.value ? (v(), p("div", qn, [
|
|
5481
5481
|
M("header", On, [
|
|
5482
5482
|
M("button", {
|
|
5483
|
+
type: "button",
|
|
5483
5484
|
onClick: D[0] || (D[0] = //@ts-ignore
|
|
5484
|
-
(...$) => A(
|
|
5485
|
+
(...$) => A(c) && A(c)(...$)),
|
|
5485
5486
|
class: "btn__prev_month",
|
|
5486
5487
|
"aria-label": "Previous month"
|
|
5487
5488
|
}, "‹"),
|
|
5488
|
-
M("span", Nn, N(A(
|
|
5489
|
+
M("span", Nn, N(A(d)), 1),
|
|
5489
5490
|
M("button", {
|
|
5491
|
+
type: "button",
|
|
5490
5492
|
onClick: D[1] || (D[1] = //@ts-ignore
|
|
5491
5493
|
(...$) => A(y) && A(y)(...$)),
|
|
5492
5494
|
class: "btn__next_month",
|
|
@@ -5525,7 +5527,7 @@ const Tn = (e, o) => {
|
|
|
5525
5527
|
])) : O("", !0)
|
|
5526
5528
|
], 2));
|
|
5527
5529
|
}
|
|
5528
|
-
}), jn = /* @__PURE__ */ K(Un, [["__scopeId", "data-v-
|
|
5530
|
+
}), jn = /* @__PURE__ */ K(Un, [["__scopeId", "data-v-83c4dfc2"]]), Yn = {
|
|
5529
5531
|
key: 0,
|
|
5530
5532
|
class: "time-panel",
|
|
5531
5533
|
role: "group",
|
|
@@ -5550,28 +5552,28 @@ const Tn = (e, o) => {
|
|
|
5550
5552
|
}),
|
|
5551
5553
|
emits: ["update:modelValue"],
|
|
5552
5554
|
setup(e) {
|
|
5553
|
-
const o = fe(e, "modelValue"), t = e, a =
|
|
5555
|
+
const o = fe(e, "modelValue"), t = e, a = de(), n = g(!1), i = g(null), s = I(() => t.format.includes("HH")), l = I(() => t.format.includes("mm")), r = I(() => t.format.includes("ss")), d = g(o.value ?? null), u = g(o.value?.getHours() ?? (s.value ? 0 : void 0)), f = g(o.value?.getMinutes() ?? (l.value ? 0 : void 0)), k = g(o.value?.getSeconds() ?? (r.value ? 0 : void 0));
|
|
5554
5556
|
W(o, (L) => {
|
|
5555
5557
|
if (L) {
|
|
5556
5558
|
const h = new Date(L);
|
|
5557
|
-
|
|
5559
|
+
d.value = h, u.value = h.getHours(), f.value = h.getMinutes(), k.value = h.getSeconds();
|
|
5558
5560
|
} else
|
|
5559
|
-
|
|
5560
|
-
}, { immediate: !0 }), W(
|
|
5561
|
+
d.value = null, u.value = 0, f.value = 0, k.value = 0;
|
|
5562
|
+
}, { immediate: !0 }), W(d, (L) => {
|
|
5561
5563
|
if (!L) return;
|
|
5562
5564
|
const h = L.getHours(), H = L.getMinutes(), q = L.getSeconds();
|
|
5563
5565
|
h !== u.value && (u.value = h), H !== f.value && (f.value = H), q !== k.value && (k.value = q);
|
|
5564
|
-
}, { immediate: !0 }), W([
|
|
5565
|
-
if (!
|
|
5566
|
+
}, { immediate: !0 }), W([d, u, f, k], () => {
|
|
5567
|
+
if (!d.value) {
|
|
5566
5568
|
o.value = null;
|
|
5567
5569
|
return;
|
|
5568
5570
|
}
|
|
5569
|
-
const L = Math.min(Math.max(u.value ?? 0, 0), 23), h = Math.min(Math.max(f.value ?? 0, 0), 59), H = Math.min(Math.max(k.value ?? 0, 0), 59), q = new Date(
|
|
5571
|
+
const L = Math.min(Math.max(u.value ?? 0, 0), 23), h = Math.min(Math.max(f.value ?? 0, 0), 59), H = Math.min(Math.max(k.value ?? 0, 0), 59), q = new Date(d.value);
|
|
5570
5572
|
q.setHours(L, h, H, 0), (!o.value || o.value.getTime() !== q.getTime()) && (o.value = q);
|
|
5571
5573
|
});
|
|
5572
5574
|
const y = (L) => {
|
|
5573
5575
|
i.value && (i.value.contains(L.target) || (n.value = !1));
|
|
5574
|
-
},
|
|
5576
|
+
}, c = (L) => {
|
|
5575
5577
|
const h = Number(L.target.value);
|
|
5576
5578
|
isNaN(h) || h < 0 ? u.value = 0 : h > 23 ? u.value = 23 : u.value = h;
|
|
5577
5579
|
}, m = (L) => {
|
|
@@ -5591,10 +5593,11 @@ const Tn = (e, o) => {
|
|
|
5591
5593
|
ref: i
|
|
5592
5594
|
}, [
|
|
5593
5595
|
P(jn, pe(L.$attrs, {
|
|
5594
|
-
modelValue:
|
|
5595
|
-
"onUpdate:modelValue": h[3] || (h[3] = (H) =>
|
|
5596
|
+
modelValue: d.value,
|
|
5597
|
+
"onUpdate:modelValue": h[3] || (h[3] = (H) => d.value = H),
|
|
5596
5598
|
open: n.value,
|
|
5597
5599
|
"onUpdate:open": h[4] || (h[4] = (H) => n.value = H),
|
|
5600
|
+
id: t.id,
|
|
5598
5601
|
invalid: e.invalid,
|
|
5599
5602
|
locale: e.locale,
|
|
5600
5603
|
format: e.format,
|
|
@@ -5615,7 +5618,7 @@ const Tn = (e, o) => {
|
|
|
5615
5618
|
"aria-valuemin": "0",
|
|
5616
5619
|
"aria-valuemax": "23",
|
|
5617
5620
|
"aria-valuenow": u.value,
|
|
5618
|
-
onInput:
|
|
5621
|
+
onInput: c
|
|
5619
5622
|
}, null, 40, Wn)), [
|
|
5620
5623
|
[
|
|
5621
5624
|
Ae,
|
|
@@ -5669,10 +5672,10 @@ const Tn = (e, o) => {
|
|
|
5669
5672
|
])) : O("", !0)
|
|
5670
5673
|
]),
|
|
5671
5674
|
_: 1
|
|
5672
|
-
}, 16, ["modelValue", "open", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
|
|
5675
|
+
}, 16, ["modelValue", "open", "id", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
|
|
5673
5676
|
], 512));
|
|
5674
5677
|
}
|
|
5675
|
-
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-
|
|
5678
|
+
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-870f6dd9"]]), Sl = T({
|
|
5676
5679
|
name: "Table",
|
|
5677
5680
|
props: {
|
|
5678
5681
|
columns: {
|
|
@@ -5701,9 +5704,9 @@ const Tn = (e, o) => {
|
|
|
5701
5704
|
setup(e, { emit: o, slots: t }) {
|
|
5702
5705
|
const a = (r) => {
|
|
5703
5706
|
if (!r.sortable) return;
|
|
5704
|
-
const
|
|
5705
|
-
o("update:sort", { key: r.key, direction:
|
|
5706
|
-
}, n = () => window.matchMedia("(max-width: 640px)").matches, i = (r,
|
|
5707
|
+
const d = e.sort?.key === r.key && e.sort.direction === "asc" ? "desc" : "asc";
|
|
5708
|
+
o("update:sort", { key: r.key, direction: d });
|
|
5709
|
+
}, n = () => window.matchMedia("(max-width: 640px)").matches, i = (r, d) => d.split(".").reduce((u, f) => u?.[f], r), s = () => F(
|
|
5707
5710
|
"div",
|
|
5708
5711
|
{
|
|
5709
5712
|
class: "rs-table-mobile",
|
|
@@ -5711,10 +5714,10 @@ const Tn = (e, o) => {
|
|
|
5711
5714
|
"aria-busy": e.loading || void 0
|
|
5712
5715
|
},
|
|
5713
5716
|
e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
|
|
5714
|
-
(r,
|
|
5717
|
+
(r, d) => F(
|
|
5715
5718
|
"div",
|
|
5716
5719
|
{
|
|
5717
|
-
key: r.id ??
|
|
5720
|
+
key: r.id ?? d,
|
|
5718
5721
|
class: "rs-table-card",
|
|
5719
5722
|
role: e.rowClickable ? "button" : "listitem",
|
|
5720
5723
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
@@ -5778,8 +5781,8 @@ const Tn = (e, o) => {
|
|
|
5778
5781
|
"aria-sort": r.sortable ? e.sort?.key === r.key ? e.sort.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
5779
5782
|
tabindex: r.sortable ? 0 : void 0,
|
|
5780
5783
|
onClick: r.sortable ? () => a(r) : void 0,
|
|
5781
|
-
onKeydown: r.sortable ? (
|
|
5782
|
-
(
|
|
5784
|
+
onKeydown: r.sortable ? (d) => {
|
|
5785
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), a(r));
|
|
5783
5786
|
} : void 0,
|
|
5784
5787
|
scope: "col"
|
|
5785
5788
|
},
|
|
@@ -5792,7 +5795,7 @@ const Tn = (e, o) => {
|
|
|
5792
5795
|
r.header
|
|
5793
5796
|
),
|
|
5794
5797
|
r.sortable ? F(
|
|
5795
|
-
|
|
5798
|
+
ce,
|
|
5796
5799
|
{
|
|
5797
5800
|
name: e.sort?.key === r.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
|
|
5798
5801
|
size: 16
|
|
@@ -5832,10 +5835,10 @@ const Tn = (e, o) => {
|
|
|
5832
5835
|
]
|
|
5833
5836
|
)
|
|
5834
5837
|
] : e.data.map(
|
|
5835
|
-
(r,
|
|
5838
|
+
(r, d) => F(
|
|
5836
5839
|
"tr",
|
|
5837
5840
|
{
|
|
5838
|
-
key: r.id ??
|
|
5841
|
+
key: r.id ?? d,
|
|
5839
5842
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
5840
5843
|
role: e.rowClickable ? "button" : void 0,
|
|
5841
5844
|
onClick: e.rowClickable ? () => o("rowClick", r) : void 0,
|
|
@@ -5900,7 +5903,7 @@ const Tn = (e, o) => {
|
|
|
5900
5903
|
}, r = (f) => {
|
|
5901
5904
|
const k = t.value.indexOf(f);
|
|
5902
5905
|
t.value[(k - 1 + t.value.length) % t.value.length]?.focus();
|
|
5903
|
-
},
|
|
5906
|
+
}, d = () => t.value[0]?.focus(), u = () => {
|
|
5904
5907
|
const f = t.value;
|
|
5905
5908
|
f.length && f[f.length - 1]?.focus();
|
|
5906
5909
|
};
|
|
@@ -5912,7 +5915,7 @@ const Tn = (e, o) => {
|
|
|
5912
5915
|
unregisterHeader: s,
|
|
5913
5916
|
focusNext: l,
|
|
5914
5917
|
focusPrev: r,
|
|
5915
|
-
focusFirst:
|
|
5918
|
+
focusFirst: d,
|
|
5916
5919
|
focusLast: u
|
|
5917
5920
|
}), () => o.default?.();
|
|
5918
5921
|
}
|
|
@@ -5990,7 +5993,7 @@ const Tn = (e, o) => {
|
|
|
5990
5993
|
F(
|
|
5991
5994
|
"span",
|
|
5992
5995
|
{ class: "rs-accordion-trigger__icon", "aria-hidden": "true" },
|
|
5993
|
-
F(
|
|
5996
|
+
F(ce, { name: "directionDown" })
|
|
5994
5997
|
)
|
|
5995
5998
|
]
|
|
5996
5999
|
);
|
|
@@ -6029,7 +6032,7 @@ export {
|
|
|
6029
6032
|
El as AccordionPanel,
|
|
6030
6033
|
vl as Autocomplete,
|
|
6031
6034
|
ll as Avatar,
|
|
6032
|
-
|
|
6035
|
+
dl as Breadcrumb,
|
|
6033
6036
|
he as Button,
|
|
6034
6037
|
Cl as Card,
|
|
6035
6038
|
hl as CardBody,
|
|
@@ -6046,7 +6049,7 @@ export {
|
|
|
6046
6049
|
Bl as DropdownTrigger,
|
|
6047
6050
|
Je as Editor,
|
|
6048
6051
|
Xa as Highlight,
|
|
6049
|
-
|
|
6052
|
+
ce as Icon,
|
|
6050
6053
|
Le as Image,
|
|
6051
6054
|
ot as ImageGallery,
|
|
6052
6055
|
nl as Input,
|
|
@@ -6059,7 +6062,7 @@ export {
|
|
|
6059
6062
|
Ct as ModalHeader,
|
|
6060
6063
|
pt as ModalTitle,
|
|
6061
6064
|
nt as PasswordValidator,
|
|
6062
|
-
|
|
6065
|
+
cl as RadioButton,
|
|
6063
6066
|
rl as Select,
|
|
6064
6067
|
gt as Spinner,
|
|
6065
6068
|
yl as Step,
|