@db-ux/v-core-components 4.8.0 → 4.8.1-fix-publish2-4d5a12d
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 +17 -13
- package/README.md +15 -11
- package/dist/components/tooltip/model.d.ts +2 -2
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -0
- package/dist/db-ux.es.js +216 -199
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/figma.d.ts +111 -0
- package/dist/shared/model.d.ts +1 -1
- package/package.json +9 -9
package/dist/db-ux.es.js
CHANGED
|
@@ -106,7 +106,7 @@ var b = () => {
|
|
|
106
106
|
ref: _,
|
|
107
107
|
name: u.value,
|
|
108
108
|
open: s.value
|
|
109
|
-
}, [i("summary", { onClick: f[0] ||= async (e) => y(e) }, [t.headlinePlain ? (d(), r(e, { key: 0 }, [a(h(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : m(l.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(l.$slots, "default"
|
|
109
|
+
}, [i("summary", { onClick: f[0] ||= async (e) => y(e) }, [t.headlinePlain ? (d(), r(e, { key: 0 }, [a(h(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : m(l.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(l.$slots, "default")])], 8, V)], 10, B));
|
|
110
110
|
}
|
|
111
111
|
}), ee = ["id", "data-variant"], U = /* @__PURE__ */ s({
|
|
112
112
|
name: "DBAccordion",
|
|
@@ -250,29 +250,29 @@ var b = () => {
|
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
setup(t) {
|
|
253
|
-
let
|
|
253
|
+
let i = t, o = f(!1), s = f(null);
|
|
254
254
|
return l(() => {
|
|
255
|
-
|
|
256
|
-
}), v(() => [
|
|
257
|
-
if (
|
|
258
|
-
let e =
|
|
255
|
+
o.value = !0;
|
|
256
|
+
}), v(() => [s.value, o.value], () => {
|
|
257
|
+
if (s.value && o.value && i.placement?.startsWith("corner")) {
|
|
258
|
+
let e = s.value.parentElement;
|
|
259
259
|
e && e.localName.includes("badge") && (e = e.parentElement), e && (e.dataset.hasBadge = "true");
|
|
260
260
|
}
|
|
261
261
|
}, {
|
|
262
262
|
immediate: !0,
|
|
263
263
|
flush: "post"
|
|
264
|
-
}), (
|
|
264
|
+
}), (o, l) => (d(), r("span", {
|
|
265
265
|
ref_key: "_ref",
|
|
266
|
-
ref:
|
|
266
|
+
ref: s,
|
|
267
267
|
id: t.id ?? t.propOverrides?.id,
|
|
268
|
-
class: c(g(S)("db-badge",
|
|
268
|
+
class: c(g(S)("db-badge", i.class)),
|
|
269
269
|
"data-semantic": t.semantic,
|
|
270
270
|
"data-size": t.size,
|
|
271
271
|
"data-emphasis": t.emphasis,
|
|
272
272
|
"data-placement": t.placement,
|
|
273
273
|
"data-wrap": g(O)(t.wrap),
|
|
274
274
|
"data-label": t.placement?.startsWith("corner") && (t.label ?? g("LABEL SHOULD BE SET"))
|
|
275
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(
|
|
275
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(o.$slots, "default")], 10, Ae));
|
|
276
276
|
}
|
|
277
277
|
}), Me = [
|
|
278
278
|
"inline",
|
|
@@ -308,15 +308,15 @@ var b = () => {
|
|
|
308
308
|
text: { default: void 0 }
|
|
309
309
|
},
|
|
310
310
|
setup(t) {
|
|
311
|
-
let
|
|
312
|
-
return (
|
|
311
|
+
let i = t, o = f(null);
|
|
312
|
+
return (s, l) => (d(), r("div", {
|
|
313
313
|
ref_key: "_ref",
|
|
314
|
-
ref:
|
|
314
|
+
ref: o,
|
|
315
315
|
"data-icon": t.hideLogo ? "none" : t.icon ?? g("brand"),
|
|
316
316
|
"data-show-icon": g(O)(t.showIcon),
|
|
317
317
|
id: t.id ?? t.propOverrides?.id,
|
|
318
|
-
class: c(g(S)("db-brand",
|
|
319
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) :
|
|
318
|
+
class: c(g(S)("db-brand", i.class))
|
|
319
|
+
}, [m(s.$slots, "default"), t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0)], 10, Ne));
|
|
320
320
|
}
|
|
321
321
|
}), Fe = [
|
|
322
322
|
"id",
|
|
@@ -386,19 +386,19 @@ var b = () => {
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
setup(t) {
|
|
389
|
-
let
|
|
390
|
-
function
|
|
391
|
-
return
|
|
389
|
+
let i = t, o = f(null);
|
|
390
|
+
function s() {
|
|
391
|
+
return i.type ? i.type : i.onClick ? "button" : "submit";
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
393
|
+
function l(e) {
|
|
394
|
+
i.onClick && i.onClick(e);
|
|
395
395
|
}
|
|
396
|
-
return (
|
|
396
|
+
return (u, f) => (d(), r("button", {
|
|
397
397
|
ref_key: "_ref",
|
|
398
|
-
ref:
|
|
398
|
+
ref: o,
|
|
399
399
|
id: t.id ?? t.propOverrides?.id,
|
|
400
|
-
class: c(g(S)("db-button",
|
|
401
|
-
type:
|
|
400
|
+
class: c(g(S)("db-button", i.class)),
|
|
401
|
+
type: s(),
|
|
402
402
|
disabled: g(k)(t.disabled, "disabled"),
|
|
403
403
|
"data-icon": t.iconLeading ?? t.icon,
|
|
404
404
|
"data-show-icon": g(O)(t.showIconLeading ?? t.showIcon),
|
|
@@ -412,8 +412,8 @@ var b = () => {
|
|
|
412
412
|
name: t.name,
|
|
413
413
|
form: t.form,
|
|
414
414
|
value: t.value,
|
|
415
|
-
onClick:
|
|
416
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(
|
|
415
|
+
onClick: f[0] ||= async (e) => l(e)
|
|
416
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(u.$slots, "default")], 10, Fe));
|
|
417
417
|
}
|
|
418
418
|
}), Le = [
|
|
419
419
|
"outlined",
|
|
@@ -531,18 +531,18 @@ var b = () => {
|
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
setup(t) {
|
|
534
|
-
let
|
|
535
|
-
return (
|
|
534
|
+
let i = t, o = f(null);
|
|
535
|
+
return (s, l) => (d(), r("span", {
|
|
536
536
|
ref_key: "_ref",
|
|
537
|
-
ref:
|
|
537
|
+
ref: o,
|
|
538
538
|
id: t.id ?? t.propOverrides?.id,
|
|
539
|
-
class: c(g(S)("db-infotext",
|
|
539
|
+
class: c(g(S)("db-infotext", i.class)),
|
|
540
540
|
"data-icon": t.icon,
|
|
541
541
|
"data-semantic": t.semantic,
|
|
542
542
|
"data-size": t.size,
|
|
543
543
|
"data-wrap": g(O)(t.wrap),
|
|
544
544
|
"data-show-icon-leading": g(O)(t.showIcon ?? !0)
|
|
545
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(
|
|
545
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, Ke));
|
|
546
546
|
}
|
|
547
547
|
}), qe = [
|
|
548
548
|
"data-size",
|
|
@@ -711,23 +711,27 @@ var b = () => {
|
|
|
711
711
|
"data-hide-asterisk": g(P)(s.showRequiredAsterisk),
|
|
712
712
|
"data-hide-label": g(P)(s.showLabel)
|
|
713
713
|
}, [
|
|
714
|
-
i("label", { for: E.value }, [
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
714
|
+
i("label", { for: E.value }, [
|
|
715
|
+
i("input", {
|
|
716
|
+
type: "checkbox",
|
|
717
|
+
"aria-invalid": s.validation === "invalid",
|
|
718
|
+
"data-custom-validity": s.validation,
|
|
719
|
+
ref_key: "_ref",
|
|
720
|
+
ref: R,
|
|
721
|
+
id: E.value,
|
|
722
|
+
name: s.name,
|
|
723
|
+
checked: g(k)(s.checked, "checked"),
|
|
724
|
+
disabled: g(k)(s.disabled, "disabled"),
|
|
725
|
+
value: s.value,
|
|
726
|
+
required: g(k)(s.required, "required"),
|
|
727
|
+
onChange: u[0] ||= async (e) => V(e),
|
|
728
|
+
onBlur: u[1] ||= async (e) => H(e),
|
|
729
|
+
onFocus: u[2] ||= async (e) => ee(e),
|
|
730
|
+
"aria-describedby": s.ariaDescribedBy ?? N.value
|
|
731
|
+
}, null, 40, Ye),
|
|
732
|
+
s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : n("", !0),
|
|
733
|
+
m(l.$slots, "default")
|
|
734
|
+
], 8, Je),
|
|
731
735
|
g(F)(s.message, s.showMessage) ? (d(), t($, {
|
|
732
736
|
key: 0,
|
|
733
737
|
size: "small",
|
|
@@ -1038,45 +1042,49 @@ var b = () => {
|
|
|
1038
1042
|
}
|
|
1039
1043
|
},
|
|
1040
1044
|
emits: ["update:checked"],
|
|
1041
|
-
setup(t, { emit:
|
|
1042
|
-
let
|
|
1043
|
-
v(() => [
|
|
1044
|
-
|
|
1045
|
+
setup(t, { emit: o }) {
|
|
1046
|
+
let s = o, l = t, u = f(!1), p = f(null);
|
|
1047
|
+
v(() => [l.isGroupTitle, l.showDivider], () => {
|
|
1048
|
+
u.value = !!(l.isGroupTitle || l.showDivider);
|
|
1045
1049
|
}, {
|
|
1046
1050
|
immediate: !0,
|
|
1047
1051
|
flush: "post"
|
|
1048
1052
|
});
|
|
1049
|
-
function
|
|
1050
|
-
e.stopPropagation(),
|
|
1053
|
+
function _(e) {
|
|
1054
|
+
e.stopPropagation(), l.onChange && l.onChange(e), Q(s, e, "checked");
|
|
1051
1055
|
}
|
|
1052
|
-
function
|
|
1053
|
-
if (!(
|
|
1056
|
+
function y() {
|
|
1057
|
+
if (!(l.isGroupTitle || l.type === "checkbox")) return k(l.checked, "checked") ? "check" : "x_placeholder";
|
|
1054
1058
|
}
|
|
1055
|
-
return (
|
|
1059
|
+
return (o, s) => (d(), r("li", {
|
|
1056
1060
|
ref_key: "_ref",
|
|
1057
|
-
ref:
|
|
1061
|
+
ref: p,
|
|
1058
1062
|
id: t.id ?? t.propOverrides?.id,
|
|
1059
|
-
class: c(g(S)("db-custom-select-list-item",
|
|
1063
|
+
class: c(g(S)("db-custom-select-list-item", l.class, {
|
|
1060
1064
|
"db-checkbox": t.type === "checkbox" && !t.isGroupTitle,
|
|
1061
1065
|
"db-radio": t.type !== "checkbox" && !t.isGroupTitle
|
|
1062
1066
|
})),
|
|
1063
|
-
"data-divider": g(O)(
|
|
1067
|
+
"data-divider": g(O)(u.value)
|
|
1064
1068
|
}, [t.isGroupTitle ? (d(), r("span", ht, h(t.groupTitle), 1)) : (d(), r("label", {
|
|
1065
1069
|
key: 0,
|
|
1066
1070
|
"data-icon": t.type !== "checkbox" && t.icon ? t.icon : void 0,
|
|
1067
1071
|
"data-show-icon": g(O)(t.showIcon),
|
|
1068
|
-
"data-icon-trailing":
|
|
1069
|
-
}, [
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1072
|
+
"data-icon-trailing": y()
|
|
1073
|
+
}, [
|
|
1074
|
+
i("input", {
|
|
1075
|
+
class: "db-custom-select-list-item-checkbox",
|
|
1076
|
+
"data-disable-focus": "true",
|
|
1077
|
+
type: t.type,
|
|
1078
|
+
name: t.name,
|
|
1079
|
+
form: t.name,
|
|
1080
|
+
checked: g(k)(t.checked, "checked"),
|
|
1081
|
+
disabled: g(k)(t.disabled, "disabled"),
|
|
1082
|
+
value: t.value,
|
|
1083
|
+
onChange: s[0] ||= async (e) => _(e)
|
|
1084
|
+
}, null, 40, mt),
|
|
1085
|
+
t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
|
|
1086
|
+
m(o.$slots, "default")
|
|
1087
|
+
], 8, pt))], 10, ft));
|
|
1080
1088
|
}
|
|
1081
1089
|
}), _t = [
|
|
1082
1090
|
"role",
|
|
@@ -1439,81 +1447,82 @@ var b = () => {
|
|
|
1439
1447
|
wrap: {
|
|
1440
1448
|
type: [Boolean, String],
|
|
1441
1449
|
default: void 0
|
|
1442
|
-
}
|
|
1450
|
+
},
|
|
1451
|
+
text: { default: void 0 }
|
|
1443
1452
|
},
|
|
1444
|
-
setup(
|
|
1445
|
-
let
|
|
1453
|
+
setup(t) {
|
|
1454
|
+
let i = _(), o = t, s = f(ne), u = f(!1), p = f(void 0), y = f(void 0), b = f(null);
|
|
1446
1455
|
l(() => {
|
|
1447
|
-
|
|
1448
|
-
}), v(() => [
|
|
1449
|
-
(
|
|
1456
|
+
j(), u.value = !0;
|
|
1457
|
+
}), v(() => [o.id, o.propOverrides?.id], () => {
|
|
1458
|
+
(o.id ?? o.propOverrides?.id) && j();
|
|
1450
1459
|
}, {
|
|
1451
1460
|
immediate: !0,
|
|
1452
1461
|
flush: "post"
|
|
1453
1462
|
}), v(() => [
|
|
1463
|
+
b.value,
|
|
1454
1464
|
u.value,
|
|
1455
|
-
|
|
1456
|
-
i.value
|
|
1465
|
+
s.value
|
|
1457
1466
|
], () => {
|
|
1458
|
-
if (
|
|
1459
|
-
let e =
|
|
1460
|
-
e && (
|
|
1461
|
-
e.addEventListener(t, () =>
|
|
1462
|
-
}), e.addEventListener("keydown", (e) =>
|
|
1463
|
-
e.addEventListener(t, () =>
|
|
1464
|
-
}), e.dataset.hasTooltip = "true",
|
|
1465
|
-
let t = e.find(({ target: e }) => e ===
|
|
1466
|
-
t && !t.isIntersecting &&
|
|
1467
|
-
})),
|
|
1467
|
+
if (b.value && u.value && s.value) {
|
|
1468
|
+
let e = w();
|
|
1469
|
+
e && (T(e), ["mouseenter", "focusin"].forEach((t) => {
|
|
1470
|
+
e.addEventListener(t, () => A(e));
|
|
1471
|
+
}), e.addEventListener("keydown", (e) => C(e)), ["mouseleave", "focusout"].forEach((t) => {
|
|
1472
|
+
e.addEventListener(t, () => k());
|
|
1473
|
+
}), e.dataset.hasTooltip = "true", o.variant === "label" ? e.setAttribute("aria-labelledby", s.value) : e.setAttribute("aria-describedby", s.value)), typeof window < "u" && "IntersectionObserver" in window && (y.value = new IntersectionObserver((e) => {
|
|
1474
|
+
let t = e.find(({ target: e }) => e === w());
|
|
1475
|
+
t && !t.isIntersecting && C(!1);
|
|
1476
|
+
})), u.value = !1;
|
|
1468
1477
|
}
|
|
1469
1478
|
}, {
|
|
1470
1479
|
immediate: !0,
|
|
1471
1480
|
flush: "post"
|
|
1472
1481
|
});
|
|
1473
|
-
function
|
|
1482
|
+
function x(e) {
|
|
1474
1483
|
e.stopPropagation();
|
|
1475
1484
|
}
|
|
1476
|
-
function
|
|
1477
|
-
(!e || e.key === "Escape") &&
|
|
1485
|
+
function C(e) {
|
|
1486
|
+
(!e || e.key === "Escape") && b.value && getComputedStyle(b.value).visibility === "visible" && w().blur();
|
|
1478
1487
|
}
|
|
1479
|
-
function
|
|
1480
|
-
let e =
|
|
1488
|
+
function w() {
|
|
1489
|
+
let e = b.value.parentElement;
|
|
1481
1490
|
return e && e.localName.includes("tooltip") && (e = e.parentElement), e;
|
|
1482
1491
|
}
|
|
1483
|
-
function
|
|
1484
|
-
e &&
|
|
1485
|
-
|
|
1492
|
+
function T(e) {
|
|
1493
|
+
e && b.value && D(() => {
|
|
1494
|
+
b.value && lt(b.value, e, o.placement ?? "bottom");
|
|
1486
1495
|
}, 1);
|
|
1487
1496
|
}
|
|
1488
|
-
function
|
|
1489
|
-
e?.target?.contains && e?.target?.contains(
|
|
1497
|
+
function E(e, t) {
|
|
1498
|
+
e?.target?.contains && e?.target?.contains(b.value) && T(t);
|
|
1490
1499
|
}
|
|
1491
|
-
function
|
|
1492
|
-
|
|
1500
|
+
function k() {
|
|
1501
|
+
p.value && new tt().removeCallback(p.value), y.value?.unobserve(w());
|
|
1493
1502
|
}
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1503
|
+
function A(e) {
|
|
1504
|
+
p.value = new tt().addCallback((t) => E(t, e)), T(e), y.value?.observe(w());
|
|
1496
1505
|
}
|
|
1497
|
-
function
|
|
1498
|
-
|
|
1506
|
+
function j() {
|
|
1507
|
+
s.value = o.id ?? o.propOverrides?.id ?? "tooltip-" + i;
|
|
1499
1508
|
}
|
|
1500
|
-
return (
|
|
1509
|
+
return (i, l) => (d(), r("i", {
|
|
1501
1510
|
role: "tooltip",
|
|
1502
1511
|
"aria-hidden": "true",
|
|
1503
1512
|
"data-gap": "true",
|
|
1504
1513
|
ref_key: "_ref",
|
|
1505
|
-
ref:
|
|
1506
|
-
class: c(g(S)("db-tooltip",
|
|
1507
|
-
id:
|
|
1508
|
-
"data-emphasis":
|
|
1509
|
-
"data-wrap": g(O)(
|
|
1510
|
-
"data-animation": g(O)(
|
|
1511
|
-
"data-delay":
|
|
1512
|
-
"data-width":
|
|
1513
|
-
"data-show-arrow": g(O)(
|
|
1514
|
-
"data-placement":
|
|
1515
|
-
onClick:
|
|
1516
|
-
}, [m(
|
|
1514
|
+
ref: b,
|
|
1515
|
+
class: c(g(S)("db-tooltip", o.class)),
|
|
1516
|
+
id: s.value,
|
|
1517
|
+
"data-emphasis": t.emphasis,
|
|
1518
|
+
"data-wrap": g(O)(t.wrap),
|
|
1519
|
+
"data-animation": g(O)(t.animation ?? !0),
|
|
1520
|
+
"data-delay": t.delay,
|
|
1521
|
+
"data-width": t.width,
|
|
1522
|
+
"data-show-arrow": g(O)(t.showArrow ?? !0),
|
|
1523
|
+
"data-placement": t.placement,
|
|
1524
|
+
onClick: l[0] ||= async (e) => x(e)
|
|
1525
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(i.$slots, "default")], 10, Et));
|
|
1517
1526
|
}
|
|
1518
1527
|
}), Ot = [
|
|
1519
1528
|
"id",
|
|
@@ -1586,8 +1595,8 @@ var b = () => {
|
|
|
1586
1595
|
"data-overflow": g(O)(t.overflow)
|
|
1587
1596
|
}, [
|
|
1588
1597
|
m(f.$slots, "content"),
|
|
1589
|
-
m(f.$slots, "default"),
|
|
1590
1598
|
t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0),
|
|
1599
|
+
m(f.$slots, "default"),
|
|
1591
1600
|
t.behavior === "removable" ? (d(), r("button", {
|
|
1592
1601
|
key: 1,
|
|
1593
1602
|
class: "db-button db-tab-remove-button",
|
|
@@ -2672,17 +2681,17 @@ var b = () => {
|
|
|
2672
2681
|
text: { default: void 0 }
|
|
2673
2682
|
},
|
|
2674
2683
|
setup(t) {
|
|
2675
|
-
let
|
|
2676
|
-
return (
|
|
2684
|
+
let i = t, o = f(null);
|
|
2685
|
+
return (s, l) => (d(), r("span", {
|
|
2677
2686
|
"aria-hidden": "true",
|
|
2678
2687
|
ref_key: "_ref",
|
|
2679
|
-
ref:
|
|
2688
|
+
ref: o,
|
|
2680
2689
|
id: t.id ?? t.propOverrides?.id,
|
|
2681
|
-
class: c(g(S)("db-icon",
|
|
2690
|
+
class: c(g(S)("db-icon", i.class)),
|
|
2682
2691
|
"data-icon": t.icon,
|
|
2683
2692
|
"data-icon-weight": t.weight,
|
|
2684
2693
|
"data-icon-variant": t.variant
|
|
2685
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(
|
|
2694
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, On));
|
|
2686
2695
|
}
|
|
2687
2696
|
}), An = [
|
|
2688
2697
|
"16",
|
|
@@ -2763,15 +2772,15 @@ var b = () => {
|
|
|
2763
2772
|
}
|
|
2764
2773
|
},
|
|
2765
2774
|
setup(t) {
|
|
2766
|
-
let
|
|
2767
|
-
function
|
|
2768
|
-
|
|
2775
|
+
let i = t, o = f(null);
|
|
2776
|
+
function s(e) {
|
|
2777
|
+
i.onClick && i.onClick(e);
|
|
2769
2778
|
}
|
|
2770
|
-
return (
|
|
2779
|
+
return (l, u) => (d(), r("a", {
|
|
2771
2780
|
ref_key: "_ref",
|
|
2772
|
-
ref:
|
|
2781
|
+
ref: o,
|
|
2773
2782
|
id: t.id ?? t.propOverrides?.id,
|
|
2774
|
-
class: c(g(S)("db-link",
|
|
2783
|
+
class: c(g(S)("db-link", i.class)),
|
|
2775
2784
|
href: t.href,
|
|
2776
2785
|
target: t.target,
|
|
2777
2786
|
rel: t.rel,
|
|
@@ -2785,8 +2794,8 @@ var b = () => {
|
|
|
2785
2794
|
"data-variant": t.variant,
|
|
2786
2795
|
"data-content": t.content || "internal",
|
|
2787
2796
|
"data-wrap": g(O)(t.wrap),
|
|
2788
|
-
onClick:
|
|
2789
|
-
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(
|
|
2797
|
+
onClick: u[0] ||= async (e) => s(e)
|
|
2798
|
+
}, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(l.$slots, "default")], 10, Mn));
|
|
2790
2799
|
}
|
|
2791
2800
|
}), Pn = [
|
|
2792
2801
|
"adaptive",
|
|
@@ -3026,7 +3035,7 @@ var b = () => {
|
|
|
3026
3035
|
}, [
|
|
3027
3036
|
m(f.$slots, "image"),
|
|
3028
3037
|
g(F)(o.headline, o.showHeadline) ? (d(), r("header", Gn, h(o.headline), 1)) : n("", !0),
|
|
3029
|
-
i("div", Kn, [o.text ? (d(), r(e, { key: 0 }, [a(h(o.text), 1)], 64)) : m(f.$slots, "default"
|
|
3038
|
+
i("div", Kn, [o.text ? (d(), r(e, { key: 0 }, [a(h(o.text), 1)], 64)) : n("", !0), m(f.$slots, "default")]),
|
|
3030
3039
|
g(F)(o.timestamp, o.showTimestamp) ? (d(), r("time", {
|
|
3031
3040
|
key: 1,
|
|
3032
3041
|
"data-area": "timestamp",
|
|
@@ -3295,32 +3304,32 @@ var b = () => {
|
|
|
3295
3304
|
size: { default: void 0 }
|
|
3296
3305
|
},
|
|
3297
3306
|
emits: ["update:value"],
|
|
3298
|
-
setup(t, { emit:
|
|
3299
|
-
let
|
|
3307
|
+
setup(t, { emit: o }) {
|
|
3308
|
+
let s = _(), p = o, y = t, b = f(!1), x = f(void 0), C = f(void 0), w = f(null);
|
|
3300
3309
|
l(() => {
|
|
3301
|
-
|
|
3310
|
+
b.value = !0, j();
|
|
3302
3311
|
}), u(() => {
|
|
3303
|
-
|
|
3304
|
-
}), v(() => [
|
|
3305
|
-
(
|
|
3312
|
+
C.value?.abort();
|
|
3313
|
+
}), v(() => [y.id, y.propOverrides?.id], () => {
|
|
3314
|
+
(y.id ?? y.propOverrides?.id) && j();
|
|
3306
3315
|
}, {
|
|
3307
3316
|
immediate: !0,
|
|
3308
3317
|
flush: "post"
|
|
3309
3318
|
}), v(() => [
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3319
|
+
b.value,
|
|
3320
|
+
w.value,
|
|
3321
|
+
y.checked
|
|
3313
3322
|
], () => {
|
|
3314
|
-
|
|
3323
|
+
y.checked && b.value && w.value && (w.value.checked = !0);
|
|
3315
3324
|
}, {
|
|
3316
3325
|
immediate: !0,
|
|
3317
3326
|
flush: "post"
|
|
3318
|
-
}), v(() => [
|
|
3319
|
-
if (
|
|
3320
|
-
let e =
|
|
3321
|
-
e || (e = new AbortController(),
|
|
3327
|
+
}), v(() => [w.value], () => {
|
|
3328
|
+
if (w.value) {
|
|
3329
|
+
let e = C.value;
|
|
3330
|
+
e || (e = new AbortController(), C.value = e), Ue(w.value, (e) => {
|
|
3322
3331
|
D(() => {
|
|
3323
|
-
let t =
|
|
3332
|
+
let t = y.checked ? y.checked : w.value.checked, n = {
|
|
3324
3333
|
...e,
|
|
3325
3334
|
target: {
|
|
3326
3335
|
...e.target,
|
|
@@ -3328,7 +3337,7 @@ var b = () => {
|
|
|
3328
3337
|
checked: t
|
|
3329
3338
|
}
|
|
3330
3339
|
};
|
|
3331
|
-
|
|
3340
|
+
E(n, !0), T(n, !0);
|
|
3332
3341
|
}, 1);
|
|
3333
3342
|
}, e.signal);
|
|
3334
3343
|
}
|
|
@@ -3336,44 +3345,48 @@ var b = () => {
|
|
|
3336
3345
|
immediate: !0,
|
|
3337
3346
|
flush: "post"
|
|
3338
3347
|
});
|
|
3339
|
-
function w(e, t) {
|
|
3340
|
-
p.input && p.input(e), p.onInput && p.onInput(e), Q(s, e);
|
|
3341
|
-
}
|
|
3342
3348
|
function T(e, t) {
|
|
3343
|
-
|
|
3349
|
+
y.input && y.input(e), y.onInput && y.onInput(e), Q(p, e);
|
|
3344
3350
|
}
|
|
3345
|
-
function E(e) {
|
|
3346
|
-
|
|
3351
|
+
function E(e, t) {
|
|
3352
|
+
y.onChange && y.onChange(e), Q(p, e);
|
|
3347
3353
|
}
|
|
3348
3354
|
function O(e) {
|
|
3349
|
-
|
|
3355
|
+
y.onBlur && y.onBlur(e);
|
|
3356
|
+
}
|
|
3357
|
+
function A(e) {
|
|
3358
|
+
y.onFocus && y.onFocus(e);
|
|
3350
3359
|
}
|
|
3351
|
-
function
|
|
3352
|
-
|
|
3360
|
+
function j() {
|
|
3361
|
+
x.value = y.id ?? y.propOverrides?.id ?? `radio-${s}`;
|
|
3353
3362
|
}
|
|
3354
|
-
return (
|
|
3363
|
+
return (o, s) => (d(), r("label", {
|
|
3355
3364
|
"data-size": t.size,
|
|
3356
3365
|
"data-hide-label": g(P)(t.showLabel),
|
|
3357
3366
|
"data-hide-asterisk": g(P)(t.showRequiredAsterisk),
|
|
3358
|
-
class: c(g(S)("db-radio",
|
|
3359
|
-
for:
|
|
3360
|
-
}, [
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3367
|
+
class: c(g(S)("db-radio", y.class)),
|
|
3368
|
+
for: x.value
|
|
3369
|
+
}, [
|
|
3370
|
+
i("input", {
|
|
3371
|
+
type: "radio",
|
|
3372
|
+
"aria-invalid": t.validation === "invalid",
|
|
3373
|
+
"data-custom-validity": t.validation,
|
|
3374
|
+
ref_key: "_ref",
|
|
3375
|
+
ref: w,
|
|
3376
|
+
id: x.value,
|
|
3377
|
+
name: t.name,
|
|
3378
|
+
checked: g(k)(t.checked, "checked"),
|
|
3379
|
+
disabled: g(k)(t.disabled, "disabled"),
|
|
3380
|
+
value: t.value,
|
|
3381
|
+
required: g(k)(t.required, "required"),
|
|
3382
|
+
onInput: s[0] ||= async (e) => T(e),
|
|
3383
|
+
onChange: s[1] ||= async (e) => E(e),
|
|
3384
|
+
onBlur: s[2] ||= async (e) => O(e),
|
|
3385
|
+
onFocus: s[3] ||= async (e) => A(e)
|
|
3386
|
+
}, null, 40, or),
|
|
3387
|
+
t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
|
|
3388
|
+
m(o.$slots, "default")
|
|
3389
|
+
], 10, ar));
|
|
3377
3390
|
}
|
|
3378
3391
|
}), cr = [
|
|
3379
3392
|
"id",
|
|
@@ -3911,26 +3924,30 @@ var b = () => {
|
|
|
3911
3924
|
"data-custom-validity": s.validation,
|
|
3912
3925
|
class: c(g(S)("db-switch", C.class))
|
|
3913
3926
|
}, [
|
|
3914
|
-
i("label", { for: w.value }, [
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3927
|
+
i("label", { for: w.value }, [
|
|
3928
|
+
i("input", {
|
|
3929
|
+
type: "checkbox",
|
|
3930
|
+
role: "switch",
|
|
3931
|
+
id: w.value,
|
|
3932
|
+
ref_key: "_ref",
|
|
3933
|
+
ref: R,
|
|
3934
|
+
checked: g(k)(s.checked, "checked"),
|
|
3935
|
+
value: s.value,
|
|
3936
|
+
disabled: g(k)(s.disabled, "disabled"),
|
|
3937
|
+
"aria-invalid": s.validation === "invalid" ? "true" : void 0,
|
|
3938
|
+
"aria-describedby": N.value,
|
|
3939
|
+
name: s.name,
|
|
3940
|
+
required: g(k)(s.required, "required"),
|
|
3941
|
+
"data-aid-icon": s.iconLeading ?? s.icon,
|
|
3942
|
+
"data-aid-icon-trailing": s.iconTrailing,
|
|
3943
|
+
onChange: u[0] ||= async (e) => V(e),
|
|
3944
|
+
onBlur: u[1] ||= async (e) => H(e),
|
|
3945
|
+
onFocus: u[2] ||= async (e) => ee(e),
|
|
3946
|
+
onKeydown: u[3] ||= async (e) => U(e)
|
|
3947
|
+
}, null, 40, Or),
|
|
3948
|
+
s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : n("", !0),
|
|
3949
|
+
m(l.$slots, "default")
|
|
3950
|
+
], 8, Dr),
|
|
3934
3951
|
g(F)(s.message, s.showMessage) ? (d(), t($, {
|
|
3935
3952
|
key: 0,
|
|
3936
3953
|
size: "small",
|