@db-ux/v-core-components 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/agent/.gitkeep +0 -0
- package/dist/db-ux.es.js +112 -111
- package/dist/db-ux.umd.js +1 -1
- package/package.json +3 -3
- package/agent/Accordion.md +0 -42
- package/agent/AccordionItem.md +0 -31
- package/agent/Badge.md +0 -38
- package/agent/Brand.md +0 -19
- package/agent/Button.md +0 -47
- package/agent/Card.md +0 -29
- package/agent/Checkbox.md +0 -39
- package/agent/CustomSelect.md +0 -79
- package/agent/Divider.md +0 -27
- package/agent/Drawer.md +0 -91
- package/agent/Header.md +0 -35
- package/agent/Icon.md +0 -26
- package/agent/Infotext.md +0 -29
- package/agent/Input.md +0 -48
- package/agent/Link.md +0 -42
- package/agent/Navigation.md +0 -23
- package/agent/NavigationItem.md +0 -29
- package/agent/Notification.md +0 -40
- package/agent/Page.md +0 -33
- package/agent/Popover.md +0 -50
- package/agent/Radio.md +0 -29
- package/agent/Section.md +0 -27
- package/agent/Select.md +0 -70
- package/agent/Stack.md +0 -41
- package/agent/Switch.md +0 -36
- package/agent/TabItem.md +0 -29
- package/agent/Tabs.md +0 -55
- package/agent/Tag.md +0 -38
- package/agent/Textarea.md +0 -43
- package/agent/Tooltip.md +0 -48
- package/agent/_instructions.md +0 -31
package/dist/db-ux.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, ref as o, onMounted as ae, watch as $,
|
|
1
|
+
import { defineComponent as W, ref as o, onMounted as ae, watch as $, openBlock as h, createElementBlock as b, normalizeClass as U, unref as l, createElementVNode as E, Fragment as X, createTextVNode as D, toDisplayString as L, createCommentVNode as P, renderSlot as M, useId as ge, renderList as ye, createBlock as Q, onUnmounted as be, withCtx as H, createVNode as le } from "vue";
|
|
2
2
|
const Ue = () => {
|
|
3
3
|
if (typeof window < "u") {
|
|
4
4
|
if (window.crypto?.randomUUID)
|
|
@@ -26,7 +26,7 @@ const Ue = () => {
|
|
|
26
26
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
27
27
|
const e = navigator.userAgent, a = /iP(ad|hone|od)/.test(e), i = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
28
28
|
return a && i;
|
|
29
|
-
}, J = (e, a) => new Promise(() => setTimeout(e, a)),
|
|
29
|
+
}, J = (e, a) => new Promise(() => setTimeout(e, a)), N = (e) => {
|
|
30
30
|
if (e != null)
|
|
31
31
|
return String(typeof e == "string" ? e === "true" : e);
|
|
32
32
|
}, V = (e, a) => {
|
|
@@ -40,7 +40,7 @@ const Ue = () => {
|
|
|
40
40
|
return e === "any" ? "any" : Number(e);
|
|
41
41
|
}, Ze = (e, a) => a && ["number", "range"].includes(a) ? xe(e) : e, lt = (e) => typeof e == "string" ? e === "true" : e, de = (e) => {
|
|
42
42
|
if (e != null)
|
|
43
|
-
return
|
|
43
|
+
return N(!lt(e));
|
|
44
44
|
}, te = (e, a) => (a === void 0 || lt(a)) && !!e, _e = (e) => e.querySelector('input[type="search"]'), ll = (e, a) => {
|
|
45
45
|
const i = e.id ?? e.value ?? Ue();
|
|
46
46
|
return `${a}${i}`;
|
|
@@ -63,7 +63,7 @@ const Ue = () => {
|
|
|
63
63
|
default:
|
|
64
64
|
return "article";
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, Nt = ["id"], Ot = ["aria-disabled", "name", "open"], Rt = /* @__PURE__ */ W({
|
|
67
67
|
name: "DBAccordionItem",
|
|
68
68
|
__name: "accordion-item",
|
|
69
69
|
props: {
|
|
@@ -115,7 +115,7 @@ const Ue = () => {
|
|
|
115
115
|
class: U(l(G)("db-accordion-item", a.class))
|
|
116
116
|
}, [
|
|
117
117
|
E("details", {
|
|
118
|
-
"aria-disabled": l(
|
|
118
|
+
"aria-disabled": l(N)(e.disabled),
|
|
119
119
|
ref_key: "_ref",
|
|
120
120
|
ref: d,
|
|
121
121
|
name: n.value,
|
|
@@ -134,8 +134,8 @@ const Ue = () => {
|
|
|
134
134
|
D(L(e.text), 1)
|
|
135
135
|
], 64)) : M(u.$slots, "default", { key: 1 })
|
|
136
136
|
])
|
|
137
|
-
], 8,
|
|
138
|
-
], 10,
|
|
137
|
+
], 8, Ot)
|
|
138
|
+
], 10, Nt));
|
|
139
139
|
}
|
|
140
140
|
}), zt = ["id", "data-variant"], nl = /* @__PURE__ */ W({
|
|
141
141
|
name: "DBAccordion",
|
|
@@ -228,7 +228,7 @@ const Ue = () => {
|
|
|
228
228
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : P("", !0)
|
|
229
229
|
], 10, zt));
|
|
230
230
|
}
|
|
231
|
-
}), ol = ["divider", "card"], dl = ["multiple", "single"], Pt = "OVERWRITE_DEFAULT_ID", pe = "LABEL SHOULD BE SET", nt = " ", Vt = "MESSAGE SHOULD BE SET", et = "-label", tt = "-select", ve = "-message", fe = "-valid-message", he = "-invalid-message",
|
|
231
|
+
}), ol = ["divider", "card"], dl = ["multiple", "single"], Pt = "OVERWRITE_DEFAULT_ID", pe = "LABEL SHOULD BE SET", nt = " ", Vt = "MESSAGE SHOULD BE SET", et = "-label", tt = "-select", ve = "-message", fe = "-valid-message", he = "-invalid-message", Ne = "-placeholder", at = "-datalist", ce = "TODO: Add a validMessage", _ = "TODO: Add an invalidMessage", ot = "Remove", qt = "Back", Ut = "Selected", Gt = "BurgerMenu", Wt = "brand", Ht = 4, Ge = "Close", sl = "density", ul = "color";
|
|
232
232
|
var dt = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(dt || {});
|
|
233
233
|
const rl = Object.entries(dt).map(([, e]) => e);
|
|
234
234
|
var st = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(st || {}), ut = /* @__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))(ut || {});
|
|
@@ -293,7 +293,7 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
293
293
|
"data-size": e.size,
|
|
294
294
|
"data-emphasis": e.emphasis,
|
|
295
295
|
"data-placement": e.placement,
|
|
296
|
-
"data-wrap": l(
|
|
296
|
+
"data-wrap": l(N)(e.wrap),
|
|
297
297
|
"data-label": e.placement?.startsWith("corner") && (e.label ?? l(pe))
|
|
298
298
|
}, [
|
|
299
299
|
e.text ? (h(), b(X, { key: 0 }, [
|
|
@@ -322,7 +322,7 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
322
322
|
ref_key: "_ref",
|
|
323
323
|
ref: i,
|
|
324
324
|
"data-icon": e.hideLogo ? "none" : e.icon ?? l(Wt),
|
|
325
|
-
"data-show-icon": l(
|
|
325
|
+
"data-show-icon": l(N)(e.showIcon),
|
|
326
326
|
id: e.id ?? e.propOverrides?.id,
|
|
327
327
|
class: U(l(G)("db-brand", a.class))
|
|
328
328
|
}, [
|
|
@@ -377,14 +377,14 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
377
377
|
type: n(),
|
|
378
378
|
disabled: l(V)(e.disabled, "disabled"),
|
|
379
379
|
"data-icon": e.iconLeading ?? e.icon,
|
|
380
|
-
"data-show-icon": l(
|
|
380
|
+
"data-show-icon": l(N)(e.showIconLeading ?? e.showIcon),
|
|
381
381
|
"data-icon-trailing": e.iconTrailing,
|
|
382
|
-
"data-show-icon-trailing": l(
|
|
382
|
+
"data-show-icon-trailing": l(N)(e.showIconTrailing),
|
|
383
383
|
"data-size": e.size,
|
|
384
384
|
"data-width": e.width,
|
|
385
385
|
"data-variant": e.variant,
|
|
386
|
-
"data-wrap": l(
|
|
387
|
-
"data-no-text": l(
|
|
386
|
+
"data-wrap": l(N)(e.wrap),
|
|
387
|
+
"data-no-text": l(N)(e.noText),
|
|
388
388
|
name: e.name,
|
|
389
389
|
form: e.form,
|
|
390
390
|
value: e.value,
|
|
@@ -431,14 +431,14 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
431
431
|
}
|
|
432
432
|
}), Sl = ["static", "interactive"], Il = ["1", "2", "3"], ue = (e, a, i = "value") => {
|
|
433
433
|
e(`update:${i}`, a.target[i]);
|
|
434
|
-
},
|
|
434
|
+
}, Oe = (e, a, i) => {
|
|
435
435
|
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (n) => {
|
|
436
436
|
a(n);
|
|
437
437
|
}, {
|
|
438
438
|
signal: i
|
|
439
439
|
}), e._dbFormResetListenerAdded = !0);
|
|
440
440
|
}, ct = (e, a, i, n) => {
|
|
441
|
-
|
|
441
|
+
Oe(e, (t) => {
|
|
442
442
|
J(() => {
|
|
443
443
|
const d = a.checked ? a.checked : a.defaultChecked ? a.defaultChecked : e.checked, v = {
|
|
444
444
|
...t,
|
|
@@ -451,7 +451,7 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
451
451
|
}, 1);
|
|
452
452
|
}, n);
|
|
453
453
|
}, We = (e, a, i, n) => {
|
|
454
|
-
|
|
454
|
+
Oe(e, (t) => {
|
|
455
455
|
J(() => {
|
|
456
456
|
const d = a.value ? a.value : a.defaultValue ? a.defaultValue : e.value, v = {
|
|
457
457
|
...t,
|
|
@@ -490,8 +490,8 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
490
490
|
"data-icon": e.icon,
|
|
491
491
|
"data-semantic": e.semantic,
|
|
492
492
|
"data-size": e.size,
|
|
493
|
-
"data-wrap": l(
|
|
494
|
-
"data-show-icon-leading": l(
|
|
493
|
+
"data-wrap": l(N)(e.wrap),
|
|
494
|
+
"data-show-icon-leading": l(N)(e.showIcon ?? !0)
|
|
495
495
|
}, [
|
|
496
496
|
e.text ? (h(), b(X, { key: 0 }, [
|
|
497
497
|
D(L(e.text), 1)
|
|
@@ -605,8 +605,8 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
605
605
|
checked: t.checked,
|
|
606
606
|
defaultChecked: void 0
|
|
607
607
|
},
|
|
608
|
-
(
|
|
609
|
-
k(
|
|
608
|
+
(O) => {
|
|
609
|
+
k(O);
|
|
610
610
|
},
|
|
611
611
|
x.signal
|
|
612
612
|
);
|
|
@@ -655,9 +655,9 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
655
655
|
disabled: l(V)(e.disabled, "disabled"),
|
|
656
656
|
value: e.value,
|
|
657
657
|
required: l(V)(e.required, "required"),
|
|
658
|
-
onChange: x[0] || (x[0] = async (
|
|
659
|
-
onBlur: x[1] || (x[1] = async (
|
|
660
|
-
onFocus: x[2] || (x[2] = async (
|
|
658
|
+
onChange: x[0] || (x[0] = async (O) => k(O)),
|
|
659
|
+
onBlur: x[1] || (x[1] = async (O) => y(O)),
|
|
660
|
+
onFocus: x[2] || (x[2] = async (O) => p(O)),
|
|
661
661
|
"aria-describedby": e.ariaDescribedBy ?? I.value
|
|
662
662
|
}, null, 40, ta),
|
|
663
663
|
e.label ? (h(), b(X, { key: 0 }, [
|
|
@@ -729,13 +729,13 @@ const fl = Object.entries(rt).map(([, e]) => e), Xt = {
|
|
|
729
729
|
id: e.id ?? e.propOverrides?.id,
|
|
730
730
|
class: U(l(G)("db-custom-button", a.class)),
|
|
731
731
|
"data-icon": e.iconLeading ?? e.icon,
|
|
732
|
-
"data-show-icon": l(
|
|
732
|
+
"data-show-icon": l(N)(e.showIconLeading ?? e.showIcon),
|
|
733
733
|
"data-icon-trailing": e.iconTrailing,
|
|
734
|
-
"data-show-icon-trailing": l(
|
|
734
|
+
"data-show-icon-trailing": l(N)(e.showIconTrailing),
|
|
735
735
|
"data-size": e.size,
|
|
736
736
|
"data-width": e.width,
|
|
737
737
|
"data-variant": e.variant,
|
|
738
|
-
"data-no-text": l(
|
|
738
|
+
"data-no-text": l(N)(e.noText)
|
|
739
739
|
}, [
|
|
740
740
|
M(n.$slots, "default")
|
|
741
741
|
], 10, ia));
|
|
@@ -819,7 +819,7 @@ const la = (e) => {
|
|
|
819
819
|
vx: t ? "right" : "left"
|
|
820
820
|
}, e.dataset.outsideVx = d.vx) : delete e.dataset.outsideVx, d;
|
|
821
821
|
}, oa = (e, a, i) => {
|
|
822
|
-
if (getComputedStyle(e).zIndex === "9999") return;
|
|
822
|
+
if (!e || !a || getComputedStyle(e).zIndex === "9999") return;
|
|
823
823
|
const {
|
|
824
824
|
top: n,
|
|
825
825
|
bottom: t,
|
|
@@ -885,6 +885,7 @@ const la = (e) => {
|
|
|
885
885
|
}
|
|
886
886
|
return Fe.set(e, null), null;
|
|
887
887
|
}, ft = (e, a, i) => {
|
|
888
|
+
if (!e || !a) return;
|
|
888
889
|
const n = getComputedStyle(a), t = ["absolute", "fixed"].includes(n.position), d = sa(e), v = !d && !t, u = getComputedStyle(e)?.getPropertyValue("--db-popover-distance") ?? "0px";
|
|
889
890
|
let {
|
|
890
891
|
top: f,
|
|
@@ -1021,12 +1022,12 @@ const la = (e) => {
|
|
|
1021
1022
|
"db-radio": e.type !== "checkbox" && !e.isGroupTitle
|
|
1022
1023
|
})
|
|
1023
1024
|
),
|
|
1024
|
-
"data-divider": l(
|
|
1025
|
+
"data-divider": l(N)(t.value)
|
|
1025
1026
|
}, [
|
|
1026
1027
|
e.isGroupTitle ? (h(), b("span", ha, L(e.groupTitle), 1)) : (h(), b("label", {
|
|
1027
1028
|
key: 0,
|
|
1028
1029
|
"data-icon": e.type !== "checkbox" && e.icon ? e.icon : void 0,
|
|
1029
|
-
"data-show-icon": l(
|
|
1030
|
+
"data-show-icon": l(N)(e.showIcon),
|
|
1030
1031
|
"data-icon-trailing": u()
|
|
1031
1032
|
}, [
|
|
1032
1033
|
E("input", {
|
|
@@ -1146,13 +1147,13 @@ const la = (e) => {
|
|
|
1146
1147
|
setup(e, { emit: a }) {
|
|
1147
1148
|
const i = ge(), n = a, t = e, d = o(void 0), v = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), w = o(void 0), I = o(void 0), B = o(""), m = o(""), c = o(void 0), S = o(null);
|
|
1148
1149
|
ae(() => {
|
|
1149
|
-
|
|
1150
|
+
O(), g.value = t.invalidMessage || _;
|
|
1150
1151
|
}), be(() => {
|
|
1151
1152
|
c.value?.abort();
|
|
1152
1153
|
}), $(
|
|
1153
1154
|
() => [t.id, t.propOverrides?.id],
|
|
1154
1155
|
() => {
|
|
1155
|
-
(t.id ?? t.propOverrides?.id) &&
|
|
1156
|
+
(t.id ?? t.propOverrides?.id) && O();
|
|
1156
1157
|
},
|
|
1157
1158
|
{
|
|
1158
1159
|
immediate: !0,
|
|
@@ -1238,7 +1239,7 @@ const la = (e) => {
|
|
|
1238
1239
|
})) : F) || []
|
|
1239
1240
|
);
|
|
1240
1241
|
}
|
|
1241
|
-
function
|
|
1242
|
+
function O() {
|
|
1242
1243
|
const F = t.id ?? t.propOverrides?.id ?? `input-${i}`;
|
|
1243
1244
|
d.value = F, v.value = F + ve, u.value = F + fe, f.value = F + he, w.value = F + at;
|
|
1244
1245
|
}
|
|
@@ -1246,11 +1247,11 @@ const la = (e) => {
|
|
|
1246
1247
|
class: U(l(G)("db-input", t.class)),
|
|
1247
1248
|
"data-variant": e.variant,
|
|
1248
1249
|
"data-hide-label": l(de)(e.showLabel),
|
|
1249
|
-
"data-show-icon": l(
|
|
1250
|
+
"data-show-icon": l(N)(e.showIconLeading ?? e.showIcon),
|
|
1250
1251
|
"data-icon": e.iconLeading ?? e.icon,
|
|
1251
1252
|
"data-icon-trailing": e.iconTrailing,
|
|
1252
1253
|
"data-hide-asterisk": l(de)(e.showRequiredAsterisk),
|
|
1253
|
-
"data-show-icon-trailing": l(
|
|
1254
|
+
"data-show-icon-trailing": l(N)(e.showIconTrailing)
|
|
1254
1255
|
}, [
|
|
1255
1256
|
E("label", { for: d.value }, L(e.label ?? l(pe)), 9, wa),
|
|
1256
1257
|
E("input", {
|
|
@@ -1432,11 +1433,11 @@ const la = (e) => {
|
|
|
1432
1433
|
class: U(l(G)("db-tooltip", i.class)),
|
|
1433
1434
|
id: n.value,
|
|
1434
1435
|
"data-emphasis": e.emphasis,
|
|
1435
|
-
"data-wrap": l(
|
|
1436
|
-
"data-animation": l(
|
|
1436
|
+
"data-wrap": l(N)(e.wrap),
|
|
1437
|
+
"data-animation": l(N)(e.animation ?? !0),
|
|
1437
1438
|
"data-delay": e.delay,
|
|
1438
1439
|
"data-width": e.width,
|
|
1439
|
-
"data-show-arrow": l(
|
|
1440
|
+
"data-show-arrow": l(N)(e.showArrow ?? !0),
|
|
1440
1441
|
"data-placement": e.placement,
|
|
1441
1442
|
onClick: k[0] || (k[0] = async (y) => f(y))
|
|
1442
1443
|
}, [
|
|
@@ -1484,10 +1485,10 @@ const la = (e) => {
|
|
|
1484
1485
|
"data-semantic": e.semantic,
|
|
1485
1486
|
"data-emphasis": e.emphasis,
|
|
1486
1487
|
"data-icon": e.icon,
|
|
1487
|
-
"data-show-check-state": l(
|
|
1488
|
-
"data-show-icon": l(
|
|
1489
|
-
"data-no-text": l(
|
|
1490
|
-
"data-overflow": l(
|
|
1488
|
+
"data-show-check-state": l(N)(e.showCheckState ?? !0),
|
|
1489
|
+
"data-show-icon": l(N)(e.showIcon),
|
|
1490
|
+
"data-no-text": l(N)(e.noText),
|
|
1491
|
+
"data-overflow": l(N)(e.overflow)
|
|
1491
1492
|
}, [
|
|
1492
1493
|
M(d.$slots, "content"),
|
|
1493
1494
|
M(d.$slots, "default"),
|
|
@@ -1513,10 +1514,10 @@ const la = (e) => {
|
|
|
1513
1514
|
])) : P("", !0)
|
|
1514
1515
|
], 10, xa));
|
|
1515
1516
|
}
|
|
1516
|
-
}), $a = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], Ca = ["id"], Ea = ["id", "form", "name", "data-custom-validity", "multiple", "disabled", "required"], Aa = ["disabled", "value"], Da = ["open"], Ma = ["id", "aria-disabled", "tabIndex", "aria-labelledby"], Fa = ["data-visually-hidden", "id"],
|
|
1517
|
+
}), $a = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], Ca = ["id"], Ea = ["id", "form", "name", "data-custom-validity", "multiple", "disabled", "required"], Aa = ["disabled", "value"], Da = ["open"], Ma = ["id", "aria-disabled", "tabIndex", "aria-labelledby"], Fa = ["data-visually-hidden", "id"], Na = {
|
|
1517
1518
|
key: 0,
|
|
1518
1519
|
"data-visually-hidden": "true"
|
|
1519
|
-
},
|
|
1520
|
+
}, Oa = { key: 1 }, Ra = { key: 0 }, za = { key: 0 }, Pa = { class: "db-checkbox db-custom-select-list-item" }, Va = ["form", "checked"], qa = ["aria-hidden", "id"], Ua = {
|
|
1520
1521
|
"data-visually-hidden": "true",
|
|
1521
1522
|
role: "status"
|
|
1522
1523
|
}, Tl = /* @__PURE__ */ W({
|
|
@@ -1587,7 +1588,7 @@ const la = (e) => {
|
|
|
1587
1588
|
},
|
|
1588
1589
|
emits: ["update:values"],
|
|
1589
1590
|
setup(e, { emit: a }) {
|
|
1590
|
-
const i = ge(), n = a, t = e, d = o(void 0), v = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), w = o(void 0), I = o(void 0), B = o(void 0), m = o(void 0), c = o(void 0), S = o("no-validation"), s = o(!1), k = o(void 0), y = o(void 0), p = o(""), j = o(void 0), A = o(""), x = o([]),
|
|
1591
|
+
const i = ge(), n = a, t = e, d = o(void 0), v = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), w = o(void 0), I = o(void 0), B = o(void 0), m = o(void 0), c = o(void 0), S = o("no-validation"), s = o(!1), k = o(void 0), y = o(void 0), p = o(""), j = o(void 0), A = o(""), x = o([]), O = o(!1), F = o(!1), K = o(0), R = o([]), z = o([]), Z = o(!1), Y = o(void 0), Se = o(0), we = o(void 0), $e = o(void 0), Re = o(void 0), ze = o(!1), Ce = o(!1), mt = o(null), q = o(null), oe = o(null), De = o(null), Pe = o(null);
|
|
1591
1592
|
ae(() => {
|
|
1592
1593
|
Ye(), g.value = t.invalidMessage || _, typeof window < "u" && "IntersectionObserver" in window && ($e.value = new IntersectionObserver((r) => {
|
|
1593
1594
|
if (q.value) {
|
|
@@ -1623,7 +1624,7 @@ const la = (e) => {
|
|
|
1623
1624
|
() => {
|
|
1624
1625
|
if (d.value) {
|
|
1625
1626
|
const r = d.value + ve;
|
|
1626
|
-
I.value = d.value + et, w.value = d.value + tt, u.value = d.value + fe, f.value = d.value + he, m.value = d.value +
|
|
1627
|
+
I.value = d.value + et, w.value = d.value + tt, u.value = d.value + fe, f.value = d.value + he, m.value = d.value + Ne, te(t.message, t.showMessage) ? Te(r) : Te();
|
|
1627
1628
|
}
|
|
1628
1629
|
},
|
|
1629
1630
|
{
|
|
@@ -1657,7 +1658,7 @@ const la = (e) => {
|
|
|
1657
1658
|
), $(
|
|
1658
1659
|
() => [t.showSelectAll, K.value, t.multiple],
|
|
1659
1660
|
() => {
|
|
1660
|
-
|
|
1661
|
+
O.value = !!(t.multiple && (t.showSelectAll ?? K.value > 5));
|
|
1661
1662
|
},
|
|
1662
1663
|
{
|
|
1663
1664
|
immediate: !0,
|
|
@@ -1698,7 +1699,7 @@ const la = (e) => {
|
|
|
1698
1699
|
let r = k.value;
|
|
1699
1700
|
r || (r = new AbortController(), k.value = r);
|
|
1700
1701
|
const T = t.values;
|
|
1701
|
-
|
|
1702
|
+
Oe(
|
|
1702
1703
|
oe.value,
|
|
1703
1704
|
() => {
|
|
1704
1705
|
const C = T || (oe.value.value ? [oe.value.value] : []);
|
|
@@ -1957,7 +1958,7 @@ const la = (e) => {
|
|
|
1957
1958
|
q.value.open = !1, Ae();
|
|
1958
1959
|
else if (q.value.open && r && r.relatedTarget) {
|
|
1959
1960
|
const C = r.relatedTarget;
|
|
1960
|
-
q.value.contains(C)
|
|
1961
|
+
!q.value.contains(C) && C.localName !== "dialog" && J(() => q.value.open = !1, 1);
|
|
1961
1962
|
}
|
|
1962
1963
|
}
|
|
1963
1964
|
}
|
|
@@ -2040,7 +2041,7 @@ const la = (e) => {
|
|
|
2040
2041
|
}
|
|
2041
2042
|
function Ye() {
|
|
2042
2043
|
const r = t.id ?? t.propOverrides?.id ?? `custom-select-${i}`;
|
|
2043
|
-
d.value = r, v.value = r + ve, u.value = r + fe, f.value = r + he, w.value = r + tt, I.value = r + et, B.value = r + "-summary", m.value = r +
|
|
2044
|
+
d.value = r, v.value = r + ve, u.value = r + fe, f.value = r + he, w.value = r + tt, I.value = r + et, B.value = r + "-summary", m.value = r + Ne, j.value = r + "-selected-labels", c.value = r + "-info";
|
|
2044
2045
|
}
|
|
2045
2046
|
function $t(r) {
|
|
2046
2047
|
r.stopPropagation();
|
|
@@ -2054,13 +2055,13 @@ const la = (e) => {
|
|
|
2054
2055
|
"data-custom-validity": S.value,
|
|
2055
2056
|
"data-width": e.formFieldWidth,
|
|
2056
2057
|
"data-variant": e.variant === "floating" && e.selectedType === "tag" && e.multiple ? "above" : e.variant,
|
|
2057
|
-
"data-required": l(
|
|
2058
|
+
"data-required": l(N)(e.required),
|
|
2058
2059
|
"data-hide-asterisk": l(de)(e.showRequiredAsterisk),
|
|
2059
2060
|
"data-placement": e.placement,
|
|
2060
2061
|
"data-selected-type": e.multiple ? e.selectedType : "text",
|
|
2061
2062
|
"data-hide-label": l(de)(e.showLabel),
|
|
2062
2063
|
"data-icon": e.icon,
|
|
2063
|
-
"data-show-icon": l(
|
|
2064
|
+
"data-show-icon": l(N)(e.showIcon)
|
|
2064
2065
|
}, [
|
|
2065
2066
|
E("label", { id: I.value }, [
|
|
2066
2067
|
D(L(e.label ?? l(pe)), 1),
|
|
@@ -2098,19 +2099,19 @@ const la = (e) => {
|
|
|
2098
2099
|
E("summary", {
|
|
2099
2100
|
class: "db-custom-select-form-field",
|
|
2100
2101
|
id: B.value,
|
|
2101
|
-
"aria-disabled": l(
|
|
2102
|
+
"aria-disabled": l(N)(e.disabled),
|
|
2102
2103
|
tabIndex: e.disabled ? -1 : void 0,
|
|
2103
2104
|
"aria-labelledby": I.value
|
|
2104
2105
|
}, [
|
|
2105
2106
|
p.value?.length ? (h(), b("span", {
|
|
2106
2107
|
key: 0,
|
|
2107
|
-
"data-visually-hidden": l(
|
|
2108
|
+
"data-visually-hidden": l(N)(e.selectedType === "tag"),
|
|
2108
2109
|
id: j.value
|
|
2109
2110
|
}, [
|
|
2110
|
-
e.selectedPrefix ? (h(), b("span",
|
|
2111
|
+
e.selectedPrefix ? (h(), b("span", Na, L(e.selectedPrefix), 1)) : P("", !0),
|
|
2111
2112
|
D(" " + L(p.value), 1)
|
|
2112
2113
|
], 8, Fa)) : P("", !0),
|
|
2113
|
-
e.selectedType === "tag" ? (h(), b("div",
|
|
2114
|
+
e.selectedType === "tag" ? (h(), b("div", Oa, [
|
|
2114
2115
|
(h(!0), b(X, null, ye(x.value, (C, ie) => (h(), Q(Ta, {
|
|
2115
2116
|
key: ie,
|
|
2116
2117
|
emphasis: "strong",
|
|
@@ -2153,7 +2154,7 @@ const la = (e) => {
|
|
|
2153
2154
|
]),
|
|
2154
2155
|
_: 1
|
|
2155
2156
|
}, 8, ["id", "icon", "semantic"])) : (h(), b(X, { key: 2 }, [
|
|
2156
|
-
|
|
2157
|
+
O.value ? (h(), b("div", za, [
|
|
2157
2158
|
E("div", Pa, [
|
|
2158
2159
|
E("label", null, [
|
|
2159
2160
|
E("input", {
|
|
@@ -2243,7 +2244,7 @@ const la = (e) => {
|
|
|
2243
2244
|
}, 8, ["name", "form", "disabled", "onClick"])) : P("", !0),
|
|
2244
2245
|
E("span", {
|
|
2245
2246
|
class: "db-custom-select-placeholder",
|
|
2246
|
-
"aria-hidden": l(
|
|
2247
|
+
"aria-hidden": l(N)(!0),
|
|
2247
2248
|
id: m.value
|
|
2248
2249
|
}, L(e.placeholder ?? e.label), 9, qa),
|
|
2249
2250
|
l(te)(e.message, e.showMessage) ? (h(), Q(ee, {
|
|
@@ -2415,7 +2416,7 @@ const la = (e) => {
|
|
|
2415
2416
|
"data-spacing": e.spacing,
|
|
2416
2417
|
"data-width": e.width,
|
|
2417
2418
|
"data-direction": e.direction,
|
|
2418
|
-
"data-rounded": l(
|
|
2419
|
+
"data-rounded": l(N)(e.rounded)
|
|
2419
2420
|
}, [
|
|
2420
2421
|
E("header", ja, [
|
|
2421
2422
|
E("div", Ka, [
|
|
@@ -2441,7 +2442,7 @@ const la = (e) => {
|
|
|
2441
2442
|
], 10, Xa)
|
|
2442
2443
|
], 40, Ha));
|
|
2443
2444
|
}
|
|
2444
|
-
}),
|
|
2445
|
+
}), Nl = ["none", "strong", "weak", "invisible"], Ol = ["left", "right", "up", "down"], Rl = ["modal", "inside"], zl = ["fixed", "absolute"], Qa = (e) => {
|
|
2445
2446
|
const {
|
|
2446
2447
|
target: a
|
|
2447
2448
|
} = e;
|
|
@@ -2732,13 +2733,13 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
2732
2733
|
role: e.role,
|
|
2733
2734
|
referrerPolicy: e.referrerpolicy ?? e.referrerPolicy,
|
|
2734
2735
|
hrefLang: e.hreflang,
|
|
2735
|
-
"aria-disabled": l(
|
|
2736
|
+
"aria-disabled": l(N)(e.disabled),
|
|
2736
2737
|
tabIndex: e.disabled ? -1 : 0,
|
|
2737
2738
|
"data-size": e.size,
|
|
2738
|
-
"data-show-icon-trailing": l(
|
|
2739
|
+
"data-show-icon-trailing": l(N)(e.showIcon ?? !0),
|
|
2739
2740
|
"data-variant": e.variant,
|
|
2740
2741
|
"data-content": e.content || "internal",
|
|
2741
|
-
"data-wrap": l(
|
|
2742
|
+
"data-wrap": l(N)(e.wrap),
|
|
2742
2743
|
onClick: d[0] || (d[0] = async (v) => n(v))
|
|
2743
2744
|
}, [
|
|
2744
2745
|
e.text ? (h(), b(X, { key: 0 }, [
|
|
@@ -2850,10 +2851,10 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
2850
2851
|
class: U(l(G)("db-navigation-item", a.class)),
|
|
2851
2852
|
"data-width": e.width,
|
|
2852
2853
|
"data-icon": e.icon,
|
|
2853
|
-
"data-show-icon": l(
|
|
2854
|
+
"data-show-icon": l(N)(e.showIcon),
|
|
2854
2855
|
"data-active": e.active,
|
|
2855
|
-
"data-wrap": l(
|
|
2856
|
-
"aria-disabled": l(
|
|
2856
|
+
"data-wrap": l(N)(e.wrap),
|
|
2857
|
+
"aria-disabled": l(N)(e.disabled)
|
|
2857
2858
|
}, [
|
|
2858
2859
|
t.value ? P("", !0) : (h(), b(X, { key: 0 }, [
|
|
2859
2860
|
e.text ? (h(), b(X, { key: 0 }, [
|
|
@@ -2944,7 +2945,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
2944
2945
|
"data-semantic": e.semantic,
|
|
2945
2946
|
"data-variant": e.variant,
|
|
2946
2947
|
"data-icon": l(V)(e.showIcon) !== !1 ? e.icon : void 0,
|
|
2947
|
-
"data-show-icon": l(
|
|
2948
|
+
"data-show-icon": l(N)(e.showIcon),
|
|
2948
2949
|
"data-link-variant": e.linkVariant
|
|
2949
2950
|
}, [
|
|
2950
2951
|
M(t.$slots, "image"),
|
|
@@ -3003,8 +3004,8 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3003
3004
|
id: e.id ?? e.propOverrides?.id,
|
|
3004
3005
|
class: U(l(G)("db-page", a.class)),
|
|
3005
3006
|
"data-variant": e.variant,
|
|
3006
|
-
"data-fade-in": l(
|
|
3007
|
-
"data-fonts-loaded": l(
|
|
3007
|
+
"data-fade-in": l(N)(e.fadeIn),
|
|
3008
|
+
"data-fonts-loaded": l(N)(i.value)
|
|
3008
3009
|
}, [
|
|
3009
3010
|
M(t.$slots, "header"),
|
|
3010
3011
|
E("main", {
|
|
@@ -3129,9 +3130,9 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3129
3130
|
E("article", {
|
|
3130
3131
|
class: "db-popover-content",
|
|
3131
3132
|
"data-spacing": e.spacing,
|
|
3132
|
-
"data-gap": l(
|
|
3133
|
-
"data-animation": l(
|
|
3134
|
-
"data-open": l(
|
|
3133
|
+
"data-gap": l(N)(e.gap),
|
|
3134
|
+
"data-animation": l(N)(e.animation ?? !0),
|
|
3135
|
+
"data-open": l(N)(e.open),
|
|
3135
3136
|
"data-delay": e.delay,
|
|
3136
3137
|
"data-width": e.width,
|
|
3137
3138
|
"data-placement": e.placement
|
|
@@ -3201,7 +3202,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3201
3202
|
() => {
|
|
3202
3203
|
if (f.value) {
|
|
3203
3204
|
let c = u.value;
|
|
3204
|
-
c || (c = new AbortController(), u.value = c),
|
|
3205
|
+
c || (c = new AbortController(), u.value = c), Oe(
|
|
3205
3206
|
f.value,
|
|
3206
3207
|
(S) => {
|
|
3207
3208
|
J(() => {
|
|
@@ -3295,7 +3296,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3295
3296
|
M(n.$slots, "default")
|
|
3296
3297
|
], 10, Ti));
|
|
3297
3298
|
}
|
|
3298
|
-
}), $i = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], Ci = ["for"], Ei = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Ai = ["data-show-empty-option"], Di = ["label"], Mi = ["value", "selected", "disabled"], Fi = ["value", "disabled", "selected"],
|
|
3299
|
+
}), $i = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], Ci = ["for"], Ei = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Ai = ["data-show-empty-option"], Di = ["label"], Mi = ["value", "selected", "disabled"], Fi = ["value", "disabled", "selected"], Ni = ["id"], Oi = {
|
|
3299
3300
|
"data-visually-hidden": "true",
|
|
3300
3301
|
role: "status"
|
|
3301
3302
|
}, on = /* @__PURE__ */ W({
|
|
@@ -3372,7 +3373,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3372
3373
|
() => [d.value, m.value],
|
|
3373
3374
|
() => {
|
|
3374
3375
|
if (d.value && m.value) {
|
|
3375
|
-
const z = d.value + ve, Z = d.value +
|
|
3376
|
+
const z = d.value + ve, Z = d.value + Ne;
|
|
3376
3377
|
v.value = z, u.value = d.value + fe, f.value = d.value + he, w.value = Z, te(t.message, t.showMessage) ? I.value = z : t.placeholder ? I.value = Z : I.value = void 0, y(), m.value = !1;
|
|
3377
3378
|
}
|
|
3378
3379
|
},
|
|
@@ -3430,7 +3431,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3430
3431
|
function x(z) {
|
|
3431
3432
|
t.onBlur && t.onBlur(z);
|
|
3432
3433
|
}
|
|
3433
|
-
function
|
|
3434
|
+
function O(z) {
|
|
3434
3435
|
t.onFocus && t.onFocus(z);
|
|
3435
3436
|
}
|
|
3436
3437
|
function F(z) {
|
|
@@ -3441,7 +3442,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3441
3442
|
}
|
|
3442
3443
|
function R() {
|
|
3443
3444
|
const z = t.id ?? t.propOverrides?.id ?? `select-${i}`;
|
|
3444
|
-
d.value = z, v.value = z + ve, u.value = z + fe, f.value = z + he, w.value = z +
|
|
3445
|
+
d.value = z, v.value = z + ve, u.value = z + fe, f.value = z + he, w.value = z + Ne;
|
|
3445
3446
|
}
|
|
3446
3447
|
return (z, Z) => (h(), b("div", {
|
|
3447
3448
|
class: U(l(G)("db-select", t.class)),
|
|
@@ -3449,7 +3450,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3449
3450
|
"data-hide-label": l(de)(e.showLabel),
|
|
3450
3451
|
"data-hide-asterisk": l(de)(e.showRequiredAsterisk),
|
|
3451
3452
|
"data-icon": e.icon,
|
|
3452
|
-
"data-show-icon": l(
|
|
3453
|
+
"data-show-icon": l(N)(e.showIcon)
|
|
3453
3454
|
}, [
|
|
3454
3455
|
E("label", { for: d.value }, L(e.label ?? l(pe)), 9, Ci),
|
|
3455
3456
|
E("select", {
|
|
@@ -3469,14 +3470,14 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3469
3470
|
onClick: Z[1] || (Z[1] = async (Y) => p(Y)),
|
|
3470
3471
|
onChange: Z[2] || (Z[2] = async (Y) => A(Y)),
|
|
3471
3472
|
onBlur: Z[3] || (Z[3] = async (Y) => x(Y)),
|
|
3472
|
-
onFocus: Z[4] || (Z[4] = async (Y) =>
|
|
3473
|
+
onFocus: Z[4] || (Z[4] = async (Y) => O(Y)),
|
|
3473
3474
|
"aria-describedby": e.ariaDescribedBy ?? I.value
|
|
3474
3475
|
}, [
|
|
3475
3476
|
e.variant === "floating" || e.placeholder ? (h(), b("option", {
|
|
3476
3477
|
key: 0,
|
|
3477
3478
|
class: "placeholder",
|
|
3478
3479
|
value: "",
|
|
3479
|
-
"data-show-empty-option": l(
|
|
3480
|
+
"data-show-empty-option": l(N)(K())
|
|
3480
3481
|
}, null, 8, Ai)) : P("", !0),
|
|
3481
3482
|
e.options?.length ? (h(!0), b(X, { key: 1 }, ye(e.options, (Y, Se) => (h(), b(X, { key: Se }, [
|
|
3482
3483
|
Y.options ? (h(), b("optgroup", {
|
|
@@ -3501,7 +3502,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3501
3502
|
key: 0,
|
|
3502
3503
|
class: "db-select-placeholder",
|
|
3503
3504
|
id: w.value
|
|
3504
|
-
}, L(e.placeholder), 9,
|
|
3505
|
+
}, L(e.placeholder), 9, Ni)) : P("", !0),
|
|
3505
3506
|
l(te)(e.message, e.showMessage) ? (h(), Q(ee, {
|
|
3506
3507
|
key: 1,
|
|
3507
3508
|
size: "small",
|
|
@@ -3534,7 +3535,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3534
3535
|
]),
|
|
3535
3536
|
_: 1
|
|
3536
3537
|
}, 8, ["id"]),
|
|
3537
|
-
E("span",
|
|
3538
|
+
E("span", Oi, L(c.value), 1)
|
|
3538
3539
|
], 10, $i));
|
|
3539
3540
|
}
|
|
3540
3541
|
}), Ri = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], dn = /* @__PURE__ */ W({
|
|
@@ -3566,7 +3567,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3566
3567
|
"data-direction": e.direction,
|
|
3567
3568
|
"data-alignment": e.alignment,
|
|
3568
3569
|
"data-justify-content": e.justifyContent,
|
|
3569
|
-
"data-wrap": l(
|
|
3570
|
+
"data-wrap": l(N)(e.wrap)
|
|
3570
3571
|
}, [
|
|
3571
3572
|
M(n.$slots, "default")
|
|
3572
3573
|
], 10, Ri));
|
|
@@ -3668,8 +3669,8 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3668
3669
|
checked: t.checked,
|
|
3669
3670
|
defaultChecked: void 0
|
|
3670
3671
|
},
|
|
3671
|
-
(
|
|
3672
|
-
s(
|
|
3672
|
+
(O) => {
|
|
3673
|
+
s(O);
|
|
3673
3674
|
},
|
|
3674
3675
|
x.signal
|
|
3675
3676
|
);
|
|
@@ -3719,7 +3720,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3719
3720
|
d.value = A, v.value = `${A}${ve}`, u.value = `${A}${fe}`, f.value = `${A}${he}`;
|
|
3720
3721
|
}
|
|
3721
3722
|
return (A, x) => (h(), b("div", {
|
|
3722
|
-
"data-visual-aid": l(
|
|
3723
|
+
"data-visual-aid": l(N)(e.visualAid),
|
|
3723
3724
|
"data-size": e.size,
|
|
3724
3725
|
"data-hide-label": l(de)(e.showLabel),
|
|
3725
3726
|
"data-variant": e.variant,
|
|
@@ -3743,10 +3744,10 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3743
3744
|
required: l(V)(e.required, "required"),
|
|
3744
3745
|
"data-aid-icon": e.iconLeading ?? e.icon,
|
|
3745
3746
|
"data-aid-icon-trailing": e.iconTrailing,
|
|
3746
|
-
onChange: x[0] || (x[0] = async (
|
|
3747
|
-
onBlur: x[1] || (x[1] = async (
|
|
3748
|
-
onFocus: x[2] || (x[2] = async (
|
|
3749
|
-
onKeydown: x[3] || (x[3] = async (
|
|
3747
|
+
onChange: x[0] || (x[0] = async (O) => s(O)),
|
|
3748
|
+
onBlur: x[1] || (x[1] = async (O) => k(O)),
|
|
3749
|
+
onFocus: x[2] || (x[2] = async (O) => y(O)),
|
|
3750
|
+
onKeydown: x[3] || (x[3] = async (O) => p(O))
|
|
3750
3751
|
}, null, 40, Vi),
|
|
3751
3752
|
e.label ? (h(), b(X, { key: 0 }, [
|
|
3752
3753
|
D(L(e.label), 1)
|
|
@@ -3853,9 +3854,9 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
3853
3854
|
for: e.id ?? e.propOverrides?.id,
|
|
3854
3855
|
"data-icon": e.iconLeading ?? e.icon,
|
|
3855
3856
|
"data-icon-trailing": e.iconTrailing,
|
|
3856
|
-
"data-show-icon": l(
|
|
3857
|
-
"data-show-icon-trailing": l(
|
|
3858
|
-
"data-no-text": l(
|
|
3857
|
+
"data-show-icon": l(N)(e.showIconLeading ?? e.showIcon),
|
|
3858
|
+
"data-show-icon-trailing": l(N)(e.showIconTrailing),
|
|
3859
|
+
"data-no-text": l(N)(e.noText)
|
|
3859
3860
|
}, [
|
|
3860
3861
|
E("input", {
|
|
3861
3862
|
type: "radio",
|
|
@@ -4031,15 +4032,15 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
4031
4032
|
const j = k.indexOf(p), A = p.querySelector("label"), x = p.querySelector("input");
|
|
4032
4033
|
if (x && A) {
|
|
4033
4034
|
if (!x.id) {
|
|
4034
|
-
const
|
|
4035
|
-
A.setAttribute("for",
|
|
4035
|
+
const O = `${n.value}-tab-${j}`;
|
|
4036
|
+
A.setAttribute("for", O), x.id = O, x.setAttribute("name", n.value), y.length > j && x.setAttribute(
|
|
4036
4037
|
"aria-controls",
|
|
4037
4038
|
`${n.value}-tab-panel-${j}`
|
|
4038
4039
|
);
|
|
4039
4040
|
}
|
|
4040
4041
|
if (s) {
|
|
4041
|
-
const
|
|
4042
|
-
|
|
4042
|
+
const O = !i.initialSelectedMode || i.initialSelectedMode === "auto", F = i.initialSelectedIndex == null && j === 0 || Number(i.initialSelectedIndex) === j;
|
|
4043
|
+
O && F && x.click();
|
|
4043
4044
|
}
|
|
4044
4045
|
}
|
|
4045
4046
|
}
|
|
@@ -4260,10 +4261,10 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
4260
4261
|
function s() {
|
|
4261
4262
|
!c.value?.validity.valid || t.validation === "invalid" ? (w.value = f.value, g.value = t.invalidMessage || c.value?.validationMessage || _, re() && (B.value = g.value, J(() => B.value = "", 1e3))) : S() && c.value?.validity.valid && (t.required || t.minLength || t.maxLength) ? (w.value = u.value, re() && (B.value = t.validMessage ?? ce, J(() => B.value = "", 1e3))) : te(t.message, t.showMessage) ? w.value = v.value : w.value = void 0;
|
|
4262
4263
|
}
|
|
4263
|
-
function k(x,
|
|
4264
|
+
function k(x, O) {
|
|
4264
4265
|
t.input && t.input(x), I.value = x.target.value, t.onInput && t.onInput(x), ue(n, x), s();
|
|
4265
4266
|
}
|
|
4266
|
-
function y(x,
|
|
4267
|
+
function y(x, O) {
|
|
4267
4268
|
t.onChange && t.onChange(x), ue(n, x), s();
|
|
4268
4269
|
}
|
|
4269
4270
|
function p(x) {
|
|
@@ -4276,7 +4277,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
4276
4277
|
const x = t.id ?? t.propOverrides?.id ?? `textarea-${i}`;
|
|
4277
4278
|
d.value = x, v.value = x + ve, u.value = x + fe, f.value = x + he;
|
|
4278
4279
|
}
|
|
4279
|
-
return (x,
|
|
4280
|
+
return (x, O) => (h(), b("div", {
|
|
4280
4281
|
class: U(l(G)("db-textarea", t.class)),
|
|
4281
4282
|
"data-variant": e.variant,
|
|
4282
4283
|
"data-hide-asterisk": l(de)(e.showRequiredAsterisk),
|
|
@@ -4302,10 +4303,10 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
4302
4303
|
wrap: e.wrap,
|
|
4303
4304
|
spellcheck: e.spellCheck,
|
|
4304
4305
|
autocomplete: e.autocomplete,
|
|
4305
|
-
onInput:
|
|
4306
|
-
onChange:
|
|
4307
|
-
onBlur:
|
|
4308
|
-
onFocus:
|
|
4306
|
+
onInput: O[0] || (O[0] = async (F) => k(F)),
|
|
4307
|
+
onChange: O[1] || (O[1] = async (F) => y(F)),
|
|
4308
|
+
onBlur: O[2] || (O[2] = async (F) => p(F)),
|
|
4309
|
+
onFocus: O[3] || (O[3] = async (F) => j(F)),
|
|
4309
4310
|
value: e.value ?? I.value,
|
|
4310
4311
|
"aria-describedby": e.ariaDescribedBy ?? w.value,
|
|
4311
4312
|
placeholder: e.placeholder ?? l(nt),
|
|
@@ -4347,7 +4348,7 @@ const _a = ["id", "data-width", "data-on-forcing-mobile"], ei = { class: "db-hea
|
|
|
4347
4348
|
E("span", el, L(B.value), 1)
|
|
4348
4349
|
], 10, Qi));
|
|
4349
4350
|
}
|
|
4350
|
-
}), yn = ["none", "both", "horizontal", "vertical"], wn = ["hard", "soft", "off"], kn = ["description", "label"], pn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], Bn = ["medium", "small", "large", "none"], Sn = ["medium", "small", "large", "none"], tl = ["left", "right", "left-start", "left-end", "right-start", "right-end"], al = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], In = [...tl, ...al], Ln = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], xn = ["horizontal", "vertical"], Tn = ["full", "auto"], $n = ["full", "medium", "large", "small"], Cn = ["none", "slow", "fast"], En = ["auto", "fixed"], An = ["small", "medium"], Dn = ["weak", "strong"], Mn = ["invalid", "valid", "no-validation"], Fn = ["fixed", "content"],
|
|
4351
|
+
}), yn = ["none", "both", "horizontal", "vertical"], wn = ["hard", "soft", "off"], kn = ["description", "label"], pn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], Bn = ["medium", "small", "large", "none"], Sn = ["medium", "small", "large", "none"], tl = ["left", "right", "left-start", "left-end", "right-start", "right-end"], al = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], In = [...tl, ...al], Ln = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], xn = ["horizontal", "vertical"], Tn = ["full", "auto"], $n = ["full", "medium", "large", "small"], Cn = ["none", "slow", "fast"], En = ["auto", "fixed"], An = ["small", "medium"], Dn = ["weak", "strong"], Mn = ["invalid", "valid", "no-validation"], Fn = ["fixed", "content"], Nn = ["above", "floating"], On = ["leading", "trailing"], Rn = ["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"], zn = ["_self", "_blank", "_parent", "_top"], Pn = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], Vn = ["start", "center"];
|
|
4351
4352
|
export {
|
|
4352
4353
|
dl as AccordionBehaviorList,
|
|
4353
4354
|
ol as AccordionVariantList,
|
|
@@ -4417,7 +4418,7 @@ export {
|
|
|
4417
4418
|
Vt as DEFAULT_MESSAGE,
|
|
4418
4419
|
ve as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
4419
4420
|
nt as DEFAULT_PLACEHOLDER,
|
|
4420
|
-
|
|
4421
|
+
Ne as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
4421
4422
|
ot as DEFAULT_REMOVE,
|
|
4422
4423
|
Ht as DEFAULT_ROWS,
|
|
4423
4424
|
Ut as DEFAULT_SELECTED,
|
|
@@ -4433,8 +4434,8 @@ export {
|
|
|
4433
4434
|
Fl as DividerVariantList,
|
|
4434
4435
|
me as DocumentClickListener,
|
|
4435
4436
|
se as DocumentScrollListener,
|
|
4436
|
-
|
|
4437
|
-
|
|
4437
|
+
Nl as DrawerBackdropList,
|
|
4438
|
+
Ol as DrawerDirectionList,
|
|
4438
4439
|
zl as DrawerPositionList,
|
|
4439
4440
|
Rl as DrawerVariantList,
|
|
4440
4441
|
Dn as EmphasisList,
|
|
@@ -4442,8 +4443,8 @@ export {
|
|
|
4442
4443
|
Ln as GapSpacingList,
|
|
4443
4444
|
ql as IconWeightList,
|
|
4444
4445
|
Ul as InputTypeList,
|
|
4445
|
-
|
|
4446
|
-
|
|
4446
|
+
On as LabelVariantHorizontalList,
|
|
4447
|
+
Nn as LabelVariantList,
|
|
4447
4448
|
Xl as LinkContentList,
|
|
4448
4449
|
Pn as LinkReferrerPolicyList,
|
|
4449
4450
|
Hl as LinkSizeList,
|
|
@@ -4486,7 +4487,7 @@ export {
|
|
|
4486
4487
|
G as cls,
|
|
4487
4488
|
J as delay,
|
|
4488
4489
|
V as getBoolean,
|
|
4489
|
-
|
|
4490
|
+
N as getBooleanAsString,
|
|
4490
4491
|
vt as getFloatingProps,
|
|
4491
4492
|
de as getHideProp,
|
|
4492
4493
|
Ze as getInputValue,
|