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