@db-ux/v-core-components 1.0.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +6 -1
  2. package/dist/components/accordion/accordion.vue.d.ts +1 -5
  3. package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -5
  4. package/dist/components/badge/badge.vue.d.ts +1 -5
  5. package/dist/components/brand/brand.vue.d.ts +1 -5
  6. package/dist/components/button/button.vue.d.ts +1 -5
  7. package/dist/components/card/card.vue.d.ts +1 -5
  8. package/dist/components/checkbox/checkbox.vue.d.ts +1 -5
  9. package/dist/components/divider/divider.vue.d.ts +1 -5
  10. package/dist/components/drawer/drawer.vue.d.ts +1 -6
  11. package/dist/components/header/header.vue.d.ts +1 -5
  12. package/dist/components/icon/icon.vue.d.ts +1 -5
  13. package/dist/components/infotext/infotext.vue.d.ts +1 -5
  14. package/dist/components/input/input.vue.d.ts +2 -5
  15. package/dist/components/input/model.d.ts +2 -2
  16. package/dist/components/link/link.vue.d.ts +4 -8
  17. package/dist/components/navigation/navigation.vue.d.ts +1 -5
  18. package/dist/components/navigation-item/model.d.ts +3 -2
  19. package/dist/components/navigation-item/navigation-item.vue.d.ts +1 -5
  20. package/dist/components/notification/notification.vue.d.ts +1 -5
  21. package/dist/components/page/page.vue.d.ts +1 -5
  22. package/dist/components/popover/popover.vue.d.ts +1 -5
  23. package/dist/components/radio/radio.vue.d.ts +3 -7
  24. package/dist/components/section/section.vue.d.ts +1 -5
  25. package/dist/components/select/model.d.ts +2 -2
  26. package/dist/components/select/select.vue.d.ts +2 -5
  27. package/dist/components/stack/stack.vue.d.ts +1 -5
  28. package/dist/components/switch/model.d.ts +2 -2
  29. package/dist/components/switch/switch.vue.d.ts +2 -5
  30. package/dist/components/tab-item/tab-item.vue.d.ts +1 -5
  31. package/dist/components/tab-list/tab-list.vue.d.ts +1 -5
  32. package/dist/components/tab-panel/tab-panel.vue.d.ts +2 -6
  33. package/dist/components/tabs/model.d.ts +9 -0
  34. package/dist/components/tabs/tabs.vue.d.ts +3 -5
  35. package/dist/components/tag/tag.vue.d.ts +1 -5
  36. package/dist/components/textarea/textarea.vue.d.ts +2 -6
  37. package/dist/components/tooltip/tooltip.vue.d.ts +1 -5
  38. package/dist/db-ux.es.js +895 -870
  39. package/dist/db-ux.umd.js +1 -1
  40. package/dist/shared/model.d.ts +6 -0
  41. package/dist/utils/index.d.ts +0 -4
  42. package/dist/utils/react.d.ts +7 -0
  43. package/package.json +6 -6
