@db-ux/v-core-components 2.2.2 → 2.2.3
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/db-ux.es.js +252 -238
- package/dist/db-ux.umd.js +1 -1
- package/dist/utils/floating-components.d.ts +13 -0
- package/package.json +3 -3
package/dist/db-ux.es.js
CHANGED
|
@@ -26,18 +26,18 @@ const Q = () => {
|
|
|
26
26
|
for (const e in l)
|
|
27
27
|
l[e] && (a += `${e} `);
|
|
28
28
|
return a.trim();
|
|
29
|
-
}, Ca = (i) => Array.isArray(i) && i.every((a) => typeof a == "string"), Aa = ["Mac", "iPhone", "iPad", "iPod"], ve = () => typeof window < "u" && Aa.some((i) => window.navigator.userAgent.includes(i)), x = (i, a) => new Promise(() => setTimeout(i, a)),
|
|
29
|
+
}, Ca = (i) => Array.isArray(i) && i.every((a) => typeof a == "string"), Aa = ["Mac", "iPhone", "iPad", "iPod"], ve = () => typeof window < "u" && Aa.some((i) => window.navigator.userAgent.includes(i)), x = (i, a) => new Promise(() => setTimeout(i, a)), X = (i) => {
|
|
30
30
|
if (i != null)
|
|
31
31
|
return String(typeof i == "string" ? !!i : i);
|
|
32
32
|
}, M = (i, a) => {
|
|
33
33
|
if (i != null)
|
|
34
34
|
return typeof i == "string" && a ? !!(a === i || i) : !!i;
|
|
35
|
-
},
|
|
35
|
+
}, we = (i, a) => {
|
|
36
36
|
if (!(i == null && a == null))
|
|
37
37
|
return Number(i ?? a);
|
|
38
|
-
}, Je = (i, a) => a && ["number", "range"].includes(a) ?
|
|
38
|
+
}, Je = (i, a) => a && ["number", "range"].includes(a) ? we(i) : i, K = (i) => {
|
|
39
39
|
if (i != null)
|
|
40
|
-
return
|
|
40
|
+
return X(!i);
|
|
41
41
|
}, ee = (i, a) => (a === void 0 || !!a) && !!i, Qe = (i) => i.querySelector('input[type="search"]'), Yi = (i, a) => {
|
|
42
42
|
const l = i.id ?? i.value ?? Q();
|
|
43
43
|
return `${a}${l}`;
|
|
@@ -87,7 +87,7 @@ const Q = () => {
|
|
|
87
87
|
"data-state": t.state,
|
|
88
88
|
"data-width": t.width,
|
|
89
89
|
"data-variant": t.variant,
|
|
90
|
-
"data-no-text": n(
|
|
90
|
+
"data-no-text": n(X)(t.noText),
|
|
91
91
|
name: t.name,
|
|
92
92
|
form: t.form,
|
|
93
93
|
value: t.value,
|
|
@@ -101,7 +101,7 @@ const Q = () => {
|
|
|
101
101
|
], 64)) : C(t.$slots, "default", { key: 1 })
|
|
102
102
|
], 10, Da));
|
|
103
103
|
}
|
|
104
|
-
}), Le = "OVERWRITE_DEFAULT_ID",
|
|
104
|
+
}), Le = "OVERWRITE_DEFAULT_ID", Se = "LABEL SHOULD BE SET", ta = " ", Fa = "MESSAGE SHOULD BE SET", Ze = "-label", xe = "-select", fe = "-message", pe = "-valid-message", he = "-invalid-message", ze = "-placeholder", ea = "-datalist", me = "TODO: Add a validMessage", ie = "TODO: Add an invalidMessage", ia = "Remove", Na = "Back", Ma = "Selected", za = "BurgerMenu", Ra = "brand", Va = 4, Ge = "Close", Ki = "density", Ji = "color";
|
|
105
105
|
var la = /* @__PURE__ */ ((i) => (i.FUNCTIONAL = "functional", i.REGULAR = "regular", i.EXPRESSIVE = "expressive", i))(la || {});
|
|
106
106
|
const Qi = Object.entries(la).map(([, i]) => i);
|
|
107
107
|
var oa = /* @__PURE__ */ ((i) => (i.PRIMARY = "primary", i))(oa || {}), da = /* @__PURE__ */ ((i) => (i.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", i.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", i.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", i.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", i.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", i.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", i.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", i.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", i.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", i.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", i.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", i.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", i.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", i.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", i.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", i.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", i.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", i.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", i.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", i.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", i.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", i.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", i.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", i.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", i.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", i.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", i.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", i.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", i.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", i.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", i))(da || {});
|
|
@@ -240,7 +240,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
240
240
|
"data-size": t.size,
|
|
241
241
|
"data-emphasis": t.emphasis,
|
|
242
242
|
"data-placement": t.placement,
|
|
243
|
-
"data-label": ((d = t.placement) == null ? void 0 : d.startsWith("corner")) && (t.label ?? n(
|
|
243
|
+
"data-label": ((d = t.placement) == null ? void 0 : d.startsWith("corner")) && (t.label ?? n(Se))
|
|
244
244
|
}, [
|
|
245
245
|
t.text ? (m(), B(U, { key: 0 }, [
|
|
246
246
|
D(_(t.text), 1)
|
|
@@ -248,7 +248,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
248
248
|
], 10, Oa);
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
}),
|
|
251
|
+
}), Ha = ["data-icon", "data-hide-icon", "id"], ll = /* @__PURE__ */ P({
|
|
252
252
|
__name: "brand",
|
|
253
253
|
props: {
|
|
254
254
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -275,9 +275,9 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
275
275
|
e.text ? (m(), B(U, { key: 0 }, [
|
|
276
276
|
D(_(e.text), 1)
|
|
277
277
|
], 64)) : C(e.$slots, "default", { key: 1 })
|
|
278
|
-
], 10,
|
|
278
|
+
], 10, Ha));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), Xa = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], ol = /* @__PURE__ */ P({
|
|
281
281
|
__name: "card",
|
|
282
282
|
props: {
|
|
283
283
|
behavior: { default: void 0 },
|
|
@@ -309,7 +309,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
309
309
|
onClick: p[0] || (p[0] = async (d) => e(d))
|
|
310
310
|
}, [
|
|
311
311
|
C(t.$slots, "default")
|
|
312
|
-
], 10,
|
|
312
|
+
], 10, Xa));
|
|
313
313
|
}
|
|
314
314
|
}), se = (i, a, l = "value") => {
|
|
315
315
|
i(`update:${l}`, a.target[l]);
|
|
@@ -386,11 +386,11 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
386
386
|
},
|
|
387
387
|
emits: ["update:checked"],
|
|
388
388
|
setup(i, { emit: a }) {
|
|
389
|
-
const l = a, e = i, t = s(!1), p = s(void 0), d = s(void 0),
|
|
389
|
+
const l = a, e = i, t = s(!1), p = s(void 0), d = s(void 0), S = s(void 0), c = s(void 0), v = s(void 0), u = s(""), L = s(""), g = s(null);
|
|
390
390
|
Y(() => {
|
|
391
391
|
t.value = !0;
|
|
392
392
|
const b = e.id ?? `checkbox-${Q()}`;
|
|
393
|
-
p.value = b, d.value = b + fe,
|
|
393
|
+
p.value = b, d.value = b + fe, S.value = b + pe, c.value = b + he, v.value = e.invalidMessage || ie;
|
|
394
394
|
}), A(
|
|
395
395
|
() => [g.value, e.invalidMessage],
|
|
396
396
|
() => {
|
|
@@ -406,7 +406,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
406
406
|
() => {
|
|
407
407
|
if (p.value) {
|
|
408
408
|
const b = p.value + fe;
|
|
409
|
-
d.value = b,
|
|
409
|
+
d.value = b, S.value = p.value + pe, c.value = p.value + he, ee(e.message, e.showMessage) && (u.value = b);
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
{
|
|
@@ -436,8 +436,8 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
436
436
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
437
437
|
}
|
|
438
438
|
function f() {
|
|
439
|
-
var b,
|
|
440
|
-
!((b = g.value) != null && b.validity.valid) || e.validation === "invalid" ? (u.value = c.value, v.value = e.invalidMessage || ((
|
|
439
|
+
var b, w, O;
|
|
440
|
+
!((b = g.value) != null && b.validity.valid) || e.validation === "invalid" ? (u.value = c.value, v.value = e.invalidMessage || ((w = g.value) == null ? void 0 : w.validationMessage) || ie, ve() && (L.value = v.value, x(() => L.value = "", 1e3))) : h() && ((O = g.value) != null && O.validity.valid) && e.required ? (u.value = S.value, ve() && (L.value = e.validMessage ?? me, x(() => L.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = d.value : u.value = "";
|
|
441
441
|
}
|
|
442
442
|
function r(b) {
|
|
443
443
|
e.onChange && e.onChange(b), se(l, b, "checked"), f();
|
|
@@ -448,7 +448,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
448
448
|
function E(b) {
|
|
449
449
|
e.onFocus && e.onFocus(b);
|
|
450
450
|
}
|
|
451
|
-
return (b,
|
|
451
|
+
return (b, w) => (m(), B("div", {
|
|
452
452
|
class: z(n(R)("db-checkbox", e.class)),
|
|
453
453
|
"data-size": b.size,
|
|
454
454
|
"data-hide-label": n(K)(b.showLabel)
|
|
@@ -466,9 +466,9 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
466
466
|
disabled: n(M)(b.disabled, "disabled"),
|
|
467
467
|
value: b.value,
|
|
468
468
|
required: n(M)(b.required, "required"),
|
|
469
|
-
onChange:
|
|
470
|
-
onBlur:
|
|
471
|
-
onFocus:
|
|
469
|
+
onChange: w[0] || (w[0] = async (O) => r(O)),
|
|
470
|
+
onBlur: w[1] || (w[1] = async (O) => I(O)),
|
|
471
|
+
onFocus: w[2] || (w[2] = async (O) => E(O)),
|
|
472
472
|
"aria-describedby": b.ariaDescribedBy ?? u.value
|
|
473
473
|
}, null, 40, Ja),
|
|
474
474
|
b.label ? (m(), B(U, { key: 0 }, [
|
|
@@ -490,7 +490,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
490
490
|
key: 1,
|
|
491
491
|
size: "small",
|
|
492
492
|
semantic: "successful",
|
|
493
|
-
id:
|
|
493
|
+
id: S.value
|
|
494
494
|
}, {
|
|
495
495
|
default: G(() => [
|
|
496
496
|
D(_(b.validMessage || n(me)), 1)
|
|
@@ -573,25 +573,25 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
573
573
|
flush: "post"
|
|
574
574
|
}
|
|
575
575
|
);
|
|
576
|
-
function t(d,
|
|
577
|
-
d.key === "Escape" && d.preventDefault(),
|
|
576
|
+
function t(d, S) {
|
|
577
|
+
d.key === "Escape" && d.preventDefault(), S && d.stopPropagation(), (S || d.key === "Escape" || d.target.nodeName === "DIALOG" && d.type === "click" && a.backdrop !== "none") && a.onClose && a.onClose(d);
|
|
578
578
|
}
|
|
579
579
|
function p() {
|
|
580
580
|
if (l.value) {
|
|
581
581
|
const d = !!a.open;
|
|
582
582
|
d && !l.value.open && (e.value && (e.value.hidden = !1), a.backdrop === "none" || a.variant === "inside" ? l.value.show() : l.value.showModal()), !d && l.value.open && (e.value && (e.value.hidden = !0), x(() => {
|
|
583
|
-
var
|
|
584
|
-
e.value && (e.value.hidden = !1), (
|
|
583
|
+
var S;
|
|
584
|
+
e.value && (e.value.hidden = !1), (S = l.value) == null || S.close();
|
|
585
585
|
}, 401));
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
return (d,
|
|
588
|
+
return (d, S) => (m(), B("dialog", {
|
|
589
589
|
class: "db-drawer",
|
|
590
590
|
id: d.id,
|
|
591
591
|
ref_key: "_ref",
|
|
592
592
|
ref: l,
|
|
593
|
-
onClick:
|
|
594
|
-
onKeydown:
|
|
593
|
+
onClick: S[0] || (S[0] = async (c) => t(c)),
|
|
594
|
+
onKeydown: S[1] || (S[1] = async (c) => t(c)),
|
|
595
595
|
"data-backdrop": d.backdrop,
|
|
596
596
|
"data-variant": d.variant
|
|
597
597
|
}, [
|
|
@@ -602,7 +602,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
602
602
|
"data-spacing": d.spacing,
|
|
603
603
|
"data-width": d.width,
|
|
604
604
|
"data-direction": d.direction,
|
|
605
|
-
"data-rounded": n(
|
|
605
|
+
"data-rounded": n(X)(d.rounded)
|
|
606
606
|
}, [
|
|
607
607
|
T("header", at, [
|
|
608
608
|
T("div", tt, [
|
|
@@ -639,10 +639,10 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
639
639
|
innerHeight: p,
|
|
640
640
|
innerWidth: d
|
|
641
641
|
} = window;
|
|
642
|
-
let
|
|
642
|
+
let S = a < 0, c = l > p, v = e < 0, u = t > d;
|
|
643
643
|
const L = i.dataset.outsideVy, g = i.dataset.outsideVx, h = (f = i == null ? void 0 : i.parentElement) == null ? void 0 : f.getBoundingClientRect();
|
|
644
|
-
return h && (L && (i.dataset.outsideVy === "top" ?
|
|
645
|
-
outTop:
|
|
644
|
+
return h && (L && (i.dataset.outsideVy === "top" ? S = h.top - (l - h.bottom) < 0 : c = h.bottom + (h.top - a) > p), g && (i.dataset.outsideVx === "left" ? v = h.left - (t - h.right) < 0 : u = h.right + (h.left - e) > d)), {
|
|
645
|
+
outTop: S,
|
|
646
646
|
outBottom: c,
|
|
647
647
|
outLeft: v,
|
|
648
648
|
outRight: u
|
|
@@ -668,18 +668,32 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
668
668
|
bottom: t,
|
|
669
669
|
childHeight: p,
|
|
670
670
|
childWidth: d,
|
|
671
|
-
width:
|
|
671
|
+
width: S,
|
|
672
672
|
right: c,
|
|
673
673
|
left: v,
|
|
674
674
|
correctedPlacement: u
|
|
675
675
|
} = sa(i, a, l);
|
|
676
|
-
i.dataset.width === "full" && (i.style.inlineSize = `${
|
|
676
|
+
i.dataset.width === "full" && (i.style.inlineSize = `${S}px`), u === "top" || u === "bottom" || u === "top-start" || u === "bottom-start" ? i.style.insetInlineStart = `${v}px` : (u === "top-end" || u === "bottom-end") && (i.style.insetInlineStart = `${c - d}px`), u != null && u.startsWith("top") ? i.style.insetBlockStart = `${e - p}px` : u != null && u.startsWith("bottom") && (i.style.insetBlockStart = `${t}px`), i.style.position = "fixed";
|
|
677
677
|
}, sa = (i, a, l) => {
|
|
678
|
+
if (!i || !a)
|
|
679
|
+
return {
|
|
680
|
+
top: 0,
|
|
681
|
+
bottom: 0,
|
|
682
|
+
right: 0,
|
|
683
|
+
height: 0,
|
|
684
|
+
width: 0,
|
|
685
|
+
left: 0,
|
|
686
|
+
childHeight: 0,
|
|
687
|
+
childWidth: 0,
|
|
688
|
+
correctedPlacement: l,
|
|
689
|
+
innerWidth: window.innerWidth,
|
|
690
|
+
innerHeight: window.innerHeight
|
|
691
|
+
};
|
|
678
692
|
const e = i.getBoundingClientRect(), {
|
|
679
693
|
top: t,
|
|
680
694
|
height: p,
|
|
681
695
|
bottom: d,
|
|
682
|
-
right:
|
|
696
|
+
right: S,
|
|
683
697
|
left: c,
|
|
684
698
|
width: v
|
|
685
699
|
} = a.getBoundingClientRect(), {
|
|
@@ -688,12 +702,12 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
688
702
|
} = window;
|
|
689
703
|
let g = e.height, h = e.width;
|
|
690
704
|
(l === "bottom" || l === "top") && (h = h / 2), (l === "left" || l === "right") && (g = g / 2);
|
|
691
|
-
const f = d + g > u, r = t - g < 0, I = c - h < 0, E =
|
|
705
|
+
const f = d + g > u, r = t - g < 0, I = c - h < 0, E = S + h > L;
|
|
692
706
|
let b = l;
|
|
693
707
|
return l.startsWith("bottom") ? f ? (b = l == null ? void 0 : l.replace("bottom", "top"), I && E ? b = "top" : I ? b = "top-start" : E && (b = "top-end")) : I && E ? b = "bottom" : I ? b = "bottom-start" : E && (b = "bottom-end") : l.startsWith("top") ? r ? (b = l == null ? void 0 : l.replace("top", "bottom"), I && E ? b = "bottom" : I ? b = "bottom-start" : E && (b = "bottom-end")) : I && E ? b = "top" : I ? b = "top-start" : E && (b = "top-end") : l.startsWith("left") ? I ? (b = l == null ? void 0 : l.replace("left", "right"), f && r ? b = "right" : f ? b = "right-end" : r && (b = "right-start")) : f && r ? b = "left" : f ? b = "left-end" : r && (b = "left-start") : b.startsWith("right") && (E ? (b = l == null ? void 0 : l.replace("right", "left"), f && r ? b = "left" : f ? b = "left-end" : r && (b = "left-start")) : f && r ? b = "right" : f ? b = "right-end" : r && (b = "right-start")), {
|
|
694
708
|
top: t,
|
|
695
709
|
bottom: d,
|
|
696
|
-
right:
|
|
710
|
+
right: S,
|
|
697
711
|
height: p,
|
|
698
712
|
width: v,
|
|
699
713
|
left: c,
|
|
@@ -708,7 +722,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
708
722
|
top: t,
|
|
709
723
|
height: p,
|
|
710
724
|
width: d,
|
|
711
|
-
childHeight:
|
|
725
|
+
childHeight: S,
|
|
712
726
|
childWidth: c,
|
|
713
727
|
right: v,
|
|
714
728
|
left: u,
|
|
@@ -721,17 +735,17 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
721
735
|
const r = d / 2 / c * 100;
|
|
722
736
|
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-inline-start", `${r}%`) : g.endsWith("end") && i.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - r}%`);
|
|
723
737
|
}
|
|
724
|
-
if (
|
|
725
|
-
const r = p / 2 /
|
|
738
|
+
if (S > p && (g.startsWith("left") || g.startsWith("bottom"))) {
|
|
739
|
+
const r = p / 2 / S * 100;
|
|
726
740
|
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-block-start", `${r}%`) : g.endsWith("end") && i.style.setProperty("--db-tooltip-arrow-block-start", `${100 - r}%`);
|
|
727
741
|
}
|
|
728
742
|
if (g === "right" || g === "left")
|
|
729
743
|
i.style.insetBlockStart = `${t + p / 2}px`;
|
|
730
744
|
else if (g === "right-start" || g === "left-start") {
|
|
731
|
-
const r = t +
|
|
745
|
+
const r = t + S;
|
|
732
746
|
i.style.insetBlockStart = `${t}px`, i.style.insetBlockEnd = `${r > f ? f : r}px`;
|
|
733
747
|
} else if (g === "right-end" || g === "left-end") {
|
|
734
|
-
const r = L -
|
|
748
|
+
const r = L - S;
|
|
735
749
|
i.style.insetBlockStart = `${r < 0 ? 0 : r}px`, i.style.insetBlockEnd = `${L}px`;
|
|
736
750
|
} else if (g === "top" || g === "bottom")
|
|
737
751
|
i.style.insetInlineStart = `${u + d / 2}px`;
|
|
@@ -749,10 +763,10 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
749
763
|
const r = u - c;
|
|
750
764
|
i.style.insetInlineStart = `calc(${r < 0 ? 0 : r}px - ${e})`, i.style.insetInlineEnd = `calc(${v}px - ${e})`;
|
|
751
765
|
} else if (g != null && g.startsWith("top")) {
|
|
752
|
-
const r = t -
|
|
766
|
+
const r = t - S;
|
|
753
767
|
i.style.insetBlockStart = `calc(${r < 0 ? 0 : r}px - ${e})`, i.style.insetBlockEnd = `calc(${L}px - ${e})`;
|
|
754
768
|
} else if (g != null && g.startsWith("bottom")) {
|
|
755
|
-
const r = L +
|
|
769
|
+
const r = L + S;
|
|
756
770
|
i.style.insetBlockStart = `calc(${L}px + ${e})`, i.style.insetBlockEnd = `calc(${r > f ? f : r}px + ${e})`;
|
|
757
771
|
}
|
|
758
772
|
i.style.position = "fixed", i.setAttribute("data-corrected-placement", g);
|
|
@@ -815,10 +829,10 @@ class st {
|
|
|
815
829
|
if (!this.triangleData)
|
|
816
830
|
return;
|
|
817
831
|
if (a === "fill-gap") {
|
|
818
|
-
const d = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`,
|
|
832
|
+
const d = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, S = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
819
833
|
return {
|
|
820
|
-
lb: `${
|
|
821
|
-
lt: `${
|
|
834
|
+
lb: `${S} ${d}`,
|
|
835
|
+
lt: `${S} 0`,
|
|
822
836
|
rt: "100% 0",
|
|
823
837
|
rb: `100% ${d}`
|
|
824
838
|
};
|
|
@@ -839,7 +853,7 @@ class st {
|
|
|
839
853
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), l && (this.triangleData = void 0));
|
|
840
854
|
}
|
|
841
855
|
}
|
|
842
|
-
const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-header-drawer-navigation" }, ct = { class: "db-header-meta-navigation" }, vt = { class: "db-header-secondary-action" }, ft = { class: "db-header-meta-navigation" }, pt = { class: "db-header-navigation-bar" }, ht = { class: "db-header-brand-container" }, mt = { class: "db-header-navigation-container" }, gt = { class: "db-header-navigation" }, bt = { class: "db-header-primary-action" }, yt = { class: "db-header-action-container" }, kt = { class: "db-header-burger-menu-container" },
|
|
856
|
+
const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-header-drawer-navigation" }, ct = { class: "db-header-meta-navigation" }, vt = { class: "db-header-secondary-action" }, ft = { class: "db-header-meta-navigation" }, pt = { class: "db-header-navigation-bar" }, ht = { class: "db-header-brand-container" }, mt = { class: "db-header-navigation-container" }, gt = { class: "db-header-navigation" }, bt = { class: "db-header-primary-action" }, yt = { class: "db-header-action-container" }, kt = { class: "db-header-burger-menu-container" }, wt = { class: "db-header-secondary-action" }, sl = /* @__PURE__ */ P({
|
|
843
857
|
__name: "header",
|
|
844
858
|
props: {
|
|
845
859
|
brand: {},
|
|
@@ -885,7 +899,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
885
899
|
const v = !M(a.drawerOpen, "drawerOpen");
|
|
886
900
|
a.onToggle && a.onToggle(v);
|
|
887
901
|
}
|
|
888
|
-
function
|
|
902
|
+
function S(c) {
|
|
889
903
|
ra(c) && d();
|
|
890
904
|
}
|
|
891
905
|
return (c, v) => (m(), B("header", {
|
|
@@ -907,7 +921,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
907
921
|
T("div", rt, [
|
|
908
922
|
T("div", {
|
|
909
923
|
class: "db-header-navigation",
|
|
910
|
-
onClick: v[0] || (v[0] = async (u) =>
|
|
924
|
+
onClick: v[0] || (v[0] = async (u) => S(u))
|
|
911
925
|
}, [
|
|
912
926
|
C(c.$slots, "default")
|
|
913
927
|
]),
|
|
@@ -951,14 +965,14 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
951
965
|
_: 1
|
|
952
966
|
}, 8, ["id", "onClick"])
|
|
953
967
|
]),
|
|
954
|
-
T("div",
|
|
968
|
+
T("div", wt, [
|
|
955
969
|
C(c.$slots, "secondary-action")
|
|
956
970
|
])
|
|
957
971
|
])
|
|
958
972
|
])
|
|
959
973
|
], 10, ut));
|
|
960
974
|
}
|
|
961
|
-
}),
|
|
975
|
+
}), St = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], ul = /* @__PURE__ */ P({
|
|
962
976
|
__name: "icon",
|
|
963
977
|
props: {
|
|
964
978
|
variant: { default: void 0 },
|
|
@@ -987,7 +1001,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
987
1001
|
e.text ? (m(), B(U, { key: 0 }, [
|
|
988
1002
|
D(_(e.text), 1)
|
|
989
1003
|
], 64)) : C(e.$slots, "default", { key: 1 })
|
|
990
|
-
], 10,
|
|
1004
|
+
], 10, St));
|
|
991
1005
|
}
|
|
992
1006
|
}), Bt = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], It = ["for"], $t = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], Lt = ["id"], _t = ["value"], Tt = {
|
|
993
1007
|
"data-visually-hidden": "true",
|
|
@@ -1047,10 +1061,10 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1047
1061
|
},
|
|
1048
1062
|
emits: ["update:value"],
|
|
1049
1063
|
setup(i, { emit: a }) {
|
|
1050
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
1064
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), S = s(void 0), c = s(void 0), v = s(void 0), u = s(""), L = s(""), g = s(""), h = s(null);
|
|
1051
1065
|
Y(() => {
|
|
1052
1066
|
const y = e.id ?? `input-${Q()}`;
|
|
1053
|
-
t.value = y, p.value = y + fe, d.value = y + pe,
|
|
1067
|
+
t.value = y, p.value = y + fe, d.value = y + pe, S.value = y + he, v.value = y + ea, c.value = e.invalidMessage || ie;
|
|
1054
1068
|
}), A(
|
|
1055
1069
|
() => [h.value, e.invalidMessage],
|
|
1056
1070
|
() => {
|
|
@@ -1066,7 +1080,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1066
1080
|
() => {
|
|
1067
1081
|
if (t.value) {
|
|
1068
1082
|
const y = t.value + fe;
|
|
1069
|
-
p.value = y, d.value = t.value + pe,
|
|
1083
|
+
p.value = y, d.value = t.value + pe, S.value = t.value + he, v.value = e.dataListId ?? t.value + ea, ee(e.message, e.showMessage) && (u.value = y);
|
|
1070
1084
|
}
|
|
1071
1085
|
},
|
|
1072
1086
|
{
|
|
@@ -1088,7 +1102,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1088
1102
|
}
|
|
1089
1103
|
function r() {
|
|
1090
1104
|
var y, W, k;
|
|
1091
|
-
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (u.value =
|
|
1105
|
+
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (u.value = S.value, c.value = e.invalidMessage || ((W = h.value) == null ? void 0 : W.validationMessage) || ie, ve() && (g.value = c.value, x(() => g.value = "", 1e3))) : f() && ((k = h.value) != null && k.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (u.value = d.value, ve() && (g.value = e.validMessage ?? me, x(() => g.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = p.value : u.value = "";
|
|
1092
1106
|
}
|
|
1093
1107
|
function I(y) {
|
|
1094
1108
|
e.input && e.input(y), L.value = y.target.value, e.onInput && e.onInput(y), se(l, y), r();
|
|
@@ -1099,7 +1113,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1099
1113
|
function b(y) {
|
|
1100
1114
|
e.onBlur && e.onBlur(y);
|
|
1101
1115
|
}
|
|
1102
|
-
function
|
|
1116
|
+
function w(y) {
|
|
1103
1117
|
e.onFocus && e.onFocus(y);
|
|
1104
1118
|
}
|
|
1105
1119
|
function O() {
|
|
@@ -1120,7 +1134,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1120
1134
|
"data-icon-after": y.iconAfter,
|
|
1121
1135
|
"data-hide-icon-after": n(K)(y.showIcon)
|
|
1122
1136
|
}, [
|
|
1123
|
-
T("label", { for: t.value }, _(y.label ?? n(
|
|
1137
|
+
T("label", { for: t.value }, _(y.label ?? n(Se)), 9, It),
|
|
1124
1138
|
T("input", {
|
|
1125
1139
|
"aria-invalid": y.validation === "invalid",
|
|
1126
1140
|
"data-custom-validity": y.validation,
|
|
@@ -1133,10 +1147,10 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1133
1147
|
placeholder: y.placeholder ?? n(ta),
|
|
1134
1148
|
disabled: n(M)(y.disabled, "disabled"),
|
|
1135
1149
|
required: n(M)(y.required, "required"),
|
|
1136
|
-
step: n(
|
|
1150
|
+
step: n(we)(y.step),
|
|
1137
1151
|
value: y.value ?? L.value,
|
|
1138
|
-
maxLength: n(
|
|
1139
|
-
minLength: n(
|
|
1152
|
+
maxLength: n(we)(y.maxLength, y.maxlength),
|
|
1153
|
+
minLength: n(we)(y.minLength, y.minlength),
|
|
1140
1154
|
max: n(Je)(y.max, y.type),
|
|
1141
1155
|
min: n(Je)(y.min, y.type),
|
|
1142
1156
|
readOnly: n(M)(y.readOnly, "readOnly") || n(M)(y.readonly, "readonly"),
|
|
@@ -1148,7 +1162,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1148
1162
|
onInput: W[0] || (W[0] = async (k) => I(k)),
|
|
1149
1163
|
onChange: W[1] || (W[1] = async (k) => E(k)),
|
|
1150
1164
|
onBlur: W[2] || (W[2] = async (k) => b(k)),
|
|
1151
|
-
onFocus: W[3] || (W[3] = async (k) =>
|
|
1165
|
+
onFocus: W[3] || (W[3] = async (k) => w(k)),
|
|
1152
1166
|
list: y.dataList && v.value,
|
|
1153
1167
|
"aria-describedby": y.ariaDescribedBy ?? u.value
|
|
1154
1168
|
}, null, 40, $t),
|
|
@@ -1187,7 +1201,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1187
1201
|
ae(te, {
|
|
1188
1202
|
size: "small",
|
|
1189
1203
|
semantic: "critical",
|
|
1190
|
-
id:
|
|
1204
|
+
id: S.value
|
|
1191
1205
|
}, {
|
|
1192
1206
|
default: G(() => [
|
|
1193
1207
|
D(_(c.value), 1)
|
|
@@ -1238,9 +1252,9 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1238
1252
|
rel: t.rel,
|
|
1239
1253
|
role: t.role,
|
|
1240
1254
|
hrefLang: t.hreflang,
|
|
1241
|
-
"aria-disabled": n(
|
|
1255
|
+
"aria-disabled": n(X)(t.disabled),
|
|
1242
1256
|
tabIndex: t.disabled ? -1 : 0,
|
|
1243
|
-
"aria-selected": n(
|
|
1257
|
+
"aria-selected": n(X)(t.selected),
|
|
1244
1258
|
"aria-label": t.label,
|
|
1245
1259
|
"aria-current": t.current,
|
|
1246
1260
|
"data-size": t.size,
|
|
@@ -1284,8 +1298,8 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1284
1298
|
id: t.id,
|
|
1285
1299
|
class: z(n(R)("db-page", a.class)),
|
|
1286
1300
|
"data-variant": t.variant,
|
|
1287
|
-
"data-fade-in": n(
|
|
1288
|
-
"data-fonts-loaded": n(
|
|
1301
|
+
"data-fade-in": n(X)(t.fadeIn),
|
|
1302
|
+
"data-fonts-loaded": n(X)(l.value)
|
|
1289
1303
|
}, [
|
|
1290
1304
|
C(t.$slots, "header"),
|
|
1291
1305
|
T("main", {
|
|
@@ -1338,7 +1352,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1338
1352
|
flush: "post"
|
|
1339
1353
|
}
|
|
1340
1354
|
);
|
|
1341
|
-
function
|
|
1355
|
+
function S(u) {
|
|
1342
1356
|
e.onChange && e.onChange(u), se(l, u);
|
|
1343
1357
|
}
|
|
1344
1358
|
function c(u) {
|
|
@@ -1366,7 +1380,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1366
1380
|
"aria-describedby": u.describedbyid ?? u.ariaDescribedBy,
|
|
1367
1381
|
value: u.value,
|
|
1368
1382
|
required: n(M)(u.required, "required"),
|
|
1369
|
-
onChange: L[0] || (L[0] = async (g) =>
|
|
1383
|
+
onChange: L[0] || (L[0] = async (g) => S(g)),
|
|
1370
1384
|
onBlur: L[1] || (L[1] = async (g) => c(g)),
|
|
1371
1385
|
onFocus: L[2] || (L[2] = async (g) => v(g))
|
|
1372
1386
|
}, null, 40, Ft),
|
|
@@ -1448,11 +1462,11 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1448
1462
|
},
|
|
1449
1463
|
emits: ["update:value"],
|
|
1450
1464
|
setup(i, { emit: a }) {
|
|
1451
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
1465
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), S = s(void 0), c = s(void 0), v = s(""), u = s(""), L = s(""), g = s(!1), h = s(""), f = s(null);
|
|
1452
1466
|
Y(() => {
|
|
1453
1467
|
g.value = !0;
|
|
1454
1468
|
const k = e.id ?? `select-${Q()}`;
|
|
1455
|
-
t.value = k, p.value = k + fe, d.value = k + pe,
|
|
1469
|
+
t.value = k, p.value = k + fe, d.value = k + pe, S.value = k + he, v.value = k + ze, c.value = e.invalidMessage || ie;
|
|
1456
1470
|
}), A(
|
|
1457
1471
|
() => [f.value, e.invalidMessage],
|
|
1458
1472
|
() => {
|
|
@@ -1467,8 +1481,8 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1467
1481
|
() => [t.value, g.value],
|
|
1468
1482
|
() => {
|
|
1469
1483
|
if (t.value && g.value) {
|
|
1470
|
-
const k = t.value + fe,
|
|
1471
|
-
p.value = k, d.value = t.value + pe,
|
|
1484
|
+
const k = t.value + fe, H = t.value + ze;
|
|
1485
|
+
p.value = k, d.value = t.value + pe, S.value = t.value + he, v.value = H, ee(e.message, e.showMessage) ? u.value = k : u.value = H, g.value = !1;
|
|
1472
1486
|
}
|
|
1473
1487
|
},
|
|
1474
1488
|
{
|
|
@@ -1489,8 +1503,8 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1489
1503
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1490
1504
|
}
|
|
1491
1505
|
function I() {
|
|
1492
|
-
var k,
|
|
1493
|
-
!((k = f.value) != null && k.validity.valid) || e.validation === "invalid" ? (u.value =
|
|
1506
|
+
var k, H, le;
|
|
1507
|
+
!((k = f.value) != null && k.validity.valid) || e.validation === "invalid" ? (u.value = S.value, c.value = e.invalidMessage || ((H = f.value) == null ? void 0 : H.validationMessage) || ie, ve() && (h.value = c.value, x(() => h.value = "", 1e3))) : r() && ((le = f.value) != null && le.validity.valid) && e.required ? (u.value = d.value, ve() && (h.value = e.validMessage ?? me, x(() => h.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = p.value : u.value = v.value;
|
|
1494
1508
|
}
|
|
1495
1509
|
function E(k) {
|
|
1496
1510
|
e.onClick && e.onClick(k);
|
|
@@ -1498,7 +1512,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1498
1512
|
function b(k) {
|
|
1499
1513
|
e.input && e.input(k), L.value = k.target.value, e.onInput && e.onInput(k), se(l, k), I();
|
|
1500
1514
|
}
|
|
1501
|
-
function
|
|
1515
|
+
function w(k) {
|
|
1502
1516
|
e.onChange && e.onChange(k), se(l, k), I();
|
|
1503
1517
|
}
|
|
1504
1518
|
function O(k) {
|
|
@@ -1508,10 +1522,10 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1508
1522
|
e.onFocus && e.onFocus(k);
|
|
1509
1523
|
}
|
|
1510
1524
|
function W(k) {
|
|
1511
|
-
var
|
|
1512
|
-
return k.label ?? ((
|
|
1525
|
+
var H;
|
|
1526
|
+
return k.label ?? ((H = k.value) == null ? void 0 : H.toString());
|
|
1513
1527
|
}
|
|
1514
|
-
return (k,
|
|
1528
|
+
return (k, H) => {
|
|
1515
1529
|
var le;
|
|
1516
1530
|
return m(), B("div", {
|
|
1517
1531
|
class: z(n(R)("db-select", e.class)),
|
|
@@ -1520,7 +1534,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1520
1534
|
"data-icon": k.icon,
|
|
1521
1535
|
"data-hide-icon": n(K)(k.showIcon)
|
|
1522
1536
|
}, [
|
|
1523
|
-
T("label", { for: t.value }, _(k.label ?? n(
|
|
1537
|
+
T("label", { for: t.value }, _(k.label ?? n(Se)), 9, zt),
|
|
1524
1538
|
T("select", {
|
|
1525
1539
|
"aria-invalid": k.validation === "invalid",
|
|
1526
1540
|
"data-custom-validity": k.validation,
|
|
@@ -1534,14 +1548,14 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1534
1548
|
value: k.value ?? L.value,
|
|
1535
1549
|
autocomplete: k.autocomplete,
|
|
1536
1550
|
multiple: k.multiple,
|
|
1537
|
-
onInput:
|
|
1538
|
-
onClick:
|
|
1539
|
-
onChange:
|
|
1540
|
-
onBlur:
|
|
1541
|
-
onFocus:
|
|
1551
|
+
onInput: H[0] || (H[0] = async (J) => b(J)),
|
|
1552
|
+
onClick: H[1] || (H[1] = async (J) => E(J)),
|
|
1553
|
+
onChange: H[2] || (H[2] = async (J) => w(J)),
|
|
1554
|
+
onBlur: H[3] || (H[3] = async (J) => O(J)),
|
|
1555
|
+
onFocus: H[4] || (H[4] = async (J) => y(J)),
|
|
1542
1556
|
"aria-describedby": k.ariaDescribedBy ?? u.value
|
|
1543
1557
|
}, [
|
|
1544
|
-
|
|
1558
|
+
H[5] || (H[5] = T("option", { hidden: !0 }, null, -1)),
|
|
1545
1559
|
(le = k.options) != null && le.length ? (m(!0), B(U, { key: 0 }, be(k.options, (J, Fe) => (m(), B(U, { key: Fe }, [
|
|
1546
1560
|
J.options ? (m(), B("optgroup", {
|
|
1547
1561
|
key: 0,
|
|
@@ -1587,7 +1601,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1587
1601
|
ae(te, {
|
|
1588
1602
|
size: "small",
|
|
1589
1603
|
semantic: "critical",
|
|
1590
|
-
id:
|
|
1604
|
+
id: S.value
|
|
1591
1605
|
}, {
|
|
1592
1606
|
default: G(() => [
|
|
1593
1607
|
D(_(c.value), 1)
|
|
@@ -1644,7 +1658,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1644
1658
|
flush: "post"
|
|
1645
1659
|
}
|
|
1646
1660
|
);
|
|
1647
|
-
function
|
|
1661
|
+
function S(u) {
|
|
1648
1662
|
var L;
|
|
1649
1663
|
e.onChange && e.onChange(u), p.value = (L = u.target) == null ? void 0 : L.checked, se(l, u, "checked");
|
|
1650
1664
|
}
|
|
@@ -1655,7 +1669,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1655
1669
|
e.onFocus && e.onFocus(u);
|
|
1656
1670
|
}
|
|
1657
1671
|
return (u, L) => (m(), B("label", {
|
|
1658
|
-
"data-visual-aid": n(
|
|
1672
|
+
"data-visual-aid": n(X)(u.visualAid),
|
|
1659
1673
|
"data-size": u.size,
|
|
1660
1674
|
"data-hide-label": n(K)(u.showLabel),
|
|
1661
1675
|
"data-emphasis": u.emphasis,
|
|
@@ -1666,7 +1680,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1666
1680
|
type: "checkbox",
|
|
1667
1681
|
role: "switch",
|
|
1668
1682
|
id: t.value,
|
|
1669
|
-
"aria-checked": n(
|
|
1683
|
+
"aria-checked": n(X)(p.value),
|
|
1670
1684
|
ref_key: "_ref",
|
|
1671
1685
|
ref: d,
|
|
1672
1686
|
checked: n(M)(u.checked, "checked"),
|
|
@@ -1679,7 +1693,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1679
1693
|
required: n(M)(u.required, "required"),
|
|
1680
1694
|
"data-aid-icon": u.icon,
|
|
1681
1695
|
"data-aid-icon-after": u.iconAfter,
|
|
1682
|
-
onChange: L[0] || (L[0] = async (g) =>
|
|
1696
|
+
onChange: L[0] || (L[0] = async (g) => S(g)),
|
|
1683
1697
|
onBlur: L[1] || (L[1] = async (g) => c(g)),
|
|
1684
1698
|
onFocus: L[2] || (L[2] = async (g) => v(g))
|
|
1685
1699
|
}, null, 40, Ot),
|
|
@@ -1688,7 +1702,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1688
1702
|
], 64)) : C(u.$slots, "default", { key: 1 })
|
|
1689
1703
|
], 10, Wt));
|
|
1690
1704
|
}
|
|
1691
|
-
}),
|
|
1705
|
+
}), Ht = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Xt = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], jt = /* @__PURE__ */ P({
|
|
1692
1706
|
__name: "tab-item",
|
|
1693
1707
|
props: {
|
|
1694
1708
|
children: { default: void 0 },
|
|
@@ -1712,13 +1726,13 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1712
1726
|
},
|
|
1713
1727
|
emits: ["update:checked"],
|
|
1714
1728
|
setup(i, { emit: a }) {
|
|
1715
|
-
const l = a, e = i, t = s(!1), p = s(void 0), d = s(!1),
|
|
1729
|
+
const l = a, e = i, t = s(!1), p = s(void 0), d = s(!1), S = s(null);
|
|
1716
1730
|
Y(() => {
|
|
1717
1731
|
d.value = !0;
|
|
1718
1732
|
}), A(
|
|
1719
|
-
() => [
|
|
1733
|
+
() => [S.value, d.value],
|
|
1720
1734
|
() => {
|
|
1721
|
-
d.value &&
|
|
1735
|
+
d.value && S.value && (e.active && S.value.click(), d.value = !1);
|
|
1722
1736
|
},
|
|
1723
1737
|
{
|
|
1724
1738
|
immediate: !0,
|
|
@@ -1748,7 +1762,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1748
1762
|
"data-icon-after": v.iconAfter,
|
|
1749
1763
|
"data-hide-icon": n(K)(v.showIcon),
|
|
1750
1764
|
"data-hide-icon-after": n(K)(v.showIcon),
|
|
1751
|
-
"data-no-text": n(
|
|
1765
|
+
"data-no-text": n(X)(v.noText)
|
|
1752
1766
|
}, [
|
|
1753
1767
|
T("input", {
|
|
1754
1768
|
type: "radio",
|
|
@@ -1758,16 +1772,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1758
1772
|
"aria-controls": v.controls,
|
|
1759
1773
|
checked: n(M)(v.checked, "checked"),
|
|
1760
1774
|
ref_key: "_ref",
|
|
1761
|
-
ref:
|
|
1775
|
+
ref: S,
|
|
1762
1776
|
name: p.value,
|
|
1763
1777
|
id: v.id,
|
|
1764
1778
|
onInput: u[0] || (u[0] = async (L) => c(L))
|
|
1765
|
-
}, null, 40,
|
|
1779
|
+
}, null, 40, Xt),
|
|
1766
1780
|
v.label ? (m(), B(U, { key: 0 }, [
|
|
1767
1781
|
D(_(v.label), 1)
|
|
1768
1782
|
], 64)) : V("", !0),
|
|
1769
1783
|
C(v.$slots, "default")
|
|
1770
|
-
], 8,
|
|
1784
|
+
], 8, Ht)
|
|
1771
1785
|
], 2));
|
|
1772
1786
|
}
|
|
1773
1787
|
}), re = class re {
|
|
@@ -1836,7 +1850,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1836
1850
|
flush: "post"
|
|
1837
1851
|
}
|
|
1838
1852
|
);
|
|
1839
|
-
function
|
|
1853
|
+
function S(f) {
|
|
1840
1854
|
f.stopPropagation();
|
|
1841
1855
|
}
|
|
1842
1856
|
function c(f) {
|
|
@@ -1880,12 +1894,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1880
1894
|
class: z(n(R)("db-tooltip", a.class)),
|
|
1881
1895
|
id: l.value,
|
|
1882
1896
|
"data-emphasis": f.emphasis,
|
|
1883
|
-
"data-animation": n(
|
|
1897
|
+
"data-animation": n(X)(f.animation ?? !0),
|
|
1884
1898
|
"data-delay": f.delay,
|
|
1885
1899
|
"data-width": f.width,
|
|
1886
|
-
"data-show-arrow": n(
|
|
1900
|
+
"data-show-arrow": n(X)(f.showArrow ?? !0),
|
|
1887
1901
|
"data-placement": f.placement,
|
|
1888
|
-
onClick: r[0] || (r[0] = async (I) =>
|
|
1902
|
+
onClick: r[0] || (r[0] = async (I) => S(I))
|
|
1889
1903
|
}, [
|
|
1890
1904
|
C(f.$slots, "default")
|
|
1891
1905
|
], 10, Yt));
|
|
@@ -1920,11 +1934,11 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1920
1934
|
l.value = !0, A(
|
|
1921
1935
|
() => [l.value, a.disabled, e.value],
|
|
1922
1936
|
() => {
|
|
1923
|
-
var d,
|
|
1937
|
+
var d, S;
|
|
1924
1938
|
if (l.value && e.value && a.disabled !== void 0) {
|
|
1925
1939
|
const c = (d = e.value) == null ? void 0 : d.querySelector(
|
|
1926
1940
|
"button:not(.db-tab-remove-button)"
|
|
1927
|
-
), v = (
|
|
1941
|
+
), v = (S = e.value) == null ? void 0 : S.querySelector("input");
|
|
1928
1942
|
for (const u of [c, v])
|
|
1929
1943
|
u && (u.disabled = !!a.disabled);
|
|
1930
1944
|
}
|
|
@@ -1940,19 +1954,19 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1940
1954
|
function p() {
|
|
1941
1955
|
return a.removeButton ? a.removeButton : ia;
|
|
1942
1956
|
}
|
|
1943
|
-
return (d,
|
|
1957
|
+
return (d, S) => (m(), B("div", {
|
|
1944
1958
|
ref_key: "_ref",
|
|
1945
1959
|
ref: e,
|
|
1946
1960
|
id: d.id,
|
|
1947
1961
|
class: z(n(R)("db-tag", a.class)),
|
|
1948
|
-
"data-disabled": n(
|
|
1962
|
+
"data-disabled": n(X)(d.disabled),
|
|
1949
1963
|
"data-semantic": d.semantic,
|
|
1950
1964
|
"data-emphasis": d.emphasis,
|
|
1951
1965
|
"data-icon": d.icon,
|
|
1952
|
-
"data-show-check-state": n(
|
|
1966
|
+
"data-show-check-state": n(X)(d.showCheckState ?? !0),
|
|
1953
1967
|
"data-hide-icon": n(K)(d.showIcon),
|
|
1954
|
-
"data-no-text": n(
|
|
1955
|
-
"data-overflow": n(
|
|
1968
|
+
"data-no-text": n(X)(d.noText),
|
|
1969
|
+
"data-overflow": n(X)(d.overflow)
|
|
1956
1970
|
}, [
|
|
1957
1971
|
C(d.$slots, "content"),
|
|
1958
1972
|
C(d.$slots, "default"),
|
|
@@ -1967,7 +1981,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1967
1981
|
"data-no-text": "true",
|
|
1968
1982
|
"data-variant": "ghost",
|
|
1969
1983
|
type: "button",
|
|
1970
|
-
onClick:
|
|
1984
|
+
onClick: S[0] || (S[0] = async (c) => t(c))
|
|
1971
1985
|
}, [
|
|
1972
1986
|
ae(ca, { variant: "label" }, {
|
|
1973
1987
|
default: G(() => [
|
|
@@ -2031,15 +2045,15 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2031
2045
|
},
|
|
2032
2046
|
emits: ["update:value"],
|
|
2033
2047
|
setup(i, { emit: a }) {
|
|
2034
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
2048
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), S = s(void 0), c = s(void 0), v = s(""), u = s(""), L = s(""), g = s(null);
|
|
2035
2049
|
Y(() => {
|
|
2036
|
-
const
|
|
2037
|
-
t.value =
|
|
2050
|
+
const w = e.id ?? `textarea-${Q()}`;
|
|
2051
|
+
t.value = w, p.value = w + fe, d.value = w + pe, S.value = w + he, c.value = e.invalidMessage || ie;
|
|
2038
2052
|
}), A(
|
|
2039
2053
|
() => [g.value, e.invalidMessage],
|
|
2040
2054
|
() => {
|
|
2041
|
-
var
|
|
2042
|
-
c.value = e.invalidMessage || ((
|
|
2055
|
+
var w;
|
|
2056
|
+
c.value = e.invalidMessage || ((w = g.value) == null ? void 0 : w.validationMessage) || ie;
|
|
2043
2057
|
},
|
|
2044
2058
|
{
|
|
2045
2059
|
immediate: !0,
|
|
@@ -2049,8 +2063,8 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2049
2063
|
() => [t.value],
|
|
2050
2064
|
() => {
|
|
2051
2065
|
if (t.value) {
|
|
2052
|
-
const
|
|
2053
|
-
p.value =
|
|
2066
|
+
const w = t.value + fe;
|
|
2067
|
+
p.value = w, d.value = t.value + pe, S.value = t.value + he, ee(e.message, e.showMessage) && (v.value = w);
|
|
2054
2068
|
}
|
|
2055
2069
|
},
|
|
2056
2070
|
{
|
|
@@ -2071,64 +2085,64 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2071
2085
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
2072
2086
|
}
|
|
2073
2087
|
function f() {
|
|
2074
|
-
var
|
|
2075
|
-
!((
|
|
2088
|
+
var w, O, y;
|
|
2089
|
+
!((w = g.value) != null && w.validity.valid) || e.validation === "invalid" ? (v.value = S.value, c.value = e.invalidMessage || ((O = g.value) == null ? void 0 : O.validationMessage) || ie, ve() && (L.value = c.value, x(() => L.value = "", 1e3))) : h() && ((y = g.value) != null && y.validity.valid) && (e.required || e.minLength || e.maxLength) ? (v.value = d.value, ve() && (L.value = e.validMessage ?? me, x(() => L.value = "", 1e3))) : ee(e.message, e.showMessage) ? v.value = p.value : v.value = "";
|
|
2076
2090
|
}
|
|
2077
|
-
function r(
|
|
2078
|
-
e.input && e.input(
|
|
2091
|
+
function r(w) {
|
|
2092
|
+
e.input && e.input(w), u.value = w.target.value, e.onInput && e.onInput(w), se(l, w), f();
|
|
2079
2093
|
}
|
|
2080
|
-
function I(
|
|
2081
|
-
e.onChange && e.onChange(
|
|
2094
|
+
function I(w) {
|
|
2095
|
+
e.onChange && e.onChange(w), se(l, w), f();
|
|
2082
2096
|
}
|
|
2083
|
-
function E(
|
|
2084
|
-
e.onBlur && e.onBlur(
|
|
2097
|
+
function E(w) {
|
|
2098
|
+
e.onBlur && e.onBlur(w);
|
|
2085
2099
|
}
|
|
2086
|
-
function b(
|
|
2087
|
-
e.onFocus && e.onFocus(
|
|
2100
|
+
function b(w) {
|
|
2101
|
+
e.onFocus && e.onFocus(w);
|
|
2088
2102
|
}
|
|
2089
|
-
return (
|
|
2103
|
+
return (w, O) => (m(), B("div", {
|
|
2090
2104
|
class: z(n(R)("db-textarea", e.class)),
|
|
2091
|
-
"data-variant":
|
|
2092
|
-
"data-hide-label": n(K)(
|
|
2105
|
+
"data-variant": w.variant,
|
|
2106
|
+
"data-hide-label": n(K)(w.showLabel)
|
|
2093
2107
|
}, [
|
|
2094
|
-
T("label", { for: t.value }, _(
|
|
2108
|
+
T("label", { for: t.value }, _(w.label ?? n(Se)), 9, Zt),
|
|
2095
2109
|
T("textarea", {
|
|
2096
|
-
"aria-invalid":
|
|
2097
|
-
"data-custom-validity":
|
|
2098
|
-
"data-field-sizing":
|
|
2110
|
+
"aria-invalid": w.validation === "invalid",
|
|
2111
|
+
"data-custom-validity": w.validation,
|
|
2112
|
+
"data-field-sizing": w.fieldSizing,
|
|
2099
2113
|
ref_key: "_ref",
|
|
2100
2114
|
ref: g,
|
|
2101
2115
|
id: t.value,
|
|
2102
|
-
"data-resize":
|
|
2103
|
-
"data-hide-resizer": n(K)(
|
|
2104
|
-
disabled: n(M)(
|
|
2105
|
-
required: n(M)(
|
|
2106
|
-
readOnly: n(M)(
|
|
2107
|
-
form:
|
|
2108
|
-
maxLength: n(
|
|
2109
|
-
minLength: n(
|
|
2110
|
-
name:
|
|
2111
|
-
wrap:
|
|
2112
|
-
spellcheck:
|
|
2113
|
-
autocomplete:
|
|
2116
|
+
"data-resize": w.resize,
|
|
2117
|
+
"data-hide-resizer": n(K)(w.showResizer ?? !0),
|
|
2118
|
+
disabled: n(M)(w.disabled, "disabled"),
|
|
2119
|
+
required: n(M)(w.required, "required"),
|
|
2120
|
+
readOnly: n(M)(w.readOnly, "readOnly") || n(M)(w.readonly, "readonly"),
|
|
2121
|
+
form: w.form,
|
|
2122
|
+
maxLength: n(we)(w.maxLength, w.maxlength),
|
|
2123
|
+
minLength: n(we)(w.minLength, w.minlength),
|
|
2124
|
+
name: w.name,
|
|
2125
|
+
wrap: w.wrap,
|
|
2126
|
+
spellcheck: w.spellCheck,
|
|
2127
|
+
autocomplete: w.autocomplete,
|
|
2114
2128
|
onInput: O[0] || (O[0] = async (y) => r(y)),
|
|
2115
2129
|
onChange: O[1] || (O[1] = async (y) => I(y)),
|
|
2116
2130
|
onBlur: O[2] || (O[2] = async (y) => E(y)),
|
|
2117
2131
|
onFocus: O[3] || (O[3] = async (y) => b(y)),
|
|
2118
|
-
value:
|
|
2119
|
-
"aria-describedby":
|
|
2120
|
-
placeholder:
|
|
2121
|
-
rows: n(
|
|
2122
|
-
cols: n(
|
|
2132
|
+
value: w.value ?? u.value,
|
|
2133
|
+
"aria-describedby": w.ariaDescribedBy ?? v.value,
|
|
2134
|
+
placeholder: w.placeholder ?? n(ta),
|
|
2135
|
+
rows: n(we)(w.rows, n(Va)),
|
|
2136
|
+
cols: n(we)(w.cols)
|
|
2123
2137
|
}, null, 40, xt),
|
|
2124
|
-
n(ee)(
|
|
2138
|
+
n(ee)(w.message, w.showMessage) ? (m(), Z(te, {
|
|
2125
2139
|
key: 0,
|
|
2126
2140
|
size: "small",
|
|
2127
|
-
icon:
|
|
2141
|
+
icon: w.messageIcon,
|
|
2128
2142
|
id: p.value
|
|
2129
2143
|
}, {
|
|
2130
2144
|
default: G(() => [
|
|
2131
|
-
D(_(
|
|
2145
|
+
D(_(w.message), 1)
|
|
2132
2146
|
]),
|
|
2133
2147
|
_: 1
|
|
2134
2148
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
@@ -2139,14 +2153,14 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2139
2153
|
id: d.value
|
|
2140
2154
|
}, {
|
|
2141
2155
|
default: G(() => [
|
|
2142
|
-
D(_(
|
|
2156
|
+
D(_(w.validMessage || n(me)), 1)
|
|
2143
2157
|
]),
|
|
2144
2158
|
_: 1
|
|
2145
2159
|
}, 8, ["id"])) : V("", !0),
|
|
2146
2160
|
ae(te, {
|
|
2147
2161
|
size: "small",
|
|
2148
2162
|
semantic: "critical",
|
|
2149
|
-
id:
|
|
2163
|
+
id: S.value
|
|
2150
2164
|
}, {
|
|
2151
2165
|
default: G(() => [
|
|
2152
2166
|
D(_(c.value), 1)
|
|
@@ -2182,7 +2196,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2182
2196
|
text: { default: void 0 }
|
|
2183
2197
|
},
|
|
2184
2198
|
setup(i) {
|
|
2185
|
-
const a = i, l = s(!1), e = s(!1), t = s(!0), p = s(!1), d = s(!1),
|
|
2199
|
+
const a = i, l = s(!1), e = s(!1), t = s(!0), p = s(!1), d = s(!1), S = s(
|
|
2186
2200
|
"sub-navigation-" + Q()
|
|
2187
2201
|
), c = s(void 0), v = s(null);
|
|
2188
2202
|
Y(() => {
|
|
@@ -2248,8 +2262,8 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2248
2262
|
"data-icon": h.icon,
|
|
2249
2263
|
"data-hide-icon": n(K)(h.showIcon),
|
|
2250
2264
|
"data-active": h.active,
|
|
2251
|
-
"data-wrap": n(
|
|
2252
|
-
"aria-disabled": n(
|
|
2265
|
+
"data-wrap": n(X)(h.wrap),
|
|
2266
|
+
"aria-disabled": n(X)(h.disabled)
|
|
2253
2267
|
}, [
|
|
2254
2268
|
t.value ? V("", !0) : (m(), B(U, { key: 0 }, [
|
|
2255
2269
|
h.text ? (m(), B(U, { key: 0 }, [
|
|
@@ -2271,7 +2285,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2271
2285
|
T("menu", {
|
|
2272
2286
|
class: "db-sub-navigation",
|
|
2273
2287
|
"data-auto-close": d.value,
|
|
2274
|
-
id:
|
|
2288
|
+
id: S.value,
|
|
2275
2289
|
onClick: f[1] || (f[1] = async (r) => u(r))
|
|
2276
2290
|
}, [
|
|
2277
2291
|
e.value ? (m(), B("div", li, [
|
|
@@ -2333,7 +2347,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2333
2347
|
flush: "post"
|
|
2334
2348
|
}
|
|
2335
2349
|
);
|
|
2336
|
-
function
|
|
2350
|
+
function S(c) {
|
|
2337
2351
|
c == null || c.preventDefault();
|
|
2338
2352
|
const v = !e.value;
|
|
2339
2353
|
a.onToggle && a.onToggle(v), e.value = v;
|
|
@@ -2343,14 +2357,14 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2343
2357
|
class: z(n(R)("db-accordion-item", a.class))
|
|
2344
2358
|
}, [
|
|
2345
2359
|
T("details", {
|
|
2346
|
-
"aria-disabled": n(
|
|
2360
|
+
"aria-disabled": n(X)(c.disabled),
|
|
2347
2361
|
ref_key: "_ref",
|
|
2348
2362
|
ref: d,
|
|
2349
2363
|
name: t.value,
|
|
2350
2364
|
open: e.value
|
|
2351
2365
|
}, [
|
|
2352
2366
|
T("summary", {
|
|
2353
|
-
onClick: v[0] || (v[0] = async (u) =>
|
|
2367
|
+
onClick: v[0] || (v[0] = async (u) => S(u))
|
|
2354
2368
|
}, [
|
|
2355
2369
|
c.headlinePlain ? (m(), B(U, { key: 0 }, [
|
|
2356
2370
|
D(_(c.headlinePlain), 1)
|
|
@@ -2431,7 +2445,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2431
2445
|
flush: "post"
|
|
2432
2446
|
}
|
|
2433
2447
|
);
|
|
2434
|
-
function
|
|
2448
|
+
function S() {
|
|
2435
2449
|
try {
|
|
2436
2450
|
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
2437
2451
|
} catch (c) {
|
|
@@ -2447,7 +2461,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2447
2461
|
"data-variant": c.variant
|
|
2448
2462
|
}, [
|
|
2449
2463
|
c.items ? V("", !0) : C(c.$slots, "default", { key: 0 }),
|
|
2450
|
-
c.items ? (m(!0), B(U, { key: 1 }, be(
|
|
2464
|
+
c.items ? (m(!0), B(U, { key: 1 }, be(S(), (u, L) => (m(), Z(ni, {
|
|
2451
2465
|
key: `accordion-item-${L}`,
|
|
2452
2466
|
headlinePlain: u.headlinePlain,
|
|
2453
2467
|
disabled: u.disabled,
|
|
@@ -2512,14 +2526,14 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2512
2526
|
const h = g();
|
|
2513
2527
|
h && (h.ariaHasPopup = "true"), c(), d.value.addEventListener(
|
|
2514
2528
|
"keydown",
|
|
2515
|
-
(f) =>
|
|
2529
|
+
(f) => S(f)
|
|
2516
2530
|
), ["mouseenter", "focusin"].forEach((f) => {
|
|
2517
2531
|
d.value.addEventListener(f, () => u());
|
|
2518
2532
|
}), ["mouseleave", "focusout"].forEach((f) => {
|
|
2519
2533
|
d.value.addEventListener(f, () => L());
|
|
2520
2534
|
}), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((f) => {
|
|
2521
2535
|
const r = f.find(({ target: I }) => I === g());
|
|
2522
|
-
r && !r.isIntersecting &&
|
|
2536
|
+
r && !r.isIntersecting && S(!1);
|
|
2523
2537
|
}));
|
|
2524
2538
|
}
|
|
2525
2539
|
},
|
|
@@ -2540,7 +2554,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2540
2554
|
flush: "post"
|
|
2541
2555
|
}
|
|
2542
2556
|
);
|
|
2543
|
-
function
|
|
2557
|
+
function S(h) {
|
|
2544
2558
|
if (!h || h.key === "Escape")
|
|
2545
2559
|
for (const f of Array.from(d.value.children))
|
|
2546
2560
|
f.blur();
|
|
@@ -2599,9 +2613,9 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2599
2613
|
T("article", {
|
|
2600
2614
|
class: "db-popover-content",
|
|
2601
2615
|
"data-spacing": h.spacing,
|
|
2602
|
-
"data-gap": n(
|
|
2603
|
-
"data-animation": n(
|
|
2604
|
-
"data-open": n(
|
|
2616
|
+
"data-gap": n(X)(h.gap),
|
|
2617
|
+
"data-animation": n(X)(h.animation ?? !0),
|
|
2618
|
+
"data-open": n(X)(h.open),
|
|
2605
2619
|
"data-delay": h.delay,
|
|
2606
2620
|
"data-width": h.width,
|
|
2607
2621
|
"data-placement": h.placement
|
|
@@ -2664,7 +2678,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2664
2678
|
C(e.$slots, "default")
|
|
2665
2679
|
], 10, hi));
|
|
2666
2680
|
}
|
|
2667
|
-
}), gi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"],
|
|
2681
|
+
}), gi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], wl = /* @__PURE__ */ P({
|
|
2668
2682
|
__name: "tabs",
|
|
2669
2683
|
props: {
|
|
2670
2684
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2688,7 +2702,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2688
2702
|
alignment: { default: void 0 }
|
|
2689
2703
|
},
|
|
2690
2704
|
setup(i) {
|
|
2691
|
-
const a = i, l = s("tabs-" + Q()), e = s(""), t = s(!1), p = s(!1), d = s(!1),
|
|
2705
|
+
const a = i, l = s("tabs-" + Q()), e = s(""), t = s(!1), p = s(!1), d = s(!1), S = s(null), c = s(null);
|
|
2692
2706
|
Y(() => {
|
|
2693
2707
|
l.value = a.id || l.value, e.value = `tabs-${a.name || Q()}`, t.value = !0;
|
|
2694
2708
|
}), A(
|
|
@@ -2727,7 +2741,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2727
2741
|
function L(r) {
|
|
2728
2742
|
var E;
|
|
2729
2743
|
let I = Number(a.arrowScrollDistance) || 100;
|
|
2730
|
-
r && (I *= -1), (E =
|
|
2744
|
+
r && (I *= -1), (E = S.value) == null || E.scrollBy({
|
|
2731
2745
|
top: 0,
|
|
2732
2746
|
left: I,
|
|
2733
2747
|
behavior: "smooth"
|
|
@@ -2741,7 +2755,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2741
2755
|
I && (I.setAttribute(
|
|
2742
2756
|
"aria-orientation",
|
|
2743
2757
|
a.orientation || "horizontal"
|
|
2744
|
-
), a.behavior === "arrows" && (
|
|
2758
|
+
), a.behavior === "arrows" && (S.value = I, u(I), I.addEventListener("scroll", () => {
|
|
2745
2759
|
u(I);
|
|
2746
2760
|
})));
|
|
2747
2761
|
}
|
|
@@ -2757,25 +2771,25 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2757
2771
|
)
|
|
2758
2772
|
);
|
|
2759
2773
|
for (const b of I) {
|
|
2760
|
-
const
|
|
2774
|
+
const w = I.indexOf(b), O = b.querySelector("label"), y = b.querySelector("input");
|
|
2761
2775
|
if (y && O) {
|
|
2762
2776
|
if (!y.id) {
|
|
2763
|
-
const W = `${e.value}-tab-${
|
|
2764
|
-
O.setAttribute("for", W), y.id = W, y.setAttribute("name", e.value), E.length >
|
|
2777
|
+
const W = `${e.value}-tab-${w}`;
|
|
2778
|
+
O.setAttribute("for", W), y.id = W, y.setAttribute("name", e.value), E.length > w && y.setAttribute(
|
|
2765
2779
|
"aria-controls",
|
|
2766
|
-
`${e.value}-tab-panel-${
|
|
2780
|
+
`${e.value}-tab-panel-${w}`
|
|
2767
2781
|
);
|
|
2768
2782
|
}
|
|
2769
2783
|
if (r) {
|
|
2770
|
-
const W = !a.initialSelectedMode || a.initialSelectedMode === "auto", k = a.initialSelectedIndex == null &&
|
|
2784
|
+
const W = !a.initialSelectedMode || a.initialSelectedMode === "auto", k = a.initialSelectedIndex == null && w === 0 || Number(a.initialSelectedIndex) === w;
|
|
2771
2785
|
W && k && y.click();
|
|
2772
2786
|
}
|
|
2773
2787
|
}
|
|
2774
2788
|
}
|
|
2775
2789
|
for (const b of E) {
|
|
2776
2790
|
if (b.id) continue;
|
|
2777
|
-
const
|
|
2778
|
-
b.id = `${e.value}-tab-panel-${
|
|
2791
|
+
const w = E.indexOf(b);
|
|
2792
|
+
b.id = `${e.value}-tab-panel-${w}`, b.setAttribute("aria-labelledby", `${e.value}-tab-${w}`);
|
|
2779
2793
|
}
|
|
2780
2794
|
}
|
|
2781
2795
|
}
|
|
@@ -2787,8 +2801,8 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2787
2801
|
r.target.closest("db-tab-item") ?? r.target.closest("li")
|
|
2788
2802
|
);
|
|
2789
2803
|
if (I !== null && E !== null) {
|
|
2790
|
-
const
|
|
2791
|
-
a.onIndexChange && a.onIndexChange(
|
|
2804
|
+
const w = Array.from(I.childNodes).indexOf(E);
|
|
2805
|
+
a.onIndexChange && a.onIndexChange(w);
|
|
2792
2806
|
}
|
|
2793
2807
|
a.onTabSelect && a.onTabSelect(r);
|
|
2794
2808
|
}
|
|
@@ -2860,7 +2874,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2860
2874
|
C(r.$slots, "default")
|
|
2861
2875
|
], 42, gi));
|
|
2862
2876
|
}
|
|
2863
|
-
}),
|
|
2877
|
+
}), Sl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], Bl = ["medium", "small", "large", "none"], Il = ["medium", "small", "large", "none"], bi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], yi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], $l = [...bi, ...yi], Ll = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], _l = ["horizontal", "vertical"], Tl = ["full", "auto"], El = ["full", "medium", "large", "small"], Cl = ["none", "slow", "fast"], Al = ["auto", "fixed"], Dl = ["small", "medium"], Fl = ["weak", "strong"], Nl = ["invalid", "valid", "no-validation"], Ml = ["fixed", "content"], zl = ["above", "floating"], Rl = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], Vl = ["time", "true", "false", "date", "page", "step", "location"], Pl = ["_self", "_blank", "_parent", "_top"], Ul = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], ql = ["start", "center"], ki = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Gl = /* @__PURE__ */ P({
|
|
2864
2878
|
__name: "stack",
|
|
2865
2879
|
props: {
|
|
2866
2880
|
variant: { default: void 0 },
|
|
@@ -2888,12 +2902,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2888
2902
|
"data-direction": e.direction,
|
|
2889
2903
|
"data-alignment": e.alignment,
|
|
2890
2904
|
"data-justify-content": e.justifyContent,
|
|
2891
|
-
"data-wrap": n(
|
|
2905
|
+
"data-wrap": n(X)(e.wrap)
|
|
2892
2906
|
}, [
|
|
2893
2907
|
C(e.$slots, "default")
|
|
2894
2908
|
], 10, ki));
|
|
2895
2909
|
}
|
|
2896
|
-
}),
|
|
2910
|
+
}), wi = ["role", "aria-label", "id"], Si = /* @__PURE__ */ P({
|
|
2897
2911
|
__name: "custom-select-list",
|
|
2898
2912
|
props: {
|
|
2899
2913
|
label: { default: void 0 },
|
|
@@ -2918,7 +2932,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2918
2932
|
T("ul", null, [
|
|
2919
2933
|
C(e.$slots, "default")
|
|
2920
2934
|
])
|
|
2921
|
-
], 10,
|
|
2935
|
+
], 10, wi));
|
|
2922
2936
|
}
|
|
2923
2937
|
}), Bi = ["id", "data-divider"], Ii = ["data-icon", "data-hide-icon", "data-icon-after"], $i = ["type", "name", "form", "checked", "disabled", "value"], Li = { key: 1 }, _i = /* @__PURE__ */ P({
|
|
2924
2938
|
__name: "custom-select-list-item",
|
|
@@ -2958,7 +2972,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2958
2972
|
flush: "post"
|
|
2959
2973
|
}
|
|
2960
2974
|
);
|
|
2961
|
-
function
|
|
2975
|
+
function S(v) {
|
|
2962
2976
|
v.stopPropagation(), e.onChange && e.onChange(v), se(l, v, "checked");
|
|
2963
2977
|
}
|
|
2964
2978
|
function c() {
|
|
@@ -2975,7 +2989,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2975
2989
|
"db-radio": v.type !== "checkbox" && !v.isGroupTitle
|
|
2976
2990
|
})
|
|
2977
2991
|
),
|
|
2978
|
-
"data-divider": n(
|
|
2992
|
+
"data-divider": n(X)(p.value)
|
|
2979
2993
|
}, [
|
|
2980
2994
|
v.isGroupTitle ? (m(), B("span", Li, _(v.groupTitle), 1)) : (m(), B("label", {
|
|
2981
2995
|
key: 0,
|
|
@@ -2992,7 +3006,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2992
3006
|
checked: n(M)(v.checked, "checked"),
|
|
2993
3007
|
disabled: n(M)(v.disabled, "disabled"),
|
|
2994
3008
|
value: v.value,
|
|
2995
|
-
onChange: u[0] || (u[0] = async (L) =>
|
|
3009
|
+
onChange: u[0] || (u[0] = async (L) => S(L))
|
|
2996
3010
|
}, null, 40, $i),
|
|
2997
3011
|
v.label ? (m(), B(U, { key: 0 }, [
|
|
2998
3012
|
D(_(v.label), 1)
|
|
@@ -3112,10 +3126,10 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3112
3126
|
},
|
|
3113
3127
|
emits: ["update:values"],
|
|
3114
3128
|
setup(i, { emit: a }) {
|
|
3115
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
3129
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), S = s(void 0), c = s(void 0), v = s(void 0), u = s(void 0), L = s(void 0), g = s(void 0), h = s(void 0), f = s("no-validation"), r = s(""), I = s(""), E = s(void 0), b = s(""), w = s([]), O = s(!1), y = s(!1), W = s(0), k = s([]), H = s([]), le = s(!1), J = s(void 0), Fe = s(0), ye = s(void 0), Te = s(void 0), Ve = s(void 0), Pe = s(!1), Ee = s(!1), va = s(null), N = s(null), ke = s(null), Ne = s(null), Ue = s(null);
|
|
3116
3130
|
Y(() => {
|
|
3117
3131
|
const o = e.id ?? `custom-select-${Q()}`;
|
|
3118
|
-
t.value = o, p.value = o + fe, d.value = o + pe,
|
|
3132
|
+
t.value = o, p.value = o + fe, d.value = o + pe, S.value = o + he, v.value = o + xe, u.value = o + Ze, L.value = o + "-summary", g.value = o + ze, E.value = o + "-selected-labels", h.value = o + "-info", c.value = e.invalidMessage || ie, typeof window < "u" && "IntersectionObserver" in window && (Te.value = new IntersectionObserver(($) => {
|
|
3119
3133
|
if (N.value) {
|
|
3120
3134
|
const F = $.find(({ target: j }) => j === N.value);
|
|
3121
3135
|
F && !F.isIntersecting && N.value.open && (N.value.open = !1);
|
|
@@ -3138,7 +3152,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3138
3152
|
() => {
|
|
3139
3153
|
if (t.value) {
|
|
3140
3154
|
const o = t.value + fe;
|
|
3141
|
-
u.value = t.value + Ze, v.value = t.value + xe, d.value = t.value + pe,
|
|
3155
|
+
u.value = t.value + Ze, v.value = t.value + xe, d.value = t.value + pe, S.value = t.value + he, g.value = t.value + ze, ee(e.message, e.showMessage) ? Oe(o) : Oe();
|
|
3142
3156
|
}
|
|
3143
3157
|
},
|
|
3144
3158
|
{
|
|
@@ -3161,9 +3175,9 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3161
3175
|
flush: "post"
|
|
3162
3176
|
}
|
|
3163
3177
|
), A(
|
|
3164
|
-
() => [e.showNoResults,
|
|
3178
|
+
() => [e.showNoResults, H.value],
|
|
3165
3179
|
() => {
|
|
3166
|
-
e.showNoResults !== void 0 ? le.value = e.showNoResults :
|
|
3180
|
+
e.showNoResults !== void 0 ? le.value = e.showNoResults : H.value && (le.value = H.value.length === 0);
|
|
3167
3181
|
},
|
|
3168
3182
|
{
|
|
3169
3183
|
immediate: !0,
|
|
@@ -3228,7 +3242,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3228
3242
|
() => [e.options],
|
|
3229
3243
|
() => {
|
|
3230
3244
|
var o;
|
|
3231
|
-
|
|
3245
|
+
H.value = e.options, W.value = ((o = e.options) == null ? void 0 : o.filter(($) => !$.isGroupTitle).length) ?? 0;
|
|
3232
3246
|
},
|
|
3233
3247
|
{
|
|
3234
3248
|
immediate: !0,
|
|
@@ -3250,7 +3264,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3250
3264
|
() => [e.options, k.value],
|
|
3251
3265
|
() => {
|
|
3252
3266
|
var o, $;
|
|
3253
|
-
(o = e.options) != null && o.length && (
|
|
3267
|
+
(o = e.options) != null && o.length && (w.value = ($ = e.options) == null ? void 0 : $.filter(
|
|
3254
3268
|
(F) => {
|
|
3255
3269
|
var j, oe;
|
|
3256
3270
|
return !F.value || !((j = k.value) != null && j.includes) ? !1 : !F.isGroupTitle && ((oe = k.value) == null ? void 0 : oe.includes(F.value));
|
|
@@ -3263,7 +3277,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3263
3277
|
}
|
|
3264
3278
|
), A(
|
|
3265
3279
|
() => [
|
|
3266
|
-
|
|
3280
|
+
w.value,
|
|
3267
3281
|
e.selectedType,
|
|
3268
3282
|
e.amountText,
|
|
3269
3283
|
e.selectedLabels,
|
|
@@ -3275,13 +3289,13 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3275
3289
|
I.value = e.selectedLabels;
|
|
3276
3290
|
return;
|
|
3277
3291
|
}
|
|
3278
|
-
if ((o =
|
|
3292
|
+
if ((o = w.value) != null && o.length) {
|
|
3279
3293
|
if (e.transformSelectedLabels) {
|
|
3280
|
-
const j =
|
|
3294
|
+
const j = w.value, oe = e.transformSelectedLabels;
|
|
3281
3295
|
I.value = oe(j);
|
|
3282
3296
|
return;
|
|
3283
3297
|
}
|
|
3284
|
-
e.selectedType === "amount" ? I.value = e.amountText ? e.amountText : `${($ =
|
|
3298
|
+
e.selectedType === "amount" ? I.value = e.amountText ? e.amountText : `${($ = w.value) == null ? void 0 : $.length} ${Ma}` : I.value = (F = w.value) == null ? void 0 : F.map((j) => $e(j)).join(", ");
|
|
3285
3299
|
} else
|
|
3286
3300
|
I.value = "";
|
|
3287
3301
|
},
|
|
@@ -3290,10 +3304,10 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3290
3304
|
flush: "post"
|
|
3291
3305
|
}
|
|
3292
3306
|
), A(
|
|
3293
|
-
() => [
|
|
3307
|
+
() => [w.value],
|
|
3294
3308
|
() => {
|
|
3295
3309
|
var o;
|
|
3296
|
-
e.onAmountChange && e.onAmountChange(((o =
|
|
3310
|
+
e.onAmountChange && e.onAmountChange(((o = w.value) == null ? void 0 : o.length) ?? 0);
|
|
3297
3311
|
},
|
|
3298
3312
|
{
|
|
3299
3313
|
immediate: !0,
|
|
@@ -3328,7 +3342,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3328
3342
|
}
|
|
3329
3343
|
function pa() {
|
|
3330
3344
|
var o, $, F;
|
|
3331
|
-
ke.value && (ke.value.value = ma()), !((o = ke.value) != null && o.validity.valid) || e.validation === "invalid" ? (r.value =
|
|
3345
|
+
ke.value && (ke.value.value = ma()), !((o = ke.value) != null && o.validity.valid) || e.validation === "invalid" ? (r.value = S.value, c.value = e.invalidMessage || (($ = ke.value) == null ? void 0 : $.validationMessage) || ie, ve() && (b.value = c.value, x(() => b.value = "", 1e3)), f.value = e.validation ?? "invalid") : We() && ((F = ke.value) != null && F.validity.valid) && e.required ? (r.value = d.value, ve() && (b.value = e.validMessage ?? me, x(() => b.value = "", 1e3)), f.value = e.validation ?? "valid") : ee(e.message, e.showMessage) ? (r.value = p.value, f.value = e.validation ?? "no-validation") : (r.value = g.value, f.value = e.validation ?? "no-validation");
|
|
3332
3346
|
}
|
|
3333
3347
|
function ha(o) {
|
|
3334
3348
|
var $, F;
|
|
@@ -3336,7 +3350,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3336
3350
|
(j) => Ba(j)
|
|
3337
3351
|
), ye.value = new Ie().addCallback(
|
|
3338
3352
|
(j) => fa(j)
|
|
3339
|
-
), qe(), ($ = Te.value) == null || $.observe(N.value), o.target.dataset.test ||
|
|
3353
|
+
), qe(), ($ = Te.value) == null || $.observe(N.value), o.target.dataset.test || Xe()) : (J.value && new Re().removeCallback(
|
|
3340
3354
|
J.value
|
|
3341
3355
|
), ye.value && new Ie().removeCallback(
|
|
3342
3356
|
ye.value
|
|
@@ -3352,7 +3366,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3352
3366
|
o && $.push(o), E.value && ((F = I.value) != null && F.length) && $.push(E.value), r.value = $.join(" ");
|
|
3353
3367
|
}
|
|
3354
3368
|
function ga() {
|
|
3355
|
-
return e.selectAllLabel ??
|
|
3369
|
+
return e.selectAllLabel ?? Se;
|
|
3356
3370
|
}
|
|
3357
3371
|
function $e(o) {
|
|
3358
3372
|
var $;
|
|
@@ -3363,10 +3377,10 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3363
3377
|
return o && (($ = k.value) != null && $.includes) ? (F = k.value) == null ? void 0 : F.includes(o) : !1;
|
|
3364
3378
|
}
|
|
3365
3379
|
function ya(o) {
|
|
3366
|
-
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${ia} ${
|
|
3380
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${ia} ${w.value ? $e(w.value[o]) : ""}`;
|
|
3367
3381
|
}
|
|
3368
3382
|
function ka(o, $) {
|
|
3369
|
-
$.stopPropagation(),
|
|
3383
|
+
$.stopPropagation(), He(o.value), Ae();
|
|
3370
3384
|
}
|
|
3371
3385
|
function qe() {
|
|
3372
3386
|
if (N.value) {
|
|
@@ -3380,7 +3394,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3380
3394
|
}, 1);
|
|
3381
3395
|
}
|
|
3382
3396
|
}
|
|
3383
|
-
function
|
|
3397
|
+
function wa(o) {
|
|
3384
3398
|
var $, F, j, oe, q, ge, De;
|
|
3385
3399
|
if (($ = N.value) != null && $.open) {
|
|
3386
3400
|
if (self.document) {
|
|
@@ -3412,12 +3426,12 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3412
3426
|
} else
|
|
3413
3427
|
ue.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (Ce("close"), Ae()) : Me(ue);
|
|
3414
3428
|
}
|
|
3415
|
-
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (qe(), N.value && (N.value.open = !0),
|
|
3429
|
+
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (qe(), N.value && (N.value.open = !0), Xe());
|
|
3416
3430
|
o.stopPropagation(), o.preventDefault();
|
|
3417
3431
|
}
|
|
3418
|
-
function
|
|
3432
|
+
function Sa(o) {
|
|
3419
3433
|
var $;
|
|
3420
|
-
o.stopPropagation(), o.key === "Escape" && (($ = N.value) != null && $.open) ? (Ce("close"), Ae()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") &&
|
|
3434
|
+
o.stopPropagation(), o.key === "Escape" && (($ = N.value) != null && $.open) ? (Ce("close"), Ae()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && wa(o);
|
|
3421
3435
|
}
|
|
3422
3436
|
function Ce(o) {
|
|
3423
3437
|
if (N.value) {
|
|
@@ -3447,7 +3461,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3447
3461
|
"values"
|
|
3448
3462
|
), Fe.value = (/* @__PURE__ */ new Date()).getTime());
|
|
3449
3463
|
}
|
|
3450
|
-
function
|
|
3464
|
+
function He(o) {
|
|
3451
3465
|
var $;
|
|
3452
3466
|
o && (e.multiple ? ($ = k.value) != null && $.includes(o) ? _e(k.value.filter((F) => F !== o)) : _e([...k.value || [], o]) : (_e([o]), Ce("close")));
|
|
3453
3467
|
}
|
|
@@ -3482,7 +3496,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3482
3496
|
}
|
|
3483
3497
|
}
|
|
3484
3498
|
}
|
|
3485
|
-
function
|
|
3499
|
+
function Xe() {
|
|
3486
3500
|
if (N.value) {
|
|
3487
3501
|
const o = Qe(N.value);
|
|
3488
3502
|
o ? x(() => {
|
|
@@ -3492,9 +3506,9 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3492
3506
|
}
|
|
3493
3507
|
function je(o) {
|
|
3494
3508
|
let $;
|
|
3495
|
-
typeof o == "string" ? $ = o : (o.stopPropagation(), e.onSearch && e.onSearch(o), $ = o.target.value, Ve.value = $), !e.options || !$ || $.length === 0 ?
|
|
3509
|
+
typeof o == "string" ? $ = o : (o.stopPropagation(), e.onSearch && e.onSearch(o), $ = o.target.value, Ve.value = $), !e.options || !$ || $.length === 0 ? H.value = e.options : e.searchFilter ? H.value = e.options.filter(
|
|
3496
3510
|
(F) => e.searchFilter(F, $)
|
|
3497
|
-
) :
|
|
3511
|
+
) : H.value = e.options.filter(
|
|
3498
3512
|
(F) => !F.isGroupTitle && $e(F).toLowerCase().includes($.toLowerCase())
|
|
3499
3513
|
);
|
|
3500
3514
|
}
|
|
@@ -3519,7 +3533,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3519
3533
|
"data-custom-validity": f.value,
|
|
3520
3534
|
"data-width": o.formFieldWidth,
|
|
3521
3535
|
"data-variant": o.variant === "floating" && o.selectedType === "tag" && o.multiple ? "above" : o.variant,
|
|
3522
|
-
"data-required": n(
|
|
3536
|
+
"data-required": n(X)(o.required),
|
|
3523
3537
|
"data-placement": o.placement,
|
|
3524
3538
|
"data-selected-type": o.multiple ? o.selectedType : "text",
|
|
3525
3539
|
"data-hide-label": n(K)(o.showLabel),
|
|
@@ -3527,7 +3541,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3527
3541
|
"data-hide-icon": n(K)(o.showIcon)
|
|
3528
3542
|
}, [
|
|
3529
3543
|
T("label", { id: u.value }, [
|
|
3530
|
-
D(_(o.label ?? n(
|
|
3544
|
+
D(_(o.label ?? n(Se)), 1),
|
|
3531
3545
|
T("select", {
|
|
3532
3546
|
role: "none",
|
|
3533
3547
|
hidden: !0,
|
|
@@ -3554,23 +3568,23 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3554
3568
|
ref: N,
|
|
3555
3569
|
open: o.open,
|
|
3556
3570
|
onToggle: $[2] || ($[2] = async (q) => ha(q)),
|
|
3557
|
-
onKeydown: $[3] || ($[3] = async (q) =>
|
|
3571
|
+
onKeydown: $[3] || ($[3] = async (q) => Sa(q))
|
|
3558
3572
|
}, [
|
|
3559
3573
|
C(o.$slots, "default"),
|
|
3560
3574
|
o.options ? (m(), B(U, { key: 0 }, [
|
|
3561
3575
|
T("summary", {
|
|
3562
3576
|
class: "db-custom-select-form-field",
|
|
3563
3577
|
id: L.value,
|
|
3564
|
-
"aria-disabled": n(
|
|
3578
|
+
"aria-disabled": n(X)(o.disabled),
|
|
3565
3579
|
"aria-labelledby": u.value
|
|
3566
3580
|
}, [
|
|
3567
3581
|
(j = I.value) != null && j.length ? (m(), B("span", {
|
|
3568
3582
|
key: 0,
|
|
3569
|
-
"data-visually-hidden": n(
|
|
3583
|
+
"data-visually-hidden": n(X)(o.selectedType === "tag"),
|
|
3570
3584
|
id: E.value
|
|
3571
3585
|
}, _(I.value), 9, zi)) : V("", !0),
|
|
3572
3586
|
o.selectedType === "tag" ? (m(), B("div", Ri, [
|
|
3573
|
-
(m(!0), B(U, null, be(
|
|
3587
|
+
(m(!0), B(U, null, be(w.value, (q, ge) => (m(), Z(Jt, {
|
|
3574
3588
|
key: ge,
|
|
3575
3589
|
emphasis: "strong",
|
|
3576
3590
|
behavior: "removable",
|
|
@@ -3595,7 +3609,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3595
3609
|
form: t.value,
|
|
3596
3610
|
showLabel: !1,
|
|
3597
3611
|
value: Ve.value,
|
|
3598
|
-
label: o.searchLabel ?? n(
|
|
3612
|
+
label: o.searchLabel ?? n(Se),
|
|
3599
3613
|
placeholder: o.searchPlaceholder ?? o.searchLabel,
|
|
3600
3614
|
ariaDescribedBy: le.value || o.showLoading ? h.value : void 0,
|
|
3601
3615
|
onInput: (q) => je(q)
|
|
@@ -3628,12 +3642,12 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3628
3642
|
])
|
|
3629
3643
|
])
|
|
3630
3644
|
])) : V("", !0),
|
|
3631
|
-
ae(
|
|
3645
|
+
ae(Si, {
|
|
3632
3646
|
multiple: n(M)(o.multiple, "multiple"),
|
|
3633
|
-
label: o.ariaListLabel ?? o.label ?? n(
|
|
3647
|
+
label: o.ariaListLabel ?? o.label ?? n(Se)
|
|
3634
3648
|
}, {
|
|
3635
3649
|
default: G(() => [
|
|
3636
|
-
(m(!0), B(U, null, be(
|
|
3650
|
+
(m(!0), B(U, null, be(H.value, (q, ge) => (m(), Z(_i, {
|
|
3637
3651
|
key: ge,
|
|
3638
3652
|
type: o.multiple ? "checkbox" : "radio",
|
|
3639
3653
|
showDivider: q.showDivider,
|
|
@@ -3644,7 +3658,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3644
3658
|
checked: ba(q.value),
|
|
3645
3659
|
disabled: q.disabled,
|
|
3646
3660
|
value: q.value,
|
|
3647
|
-
onChange: (De) =>
|
|
3661
|
+
onChange: (De) => He(q.value)
|
|
3648
3662
|
}, {
|
|
3649
3663
|
default: G(() => [
|
|
3650
3664
|
q.isGroupTitle ? V("", !0) : (m(), B(U, { key: 0 }, [
|
|
@@ -3700,7 +3714,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3700
3714
|
_: 1
|
|
3701
3715
|
}, 8, ["name", "form", "onClick"])) : V("", !0),
|
|
3702
3716
|
T("span", {
|
|
3703
|
-
"aria-hidden": n(
|
|
3717
|
+
"aria-hidden": n(X)(!0),
|
|
3704
3718
|
id: g.value
|
|
3705
3719
|
}, _(o.placeholder ?? o.label), 9, Gi),
|
|
3706
3720
|
n(ee)(o.message, o.showMessage) ? (m(), Z(te, {
|
|
@@ -3728,7 +3742,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3728
3742
|
ae(te, {
|
|
3729
3743
|
size: "small",
|
|
3730
3744
|
semantic: "critical",
|
|
3731
|
-
id:
|
|
3745
|
+
id: S.value
|
|
3732
3746
|
}, {
|
|
3733
3747
|
default: G(() => [
|
|
3734
3748
|
D(_(c.value), 1)
|
|
@@ -3779,7 +3793,7 @@ export {
|
|
|
3779
3793
|
Wl as DBCustomSelect,
|
|
3780
3794
|
Ei as DBCustomSelectDropdown,
|
|
3781
3795
|
Ol as DBCustomSelectFormField,
|
|
3782
|
-
|
|
3796
|
+
Si as DBCustomSelectList,
|
|
3783
3797
|
_i as DBCustomSelectListItem,
|
|
3784
3798
|
nl as DBDivider,
|
|
3785
3799
|
lt as DBDrawer,
|
|
@@ -3801,7 +3815,7 @@ export {
|
|
|
3801
3815
|
jt as DBTabItem,
|
|
3802
3816
|
pi as DBTabList,
|
|
3803
3817
|
mi as DBTabPanel,
|
|
3804
|
-
|
|
3818
|
+
wl as DBTabs,
|
|
3805
3819
|
Jt as DBTag,
|
|
3806
3820
|
ml as DBTextarea,
|
|
3807
3821
|
ca as DBTooltip,
|
|
@@ -3813,7 +3827,7 @@ export {
|
|
|
3813
3827
|
Le as DEFAULT_ID,
|
|
3814
3828
|
ie as DEFAULT_INVALID_MESSAGE,
|
|
3815
3829
|
he as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3816
|
-
|
|
3830
|
+
Se as DEFAULT_LABEL,
|
|
3817
3831
|
Ze as DEFAULT_LABEL_ID_SUFFIX,
|
|
3818
3832
|
Fa as DEFAULT_MESSAGE,
|
|
3819
3833
|
fe as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
@@ -3848,7 +3862,7 @@ export {
|
|
|
3848
3862
|
Al as PopoverWidthList,
|
|
3849
3863
|
na as SEMANTIC,
|
|
3850
3864
|
el as SEMANTICS,
|
|
3851
|
-
|
|
3865
|
+
Sl as SemanticList,
|
|
3852
3866
|
Dl as SizeList,
|
|
3853
3867
|
Bl as SpacingList,
|
|
3854
3868
|
al as TESTING_VIEWPORTS,
|
|
@@ -3858,10 +3872,10 @@ export {
|
|
|
3858
3872
|
R as cls,
|
|
3859
3873
|
x as delay,
|
|
3860
3874
|
M as getBoolean,
|
|
3861
|
-
|
|
3875
|
+
X as getBooleanAsString,
|
|
3862
3876
|
K as getHideProp,
|
|
3863
3877
|
Je as getInputValue,
|
|
3864
|
-
|
|
3878
|
+
we as getNumber,
|
|
3865
3879
|
Yi as getOptionKey,
|
|
3866
3880
|
Qe as getSearchInput,
|
|
3867
3881
|
ve as hasVoiceOver,
|