@db-ux/v-core-components 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/components/switch/model.d.ts +4 -2
- package/dist/db-ux.es.js +431 -427
- package/dist/db-ux.umd.js +1 -1
- package/package.json +4 -4
package/dist/db-ux.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as W, ref as o, onMounted as
|
|
2
|
-
const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET",
|
|
1
|
+
import { defineComponent as W, ref as o, onMounted as Y, watch as C, createElementBlock as y, openBlock as v, normalizeClass as U, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as F, Fragment as H, createTextVNode as D, toDisplayString as B, renderList as he, createBlock as J, onUnmounted as ge, createVNode as te, withCtx as G } from "vue";
|
|
2
|
+
const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", $a = "Back", xa = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close", Ki = "density", Yi = "color";
|
|
3
3
|
var ta = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(ta || {});
|
|
4
4
|
const Ji = Object.entries(ta).map(([, e]) => e);
|
|
5
5
|
var ia = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(ia || {}), la = /* @__PURE__ */ ((e) => (e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e))(la || {});
|
|
@@ -48,7 +48,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
48
48
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
49
49
|
const e = navigator.userAgent, t = /iP(ad|hone|od)/.test(e), l = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
50
50
|
return t && l;
|
|
51
|
-
},
|
|
51
|
+
}, K = (e, t) => new Promise(() => setTimeout(e, t)), V = (e) => {
|
|
52
52
|
if (e != null)
|
|
53
53
|
return String(typeof e == "string" ? !!e : e);
|
|
54
54
|
}, q = (e, t) => {
|
|
@@ -82,7 +82,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
82
82
|
},
|
|
83
83
|
setup(e) {
|
|
84
84
|
const t = e, l = o(Ie), a = o(!1), i = o(void 0), s = o(!1), u = o(null);
|
|
85
|
-
|
|
85
|
+
Y(() => {
|
|
86
86
|
l.value = t.id || "accordion-item-" + Q(), t.defaultOpen && (a.value = t.defaultOpen), s.value = !0;
|
|
87
87
|
}), C(
|
|
88
88
|
() => [u.value, s.value],
|
|
@@ -120,17 +120,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
120
120
|
open: a.value
|
|
121
121
|
}, [
|
|
122
122
|
E("summary", {
|
|
123
|
-
onClick: h[0] || (h[0] = async (
|
|
123
|
+
onClick: h[0] || (h[0] = async (k) => f(k))
|
|
124
124
|
}, [
|
|
125
125
|
e.headlinePlain ? (v(), y(H, { key: 0 }, [
|
|
126
|
-
D(
|
|
126
|
+
D(B(e.headlinePlain), 1)
|
|
127
127
|
], 64)) : z("", !0),
|
|
128
|
-
e.headlinePlain ? z("", !0) :
|
|
128
|
+
e.headlinePlain ? z("", !0) : F(g.$slots, "headline", { key: 1 })
|
|
129
129
|
]),
|
|
130
130
|
E("div", null, [
|
|
131
131
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
132
|
-
D(
|
|
133
|
-
], 64)) :
|
|
132
|
+
D(B(e.text), 1)
|
|
133
|
+
], 64)) : F(g.$slots, "default", { key: 1 })
|
|
134
134
|
])
|
|
135
135
|
], 8, Va)
|
|
136
136
|
], 10, za));
|
|
@@ -152,7 +152,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
152
152
|
},
|
|
153
153
|
setup(e) {
|
|
154
154
|
const t = e, l = o(Ie), a = o(""), i = o(!1), s = o(!1), u = o(null);
|
|
155
|
-
|
|
155
|
+
Y(() => {
|
|
156
156
|
l.value = t.id || "accordion-" + Q(), i.value = !0, s.value = !0;
|
|
157
157
|
}), C(
|
|
158
158
|
() => [i.value, t.name, t.behavior, l.value],
|
|
@@ -186,8 +186,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
186
186
|
if (g) {
|
|
187
187
|
const h = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
|
|
188
188
|
Array.from(g).forEach(
|
|
189
|
-
(
|
|
190
|
-
h?.includes(x) && (
|
|
189
|
+
(k, x) => {
|
|
190
|
+
h?.includes(x) && (k.open = !0);
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
@@ -215,12 +215,12 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
215
215
|
class: U(n(O)("db-accordion", t.class)),
|
|
216
216
|
"data-variant": e.variant
|
|
217
217
|
}, [
|
|
218
|
-
e.items ? z("", !0) :
|
|
219
|
-
e.items ? (v(!0), y(H, { key: 1 }, he(f(), (
|
|
218
|
+
e.items ? z("", !0) : F(g.$slots, "default", { key: 0 }),
|
|
219
|
+
e.items ? (v(!0), y(H, { key: 1 }, he(f(), (k, x) => (v(), J(Pa, {
|
|
220
220
|
key: `accordion-item-${x}`,
|
|
221
|
-
headlinePlain:
|
|
222
|
-
disabled:
|
|
223
|
-
text:
|
|
221
|
+
headlinePlain: k.headlinePlain,
|
|
222
|
+
disabled: k.disabled,
|
|
223
|
+
text: k.text
|
|
224
224
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : z("", !0)
|
|
225
225
|
], 10, qa));
|
|
226
226
|
}
|
|
@@ -241,7 +241,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
241
241
|
},
|
|
242
242
|
setup(e) {
|
|
243
243
|
const t = e, l = o(!1), a = o(null);
|
|
244
|
-
return
|
|
244
|
+
return Y(() => {
|
|
245
245
|
l.value = !0;
|
|
246
246
|
}), C(
|
|
247
247
|
() => [a.value, l.value],
|
|
@@ -267,8 +267,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
267
267
|
"data-label": e.placement?.startsWith("corner") && (e.label ?? n(ye))
|
|
268
268
|
}, [
|
|
269
269
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
270
|
-
D(
|
|
271
|
-
], 64)) :
|
|
270
|
+
D(B(e.text), 1)
|
|
271
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
272
272
|
], 10, Ua));
|
|
273
273
|
}
|
|
274
274
|
}), ol = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Oa = ["data-icon", "data-show-icon", "id"], dl = /* @__PURE__ */ W({
|
|
@@ -295,8 +295,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
295
295
|
class: U(n(O)("db-brand", t.class))
|
|
296
296
|
}, [
|
|
297
297
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
298
|
-
D(
|
|
299
|
-
], 64)) :
|
|
298
|
+
D(B(e.text), 1)
|
|
299
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
300
300
|
], 10, Oa));
|
|
301
301
|
}
|
|
302
302
|
}), Ga = ["id", "type", "disabled", "data-icon", "data-show-icon", "data-icon-trailing", "data-show-icon-trailing", "data-size", "data-width", "data-variant", "data-no-text", "name", "form", "value"], we = /* @__PURE__ */ W({
|
|
@@ -354,8 +354,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
354
354
|
onClick: u[0] || (u[0] = async (f) => i(f))
|
|
355
355
|
}, [
|
|
356
356
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
357
|
-
D(
|
|
358
|
-
], 64)) :
|
|
357
|
+
D(B(e.text), 1)
|
|
358
|
+
], 64)) : F(s.$slots, "default", { key: 1 })
|
|
359
359
|
], 10, Ga));
|
|
360
360
|
}
|
|
361
361
|
}), sl = ["outlined", "brand", "filled", "ghost"], ul = ["button", "reset", "submit"], Wa = ["id", "data-behavior", "data-elevation-level", "data-spacing"], cl = /* @__PURE__ */ W({
|
|
@@ -386,7 +386,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
386
386
|
"data-spacing": e.spacing,
|
|
387
387
|
onClick: s[0] || (s[0] = async (u) => a(u))
|
|
388
388
|
}, [
|
|
389
|
-
|
|
389
|
+
F(i.$slots, "default")
|
|
390
390
|
], 10, Wa));
|
|
391
391
|
}
|
|
392
392
|
}), rl = ["static", "interactive"], vl = ["1", "2", "3"], de = (e, t, l = "value") => {
|
|
@@ -399,7 +399,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
399
399
|
}), e._dbFormResetListenerAdded = !0);
|
|
400
400
|
}, da = (e, t, l, a) => {
|
|
401
401
|
Me(e, (i) => {
|
|
402
|
-
|
|
402
|
+
K(() => {
|
|
403
403
|
const s = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked, u = {
|
|
404
404
|
...i,
|
|
405
405
|
target: {
|
|
@@ -412,7 +412,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
412
412
|
}, a);
|
|
413
413
|
}, Ue = (e, t, l, a) => {
|
|
414
414
|
Me(e, (i) => {
|
|
415
|
-
|
|
415
|
+
K(() => {
|
|
416
416
|
const s = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value, u = {
|
|
417
417
|
...i,
|
|
418
418
|
target: {
|
|
@@ -450,11 +450,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
450
450
|
"data-show-icon-leading": n(V)(e.showIcon ?? !0)
|
|
451
451
|
}, [
|
|
452
452
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
453
|
-
D(
|
|
454
|
-
], 64)) :
|
|
453
|
+
D(B(e.text), 1)
|
|
454
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
455
455
|
], 10, Ha));
|
|
456
456
|
}
|
|
457
|
-
}), Xa = ["data-size", "data-hide-asterisk", "data-hide-label"], ja = ["for"],
|
|
457
|
+
}), Xa = ["data-size", "data-hide-asterisk", "data-hide-label"], ja = ["for"], Ka = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ya = {
|
|
458
458
|
"data-visually-hidden": "true",
|
|
459
459
|
role: "status"
|
|
460
460
|
}, fl = /* @__PURE__ */ W({
|
|
@@ -495,8 +495,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
495
495
|
},
|
|
496
496
|
emits: ["update:checked"],
|
|
497
497
|
setup(e, { emit: t }) {
|
|
498
|
-
const l = t, a = e, i = o(!1), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0),
|
|
499
|
-
|
|
498
|
+
const l = t, a = e, i = o(!1), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(""), b = o(void 0), c = o(null);
|
|
499
|
+
Y(() => {
|
|
500
500
|
i.value = !0;
|
|
501
501
|
const L = a.id ?? `checkbox-${Q()}`;
|
|
502
502
|
s.value = L, u.value = L + ce, f.value = L + re, g.value = L + ve, h.value = a.invalidMessage || ee;
|
|
@@ -516,7 +516,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
516
516
|
() => {
|
|
517
517
|
if (s.value) {
|
|
518
518
|
const L = s.value + ce;
|
|
519
|
-
u.value = L, f.value = s.value + re, g.value = s.value + ve, _(a.message, a.showMessage) && (
|
|
519
|
+
u.value = L, f.value = s.value + re, g.value = s.value + ve, _(a.message, a.showMessage) && (k.value = L), m();
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
522
|
{
|
|
@@ -545,17 +545,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
545
545
|
() => [c.value],
|
|
546
546
|
() => {
|
|
547
547
|
if (c.value) {
|
|
548
|
-
let
|
|
549
|
-
|
|
548
|
+
let S = b.value;
|
|
549
|
+
S || (S = new AbortController(), b.value = S), da(
|
|
550
550
|
c.value,
|
|
551
551
|
{
|
|
552
552
|
checked: a.checked,
|
|
553
553
|
defaultChecked: void 0
|
|
554
554
|
},
|
|
555
|
-
(
|
|
556
|
-
I(
|
|
555
|
+
(M) => {
|
|
556
|
+
I(M);
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
S.signal
|
|
559
559
|
);
|
|
560
560
|
}
|
|
561
561
|
},
|
|
@@ -568,18 +568,18 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
568
568
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
569
569
|
}
|
|
570
570
|
function m() {
|
|
571
|
-
!c.value?.validity.valid || a.validation === "invalid" ? (
|
|
571
|
+
!c.value?.validity.valid || a.validation === "invalid" ? (k.value = g.value, h.value = a.invalidMessage || c.value?.validationMessage || ee, ue() && (x.value = h.value, K(() => x.value = "", 1e3))) : d() && c.value?.validity.valid && a.required ? (k.value = f.value, ue() && (x.value = a.validMessage ?? se, K(() => x.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : k.value = void 0;
|
|
572
572
|
}
|
|
573
|
-
function I(L,
|
|
573
|
+
function I(L, S) {
|
|
574
574
|
a.onChange && a.onChange(L), de(l, L, "checked"), m();
|
|
575
575
|
}
|
|
576
576
|
function T(L) {
|
|
577
577
|
a.onBlur && a.onBlur(L);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function w(L) {
|
|
580
580
|
a.onFocus && a.onFocus(L);
|
|
581
581
|
}
|
|
582
|
-
return (L,
|
|
582
|
+
return (L, S) => (v(), y("div", {
|
|
583
583
|
class: U(n(O)("db-checkbox", a.class)),
|
|
584
584
|
"data-size": e.size,
|
|
585
585
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
@@ -598,14 +598,14 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
598
598
|
disabled: n(q)(e.disabled, "disabled"),
|
|
599
599
|
value: e.value,
|
|
600
600
|
required: n(q)(e.required, "required"),
|
|
601
|
-
onChange:
|
|
602
|
-
onBlur:
|
|
603
|
-
onFocus:
|
|
604
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
605
|
-
}, null, 40,
|
|
601
|
+
onChange: S[0] || (S[0] = async (M) => I(M)),
|
|
602
|
+
onBlur: S[1] || (S[1] = async (M) => T(M)),
|
|
603
|
+
onFocus: S[2] || (S[2] = async (M) => w(M)),
|
|
604
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
605
|
+
}, null, 40, Ka),
|
|
606
606
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
607
|
-
D(
|
|
608
|
-
], 64)) :
|
|
607
|
+
D(B(e.label), 1)
|
|
608
|
+
], 64)) : F(L.$slots, "default", { key: 1 })
|
|
609
609
|
], 8, ja),
|
|
610
610
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
611
611
|
key: 0,
|
|
@@ -614,7 +614,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
614
614
|
id: u.value
|
|
615
615
|
}, {
|
|
616
616
|
default: G(() => [
|
|
617
|
-
D(
|
|
617
|
+
D(B(e.message), 1)
|
|
618
618
|
]),
|
|
619
619
|
_: 1
|
|
620
620
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -625,7 +625,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
625
625
|
id: f.value
|
|
626
626
|
}, {
|
|
627
627
|
default: G(() => [
|
|
628
|
-
D(
|
|
628
|
+
D(B(e.validMessage || n(se)), 1)
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
631
631
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -635,11 +635,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
635
635
|
id: g.value
|
|
636
636
|
}, {
|
|
637
637
|
default: G(() => [
|
|
638
|
-
D(
|
|
638
|
+
D(B(h.value), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
}, 8, ["id"]),
|
|
642
|
-
E("span",
|
|
642
|
+
E("span", Ya, B(x.value), 1)
|
|
643
643
|
], 10, Xa));
|
|
644
644
|
}
|
|
645
645
|
});
|
|
@@ -698,13 +698,13 @@ const Ja = (e) => {
|
|
|
698
698
|
innerHeight: s,
|
|
699
699
|
innerWidth: u
|
|
700
700
|
} = window;
|
|
701
|
-
let f = t < 0, g = l > s, h = a < 0,
|
|
701
|
+
let f = t < 0, g = l > s, h = a < 0, k = i > u;
|
|
702
702
|
const x = e.dataset.outsideVy, b = e.dataset.outsideVx, c = e?.parentElement?.getBoundingClientRect();
|
|
703
|
-
return c && (x && (e.dataset.outsideVy === "top" ? f = c.top - (l - c.bottom) < 0 : g = c.bottom + (c.top - t) > s), b && (e.dataset.outsideVx === "left" ? h = c.left - (i - c.right) < 0 :
|
|
703
|
+
return c && (x && (e.dataset.outsideVy === "top" ? f = c.top - (l - c.bottom) < 0 : g = c.bottom + (c.top - t) > s), b && (e.dataset.outsideVx === "left" ? h = c.left - (i - c.right) < 0 : k = c.right + (c.left - a) > u)), {
|
|
704
704
|
outTop: f,
|
|
705
705
|
outBottom: g,
|
|
706
706
|
outLeft: h,
|
|
707
|
-
outRight:
|
|
707
|
+
outRight: k
|
|
708
708
|
};
|
|
709
709
|
}, Qa = (e) => {
|
|
710
710
|
const {
|
|
@@ -730,9 +730,9 @@ const Ja = (e) => {
|
|
|
730
730
|
width: f,
|
|
731
731
|
right: g,
|
|
732
732
|
left: h,
|
|
733
|
-
correctedPlacement:
|
|
733
|
+
correctedPlacement: k
|
|
734
734
|
} = sa(e, t, l);
|
|
735
|
-
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`),
|
|
735
|
+
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${g - u}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${a - s}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
|
|
736
736
|
}, sa = (e, t, l) => {
|
|
737
737
|
if (!e || !t)
|
|
738
738
|
return {
|
|
@@ -756,14 +756,14 @@ const Ja = (e) => {
|
|
|
756
756
|
left: g,
|
|
757
757
|
width: h
|
|
758
758
|
} = t.getBoundingClientRect(), {
|
|
759
|
-
innerHeight:
|
|
759
|
+
innerHeight: k,
|
|
760
760
|
innerWidth: x
|
|
761
761
|
} = window;
|
|
762
762
|
let b = a.height, c = a.width;
|
|
763
763
|
(l === "bottom" || l === "top") && (c = c / 2), (l === "left" || l === "right") && (b = b / 2);
|
|
764
|
-
const d = u + b >
|
|
765
|
-
let
|
|
766
|
-
return l.startsWith("bottom") ? d ? (
|
|
764
|
+
const d = u + b > k, m = i - b < 0, I = g - c < 0, T = f + c > x;
|
|
765
|
+
let w = l;
|
|
766
|
+
return l.startsWith("bottom") ? d ? (w = l?.replace("bottom", "top"), I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end")) : I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end") : l.startsWith("top") ? m ? (w = l?.replace("top", "bottom"), I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end")) : I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end") : l.startsWith("left") ? I ? (w = l?.replace("left", "right"), d && m ? w = "right" : d ? w = "right-end" : m && (w = "right-start")) : d && m ? w = "left" : d ? w = "left-end" : m && (w = "left-start") : w.startsWith("right") && (T ? (w = l?.replace("right", "left"), d && m ? w = "left" : d ? w = "left-end" : m && (w = "left-start")) : d && m ? w = "right" : d ? w = "right-end" : m && (w = "right-start")), {
|
|
767
767
|
top: i,
|
|
768
768
|
bottom: u,
|
|
769
769
|
right: f,
|
|
@@ -772,9 +772,9 @@ const Ja = (e) => {
|
|
|
772
772
|
left: g,
|
|
773
773
|
childHeight: a.height,
|
|
774
774
|
childWidth: a.width,
|
|
775
|
-
correctedPlacement:
|
|
775
|
+
correctedPlacement: w,
|
|
776
776
|
innerWidth: x,
|
|
777
|
-
innerHeight:
|
|
777
|
+
innerHeight: k
|
|
778
778
|
};
|
|
779
779
|
}, ua = (e, t, l) => {
|
|
780
780
|
const a = getComputedStyle(e).getPropertyValue("--db-popover-distance") ?? "0px", {
|
|
@@ -784,7 +784,7 @@ const Ja = (e) => {
|
|
|
784
784
|
childHeight: f,
|
|
785
785
|
childWidth: g,
|
|
786
786
|
right: h,
|
|
787
|
-
left:
|
|
787
|
+
left: k,
|
|
788
788
|
bottom: x,
|
|
789
789
|
correctedPlacement: b,
|
|
790
790
|
innerWidth: c,
|
|
@@ -807,19 +807,19 @@ const Ja = (e) => {
|
|
|
807
807
|
const m = x - f;
|
|
808
808
|
e.style.insetBlockStart = `${m < 0 ? 0 : m}px`, e.style.insetBlockEnd = `${x}px`;
|
|
809
809
|
} else if (b === "top" || b === "bottom")
|
|
810
|
-
e.style.insetInlineStart = `${
|
|
810
|
+
e.style.insetInlineStart = `${k + u / 2}px`;
|
|
811
811
|
else if (b === "top-start" || b === "bottom-start") {
|
|
812
|
-
const m =
|
|
813
|
-
e.style.insetInlineStart = `${
|
|
812
|
+
const m = k + g;
|
|
813
|
+
e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${m > c ? c : m}px`;
|
|
814
814
|
} else if (b === "top-end" || b === "bottom-end") {
|
|
815
|
-
const m =
|
|
815
|
+
const m = k - g;
|
|
816
816
|
e.style.insetInlineStart = `${h - g}px`, e.style.insetInlineEnd = `${m < 0 ? 0 : m}px`;
|
|
817
817
|
}
|
|
818
818
|
if (b?.startsWith("right")) {
|
|
819
819
|
const m = h + g;
|
|
820
820
|
e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${m > c ? c : m}px + ${a})`;
|
|
821
821
|
} else if (b?.startsWith("left")) {
|
|
822
|
-
const m =
|
|
822
|
+
const m = k - g;
|
|
823
823
|
e.style.insetInlineStart = `calc(${m < 0 ? 0 : m}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
|
|
824
824
|
} else if (b?.startsWith("top")) {
|
|
825
825
|
const m = i - f;
|
|
@@ -849,7 +849,7 @@ const Ja = (e) => {
|
|
|
849
849
|
class: U(n(O)("db-custom-select-dropdown db-card", t.class)),
|
|
850
850
|
"data-width": e.width
|
|
851
851
|
}, [
|
|
852
|
-
|
|
852
|
+
F(a.$slots, "default")
|
|
853
853
|
], 10, _a));
|
|
854
854
|
}
|
|
855
855
|
}), at = ["id", "data-divider"], tt = ["data-icon", "data-show-icon", "data-icon-trailing"], it = ["type", "name", "form", "checked", "disabled", "value"], lt = { key: 1 }, nt = /* @__PURE__ */ W({
|
|
@@ -877,7 +877,7 @@ const Ja = (e) => {
|
|
|
877
877
|
emits: ["update:checked"],
|
|
878
878
|
setup(e, { emit: t }) {
|
|
879
879
|
const l = t, a = e, i = o(void 0), s = o(!1), u = o(null);
|
|
880
|
-
|
|
880
|
+
Y(() => {
|
|
881
881
|
i.value = a.id ?? `custom-select-list-item-${Q()}`;
|
|
882
882
|
}), C(
|
|
883
883
|
() => [a.isGroupTitle, a.showDivider],
|
|
@@ -896,7 +896,7 @@ const Ja = (e) => {
|
|
|
896
896
|
if (!(a.isGroupTitle || a.type === "checkbox"))
|
|
897
897
|
return q(a.checked, "checked") ? "check" : "x_placeholder";
|
|
898
898
|
}
|
|
899
|
-
return (h,
|
|
899
|
+
return (h, k) => (v(), y("li", {
|
|
900
900
|
ref_key: "_ref",
|
|
901
901
|
ref: u,
|
|
902
902
|
id: i.value,
|
|
@@ -908,7 +908,7 @@ const Ja = (e) => {
|
|
|
908
908
|
),
|
|
909
909
|
"data-divider": n(V)(s.value)
|
|
910
910
|
}, [
|
|
911
|
-
e.isGroupTitle ? (v(), y("span", lt,
|
|
911
|
+
e.isGroupTitle ? (v(), y("span", lt, B(e.groupTitle), 1)) : (v(), y("label", {
|
|
912
912
|
key: 0,
|
|
913
913
|
"data-icon": e.type !== "checkbox" && e.icon ? e.icon : void 0,
|
|
914
914
|
"data-show-icon": n(V)(e.showIcon),
|
|
@@ -923,11 +923,11 @@ const Ja = (e) => {
|
|
|
923
923
|
checked: n(q)(e.checked, "checked"),
|
|
924
924
|
disabled: n(q)(e.disabled, "disabled"),
|
|
925
925
|
value: e.value,
|
|
926
|
-
onChange:
|
|
926
|
+
onChange: k[0] || (k[0] = async (x) => f(x))
|
|
927
927
|
}, null, 40, it),
|
|
928
928
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
929
|
-
D(
|
|
930
|
-
], 64)) :
|
|
929
|
+
D(B(e.label), 1)
|
|
930
|
+
], 64)) : F(h.$slots, "default", { key: 1 })
|
|
931
931
|
], 8, tt))
|
|
932
932
|
], 10, at));
|
|
933
933
|
}
|
|
@@ -953,7 +953,7 @@ const Ja = (e) => {
|
|
|
953
953
|
class: U(n(O)("db-custom-select-list", t.class))
|
|
954
954
|
}, [
|
|
955
955
|
E("ul", null, [
|
|
956
|
-
|
|
956
|
+
F(a.$slots, "default")
|
|
957
957
|
])
|
|
958
958
|
], 10, ot));
|
|
959
959
|
}
|
|
@@ -1024,10 +1024,10 @@ const Ja = (e) => {
|
|
|
1024
1024
|
},
|
|
1025
1025
|
emits: ["update:value"],
|
|
1026
1026
|
setup(e, { emit: t }) {
|
|
1027
|
-
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0),
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1030
|
-
i.value =
|
|
1027
|
+
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(void 0), b = o(""), c = o(void 0), d = o(null);
|
|
1028
|
+
Y(() => {
|
|
1029
|
+
const N = a.id ?? `input-${Q()}`;
|
|
1030
|
+
i.value = N, s.value = N + ce, u.value = N + re, f.value = N + ve, h.value = N + Qe, g.value = a.invalidMessage || ee;
|
|
1031
1031
|
}), ge(() => {
|
|
1032
1032
|
c.value?.abort();
|
|
1033
1033
|
}), C(
|
|
@@ -1043,8 +1043,8 @@ const Ja = (e) => {
|
|
|
1043
1043
|
() => [i.value],
|
|
1044
1044
|
() => {
|
|
1045
1045
|
if (i.value) {
|
|
1046
|
-
const
|
|
1047
|
-
s.value =
|
|
1046
|
+
const N = i.value + ce;
|
|
1047
|
+
s.value = N, u.value = i.value + re, f.value = i.value + ve, h.value = a.dataListId ?? i.value + Qe, _(a.message, a.showMessage) && (k.value = N), I();
|
|
1048
1048
|
}
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
@@ -1072,7 +1072,7 @@ const Ja = (e) => {
|
|
|
1072
1072
|
defaultValue: void 0
|
|
1073
1073
|
},
|
|
1074
1074
|
(A) => {
|
|
1075
|
-
|
|
1075
|
+
w(A), T(A);
|
|
1076
1076
|
},
|
|
1077
1077
|
X.signal
|
|
1078
1078
|
);
|
|
@@ -1087,30 +1087,30 @@ const Ja = (e) => {
|
|
|
1087
1087
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1088
1088
|
}
|
|
1089
1089
|
function I() {
|
|
1090
|
-
!d.value?.validity.valid || a.validation === "invalid" ? (
|
|
1090
|
+
!d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || d.value?.validationMessage || ee, ue() && (b.value = g.value, K(() => b.value = "", 1e3))) : m() && d.value?.validity.valid && (a.required || a.minLength || a.maxLength || a.pattern) ? (k.value = u.value, ue() && (b.value = a.validMessage ?? se, K(() => b.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = s.value : k.value = void 0;
|
|
1091
1091
|
}
|
|
1092
|
-
function T(
|
|
1093
|
-
a.input && a.input(
|
|
1092
|
+
function T(N, X) {
|
|
1093
|
+
a.input && a.input(N), x.value = N.target.value, a.onInput && a.onInput(N), de(l, N), I();
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
a.onChange && a.onChange(
|
|
1095
|
+
function w(N, X) {
|
|
1096
|
+
a.onChange && a.onChange(N), de(l, N), I();
|
|
1097
1097
|
}
|
|
1098
|
-
function L(
|
|
1099
|
-
a.onBlur && a.onBlur(
|
|
1098
|
+
function L(N) {
|
|
1099
|
+
a.onBlur && a.onBlur(N);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
a.onFocus && a.onFocus(
|
|
1101
|
+
function S(N) {
|
|
1102
|
+
a.onFocus && a.onFocus(N);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const
|
|
1104
|
+
function M() {
|
|
1105
|
+
const N = a.dataList;
|
|
1106
1106
|
return Array.from(
|
|
1107
|
-
(Ma(
|
|
1107
|
+
(Ma(N) ? N?.map((X) => ({
|
|
1108
1108
|
value: X,
|
|
1109
1109
|
label: void 0
|
|
1110
|
-
})) :
|
|
1110
|
+
})) : N) || []
|
|
1111
1111
|
);
|
|
1112
1112
|
}
|
|
1113
|
-
return (
|
|
1113
|
+
return (N, X) => (v(), y("div", {
|
|
1114
1114
|
class: U(n(O)("db-input", a.class)),
|
|
1115
1115
|
"data-variant": e.variant,
|
|
1116
1116
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -1120,7 +1120,7 @@ const Ja = (e) => {
|
|
|
1120
1120
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
1121
1121
|
"data-show-icon-trailing": n(V)(e.showIconTrailing)
|
|
1122
1122
|
}, [
|
|
1123
|
-
E("label", { for: i.value },
|
|
1123
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, ut),
|
|
1124
1124
|
E("input", {
|
|
1125
1125
|
"aria-invalid": e.validation === "invalid",
|
|
1126
1126
|
"data-custom-validity": e.validation,
|
|
@@ -1149,11 +1149,11 @@ const Ja = (e) => {
|
|
|
1149
1149
|
enterKeyHint: e.enterkeyhint,
|
|
1150
1150
|
inputMode: e.inputmode,
|
|
1151
1151
|
onInput: X[0] || (X[0] = async (A) => T(A)),
|
|
1152
|
-
onChange: X[1] || (X[1] = async (A) =>
|
|
1152
|
+
onChange: X[1] || (X[1] = async (A) => w(A)),
|
|
1153
1153
|
onBlur: X[2] || (X[2] = async (A) => L(A)),
|
|
1154
|
-
onFocus: X[3] || (X[3] = async (A) =>
|
|
1154
|
+
onFocus: X[3] || (X[3] = async (A) => S(A)),
|
|
1155
1155
|
list: e.dataList && h.value,
|
|
1156
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
1156
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value,
|
|
1157
1157
|
role: ["datetime-local", "date", "time", "week", "month", "color"].includes(
|
|
1158
1158
|
e.type ?? ""
|
|
1159
1159
|
) && n(Na)() ? "textbox" : void 0
|
|
@@ -1162,12 +1162,12 @@ const Ja = (e) => {
|
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
id: h.value
|
|
1164
1164
|
}, [
|
|
1165
|
-
(v(!0), y(H, null, he(
|
|
1165
|
+
(v(!0), y(H, null, he(M(), (A) => (v(), y("option", {
|
|
1166
1166
|
key: h.value + "-option-" + A.value,
|
|
1167
1167
|
value: A.value
|
|
1168
|
-
},
|
|
1168
|
+
}, B(A.label), 9, vt))), 128))
|
|
1169
1169
|
], 8, rt)) : z("", !0),
|
|
1170
|
-
|
|
1170
|
+
F(N.$slots, "default"),
|
|
1171
1171
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
size: e.messageSize || "small",
|
|
@@ -1175,7 +1175,7 @@ const Ja = (e) => {
|
|
|
1175
1175
|
id: s.value
|
|
1176
1176
|
}, {
|
|
1177
1177
|
default: G(() => [
|
|
1178
|
-
D(
|
|
1178
|
+
D(B(e.message), 1)
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["size", "icon", "id"])) : z("", !0),
|
|
@@ -1186,7 +1186,7 @@ const Ja = (e) => {
|
|
|
1186
1186
|
size: e.validMessageSize || "small"
|
|
1187
1187
|
}, {
|
|
1188
1188
|
default: G(() => [
|
|
1189
|
-
D(
|
|
1189
|
+
D(B(e.validMessage || n(se)), 1)
|
|
1190
1190
|
]),
|
|
1191
1191
|
_: 1
|
|
1192
1192
|
}, 8, ["id", "size"])) : z("", !0),
|
|
@@ -1196,11 +1196,11 @@ const Ja = (e) => {
|
|
|
1196
1196
|
size: e.invalidMessageSize || "small"
|
|
1197
1197
|
}, {
|
|
1198
1198
|
default: G(() => [
|
|
1199
|
-
D(
|
|
1199
|
+
D(B(g.value), 1)
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 1
|
|
1202
1202
|
}, 8, ["id", "size"]),
|
|
1203
|
-
E("span", ft,
|
|
1203
|
+
E("span", ft, B(b.value), 1)
|
|
1204
1204
|
], 10, st));
|
|
1205
1205
|
}
|
|
1206
1206
|
}), gt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ W({
|
|
@@ -1221,7 +1221,7 @@ const Ja = (e) => {
|
|
|
1221
1221
|
},
|
|
1222
1222
|
setup(e) {
|
|
1223
1223
|
const t = e, l = o(Ie), a = o(!1), i = o(void 0), s = o(void 0), u = o(null);
|
|
1224
|
-
|
|
1224
|
+
Y(() => {
|
|
1225
1225
|
l.value = t.id || "tooltip-" + Q(), a.value = !0;
|
|
1226
1226
|
}), C(
|
|
1227
1227
|
() => [u.value, a.value],
|
|
@@ -1253,8 +1253,8 @@ const Ja = (e) => {
|
|
|
1253
1253
|
let d = u.value.parentElement;
|
|
1254
1254
|
return d && d.localName.includes("tooltip") && (d = d.parentElement), d;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
d && u.value &&
|
|
1256
|
+
function k(d) {
|
|
1257
|
+
d && u.value && K(() => {
|
|
1258
1258
|
u.value && ua(
|
|
1259
1259
|
u.value,
|
|
1260
1260
|
d,
|
|
@@ -1263,7 +1263,7 @@ const Ja = (e) => {
|
|
|
1263
1263
|
}, 1);
|
|
1264
1264
|
}
|
|
1265
1265
|
function x(d, m) {
|
|
1266
|
-
d?.target?.contains && d?.target?.contains(u.value) &&
|
|
1266
|
+
d?.target?.contains && d?.target?.contains(u.value) && k(m);
|
|
1267
1267
|
}
|
|
1268
1268
|
function b() {
|
|
1269
1269
|
i.value && new oe().removeCallback(
|
|
@@ -1273,7 +1273,7 @@ const Ja = (e) => {
|
|
|
1273
1273
|
function c(d) {
|
|
1274
1274
|
i.value = new oe().addCallback(
|
|
1275
1275
|
(m) => x(m, d)
|
|
1276
|
-
),
|
|
1276
|
+
), k(d), s.value?.observe(h());
|
|
1277
1277
|
}
|
|
1278
1278
|
return (d, m) => (v(), y("i", {
|
|
1279
1279
|
role: "tooltip",
|
|
@@ -1291,7 +1291,7 @@ const Ja = (e) => {
|
|
|
1291
1291
|
"data-placement": e.placement,
|
|
1292
1292
|
onClick: m[0] || (m[0] = async (I) => f(I))
|
|
1293
1293
|
}, [
|
|
1294
|
-
|
|
1294
|
+
F(d.$slots, "default")
|
|
1295
1295
|
], 10, gt));
|
|
1296
1296
|
}
|
|
1297
1297
|
}), mt = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], bt = /* @__PURE__ */ W({
|
|
@@ -1338,10 +1338,10 @@ const Ja = (e) => {
|
|
|
1338
1338
|
"data-no-text": n(V)(e.noText),
|
|
1339
1339
|
"data-overflow": n(V)(e.overflow)
|
|
1340
1340
|
}, [
|
|
1341
|
-
|
|
1342
|
-
|
|
1341
|
+
F(s.$slots, "content"),
|
|
1342
|
+
F(s.$slots, "default"),
|
|
1343
1343
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
1344
|
-
D(
|
|
1344
|
+
D(B(e.text), 1)
|
|
1345
1345
|
], 64)) : z("", !0),
|
|
1346
1346
|
e.behavior === "removable" ? (v(), y("button", {
|
|
1347
1347
|
key: 1,
|
|
@@ -1355,7 +1355,7 @@ const Ja = (e) => {
|
|
|
1355
1355
|
}, [
|
|
1356
1356
|
te(ca, { variant: "label" }, {
|
|
1357
1357
|
default: G(() => [
|
|
1358
|
-
D(
|
|
1358
|
+
D(B(i()), 1)
|
|
1359
1359
|
]),
|
|
1360
1360
|
_: 1
|
|
1361
1361
|
})
|
|
@@ -1434,12 +1434,12 @@ const Ja = (e) => {
|
|
|
1434
1434
|
},
|
|
1435
1435
|
emits: ["update:values"],
|
|
1436
1436
|
setup(e, { emit: t }) {
|
|
1437
|
-
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0),
|
|
1438
|
-
|
|
1437
|
+
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(void 0), b = o(void 0), c = o(void 0), d = o("no-validation"), m = o(!1), I = o(void 0), T = o(void 0), w = o(""), L = o(void 0), S = o(""), M = o([]), N = o(!1), X = o(!1), A = o(0), R = o([]), j = o([]), pe = o(!1), me = o(void 0), Ce = o(0), Fe = o(void 0), Ne = o(void 0), Re = o(void 0), ze = o(!1), $e = o(!1), ra = o(null), P = o(null), le = o(null), Ee = o(null), Ve = o(null);
|
|
1438
|
+
Y(() => {
|
|
1439
1439
|
const r = a.id ?? `custom-select-${Q()}`;
|
|
1440
|
-
i.value = r, s.value = r + ce, u.value = r + re, f.value = r + ve, h.value = r + Je,
|
|
1440
|
+
i.value = r, s.value = r + ce, u.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, x.value = r + "-summary", b.value = r + De, L.value = r + "-selected-labels", c.value = r + "-info", g.value = a.invalidMessage || ee, typeof window < "u" && "IntersectionObserver" in window && (Ne.value = new IntersectionObserver((p) => {
|
|
1441
1441
|
if (P.value) {
|
|
1442
|
-
const $ =
|
|
1442
|
+
const $ = p.find(({ target: ae }) => ae === P.value);
|
|
1443
1443
|
$ && !$.isIntersecting && P.value.open && (P.value.open = !1);
|
|
1444
1444
|
}
|
|
1445
1445
|
}));
|
|
@@ -1462,7 +1462,7 @@ const Ja = (e) => {
|
|
|
1462
1462
|
() => {
|
|
1463
1463
|
if (i.value) {
|
|
1464
1464
|
const r = i.value + ce;
|
|
1465
|
-
|
|
1465
|
+
k.value = i.value + Ye, h.value = i.value + Je, u.value = i.value + re, f.value = i.value + ve, b.value = i.value + De, _(a.message, a.showMessage) ? Le(r) : Le();
|
|
1466
1466
|
}
|
|
1467
1467
|
},
|
|
1468
1468
|
{
|
|
@@ -1496,7 +1496,7 @@ const Ja = (e) => {
|
|
|
1496
1496
|
), C(
|
|
1497
1497
|
() => [a.showSelectAll, A.value, a.multiple],
|
|
1498
1498
|
() => {
|
|
1499
|
-
|
|
1499
|
+
N.value = !!(a.multiple && (a.showSelectAll ?? A.value > 5));
|
|
1500
1500
|
},
|
|
1501
1501
|
{
|
|
1502
1502
|
immediate: !0,
|
|
@@ -1515,14 +1515,14 @@ const Ja = (e) => {
|
|
|
1515
1515
|
() => [a.values],
|
|
1516
1516
|
() => {
|
|
1517
1517
|
const r = a.values;
|
|
1518
|
-
Array.isArray(r) ?
|
|
1518
|
+
Array.isArray(r) ? R.value !== r && (R.value = r) : r == null && R.value?.length !== 0 && (R.value = []);
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
1521
1521
|
immediate: !0,
|
|
1522
1522
|
flush: "post"
|
|
1523
1523
|
}
|
|
1524
1524
|
), C(
|
|
1525
|
-
() => [
|
|
1525
|
+
() => [R.value, le.value],
|
|
1526
1526
|
() => {
|
|
1527
1527
|
le.value && Ge();
|
|
1528
1528
|
},
|
|
@@ -1536,11 +1536,11 @@ const Ja = (e) => {
|
|
|
1536
1536
|
if (le.value) {
|
|
1537
1537
|
let r = I.value;
|
|
1538
1538
|
r || (r = new AbortController(), I.value = r);
|
|
1539
|
-
const
|
|
1539
|
+
const p = a.values;
|
|
1540
1540
|
Me(
|
|
1541
1541
|
le.value,
|
|
1542
1542
|
() => {
|
|
1543
|
-
const $ =
|
|
1543
|
+
const $ = p || (le.value.value ? [le.value.value] : []);
|
|
1544
1544
|
Be($), Ge();
|
|
1545
1545
|
},
|
|
1546
1546
|
r.signal
|
|
@@ -1561,9 +1561,9 @@ const Ja = (e) => {
|
|
|
1561
1561
|
flush: "post"
|
|
1562
1562
|
}
|
|
1563
1563
|
), C(
|
|
1564
|
-
() => [
|
|
1564
|
+
() => [R.value, A.value],
|
|
1565
1565
|
() => {
|
|
1566
|
-
|
|
1566
|
+
R.value?.length === 0 ? (ze.value = !1, $e.value = !1) : R.value?.length === A.value ? ($e.value = !1, ze.value = !0) : R.value && ($e.value = !0);
|
|
1567
1567
|
},
|
|
1568
1568
|
{
|
|
1569
1569
|
immediate: !0,
|
|
@@ -1591,10 +1591,10 @@ const Ja = (e) => {
|
|
|
1591
1591
|
flush: "post"
|
|
1592
1592
|
}
|
|
1593
1593
|
), C(
|
|
1594
|
-
() => [a.options,
|
|
1594
|
+
() => [a.options, R.value],
|
|
1595
1595
|
() => {
|
|
1596
|
-
a.options?.length && (
|
|
1597
|
-
(r) => !r.value || !
|
|
1596
|
+
a.options?.length && (M.value = a.options?.filter(
|
|
1597
|
+
(r) => !r.value || !R.value?.includes ? !1 : !r.isGroupTitle && R.value?.includes(r.value)
|
|
1598
1598
|
));
|
|
1599
1599
|
},
|
|
1600
1600
|
{
|
|
@@ -1603,7 +1603,7 @@ const Ja = (e) => {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
), C(
|
|
1605
1605
|
() => [
|
|
1606
|
-
|
|
1606
|
+
M.value,
|
|
1607
1607
|
a.selectedType,
|
|
1608
1608
|
a.amountText,
|
|
1609
1609
|
a.selectedLabels,
|
|
@@ -1611,27 +1611,27 @@ const Ja = (e) => {
|
|
|
1611
1611
|
],
|
|
1612
1612
|
() => {
|
|
1613
1613
|
if (a.selectedLabels) {
|
|
1614
|
-
|
|
1614
|
+
w.value = a.selectedLabels;
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
if (
|
|
1617
|
+
if (M.value?.length) {
|
|
1618
1618
|
if (a.transformSelectedLabels) {
|
|
1619
|
-
const r =
|
|
1620
|
-
|
|
1619
|
+
const r = M.value, p = a.transformSelectedLabels;
|
|
1620
|
+
w.value = p(r);
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
|
-
a.selectedType === "amount" ?
|
|
1623
|
+
a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${M.value?.length} ${xa}` : w.value = M.value?.map((r) => Se(r)).join(", ");
|
|
1624
1624
|
} else
|
|
1625
|
-
|
|
1625
|
+
w.value = "";
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
1628
|
immediate: !0,
|
|
1629
1629
|
flush: "post"
|
|
1630
1630
|
}
|
|
1631
1631
|
), C(
|
|
1632
|
-
() => [
|
|
1632
|
+
() => [M.value],
|
|
1633
1633
|
() => {
|
|
1634
|
-
a.onAmountChange && a.onAmountChange(
|
|
1634
|
+
a.onAmountChange && a.onAmountChange(M.value?.length ?? 0);
|
|
1635
1635
|
},
|
|
1636
1636
|
{
|
|
1637
1637
|
immediate: !0,
|
|
@@ -1663,13 +1663,13 @@ const Ja = (e) => {
|
|
|
1663
1663
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1664
1664
|
}
|
|
1665
1665
|
function Ge() {
|
|
1666
|
-
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (
|
|
1666
|
+
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (S.value = g.value, K(() => S.value = "", 1e3)), m.value && (d.value = a.validation ?? "invalid")) : Oe() && le.value?.validity.valid && a.required ? (Le(u.value), ue() && (S.value = a.validMessage ?? se, K(() => S.value = "", 1e3)), d.value = a.validation ?? "valid") : _(a.message, a.showMessage) ? (Le(s.value), d.value = a.validation ?? "no-validation") : (Le(b.value), d.value = a.validation ?? "no-validation");
|
|
1667
1667
|
}
|
|
1668
1668
|
function fa(r) {
|
|
1669
1669
|
a.onDropdownToggle && (r.stopPropagation(), a.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (me.value = new fe().addCallback(
|
|
1670
|
-
(
|
|
1670
|
+
(p) => Sa(p)
|
|
1671
1671
|
), Fe.value = new oe().addCallback(
|
|
1672
|
-
(
|
|
1672
|
+
(p) => va(p)
|
|
1673
1673
|
), Pe(), Ne.value?.observe(P.value), r.target.dataset.test || He()) : (me.value && new fe().removeCallback(
|
|
1674
1674
|
me.value
|
|
1675
1675
|
), Fe.value && new oe().removeCallback(
|
|
@@ -1677,11 +1677,11 @@ const Ja = (e) => {
|
|
|
1677
1677
|
), Ne.value?.unobserve(P.value));
|
|
1678
1678
|
}
|
|
1679
1679
|
function ha() {
|
|
1680
|
-
return
|
|
1680
|
+
return R.value?.length ? R.value.at(0) ?? "" : "";
|
|
1681
1681
|
}
|
|
1682
1682
|
function Le(r) {
|
|
1683
|
-
const
|
|
1684
|
-
r &&
|
|
1683
|
+
const p = [];
|
|
1684
|
+
r && p.push(r), L.value && w.value?.length && p.push(L.value), T.value = p.join(" ");
|
|
1685
1685
|
}
|
|
1686
1686
|
function ga() {
|
|
1687
1687
|
return a.selectAllLabel ?? ye;
|
|
@@ -1690,24 +1690,24 @@ const Ja = (e) => {
|
|
|
1690
1690
|
return r.label ?? r.value?.toString() ?? "";
|
|
1691
1691
|
}
|
|
1692
1692
|
function ma(r) {
|
|
1693
|
-
return r &&
|
|
1693
|
+
return r && R.value?.includes ? R.value?.includes(r) : !1;
|
|
1694
1694
|
}
|
|
1695
1695
|
function ba(r) {
|
|
1696
|
-
const
|
|
1697
|
-
if (
|
|
1696
|
+
const p = a.removeTagsTexts, $ = a.options;
|
|
1697
|
+
if (p && $) {
|
|
1698
1698
|
const ae = $.findIndex((ie) => ie.value === r.value);
|
|
1699
|
-
if (ae >= 0 && ae <
|
|
1700
|
-
return
|
|
1699
|
+
if (ae >= 0 && ae < p.length)
|
|
1700
|
+
return p[ae];
|
|
1701
1701
|
}
|
|
1702
1702
|
return `${aa} ${Se(r)}`;
|
|
1703
1703
|
}
|
|
1704
|
-
function ya(r,
|
|
1705
|
-
|
|
1704
|
+
function ya(r, p) {
|
|
1705
|
+
p && p.stopPropagation(), We(r.value), Te();
|
|
1706
1706
|
}
|
|
1707
1707
|
function Pe() {
|
|
1708
1708
|
if (P.value) {
|
|
1709
1709
|
const r = P.value.querySelector("article");
|
|
1710
|
-
r &&
|
|
1710
|
+
r && K(() => {
|
|
1711
1711
|
Za(
|
|
1712
1712
|
r,
|
|
1713
1713
|
P.value,
|
|
@@ -1719,10 +1719,10 @@ const Ja = (e) => {
|
|
|
1719
1719
|
function ka(r) {
|
|
1720
1720
|
if (P.value?.open) {
|
|
1721
1721
|
if (self.document) {
|
|
1722
|
-
const
|
|
1723
|
-
if (
|
|
1724
|
-
if (
|
|
1725
|
-
const ae =
|
|
1722
|
+
const p = self.document.activeElement;
|
|
1723
|
+
if (p)
|
|
1724
|
+
if (p.getAttribute("type") === "checkbox" || p.getAttribute("type") === "radio") {
|
|
1725
|
+
const ae = p?.closest("li");
|
|
1726
1726
|
if (r.key === "ArrowDown" || r.key === "ArrowRight") {
|
|
1727
1727
|
let ie = ae?.nextElementSibling;
|
|
1728
1728
|
for (; ie; ) {
|
|
@@ -1733,7 +1733,7 @@ const Ja = (e) => {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
ie = ie.nextElementSibling;
|
|
1735
1735
|
}
|
|
1736
|
-
ie || Ae(
|
|
1736
|
+
ie || Ae(p);
|
|
1737
1737
|
} else {
|
|
1738
1738
|
let ie = ae?.previousElementSibling;
|
|
1739
1739
|
for (; ie; ) {
|
|
@@ -1748,27 +1748,27 @@ const Ja = (e) => {
|
|
|
1748
1748
|
const be = P.value.querySelector(
|
|
1749
1749
|
'input[type="checkbox"]'
|
|
1750
1750
|
);
|
|
1751
|
-
if (be && be !==
|
|
1752
|
-
Ae(
|
|
1751
|
+
if (be && be !== p)
|
|
1752
|
+
Ae(p);
|
|
1753
1753
|
else {
|
|
1754
1754
|
const je = _e(P.value);
|
|
1755
1755
|
if (je)
|
|
1756
|
-
|
|
1756
|
+
K(() => {
|
|
1757
1757
|
je.focus();
|
|
1758
1758
|
}, 100);
|
|
1759
1759
|
else {
|
|
1760
|
-
const
|
|
1760
|
+
const Ke = Array.from(
|
|
1761
1761
|
P.value?.querySelectorAll(
|
|
1762
1762
|
'input[type="checkbox"],input[type="radio"]'
|
|
1763
1763
|
)
|
|
1764
1764
|
);
|
|
1765
|
-
|
|
1765
|
+
Ke.length && Ke.at(-1)?.focus();
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
} else
|
|
1771
|
-
|
|
1771
|
+
p.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? (xe(void 0, !0), Te()) : Ae(p);
|
|
1772
1772
|
}
|
|
1773
1773
|
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (Pe(), P.value && (P.value.open = !0), He());
|
|
1774
1774
|
r.stopPropagation(), r.preventDefault();
|
|
@@ -1778,29 +1778,29 @@ const Ja = (e) => {
|
|
|
1778
1778
|
xe(void 0, !0), Te();
|
|
1779
1779
|
else if (r.key === "Enter" && P.value?.open) {
|
|
1780
1780
|
if (self.document) {
|
|
1781
|
-
const
|
|
1782
|
-
["checkbox", "radio"].includes(
|
|
1781
|
+
const p = self.document.activeElement;
|
|
1782
|
+
["checkbox", "radio"].includes(p.getAttribute("type") || "") && (p.click(), r.preventDefault());
|
|
1783
1783
|
}
|
|
1784
1784
|
} else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") && ka(r);
|
|
1785
1785
|
}
|
|
1786
|
-
function xe(r,
|
|
1786
|
+
function xe(r, p) {
|
|
1787
1787
|
if (P.value) {
|
|
1788
|
-
if (
|
|
1788
|
+
if (p)
|
|
1789
1789
|
P.value.open = !1, Te();
|
|
1790
1790
|
else if (P.value.open && r && r.relatedTarget) {
|
|
1791
1791
|
const $ = r.relatedTarget;
|
|
1792
|
-
P.value.contains($) ||
|
|
1792
|
+
P.value.contains($) || K(() => P.value.open = !1, 1);
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
function Sa(r) {
|
|
1797
1797
|
if (r) {
|
|
1798
|
-
const
|
|
1799
|
-
P.value?.open && !P.value.contains(
|
|
1798
|
+
const p = r.target;
|
|
1799
|
+
P.value?.open && !P.value.contains(p) && (P.value.open = !1);
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
function Be(r) {
|
|
1803
|
-
(/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (
|
|
1803
|
+
(/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (R.value = r, m.value = !0, a.onOptionSelected && a.onOptionSelected(r ?? []), de(
|
|
1804
1804
|
l,
|
|
1805
1805
|
{
|
|
1806
1806
|
target: {
|
|
@@ -1811,30 +1811,30 @@ const Ja = (e) => {
|
|
|
1811
1811
|
), Ce.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1812
1812
|
}
|
|
1813
1813
|
function We(r) {
|
|
1814
|
-
r && (a.multiple ?
|
|
1814
|
+
r && (a.multiple ? R.value?.includes(r) ? Be(R.value.filter((p) => p !== r)) : Be([...R.value || [], r]) : (Be([r]), xe(void 0, !0)));
|
|
1815
1815
|
}
|
|
1816
1816
|
function Ba(r) {
|
|
1817
|
-
if (r.stopPropagation(),
|
|
1817
|
+
if (r.stopPropagation(), R.value?.length === A.value)
|
|
1818
1818
|
Be([]);
|
|
1819
1819
|
else {
|
|
1820
|
-
const
|
|
1820
|
+
const p = X.value && Ve.value ? Ve.value.value : void 0;
|
|
1821
1821
|
Be(
|
|
1822
1822
|
a.options ? a.options.filter(
|
|
1823
|
-
($) => !$.isGroupTitle && (!
|
|
1823
|
+
($) => !$.isGroupTitle && (!p || $.value?.toLowerCase().includes(p.toLowerCase()))
|
|
1824
1824
|
).map(($) => $.value ?? "") : []
|
|
1825
1825
|
);
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
function Ae(r) {
|
|
1829
1829
|
if (P.value) {
|
|
1830
|
-
const
|
|
1830
|
+
const p = Array.from(
|
|
1831
1831
|
P.value.querySelectorAll(
|
|
1832
1832
|
'input[type="checkbox"],input[type="radio"]'
|
|
1833
1833
|
)
|
|
1834
1834
|
);
|
|
1835
|
-
if (
|
|
1836
|
-
const $ =
|
|
1837
|
-
ae &&
|
|
1835
|
+
if (p.length) {
|
|
1836
|
+
const $ = p.at(0), ae = $ === r && p.length > 1 ? p.at(1) : $;
|
|
1837
|
+
ae && K(() => {
|
|
1838
1838
|
ae.focus();
|
|
1839
1839
|
}, 1);
|
|
1840
1840
|
}
|
|
@@ -1843,7 +1843,7 @@ const Ja = (e) => {
|
|
|
1843
1843
|
function He() {
|
|
1844
1844
|
if (P.value) {
|
|
1845
1845
|
const r = _e(P.value);
|
|
1846
|
-
r ?
|
|
1846
|
+
r ? K(() => {
|
|
1847
1847
|
r.focus();
|
|
1848
1848
|
}, 1) : Ae();
|
|
1849
1849
|
}
|
|
@@ -1851,17 +1851,17 @@ const Ja = (e) => {
|
|
|
1851
1851
|
function Xe(r) {
|
|
1852
1852
|
if (r === void 0)
|
|
1853
1853
|
return;
|
|
1854
|
-
let
|
|
1854
|
+
let p;
|
|
1855
1855
|
if (typeof r == "string")
|
|
1856
|
-
|
|
1856
|
+
p = r;
|
|
1857
1857
|
else {
|
|
1858
1858
|
const $ = r;
|
|
1859
|
-
$.stopPropagation(), a.onSearch && a.onSearch($),
|
|
1859
|
+
$.stopPropagation(), a.onSearch && a.onSearch($), p = $.target.value, Re.value = p;
|
|
1860
1860
|
}
|
|
1861
|
-
!a.options || !
|
|
1862
|
-
($) => a.searchFilter($,
|
|
1861
|
+
!a.options || !p || p.length === 0 ? j.value = a.options : a.searchFilter ? j.value = a.options.filter(
|
|
1862
|
+
($) => a.searchFilter($, p)
|
|
1863
1863
|
) : j.value = a.options.filter(
|
|
1864
|
-
($) => !$.isGroupTitle && Se($).toLowerCase().includes(
|
|
1864
|
+
($) => !$.isGroupTitle && Se($).toLowerCase().includes(p.toLowerCase())
|
|
1865
1865
|
);
|
|
1866
1866
|
}
|
|
1867
1867
|
function pa(r) {
|
|
@@ -1873,7 +1873,7 @@ const Ja = (e) => {
|
|
|
1873
1873
|
function La(r) {
|
|
1874
1874
|
r.stopPropagation();
|
|
1875
1875
|
}
|
|
1876
|
-
return (r,
|
|
1876
|
+
return (r, p) => (v(), y("div", {
|
|
1877
1877
|
id: i.value,
|
|
1878
1878
|
ref_key: "_ref",
|
|
1879
1879
|
ref: ra,
|
|
@@ -1890,8 +1890,8 @@ const Ja = (e) => {
|
|
|
1890
1890
|
"data-icon": e.icon,
|
|
1891
1891
|
"data-show-icon": n(V)(e.showIcon)
|
|
1892
1892
|
}, [
|
|
1893
|
-
E("label", { id:
|
|
1894
|
-
D(
|
|
1893
|
+
E("label", { id: k.value }, [
|
|
1894
|
+
D(B(e.label ?? n(ye)), 1),
|
|
1895
1895
|
E("select", {
|
|
1896
1896
|
role: "none",
|
|
1897
1897
|
hidden: !0,
|
|
@@ -1904,40 +1904,40 @@ const Ja = (e) => {
|
|
|
1904
1904
|
multiple: n(q)(e.multiple, "multiple"),
|
|
1905
1905
|
disabled: n(q)(e.disabled, "disabled"),
|
|
1906
1906
|
required: n(q)(e.required, "required"),
|
|
1907
|
-
onChange:
|
|
1907
|
+
onChange: p[0] || (p[0] = async ($) => La($))
|
|
1908
1908
|
}, [
|
|
1909
1909
|
e.options?.length ? (v(!0), y(H, { key: 0 }, he(e.options, ($, ae) => (v(), y("option", {
|
|
1910
1910
|
key: ae,
|
|
1911
1911
|
disabled: $.disabled,
|
|
1912
1912
|
value: $.value
|
|
1913
|
-
},
|
|
1913
|
+
}, B(Se($)), 9, St))), 128)) : z("", !0)
|
|
1914
1914
|
], 40, wt)
|
|
1915
1915
|
], 8, kt),
|
|
1916
1916
|
E("details", {
|
|
1917
1917
|
ref_key: "detailsRef",
|
|
1918
1918
|
ref: P,
|
|
1919
1919
|
open: e.open,
|
|
1920
|
-
onToggle:
|
|
1921
|
-
onKeydown:
|
|
1920
|
+
onToggle: p[2] || (p[2] = async ($) => fa($)),
|
|
1921
|
+
onKeydown: p[3] || (p[3] = async ($) => wa($))
|
|
1922
1922
|
}, [
|
|
1923
|
-
|
|
1923
|
+
F(r.$slots, "default"),
|
|
1924
1924
|
e.options ? (v(), y(H, { key: 0 }, [
|
|
1925
1925
|
E("summary", {
|
|
1926
1926
|
class: "db-custom-select-form-field",
|
|
1927
1927
|
id: x.value,
|
|
1928
1928
|
"aria-disabled": n(V)(e.disabled),
|
|
1929
|
-
"aria-labelledby":
|
|
1929
|
+
"aria-labelledby": k.value
|
|
1930
1930
|
}, [
|
|
1931
|
-
|
|
1931
|
+
w.value?.length ? (v(), y("span", {
|
|
1932
1932
|
key: 0,
|
|
1933
1933
|
"data-visually-hidden": n(V)(e.selectedType === "tag"),
|
|
1934
1934
|
id: L.value
|
|
1935
1935
|
}, [
|
|
1936
|
-
e.selectedPrefix ? (v(), y("span", It,
|
|
1937
|
-
D(" " +
|
|
1936
|
+
e.selectedPrefix ? (v(), y("span", It, B(e.selectedPrefix), 1)) : z("", !0),
|
|
1937
|
+
D(" " + B(w.value), 1)
|
|
1938
1938
|
], 8, Lt)) : z("", !0),
|
|
1939
1939
|
e.selectedType === "tag" ? (v(), y("div", $t, [
|
|
1940
|
-
(v(!0), y(H, null, he(
|
|
1940
|
+
(v(!0), y(H, null, he(M.value, ($, ae) => (v(), J(bt, {
|
|
1941
1941
|
key: ae,
|
|
1942
1942
|
emphasis: "strong",
|
|
1943
1943
|
behavior: "removable",
|
|
@@ -1945,7 +1945,7 @@ const Ja = (e) => {
|
|
|
1945
1945
|
onRemove: (ie) => ya($, ie)
|
|
1946
1946
|
}, {
|
|
1947
1947
|
default: G(() => [
|
|
1948
|
-
D(
|
|
1948
|
+
D(B(Se($)), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
@@ -1975,11 +1975,11 @@ const Ja = (e) => {
|
|
|
1975
1975
|
semantic: e.showLoading ? "informational" : "warning"
|
|
1976
1976
|
}, {
|
|
1977
1977
|
default: G(() => [
|
|
1978
|
-
D(
|
|
1978
|
+
D(B((e.showLoading ? e.loadingText : e.noResultsText) ?? n(Ia)), 1)
|
|
1979
1979
|
]),
|
|
1980
1980
|
_: 1
|
|
1981
1981
|
}, 8, ["id", "icon", "semantic"])) : (v(), y(H, { key: 2 }, [
|
|
1982
|
-
|
|
1982
|
+
N.value ? (v(), y("div", Tt, [
|
|
1983
1983
|
E("div", Ct, [
|
|
1984
1984
|
E("label", null, [
|
|
1985
1985
|
E("input", {
|
|
@@ -1989,9 +1989,9 @@ const Ja = (e) => {
|
|
|
1989
1989
|
ref: Ee,
|
|
1990
1990
|
form: i.value,
|
|
1991
1991
|
checked: ze.value,
|
|
1992
|
-
onChange:
|
|
1992
|
+
onChange: p[1] || (p[1] = async ($) => Ba($))
|
|
1993
1993
|
}, null, 40, Et),
|
|
1994
|
-
D(
|
|
1994
|
+
D(B(ga()), 1)
|
|
1995
1995
|
])
|
|
1996
1996
|
])
|
|
1997
1997
|
])) : z("", !0),
|
|
@@ -2015,7 +2015,7 @@ const Ja = (e) => {
|
|
|
2015
2015
|
}, {
|
|
2016
2016
|
default: G(() => [
|
|
2017
2017
|
$.isGroupTitle ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2018
|
-
D(
|
|
2018
|
+
D(B(Se($)), 1)
|
|
2019
2019
|
], 64))
|
|
2020
2020
|
]),
|
|
2021
2021
|
_: 2
|
|
@@ -2035,7 +2035,7 @@ const Ja = (e) => {
|
|
|
2035
2035
|
onClick: ($) => xe(void 0, !0)
|
|
2036
2036
|
}, {
|
|
2037
2037
|
default: G(() => [
|
|
2038
|
-
D(
|
|
2038
|
+
D(B(e.mobileCloseButtonText ?? n(qe)), 1)
|
|
2039
2039
|
]),
|
|
2040
2040
|
_: 1
|
|
2041
2041
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -2045,7 +2045,7 @@ const Ja = (e) => {
|
|
|
2045
2045
|
}, 8, ["width"])
|
|
2046
2046
|
], 64)) : z("", !0)
|
|
2047
2047
|
], 40, Bt),
|
|
2048
|
-
(e.showClearSelection ?? !0) &&
|
|
2048
|
+
(e.showClearSelection ?? !0) && R.value?.length ? (v(), J(we, {
|
|
2049
2049
|
key: 0,
|
|
2050
2050
|
icon: "cross",
|
|
2051
2051
|
variant: "ghost",
|
|
@@ -2056,10 +2056,10 @@ const Ja = (e) => {
|
|
|
2056
2056
|
onClick: ($) => pa($)
|
|
2057
2057
|
}, {
|
|
2058
2058
|
default: G(() => [
|
|
2059
|
-
D(
|
|
2059
|
+
D(B(e.clearSelectionText), 1),
|
|
2060
2060
|
te(ca, { placement: "top" }, {
|
|
2061
2061
|
default: G(() => [
|
|
2062
|
-
D(
|
|
2062
|
+
D(B(e.clearSelectionText), 1)
|
|
2063
2063
|
]),
|
|
2064
2064
|
_: 1
|
|
2065
2065
|
})
|
|
@@ -2070,7 +2070,7 @@ const Ja = (e) => {
|
|
|
2070
2070
|
class: "db-custom-select-placeholder",
|
|
2071
2071
|
"aria-hidden": n(V)(!0),
|
|
2072
2072
|
id: b.value
|
|
2073
|
-
},
|
|
2073
|
+
}, B(e.placeholder ?? e.label), 9, At),
|
|
2074
2074
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
2075
2075
|
key: 1,
|
|
2076
2076
|
size: "small",
|
|
@@ -2078,7 +2078,7 @@ const Ja = (e) => {
|
|
|
2078
2078
|
id: s.value
|
|
2079
2079
|
}, {
|
|
2080
2080
|
default: G(() => [
|
|
2081
|
-
D(
|
|
2081
|
+
D(B(e.message), 1)
|
|
2082
2082
|
]),
|
|
2083
2083
|
_: 1
|
|
2084
2084
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -2089,7 +2089,7 @@ const Ja = (e) => {
|
|
|
2089
2089
|
id: u.value
|
|
2090
2090
|
}, {
|
|
2091
2091
|
default: G(() => [
|
|
2092
|
-
D(
|
|
2092
|
+
D(B(e.validMessage || n(se)), 1)
|
|
2093
2093
|
]),
|
|
2094
2094
|
_: 1
|
|
2095
2095
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -2099,11 +2099,11 @@ const Ja = (e) => {
|
|
|
2099
2099
|
id: f.value
|
|
2100
2100
|
}, {
|
|
2101
2101
|
default: G(() => [
|
|
2102
|
-
D(
|
|
2102
|
+
D(B(g.value), 1)
|
|
2103
2103
|
]),
|
|
2104
2104
|
_: 1
|
|
2105
2105
|
}, 8, ["id"]),
|
|
2106
|
-
E("span", Dt, S
|
|
2106
|
+
E("span", Dt, B(S.value), 1)
|
|
2107
2107
|
], 10, yt));
|
|
2108
2108
|
}
|
|
2109
2109
|
}), gl = ["fixed", "auto", "full"], Mt = ["id"], ml = /* @__PURE__ */ W({
|
|
@@ -2123,7 +2123,7 @@ const Ja = (e) => {
|
|
|
2123
2123
|
id: e.id,
|
|
2124
2124
|
class: U(n(O)("db-custom-select-form-field", t.class))
|
|
2125
2125
|
}, [
|
|
2126
|
-
|
|
2126
|
+
F(a.$slots, "default")
|
|
2127
2127
|
], 10, Mt));
|
|
2128
2128
|
}
|
|
2129
2129
|
}), bl = ["checkbox", "radio"], yl = ["amount", "text", "tag"], Ft = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], kl = /* @__PURE__ */ W({
|
|
@@ -2176,7 +2176,7 @@ const Ja = (e) => {
|
|
|
2176
2176
|
},
|
|
2177
2177
|
setup(e) {
|
|
2178
2178
|
const t = e, l = o(!1), a = o(null), i = o(null);
|
|
2179
|
-
|
|
2179
|
+
Y(() => {
|
|
2180
2180
|
u(), l.value = !0;
|
|
2181
2181
|
}), C(
|
|
2182
2182
|
() => [t.open],
|
|
@@ -2206,7 +2206,7 @@ const Ja = (e) => {
|
|
|
2206
2206
|
function u() {
|
|
2207
2207
|
if (a.value) {
|
|
2208
2208
|
const f = !!t.open;
|
|
2209
|
-
f && !a.value.open && (i.value && (i.value.hidden = !1), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? a.value.show() : a.value.showModal()), !f && a.value.open && (i.value && (i.value.hidden = !0),
|
|
2209
|
+
f && !a.value.open && (i.value && (i.value.hidden = !1), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? a.value.show() : a.value.showModal()), !f && a.value.open && (i.value && (i.value.hidden = !0), K(() => {
|
|
2210
2210
|
i.value && (i.value.hidden = !1), a.value?.close();
|
|
2211
2211
|
}, 401));
|
|
2212
2212
|
}
|
|
@@ -2234,7 +2234,7 @@ const Ja = (e) => {
|
|
|
2234
2234
|
}, [
|
|
2235
2235
|
E("header", zt, [
|
|
2236
2236
|
E("div", Vt, [
|
|
2237
|
-
|
|
2237
|
+
F(f.$slots, "drawer-header")
|
|
2238
2238
|
]),
|
|
2239
2239
|
te(we, {
|
|
2240
2240
|
class: "button-close-drawer",
|
|
@@ -2245,13 +2245,13 @@ const Ja = (e) => {
|
|
|
2245
2245
|
onClick: (h) => s(h, !0)
|
|
2246
2246
|
}, {
|
|
2247
2247
|
default: G(() => [
|
|
2248
|
-
D(
|
|
2248
|
+
D(B(e.closeButtonText ?? n(qe)), 1)
|
|
2249
2249
|
]),
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
}, 8, ["id", "onClick"])
|
|
2252
2252
|
]),
|
|
2253
2253
|
E("div", Pt, [
|
|
2254
|
-
|
|
2254
|
+
F(f.$slots, "default")
|
|
2255
2255
|
])
|
|
2256
2256
|
], 10, Rt)
|
|
2257
2257
|
], 40, Nt));
|
|
@@ -2335,7 +2335,7 @@ class Ot {
|
|
|
2335
2335
|
a && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`), l && (this.triangleData = void 0));
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
|
-
const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" },
|
|
2338
|
+
const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-navigation-bar" }, Yt = { class: "db-header-brand-container" }, Jt = { class: "db-header-navigation-container" }, Qt = { class: "db-header-navigation" }, Zt = { class: "db-header-primary-action" }, _t = { class: "db-header-action-container" }, ei = { class: "db-header-burger-menu-container" }, ai = { class: "db-header-secondary-action" }, $l = /* @__PURE__ */ W({
|
|
2339
2339
|
__name: "header",
|
|
2340
2340
|
props: {
|
|
2341
2341
|
brand: {},
|
|
@@ -2358,7 +2358,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2358
2358
|
},
|
|
2359
2359
|
setup(e) {
|
|
2360
2360
|
const t = e, l = o(!1), a = o(!1), i = o(null);
|
|
2361
|
-
|
|
2361
|
+
Y(() => {
|
|
2362
2362
|
l.value = !0;
|
|
2363
2363
|
}), C(
|
|
2364
2364
|
() => [l.value, i.value],
|
|
@@ -2403,31 +2403,31 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2403
2403
|
class: "db-header-navigation",
|
|
2404
2404
|
onClick: g[0] || (g[0] = async (h) => u(h))
|
|
2405
2405
|
}, [
|
|
2406
|
-
|
|
2406
|
+
F(f.$slots, "default")
|
|
2407
2407
|
]),
|
|
2408
2408
|
E("div", Ht, [
|
|
2409
|
-
|
|
2409
|
+
F(f.$slots, "meta-navigation")
|
|
2410
2410
|
])
|
|
2411
2411
|
]),
|
|
2412
2412
|
E("div", Xt, [
|
|
2413
|
-
|
|
2413
|
+
F(f.$slots, "secondary-action")
|
|
2414
2414
|
])
|
|
2415
2415
|
]),
|
|
2416
2416
|
_: 3
|
|
2417
2417
|
}, 8, ["closeButtonId", "closeButtonText", "open", "onClose"]),
|
|
2418
2418
|
E("div", jt, [
|
|
2419
|
-
|
|
2419
|
+
F(f.$slots, "meta-navigation")
|
|
2420
2420
|
]),
|
|
2421
|
-
E("div",
|
|
2422
|
-
E("div",
|
|
2423
|
-
|
|
2421
|
+
E("div", Kt, [
|
|
2422
|
+
E("div", Yt, [
|
|
2423
|
+
F(f.$slots, "brand")
|
|
2424
2424
|
]),
|
|
2425
2425
|
E("div", Jt, [
|
|
2426
2426
|
E("div", Qt, [
|
|
2427
|
-
|
|
2427
|
+
F(f.$slots, "default")
|
|
2428
2428
|
]),
|
|
2429
2429
|
E("div", Zt, [
|
|
2430
|
-
|
|
2430
|
+
F(f.$slots, "primary-action")
|
|
2431
2431
|
])
|
|
2432
2432
|
]),
|
|
2433
2433
|
E("div", _t, [
|
|
@@ -2439,13 +2439,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2439
2439
|
onClick: (h) => s()
|
|
2440
2440
|
}, {
|
|
2441
2441
|
default: G(() => [
|
|
2442
|
-
D(
|
|
2442
|
+
D(B(e.burgerMenuLabel ?? n(Ta)), 1)
|
|
2443
2443
|
]),
|
|
2444
2444
|
_: 1
|
|
2445
2445
|
}, 8, ["onClick"])
|
|
2446
2446
|
]),
|
|
2447
2447
|
E("div", ai, [
|
|
2448
|
-
|
|
2448
|
+
F(f.$slots, "secondary-action")
|
|
2449
2449
|
])
|
|
2450
2450
|
])
|
|
2451
2451
|
])
|
|
@@ -2477,8 +2477,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2477
2477
|
"data-icon-variant": e.variant
|
|
2478
2478
|
}, [
|
|
2479
2479
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2480
|
-
D(
|
|
2481
|
-
], 64)) :
|
|
2480
|
+
D(B(e.text), 1)
|
|
2481
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
2482
2482
|
], 10, ti));
|
|
2483
2483
|
}
|
|
2484
2484
|
}), Tl = ["16", "20", "24", "32", "48", "64"], Cl = [
|
|
@@ -2548,8 +2548,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2548
2548
|
onClick: s[0] || (s[0] = async (u) => a(u))
|
|
2549
2549
|
}, [
|
|
2550
2550
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2551
|
-
D(
|
|
2552
|
-
], 64)) :
|
|
2551
|
+
D(B(e.text), 1)
|
|
2552
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2553
2553
|
], 10, ii));
|
|
2554
2554
|
}
|
|
2555
2555
|
}), Al = ["adaptive", "brand", "inline"], Dl = ["medium", "small"], Ml = ["external", "internal"], li = ["id"], Fl = /* @__PURE__ */ W({
|
|
@@ -2563,7 +2563,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2563
2563
|
},
|
|
2564
2564
|
setup(e) {
|
|
2565
2565
|
const t = e, l = o(Ie), a = o(null);
|
|
2566
|
-
return
|
|
2566
|
+
return Y(() => {
|
|
2567
2567
|
l.value = t.id || "navigation-" + Q();
|
|
2568
2568
|
}), (i, s) => (v(), y("nav", {
|
|
2569
2569
|
ref_key: "_ref",
|
|
@@ -2572,7 +2572,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2572
2572
|
class: U(n(O)("db-navigation", t.class))
|
|
2573
2573
|
}, [
|
|
2574
2574
|
E("menu", null, [
|
|
2575
|
-
|
|
2575
|
+
F(i.$slots, "default")
|
|
2576
2576
|
])
|
|
2577
2577
|
], 10, li));
|
|
2578
2578
|
}
|
|
@@ -2604,7 +2604,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2604
2604
|
const t = e, l = o(!1), a = o(!1), i = o(!0), s = o(!1), u = o(!1), f = o(
|
|
2605
2605
|
"sub-navigation-" + Q()
|
|
2606
2606
|
), g = o(void 0), h = o(null);
|
|
2607
|
-
|
|
2607
|
+
Y(() => {
|
|
2608
2608
|
l.value = !0;
|
|
2609
2609
|
}), C(
|
|
2610
2610
|
() => [t.subNavigationExpanded],
|
|
@@ -2634,8 +2634,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2634
2634
|
flush: "post"
|
|
2635
2635
|
}
|
|
2636
2636
|
);
|
|
2637
|
-
function
|
|
2638
|
-
c?.target?.nodeName === "A" && (u.value = !0,
|
|
2637
|
+
function k(c) {
|
|
2638
|
+
c?.target?.nodeName === "A" && (u.value = !0, K(() => {
|
|
2639
2639
|
u.value = !1;
|
|
2640
2640
|
}, 1e3));
|
|
2641
2641
|
}
|
|
@@ -2662,8 +2662,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2662
2662
|
}, [
|
|
2663
2663
|
i.value ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2664
2664
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2665
|
-
D(
|
|
2666
|
-
], 64)) :
|
|
2665
|
+
D(B(e.text), 1)
|
|
2666
|
+
], 64)) : F(c.$slots, "default", { key: 1 })
|
|
2667
2667
|
], 64)),
|
|
2668
2668
|
i.value ? (v(), y(H, { key: 1 }, [
|
|
2669
2669
|
E("button", {
|
|
@@ -2674,14 +2674,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2674
2674
|
onClick: d[0] || (d[0] = async (m) => x(m))
|
|
2675
2675
|
}, [
|
|
2676
2676
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2677
|
-
D(
|
|
2678
|
-
], 64)) :
|
|
2677
|
+
D(B(e.text), 1)
|
|
2678
|
+
], 64)) : F(c.$slots, "default", { key: 1 })
|
|
2679
2679
|
], 8, oi),
|
|
2680
2680
|
E("menu", {
|
|
2681
2681
|
class: "db-sub-navigation",
|
|
2682
2682
|
"data-force-close": u.value,
|
|
2683
2683
|
id: f.value,
|
|
2684
|
-
onClick: d[1] || (d[1] = async (m) =>
|
|
2684
|
+
onClick: d[1] || (d[1] = async (m) => k(m))
|
|
2685
2685
|
}, [
|
|
2686
2686
|
a.value ? (v(), y("div", si, [
|
|
2687
2687
|
te(we, {
|
|
@@ -2691,12 +2691,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2691
2691
|
onClick: (m) => b(m)
|
|
2692
2692
|
}, {
|
|
2693
2693
|
default: G(() => [
|
|
2694
|
-
D(
|
|
2694
|
+
D(B(e.backButtonText ?? n($a)), 1)
|
|
2695
2695
|
]),
|
|
2696
2696
|
_: 1
|
|
2697
2697
|
}, 8, ["id", "onClick"])
|
|
2698
2698
|
])) : z("", !0),
|
|
2699
|
-
|
|
2699
|
+
F(c.$slots, "sub-navigation")
|
|
2700
2700
|
], 8, di)
|
|
2701
2701
|
], 64)) : z("", !0)
|
|
2702
2702
|
], 42, ni));
|
|
@@ -2748,15 +2748,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2748
2748
|
"data-show-icon": n(V)(e.showIcon),
|
|
2749
2749
|
"data-link-variant": e.linkVariant
|
|
2750
2750
|
}, [
|
|
2751
|
-
|
|
2752
|
-
n(_)(e.headline, e.showHeadline) ? (v(), y("header", ci,
|
|
2751
|
+
F(i.$slots, "image"),
|
|
2752
|
+
n(_)(e.headline, e.showHeadline) ? (v(), y("header", ci, B(e.headline), 1)) : z("", !0),
|
|
2753
2753
|
E("p", null, [
|
|
2754
2754
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2755
|
-
D(
|
|
2756
|
-
], 64)) :
|
|
2755
|
+
D(B(e.text), 1)
|
|
2756
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2757
2757
|
]),
|
|
2758
|
-
n(_)(e.timestamp, e.showTimestamp) ? (v(), y("span", ri,
|
|
2759
|
-
|
|
2758
|
+
n(_)(e.timestamp, e.showTimestamp) ? (v(), y("span", ri, B(e.timestamp), 1)) : z("", !0),
|
|
2759
|
+
F(i.$slots, "link"),
|
|
2760
2760
|
n(q)(e.closeable, "closeable") ? (v(), J(we, {
|
|
2761
2761
|
key: 2,
|
|
2762
2762
|
icon: "cross",
|
|
@@ -2767,7 +2767,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2767
2767
|
onClick: (u) => a(u)
|
|
2768
2768
|
}, {
|
|
2769
2769
|
default: G(() => [
|
|
2770
|
-
D(
|
|
2770
|
+
D(B(e.closeButtonText ?? n(qe)), 1)
|
|
2771
2771
|
]),
|
|
2772
2772
|
_: 1
|
|
2773
2773
|
}, 8, ["id", "onClick"])) : z("", !0)
|
|
@@ -2790,7 +2790,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2790
2790
|
},
|
|
2791
2791
|
setup(e) {
|
|
2792
2792
|
const t = e, l = o(!1), a = o(null);
|
|
2793
|
-
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"),
|
|
2793
|
+
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), Y(() => {
|
|
2794
2794
|
l.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
2795
2795
|
l.value = !0;
|
|
2796
2796
|
}) : l.value = !0;
|
|
@@ -2805,13 +2805,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2805
2805
|
"data-fade-in": n(V)(e.fadeIn),
|
|
2806
2806
|
"data-fonts-loaded": n(V)(l.value)
|
|
2807
2807
|
}, [
|
|
2808
|
-
|
|
2808
|
+
F(i.$slots, "header"),
|
|
2809
2809
|
E("main", {
|
|
2810
2810
|
class: U(n(O)("db-main", e.mainClass))
|
|
2811
2811
|
}, [
|
|
2812
|
-
|
|
2812
|
+
F(i.$slots, "default")
|
|
2813
2813
|
], 2),
|
|
2814
|
-
|
|
2814
|
+
F(i.$slots, "footer")
|
|
2815
2815
|
], 10, vi));
|
|
2816
2816
|
}
|
|
2817
2817
|
}), Ul = ["auto", "fixed"], Ol = ["hidden", "auto"], fi = ["id"], hi = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Gl = /* @__PURE__ */ W({
|
|
@@ -2833,7 +2833,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(e) {
|
|
2835
2835
|
const t = e, l = o(!1), a = o(!1), i = o(void 0), s = o(void 0), u = o(null);
|
|
2836
|
-
|
|
2836
|
+
Y(() => {
|
|
2837
2837
|
l.value = !0;
|
|
2838
2838
|
}), C(
|
|
2839
2839
|
() => [u.value, l.value],
|
|
@@ -2845,7 +2845,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2845
2845
|
"keydown",
|
|
2846
2846
|
(d) => f(d)
|
|
2847
2847
|
), ["mouseenter", "focusin"].forEach((d) => {
|
|
2848
|
-
u.value.addEventListener(d, () =>
|
|
2848
|
+
u.value.addEventListener(d, () => k());
|
|
2849
2849
|
}), ["mouseleave", "focusout"].forEach((d) => {
|
|
2850
2850
|
u.value.addEventListener(d, () => x());
|
|
2851
2851
|
}), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((d) => {
|
|
@@ -2879,7 +2879,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2879
2879
|
function g() {
|
|
2880
2880
|
if (!u.value) return;
|
|
2881
2881
|
const c = u.value.querySelector("article");
|
|
2882
|
-
c &&
|
|
2882
|
+
c && K(() => {
|
|
2883
2883
|
ua(
|
|
2884
2884
|
c,
|
|
2885
2885
|
u.value,
|
|
@@ -2890,7 +2890,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2890
2890
|
function h(c) {
|
|
2891
2891
|
c?.target?.contains && c?.target?.contains(u.value) && g();
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function k() {
|
|
2894
2894
|
a.value = !0, i.value = new oe().addCallback(
|
|
2895
2895
|
(d) => h(d)
|
|
2896
2896
|
), g();
|
|
@@ -2922,7 +2922,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2922
2922
|
id: e.id,
|
|
2923
2923
|
class: U(n(O)("db-popover", t.class))
|
|
2924
2924
|
}, [
|
|
2925
|
-
|
|
2925
|
+
F(c.$slots, "trigger"),
|
|
2926
2926
|
E("article", {
|
|
2927
2927
|
class: "db-popover-content",
|
|
2928
2928
|
"data-spacing": e.spacing,
|
|
@@ -2933,7 +2933,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2933
2933
|
"data-width": e.width,
|
|
2934
2934
|
"data-placement": e.placement
|
|
2935
2935
|
}, [
|
|
2936
|
-
|
|
2936
|
+
F(c.$slots, "default")
|
|
2937
2937
|
], 8, hi)
|
|
2938
2938
|
], 10, fi));
|
|
2939
2939
|
}
|
|
@@ -2969,7 +2969,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2969
2969
|
emits: ["update:value"],
|
|
2970
2970
|
setup(e, { emit: t }) {
|
|
2971
2971
|
const l = t, a = e, i = o(!1), s = o(void 0), u = o(void 0), f = o(null);
|
|
2972
|
-
|
|
2972
|
+
Y(() => {
|
|
2973
2973
|
i.value = !0, s.value = a.id ?? `radio-${Q()}`;
|
|
2974
2974
|
}), ge(() => {
|
|
2975
2975
|
u.value?.abort();
|
|
@@ -2990,7 +2990,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2990
2990
|
b || (b = new AbortController(), u.value = b), Me(
|
|
2991
2991
|
f.value,
|
|
2992
2992
|
(c) => {
|
|
2993
|
-
|
|
2993
|
+
K(() => {
|
|
2994
2994
|
const d = a.checked ? a.checked : f.value.checked, m = {
|
|
2995
2995
|
...c,
|
|
2996
2996
|
target: {
|
|
@@ -3017,7 +3017,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3017
3017
|
function h(b, c) {
|
|
3018
3018
|
a.onChange && a.onChange(b), de(l, b);
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function k(b) {
|
|
3021
3021
|
a.onBlur && a.onBlur(b);
|
|
3022
3022
|
}
|
|
3023
3023
|
function x(b) {
|
|
@@ -3044,12 +3044,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3044
3044
|
required: n(q)(e.required, "required"),
|
|
3045
3045
|
onInput: c[0] || (c[0] = async (d) => g(d)),
|
|
3046
3046
|
onChange: c[1] || (c[1] = async (d) => h(d)),
|
|
3047
|
-
onBlur: c[2] || (c[2] = async (d) =>
|
|
3047
|
+
onBlur: c[2] || (c[2] = async (d) => k(d)),
|
|
3048
3048
|
onFocus: c[3] || (c[3] = async (d) => x(d))
|
|
3049
3049
|
}, null, 40, mi),
|
|
3050
3050
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3051
|
-
D(
|
|
3052
|
-
], 64)) :
|
|
3051
|
+
D(B(e.label), 1)
|
|
3052
|
+
], 64)) : F(b.$slots, "default", { key: 1 })
|
|
3053
3053
|
], 10, gi));
|
|
3054
3054
|
}
|
|
3055
3055
|
}), bi = ["id", "data-spacing", "data-width"], Hl = /* @__PURE__ */ W({
|
|
@@ -3065,7 +3065,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3065
3065
|
},
|
|
3066
3066
|
setup(e) {
|
|
3067
3067
|
const t = e, l = o(Ie), a = o(null);
|
|
3068
|
-
return
|
|
3068
|
+
return Y(() => {
|
|
3069
3069
|
l.value = t.id || "section-" + Q();
|
|
3070
3070
|
}), (i, s) => (v(), y("section", {
|
|
3071
3071
|
ref_key: "_ref",
|
|
@@ -3075,7 +3075,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3075
3075
|
"data-spacing": e.spacing || "medium",
|
|
3076
3076
|
"data-width": e.width
|
|
3077
3077
|
}, [
|
|
3078
|
-
|
|
3078
|
+
F(i.$slots, "default")
|
|
3079
3079
|
], 10, bi));
|
|
3080
3080
|
}
|
|
3081
3081
|
}), yi = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], ki = ["for"], wi = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Si = {
|
|
@@ -3128,8 +3128,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3128
3128
|
},
|
|
3129
3129
|
emits: ["update:value"],
|
|
3130
3130
|
setup(e, { emit: t }) {
|
|
3131
|
-
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(""),
|
|
3132
|
-
|
|
3131
|
+
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(""), k = o(void 0), x = o(""), b = o(!1), c = o(""), d = o(void 0), m = o(null);
|
|
3132
|
+
Y(() => {
|
|
3133
3133
|
b.value = !0;
|
|
3134
3134
|
const A = a.id ?? `select-${Q()}`;
|
|
3135
3135
|
i.value = A, s.value = A + ce, u.value = A + re, f.value = A + ve, h.value = A + De, g.value = a.invalidMessage || ee;
|
|
@@ -3148,8 +3148,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3148
3148
|
() => [i.value, b.value],
|
|
3149
3149
|
() => {
|
|
3150
3150
|
if (i.value && b.value) {
|
|
3151
|
-
const A = i.value + ce,
|
|
3152
|
-
s.value = A, u.value = i.value + re, f.value = i.value + ve, h.value =
|
|
3151
|
+
const A = i.value + ce, R = i.value + De;
|
|
3152
|
+
s.value = A, u.value = i.value + re, f.value = i.value + ve, h.value = R, _(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(), b.value = !1;
|
|
3153
3153
|
}
|
|
3154
3154
|
},
|
|
3155
3155
|
{
|
|
@@ -3169,17 +3169,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3169
3169
|
() => [m.value],
|
|
3170
3170
|
() => {
|
|
3171
3171
|
if (m.value) {
|
|
3172
|
-
let
|
|
3173
|
-
|
|
3172
|
+
let R = d.value;
|
|
3173
|
+
R || (R = new AbortController(), d.value = R), Ue(
|
|
3174
3174
|
m.value,
|
|
3175
3175
|
{
|
|
3176
3176
|
value: a.value,
|
|
3177
3177
|
defaultValue: void 0
|
|
3178
3178
|
},
|
|
3179
3179
|
(j) => {
|
|
3180
|
-
|
|
3180
|
+
S(j), L(j);
|
|
3181
3181
|
},
|
|
3182
|
-
|
|
3182
|
+
R.signal
|
|
3183
3183
|
);
|
|
3184
3184
|
}
|
|
3185
3185
|
},
|
|
@@ -3192,27 +3192,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3192
3192
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3193
3193
|
}
|
|
3194
3194
|
function T() {
|
|
3195
|
-
!m.value?.validity.valid || a.validation === "invalid" ? (
|
|
3195
|
+
!m.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || m.value?.validationMessage || ee, ue() && (c.value = g.value, K(() => c.value = "", 1e3))) : I() && m.value?.validity.valid && a.required ? (k.value = u.value, ue() && (c.value = a.validMessage ?? se, K(() => c.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = s.value : a.placeholder ? k.value = h.value : k.value = void 0;
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function w(A) {
|
|
3198
3198
|
a.onClick && a.onClick(A);
|
|
3199
3199
|
}
|
|
3200
|
-
function L(A,
|
|
3200
|
+
function L(A, R) {
|
|
3201
3201
|
a.input && a.input(A), x.value = A.target.value, a.onInput && a.onInput(A), de(l, A), T();
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function S(A, R) {
|
|
3204
3204
|
a.onChange && a.onChange(A), de(l, A), T();
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function M(A) {
|
|
3207
3207
|
a.onBlur && a.onBlur(A);
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function N(A) {
|
|
3210
3210
|
a.onFocus && a.onFocus(A);
|
|
3211
3211
|
}
|
|
3212
3212
|
function X(A) {
|
|
3213
3213
|
return A.label ?? A.value?.toString();
|
|
3214
3214
|
}
|
|
3215
|
-
return (A,
|
|
3215
|
+
return (A, R) => (v(), y("div", {
|
|
3216
3216
|
class: U(n(O)("db-select", a.class)),
|
|
3217
3217
|
"data-variant": e.variant,
|
|
3218
3218
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -3220,7 +3220,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3220
3220
|
"data-icon": e.icon,
|
|
3221
3221
|
"data-show-icon": n(V)(e.showIcon)
|
|
3222
3222
|
}, [
|
|
3223
|
-
E("label", { for: i.value },
|
|
3223
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, ki),
|
|
3224
3224
|
E("select", {
|
|
3225
3225
|
"aria-invalid": e.validation === "invalid",
|
|
3226
3226
|
"data-custom-validity": e.validation,
|
|
@@ -3234,12 +3234,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3234
3234
|
value: e.value ?? x.value,
|
|
3235
3235
|
autocomplete: e.autocomplete,
|
|
3236
3236
|
multiple: e.multiple,
|
|
3237
|
-
onInput:
|
|
3238
|
-
onClick:
|
|
3239
|
-
onChange:
|
|
3240
|
-
onBlur:
|
|
3241
|
-
onFocus:
|
|
3242
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
3237
|
+
onInput: R[0] || (R[0] = async (j) => L(j)),
|
|
3238
|
+
onClick: R[1] || (R[1] = async (j) => w(j)),
|
|
3239
|
+
onChange: R[2] || (R[2] = async (j) => S(j)),
|
|
3240
|
+
onBlur: R[3] || (R[3] = async (j) => M(j)),
|
|
3241
|
+
onFocus: R[4] || (R[4] = async (j) => N(j)),
|
|
3242
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
3243
3243
|
}, [
|
|
3244
3244
|
e.variant === "floating" || e.placeholder ? (v(), y("option", Si)) : z("", !0),
|
|
3245
3245
|
e.options?.length ? (v(!0), y(H, { key: 1 }, he(e.options, (j, pe) => (v(), y(H, { key: pe }, [
|
|
@@ -3252,20 +3252,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3252
3252
|
value: me.value,
|
|
3253
3253
|
selected: me.selected,
|
|
3254
3254
|
disabled: me.disabled
|
|
3255
|
-
},
|
|
3255
|
+
}, B(X(me)), 9, pi))), 128))
|
|
3256
3256
|
], 8, Bi)) : (v(), y("option", {
|
|
3257
3257
|
key: 1,
|
|
3258
3258
|
value: j.value,
|
|
3259
3259
|
disabled: j.disabled,
|
|
3260
3260
|
selected: j.selected
|
|
3261
|
-
},
|
|
3262
|
-
], 64))), 128)) :
|
|
3261
|
+
}, B(X(j)), 9, Li))
|
|
3262
|
+
], 64))), 128)) : F(A.$slots, "default", { key: 2 })
|
|
3263
3263
|
], 40, wi),
|
|
3264
3264
|
e.placeholder ? (v(), y("span", {
|
|
3265
3265
|
key: 0,
|
|
3266
3266
|
class: "db-select-placeholder",
|
|
3267
3267
|
id: h.value
|
|
3268
|
-
},
|
|
3268
|
+
}, B(e.placeholder), 9, Ii)) : z("", !0),
|
|
3269
3269
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
3270
3270
|
key: 1,
|
|
3271
3271
|
size: "small",
|
|
@@ -3273,7 +3273,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3273
3273
|
id: s.value
|
|
3274
3274
|
}, {
|
|
3275
3275
|
default: G(() => [
|
|
3276
|
-
D(
|
|
3276
|
+
D(B(e.message), 1)
|
|
3277
3277
|
]),
|
|
3278
3278
|
_: 1
|
|
3279
3279
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -3284,7 +3284,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3284
3284
|
id: u.value
|
|
3285
3285
|
}, {
|
|
3286
3286
|
default: G(() => [
|
|
3287
|
-
D(
|
|
3287
|
+
D(B(e.validMessage || n(se)), 1)
|
|
3288
3288
|
]),
|
|
3289
3289
|
_: 1
|
|
3290
3290
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3294,11 +3294,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3294
3294
|
id: f.value
|
|
3295
3295
|
}, {
|
|
3296
3296
|
default: G(() => [
|
|
3297
|
-
D(
|
|
3297
|
+
D(B(g.value), 1)
|
|
3298
3298
|
]),
|
|
3299
3299
|
_: 1
|
|
3300
3300
|
}, 8, ["id"]),
|
|
3301
|
-
E("span", $i,
|
|
3301
|
+
E("span", $i, B(c.value), 1)
|
|
3302
3302
|
], 10, yi));
|
|
3303
3303
|
}
|
|
3304
3304
|
}), xi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], jl = /* @__PURE__ */ W({
|
|
@@ -3330,10 +3330,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3330
3330
|
"data-justify-content": e.justifyContent,
|
|
3331
3331
|
"data-wrap": n(V)(e.wrap)
|
|
3332
3332
|
}, [
|
|
3333
|
-
|
|
3333
|
+
F(a.$slots, "default")
|
|
3334
3334
|
], 10, xi));
|
|
3335
3335
|
}
|
|
3336
|
-
}),
|
|
3336
|
+
}), Kl = ["simple", "divider"], Yl = ["row", "column"], Jl = ["stretch", "start", "end", "center"], Ql = ["space-between", "start", "end", "center"], Ti = ["data-visual-aid", "data-size", "data-hide-label", "data-variant", "data-hide-asterisk", "data-custom-validity"], Ci = ["for"], Ei = ["id", "checked", "value", "disabled", "aria-invalid", "aria-describedby", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ai = {
|
|
3337
3337
|
"data-visually-hidden": "true",
|
|
3338
3338
|
role: "status"
|
|
3339
3339
|
}, Zl = /* @__PURE__ */ W({
|
|
@@ -3377,8 +3377,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3377
3377
|
},
|
|
3378
3378
|
emits: ["update:checked"],
|
|
3379
3379
|
setup(e, { emit: t }) {
|
|
3380
|
-
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0),
|
|
3381
|
-
|
|
3380
|
+
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), x = o(void 0), b = o(null);
|
|
3381
|
+
Y(() => {
|
|
3382
3382
|
i.value = a.id ?? `switch-${Q()}`, s.value = `${i.value}${ce}`, u.value = `${i.value}${re}`, f.value = `${i.value}${ve}`, d();
|
|
3383
3383
|
}), ge(() => {
|
|
3384
3384
|
x.value?.abort();
|
|
@@ -3403,17 +3403,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3403
3403
|
() => [b.value],
|
|
3404
3404
|
() => {
|
|
3405
3405
|
if (b.value) {
|
|
3406
|
-
let
|
|
3407
|
-
|
|
3406
|
+
let S = x.value;
|
|
3407
|
+
S || (S = new AbortController(), x.value = S), da(
|
|
3408
3408
|
b.value,
|
|
3409
3409
|
{
|
|
3410
3410
|
checked: a.checked,
|
|
3411
3411
|
defaultChecked: void 0
|
|
3412
3412
|
},
|
|
3413
|
-
(
|
|
3414
|
-
m(
|
|
3413
|
+
(M) => {
|
|
3414
|
+
m(M);
|
|
3415
3415
|
},
|
|
3416
|
-
|
|
3416
|
+
S.signal
|
|
3417
3417
|
);
|
|
3418
3418
|
}
|
|
3419
3419
|
},
|
|
@@ -3427,14 +3427,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3427
3427
|
}
|
|
3428
3428
|
function d() {
|
|
3429
3429
|
if (!b.value?.validity?.valid || a.validation === "invalid") {
|
|
3430
|
-
h.value = f.value, g.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (
|
|
3431
|
-
|
|
3430
|
+
h.value = f.value, g.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (k.value = g.value || ee, K(() => {
|
|
3431
|
+
k.value = "";
|
|
3432
3432
|
}, 1e3));
|
|
3433
3433
|
return;
|
|
3434
3434
|
}
|
|
3435
3435
|
if (c() && b.value?.validity?.valid && a.required) {
|
|
3436
|
-
h.value = u.value, ue() && (
|
|
3437
|
-
|
|
3436
|
+
h.value = u.value, ue() && (k.value = a.validMessage ?? se, K(() => {
|
|
3437
|
+
k.value = "";
|
|
3438
3438
|
}, 1e3));
|
|
3439
3439
|
return;
|
|
3440
3440
|
}
|
|
@@ -3444,16 +3444,19 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3444
3444
|
}
|
|
3445
3445
|
h.value = void 0;
|
|
3446
3446
|
}
|
|
3447
|
-
function m(
|
|
3448
|
-
a.onChange && a.onChange(
|
|
3447
|
+
function m(L, S) {
|
|
3448
|
+
a.onChange && a.onChange(L), d(), de(l, L, "checked");
|
|
3449
|
+
}
|
|
3450
|
+
function I(L) {
|
|
3451
|
+
a.onBlur && a.onBlur(L);
|
|
3449
3452
|
}
|
|
3450
|
-
function
|
|
3451
|
-
a.
|
|
3453
|
+
function T(L) {
|
|
3454
|
+
a.onFocus && a.onFocus(L);
|
|
3452
3455
|
}
|
|
3453
|
-
function
|
|
3454
|
-
|
|
3456
|
+
function w(L) {
|
|
3457
|
+
L.key === "Enter" && (L.preventDefault(), a.disabled || b.value?.click());
|
|
3455
3458
|
}
|
|
3456
|
-
return (
|
|
3459
|
+
return (L, S) => (v(), y("div", {
|
|
3457
3460
|
"data-visual-aid": n(V)(e.visualAid),
|
|
3458
3461
|
"data-size": e.size,
|
|
3459
3462
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -3478,13 +3481,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3478
3481
|
required: n(q)(e.required, "required"),
|
|
3479
3482
|
"data-aid-icon": e.iconLeading ?? e.icon,
|
|
3480
3483
|
"data-aid-icon-trailing": e.iconTrailing,
|
|
3481
|
-
onChange:
|
|
3482
|
-
onBlur:
|
|
3483
|
-
onFocus:
|
|
3484
|
+
onChange: S[0] || (S[0] = async (M) => m(M)),
|
|
3485
|
+
onBlur: S[1] || (S[1] = async (M) => I(M)),
|
|
3486
|
+
onFocus: S[2] || (S[2] = async (M) => T(M)),
|
|
3487
|
+
onKeydown: S[3] || (S[3] = async (M) => w(M))
|
|
3484
3488
|
}, null, 40, Ei),
|
|
3485
3489
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3486
|
-
D(
|
|
3487
|
-
], 64)) :
|
|
3490
|
+
D(B(e.label), 1)
|
|
3491
|
+
], 64)) : F(L.$slots, "default", { key: 1 })
|
|
3488
3492
|
], 8, Ci),
|
|
3489
3493
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
3490
3494
|
key: 0,
|
|
@@ -3494,7 +3498,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3494
3498
|
icon: e.messageIcon
|
|
3495
3499
|
}, {
|
|
3496
3500
|
default: G(() => [
|
|
3497
|
-
D(
|
|
3501
|
+
D(B(e.message), 1)
|
|
3498
3502
|
]),
|
|
3499
3503
|
_: 1
|
|
3500
3504
|
}, 8, ["id", "icon"])) : z("", !0),
|
|
@@ -3505,7 +3509,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3505
3509
|
id: u.value
|
|
3506
3510
|
}, {
|
|
3507
3511
|
default: G(() => [
|
|
3508
|
-
D(
|
|
3512
|
+
D(B(e.validMessage ?? n(se)), 1)
|
|
3509
3513
|
]),
|
|
3510
3514
|
_: 1
|
|
3511
3515
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3515,11 +3519,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3515
3519
|
id: f.value
|
|
3516
3520
|
}, {
|
|
3517
3521
|
default: G(() => [
|
|
3518
|
-
D(
|
|
3522
|
+
D(B(g.value ?? e.invalidMessage ?? n(ee)), 1)
|
|
3519
3523
|
]),
|
|
3520
3524
|
_: 1
|
|
3521
3525
|
}, 8, ["id"]),
|
|
3522
|
-
E("span", Ai,
|
|
3526
|
+
E("span", Ai, B(k.value), 1)
|
|
3523
3527
|
], 10, Ti));
|
|
3524
3528
|
}
|
|
3525
3529
|
}), Di = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Mi = ["disabled", "aria-selected", "checked", "name", "id"], Fi = /* @__PURE__ */ W({
|
|
@@ -3548,7 +3552,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3548
3552
|
emits: ["update:checked"],
|
|
3549
3553
|
setup(e, { emit: t }) {
|
|
3550
3554
|
const l = t, a = e, i = o(!1), s = o(void 0), u = o(!1), f = o(null);
|
|
3551
|
-
|
|
3555
|
+
Y(() => {
|
|
3552
3556
|
u.value = !0;
|
|
3553
3557
|
}), C(
|
|
3554
3558
|
() => [f.value, u.value],
|
|
@@ -3572,7 +3576,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3572
3576
|
function g(h) {
|
|
3573
3577
|
h.stopPropagation(), a.onChange && a.onChange(h), i.value = h.target?.checked, de(l, h, "checked");
|
|
3574
3578
|
}
|
|
3575
|
-
return (h,
|
|
3579
|
+
return (h, k) => (v(), y("li", {
|
|
3576
3580
|
role: "none",
|
|
3577
3581
|
class: U(n(O)("db-tab-item", a.class))
|
|
3578
3582
|
}, [
|
|
@@ -3594,12 +3598,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3594
3598
|
ref: f,
|
|
3595
3599
|
name: s.value,
|
|
3596
3600
|
id: e.id,
|
|
3597
|
-
onInput:
|
|
3601
|
+
onInput: k[0] || (k[0] = async (x) => g(x))
|
|
3598
3602
|
}, null, 40, Mi),
|
|
3599
3603
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3600
|
-
D(
|
|
3604
|
+
D(B(e.label), 1)
|
|
3601
3605
|
], 64)) : z("", !0),
|
|
3602
|
-
|
|
3606
|
+
F(h.$slots, "default")
|
|
3603
3607
|
], 8, Di)
|
|
3604
3608
|
], 2));
|
|
3605
3609
|
}
|
|
@@ -3614,7 +3618,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3614
3618
|
},
|
|
3615
3619
|
setup(e) {
|
|
3616
3620
|
const t = e, l = o(Ie), a = o(null);
|
|
3617
|
-
return
|
|
3621
|
+
return Y(() => {
|
|
3618
3622
|
l.value = t.id || "tab-list-" + Q();
|
|
3619
3623
|
}), (i, s) => (v(), y("div", {
|
|
3620
3624
|
ref_key: "_ref",
|
|
@@ -3623,7 +3627,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3623
3627
|
class: U(n(O)("db-tab-list", t.class))
|
|
3624
3628
|
}, [
|
|
3625
3629
|
E("ul", Ri, [
|
|
3626
|
-
|
|
3630
|
+
F(i.$slots, "default")
|
|
3627
3631
|
])
|
|
3628
3632
|
], 10, Ni));
|
|
3629
3633
|
}
|
|
@@ -3639,7 +3643,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3639
3643
|
},
|
|
3640
3644
|
setup(e) {
|
|
3641
3645
|
const t = e, l = o(null);
|
|
3642
|
-
return
|
|
3646
|
+
return Y(() => {
|
|
3643
3647
|
}), (a, i) => (v(), y("section", {
|
|
3644
3648
|
role: "tabpanel",
|
|
3645
3649
|
ref_key: "_ref",
|
|
@@ -3648,9 +3652,9 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3648
3652
|
id: e.id
|
|
3649
3653
|
}, [
|
|
3650
3654
|
e.content ? (v(), y(H, { key: 0 }, [
|
|
3651
|
-
D(
|
|
3655
|
+
D(B(e.content), 1)
|
|
3652
3656
|
], 64)) : z("", !0),
|
|
3653
|
-
|
|
3657
|
+
F(a.$slots, "default")
|
|
3654
3658
|
], 10, Vi));
|
|
3655
3659
|
}
|
|
3656
3660
|
}), qi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], _l = /* @__PURE__ */ W({
|
|
@@ -3677,7 +3681,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3677
3681
|
},
|
|
3678
3682
|
setup(e) {
|
|
3679
3683
|
const t = e, l = o("tabs-" + Q()), a = o(""), i = o(!1), s = o(!1), u = o(!1), f = o(null), g = o(void 0), h = o(null);
|
|
3680
|
-
|
|
3684
|
+
Y(() => {
|
|
3681
3685
|
l.value = t.id || l.value, a.value = `tabs-${t.name || Q()}`, i.value = !0;
|
|
3682
3686
|
}), ge(() => {
|
|
3683
3687
|
g.value?.disconnect(), g.value = void 0;
|
|
@@ -3687,8 +3691,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3687
3691
|
if (h.value && i.value) {
|
|
3688
3692
|
c(), d(!0);
|
|
3689
3693
|
const I = h.value.querySelector(".db-tab-list");
|
|
3690
|
-
I && new MutationObserver((
|
|
3691
|
-
|
|
3694
|
+
I && new MutationObserver((w) => {
|
|
3695
|
+
w.forEach((L) => {
|
|
3692
3696
|
(L.removedNodes.length || L.addedNodes.length) && (c(), d());
|
|
3693
3697
|
});
|
|
3694
3698
|
}).observe(I, {
|
|
@@ -3702,7 +3706,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3702
3706
|
flush: "post"
|
|
3703
3707
|
}
|
|
3704
3708
|
);
|
|
3705
|
-
function
|
|
3709
|
+
function k() {
|
|
3706
3710
|
try {
|
|
3707
3711
|
return typeof t.tabs == "string" ? JSON.parse(t.tabs) : t.tabs;
|
|
3708
3712
|
} catch (I) {
|
|
@@ -3733,10 +3737,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3733
3737
|
), t.behavior === "arrows" && (f.value = T, x(T), T.addEventListener("scroll", () => {
|
|
3734
3738
|
x(T);
|
|
3735
3739
|
}), !g.value))) {
|
|
3736
|
-
const
|
|
3740
|
+
const w = new ResizeObserver(() => {
|
|
3737
3741
|
x(T);
|
|
3738
3742
|
});
|
|
3739
|
-
|
|
3743
|
+
w.observe(T), g.value = w;
|
|
3740
3744
|
}
|
|
3741
3745
|
}
|
|
3742
3746
|
}
|
|
@@ -3745,44 +3749,44 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3745
3749
|
if (h.value) {
|
|
3746
3750
|
const T = Array.from(
|
|
3747
3751
|
h.value.getElementsByClassName("db-tab-item")
|
|
3748
|
-
),
|
|
3752
|
+
), w = Array.from(
|
|
3749
3753
|
h.value.querySelectorAll(
|
|
3750
3754
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
3751
3755
|
)
|
|
3752
3756
|
);
|
|
3753
3757
|
for (const L of T) {
|
|
3754
|
-
const
|
|
3755
|
-
if (
|
|
3756
|
-
if (!
|
|
3757
|
-
const X = `${a.value}-tab-${
|
|
3758
|
-
|
|
3758
|
+
const S = T.indexOf(L), M = L.querySelector("label"), N = L.querySelector("input");
|
|
3759
|
+
if (N && M) {
|
|
3760
|
+
if (!N.id) {
|
|
3761
|
+
const X = `${a.value}-tab-${S}`;
|
|
3762
|
+
M.setAttribute("for", X), N.id = X, N.setAttribute("name", a.value), w.length > S && N.setAttribute(
|
|
3759
3763
|
"aria-controls",
|
|
3760
|
-
`${a.value}-tab-panel-${
|
|
3764
|
+
`${a.value}-tab-panel-${S}`
|
|
3761
3765
|
);
|
|
3762
3766
|
}
|
|
3763
3767
|
if (I) {
|
|
3764
|
-
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null &&
|
|
3765
|
-
X && A &&
|
|
3768
|
+
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null && S === 0 || Number(t.initialSelectedIndex) === S;
|
|
3769
|
+
X && A && N.click();
|
|
3766
3770
|
}
|
|
3767
3771
|
}
|
|
3768
3772
|
}
|
|
3769
|
-
for (const L of
|
|
3773
|
+
for (const L of w) {
|
|
3770
3774
|
if (L.id) continue;
|
|
3771
|
-
const
|
|
3772
|
-
L.id = `${a.value}-tab-panel-${
|
|
3775
|
+
const S = w.indexOf(L);
|
|
3776
|
+
L.id = `${a.value}-tab-panel-${S}`, L.setAttribute("aria-labelledby", `${a.value}-tab-${S}`);
|
|
3773
3777
|
}
|
|
3774
3778
|
}
|
|
3775
3779
|
}
|
|
3776
3780
|
function m(I) {
|
|
3777
3781
|
if (I.stopPropagation(), I.target) {
|
|
3778
|
-
const
|
|
3779
|
-
if (
|
|
3780
|
-
const L =
|
|
3782
|
+
const w = I.target.parentElement;
|
|
3783
|
+
if (w && w.parentElement && w.parentElement?.nodeName === "LI") {
|
|
3784
|
+
const L = w.parentElement;
|
|
3781
3785
|
if (L) {
|
|
3782
|
-
const
|
|
3783
|
-
if (
|
|
3784
|
-
const
|
|
3785
|
-
t.onIndexChange && t.onIndexChange(
|
|
3786
|
+
const S = L.parentElement;
|
|
3787
|
+
if (S) {
|
|
3788
|
+
const M = Array.from(S.childNodes).indexOf(L);
|
|
3789
|
+
t.onIndexChange && t.onIndexChange(M), t.onTabSelect && t.onTabSelect(I);
|
|
3786
3790
|
}
|
|
3787
3791
|
}
|
|
3788
3792
|
}
|
|
@@ -3797,8 +3801,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3797
3801
|
"data-scroll-behavior": e.behavior,
|
|
3798
3802
|
"data-alignment": e.alignment ?? "start",
|
|
3799
3803
|
"data-width": e.width ?? "auto",
|
|
3800
|
-
onInput: T[0] || (T[0] = async (
|
|
3801
|
-
onChange: T[1] || (T[1] = async (
|
|
3804
|
+
onInput: T[0] || (T[0] = async (w) => m(w)),
|
|
3805
|
+
onChange: T[1] || (T[1] = async (w) => m(w))
|
|
3802
3806
|
}, [
|
|
3803
3807
|
s.value ? (v(), J(we, {
|
|
3804
3808
|
key: 0,
|
|
@@ -3807,7 +3811,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3807
3811
|
icon: "chevron_left",
|
|
3808
3812
|
type: "button",
|
|
3809
3813
|
noText: !0,
|
|
3810
|
-
onClick: (
|
|
3814
|
+
onClick: (w) => b(!0)
|
|
3811
3815
|
}, {
|
|
3812
3816
|
default: G(() => [...T[2] || (T[2] = [
|
|
3813
3817
|
D(" Scroll left ", -1)
|
|
@@ -3817,23 +3821,23 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3817
3821
|
e.tabs ? (v(), y(H, { key: 1 }, [
|
|
3818
3822
|
te(zi, null, {
|
|
3819
3823
|
default: G(() => [
|
|
3820
|
-
(v(!0), y(H, null, he(
|
|
3824
|
+
(v(!0), y(H, null, he(k(), (w, L) => (v(), J(Fi, {
|
|
3821
3825
|
key: e.name + "tab-item" + L,
|
|
3822
|
-
active:
|
|
3823
|
-
label:
|
|
3824
|
-
iconTrailing:
|
|
3825
|
-
icon:
|
|
3826
|
-
noText:
|
|
3826
|
+
active: w.active,
|
|
3827
|
+
label: w.label,
|
|
3828
|
+
iconTrailing: w.iconTrailing,
|
|
3829
|
+
icon: w.icon,
|
|
3830
|
+
noText: w.noText
|
|
3827
3831
|
}, null, 8, ["active", "label", "iconTrailing", "icon", "noText"]))), 128))
|
|
3828
3832
|
]),
|
|
3829
3833
|
_: 1
|
|
3830
3834
|
}),
|
|
3831
|
-
(v(!0), y(H, null, he(
|
|
3835
|
+
(v(!0), y(H, null, he(k(), (w, L) => (v(), J(Pi, {
|
|
3832
3836
|
key: e.name + "tab-panel" + L,
|
|
3833
|
-
content:
|
|
3837
|
+
content: w.content
|
|
3834
3838
|
}, {
|
|
3835
3839
|
default: G(() => [
|
|
3836
|
-
D(
|
|
3840
|
+
D(B(w.children), 1)
|
|
3837
3841
|
]),
|
|
3838
3842
|
_: 2
|
|
3839
3843
|
}, 1032, ["content"]))), 128))
|
|
@@ -3845,14 +3849,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3845
3849
|
icon: "chevron_right",
|
|
3846
3850
|
type: "button",
|
|
3847
3851
|
noText: !0,
|
|
3848
|
-
onClick: (
|
|
3852
|
+
onClick: (w) => b()
|
|
3849
3853
|
}, {
|
|
3850
3854
|
default: G(() => [...T[3] || (T[3] = [
|
|
3851
3855
|
D(" Scroll right ", -1)
|
|
3852
3856
|
])]),
|
|
3853
3857
|
_: 1
|
|
3854
3858
|
}, 8, ["onClick"])) : z("", !0),
|
|
3855
|
-
|
|
3859
|
+
F(I.$slots, "default")
|
|
3856
3860
|
], 42, qi));
|
|
3857
3861
|
}
|
|
3858
3862
|
}), en = ["scrollbar", "arrows"], an = ["auto", "manually"], tn = ["static", "removable"], Ui = ["data-variant", "data-hide-asterisk", "data-hide-label"], Oi = ["for"], Gi = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Wi = {
|
|
@@ -3908,10 +3912,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3908
3912
|
},
|
|
3909
3913
|
emits: ["update:value"],
|
|
3910
3914
|
setup(e, { emit: t }) {
|
|
3911
|
-
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0),
|
|
3912
|
-
|
|
3913
|
-
const
|
|
3914
|
-
i.value =
|
|
3915
|
+
const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), x = o(""), b = o(void 0), c = o(null);
|
|
3916
|
+
Y(() => {
|
|
3917
|
+
const S = a.id ?? `textarea-${Q()}`;
|
|
3918
|
+
i.value = S, s.value = S + ce, u.value = S + re, f.value = S + ve, g.value = a.invalidMessage || ee;
|
|
3915
3919
|
}), ge(() => {
|
|
3916
3920
|
b.value?.abort();
|
|
3917
3921
|
}), C(
|
|
@@ -3927,8 +3931,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3927
3931
|
() => [i.value],
|
|
3928
3932
|
() => {
|
|
3929
3933
|
if (i.value) {
|
|
3930
|
-
const
|
|
3931
|
-
s.value =
|
|
3934
|
+
const S = i.value + ce;
|
|
3935
|
+
s.value = S, u.value = i.value + re, f.value = i.value + ve, _(a.message, a.showMessage) && (h.value = S), m();
|
|
3932
3936
|
}
|
|
3933
3937
|
},
|
|
3934
3938
|
{
|
|
@@ -3938,7 +3942,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3938
3942
|
), C(
|
|
3939
3943
|
() => [a.value],
|
|
3940
3944
|
() => {
|
|
3941
|
-
|
|
3945
|
+
k.value = a.value;
|
|
3942
3946
|
},
|
|
3943
3947
|
{
|
|
3944
3948
|
immediate: !0,
|
|
@@ -3948,17 +3952,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3948
3952
|
() => [c.value],
|
|
3949
3953
|
() => {
|
|
3950
3954
|
if (c.value) {
|
|
3951
|
-
let
|
|
3952
|
-
|
|
3955
|
+
let M = b.value;
|
|
3956
|
+
M || (M = new AbortController(), b.value = M), Ue(
|
|
3953
3957
|
c.value,
|
|
3954
3958
|
{
|
|
3955
3959
|
value: a.value,
|
|
3956
3960
|
defaultValue: void 0
|
|
3957
3961
|
},
|
|
3958
|
-
(
|
|
3959
|
-
T(
|
|
3962
|
+
(N) => {
|
|
3963
|
+
T(N), I(N);
|
|
3960
3964
|
},
|
|
3961
|
-
|
|
3965
|
+
M.signal
|
|
3962
3966
|
);
|
|
3963
3967
|
}
|
|
3964
3968
|
},
|
|
@@ -3971,27 +3975,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3971
3975
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3972
3976
|
}
|
|
3973
3977
|
function m() {
|
|
3974
|
-
!c.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, g.value = a.invalidMessage || c.value?.validationMessage || ee, ue() && (x.value = g.value,
|
|
3978
|
+
!c.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, g.value = a.invalidMessage || c.value?.validationMessage || ee, ue() && (x.value = g.value, K(() => x.value = "", 1e3))) : d() && c.value?.validity.valid && (a.required || a.minLength || a.maxLength) ? (h.value = u.value, ue() && (x.value = a.validMessage ?? se, K(() => x.value = "", 1e3))) : _(a.message, a.showMessage) ? h.value = s.value : h.value = void 0;
|
|
3975
3979
|
}
|
|
3976
|
-
function I(
|
|
3977
|
-
a.input && a.input(
|
|
3980
|
+
function I(S, M) {
|
|
3981
|
+
a.input && a.input(S), k.value = S.target.value, a.onInput && a.onInput(S), de(l, S), m();
|
|
3978
3982
|
}
|
|
3979
|
-
function T(
|
|
3980
|
-
a.onChange && a.onChange(
|
|
3983
|
+
function T(S, M) {
|
|
3984
|
+
a.onChange && a.onChange(S), de(l, S), m();
|
|
3981
3985
|
}
|
|
3982
|
-
function
|
|
3983
|
-
a.onBlur && a.onBlur(
|
|
3986
|
+
function w(S) {
|
|
3987
|
+
a.onBlur && a.onBlur(S);
|
|
3984
3988
|
}
|
|
3985
|
-
function L(
|
|
3986
|
-
a.onFocus && a.onFocus(
|
|
3989
|
+
function L(S) {
|
|
3990
|
+
a.onFocus && a.onFocus(S);
|
|
3987
3991
|
}
|
|
3988
|
-
return (
|
|
3992
|
+
return (S, M) => (v(), y("div", {
|
|
3989
3993
|
class: U(n(O)("db-textarea", a.class)),
|
|
3990
3994
|
"data-variant": e.variant,
|
|
3991
3995
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3992
3996
|
"data-hide-label": n(ne)(e.showLabel)
|
|
3993
3997
|
}, [
|
|
3994
|
-
E("label", { for: i.value },
|
|
3998
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, Oi),
|
|
3995
3999
|
E("textarea", {
|
|
3996
4000
|
"aria-invalid": e.validation === "invalid",
|
|
3997
4001
|
"data-custom-validity": e.validation,
|
|
@@ -4011,16 +4015,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4011
4015
|
wrap: e.wrap,
|
|
4012
4016
|
spellcheck: e.spellCheck,
|
|
4013
4017
|
autocomplete: e.autocomplete,
|
|
4014
|
-
onInput:
|
|
4015
|
-
onChange:
|
|
4016
|
-
onBlur:
|
|
4017
|
-
onFocus:
|
|
4018
|
-
value: e.value ??
|
|
4018
|
+
onInput: M[0] || (M[0] = async (N) => I(N)),
|
|
4019
|
+
onChange: M[1] || (M[1] = async (N) => T(N)),
|
|
4020
|
+
onBlur: M[2] || (M[2] = async (N) => w(N)),
|
|
4021
|
+
onFocus: M[3] || (M[3] = async (N) => L(N)),
|
|
4022
|
+
value: e.value ?? k.value,
|
|
4019
4023
|
"aria-describedby": e.ariaDescribedBy ?? h.value,
|
|
4020
4024
|
placeholder: e.placeholder ?? n(ea),
|
|
4021
4025
|
rows: n(ke)(e.rows, n(Ea)),
|
|
4022
4026
|
cols: n(ke)(e.cols)
|
|
4023
|
-
},
|
|
4027
|
+
}, B(e.value), 41, Gi),
|
|
4024
4028
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
4025
4029
|
key: 0,
|
|
4026
4030
|
size: "small",
|
|
@@ -4028,7 +4032,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4028
4032
|
id: s.value
|
|
4029
4033
|
}, {
|
|
4030
4034
|
default: G(() => [
|
|
4031
|
-
D(
|
|
4035
|
+
D(B(e.message), 1)
|
|
4032
4036
|
]),
|
|
4033
4037
|
_: 1
|
|
4034
4038
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -4039,7 +4043,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4039
4043
|
id: u.value
|
|
4040
4044
|
}, {
|
|
4041
4045
|
default: G(() => [
|
|
4042
|
-
D(
|
|
4046
|
+
D(B(e.validMessage || n(se)), 1)
|
|
4043
4047
|
]),
|
|
4044
4048
|
_: 1
|
|
4045
4049
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -4049,11 +4053,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4049
4053
|
id: f.value
|
|
4050
4054
|
}, {
|
|
4051
4055
|
default: G(() => [
|
|
4052
|
-
D(
|
|
4056
|
+
D(B(g.value), 1)
|
|
4053
4057
|
]),
|
|
4054
4058
|
_: 1
|
|
4055
4059
|
}, 8, ["id"]),
|
|
4056
|
-
E("span", Wi,
|
|
4060
|
+
E("span", Wi, B(x.value), 1)
|
|
4057
4061
|
], 10, Ui));
|
|
4058
4062
|
}
|
|
4059
4063
|
}), nn = ["none", "both", "horizontal", "vertical"], on = ["hard", "soft", "off"], dn = ["description", "label"], sn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], un = ["medium", "small", "large", "none"], cn = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], rn = [...Hi, ...Xi], vn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], fn = ["horizontal", "vertical"], hn = ["full", "auto"], gn = ["full", "medium", "large", "small"], mn = ["none", "slow", "fast"], bn = ["auto", "fixed"], yn = ["small", "medium"], kn = ["weak", "strong"], wn = ["invalid", "valid", "no-validation"], Sn = ["fixed", "content"], Bn = ["above", "floating"], pn = ["leading", "trailing"], Ln = ["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"], In = ["_self", "_blank", "_parent", "_top"], $n = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], xn = ["start", "center"];
|
|
@@ -4068,7 +4072,7 @@ export {
|
|
|
4068
4072
|
la as COLOR,
|
|
4069
4073
|
Qi as COLORS,
|
|
4070
4074
|
Zi as COLORS_SIMPLE,
|
|
4071
|
-
|
|
4075
|
+
Yi as COLOR_CONST,
|
|
4072
4076
|
ia as COLOR_SIMPLE,
|
|
4073
4077
|
rl as CardBehaviorList,
|
|
4074
4078
|
vl as CardElevationLevelList,
|
|
@@ -4119,7 +4123,7 @@ export {
|
|
|
4119
4123
|
ee as DEFAULT_INVALID_MESSAGE,
|
|
4120
4124
|
ve as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
4121
4125
|
ye as DEFAULT_LABEL,
|
|
4122
|
-
|
|
4126
|
+
Ye as DEFAULT_LABEL_ID_SUFFIX,
|
|
4123
4127
|
Ia as DEFAULT_MESSAGE,
|
|
4124
4128
|
ce as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
4125
4129
|
ea as DEFAULT_PLACEHOLDER,
|
|
@@ -4133,7 +4137,7 @@ export {
|
|
|
4133
4137
|
Aa as DEFAULT_VIEWPORT,
|
|
4134
4138
|
Ji as DENSITIES,
|
|
4135
4139
|
ta as DENSITY,
|
|
4136
|
-
|
|
4140
|
+
Ki as DENSITY_CONST,
|
|
4137
4141
|
Da as DESKTOP_VIEWPORT,
|
|
4138
4142
|
wl as DividerMarginList,
|
|
4139
4143
|
Sl as DividerVariantList,
|
|
@@ -4176,9 +4180,9 @@ export {
|
|
|
4176
4180
|
yn as SizeList,
|
|
4177
4181
|
un as SpacingList,
|
|
4178
4182
|
Jl as StackAlignmentList,
|
|
4179
|
-
|
|
4183
|
+
Yl as StackDirectionList,
|
|
4180
4184
|
Ql as StackJustifyContentList,
|
|
4181
|
-
|
|
4185
|
+
Kl as StackVariantList,
|
|
4182
4186
|
el as TESTING_VIEWPORTS,
|
|
4183
4187
|
en as TabsBehaviorList,
|
|
4184
4188
|
an as TabsInitialSelectedModeList,
|
|
@@ -4190,7 +4194,7 @@ export {
|
|
|
4190
4194
|
hn as WidthList,
|
|
4191
4195
|
oa as addAttributeToChildren,
|
|
4192
4196
|
O as cls,
|
|
4193
|
-
|
|
4197
|
+
K as delay,
|
|
4194
4198
|
q as getBoolean,
|
|
4195
4199
|
V as getBooleanAsString,
|
|
4196
4200
|
sa as getFloatingProps,
|