package/dist/db-ux.es.js CHANGED
@@ -1,8 +1,8 @@
1
- var be = Object.defineProperty;
2
- var ge = (t, n, d) => n in t ? be(t, n, { enumerable: !0, configurable: !0, writable: !0, value: d }) : t[n] = d;
3
- var j = (t, n, d) => ge(t, typeof n != "symbol" ? n + "" : n, d);
4
- import { defineComponent as A, ref as o, createElementBlock as g, openBlock as m, unref as r, normalizeClass as N, renderSlot as I, Fragment as T, createTextVNode as E, toDisplayString as w, createCommentVNode as D, createElementVNode as _, createBlock as X, withCtx as z, onMounted as U, watch as R, createVNode as W, renderList as ne, onUnmounted as ye } from "vue";
5
- const V = () => {
1
+ var ge = Object.defineProperty;
2
+ var ye = (t, n, d) => n in t ? ge(t, n, { enumerable: !0, configurable: !0, writable: !0, value: d }) : t[n] = d;
3
+ var j = (t, n, d) => ye(t, typeof n != "symbol" ? n + "" : n, d);
4
+ import { defineComponent as E, ref as u, createElementBlock as g, openBlock as m, unref as v, normalizeClass as N, renderSlot as w, Fragment as C, createTextVNode as L, toDisplayString as k, createCommentVNode as M, createElementVNode as I, createBlock as X, withCtx as R, onMounted as U, watch as z, createVNode as O, renderList as te, onUnmounted as Be } from "vue";
5
+ const G = () => {
6
6
  var t, n;
7
7
  if (typeof window < "u") {
8
8
  if ((t = window.crypto) != null && t.randomUUID)
@@ -16,7 +16,7 @@ const V = () => {
16
16
  Object.values(d).forEach((e) => {
17
17
  e.setAttribute(n.key, n.value), e.children.length > 0 && re(e, n);
18
18
  });
19
- }, F = (...t) => {
19
+ }, A = (...t) => {
20
20
  let n = "";
21
21
  for (const d of t)
22
22
  if (d)
@@ -26,13 +26,7 @@ const V = () => {
26
26
  for (const e in d)
27
27
  d[e] && (n += `${e} `);
28
28
  return n.trim();
29
- }, Be = ["suppressHydrationWarning", "suppressContentEditableWarning", "translate", "title", "tabIndex", "style", "spellCheck", "nonce", "lang", "hidden", "draggable", "dir", "contextMenu", "contentEditable", "autoFocus", "accessKey", "is", "inputMode", "unselectable", "security", "results", "vocab", "typeof", "rev", "resource", "rel", "property", "inlist", "datatype", "content", "about", "role", "radioGroup", "color"], cn = (t, n) => Object.keys(t).filter((d) => (d.startsWith("data-") || d.startsWith("aria-") || d.startsWith("default") || d.startsWith("auto") || d.startsWith("item") || d.startsWith("on") || Be.includes(d)) && !n.includes(d)).reduce((d, e) => ({
30
- ...d,
31
- [e]: t[e]
32
- }), {}), vn = (t, n) => Object.keys(t).filter((d) => n.includes(d)).reduce((d, e) => ({
33
- ...d,
34
- [e]: t[e]
35
- }), {}), pn = (t) => {
29
+ }, fn = (t) => {
36
30
  const {
37
31
  left: n,
38
32
  right: d
@@ -40,7 +34,7 @@ const V = () => {
40
34
  innerWidth: e
41
35
  } = window;
42
36
  return n >= 0 && d <= e;
43
- }, hn = (t) => {
37
+ }, cn = (t) => {
44
38
  const {
45
39
  top: n,
46
40
  bottom: d
@@ -49,20 +43,20 @@ const V = () => {
49
43
  } = window;
50
44
  return n >= 0 && d <= e;
51
45
  }, ke = (t) => {
52
- var k;
46
+ var _;
53
47
  const {
54
48
  top: n,
55
49
  bottom: d,
56
50
  left: e,
57
51
  right: a
58
52
  } = t.getBoundingClientRect(), {
59
- innerHeight: u,
53
+ innerHeight: c,
60
54
  innerWidth: l
61
55
  } = window;
62
- let c = n < 0, i = d > u, h = e < 0, s = a > l;
63
- const B = t.hasAttribute("data-outside-vy"), y = t.hasAttribute("data-outside-vx"), L = (k = t == null ? void 0 : t.parentElement) == null ? void 0 : k.getBoundingClientRect();
64
- return L && (B && (t.getAttribute("data-outside-vy") === "top" ? c = L.top - (d - L.bottom) < 0 : i = L.bottom + (L.top - n) > u), y && (t.getAttribute("data-outside-vx") === "left" ? h = L.left - (a - L.right) < 0 : s = L.right + (L.left - e) > l)), {
65
- outTop: c,
56
+ let p = n < 0, i = d > c, h = e < 0, s = a > l;
57
+ const B = t.hasAttribute("data-outside-vy"), $ = t.hasAttribute("data-outside-vx"), D = (_ = t == null ? void 0 : t.parentElement) == null ? void 0 : _.getBoundingClientRect();
58
+ return D && (B && (t.getAttribute("data-outside-vy") === "top" ? p = D.top - (d - D.bottom) < 0 : i = D.bottom + (D.top - n) > c), $ && (t.getAttribute("data-outside-vx") === "left" ? h = D.left - (a - D.right) < 0 : s = D.right + (D.left - e) > l)), {
59
+ outTop: p,
66
60
  outBottom: i,
67
61
  outLeft: h,
68
62
  outRight: s
@@ -74,17 +68,17 @@ const V = () => {
74
68
  outLeft: e,
75
69
  outRight: a
76
70
  } = ke(t);
77
- let u = {};
78
- return n || d ? (u = {
71
+ let c = {};
72
+ return n || d ? (c = {
79
73
  vy: n ? "top" : "bottom"
80
- }, t.setAttribute("data-outside-vy", u.vy)) : t.removeAttribute("data-outside-vy"), e || a ? (u = {
81
- ...u,
74
+ }, t.setAttribute("data-outside-vy", c.vy)) : t.removeAttribute("data-outside-vy"), e || a ? (c = {
75
+ ...c,
82
76
  vx: a ? "right" : "left"
83
- }, t.setAttribute("data-outside-vx", u.vx)) : t.removeAttribute("data-outside-vx"), u;
84
- }, we = (t) => Array.isArray(t) && t.every((n) => typeof n == "string"), Ie = ["Mac", "iPhone", "iPad", "iPod"], Y = () => typeof window < "u" && Ie.some((t) => window.navigator.userAgent.includes(t)), H = (t, n) => new Promise(() => setTimeout(t, n)), G = (t) => t && String(t), P = (t) => {
77
+ }, t.setAttribute("data-outside-vx", c.vx)) : t.removeAttribute("data-outside-vx"), c;
78
+ }, we = (t) => Array.isArray(t) && t.every((n) => typeof n == "string"), Ie = ["Mac", "iPhone", "iPad", "iPod"], Y = () => typeof window < "u" && Ie.some((t) => window.navigator.userAgent.includes(t)), H = (t, n) => new Promise(() => setTimeout(t, n)), V = (t) => t && String(t), P = (t) => {
85
79
  if (t != null)
86
- return G(!t);
87
- }, q = (t, n) => n === void 0 ? !!t : n && t, _e = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "value", "aria-describedby", "aria-expanded", "aria-pressed"], te = /* @__PURE__ */ A({
80
+ return V(!t);
81
+ }, q = (t, n) => n === void 0 ? !!t : n && t, _e = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "value", "aria-describedby", "aria-expanded", "aria-pressed"], de = /* @__PURE__ */ E({
88
82
  __name: "button",
89
83
  props: {
90
84
  ariaexpanded: { type: Boolean, default: void 0 },
@@ -111,50 +105,50 @@ const V = () => {
111
105
  text: { default: void 0 }
112
106
  },
113
107
  setup(t) {
114
- const n = t, d = o(null);
108
+ const n = t, d = u(null);
115
109
  function e(a) {
116
110
  n.onClick && n.onClick(a);
117
111
  }
118
- return (a, u) => (m(), g("button", {
112
+ return (a, c) => (m(), g("button", {
119
113
  ref_key: "_ref",
120
114
  ref: d,
121
115
  id: a.id,
122
- class: N(r(F)("db-button", n.class)),
116
+ class: N(v(A)("db-button", n.class)),
123
117
  type: a.type || "button",
124
118
  disabled: a.disabled,
125
119
  "aria-label": a.label,
126
120
  "data-icon": a.icon,
127
- "data-hide-icon": r(P)(a.showIcon),
121
+ "data-hide-icon": v(P)(a.showIcon),
128
122
  "data-size": a.size,
129
123
  "data-state": a.state,
130
124
  "data-width": a.width,
131
125
  "data-variant": a.variant,
132
- "data-no-text": r(G)(a.noText),
126
+ "data-no-text": v(V)(a.noText),
133
127
  name: a.name,
134
128
  value: a.value,
135
129
  "aria-describedby": a.describedbyid,
136
130
  "aria-expanded": a.ariaexpanded,
137
131
  "aria-pressed": a.ariapressed,
138
- onClick: u[0] || (u[0] = async (l) => e(l))
132
+ onClick: c[0] || (c[0] = async (l) => e(l))
139
133
  }, [
140
- a.text ? (m(), g(T, { key: 0 }, [
141
- E(w(a.text), 1)
142
- ], 64)) : I(a.$slots, "default", { key: 1 })
134
+ a.text ? (m(), g(C, { key: 0 }, [
135
+ L(k(a.text), 1)
136
+ ], 64)) : w(a.$slots, "default", { key: 1 })
143
137
  ], 10, _e));
144
138
  }
145
- }), ee = "OVERWRITE_DEFAULT_ID", le = "LABEL SHOULD BE SET", fe = " ", K = "-message", J = "-valid-message", Q = "-invalid-message", oe = "-placeholder", ue = "-datalist", Z = "TODO: Add a validMessage", x = "TODO: Add an invalidMessage", $e = "Back", Le = "BurgerMenu", Ee = "brand", Ae = 4, ce = "Close Button", mn = "density", bn = "color";
139
+ }), ee = "OVERWRITE_DEFAULT_ID", le = "LABEL SHOULD BE SET", fe = " ", K = "-message", J = "-valid-message", Q = "-invalid-message", oe = "-placeholder", ue = "-datalist", Z = "TODO: Add a validMessage", x = "TODO: Add an invalidMessage", $e = "Back", Le = "BurgerMenu", Ee = "brand", Ne = 4, ce = "Close Button", vn = "density", pn = "color";
146
140
  var ve = /* @__PURE__ */ ((t) => (t.FUNCTIONAL = "functional", t.REGULAR = "regular", t.EXPRESSIVE = "expressive", t))(ve || {});
147
- const gn = Object.entries(ve).map(([, t]) => t);
141
+ const hn = Object.entries(ve).map(([, t]) => t);
148
142
  var pe = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t))(pe || {}), he = /* @__PURE__ */ ((t) => (t.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", t.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", t.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", t.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", t.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", t.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", t.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", t.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", t.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", t.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", t.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", t.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", t.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", t.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", t.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", t.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", t.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", t.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", t.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", t.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", t.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", t.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", t.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", t.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", t.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", t.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", t.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", t.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", t.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", t.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", t))(he || {});
149
- const yn = Object.entries(he).map(([, t]) => t), Bn = Object.entries(pe).map(([, t]) => t);
143
+ const mn = Object.entries(he).map(([, t]) => t), bn = Object.entries(pe).map(([, t]) => t);
150
144
  var me = /* @__PURE__ */ ((t) => (t.CRITICAL = "critical", t.INFORMATIONAL = "informational", t.WARNING = "warning", t.SUCCESSFUL = "successful", t))(me || {});
151
- const kn = Object.entries(me).map(([, t]) => t), Ne = {
145
+ const gn = Object.entries(me).map(([, t]) => t), Ae = {
152
146
  width: 390,
153
147
  height: 884
154
148
  }, Fe = {
155
149
  width: 1920,
156
150
  height: 1280
157
- }, wn = [{
151
+ }, yn = [{
158
152
  name: "desktop",
159
153
  ...Fe
160
154
  }, {
@@ -163,8 +157,8 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
163
157
  height: 1024
164
158
  }, {
165
159
  name: "mobile",
166
- ...Ne
167
- }], Te = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Se = { key: 0 }, Ce = { key: 1 }, In = /* @__PURE__ */ A({
160
+ ...Ae
161
+ }], Te = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Se = { key: 0 }, Ce = { key: 1 }, Bn = /* @__PURE__ */ E({
168
162
  __name: "notification",
169
163
  props: {
170
164
  ariaLive: { default: void 0 },
@@ -195,32 +189,32 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
195
189
  text: { default: void 0 }
196
190
  },
197
191
  setup(t) {
198
- const n = t, d = o(null);
192
+ const n = t, d = u(null);
199
193
  function e(a) {
200
194
  n.onClose && n.onClose();
201
195
  }
202
- return (a, u) => (m(), g("article", {
196
+ return (a, c) => (m(), g("article", {
203
197
  ref_key: "_ref",
204
198
  ref: d,
205
199
  id: a.id,
206
- class: N(r(F)("db-notification", n.class)),
200
+ class: N(v(A)("db-notification", n.class)),
207
201
  "aria-live": a.ariaLive,
208
202
  "data-semantic": a.semantic,
209
203
  "data-variant": a.variant,
210
204
  "data-icon": a.icon,
211
- "data-hide-icon": r(P)(a.showIcon),
205
+ "data-hide-icon": v(P)(a.showIcon),
212
206
  "data-link-variant": a.linkVariant
213
207
  }, [
214
- I(a.$slots, "image"),
215
- r(q)(a.headline, a.showHeadline) ? (m(), g("header", Se, w(a.headline), 1)) : D("", !0),
216
- _("p", null, [
217
- a.text ? (m(), g(T, { key: 0 }, [
218
- E(w(a.text), 1)
219
- ], 64)) : I(a.$slots, "default", { key: 1 })
208
+ w(a.$slots, "image"),
209
+ v(q)(a.headline, a.showHeadline) ? (m(), g("header", Se, k(a.headline), 1)) : M("", !0),
210
+ I("p", null, [
211
+ a.text ? (m(), g(C, { key: 0 }, [
212
+ L(k(a.text), 1)
213
+ ], 64)) : w(a.$slots, "default", { key: 1 })
220
214
  ]),
221
- r(q)(a.timestamp, a.showTimestamp) ? (m(), g("span", Ce, w(a.timestamp), 1)) : D("", !0),
222
- I(a.$slots, "link"),
223
- a.closeable ? (m(), X(te, {
215
+ v(q)(a.timestamp, a.showTimestamp) ? (m(), g("span", Ce, k(a.timestamp), 1)) : M("", !0),
216
+ w(a.$slots, "link"),
217
+ a.closeable ? (m(), X(de, {
224
218
  key: 2,
225
219
  icon: "cross",
226
220
  variant: "ghost",
@@ -229,14 +223,14 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
229
223
  noText: !0,
230
224
  onClick: (l) => e()
231
225
  }, {
232
- default: z(() => [
233
- E(w(a.closeButtonText ?? r(ce)), 1)
226
+ default: R(() => [
227
+ L(k(a.closeButtonText ?? v(ce)), 1)
234
228
  ]),
235
229
  _: 1
236
- }, 8, ["id", "onClick"])) : D("", !0)
230
+ }, 8, ["id", "onClick"])) : M("", !0)
237
231
  ], 10, Te));
238
232
  }
239
- }), De = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], _n = /* @__PURE__ */ A({
233
+ }), De = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], kn = /* @__PURE__ */ E({
240
234
  __name: "badge",
241
235
  props: {
242
236
  placement: { default: void 0 },
@@ -253,42 +247,42 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
253
247
  text: { default: void 0 }
254
248
  },
255
249
  setup(t) {
256
- const n = t, d = o(!1), e = o(null);
250
+ const n = t, d = u(!1), e = u(null);
257
251
  return U(() => {
258
252
  d.value = !0;
259
- }), R(
253
+ }), z(
260
254
  () => [e.value, d.value],
261
255
  () => {
262
256
  var a;
263
257
  if (e.value && d.value && (a = n.placement) != null && a.startsWith("corner")) {
264
- let u = e.value.parentElement;
265
- u && u.localName.includes("badge") && (u = u.parentElement), u && u.setAttribute("data-has-badge", "true");
258
+ let c = e.value.parentElement;
259
+ c && c.localName.includes("badge") && (c = c.parentElement), c && c.setAttribute("data-has-badge", "true");
266
260
  }
267
261
  },
268
262
  {
269
263
  immediate: !0,
270
264
  flush: "post"
271
265
  }
272
- ), (a, u) => {
266
+ ), (a, c) => {
273
267
  var l;
274
268
  return m(), g("span", {
275
269
  ref_key: "_ref",
276
270
  ref: e,
277
271
  id: a.id,
278
- class: N(r(F)("db-badge", n.class)),
272
+ class: N(v(A)("db-badge", n.class)),
279
273
  "data-semantic": a.semantic,
280
274
  "data-size": a.size,
281
275
  "data-emphasis": a.emphasis,
282
276
  "data-placement": a.placement,
283
- "data-label": ((l = a.placement) == null ? void 0 : l.startsWith("corner")) && (a.label ?? r(le))
277
+ "data-label": ((l = a.placement) == null ? void 0 : l.startsWith("corner")) && (a.label ?? v(le))
284
278
  }, [
285
- a.text ? (m(), g(T, { key: 0 }, [
286
- E(w(a.text), 1)
287
- ], 64)) : I(a.$slots, "default", { key: 1 })
279
+ a.text ? (m(), g(C, { key: 0 }, [
280
+ L(k(a.text), 1)
281
+ ], 64)) : w(a.$slots, "default", { key: 1 })
288
282
  ], 10, De);
289
283
  };
290
284
  }
291
- }), Me = ["data-icon", "data-hide-icon", "id"], $n = /* @__PURE__ */ A({
285
+ }), Me = ["data-icon", "data-hide-icon", "id"], wn = /* @__PURE__ */ E({
292
286
  __name: "brand",
293
287
  props: {
294
288
  hideLogo: { type: Boolean, default: void 0 },
@@ -303,21 +297,21 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
303
297
  text: { default: void 0 }
304
298
  },
305
299
  setup(t) {
306
- const n = t, d = o(null);
300
+ const n = t, d = u(null);
307
301
  return (e, a) => (m(), g("div", {
308
302
  ref_key: "_ref",
309
303
  ref: d,
310
- "data-icon": e.hideLogo ? "none" : e.icon ?? r(Ee),
311
- "data-hide-icon": r(P)(e.showIcon),
304
+ "data-icon": e.hideLogo ? "none" : e.icon ?? v(Ee),
305
+ "data-hide-icon": v(P)(e.showIcon),
312
306
  id: e.id,
313
- class: N(r(F)("db-brand", n.class))
307
+ class: N(v(A)("db-brand", n.class))
314
308
  }, [
315
- e.text ? (m(), g(T, { key: 0 }, [
316
- E(w(e.text), 1)
317
- ], 64)) : I(e.$slots, "default", { key: 1 })
309
+ e.text ? (m(), g(C, { key: 0 }, [
310
+ L(k(e.text), 1)
311
+ ], 64)) : w(e.$slots, "default", { key: 1 })
318
312
  ], 10, Me));
319
313
  }
320
- }), Re = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], Ln = /* @__PURE__ */ A({
314
+ }), ze = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], In = /* @__PURE__ */ E({
321
315
  __name: "card",
322
316
  props: {
323
317
  behavior: { default: void 0 },
@@ -332,28 +326,28 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
332
326
  spacing: { default: void 0 }
333
327
  },
334
328
  setup(t) {
335
- const n = t, d = o(null);
329
+ const n = t, d = u(null);
336
330
  function e(a) {
337
331
  n.onClick && n.onClick(a);
338
332
  }
339
- return (a, u) => (m(), g("div", {
333
+ return (a, c) => (m(), g("div", {
340
334
  ref_key: "_ref",
341
335
  ref: d,
342
336
  id: a.id,
343
- class: N(r(F)("db-card", n.class)),
337
+ class: N(v(A)("db-card", n.class)),
344
338
  "data-behavior": a.behavior,
345
339
  "data-elevation-level": a.elevationLevel,
346
340
  "data-spacing": a.spacing,
347
341
  role: a.behavior === "interactive" ? "button" : void 0,
348
342
  tabIndex: a.behavior === "interactive" ? 0 : void 0,
349
- onClick: u[0] || (u[0] = async (l) => e(l))
343
+ onClick: c[0] || (c[0] = async (l) => e(l))
350
344
  }, [
351
- I(a.$slots, "default")
352
- ], 10, Re));
345
+ w(a.$slots, "default")
346
+ ], 10, ze));
353
347
  }
354
348
  }), ae = (t, n, d = "value") => {
355
349
  t(`update:${d}`, n.target[d]);
356
- }, ze = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], O = /* @__PURE__ */ A({
350
+ }, Re = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], W = /* @__PURE__ */ E({
357
351
  __name: "infotext",
358
352
  props: {
359
353
  children: { default: void 0 },
@@ -369,26 +363,26 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
369
363
  text: { default: void 0 }
370
364
  },
371
365
  setup(t) {
372
- const n = t, d = o(null);
366
+ const n = t, d = u(null);
373
367
  return (e, a) => (m(), g("span", {
374
368
  ref_key: "_ref",
375
369
  ref: d,
376
370
  id: e.id,
377
- class: N(r(F)("db-infotext", n.class)),
371
+ class: N(v(A)("db-infotext", n.class)),
378
372
  "data-icon": e.icon,
379
373
  "data-semantic": e.semantic,
380
374
  "data-size": e.size,
381
- "data-hide-icon-before": r(P)(e.showIcon ?? !0)
375
+ "data-hide-icon-before": v(P)(e.showIcon ?? !0)
382
376
  }, [
383
- e.text ? (m(), g(T, { key: 0 }, [
384
- E(w(e.text), 1)
385
- ], 64)) : I(e.$slots, "default", { key: 1 })
386
- ], 10, ze));
377
+ e.text ? (m(), g(C, { key: 0 }, [
378
+ L(k(e.text), 1)
379
+ ], 64)) : w(e.$slots, "default", { key: 1 })
380
+ ], 10, Re));
387
381
  }
388
- }), Ue = ["data-size", "data-hide-label"], Pe = ["for"], Ge = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ve = {
382
+ }), Ue = ["data-size", "data-hide-label"], Pe = ["for"], Ve = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ge = {
389
383
  "data-visually-hidden": "true",
390
384
  role: "status"
391
- }, En = /* @__PURE__ */ A({
385
+ }, _n = /* @__PURE__ */ E({
392
386
  __name: "checkbox",
393
387
  props: {
394
388
  indeterminate: { type: Boolean, default: void 0 },
@@ -425,113 +419,117 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
425
419
  },
426
420
  emits: ["update:checked"],
427
421
  setup(t, { emit: n }) {
428
- const d = n, e = t, a = o(!1), u = o(void 0), l = o(void 0), c = o(void 0), i = o(void 0), h = o(""), s = o(""), B = o(null);
422
+ const d = n, e = t, a = u(!1), c = u(void 0), l = u(void 0), p = u(void 0), i = u(void 0), h = u(""), s = u(""), B = u(null);
429
423
  U(() => {
430
424
  a.value = !0;
431
- const v = e.id ?? `checkbox-${V()}`;
432
- u.value = v, l.value = v + K, c.value = v + J, i.value = v + Q;
433
- }), R(
434
- () => [u.value],
425
+ const f = e.id ?? `checkbox-${G()}`;
426
+ c.value = f, l.value = f + K, p.value = f + J, i.value = f + Q;
427
+ }), z(
428
+ () => [c.value],
435
429
  () => {
436
- if (u.value) {
437
- const v = u.value + K;
438
- l.value = v, c.value = u.value + J, i.value = u.value + Q, q(e.message, e.showMessage) && (h.value = v);
430
+ if (c.value) {
431
+ const f = c.value + K;
432
+ l.value = f, p.value = c.value + J, i.value = c.value + Q, q(e.message, e.showMessage) && (h.value = f);
439
433
  }
440
434
  },
441
435
  {
442
436
  immediate: !0,
443
437
  flush: "post"
444
438
  }
445
- ), R(
446
- () => [a.value, e.indeterminate, e.checked],
439
+ ), z(
440
+ () => [a.value, B.value, e.indeterminate],
447
441
  () => {
448
- if (a.value && document && u.value) {
449
- const v = document == null ? void 0 : document.getElementById(
450
- u.value
451
- );
452
- v && (e.checked != null && (v.checked = e.checked), e.indeterminate !== void 0 && (v.indeterminate = e.indeterminate), a.value = !1);
453
- }
442
+ B.value && e.indeterminate !== void 0 && (B.value.indeterminate = e.indeterminate);
443
+ },
444
+ {
445
+ immediate: !0,
446
+ flush: "post"
447
+ }
448
+ ), z(
449
+ () => [a.value, B.value, e.checked],
450
+ () => {
451
+ a.value && B.value && (e.checked != null && (B.value.checked = e.checked), a.value = !1);
454
452
  },
455
453
  {
456
454
  immediate: !0,
457
455
  flush: "post"
458
456
  }
459
457
  );
460
- function y(v) {
461
- var p, $, f;
462
- e.onChange && e.onChange(v), e.change && e.change(v), ae(d, v, "checked"), !((p = B.value) != null && p.validity.valid) || e.validation === "invalid" ? (h.value = i.value, Y() && (s.value = e.invalidMessage ?? (($ = B.value) == null ? void 0 : $.validationMessage) ?? x, H(() => s.value = "", 1e3))) : e.validation === "valid" || (f = B.value) != null && f.validity.valid && e.required ? (h.value = c.value, Y() && (s.value = e.validMessage ?? Z, H(() => s.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = l.value : h.value = "";
458
+ function $(f) {
459
+ var o, y, r;
460
+ e.onChange && e.onChange(f), e.change && e.change(f), ae(d, f, "checked"), !((o = B.value) != null && o.validity.valid) || e.validation === "invalid" ? (h.value = i.value, Y() && (s.value = e.invalidMessage ?? ((y = B.value) == null ? void 0 : y.validationMessage) ?? x, H(() => s.value = "", 1e3))) : e.validation === "valid" || (r = B.value) != null && r.validity.valid && e.required ? (h.value = p.value, Y() && (s.value = e.validMessage ?? Z, H(() => s.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = l.value : h.value = "";
463
461
  }
464
- function L(v) {
465
- e.onBlur && e.onBlur(v), e.blur && e.blur(v);
462
+ function D(f) {
463
+ e.onBlur && e.onBlur(f), e.blur && e.blur(f);
466
464
  }
467
- function k(v) {
468
- e.onFocus && e.onFocus(v), e.focus && e.focus(v);
465
+ function _(f) {
466
+ e.onFocus && e.onFocus(f), e.focus && e.focus(f);
469
467
  }
470
- return (v, p) => (m(), g("div", {
471
- class: N(r(F)("db-checkbox", e.class)),
472
- "data-size": v.size,
473
- "data-hide-label": r(P)(v.showLabel)
468
+ return (f, o) => (m(), g("div", {
469
+ class: N(v(A)("db-checkbox", e.class)),
470
+ "data-size": f.size,
471
+ "data-hide-label": v(P)(f.showLabel)
474
472
  }, [
475
- _("label", { for: u.value }, [
476
- _("input", {
473
+ I("label", { for: c.value }, [
474
+ I("input", {
477
475
  type: "checkbox",
478
- "aria-invalid": v.validation === "invalid",
479
- "data-custom-validity": v.validation,
476
+ "aria-invalid": f.validation === "invalid",
477
+ "data-custom-validity": f.validation,
480
478
  ref_key: "_ref",
481
479
  ref: B,
482
- id: u.value,
483
- name: v.name,
484
- checked: v.checked,
485
- disabled: v.disabled,
486
- value: v.value,
487
- required: v.required,
488
- onChange: p[0] || (p[0] = async ($) => y($)),
489
- onBlur: p[1] || (p[1] = async ($) => L($)),
490
- onFocus: p[2] || (p[2] = async ($) => k($)),
480
+ id: c.value,
481
+ name: f.name,
482
+ checked: f.checked,
483
+ disabled: f.disabled,
484
+ value: f.value,
485
+ required: f.required,
486
+ onChange: o[0] || (o[0] = async (y) => $(y)),
487
+ onBlur: o[1] || (o[1] = async (y) => D(y)),
488
+ onFocus: o[2] || (o[2] = async (y) => _(y)),
491
489
  "aria-describedby": h.value
492
- }, null, 40, Ge),
493
- v.label ? (m(), g(T, { key: 0 }, [
494
- E(w(v.label), 1)
495
- ], 64)) : I(v.$slots, "default", { key: 1 })
490
+ }, null, 40, Ve),
491
+ f.label ? (m(), g(C, { key: 0 }, [
492
+ L(k(f.label), 1)
493
+ ], 64)) : w(f.$slots, "default", { key: 1 })
496
494
  ], 8, Pe),
497
- r(q)(v.message, v.showMessage) ? (m(), X(O, {
495
+ v(q)(f.message, f.showMessage) ? (m(), X(W, {
498
496
  key: 0,
499
497
  size: "small",
500
- icon: v.messageIcon,
498
+ icon: f.messageIcon,
501
499
  id: l.value
502
500
  }, {
503
- default: z(() => [
504
- E(w(v.message), 1)
501
+ default: R(() => [
502
+ L(k(f.message), 1)
505
503
  ]),
506
504
  _: 1
507
- }, 8, ["icon", "id"])) : D("", !0),
508
- W(O, {
505
+ }, 8, ["icon", "id"])) : M("", !0),
506
+ O(W, {
509
507
  size: "small",
510
508
  semantic: "successful",
511
- id: c.value
509
+ id: p.value
512
510
  }, {
513
- default: z(() => [
514
- E(w(v.validMessage ?? r(Z)), 1)
511
+ default: R(() => [
512
+ L(k(f.validMessage ?? v(Z)), 1)
515
513
  ]),
516
514
  _: 1
517
515
  }, 8, ["id"]),
518
- W(O, {
516
+ O(W, {
519
517
  size: "small",
520
518
  semantic: "critical",
521
519
  id: i.value
522
520
  }, {
523
- default: z(() => {
524
- var $;
521
+ default: R(() => {
522
+ var y;
525
523
  return [
526
- E(w(v.invalidMessage ?? (($ = B.value) == null ? void 0 : $.validationMessage) ?? r(x)), 1)
524
+ L(k(f.invalidMessage ?? ((y = B.value) == null ? void 0 : y.validationMessage) ?? v(x)), 1)
527
525
  ];
528
526
  }),
529
527
  _: 1
530
528
  }, 8, ["id"]),
531
- _("span", Ve, w(s.value), 1)
529
+ I("span", Ge, k(s.value), 1)
532
530
  ], 10, Ue));
533
531
  }
534
- }), qe = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], An = /* @__PURE__ */ A({
532
+ }), qe = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], $n = /* @__PURE__ */ E({
535
533
  __name: "divider",
536
534
  props: {
537
535
  margin: { default: void 0 },
@@ -546,7 +544,7 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
546
544
  width: { default: void 0 }
547
545
  },
548
546
  setup(t) {
549
- const n = t, d = o(null);
547
+ const n = t, d = u(null);
550
548
  return (e, a) => (m(), g("div", {
551
549
  ref_key: "_ref",
552
550
  ref: d,
@@ -555,10 +553,10 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
555
553
  "data-variant": e.variant,
556
554
  "data-emphasis": e.emphasis,
557
555
  "data-width": e.width,
558
- class: N(r(F)("db-divider", n.class))
556
+ class: N(v(A)("db-divider", n.class))
559
557
  }, null, 10, qe));
560
558
  }
561
- }), We = ["id", "data-backdrop", "data-variant"], Oe = ["data-spacing", "data-width", "data-direction", "data-rounded"], Xe = { class: "db-drawer-header" }, He = { class: "db-drawer-header-text" }, je = { class: "db-drawer-content" }, Ye = /* @__PURE__ */ A({
559
+ }), Oe = ["id", "data-backdrop", "data-variant"], We = ["data-spacing", "data-width", "data-direction", "data-rounded"], Xe = { class: "db-drawer-header" }, He = { class: "db-drawer-header-text" }, je = { class: "db-drawer-content" }, Ye = /* @__PURE__ */ E({
562
560
  __name: "drawer",
563
561
  props: {
564
562
  backdrop: { default: void 0 },
@@ -580,13 +578,13 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
580
578
  spacing: { default: void 0 }
581
579
  },
582
580
  setup(t) {
583
- const n = t, d = o(null), e = o(null);
581
+ const n = t, d = u(null), e = u(null);
584
582
  U(() => {
585
- u();
586
- }), R(
583
+ c();
584
+ }), z(
587
585
  () => [n.open],
588
586
  () => {
589
- u();
587
+ c();
590
588
  },
591
589
  {
592
590
  immediate: !0,
@@ -596,38 +594,38 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
596
594
  function a(l) {
597
595
  l.key === "Escape" && l.preventDefault(), (l === "close" || l.key === "Escape" || l.target.nodeName === "DIALOG" && l.type === "click" && n.backdrop !== "none") && n.onClose && n.onClose(l);
598
596
  }
599
- function u() {
597
+ function c() {
600
598
  d.value && (n.open && !d.value.open && (e.value && (e.value.hidden = !1), n.backdrop === "none" || n.variant === "inside" ? d.value.show() : d.value.showModal()), !n.open && d.value.open && (e.value && (e.value.hidden = !0), H(() => {
601
599
  var l;
602
600
  e.value && (e.value.hidden = !1), (l = d.value) == null || l.close();
603
601
  }, 401)));
604
602
  }
605
- return (l, c) => (m(), g("dialog", {
603
+ return (l, p) => (m(), g("dialog", {
606
604
  class: "db-drawer",
607
605
  id: l.id,
608
606
  ref_key: "_ref",
609
607
  ref: d,
610
- onClick: c[0] || (c[0] = async (i) => {
608
+ onClick: p[0] || (p[0] = async (i) => {
611
609
  a(i);
612
610
  }),
613
- onKeydown: c[1] || (c[1] = async (i) => a(i)),
611
+ onKeydown: p[1] || (p[1] = async (i) => a(i)),
614
612
  "data-backdrop": l.backdrop,
615
613
  "data-variant": l.variant
616
614
  }, [
617
- _("article", {
615
+ I("article", {
618
616
  ref_key: "dialogContainerRef",
619
617
  ref: e,
620
- class: N(r(F)("db-drawer-container", n.class)),
618
+ class: N(v(A)("db-drawer-container", n.class)),
621
619
  "data-spacing": l.spacing,
622
620
  "data-width": l.width,
623
621
  "data-direction": l.direction,
624
622
  "data-rounded": l.rounded
625
623
  }, [
626
- _("header", Xe, [
627
- _("div", He, [
628
- I(l.$slots, "drawer-header")
624
+ I("header", Xe, [
625
+ I("div", He, [
626
+ w(l.$slots, "drawer-header")
629
627
  ]),
630
- W(te, {
628
+ O(de, {
631
629
  class: "button-close-drawer",
632
630
  icon: "cross",
633
631
  variant: "ghost",
@@ -635,26 +633,26 @@ const kn = Object.entries(me).map(([, t]) => t), Ne = {
635
633
  noText: !0,
636
634
  onClick: (i) => a("close")
637
635
  }, {
638
- default: z(() => [
639
- E(w(l.closeButtonText ?? r(ce)), 1)
636
+ default: R(() => [
637
+ L(k(l.closeButtonText ?? v(ce)), 1)
640
638
  ]),
641
639
  _: 1
642
640
  }, 8, ["id", "onClick"])
643
641
  ]),
644
- _("div", je, [
645
- I(l.$slots, "default")
642
+ I("div", je, [
643
+ w(l.$slots, "default")
646
644
  ])
647
- ], 10, Oe)
648
- ], 40, We));
645
+ ], 10, We)
646
+ ], 40, Oe));
649
647
  }
650
- }), Ke = (t) => {
648
+ }), be = (t) => {
651
649
  var d, e;
652
650
  const {
653
651
  target: n
654
652
  } = t;
655
653
  return !!(!((d = n == null ? void 0 : n.classList) != null && d.contains("db-navigation-item-expand-button")) && ((e = n == null ? void 0 : n.parentElement) != null && e.classList.contains("db-navigation-item")));
656
654
  };
657
- class Je {
655
+ class Ke {
658
656
  constructor(n, d) {
659
657
  j(this, "element");
660
658
  j(this, "subNavigation");
@@ -706,18 +704,18 @@ class Je {
706
704
  if (!this.triangleData)
707
705
  return;
708
706
  if (n === "fill-gap") {
709
- const l = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, c = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
707
+ const l = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, p = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
710
708
  return {
711
- lb: `${c} ${l}`,
712
- lt: `${c} 0`,
709
+ lb: `${p} ${l}`,
710
+ lt: `${p} 0`,
713
711
  rt: "100% 0",
714
712
  rb: `100% ${l}`
715
713
  };
716
714
  }
717
- const d = this.getTriangleTipX(), e = this.getTriangleTipY(), a = `${d}px ${e}px`, u = `${d}px ${e}px`;
715
+ const d = this.getTriangleTipX(), e = this.getTriangleTipY(), a = `${d}px ${e}px`, c = `${d}px ${e}px`;
718
716
  return {
719
717
  lb: a,
720
- lt: u,
718
+ lt: c,
721
719
  rt: "100% 0",
722
720
  rb: "100% 100%"
723
721
  };
@@ -730,7 +728,7 @@ class Je {
730
728
  e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), d && (this.triangleData = void 0));
731
729
  }
732
730
  }
733
- const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-header-drawer-navigation" }, xe = { class: "db-header-meta-navigation" }, ea = { class: "db-header-secondary-action" }, aa = { class: "db-header-meta-navigation" }, na = { class: "db-header-navigation-bar" }, ta = { class: "db-header-brand-container" }, da = { class: "db-header-navigation-container" }, ia = { class: "db-header-navigation" }, la = { class: "db-header-primary-action" }, sa = { class: "db-header-action-container" }, oa = { class: "db-header-burger-menu-container" }, ua = { class: "db-header-secondary-action" }, Nn = /* @__PURE__ */ A({
731
+ const Je = ["id", "data-width", "data-on-forcing-mobile"], Qe = { class: "db-header-drawer-navigation" }, Ze = { class: "db-header-meta-navigation" }, xe = { class: "db-header-secondary-action" }, ea = { class: "db-header-meta-navigation" }, aa = { class: "db-header-navigation-bar" }, na = { class: "db-header-brand-container" }, ta = { class: "db-header-navigation-container" }, da = { class: "db-header-navigation" }, ia = { class: "db-header-primary-action" }, la = { class: "db-header-action-container" }, sa = { class: "db-header-burger-menu-container" }, oa = { class: "db-header-secondary-action" }, Ln = /* @__PURE__ */ E({
734
732
  __name: "header",
735
733
  props: {
736
734
  brand: {},
@@ -750,10 +748,10 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
750
748
  width: { default: void 0 }
751
749
  },
752
750
  setup(t) {
753
- const n = t, d = o(ee), e = o(!1), a = o(!1), u = o(null);
751
+ const n = t, d = u(ee), e = u(!1), a = u(!1), c = u(null);
754
752
  U(() => {
755
- e.value = !0, d.value = n.id || "header-" + V();
756
- }), R(
753
+ e.value = !0, d.value = n.id || "header-" + G();
754
+ }), z(
757
755
  () => [e.value],
758
756
  () => {
759
757
  if (e.value && document && d.value && n.forceMobile) {
@@ -772,80 +770,80 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
772
770
  function l() {
773
771
  n.onToggle && n.onToggle(!n.drawerOpen);
774
772
  }
775
- function c(i) {
776
- Ke(i) && l();
773
+ function p(i) {
774
+ be(i) && l();
777
775
  }
778
776
  return (i, h) => (m(), g("header", {
779
777
  ref_key: "_ref",
780
- ref: u,
781
- class: N(r(F)("db-header", n.class)),
778
+ ref: c,
779
+ class: N(v(A)("db-header", n.class)),
782
780
  id: d.value,
783
781
  "data-width": i.width,
784
782
  "data-on-forcing-mobile": i.forceMobile && !a.value
785
783
  }, [
786
- W(Ye, {
784
+ O(Ye, {
787
785
  class: "db-header-drawer",
788
786
  spacing: "small",
789
787
  rounded: !0,
790
788
  open: i.drawerOpen,
791
789
  onClose: () => l()
792
790
  }, {
793
- default: z(() => [
794
- _("div", Ze, [
795
- _("div", {
791
+ default: R(() => [
792
+ I("div", Qe, [
793
+ I("div", {
796
794
  class: "db-header-navigation",
797
- onClick: h[0] || (h[0] = async (s) => c(s))
795
+ onClick: h[0] || (h[0] = async (s) => p(s))
798
796
  }, [
799
- I(i.$slots, "default")
797
+ w(i.$slots, "default")
800
798
  ]),
801
- _("div", xe, [
802
- I(i.$slots, "meta-navigation")
799
+ I("div", Ze, [
800
+ w(i.$slots, "meta-navigation")
803
801
  ])
804
802
  ]),
805
- _("div", ea, [
806
- I(i.$slots, "secondary-action")
803
+ I("div", xe, [
804
+ w(i.$slots, "secondary-action")
807
805
  ])
808
806
  ]),
809
807
  _: 3
810
808
  }, 8, ["open", "onClose"]),
811
- _("div", aa, [
812
- I(i.$slots, "meta-navigation")
809
+ I("div", ea, [
810
+ w(i.$slots, "meta-navigation")
813
811
  ]),
814
- _("div", na, [
815
- _("div", ta, [
816
- I(i.$slots, "brand")
812
+ I("div", aa, [
813
+ I("div", na, [
814
+ w(i.$slots, "brand")
817
815
  ]),
818
- _("div", da, [
819
- _("div", ia, [
820
- I(i.$slots, "default")
816
+ I("div", ta, [
817
+ I("div", da, [
818
+ w(i.$slots, "default")
821
819
  ]),
822
- _("div", la, [
823
- I(i.$slots, "primary-action")
820
+ I("div", ia, [
821
+ w(i.$slots, "primary-action")
824
822
  ])
825
823
  ]),
826
- _("div", sa, [
827
- _("div", oa, [
828
- W(te, {
824
+ I("div", la, [
825
+ I("div", sa, [
826
+ O(de, {
829
827
  icon: "menu",
830
828
  variant: "ghost",
831
829
  id: d.value + "-burger-menu",
832
830
  noText: !0,
833
831
  onClick: () => l()
834
832
  }, {
835
- default: z(() => [
836
- E(w(i.burgerMenuLabel ?? r(Le)), 1)
833
+ default: R(() => [
834
+ L(k(i.burgerMenuLabel ?? v(Le)), 1)
837
835
  ]),
838
836
  _: 1
839
837
  }, 8, ["id", "onClick"])
840
838
  ]),
841
- _("div", ua, [
842
- I(i.$slots, "secondary-action")
839
+ I("div", oa, [
840
+ w(i.$slots, "secondary-action")
843
841
  ])
844
842
  ])
845
843
  ])
846
- ], 10, Qe));
844
+ ], 10, Je));
847
845
  }
848
- }), ra = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], Fn = /* @__PURE__ */ A({
846
+ }), ua = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], En = /* @__PURE__ */ E({
849
847
  __name: "icon",
850
848
  props: {
851
849
  variant: { default: void 0 },
@@ -860,26 +858,26 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
860
858
  text: { default: void 0 }
861
859
  },
862
860
  setup(t) {
863
- const n = t, d = o(null);
861
+ const n = t, d = u(null);
864
862
  return (e, a) => (m(), g("span", {
865
863
  "aria-hidden": "true",
866
864
  ref_key: "_ref",
867
865
  ref: d,
868
866
  id: e.id,
869
- class: N(r(F)("db-icon", n.class)),
867
+ class: N(v(A)("db-icon", n.class)),
870
868
  "data-icon": e.icon,
871
869
  "data-icon-weight": e.weight,
872
870
  "data-icon-variant": e.variant
873
871
  }, [
874
- e.text ? (m(), g(T, { key: 0 }, [
875
- E(w(e.text), 1)
876
- ], 64)) : I(e.$slots, "default", { key: 1 })
877
- ], 10, ra));
872
+ e.text ? (m(), g(C, { key: 0 }, [
873
+ L(k(e.text), 1)
874
+ ], 64)) : w(e.$slots, "default", { key: 1 })
875
+ ], 10, ua));
878
876
  }
879
- }), fa = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], ca = ["for"], va = ["aria-invalid", "data-custom-validity", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "autoComplete", "autoFocus", "list", "aria-describedby"], pa = ["id"], ha = ["value"], ma = {
877
+ }), ra = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], fa = ["for"], ca = ["aria-invalid", "data-custom-validity", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], va = ["id"], pa = ["value"], ha = {
880
878
  "data-visually-hidden": "true",
881
879
  role: "status"
882
- }, Tn = /* @__PURE__ */ A({
880
+ }, Nn = /* @__PURE__ */ E({
883
881
  __name: "input",
884
882
  props: {
885
883
  dataList: { default: void 0 },
@@ -924,27 +922,28 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
924
922
  messageIcon: { default: void 0 },
925
923
  autocomplete: { default: void 0 },
926
924
  showMessage: { type: Boolean, default: void 0 },
927
- showIcon: { type: Boolean, default: void 0 }
925
+ showIcon: { type: Boolean, default: void 0 },
926
+ size: { default: void 0 }
928
927
  },
929
928
  emits: ["update:value"],
930
929
  setup(t, { emit: n }) {
931
- const d = n, e = t, a = o(void 0), u = o(void 0), l = o(void 0), c = o(void 0), i = o(void 0), h = o(""), s = o(""), B = o(""), y = o(null);
930
+ const d = n, e = t, a = u(void 0), c = u(void 0), l = u(void 0), p = u(void 0), i = u(void 0), h = u(""), s = u(""), B = u(""), $ = u(null);
932
931
  U(() => {
933
- const f = e.id ?? `input-${V()}`;
934
- a.value = f, u.value = f + K, l.value = f + J, c.value = f + Q, i.value = f + ue;
935
- }), R(
932
+ const r = e.id ?? `input-${G()}`;
933
+ a.value = r, c.value = r + K, l.value = r + J, p.value = r + Q, i.value = r + ue;
934
+ }), z(
936
935
  () => [a.value],
937
936
  () => {
938
937
  if (a.value) {
939
- const f = a.value + K;
940
- u.value = f, l.value = a.value + J, c.value = a.value + Q, i.value = e.dataListId ?? a.value + ue, q(e.message, e.showMessage) && (h.value = f);
938
+ const r = a.value + K;
939
+ c.value = r, l.value = a.value + J, p.value = a.value + Q, i.value = e.dataListId ?? a.value + ue, q(e.message, e.showMessage) && (h.value = r);
941
940
  }
942
941
  },
943
942
  {
944
943
  immediate: !0,
945
944
  flush: "post"
946
945
  }
947
- ), R(
946
+ ), z(
948
947
  () => [e.value],
949
948
  () => {
950
949
  s.value = e.value;
@@ -954,114 +953,115 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
954
953
  flush: "post"
955
954
  }
956
955
  );
957
- function L(f) {
958
- s.value = f.target.value, e.onInput && e.onInput(f), e.input && e.input(f);
956
+ function D(r) {
957
+ s.value = r.target.value, e.onInput && e.onInput(r), e.input && e.input(r);
959
958
  }
960
- function k(f) {
961
- var M, b, S;
962
- e.onChange && e.onChange(f), e.change && e.change(f), ae(d, f), !((M = y.value) != null && M.validity.valid) || e.validation === "invalid" ? (h.value = c.value, Y() && (B.value = e.invalidMessage ?? ((b = y.value) == null ? void 0 : b.validationMessage) ?? x, H(() => B.value = "", 1e3))) : e.validation === "valid" || (S = y.value) != null && S.validity.valid && (e.required || e.minLength || e.maxLength || e.pattern) ? (h.value = l.value, Y() && (B.value = e.validMessage ?? Z, H(() => B.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = u.value : h.value = "";
959
+ function _(r) {
960
+ var T, b, S;
961
+ e.onChange && e.onChange(r), e.change && e.change(r), ae(d, r), !((T = $.value) != null && T.validity.valid) || e.validation === "invalid" ? (h.value = p.value, Y() && (B.value = e.invalidMessage ?? ((b = $.value) == null ? void 0 : b.validationMessage) ?? x, H(() => B.value = "", 1e3))) : e.validation === "valid" || (S = $.value) != null && S.validity.valid && (e.required || e.minLength || e.maxLength || e.pattern) ? (h.value = l.value, Y() && (B.value = e.validMessage ?? Z, H(() => B.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = c.value : h.value = "";
963
962
  }
964
- function v(f) {
965
- e.onBlur && e.onBlur(f), e.blur && e.blur(f);
963
+ function f(r) {
964
+ e.onBlur && e.onBlur(r), e.blur && e.blur(r);
966
965
  }
967
- function p(f) {
968
- e.onFocus && e.onFocus(f), e.focus && e.focus(f);
966
+ function o(r) {
967
+ e.onFocus && e.onFocus(r), e.focus && e.focus(r);
969
968
  }
970
- function $(f) {
969
+ function y(r) {
971
970
  return Array.from(
972
- (we(f) ? f.map((M) => ({
973
- value: M,
971
+ (we(r) ? r.map((T) => ({
972
+ value: T,
974
973
  label: void 0
975
- })) : f) || []
974
+ })) : r) || []
976
975
  );
977
976
  }
978
- return (f, M) => (m(), g("div", {
979
- class: N(r(F)("db-input", e.class)),
980
- "data-variant": f.variant,
981
- "data-hide-label": r(P)(f.showLabel),
982
- "data-hide-icon": r(P)(f.showIcon),
983
- "data-icon": f.icon,
984
- "data-icon-after": f.iconAfter,
985
- "data-hide-icon-after": r(P)(f.showIcon)
977
+ return (r, T) => (m(), g("div", {
978
+ class: N(v(A)("db-input", e.class)),
979
+ "data-variant": r.variant,
980
+ "data-hide-label": v(P)(r.showLabel),
981
+ "data-hide-icon": v(P)(r.showIcon),
982
+ "data-icon": r.icon,
983
+ "data-icon-after": r.iconAfter,
984
+ "data-hide-icon-after": v(P)(r.showIcon)
986
985
  }, [
987
- _("label", { for: a.value }, w(f.label ?? r(le)), 9, ca),
988
- _("input", {
989
- "aria-invalid": f.validation === "invalid",
990
- "data-custom-validity": f.validation,
986
+ I("label", { for: a.value }, k(r.label ?? v(le)), 9, fa),
987
+ I("input", {
988
+ "aria-invalid": r.validation === "invalid",
989
+ "data-custom-validity": r.validation,
991
990
  ref_key: "_ref",
992
- ref: y,
991
+ ref: $,
993
992
  id: a.value,
994
- name: f.name,
995
- type: f.type || "text",
996
- placeholder: f.placeholder ?? r(fe),
997
- disabled: f.disabled,
998
- required: f.required,
999
- step: f.step,
1000
- value: f.value ?? s.value,
1001
- maxLength: f.maxLength,
1002
- minLength: f.minLength,
1003
- max: f.max,
1004
- min: f.min,
1005
- readOnly: f.readOnly,
1006
- form: f.form,
1007
- pattern: f.pattern,
1008
- autoComplete: f.autocomplete,
1009
- autoFocus: f.autofocus,
1010
- onInput: M[0] || (M[0] = async (b) => L(b)),
1011
- onChange: M[1] || (M[1] = async (b) => k(b)),
1012
- onBlur: M[2] || (M[2] = async (b) => v(b)),
1013
- onFocus: M[3] || (M[3] = async (b) => p(b)),
1014
- list: f.dataList && i.value,
993
+ name: r.name,
994
+ type: r.type || "text",
995
+ placeholder: r.placeholder ?? v(fe),
996
+ disabled: r.disabled,
997
+ required: r.required,
998
+ step: r.step,
999
+ value: r.value ?? s.value,
1000
+ maxLength: r.maxLength,
1001
+ minLength: r.minLength,
1002
+ max: r.max,
1003
+ min: r.min,
1004
+ readOnly: r.readOnly,
1005
+ form: r.form,
1006
+ pattern: r.pattern,
1007
+ size: r.size,
1008
+ autoComplete: r.autocomplete,
1009
+ autoFocus: r.autofocus,
1010
+ onInput: T[0] || (T[0] = async (b) => D(b)),
1011
+ onChange: T[1] || (T[1] = async (b) => _(b)),
1012
+ onBlur: T[2] || (T[2] = async (b) => f(b)),
1013
+ onFocus: T[3] || (T[3] = async (b) => o(b)),
1014
+ list: r.dataList && i.value,
1015
1015
  "aria-describedby": h.value
1016
- }, null, 40, va),
1017
- f.dataList ? (m(), g("datalist", {
1016
+ }, null, 40, ca),
1017
+ r.dataList ? (m(), g("datalist", {
1018
1018
  key: 0,
1019
1019
  id: i.value
1020
1020
  }, [
1021
- (m(!0), g(T, null, ne($(f.dataList), (b) => (m(), g("option", {
1021
+ (m(!0), g(C, null, te(y(r.dataList), (b) => (m(), g("option", {
1022
1022
  key: i.value + "-option-" + b.value,
1023
1023
  value: b.value
1024
- }, w(b.label), 9, ha))), 128))
1025
- ], 8, pa)) : D("", !0),
1026
- I(f.$slots, "default"),
1027
- r(q)(f.message, f.showMessage) ? (m(), X(O, {
1024
+ }, k(b.label), 9, pa))), 128))
1025
+ ], 8, va)) : M("", !0),
1026
+ w(r.$slots, "default"),
1027
+ v(q)(r.message, r.showMessage) ? (m(), X(W, {
1028
1028
  key: 1,
1029
1029
  size: "small",
1030
- icon: f.messageIcon,
1031
- id: u.value
1030
+ icon: r.messageIcon,
1031
+ id: c.value
1032
1032
  }, {
1033
- default: z(() => [
1034
- E(w(f.message), 1)
1033
+ default: R(() => [
1034
+ L(k(r.message), 1)
1035
1035
  ]),
1036
1036
  _: 1
1037
- }, 8, ["icon", "id"])) : D("", !0),
1038
- W(O, {
1037
+ }, 8, ["icon", "id"])) : M("", !0),
1038
+ O(W, {
1039
1039
  size: "small",
1040
1040
  semantic: "successful",
1041
1041
  id: l.value
1042
1042
  }, {
1043
- default: z(() => [
1044
- E(w(f.validMessage ?? r(Z)), 1)
1043
+ default: R(() => [
1044
+ L(k(r.validMessage ?? v(Z)), 1)
1045
1045
  ]),
1046
1046
  _: 1
1047
1047
  }, 8, ["id"]),
1048
- W(O, {
1048
+ O(W, {
1049
1049
  size: "small",
1050
1050
  semantic: "critical",
1051
- id: c.value
1051
+ id: p.value
1052
1052
  }, {
1053
- default: z(() => {
1053
+ default: R(() => {
1054
1054
  var b;
1055
1055
  return [
1056
- E(w(f.invalidMessage ?? ((b = y.value) == null ? void 0 : b.validationMessage) ?? r(x)), 1)
1056
+ L(k(r.invalidMessage ?? ((b = $.value) == null ? void 0 : b.validationMessage) ?? v(x)), 1)
1057
1057
  ];
1058
1058
  }),
1059
1059
  _: 1
1060
1060
  }, 8, ["id"]),
1061
- _("span", ma, w(B.value), 1)
1062
- ], 10, fa));
1061
+ I("span", ha, k(B.value), 1)
1062
+ ], 10, ra));
1063
1063
  }
1064
- }), ba = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], Sn = /* @__PURE__ */ A({
1064
+ }), ma = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], An = /* @__PURE__ */ E({
1065
1065
  __name: "link",
1066
1066
  props: {
1067
1067
  content: { default: void 0 },
@@ -1088,37 +1088,37 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1088
1088
  text: { default: void 0 }
1089
1089
  },
1090
1090
  setup(t) {
1091
- const n = t, d = o(null);
1091
+ const n = t, d = u(null);
1092
1092
  function e(a) {
1093
1093
  n.onClick && n.onClick(a);
1094
1094
  }
1095
- return (a, u) => (m(), g("a", {
1095
+ return (a, c) => (m(), g("a", {
1096
1096
  ref_key: "_ref",
1097
1097
  ref: d,
1098
1098
  id: a.id,
1099
- class: N(r(F)("db-link", n.class)),
1099
+ class: N(v(A)("db-link", n.class)),
1100
1100
  href: a.href,
1101
1101
  target: a.target,
1102
1102
  rel: a.rel,
1103
1103
  role: a.role,
1104
1104
  hrefLang: a.hreflang,
1105
- "aria-disabled": r(G)(a.disabled),
1105
+ "aria-disabled": v(V)(a.disabled),
1106
1106
  tabIndex: a.disabled ? -1 : 0,
1107
1107
  "aria-selected": a.selected,
1108
1108
  "aria-label": a.label,
1109
1109
  "aria-current": a.current,
1110
1110
  "data-size": a.size,
1111
- "data-hide-icon-after": r(P)(a.showIcon ?? !0),
1111
+ "data-hide-icon-after": v(P)(a.showIcon ?? !0),
1112
1112
  "data-variant": a.variant,
1113
1113
  "data-content": a.content || "internal",
1114
- onClick: u[0] || (u[0] = async (l) => e(l))
1114
+ onClick: c[0] || (c[0] = async (l) => e(l))
1115
1115
  }, [
1116
- a.text ? (m(), g(T, { key: 0 }, [
1117
- E(w(a.text), 1)
1118
- ], 64)) : I(a.$slots, "default", { key: 1 })
1119
- ], 10, ba));
1116
+ a.text ? (m(), g(C, { key: 0 }, [
1117
+ L(k(a.text), 1)
1118
+ ], 64)) : w(a.$slots, "default", { key: 1 })
1119
+ ], 10, ma));
1120
1120
  }
1121
- }), ga = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], ya = { class: "db-main" }, Cn = /* @__PURE__ */ A({
1121
+ }), ba = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], ga = { class: "db-main" }, Fn = /* @__PURE__ */ E({
1122
1122
  __name: "page",
1123
1123
  props: {
1124
1124
  documentOverflow: { default: void 0 },
@@ -1134,30 +1134,30 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1134
1134
  autofocus: { type: Boolean }
1135
1135
  },
1136
1136
  setup(t) {
1137
- const n = t, d = o(!1), e = o(null);
1137
+ const n = t, d = u(!1), e = u(null);
1138
1138
  return typeof window < "u" && document && (n.documentOverflow === "hidden" || n.variant === "fixed" && n.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), U(() => {
1139
1139
  d.value = !n.fadeIn, document && n.fadeIn ? document.fonts.ready.then(() => {
1140
1140
  d.value = !0;
1141
1141
  }) : d.value = !0;
1142
- }), ye(() => {
1142
+ }), Be(() => {
1143
1143
  typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
1144
- }), (a, u) => (m(), g("div", {
1144
+ }), (a, c) => (m(), g("div", {
1145
1145
  ref_key: "_ref",
1146
1146
  ref: e,
1147
1147
  id: a.id,
1148
- class: N(r(F)("db-page", n.class)),
1148
+ class: N(v(A)("db-page", n.class)),
1149
1149
  "data-variant": a.variant,
1150
1150
  "data-fade-in": a.fadeIn,
1151
- "data-fonts-loaded": r(G)(d.value)
1151
+ "data-fonts-loaded": v(V)(d.value)
1152
1152
  }, [
1153
- I(a.$slots, "header"),
1154
- _("main", ya, [
1155
- I(a.$slots, "default")
1153
+ w(a.$slots, "header"),
1154
+ I("main", ga, [
1155
+ w(a.$slots, "default")
1156
1156
  ]),
1157
- I(a.$slots, "footer")
1158
- ], 10, ga));
1157
+ w(a.$slots, "footer")
1158
+ ], 10, ba));
1159
1159
  }
1160
- }), Ba = ["data-size", "data-hide-label", "for"], ka = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], Dn = /* @__PURE__ */ A({
1160
+ }), ya = ["data-size", "data-hide-label", "for"], Ba = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], Tn = /* @__PURE__ */ E({
1161
1161
  __name: "radio",
1162
1162
  props: {
1163
1163
  describedbyid: { default: void 0 },
@@ -1183,28 +1183,23 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1183
1183
  checked: { type: Boolean, default: void 0 },
1184
1184
  size: { default: void 0 }
1185
1185
  },
1186
- emits: ["update:checked"],
1186
+ emits: ["update:value"],
1187
1187
  setup(t, { emit: n }) {
1188
- const d = n, e = t, a = o(!1), u = o(void 0), l = o(null);
1188
+ const d = n, e = t, a = u(!1), c = u(void 0), l = u(null);
1189
1189
  U(() => {
1190
- a.value = !0, u.value = e.id ?? `radio-${V()}`;
1191
- }), R(
1192
- () => [a.value, e.checked],
1190
+ a.value = !0, c.value = e.id ?? `radio-${G()}`;
1191
+ }), z(
1192
+ () => [a.value, l.value, e.checked],
1193
1193
  () => {
1194
- if (e.checked && a.value && document && u.value) {
1195
- const s = document == null ? void 0 : document.getElementById(
1196
- u.value
1197
- );
1198
- s && e.checked != null && (s.checked = !0);
1199
- }
1194
+ e.checked && a.value && l.value && (l.value.checked = !0);
1200
1195
  },
1201
1196
  {
1202
1197
  immediate: !0,
1203
1198
  flush: "post"
1204
1199
  }
1205
1200
  );
1206
- function c(s) {
1207
- e.onChange && e.onChange(s), e.change && e.change(s), ae(d, s, "checked");
1201
+ function p(s) {
1202
+ e.onChange && e.onChange(s), e.change && e.change(s), ae(d, s);
1208
1203
  }
1209
1204
  function i(s) {
1210
1205
  e.onBlur && e.onBlur(s), e.blur && e.blur(s);
@@ -1214,33 +1209,33 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1214
1209
  }
1215
1210
  return (s, B) => (m(), g("label", {
1216
1211
  "data-size": s.size,
1217
- "data-hide-label": r(P)(s.showLabel),
1218
- class: N(r(F)("db-radio", e.class)),
1219
- for: u.value
1212
+ "data-hide-label": v(P)(s.showLabel),
1213
+ class: N(v(A)("db-radio", e.class)),
1214
+ for: c.value
1220
1215
  }, [
1221
- _("input", {
1216
+ I("input", {
1222
1217
  type: "radio",
1223
1218
  "aria-invalid": s.validation === "invalid",
1224
1219
  "data-custom-validity": s.validation,
1225
1220
  ref_key: "_ref",
1226
1221
  ref: l,
1227
- id: u.value,
1222
+ id: c.value,
1228
1223
  name: s.name,
1229
1224
  checked: s.checked,
1230
1225
  disabled: s.disabled,
1231
1226
  "aria-describedby": s.describedbyid,
1232
1227
  value: s.value,
1233
1228
  required: s.required,
1234
- onChange: B[0] || (B[0] = async (y) => c(y)),
1235
- onBlur: B[1] || (B[1] = async (y) => i(y)),
1236
- onFocus: B[2] || (B[2] = async (y) => h(y))
1237
- }, null, 40, ka),
1238
- s.label ? (m(), g(T, { key: 0 }, [
1239
- E(w(s.label), 1)
1240
- ], 64)) : I(s.$slots, "default", { key: 1 })
1241
- ], 10, Ba));
1229
+ onChange: B[0] || (B[0] = async ($) => p($)),
1230
+ onBlur: B[1] || (B[1] = async ($) => i($)),
1231
+ onFocus: B[2] || (B[2] = async ($) => h($))
1232
+ }, null, 40, Ba),
1233
+ s.label ? (m(), g(C, { key: 0 }, [
1234
+ L(k(s.label), 1)
1235
+ ], 64)) : w(s.$slots, "default", { key: 1 })
1236
+ ], 10, ya));
1242
1237
  }
1243
- }), wa = ["id", "data-spacing", "data-width"], Mn = /* @__PURE__ */ A({
1238
+ }), ka = ["id", "data-spacing", "data-width"], Sn = /* @__PURE__ */ E({
1244
1239
  __name: "section",
1245
1240
  props: {
1246
1241
  children: { default: void 0 },
@@ -1253,24 +1248,24 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1253
1248
  width: { default: void 0 }
1254
1249
  },
1255
1250
  setup(t) {
1256
- const n = t, d = o(ee), e = o(null);
1251
+ const n = t, d = u(ee), e = u(null);
1257
1252
  return U(() => {
1258
- d.value = n.id || "section-" + V();
1259
- }), (a, u) => (m(), g("section", {
1253
+ d.value = n.id || "section-" + G();
1254
+ }), (a, c) => (m(), g("section", {
1260
1255
  ref_key: "_ref",
1261
1256
  ref: e,
1262
1257
  id: d.value,
1263
- class: N(r(F)("db-section", n.class)),
1258
+ class: N(v(A)("db-section", n.class)),
1264
1259
  "data-spacing": a.spacing || "medium",
1265
1260
  "data-width": a.width
1266
1261
  }, [
1267
- I(a.$slots, "default")
1268
- ], 10, wa));
1262
+ w(a.$slots, "default")
1263
+ ], 10, ka));
1269
1264
  }
1270
- }), Ia = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], _a = ["for"], $a = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "value", "autocomplete", "aria-describedby"], La = ["label"], Ea = ["value", "selected", "disabled"], Aa = ["value", "disabled", "selected"], Na = ["id"], Fa = {
1265
+ }), wa = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], Ia = ["for"], _a = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "aria-describedby"], $a = ["label"], La = ["value", "selected", "disabled"], Ea = ["value", "disabled", "selected"], Na = ["id"], Aa = {
1271
1266
  "data-visually-hidden": "true",
1272
1267
  role: "status"
1273
- }, Rn = /* @__PURE__ */ A({
1268
+ }, Cn = /* @__PURE__ */ E({
1274
1269
  __name: "select",
1275
1270
  props: {
1276
1271
  description: {},
@@ -1307,28 +1302,29 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1307
1302
  messageIcon: { default: void 0 },
1308
1303
  autocomplete: { default: void 0 },
1309
1304
  showMessage: { type: Boolean, default: void 0 },
1310
- showIcon: { type: Boolean, default: void 0 }
1305
+ showIcon: { type: Boolean, default: void 0 },
1306
+ size: { default: void 0 }
1311
1307
  },
1312
1308
  emits: ["update:value"],
1313
1309
  setup(t, { emit: n }) {
1314
- const d = n, e = t, a = o(void 0), u = o(void 0), l = o(void 0), c = o(void 0), i = o(""), h = o(""), s = o(""), B = o(!1), y = o(""), L = o(null);
1310
+ const d = n, e = t, a = u(void 0), c = u(void 0), l = u(void 0), p = u(void 0), i = u(""), h = u(""), s = u(""), B = u(!1), $ = u(""), D = u(null);
1315
1311
  U(() => {
1316
1312
  B.value = !0;
1317
- const b = e.id ?? `select-${V()}`;
1318
- a.value = b, u.value = b + K, l.value = b + J, c.value = b + Q, i.value = b + oe;
1319
- }), R(
1313
+ const b = e.id ?? `select-${G()}`;
1314
+ a.value = b, c.value = b + K, l.value = b + J, p.value = b + Q, i.value = b + oe;
1315
+ }), z(
1320
1316
  () => [a.value, B.value],
1321
1317
  () => {
1322
1318
  if (a.value && B.value) {
1323
1319
  const b = a.value + K, S = a.value + oe;
1324
- u.value = b, l.value = a.value + J, c.value = a.value + Q, i.value = S, q(e.message, e.showMessage) ? h.value = b : h.value = S, B.value = !1;
1320
+ c.value = b, l.value = a.value + J, p.value = a.value + Q, i.value = S, q(e.message, e.showMessage) ? h.value = b : h.value = S, B.value = !1;
1325
1321
  }
1326
1322
  },
1327
1323
  {
1328
1324
  immediate: !0,
1329
1325
  flush: "post"
1330
1326
  }
1331
- ), R(
1327
+ ), z(
1332
1328
  () => [e.value],
1333
1329
  () => {
1334
1330
  s.value = e.value;
@@ -1338,112 +1334,113 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1338
1334
  flush: "post"
1339
1335
  }
1340
1336
  );
1341
- function k(b) {
1337
+ function _(b) {
1342
1338
  e.onClick && e.onClick(b);
1343
1339
  }
1344
- function v(b) {
1340
+ function f(b) {
1345
1341
  s.value = b.target.value, e.onInput && e.onInput(b), e.input && e.input(b);
1346
1342
  }
1347
- function p(b) {
1348
- var S, C, ie;
1349
- e.onChange && e.onChange(b), e.change && e.change(b), ae(d, b), !((S = L.value) != null && S.validity.valid) || e.validation === "invalid" ? (h.value = c.value, Y() && (y.value = e.invalidMessage ?? ((C = L.value) == null ? void 0 : C.validationMessage) ?? x, H(() => y.value = "", 1e3))) : e.validation === "valid" || (ie = L.value) != null && ie.validity.valid && e.required ? (h.value = l.value, Y() && (y.value = e.validMessage ?? Z, H(() => y.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = u.value : h.value = i.value;
1343
+ function o(b) {
1344
+ var S, F, ne;
1345
+ e.onChange && e.onChange(b), e.change && e.change(b), ae(d, b), !((S = D.value) != null && S.validity.valid) || e.validation === "invalid" ? (h.value = p.value, Y() && ($.value = e.invalidMessage ?? ((F = D.value) == null ? void 0 : F.validationMessage) ?? x, H(() => $.value = "", 1e3))) : e.validation === "valid" || (ne = D.value) != null && ne.validity.valid && e.required ? (h.value = l.value, Y() && ($.value = e.validMessage ?? Z, H(() => $.value = "", 1e3))) : q(e.message, e.showMessage) ? h.value = c.value : h.value = i.value;
1350
1346
  }
1351
- function $(b) {
1347
+ function y(b) {
1352
1348
  e.onBlur && e.onBlur(b), e.blur && e.blur(b);
1353
1349
  }
1354
- function f(b) {
1350
+ function r(b) {
1355
1351
  e.onFocus && e.onFocus(b), e.focus && e.focus(b);
1356
1352
  }
1357
- function M(b) {
1353
+ function T(b) {
1358
1354
  return b.label ?? b.value.toString();
1359
1355
  }
1360
1356
  return (b, S) => (m(), g("div", {
1361
- class: N(r(F)("db-select", e.class)),
1357
+ class: N(v(A)("db-select", e.class)),
1362
1358
  "data-variant": b.variant,
1363
- "data-hide-label": r(P)(b.showLabel),
1359
+ "data-hide-label": v(P)(b.showLabel),
1364
1360
  "data-icon": b.icon,
1365
- "data-hide-icon": r(P)(b.showIcon)
1361
+ "data-hide-icon": v(P)(b.showIcon)
1366
1362
  }, [
1367
- _("label", { for: a.value }, w(b.label ?? r(le)), 9, _a),
1368
- _("select", {
1363
+ I("label", { for: a.value }, k(b.label ?? v(le)), 9, Ia),
1364
+ I("select", {
1369
1365
  "aria-invalid": b.validation === "invalid",
1370
1366
  "data-custom-validity": b.validation,
1371
1367
  ref_key: "_ref",
1372
- ref: L,
1368
+ ref: D,
1373
1369
  required: b.required,
1374
1370
  disabled: b.disabled,
1375
1371
  id: a.value,
1376
1372
  name: b.name,
1373
+ size: b.size,
1377
1374
  value: b.value ?? s.value,
1378
1375
  autocomplete: b.autocomplete,
1379
- onInput: S[0] || (S[0] = async (C) => v(C)),
1380
- onClick: S[1] || (S[1] = async (C) => k(C)),
1381
- onChange: S[2] || (S[2] = async (C) => p(C)),
1382
- onBlur: S[3] || (S[3] = async (C) => $(C)),
1383
- onFocus: S[4] || (S[4] = async (C) => f(C)),
1376
+ onInput: S[0] || (S[0] = async (F) => f(F)),
1377
+ onClick: S[1] || (S[1] = async (F) => _(F)),
1378
+ onChange: S[2] || (S[2] = async (F) => o(F)),
1379
+ onBlur: S[3] || (S[3] = async (F) => y(F)),
1380
+ onFocus: S[4] || (S[4] = async (F) => r(F)),
1384
1381
  "aria-describedby": h.value
1385
1382
  }, [
1386
- S[5] || (S[5] = _("option", { hidden: !0 }, null, -1)),
1387
- b.options ? (m(!0), g(T, { key: 0 }, ne(b.options, (C, ie) => (m(), g(T, { key: ie }, [
1388
- C.options ? (m(), g("optgroup", {
1383
+ S[5] || (S[5] = I("option", { hidden: !0 }, null, -1)),
1384
+ b.options ? (m(!0), g(C, { key: 0 }, te(b.options, (F, ne) => (m(), g(C, { key: ne }, [
1385
+ F.options ? (m(), g("optgroup", {
1389
1386
  key: 0,
1390
- label: M(C)
1387
+ label: T(F)
1391
1388
  }, [
1392
- (m(!0), g(T, null, ne(C.options, (de, un) => (m(), g("option", {
1393
- key: de.value.toString(),
1394
- value: de.value,
1395
- selected: de.selected,
1396
- disabled: de.disabled
1397
- }, w(M(de)), 9, Ea))), 128))
1398
- ], 8, La)) : D("", !0),
1399
- C.options ? D("", !0) : (m(), g("option", {
1389
+ (m(!0), g(C, null, te(F.options, (ie, on) => (m(), g("option", {
1390
+ key: ie.value.toString(),
1391
+ value: ie.value,
1392
+ selected: ie.selected,
1393
+ disabled: ie.disabled
1394
+ }, k(T(ie)), 9, La))), 128))
1395
+ ], 8, $a)) : M("", !0),
1396
+ F.options ? M("", !0) : (m(), g("option", {
1400
1397
  key: 1,
1401
- value: C.value,
1402
- disabled: C.disabled,
1403
- selected: C.selected
1404
- }, w(M(C)), 9, Aa))
1405
- ], 64))), 128)) : D("", !0),
1406
- I(b.$slots, "default")
1407
- ], 40, $a),
1408
- _("span", { id: i.value }, w(b.placeholder ?? b.label), 9, Na),
1409
- r(q)(b.message, b.showMessage) ? (m(), X(O, {
1398
+ value: F.value,
1399
+ disabled: F.disabled,
1400
+ selected: F.selected
1401
+ }, k(T(F)), 9, Ea))
1402
+ ], 64))), 128)) : M("", !0),
1403
+ w(b.$slots, "default")
1404
+ ], 40, _a),
1405
+ I("span", { id: i.value }, k(b.placeholder ?? b.label), 9, Na),
1406
+ v(q)(b.message, b.showMessage) ? (m(), X(W, {
1410
1407
  key: 0,
1411
1408
  size: "small",
1412
1409
  icon: b.messageIcon,
1413
- id: u.value
1410
+ id: c.value
1414
1411
  }, {
1415
- default: z(() => [
1416
- E(w(b.message), 1)
1412
+ default: R(() => [
1413
+ L(k(b.message), 1)
1417
1414
  ]),
1418
1415
  _: 1
1419
- }, 8, ["icon", "id"])) : D("", !0),
1420
- W(O, {
1416
+ }, 8, ["icon", "id"])) : M("", !0),
1417
+ O(W, {
1421
1418
  size: "small",
1422
1419
  semantic: "successful",
1423
1420
  id: l.value
1424
1421
  }, {
1425
- default: z(() => [
1426
- E(w(b.validMessage ?? r(Z)), 1)
1422
+ default: R(() => [
1423
+ L(k(b.validMessage ?? v(Z)), 1)
1427
1424
  ]),
1428
1425
  _: 1
1429
1426
  }, 8, ["id"]),
1430
- W(O, {
1427
+ O(W, {
1431
1428
  size: "small",
1432
1429
  semantic: "critical",
1433
- id: c.value
1430
+ id: p.value
1434
1431
  }, {
1435
- default: z(() => {
1436
- var C;
1432
+ default: R(() => {
1433
+ var F;
1437
1434
  return [
1438
- E(w(b.invalidMessage ?? ((C = L.value) == null ? void 0 : C.validationMessage) ?? r(x)), 1)
1435
+ L(k(b.invalidMessage ?? ((F = D.value) == null ? void 0 : F.validationMessage) ?? v(x)), 1)
1439
1436
  ];
1440
1437
  }),
1441
1438
  _: 1
1442
1439
  }, 8, ["id"]),
1443
- _("span", Fa, w(y.value), 1)
1444
- ], 10, Ia));
1440
+ I("span", Aa, k($.value), 1)
1441
+ ], 10, wa));
1445
1442
  }
1446
- }), Ta = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Sa = ["id", "aria-checked", "checked", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], zn = /* @__PURE__ */ A({
1443
+ }), Fa = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Ta = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], Dn = /* @__PURE__ */ E({
1447
1444
  __name: "switch",
1448
1445
  props: {
1449
1446
  visualAid: { type: Boolean, default: void 0 },
@@ -1466,7 +1463,7 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1466
1463
  name: { default: void 0 },
1467
1464
  required: { type: Boolean, default: void 0 },
1468
1465
  showLabel: { type: Boolean, default: void 0 },
1469
- value: {},
1466
+ value: { default: void 0 },
1470
1467
  checked: { type: Boolean, default: void 0 },
1471
1468
  emphasis: { default: void 0 },
1472
1469
  size: { default: void 0 },
@@ -1475,15 +1472,22 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1475
1472
  },
1476
1473
  emits: ["update:checked"],
1477
1474
  setup(t, { emit: n }) {
1478
- const d = n, e = t, a = o(void 0), u = o(!1);
1479
- o(!1);
1480
- const l = o(null);
1475
+ const d = n, e = t, a = u(void 0), c = u(!1), l = u(null);
1481
1476
  U(() => {
1482
- a.value = e.id ?? `switch-${V()}`;
1483
- });
1484
- function c(s) {
1477
+ a.value = e.id ?? `switch-${G()}`;
1478
+ }), z(
1479
+ () => [e.checked],
1480
+ () => {
1481
+ e.checked !== void 0 && e.checked !== null && (c.value = !!e.checked);
1482
+ },
1483
+ {
1484
+ immediate: !0,
1485
+ flush: "post"
1486
+ }
1487
+ );
1488
+ function p(s) {
1485
1489
  var B;
1486
- e.onChange && e.onChange(s), e.change && e.change(s), u.value = (B = s.target) == null ? void 0 : B.checked, ae(d, s, "checked");
1490
+ e.onChange && e.onChange(s), e.change && e.change(s), c.value = (B = s.target) == null ? void 0 : B.checked, ae(d, s, "checked");
1487
1491
  }
1488
1492
  function i(s) {
1489
1493
  e.onBlur && e.onBlur(s), e.blur && e.blur(s);
@@ -1492,21 +1496,22 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1492
1496
  e.onFocus && e.onFocus(s), e.focus && e.focus(s);
1493
1497
  }
1494
1498
  return (s, B) => (m(), g("label", {
1495
- "data-visual-aid": r(G)(s.visualAid),
1499
+ "data-visual-aid": v(V)(s.visualAid),
1496
1500
  "data-size": s.size,
1497
- "data-hide-label": r(P)(s.showLabel),
1501
+ "data-hide-label": v(P)(s.showLabel),
1498
1502
  "data-emphasis": s.emphasis,
1499
1503
  for: a.value,
1500
- class: N(r(F)("db-switch", e.class))
1504
+ class: N(v(A)("db-switch", e.class))
1501
1505
  }, [
1502
- _("input", {
1506
+ I("input", {
1503
1507
  type: "checkbox",
1504
1508
  role: "switch",
1505
1509
  id: a.value,
1506
- "aria-checked": u.value,
1510
+ "aria-checked": v(V)(c.value),
1507
1511
  ref_key: "_ref",
1508
1512
  ref: l,
1509
1513
  checked: s.checked,
1514
+ value: s.value,
1510
1515
  disabled: s.disabled,
1511
1516
  "aria-describedby": s.describedbyid,
1512
1517
  "aria-invalid": s.validation === "invalid",
@@ -1515,16 +1520,16 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1515
1520
  required: s.required,
1516
1521
  "data-aid-icon": s.icon,
1517
1522
  "data-aid-icon-after": s.iconAfter,
1518
- onChange: B[0] || (B[0] = async (y) => c(y)),
1519
- onBlur: B[1] || (B[1] = async (y) => i(y)),
1520
- onFocus: B[2] || (B[2] = async (y) => h(y))
1521
- }, null, 40, Sa),
1522
- s.label ? (m(), g(T, { key: 0 }, [
1523
- E(w(s.label), 1)
1524
- ], 64)) : I(s.$slots, "default", { key: 1 })
1525
- ], 10, Ta));
1523
+ onChange: B[0] || (B[0] = async ($) => p($)),
1524
+ onBlur: B[1] || (B[1] = async ($) => i($)),
1525
+ onFocus: B[2] || (B[2] = async ($) => h($))
1526
+ }, null, 40, Ta),
1527
+ s.label ? (m(), g(C, { key: 0 }, [
1528
+ L(k(s.label), 1)
1529
+ ], 64)) : w(s.$slots, "default", { key: 1 })
1530
+ ], 10, Fa));
1526
1531
  }
1527
- }), Ca = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Da = ["disabled", "aria-selected", "aria-controls", "checked", "id"], Ma = /* @__PURE__ */ A({
1532
+ }), Sa = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Ca = ["disabled", "aria-selected", "aria-controls", "checked", "id"], Da = /* @__PURE__ */ E({
1528
1533
  __name: "tab-item",
1529
1534
  props: {
1530
1535
  children: { default: void 0 },
@@ -1547,10 +1552,10 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1547
1552
  },
1548
1553
  emits: ["update:checked"],
1549
1554
  setup(t, { emit: n }) {
1550
- const d = n, e = t, a = o(!1), u = o(!1), l = o(null);
1555
+ const d = n, e = t, a = u(!1), c = u(!1), l = u(null);
1551
1556
  U(() => {
1552
1557
  a.value = !0;
1553
- }), R(
1558
+ }), z(
1554
1559
  () => [l.value, a.value],
1555
1560
  () => {
1556
1561
  e.active && a.value && l.value && (l.value.click(), a.value = !1);
@@ -1560,42 +1565,42 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1560
1565
  flush: "post"
1561
1566
  }
1562
1567
  );
1563
- function c(i) {
1568
+ function p(i) {
1564
1569
  var h;
1565
- e.onChange && e.onChange(i), e.change && e.change(i), u.value = (h = i.target) == null ? void 0 : h.checked, ae(d, i, "checked");
1570
+ e.onChange && e.onChange(i), e.change && e.change(i), c.value = (h = i.target) == null ? void 0 : h.checked, ae(d, i, "checked");
1566
1571
  }
1567
1572
  return (i, h) => (m(), g("li", {
1568
1573
  role: "none",
1569
- class: N(r(F)("db-tab-item", e.class))
1574
+ class: N(v(A)("db-tab-item", e.class))
1570
1575
  }, [
1571
- _("label", {
1576
+ I("label", {
1572
1577
  for: i.id,
1573
1578
  "data-icon": i.icon,
1574
1579
  "data-icon-after": i.iconAfter,
1575
- "data-hide-icon": r(P)(i.showIcon),
1576
- "data-hide-icon-after": r(P)(i.showIcon),
1580
+ "data-hide-icon": v(P)(i.showIcon),
1581
+ "data-hide-icon-after": v(P)(i.showIcon),
1577
1582
  "data-no-text": i.noText
1578
1583
  }, [
1579
- _("input", {
1584
+ I("input", {
1580
1585
  type: "radio",
1581
1586
  role: "tab",
1582
1587
  disabled: i.disabled,
1583
- "aria-selected": u.value,
1588
+ "aria-selected": c.value,
1584
1589
  "aria-controls": i.controls,
1585
1590
  checked: i.checked,
1586
1591
  ref_key: "_ref",
1587
1592
  ref: l,
1588
1593
  id: i.id,
1589
- onChange: h[0] || (h[0] = async (s) => c(s))
1590
- }, null, 40, Da),
1591
- i.label ? (m(), g(T, { key: 0 }, [
1592
- E(w(i.label), 1)
1593
- ], 64)) : D("", !0),
1594
- I(i.$slots, "default")
1595
- ], 8, Ca)
1594
+ onInput: h[0] || (h[0] = async (s) => p(s))
1595
+ }, null, 40, Ca),
1596
+ i.label ? (m(), g(C, { key: 0 }, [
1597
+ L(k(i.label), 1)
1598
+ ], 64)) : M("", !0),
1599
+ w(i.$slots, "default")
1600
+ ], 8, Sa)
1596
1601
  ], 2));
1597
1602
  }
1598
- }), Ra = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], za = ["title"], Un = /* @__PURE__ */ A({
1603
+ }), Ma = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], za = ["title"], Mn = /* @__PURE__ */ E({
1599
1604
  __name: "tag",
1600
1605
  props: {
1601
1606
  behavior: { default: void 0 },
@@ -1620,15 +1625,15 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1620
1625
  content: {}
1621
1626
  },
1622
1627
  setup(t) {
1623
- const n = t, d = o(!1), e = o(null);
1624
- d.value = !0, R(
1628
+ const n = t, d = u(!1), e = u(null);
1629
+ d.value = !0, z(
1625
1630
  () => [d.value, n.disabled, e.value],
1626
1631
  () => {
1627
- var l, c;
1632
+ var l, p;
1628
1633
  if (d.value && e.value && n.disabled !== void 0) {
1629
1634
  const i = (l = e.value) == null ? void 0 : l.querySelector(
1630
1635
  "button:not(.db-tab-remove-button)"
1631
- ), h = (c = e.value) == null ? void 0 : c.querySelector("input");
1636
+ ), h = (p = e.value) == null ? void 0 : p.querySelector("input");
1632
1637
  for (const s of [i, h])
1633
1638
  s && (s.disabled = n.disabled);
1634
1639
  }
@@ -1641,28 +1646,28 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1641
1646
  function a() {
1642
1647
  n.onRemove && n.onRemove();
1643
1648
  }
1644
- function u() {
1649
+ function c() {
1645
1650
  return n.removeButton ? n.removeButton : "Remove tag";
1646
1651
  }
1647
- return (l, c) => (m(), g("div", {
1652
+ return (l, p) => (m(), g("div", {
1648
1653
  ref_key: "_ref",
1649
1654
  ref: e,
1650
1655
  id: l.id,
1651
- class: N(r(F)("db-tag", n.class)),
1652
- "data-disabled": r(G)(l.disabled),
1656
+ class: N(v(A)("db-tag", n.class)),
1657
+ "data-disabled": v(V)(l.disabled),
1653
1658
  "data-semantic": l.semantic,
1654
1659
  "data-emphasis": l.emphasis,
1655
1660
  "data-icon": l.icon,
1656
- "data-show-check-state": r(G)(l.showCheckState ?? !0),
1657
- "data-hide-icon": r(P)(l.showIcon),
1658
- "data-no-text": r(G)(l.noText),
1659
- "data-overflow": r(G)(l.overflow)
1661
+ "data-show-check-state": v(V)(l.showCheckState ?? !0),
1662
+ "data-hide-icon": v(P)(l.showIcon),
1663
+ "data-no-text": v(V)(l.noText),
1664
+ "data-overflow": v(V)(l.overflow)
1660
1665
  }, [
1661
- I(l.$slots, "content"),
1662
- I(l.$slots, "default"),
1663
- l.text ? (m(), g(T, { key: 0 }, [
1664
- E(w(l.text), 1)
1665
- ], 64)) : D("", !0),
1666
+ w(l.$slots, "content"),
1667
+ w(l.$slots, "default"),
1668
+ l.text ? (m(), g(C, { key: 0 }, [
1669
+ L(k(l.text), 1)
1670
+ ], 64)) : M("", !0),
1666
1671
  l.behavior === "removable" ? (m(), g("button", {
1667
1672
  key: 1,
1668
1673
  class: "db-button db-tab-remove-button",
@@ -1670,15 +1675,15 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1670
1675
  "data-size": "small",
1671
1676
  "data-no-text": "true",
1672
1677
  "data-variant": "ghost",
1673
- onClick: c[0] || (c[0] = async (i) => a()),
1674
- title: u()
1675
- }, w(u()), 9, za)) : D("", !0)
1676
- ], 10, Ra));
1678
+ onClick: p[0] || (p[0] = async (i) => a()),
1679
+ title: c()
1680
+ }, k(c()), 9, za)) : M("", !0)
1681
+ ], 10, Ma));
1677
1682
  }
1678
- }), Ua = ["data-variant", "data-hide-label"], Pa = ["for"], Ga = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Va = {
1683
+ }), Ra = ["data-variant", "data-hide-label"], Ua = ["for"], Pa = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Va = {
1679
1684
  "data-visually-hidden": "true",
1680
1685
  role: "status"
1681
- }, Pn = /* @__PURE__ */ A({
1686
+ }, zn = /* @__PURE__ */ E({
1682
1687
  __name: "textarea",
1683
1688
  props: {
1684
1689
  cols: { default: void 0 },
@@ -1722,23 +1727,23 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1722
1727
  },
1723
1728
  emits: ["update:value"],
1724
1729
  setup(t, { emit: n }) {
1725
- const d = n, e = t, a = o(void 0), u = o(void 0), l = o(void 0), c = o(void 0), i = o(""), h = o(""), s = o(""), B = o(null);
1730
+ const d = n, e = t, a = u(void 0), c = u(void 0), l = u(void 0), p = u(void 0), i = u(""), h = u(""), s = u(""), B = u(null);
1726
1731
  U(() => {
1727
- const p = e.id ?? `textarea-${V()}`;
1728
- a.value = p, u.value = p + K, l.value = p + J, c.value = p + Q;
1729
- }), R(
1732
+ const o = e.id ?? `textarea-${G()}`;
1733
+ a.value = o, c.value = o + K, l.value = o + J, p.value = o + Q;
1734
+ }), z(
1730
1735
  () => [a.value],
1731
1736
  () => {
1732
1737
  if (a.value) {
1733
- const p = a.value + K;
1734
- u.value = p, l.value = a.value + J, c.value = a.value + Q, q(e.message, e.showMessage) && (i.value = p);
1738
+ const o = a.value + K;
1739
+ c.value = o, l.value = a.value + J, p.value = a.value + Q, q(e.message, e.showMessage) && (i.value = o);
1735
1740
  }
1736
1741
  },
1737
1742
  {
1738
1743
  immediate: !0,
1739
1744
  flush: "post"
1740
1745
  }
1741
- ), R(
1746
+ ), z(
1742
1747
  () => [e.value],
1743
1748
  () => {
1744
1749
  h.value = e.value;
@@ -1748,93 +1753,93 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1748
1753
  flush: "post"
1749
1754
  }
1750
1755
  );
1751
- function y(p) {
1752
- h.value = p.target.value, e.onInput && e.onInput(p), e.input && e.input(p);
1756
+ function $(o) {
1757
+ h.value = o.target.value, e.onInput && e.onInput(o), e.input && e.input(o);
1753
1758
  }
1754
- function L(p) {
1755
- var $, f, M;
1756
- e.onChange && e.onChange(p), e.change && e.change(p), ae(d, p), !(($ = B.value) != null && $.validity.valid) || e.validation === "invalid" ? (i.value = c.value, Y() && (s.value = e.invalidMessage ?? ((f = B.value) == null ? void 0 : f.validationMessage) ?? x, H(() => s.value = "", 1e3))) : e.validation === "valid" || (M = B.value) != null && M.validity.valid && (e.required || e.minLength || e.maxLength) ? (i.value = l.value, Y() && (s.value = e.validMessage ?? Z, H(() => s.value = "", 1e3))) : q(e.message, e.showMessage) ? i.value = u.value : i.value = "";
1759
+ function D(o) {
1760
+ var y, r, T;
1761
+ e.onChange && e.onChange(o), e.change && e.change(o), ae(d, o), !((y = B.value) != null && y.validity.valid) || e.validation === "invalid" ? (i.value = p.value, Y() && (s.value = e.invalidMessage ?? ((r = B.value) == null ? void 0 : r.validationMessage) ?? x, H(() => s.value = "", 1e3))) : e.validation === "valid" || (T = B.value) != null && T.validity.valid && (e.required || e.minLength || e.maxLength) ? (i.value = l.value, Y() && (s.value = e.validMessage ?? Z, H(() => s.value = "", 1e3))) : q(e.message, e.showMessage) ? i.value = c.value : i.value = "";
1757
1762
  }
1758
- function k(p) {
1759
- e.onBlur && e.onBlur(p), e.blur && e.blur(p);
1763
+ function _(o) {
1764
+ e.onBlur && e.onBlur(o), e.blur && e.blur(o);
1760
1765
  }
1761
- function v(p) {
1762
- e.onFocus && e.onFocus(p), e.focus && e.focus(p);
1766
+ function f(o) {
1767
+ e.onFocus && e.onFocus(o), e.focus && e.focus(o);
1763
1768
  }
1764
- return (p, $) => (m(), g("div", {
1765
- class: N(r(F)("db-textarea", e.class)),
1766
- "data-variant": p.variant,
1767
- "data-hide-label": r(P)(p.showLabel)
1769
+ return (o, y) => (m(), g("div", {
1770
+ class: N(v(A)("db-textarea", e.class)),
1771
+ "data-variant": o.variant,
1772
+ "data-hide-label": v(P)(o.showLabel)
1768
1773
  }, [
1769
- _("label", { for: a.value }, w(p.label ?? r(le)), 9, Pa),
1770
- _("textarea", {
1771
- "aria-invalid": p.validation === "invalid",
1772
- "data-custom-validity": p.validation,
1774
+ I("label", { for: a.value }, k(o.label ?? v(le)), 9, Ua),
1775
+ I("textarea", {
1776
+ "aria-invalid": o.validation === "invalid",
1777
+ "data-custom-validity": o.validation,
1773
1778
  ref_key: "_ref",
1774
1779
  ref: B,
1775
1780
  id: a.value,
1776
- "data-resize": p.resize,
1777
- disabled: p.disabled,
1778
- required: p.required,
1779
- readOnly: p.readOnly,
1780
- form: p.form,
1781
- maxLength: p.maxLength,
1782
- minLength: p.minLength,
1783
- name: p.name,
1784
- wrap: p.wrap,
1785
- spellcheck: p.spellCheck,
1786
- autocomplete: p.autocomplete,
1787
- onInput: $[0] || ($[0] = async (f) => y(f)),
1788
- onChange: $[1] || ($[1] = async (f) => L(f)),
1789
- onBlur: $[2] || ($[2] = async (f) => k(f)),
1790
- onFocus: $[3] || ($[3] = async (f) => v(f)),
1791
- value: p.value ?? h.value,
1781
+ "data-resize": o.resize,
1782
+ disabled: o.disabled,
1783
+ required: o.required,
1784
+ readOnly: o.readOnly,
1785
+ form: o.form,
1786
+ maxLength: o.maxLength,
1787
+ minLength: o.minLength,
1788
+ name: o.name,
1789
+ wrap: o.wrap,
1790
+ spellcheck: o.spellCheck,
1791
+ autocomplete: o.autocomplete,
1792
+ onInput: y[0] || (y[0] = async (r) => $(r)),
1793
+ onChange: y[1] || (y[1] = async (r) => D(r)),
1794
+ onBlur: y[2] || (y[2] = async (r) => _(r)),
1795
+ onFocus: y[3] || (y[3] = async (r) => f(r)),
1796
+ value: o.value ?? h.value,
1792
1797
  "aria-describedby": i.value,
1793
- placeholder: p.placeholder ?? r(fe),
1794
- rows: p.rows ?? r(Ae),
1795
- cols: p.cols
1796
- }, null, 40, Ga),
1797
- r(q)(p.message, p.showMessage) ? (m(), X(O, {
1798
+ placeholder: o.placeholder ?? v(fe),
1799
+ rows: o.rows ?? v(Ne),
1800
+ cols: o.cols
1801
+ }, null, 40, Pa),
1802
+ v(q)(o.message, o.showMessage) ? (m(), X(W, {
1798
1803
  key: 0,
1799
1804
  size: "small",
1800
- icon: p.messageIcon,
1801
- id: u.value
1805
+ icon: o.messageIcon,
1806
+ id: c.value
1802
1807
  }, {
1803
- default: z(() => [
1804
- E(w(p.message), 1)
1808
+ default: R(() => [
1809
+ L(k(o.message), 1)
1805
1810
  ]),
1806
1811
  _: 1
1807
- }, 8, ["icon", "id"])) : D("", !0),
1808
- W(O, {
1812
+ }, 8, ["icon", "id"])) : M("", !0),
1813
+ O(W, {
1809
1814
  size: "small",
1810
1815
  semantic: "successful",
1811
1816
  id: l.value
1812
1817
  }, {
1813
- default: z(() => [
1814
- E(w(p.validMessage ?? r(Z)), 1)
1818
+ default: R(() => [
1819
+ L(k(o.validMessage ?? v(Z)), 1)
1815
1820
  ]),
1816
1821
  _: 1
1817
1822
  }, 8, ["id"]),
1818
- W(O, {
1823
+ O(W, {
1819
1824
  size: "small",
1820
1825
  semantic: "critical",
1821
- id: c.value
1826
+ id: p.value
1822
1827
  }, {
1823
- default: z(() => {
1824
- var f;
1828
+ default: R(() => {
1829
+ var r;
1825
1830
  return [
1826
- E(w(p.invalidMessage ?? ((f = B.value) == null ? void 0 : f.validationMessage) ?? r(x)), 1)
1831
+ L(k(o.invalidMessage ?? ((r = B.value) == null ? void 0 : r.validationMessage) ?? v(x)), 1)
1827
1832
  ];
1828
1833
  }),
1829
1834
  _: 1
1830
1835
  }, 8, ["id"]),
1831
- _("span", Va, w(s.value), 1)
1832
- ], 10, Ua));
1836
+ I("span", Va, k(s.value), 1)
1837
+ ], 10, Ra));
1833
1838
  }
1834
- }), qa = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "aria-disabled"], Wa = ["aria-haspopup", "aria-expanded", "disabled"], Oa = ["id"], Xa = {
1839
+ }), Ga = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "aria-disabled"], qa = ["aria-haspopup", "aria-expanded", "disabled"], Oa = ["data-auto-close", "id"], Wa = {
1835
1840
  key: 0,
1836
1841
  class: "db-mobile-navigation-back"
1837
- }, Gn = /* @__PURE__ */ A({
1842
+ }, Rn = /* @__PURE__ */ E({
1838
1843
  __name: "navigation-item",
1839
1844
  props: {
1840
1845
  active: { type: Boolean, default: void 0 },
@@ -1856,111 +1861,118 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1856
1861
  text: { default: void 0 }
1857
1862
  },
1858
1863
  setup(t) {
1859
- const n = t, d = o(!1), e = o(!1), a = o(!0), u = o(!1), l = o(
1860
- "sub-navigation-" + V()
1861
- ), c = o(void 0), i = o(null);
1864
+ const n = t, d = u(!1), e = u(!1), a = u(!0), c = u(!1), l = u(!1), p = u(
1865
+ "sub-navigation-" + G()
1866
+ ), i = u(void 0), h = u(null);
1862
1867
  U(() => {
1863
1868
  d.value = !0;
1864
- }), R(
1869
+ }), z(
1865
1870
  () => [n.subNavigationExpanded],
1866
1871
  () => {
1867
- n.subNavigationExpanded !== void 0 && (u.value = !!n.subNavigationExpanded);
1872
+ n.subNavigationExpanded !== void 0 && (c.value = !!n.subNavigationExpanded);
1868
1873
  },
1869
1874
  {
1870
1875
  immediate: !0,
1871
1876
  flush: "post"
1872
1877
  }
1873
- ), R(
1878
+ ), z(
1874
1879
  () => [d.value],
1875
1880
  () => {
1876
- B();
1881
+ D();
1877
1882
  },
1878
1883
  {
1879
1884
  immediate: !0,
1880
1885
  flush: "post"
1881
1886
  }
1882
1887
  );
1883
- function h(y) {
1884
- n.onClick && n.onClick(y), e.value && (u.value = !0);
1888
+ function s(_) {
1889
+ be(_) && (l.value = !0, H(() => {
1890
+ l.value = !1;
1891
+ }, 300));
1885
1892
  }
1886
- function s(y) {
1887
- y.stopPropagation(), u.value = !1;
1893
+ function B(_) {
1894
+ n.onClick && n.onClick(_), e.value && (c.value = !0);
1888
1895
  }
1889
- function B() {
1890
- var y;
1891
- if (d.value && document && l.value) {
1892
- const L = document == null ? void 0 : document.getElementById(
1893
- l.value
1896
+ function $(_) {
1897
+ _.stopPropagation(), c.value = !1;
1898
+ }
1899
+ function D() {
1900
+ var _;
1901
+ if (d.value && document && p.value) {
1902
+ const f = document == null ? void 0 : document.getElementById(
1903
+ p.value
1894
1904
  );
1895
- L && (((y = L.children) == null ? void 0 : y.length) > 0 ? (e.value = !0, c.value || (c.value = new Je(
1896
- i.value,
1897
- L
1905
+ f && (((_ = f.children) == null ? void 0 : _.length) > 0 ? (e.value = !0, i.value || (i.value = new Ke(
1906
+ h.value,
1907
+ f
1898
1908
  ))) : a.value = !1);
1899
1909
  }
1900
1910
  }
1901
- return (y, L) => (m(), g("li", {
1911
+ return (_, f) => (m(), g("li", {
1902
1912
  ref_key: "_ref",
1903
- ref: i,
1904
- id: y.id,
1905
- onMouseover: L[1] || (L[1] = async (k) => {
1906
- var v;
1907
- return (v = c.value) == null ? void 0 : v.enableFollow();
1913
+ ref: h,
1914
+ id: _.id,
1915
+ onMouseover: f[2] || (f[2] = async (o) => {
1916
+ var y;
1917
+ return (y = i.value) == null ? void 0 : y.enableFollow();
1908
1918
  }),
1909
- onMouseleave: L[2] || (L[2] = async (k) => {
1910
- var v;
1911
- return (v = c.value) == null ? void 0 : v.disableFollow();
1919
+ onMouseleave: f[3] || (f[3] = async (o) => {
1920
+ var y;
1921
+ return (y = i.value) == null ? void 0 : y.disableFollow();
1912
1922
  }),
1913
- onMousemove: L[3] || (L[3] = async (k) => {
1914
- var v;
1915
- return (v = c.value) == null ? void 0 : v.followByMouseEvent(k);
1923
+ onMousemove: f[4] || (f[4] = async (o) => {
1924
+ var y;
1925
+ return (y = i.value) == null ? void 0 : y.followByMouseEvent(o);
1916
1926
  }),
1917
- class: N(r(F)("db-navigation-item", n.class)),
1918
- "data-width": y.width,
1919
- "data-icon": y.icon,
1920
- "data-hide-icon": r(P)(y.showIcon),
1921
- "data-active": y.active,
1922
- "aria-disabled": r(G)(y.disabled)
1927
+ class: N(v(A)("db-navigation-item", n.class)),
1928
+ "data-width": _.width,
1929
+ "data-icon": _.icon,
1930
+ "data-hide-icon": v(P)(_.showIcon),
1931
+ "data-active": _.active,
1932
+ "aria-disabled": v(V)(_.disabled)
1923
1933
  }, [
1924
- a.value ? D("", !0) : (m(), g(T, { key: 0 }, [
1925
- y.text ? (m(), g(T, { key: 0 }, [
1926
- E(w(y.text), 1)
1927
- ], 64)) : I(y.$slots, "default", { key: 1 })
1934
+ a.value ? M("", !0) : (m(), g(C, { key: 0 }, [
1935
+ _.text ? (m(), g(C, { key: 0 }, [
1936
+ L(k(_.text), 1)
1937
+ ], 64)) : w(_.$slots, "default", { key: 1 })
1928
1938
  ], 64)),
1929
- a.value ? (m(), g(T, { key: 1 }, [
1930
- _("button", {
1939
+ a.value ? (m(), g(C, { key: 1 }, [
1940
+ I("button", {
1931
1941
  class: "db-navigation-item-expand-button",
1932
1942
  "aria-haspopup": e.value,
1933
- "aria-expanded": u.value,
1934
- disabled: y.disabled,
1935
- onClick: L[0] || (L[0] = async (k) => h(k))
1943
+ "aria-expanded": c.value,
1944
+ disabled: _.disabled,
1945
+ onClick: f[0] || (f[0] = async (o) => B(o))
1936
1946
  }, [
1937
- y.text ? (m(), g(T, { key: 0 }, [
1938
- E(w(y.text), 1)
1939
- ], 64)) : I(y.$slots, "default", { key: 1 })
1940
- ], 8, Wa),
1941
- _("menu", {
1947
+ _.text ? (m(), g(C, { key: 0 }, [
1948
+ L(k(_.text), 1)
1949
+ ], 64)) : w(_.$slots, "default", { key: 1 })
1950
+ ], 8, qa),
1951
+ I("menu", {
1942
1952
  class: "db-sub-navigation",
1943
- id: l.value
1953
+ "data-auto-close": l.value,
1954
+ id: p.value,
1955
+ onClick: f[1] || (f[1] = async (o) => s(o))
1944
1956
  }, [
1945
- e.value ? (m(), g("div", Xa, [
1946
- W(te, {
1957
+ e.value ? (m(), g("div", Wa, [
1958
+ O(de, {
1947
1959
  icon: "arrow_left",
1948
1960
  variant: "ghost",
1949
- id: y.backButtonId,
1950
- onClick: (k) => s(k)
1961
+ id: _.backButtonId,
1962
+ onClick: (o) => $(o)
1951
1963
  }, {
1952
- default: z(() => [
1953
- E(w(y.backButtonText ?? r($e)), 1)
1964
+ default: R(() => [
1965
+ L(k(_.backButtonText ?? v($e)), 1)
1954
1966
  ]),
1955
1967
  _: 1
1956
1968
  }, 8, ["id", "onClick"])
1957
- ])) : D("", !0),
1958
- I(y.$slots, "sub-navigation")
1969
+ ])) : M("", !0),
1970
+ w(_.$slots, "sub-navigation")
1959
1971
  ], 8, Oa)
1960
- ], 64)) : D("", !0)
1961
- ], 42, qa));
1972
+ ], 64)) : M("", !0)
1973
+ ], 42, Ga));
1962
1974
  }
1963
- }), Ha = ["id"], ja = ["aria-disabled", "open"], Ya = /* @__PURE__ */ A({
1975
+ }), Xa = ["id"], Ha = ["aria-disabled", "open"], ja = /* @__PURE__ */ E({
1964
1976
  __name: "accordion-item",
1965
1977
  props: {
1966
1978
  defaultOpen: { type: Boolean, default: void 0 },
@@ -1977,42 +1989,42 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
1977
1989
  onToggle: { type: Function, default: void 0 }
1978
1990
  },
1979
1991
  setup(t) {
1980
- const n = t, d = o(ee), e = o(!1), a = o(null);
1992
+ const n = t, d = u(ee), e = u(!1), a = u(null);
1981
1993
  U(() => {
1982
- d.value = n.id || "accordion-item-" + V(), n.defaultOpen && (e.value = n.defaultOpen);
1994
+ d.value = n.id || "accordion-item-" + G(), n.defaultOpen && (e.value = n.defaultOpen);
1983
1995
  });
1984
- function u(l) {
1996
+ function c(l) {
1985
1997
  l == null || l.preventDefault();
1986
- const c = !e.value;
1987
- n.onToggle && n.onToggle(c), e.value = c;
1998
+ const p = !e.value;
1999
+ n.onToggle && n.onToggle(p), e.value = p;
1988
2000
  }
1989
- return (l, c) => (m(), g("li", {
2001
+ return (l, p) => (m(), g("li", {
1990
2002
  id: d.value,
1991
- class: N(r(F)("db-accordion-item", n.class))
2003
+ class: N(v(A)("db-accordion-item", n.class))
1992
2004
  }, [
1993
- _("details", {
1994
- "aria-disabled": r(G)(l.disabled),
2005
+ I("details", {
2006
+ "aria-disabled": v(V)(l.disabled),
1995
2007
  ref_key: "_ref",
1996
2008
  ref: a,
1997
2009
  open: e.value
1998
2010
  }, [
1999
- _("summary", {
2000
- onClick: c[0] || (c[0] = async (i) => u(i))
2011
+ I("summary", {
2012
+ onClick: p[0] || (p[0] = async (i) => c(i))
2001
2013
  }, [
2002
- l.headlinePlain ? (m(), g(T, { key: 0 }, [
2003
- E(w(l.headlinePlain), 1)
2004
- ], 64)) : D("", !0),
2005
- l.headlinePlain ? D("", !0) : I(l.$slots, "headline", { key: 1 })
2014
+ l.headlinePlain ? (m(), g(C, { key: 0 }, [
2015
+ L(k(l.headlinePlain), 1)
2016
+ ], 64)) : M("", !0),
2017
+ l.headlinePlain ? M("", !0) : w(l.$slots, "headline", { key: 1 })
2006
2018
  ]),
2007
- _("div", null, [
2008
- l.text ? (m(), g(T, { key: 0 }, [
2009
- E(w(l.text), 1)
2010
- ], 64)) : I(l.$slots, "default", { key: 1 })
2019
+ I("div", null, [
2020
+ l.text ? (m(), g(C, { key: 0 }, [
2021
+ L(k(l.text), 1)
2022
+ ], 64)) : w(l.$slots, "default", { key: 1 })
2011
2023
  ])
2012
- ], 8, ja)
2013
- ], 10, Ha));
2024
+ ], 8, Ha)
2025
+ ], 10, Xa));
2014
2026
  }
2015
- }), Ka = ["id", "data-variant"], Vn = /* @__PURE__ */ A({
2027
+ }), Ya = ["id", "data-variant"], Un = /* @__PURE__ */ E({
2016
2028
  __name: "accordion",
2017
2029
  props: {
2018
2030
  behavior: { default: void 0 },
@@ -2029,10 +2041,10 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2029
2041
  autofocus: { type: Boolean }
2030
2042
  },
2031
2043
  setup(t) {
2032
- const n = t, d = o(ee), e = o(""), a = o(!1), u = o(!1), l = o(null);
2044
+ const n = t, d = u(ee), e = u(""), a = u(!1), c = u(!1), l = u(null);
2033
2045
  U(() => {
2034
- d.value = n.id || "accordion-" + V(), a.value = !0, u.value = !0;
2035
- }), R(
2046
+ d.value = n.id || "accordion-" + G(), a.value = !0, c.value = !0;
2047
+ }), z(
2036
2048
  () => [a.value, n.name, n.behavior, d.value],
2037
2049
  () => {
2038
2050
  a.value && (n.behavior === "single" ? n.name ? e.value !== n.name && (e.value = n.name) : e.value !== d.value && d.value && (e.value = d.value) : e.value = "");
@@ -2041,7 +2053,7 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2041
2053
  immediate: !0,
2042
2054
  flush: "post"
2043
2055
  }
2044
- ), R(
2056
+ ), z(
2045
2057
  () => [l.value, e.value],
2046
2058
  () => {
2047
2059
  if (l.value) {
@@ -2055,23 +2067,23 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2055
2067
  immediate: !0,
2056
2068
  flush: "post"
2057
2069
  }
2058
- ), R(
2059
- () => [l.value, u.value, n.initOpenIndex],
2070
+ ), z(
2071
+ () => [l.value, c.value, n.initOpenIndex],
2060
2072
  () => {
2061
2073
  var i;
2062
- if (l.value && u.value) {
2074
+ if (l.value && c.value) {
2063
2075
  if (n.initOpenIndex && ((i = n.initOpenIndex) == null ? void 0 : i.length) > 0) {
2064
2076
  const h = l.value.getElementsByTagName("details");
2065
2077
  if (h) {
2066
2078
  const s = n.behavior === "single" && n.initOpenIndex.length > 1 ? [n.initOpenIndex[0]] : n.initOpenIndex;
2067
2079
  Array.from(h).forEach(
2068
- (B, y) => {
2069
- s.includes(y) && (B.open = !0);
2080
+ (B, $) => {
2081
+ s.includes($) && (B.open = !0);
2070
2082
  }
2071
2083
  );
2072
2084
  }
2073
2085
  }
2074
- u.value = !1;
2086
+ c.value = !1;
2075
2087
  }
2076
2088
  },
2077
2089
  {
@@ -2079,7 +2091,7 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2079
2091
  flush: "post"
2080
2092
  }
2081
2093
  );
2082
- function c(i) {
2094
+ function p(i) {
2083
2095
  try {
2084
2096
  return typeof i == "string" ? JSON.parse(i) : i;
2085
2097
  } catch (h) {
@@ -2091,19 +2103,19 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2091
2103
  ref_key: "_ref",
2092
2104
  ref: l,
2093
2105
  id: d.value,
2094
- class: N(r(F)("db-accordion", n.class)),
2106
+ class: N(v(A)("db-accordion", n.class)),
2095
2107
  "data-variant": i.variant
2096
2108
  }, [
2097
- i.items ? D("", !0) : I(i.$slots, "default", { key: 0 }),
2098
- i.items ? (m(!0), g(T, { key: 1 }, ne(c(i.items), (s, B) => (m(), X(Ya, {
2109
+ i.items ? M("", !0) : w(i.$slots, "default", { key: 0 }),
2110
+ i.items ? (m(!0), g(C, { key: 1 }, te(p(i.items), (s, B) => (m(), X(ja, {
2099
2111
  key: `accordion-item-${B}`,
2100
2112
  headlinePlain: s.headlinePlain,
2101
2113
  disabled: s.disabled,
2102
2114
  text: s.text
2103
- }, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : D("", !0)
2104
- ], 10, Ka));
2115
+ }, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : M("", !0)
2116
+ ], 10, Ya));
2105
2117
  }
2106
- }), Ja = ["id", "aria-labelledby"], qn = /* @__PURE__ */ A({
2118
+ }), Ka = ["id", "aria-labelledby"], Pn = /* @__PURE__ */ E({
2107
2119
  __name: "navigation",
2108
2120
  props: {
2109
2121
  children: { default: void 0 },
@@ -2115,22 +2127,22 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2115
2127
  labelledBy: { default: void 0 }
2116
2128
  },
2117
2129
  setup(t) {
2118
- const n = t, d = o(ee), e = o(null);
2130
+ const n = t, d = u(ee), e = u(null);
2119
2131
  return U(() => {
2120
- d.value = n.id || "navigation-" + V();
2121
- }), (a, u) => (m(), g("nav", {
2132
+ d.value = n.id || "navigation-" + G();
2133
+ }), (a, c) => (m(), g("nav", {
2122
2134
  ref_key: "_ref",
2123
2135
  ref: e,
2124
2136
  id: d.value,
2125
2137
  "aria-labelledby": a.labelledBy,
2126
- class: N(r(F)("db-navigation", n.class))
2138
+ class: N(v(A)("db-navigation", n.class))
2127
2139
  }, [
2128
- _("menu", null, [
2129
- I(a.$slots, "default")
2140
+ I("menu", null, [
2141
+ w(a.$slots, "default")
2130
2142
  ])
2131
- ], 10, Ja));
2143
+ ], 10, Ka));
2132
2144
  }
2133
- }), Qa = ["id"], Za = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Wn = /* @__PURE__ */ A({
2145
+ }), Ja = ["id"], Qa = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Vn = /* @__PURE__ */ E({
2134
2146
  __name: "popover",
2135
2147
  props: {
2136
2148
  open: { type: Boolean, default: void 0 },
@@ -2149,14 +2161,14 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2149
2161
  width: { default: void 0 }
2150
2162
  },
2151
2163
  setup(t) {
2152
- const n = t, d = o(!1), e = o(!1), a = o(null);
2164
+ const n = t, d = u(!1), e = u(!1), a = u(null);
2153
2165
  U(() => {
2154
2166
  d.value = !0;
2155
- }), R(
2167
+ }), z(
2156
2168
  () => [a.value, d.value],
2157
2169
  () => {
2158
2170
  if (a.value && d.value) {
2159
- const i = c();
2171
+ const i = p();
2160
2172
  i && (i.ariaHasPopup = "true"), d.value = !1;
2161
2173
  }
2162
2174
  },
@@ -2164,11 +2176,11 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2164
2176
  immediate: !0,
2165
2177
  flush: "post"
2166
2178
  }
2167
- ), R(
2179
+ ), z(
2168
2180
  () => [a.value, e.value],
2169
2181
  () => {
2170
2182
  if (a.value) {
2171
- const i = c();
2183
+ const i = p();
2172
2184
  i && (i.ariaExpanded = (!!e.value).toString());
2173
2185
  }
2174
2186
  },
@@ -2177,7 +2189,7 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2177
2189
  flush: "post"
2178
2190
  }
2179
2191
  );
2180
- function u() {
2192
+ function c() {
2181
2193
  if (e.value = !0, !a.value) return;
2182
2194
  const i = a.value.querySelector("article");
2183
2195
  i && se(i);
@@ -2186,7 +2198,7 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2186
2198
  const h = i.target;
2187
2199
  (!h.parentNode || h.parentNode.querySelector(":focus") !== h && h.parentNode.querySelector(":focus-within") !== h && h.parentNode.querySelector(":hover") !== h) && (e.value = !1);
2188
2200
  }
2189
- function c() {
2201
+ function p() {
2190
2202
  var i;
2191
2203
  if (a.value) {
2192
2204
  const h = Array.from(a.value.children);
@@ -2201,28 +2213,28 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2201
2213
  ref_key: "_ref",
2202
2214
  ref: a,
2203
2215
  id: i.id,
2204
- class: N(r(F)("db-popover", n.class)),
2205
- onFocus: h[0] || (h[0] = async (s) => u()),
2216
+ class: N(v(A)("db-popover", n.class)),
2217
+ onFocus: h[0] || (h[0] = async (s) => c()),
2206
2218
  onBlur: h[1] || (h[1] = async (s) => l(s)),
2207
- onMouseenter: h[2] || (h[2] = async (s) => u()),
2219
+ onMouseenter: h[2] || (h[2] = async (s) => c()),
2208
2220
  onMouseleave: h[3] || (h[3] = async (s) => l(s))
2209
2221
  }, [
2210
- I(i.$slots, "trigger"),
2211
- _("article", {
2222
+ w(i.$slots, "trigger"),
2223
+ I("article", {
2212
2224
  class: "db-popover-content",
2213
2225
  "data-spacing": i.spacing,
2214
- "data-gap": r(G)(i.gap),
2215
- "data-animation": r(G)(i.animation ?? !0),
2226
+ "data-gap": v(V)(i.gap),
2227
+ "data-animation": v(V)(i.animation ?? !0),
2216
2228
  "data-open": i.open,
2217
2229
  "data-delay": i.delay,
2218
2230
  "data-width": i.width,
2219
2231
  "data-placement": i.placement
2220
2232
  }, [
2221
- I(i.$slots, "default")
2222
- ], 8, Za)
2223
- ], 42, Qa));
2233
+ w(i.$slots, "default")
2234
+ ], 8, Qa)
2235
+ ], 42, Ja));
2224
2236
  }
2225
- }), xa = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], On = /* @__PURE__ */ A({
2237
+ }), Za = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], Gn = /* @__PURE__ */ E({
2226
2238
  __name: "tooltip",
2227
2239
  props: {
2228
2240
  showArrow: { type: Boolean, default: void 0 },
@@ -2239,17 +2251,17 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2239
2251
  width: { default: void 0 }
2240
2252
  },
2241
2253
  setup(t) {
2242
- const n = t, d = o(ee), e = o(!1), a = o(null);
2254
+ const n = t, d = u(ee), e = u(!1), a = u(null);
2243
2255
  U(() => {
2244
- d.value = n.id || "tooltip-" + V(), e.value = !0;
2245
- }), R(
2256
+ d.value = n.id || "tooltip-" + G(), e.value = !0;
2257
+ }), z(
2246
2258
  () => [a.value, e.value],
2247
2259
  () => {
2248
2260
  if (a.value && e.value && d.value) {
2249
- let c = a.value.parentElement;
2250
- c && c.localName.includes("tooltip") && (c = c.parentElement), c && (["mouseenter", "focus"].forEach((i) => {
2251
- c.addEventListener(i, () => l());
2252
- }), c.setAttribute("data-has-tooltip", "true"), c.setAttribute("aria-describedby", d.value)), e.value = !1;
2261
+ let p = a.value.parentElement;
2262
+ p && p.localName.includes("tooltip") && (p = p.parentElement), p && (["mouseenter", "focus"].forEach((i) => {
2263
+ p.addEventListener(i, () => l());
2264
+ }), p.setAttribute("data-has-tooltip", "true"), p.setAttribute("aria-describedby", d.value)), e.value = !1;
2253
2265
  }
2254
2266
  },
2255
2267
  {
@@ -2257,32 +2269,32 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2257
2269
  flush: "post"
2258
2270
  }
2259
2271
  );
2260
- function u(c) {
2261
- c.stopPropagation();
2272
+ function c(p) {
2273
+ p.stopPropagation();
2262
2274
  }
2263
2275
  function l() {
2264
2276
  a.value && se(a.value);
2265
2277
  }
2266
- return (c, i) => (m(), g("i", {
2278
+ return (p, i) => (m(), g("i", {
2267
2279
  role: "tooltip",
2268
2280
  "aria-hidden": "true",
2269
2281
  "data-gap": "true",
2270
2282
  ref_key: "_ref",
2271
2283
  ref: a,
2272
- class: N(r(F)("db-tooltip", n.class)),
2284
+ class: N(v(A)("db-tooltip", n.class)),
2273
2285
  id: d.value,
2274
- "data-emphasis": c.emphasis,
2275
- "data-animation": r(G)(c.animation ?? !0),
2276
- "data-delay": c.delay,
2277
- "data-width": c.width,
2278
- "data-show-arrow": r(G)(c.showArrow ?? !0),
2279
- "data-placement": c.placement,
2280
- onClick: i[0] || (i[0] = async (h) => u(h))
2286
+ "data-emphasis": p.emphasis,
2287
+ "data-animation": v(V)(p.animation ?? !0),
2288
+ "data-delay": p.delay,
2289
+ "data-width": p.width,
2290
+ "data-show-arrow": v(V)(p.showArrow ?? !0),
2291
+ "data-placement": p.placement,
2292
+ onClick: i[0] || (i[0] = async (h) => c(h))
2281
2293
  }, [
2282
- I(c.$slots, "default")
2283
- ], 10, xa));
2294
+ w(p.$slots, "default")
2295
+ ], 10, Za));
2284
2296
  }
2285
- }), en = ["id"], an = { role: "tablist" }, nn = /* @__PURE__ */ A({
2297
+ }), xa = ["id"], en = { role: "tablist" }, an = /* @__PURE__ */ E({
2286
2298
  __name: "tab-list",
2287
2299
  props: {
2288
2300
  children: { default: void 0 },
@@ -2293,21 +2305,21 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2293
2305
  autofocus: { type: Boolean }
2294
2306
  },
2295
2307
  setup(t) {
2296
- const n = t, d = o(ee), e = o(null);
2308
+ const n = t, d = u(ee), e = u(null);
2297
2309
  return U(() => {
2298
- d.value = n.id || "tab-list-" + V();
2299
- }), (a, u) => (m(), g("div", {
2310
+ d.value = n.id || "tab-list-" + G();
2311
+ }), (a, c) => (m(), g("div", {
2300
2312
  ref_key: "_ref",
2301
2313
  ref: e,
2302
2314
  id: d.value,
2303
- class: N(r(F)("db-tab-list", n.class))
2315
+ class: N(v(A)("db-tab-list", n.class))
2304
2316
  }, [
2305
- _("ul", an, [
2306
- I(a.$slots, "default")
2317
+ I("ul", en, [
2318
+ w(a.$slots, "default")
2307
2319
  ])
2308
- ], 10, en));
2320
+ ], 10, xa));
2309
2321
  }
2310
- }), tn = ["id", "aria-labelledby"], dn = /* @__PURE__ */ A({
2322
+ }), nn = ["id", "aria-labelledby"], tn = /* @__PURE__ */ E({
2311
2323
  __name: "tab-panel",
2312
2324
  props: {
2313
2325
  content: { default: void 0 },
@@ -2320,23 +2332,23 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2320
2332
  labelledBy: { default: void 0 }
2321
2333
  },
2322
2334
  setup(t) {
2323
- const n = t, d = o(null);
2335
+ const n = t, d = u(null);
2324
2336
  return U(() => {
2325
2337
  }), (e, a) => (m(), g("section", {
2326
2338
  role: "tabpanel",
2327
2339
  ref_key: "_ref",
2328
2340
  ref: d,
2329
- class: N(r(F)("db-tab-panel", n.class)),
2341
+ class: N(v(A)("db-tab-panel", n.class)),
2330
2342
  id: e.id,
2331
2343
  "aria-labelledby": e.labelledBy
2332
2344
  }, [
2333
- e.content ? (m(), g(T, { key: 0 }, [
2334
- E(w(e.content), 1)
2335
- ], 64)) : D("", !0),
2336
- I(e.$slots, "default")
2337
- ], 10, tn));
2345
+ e.content ? (m(), g(C, { key: 0 }, [
2346
+ L(k(e.content), 1)
2347
+ ], 64)) : M("", !0),
2348
+ w(e.$slots, "default")
2349
+ ], 10, nn));
2338
2350
  }
2339
- }), ln = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], Xn = /* @__PURE__ */ A({
2351
+ }), dn = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], qn = /* @__PURE__ */ E({
2340
2352
  __name: "tabs",
2341
2353
  props: {
2342
2354
  arrowScrollDistance: { default: void 0 },
@@ -2344,6 +2356,8 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2344
2356
  initialSelectedIndex: { default: void 0 },
2345
2357
  initialSelectedMode: { default: void 0 },
2346
2358
  name: { default: void 0 },
2359
+ onIndexChange: { type: Function, default: void 0 },
2360
+ onTabSelect: { type: Function, default: void 0 },
2347
2361
  tabs: { default: void 0 },
2348
2362
  children: { default: void 0 },
2349
2363
  className: { default: void 0 },
@@ -2356,20 +2370,20 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2356
2370
  alignment: { default: void 0 }
2357
2371
  },
2358
2372
  setup(t) {
2359
- const n = t, d = o("tabs-" + V()), e = o(""), a = o(!1), u = o(!1), l = o(!1), c = o(null), i = o(null);
2373
+ const n = t, d = u("tabs-" + G()), e = u(""), a = u(!1), c = u(!1), l = u(!1), p = u(null), i = u(null);
2360
2374
  U(() => {
2361
- d.value = n.id || d.value, e.value = `tabs-${n.name || V()}`, a.value = !0;
2362
- }), R(
2375
+ d.value = n.id || d.value, e.value = `tabs-${n.name || G()}`, a.value = !0;
2376
+ }), z(
2363
2377
  () => [i.value, a.value],
2364
2378
  () => {
2365
2379
  if (i.value && a.value) {
2366
- y(), L(!0);
2367
- const k = i.value.querySelector(".db-tab-list");
2368
- k && new MutationObserver((p) => {
2369
- p.forEach(($) => {
2370
- ($.removedNodes.length || $.addedNodes.length) && (y(), L());
2380
+ $(), D(!0);
2381
+ const f = i.value.querySelector(".db-tab-list");
2382
+ f && new MutationObserver((y) => {
2383
+ y.forEach((r) => {
2384
+ (r.removedNodes.length || r.addedNodes.length) && ($(), D());
2371
2385
  });
2372
- }).observe(k, {
2386
+ }).observe(f, {
2373
2387
  childList: !0,
2374
2388
  subtree: !0
2375
2389
  }), a.value = !1;
@@ -2380,138 +2394,151 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2380
2394
  flush: "post"
2381
2395
  }
2382
2396
  );
2383
- function h(k) {
2397
+ function h(f) {
2384
2398
  try {
2385
- return typeof k == "string" ? JSON.parse(k) : k;
2386
- } catch (v) {
2387
- console.error(v);
2399
+ return typeof f == "string" ? JSON.parse(f) : f;
2400
+ } catch (o) {
2401
+ console.error(o);
2388
2402
  }
2389
2403
  return [];
2390
2404
  }
2391
- function s(k) {
2392
- const v = k.scrollWidth > k.clientWidth;
2393
- u.value = v && k.scrollLeft > 1, l.value = v && k.scrollLeft < k.scrollWidth - k.clientWidth;
2405
+ function s(f) {
2406
+ const o = f.scrollWidth > f.clientWidth;
2407
+ c.value = o && f.scrollLeft > 1, l.value = o && f.scrollLeft < f.scrollWidth - f.clientWidth;
2394
2408
  }
2395
- function B(k) {
2396
- var p;
2397
- let v = n.arrowScrollDistance || 100;
2398
- k && (v *= -1), (p = c.value) == null || p.scrollBy({
2409
+ function B(f) {
2410
+ var y;
2411
+ let o = n.arrowScrollDistance || 100;
2412
+ f && (o *= -1), (y = p.value) == null || y.scrollBy({
2399
2413
  top: 0,
2400
- left: v,
2414
+ left: o,
2401
2415
  behavior: "smooth"
2402
2416
  });
2403
2417
  }
2404
- function y() {
2418
+ function $() {
2405
2419
  if (i.value) {
2406
- const k = i.value.querySelector(".db-tab-list");
2407
- if (k) {
2408
- const v = k.querySelector('[role="tablist"]');
2409
- v && (v.setAttribute(
2420
+ const f = i.value.querySelector(".db-tab-list");
2421
+ if (f) {
2422
+ const o = f.querySelector('[role="tablist"]');
2423
+ o && (o.setAttribute(
2410
2424
  "aria-orientation",
2411
2425
  n.orientation || "horizontal"
2412
- ), n.behavior === "arrows" && (c.value = v, s(v), v.addEventListener("scroll", () => {
2413
- s(v);
2426
+ ), n.behavior === "arrows" && (p.value = o, s(o), o.addEventListener("scroll", () => {
2427
+ s(o);
2414
2428
  })));
2415
2429
  }
2416
2430
  }
2417
2431
  }
2418
- function L(k) {
2432
+ function D(f) {
2419
2433
  if (i.value) {
2420
- const v = Array.from(
2434
+ const o = Array.from(
2421
2435
  i.value.getElementsByClassName("db-tab-item")
2422
2436
  );
2423
- for (const $ of v) {
2424
- const f = v.indexOf($), M = $.querySelector("label"), b = $.querySelector("input");
2425
- if (b && M) {
2426
- if (!b.id) {
2427
- const S = `${e.value}-tab-${f}`;
2428
- M.setAttribute("for", S), b.setAttribute(
2437
+ for (const r of o) {
2438
+ const T = o.indexOf(r), b = r.querySelector("label"), S = r.querySelector("input");
2439
+ if (S && b) {
2440
+ if (!S.id) {
2441
+ const F = `${e.value}-tab-${T}`;
2442
+ b.setAttribute("for", F), S.setAttribute(
2429
2443
  "aria-controls",
2430
- `${e.value}-tab-panel-${f}`
2431
- ), b.id = S, b.setAttribute("name", e.value);
2444
+ `${e.value}-tab-panel-${T}`
2445
+ ), S.id = F, S.setAttribute("name", e.value);
2432
2446
  }
2433
- if (k) {
2434
- const S = !n.initialSelectedMode || n.initialSelectedMode === "auto", C = n.initialSelectedIndex == null && f === 0 || n.initialSelectedIndex === f;
2435
- S && C && b.click();
2447
+ if (f) {
2448
+ const F = !n.initialSelectedMode || n.initialSelectedMode === "auto", ne = n.initialSelectedIndex == null && T === 0 || n.initialSelectedIndex === T;
2449
+ F && ne && S.click();
2436
2450
  }
2437
2451
  }
2438
2452
  }
2439
- const p = Array.from(
2453
+ const y = Array.from(
2440
2454
  i.value.querySelectorAll(
2441
2455
  ":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
2442
2456
  )
2443
2457
  );
2444
- for (const $ of p) {
2445
- if ($.id) continue;
2446
- const f = p.indexOf($);
2447
- $.id = `${e.value}-tab-panel-${f}`, $.setAttribute("aria-labelledby", `${e.value}-tab-${f}`);
2458
+ for (const r of y) {
2459
+ if (r.id) continue;
2460
+ const T = y.indexOf(r);
2461
+ r.id = `${e.value}-tab-panel-${T}`, r.setAttribute("aria-labelledby", `${e.value}-tab-${T}`);
2448
2462
  }
2449
2463
  }
2450
2464
  }
2451
- return (k, v) => (m(), g("div", {
2465
+ function _(f) {
2466
+ if (n.onIndexChange && f.target) {
2467
+ const o = f.target.closest("ul"), y = (
2468
+ // db-tab-item for angular and stencil wrapping elements
2469
+ f.target.closest("db-tab-item") ?? f.target.closest("li")
2470
+ );
2471
+ o !== null && y !== null && n.onIndexChange(Array.from(o.childNodes).indexOf(y));
2472
+ }
2473
+ n.onTabSelect && n.onTabSelect(f);
2474
+ }
2475
+ return (f, o) => (m(), g("div", {
2452
2476
  ref_key: "_ref",
2453
2477
  ref: i,
2454
2478
  id: d.value,
2455
- class: N(r(F)("db-tabs", n.class)),
2456
- "data-orientation": k.orientation,
2457
- "data-scroll-behavior": k.behavior,
2458
- "data-alignment": k.alignment ?? "start",
2459
- "data-width": k.width ?? "auto"
2479
+ class: N(v(A)("db-tabs", n.class)),
2480
+ "data-orientation": f.orientation,
2481
+ "data-scroll-behavior": f.behavior,
2482
+ "data-alignment": f.alignment ?? "start",
2483
+ "data-width": f.width ?? "auto",
2484
+ onInput: o[0] || (o[0] = async (y) => _(y))
2460
2485
  }, [
2461
- u.value ? (m(), X(te, {
2486
+ c.value ? (m(), X(de, {
2462
2487
  key: 0,
2463
2488
  class: "tabs-scroll-left",
2464
2489
  variant: "ghost",
2465
2490
  icon: "chevron_left",
2491
+ type: "button",
2466
2492
  noText: !0,
2467
- onClick: (p) => B(!0)
2493
+ onClick: (y) => B(!0)
2468
2494
  }, {
2469
- default: z(() => v[0] || (v[0] = [
2470
- E(" Scroll left ")
2495
+ default: R(() => o[1] || (o[1] = [
2496
+ L(" Scroll left ")
2471
2497
  ])),
2472
2498
  _: 1
2473
- }, 8, ["onClick"])) : D("", !0),
2474
- k.tabs ? (m(), g(T, { key: 1 }, [
2475
- W(nn, null, {
2476
- default: z(() => [
2477
- (m(!0), g(T, null, ne(h(k.tabs), (p, $) => (m(), X(Ma, {
2478
- key: k.name + "tab-item" + $,
2479
- active: p.active,
2480
- label: p.label,
2481
- iconAfter: p.iconAfter,
2482
- icon: p.icon,
2483
- noText: p.noText
2499
+ }, 8, ["onClick"])) : M("", !0),
2500
+ f.tabs ? (m(), g(C, { key: 1 }, [
2501
+ O(an, null, {
2502
+ default: R(() => [
2503
+ (m(!0), g(C, null, te(h(f.tabs), (y, r) => (m(), X(Da, {
2504
+ key: f.name + "tab-item" + r,
2505
+ active: y.active,
2506
+ label: y.label,
2507
+ iconAfter: y.iconAfter,
2508
+ icon: y.icon,
2509
+ noText: y.noText
2484
2510
  }, null, 8, ["active", "label", "iconAfter", "icon", "noText"]))), 128))
2485
2511
  ]),
2486
2512
  _: 1
2487
2513
  }),
2488
- (m(!0), g(T, null, ne(h(k.tabs), (p, $) => (m(), X(dn, {
2489
- key: k.name + "tab-panel" + $,
2490
- content: p.content
2514
+ (m(!0), g(C, null, te(h(f.tabs), (y, r) => (m(), X(tn, {
2515
+ key: f.name + "tab-panel" + r,
2516
+ content: y.content
2491
2517
  }, {
2492
- default: z(() => [
2493
- E(w(p.children), 1)
2518
+ default: R(() => [
2519
+ L(k(y.children), 1)
2494
2520
  ]),
2495
2521
  _: 2
2496
2522
  }, 1032, ["content"]))), 128))
2497
- ], 64)) : D("", !0),
2498
- l.value ? (m(), X(te, {
2523
+ ], 64)) : M("", !0),
2524
+ l.value ? (m(), X(de, {
2499
2525
  key: 2,
2500
2526
  class: "tabs-scroll-right",
2501
2527
  variant: "ghost",
2502
2528
  icon: "chevron_right",
2529
+ type: "button",
2503
2530
  noText: !0,
2504
- onClick: (p) => B()
2531
+ onClick: (y) => B()
2505
2532
  }, {
2506
- default: z(() => v[1] || (v[1] = [
2507
- E(" Scroll right ")
2533
+ default: R(() => o[2] || (o[2] = [
2534
+ L(" Scroll right ")
2508
2535
  ])),
2509
2536
  _: 1
2510
- }, 8, ["onClick"])) : D("", !0),
2511
- I(k.$slots, "default")
2512
- ], 10, ln));
2537
+ }, 8, ["onClick"])) : M("", !0),
2538
+ w(f.$slots, "default")
2539
+ ], 42, dn));
2513
2540
  }
2514
- }), Hn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], jn = ["medium", "small", "large", "none"], Yn = ["medium", "small", "large", "none"], Kn = ["left", "right", "top", "bottom", "left-start", "left-end", "right-start", "right-end", "top-start", "top-end", "bottom-start", "bottom-end"], Jn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], Qn = ["horizontal", "vertical"], Zn = ["full", "auto"], xn = ["full", "medium", "large", "small"], et = ["none", "slow", "fast"], at = ["auto", "fixed"], nt = ["small", "medium"], sn = ["weak", "strong"], tt = [...sn, "origin"], dt = ["invalid", "valid", "no-validation"], it = ["above", "floating"], lt = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], st = ["time", "true", "false", "date", "page", "step", "location"], ot = ["_self", "_blank", "_parent", "_top"], ut = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], rt = ["start", "center"], on = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], ft = /* @__PURE__ */ A({
2541
+ }), On = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], Wn = ["medium", "small", "large", "none"], Xn = ["medium", "small", "large", "none"], Hn = ["left", "right", "top", "bottom", "left-start", "left-end", "right-start", "right-end", "top-start", "top-end", "bottom-start", "bottom-end"], jn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], Yn = ["horizontal", "vertical"], Kn = ["full", "auto"], Jn = ["full", "medium", "large", "small"], Qn = ["none", "slow", "fast"], Zn = ["auto", "fixed"], xn = ["small", "medium"], ln = ["weak", "strong"], et = [...ln, "origin"], at = ["invalid", "valid", "no-validation"], nt = ["above", "floating"], tt = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], dt = ["time", "true", "false", "date", "page", "step", "location"], it = ["_self", "_blank", "_parent", "_top"], lt = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], st = ["start", "center"], sn = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], ot = /* @__PURE__ */ E({
2515
2542
  __name: "stack",
2516
2543
  props: {
2517
2544
  variant: { default: void 0 },
@@ -2528,62 +2555,62 @@ const Qe = ["id", "data-width", "data-on-forcing-mobile"], Ze = { class: "db-hea
2528
2555
  gap: { default: void 0 }
2529
2556
  },
2530
2557
  setup(t) {
2531
- const n = t, d = o(null);
2558
+ const n = t, d = u(null);
2532
2559
  return (e, a) => (m(), g("div", {
2533
2560
  ref_key: "_ref",
2534
2561
  ref: d,
2535
2562
  id: e.id,
2536
- class: N(r(F)("db-stack", n.class)),
2563
+ class: N(v(A)("db-stack", n.class)),
2537
2564
  "data-gap": e.gap,
2538
2565
  "data-variant": e.variant,
2539
2566
  "data-direction": e.direction,
2540
2567
  "data-alignment": e.alignment,
2541
2568
  "data-justify-content": e.justifyContent,
2542
- "data-wrap": r(G)(e.wrap)
2569
+ "data-wrap": v(V)(e.wrap)
2543
2570
  }, [
2544
- I(e.$slots, "default")
2545
- ], 10, on));
2571
+ w(e.$slots, "default")
2572
+ ], 10, sn));
2546
2573
  }
2547
2574
  });
2548
2575
  export {
2549
- rt as AlignmentList,
2550
- lt as AutoCompleteList,
2576
+ st as AlignmentList,
2577
+ tt as AutoCompleteList,
2551
2578
  he as COLOR,
2552
- yn as COLORS,
2553
- Bn as COLORS_SIMPLE,
2554
- bn as COLOR_CONST,
2579
+ mn as COLORS,
2580
+ bn as COLORS_SIMPLE,
2581
+ pn as COLOR_CONST,
2555
2582
  pe as COLOR_SIMPLE,
2556
- Vn as DBAccordion,
2557
- Ya as DBAccordionItem,
2558
- _n as DBBadge,
2559
- $n as DBBrand,
2560
- te as DBButton,
2561
- Ln as DBCard,
2562
- En as DBCheckbox,
2563
- An as DBDivider,
2583
+ Un as DBAccordion,
2584
+ ja as DBAccordionItem,
2585
+ kn as DBBadge,
2586
+ wn as DBBrand,
2587
+ de as DBButton,
2588
+ In as DBCard,
2589
+ _n as DBCheckbox,
2590
+ $n as DBDivider,
2564
2591
  Ye as DBDrawer,
2565
- Nn as DBHeader,
2566
- Fn as DBIcon,
2567
- O as DBInfotext,
2568
- Tn as DBInput,
2569
- Sn as DBLink,
2570
- qn as DBNavigation,
2571
- Gn as DBNavigationItem,
2572
- In as DBNotification,
2573
- Cn as DBPage,
2574
- Wn as DBPopover,
2575
- Dn as DBRadio,
2576
- Mn as DBSection,
2577
- Rn as DBSelect,
2578
- ft as DBStack,
2579
- zn as DBSwitch,
2580
- Ma as DBTabItem,
2581
- nn as DBTabList,
2582
- dn as DBTabPanel,
2583
- Xn as DBTabs,
2584
- Un as DBTag,
2585
- Pn as DBTextarea,
2586
- On as DBTooltip,
2592
+ Ln as DBHeader,
2593
+ En as DBIcon,
2594
+ W as DBInfotext,
2595
+ Nn as DBInput,
2596
+ An as DBLink,
2597
+ Pn as DBNavigation,
2598
+ Rn as DBNavigationItem,
2599
+ Bn as DBNotification,
2600
+ Fn as DBPage,
2601
+ Vn as DBPopover,
2602
+ Tn as DBRadio,
2603
+ Sn as DBSection,
2604
+ Cn as DBSelect,
2605
+ ot as DBStack,
2606
+ Dn as DBSwitch,
2607
+ Da as DBTabItem,
2608
+ an as DBTabList,
2609
+ tn as DBTabPanel,
2610
+ qn as DBTabs,
2611
+ Mn as DBTag,
2612
+ zn as DBTextarea,
2613
+ Gn as DBTooltip,
2587
2614
  $e as DEFAULT_BACK,
2588
2615
  Le as DEFAULT_BURGER_MENU,
2589
2616
  ce as DEFAULT_CLOSE_BUTTON,
@@ -2596,50 +2623,48 @@ export {
2596
2623
  K as DEFAULT_MESSAGE_ID_SUFFIX,
2597
2624
  fe as DEFAULT_PLACEHOLDER,
2598
2625
  oe as DEFAULT_PLACEHOLDER_ID_SUFFIX,
2599
- Ae as DEFAULT_ROWS,
2626
+ Ne as DEFAULT_ROWS,
2600
2627
  Z as DEFAULT_VALID_MESSAGE,
2601
2628
  J as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
2602
- Ne as DEFAULT_VIEWPORT,
2603
- gn as DENSITIES,
2629
+ Ae as DEFAULT_VIEWPORT,
2630
+ hn as DENSITIES,
2604
2631
  ve as DENSITY,
2605
- mn as DENSITY_CONST,
2632
+ vn as DENSITY_CONST,
2606
2633
  Fe as DESKTOP_VIEWPORT,
2607
- sn as EmphasisList,
2608
- Jn as GapSpacingList,
2609
- it as LabelVariantList,
2610
- st as LinkCurrentList,
2611
- ut as LinkReferrerPolicyList,
2612
- ot as LinkTargetList,
2613
- Yn as MarginList,
2614
- xn as MaxWidthList,
2615
- Je as NavigationItemSafeTriangle,
2616
- Qn as OrientationList,
2617
- Kn as PlacementList,
2618
- et as PopoverDelayList,
2619
- at as PopoverWidthList,
2634
+ ln as EmphasisList,
2635
+ jn as GapSpacingList,
2636
+ nt as LabelVariantList,
2637
+ dt as LinkCurrentList,
2638
+ lt as LinkReferrerPolicyList,
2639
+ it as LinkTargetList,
2640
+ Xn as MarginList,
2641
+ Jn as MaxWidthList,
2642
+ Ke as NavigationItemSafeTriangle,
2643
+ Yn as OrientationList,
2644
+ Hn as PlacementList,
2645
+ Qn as PopoverDelayList,
2646
+ Zn as PopoverWidthList,
2620
2647
  me as SEMANTIC,
2621
- kn as SEMANTICS,
2622
- Hn as SemanticList,
2623
- nt as SizeList,
2624
- jn as SpacingList,
2625
- wn as TESTING_VIEWPORTS,
2626
- tt as TagEmphasisList,
2627
- dt as ValidationList,
2628
- Zn as WidthList,
2648
+ gn as SEMANTICS,
2649
+ On as SemanticList,
2650
+ xn as SizeList,
2651
+ Wn as SpacingList,
2652
+ yn as TESTING_VIEWPORTS,
2653
+ et as TagEmphasisList,
2654
+ at as ValidationList,
2655
+ Kn as WidthList,
2629
2656
  re as addAttributeToChildren,
2630
- F as cls,
2657
+ A as cls,
2631
2658
  H as delay,
2632
- cn as filterPassingProps,
2633
- G as getBooleanAsString,
2659
+ V as getBooleanAsString,
2634
2660
  P as getHideProp,
2635
- vn as getRootProps,
2636
2661
  se as handleDataOutside,
2637
2662
  Y as hasVoiceOver,
2638
2663
  we as isArrayOfStrings,
2639
- Ke as isEventTargetNavigationItem,
2664
+ be as isEventTargetNavigationItem,
2640
2665
  ke as isInView,
2641
2666
  q as stringPropVisible,
2642
- V as uuid,
2643
- pn as visibleInVX,
2644
- hn as visibleInVY
2667
+ G as uuid,
2668
+ fn as visibleInVX,
2669
+ cn as visibleInVY
2645
2670
  };