@db-ux/v-core-components 3.0.2 → 3.0.4-playwright-visual-regression2-5008387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db-ux.es.js +156 -155
- package/dist/db-ux.umd.js +1 -1
- package/package.json +6 -6
package/dist/db-ux.es.js
CHANGED
|
@@ -487,7 +487,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
487
487
|
() => {
|
|
488
488
|
if (u.value) {
|
|
489
489
|
const b = u.value + fe;
|
|
490
|
-
f.value = b, p.value = u.value + pe, v.value = u.value + he, x(e.message, e.showMessage) && (g.value = b),
|
|
490
|
+
f.value = b, p.value = u.value + pe, v.value = u.value + he, x(e.message, e.showMessage) && (g.value = b), c();
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
493
|
{
|
|
@@ -516,12 +516,12 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
516
516
|
function h() {
|
|
517
517
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function c() {
|
|
520
520
|
var b, k, F;
|
|
521
521
|
!((b = w.value) != null && b.validity.valid) || e.validation === "invalid" ? (g.value = v.value, s.value = e.invalidMessage || ((k = w.value) == null ? void 0 : k.validationMessage) || te, me() && (T.value = s.value, Z(() => T.value = "", 1e3))) : h() && ((F = w.value) != null && F.validity.valid) && e.required ? (g.value = p.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = f.value : g.value = void 0;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
e.onChange && e.onChange(b), de(o, b, "checked"),
|
|
523
|
+
function r(b) {
|
|
524
|
+
e.onChange && e.onChange(b), de(o, b, "checked"), c();
|
|
525
525
|
}
|
|
526
526
|
function L(b) {
|
|
527
527
|
e.onBlur && e.onBlur(b);
|
|
@@ -548,7 +548,7 @@ const ao = Object.entries(sa).map(([, t]) => t), Ra = {
|
|
|
548
548
|
disabled: n(V)(b.disabled, "disabled"),
|
|
549
549
|
value: b.value,
|
|
550
550
|
required: n(V)(b.required, "required"),
|
|
551
|
-
onChange: k[0] || (k[0] = async (F) =>
|
|
551
|
+
onChange: k[0] || (k[0] = async (F) => r(F)),
|
|
552
552
|
onBlur: k[1] || (k[1] = async (F) => L(F)),
|
|
553
553
|
onFocus: k[2] || (k[2] = async (F) => C(F)),
|
|
554
554
|
"aria-describedby": b.ariaDescribedBy ?? g.value
|
|
@@ -638,7 +638,7 @@ const ce = class ce {
|
|
|
638
638
|
ne(ce, "callbacks", {}), ne(ce, "_instance", null);
|
|
639
639
|
let Be = ce;
|
|
640
640
|
const et = (t) => {
|
|
641
|
-
var
|
|
641
|
+
var c;
|
|
642
642
|
const {
|
|
643
643
|
top: a,
|
|
644
644
|
bottom: o,
|
|
@@ -649,7 +649,7 @@ const et = (t) => {
|
|
|
649
649
|
innerWidth: f
|
|
650
650
|
} = window;
|
|
651
651
|
let p = a < 0, v = o > u, s = e < 0, g = i > f;
|
|
652
|
-
const T = t.dataset.outsideVy, w = t.dataset.outsideVx, h = (
|
|
652
|
+
const T = t.dataset.outsideVy, w = t.dataset.outsideVx, h = (c = t == null ? void 0 : t.parentElement) == null ? void 0 : c.getBoundingClientRect();
|
|
653
653
|
return h && (T && (t.dataset.outsideVy === "top" ? p = h.top - (o - h.bottom) < 0 : v = h.bottom + (h.top - a) > u), w && (t.dataset.outsideVx === "left" ? s = h.left - (i - h.right) < 0 : g = h.right + (h.left - e) > f)), {
|
|
654
654
|
outTop: p,
|
|
655
655
|
outBottom: v,
|
|
@@ -711,9 +711,9 @@ const et = (t) => {
|
|
|
711
711
|
} = window;
|
|
712
712
|
let w = e.height, h = e.width;
|
|
713
713
|
(o === "bottom" || o === "top") && (h = h / 2), (o === "left" || o === "right") && (w = w / 2);
|
|
714
|
-
const
|
|
714
|
+
const c = f + w > g, r = i - w < 0, L = v - h < 0, C = p + h > T;
|
|
715
715
|
let b = o;
|
|
716
|
-
return o.startsWith("bottom") ?
|
|
716
|
+
return o.startsWith("bottom") ? c ? (b = o == null ? void 0 : o.replace("bottom", "top"), L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end")) : L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end") : o.startsWith("top") ? r ? (b = o == null ? void 0 : o.replace("top", "bottom"), L && C ? b = "bottom" : L ? b = "bottom-start" : C && (b = "bottom-end")) : L && C ? b = "top" : L ? b = "top-start" : C && (b = "top-end") : o.startsWith("left") ? L ? (b = o == null ? void 0 : o.replace("left", "right"), c && r ? b = "right" : c ? b = "right-end" : r && (b = "right-start")) : c && r ? b = "left" : c ? b = "left-end" : r && (b = "left-start") : b.startsWith("right") && (C ? (b = o == null ? void 0 : o.replace("right", "left"), c && r ? b = "left" : c ? b = "left-end" : r && (b = "left-start")) : c && r ? b = "right" : c ? b = "right-end" : r && (b = "right-start")), {
|
|
717
717
|
top: i,
|
|
718
718
|
bottom: f,
|
|
719
719
|
right: p,
|
|
@@ -738,45 +738,45 @@ const et = (t) => {
|
|
|
738
738
|
bottom: T,
|
|
739
739
|
correctedPlacement: w,
|
|
740
740
|
innerWidth: h,
|
|
741
|
-
innerHeight:
|
|
741
|
+
innerHeight: c
|
|
742
742
|
} = ua(t, a, o);
|
|
743
743
|
if (v > f && (w.startsWith("bottom") || w.startsWith("top"))) {
|
|
744
|
-
const
|
|
745
|
-
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${
|
|
744
|
+
const r = f / 2 / v * 100;
|
|
745
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-inline-start", `${r}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - r}%`);
|
|
746
746
|
}
|
|
747
747
|
if (p > u && (w.startsWith("left") || w.startsWith("bottom"))) {
|
|
748
|
-
const
|
|
749
|
-
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-block-start", `${
|
|
748
|
+
const r = u / 2 / p * 100;
|
|
749
|
+
w.endsWith("start") ? t.style.setProperty("--db-tooltip-arrow-block-start", `${r}%`) : w.endsWith("end") && t.style.setProperty("--db-tooltip-arrow-block-start", `${100 - r}%`);
|
|
750
750
|
}
|
|
751
751
|
if (w === "right" || w === "left")
|
|
752
752
|
t.style.insetBlockStart = `${i + u / 2}px`;
|
|
753
753
|
else if (w === "right-start" || w === "left-start") {
|
|
754
|
-
const
|
|
755
|
-
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${
|
|
754
|
+
const r = i + p;
|
|
755
|
+
t.style.insetBlockStart = `${i}px`, t.style.insetBlockEnd = `${r > c ? c : r}px`;
|
|
756
756
|
} else if (w === "right-end" || w === "left-end") {
|
|
757
|
-
const
|
|
758
|
-
t.style.insetBlockStart = `${
|
|
757
|
+
const r = T - p;
|
|
758
|
+
t.style.insetBlockStart = `${r < 0 ? 0 : r}px`, t.style.insetBlockEnd = `${T}px`;
|
|
759
759
|
} else if (w === "top" || w === "bottom")
|
|
760
760
|
t.style.insetInlineStart = `${g + f / 2}px`;
|
|
761
761
|
else if (w === "top-start" || w === "bottom-start") {
|
|
762
|
-
const
|
|
763
|
-
t.style.insetInlineStart = `${g}px`, t.style.insetInlineEnd = `${
|
|
762
|
+
const r = g + v;
|
|
763
|
+
t.style.insetInlineStart = `${g}px`, t.style.insetInlineEnd = `${r > h ? h : r}px`;
|
|
764
764
|
} else if (w === "top-end" || w === "bottom-end") {
|
|
765
|
-
const
|
|
766
|
-
t.style.insetInlineStart = `${s - v}px`, t.style.insetInlineEnd = `${
|
|
765
|
+
const r = g - v;
|
|
766
|
+
t.style.insetInlineStart = `${s - v}px`, t.style.insetInlineEnd = `${r < 0 ? 0 : r}px`;
|
|
767
767
|
}
|
|
768
768
|
if (w != null && w.startsWith("right")) {
|
|
769
|
-
const
|
|
770
|
-
t.style.insetInlineStart = `calc(${s}px + ${e})`, t.style.insetInlineEnd = `calc(${
|
|
769
|
+
const r = s + v;
|
|
770
|
+
t.style.insetInlineStart = `calc(${s}px + ${e})`, t.style.insetInlineEnd = `calc(${r > h ? h : r}px + ${e})`;
|
|
771
771
|
} else if (w != null && w.startsWith("left")) {
|
|
772
|
-
const
|
|
773
|
-
t.style.insetInlineStart = `calc(${
|
|
772
|
+
const r = g - v;
|
|
773
|
+
t.style.insetInlineStart = `calc(${r < 0 ? 0 : r}px - ${e})`, t.style.insetInlineEnd = `calc(${s}px - ${e})`;
|
|
774
774
|
} else if (w != null && w.startsWith("top")) {
|
|
775
|
-
const
|
|
776
|
-
t.style.insetBlockStart = `calc(${
|
|
775
|
+
const r = i - p;
|
|
776
|
+
t.style.insetBlockStart = `calc(${r < 0 ? 0 : r}px - ${e})`, t.style.insetBlockEnd = `calc(${T}px - ${e})`;
|
|
777
777
|
} else if (w != null && w.startsWith("bottom")) {
|
|
778
|
-
const
|
|
779
|
-
t.style.insetBlockStart = `calc(${T}px + ${e})`, t.style.insetBlockEnd = `calc(${
|
|
778
|
+
const r = T + p;
|
|
779
|
+
t.style.insetBlockStart = `calc(${T}px + ${e})`, t.style.insetBlockEnd = `calc(${r > c ? c : r}px + ${e})`;
|
|
780
780
|
}
|
|
781
781
|
t.style.position = "fixed", t.dataset.correctedPlacement = w;
|
|
782
782
|
}, it = ["id", "data-width"], ot = /* @__PURE__ */ G({
|
|
@@ -988,7 +988,7 @@ const et = (t) => {
|
|
|
988
988
|
() => {
|
|
989
989
|
if (i.value) {
|
|
990
990
|
const y = i.value + fe;
|
|
991
|
-
u.value = y, f.value = i.value + pe, p.value = i.value + he, s.value = e.dataListId ?? i.value + xe, x(e.message, e.showMessage) && (g.value = y),
|
|
991
|
+
u.value = y, f.value = i.value + pe, p.value = i.value + he, s.value = e.dataListId ?? i.value + xe, x(e.message, e.showMessage) && (g.value = y), r();
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
{
|
|
@@ -1005,18 +1005,18 @@ const et = (t) => {
|
|
|
1005
1005
|
flush: "post"
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
|
-
function
|
|
1008
|
+
function c() {
|
|
1009
1009
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function r() {
|
|
1012
1012
|
var y, X, B;
|
|
1013
|
-
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((X = h.value) == null ? void 0 : X.validationMessage) || te, me() && (w.value = v.value, Z(() => w.value = "", 1e3))) :
|
|
1013
|
+
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((X = h.value) == null ? void 0 : X.validationMessage) || te, me() && (w.value = v.value, Z(() => w.value = "", 1e3))) : c() && ((B = h.value) != null && B.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (g.value = f.value, me() && (w.value = e.validMessage ?? ge, Z(() => w.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = void 0;
|
|
1014
1014
|
}
|
|
1015
1015
|
function L(y) {
|
|
1016
|
-
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(o, y),
|
|
1016
|
+
e.input && e.input(y), T.value = y.target.value, e.onInput && e.onInput(y), de(o, y), r();
|
|
1017
1017
|
}
|
|
1018
1018
|
function C(y) {
|
|
1019
|
-
e.onChange && e.onChange(y), de(o, y),
|
|
1019
|
+
e.onChange && e.onChange(y), de(o, y), r();
|
|
1020
1020
|
}
|
|
1021
1021
|
function b(y) {
|
|
1022
1022
|
e.onBlur && e.onBlur(y);
|
|
@@ -1097,7 +1097,7 @@ const et = (t) => {
|
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 1
|
|
1099
1099
|
}, 8, ["icon", "id"])) : U("", !0),
|
|
1100
|
-
|
|
1100
|
+
c() ? (m(), J(ae, {
|
|
1101
1101
|
key: 2,
|
|
1102
1102
|
size: "small",
|
|
1103
1103
|
semantic: "successful",
|
|
@@ -1145,13 +1145,13 @@ const et = (t) => {
|
|
|
1145
1145
|
() => [f.value, e.value],
|
|
1146
1146
|
() => {
|
|
1147
1147
|
if (f.value && e.value && o.value) {
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
1153
|
-
}),
|
|
1154
|
-
const L =
|
|
1148
|
+
const c = s();
|
|
1149
|
+
c && (["mouseenter", "focusin"].forEach((r) => {
|
|
1150
|
+
c.addEventListener(r, () => h(c));
|
|
1151
|
+
}), c.addEventListener("keydown", (r) => v(r)), ["mouseleave", "focusout"].forEach((r) => {
|
|
1152
|
+
c.addEventListener(r, () => w());
|
|
1153
|
+
}), c.dataset.hasTooltip = "true", a.variant === "label" ? c.setAttribute("aria-labelledby", o.value) : c.setAttribute("aria-describedby", o.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((r) => {
|
|
1154
|
+
const L = r.find(({ target: C }) => C === s());
|
|
1155
1155
|
L && !L.isIntersecting && v(!1);
|
|
1156
1156
|
})), e.value = !1;
|
|
1157
1157
|
}
|
|
@@ -1161,42 +1161,43 @@ const et = (t) => {
|
|
|
1161
1161
|
flush: "post"
|
|
1162
1162
|
}
|
|
1163
1163
|
);
|
|
1164
|
-
function p(
|
|
1165
|
-
|
|
1164
|
+
function p(c) {
|
|
1165
|
+
c.stopPropagation();
|
|
1166
1166
|
}
|
|
1167
|
-
function v(
|
|
1168
|
-
(!
|
|
1167
|
+
function v(c) {
|
|
1168
|
+
(!c || c.key === "Escape") && f.value && getComputedStyle(f.value).visibility === "visible" && s().blur();
|
|
1169
1169
|
}
|
|
1170
1170
|
function s() {
|
|
1171
|
-
let
|
|
1172
|
-
return
|
|
1171
|
+
let c = f.value.parentElement;
|
|
1172
|
+
return c && c.localName.includes("tooltip") && (c = c.parentElement), c;
|
|
1173
1173
|
}
|
|
1174
|
-
function g(
|
|
1175
|
-
|
|
1174
|
+
function g(c) {
|
|
1175
|
+
if (!c || !f.value) return;
|
|
1176
|
+
typeof window < "u" && CSS.supports("anchor-name", "--anchor") && CSS.supports("position-anchor", "--anchor") || Z(() => {
|
|
1176
1177
|
ra(
|
|
1177
1178
|
f.value,
|
|
1178
|
-
|
|
1179
|
+
c,
|
|
1179
1180
|
a.placement ?? "bottom"
|
|
1180
1181
|
);
|
|
1181
1182
|
}, 1);
|
|
1182
1183
|
}
|
|
1183
|
-
function T(
|
|
1184
|
+
function T(c, r) {
|
|
1184
1185
|
var L, C;
|
|
1185
|
-
(L =
|
|
1186
|
+
(L = c == null ? void 0 : c.target) != null && L.contains && ((C = c == null ? void 0 : c.target) != null && C.contains(f.value)) && g(r);
|
|
1186
1187
|
}
|
|
1187
1188
|
function w() {
|
|
1188
|
-
var
|
|
1189
|
+
var c;
|
|
1189
1190
|
i.value && new Be().removeCallback(
|
|
1190
1191
|
i.value
|
|
1191
|
-
), (
|
|
1192
|
+
), (c = u.value) == null || c.unobserve(s());
|
|
1192
1193
|
}
|
|
1193
|
-
function h(
|
|
1194
|
-
var
|
|
1194
|
+
function h(c) {
|
|
1195
|
+
var r;
|
|
1195
1196
|
i.value = new Be().addCallback(
|
|
1196
|
-
(L) => T(L,
|
|
1197
|
-
), g(
|
|
1197
|
+
(L) => T(L, c)
|
|
1198
|
+
), g(c), (r = u.value) == null || r.observe(s());
|
|
1198
1199
|
}
|
|
1199
|
-
return (
|
|
1200
|
+
return (c, r) => (m(), S("i", {
|
|
1200
1201
|
role: "tooltip",
|
|
1201
1202
|
"aria-hidden": "true",
|
|
1202
1203
|
"data-gap": "true",
|
|
@@ -1204,15 +1205,15 @@ const et = (t) => {
|
|
|
1204
1205
|
ref: f,
|
|
1205
1206
|
class: P(n(q)("db-tooltip", a.class)),
|
|
1206
1207
|
id: o.value,
|
|
1207
|
-
"data-emphasis":
|
|
1208
|
-
"data-animation": n(R)(
|
|
1209
|
-
"data-delay":
|
|
1210
|
-
"data-width":
|
|
1211
|
-
"data-show-arrow": n(R)(
|
|
1212
|
-
"data-placement":
|
|
1213
|
-
onClick:
|
|
1208
|
+
"data-emphasis": c.emphasis,
|
|
1209
|
+
"data-animation": n(R)(c.animation ?? !0),
|
|
1210
|
+
"data-delay": c.delay,
|
|
1211
|
+
"data-width": c.width,
|
|
1212
|
+
"data-show-arrow": n(R)(c.showArrow ?? !0),
|
|
1213
|
+
"data-placement": c.placement,
|
|
1214
|
+
onClick: r[0] || (r[0] = async (L) => p(L))
|
|
1214
1215
|
}, [
|
|
1215
|
-
A(
|
|
1216
|
+
A(c.$slots, "default")
|
|
1216
1217
|
], 10, yt));
|
|
1217
1218
|
}
|
|
1218
1219
|
}), wt = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], kt = /* @__PURE__ */ G({
|
|
@@ -1351,7 +1352,7 @@ const et = (t) => {
|
|
|
1351
1352
|
},
|
|
1352
1353
|
emits: ["update:values"],
|
|
1353
1354
|
setup(t, { emit: a }) {
|
|
1354
|
-
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(void 0), h = d(void 0),
|
|
1355
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(void 0), g = d(void 0), T = d(void 0), w = d(void 0), h = d(void 0), c = d("no-validation"), r = d(!1), L = d(void 0), C = d(""), b = d(void 0), k = d(""), F = d([]), y = d(!1), X = d(!1), B = d(0), M = d([]), oe = d([]), K = d(!1), _e = d(void 0), Le = d(0), Ce = d(void 0), Ve = d(void 0), Pe = d(void 0), qe = d(!1), Ee = d(!1), va = d(null), z = d(null), ve = d(null), Fe = d(null), Ue = d(null);
|
|
1355
1356
|
Y(() => {
|
|
1356
1357
|
const l = e.id ?? `custom-select-${Q()}`;
|
|
1357
1358
|
i.value = l, u.value = l + fe, f.value = l + pe, p.value = l + he, s.value = l + Ze, g.value = l + Qe, T.value = l + "-summary", w.value = l + Re, b.value = l + "-selected-labels", h.value = l + "-info", v.value = e.invalidMessage || te, typeof window < "u" && "IntersectionObserver" in window && (Ve.value = new IntersectionObserver((I) => {
|
|
@@ -1447,7 +1448,7 @@ const et = (t) => {
|
|
|
1447
1448
|
), D(
|
|
1448
1449
|
() => [e.validation],
|
|
1449
1450
|
() => {
|
|
1450
|
-
|
|
1451
|
+
c.value = e.validation;
|
|
1451
1452
|
},
|
|
1452
1453
|
{
|
|
1453
1454
|
immediate: !0,
|
|
@@ -1567,7 +1568,7 @@ const et = (t) => {
|
|
|
1567
1568
|
}
|
|
1568
1569
|
function pa() {
|
|
1569
1570
|
var l, I, E;
|
|
1570
|
-
ve.value && (ve.value.value = ga()), !((l = ve.value) != null && l.validity.valid) || e.validation === "invalid" ? (L.value = p.value, v.value = e.invalidMessage || ((I = ve.value) == null ? void 0 : I.validationMessage) || te, me() && (k.value = v.value, Z(() => k.value = "", 1e3)),
|
|
1571
|
+
ve.value && (ve.value.value = ga()), !((l = ve.value) != null && l.validity.valid) || e.validation === "invalid" ? (L.value = p.value, v.value = e.invalidMessage || ((I = ve.value) == null ? void 0 : I.validationMessage) || te, me() && (k.value = v.value, Z(() => k.value = "", 1e3)), r.value && (c.value = e.validation ?? "invalid")) : Oe() && ((E = ve.value) != null && E.validity.valid) && e.required ? (L.value = f.value, me() && (k.value = e.validMessage ?? ge, Z(() => k.value = "", 1e3)), c.value = e.validation ?? "valid") : x(e.message, e.showMessage) ? (L.value = u.value, c.value = e.validation ?? "no-validation") : (L.value = w.value, c.value = e.validation ?? "no-validation");
|
|
1571
1572
|
}
|
|
1572
1573
|
function ha(l) {
|
|
1573
1574
|
var I, E;
|
|
@@ -1676,7 +1677,7 @@ const et = (t) => {
|
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1678
1679
|
function $e(l) {
|
|
1679
|
-
(/* @__PURE__ */ new Date()).getTime() - Le.value < 200 || (M.value = l,
|
|
1680
|
+
(/* @__PURE__ */ new Date()).getTime() - Le.value < 200 || (M.value = l, r.value = !0, e.onOptionSelected && e.onOptionSelected(l ?? []), de(
|
|
1680
1681
|
o,
|
|
1681
1682
|
{
|
|
1682
1683
|
target: {
|
|
@@ -1762,8 +1763,8 @@ const et = (t) => {
|
|
|
1762
1763
|
ref_key: "_ref",
|
|
1763
1764
|
ref: va,
|
|
1764
1765
|
class: P(n(q)("db-custom-select", e.class)),
|
|
1765
|
-
"aria-invalid":
|
|
1766
|
-
"data-custom-validity":
|
|
1766
|
+
"aria-invalid": c.value === "invalid",
|
|
1767
|
+
"data-custom-validity": c.value,
|
|
1767
1768
|
"data-width": l.formFieldWidth,
|
|
1768
1769
|
"data-variant": l.variant === "floating" && l.selectedType === "tag" && l.multiple ? "above" : l.variant,
|
|
1769
1770
|
"data-required": n(R)(l.required),
|
|
@@ -2506,10 +2507,10 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2506
2507
|
() => {
|
|
2507
2508
|
var h;
|
|
2508
2509
|
if (o.value && s.value) {
|
|
2509
|
-
const
|
|
2510
|
-
|
|
2510
|
+
const c = s.value.querySelector("menu");
|
|
2511
|
+
c && (((h = c.children) == null ? void 0 : h.length) > 0 ? (e.value = !0, v.value || (v.value = new Ht(
|
|
2511
2512
|
s.value,
|
|
2512
|
-
|
|
2513
|
+
c
|
|
2513
2514
|
))) : i.value = !1);
|
|
2514
2515
|
}
|
|
2515
2516
|
},
|
|
@@ -2519,8 +2520,8 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2519
2520
|
}
|
|
2520
2521
|
);
|
|
2521
2522
|
function g(h) {
|
|
2522
|
-
var
|
|
2523
|
-
((
|
|
2523
|
+
var c;
|
|
2524
|
+
((c = h == null ? void 0 : h.target) == null ? void 0 : c.nodeName) === "A" && (f.value = !0, Z(() => {
|
|
2524
2525
|
f.value = !1;
|
|
2525
2526
|
}, 1e3));
|
|
2526
2527
|
}
|
|
@@ -2530,21 +2531,21 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2530
2531
|
function w(h) {
|
|
2531
2532
|
h.stopPropagation(), u.value = !1;
|
|
2532
2533
|
}
|
|
2533
|
-
return (h,
|
|
2534
|
+
return (h, c) => (m(), S("li", {
|
|
2534
2535
|
ref_key: "_ref",
|
|
2535
2536
|
ref: s,
|
|
2536
2537
|
id: h.id,
|
|
2537
|
-
onMouseover:
|
|
2538
|
+
onMouseover: c[2] || (c[2] = async (r) => {
|
|
2538
2539
|
var L;
|
|
2539
2540
|
return (L = v.value) == null ? void 0 : L.enableFollow();
|
|
2540
2541
|
}),
|
|
2541
|
-
onMouseleave:
|
|
2542
|
+
onMouseleave: c[3] || (c[3] = async (r) => {
|
|
2542
2543
|
var L;
|
|
2543
2544
|
return (L = v.value) == null ? void 0 : L.disableFollow();
|
|
2544
2545
|
}),
|
|
2545
|
-
onMousemove:
|
|
2546
|
+
onMousemove: c[4] || (c[4] = async (r) => {
|
|
2546
2547
|
var L;
|
|
2547
|
-
return (L = v.value) == null ? void 0 : L.followByMouseEvent(
|
|
2548
|
+
return (L = v.value) == null ? void 0 : L.followByMouseEvent(r);
|
|
2548
2549
|
}),
|
|
2549
2550
|
class: P(n(q)("db-navigation-item", a.class)),
|
|
2550
2551
|
"data-width": h.width,
|
|
@@ -2565,7 +2566,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2565
2566
|
"aria-haspopup": e.value,
|
|
2566
2567
|
"aria-expanded": u.value,
|
|
2567
2568
|
disabled: n(V)(h.disabled, "disabled"),
|
|
2568
|
-
onClick:
|
|
2569
|
+
onClick: c[0] || (c[0] = async (r) => T(r))
|
|
2569
2570
|
}, [
|
|
2570
2571
|
h.text ? (m(), S(W, { key: 0 }, [
|
|
2571
2572
|
N($(h.text), 1)
|
|
@@ -2575,14 +2576,14 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2575
2576
|
class: "db-sub-navigation",
|
|
2576
2577
|
"data-force-close": f.value,
|
|
2577
2578
|
id: p.value,
|
|
2578
|
-
onClick:
|
|
2579
|
+
onClick: c[1] || (c[1] = async (r) => g(r))
|
|
2579
2580
|
}, [
|
|
2580
2581
|
e.value ? (m(), S("div", ci, [
|
|
2581
2582
|
ee(Se, {
|
|
2582
2583
|
icon: "arrow_left",
|
|
2583
2584
|
variant: "ghost",
|
|
2584
2585
|
id: h.backButtonId,
|
|
2585
|
-
onClick: (
|
|
2586
|
+
onClick: (r) => w(r)
|
|
2586
2587
|
}, {
|
|
2587
2588
|
default: H(() => [
|
|
2588
2589
|
N($(h.backButtonText ?? n(Aa)), 1)
|
|
@@ -2737,14 +2738,14 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2737
2738
|
const h = w();
|
|
2738
2739
|
h && (h.ariaHasPopup = "true"), v(), f.value.addEventListener(
|
|
2739
2740
|
"keydown",
|
|
2740
|
-
(
|
|
2741
|
-
), ["mouseenter", "focusin"].forEach((
|
|
2742
|
-
f.value.addEventListener(
|
|
2743
|
-
}), ["mouseleave", "focusout"].forEach((
|
|
2744
|
-
f.value.addEventListener(
|
|
2745
|
-
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((
|
|
2746
|
-
const
|
|
2747
|
-
|
|
2741
|
+
(c) => p(c)
|
|
2742
|
+
), ["mouseenter", "focusin"].forEach((c) => {
|
|
2743
|
+
f.value.addEventListener(c, () => g());
|
|
2744
|
+
}), ["mouseleave", "focusout"].forEach((c) => {
|
|
2745
|
+
f.value.addEventListener(c, () => T());
|
|
2746
|
+
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((c) => {
|
|
2747
|
+
const r = c.find(({ target: L }) => L === w());
|
|
2748
|
+
r && !r.isIntersecting && p(!1);
|
|
2748
2749
|
}));
|
|
2749
2750
|
}
|
|
2750
2751
|
},
|
|
@@ -2767,8 +2768,8 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2767
2768
|
);
|
|
2768
2769
|
function p(h) {
|
|
2769
2770
|
if (!h || h.key === "Escape")
|
|
2770
|
-
for (const
|
|
2771
|
-
|
|
2771
|
+
for (const c of Array.from(f.value.children))
|
|
2772
|
+
c.blur();
|
|
2772
2773
|
}
|
|
2773
2774
|
function v() {
|
|
2774
2775
|
if (!f.value) return;
|
|
@@ -2782,39 +2783,39 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2782
2783
|
}, 1);
|
|
2783
2784
|
}
|
|
2784
2785
|
function s(h) {
|
|
2785
|
-
var
|
|
2786
|
-
(
|
|
2786
|
+
var c, r;
|
|
2787
|
+
(c = h == null ? void 0 : h.target) != null && c.contains && ((r = h == null ? void 0 : h.target) != null && r.contains(f.value)) && v();
|
|
2787
2788
|
}
|
|
2788
2789
|
function g() {
|
|
2789
|
-
var
|
|
2790
|
+
var c;
|
|
2790
2791
|
e.value = !0, i.value = new Be().addCallback(
|
|
2791
|
-
(
|
|
2792
|
+
(r) => s(r)
|
|
2792
2793
|
), v();
|
|
2793
2794
|
const h = w();
|
|
2794
|
-
h && ((
|
|
2795
|
+
h && ((c = u.value) == null || c.observe(h));
|
|
2795
2796
|
}
|
|
2796
2797
|
function T(h) {
|
|
2797
|
-
var
|
|
2798
|
+
var c;
|
|
2798
2799
|
{
|
|
2799
2800
|
e.value = !1, i.value && new Be().removeCallback(
|
|
2800
2801
|
i.value
|
|
2801
2802
|
);
|
|
2802
|
-
const
|
|
2803
|
-
|
|
2803
|
+
const r = w();
|
|
2804
|
+
r && ((c = u.value) == null || c.unobserve(r));
|
|
2804
2805
|
}
|
|
2805
2806
|
}
|
|
2806
2807
|
function w() {
|
|
2807
2808
|
var h;
|
|
2808
2809
|
if (f.value) {
|
|
2809
|
-
const
|
|
2810
|
-
if (
|
|
2811
|
-
const
|
|
2812
|
-
return
|
|
2810
|
+
const c = Array.from(f.value.children);
|
|
2811
|
+
if (c.length >= 2) {
|
|
2812
|
+
const r = c[0];
|
|
2813
|
+
return r.tagName.includes("-") ? ((h = r.children) == null ? void 0 : h.length) > 0 ? r.children[0] : null : r;
|
|
2813
2814
|
}
|
|
2814
2815
|
}
|
|
2815
2816
|
return null;
|
|
2816
2817
|
}
|
|
2817
|
-
return (h,
|
|
2818
|
+
return (h, c) => (m(), S("div", {
|
|
2818
2819
|
ref_key: "_ref",
|
|
2819
2820
|
ref: f,
|
|
2820
2821
|
id: h.id,
|
|
@@ -2986,16 +2987,16 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
2986
2987
|
},
|
|
2987
2988
|
emits: ["update:value"],
|
|
2988
2989
|
setup(t, { emit: a }) {
|
|
2989
|
-
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(""), g = d(void 0), T = d(""), w = d(!1), h = d(""),
|
|
2990
|
+
const o = a, e = t, i = d(void 0), u = d(void 0), f = d(void 0), p = d(void 0), v = d(void 0), s = d(""), g = d(void 0), T = d(""), w = d(!1), h = d(""), c = d(null);
|
|
2990
2991
|
Y(() => {
|
|
2991
2992
|
w.value = !0;
|
|
2992
2993
|
const B = e.id ?? `select-${Q()}`;
|
|
2993
2994
|
i.value = B, u.value = B + fe, f.value = B + pe, p.value = B + he, s.value = B + Re, v.value = e.invalidMessage || te;
|
|
2994
2995
|
}), D(
|
|
2995
|
-
() => [
|
|
2996
|
+
() => [c.value, e.invalidMessage],
|
|
2996
2997
|
() => {
|
|
2997
2998
|
var B;
|
|
2998
|
-
v.value = e.invalidMessage || ((B =
|
|
2999
|
+
v.value = e.invalidMessage || ((B = c.value) == null ? void 0 : B.validationMessage) || te;
|
|
2999
3000
|
},
|
|
3000
3001
|
{
|
|
3001
3002
|
immediate: !0,
|
|
@@ -3023,12 +3024,12 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3023
3024
|
flush: "post"
|
|
3024
3025
|
}
|
|
3025
3026
|
);
|
|
3026
|
-
function
|
|
3027
|
+
function r() {
|
|
3027
3028
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3028
3029
|
}
|
|
3029
3030
|
function L() {
|
|
3030
3031
|
var B, M, oe;
|
|
3031
|
-
!((B =
|
|
3032
|
+
!((B = c.value) != null && B.validity.valid) || e.validation === "invalid" ? (g.value = p.value, v.value = e.invalidMessage || ((M = c.value) == null ? void 0 : M.validationMessage) || te, me() && (h.value = v.value, Z(() => h.value = "", 1e3))) : r() && ((oe = c.value) != null && oe.validity.valid) && e.required ? (g.value = f.value, me() && (h.value = e.validMessage ?? ge, Z(() => h.value = "", 1e3))) : x(e.message, e.showMessage) ? g.value = u.value : g.value = s.value;
|
|
3032
3033
|
}
|
|
3033
3034
|
function C(B) {
|
|
3034
3035
|
e.onClick && e.onClick(B);
|
|
@@ -3064,7 +3065,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3064
3065
|
"aria-invalid": B.validation === "invalid",
|
|
3065
3066
|
"data-custom-validity": B.validation,
|
|
3066
3067
|
ref_key: "_ref",
|
|
3067
|
-
ref:
|
|
3068
|
+
ref: c,
|
|
3068
3069
|
required: n(V)(B.required, "required"),
|
|
3069
3070
|
disabled: n(V)(B.disabled, "disabled"),
|
|
3070
3071
|
id: i.value,
|
|
@@ -3112,7 +3113,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3112
3113
|
]),
|
|
3113
3114
|
_: 1
|
|
3114
3115
|
}, 8, ["icon", "id"])) : U("", !0),
|
|
3115
|
-
|
|
3116
|
+
r() ? (m(), J(ae, {
|
|
3116
3117
|
key: 1,
|
|
3117
3118
|
size: "small",
|
|
3118
3119
|
semantic: "successful",
|
|
@@ -3412,12 +3413,12 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3412
3413
|
() => {
|
|
3413
3414
|
if (v.value && i.value) {
|
|
3414
3415
|
w(), h(!0);
|
|
3415
|
-
const
|
|
3416
|
-
|
|
3416
|
+
const r = v.value.querySelector(".db-tab-list");
|
|
3417
|
+
r && new MutationObserver((C) => {
|
|
3417
3418
|
C.forEach((b) => {
|
|
3418
3419
|
(b.removedNodes.length || b.addedNodes.length) && (w(), h());
|
|
3419
3420
|
});
|
|
3420
|
-
}).observe(
|
|
3421
|
+
}).observe(r, {
|
|
3421
3422
|
childList: !0,
|
|
3422
3423
|
subtree: !0
|
|
3423
3424
|
}), i.value = !1;
|
|
@@ -3431,19 +3432,19 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3431
3432
|
function s() {
|
|
3432
3433
|
try {
|
|
3433
3434
|
return typeof a.tabs == "string" ? JSON.parse(a.tabs) : a.tabs;
|
|
3434
|
-
} catch (
|
|
3435
|
-
console.error(
|
|
3435
|
+
} catch (r) {
|
|
3436
|
+
console.error(r);
|
|
3436
3437
|
}
|
|
3437
3438
|
return [];
|
|
3438
3439
|
}
|
|
3439
|
-
function g(
|
|
3440
|
-
const L =
|
|
3441
|
-
u.value = L &&
|
|
3440
|
+
function g(r) {
|
|
3441
|
+
const L = r.scrollWidth > r.clientWidth;
|
|
3442
|
+
u.value = L && r.scrollLeft > 1, f.value = L && r.scrollLeft < r.scrollWidth - r.clientWidth;
|
|
3442
3443
|
}
|
|
3443
|
-
function T(
|
|
3444
|
+
function T(r) {
|
|
3444
3445
|
var C;
|
|
3445
3446
|
let L = Number(a.arrowScrollDistance) || 100;
|
|
3446
|
-
|
|
3447
|
+
r && (L *= -1), (C = p.value) == null || C.scrollBy({
|
|
3447
3448
|
top: 0,
|
|
3448
3449
|
left: L,
|
|
3449
3450
|
behavior: "smooth"
|
|
@@ -3451,9 +3452,9 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3451
3452
|
}
|
|
3452
3453
|
function w() {
|
|
3453
3454
|
if (v.value) {
|
|
3454
|
-
const
|
|
3455
|
-
if (
|
|
3456
|
-
const L =
|
|
3455
|
+
const r = v.value.querySelector(".db-tab-list");
|
|
3456
|
+
if (r) {
|
|
3457
|
+
const L = r.querySelector('[role="tablist"]');
|
|
3457
3458
|
L && (L.setAttribute(
|
|
3458
3459
|
"aria-orientation",
|
|
3459
3460
|
a.orientation || "horizontal"
|
|
@@ -3463,7 +3464,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3463
3464
|
}
|
|
3464
3465
|
}
|
|
3465
3466
|
}
|
|
3466
|
-
function h(
|
|
3467
|
+
function h(r) {
|
|
3467
3468
|
if (v.value) {
|
|
3468
3469
|
const L = Array.from(
|
|
3469
3470
|
v.value.getElementsByClassName("db-tab-item")
|
|
@@ -3482,7 +3483,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3482
3483
|
`${e.value}-tab-panel-${k}`
|
|
3483
3484
|
);
|
|
3484
3485
|
}
|
|
3485
|
-
if (
|
|
3486
|
+
if (r) {
|
|
3486
3487
|
const X = !a.initialSelectedMode || a.initialSelectedMode === "auto", B = a.initialSelectedIndex == null && k === 0 || Number(a.initialSelectedIndex) === k;
|
|
3487
3488
|
X && B && y.click();
|
|
3488
3489
|
}
|
|
@@ -3495,33 +3496,33 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3495
3496
|
}
|
|
3496
3497
|
}
|
|
3497
3498
|
}
|
|
3498
|
-
function r
|
|
3499
|
+
function c(r) {
|
|
3499
3500
|
var L;
|
|
3500
|
-
if (
|
|
3501
|
-
const b =
|
|
3501
|
+
if (r.stopPropagation(), r.target) {
|
|
3502
|
+
const b = r.target.parentElement;
|
|
3502
3503
|
if (b && b.parentElement && ((L = b.parentElement) == null ? void 0 : L.nodeName) === "LI") {
|
|
3503
3504
|
const k = b.parentElement;
|
|
3504
3505
|
if (k) {
|
|
3505
3506
|
const F = k.parentElement;
|
|
3506
3507
|
if (F) {
|
|
3507
3508
|
const y = Array.from(F.childNodes).indexOf(k);
|
|
3508
|
-
a.onIndexChange && a.onIndexChange(y), a.onTabSelect && a.onTabSelect(
|
|
3509
|
+
a.onIndexChange && a.onIndexChange(y), a.onTabSelect && a.onTabSelect(r);
|
|
3509
3510
|
}
|
|
3510
3511
|
}
|
|
3511
3512
|
}
|
|
3512
3513
|
}
|
|
3513
3514
|
}
|
|
3514
|
-
return (
|
|
3515
|
+
return (r, L) => (m(), S("div", {
|
|
3515
3516
|
ref_key: "_ref",
|
|
3516
3517
|
ref: v,
|
|
3517
3518
|
id: o.value,
|
|
3518
3519
|
class: P(n(q)("db-tabs", a.class)),
|
|
3519
|
-
"data-orientation":
|
|
3520
|
-
"data-scroll-behavior":
|
|
3521
|
-
"data-alignment":
|
|
3522
|
-
"data-width":
|
|
3523
|
-
onInput: L[0] || (L[0] = async (C) =>
|
|
3524
|
-
onChange: L[1] || (L[1] = async (C) =>
|
|
3520
|
+
"data-orientation": r.orientation,
|
|
3521
|
+
"data-scroll-behavior": r.behavior,
|
|
3522
|
+
"data-alignment": r.alignment ?? "start",
|
|
3523
|
+
"data-width": r.width ?? "auto",
|
|
3524
|
+
onInput: L[0] || (L[0] = async (C) => c(C)),
|
|
3525
|
+
onChange: L[1] || (L[1] = async (C) => c(C))
|
|
3525
3526
|
}, [
|
|
3526
3527
|
u.value ? (m(), J(Se, {
|
|
3527
3528
|
key: 0,
|
|
@@ -3538,11 +3539,11 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3538
3539
|
_: 1,
|
|
3539
3540
|
__: [2]
|
|
3540
3541
|
}, 8, ["onClick"])) : U("", !0),
|
|
3541
|
-
|
|
3542
|
+
r.tabs ? (m(), S(W, { key: 1 }, [
|
|
3542
3543
|
ee(zi, null, {
|
|
3543
3544
|
default: H(() => [
|
|
3544
3545
|
(m(!0), S(W, null, ye(s(), (C, b) => (m(), J(Fi, {
|
|
3545
|
-
key:
|
|
3546
|
+
key: r.name + "tab-item" + b,
|
|
3546
3547
|
active: C.active,
|
|
3547
3548
|
label: C.label,
|
|
3548
3549
|
iconTrailing: C.iconTrailing,
|
|
@@ -3553,7 +3554,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3553
3554
|
_: 1
|
|
3554
3555
|
}),
|
|
3555
3556
|
(m(!0), S(W, null, ye(s(), (C, b) => (m(), J(Pi, {
|
|
3556
|
-
key:
|
|
3557
|
+
key: r.name + "tab-panel" + b,
|
|
3557
3558
|
content: C.content
|
|
3558
3559
|
}, {
|
|
3559
3560
|
default: H(() => [
|
|
@@ -3577,7 +3578,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3577
3578
|
_: 1,
|
|
3578
3579
|
__: [3]
|
|
3579
3580
|
}, 8, ["onClick"])) : U("", !0),
|
|
3580
|
-
A(
|
|
3581
|
+
A(r.$slots, "default")
|
|
3581
3582
|
], 42, qi));
|
|
3582
3583
|
}
|
|
3583
3584
|
}), il = ["scrollbar", "arrows"], ol = ["auto", "manually"], ll = ["static", "removable"], Ui = ["data-variant", "data-hide-asterisk", "data-hide-label"], Gi = ["for"], Wi = ["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"], Oi = {
|
|
@@ -3652,7 +3653,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3652
3653
|
() => {
|
|
3653
3654
|
if (i.value) {
|
|
3654
3655
|
const k = i.value + fe;
|
|
3655
|
-
u.value = k, f.value = i.value + pe, p.value = i.value + he, x(e.message, e.showMessage) && (s.value = k),
|
|
3656
|
+
u.value = k, f.value = i.value + pe, p.value = i.value + he, x(e.message, e.showMessage) && (s.value = k), c();
|
|
3656
3657
|
}
|
|
3657
3658
|
},
|
|
3658
3659
|
{
|
|
@@ -3672,15 +3673,15 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3672
3673
|
function h() {
|
|
3673
3674
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3674
3675
|
}
|
|
3675
|
-
function
|
|
3676
|
+
function c() {
|
|
3676
3677
|
var k, F, y;
|
|
3677
3678
|
!((k = w.value) != null && k.validity.valid) || e.validation === "invalid" ? (s.value = p.value, v.value = e.invalidMessage || ((F = w.value) == null ? void 0 : F.validationMessage) || te, me() && (T.value = v.value, Z(() => T.value = "", 1e3))) : h() && ((y = w.value) != null && y.validity.valid) && (e.required || e.minLength || e.maxLength) ? (s.value = f.value, me() && (T.value = e.validMessage ?? ge, Z(() => T.value = "", 1e3))) : x(e.message, e.showMessage) ? s.value = u.value : s.value = void 0;
|
|
3678
3679
|
}
|
|
3679
|
-
function
|
|
3680
|
-
e.input && e.input(k), g.value = k.target.value, e.onInput && e.onInput(k), de(o, k),
|
|
3680
|
+
function r(k) {
|
|
3681
|
+
e.input && e.input(k), g.value = k.target.value, e.onInput && e.onInput(k), de(o, k), c();
|
|
3681
3682
|
}
|
|
3682
3683
|
function L(k) {
|
|
3683
|
-
e.onChange && e.onChange(k), de(o, k),
|
|
3684
|
+
e.onChange && e.onChange(k), de(o, k), c();
|
|
3684
3685
|
}
|
|
3685
3686
|
function C(k) {
|
|
3686
3687
|
e.onBlur && e.onBlur(k);
|
|
@@ -3714,7 +3715,7 @@ const Xt = ["id", "data-width", "data-on-forcing-mobile"], jt = { class: "db-hea
|
|
|
3714
3715
|
wrap: k.wrap,
|
|
3715
3716
|
spellcheck: k.spellCheck,
|
|
3716
3717
|
autocomplete: k.autocomplete,
|
|
3717
|
-
onInput: F[0] || (F[0] = async (y) =>
|
|
3718
|
+
onInput: F[0] || (F[0] = async (y) => r(y)),
|
|
3718
3719
|
onChange: F[1] || (F[1] = async (y) => L(y)),
|
|
3719
3720
|
onBlur: F[2] || (F[2] = async (y) => C(y)),
|
|
3720
3721
|
onFocus: F[3] || (F[3] = async (y) => b(y)),
|