energy-components 2.5.0 → 2.5.1
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/link.es.js +17 -17
- package/dist/components/style/link.css +1 -1
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +414 -414
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1348,7 +1348,7 @@ async function _i(e, t) {
|
|
|
1348
1348
|
y: l,
|
|
1349
1349
|
width: o.floating.width,
|
|
1350
1350
|
height: o.floating.height
|
|
1351
|
-
} : o.reference,
|
|
1351
|
+
} : o.reference, k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), _ = await (r.isElement == null ? void 0 : r.isElement(k)) ? await (r.getScale == null ? void 0 : r.getScale(k)) || {
|
|
1352
1352
|
x: 1,
|
|
1353
1353
|
y: 1
|
|
1354
1354
|
} : {
|
|
@@ -1357,14 +1357,14 @@ async function _i(e, t) {
|
|
|
1357
1357
|
}, R = hn(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1358
1358
|
elements: i,
|
|
1359
1359
|
rect: C,
|
|
1360
|
-
offsetParent:
|
|
1360
|
+
offsetParent: k,
|
|
1361
1361
|
strategy: s
|
|
1362
1362
|
}) : C);
|
|
1363
1363
|
return {
|
|
1364
|
-
top: ($.top - R.top + p.top) /
|
|
1365
|
-
bottom: (R.bottom - $.bottom + p.bottom) /
|
|
1366
|
-
left: ($.left - R.left + p.left) /
|
|
1367
|
-
right: (R.right - $.right + p.right) /
|
|
1364
|
+
top: ($.top - R.top + p.top) / _.y,
|
|
1365
|
+
bottom: (R.bottom - $.bottom + p.bottom) / _.y,
|
|
1366
|
+
left: ($.left - R.left + p.left) / _.x,
|
|
1367
|
+
right: (R.right - $.right + p.right) / _.x
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
const ki = 50, xi = async (e, t, n) => {
|
|
@@ -1394,8 +1394,8 @@ const ki = 50, xi = async (e, t, n) => {
|
|
|
1394
1394
|
name: $,
|
|
1395
1395
|
fn: C
|
|
1396
1396
|
} = b, {
|
|
1397
|
-
x:
|
|
1398
|
-
y:
|
|
1397
|
+
x: k,
|
|
1398
|
+
y: _,
|
|
1399
1399
|
data: R,
|
|
1400
1400
|
reset: T
|
|
1401
1401
|
} = await C({
|
|
@@ -1412,7 +1412,7 @@ const ki = 50, xi = async (e, t, n) => {
|
|
|
1412
1412
|
floating: t
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
|
-
u =
|
|
1415
|
+
u = k ?? u, f = _ ?? f, p[$] = {
|
|
1416
1416
|
...p[$],
|
|
1417
1417
|
...R
|
|
1418
1418
|
}, T && h < ki && (h++, typeof T == "object" && (T.placement && (c = T.placement), T.rects && (d = T.rects === !0 ? await o.getElementRects({
|
|
@@ -1452,10 +1452,10 @@ const ki = 50, xi = async (e, t, n) => {
|
|
|
1452
1452
|
const f = Er(u), c = {
|
|
1453
1453
|
x: n,
|
|
1454
1454
|
y: a
|
|
1455
|
-
}, h = yl(l), p = hl(h), v = await o.getDimensions(d), b = h === "y", $ = b ? "top" : "left", C = b ? "bottom" : "right",
|
|
1456
|
-
let O = T ? T[
|
|
1457
|
-
(!O || !await (o.isElement == null ? void 0 : o.isElement(T))) && (O = i.floating[
|
|
1458
|
-
const U =
|
|
1455
|
+
}, h = yl(l), p = hl(h), v = await o.getDimensions(d), b = h === "y", $ = b ? "top" : "left", C = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", _ = r.reference[p] + r.reference[h] - c[h] - r.floating[p], R = c[h] - r.reference[h], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d));
|
|
1456
|
+
let O = T ? T[k] : 0;
|
|
1457
|
+
(!O || !await (o.isElement == null ? void 0 : o.isElement(T))) && (O = i.floating[k] || r.floating[p]);
|
|
1458
|
+
const U = _ / 2 - R / 2, H = O / 2 - v[p] / 2 - 1, N = ia(f[$], H), A = ia(f[C], H), Z = N, ne = O - v[p] - A, M = O / 2 - v[p] / 2 + U, D = ol(Z, M, ne), w = !s.arrow && qa(l) != null && M !== D && r.reference[p] / 2 - (M < Z ? N : A) - v[p] / 2 < 0, P = w ? M < Z ? M - Z : M - ne : 0;
|
|
1459
1459
|
return {
|
|
1460
1460
|
[h]: c[h] + P,
|
|
1461
1461
|
data: {
|
|
@@ -1492,12 +1492,12 @@ const ki = 50, xi = async (e, t, n) => {
|
|
|
1492
1492
|
} = Ha(e, t);
|
|
1493
1493
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
1494
1494
|
return {};
|
|
1495
|
-
const $ = sa(l), C = Kt(i),
|
|
1496
|
-
!c && T && R.push(...bi(i, v, p,
|
|
1495
|
+
const $ = sa(l), C = Kt(i), k = sa(i) === i, _ = await (s.isRTL == null ? void 0 : s.isRTL(d.floating)), R = c || (k || !v ? [mn(i)] : mi(i)), T = p !== "none";
|
|
1496
|
+
!c && T && R.push(...bi(i, v, p, _));
|
|
1497
1497
|
const O = [i, ...R], U = await s.detectOverflow(t, b), H = [];
|
|
1498
1498
|
let N = ((a = r.flip) == null ? void 0 : a.overflows) || [];
|
|
1499
1499
|
if (u && H.push(U[$]), f) {
|
|
1500
|
-
const M = vi(l, o,
|
|
1500
|
+
const M = vi(l, o, _);
|
|
1501
1501
|
H.push(U[M[0]], U[M[1]]);
|
|
1502
1502
|
}
|
|
1503
1503
|
if (N = [...N, {
|
|
@@ -1616,11 +1616,11 @@ const Ci = function(e) {
|
|
|
1616
1616
|
fn: ($) => {
|
|
1617
1617
|
let {
|
|
1618
1618
|
x: C,
|
|
1619
|
-
y:
|
|
1619
|
+
y: k
|
|
1620
1620
|
} = $;
|
|
1621
1621
|
return {
|
|
1622
1622
|
x: C,
|
|
1623
|
-
y:
|
|
1623
|
+
y: k
|
|
1624
1624
|
};
|
|
1625
1625
|
}
|
|
1626
1626
|
},
|
|
@@ -1631,12 +1631,12 @@ const Ci = function(e) {
|
|
|
1631
1631
|
}, f = await r.detectOverflow(t, d), c = Kt(sa(l)), h = Ir(c);
|
|
1632
1632
|
let p = u[h], v = u[c];
|
|
1633
1633
|
if (o) {
|
|
1634
|
-
const $ = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right",
|
|
1635
|
-
p = ol(
|
|
1634
|
+
const $ = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right", k = p + f[$], _ = p - f[C];
|
|
1635
|
+
p = ol(k, p, _);
|
|
1636
1636
|
}
|
|
1637
1637
|
if (i) {
|
|
1638
|
-
const $ = c === "y" ? "top" : "left", C = c === "y" ? "bottom" : "right",
|
|
1639
|
-
v = ol(
|
|
1638
|
+
const $ = c === "y" ? "top" : "left", C = c === "y" ? "bottom" : "right", k = v + f[$], _ = v - f[C];
|
|
1639
|
+
v = ol(k, v, _);
|
|
1640
1640
|
}
|
|
1641
1641
|
const b = s.fn({
|
|
1642
1642
|
...t,
|
|
@@ -1677,9 +1677,9 @@ const Ci = function(e) {
|
|
|
1677
1677
|
} = r.floating;
|
|
1678
1678
|
let b, $;
|
|
1679
1679
|
f === "top" || f === "bottom" ? (b = f, $ = c === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : ($ = f, b = c === "end" ? "top" : "bottom");
|
|
1680
|
-
const C = v - u.top - u.bottom,
|
|
1681
|
-
let O =
|
|
1682
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (U =
|
|
1680
|
+
const C = v - u.top - u.bottom, k = p - u.left - u.right, _ = ia(v - u[b], C), R = ia(p - u[$], k), T = !t.middlewareData.shift;
|
|
1681
|
+
let O = _, U = R;
|
|
1682
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (U = k), (a = t.middlewareData.shift) != null && a.enabled.y && (O = C), T && !c) {
|
|
1683
1683
|
const N = wt(u.left, 0), A = wt(u.right, 0), Z = wt(u.top, 0), ne = wt(u.bottom, 0);
|
|
1684
1684
|
h ? U = p - 2 * (N !== 0 || A !== 0 ? N + A : wt(u.left, u.right)) : O = v - 2 * (Z !== 0 || ne !== 0 ? Z + ne : wt(u.top, u.bottom));
|
|
1685
1685
|
}
|
|
@@ -1861,8 +1861,8 @@ function ga(e, t, n, a) {
|
|
|
1861
1861
|
const c = kt(r), h = a && At(a) ? kt(a) : a;
|
|
1862
1862
|
let p = c, v = sl(p);
|
|
1863
1863
|
for (; v && a && h !== p; ) {
|
|
1864
|
-
const b = Oa(v), $ = v.getBoundingClientRect(), C = Lt(v),
|
|
1865
|
-
s *= b.x, d *= b.y, u *= b.x, f *= b.y, s +=
|
|
1864
|
+
const b = Oa(v), $ = v.getBoundingClientRect(), C = Lt(v), k = $.left + (v.clientLeft + parseFloat(C.paddingLeft)) * b.x, _ = $.top + (v.clientTop + parseFloat(C.paddingTop)) * b.y;
|
|
1865
|
+
s *= b.x, d *= b.y, u *= b.x, f *= b.y, s += k, d += _, p = kt(v), v = sl(p);
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
1868
|
return hn({
|
|
@@ -2120,30 +2120,30 @@ function Ui(e, t) {
|
|
|
2120
2120
|
} = d;
|
|
2121
2121
|
if (i || t(), !c || !h)
|
|
2122
2122
|
return;
|
|
2123
|
-
const p = dn(f), v = dn(l.clientWidth - (u + c)), b = dn(l.clientHeight - (f + h)), $ = dn(u),
|
|
2123
|
+
const p = dn(f), v = dn(l.clientWidth - (u + c)), b = dn(l.clientHeight - (f + h)), $ = dn(u), k = {
|
|
2124
2124
|
rootMargin: -p + "px " + -v + "px " + -b + "px " + -$ + "px",
|
|
2125
2125
|
threshold: wt(0, ia(1, s)) || 1
|
|
2126
2126
|
};
|
|
2127
|
-
let
|
|
2127
|
+
let _ = !0;
|
|
2128
2128
|
function R(T) {
|
|
2129
2129
|
const O = T[0].intersectionRatio;
|
|
2130
2130
|
if (O !== s) {
|
|
2131
|
-
if (!
|
|
2131
|
+
if (!_)
|
|
2132
2132
|
return o();
|
|
2133
2133
|
O ? o(!1, O) : a = setTimeout(() => {
|
|
2134
2134
|
o(!1, 1e-7);
|
|
2135
2135
|
}, 1e3);
|
|
2136
2136
|
}
|
|
2137
|
-
O === 1 && !zr(d, e.getBoundingClientRect()) && o(),
|
|
2137
|
+
O === 1 && !zr(d, e.getBoundingClientRect()) && o(), _ = !1;
|
|
2138
2138
|
}
|
|
2139
2139
|
try {
|
|
2140
2140
|
n = new IntersectionObserver(R, {
|
|
2141
|
-
...
|
|
2141
|
+
...k,
|
|
2142
2142
|
// Handle <iframe>s
|
|
2143
2143
|
root: l.ownerDocument
|
|
2144
2144
|
});
|
|
2145
2145
|
} catch {
|
|
2146
|
-
n = new IntersectionObserver(R,
|
|
2146
|
+
n = new IntersectionObserver(R, k);
|
|
2147
2147
|
}
|
|
2148
2148
|
n.observe(e);
|
|
2149
2149
|
}
|
|
@@ -2168,8 +2168,8 @@ function yn(e, t, n, a) {
|
|
|
2168
2168
|
o && (h = new ResizeObserver(($) => {
|
|
2169
2169
|
let [C] = $;
|
|
2170
2170
|
C && C.target === d && h && t && (h.unobserve(t), cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
2171
|
-
var
|
|
2172
|
-
(
|
|
2171
|
+
var k;
|
|
2172
|
+
(k = h) == null || k.observe(t);
|
|
2173
2173
|
})), n();
|
|
2174
2174
|
}), d && !s && h.observe(d), t && h.observe(t));
|
|
2175
2175
|
let p, v = s ? ga(e) : null;
|
|
@@ -2267,7 +2267,7 @@ function Kr(e, t, n) {
|
|
|
2267
2267
|
};
|
|
2268
2268
|
});
|
|
2269
2269
|
let C;
|
|
2270
|
-
function
|
|
2270
|
+
function k() {
|
|
2271
2271
|
if (d.value == null || u.value == null)
|
|
2272
2272
|
return;
|
|
2273
2273
|
const O = l.value;
|
|
@@ -2279,29 +2279,29 @@ function Kr(e, t, n) {
|
|
|
2279
2279
|
f.value = U.x, c.value = U.y, h.value = U.strategy, p.value = U.placement, v.value = U.middlewareData, b.value = O !== !1;
|
|
2280
2280
|
});
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function _() {
|
|
2283
2283
|
typeof C == "function" && (C(), C = void 0);
|
|
2284
2284
|
}
|
|
2285
2285
|
function R() {
|
|
2286
|
-
if (
|
|
2287
|
-
|
|
2286
|
+
if (_(), a === void 0) {
|
|
2287
|
+
k();
|
|
2288
2288
|
return;
|
|
2289
2289
|
}
|
|
2290
2290
|
if (d.value != null && u.value != null) {
|
|
2291
|
-
C = a(d.value, u.value,
|
|
2291
|
+
C = a(d.value, u.value, k);
|
|
2292
2292
|
return;
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
2295
|
function T() {
|
|
2296
2296
|
l.value || (b.value = !1);
|
|
2297
2297
|
}
|
|
2298
|
-
return Pe([r, o, i, l],
|
|
2298
|
+
return Pe([r, o, i, l], k, {
|
|
2299
2299
|
flush: "sync"
|
|
2300
2300
|
}), Pe([d, u], R, {
|
|
2301
2301
|
flush: "sync"
|
|
2302
2302
|
}), Pe(l, T, {
|
|
2303
2303
|
flush: "sync"
|
|
2304
|
-
}), Or() && Pr(
|
|
2304
|
+
}), Or() && Pr(_), {
|
|
2305
2305
|
x: $a(f),
|
|
2306
2306
|
y: $a(c),
|
|
2307
2307
|
strategy: $a(h),
|
|
@@ -2309,7 +2309,7 @@ function Kr(e, t, n) {
|
|
|
2309
2309
|
middlewareData: $a(v),
|
|
2310
2310
|
isPositioned: $a(b),
|
|
2311
2311
|
floatingStyles: $,
|
|
2312
|
-
update:
|
|
2312
|
+
update: k
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
2315
|
const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
@@ -2471,11 +2471,11 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}), o = V(), i = V(), s = V(), d = V(!0), u = V("");
|
|
2473
2473
|
let f = null, c = !1, h = !1, p = null;
|
|
2474
|
-
const v = V(null), b = x(() => a.open !== void 0), $ = x(() => a.openOnHover && !a.openOnClick), C = x(() => a.openOnFocus && !a.openOnClick),
|
|
2474
|
+
const v = V(null), b = x(() => a.open !== void 0), $ = x(() => a.openOnHover && !a.openOnClick), C = x(() => a.openOnFocus && !a.openOnClick), k = (j) => {
|
|
2475
2475
|
b.value ? l("update:open", j) : (d.value = !j, l(j ? "show" : "hide"));
|
|
2476
|
-
},
|
|
2476
|
+
}, _ = x(() => b.value ? !!a.open : !d.value), R = x(() => Math.min(Math.max(a.hideDelay, 0), 3e3)), T = x(() => ({
|
|
2477
2477
|
"rds-e-tooltip__tooltip": !0,
|
|
2478
|
-
"rds-e-tooltip__tooltip-hidden": !
|
|
2478
|
+
"rds-e-tooltip__tooltip-hidden": !_.value,
|
|
2479
2479
|
"rds-e-tooltip__tooltip--large": a.large,
|
|
2480
2480
|
"rds-e-tooltip__tooltip--inverse": a.inverse
|
|
2481
2481
|
})), O = async () => {
|
|
@@ -2543,11 +2543,11 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2543
2543
|
{ immediate: !0 }
|
|
2544
2544
|
);
|
|
2545
2545
|
const U = () => {
|
|
2546
|
-
clearTimeout(f),
|
|
2546
|
+
clearTimeout(f), _.value ? k(!1) : d.value = !0;
|
|
2547
2547
|
}, H = () => {
|
|
2548
|
-
a.title || (
|
|
2548
|
+
a.title || (_.value ? k(!1) : d.value = !0, p && (p(), p = null)), clearTimeout(f);
|
|
2549
2549
|
}, N = () => {
|
|
2550
|
-
a.suppressed || (clearTimeout(f),
|
|
2550
|
+
a.suppressed || (clearTimeout(f), k(!0), Be(() => {
|
|
2551
2551
|
O(), a.autoUpdate && o.value && i.value && (p?.(), p = yn(
|
|
2552
2552
|
o.value,
|
|
2553
2553
|
i.value,
|
|
@@ -2563,7 +2563,7 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2563
2563
|
c || H();
|
|
2564
2564
|
}, R.value));
|
|
2565
2565
|
}, ne = (j) => {
|
|
2566
|
-
a.openOnClick && (v.value = { x: j.clientX, y: j.clientY },
|
|
2566
|
+
a.openOnClick && (v.value = { x: j.clientX, y: j.clientY }, _.value ? de() : N());
|
|
2567
2567
|
}, M = () => {
|
|
2568
2568
|
C.value && N();
|
|
2569
2569
|
}, D = () => {
|
|
@@ -2572,7 +2572,7 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2572
2572
|
function w(j) {
|
|
2573
2573
|
if (!a.openOnClick) return;
|
|
2574
2574
|
const y = j.target, F = o.value, ae = i.value;
|
|
2575
|
-
!!!(y && (F?.contains(y) || ae?.contains(y))) &&
|
|
2575
|
+
!!!(y && (F?.contains(y) || ae?.contains(y))) && _.value && de();
|
|
2576
2576
|
}
|
|
2577
2577
|
function P() {
|
|
2578
2578
|
typeof window > "u" || (window.addEventListener("pointerdown", w, { capture: !0 }), window.addEventListener("mousedown", w, { capture: !0 }));
|
|
@@ -2588,7 +2588,7 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2588
2588
|
}, R.value)));
|
|
2589
2589
|
};
|
|
2590
2590
|
function de() {
|
|
2591
|
-
|
|
2591
|
+
_.value && (k(!1), p && (p(), p = null), a.openOnClick && Y());
|
|
2592
2592
|
}
|
|
2593
2593
|
const ee = () => {
|
|
2594
2594
|
de();
|
|
@@ -2596,7 +2596,7 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2596
2596
|
return t({
|
|
2597
2597
|
show: N,
|
|
2598
2598
|
hide: de,
|
|
2599
|
-
isOpen: x(() =>
|
|
2599
|
+
isOpen: x(() => _.value)
|
|
2600
2600
|
}), vt(() => {
|
|
2601
2601
|
clearTimeout(f), p && (p(), p = null), a.openOnClick && Y();
|
|
2602
2602
|
}), (j, y) => (m(), S("div", {
|
|
@@ -2624,7 +2624,7 @@ const Zi = ["id"], es = ["aria-hidden"], ts = {
|
|
|
2624
2624
|
ref: i,
|
|
2625
2625
|
class: J(T.value),
|
|
2626
2626
|
role: "tooltip",
|
|
2627
|
-
"aria-hidden": !
|
|
2627
|
+
"aria-hidden": !_.value,
|
|
2628
2628
|
onMouseenter: q,
|
|
2629
2629
|
onMouseleave: z
|
|
2630
2630
|
}, [
|
|
@@ -2903,8 +2903,8 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
2903
2903
|
C.checked = f.value, $.preventDefault();
|
|
2904
2904
|
return;
|
|
2905
2905
|
}
|
|
2906
|
-
const
|
|
2907
|
-
l.value || (r.value =
|
|
2906
|
+
const k = C.checked;
|
|
2907
|
+
l.value || (r.value = k), a("update:modelValue", k);
|
|
2908
2908
|
}, h = ($) => {
|
|
2909
2909
|
$.key === "Tab" && (i.value = !0);
|
|
2910
2910
|
}, p = () => {
|
|
@@ -3247,9 +3247,9 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3247
3247
|
c.value = r.value.value !== "";
|
|
3248
3248
|
}, $ = () => {
|
|
3249
3249
|
!a.disabled && !a.readonly && r.value && r.value.focus();
|
|
3250
|
-
}, C = x(() => a.id !== void 0 && a.id !== null ? String(a.id) : `text-field-${u}`),
|
|
3250
|
+
}, C = x(() => a.id !== void 0 && a.id !== null ? String(a.id) : `text-field-${u}`), k = x(() => a.helper || a.error ? `${C.value}-helper` : void 0), _ = x(() => a.password || a.type === "password"), R = x(() => _.value ? o.value ? "text" : "password" : ["text", "number", "password", "email", "tel", "url"].includes(a.type) ? a.type : "text"), T = x(() => a.autocomplete), O = x(() => {
|
|
3251
3251
|
const y = a.modelValue === null || a.modelValue === void 0 ? "" : String(a.modelValue);
|
|
3252
|
-
return
|
|
3252
|
+
return _.value && !o.value ? "•".repeat(y.length) : y;
|
|
3253
3253
|
}), U = (y) => {
|
|
3254
3254
|
const F = y.target, B = F.value.trim();
|
|
3255
3255
|
let se = F.value;
|
|
@@ -3312,10 +3312,10 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3312
3312
|
name: a.rightIcon
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
|
-
return
|
|
3315
|
+
return _.value || a.clearable ? {
|
|
3316
3316
|
left: {
|
|
3317
3317
|
...y,
|
|
3318
|
-
name:
|
|
3318
|
+
name: _.value ? "" : y.name
|
|
3319
3319
|
},
|
|
3320
3320
|
right: {
|
|
3321
3321
|
...y,
|
|
@@ -3324,7 +3324,7 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3324
3324
|
} : F;
|
|
3325
3325
|
});
|
|
3326
3326
|
Pe(
|
|
3327
|
-
|
|
3327
|
+
_,
|
|
3328
3328
|
(y) => {
|
|
3329
3329
|
o.value = !1;
|
|
3330
3330
|
},
|
|
@@ -3423,7 +3423,7 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3423
3423
|
spellcheck: a.spellcheck,
|
|
3424
3424
|
autocapitalize: a.autocapitalize,
|
|
3425
3425
|
"aria-invalid": a.error,
|
|
3426
|
-
"aria-describedby":
|
|
3426
|
+
"aria-describedby": k.value,
|
|
3427
3427
|
onInput: U,
|
|
3428
3428
|
onBlur: N,
|
|
3429
3429
|
onFocus: A,
|
|
@@ -3444,9 +3444,9 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3444
3444
|
class: J(["rds-e-textfield__label", a.disabled ? "rds-e-textfield__label--disabled" : ""])
|
|
3445
3445
|
}, fe(a.label), 11, ms)
|
|
3446
3446
|
]),
|
|
3447
|
-
|
|
3447
|
+
_.value && a.toggleVisibility || a.clearable || P.value.right.name || y.$slots["right-icon"] ? (m(), S("span", hs, [
|
|
3448
3448
|
G(y.$slots, "right-icon", {}, () => [
|
|
3449
|
-
|
|
3449
|
+
_.value && a.toggleVisibility ? (m(), S("button", {
|
|
3450
3450
|
key: 0,
|
|
3451
3451
|
type: "button",
|
|
3452
3452
|
class: "rds-e-textfield__icon rds-e-textfield__icon--right rds-e-textfield__icon--password",
|
|
@@ -3484,7 +3484,7 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3484
3484
|
a.helper || a.error ? (m(), S("div", gs, [
|
|
3485
3485
|
G(y.$slots, "helper-text", {}, () => [
|
|
3486
3486
|
E("span", {
|
|
3487
|
-
id:
|
|
3487
|
+
id: k.value,
|
|
3488
3488
|
class: J(a.error ? "rds-e-textfield__helper--error" : "")
|
|
3489
3489
|
}, fe(a.helperText), 11, bs)
|
|
3490
3490
|
], !0)
|
|
@@ -3567,11 +3567,11 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3567
3567
|
f.value = !0;
|
|
3568
3568
|
}, C = () => {
|
|
3569
3569
|
d.value = !0, u.value = !f.value, f.value = !1, c.value = !0;
|
|
3570
|
-
},
|
|
3570
|
+
}, k = () => {
|
|
3571
3571
|
setTimeout(() => {
|
|
3572
3572
|
d.value = !1, u.value = !1, c.value = !1, h.value = -1;
|
|
3573
3573
|
}, 150);
|
|
3574
|
-
},
|
|
3574
|
+
}, _ = (H) => {
|
|
3575
3575
|
const N = H.target.value;
|
|
3576
3576
|
c.value = !0, h.value = -1, l("update:modelValue", N);
|
|
3577
3577
|
}, R = () => {
|
|
@@ -3639,9 +3639,9 @@ const is = ["id", "checked", "aria-label", "aria-invalid", "aria-required", "ari
|
|
|
3639
3639
|
"aria-expanded": b.value ? "true" : "false",
|
|
3640
3640
|
"aria-controls": b.value ? i : void 0,
|
|
3641
3641
|
"aria-activedescendant": h.value >= 0 ? `${i}-${h.value}` : void 0,
|
|
3642
|
-
onInput:
|
|
3642
|
+
onInput: _,
|
|
3643
3643
|
onFocus: C,
|
|
3644
|
-
onBlur:
|
|
3644
|
+
onBlur: k,
|
|
3645
3645
|
onKeydown: U
|
|
3646
3646
|
}, null, 40, _s),
|
|
3647
3647
|
v.value ? (m(), S("button", {
|
|
@@ -3829,7 +3829,7 @@ const Ds = { class: "rds-e-textarea__input-container" }, Ts = ["id", "name", "ma
|
|
|
3829
3829
|
return n.modelValue && T.push("rds-e-textarea--filled"), n.error && T.push("rds-e-textarea--error"), n.disabled && T.push("rds-e-textarea--disabled"), b.value && T.push("rds-e-textarea--error"), T.join(" ");
|
|
3830
3830
|
}), C = () => {
|
|
3831
3831
|
l.value = "";
|
|
3832
|
-
},
|
|
3832
|
+
}, k = x(() => {
|
|
3833
3833
|
const T = {
|
|
3834
3834
|
name: n.icon,
|
|
3835
3835
|
class: "",
|
|
@@ -3849,7 +3849,7 @@ const Ds = { class: "rds-e-textarea__input-container" }, Ts = ["id", "name", "ma
|
|
|
3849
3849
|
click: () => C()
|
|
3850
3850
|
}
|
|
3851
3851
|
}), O;
|
|
3852
|
-
}),
|
|
3852
|
+
}), _ = x(() => n.modelValue.length), R = x(() => {
|
|
3853
3853
|
const T = [];
|
|
3854
3854
|
return (n.helper || n.error || b.value) && T.push(u.value), T.length ? T.join(" ") : void 0;
|
|
3855
3855
|
});
|
|
@@ -3898,16 +3898,16 @@ const Ds = { class: "rds-e-textarea__input-container" }, Ts = ["id", "name", "ma
|
|
|
3898
3898
|
E("label", {
|
|
3899
3899
|
for: d.value,
|
|
3900
3900
|
class: J(["rds-e-textarea__label", {
|
|
3901
|
-
"rds-e-textarea__label--with-icon":
|
|
3901
|
+
"rds-e-textarea__label--with-icon": k.value.left.name,
|
|
3902
3902
|
"rds-e-textarea__label--active": r.value || !!n.modelValue
|
|
3903
3903
|
}])
|
|
3904
3904
|
}, [
|
|
3905
3905
|
G(T.$slots, "left-icon", {}, () => [
|
|
3906
|
-
|
|
3906
|
+
k.value.left.name ? (m(), ve(De, Re({
|
|
3907
3907
|
key: 0,
|
|
3908
3908
|
class: "rds-e-textarea__icon rds-e-textarea__icon--left",
|
|
3909
3909
|
"aria-hidden": "true"
|
|
3910
|
-
},
|
|
3910
|
+
}, k.value.left, Pa(k.value.left.events)), null, 16)) : I("", !0)
|
|
3911
3911
|
], !0),
|
|
3912
3912
|
je(" " + fe(n.label), 1)
|
|
3913
3913
|
], 10, Cs),
|
|
@@ -3917,13 +3917,13 @@ const Ds = { class: "rds-e-textarea__input-container" }, Ts = ["id", "name", "ma
|
|
|
3917
3917
|
"rds-e-textarea__counter--clearable": n.clearable
|
|
3918
3918
|
}])
|
|
3919
3919
|
}, [
|
|
3920
|
-
n.counter && !n.rightIcon && !n.clearable ? (m(), S("p", Ms, fe(
|
|
3920
|
+
n.counter && !n.rightIcon && !n.clearable ? (m(), S("p", Ms, fe(_.value) + "/" + fe(n.maxlength), 1)) : I("", !0),
|
|
3921
3921
|
G(T.$slots, "right-icon", {}, () => [
|
|
3922
|
-
|
|
3922
|
+
k.value.right.name ? (m(), ve(De, Re({
|
|
3923
3923
|
key: 0,
|
|
3924
3924
|
class: "rds-e-textarea__icon rds-e-textarea__icon--right",
|
|
3925
3925
|
"aria-hidden": "true"
|
|
3926
|
-
},
|
|
3926
|
+
}, k.value.right, Pa(k.value.right.events)), null, 16)) : I("", !0)
|
|
3927
3927
|
], !0)
|
|
3928
3928
|
], 2)
|
|
3929
3929
|
])
|
|
@@ -5674,9 +5674,9 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5674
5674
|
textOnly: f
|
|
5675
5675
|
} = it(a), c = Na(e, "modelValue"), h = V([]), p = V(), v = V(), b = V(""), $ = V(!1);
|
|
5676
5676
|
let C = !1;
|
|
5677
|
-
const
|
|
5677
|
+
const k = () => {
|
|
5678
5678
|
$.value = !0;
|
|
5679
|
-
},
|
|
5679
|
+
}, _ = x(() => p.value?.isOpen ?? !1), R = x(() => a.autocomplete && Object.keys(a.autocomplete).length > 0), T = x(() => ({
|
|
5680
5680
|
id: a.autocomplete.id || `autocomplete-${a.id}`,
|
|
5681
5681
|
label: a.autocomplete.label || a.label,
|
|
5682
5682
|
icon: a.autocomplete.icon || "",
|
|
@@ -5755,16 +5755,16 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5755
5755
|
}, j = () => {
|
|
5756
5756
|
p.value.toggle(), C = !0;
|
|
5757
5757
|
}, y = () => {
|
|
5758
|
-
|
|
5758
|
+
_.value ? ee() : de();
|
|
5759
5759
|
}, F = () => {
|
|
5760
5760
|
C = !0;
|
|
5761
5761
|
}, ae = (X) => {
|
|
5762
5762
|
if (!i.value && X.key !== "Tab") {
|
|
5763
|
-
if (!
|
|
5763
|
+
if (!_.value && (X.key === "Enter" || X.key === " ")) {
|
|
5764
5764
|
X.preventDefault(), p.value?.toggle();
|
|
5765
5765
|
return;
|
|
5766
5766
|
}
|
|
5767
|
-
if (!
|
|
5767
|
+
if (!_.value && X.key === "ArrowDown") {
|
|
5768
5768
|
X.preventDefault(), p.value?.toggle(), Be(() => {
|
|
5769
5769
|
try {
|
|
5770
5770
|
p.value?.pointerForward?.();
|
|
@@ -5773,11 +5773,11 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5773
5773
|
});
|
|
5774
5774
|
return;
|
|
5775
5775
|
}
|
|
5776
|
-
if (
|
|
5776
|
+
if (_.value && X.key === "Escape") {
|
|
5777
5777
|
X.preventDefault(), ee();
|
|
5778
5778
|
return;
|
|
5779
5779
|
}
|
|
5780
|
-
if (
|
|
5780
|
+
if (_.value && (X.key === "Enter" || X.key === " ")) {
|
|
5781
5781
|
X.preventDefault();
|
|
5782
5782
|
try {
|
|
5783
5783
|
p.value?.addPointerElement?.({ key: X.key });
|
|
@@ -5787,7 +5787,7 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5787
5787
|
}
|
|
5788
5788
|
}
|
|
5789
5789
|
}, B = () => {
|
|
5790
|
-
R.value && v.value && (
|
|
5790
|
+
R.value && v.value && (k(), de(), Be(() => {
|
|
5791
5791
|
v.value.focus();
|
|
5792
5792
|
}));
|
|
5793
5793
|
}, se = (X) => {
|
|
@@ -5860,7 +5860,7 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5860
5860
|
class: J([e.customTriggerClass, "rds-e-dropdown__text-only"]),
|
|
5861
5861
|
role: "combobox",
|
|
5862
5862
|
"aria-haspopup": "listbox",
|
|
5863
|
-
"aria-expanded":
|
|
5863
|
+
"aria-expanded": _.value ? "true" : "false",
|
|
5864
5864
|
"aria-controls": `listbox-${e.id}`,
|
|
5865
5865
|
tabindex: "0",
|
|
5866
5866
|
onClick: ge(y, ["prevent", "stop"]),
|
|
@@ -5880,7 +5880,7 @@ const gu = /* @__PURE__ */ Me(su, [["render", yu], ["__scopeId", "data-v-dae3dc3
|
|
|
5880
5880
|
class: "rds-e-dropdown__input-wrapper",
|
|
5881
5881
|
role: "button",
|
|
5882
5882
|
"aria-haspopup": "listbox",
|
|
5883
|
-
"aria-expanded":
|
|
5883
|
+
"aria-expanded": _.value ? "true" : "false",
|
|
5884
5884
|
"aria-controls": `listbox-${e.id}`,
|
|
5885
5885
|
onClick: ge(j, ["prevent"]),
|
|
5886
5886
|
onMousedown: ge(F, ["prevent"]),
|
|
@@ -8916,10 +8916,10 @@ function fl(e, t, n, a) {
|
|
|
8916
8916
|
!a?.useAdditionalWeekYearTokens && co(b) && cl(b, t, e), !a?.useAdditionalDayOfYearTokens && uo(b) && cl(b, t, e);
|
|
8917
8917
|
const $ = b[0], C = Bc[$];
|
|
8918
8918
|
if (C) {
|
|
8919
|
-
const { incompatibleTokens:
|
|
8920
|
-
if (Array.isArray(
|
|
8919
|
+
const { incompatibleTokens: k } = C;
|
|
8920
|
+
if (Array.isArray(k)) {
|
|
8921
8921
|
const R = c.find(
|
|
8922
|
-
(T) =>
|
|
8922
|
+
(T) => k.includes(T.token) || T.token === $
|
|
8923
8923
|
);
|
|
8924
8924
|
if (R)
|
|
8925
8925
|
throw new RangeError(
|
|
@@ -8930,15 +8930,15 @@ function fl(e, t, n, a) {
|
|
|
8930
8930
|
`The format string mustn't contain \`${b}\` and any other token at the same time`
|
|
8931
8931
|
);
|
|
8932
8932
|
c.push({ token: $, fullToken: b });
|
|
8933
|
-
const
|
|
8933
|
+
const _ = C.run(
|
|
8934
8934
|
e,
|
|
8935
8935
|
b,
|
|
8936
8936
|
o.match,
|
|
8937
8937
|
d
|
|
8938
8938
|
);
|
|
8939
|
-
if (!
|
|
8939
|
+
if (!_)
|
|
8940
8940
|
return l();
|
|
8941
|
-
u.push(
|
|
8941
|
+
u.push(_.setter), e = _.rest;
|
|
8942
8942
|
} else {
|
|
8943
8943
|
if ($.match(Yc))
|
|
8944
8944
|
throw new RangeError(
|
|
@@ -9677,9 +9677,9 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9677
9677
|
}, n = () => {
|
|
9678
9678
|
var T;
|
|
9679
9679
|
return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? t() : e.weekPicker ? `${((T = b.value) == null ? void 0 : T.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${t()}` : "MM/dd/yyyy";
|
|
9680
|
-
}, a = (T) => Co(T, e.enableSeconds), l = () =>
|
|
9680
|
+
}, a = (T) => Co(T, e.enableSeconds), l = () => _.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, r = x(() => vf(e.multiCalendars)), o = x(() => l()), i = x(() => pf(e.ariaLabels)), s = x(() => gf(e.filters)), d = x(() => hf(e.transitions)), u = x(() => bf(e.actionRow)), f = x(
|
|
9681
9681
|
() => mf(e.previewFormat, e.format, n())
|
|
9682
|
-
), c = x(() => yf(e.textInput)), h = x(() => wf(e.inline)), p = x(() => _f(e.config)), v = x(() => kf(e.highlight)), b = x(() => xf(e.weekNumbers)), $ = x(() => Sf(e.timezone)), C = x(() => Cf(e.multiDates)),
|
|
9682
|
+
), c = x(() => yf(e.textInput)), h = x(() => wf(e.inline)), p = x(() => _f(e.config)), v = x(() => kf(e.highlight)), b = x(() => xf(e.weekNumbers)), $ = x(() => Sf(e.timezone)), C = x(() => Cf(e.multiDates)), k = x(
|
|
9683
9683
|
() => Tf({
|
|
9684
9684
|
minDate: e.minDate,
|
|
9685
9685
|
maxDate: e.maxDate,
|
|
@@ -9690,7 +9690,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9690
9690
|
timezone: $.value,
|
|
9691
9691
|
isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
|
|
9692
9692
|
})
|
|
9693
|
-
),
|
|
9693
|
+
), _ = x(() => $f(e.range)), R = x(() => Mf(e.ui));
|
|
9694
9694
|
return {
|
|
9695
9695
|
defaultedTransitions: d,
|
|
9696
9696
|
defaultedMultiCalendars: r,
|
|
@@ -9704,8 +9704,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9704
9704
|
defaultedConfig: p,
|
|
9705
9705
|
defaultedHighlight: v,
|
|
9706
9706
|
defaultedWeekNumbers: b,
|
|
9707
|
-
defaultedRange:
|
|
9708
|
-
propDates:
|
|
9707
|
+
defaultedRange: _,
|
|
9708
|
+
propDates: k,
|
|
9709
9709
|
defaultedTz: $,
|
|
9710
9710
|
defaultedMultiDates: C,
|
|
9711
9711
|
defaultedUI: R,
|
|
@@ -9749,7 +9749,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9749
9749
|
B[1] ? Ht(ie(), B[1]) : Da(r.value.partialRange)
|
|
9750
9750
|
],
|
|
9751
9751
|
r.value.enabled
|
|
9752
|
-
) : Ht(ie(), +B), C = (B, se) => (typeof B == "string" || typeof B == "number") && t.modelType ? q(B) : se,
|
|
9752
|
+
) : Ht(ie(), +B), C = (B, se) => (typeof B == "string" || typeof B == "number") && t.modelType ? q(B) : se, k = (B) => Array.isArray(B) ? [
|
|
9753
9753
|
C(
|
|
9754
9754
|
B[0],
|
|
9755
9755
|
ra(null, +B[0].hours, +B[0].minutes, B[0].seconds)
|
|
@@ -9758,7 +9758,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9758
9758
|
B[1],
|
|
9759
9759
|
ra(null, +B[1].hours, +B[1].minutes, B[1].seconds)
|
|
9760
9760
|
)
|
|
9761
|
-
] : C(B, ra(null, B.hours, B.minutes, B.seconds)),
|
|
9761
|
+
] : C(B, ra(null, B.hours, B.minutes, B.seconds)), _ = (B) => {
|
|
9762
9762
|
const se = We(ie(), { date: 1 });
|
|
9763
9763
|
return Array.isArray(B) ? i.value.enabled ? B.map((X) => C(X, Gt(se, +X.month, +X.year))) : cn(
|
|
9764
9764
|
() => [
|
|
@@ -9797,7 +9797,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
9797
9797
|
z(B[0]),
|
|
9798
9798
|
B[1] ? z(B[1]) : Da(r.value.partialRange)
|
|
9799
9799
|
];
|
|
9800
|
-
}, N = () => a.value[1] ? H() : z(ct(a.value[0])), A = () => (a.value || []).map((B) => z(B)), Z = (B = !1) => (B || U(), t.modelAuto ? N() : i.value.enabled ? A() : Array.isArray(a.value) ? cn(() => H(), r.value.enabled) : z(ct(a.value))), ne = (B) => !B || Array.isArray(B) && !B.length ? null : t.timePicker ?
|
|
9800
|
+
}, N = () => a.value[1] ? H() : z(ct(a.value[0])), A = () => (a.value || []).map((B) => z(B)), Z = (B = !1) => (B || U(), t.modelAuto ? N() : i.value.enabled ? A() : Array.isArray(a.value) ? cn(() => H(), r.value.enabled) : z(ct(a.value))), ne = (B) => !B || Array.isArray(B) && !B.length ? null : t.timePicker ? k(ct(B)) : t.monthPicker ? _(ct(B)) : t.yearPicker ? $(ct(B)) : i.value.enabled ? R(ct(B)) : t.weekPicker ? T(ct(B)) : O(ct(B)), M = (B) => {
|
|
9801
9801
|
const se = ne(B);
|
|
9802
9802
|
ml(ct(se)) ? (a.value = ct(se), Y()) : (a.value = null, d.value = "");
|
|
9803
9803
|
}, D = () => {
|
|
@@ -10018,16 +10018,16 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10018
10018
|
defaultedInline: s,
|
|
10019
10019
|
defaultedRange: d,
|
|
10020
10020
|
defaultedMultiDates: u
|
|
10021
|
-
} = Je(a), { isTimeValid: f, isMonthValid: c } = fa(a), { buildMatrix: h } = ca(), p = V(null), v = V(null), b = V(!1), $ = V({}), C = V(null),
|
|
10021
|
+
} = Je(a), { isTimeValid: f, isMonthValid: c } = fa(a), { buildMatrix: h } = ca(), p = V(null), v = V(null), b = V(!1), $ = V({}), C = V(null), k = V(null);
|
|
10022
10022
|
Fe(() => {
|
|
10023
|
-
a.arrowNavigation && h([ut(p), ut(v)], "actionRow"),
|
|
10023
|
+
a.arrowNavigation && h([ut(p), ut(v)], "actionRow"), _(), window.addEventListener("resize", _);
|
|
10024
10024
|
}), Qt(() => {
|
|
10025
|
-
window.removeEventListener("resize",
|
|
10025
|
+
window.removeEventListener("resize", _);
|
|
10026
10026
|
});
|
|
10027
|
-
const
|
|
10027
|
+
const _ = () => {
|
|
10028
10028
|
b.value = !1, setTimeout(() => {
|
|
10029
10029
|
var M, D;
|
|
10030
|
-
const w = (M = C.value) == null ? void 0 : M.getBoundingClientRect(), P = (D =
|
|
10030
|
+
const w = (M = C.value) == null ? void 0 : M.getBoundingClientRect(), P = (D = k.value) == null ? void 0 : D.getBoundingClientRect();
|
|
10031
10031
|
w && P && ($.value.maxWidth = `${P.width - w.width - 20}px`), b.value = !0;
|
|
10032
10032
|
}, 0);
|
|
10033
10033
|
}, R = x(() => d.value.enabled && !d.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), T = x(
|
|
@@ -10052,7 +10052,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10052
10052
|
};
|
|
10053
10053
|
return (M, D) => (m(), S("div", {
|
|
10054
10054
|
ref_key: "actionRowRef",
|
|
10055
|
-
ref:
|
|
10055
|
+
ref: k,
|
|
10056
10056
|
class: "dp__action_row"
|
|
10057
10057
|
}, [
|
|
10058
10058
|
M.$slots["action-row"] ? G(M.$slots, "action-row", Qe(Re({ key: 0 }, {
|
|
@@ -10143,13 +10143,13 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10143
10143
|
setup(e, { expose: t, emit: n }) {
|
|
10144
10144
|
const { setSelectionGrid: a, buildMultiLevelMatrix: l, setMonthPicker: r } = ca(), o = n, i = e, { defaultedAriaLabels: s, defaultedTextInput: d, defaultedConfig: u } = Je(
|
|
10145
10145
|
i
|
|
10146
|
-
), { hideNavigationButtons: f } = An(), c = V(!1), h = V(null), p = V(null), v = V([]), b = V(), $ = V(null), C = V(0),
|
|
10146
|
+
), { hideNavigationButtons: f } = An(), c = V(!1), h = V(null), p = V(null), v = V([]), b = V(), $ = V(null), C = V(0), k = V(null);
|
|
10147
10147
|
ai(() => {
|
|
10148
10148
|
h.value = null;
|
|
10149
10149
|
}), Fe(() => {
|
|
10150
|
-
Be().then(() => A()), i.noOverlayFocus || R(),
|
|
10151
|
-
}), Qt(() =>
|
|
10152
|
-
const
|
|
10150
|
+
Be().then(() => A()), i.noOverlayFocus || R(), _(!0);
|
|
10151
|
+
}), Qt(() => _(!1));
|
|
10152
|
+
const _ = (ee) => {
|
|
10153
10153
|
var j;
|
|
10154
10154
|
i.arrowNavigation && ((j = i.headerRefs) != null && j.length ? r(ee) : a(ee));
|
|
10155
10155
|
}, R = () => {
|
|
@@ -10189,7 +10189,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10189
10189
|
);
|
|
10190
10190
|
const A = (ee = !0) => {
|
|
10191
10191
|
Be().then(() => {
|
|
10192
|
-
const j = ut(h), y = ut(p), F = ut($), ae = ut(
|
|
10192
|
+
const j = ut(h), y = ut(p), F = ut($), ae = ut(k), B = F ? F.getBoundingClientRect().height : 0;
|
|
10193
10193
|
y && (y.getBoundingClientRect().height ? C.value = y.getBoundingClientRect().height - B : C.value = u.value.modeHeight - B), j && ae && ee && (ae.scrollTop = j.offsetTop - ae.offsetTop - (C.value / 2 - j.getBoundingClientRect().height) - B);
|
|
10194
10194
|
});
|
|
10195
10195
|
}, Z = (ee) => {
|
|
@@ -10251,7 +10251,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10251
10251
|
}, [
|
|
10252
10252
|
E("div", {
|
|
10253
10253
|
ref_key: "containerRef",
|
|
10254
|
-
ref:
|
|
10254
|
+
ref: k,
|
|
10255
10255
|
class: J(N.value),
|
|
10256
10256
|
style: Ye({ "--dp-overlay-height": `${C.value}px` }),
|
|
10257
10257
|
role: "grid"
|
|
@@ -10396,7 +10396,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10396
10396
|
n("handle-year", $);
|
|
10397
10397
|
};
|
|
10398
10398
|
return ($, C) => {
|
|
10399
|
-
var
|
|
10399
|
+
var k, _, R, T, O;
|
|
10400
10400
|
return m(), S(ke, null, [
|
|
10401
10401
|
E("div", {
|
|
10402
10402
|
class: J(["dp--year-mode-picker", { "dp--hidden-el": h.value }])
|
|
@@ -10404,9 +10404,9 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10404
10404
|
g(r)(g(i), e.instance) ? (m(), ve(Xa, {
|
|
10405
10405
|
key: 0,
|
|
10406
10406
|
ref: "mpPrevIconRef",
|
|
10407
|
-
"aria-label": (
|
|
10407
|
+
"aria-label": (k = g(s)) == null ? void 0 : k.prevYear,
|
|
10408
10408
|
disabled: e.isDisabled(!1),
|
|
10409
|
-
class: J((
|
|
10409
|
+
class: J((_ = g(u)) == null ? void 0 : _.navBtnPrev),
|
|
10410
10410
|
onActivate: C[0] || (C[0] = (U) => b(!1))
|
|
10411
10411
|
}, {
|
|
10412
10412
|
default: ye(() => [
|
|
@@ -10552,18 +10552,18 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10552
10552
|
}, $ = (N, A) => {
|
|
10553
10553
|
const Z = Qu(A, N);
|
|
10554
10554
|
return t.value.showLastInRange && Z > 1 ? A : N;
|
|
10555
|
-
}, C = (N) => o.focusStartDate || e.value.solo ? N[0] : N[1] ? $(N[0], N[1]) : N[0],
|
|
10555
|
+
}, C = (N) => o.focusStartDate || e.value.solo ? N[0] : N[1] ? $(N[0], N[1]) : N[0], k = () => {
|
|
10556
10556
|
if (r.value) {
|
|
10557
10557
|
const N = Array.isArray(r.value) ? C(r.value) : r.value;
|
|
10558
10558
|
l.value[0] = { month: Ee(N), year: Oe(N) };
|
|
10559
10559
|
}
|
|
10560
|
-
},
|
|
10561
|
-
|
|
10560
|
+
}, _ = () => {
|
|
10561
|
+
k(), e.value.count && v();
|
|
10562
10562
|
};
|
|
10563
10563
|
Pe(r, (N, A) => {
|
|
10564
|
-
o.isTextInputDate && JSON.stringify(N ?? {}) !== JSON.stringify(A ?? {}) &&
|
|
10564
|
+
o.isTextInputDate && JSON.stringify(N ?? {}) !== JSON.stringify(A ?? {}) && _();
|
|
10565
10565
|
}), Fe(() => {
|
|
10566
|
-
|
|
10566
|
+
_();
|
|
10567
10567
|
});
|
|
10568
10568
|
const R = (N, A) => {
|
|
10569
10569
|
l.value[A].year = N, u("update-month-year", { instance: A, year: N, month: l.value[A].month }), e.value.count && !e.value.solo && b(A);
|
|
@@ -10607,9 +10607,9 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10607
10607
|
defaultedFilters: u,
|
|
10608
10608
|
defaultedMultiDates: f
|
|
10609
10609
|
} = Je(e), c = () => {
|
|
10610
|
-
e.isTextInputDate &&
|
|
10611
|
-
}, { modelValue: h, year: p, month: v, calendars: b } = sn(e, t, c), $ = x(() => _o(e.formatLocale, e.locale, e.monthNameFormat)), C = V(null), { checkMinMaxRange:
|
|
10612
|
-
selectYear:
|
|
10610
|
+
e.isTextInputDate && _(Oe(ie(e.startDate)), 0);
|
|
10611
|
+
}, { modelValue: h, year: p, month: v, calendars: b } = sn(e, t, c), $ = x(() => _o(e.formatLocale, e.locale, e.monthNameFormat)), C = V(null), { checkMinMaxRange: k } = fa(e), {
|
|
10612
|
+
selectYear: _,
|
|
10613
10613
|
groupedYears: R,
|
|
10614
10614
|
showYearPicker: T,
|
|
10615
10615
|
toggleYearPicker: O,
|
|
@@ -10630,7 +10630,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10630
10630
|
emit: t
|
|
10631
10631
|
});
|
|
10632
10632
|
Fe(() => {
|
|
10633
|
-
e.startDate && (h.value && e.focusStartDate || !h.value) &&
|
|
10633
|
+
e.startDate && (h.value && e.focusStartDate || !h.value) && _(Oe(ie(e.startDate)), 0);
|
|
10634
10634
|
});
|
|
10635
10635
|
const A = (y) => y ? { month: Ee(y), year: Oe(y) } : { month: null, year: null }, Z = () => h.value ? Array.isArray(h.value) ? h.value.map((y) => A(y)) : A(h.value) : A(), ne = (y, F) => {
|
|
10636
10636
|
const ae = b.value[y], B = Z();
|
|
@@ -10662,13 +10662,13 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10662
10662
|
h.value = Gt(ae, y, p.value(F)), t("auto-apply"), t("update-flow-step");
|
|
10663
10663
|
}, q = (y, F) => {
|
|
10664
10664
|
const ae = P(y, F);
|
|
10665
|
-
o.value.fixedEnd || o.value.fixedStart ? h.value = Io(ae, h, t, o) : h.value ?
|
|
10665
|
+
o.value.fixedEnd || o.value.fixedStart ? h.value = Io(ae, h, t, o) : h.value ? k(ae, h.value) && (h.value = Wl(h, P(y, F), t)) : h.value = [P(y, F)], Be().then(() => {
|
|
10666
10666
|
Rn(h.value, t, e.autoApply, e.modelAuto);
|
|
10667
10667
|
});
|
|
10668
10668
|
}, z = (y, F) => {
|
|
10669
10669
|
zl(P(y, F), h, f.value.limit), t("auto-apply", !0);
|
|
10670
10670
|
}, de = (y, F) => (b.value[F].month = y, j(F, b.value[F].year, y), f.value.enabled ? z(y, F) : o.value.enabled ? q(y, F) : Y(y, F)), ee = (y, F) => {
|
|
10671
|
-
|
|
10671
|
+
_(y, F), j(F, y, null);
|
|
10672
10672
|
}, j = (y, F, ae) => {
|
|
10673
10673
|
let B = ae;
|
|
10674
10674
|
if (!B && B !== 0) {
|
|
@@ -10745,8 +10745,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10745
10745
|
setHoverDate: b,
|
|
10746
10746
|
selectMonth: $,
|
|
10747
10747
|
selectYear: C,
|
|
10748
|
-
toggleYearPicker:
|
|
10749
|
-
handleYearSelect:
|
|
10748
|
+
toggleYearPicker: k,
|
|
10749
|
+
handleYearSelect: _,
|
|
10750
10750
|
handleYear: R,
|
|
10751
10751
|
getModelMonthYear: T
|
|
10752
10752
|
} = Hf(o, a);
|
|
@@ -10757,7 +10757,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10757
10757
|
selectMonth: $,
|
|
10758
10758
|
selectYear: C,
|
|
10759
10759
|
handleYear: R
|
|
10760
|
-
}), presetDate: v, toggleYearPicker: (O) =>
|
|
10760
|
+
}), presetDate: v, toggleYearPicker: (O) => k(0, O) }), (O, U) => (m(), ve(Pn, {
|
|
10761
10761
|
"multi-calendars": g(f).count,
|
|
10762
10762
|
collapse: O.collapse,
|
|
10763
10763
|
stretch: "",
|
|
@@ -10797,8 +10797,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10797
10797
|
year: g(d)(H),
|
|
10798
10798
|
"is-disabled": (N) => g(u)(H, N),
|
|
10799
10799
|
onHandleYear: (N) => g(R)(H, N),
|
|
10800
|
-
onYearSelect: (N) => g(
|
|
10801
|
-
onToggleYearPicker: (N) => g(
|
|
10800
|
+
onYearSelect: (N) => g(_)(N, H),
|
|
10801
|
+
onToggleYearPicker: (N) => g(k)(H, N?.flow, N?.show)
|
|
10802
10802
|
}), Xe({ _: 2 }, [
|
|
10803
10803
|
Le(g(r), (N, A) => ({
|
|
10804
10804
|
name: N,
|
|
@@ -10837,8 +10837,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10837
10837
|
v.value,
|
|
10838
10838
|
Fa(d.value.minDate),
|
|
10839
10839
|
Fa(d.value.maxDate)
|
|
10840
|
-
) || i.value.years.includes(v.value), C = c(v.value) && !b,
|
|
10841
|
-
return { active: b, disabled: $, isBetween: C, highlighted:
|
|
10840
|
+
) || i.value.years.includes(v.value), C = c(v.value) && !b, k = ql(r.value, v.value);
|
|
10841
|
+
return { active: b, disabled: $, isBetween: C, highlighted: k };
|
|
10842
10842
|
})), p = (v) => Ht(Mt(en(/* @__PURE__ */ new Date())), v);
|
|
10843
10843
|
return {
|
|
10844
10844
|
groupedYears: h,
|
|
@@ -10953,7 +10953,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
10953
10953
|
hours: !1,
|
|
10954
10954
|
minutes: !1,
|
|
10955
10955
|
seconds: !1
|
|
10956
|
-
}), b = V("AM"), $ = V(null), C = V([]),
|
|
10956
|
+
}), b = V("AM"), $ = V(null), C = V([]), k = V(), _ = V(!1);
|
|
10957
10957
|
Fe(() => {
|
|
10958
10958
|
a("mounted");
|
|
10959
10959
|
});
|
|
@@ -11015,15 +11015,15 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11015
11015
|
);
|
|
11016
11016
|
return Ae && pe ? (tn(Ne, pe) || Ma(Ne, pe)) && (Ia(Ne, Ae) || Ma(Ne, Ae)) : Ae ? Ia(Ne, Ae) || Ma(Ne, Ae) : pe ? tn(Ne, pe) || Ma(Ne, pe) : !0;
|
|
11017
11017
|
}, F = (L) => l[`no${L[0].toUpperCase() + L.slice(1)}Overlay`], ae = (L) => {
|
|
11018
|
-
F(L) || (v[L] = !v[L], v[L] ? (
|
|
11018
|
+
F(L) || (v[L] = !v[L], v[L] ? (_.value = !0, a("overlay-opened", L)) : (_.value = !1, a("overlay-closed", L)));
|
|
11019
11019
|
}, B = (L) => L === "hours" ? Ut : L === "minutes" ? da : Ba, se = () => {
|
|
11020
|
-
|
|
11020
|
+
k.value && clearTimeout(k.value);
|
|
11021
11021
|
}, X = (L, re = !0, Ae) => {
|
|
11022
11022
|
const pe = re ? Z : ne, Ne = re ? +l[`${L}Increment`] : -+l[`${L}Increment`];
|
|
11023
11023
|
y(+l[L] + Ne, L) && a(
|
|
11024
11024
|
`update:${L}`,
|
|
11025
11025
|
B(L)(pe({ [L]: +l[L] }, { [L]: +l[`${L}Increment`] }))
|
|
11026
|
-
), !(Ae != null && Ae.keyboard) && u.value.timeArrowHoldThreshold && (
|
|
11026
|
+
), !(Ae != null && Ae.keyboard) && u.value.timeArrowHoldThreshold && (k.value = setTimeout(() => {
|
|
11027
11027
|
X(L, re);
|
|
11028
11028
|
}, u.value.timeArrowHoldThreshold));
|
|
11029
11029
|
}, be = (L) => l.is24 ? L : (L >= 12 ? b.value = "PM" : b.value = "AM", Jc(L)), W = () => {
|
|
@@ -11052,7 +11052,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11052
11052
|
"data-collapsed": D.value && L.enableSeconds
|
|
11053
11053
|
}, [
|
|
11054
11054
|
pe.separator ? (m(), S(ke, { key: 0 }, [
|
|
11055
|
-
|
|
11055
|
+
_.value ? I("", !0) : (m(), S(ke, { key: 0 }, [
|
|
11056
11056
|
je(":")
|
|
11057
11057
|
], 64))
|
|
11058
11058
|
], 64)) : (m(), S(ke, { key: 1 }, [
|
|
@@ -11066,7 +11066,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11066
11066
|
dp__inc_dec_button_inline: L.timePickerInline,
|
|
11067
11067
|
dp__tp_inline_btn_top: L.timePickerInline,
|
|
11068
11068
|
dp__inc_dec_button_disabled: N.value(pe.type),
|
|
11069
|
-
"dp--hidden-el":
|
|
11069
|
+
"dp--hidden-el": _.value
|
|
11070
11070
|
}),
|
|
11071
11071
|
"data-test-id": `${pe.type}-time-inc-btn-${l.order}`,
|
|
11072
11072
|
"aria-label": (Ie = g(i)) == null ? void 0 : Ie.incrementValue(pe.type),
|
|
@@ -11097,7 +11097,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11097
11097
|
dp__time_display_inline: L.timePickerInline,
|
|
11098
11098
|
"dp--time-invalid": T.value(pe.type),
|
|
11099
11099
|
"dp--time-overlay-btn": !T.value(pe.type),
|
|
11100
|
-
"dp--hidden-el":
|
|
11100
|
+
"dp--hidden-el": _.value
|
|
11101
11101
|
}),
|
|
11102
11102
|
disabled: F(pe.type),
|
|
11103
11103
|
tabindex: "0",
|
|
@@ -11124,7 +11124,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11124
11124
|
dp__inc_dec_button_inline: L.timePickerInline,
|
|
11125
11125
|
dp__tp_inline_btn_bottom: L.timePickerInline,
|
|
11126
11126
|
dp__inc_dec_button_disabled: A.value(pe.type),
|
|
11127
|
-
"dp--hidden-el":
|
|
11127
|
+
"dp--hidden-el": _.value
|
|
11128
11128
|
}),
|
|
11129
11129
|
"data-test-id": `${pe.type}-time-dec-btn-${l.order}`,
|
|
11130
11130
|
"aria-label": (ue = g(i)) == null ? void 0 : ue.decrementValue(pe.type),
|
|
@@ -11250,7 +11250,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11250
11250
|
"am-pm-change"
|
|
11251
11251
|
],
|
|
11252
11252
|
setup(e, { expose: t, emit: n }) {
|
|
11253
|
-
const a = n, l = e, { buildMatrix: r, setTimePicker: o } = ca(), i = bt(), { defaultedTransitions: s, defaultedAriaLabels: d, defaultedTextInput: u, defaultedConfig: f, defaultedRange: c } = Je(l), { transitionName: h, showTransition: p } = on(s), { hideNavigationButtons: v } = An(), b = V(null), $ = V(null), C = V([]),
|
|
11253
|
+
const a = n, l = e, { buildMatrix: r, setTimePicker: o } = ca(), i = bt(), { defaultedTransitions: s, defaultedAriaLabels: d, defaultedTextInput: u, defaultedConfig: f, defaultedRange: c } = Je(l), { transitionName: h, showTransition: p } = on(s), { hideNavigationButtons: v } = An(), b = V(null), $ = V(null), C = V([]), k = V(null), _ = V(!1);
|
|
11254
11254
|
Fe(() => {
|
|
11255
11255
|
a("mount"), !l.timePicker && l.arrowNavigation ? r([ut(b.value)], "time") : o(!0, l.timePicker);
|
|
11256
11256
|
});
|
|
@@ -11281,14 +11281,14 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11281
11281
|
}, D = (q) => {
|
|
11282
11282
|
a("update:seconds", q);
|
|
11283
11283
|
}, w = () => {
|
|
11284
|
-
if (
|
|
11285
|
-
const q = xo(
|
|
11284
|
+
if (k.value && !u.value.enabled && !l.noOverlayFocus) {
|
|
11285
|
+
const q = xo(k.value);
|
|
11286
11286
|
q && q.focus({ preventScroll: !0 });
|
|
11287
11287
|
}
|
|
11288
11288
|
}, P = (q) => {
|
|
11289
|
-
|
|
11289
|
+
_.value = !1, a("overlay-closed", q);
|
|
11290
11290
|
}, Y = (q) => {
|
|
11291
|
-
|
|
11291
|
+
_.value = !0, a("overlay-opened", q);
|
|
11292
11292
|
};
|
|
11293
11293
|
return t({ toggleTimePicker: H }), (q, z) => {
|
|
11294
11294
|
var de;
|
|
@@ -11323,7 +11323,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11323
11323
|
T.value || q.timePicker || q.timePickerInline ? (m(), S("div", {
|
|
11324
11324
|
key: 0,
|
|
11325
11325
|
ref_key: "overlayRef",
|
|
11326
|
-
ref:
|
|
11326
|
+
ref: k,
|
|
11327
11327
|
role: q.timePickerInline ? void 0 : "dialog",
|
|
11328
11328
|
class: J({
|
|
11329
11329
|
dp__overlay: !q.timePickerInline,
|
|
@@ -11393,7 +11393,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11393
11393
|
ref_key: "closeTimePickerBtn",
|
|
11394
11394
|
ref: $,
|
|
11395
11395
|
type: "button",
|
|
11396
|
-
class: J({ ...N.value, "dp--hidden-el":
|
|
11396
|
+
class: J({ ...N.value, "dp--hidden-el": _.value }),
|
|
11397
11397
|
"aria-label": (j = g(d)) == null ? void 0 : j.closeTimePicker,
|
|
11398
11398
|
tabindex: "0",
|
|
11399
11399
|
onKeydown: z[3] || (z[3] = (y) => g(ht)(y, () => H(!1))),
|
|
@@ -11414,11 +11414,11 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11414
11414
|
};
|
|
11415
11415
|
}
|
|
11416
11416
|
}), Fo = (e, t, n, a) => {
|
|
11417
|
-
const { defaultedRange: l } = Je(e), r = (
|
|
11418
|
-
t[
|
|
11419
|
-
}, d = x(() => e.modelAuto && l.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : l.value.enabled), u = (
|
|
11417
|
+
const { defaultedRange: l } = Je(e), r = (k, _) => Array.isArray(t[k]) ? t[k][_] : t[k], o = (k) => e.enableSeconds ? Array.isArray(t.seconds) ? t.seconds[k] : t.seconds : 0, i = (k, _) => k ? _ !== void 0 ? ra(k, r("hours", _), r("minutes", _), o(_)) : ra(k, t.hours, t.minutes, o()) : go(ie(), o(_)), s = (k, _) => {
|
|
11418
|
+
t[k] = _;
|
|
11419
|
+
}, d = x(() => e.modelAuto && l.value.enabled ? Array.isArray(n.value) ? n.value.length > 1 : !1 : l.value.enabled), u = (k, _) => {
|
|
11420
11420
|
const R = Object.fromEntries(
|
|
11421
|
-
Object.keys(t).map((T) => T ===
|
|
11421
|
+
Object.keys(t).map((T) => T === k ? [T, _] : [T, t[T]].slice())
|
|
11422
11422
|
);
|
|
11423
11423
|
if (d.value && !l.value.disableTimeRangeValidation) {
|
|
11424
11424
|
const T = (U) => n.value ? ra(
|
|
@@ -11430,31 +11430,31 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11430
11430
|
return !(Ve(T(0), T(1)) && (Ia(T(0), O(1)) || tn(T(1), O(0))));
|
|
11431
11431
|
}
|
|
11432
11432
|
return !0;
|
|
11433
|
-
}, f = (
|
|
11434
|
-
u(
|
|
11435
|
-
}, c = (
|
|
11436
|
-
f("hours",
|
|
11437
|
-
}, h = (
|
|
11438
|
-
f("minutes",
|
|
11439
|
-
}, p = (
|
|
11440
|
-
f("seconds",
|
|
11441
|
-
}, v = (
|
|
11442
|
-
|
|
11443
|
-
}, b = (
|
|
11444
|
-
if (
|
|
11445
|
-
const
|
|
11433
|
+
}, f = (k, _) => {
|
|
11434
|
+
u(k, _) && (s(k, _), a && a());
|
|
11435
|
+
}, c = (k) => {
|
|
11436
|
+
f("hours", k);
|
|
11437
|
+
}, h = (k) => {
|
|
11438
|
+
f("minutes", k);
|
|
11439
|
+
}, p = (k) => {
|
|
11440
|
+
f("seconds", k);
|
|
11441
|
+
}, v = (k, _, R, T) => {
|
|
11442
|
+
_ && c(k), !_ && !R && h(k), R && p(k), n.value && T(n.value);
|
|
11443
|
+
}, b = (k) => {
|
|
11444
|
+
if (k) {
|
|
11445
|
+
const _ = Array.isArray(k), R = _ ? [+k[0].hours, +k[1].hours] : +k.hours, T = _ ? [+k[0].minutes, +k[1].minutes] : +k.minutes, O = _ ? [+k[0].seconds, +k[1].seconds] : +k.seconds;
|
|
11446
11446
|
s("hours", R), s("minutes", T), e.enableSeconds && s("seconds", O);
|
|
11447
11447
|
}
|
|
11448
|
-
}, $ = (
|
|
11448
|
+
}, $ = (k, _) => {
|
|
11449
11449
|
const R = {
|
|
11450
|
-
hours: Array.isArray(t.hours) ? t.hours[
|
|
11450
|
+
hours: Array.isArray(t.hours) ? t.hours[k] : t.hours,
|
|
11451
11451
|
disabledArr: []
|
|
11452
11452
|
};
|
|
11453
|
-
return (
|
|
11454
|
-
}, C = x(() => (
|
|
11453
|
+
return (_ || _ === 0) && (R.hours = _), Array.isArray(e.disabledTimes) && (R.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[k]) ? e.disabledTimes[k] : e.disabledTimes), R;
|
|
11454
|
+
}, C = x(() => (k, _) => {
|
|
11455
11455
|
var R;
|
|
11456
11456
|
if (Array.isArray(e.disabledTimes)) {
|
|
11457
|
-
const { disabledArr: T, hours: O } = $(
|
|
11457
|
+
const { disabledArr: T, hours: O } = $(k, _), U = T.filter((H) => +H.hours === O);
|
|
11458
11458
|
return ((R = U[0]) == null ? void 0 : R.minutes) === "*" ? { hours: [O], minutes: void 0, seconds: void 0 } : {
|
|
11459
11459
|
hours: [],
|
|
11460
11460
|
minutes: U?.map((H) => +H.minutes) ?? [],
|
|
@@ -11477,7 +11477,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11477
11477
|
};
|
|
11478
11478
|
}, lp = (e, t) => {
|
|
11479
11479
|
const n = () => {
|
|
11480
|
-
e.isTextInputDate &&
|
|
11480
|
+
e.isTextInputDate && _();
|
|
11481
11481
|
}, { modelValue: a, time: l } = sn(e, t, n), { defaultedStartTime: r, defaultedRange: o, defaultedTz: i } = Je(e), { updateTimeValues: s, getSetDateTime: d, setTime: u, assignStartTime: f, disabledTimesConfig: c, validateTime: h } = Fo(e, l, a, p);
|
|
11482
11482
|
function p() {
|
|
11483
11483
|
t("update-flow-step");
|
|
@@ -11504,19 +11504,19 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11504
11504
|
];
|
|
11505
11505
|
} else
|
|
11506
11506
|
a.value = gt(d(b()), i.value.timezone);
|
|
11507
|
-
}, C = (T) => Array.isArray(T) ? [ya(ie(T[0])), ya(ie(T[1]))] : [ya(T ?? ie())],
|
|
11507
|
+
}, C = (T) => Array.isArray(T) ? [ya(ie(T[0])), ya(ie(T[1]))] : [ya(T ?? ie())], k = (T, O, U) => {
|
|
11508
11508
|
u("hours", T), u("minutes", O), u("seconds", e.enableSeconds ? U : 0);
|
|
11509
|
-
},
|
|
11509
|
+
}, _ = () => {
|
|
11510
11510
|
const [T, O] = C(a.value);
|
|
11511
|
-
return o.value.enabled ?
|
|
11511
|
+
return o.value.enabled ? k(
|
|
11512
11512
|
[T.hours, O.hours],
|
|
11513
11513
|
[T.minutes, O.minutes],
|
|
11514
11514
|
[T.seconds, O.seconds]
|
|
11515
|
-
) :
|
|
11515
|
+
) : k(T.hours, T.minutes, T.seconds);
|
|
11516
11516
|
};
|
|
11517
11517
|
Fe(() => {
|
|
11518
11518
|
if (!e.shadow)
|
|
11519
|
-
return f(r.value), a.value ?
|
|
11519
|
+
return f(r.value), a.value ? _() : $();
|
|
11520
11520
|
});
|
|
11521
11521
|
const R = () => {
|
|
11522
11522
|
Array.isArray(a.value) ? a.value = a.value.map((T, O) => T && d(T, O)) : a.value = d(a.value), t("time-update");
|
|
@@ -11620,7 +11620,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11620
11620
|
defaultedHighlight: u,
|
|
11621
11621
|
propDates: f,
|
|
11622
11622
|
defaultedUI: c
|
|
11623
|
-
} = Je(l), { transitionName: h, showTransition: p } = on(r), { buildMatrix: v } = ca(), { handleMonthYearChange: b, isDisabled: $, updateMonthYear: C } = Pf(l, a), { showLeftIcon:
|
|
11623
|
+
} = Je(l), { transitionName: h, showTransition: p } = on(r), { buildMatrix: v } = ca(), { handleMonthYearChange: b, isDisabled: $, updateMonthYear: C } = Pf(l, a), { showLeftIcon: k, showRightIcon: _ } = An(), R = V(!1), T = V(!1), O = V(!1), U = V([null, null, null, null]);
|
|
11624
11624
|
Fe(() => {
|
|
11625
11625
|
a("mount");
|
|
11626
11626
|
});
|
|
@@ -11704,7 +11704,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11704
11704
|
G(j.$slots, "top-extra", { value: j.internalModelValue })
|
|
11705
11705
|
])) : I("", !0),
|
|
11706
11706
|
E("div", up, [
|
|
11707
|
-
g(
|
|
11707
|
+
g(k)(g(i), e.instance) && !j.vertical ? (m(), ve(Xa, {
|
|
11708
11708
|
key: 0,
|
|
11709
11709
|
"aria-label": (F = g(o)) == null ? void 0 : F.prevMonth,
|
|
11710
11710
|
disabled: g($)(!1),
|
|
@@ -11808,7 +11808,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11808
11808
|
}, 1032, ["name", "css"])
|
|
11809
11809
|
], 64))), 128))
|
|
11810
11810
|
], 2),
|
|
11811
|
-
g(
|
|
11811
|
+
g(k)(g(i), e.instance) && j.vertical ? (m(), ve(Xa, {
|
|
11812
11812
|
key: 1,
|
|
11813
11813
|
"aria-label": (B = g(o)) == null ? void 0 : B.prevMonth,
|
|
11814
11814
|
"el-name": "action-prev",
|
|
@@ -11822,7 +11822,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11822
11822
|
]),
|
|
11823
11823
|
_: 3
|
|
11824
11824
|
}, 8, ["aria-label", "disabled", "class"])) : I("", !0),
|
|
11825
|
-
g(
|
|
11825
|
+
g(_)(g(i), e.instance) ? (m(), ve(Xa, {
|
|
11826
11826
|
key: 2,
|
|
11827
11827
|
ref: "rightIcon",
|
|
11828
11828
|
"el-name": "action-next",
|
|
@@ -11889,7 +11889,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11889
11889
|
bottom: "",
|
|
11890
11890
|
left: "",
|
|
11891
11891
|
transform: ""
|
|
11892
|
-
}), v = V([]), b = V(null), $ = V(!0), C = V(""),
|
|
11892
|
+
}), v = V([]), b = V(null), $ = V(!0), C = V(""), k = V({ startX: 0, endX: 0, startY: 0, endY: 0 }), _ = V([]), R = V({ left: "50%" }), T = V(!1), O = x(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), U = x(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : Xc(l.formatLocale, l.locale, +l.weekStart));
|
|
11893
11893
|
Fe(() => {
|
|
11894
11894
|
a("mount", { cmp: "calendar", refs: v }), i.value.noSwipe || b.value && (b.value.addEventListener("touchstart", z, { passive: !1 }), b.value.addEventListener("touchend", de, { passive: !1 }), b.value.addEventListener("touchmove", ee, { passive: !1 })), l.monthChangeOnScroll && b.value && b.value.addEventListener("wheel", F, { passive: !1 });
|
|
11895
11895
|
});
|
|
@@ -11917,8 +11917,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11917
11917
|
const { width: le, height: he } = W.getBoundingClientRect();
|
|
11918
11918
|
h.value = oe.value;
|
|
11919
11919
|
let L = { left: `${le / 2}px` }, re = -50;
|
|
11920
|
-
if (await Be(),
|
|
11921
|
-
const { left: Ae, width: pe } =
|
|
11920
|
+
if (await Be(), _.value[0]) {
|
|
11921
|
+
const { left: Ae, width: pe } = _.value[0].getBoundingClientRect();
|
|
11922
11922
|
Ae < 0 && (L = { left: "0" }, re = 0, R.value.left = `${le / 2}px`), window.innerWidth < Ae + pe && (L = { right: "0" }, re = 0, R.value.left = `${pe - le / 2}px`);
|
|
11923
11923
|
}
|
|
11924
11924
|
p.value = {
|
|
@@ -11941,14 +11941,14 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
11941
11941
|
}, q = (W) => {
|
|
11942
11942
|
h.value && (h.value = null, p.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", W.marker));
|
|
11943
11943
|
}, z = (W) => {
|
|
11944
|
-
|
|
11944
|
+
k.value.startX = W.changedTouches[0].screenX, k.value.startY = W.changedTouches[0].screenY;
|
|
11945
11945
|
}, de = (W) => {
|
|
11946
|
-
|
|
11946
|
+
k.value.endX = W.changedTouches[0].screenX, k.value.endY = W.changedTouches[0].screenY, j();
|
|
11947
11947
|
}, ee = (W) => {
|
|
11948
11948
|
l.vertical && !l.inline && W.preventDefault();
|
|
11949
11949
|
}, j = () => {
|
|
11950
11950
|
const W = l.vertical ? "Y" : "X";
|
|
11951
|
-
Math.abs(
|
|
11951
|
+
Math.abs(k.value[`start${W}`] - k.value[`end${W}`]) > 10 && a("handle-swipe", k.value[`start${W}`] > k.value[`end${W}`] ? "right" : "left");
|
|
11952
11952
|
}, y = (W, oe, le) => {
|
|
11953
11953
|
W && (Array.isArray(v.value[oe]) ? v.value[oe][le] = W : v.value[oe] = [W]), l.arrowNavigation && r(v.value, "calendar");
|
|
11954
11954
|
}, F = (W) => {
|
|
@@ -12063,7 +12063,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12063
12063
|
key: 3,
|
|
12064
12064
|
ref_for: !0,
|
|
12065
12065
|
ref_key: "activeTooltip",
|
|
12066
|
-
ref:
|
|
12066
|
+
ref: _,
|
|
12067
12067
|
class: "dp__marker_tooltip",
|
|
12068
12068
|
style: Ye(p.value)
|
|
12069
12069
|
}, [
|
|
@@ -12115,7 +12115,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12115
12115
|
defaultedTz: b,
|
|
12116
12116
|
propDates: $,
|
|
12117
12117
|
defaultedMultiDates: C
|
|
12118
|
-
} = Je(e), { validateMonthYearInRange:
|
|
12118
|
+
} = Je(e), { validateMonthYearInRange: k, isDisabled: _, isDateRangeAllowed: R, checkMinMaxRange: T } = fa(e), { updateTimeValues: O, getSetDateTime: U, setTime: H, assignStartTime: N, validateTime: A, disabledTimesConfig: Z } = Fo(e, u, s, a), ne = x(
|
|
12119
12119
|
() => (K) => d.value[K] ? d.value[K].month : 0
|
|
12120
12120
|
), M = x(
|
|
12121
12121
|
() => (K) => d.value[K] ? d.value[K].year : 0
|
|
@@ -12172,7 +12172,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12172
12172
|
ae(ce, K), c.value.count && c.value.solo && be();
|
|
12173
12173
|
}, se = (K, ce) => {
|
|
12174
12174
|
const Te = We(ie(), { month: ne.value(ce), year: M.value(ce) }), te = K < 0 ? Pt(Te, 1) : Ea(Te, 1);
|
|
12175
|
-
|
|
12175
|
+
k(Ee(te), Oe(te), K < 0, e.preventMinMaxNavigation) && (w(ce, Ee(te), Oe(te)), t("update-month-year", { instance: ce, month: Ee(te), year: Oe(te) }), c.value.count && !c.value.solo && X(ce), n());
|
|
12176
12176
|
}, X = (K) => {
|
|
12177
12177
|
for (let ce = K - 1; ce >= 0; ce--) {
|
|
12178
12178
|
const Te = Ea(We(ie(), { month: ne.value(ce + 1), year: M.value(ce + 1) }), 1);
|
|
@@ -12258,7 +12258,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12258
12258
|
t("date-update", ce), C.value.enabled ? zl(ce, s, C.value.limit) : s.value = ce, a(), Be().then(() => {
|
|
12259
12259
|
q();
|
|
12260
12260
|
});
|
|
12261
|
-
}, Q = (K) => p.value.noDisabledRange ? To(l.value[0], K).some((ce) =>
|
|
12261
|
+
}, Q = (K) => p.value.noDisabledRange ? To(l.value[0], K).some((ce) => _(ce)) : !1, ue = () => {
|
|
12262
12262
|
l.value = s.value ? s.value.slice() : [], l.value.length === 2 && !(p.value.fixedStart || p.value.fixedEnd) && (l.value = []);
|
|
12263
12263
|
}, $e = (K, ce) => {
|
|
12264
12264
|
const Te = [
|
|
@@ -12296,7 +12296,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12296
12296
|
}, Bn = () => {
|
|
12297
12297
|
l.value.length && (l.value[0] && !l.value[1] ? at(0) : (at(0), at(1), a()), Ln(), s.value = l.value.slice(), Rn(l.value, t, e.autoApply, e.modelAuto));
|
|
12298
12298
|
}, un = (K, ce = !1) => {
|
|
12299
|
-
if (
|
|
12299
|
+
if (_(K.value) || !K.current && e.hideOffsetDates) return t("invalid-date", K.value);
|
|
12300
12300
|
if (o.value = JSON.parse(JSON.stringify(K)), !p.value.enabled) return Ie(K);
|
|
12301
12301
|
xr(u.hours) && xr(u.minutes) && !C.value.enabled && (Se(K, ce), Bn());
|
|
12302
12302
|
}, In = (K, ce) => {
|
|
@@ -12393,8 +12393,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12393
12393
|
handleScroll: b,
|
|
12394
12394
|
handleSwipe: $,
|
|
12395
12395
|
selectDate: C,
|
|
12396
|
-
updateMonthYear:
|
|
12397
|
-
presetDate:
|
|
12396
|
+
updateMonthYear: k,
|
|
12397
|
+
presetDate: _,
|
|
12398
12398
|
selectCurrentDate: R,
|
|
12399
12399
|
updateTime: T,
|
|
12400
12400
|
assignMonthAndYear: O
|
|
@@ -12453,7 +12453,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12453
12453
|
var le;
|
|
12454
12454
|
(le = ne.value[0]) == null || le.handleMonthYearChange(oe, !0);
|
|
12455
12455
|
}, X = (oe) => {
|
|
12456
|
-
|
|
12456
|
+
k(0, { month: o.value(0), year: i.value(0) + (oe ? 1 : -1), fromNav: !0 });
|
|
12457
12457
|
}, be = (oe, le) => {
|
|
12458
12458
|
oe === pt.time && a(`time-picker-${le ? "open" : "close"}`), a("overlay-toggle", { open: le, overlay: oe });
|
|
12459
12459
|
}, W = (oe) => {
|
|
@@ -12461,22 +12461,22 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12461
12461
|
};
|
|
12462
12462
|
return t({
|
|
12463
12463
|
clearHoverDate: A,
|
|
12464
|
-
presetDate:
|
|
12464
|
+
presetDate: _,
|
|
12465
12465
|
selectCurrentDate: R,
|
|
12466
12466
|
toggleMonthPicker: y,
|
|
12467
12467
|
toggleYearPicker: F,
|
|
12468
12468
|
toggleTimePicker: ae,
|
|
12469
12469
|
handleArrow: v,
|
|
12470
|
-
updateMonthYear:
|
|
12470
|
+
updateMonthYear: k,
|
|
12471
12471
|
getSidebarProps: () => ({
|
|
12472
12472
|
modelValue: s,
|
|
12473
12473
|
month: o,
|
|
12474
12474
|
year: i,
|
|
12475
12475
|
time: d,
|
|
12476
12476
|
updateTime: T,
|
|
12477
|
-
updateMonthYear:
|
|
12477
|
+
updateMonthYear: k,
|
|
12478
12478
|
selectDate: C,
|
|
12479
|
-
presetDate:
|
|
12479
|
+
presetDate: _
|
|
12480
12480
|
}),
|
|
12481
12481
|
changeMonth: se,
|
|
12482
12482
|
changeYear: X,
|
|
@@ -12501,7 +12501,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12501
12501
|
}, oe.$props, {
|
|
12502
12502
|
onMount: le[0] || (le[0] = (re) => q(g(ha).header)),
|
|
12503
12503
|
onResetFlow: le[1] || (le[1] = (re) => oe.$emit("reset-flow")),
|
|
12504
|
-
onUpdateMonthYear: (re) => g(
|
|
12504
|
+
onUpdateMonthYear: (re) => g(k)(he, re),
|
|
12505
12505
|
onOverlayClosed: W,
|
|
12506
12506
|
onOverlayOpened: le[2] || (le[2] = (re) => oe.$emit("overlay-toggle", { open: !0, overlay: re }))
|
|
12507
12507
|
}), Xe({ _: 2 }, [
|
|
@@ -12581,7 +12581,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12581
12581
|
propDates: i,
|
|
12582
12582
|
defaultedFilters: s,
|
|
12583
12583
|
defaultedMultiDates: d
|
|
12584
|
-
} = Je(e), { modelValue: u, year: f, month: c, calendars: h } = sn(e, t), { isDisabled: p } = fa(e), { selectYear: v, groupedYears: b, showYearPicker: $, isDisabled: C, toggleYearPicker:
|
|
12584
|
+
} = Je(e), { modelValue: u, year: f, month: c, calendars: h } = sn(e, t), { isDisabled: p } = fa(e), { selectYear: v, groupedYears: b, showYearPicker: $, isDisabled: C, toggleYearPicker: k, handleYearSelect: _, handleYear: R } = Eo({
|
|
12585
12585
|
modelValue: u,
|
|
12586
12586
|
multiCalendars: a,
|
|
12587
12587
|
range: o,
|
|
@@ -12642,8 +12642,8 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12642
12642
|
if (!P)
|
|
12643
12643
|
return h.value[w].month = Ee(ur(D)), d.value.enabled ? Z(D) : o.value.enabled ? ne(D) : M(D);
|
|
12644
12644
|
},
|
|
12645
|
-
toggleYearPicker:
|
|
12646
|
-
handleYearSelect:
|
|
12645
|
+
toggleYearPicker: k,
|
|
12646
|
+
handleYearSelect: _,
|
|
12647
12647
|
handleYear: R
|
|
12648
12648
|
};
|
|
12649
12649
|
}, xp = { class: "dp--quarter-items" }, $p = ["data-test-id", "disabled", "onClick", "onMouseover"], Sp = /* @__PURE__ */ _e({
|
|
@@ -12678,44 +12678,44 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12678
12678
|
selectQuarter: b,
|
|
12679
12679
|
toggleYearPicker: $,
|
|
12680
12680
|
handleYearSelect: C,
|
|
12681
|
-
handleYear:
|
|
12681
|
+
handleYear: k
|
|
12682
12682
|
} = kp(l, a);
|
|
12683
12683
|
return t({ getSidebarProps: () => ({
|
|
12684
12684
|
modelValue: h,
|
|
12685
12685
|
year: u,
|
|
12686
12686
|
selectQuarter: b,
|
|
12687
12687
|
handleYearSelect: C,
|
|
12688
|
-
handleYear:
|
|
12689
|
-
}) }), (
|
|
12688
|
+
handleYear: k
|
|
12689
|
+
}) }), (_, R) => (m(), ve(Pn, {
|
|
12690
12690
|
"multi-calendars": g(i).count,
|
|
12691
|
-
collapse:
|
|
12691
|
+
collapse: _.collapse,
|
|
12692
12692
|
stretch: "",
|
|
12693
|
-
"is-mobile":
|
|
12693
|
+
"is-mobile": _.isMobile
|
|
12694
12694
|
}, {
|
|
12695
12695
|
default: ye(({ instance: T }) => [
|
|
12696
12696
|
E("div", {
|
|
12697
12697
|
class: "dp-quarter-picker-wrap",
|
|
12698
12698
|
style: Ye({ minHeight: `${g(s).modeHeight}px` })
|
|
12699
12699
|
}, [
|
|
12700
|
-
|
|
12700
|
+
_.$slots["top-extra"] ? G(_.$slots, "top-extra", {
|
|
12701
12701
|
key: 0,
|
|
12702
|
-
value:
|
|
12702
|
+
value: _.internalModelValue
|
|
12703
12703
|
}) : I("", !0),
|
|
12704
12704
|
E("div", null, [
|
|
12705
|
-
we(Lo, Re(
|
|
12705
|
+
we(Lo, Re(_.$props, {
|
|
12706
12706
|
items: g(d)(T),
|
|
12707
12707
|
instance: T,
|
|
12708
12708
|
"show-year-picker": g(p)[T],
|
|
12709
12709
|
year: g(u)(T),
|
|
12710
12710
|
"is-disabled": (O) => g(f)(T, O),
|
|
12711
|
-
onHandleYear: (O) => g(
|
|
12711
|
+
onHandleYear: (O) => g(k)(T, O),
|
|
12712
12712
|
onYearSelect: (O) => g(C)(O, T),
|
|
12713
12713
|
onToggleYearPicker: (O) => g($)(T, O?.flow, O?.show)
|
|
12714
12714
|
}), Xe({ _: 2 }, [
|
|
12715
12715
|
Le(g(o), (O, U) => ({
|
|
12716
12716
|
name: O,
|
|
12717
12717
|
fn: ye((H) => [
|
|
12718
|
-
G(
|
|
12718
|
+
G(_.$slots, O, Qe(dt(H)))
|
|
12719
12719
|
])
|
|
12720
12720
|
}))
|
|
12721
12721
|
]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
|
|
@@ -12735,7 +12735,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12735
12735
|
onClick: (H) => g(b)(O.value, T, O.disabled),
|
|
12736
12736
|
onMouseover: (H) => g(v)(O.value)
|
|
12737
12737
|
}, [
|
|
12738
|
-
|
|
12738
|
+
_.$slots.quarter ? G(_.$slots, "quarter", {
|
|
12739
12739
|
key: 0,
|
|
12740
12740
|
value: O.value,
|
|
12741
12741
|
text: O.text
|
|
@@ -12828,10 +12828,10 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12828
12828
|
flowStep: A.value,
|
|
12829
12829
|
menuWrapRef: r.value
|
|
12830
12830
|
};
|
|
12831
|
-
}), { setMenuFocused: i, setShiftKey: s, control: d } = Ao(), u = bt(), { defaultedTextInput: f, defaultedInline: c, defaultedConfig: h, defaultedUI: p } = Je(l), { isMobile: v } = No(h, l.shadow), b = V(null), $ = V(0), C = V(null),
|
|
12831
|
+
}), { setMenuFocused: i, setShiftKey: s, control: d } = Ao(), u = bt(), { defaultedTextInput: f, defaultedInline: c, defaultedConfig: h, defaultedUI: p } = Je(l), { isMobile: v } = No(h, l.shadow), b = V(null), $ = V(0), C = V(null), k = V(!1), _ = V(null), R = V(!1);
|
|
12832
12832
|
Fe(() => {
|
|
12833
12833
|
if (!l.shadow) {
|
|
12834
|
-
|
|
12834
|
+
k.value = !0, T(), window.addEventListener("resize", T);
|
|
12835
12835
|
const Q = ut(r);
|
|
12836
12836
|
if (Q && !f.value.enabled && !c.value.enabled && (i(!0), Y()), Q) {
|
|
12837
12837
|
const ue = ($e) => {
|
|
@@ -12847,7 +12847,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12847
12847
|
const T = () => {
|
|
12848
12848
|
const Q = ut(C);
|
|
12849
12849
|
Q && ($.value = Q.getBoundingClientRect().width);
|
|
12850
|
-
}, { arrowRight: O, arrowLeft: U, arrowDown: H, arrowUp: N } = ca(), { flowStep: A, updateFlowStep: Z, childMount: ne, resetFlow: M, handleFlow: D } = Fp(l, a,
|
|
12850
|
+
}, { arrowRight: O, arrowLeft: U, arrowDown: H, arrowUp: N } = ca(), { flowStep: A, updateFlowStep: Z, childMount: ne, resetFlow: M, handleFlow: D } = Fp(l, a, _), w = x(() => l.monthPicker ? qf : l.yearPicker ? Wf : l.timePicker ? rp : l.quarterPicker ? Sp : _p), P = x(() => {
|
|
12851
12851
|
var Q;
|
|
12852
12852
|
if (h.value.arrowLeft) return h.value.arrowLeft;
|
|
12853
12853
|
const ue = (Q = r.value) == null ? void 0 : Q.getBoundingClientRect(), $e = l.getInputRect();
|
|
@@ -12857,7 +12857,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12857
12857
|
Q && Q.focus({ preventScroll: !0 });
|
|
12858
12858
|
}, q = x(() => {
|
|
12859
12859
|
var Q;
|
|
12860
|
-
return ((Q =
|
|
12860
|
+
return ((Q = _.value) == null ? void 0 : Q.getSidebarProps()) || {};
|
|
12861
12861
|
}), z = () => {
|
|
12862
12862
|
l.openOnTop && a("recalculate-position");
|
|
12863
12863
|
}, de = _t(u, "action"), ee = x(() => l.monthPicker || l.yearPicker ? _t(u, "monthYear") : l.timePicker ? _t(u, "timePicker") : _t(u, "shared")), j = x(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), y = x(() => ({
|
|
@@ -12888,13 +12888,13 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
12888
12888
|
Y(), a("time-picker-close");
|
|
12889
12889
|
}, W = (Q) => {
|
|
12890
12890
|
var ue, $e, st;
|
|
12891
|
-
(ue =
|
|
12891
|
+
(ue = _.value) == null || ue.toggleTimePicker(!1, !1), ($e = _.value) == null || $e.toggleMonthPicker(!1, !1, Q), (st = _.value) == null || st.toggleYearPicker(!1, !1, Q);
|
|
12892
12892
|
}, oe = (Q, ue = 0) => {
|
|
12893
12893
|
var $e, st, Et;
|
|
12894
|
-
return Q === "month" ? ($e =
|
|
12894
|
+
return Q === "month" ? ($e = _.value) == null ? void 0 : $e.toggleMonthPicker(!1, !0, ue) : Q === "year" ? (st = _.value) == null ? void 0 : st.toggleYearPicker(!1, !0, ue) : Q === "time" ? (Et = _.value) == null ? void 0 : Et.toggleTimePicker(!0, !1) : W(ue);
|
|
12895
12895
|
}, le = (Q, ...ue) => {
|
|
12896
12896
|
var $e, st;
|
|
12897
|
-
($e =
|
|
12897
|
+
($e = _.value) != null && $e[Q] && ((st = _.value) == null || st[Q](...ue));
|
|
12898
12898
|
}, he = () => {
|
|
12899
12899
|
le("selectCurrentDate");
|
|
12900
12900
|
}, L = (Q, ue) => {
|
|
@@ -13009,7 +13009,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
13009
13009
|
}, [
|
|
13010
13010
|
(m(), ve(wa(w.value), Re({
|
|
13011
13011
|
ref_key: "dynCmpRef",
|
|
13012
|
-
ref:
|
|
13012
|
+
ref: _
|
|
13013
13013
|
}, o.value, {
|
|
13014
13014
|
"flow-step": g(A),
|
|
13015
13015
|
onMount: g(ne),
|
|
@@ -13055,7 +13055,7 @@ const vl = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), $o = (e, t) =
|
|
|
13055
13055
|
], 14, Mp),
|
|
13056
13056
|
!Q.autoApply || g(h).keepActionRow ? (m(), ve(Lf, Re({
|
|
13057
13057
|
key: 3,
|
|
13058
|
-
"menu-mount":
|
|
13058
|
+
"menu-mount": k.value
|
|
13059
13059
|
}, o.value, {
|
|
13060
13060
|
"calendar-width": $.value,
|
|
13061
13061
|
onClosePicker: ue[16] || (ue[16] = (Se) => Q.$emit("close-picker")),
|
|
@@ -13110,16 +13110,16 @@ const Bp = ({
|
|
|
13110
13110
|
}, C = (w) => {
|
|
13111
13111
|
const { width: P, height: Y } = w.getBoundingClientRect(), { top: q, left: z } = p(w);
|
|
13112
13112
|
return { top: +q, left: +z, width: P, height: Y };
|
|
13113
|
-
}, _ = () => {
|
|
13114
|
-
f.value.left = "50%", f.value.top = "50%", f.value.transform = "translate(-50%, -50%)", f.value.position = "fixed", delete f.value.opacity;
|
|
13115
13113
|
}, k = () => {
|
|
13114
|
+
f.value.left = "50%", f.value.top = "50%", f.value.transform = "translate(-50%, -50%)", f.value.position = "fixed", delete f.value.opacity;
|
|
13115
|
+
}, _ = () => {
|
|
13116
13116
|
const w = ut(n);
|
|
13117
13117
|
f.value = o.altPosition(w);
|
|
13118
13118
|
}, R = (w = !0) => {
|
|
13119
13119
|
var P;
|
|
13120
13120
|
if (!l.value.enabled) {
|
|
13121
|
-
if (h.value) return
|
|
13122
|
-
if (o.altPosition !== null) return
|
|
13121
|
+
if (h.value) return k();
|
|
13122
|
+
if (o.altPosition !== null) return _();
|
|
13123
13123
|
if (w) {
|
|
13124
13124
|
const Y = o.teleport ? (P = t.value) == null ? void 0 : P.$el : e.value;
|
|
13125
13125
|
Y && (d.value = Y.getBoundingClientRect()), r("recalculate-position");
|
|
@@ -13339,7 +13339,7 @@ const Bp = ({
|
|
|
13339
13339
|
return F ? lt(e.value[0], y.value) && ae : et(e.value[0], y.value) && ae;
|
|
13340
13340
|
}
|
|
13341
13341
|
return !1;
|
|
13342
|
-
},
|
|
13342
|
+
}, k = (y) => !e.value || t.hideOffsetDates && !y.current ? !1 : s.value.enabled ? t.modelAuto && Array.isArray(e.value) ? Ve(y.value, e.value[0] ? e.value[0] : f.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((F) => Ve(F, y.value)) : Ve(y.value, e.value ? e.value : f.value), _ = (y) => {
|
|
13343
13343
|
if (s.value.autoRange || t.weekPicker) {
|
|
13344
13344
|
if (u.value) {
|
|
13345
13345
|
if (t.hideOffsetDates && !y.current) return !1;
|
|
@@ -13373,14 +13373,14 @@ const Bp = ({
|
|
|
13373
13373
|
}, O = (y) => Mn(e.value, u.value, y.value), U = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, H = () => t.modelAuto ? ko(t.internalModelValue) : !0, N = (y) => {
|
|
13374
13374
|
if (t.weekPicker) return !1;
|
|
13375
13375
|
const F = s.value.enabled ? !$(y) && !$(y, !1) : !0;
|
|
13376
|
-
return !d(y.value) && !
|
|
13377
|
-
}, A = (y) => s.value.enabled ? t.modelAuto ? U() &&
|
|
13376
|
+
return !d(y.value) && !k(y) && !(!y.current && t.hideOffsetDates) && F;
|
|
13377
|
+
}, A = (y) => s.value.enabled ? t.modelAuto ? U() && k(y) : !1 : k(y), Z = (y) => r.value ? nf(y.value, i.value.highlight) : !1, ne = (y) => {
|
|
13378
13378
|
const F = d(y.value);
|
|
13379
13379
|
return F && (typeof r.value == "function" ? !r.value(y.value, F) : !r.value.options.highlightDisabled);
|
|
13380
13380
|
}, M = (y) => {
|
|
13381
13381
|
var F;
|
|
13382
13382
|
return typeof r.value == "function" ? r.value(y.value) : (F = r.value.weekdays) == null ? void 0 : F.includes(y.value.getDay());
|
|
13383
|
-
}, D = (y) => (s.value.enabled || t.weekPicker) && (!(n.value.count > 0) || y.current) && H() && !(!y.current && t.hideOffsetDates) && !
|
|
13383
|
+
}, D = (y) => (s.value.enabled || t.weekPicker) && (!(n.value.count > 0) || y.current) && H() && !(!y.current && t.hideOffsetDates) && !k(y) ? O(y) : !1, w = (y) => {
|
|
13384
13384
|
const { isRangeStart: F, isRangeEnd: ae } = z(y), B = s.value.enabled ? F || ae : !1;
|
|
13385
13385
|
return {
|
|
13386
13386
|
dp__cell_offset: !y.current,
|
|
@@ -13439,7 +13439,7 @@ const Bp = ({
|
|
|
13439
13439
|
...de(y),
|
|
13440
13440
|
dp__cell_auto_range: R(y),
|
|
13441
13441
|
dp__cell_auto_range_start: T(y),
|
|
13442
|
-
dp__cell_auto_range_end:
|
|
13442
|
+
dp__cell_auto_range_end: _(y)
|
|
13443
13443
|
}), j = (y) => s.value.enabled ? s.value.autoRange ? ee(y) : t.modelAuto ? { ...P(y), ...de(y) } : t.weekPicker ? q(y) : de(y) : t.weekPicker ? Y(y) : P(y);
|
|
13444
13444
|
return {
|
|
13445
13445
|
setHoverDate: c,
|
|
@@ -13476,7 +13476,7 @@ const Bp = ({
|
|
|
13476
13476
|
if (n.value.maxRange) return z <= +n.value.maxRange;
|
|
13477
13477
|
}
|
|
13478
13478
|
return !0;
|
|
13479
|
-
},
|
|
13479
|
+
}, k = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, _ = (M) => Array.isArray(M) ? [M[0] ? Jn(M[0]) : null, M[1] ? Jn(M[1]) : null] : Jn(M), R = (M, D, w) => M.find(
|
|
13480
13480
|
(P) => +P.hours === Ut(D) && P.minutes === "*" ? !0 : +P.minutes === da(D) && +P.hours === Ut(D)
|
|
13481
13481
|
) && w, T = (M, D, w) => {
|
|
13482
13482
|
const [P, Y] = M, [q, z] = D;
|
|
@@ -13489,8 +13489,8 @@ const Bp = ({
|
|
|
13489
13489
|
return M && P;
|
|
13490
13490
|
}, H = (M, D) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? O(D, M) : U(D, M) : D, N = (M) => {
|
|
13491
13491
|
let D = !0;
|
|
13492
|
-
if (!M ||
|
|
13493
|
-
const w = !a.value.minDate && !a.value.maxDate ?
|
|
13492
|
+
if (!M || k()) return !0;
|
|
13493
|
+
const w = !a.value.minDate && !a.value.maxDate ? _(M) : M;
|
|
13494
13494
|
return (e.maxTime || a.value.maxDate) && (D = wr(
|
|
13495
13495
|
e.maxTime,
|
|
13496
13496
|
a.value.maxDate,
|
|
@@ -13602,7 +13602,7 @@ const Bp = ({
|
|
|
13602
13602
|
defaultedUI: f,
|
|
13603
13603
|
getDefaultPattern: c,
|
|
13604
13604
|
getDefaultStartTime: h
|
|
13605
|
-
} = Je(l), { checkMinMaxRange: p } = fa(l), v = V(), b = V(null), $ = V(!1), C = V(!1),
|
|
13605
|
+
} = Je(l), { checkMinMaxRange: p } = fa(l), v = V(), b = V(null), $ = V(!1), C = V(!1), k = x(
|
|
13606
13606
|
() => ({
|
|
13607
13607
|
dp__pointer: !l.disabled && !l.readonly && !r.value.enabled,
|
|
13608
13608
|
dp__disabled: l.disabled,
|
|
@@ -13615,7 +13615,7 @@ const Bp = ({
|
|
|
13615
13615
|
dp__input_reg: !r.value.enabled,
|
|
13616
13616
|
...f.value.input ?? {}
|
|
13617
13617
|
})
|
|
13618
|
-
),
|
|
13618
|
+
), _ = () => {
|
|
13619
13619
|
a("set-input-date", null), l.clearable && l.autoApply && (a("set-empty-date"), v.value = null);
|
|
13620
13620
|
}, R = (z) => {
|
|
13621
13621
|
const de = h();
|
|
@@ -13648,7 +13648,7 @@ const Bp = ({
|
|
|
13648
13648
|
}, H = (z) => {
|
|
13649
13649
|
var de;
|
|
13650
13650
|
const ee = typeof z == "string" ? z : (de = z.target) == null ? void 0 : de.value;
|
|
13651
|
-
ee !== "" ? (r.value.openMenu && !l.isMenuOpen && a("open"), U(ee), a("set-input-date", v.value)) :
|
|
13651
|
+
ee !== "" ? (r.value.openMenu && !l.isMenuOpen && a("open"), U(ee), a("set-input-date", v.value)) : _(), C.value = !1, a("update:input-value", ee), a("text-input", z, v.value);
|
|
13652
13652
|
}, N = (z) => {
|
|
13653
13653
|
r.value.enabled ? (U(z.target.value), r.value.enterSubmit && ml(v.value) && l.inputValue !== "" ? (a("set-input-date", v.value, !0), v.value = null) : r.value.enterSubmit && l.inputValue === "" && (v.value = null, a("clear"))) : ne(z);
|
|
13654
13654
|
}, A = (z, de) => {
|
|
@@ -13711,7 +13711,7 @@ const Bp = ({
|
|
|
13711
13711
|
ref: b,
|
|
13712
13712
|
"data-test-id": "dp-input",
|
|
13713
13713
|
name: z.name,
|
|
13714
|
-
class: J(
|
|
13714
|
+
class: J(k.value),
|
|
13715
13715
|
inputmode: g(r).enabled ? "text" : "none",
|
|
13716
13716
|
placeholder: z.placeholder,
|
|
13717
13717
|
disabled: z.disabled,
|
|
@@ -13824,7 +13824,7 @@ const Bp = ({
|
|
|
13824
13824
|
"text-input"
|
|
13825
13825
|
],
|
|
13826
13826
|
setup(e, { expose: t, emit: n }) {
|
|
13827
|
-
const a = n, l = e, r = bt(), o = V(!1), i = Ja(l, "modelValue"), s = Ja(l, "timezone"), d = V(null), u = V(null), f = V(null), c = V(!1), h = V(null), p = V(!1), v = V(!1), b = V(!1), $ = V(!1), { setMenuFocused: C, setShiftKey:
|
|
13827
|
+
const a = n, l = e, r = bt(), o = V(!1), i = Ja(l, "modelValue"), s = Ja(l, "timezone"), d = V(null), u = V(null), f = V(null), c = V(!1), h = V(null), p = V(!1), v = V(!1), b = V(!1), $ = V(!1), { setMenuFocused: C, setShiftKey: k } = Ao(), { clearArrowNav: _ } = ca(), { validateDate: R, isValidTime: T } = fa(l), {
|
|
13828
13828
|
defaultedTransitions: O,
|
|
13829
13829
|
defaultedTextInput: U,
|
|
13830
13830
|
defaultedInline: H,
|
|
@@ -13915,7 +13915,7 @@ const Bp = ({
|
|
|
13915
13915
|
}, Vt = () => {
|
|
13916
13916
|
U.value.enabled || (F.value = null);
|
|
13917
13917
|
}, at = (te = !1) => {
|
|
13918
|
-
te && F.value && N.value.setDateOnMenuClose && $e(), H.value.enabled || (o.value && (o.value = !1, z.value = !1, C(!1),
|
|
13918
|
+
te && F.value && N.value.setDateOnMenuClose && $e(), H.value.enabled || (o.value && (o.value = !1, z.value = !1, C(!1), k(!1), _(), a("closed"), y.value && ae(i.value)), Vt(), a("blur"));
|
|
13919
13919
|
}, Ln = (te, me, xe = !1) => {
|
|
13920
13920
|
if (!te) {
|
|
13921
13921
|
F.value = null;
|
|
@@ -14304,9 +14304,9 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
14304
14304
|
"invalid-date": (A) => l("invalidDate", A),
|
|
14305
14305
|
"overlay-toggle": (A) => l("overlayToggle", A),
|
|
14306
14306
|
"text-input": (A, Z) => l("textInput", A, Z)
|
|
14307
|
-
})),
|
|
14307
|
+
})), k = (A) => {
|
|
14308
14308
|
$(A);
|
|
14309
|
-
},
|
|
14309
|
+
}, _ = (A) => {
|
|
14310
14310
|
$(A);
|
|
14311
14311
|
}, R = x(() => {
|
|
14312
14312
|
const {
|
|
@@ -14380,8 +14380,8 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
14380
14380
|
"dp-input": ye(({ onTab: ne, onBlur: M }) => [
|
|
14381
14381
|
E("div", {
|
|
14382
14382
|
class: "rds-e-datepicker__input-wrapper",
|
|
14383
|
-
onKeydown: Z[1] || (Z[1] = Ue(ge((D) =>
|
|
14384
|
-
onClick:
|
|
14383
|
+
onKeydown: Z[1] || (Z[1] = Ue(ge((D) => _(D), ["prevent"]), ["enter"])),
|
|
14384
|
+
onClick: k
|
|
14385
14385
|
}, [
|
|
14386
14386
|
we(g(bn), Re({
|
|
14387
14387
|
id: e.id,
|
|
@@ -14631,30 +14631,30 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
14631
14631
|
LEFT: "left",
|
|
14632
14632
|
RIGHT: "right"
|
|
14633
14633
|
}, u = V(d.LEFT), f = V(null), c = V(null), h = x(() => {
|
|
14634
|
-
const
|
|
14635
|
-
return
|
|
14636
|
-
}), p = x(() => !(n.iconLeft || n.iconRight) ? "label" : !!(n.labelLeft || n.labelRight) ? "icon-label" : "icon"), v = x(() => n.small ? 16 : 20), b = (
|
|
14637
|
-
a("update:modelValue",
|
|
14638
|
-
}, $ = async (
|
|
14639
|
-
u.value =
|
|
14640
|
-
|
|
14641
|
-
), await Be(),
|
|
14642
|
-
}, C = (
|
|
14643
|
-
if (["ArrowLeft", "ArrowRight", "Enter", " "].includes(
|
|
14644
|
-
if (
|
|
14645
|
-
const
|
|
14646
|
-
$(
|
|
14647
|
-
} else if (
|
|
14648
|
-
const
|
|
14649
|
-
$(
|
|
14634
|
+
const k = s?.value ?? "default";
|
|
14635
|
+
return k === "navy" ? "rds-e-toggle--navy" : k === "floating" ? "rds-e-toggle--floating" : "";
|
|
14636
|
+
}), p = x(() => !(n.iconLeft || n.iconRight) ? "label" : !!(n.labelLeft || n.labelRight) ? "icon-label" : "icon"), v = x(() => n.small ? 16 : 20), b = (k) => {
|
|
14637
|
+
a("update:modelValue", k);
|
|
14638
|
+
}, $ = async (k) => {
|
|
14639
|
+
u.value = k, b(
|
|
14640
|
+
k === d.LEFT ? r?.value ? !0 : o?.value : r?.value ? !1 : i?.value
|
|
14641
|
+
), await Be(), k === d.LEFT ? f.value?.focus() : c.value?.focus();
|
|
14642
|
+
}, C = (k) => {
|
|
14643
|
+
if (["ArrowLeft", "ArrowRight", "Enter", " "].includes(k.key))
|
|
14644
|
+
if (k.preventDefault(), k.key === "ArrowRight") {
|
|
14645
|
+
const _ = u.value === d.LEFT ? d.RIGHT : d.LEFT;
|
|
14646
|
+
$(_);
|
|
14647
|
+
} else if (k.key === "ArrowLeft") {
|
|
14648
|
+
const _ = u.value === d.RIGHT ? d.LEFT : d.RIGHT;
|
|
14649
|
+
$(_);
|
|
14650
14650
|
} else {
|
|
14651
|
-
const
|
|
14651
|
+
const _ = k.target, R = k.currentTarget.querySelectorAll(".rds-e-toggle__tab"), T = Array.from(R).indexOf(_);
|
|
14652
14652
|
$(T === 0 ? d.LEFT : T === 1 ? d.RIGHT : u.value);
|
|
14653
14653
|
}
|
|
14654
14654
|
};
|
|
14655
14655
|
return Fe(() => {
|
|
14656
14656
|
!!n.iconLeft != !!n.iconRight && console.warn("[RDSToggle] iconLeft e iconRight deben proporcionarse juntos para una visualización consistente."), p.value === "icon" && !n.ariaLabel && console.warn("[RDSToggle] ariaLabel es obligatorio en modo icon-only para garantizar accesibilidad."), p.value === "icon" && !n.ariaLabelLeft && console.warn("[RDSToggle] ariaLabelLeft es obligatorio en modo icon-only para garantizar accesibilidad."), p.value === "icon" && !n.ariaLabelRight && console.warn("[RDSToggle] ariaLabelRight es obligatorio en modo icon-only para garantizar accesibilidad."), r?.value ? (a("update:modelValue", l?.value), u.value = l?.value ? d.RIGHT : d.LEFT) : l?.value === i?.value ? (a("update:modelValue", i?.value), u.value = d.RIGHT) : (a("update:modelValue", o?.value), u.value = d.LEFT);
|
|
14657
|
-
}), (
|
|
14657
|
+
}), (k, _) => (m(), S("div", {
|
|
14658
14658
|
id: e.id,
|
|
14659
14659
|
class: J(["rds-e-toggle", [
|
|
14660
14660
|
{
|
|
@@ -14683,7 +14683,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
14683
14683
|
"aria-checked": u.value === d.LEFT,
|
|
14684
14684
|
"aria-label": p.value === "icon" ? e.ariaLabelLeft : void 0,
|
|
14685
14685
|
tabindex: u.value === d.LEFT ? 0 : -1,
|
|
14686
|
-
onClick:
|
|
14686
|
+
onClick: _[0] || (_[0] = (R) => $(d.LEFT))
|
|
14687
14687
|
}, [
|
|
14688
14688
|
p.value !== "label" ? (m(), ve(De, {
|
|
14689
14689
|
key: 0,
|
|
@@ -14706,7 +14706,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
14706
14706
|
"aria-checked": u.value === d.RIGHT,
|
|
14707
14707
|
"aria-label": p.value === "icon" ? e.ariaLabelRight : void 0,
|
|
14708
14708
|
tabindex: u.value === d.RIGHT ? 0 : -1,
|
|
14709
|
-
onClick:
|
|
14709
|
+
onClick: _[1] || (_[1] = (R) => $(d.RIGHT))
|
|
14710
14710
|
}, [
|
|
14711
14711
|
p.value !== "label" ? (m(), ve(De, {
|
|
14712
14712
|
key: 0,
|
|
@@ -15030,33 +15030,33 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15030
15030
|
"rds-e-drag-and-drop--full-width": n.fullWidth,
|
|
15031
15031
|
"rds-e-drag-and-drop--error": n.error && !n.disabled
|
|
15032
15032
|
}
|
|
15033
|
-
]), f = x(() => n.error && n.errorMessage ? n.errorMessage : n.detailText), c = x(() => n.showDetailText && (f.value || !n.error)), h = (
|
|
15034
|
-
if (!
|
|
15033
|
+
]), f = x(() => n.error && n.errorMessage ? n.errorMessage : n.detailText), c = x(() => n.showDetailText && (f.value || !n.error)), h = (_) => {
|
|
15034
|
+
if (!_ || _.length === 0)
|
|
15035
15035
|
return { valid: !1, message: "No se seleccionaron archivos." };
|
|
15036
|
-
if (!n.multiple &&
|
|
15036
|
+
if (!n.multiple && _.length > 1)
|
|
15037
15037
|
return { valid: !1, message: "Solo se permite seleccionar un archivo." };
|
|
15038
|
-
if (n.maxFiles !== null && n.maxFiles > 0 &&
|
|
15038
|
+
if (n.maxFiles !== null && n.maxFiles > 0 && _.length > n.maxFiles)
|
|
15039
15039
|
return { valid: !1, message: `Se permite un máximo de ${n.maxFiles} archivos por selección.` };
|
|
15040
15040
|
if (n.accept) {
|
|
15041
15041
|
const R = n.accept.split(",").map((T) => T.trim().toLowerCase());
|
|
15042
|
-
for (let T = 0; T <
|
|
15043
|
-
const O =
|
|
15042
|
+
for (let T = 0; T < _.length; T++) {
|
|
15043
|
+
const O = _[T], U = `.${O.name.split(".").pop()?.toLowerCase()}`, H = O.type.toLowerCase();
|
|
15044
15044
|
if (!R.some((A) => A.startsWith(".") ? U === A : A.includes("/") ? A.endsWith("/*") ? H.startsWith(A.replace("/*", "")) : H === A : !1))
|
|
15045
15045
|
return { valid: !1, message: `El tipo de archivo '${O.name}' no es válido. Permitidos: ${n.accept}` };
|
|
15046
15046
|
}
|
|
15047
15047
|
}
|
|
15048
15048
|
return { valid: !0 };
|
|
15049
|
-
}, p = (
|
|
15049
|
+
}, p = (_) => {
|
|
15050
15050
|
if (n.disabled) return;
|
|
15051
|
-
if (!
|
|
15051
|
+
if (!_ || _.length === 0) {
|
|
15052
15052
|
o.value && (o.value.value = "");
|
|
15053
15053
|
return;
|
|
15054
15054
|
}
|
|
15055
|
-
a("filesSelected",
|
|
15056
|
-
const R = h(
|
|
15055
|
+
a("filesSelected", _);
|
|
15056
|
+
const R = h(_);
|
|
15057
15057
|
if (R.valid) {
|
|
15058
|
-
for (let T = 0; T <
|
|
15059
|
-
const O =
|
|
15058
|
+
for (let T = 0; T < _.length; T++) {
|
|
15059
|
+
const O = _[T], U = r();
|
|
15060
15060
|
a("fileReady", {
|
|
15061
15061
|
id: U,
|
|
15062
15062
|
file: O,
|
|
@@ -15066,28 +15066,28 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15066
15066
|
}
|
|
15067
15067
|
o.value && (o.value.value = "");
|
|
15068
15068
|
} else R.message && (a("validationError", R.message), o.value && (o.value.value = ""));
|
|
15069
|
-
}, v = (
|
|
15070
|
-
const R =
|
|
15069
|
+
}, v = (_) => {
|
|
15070
|
+
const R = _.target;
|
|
15071
15071
|
p(R.files);
|
|
15072
15072
|
}, b = () => {
|
|
15073
15073
|
n.disabled || (i.value = !0);
|
|
15074
|
-
}, $ = (
|
|
15075
|
-
n.disabled || (
|
|
15076
|
-
}, C = (
|
|
15077
|
-
const R =
|
|
15078
|
-
(!
|
|
15079
|
-
},
|
|
15074
|
+
}, $ = (_) => {
|
|
15075
|
+
n.disabled || (_.preventDefault(), i.value = !0);
|
|
15076
|
+
}, C = (_) => {
|
|
15077
|
+
const R = _.relatedTarget;
|
|
15078
|
+
(!_.currentTarget || !_.currentTarget.contains(R)) && (i.value = !1);
|
|
15079
|
+
}, k = (_) => {
|
|
15080
15080
|
if (n.disabled) return;
|
|
15081
15081
|
i.value = !1;
|
|
15082
|
-
const R =
|
|
15082
|
+
const R = _.dataTransfer?.files;
|
|
15083
15083
|
p(R || null);
|
|
15084
15084
|
};
|
|
15085
|
-
return (
|
|
15085
|
+
return (_, R) => (m(), S("div", {
|
|
15086
15086
|
class: J(u.value),
|
|
15087
15087
|
onDragenter: ge(b, ["prevent"]),
|
|
15088
15088
|
onDragover: ge($, ["prevent"]),
|
|
15089
15089
|
onDragleave: ge(C, ["prevent"]),
|
|
15090
|
-
onDrop: ge(
|
|
15090
|
+
onDrop: ge(k, ["prevent"])
|
|
15091
15091
|
}, [
|
|
15092
15092
|
E("input", {
|
|
15093
15093
|
id: d.value,
|
|
@@ -15104,7 +15104,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15104
15104
|
for: d.value,
|
|
15105
15105
|
class: "rds-e-drag-and-drop__label"
|
|
15106
15106
|
}, [
|
|
15107
|
-
G(
|
|
15107
|
+
G(_.$slots, "content", {}, () => [
|
|
15108
15108
|
E("span", Ov, [
|
|
15109
15109
|
we(De, {
|
|
15110
15110
|
name: e.icon,
|
|
@@ -15701,23 +15701,23 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15701
15701
|
let d = null, u = null;
|
|
15702
15702
|
const f = () => {
|
|
15703
15703
|
if (!i.value || !s.value) return;
|
|
15704
|
-
const
|
|
15705
|
-
i.value.style.maxHeight = o.value ? `${
|
|
15706
|
-
}, c = (
|
|
15707
|
-
|
|
15704
|
+
const k = s.value.scrollHeight;
|
|
15705
|
+
i.value.style.maxHeight = o.value ? `${k}px` : "0px", o.value && l("resized", k);
|
|
15706
|
+
}, c = (k) => {
|
|
15707
|
+
k === void 0 ? o.value = !o.value : o.value = k, l("update:open", o.value), f();
|
|
15708
15708
|
}, h = () => {
|
|
15709
15709
|
c(!0);
|
|
15710
15710
|
}, p = () => {
|
|
15711
15711
|
c(!1);
|
|
15712
|
-
}, v = (
|
|
15713
|
-
|
|
15712
|
+
}, v = (k) => {
|
|
15713
|
+
k.preventDefault(), c();
|
|
15714
15714
|
}, b = () => {
|
|
15715
15715
|
c();
|
|
15716
15716
|
};
|
|
15717
15717
|
Pe(
|
|
15718
15718
|
() => a.open,
|
|
15719
|
-
(
|
|
15720
|
-
c(
|
|
15719
|
+
(k) => Be(() => {
|
|
15720
|
+
c(k);
|
|
15721
15721
|
}),
|
|
15722
15722
|
{ immediate: !0 }
|
|
15723
15723
|
);
|
|
@@ -15747,7 +15747,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15747
15747
|
* Cierra el panel.
|
|
15748
15748
|
*/
|
|
15749
15749
|
closePanel: p
|
|
15750
|
-
}), (
|
|
15750
|
+
}), (k, _) => (m(), S("div", {
|
|
15751
15751
|
id: e.id,
|
|
15752
15752
|
class: "rds-e-accordion"
|
|
15753
15753
|
}, [
|
|
@@ -15756,7 +15756,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15756
15756
|
type: "button",
|
|
15757
15757
|
"aria-expanded": o.value,
|
|
15758
15758
|
"aria-controls": `${e.id}-panel`
|
|
15759
|
-
},
|
|
15759
|
+
}, k.$attrs, {
|
|
15760
15760
|
onClick: b,
|
|
15761
15761
|
onKeydown: [
|
|
15762
15762
|
Ue(v, ["enter"]),
|
|
@@ -15788,7 +15788,7 @@ const Jp = { class: "rds-e-datepicker" }, Zp = ["aria-expanded", "onKeydown"], e
|
|
|
15788
15788
|
ref: s,
|
|
15789
15789
|
class: "rds-e-accordion-panel_content"
|
|
15790
15790
|
}, [
|
|
15791
|
-
G(
|
|
15791
|
+
G(k.$slots, "default", {}, () => [
|
|
15792
15792
|
je(fe(e.content), 1)
|
|
15793
15793
|
], !0)
|
|
15794
15794
|
], 512)
|
|
@@ -15884,7 +15884,7 @@ function $m(e) {
|
|
|
15884
15884
|
p.has(v) && (!Number.isFinite(b) || b <= 0 || (t[v] = b));
|
|
15885
15885
|
}
|
|
15886
15886
|
function f(h, p, v, b) {
|
|
15887
|
-
const $ = e.value.find((
|
|
15887
|
+
const $ = e.value.find((k) => k.key === h);
|
|
15888
15888
|
if (!$ || $.resizable !== !0) return;
|
|
15889
15889
|
n.value = h, l = p.clientX, r = b || t[h] || Sr, o = v, p.currentTarget?.setPointerCapture?.(p.pointerId), document.addEventListener("pointermove", s), document.addEventListener("pointerup", d), document.addEventListener("pointercancel", d), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
15890
15890
|
}
|
|
@@ -16130,7 +16130,7 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16130
16130
|
}, C = (D) => {
|
|
16131
16131
|
const w = D[n.rowKey];
|
|
16132
16132
|
return n.expandedKeys.includes(w);
|
|
16133
|
-
},
|
|
16133
|
+
}, k = (D) => n.isRowDisabled ? n.isRowDisabled(D) : !1, _ = (D) => ({
|
|
16134
16134
|
[`rds-e-table-renderer__cell--${D.align || "left"}`]: !0,
|
|
16135
16135
|
"rds-e-table-renderer__cell--sortable": D.sortable,
|
|
16136
16136
|
"rds-e-table-renderer__cell--shadow": D.sticky,
|
|
@@ -16218,7 +16218,7 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16218
16218
|
E("tr", null, [
|
|
16219
16219
|
(m(!0), S(ke, null, Le(e.headers, (P, Y) => (m(), S("th", {
|
|
16220
16220
|
key: `th-${P.key}-${Y}`,
|
|
16221
|
-
class: J(["rds-e-table-renderer__cell rds-e-table-renderer__cell--heading rds-body-01",
|
|
16221
|
+
class: J(["rds-e-table-renderer__cell rds-e-table-renderer__cell--heading rds-body-01", _(P)]),
|
|
16222
16222
|
"aria-sort": H(P),
|
|
16223
16223
|
scope: "col",
|
|
16224
16224
|
onClick: (q) => ne(P)
|
|
@@ -16302,7 +16302,7 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16302
16302
|
we(gn, {
|
|
16303
16303
|
id: `chk-${g(l)}-${Y}-${q.key}`,
|
|
16304
16304
|
"model-value": $(P),
|
|
16305
|
-
disabled:
|
|
16305
|
+
disabled: k(P),
|
|
16306
16306
|
"onUpdate:modelValue": () => D.$emit("toggleRowSelection", P),
|
|
16307
16307
|
onClick: w[3] || (w[3] = ge(() => {
|
|
16308
16308
|
}, ["stop"]))
|
|
@@ -16475,11 +16475,11 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16475
16475
|
enablePageDropdown: f,
|
|
16476
16476
|
pageDropdownLabel: c,
|
|
16477
16477
|
legendText: h
|
|
16478
|
-
} = it(a), p = V(a.currentPage), v = x(() => typeof o?.value == "number" && o.value >= 0), b = x(() => v.value && typeof o?.value == "number" ? o.value <= 0 || r.value <= 0 ? 1 : Math.ceil(o.value / r.value) : typeof i?.value == "number" && i.value > 0 ? i.value : (typeof i?.value > "u" && typeof o?.value > "u" && console.warn("[RDSPagination] Props `totalItems` o `totalPages` son requeridas."), 1)), $ = x(() => v.value && !s.value && typeof o?.value == "number" && o.value > 0), C = x(() => !v.value || typeof o?.value != "number" || o.value === 0 ? 0 : (p.value - 1) * r.value + 1),
|
|
16478
|
+
} = it(a), p = V(a.currentPage), v = x(() => typeof o?.value == "number" && o.value >= 0), b = x(() => v.value && typeof o?.value == "number" ? o.value <= 0 || r.value <= 0 ? 1 : Math.ceil(o.value / r.value) : typeof i?.value == "number" && i.value > 0 ? i.value : (typeof i?.value > "u" && typeof o?.value > "u" && console.warn("[RDSPagination] Props `totalItems` o `totalPages` son requeridas."), 1)), $ = x(() => v.value && !s.value && typeof o?.value == "number" && o.value > 0), C = x(() => !v.value || typeof o?.value != "number" || o.value === 0 ? 0 : (p.value - 1) * r.value + 1), k = x(() => {
|
|
16479
16479
|
if (!v.value || typeof o?.value != "number") return 0;
|
|
16480
16480
|
const M = p.value * r.value;
|
|
16481
16481
|
return Math.min(M, o.value);
|
|
16482
|
-
}),
|
|
16482
|
+
}), _ = x(() => (h?.value ?? "Mostrando resultados {start}-{end} de {total}").replaceAll("{start}", String(C.value)).replaceAll("{end}", String(k.value)).replaceAll("{total}", String(o?.value ?? 0))), R = x(() => p.value === 1), T = x(() => p.value === b.value), O = x(() => {
|
|
16483
16483
|
const M = [], D = b.value, w = p.value;
|
|
16484
16484
|
if (!u.value || f.value) {
|
|
16485
16485
|
if (D <= 3)
|
|
@@ -16653,7 +16653,7 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16653
16653
|
}, null, 8, ["modelValue", "label", "options"])
|
|
16654
16654
|
])) : I("", !0)
|
|
16655
16655
|
]),
|
|
16656
|
-
$.value ? (m(), S("p", ih, fe(
|
|
16656
|
+
$.value ? (m(), S("p", ih, fe(_.value), 1)) : I("", !0)
|
|
16657
16657
|
], 8, nh));
|
|
16658
16658
|
}
|
|
16659
16659
|
}), jo = /* @__PURE__ */ Me(sh, [["__scopeId", "data-v-f88cc2cb"]]), uh = { class: "rds-e-table__container" }, dh = {
|
|
@@ -16704,7 +16704,7 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16704
16704
|
if (a.asynchrone === !0) return o.value;
|
|
16705
16705
|
const w = (d.value - 1) * u.value, P = w + u.value;
|
|
16706
16706
|
return o.value.slice(w, P);
|
|
16707
|
-
}),
|
|
16707
|
+
}), k = x(() => C.value), _ = x(() => {
|
|
16708
16708
|
const w = a.header.map((Y) => ({
|
|
16709
16709
|
...Y,
|
|
16710
16710
|
sort: Y.sortable && f.value?.key === Y.key ? f.value.order : null
|
|
@@ -16814,8 +16814,8 @@ const Sm = ["id", "aria-label"], Dm = ["width", "height", "viewBox"], Tm = ["id"
|
|
|
16814
16814
|
}, {
|
|
16815
16815
|
default: ye(() => [
|
|
16816
16816
|
we(ah, {
|
|
16817
|
-
headers:
|
|
16818
|
-
rows:
|
|
16817
|
+
headers: _.value,
|
|
16818
|
+
rows: k.value,
|
|
16819
16819
|
"row-key": v.value,
|
|
16820
16820
|
loading: e.loading,
|
|
16821
16821
|
"hide-headers": e.hideHeaders,
|
|
@@ -17285,9 +17285,9 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17285
17285
|
}
|
|
17286
17286
|
a("click", v);
|
|
17287
17287
|
}, h = (v) => {
|
|
17288
|
-
if (n.disabled
|
|
17289
|
-
const b = v.key?.toLowerCase();
|
|
17290
|
-
if (
|
|
17288
|
+
if (n.disabled) return;
|
|
17289
|
+
const b = v.key?.toLowerCase(), $ = b === "enter", C = b === " " || b === "space", k = s.value === "button" && C;
|
|
17290
|
+
if (!$ && !k) return;
|
|
17291
17291
|
v.preventDefault();
|
|
17292
17292
|
const _ = v.currentTarget;
|
|
17293
17293
|
if (_) {
|
|
@@ -17364,7 +17364,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17364
17364
|
_: 3
|
|
17365
17365
|
}, 16, ["id", "class", "type", "to", "href", "rel", "style", "tabindex", "aria-disabled", "disabled"]));
|
|
17366
17366
|
}
|
|
17367
|
-
}), Uo = /* @__PURE__ */ Me(Dh, [["__scopeId", "data-v-
|
|
17367
|
+
}), Uo = /* @__PURE__ */ Me(Dh, [["__scopeId", "data-v-1c89a29a"]]), Th = ["aria-label"], Ch = ["id"], Mh = { key: 0 }, Oh = /* @__PURE__ */ _e({
|
|
17368
17368
|
__name: "breadcrumbs",
|
|
17369
17369
|
props: {
|
|
17370
17370
|
/**
|
|
@@ -17580,22 +17580,22 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17580
17580
|
options: l
|
|
17581
17581
|
} = it(n), r = Na(e, "activeTab"), o = V(""), i = V(null), s = V(null), d = x(() => i.value ? Array.from(
|
|
17582
17582
|
i.value.children
|
|
17583
|
-
) : []), u = V(!1), f = x(() => l.value.findIndex((R) => R.id === o.value) > 0 && u.value), c = x(() => s.value ? l.value.findIndex((R) => R.id === o.value) < n.options.length - 1 && u.value : !1), h = (
|
|
17583
|
+
) : []), u = V(!1), f = x(() => l.value.findIndex((R) => R.id === o.value) > 0 && u.value), c = x(() => s.value ? l.value.findIndex((R) => R.id === o.value) < n.options.length - 1 && u.value : !1), h = (_) => {
|
|
17584
17584
|
const R = n.options.find((T) => T.id === o.value);
|
|
17585
|
-
return
|
|
17586
|
-
}, p = async (
|
|
17587
|
-
const R = l.value.find((O) => O.id ===
|
|
17588
|
-
return R ? await n.beforeTabChange(
|
|
17585
|
+
return _ ? R : R?.id;
|
|
17586
|
+
}, p = async (_) => {
|
|
17587
|
+
const R = l.value.find((O) => O.id === _);
|
|
17588
|
+
return R ? await n.beforeTabChange(_, R) ? (o.value = _, !0) : !1 : (console.error(`[RDSTabBar]: Tab with id ${_} not found`), !1);
|
|
17589
17589
|
}, v = async () => {
|
|
17590
|
-
let
|
|
17591
|
-
for (;
|
|
17590
|
+
let _ = l.value.findIndex((R) => R.id === o.value);
|
|
17591
|
+
for (; _ > 0 && (_--, !await p(l.value[_].id)); )
|
|
17592
17592
|
;
|
|
17593
17593
|
}, b = async () => {
|
|
17594
|
-
let
|
|
17595
|
-
for (;
|
|
17594
|
+
let _ = l.value.findIndex((R) => R.id === o.value);
|
|
17595
|
+
for (; _ < n.options.length - 1 && (_++, !await p(l.value[_].id)); )
|
|
17596
17596
|
;
|
|
17597
|
-
}, $ = async (
|
|
17598
|
-
let O =
|
|
17597
|
+
}, $ = async (_, R) => {
|
|
17598
|
+
let O = _.shiftKey ? R - 1 : R + 1;
|
|
17599
17599
|
O < 0 ? O = l.value.length - 1 : O >= l.value.length && (O = 0);
|
|
17600
17600
|
const U = l.value[O];
|
|
17601
17601
|
U && await p(U.id) && setTimeout(() => {
|
|
@@ -17603,8 +17603,8 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17603
17603
|
N && (N.focus(), C(U.id));
|
|
17604
17604
|
}, 0);
|
|
17605
17605
|
};
|
|
17606
|
-
function C(
|
|
17607
|
-
const R = l.value.findIndex((T) => T.id ===
|
|
17606
|
+
function C(_) {
|
|
17607
|
+
const R = l.value.findIndex((T) => T.id === _);
|
|
17608
17608
|
if (d.value[R] && s.value) {
|
|
17609
17609
|
const T = d.value[R], O = s.value, U = T.offsetLeft, H = T.offsetWidth, N = O.scrollLeft, A = O.clientWidth;
|
|
17610
17610
|
U < N ? O.scrollTo({
|
|
@@ -17616,23 +17616,23 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17616
17616
|
});
|
|
17617
17617
|
}
|
|
17618
17618
|
}
|
|
17619
|
-
const
|
|
17619
|
+
const k = () => {
|
|
17620
17620
|
s.value ? (u.value = s.value?.scrollWidth > s.value?.clientWidth, u.value && C(o.value)) : u.value = !1;
|
|
17621
17621
|
};
|
|
17622
17622
|
if (n.activeTab) {
|
|
17623
|
-
const
|
|
17624
|
-
|
|
17623
|
+
const _ = l.value.find((R) => R.id === n.activeTab);
|
|
17624
|
+
_ ? o.value = _.id : (console.error(`[RDSTabBar]: Tab with id ${n.activeTab} not found. Picking the first tab instead.`), o.value = n.options[0].id ?? "");
|
|
17625
17625
|
} else
|
|
17626
17626
|
o.value = n.options[0].id ?? "";
|
|
17627
17627
|
return Fe(async () => {
|
|
17628
|
-
|
|
17628
|
+
k(), window.addEventListener("resize", Ko(k, 200));
|
|
17629
17629
|
}), Qt(() => {
|
|
17630
|
-
window.removeEventListener("resize",
|
|
17631
|
-
}), Pe(o, (
|
|
17632
|
-
u.value && C(
|
|
17633
|
-
}), Pe(r, (
|
|
17634
|
-
p(
|
|
17635
|
-
}, { immediate: !0 }), (
|
|
17630
|
+
window.removeEventListener("resize", k);
|
|
17631
|
+
}), Pe(o, (_) => {
|
|
17632
|
+
u.value && C(_), a("activeTabChanged", h(!1));
|
|
17633
|
+
}), Pe(r, (_) => {
|
|
17634
|
+
p(_);
|
|
17635
|
+
}, { immediate: !0 }), (_, R) => (m(), S("div", {
|
|
17636
17636
|
id: e.id,
|
|
17637
17637
|
class: J(["rds-e-top-bar", {
|
|
17638
17638
|
"rds-e-top-bar--fluid": e.fluid,
|
|
@@ -17708,7 +17708,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17708
17708
|
})
|
|
17709
17709
|
], 2)) : I("", !0),
|
|
17710
17710
|
E("div", Bh, [
|
|
17711
|
-
G(
|
|
17711
|
+
G(_.$slots, o.value, {
|
|
17712
17712
|
tab: h(!0)
|
|
17713
17713
|
}, void 0, !0)
|
|
17714
17714
|
])
|
|
@@ -17797,18 +17797,18 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17797
17797
|
`rds-e-direct-access--${r.value}`,
|
|
17798
17798
|
{ "rds-e-direct-access--disabled": o.value },
|
|
17799
17799
|
{ "rds-e-direct-access--with-arrow": i.value }
|
|
17800
|
-
]), h = x(() => f.value && !!u.value), p = x(() => d.value || l.value), v = x(() => typeof u.value == "string" ? Go(u.value) : ""), b = x(() => s.value?.microillustration && (s.value.microillustration.path || s.value.microillustration.url) || ""), $ = (
|
|
17801
|
-
if (!
|
|
17802
|
-
const
|
|
17803
|
-
return
|
|
17804
|
-
}, C = (
|
|
17800
|
+
]), h = x(() => f.value && !!u.value), p = x(() => d.value || l.value), v = x(() => typeof u.value == "string" ? Go(u.value) : ""), b = x(() => s.value?.microillustration && (s.value.microillustration.path || s.value.microillustration.url) || ""), $ = (k) => {
|
|
17801
|
+
if (!k) return {};
|
|
17802
|
+
const _ = {};
|
|
17803
|
+
return k.size && (_.fontSize = `${k.size}px`, _.width = `${k.size}px`, _.height = `${k.size}px`), k.color && "name" in k && (_.color = k.color), _;
|
|
17804
|
+
}, C = (k) => {
|
|
17805
17805
|
if (o.value) {
|
|
17806
|
-
|
|
17806
|
+
k.preventDefault();
|
|
17807
17807
|
return;
|
|
17808
17808
|
}
|
|
17809
|
-
a("click",
|
|
17809
|
+
a("click", k);
|
|
17810
17810
|
};
|
|
17811
|
-
return (
|
|
17811
|
+
return (k, _) => (m(), ve(wa(g(u) ? h.value ? "router-link" : "a" : "button"), {
|
|
17812
17812
|
id: e.id,
|
|
17813
17813
|
type: g(u) ? void 0 : "button",
|
|
17814
17814
|
href: !h.value && g(u) ? v.value : void 0,
|
|
@@ -17819,9 +17819,9 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17819
17819
|
onClick: C
|
|
17820
17820
|
}, {
|
|
17821
17821
|
default: ye(() => [
|
|
17822
|
-
G(
|
|
17822
|
+
G(k.$slots, "default", {}, () => [
|
|
17823
17823
|
E("div", Vh, [
|
|
17824
|
-
G(
|
|
17824
|
+
G(k.$slots, "artwork", {}, () => [
|
|
17825
17825
|
g(s)?.icon?.name ? (m(), ve(De, {
|
|
17826
17826
|
key: 0,
|
|
17827
17827
|
name: g(s).icon.name,
|
|
@@ -17840,7 +17840,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17840
17840
|
]),
|
|
17841
17841
|
E("div", Nh, [
|
|
17842
17842
|
E("div", Yh, [
|
|
17843
|
-
G(
|
|
17843
|
+
G(k.$slots, "text", {}, () => [
|
|
17844
17844
|
E("span", Hh, fe(g(l)), 1)
|
|
17845
17845
|
], !0)
|
|
17846
17846
|
])
|
|
@@ -17969,57 +17969,57 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
17969
17969
|
currentStep: a,
|
|
17970
17970
|
steps: l,
|
|
17971
17971
|
fullWidth: r
|
|
17972
|
-
} = it(t), o = V(null), i = V(null), s = V([]), d = it(t).icons?.value, u = it(t).details?.value, f = x(() => t.numbering === "none" ? "off" : t.numbering), c = (C,
|
|
17972
|
+
} = it(t), o = V(null), i = V(null), s = V([]), d = it(t).icons?.value, u = it(t).details?.value, f = x(() => t.numbering === "none" ? "off" : t.numbering), c = (C, k) => f.value === "inline" ? `${k + 1}. ${C}` : C, h = x(() => {
|
|
17973
17973
|
let C = t.currentStep;
|
|
17974
|
-
const
|
|
17974
|
+
const k = t.steps.length, _ = n.value === "vertical" ? "height" : "width";
|
|
17975
17975
|
if (C < 1)
|
|
17976
17976
|
return {
|
|
17977
|
-
[
|
|
17977
|
+
[_]: "0%"
|
|
17978
17978
|
};
|
|
17979
|
-
if (C >
|
|
17979
|
+
if (C > k && (C = k), k === 1)
|
|
17980
17980
|
return {
|
|
17981
|
-
[
|
|
17981
|
+
[_]: "100%"
|
|
17982
17982
|
};
|
|
17983
|
-
const R = (C - 1) / (
|
|
17983
|
+
const R = (C - 1) / (k - 1) * 100, T = C < k ? 100 / (k - 1) / 2 : 0;
|
|
17984
17984
|
return {
|
|
17985
|
-
[
|
|
17985
|
+
[_]: `${R + T}%`
|
|
17986
17986
|
};
|
|
17987
17987
|
}), p = () => {
|
|
17988
17988
|
if (o.value && i.value) {
|
|
17989
|
-
const C = i.value,
|
|
17990
|
-
if (
|
|
17989
|
+
const C = i.value, k = s.value[0];
|
|
17990
|
+
if (k) {
|
|
17991
17991
|
if (n.value === "vertical") {
|
|
17992
|
-
const
|
|
17992
|
+
const _ = k.getBoundingClientRect(), R = o.value.getBoundingClientRect(), T = _.left + _.width / 2 - R.left;
|
|
17993
17993
|
C.style.left = `${T}px`;
|
|
17994
17994
|
}
|
|
17995
17995
|
if (n.value === "horizontal") {
|
|
17996
|
-
const
|
|
17996
|
+
const _ = k.getBoundingClientRect(), R = o.value.getBoundingClientRect(), T = _.top + _.height / 2 - R.top;
|
|
17997
17997
|
C.style.top = `${T}px`;
|
|
17998
17998
|
}
|
|
17999
17999
|
}
|
|
18000
18000
|
}
|
|
18001
18001
|
}, v = (C) => {
|
|
18002
|
-
const
|
|
18002
|
+
const k = C === 0 || C === t.steps.length - 1, _ = !k;
|
|
18003
18003
|
return {
|
|
18004
18004
|
"rds-e-indicator__step-wrapper--first": C === 0,
|
|
18005
18005
|
"rds-e-indicator__step-wrapper--last": C === t.steps.length - 1,
|
|
18006
|
-
"rds-e-indicator__step-wrapper--side":
|
|
18007
|
-
"rds-e-indicator__step-wrapper--central":
|
|
18006
|
+
"rds-e-indicator__step-wrapper--side": k,
|
|
18007
|
+
"rds-e-indicator__step-wrapper--central": _
|
|
18008
18008
|
};
|
|
18009
18009
|
}, b = () => {
|
|
18010
|
-
!t.steps || !t.steps.length || t.steps.forEach((C,
|
|
18011
|
-
const
|
|
18012
|
-
let T = s.value[
|
|
18010
|
+
!t.steps || !t.steps.length || t.steps.forEach((C, k) => {
|
|
18011
|
+
const _ = k < a.value, R = k === a.value - 1;
|
|
18012
|
+
let T = s.value[k]?.classList, O = [];
|
|
18013
18013
|
T && (T = Array.from(T), O = Array.from(T), O = Tr(
|
|
18014
18014
|
O,
|
|
18015
18015
|
"rds-e-indicator__bullet--active",
|
|
18016
|
-
|
|
18016
|
+
_
|
|
18017
18017
|
), O = Tr(
|
|
18018
18018
|
O,
|
|
18019
18019
|
"rds-e-indicator__bullet--current",
|
|
18020
18020
|
R
|
|
18021
18021
|
), Sh(T, O) || setTimeout(() => {
|
|
18022
|
-
s.value[
|
|
18022
|
+
s.value[k].classList.remove(...T), s.value[k].classList.add(...O);
|
|
18023
18023
|
}, 150));
|
|
18024
18024
|
});
|
|
18025
18025
|
}, $ = () => {
|
|
@@ -18037,7 +18037,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18037
18037
|
p(), b(), window.addEventListener("resize", Ko($, 200)), t.variant === "small" && t.itemContent === "icon" && console.warn('RDSIndicator: Los iconos dentro del bullet no están soportados en la variante "small". El icono no se renderizará.'), t.numbering === "none" && console.warn('RDSIndicator: La opción de numeración "none" está deprecada y ya no muestra números dentro del bullet. Usa "off", "outside" o "inline".');
|
|
18038
18038
|
}), vt(() => {
|
|
18039
18039
|
window.removeEventListener("resize", $);
|
|
18040
|
-
}), (C,
|
|
18040
|
+
}), (C, k) => (m(), S("div", {
|
|
18041
18041
|
id: e.id,
|
|
18042
18042
|
ref_key: "$indicator",
|
|
18043
18043
|
ref: o,
|
|
@@ -18058,7 +18058,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18058
18058
|
style: Ye(h.value)
|
|
18059
18059
|
}, null, 4)
|
|
18060
18060
|
], 512),
|
|
18061
|
-
(m(!0), S(ke, null, Le(t.steps, (
|
|
18061
|
+
(m(!0), S(ke, null, Le(t.steps, (_, R) => (m(), S("div", {
|
|
18062
18062
|
key: R,
|
|
18063
18063
|
class: J(["rds-e-indicator__step-wrapper", v(R)])
|
|
18064
18064
|
}, [
|
|
@@ -18080,7 +18080,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18080
18080
|
key: 1,
|
|
18081
18081
|
class: J(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
|
|
18082
18082
|
}, [
|
|
18083
|
-
je(fe(c(
|
|
18083
|
+
je(fe(c(_, R)) + " ", 1),
|
|
18084
18084
|
g(u) && g(u)[R] ? (m(), S("div", Uh, fe(g(u)[R]), 1)) : I("", !0)
|
|
18085
18085
|
], 2)) : I("", !0)
|
|
18086
18086
|
], 2))), 128))
|
|
@@ -18207,13 +18207,13 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18207
18207
|
})));
|
|
18208
18208
|
}
|
|
18209
18209
|
);
|
|
18210
|
-
function
|
|
18210
|
+
function k(R) {
|
|
18211
18211
|
return u.value === R ? { width: `${Cr}px`, transition: "none" } : d.value === R ? { width: `${Cr}px` } : {};
|
|
18212
18212
|
}
|
|
18213
18213
|
vt(() => {
|
|
18214
18214
|
b(), f !== null && clearTimeout(f);
|
|
18215
18215
|
});
|
|
18216
|
-
const
|
|
18216
|
+
const _ = x(() => {
|
|
18217
18217
|
const R = l.value, T = r.value, O = Math.min(o.value, R);
|
|
18218
18218
|
if (R <= o.value)
|
|
18219
18219
|
return Array.from({ length: R }, (N, A) => ({
|
|
@@ -18248,7 +18248,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18248
18248
|
})
|
|
18249
18249
|
])) : I("", !0),
|
|
18250
18250
|
E("div", Zh, [
|
|
18251
|
-
(m(!0), S(ke, null, Le(
|
|
18251
|
+
(m(!0), S(ke, null, Le(_.value, (O) => (m(), ve(wa(e.interactive ? "button" : "span"), Re({
|
|
18252
18252
|
key: O.index,
|
|
18253
18253
|
class: ["rds-e-indicator-dots__dot", `rds-e-indicator-dots__dot--${O.dotSize}`]
|
|
18254
18254
|
}, { ref_for: !0 }, e.interactive ? { type: "button" } : {}, {
|
|
@@ -18258,7 +18258,7 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18258
18258
|
default: ye(() => [
|
|
18259
18259
|
E("span", {
|
|
18260
18260
|
class: "rds-e-indicator-dots__dot-inner",
|
|
18261
|
-
style: Ye(
|
|
18261
|
+
style: Ye(k(O.index))
|
|
18262
18262
|
}, null, 4),
|
|
18263
18263
|
O.dotSize === "active" && g(s) ? (m(), S("span", {
|
|
18264
18264
|
key: 0,
|
|
@@ -18348,19 +18348,19 @@ const Dh = /* @__PURE__ */ _e({
|
|
|
18348
18348
|
},
|
|
18349
18349
|
setup(e, { expose: t }) {
|
|
18350
18350
|
const n = e, { kind: a, value: l, color: r, forceContentHigh: o } = it(n), i = bt(), s = x(() => !!i.default && i.default().length > 0), d = V(null), u = x(() => !1), f = x(() => a.value === "dot" ? "" : String(l.value)), c = x(() => a.value === "dot" || a.value === "numeric"), h = x(() => a.value === "numeric"), p = x(() => ["promo", "success", "error", "warning", "information"].includes(r.value) ? r.value : "promo"), v = x(() => {
|
|
18351
|
-
const C = "rds-e-badge",
|
|
18351
|
+
const C = "rds-e-badge", k = [
|
|
18352
18352
|
`${C}--${a.value}`,
|
|
18353
18353
|
`${C}--color-${p.value}`
|
|
18354
18354
|
];
|
|
18355
18355
|
if (h.value) {
|
|
18356
|
-
const
|
|
18357
|
-
|
|
18356
|
+
const _ = f.value.length;
|
|
18357
|
+
_ === 1 ? k.push(`${C}--digits-1`) : _ === 2 ? k.push(`${C}--digits-2`) : k.push(`${C}--digits-3plus`);
|
|
18358
18358
|
}
|
|
18359
|
-
return o.value &&
|
|
18359
|
+
return o.value && k.push(`${C}--content-high`), k;
|
|
18360
18360
|
}), b = x(() => n.ariaLabel ? n.ariaLabel : a.value === "dot" ? "Notificación" : `Cuenta: ${f.value}`), $ = x(() => ({
|
|
18361
18361
|
"rds-e-badge-wrapper--standalone": !s.value
|
|
18362
18362
|
}));
|
|
18363
|
-
return t({ el: d }), (C,
|
|
18363
|
+
return t({ el: d }), (C, k) => (m(), S("span", {
|
|
18364
18364
|
id: e.id,
|
|
18365
18365
|
ref_key: "root",
|
|
18366
18366
|
ref: d,
|
|
@@ -18904,13 +18904,13 @@ function By(e, t) {
|
|
|
18904
18904
|
v.preventDefault(), l?.focus();
|
|
18905
18905
|
return;
|
|
18906
18906
|
}
|
|
18907
|
-
const $ = document.activeElement, C = $ ? b.indexOf($) : -1,
|
|
18908
|
-
if (v.preventDefault(),
|
|
18909
|
-
const
|
|
18910
|
-
b[
|
|
18907
|
+
const $ = document.activeElement, C = $ ? b.indexOf($) : -1, k = v.shiftKey;
|
|
18908
|
+
if (v.preventDefault(), k) {
|
|
18909
|
+
const _ = C <= 0 ? b.length - 1 : C - 1;
|
|
18910
|
+
b[_].focus();
|
|
18911
18911
|
} else {
|
|
18912
|
-
const
|
|
18913
|
-
b[
|
|
18912
|
+
const _ = C === -1 || C >= b.length - 1 ? 0 : C + 1;
|
|
18913
|
+
b[_].focus();
|
|
18914
18914
|
}
|
|
18915
18915
|
}, f = (v) => {
|
|
18916
18916
|
t.active.value && u(v);
|
|
@@ -19102,12 +19102,12 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19102
19102
|
const v = x(() => a.mobileHeight < 30 ? "30vh" : a.mobileHeight > 90 ? "90vh" : `${a.mobileHeight}vh`), b = x(() => {
|
|
19103
19103
|
const R = typeof a.maxWidth == "number" ? `${a.maxWidth}px` : a.maxWidth, T = typeof a.width == "number" ? `${a.width}px` : a.width;
|
|
19104
19104
|
return { "--rds-modal-max-width": R, "--rds-modal-width": T, "--rds-modal-mobile-height": v.value };
|
|
19105
|
-
}), { headerId: $, bodyId: C, attrs:
|
|
19105
|
+
}), { headerId: $, bodyId: C, attrs: k } = Vy({
|
|
19106
19106
|
id: a.id,
|
|
19107
19107
|
ariaLabel: a.ariaLabel,
|
|
19108
19108
|
ariaLabelledby: a.ariaLabelledby,
|
|
19109
19109
|
ariaDescribedby: a.ariaDescribedby
|
|
19110
|
-
}),
|
|
19110
|
+
}), _ = () => {
|
|
19111
19111
|
a.preventClose || l("onCloseRequest");
|
|
19112
19112
|
};
|
|
19113
19113
|
return By(r, {
|
|
@@ -19122,7 +19122,7 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19122
19122
|
/**
|
|
19123
19123
|
* { () => void } Gestiona el clic fuera del modal.
|
|
19124
19124
|
*/
|
|
19125
|
-
modalClickOutside: () =>
|
|
19125
|
+
modalClickOutside: () => _(),
|
|
19126
19126
|
/**
|
|
19127
19127
|
* { () => void } Solicita abrir el modal.
|
|
19128
19128
|
*/
|
|
@@ -19153,7 +19153,7 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19153
19153
|
id: e.id,
|
|
19154
19154
|
class: "rds-e-modal__overlay",
|
|
19155
19155
|
teleport: a.teleport,
|
|
19156
|
-
onClick:
|
|
19156
|
+
onClick: _
|
|
19157
19157
|
}, {
|
|
19158
19158
|
default: ye(() => [
|
|
19159
19159
|
we(g(Wo), {
|
|
@@ -19163,11 +19163,11 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19163
19163
|
class: "rds-e-modal__card",
|
|
19164
19164
|
style: Ye(b.value),
|
|
19165
19165
|
tabindex: "-1",
|
|
19166
|
-
role: g(
|
|
19167
|
-
"aria-modal": g(
|
|
19168
|
-
"aria-label": g(
|
|
19169
|
-
"aria-labelledby": g(
|
|
19170
|
-
"aria-describedby": g(
|
|
19166
|
+
role: g(k).role,
|
|
19167
|
+
"aria-modal": g(k).ariaModal,
|
|
19168
|
+
"aria-label": g(k).ariaLabel,
|
|
19169
|
+
"aria-labelledby": g(k).ariaLabelledby,
|
|
19170
|
+
"aria-describedby": g(k).ariaDescribedby,
|
|
19171
19171
|
onClick: T[1] || (T[1] = ge(() => {
|
|
19172
19172
|
}, ["stop"]))
|
|
19173
19173
|
}, {
|
|
@@ -19397,20 +19397,20 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19397
19397
|
const A = s.value.getBoundingClientRect();
|
|
19398
19398
|
(A.bottom < 0 || A.top > window.innerHeight) && C();
|
|
19399
19399
|
};
|
|
19400
|
-
const
|
|
19400
|
+
const k = async () => {
|
|
19401
19401
|
i.value ? C() : (i.value = !0, l("open"), await Be(), c(), setTimeout(() => {
|
|
19402
19402
|
document.addEventListener("click", h), document.addEventListener("keydown", p), a.closeOnTriggerHidden && document.addEventListener("scroll", v, !0);
|
|
19403
19403
|
}));
|
|
19404
|
-
},
|
|
19405
|
-
a.triggerOnHover && (b && (clearTimeout(b), b = null), i.value ||
|
|
19404
|
+
}, _ = () => {
|
|
19405
|
+
a.triggerOnHover && (b && (clearTimeout(b), b = null), i.value || k());
|
|
19406
19406
|
}, R = () => {
|
|
19407
19407
|
a.triggerOnHover && (b && (clearTimeout(b), b = null), b = setTimeout(() => {
|
|
19408
19408
|
d.value && d.value.matches(":hover, :focus-within") || C();
|
|
19409
19409
|
}, 120));
|
|
19410
19410
|
}, T = (A) => {
|
|
19411
|
-
a.triggerOnHover ? (A.preventDefault(), A.stopPropagation(), i.value ||
|
|
19411
|
+
a.triggerOnHover ? (A.preventDefault(), A.stopPropagation(), i.value || k()) : k();
|
|
19412
19412
|
}, O = () => {
|
|
19413
|
-
|
|
19413
|
+
_();
|
|
19414
19414
|
}, U = () => {
|
|
19415
19415
|
R();
|
|
19416
19416
|
}, H = () => {
|
|
@@ -19427,7 +19427,7 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19427
19427
|
l("select", A), C();
|
|
19428
19428
|
};
|
|
19429
19429
|
return vt($), t({
|
|
19430
|
-
toggle:
|
|
19430
|
+
toggle: k,
|
|
19431
19431
|
close: C,
|
|
19432
19432
|
isOpen: i
|
|
19433
19433
|
}), (A, Z) => (m(), S("div", Gy, [
|
|
@@ -19538,19 +19538,19 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19538
19538
|
const A = s.value.getBoundingClientRect();
|
|
19539
19539
|
(A.bottom < 0 || A.top > window.innerHeight) && C();
|
|
19540
19540
|
};
|
|
19541
|
-
const
|
|
19541
|
+
const k = async () => {
|
|
19542
19542
|
i.value ? C() : (i.value = !0, l("open"), await Be(), c(), setTimeout(() => {
|
|
19543
19543
|
document.addEventListener("click", h), document.addEventListener("keydown", p), a.closeOnTriggerHidden && document.addEventListener("scroll", v, !0);
|
|
19544
19544
|
}));
|
|
19545
|
-
},
|
|
19546
|
-
a.triggerOnHover && (b && (clearTimeout(b), b = null), i.value ||
|
|
19545
|
+
}, _ = () => {
|
|
19546
|
+
a.triggerOnHover && (b && (clearTimeout(b), b = null), i.value || k());
|
|
19547
19547
|
}, R = () => {
|
|
19548
19548
|
a.triggerOnHover && (b && (clearTimeout(b), b = null), b = setTimeout(() => {
|
|
19549
19549
|
d.value && d.value.matches(":hover, :focus-within") || C();
|
|
19550
19550
|
}, 120));
|
|
19551
19551
|
}, T = (A) => {
|
|
19552
|
-
a.triggerOnHover ? (A.preventDefault(), A.stopPropagation(), i.value ||
|
|
19553
|
-
}, O = () =>
|
|
19552
|
+
a.triggerOnHover ? (A.preventDefault(), A.stopPropagation(), i.value || k()) : k();
|
|
19553
|
+
}, O = () => _(), U = () => R(), H = () => {
|
|
19554
19554
|
d.value && (d.value.addEventListener("mouseenter", () => {
|
|
19555
19555
|
b && (clearTimeout(b), b = null);
|
|
19556
19556
|
}), d.value.addEventListener("mouseleave", () => {
|
|
@@ -19565,7 +19565,7 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19565
19565
|
};
|
|
19566
19566
|
return vt($), t({
|
|
19567
19567
|
/** Alterna el estado abierto/cerrado del popover */
|
|
19568
|
-
toggle:
|
|
19568
|
+
toggle: k,
|
|
19569
19569
|
/** Cierra programáticamente el popover */
|
|
19570
19570
|
close: C,
|
|
19571
19571
|
/** Ref reactiva del estado abierto */
|
|
@@ -19688,27 +19688,27 @@ const Fy = { class: "rds-e-modal__header" }, Ny = ["id"], Yy = ["id"], Hy = {
|
|
|
19688
19688
|
})), C = x(() => ({
|
|
19689
19689
|
"--rds-sidebar-transition-duration": `${p.value}s`,
|
|
19690
19690
|
"--rds-sidebar-content-transition-duration": `${v.value}s`
|
|
19691
|
-
})),
|
|
19691
|
+
})), k = () => {
|
|
19692
19692
|
l("sidebarChange", o.value);
|
|
19693
19693
|
};
|
|
19694
|
-
let
|
|
19694
|
+
let _;
|
|
19695
19695
|
const R = (O) => {
|
|
19696
19696
|
const U = o.value ? "collapsed" : "expanded", H = O ? "collapsed" : "expanded";
|
|
19697
19697
|
if (U !== H)
|
|
19698
|
-
if (l("sidebarContentSwitch", { from: U, to: H, animated: h.value }), o.value = O,
|
|
19698
|
+
if (l("sidebarContentSwitch", { from: U, to: H, animated: h.value }), o.value = O, k(), _ && window.clearTimeout(_), h.value) {
|
|
19699
19699
|
const N = c.value;
|
|
19700
|
-
|
|
19701
|
-
l("sidebarContentSwitchEnd", { from: U, to: H, animated: !0 }),
|
|
19700
|
+
_ = window.setTimeout(() => {
|
|
19701
|
+
l("sidebarContentSwitchEnd", { from: U, to: H, animated: !0 }), _ = void 0;
|
|
19702
19702
|
}, N);
|
|
19703
19703
|
} else
|
|
19704
19704
|
l("sidebarContentSwitchEnd", { from: U, to: H, animated: !1 });
|
|
19705
19705
|
}, T = () => {
|
|
19706
|
-
o.value = !0, i.value = !1, s.value = !0, d.value = !0, u.value.mobile && (i.value = !0, d.value = !1), u.value.desktop && (i.value = !1), u.value.desktopLarge && (o.value = !1, s.value = !1, d.value = !1), u.value.ultrawide && (o.value = !1, s.value = !1),
|
|
19706
|
+
o.value = !0, i.value = !1, s.value = !0, d.value = !0, u.value.mobile && (i.value = !0, d.value = !1), u.value.desktop && (i.value = !1), u.value.desktopLarge && (o.value = !1, s.value = !1, d.value = !1), u.value.ultrawide && (o.value = !1, s.value = !1), k();
|
|
19707
19707
|
};
|
|
19708
19708
|
return Fe(() => {
|
|
19709
19709
|
T(), window.addEventListener("resize", T);
|
|
19710
19710
|
}), Qt(() => {
|
|
19711
|
-
window.removeEventListener("resize", T),
|
|
19711
|
+
window.removeEventListener("resize", T), _ && (window.clearTimeout(_), _ = void 0);
|
|
19712
19712
|
}), t({
|
|
19713
19713
|
/**
|
|
19714
19714
|
* { boolean } Muestra el estado actual del sidebar.
|