@db-ux/v-core-components 3.0.6 → 3.0.8-empty-custom-select-315e030
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 +315 -314
- package/dist/db-ux.umd.js +1 -1
- package/package.json +3 -3
package/dist/db-ux.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Ta = Object.defineProperty;
|
|
2
|
-
var _a = (t, a,
|
|
3
|
-
var ne = (t, a,
|
|
2
|
+
var _a = (t, a, l) => a in t ? Ta(t, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[a] = l;
|
|
3
|
+
var ne = (t, a, l) => _a(t, typeof a != "symbol" ? a + "" : a, l);
|
|
4
4
|
import { defineComponent as G, ref as d, onMounted as Y, watch as D, createElementBlock as S, openBlock as m, normalizeClass as P, unref as n, createElementVNode as _, createCommentVNode as U, renderSlot as A, Fragment as W, createTextVNode as N, toDisplayString as $, renderList as ye, createBlock as J, createVNode as ee, withCtx as H, onUnmounted as Ca } from "vue";
|
|
5
5
|
const Te = "OVERWRITE_DEFAULT_ID", we = "LABEL SHOULD BE SET", ta = " ", Ea = "MESSAGE SHOULD BE SET", Qe = "-label", Ze = "-select", fe = "-message", pe = "-valid-message", he = "-invalid-message", Re = "-placeholder", xe = "-datalist", ge = "TODO: Add a validMessage", te = "TODO: Add an invalidMessage", ia = "Remove", Aa = "Back", Da = "Selected", Na = "BurgerMenu", Fa = "brand", Ma = 4, We = "Close", Ji = "density", Qi = "color";
|
|
6
6
|
var oa = /* @__PURE__ */ ((t) => (t.FUNCTIONAL = "functional", t.REGULAR = "regular", t.EXPRESSIVE = "expressive", t))(oa || {});
|
|
@@ -34,19 +34,19 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
34
34
|
}
|
|
35
35
|
return Math.random().toString().substring(2);
|
|
36
36
|
}, da = (t, a) => {
|
|
37
|
-
const
|
|
38
|
-
Object.values(
|
|
37
|
+
const l = t.children;
|
|
38
|
+
Object.values(l).forEach((e) => {
|
|
39
39
|
e.setAttribute(a.key, a.value), e.children.length > 0 && da(e, a);
|
|
40
40
|
});
|
|
41
41
|
}, q = (...t) => {
|
|
42
42
|
let a = "";
|
|
43
|
-
for (const
|
|
44
|
-
if (
|
|
45
|
-
if (typeof
|
|
46
|
-
a += `${
|
|
43
|
+
for (const l of t)
|
|
44
|
+
if (l)
|
|
45
|
+
if (typeof l == "string")
|
|
46
|
+
a += `${l} `;
|
|
47
47
|
else
|
|
48
|
-
for (const e in
|
|
49
|
-
|
|
48
|
+
for (const e in l)
|
|
49
|
+
l[e] && (a += `${e} `);
|
|
50
50
|
return a.trim();
|
|
51
51
|
}, Va = (t) => Array.isArray(t) && t.every((a) => typeof a == "string"), Pa = ["Mac", "iPhone", "iPad", "iPod"], me = () => typeof window < "u" && Pa.some((t) => window.navigator.userAgent.includes(t)), Z = (t, a) => new Promise(() => setTimeout(t, a)), R = (t) => {
|
|
52
52
|
if (t != null)
|
|
@@ -61,8 +61,8 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
61
61
|
if (t != null)
|
|
62
62
|
return R(!t);
|
|
63
63
|
}, x = (t, a) => (a === void 0 || !!a) && !!t, aa = (t) => t.querySelector('input[type="search"]'), io = (t, a) => {
|
|
64
|
-
const
|
|
65
|
-
return `${a}${
|
|
64
|
+
const l = t.id ?? t.value ?? Q();
|
|
65
|
+
return `${a}${l}`;
|
|
66
66
|
}, qa = (t) => t.key !== void 0, Ua = ["id"], Ga = ["aria-disabled", "name", "open"], Wa = /* @__PURE__ */ G({
|
|
67
67
|
__name: "accordion-item",
|
|
68
68
|
props: {
|
|
@@ -81,9 +81,9 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
81
81
|
name: { default: void 0 }
|
|
82
82
|
},
|
|
83
83
|
setup(t) {
|
|
84
|
-
const a = t,
|
|
84
|
+
const a = t, l = d(Te), e = d(!1), i = d(void 0), u = d(!1), f = d(null);
|
|
85
85
|
Y(() => {
|
|
86
|
-
|
|
86
|
+
l.value = a.id || "accordion-item-" + Q(), a.defaultOpen && (e.value = a.defaultOpen), u.value = !0;
|
|
87
87
|
}), D(
|
|
88
88
|
() => [f.value, u.value],
|
|
89
89
|
() => {
|
|
@@ -109,7 +109,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
109
109
|
a.onToggle && a.onToggle(s), e.value = s;
|
|
110
110
|
}
|
|
111
111
|
return (v, s) => (m(), S("li", {
|
|
112
|
-
id:
|
|
112
|
+
id: l.value,
|
|
113
113
|
class: P(n(q)("db-accordion-item", a.class))
|
|
114
114
|
}, [
|
|
115
115
|
_("details", {
|
|
@@ -151,13 +151,13 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
151
151
|
autofocus: { type: [Boolean, String] }
|
|
152
152
|
},
|
|
153
153
|
setup(t) {
|
|
154
|
-
const a = t,
|
|
154
|
+
const a = t, l = d(Te), e = d(""), i = d(!1), u = d(!1), f = d(null);
|
|
155
155
|
Y(() => {
|
|
156
|
-
|
|
156
|
+
l.value = a.id || "accordion-" + Q(), i.value = !0, u.value = !0;
|
|
157
157
|
}), D(
|
|
158
|
-
() => [i.value, a.name, a.behavior,
|
|
158
|
+
() => [i.value, a.name, a.behavior, l.value],
|
|
159
159
|
() => {
|
|
160
|
-
i.value && (a.behavior === "single" ? a.name ? e.value !== a.name && (e.value = a.name) : e.value !==
|
|
160
|
+
i.value && (a.behavior === "single" ? a.name ? e.value !== a.name && (e.value = a.name) : e.value !== l.value && l.value && (e.value = l.value) : e.value = "");
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
immediate: !0,
|
|
@@ -211,7 +211,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
211
211
|
return (v, s) => (m(), S("ul", {
|
|
212
212
|
ref_key: "_ref",
|
|
213
213
|
ref: f,
|
|
214
|
-
id:
|
|
214
|
+
id: l.value,
|
|
215
215
|
class: P(n(q)("db-accordion", a.class)),
|
|
216
216
|
"data-variant": v.variant
|
|
217
217
|
}, [
|
|
@@ -240,14 +240,14 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
240
240
|
text: { default: void 0 }
|
|
241
241
|
},
|
|
242
242
|
setup(t) {
|
|
243
|
-
const a = t,
|
|
243
|
+
const a = t, l = d(!1), e = d(null);
|
|
244
244
|
return Y(() => {
|
|
245
|
-
|
|
245
|
+
l.value = !0;
|
|
246
246
|
}), D(
|
|
247
|
-
() => [e.value,
|
|
247
|
+
() => [e.value, l.value],
|
|
248
248
|
() => {
|
|
249
249
|
var i;
|
|
250
|
-
if (e.value &&
|
|
250
|
+
if (e.value && l.value && (i = a.placement) != null && i.startsWith("corner")) {
|
|
251
251
|
let u = e.value.parentElement;
|
|
252
252
|
u && u.localName.includes("badge") && (u = u.parentElement), u && (u.dataset.hasBadge = "true");
|
|
253
253
|
}
|
|
@@ -289,10 +289,10 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
289
289
|
text: { default: void 0 }
|
|
290
290
|
},
|
|
291
291
|
setup(t) {
|
|
292
|
-
const a = t,
|
|
292
|
+
const a = t, l = d(null);
|
|
293
293
|
return (e, i) => (m(), S("div", {
|
|
294
294
|
ref_key: "_ref",
|
|
295
|
-
ref:
|
|
295
|
+
ref: l,
|
|
296
296
|
"data-icon": e.hideLogo ? "none" : e.icon ?? n(Fa),
|
|
297
297
|
"data-show-icon": n(R)(e.showIcon),
|
|
298
298
|
id: e.id,
|
|
@@ -330,7 +330,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
330
330
|
iconTrailing: { default: void 0 }
|
|
331
331
|
},
|
|
332
332
|
setup(t) {
|
|
333
|
-
const a = t,
|
|
333
|
+
const a = t, l = d(null);
|
|
334
334
|
function e() {
|
|
335
335
|
return a.type ? a.type : a.onClick ? "button" : "submit";
|
|
336
336
|
}
|
|
@@ -339,7 +339,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
339
339
|
}
|
|
340
340
|
return (u, f) => (m(), S("button", {
|
|
341
341
|
ref_key: "_ref",
|
|
342
|
-
ref:
|
|
342
|
+
ref: l,
|
|
343
343
|
id: u.id,
|
|
344
344
|
class: P(n(q)("db-button", a.class)),
|
|
345
345
|
type: e(),
|
|
@@ -376,13 +376,13 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
376
376
|
spacing: { default: void 0 }
|
|
377
377
|
},
|
|
378
378
|
setup(t) {
|
|
379
|
-
const a = t,
|
|
379
|
+
const a = t, l = d(null);
|
|
380
380
|
function e(i) {
|
|
381
381
|
a.onClick && a.onClick(i);
|
|
382
382
|
}
|
|
383
383
|
return (i, u) => (m(), S("div", {
|
|
384
384
|
ref_key: "_ref",
|
|
385
|
-
ref:
|
|
385
|
+
ref: l,
|
|
386
386
|
id: i.id,
|
|
387
387
|
class: P(n(q)("db-card", a.class)),
|
|
388
388
|
"data-behavior": i.behavior,
|
|
@@ -393,8 +393,8 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
393
393
|
A(i.$slots, "default")
|
|
394
394
|
], 10, Ya));
|
|
395
395
|
}
|
|
396
|
-
}), po = ["static", "interactive"], ho = ["1", "2", "3"], de = (t, a,
|
|
397
|
-
t(`update:${
|
|
396
|
+
}), po = ["static", "interactive"], ho = ["1", "2", "3"], de = (t, a, l = "value") => {
|
|
397
|
+
t(`update:${l}`, a.target[l]);
|
|
398
398
|
}, Ka = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], ae = /* @__PURE__ */ G({
|
|
399
399
|
__name: "infotext",
|
|
400
400
|
props: {
|
|
@@ -410,10 +410,10 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
410
410
|
text: { default: void 0 }
|
|
411
411
|
},
|
|
412
412
|
setup(t) {
|
|
413
|
-
const a = t,
|
|
413
|
+
const a = t, l = d(null);
|
|
414
414
|
return (e, i) => (m(), S("span", {
|
|
415
415
|
ref_key: "_ref",
|
|
416
|
-
ref:
|
|
416
|
+
ref: l,
|
|
417
417
|
id: e.id,
|
|
418
418
|
class: P(n(q)("db-infotext", a.class)),
|
|
419
419
|
"data-icon": e.icon,
|
|
@@ -467,7 +467,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
467
467
|
},
|
|
468
468
|
emits: ["update:checked"],
|
|
469
469
|
setup(t, { emit: a }) {
|
|
470
|
-
const
|
|
470
|
+
const l = a, e = t, i = d(!1), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(""), w = d(null);
|
|
471
471
|
Y(() => {
|
|
472
472
|
i.value = !0;
|
|
473
473
|
const b = e.id ?? `checkbox-${Q()}`;
|
|
@@ -517,11 +517,11 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
517
517
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
518
518
|
}
|
|
519
519
|
function r() {
|
|
520
|
-
var b, k,
|
|
521
|
-
!((b = w.value) != null && b.validity.valid) || e.validation === "invalid" ? (g.value = v.value, s.value = e.invalidMessage || ((k = w.value) == null ? void 0 : k.validationMessage) || te, me() && (T.value = s.value, Z(() => T.value = "", 1e3))) : h() && ((
|
|
520
|
+
var b, k, M;
|
|
521
|
+
!((b = w.value) != null && b.validity.valid) || e.validation === "invalid" ? (g.value = v.value, s.value = e.invalidMessage || ((k = w.value) == null ? void 0 : k.validationMessage) || te, me() && (T.value = s.value, Z(() => T.value = "", 1e3))) : h() && ((M = w.value) != null && M.validity.valid) && e.required ? (g.value = p.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = f.value : g.value = void 0;
|
|
522
522
|
}
|
|
523
523
|
function c(b) {
|
|
524
|
-
e.onChange && e.onChange(b), de(
|
|
524
|
+
e.onChange && e.onChange(b), de(l, b, "checked"), r();
|
|
525
525
|
}
|
|
526
526
|
function L(b) {
|
|
527
527
|
e.onBlur && e.onBlur(b);
|
|
@@ -548,9 +548,9 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
548
548
|
disabled: n(V)(b.disabled, "disabled"),
|
|
549
549
|
value: b.value,
|
|
550
550
|
required: n(V)(b.required, "required"),
|
|
551
|
-
onChange: k[0] || (k[0] = async (
|
|
552
|
-
onBlur: k[1] || (k[1] = async (
|
|
553
|
-
onFocus: k[2] || (k[2] = async (
|
|
551
|
+
onChange: k[0] || (k[0] = async (M) => c(M)),
|
|
552
|
+
onBlur: k[1] || (k[1] = async (M) => L(M)),
|
|
553
|
+
onFocus: k[2] || (k[2] = async (M) => C(M)),
|
|
554
554
|
"aria-describedby": b.ariaDescribedBy ?? g.value
|
|
555
555
|
}, null, 40, Za),
|
|
556
556
|
b.label ? (m(), S(W, { key: 0 }, [
|
|
@@ -594,8 +594,8 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
594
594
|
}
|
|
595
595
|
}), re = class re {
|
|
596
596
|
static runCallbacks(a) {
|
|
597
|
-
for (const
|
|
598
|
-
typeof
|
|
597
|
+
for (const l of Object.values(re.callbacks))
|
|
598
|
+
typeof l == "function" && l(a);
|
|
599
599
|
}
|
|
600
600
|
constructor() {
|
|
601
601
|
if (re._instance)
|
|
@@ -603,8 +603,8 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
603
603
|
re._instance = this, self.document && self.document.addEventListener("click", (a) => re.runCallbacks(a));
|
|
604
604
|
}
|
|
605
605
|
addCallback(a) {
|
|
606
|
-
const
|
|
607
|
-
return re.callbacks[
|
|
606
|
+
const l = Q();
|
|
607
|
+
return re.callbacks[l] = a, l;
|
|
608
608
|
}
|
|
609
609
|
removeCallback(a) {
|
|
610
610
|
delete re.callbacks[a];
|
|
@@ -624,12 +624,12 @@ const ce = class ce {
|
|
|
624
624
|
}, !0);
|
|
625
625
|
}
|
|
626
626
|
static runCallbacks(a) {
|
|
627
|
-
for (const
|
|
628
|
-
typeof
|
|
627
|
+
for (const l of Object.values(ce.callbacks))
|
|
628
|
+
typeof l == "function" && l(a);
|
|
629
629
|
}
|
|
630
630
|
addCallback(a) {
|
|
631
|
-
const
|
|
632
|
-
return ce.callbacks[
|
|
631
|
+
const l = Q();
|
|
632
|
+
return ce.callbacks[l] = a, l;
|
|
633
633
|
}
|
|
634
634
|
removeCallback(a) {
|
|
635
635
|
delete ce.callbacks[a];
|
|
@@ -641,16 +641,16 @@ const et = (t) => {
|
|
|
641
641
|
var r;
|
|
642
642
|
const {
|
|
643
643
|
top: a,
|
|
644
|
-
bottom:
|
|
644
|
+
bottom: l,
|
|
645
645
|
left: e,
|
|
646
646
|
right: i
|
|
647
647
|
} = t.getBoundingClientRect(), {
|
|
648
648
|
innerHeight: u,
|
|
649
649
|
innerWidth: f
|
|
650
650
|
} = window;
|
|
651
|
-
let p = a < 0, v =
|
|
651
|
+
let p = a < 0, v = l > u, s = e < 0, g = i > f;
|
|
652
652
|
const T = t.dataset.outsideVy, w = t.dataset.outsideVx, h = (r = t == null ? void 0 : t.parentElement) == null ? void 0 : r.getBoundingClientRect();
|
|
653
|
-
return h && (T && (t.dataset.outsideVy === "top" ? p = h.top - (
|
|
653
|
+
return h && (T && (t.dataset.outsideVy === "top" ? p = h.top - (l - h.bottom) < 0 : v = h.bottom + (h.top - a) > u), w && (t.dataset.outsideVx === "left" ? s = h.left - (i - h.right) < 0 : g = h.right + (h.left - e) > f)), {
|
|
654
654
|
outTop: p,
|
|
655
655
|
outBottom: v,
|
|
656
656
|
outLeft: s,
|
|
@@ -659,18 +659,18 @@ const et = (t) => {
|
|
|
659
659
|
}, at = (t) => {
|
|
660
660
|
const {
|
|
661
661
|
outTop: a,
|
|
662
|
-
outBottom:
|
|
662
|
+
outBottom: l,
|
|
663
663
|
outLeft: e,
|
|
664
664
|
outRight: i
|
|
665
665
|
} = et(t);
|
|
666
666
|
let u = {};
|
|
667
|
-
return a ||
|
|
667
|
+
return a || l ? (u = {
|
|
668
668
|
vy: a ? "top" : "bottom"
|
|
669
669
|
}, t.dataset.outsideVy = u.vy) : delete t.dataset.outsideVy, e || i ? (u = {
|
|
670
670
|
...u,
|
|
671
671
|
vx: i ? "right" : "left"
|
|
672
672
|
}, t.dataset.outsideVx = u.vx) : delete t.dataset.outsideVx, u;
|
|
673
|
-
}, tt = (t, a,
|
|
673
|
+
}, tt = (t, a, l) => {
|
|
674
674
|
if (getComputedStyle(t).zIndex === "9999") return;
|
|
675
675
|
const {
|
|
676
676
|
top: e,
|
|
@@ -681,9 +681,9 @@ const et = (t) => {
|
|
|
681
681
|
right: v,
|
|
682
682
|
left: s,
|
|
683
683
|
correctedPlacement: g
|
|
684
|
-
} = ua(t, a,
|
|
684
|
+
} = ua(t, a, l);
|
|
685
685
|
t.dataset.width === "full" && (t.style.inlineSize = `${p}px`), g === "top" || g === "bottom" || g === "top-start" || g === "bottom-start" ? t.style.insetInlineStart = `${s}px` : (g === "top-end" || g === "bottom-end") && (t.style.insetInlineStart = `${v - f}px`), g != null && g.startsWith("top") ? t.style.insetBlockStart = `${e - u}px` : g != null && g.startsWith("bottom") && (t.style.insetBlockStart = `${i}px`), t.style.position = "fixed";
|
|
686
|
-
}, ua = (t, a,
|
|
686
|
+
}, ua = (t, a, l) => {
|
|
687
687
|
if (!t || !a)
|
|
688
688
|
return {
|
|
689
689
|
top: 0,
|
|
@@ -694,7 +694,7 @@ const et = (t) => {
|
|
|
694
694
|
left: 0,
|
|
695
695
|
childHeight: 0,
|
|
696
696
|
childWidth: 0,
|
|
697
|
-
correctedPlacement:
|
|
697
|
+
correctedPlacement: l,
|
|
698
698
|
innerWidth: window.innerWidth,
|
|
699
699
|
innerHeight: window.innerHeight
|
|
700
700
|
};
|
|
@@ -710,10 +710,10 @@ const et = (t) => {
|
|
|
710
710
|
innerWidth: T
|
|
711
711
|
} = window;
|
|
712
712
|
let w = e.height, h = e.width;
|
|
713
|
-
(
|
|
713
|
+
(l === "bottom" || l === "top") && (h = h / 2), (l === "left" || l === "right") && (w = w / 2);
|
|
714
714
|
const r = f + w > g, c = i - w < 0, L = v - h < 0, C = p + h > T;
|
|
715
|
-
let b =
|
|
716
|
-
return
|
|
715
|
+
let b = l;
|
|
716
|
+
return l.startsWith("bottom") ? r ? (b = l == null ? void 0 : l.replace("bottom", "top"), L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end")) : L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end") : l.startsWith("top") ? c ? (b = l == null ? void 0 : l.replace("top", "bottom"), L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end")) : L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end") : l.startsWith("left") ? L ? (b = l == null ? void 0 : l.replace("left", "right"), r && c ? b = "right" : r ? b = "right-end" : c && (b = "right-start")) : r && c ? b = "left" : r ? b = "left-end" : c && (b = "left-start") : b.startsWith("right") && (C ? (b = l == null ? void 0 : l.replace("right", "left"), r && c ? b = "left" : r ? b = "left-end" : c && (b = "left-start")) : r && c ? b = "right" : r ? b = "right-end" : c && (b = "right-start")), {
|
|
717
717
|
top: i,
|
|
718
718
|
bottom: f,
|
|
719
719
|
right: p,
|
|
@@ -726,7 +726,7 @@ const et = (t) => {
|
|
|
726
726
|
innerWidth: T,
|
|
727
727
|
innerHeight: g
|
|
728
728
|
};
|
|
729
|
-
}, ra = (t, a,
|
|
729
|
+
}, ra = (t, a, l) => {
|
|
730
730
|
const e = getComputedStyle(t).getPropertyValue("--db-popover-distance") ?? "0px", {
|
|
731
731
|
top: i,
|
|
732
732
|
height: u,
|
|
@@ -739,7 +739,7 @@ const et = (t) => {
|
|
|
739
739
|
correctedPlacement: w,
|
|
740
740
|
innerWidth: h,
|
|
741
741
|
innerHeight: r
|
|
742
|
-
} = ua(t, a,
|
|
742
|
+
} = ua(t, a, l);
|
|
743
743
|
if (v > f && (w.startsWith("bottom") || w.startsWith("top"))) {
|
|
744
744
|
const c = f / 2 / v * 100;
|
|
745
745
|
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${c}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - c}%`);
|
|
@@ -790,11 +790,11 @@ const et = (t) => {
|
|
|
790
790
|
autofocus: { type: [Boolean, String] }
|
|
791
791
|
},
|
|
792
792
|
setup(t) {
|
|
793
|
-
const a = t,
|
|
793
|
+
const a = t, l = d(null);
|
|
794
794
|
return (e, i) => (m(), S("article", {
|
|
795
795
|
"data-spacing": "none",
|
|
796
796
|
ref_key: "_ref",
|
|
797
|
-
ref:
|
|
797
|
+
ref: l,
|
|
798
798
|
id: e.id,
|
|
799
799
|
class: P(n(q)("db-custom-select-dropdown db-card", a.class)),
|
|
800
800
|
"data-width": e.width
|
|
@@ -826,7 +826,7 @@ const et = (t) => {
|
|
|
826
826
|
},
|
|
827
827
|
emits: ["update:checked"],
|
|
828
828
|
setup(t, { emit: a }) {
|
|
829
|
-
const
|
|
829
|
+
const l = a, e = t, i = d(void 0), u = d(!1), f = d(null);
|
|
830
830
|
Y(() => {
|
|
831
831
|
i.value = e.id ?? `custom-select-list-item-${Q()}`;
|
|
832
832
|
}), D(
|
|
@@ -840,7 +840,7 @@ const et = (t) => {
|
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
842
|
function p(s) {
|
|
843
|
-
s.stopPropagation(), e.onChange && e.onChange(s), de(
|
|
843
|
+
s.stopPropagation(), e.onChange && e.onChange(s), de(l, s, "checked");
|
|
844
844
|
}
|
|
845
845
|
function v() {
|
|
846
846
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
@@ -893,12 +893,12 @@ const et = (t) => {
|
|
|
893
893
|
autofocus: { type: [Boolean, String] }
|
|
894
894
|
},
|
|
895
895
|
setup(t) {
|
|
896
|
-
const a = t,
|
|
896
|
+
const a = t, l = d(null);
|
|
897
897
|
return (e, i) => (m(), S("div", {
|
|
898
898
|
role: e.multiple ? "group" : "radiogroup",
|
|
899
899
|
"aria-label": e.label,
|
|
900
900
|
ref_key: "_ref",
|
|
901
|
-
ref:
|
|
901
|
+
ref: l,
|
|
902
902
|
id: e.id,
|
|
903
903
|
class: P(n(q)("db-custom-select-list", a.class))
|
|
904
904
|
}, [
|
|
@@ -969,7 +969,7 @@ const et = (t) => {
|
|
|
969
969
|
},
|
|
970
970
|
emits: ["update:value"],
|
|
971
971
|
setup(t, { emit: a }) {
|
|
972
|
-
const
|
|
972
|
+
const l = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(""), h = d(null);
|
|
973
973
|
Y(() => {
|
|
974
974
|
const y = e.id ?? `input-${Q()}`;
|
|
975
975
|
i.value = y, u.value = y + fe, f.value = y + pe, p.value = y + he, s.value = y + xe, v.value = e.invalidMessage || te;
|
|
@@ -1013,10 +1013,10 @@ const et = (t) => {
|
|
|
1013
1013
|
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((X = h.value) == null ? void 0 : X.validationMessage) || te, me() && (w.value = v.value, Z(() => w.value = "", 1e3))) : r() && ((B = h.value) != null && B.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (g.value = f.value, me() && (w.value = e.validMessage ?? ge, Z(() => w.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = void 0;
|
|
1014
1014
|
}
|
|
1015
1015
|
function L(y) {
|
|
1016
|
-
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(
|
|
1016
|
+
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(l, y), c();
|
|
1017
1017
|
}
|
|
1018
1018
|
function C(y) {
|
|
1019
|
-
e.onChange && e.onChange(y), de(
|
|
1019
|
+
e.onChange && e.onChange(y), de(l, y), c();
|
|
1020
1020
|
}
|
|
1021
1021
|
function b(y) {
|
|
1022
1022
|
e.onBlur && e.onBlur(y);
|
|
@@ -1024,7 +1024,7 @@ const et = (t) => {
|
|
|
1024
1024
|
function k(y) {
|
|
1025
1025
|
e.onFocus && e.onFocus(y);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function M() {
|
|
1028
1028
|
const y = e.dataList;
|
|
1029
1029
|
return Array.from(
|
|
1030
1030
|
(Va(y) ? y == null ? void 0 : y.map((X) => ({
|
|
@@ -1080,7 +1080,7 @@ const et = (t) => {
|
|
|
1080
1080
|
key: 0,
|
|
1081
1081
|
id: s.value
|
|
1082
1082
|
}, [
|
|
1083
|
-
(m(!0), S(W, null, ye(
|
|
1083
|
+
(m(!0), S(W, null, ye(M(), (B) => (m(), S("option", {
|
|
1084
1084
|
key: s.value + "-option-" + B.value,
|
|
1085
1085
|
value: B.value
|
|
1086
1086
|
}, $(B.label), 9, gt))), 128))
|
|
@@ -1138,19 +1138,19 @@ const et = (t) => {
|
|
|
1138
1138
|
width: { default: void 0 }
|
|
1139
1139
|
},
|
|
1140
1140
|
setup(t) {
|
|
1141
|
-
const a = t,
|
|
1141
|
+
const a = t, l = d(Te), e = d(!1), i = d(void 0), u = d(void 0), f = d(null);
|
|
1142
1142
|
Y(() => {
|
|
1143
|
-
|
|
1143
|
+
l.value = a.id || "tooltip-" + Q(), e.value = !0;
|
|
1144
1144
|
}), D(
|
|
1145
1145
|
() => [f.value, e.value],
|
|
1146
1146
|
() => {
|
|
1147
|
-
if (f.value && e.value &&
|
|
1147
|
+
if (f.value && e.value && l.value) {
|
|
1148
1148
|
const r = s();
|
|
1149
1149
|
r && (["mouseenter", "focusin"].forEach((c) => {
|
|
1150
1150
|
r.addEventListener(c, () => h(r));
|
|
1151
1151
|
}), r.addEventListener("keydown", (c) => v(c)), ["mouseleave", "focusout"].forEach((c) => {
|
|
1152
1152
|
r.addEventListener(c, () => w());
|
|
1153
|
-
}), r.dataset.hasTooltip = "true", a.variant === "label" ? r.setAttribute("aria-labelledby",
|
|
1153
|
+
}), r.dataset.hasTooltip = "true", a.variant === "label" ? r.setAttribute("aria-labelledby", l.value) : r.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((c) => {
|
|
1154
1154
|
const L = c.find(({ target: C }) => C === s());
|
|
1155
1155
|
L && !L.isIntersecting && v(!1);
|
|
1156
1156
|
})), e.value = !1;
|
|
@@ -1203,7 +1203,7 @@ const et = (t) => {
|
|
|
1203
1203
|
ref_key: "_ref",
|
|
1204
1204
|
ref: f,
|
|
1205
1205
|
class: P(n(q)("db-tooltip", a.class)),
|
|
1206
|
-
id:
|
|
1206
|
+
id: l.value,
|
|
1207
1207
|
"data-emphasis": r.emphasis,
|
|
1208
1208
|
"data-animation": n(R)(r.animation ?? !0),
|
|
1209
1209
|
"data-delay": r.delay,
|
|
@@ -1239,7 +1239,7 @@ const et = (t) => {
|
|
|
1239
1239
|
remove: {}
|
|
1240
1240
|
},
|
|
1241
1241
|
setup(t) {
|
|
1242
|
-
const a = t,
|
|
1242
|
+
const a = t, l = d(null);
|
|
1243
1243
|
function e(u) {
|
|
1244
1244
|
u && (u.stopPropagation(), a.onRemove && a.onRemove(u));
|
|
1245
1245
|
}
|
|
@@ -1248,7 +1248,7 @@ const et = (t) => {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
return (u, f) => (m(), S("div", {
|
|
1250
1250
|
ref_key: "_ref",
|
|
1251
|
-
ref:
|
|
1251
|
+
ref: l,
|
|
1252
1252
|
id: u.id,
|
|
1253
1253
|
class: P(n(q)("db-tag", a.class)),
|
|
1254
1254
|
"data-semantic": u.semantic,
|
|
@@ -1351,10 +1351,10 @@ const et = (t) => {
|
|
|
1351
1351
|
},
|
|
1352
1352
|
emits: ["update:values"],
|
|
1353
1353
|
setup(t, { emit: a }) {
|
|
1354
|
-
const
|
|
1354
|
+
const l = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(void 0), h = d(void 0), r = d("no-validation"), c = d(!1), L = d(void 0), C = d(""), b = d(void 0), k = d(""), M = d([]), y = d(!1), X = d(!1), B = d(0), F = d([]), oe = d([]), K = d(!1), _e = d(void 0), Le = d(0), Ce = d(void 0), Ve = d(void 0), Pe = d(void 0), qe = d(!1), Ee = d(!1), va = d(null), z = d(null), ve = d(null), Fe = d(null), Ue = d(null);
|
|
1355
1355
|
Y(() => {
|
|
1356
|
-
const
|
|
1357
|
-
i.value =
|
|
1356
|
+
const o = e.id ?? `custom-select-${Q()}`;
|
|
1357
|
+
i.value = o, u.value = o + fe, f.value = o + pe, p.value = o + he, s.value = o + Ze, g.value = o + Qe, T.value = o + "-summary", w.value = o + Re, b.value = o + "-selected-labels", h.value = o + "-info", v.value = e.invalidMessage || te, typeof window < "u" && "IntersectionObserver" in window && (Ve.value = new IntersectionObserver((I) => {
|
|
1358
1358
|
if (z.value) {
|
|
1359
1359
|
const E = I.find(({ target: j }) => j === z.value);
|
|
1360
1360
|
E && !E.isIntersecting && z.value.open && (z.value.open = !1);
|
|
@@ -1365,7 +1365,7 @@ const et = (t) => {
|
|
|
1365
1365
|
() => {
|
|
1366
1366
|
z.value && z.value.addEventListener(
|
|
1367
1367
|
"focusout",
|
|
1368
|
-
(
|
|
1368
|
+
(o) => Ae(o)
|
|
1369
1369
|
);
|
|
1370
1370
|
},
|
|
1371
1371
|
{
|
|
@@ -1376,8 +1376,8 @@ const et = (t) => {
|
|
|
1376
1376
|
() => [i.value],
|
|
1377
1377
|
() => {
|
|
1378
1378
|
if (i.value) {
|
|
1379
|
-
const
|
|
1380
|
-
g.value = i.value + Qe, s.value = i.value + Ze, f.value = i.value + pe, p.value = i.value + he, w.value = i.value + Re, x(e.message, e.showMessage) ? He(
|
|
1379
|
+
const o = i.value + fe;
|
|
1380
|
+
g.value = i.value + Qe, s.value = i.value + Ze, f.value = i.value + pe, p.value = i.value + he, w.value = i.value + Re, x(e.message, e.showMessage) ? He(o) : He();
|
|
1381
1381
|
}
|
|
1382
1382
|
},
|
|
1383
1383
|
{
|
|
@@ -1388,8 +1388,8 @@ const et = (t) => {
|
|
|
1388
1388
|
() => [z.value, L.value],
|
|
1389
1389
|
() => {
|
|
1390
1390
|
if (z.value) {
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1391
|
+
const o = z.value.querySelector("summary");
|
|
1392
|
+
o && o.setAttribute(
|
|
1393
1393
|
"aria-describedby",
|
|
1394
1394
|
e.ariaDescribedBy ?? (L.value || "")
|
|
1395
1395
|
);
|
|
@@ -1429,14 +1429,15 @@ const et = (t) => {
|
|
|
1429
1429
|
), D(
|
|
1430
1430
|
() => [e.values],
|
|
1431
1431
|
() => {
|
|
1432
|
-
|
|
1432
|
+
var o;
|
|
1433
|
+
e.values && Array.isArray(e.values) && e.values !== F.value ? F.value = e.values ?? [] : (e.values === null || e.values === void 0 || Array.isArray(e.values) && ((o = e.values) == null ? void 0 : o.length) === 0) && (F.value = []);
|
|
1433
1434
|
},
|
|
1434
1435
|
{
|
|
1435
1436
|
immediate: !0,
|
|
1436
1437
|
flush: "post"
|
|
1437
1438
|
}
|
|
1438
1439
|
), D(
|
|
1439
|
-
() => [
|
|
1440
|
+
() => [F.value, ve.value],
|
|
1440
1441
|
() => {
|
|
1441
1442
|
ve.value && pa();
|
|
1442
1443
|
},
|
|
@@ -1454,10 +1455,10 @@ const et = (t) => {
|
|
|
1454
1455
|
flush: "post"
|
|
1455
1456
|
}
|
|
1456
1457
|
), D(
|
|
1457
|
-
() => [
|
|
1458
|
+
() => [F.value, B.value],
|
|
1458
1459
|
() => {
|
|
1459
|
-
var
|
|
1460
|
-
((
|
|
1460
|
+
var o, I;
|
|
1461
|
+
((o = F.value) == null ? void 0 : o.length) === 0 ? (qe.value = !1, Ee.value = !1) : ((I = F.value) == null ? void 0 : I.length) === B.value ? (Ee.value = !1, qe.value = !0) : F.value && (Ee.value = !0);
|
|
1461
1462
|
},
|
|
1462
1463
|
{
|
|
1463
1464
|
immediate: !0,
|
|
@@ -1466,8 +1467,8 @@ const et = (t) => {
|
|
|
1466
1467
|
), D(
|
|
1467
1468
|
() => [e.options],
|
|
1468
1469
|
() => {
|
|
1469
|
-
var
|
|
1470
|
-
oe.value = e.options, B.value = ((
|
|
1470
|
+
var o;
|
|
1471
|
+
oe.value = e.options, B.value = ((o = e.options) == null ? void 0 : o.filter((I) => !I.isGroupTitle).length) ?? 0;
|
|
1471
1472
|
},
|
|
1472
1473
|
{
|
|
1473
1474
|
immediate: !0,
|
|
@@ -1477,8 +1478,8 @@ const et = (t) => {
|
|
|
1477
1478
|
() => [e.searchValue],
|
|
1478
1479
|
() => {
|
|
1479
1480
|
if (Pe.value = e.searchValue, e.searchValue) {
|
|
1480
|
-
const
|
|
1481
|
-
Ye(
|
|
1481
|
+
const o = e.searchValue;
|
|
1482
|
+
Ye(o);
|
|
1482
1483
|
}
|
|
1483
1484
|
},
|
|
1484
1485
|
{
|
|
@@ -1486,13 +1487,13 @@ const et = (t) => {
|
|
|
1486
1487
|
flush: "post"
|
|
1487
1488
|
}
|
|
1488
1489
|
), D(
|
|
1489
|
-
() => [e.options,
|
|
1490
|
+
() => [e.options, F.value],
|
|
1490
1491
|
() => {
|
|
1491
|
-
var
|
|
1492
|
-
(
|
|
1492
|
+
var o, I;
|
|
1493
|
+
(o = e.options) != null && o.length && (M.value = (I = e.options) == null ? void 0 : I.filter(
|
|
1493
1494
|
(E) => {
|
|
1494
1495
|
var j, le;
|
|
1495
|
-
return !E.value || !((j =
|
|
1496
|
+
return !E.value || !((j = F.value) != null && j.includes) ? !1 : !E.isGroupTitle && ((le = F.value) == null ? void 0 : le.includes(E.value));
|
|
1496
1497
|
}
|
|
1497
1498
|
));
|
|
1498
1499
|
},
|
|
@@ -1502,25 +1503,25 @@ const et = (t) => {
|
|
|
1502
1503
|
}
|
|
1503
1504
|
), D(
|
|
1504
1505
|
() => [
|
|
1505
|
-
|
|
1506
|
+
M.value,
|
|
1506
1507
|
e.selectedType,
|
|
1507
1508
|
e.amountText,
|
|
1508
1509
|
e.selectedLabels,
|
|
1509
1510
|
e.transformSelectedLabels
|
|
1510
1511
|
],
|
|
1511
1512
|
() => {
|
|
1512
|
-
var
|
|
1513
|
+
var o, I, E;
|
|
1513
1514
|
if (e.selectedLabels) {
|
|
1514
1515
|
C.value = e.selectedLabels;
|
|
1515
1516
|
return;
|
|
1516
1517
|
}
|
|
1517
|
-
if ((
|
|
1518
|
+
if ((o = M.value) != null && o.length) {
|
|
1518
1519
|
if (e.transformSelectedLabels) {
|
|
1519
|
-
const j =
|
|
1520
|
+
const j = M.value, le = e.transformSelectedLabels;
|
|
1520
1521
|
C.value = le(j);
|
|
1521
1522
|
return;
|
|
1522
1523
|
}
|
|
1523
|
-
e.selectedType === "amount" ? C.value = e.amountText ? e.amountText : `${(I =
|
|
1524
|
+
e.selectedType === "amount" ? C.value = e.amountText ? e.amountText : `${(I = M.value) == null ? void 0 : I.length} ${Da}` : C.value = (E = M.value) == null ? void 0 : E.map((j) => Ie(j)).join(", ");
|
|
1524
1525
|
} else
|
|
1525
1526
|
C.value = "";
|
|
1526
1527
|
},
|
|
@@ -1529,10 +1530,10 @@ const et = (t) => {
|
|
|
1529
1530
|
flush: "post"
|
|
1530
1531
|
}
|
|
1531
1532
|
), D(
|
|
1532
|
-
() => [
|
|
1533
|
+
() => [M.value],
|
|
1533
1534
|
() => {
|
|
1534
|
-
var
|
|
1535
|
-
e.onAmountChange && e.onAmountChange(((
|
|
1535
|
+
var o;
|
|
1536
|
+
e.onAmountChange && e.onAmountChange(((o = M.value) == null ? void 0 : o.length) ?? 0);
|
|
1536
1537
|
},
|
|
1537
1538
|
{
|
|
1538
1539
|
immediate: !0,
|
|
@@ -1550,76 +1551,76 @@ const et = (t) => {
|
|
|
1550
1551
|
), D(
|
|
1551
1552
|
() => [ve.value, e.invalidMessage],
|
|
1552
1553
|
() => {
|
|
1553
|
-
var
|
|
1554
|
-
v.value = e.invalidMessage || ((
|
|
1554
|
+
var o;
|
|
1555
|
+
v.value = e.invalidMessage || ((o = ve.value) == null ? void 0 : o.validationMessage) || te;
|
|
1555
1556
|
},
|
|
1556
1557
|
{
|
|
1557
1558
|
immediate: !0,
|
|
1558
1559
|
flush: "post"
|
|
1559
1560
|
}
|
|
1560
1561
|
);
|
|
1561
|
-
function fa(
|
|
1562
|
+
function fa(o) {
|
|
1562
1563
|
var I, E;
|
|
1563
|
-
(I =
|
|
1564
|
+
(I = o == null ? void 0 : o.target) != null && I.contains && ((E = o == null ? void 0 : o.target) != null && E.contains(z.value)) && Ge();
|
|
1564
1565
|
}
|
|
1565
1566
|
function Oe() {
|
|
1566
1567
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1567
1568
|
}
|
|
1568
1569
|
function pa() {
|
|
1569
|
-
var
|
|
1570
|
-
ve.value && (ve.value.value = ga()), !((
|
|
1570
|
+
var o, I, E;
|
|
1571
|
+
ve.value && (ve.value.value = ga()), !((o = ve.value) != null && o.validity.valid) || e.validation === "invalid" ? (L.value = p.value, v.value = e.invalidMessage || ((I = ve.value) == null ? void 0 : I.validationMessage) || te, me() && (k.value = v.value, Z(() => k.value = "", 1e3)), c.value && (r.value = e.validation ?? "invalid")) : Oe() && ((E = ve.value) != null && E.validity.valid) && e.required ? (L.value = f.value, me() && (k.value = e.validMessage ?? ge, Z(() => k.value = "", 1e3)), r.value = e.validation ?? "valid") : x(e.message, e.showMessage) ? (L.value = u.value, r.value = e.validation ?? "no-validation") : (L.value = w.value, r.value = e.validation ?? "no-validation");
|
|
1571
1572
|
}
|
|
1572
|
-
function ha(
|
|
1573
|
+
function ha(o) {
|
|
1573
1574
|
var I, E;
|
|
1574
|
-
e.onDropdownToggle && (
|
|
1575
|
+
e.onDropdownToggle && (o.stopPropagation(), e.onDropdownToggle(o)), o.target instanceof HTMLDetailsElement && o.target.open ? (_e.value = new ze().addCallback(
|
|
1575
1576
|
(j) => Ba(j)
|
|
1576
1577
|
), Ce.value = new Be().addCallback(
|
|
1577
1578
|
(j) => fa(j)
|
|
1578
|
-
), Ge(), (I = Ve.value) == null || I.observe(z.value),
|
|
1579
|
+
), Ge(), (I = Ve.value) == null || I.observe(z.value), o.target.dataset.test || je()) : (_e.value && new ze().removeCallback(
|
|
1579
1580
|
_e.value
|
|
1580
1581
|
), Ce.value && new Be().removeCallback(
|
|
1581
1582
|
Ce.value
|
|
1582
1583
|
), (E = Ve.value) == null || E.unobserve(z.value));
|
|
1583
1584
|
}
|
|
1584
1585
|
function ga() {
|
|
1585
|
-
var
|
|
1586
|
-
return (
|
|
1586
|
+
var o;
|
|
1587
|
+
return (o = F.value) != null && o.length ? F.value.at(0) ?? "" : "";
|
|
1587
1588
|
}
|
|
1588
|
-
function He(
|
|
1589
|
+
function He(o) {
|
|
1589
1590
|
var E;
|
|
1590
1591
|
const I = [];
|
|
1591
|
-
|
|
1592
|
+
o && I.push(o), b.value && ((E = C.value) != null && E.length) && I.push(b.value), L.value = I.join(" ");
|
|
1592
1593
|
}
|
|
1593
1594
|
function ma() {
|
|
1594
1595
|
return e.selectAllLabel ?? we;
|
|
1595
1596
|
}
|
|
1596
|
-
function Ie(
|
|
1597
|
+
function Ie(o) {
|
|
1597
1598
|
var I;
|
|
1598
|
-
return
|
|
1599
|
+
return o.label ?? ((I = o.value) == null ? void 0 : I.toString()) ?? "";
|
|
1599
1600
|
}
|
|
1600
|
-
function ba(
|
|
1601
|
+
function ba(o) {
|
|
1601
1602
|
var I, E;
|
|
1602
|
-
return
|
|
1603
|
+
return o && ((I = F.value) != null && I.includes) ? (E = F.value) == null ? void 0 : E.includes(o) : !1;
|
|
1603
1604
|
}
|
|
1604
|
-
function ya(
|
|
1605
|
-
return e.removeTagsTexts && e.removeTagsTexts.length >
|
|
1605
|
+
function ya(o) {
|
|
1606
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${ia} ${M.value ? Ie(M.value[o]) : ""}`;
|
|
1606
1607
|
}
|
|
1607
|
-
function wa(
|
|
1608
|
-
I && I.stopPropagation(), Xe(
|
|
1608
|
+
function wa(o, I) {
|
|
1609
|
+
I && I.stopPropagation(), Xe(o.value), De();
|
|
1609
1610
|
}
|
|
1610
1611
|
function Ge() {
|
|
1611
1612
|
if (z.value) {
|
|
1612
|
-
const
|
|
1613
|
-
|
|
1613
|
+
const o = z.value.querySelector("article");
|
|
1614
|
+
o && Z(() => {
|
|
1614
1615
|
tt(
|
|
1615
|
-
|
|
1616
|
+
o,
|
|
1616
1617
|
z.value,
|
|
1617
1618
|
e.placement ?? "bottom"
|
|
1618
1619
|
);
|
|
1619
1620
|
}, 1);
|
|
1620
1621
|
}
|
|
1621
1622
|
}
|
|
1622
|
-
function ka(
|
|
1623
|
+
function ka(o) {
|
|
1623
1624
|
var I, E, j, le, O, be, Ne;
|
|
1624
1625
|
if ((I = z.value) != null && I.open) {
|
|
1625
1626
|
if (self.document) {
|
|
@@ -1627,7 +1628,7 @@ const et = (t) => {
|
|
|
1627
1628
|
if (ue)
|
|
1628
1629
|
if (ue.getAttribute("type") === "checkbox" || ue.getAttribute("type") === "radio") {
|
|
1629
1630
|
const se = ue == null ? void 0 : ue.closest("li");
|
|
1630
|
-
if (
|
|
1631
|
+
if (o.key === "ArrowDown" || o.key === "ArrowRight")
|
|
1631
1632
|
se != null && se.nextElementSibling ? (j = (E = se == null ? void 0 : se.nextElementSibling) == null ? void 0 : E.querySelector("input")) == null || j.focus() : Me(ue);
|
|
1632
1633
|
else if (se != null && se.previousElementSibling)
|
|
1633
1634
|
(O = (le = se == null ? void 0 : se.previousElementSibling) == null ? void 0 : le.querySelector("input")) == null || O.focus();
|
|
@@ -1649,50 +1650,50 @@ const et = (t) => {
|
|
|
1649
1650
|
}
|
|
1650
1651
|
}
|
|
1651
1652
|
} else
|
|
1652
|
-
ue.getAttribute("type") === "search" && (
|
|
1653
|
+
ue.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (Ae(void 0, !0), De()) : Me(ue);
|
|
1653
1654
|
}
|
|
1654
|
-
} else (
|
|
1655
|
-
|
|
1655
|
+
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (Ge(), z.value && (z.value.open = !0), je());
|
|
1656
|
+
o.stopPropagation(), o.preventDefault();
|
|
1656
1657
|
}
|
|
1657
|
-
function Sa(
|
|
1658
|
+
function Sa(o) {
|
|
1658
1659
|
var I;
|
|
1659
|
-
|
|
1660
|
+
o.stopPropagation(), o.key === "Escape" && ((I = z.value) != null && I.open) ? (Ae(void 0, !0), De()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && ka(o);
|
|
1660
1661
|
}
|
|
1661
|
-
function Ae(
|
|
1662
|
+
function Ae(o, I) {
|
|
1662
1663
|
if (z.value) {
|
|
1663
1664
|
if (I)
|
|
1664
1665
|
z.value.open = !1, De();
|
|
1665
|
-
else if (z.value.open &&
|
|
1666
|
-
const E =
|
|
1666
|
+
else if (z.value.open && o && o.relatedTarget) {
|
|
1667
|
+
const E = o.relatedTarget;
|
|
1667
1668
|
z.value.contains(E) || Z(() => z.value.open = !1, 1);
|
|
1668
1669
|
}
|
|
1669
1670
|
}
|
|
1670
1671
|
}
|
|
1671
|
-
function Ba(
|
|
1672
|
+
function Ba(o) {
|
|
1672
1673
|
var I;
|
|
1673
|
-
if (
|
|
1674
|
-
const E =
|
|
1674
|
+
if (o) {
|
|
1675
|
+
const E = o.target;
|
|
1675
1676
|
(I = z.value) != null && I.open && !z.value.contains(E) && (z.value.open = !1);
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1678
|
-
function $e(
|
|
1679
|
-
(/* @__PURE__ */ new Date()).getTime() - Le.value < 200 || (
|
|
1680
|
-
|
|
1679
|
+
function $e(o) {
|
|
1680
|
+
(/* @__PURE__ */ new Date()).getTime() - Le.value < 200 || (F.value = o, c.value = !0, e.onOptionSelected && e.onOptionSelected(o ?? []), de(
|
|
1681
|
+
l,
|
|
1681
1682
|
{
|
|
1682
1683
|
target: {
|
|
1683
|
-
values:
|
|
1684
|
+
values: o
|
|
1684
1685
|
}
|
|
1685
1686
|
},
|
|
1686
1687
|
"values"
|
|
1687
1688
|
), Le.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1688
1689
|
}
|
|
1689
|
-
function Xe(
|
|
1690
|
+
function Xe(o) {
|
|
1690
1691
|
var I;
|
|
1691
|
-
|
|
1692
|
+
o && (e.multiple ? (I = F.value) != null && I.includes(o) ? $e(F.value.filter((E) => E !== o)) : $e([...F.value || [], o]) : ($e([o]), Ae(void 0, !0)));
|
|
1692
1693
|
}
|
|
1693
|
-
function La(
|
|
1694
|
+
function La(o) {
|
|
1694
1695
|
var I;
|
|
1695
|
-
if (
|
|
1696
|
+
if (o.stopPropagation(), ((I = F.value) == null ? void 0 : I.length) === B.value)
|
|
1696
1697
|
$e([]);
|
|
1697
1698
|
else {
|
|
1698
1699
|
const E = X.value && Ue.value ? Ue.value.value : void 0;
|
|
@@ -1706,7 +1707,7 @@ const et = (t) => {
|
|
|
1706
1707
|
);
|
|
1707
1708
|
}
|
|
1708
1709
|
}
|
|
1709
|
-
function Me(
|
|
1710
|
+
function Me(o) {
|
|
1710
1711
|
if (z.value) {
|
|
1711
1712
|
const I = Array.from(
|
|
1712
1713
|
z.value.querySelectorAll(
|
|
@@ -1714,7 +1715,7 @@ const et = (t) => {
|
|
|
1714
1715
|
)
|
|
1715
1716
|
);
|
|
1716
1717
|
if (I.length) {
|
|
1717
|
-
const E = I.at(0), j = E ===
|
|
1718
|
+
const E = I.at(0), j = E === o && I.length > 1 ? I.at(1) : E;
|
|
1718
1719
|
j && Z(() => {
|
|
1719
1720
|
j.focus();
|
|
1720
1721
|
}, 1);
|
|
@@ -1723,20 +1724,20 @@ const et = (t) => {
|
|
|
1723
1724
|
}
|
|
1724
1725
|
function je() {
|
|
1725
1726
|
if (z.value) {
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1728
|
-
|
|
1727
|
+
const o = aa(z.value);
|
|
1728
|
+
o ? Z(() => {
|
|
1729
|
+
o.focus();
|
|
1729
1730
|
}, 1) : Me();
|
|
1730
1731
|
}
|
|
1731
1732
|
}
|
|
1732
|
-
function Ye(
|
|
1733
|
-
if (
|
|
1733
|
+
function Ye(o) {
|
|
1734
|
+
if (o === void 0)
|
|
1734
1735
|
return;
|
|
1735
1736
|
let I;
|
|
1736
|
-
if (typeof
|
|
1737
|
-
I =
|
|
1737
|
+
if (typeof o == "string")
|
|
1738
|
+
I = o;
|
|
1738
1739
|
else {
|
|
1739
|
-
const E =
|
|
1740
|
+
const E = o;
|
|
1740
1741
|
E.stopPropagation(), e.onSearch && e.onSearch(E), I = E.target.value, Pe.value = I;
|
|
1741
1742
|
}
|
|
1742
1743
|
!e.options || !I || I.length === 0 ? oe.value = e.options : e.searchFilter ? oe.value = e.options.filter(
|
|
@@ -1745,17 +1746,17 @@ const et = (t) => {
|
|
|
1745
1746
|
(E) => !E.isGroupTitle && Ie(E).toLowerCase().includes(I.toLowerCase())
|
|
1746
1747
|
);
|
|
1747
1748
|
}
|
|
1748
|
-
function Ia(
|
|
1749
|
-
|
|
1749
|
+
function Ia(o) {
|
|
1750
|
+
o.stopPropagation(), $e([]), De();
|
|
1750
1751
|
}
|
|
1751
1752
|
function De() {
|
|
1752
|
-
var
|
|
1753
|
-
z.value && ((
|
|
1753
|
+
var o;
|
|
1754
|
+
z.value && ((o = z.value.querySelector("summary")) == null || o.focus());
|
|
1754
1755
|
}
|
|
1755
|
-
function $a(
|
|
1756
|
-
|
|
1756
|
+
function $a(o) {
|
|
1757
|
+
o.stopPropagation();
|
|
1757
1758
|
}
|
|
1758
|
-
return (
|
|
1759
|
+
return (o, I) => {
|
|
1759
1760
|
var E, j, le;
|
|
1760
1761
|
return m(), S("div", {
|
|
1761
1762
|
id: i.value,
|
|
@@ -1764,18 +1765,18 @@ const et = (t) => {
|
|
|
1764
1765
|
class: P(n(q)("db-custom-select", e.class)),
|
|
1765
1766
|
"aria-invalid": r.value === "invalid",
|
|
1766
1767
|
"data-custom-validity": r.value,
|
|
1767
|
-
"data-width":
|
|
1768
|
-
"data-variant":
|
|
1769
|
-
"data-required": n(R)(
|
|
1770
|
-
"data-hide-asterisk": n(ie)(
|
|
1771
|
-
"data-placement":
|
|
1772
|
-
"data-selected-type":
|
|
1773
|
-
"data-hide-label": n(ie)(
|
|
1774
|
-
"data-icon":
|
|
1775
|
-
"data-show-icon": n(R)(
|
|
1768
|
+
"data-width": o.formFieldWidth,
|
|
1769
|
+
"data-variant": o.variant === "floating" && o.selectedType === "tag" && o.multiple ? "above" : o.variant,
|
|
1770
|
+
"data-required": n(R)(o.required),
|
|
1771
|
+
"data-hide-asterisk": n(ie)(o.showRequiredAsterisk),
|
|
1772
|
+
"data-placement": o.placement,
|
|
1773
|
+
"data-selected-type": o.multiple ? o.selectedType : "text",
|
|
1774
|
+
"data-hide-label": n(ie)(o.showLabel),
|
|
1775
|
+
"data-icon": o.icon,
|
|
1776
|
+
"data-show-icon": n(R)(o.showIcon)
|
|
1776
1777
|
}, [
|
|
1777
1778
|
_("label", { id: g.value }, [
|
|
1778
|
-
N($(
|
|
1779
|
+
N($(o.label ?? n(we)), 1),
|
|
1779
1780
|
_("select", {
|
|
1780
1781
|
role: "none",
|
|
1781
1782
|
hidden: !0,
|
|
@@ -1783,14 +1784,14 @@ const et = (t) => {
|
|
|
1783
1784
|
tabIndex: -1,
|
|
1784
1785
|
ref_key: "selectRef",
|
|
1785
1786
|
ref: ve,
|
|
1786
|
-
form:
|
|
1787
|
-
name:
|
|
1788
|
-
multiple: n(V)(
|
|
1789
|
-
disabled: n(V)(
|
|
1790
|
-
required: n(V)(
|
|
1787
|
+
form: o.form,
|
|
1788
|
+
name: o.name,
|
|
1789
|
+
multiple: n(V)(o.multiple, "multiple"),
|
|
1790
|
+
disabled: n(V)(o.disabled, "disabled"),
|
|
1791
|
+
required: n(V)(o.required, "required"),
|
|
1791
1792
|
onChange: I[0] || (I[0] = async (O) => $a(O))
|
|
1792
1793
|
}, [
|
|
1793
|
-
(E =
|
|
1794
|
+
(E = o.options) != null && E.length ? (m(!0), S(W, { key: 0 }, ye(o.options, (O, be) => (m(), S("option", {
|
|
1794
1795
|
key: be,
|
|
1795
1796
|
disabled: O.disabled,
|
|
1796
1797
|
value: O.value
|
|
@@ -1800,25 +1801,25 @@ const et = (t) => {
|
|
|
1800
1801
|
_("details", {
|
|
1801
1802
|
ref_key: "detailsRef",
|
|
1802
1803
|
ref: z,
|
|
1803
|
-
open:
|
|
1804
|
+
open: o.open,
|
|
1804
1805
|
onToggle: I[2] || (I[2] = async (O) => ha(O)),
|
|
1805
1806
|
onKeydown: I[3] || (I[3] = async (O) => Sa(O))
|
|
1806
1807
|
}, [
|
|
1807
|
-
A(
|
|
1808
|
-
|
|
1808
|
+
A(o.$slots, "default"),
|
|
1809
|
+
o.options ? (m(), S(W, { key: 0 }, [
|
|
1809
1810
|
_("summary", {
|
|
1810
1811
|
class: "db-custom-select-form-field",
|
|
1811
1812
|
id: T.value,
|
|
1812
|
-
"aria-disabled": n(R)(
|
|
1813
|
+
"aria-disabled": n(R)(o.disabled),
|
|
1813
1814
|
"aria-labelledby": g.value
|
|
1814
1815
|
}, [
|
|
1815
1816
|
(j = C.value) != null && j.length ? (m(), S("span", {
|
|
1816
1817
|
key: 0,
|
|
1817
|
-
"data-visually-hidden": n(R)(
|
|
1818
|
+
"data-visually-hidden": n(R)(o.selectedType === "tag"),
|
|
1818
1819
|
id: b.value
|
|
1819
1820
|
}, $(C.value), 9, _t)) : U("", !0),
|
|
1820
|
-
|
|
1821
|
-
(m(!0), S(W, null, ye(
|
|
1821
|
+
o.selectedType === "tag" ? (m(), S("div", Ct, [
|
|
1822
|
+
(m(!0), S(W, null, ye(M.value, (O, be) => (m(), J(kt, {
|
|
1822
1823
|
key: be,
|
|
1823
1824
|
emphasis: "strong",
|
|
1824
1825
|
behavior: "removable",
|
|
@@ -1832,7 +1833,7 @@ const et = (t) => {
|
|
|
1832
1833
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
1833
1834
|
])) : U("", !0)
|
|
1834
1835
|
], 8, Tt),
|
|
1835
|
-
ee(ot, { width:
|
|
1836
|
+
ee(ot, { width: o.dropdownWidth }, {
|
|
1836
1837
|
default: H(() => [
|
|
1837
1838
|
X.value ? (m(), S("div", Et, [
|
|
1838
1839
|
ee(bt, {
|
|
@@ -1843,20 +1844,20 @@ const et = (t) => {
|
|
|
1843
1844
|
form: i.value,
|
|
1844
1845
|
showLabel: !1,
|
|
1845
1846
|
value: Pe.value,
|
|
1846
|
-
label:
|
|
1847
|
-
placeholder:
|
|
1848
|
-
ariaDescribedBy: K.value ||
|
|
1847
|
+
label: o.searchLabel ?? n(we),
|
|
1848
|
+
placeholder: o.searchPlaceholder ?? o.searchLabel,
|
|
1849
|
+
ariaDescribedBy: K.value || o.showLoading ? h.value : void 0,
|
|
1849
1850
|
onInput: (O) => Ye(O)
|
|
1850
1851
|
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
1851
1852
|
])) : U("", !0),
|
|
1852
|
-
K.value ||
|
|
1853
|
+
K.value || o.showLoading ? (m(), J(ae, {
|
|
1853
1854
|
key: 1,
|
|
1854
1855
|
id: h.value,
|
|
1855
|
-
icon:
|
|
1856
|
-
semantic:
|
|
1856
|
+
icon: o.showLoading ? "circular_arrows" : void 0,
|
|
1857
|
+
semantic: o.showLoading ? "informational" : "warning"
|
|
1857
1858
|
}, {
|
|
1858
1859
|
default: H(() => [
|
|
1859
|
-
N($((
|
|
1860
|
+
N($((o.showLoading ? o.loadingText : o.noResultsText) ?? n(Ea)), 1)
|
|
1860
1861
|
]),
|
|
1861
1862
|
_: 1
|
|
1862
1863
|
}, 8, ["id", "icon", "semantic"])) : (m(), S(W, { key: 2 }, [
|
|
@@ -1877,13 +1878,13 @@ const et = (t) => {
|
|
|
1877
1878
|
])
|
|
1878
1879
|
])) : U("", !0),
|
|
1879
1880
|
ee(ct, {
|
|
1880
|
-
multiple: n(V)(
|
|
1881
|
-
label:
|
|
1881
|
+
multiple: n(V)(o.multiple, "multiple"),
|
|
1882
|
+
label: o.ariaListLabel ?? o.label ?? n(we)
|
|
1882
1883
|
}, {
|
|
1883
1884
|
default: H(() => [
|
|
1884
1885
|
(m(!0), S(W, null, ye(oe.value, (O, be) => (m(), J(ut, {
|
|
1885
1886
|
key: be,
|
|
1886
|
-
type:
|
|
1887
|
+
type: o.multiple ? "checkbox" : "radio",
|
|
1887
1888
|
showDivider: O.showDivider,
|
|
1888
1889
|
icon: O.icon,
|
|
1889
1890
|
isGroupTitle: O.isGroupTitle,
|
|
@@ -1916,7 +1917,7 @@ const et = (t) => {
|
|
|
1916
1917
|
onClick: (O) => Ae(void 0, !0)
|
|
1917
1918
|
}, {
|
|
1918
1919
|
default: H(() => [
|
|
1919
|
-
N($(
|
|
1920
|
+
N($(o.mobileCloseButtonText ?? n(We)), 1)
|
|
1920
1921
|
]),
|
|
1921
1922
|
_: 1
|
|
1922
1923
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -1926,7 +1927,7 @@ const et = (t) => {
|
|
|
1926
1927
|
}, 8, ["width"])
|
|
1927
1928
|
], 64)) : U("", !0)
|
|
1928
1929
|
], 40, $t),
|
|
1929
|
-
(
|
|
1930
|
+
(o.showClearSelection ?? !0) && ((le = F.value) != null && le.length) ? (m(), J(Se, {
|
|
1930
1931
|
key: 0,
|
|
1931
1932
|
icon: "cross",
|
|
1932
1933
|
variant: "ghost",
|
|
@@ -1937,10 +1938,10 @@ const et = (t) => {
|
|
|
1937
1938
|
onClick: (O) => Ia(O)
|
|
1938
1939
|
}, {
|
|
1939
1940
|
default: H(() => [
|
|
1940
|
-
N($(
|
|
1941
|
+
N($(o.clearSelectionText), 1),
|
|
1941
1942
|
ee(ca, { placement: "top" }, {
|
|
1942
1943
|
default: H(() => [
|
|
1943
|
-
N($(
|
|
1944
|
+
N($(o.clearSelectionText), 1)
|
|
1944
1945
|
]),
|
|
1945
1946
|
_: 1
|
|
1946
1947
|
})
|
|
@@ -1950,15 +1951,15 @@ const et = (t) => {
|
|
|
1950
1951
|
_("span", {
|
|
1951
1952
|
"aria-hidden": n(R)(!0),
|
|
1952
1953
|
id: w.value
|
|
1953
|
-
}, $(
|
|
1954
|
-
n(x)(
|
|
1954
|
+
}, $(o.placeholder ?? o.label), 9, Ft),
|
|
1955
|
+
n(x)(o.message, o.showMessage) ? (m(), J(ae, {
|
|
1955
1956
|
key: 1,
|
|
1956
1957
|
size: "small",
|
|
1957
|
-
icon:
|
|
1958
|
+
icon: o.messageIcon,
|
|
1958
1959
|
id: u.value
|
|
1959
1960
|
}, {
|
|
1960
1961
|
default: H(() => [
|
|
1961
|
-
N($(
|
|
1962
|
+
N($(o.message), 1)
|
|
1962
1963
|
]),
|
|
1963
1964
|
_: 1
|
|
1964
1965
|
}, 8, ["icon", "id"])) : U("", !0),
|
|
@@ -1969,7 +1970,7 @@ const et = (t) => {
|
|
|
1969
1970
|
id: f.value
|
|
1970
1971
|
}, {
|
|
1971
1972
|
default: H(() => [
|
|
1972
|
-
N($(
|
|
1973
|
+
N($(o.validMessage || n(ge)), 1)
|
|
1973
1974
|
]),
|
|
1974
1975
|
_: 1
|
|
1975
1976
|
}, 8, ["id"])) : U("", !0),
|
|
@@ -1997,10 +1998,10 @@ const et = (t) => {
|
|
|
1997
1998
|
autofocus: { type: [Boolean, String] }
|
|
1998
1999
|
},
|
|
1999
2000
|
setup(t) {
|
|
2000
|
-
const a = t,
|
|
2001
|
+
const a = t, l = d(null);
|
|
2001
2002
|
return (e, i) => (m(), S("summary", {
|
|
2002
2003
|
ref_key: "_ref",
|
|
2003
|
-
ref:
|
|
2004
|
+
ref: l,
|
|
2004
2005
|
id: e.id,
|
|
2005
2006
|
class: P(n(q)("db-custom-select-form-field", a.class))
|
|
2006
2007
|
}, [
|
|
@@ -2021,10 +2022,10 @@ const et = (t) => {
|
|
|
2021
2022
|
width: { default: void 0 }
|
|
2022
2023
|
},
|
|
2023
2024
|
setup(t) {
|
|
2024
|
-
const a = t,
|
|
2025
|
+
const a = t, l = d(null);
|
|
2025
2026
|
return (e, i) => (m(), S("div", {
|
|
2026
2027
|
ref_key: "_ref",
|
|
2027
|
-
ref:
|
|
2028
|
+
ref: l,
|
|
2028
2029
|
id: e.id,
|
|
2029
2030
|
"data-margin": e.margin,
|
|
2030
2031
|
"data-variant": e.variant,
|
|
@@ -2056,9 +2057,9 @@ const et = (t) => {
|
|
|
2056
2057
|
spacing: { default: void 0 }
|
|
2057
2058
|
},
|
|
2058
2059
|
setup(t) {
|
|
2059
|
-
const a = t,
|
|
2060
|
+
const a = t, l = d(!1), e = d(null), i = d(null);
|
|
2060
2061
|
Y(() => {
|
|
2061
|
-
f(),
|
|
2062
|
+
f(), l.value = !0;
|
|
2062
2063
|
}), D(
|
|
2063
2064
|
() => [a.open],
|
|
2064
2065
|
() => {
|
|
@@ -2069,9 +2070,9 @@ const et = (t) => {
|
|
|
2069
2070
|
flush: "post"
|
|
2070
2071
|
}
|
|
2071
2072
|
), D(
|
|
2072
|
-
() => [e.value,
|
|
2073
|
+
() => [e.value, l.value, a.position],
|
|
2073
2074
|
() => {
|
|
2074
|
-
if (e.value &&
|
|
2075
|
+
if (e.value && l.value && a.position === "absolute") {
|
|
2075
2076
|
const v = e.value.parentElement;
|
|
2076
2077
|
v && (v.style.position = "relative");
|
|
2077
2078
|
}
|
|
@@ -2140,14 +2141,14 @@ const et = (t) => {
|
|
|
2140
2141
|
], 40, Vt));
|
|
2141
2142
|
}
|
|
2142
2143
|
}), Io = ["none", "strong", "weak", "invisible"], $o = ["left", "right", "up", "down"], To = ["modal", "inside"], _o = ["fixed", "absolute"], Ot = (t) => {
|
|
2143
|
-
var
|
|
2144
|
+
var l, e;
|
|
2144
2145
|
const {
|
|
2145
2146
|
target: a
|
|
2146
2147
|
} = t;
|
|
2147
|
-
return !!(!((
|
|
2148
|
+
return !!(!((l = a == null ? void 0 : a.classList) != null && l.contains("db-navigation-item-expand-button")) && ((e = a == null ? void 0 : a.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
2148
2149
|
};
|
|
2149
2150
|
class Ht {
|
|
2150
|
-
constructor(a,
|
|
2151
|
+
constructor(a, l) {
|
|
2151
2152
|
ne(this, "element");
|
|
2152
2153
|
ne(this, "subNavigation");
|
|
2153
2154
|
ne(this, "parentSubNavigation", null);
|
|
@@ -2156,23 +2157,23 @@ class Ht {
|
|
|
2156
2157
|
ne(this, "mouseX", 0);
|
|
2157
2158
|
ne(this, "mouseY", 0);
|
|
2158
2159
|
var e;
|
|
2159
|
-
this.element = a, this.subNavigation =
|
|
2160
|
+
this.element = a, this.subNavigation = l, !(!this.element || !this.subNavigation) && (this.parentSubNavigation = (e = this.element) == null ? void 0 : e.closest(".db-sub-navigation"), this.parentSubNavigation && !this.element.closest(".db-drawer") && this.init());
|
|
2160
2161
|
}
|
|
2161
2162
|
init() {
|
|
2162
|
-
var
|
|
2163
|
-
const a = ((
|
|
2163
|
+
var l, e;
|
|
2164
|
+
const a = ((l = this.parentSubNavigation) == null ? void 0 : l.getBoundingClientRect().width) ?? 0;
|
|
2164
2165
|
(e = this.element) == null || e.style.setProperty("--db-navigation-item-inline-size", `${a}px`), this.initialized = !0;
|
|
2165
2166
|
}
|
|
2166
2167
|
enableFollow() {
|
|
2167
2168
|
var i;
|
|
2168
2169
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
2169
2170
|
return;
|
|
2170
|
-
const a = at(this.subNavigation),
|
|
2171
|
+
const a = at(this.subNavigation), l = this.element.getBoundingClientRect(), e = ((i = this.parentSubNavigation) == null ? void 0 : i.getBoundingClientRect().width) ?? 0;
|
|
2171
2172
|
this.triangleData = {
|
|
2172
|
-
itemRect:
|
|
2173
|
+
itemRect: l,
|
|
2173
2174
|
parentElementWidth: e,
|
|
2174
2175
|
subNavigationHeight: this.subNavigation.getBoundingClientRect().height,
|
|
2175
|
-
padding: (e -
|
|
2176
|
+
padding: (e - l.width) / 2,
|
|
2176
2177
|
outsideVX: a.vx,
|
|
2177
2178
|
outsideVY: a.vy
|
|
2178
2179
|
};
|
|
@@ -2206,7 +2207,7 @@ class Ht {
|
|
|
2206
2207
|
rb: `100% ${f}`
|
|
2207
2208
|
};
|
|
2208
2209
|
}
|
|
2209
|
-
const
|
|
2210
|
+
const l = this.getTriangleTipX(), e = this.getTriangleTipY(), i = `${l}px ${e}px`, u = `${l}px ${e}px`;
|
|
2210
2211
|
return {
|
|
2211
2212
|
lb: i,
|
|
2212
2213
|
lt: u,
|
|
@@ -2218,8 +2219,8 @@ class Ht {
|
|
|
2218
2219
|
if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation)
|
|
2219
2220
|
return;
|
|
2220
2221
|
this.mouseX = a.clientX - this.triangleData.itemRect.left, this.mouseY = a.clientY - this.triangleData.itemRect.top;
|
|
2221
|
-
const
|
|
2222
|
-
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`),
|
|
2222
|
+
const l = this.hasMouseEnteredSubNavigation(), e = this.getTriangleCoordinates(l ? "fill-gap" : "safe-triangle");
|
|
2223
|
+
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), l && (this.triangleData = void 0));
|
|
2223
2224
|
}
|
|
2224
2225
|
}
|
|
2225
2226
|
const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-header-drawer-navigation" }, Yt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-secondary-action" }, Jt = { class: "db-header-meta-navigation" }, Qt = { class: "db-header-navigation-bar" }, Zt = { class: "db-header-brand-container" }, xt = { class: "db-header-navigation-container" }, ei = { class: "db-header-navigation" }, ai = { class: "db-header-primary-action" }, ti = { class: "db-header-action-container" }, ii = { class: "db-header-burger-menu-container" }, oi = { class: "db-header-secondary-action" }, Co = /* @__PURE__ */ G({
|
|
@@ -2242,13 +2243,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2242
2243
|
width: { default: void 0 }
|
|
2243
2244
|
},
|
|
2244
2245
|
setup(t) {
|
|
2245
|
-
const a = t,
|
|
2246
|
+
const a = t, l = d(!1), e = d(!1), i = d(null);
|
|
2246
2247
|
Y(() => {
|
|
2247
|
-
|
|
2248
|
+
l.value = !0;
|
|
2248
2249
|
}), D(
|
|
2249
|
-
() => [
|
|
2250
|
+
() => [l.value, i.value],
|
|
2250
2251
|
() => {
|
|
2251
|
-
|
|
2252
|
+
l.value && i.value && a.forceMobile && (da(i.value, {
|
|
2252
2253
|
key: "data-force-mobile",
|
|
2253
2254
|
value: "true"
|
|
2254
2255
|
}), e.value = !0);
|
|
@@ -2348,11 +2349,11 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2348
2349
|
text: { default: void 0 }
|
|
2349
2350
|
},
|
|
2350
2351
|
setup(t) {
|
|
2351
|
-
const a = t,
|
|
2352
|
+
const a = t, l = d(null);
|
|
2352
2353
|
return (e, i) => (m(), S("span", {
|
|
2353
2354
|
"aria-hidden": "true",
|
|
2354
2355
|
ref_key: "_ref",
|
|
2355
|
-
ref:
|
|
2356
|
+
ref: l,
|
|
2356
2357
|
id: e.id,
|
|
2357
2358
|
class: P(n(q)("db-icon", a.class)),
|
|
2358
2359
|
"data-icon": e.icon,
|
|
@@ -2407,13 +2408,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2407
2408
|
wrap: { type: [Boolean, String], default: void 0 }
|
|
2408
2409
|
},
|
|
2409
2410
|
setup(t) {
|
|
2410
|
-
const a = t,
|
|
2411
|
+
const a = t, l = d(null);
|
|
2411
2412
|
function e(i) {
|
|
2412
2413
|
a.onClick && a.onClick(i);
|
|
2413
2414
|
}
|
|
2414
2415
|
return (i, u) => (m(), S("a", {
|
|
2415
2416
|
ref_key: "_ref",
|
|
2416
|
-
ref:
|
|
2417
|
+
ref: l,
|
|
2417
2418
|
id: i.id,
|
|
2418
2419
|
class: P(n(q)("db-link", a.class)),
|
|
2419
2420
|
href: i.href,
|
|
@@ -2445,13 +2446,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2445
2446
|
autofocus: { type: [Boolean, String] }
|
|
2446
2447
|
},
|
|
2447
2448
|
setup(t) {
|
|
2448
|
-
const a = t,
|
|
2449
|
+
const a = t, l = d(Te), e = d(null);
|
|
2449
2450
|
return Y(() => {
|
|
2450
|
-
|
|
2451
|
+
l.value = a.id || "navigation-" + Q();
|
|
2451
2452
|
}), (i, u) => (m(), S("nav", {
|
|
2452
2453
|
ref_key: "_ref",
|
|
2453
2454
|
ref: e,
|
|
2454
|
-
id:
|
|
2455
|
+
id: l.value,
|
|
2455
2456
|
class: P(n(q)("db-navigation", a.class))
|
|
2456
2457
|
}, [
|
|
2457
2458
|
_("menu", null, [
|
|
@@ -2484,11 +2485,11 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2484
2485
|
text: { default: void 0 }
|
|
2485
2486
|
},
|
|
2486
2487
|
setup(t) {
|
|
2487
|
-
const a = t,
|
|
2488
|
+
const a = t, l = d(!1), e = d(!1), i = d(!0), u = d(!1), f = d(!1), p = d(
|
|
2488
2489
|
"sub-navigation-" + Q()
|
|
2489
2490
|
), v = d(void 0), s = d(null);
|
|
2490
2491
|
Y(() => {
|
|
2491
|
-
|
|
2492
|
+
l.value = !0;
|
|
2492
2493
|
}), D(
|
|
2493
2494
|
() => [a.subNavigationExpanded],
|
|
2494
2495
|
() => {
|
|
@@ -2502,10 +2503,10 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2502
2503
|
flush: "post"
|
|
2503
2504
|
}
|
|
2504
2505
|
), D(
|
|
2505
|
-
() => [
|
|
2506
|
+
() => [l.value, s.value],
|
|
2506
2507
|
() => {
|
|
2507
2508
|
var h;
|
|
2508
|
-
if (
|
|
2509
|
+
if (l.value && s.value) {
|
|
2509
2510
|
const r = s.value.querySelector("menu");
|
|
2510
2511
|
r && (((h = r.children) == null ? void 0 : h.length) > 0 ? (e.value = !0, v.value || (v.value = new Ht(
|
|
2511
2512
|
s.value,
|
|
@@ -2626,13 +2627,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2626
2627
|
text: { default: void 0 }
|
|
2627
2628
|
},
|
|
2628
2629
|
setup(t) {
|
|
2629
|
-
const a = t,
|
|
2630
|
+
const a = t, l = d(null);
|
|
2630
2631
|
function e(i) {
|
|
2631
2632
|
i && (i.stopPropagation(), a.onClose && a.onClose(i));
|
|
2632
2633
|
}
|
|
2633
2634
|
return (i, u) => (m(), S("article", {
|
|
2634
2635
|
ref_key: "_ref",
|
|
2635
|
-
ref:
|
|
2636
|
+
ref: l,
|
|
2636
2637
|
id: i.id,
|
|
2637
2638
|
class: P(n(q)("db-notification", a.class)),
|
|
2638
2639
|
"aria-live": i.ariaLive,
|
|
@@ -2683,11 +2684,11 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2683
2684
|
autofocus: { type: [Boolean, String] }
|
|
2684
2685
|
},
|
|
2685
2686
|
setup(t) {
|
|
2686
|
-
const a = t,
|
|
2687
|
+
const a = t, l = d(!1), e = d(null);
|
|
2687
2688
|
return typeof window < "u" && document && (a.documentOverflow === "hidden" || a.variant === "fixed" && a.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), Y(() => {
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
}) :
|
|
2689
|
+
l.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
2690
|
+
l.value = !0;
|
|
2691
|
+
}) : l.value = !0;
|
|
2691
2692
|
}), Ca(() => {
|
|
2692
2693
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
2693
2694
|
}), (i, u) => (m(), S("div", {
|
|
@@ -2697,7 +2698,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2697
2698
|
class: P(n(q)("db-page", a.class)),
|
|
2698
2699
|
"data-variant": i.variant,
|
|
2699
2700
|
"data-fade-in": n(R)(i.fadeIn),
|
|
2700
|
-
"data-fonts-loaded": n(R)(
|
|
2701
|
+
"data-fonts-loaded": n(R)(l.value)
|
|
2701
2702
|
}, [
|
|
2702
2703
|
A(i.$slots, "header"),
|
|
2703
2704
|
_("main", {
|
|
@@ -2726,14 +2727,14 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2726
2727
|
width: { default: void 0 }
|
|
2727
2728
|
},
|
|
2728
2729
|
setup(t) {
|
|
2729
|
-
const a = t,
|
|
2730
|
+
const a = t, l = d(!1), e = d(!1), i = d(void 0), u = d(void 0), f = d(null);
|
|
2730
2731
|
Y(() => {
|
|
2731
|
-
|
|
2732
|
+
l.value = !0;
|
|
2732
2733
|
}), D(
|
|
2733
|
-
() => [f.value,
|
|
2734
|
+
() => [f.value, l.value],
|
|
2734
2735
|
() => {
|
|
2735
|
-
if (f.value &&
|
|
2736
|
-
|
|
2736
|
+
if (f.value && l.value) {
|
|
2737
|
+
l.value = !1;
|
|
2737
2738
|
const h = w();
|
|
2738
2739
|
h && (h.ariaHasPopup = "true"), v(), f.value.addEventListener(
|
|
2739
2740
|
"keydown",
|
|
@@ -2864,7 +2865,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2864
2865
|
},
|
|
2865
2866
|
emits: ["update:value"],
|
|
2866
2867
|
setup(t, { emit: a }) {
|
|
2867
|
-
const
|
|
2868
|
+
const l = a, e = t, i = d(!1), u = d(void 0), f = d(null);
|
|
2868
2869
|
Y(() => {
|
|
2869
2870
|
i.value = !0, u.value = e.id ?? `radio-${Q()}`;
|
|
2870
2871
|
}), D(
|
|
@@ -2878,7 +2879,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2878
2879
|
}
|
|
2879
2880
|
);
|
|
2880
2881
|
function p(g) {
|
|
2881
|
-
e.onChange && e.onChange(g), de(
|
|
2882
|
+
e.onChange && e.onChange(g), de(l, g);
|
|
2882
2883
|
}
|
|
2883
2884
|
function v(g) {
|
|
2884
2885
|
e.onBlur && e.onBlur(g);
|
|
@@ -2926,13 +2927,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2926
2927
|
width: { default: void 0 }
|
|
2927
2928
|
},
|
|
2928
2929
|
setup(t) {
|
|
2929
|
-
const a = t,
|
|
2930
|
+
const a = t, l = d(Te), e = d(null);
|
|
2930
2931
|
return Y(() => {
|
|
2931
|
-
|
|
2932
|
+
l.value = a.id || "section-" + Q();
|
|
2932
2933
|
}), (i, u) => (m(), S("section", {
|
|
2933
2934
|
ref_key: "_ref",
|
|
2934
2935
|
ref: e,
|
|
2935
|
-
id:
|
|
2936
|
+
id: l.value,
|
|
2936
2937
|
class: P(n(q)("db-section", a.class)),
|
|
2937
2938
|
"data-spacing": i.spacing || "medium",
|
|
2938
2939
|
"data-width": i.width
|
|
@@ -2986,7 +2987,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2986
2987
|
},
|
|
2987
2988
|
emits: ["update:value"],
|
|
2988
2989
|
setup(t, { emit: a }) {
|
|
2989
|
-
const
|
|
2990
|
+
const l = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(""), g = d(void 0), T = d(""), w = d(!1), h = d(""), r = d(null);
|
|
2990
2991
|
Y(() => {
|
|
2991
2992
|
w.value = !0;
|
|
2992
2993
|
const B = e.id ?? `select-${Q()}`;
|
|
@@ -3005,8 +3006,8 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3005
3006
|
() => [i.value, w.value],
|
|
3006
3007
|
() => {
|
|
3007
3008
|
if (i.value && w.value) {
|
|
3008
|
-
const B = i.value + fe,
|
|
3009
|
-
u.value = B, f.value = i.value + pe, p.value = i.value + he, s.value =
|
|
3009
|
+
const B = i.value + fe, F = i.value + Re;
|
|
3010
|
+
u.value = B, f.value = i.value + pe, p.value = i.value + he, s.value = F, x(e.message, e.showMessage) ? g.value = B : g.value = F, L(), w.value = !1;
|
|
3010
3011
|
}
|
|
3011
3012
|
},
|
|
3012
3013
|
{
|
|
@@ -3027,29 +3028,29 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3027
3028
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3028
3029
|
}
|
|
3029
3030
|
function L() {
|
|
3030
|
-
var B,
|
|
3031
|
-
!((B = r.value) != null && B.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((
|
|
3031
|
+
var B, F, oe;
|
|
3032
|
+
!((B = r.value) != null && B.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((F = r.value) == null ? void 0 : F.validationMessage) || te, me() && (h.value = v.value, Z(() => h.value = "", 1e3))) : c() && ((oe = r.value) != null && oe.validity.valid) && e.required ? (g.value = f.value, me() && (h.value = e.validMessage ?? ge, Z(() => h.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = s.value;
|
|
3032
3033
|
}
|
|
3033
3034
|
function C(B) {
|
|
3034
3035
|
e.onClick && e.onClick(B);
|
|
3035
3036
|
}
|
|
3036
3037
|
function b(B) {
|
|
3037
|
-
e.input && e.input(B), T.value = B.target.value, e.onInput && e.onInput(B), de(
|
|
3038
|
+
e.input && e.input(B), T.value = B.target.value, e.onInput && e.onInput(B), de(l, B), L();
|
|
3038
3039
|
}
|
|
3039
3040
|
function k(B) {
|
|
3040
|
-
e.onChange && e.onChange(B), de(
|
|
3041
|
+
e.onChange && e.onChange(B), de(l, B), L();
|
|
3041
3042
|
}
|
|
3042
|
-
function
|
|
3043
|
+
function M(B) {
|
|
3043
3044
|
e.onBlur && e.onBlur(B);
|
|
3044
3045
|
}
|
|
3045
3046
|
function y(B) {
|
|
3046
3047
|
e.onFocus && e.onFocus(B);
|
|
3047
3048
|
}
|
|
3048
3049
|
function X(B) {
|
|
3049
|
-
var
|
|
3050
|
-
return B.label ?? ((
|
|
3050
|
+
var F;
|
|
3051
|
+
return B.label ?? ((F = B.value) == null ? void 0 : F.toString());
|
|
3051
3052
|
}
|
|
3052
|
-
return (B,
|
|
3053
|
+
return (B, F) => {
|
|
3053
3054
|
var oe;
|
|
3054
3055
|
return m(), S("div", {
|
|
3055
3056
|
class: P(n(q)("db-select", e.class)),
|
|
@@ -3073,14 +3074,14 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3073
3074
|
value: B.value ?? T.value,
|
|
3074
3075
|
autocomplete: B.autocomplete,
|
|
3075
3076
|
multiple: B.multiple,
|
|
3076
|
-
onInput:
|
|
3077
|
-
onClick:
|
|
3078
|
-
onChange:
|
|
3079
|
-
onBlur:
|
|
3080
|
-
onFocus:
|
|
3077
|
+
onInput: F[0] || (F[0] = async (K) => b(K)),
|
|
3078
|
+
onClick: F[1] || (F[1] = async (K) => C(K)),
|
|
3079
|
+
onChange: F[2] || (F[2] = async (K) => k(K)),
|
|
3080
|
+
onBlur: F[3] || (F[3] = async (K) => M(K)),
|
|
3081
|
+
onFocus: F[4] || (F[4] = async (K) => y(K)),
|
|
3081
3082
|
"aria-describedby": B.ariaDescribedBy ?? g.value
|
|
3082
3083
|
}, [
|
|
3083
|
-
|
|
3084
|
+
F[5] || (F[5] = _("option", { hidden: !0 }, null, -1)),
|
|
3084
3085
|
(oe = B.options) != null && oe.length ? (m(!0), S(W, { key: 0 }, ye(B.options, (K, _e) => (m(), S(W, { key: _e }, [
|
|
3085
3086
|
K.options ? (m(), S("optgroup", {
|
|
3086
3087
|
key: 0,
|
|
@@ -3153,10 +3154,10 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3153
3154
|
gap: { default: void 0 }
|
|
3154
3155
|
},
|
|
3155
3156
|
setup(t) {
|
|
3156
|
-
const a = t,
|
|
3157
|
+
const a = t, l = d(null);
|
|
3157
3158
|
return (e, i) => (m(), S("div", {
|
|
3158
3159
|
ref_key: "_ref",
|
|
3159
|
-
ref:
|
|
3160
|
+
ref: l,
|
|
3160
3161
|
id: e.id,
|
|
3161
3162
|
class: P(n(q)("db-stack", a.class)),
|
|
3162
3163
|
"data-gap": e.gap,
|
|
@@ -3203,12 +3204,12 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3203
3204
|
},
|
|
3204
3205
|
emits: ["update:checked"],
|
|
3205
3206
|
setup(t, { emit: a }) {
|
|
3206
|
-
const
|
|
3207
|
+
const l = a, e = t, i = d(void 0), u = d(null);
|
|
3207
3208
|
Y(() => {
|
|
3208
3209
|
i.value = e.id ?? `switch-${Q()}`;
|
|
3209
3210
|
});
|
|
3210
3211
|
function f(s) {
|
|
3211
|
-
e.onChange && e.onChange(s), de(
|
|
3212
|
+
e.onChange && e.onChange(s), de(l, s, "checked");
|
|
3212
3213
|
}
|
|
3213
3214
|
function p(s) {
|
|
3214
3215
|
e.onBlur && e.onBlur(s);
|
|
@@ -3274,7 +3275,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3274
3275
|
},
|
|
3275
3276
|
emits: ["update:checked"],
|
|
3276
3277
|
setup(t, { emit: a }) {
|
|
3277
|
-
const
|
|
3278
|
+
const l = a, e = t, i = d(!1), u = d(void 0), f = d(!1), p = d(null);
|
|
3278
3279
|
Y(() => {
|
|
3279
3280
|
f.value = !0;
|
|
3280
3281
|
}), D(
|
|
@@ -3298,7 +3299,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3298
3299
|
);
|
|
3299
3300
|
function v(s) {
|
|
3300
3301
|
var g;
|
|
3301
|
-
s.stopPropagation(), e.onChange && e.onChange(s), i.value = (g = s.target) == null ? void 0 : g.checked, de(
|
|
3302
|
+
s.stopPropagation(), e.onChange && e.onChange(s), i.value = (g = s.target) == null ? void 0 : g.checked, de(l, s, "checked");
|
|
3302
3303
|
}
|
|
3303
3304
|
return (s, g) => (m(), S("li", {
|
|
3304
3305
|
role: "none",
|
|
@@ -3341,13 +3342,13 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3341
3342
|
autofocus: { type: [Boolean, String] }
|
|
3342
3343
|
},
|
|
3343
3344
|
setup(t) {
|
|
3344
|
-
const a = t,
|
|
3345
|
+
const a = t, l = d(Te), e = d(null);
|
|
3345
3346
|
return Y(() => {
|
|
3346
|
-
|
|
3347
|
+
l.value = a.id || "tab-list-" + Q();
|
|
3347
3348
|
}), (i, u) => (m(), S("div", {
|
|
3348
3349
|
ref_key: "_ref",
|
|
3349
3350
|
ref: e,
|
|
3350
|
-
id:
|
|
3351
|
+
id: l.value,
|
|
3351
3352
|
class: P(n(q)("db-tab-list", a.class))
|
|
3352
3353
|
}, [
|
|
3353
3354
|
_("ul", Ri, [
|
|
@@ -3366,12 +3367,12 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3366
3367
|
autofocus: { type: [Boolean, String] }
|
|
3367
3368
|
},
|
|
3368
3369
|
setup(t) {
|
|
3369
|
-
const a = t,
|
|
3370
|
+
const a = t, l = d(null);
|
|
3370
3371
|
return Y(() => {
|
|
3371
3372
|
}), (e, i) => (m(), S("section", {
|
|
3372
3373
|
role: "tabpanel",
|
|
3373
3374
|
ref_key: "_ref",
|
|
3374
|
-
ref:
|
|
3375
|
+
ref: l,
|
|
3375
3376
|
class: P(n(q)("db-tab-panel", a.class)),
|
|
3376
3377
|
id: e.id
|
|
3377
3378
|
}, [
|
|
@@ -3404,9 +3405,9 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3404
3405
|
tabSelect: {}
|
|
3405
3406
|
},
|
|
3406
3407
|
setup(t) {
|
|
3407
|
-
const a = t,
|
|
3408
|
+
const a = t, l = d("tabs-" + Q()), e = d(""), i = d(!1), u = d(!1), f = d(!1), p = d(null), v = d(null);
|
|
3408
3409
|
Y(() => {
|
|
3409
|
-
|
|
3410
|
+
l.value = a.id || l.value, e.value = `tabs-${a.name || Q()}`, i.value = !0;
|
|
3410
3411
|
}), D(
|
|
3411
3412
|
() => [v.value, i.value],
|
|
3412
3413
|
() => {
|
|
@@ -3473,11 +3474,11 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3473
3474
|
)
|
|
3474
3475
|
);
|
|
3475
3476
|
for (const b of L) {
|
|
3476
|
-
const k = L.indexOf(b),
|
|
3477
|
-
if (y &&
|
|
3477
|
+
const k = L.indexOf(b), M = b.querySelector("label"), y = b.querySelector("input");
|
|
3478
|
+
if (y && M) {
|
|
3478
3479
|
if (!y.id) {
|
|
3479
3480
|
const X = `${e.value}-tab-${k}`;
|
|
3480
|
-
|
|
3481
|
+
M.setAttribute("for", X), y.id = X, y.setAttribute("name", e.value), C.length > k && y.setAttribute(
|
|
3481
3482
|
"aria-controls",
|
|
3482
3483
|
`${e.value}-tab-panel-${k}`
|
|
3483
3484
|
);
|
|
@@ -3502,9 +3503,9 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3502
3503
|
if (b && b.parentElement && ((L = b.parentElement) == null ? void 0 : L.nodeName) === "LI") {
|
|
3503
3504
|
const k = b.parentElement;
|
|
3504
3505
|
if (k) {
|
|
3505
|
-
const
|
|
3506
|
-
if (
|
|
3507
|
-
const y = Array.from(
|
|
3506
|
+
const M = k.parentElement;
|
|
3507
|
+
if (M) {
|
|
3508
|
+
const y = Array.from(M.childNodes).indexOf(k);
|
|
3508
3509
|
a.onIndexChange && a.onIndexChange(y), a.onTabSelect && a.onTabSelect(c);
|
|
3509
3510
|
}
|
|
3510
3511
|
}
|
|
@@ -3514,7 +3515,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3514
3515
|
return (c, L) => (m(), S("div", {
|
|
3515
3516
|
ref_key: "_ref",
|
|
3516
3517
|
ref: v,
|
|
3517
|
-
id:
|
|
3518
|
+
id: l.value,
|
|
3518
3519
|
class: P(n(q)("db-tabs", a.class)),
|
|
3519
3520
|
"data-orientation": c.orientation,
|
|
3520
3521
|
"data-scroll-behavior": c.behavior,
|
|
@@ -3633,7 +3634,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3633
3634
|
},
|
|
3634
3635
|
emits: ["update:value"],
|
|
3635
3636
|
setup(t, { emit: a }) {
|
|
3636
|
-
const
|
|
3637
|
+
const l = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(""), T = d(""), w = d(null);
|
|
3637
3638
|
Y(() => {
|
|
3638
3639
|
const k = e.id ?? `textarea-${Q()}`;
|
|
3639
3640
|
i.value = k, u.value = k + fe, f.value = k + pe, p.value = k + he, v.value = e.invalidMessage || te;
|
|
@@ -3673,14 +3674,14 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3673
3674
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3674
3675
|
}
|
|
3675
3676
|
function r() {
|
|
3676
|
-
var k,
|
|
3677
|
-
!((k = w.value) != null && k.validity.valid) || e.validation === "invalid" ? (s.value = p.value, v.value = e.invalidMessage || ((
|
|
3677
|
+
var k, M, y;
|
|
3678
|
+
!((k = w.value) != null && k.validity.valid) || e.validation === "invalid" ? (s.value = p.value, v.value = e.invalidMessage || ((M = w.value) == null ? void 0 : M.validationMessage) || te, me() && (T.value = v.value, Z(() => T.value = "", 1e3))) : h() && ((y = w.value) != null && y.validity.valid) && (e.required || e.minLength || e.maxLength) ? (s.value = f.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? s.value = u.value : s.value = void 0;
|
|
3678
3679
|
}
|
|
3679
3680
|
function c(k) {
|
|
3680
|
-
e.input && e.input(k), g.value = k.target.value, e.onInput && e.onInput(k), de(
|
|
3681
|
+
e.input && e.input(k), g.value = k.target.value, e.onInput && e.onInput(k), de(l, k), r();
|
|
3681
3682
|
}
|
|
3682
3683
|
function L(k) {
|
|
3683
|
-
e.onChange && e.onChange(k), de(
|
|
3684
|
+
e.onChange && e.onChange(k), de(l, k), r();
|
|
3684
3685
|
}
|
|
3685
3686
|
function C(k) {
|
|
3686
3687
|
e.onBlur && e.onBlur(k);
|
|
@@ -3688,7 +3689,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3688
3689
|
function b(k) {
|
|
3689
3690
|
e.onFocus && e.onFocus(k);
|
|
3690
3691
|
}
|
|
3691
|
-
return (k,
|
|
3692
|
+
return (k, M) => (m(), S("div", {
|
|
3692
3693
|
class: P(n(q)("db-textarea", e.class)),
|
|
3693
3694
|
"data-variant": k.variant,
|
|
3694
3695
|
"data-hide-asterisk": n(ie)(k.showRequiredAsterisk),
|
|
@@ -3714,10 +3715,10 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3714
3715
|
wrap: k.wrap,
|
|
3715
3716
|
spellcheck: k.spellCheck,
|
|
3716
3717
|
autocomplete: k.autocomplete,
|
|
3717
|
-
onInput:
|
|
3718
|
-
onChange:
|
|
3719
|
-
onBlur:
|
|
3720
|
-
onFocus:
|
|
3718
|
+
onInput: M[0] || (M[0] = async (y) => c(y)),
|
|
3719
|
+
onChange: M[1] || (M[1] = async (y) => L(y)),
|
|
3720
|
+
onBlur: M[2] || (M[2] = async (y) => C(y)),
|
|
3721
|
+
onFocus: M[3] || (M[3] = async (y) => b(y)),
|
|
3721
3722
|
value: k.value ?? g.value,
|
|
3722
3723
|
"aria-describedby": k.ariaDescribedBy ?? s.value,
|
|
3723
3724
|
placeholder: k.placeholder ?? n(ta),
|