@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/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", { key: 1 })])], 8, V)], 10, B));
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 n = t, i = f(!1), o = f(null);
253
+ let i = t, o = f(!1), s = f(null);
254
254
  return l(() => {
255
- i.value = !0;
256
- }), v(() => [o.value, i.value], () => {
257
- if (o.value && i.value && n.placement?.startsWith("corner")) {
258
- let e = o.value.parentElement;
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
- }), (i, s) => (d(), r("span", {
264
+ }), (o, l) => (d(), r("span", {
265
265
  ref_key: "_ref",
266
- ref: o,
266
+ ref: s,
267
267
  id: t.id ?? t.propOverrides?.id,
268
- class: c(g(S)("db-badge", n.class)),
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(i.$slots, "default", { key: 1 })], 10, Ae));
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 n = t, i = f(null);
312
- return (o, s) => (d(), r("div", {
311
+ let i = t, o = f(null);
312
+ return (s, l) => (d(), r("div", {
313
313
  ref_key: "_ref",
314
- ref: i,
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", n.class))
319
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(o.$slots, "default", { key: 1 })], 10, Ne));
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 n = t, i = f(null);
390
- function o() {
391
- return n.type ? n.type : n.onClick ? "button" : "submit";
389
+ let i = t, o = f(null);
390
+ function s() {
391
+ return i.type ? i.type : i.onClick ? "button" : "submit";
392
392
  }
393
- function s(e) {
394
- n.onClick && n.onClick(e);
393
+ function l(e) {
394
+ i.onClick && i.onClick(e);
395
395
  }
396
- return (l, u) => (d(), r("button", {
396
+ return (u, f) => (d(), r("button", {
397
397
  ref_key: "_ref",
398
- ref: i,
398
+ ref: o,
399
399
  id: t.id ?? t.propOverrides?.id,
400
- class: c(g(S)("db-button", n.class)),
401
- type: o(),
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: u[0] ||= async (e) => s(e)
416
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(l.$slots, "default", { key: 1 })], 10, Fe));
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 n = t, i = f(null);
535
- return (o, s) => (d(), r("span", {
534
+ let i = t, o = f(null);
535
+ return (s, l) => (d(), r("span", {
536
536
  ref_key: "_ref",
537
- ref: i,
537
+ ref: o,
538
538
  id: t.id ?? t.propOverrides?.id,
539
- class: c(g(S)("db-infotext", n.class)),
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(o.$slots, "default", { key: 1 })], 10, Ke));
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 }, [i("input", {
715
- type: "checkbox",
716
- "aria-invalid": s.validation === "invalid",
717
- "data-custom-validity": s.validation,
718
- ref_key: "_ref",
719
- ref: R,
720
- id: E.value,
721
- name: s.name,
722
- checked: g(k)(s.checked, "checked"),
723
- disabled: g(k)(s.disabled, "disabled"),
724
- value: s.value,
725
- required: g(k)(s.required, "required"),
726
- onChange: u[0] ||= async (e) => V(e),
727
- onBlur: u[1] ||= async (e) => H(e),
728
- onFocus: u[2] ||= async (e) => ee(e),
729
- "aria-describedby": s.ariaDescribedBy ?? N.value
730
- }, null, 40, Ye), s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : m(l.$slots, "default", { key: 1 })], 8, Je),
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: n }) {
1042
- let o = n, s = t, l = f(!1), u = f(null);
1043
- v(() => [s.isGroupTitle, s.showDivider], () => {
1044
- l.value = !!(s.isGroupTitle || s.showDivider);
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 p(e) {
1050
- e.stopPropagation(), s.onChange && s.onChange(e), Q(o, e, "checked");
1053
+ function _(e) {
1054
+ e.stopPropagation(), l.onChange && l.onChange(e), Q(s, e, "checked");
1051
1055
  }
1052
- function _() {
1053
- if (!(s.isGroupTitle || s.type === "checkbox")) return k(s.checked, "checked") ? "check" : "x_placeholder";
1056
+ function y() {
1057
+ if (!(l.isGroupTitle || l.type === "checkbox")) return k(l.checked, "checked") ? "check" : "x_placeholder";
1054
1058
  }
1055
- return (n, o) => (d(), r("li", {
1059
+ return (o, s) => (d(), r("li", {
1056
1060
  ref_key: "_ref",
1057
- ref: u,
1061
+ ref: p,
1058
1062
  id: t.id ?? t.propOverrides?.id,
1059
- class: c(g(S)("db-custom-select-list-item", s.class, {
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)(l.value)
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
- }, [i("input", {
1070
- class: "db-custom-select-list-item-checkbox",
1071
- "data-disable-focus": "true",
1072
- type: t.type,
1073
- name: t.name,
1074
- form: t.name,
1075
- checked: g(k)(t.checked, "checked"),
1076
- disabled: g(k)(t.disabled, "disabled"),
1077
- value: t.value,
1078
- onChange: o[0] ||= async (e) => p(e)
1079
- }, null, 40, mt), t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : m(n.$slots, "default", { key: 1 })], 8, pt))], 10, ft));
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(e) {
1445
- let t = _(), n = e, i = f(ne), a = f(!1), o = f(void 0), s = f(void 0), u = f(null);
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
- T(), a.value = !0;
1448
- }), v(() => [n.id, n.propOverrides?.id], () => {
1449
- (n.id ?? n.propOverrides?.id) && T();
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
- a.value,
1456
- i.value
1465
+ s.value
1457
1466
  ], () => {
1458
- if (u.value && a.value && i.value) {
1459
- let e = y();
1460
- e && (b(e), ["mouseenter", "focusin"].forEach((t) => {
1461
- e.addEventListener(t, () => w(e));
1462
- }), e.addEventListener("keydown", (e) => h(e)), ["mouseleave", "focusout"].forEach((t) => {
1463
- e.addEventListener(t, () => C());
1464
- }), e.dataset.hasTooltip = "true", n.variant === "label" ? e.setAttribute("aria-labelledby", i.value) : e.setAttribute("aria-describedby", i.value)), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((e) => {
1465
- let t = e.find(({ target: e }) => e === y());
1466
- t && !t.isIntersecting && h(!1);
1467
- })), a.value = !1;
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 p(e) {
1482
+ function x(e) {
1474
1483
  e.stopPropagation();
1475
1484
  }
1476
- function h(e) {
1477
- (!e || e.key === "Escape") && u.value && getComputedStyle(u.value).visibility === "visible" && y().blur();
1485
+ function C(e) {
1486
+ (!e || e.key === "Escape") && b.value && getComputedStyle(b.value).visibility === "visible" && w().blur();
1478
1487
  }
1479
- function y() {
1480
- let e = u.value.parentElement;
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 b(e) {
1484
- e && u.value && D(() => {
1485
- u.value && lt(u.value, e, n.placement ?? "bottom");
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 x(e, t) {
1489
- e?.target?.contains && e?.target?.contains(u.value) && b(t);
1497
+ function E(e, t) {
1498
+ e?.target?.contains && e?.target?.contains(b.value) && T(t);
1490
1499
  }
1491
- function C() {
1492
- o.value && new tt().removeCallback(o.value), s.value?.unobserve(y());
1500
+ function k() {
1501
+ p.value && new tt().removeCallback(p.value), y.value?.unobserve(w());
1493
1502
  }
1494
- function w(e) {
1495
- o.value = new tt().addCallback((t) => x(t, e)), b(e), s.value?.observe(y());
1503
+ function A(e) {
1504
+ p.value = new tt().addCallback((t) => E(t, e)), T(e), y.value?.observe(w());
1496
1505
  }
1497
- function T() {
1498
- i.value = n.id ?? n.propOverrides?.id ?? "tooltip-" + t;
1506
+ function j() {
1507
+ s.value = o.id ?? o.propOverrides?.id ?? "tooltip-" + i;
1499
1508
  }
1500
- return (t, a) => (d(), r("i", {
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: u,
1506
- class: c(g(S)("db-tooltip", n.class)),
1507
- id: i.value,
1508
- "data-emphasis": e.emphasis,
1509
- "data-wrap": g(O)(e.wrap),
1510
- "data-animation": g(O)(e.animation ?? !0),
1511
- "data-delay": e.delay,
1512
- "data-width": e.width,
1513
- "data-show-arrow": g(O)(e.showArrow ?? !0),
1514
- "data-placement": e.placement,
1515
- onClick: a[0] ||= async (e) => p(e)
1516
- }, [m(t.$slots, "default")], 10, Et));
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 n = t, i = f(null);
2676
- return (o, s) => (d(), r("span", {
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: i,
2688
+ ref: o,
2680
2689
  id: t.id ?? t.propOverrides?.id,
2681
- class: c(g(S)("db-icon", n.class)),
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(o.$slots, "default", { key: 1 })], 10, On));
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 n = t, i = f(null);
2767
- function o(e) {
2768
- n.onClick && n.onClick(e);
2775
+ let i = t, o = f(null);
2776
+ function s(e) {
2777
+ i.onClick && i.onClick(e);
2769
2778
  }
2770
- return (s, l) => (d(), r("a", {
2779
+ return (l, u) => (d(), r("a", {
2771
2780
  ref_key: "_ref",
2772
- ref: i,
2781
+ ref: o,
2773
2782
  id: t.id ?? t.propOverrides?.id,
2774
- class: c(g(S)("db-link", n.class)),
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: l[0] ||= async (e) => o(e)
2789
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(s.$slots, "default", { key: 1 })], 10, Mn));
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", { key: 1 })]),
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: n }) {
3299
- let o = _(), s = n, p = t, y = f(!1), b = f(void 0), x = f(void 0), C = f(null);
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
- y.value = !0, A();
3310
+ b.value = !0, j();
3302
3311
  }), u(() => {
3303
- x.value?.abort();
3304
- }), v(() => [p.id, p.propOverrides?.id], () => {
3305
- (p.id ?? p.propOverrides?.id) && A();
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
- y.value,
3311
- C.value,
3312
- p.checked
3319
+ b.value,
3320
+ w.value,
3321
+ y.checked
3313
3322
  ], () => {
3314
- p.checked && y.value && C.value && (C.value.checked = !0);
3323
+ y.checked && b.value && w.value && (w.value.checked = !0);
3315
3324
  }, {
3316
3325
  immediate: !0,
3317
3326
  flush: "post"
3318
- }), v(() => [C.value], () => {
3319
- if (C.value) {
3320
- let e = x.value;
3321
- e || (e = new AbortController(), x.value = e), Ue(C.value, (e) => {
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 = p.checked ? p.checked : C.value.checked, n = {
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
- T(n, !0), w(n, !0);
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
- p.onChange && p.onChange(e), Q(s, e);
3349
+ y.input && y.input(e), y.onInput && y.onInput(e), Q(p, e);
3344
3350
  }
3345
- function E(e) {
3346
- p.onBlur && p.onBlur(e);
3351
+ function E(e, t) {
3352
+ y.onChange && y.onChange(e), Q(p, e);
3347
3353
  }
3348
3354
  function O(e) {
3349
- p.onFocus && p.onFocus(e);
3355
+ y.onBlur && y.onBlur(e);
3356
+ }
3357
+ function A(e) {
3358
+ y.onFocus && y.onFocus(e);
3350
3359
  }
3351
- function A() {
3352
- b.value = p.id ?? p.propOverrides?.id ?? `radio-${o}`;
3360
+ function j() {
3361
+ x.value = y.id ?? y.propOverrides?.id ?? `radio-${s}`;
3353
3362
  }
3354
- return (n, o) => (d(), r("label", {
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", p.class)),
3359
- for: b.value
3360
- }, [i("input", {
3361
- type: "radio",
3362
- "aria-invalid": t.validation === "invalid",
3363
- "data-custom-validity": t.validation,
3364
- ref_key: "_ref",
3365
- ref: C,
3366
- id: b.value,
3367
- name: t.name,
3368
- checked: g(k)(t.checked, "checked"),
3369
- disabled: g(k)(t.disabled, "disabled"),
3370
- value: t.value,
3371
- required: g(k)(t.required, "required"),
3372
- onInput: o[0] ||= async (e) => w(e),
3373
- onChange: o[1] ||= async (e) => T(e),
3374
- onBlur: o[2] ||= async (e) => E(e),
3375
- onFocus: o[3] ||= async (e) => O(e)
3376
- }, null, 40, or), t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : m(n.$slots, "default", { key: 1 })], 10, ar));
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 }, [i("input", {
3915
- type: "checkbox",
3916
- role: "switch",
3917
- id: w.value,
3918
- ref_key: "_ref",
3919
- ref: R,
3920
- checked: g(k)(s.checked, "checked"),
3921
- value: s.value,
3922
- disabled: g(k)(s.disabled, "disabled"),
3923
- "aria-invalid": s.validation === "invalid" ? "true" : void 0,
3924
- "aria-describedby": N.value,
3925
- name: s.name,
3926
- required: g(k)(s.required, "required"),
3927
- "data-aid-icon": s.iconLeading ?? s.icon,
3928
- "data-aid-icon-trailing": s.iconTrailing,
3929
- onChange: u[0] ||= async (e) => V(e),
3930
- onBlur: u[1] ||= async (e) => H(e),
3931
- onFocus: u[2] ||= async (e) => ee(e),
3932
- onKeydown: u[3] ||= async (e) => U(e)
3933
- }, null, 40, Or), s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : m(l.$slots, "default", { key: 1 })], 8, Dr),
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",