@db-ux/v-core-components 4.14.0 → 5.0.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.
package/dist/db-ux.es.js CHANGED
@@ -51,11 +51,20 @@ var x = () => {
51
51
  case "successful": return "status";
52
52
  default: return "article";
53
53
  }
54
- }, H = ["id"], ee = [
54
+ }, H = [
55
+ "ArrowRight",
56
+ "ArrowDown",
57
+ "ArrowLeft",
58
+ "ArrowUp",
59
+ "Home",
60
+ "End",
61
+ "Enter",
62
+ " "
63
+ ], ee = () => typeof HTMLElement > "u" ? !1 : "focusGroup" in HTMLElement.prototype || "focusgroup" in HTMLElement.prototype, U = ["id"], te = [
55
64
  "aria-disabled",
56
65
  "name",
57
66
  "open"
58
- ], U = /* @__PURE__ */ s({
67
+ ], W = /* @__PURE__ */ s({
59
68
  name: "DBAccordionItem",
60
69
  __name: "accordion-item",
61
70
  props: {
@@ -122,9 +131,9 @@ var x = () => {
122
131
  ref: m,
123
132
  name: l.value,
124
133
  open: s.value
125
- }, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, ee)], 10, H));
134
+ }, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, te)], 10, U));
126
135
  }
127
- }), te = ["id", "data-variant"], W = /* @__PURE__ */ s({
136
+ }), ne = ["id", "data-variant"], re = /* @__PURE__ */ s({
128
137
  name: "DBAccordion",
129
138
  __name: "accordion",
130
139
  props: {
@@ -197,7 +206,7 @@ var x = () => {
197
206
  id: i.id ?? i.propOverrides?.id,
198
207
  class: c(_(C)("db-accordion", o.class)),
199
208
  "data-variant": i.variant
200
- }, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(U, {
209
+ }, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(W, {
201
210
  key: `accordion-item-${n}`,
202
211
  headlinePlain: e.headlinePlain,
203
212
  disabled: e.disabled,
@@ -206,26 +215,26 @@ var x = () => {
206
215
  "headlinePlain",
207
216
  "disabled",
208
217
  "text"
209
- ]))), 128)) : n("", !0)], 10, te));
218
+ ]))), 128)) : n("", !0)], 10, ne));
210
219
  }
211
- }), ne = ["divider", "card"], re = ["multiple", "single"], G = "OVERWRITE_DEFAULT_ID", ie = "LABEL SHOULD BE SET", ae = " ", K = "MESSAGE SHOULD BE SET", oe = "-label", se = "-select", q = "-message", J = "-valid-message", ce = "-invalid-message", le = "-placeholder", Y = "-datalist", ue = "TODO: Add a validMessage", de = "TODO: Add an invalidMessage", fe = "Remove", pe = "Back", me = "Selected", he = "Scroll left", ge = "Scroll right", _e = "Open navigation menu", ve = "brand", ye = 4, be = "Close", xe = "density", Se = "color", X = /* @__PURE__ */ function(e) {
220
+ }), G = ["divider", "card"], ie = ["multiple", "single"], K = "OVERWRITE_DEFAULT_ID", q = "LABEL SHOULD BE SET", J = " ", Y = "MESSAGE SHOULD BE SET", ae = "-label", oe = "-select", X = "-message", se = "-valid-message", ce = "-invalid-message", le = "-placeholder", ue = "-datalist", de = "TODO: Add a validMessage", fe = "TODO: Add an invalidMessage", pe = "Remove", me = "Back", he = "Selected", ge = "Scroll left", _e = "Scroll right", ve = "Open navigation menu", ye = "brand", be = 4, xe = "Close", Z = "density", Q = "color", Se = /* @__PURE__ */ function(e) {
212
221
  return e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e;
213
- }({}), Z = Object.entries(X).map(([, e]) => e), Ce = /* @__PURE__ */ function(e) {
222
+ }({}), Ce = Object.entries(Se).map(([, e]) => e), we = /* @__PURE__ */ function(e) {
214
223
  return e.PRIMARY = "primary", e;
215
- }({}), we = /* @__PURE__ */ function(e) {
224
+ }({}), Te = /* @__PURE__ */ function(e) {
216
225
  return e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e;
217
- }({}), Te = Object.entries(we).map(([, e]) => e), Ee = Object.entries(Ce).map(([, e]) => e), De = /* @__PURE__ */ function(e) {
226
+ }({}), Ee = Object.entries(Te).map(([, e]) => e), De = Object.entries(we).map(([, e]) => e), Oe = /* @__PURE__ */ function(e) {
218
227
  return e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e;
219
- }({}), Oe = Object.entries(De).map(([, e]) => e), ke = {
228
+ }({}), ke = Object.entries(Oe).map(([, e]) => e), Ae = {
220
229
  width: 390,
221
230
  height: 884
222
- }, Ae = {
231
+ }, je = {
223
232
  width: 1920,
224
233
  height: 1280
225
- }, je = [
234
+ }, Me = [
226
235
  {
227
236
  name: "desktop",
228
- ...Ae
237
+ ...je
229
238
  },
230
239
  {
231
240
  name: "tablet",
@@ -234,9 +243,9 @@ var x = () => {
234
243
  },
235
244
  {
236
245
  name: "mobile",
237
- ...ke
246
+ ...Ae
238
247
  }
239
- ], Me = "db-ux-framework", Ne = "db-ux-mode", Pe = [
248
+ ], Ne = "db-ux-framework", Pe = "db-ux-mode", Fe = [
240
249
  "id",
241
250
  "data-semantic",
242
251
  "data-size",
@@ -244,7 +253,7 @@ var x = () => {
244
253
  "data-placement",
245
254
  "data-wrap",
246
255
  "data-label"
247
- ], Fe = /* @__PURE__ */ s({
256
+ ], Ie = /* @__PURE__ */ s({
248
257
  name: "DBBadge",
249
258
  __name: "badge",
250
259
  props: {
@@ -288,9 +297,9 @@ var x = () => {
288
297
  "data-placement": t.placement,
289
298
  "data-wrap": _(k)(t.wrap, "wrap"),
290
299
  "data-label": t.placement?.startsWith("corner") && (t.label ?? _("LABEL SHOULD BE SET"))
291
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10, Pe));
300
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10, Fe));
292
301
  }
293
- }), Ie = [
302
+ }), Le = [
294
303
  "inline",
295
304
  "corner-top-left",
296
305
  "corner-top-right",
@@ -298,11 +307,11 @@ var x = () => {
298
307
  "corner-center-right",
299
308
  "corner-bottom-left",
300
309
  "corner-bottom-right"
301
- ], Le = [
310
+ ], Re = [
302
311
  "data-icon",
303
312
  "data-show-icon",
304
313
  "id"
305
- ], Re = /* @__PURE__ */ s({
314
+ ], ze = /* @__PURE__ */ s({
306
315
  name: "DBBrand",
307
316
  __name: "brand",
308
317
  props: {
@@ -332,9 +341,9 @@ var x = () => {
332
341
  "data-show-icon": _(k)(t.showIcon, "showIcon"),
333
342
  id: t.id ?? t.propOverrides?.id,
334
343
  class: c(_(C)("db-brand", i.class))
335
- }, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10, Le));
344
+ }, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10, Re));
336
345
  }
337
- }), ze = [
346
+ }), Be = [
338
347
  "id",
339
348
  "type",
340
349
  "disabled",
@@ -352,7 +361,7 @@ var x = () => {
352
361
  "value",
353
362
  "command",
354
363
  "commandfor"
355
- ], Be = /* @__PURE__ */ s({
364
+ ], Ve = /* @__PURE__ */ s({
356
365
  name: "DBButton",
357
366
  __name: "button",
358
367
  props: {
@@ -435,23 +444,23 @@ var x = () => {
435
444
  command: t.command,
436
445
  commandfor: t.commandfor,
437
446
  onClick: d[0] ||= async (e) => l(e)
438
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10, ze));
447
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10, Be));
439
448
  }
440
- }), Ve = [
449
+ }), He = [
441
450
  "outlined",
442
451
  "brand",
443
452
  "filled",
444
453
  "ghost"
445
- ], He = [
454
+ ], Ue = [
446
455
  "button",
447
456
  "reset",
448
457
  "submit"
449
- ], Ue = [
458
+ ], We = [
450
459
  "id",
451
460
  "data-behavior",
452
461
  "data-elevation-level",
453
462
  "data-spacing"
454
- ], We = /* @__PURE__ */ s({
463
+ ], Ge = /* @__PURE__ */ s({
455
464
  name: "DBCard",
456
465
  __name: "card",
457
466
  props: {
@@ -484,20 +493,20 @@ var x = () => {
484
493
  "data-elevation-level": e.elevationLevel,
485
494
  "data-spacing": e.spacing,
486
495
  onClick: o[0] ||= async (e) => i(e)
487
- }, [h(a.$slots, "default")], 10, Ue));
496
+ }, [h(a.$slots, "default")], 10, We));
488
497
  }
489
- }), Ge = ["static", "interactive"], Ke = [
498
+ }), Ke = ["static", "interactive"], qe = [
490
499
  "1",
491
500
  "2",
492
501
  "3"
493
- ], Q = (e, t, n = "value") => {
502
+ ], Je = (e, t, n = "value") => {
494
503
  e(`update:${n}`, t.target[n]);
495
- }, qe = (e, t, n) => {
504
+ }, Ye = (e, t, n) => {
496
505
  e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (e) => {
497
506
  t(e);
498
507
  }, { signal: n }), e._dbFormResetListenerAdded = !0);
499
- }, Je = (e, t, n, r) => {
500
- qe(e, (r) => {
508
+ }, Xe = (e, t, n, r) => {
509
+ Ye(e, (r) => {
501
510
  O(() => {
502
511
  let i = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked;
503
512
  n({
@@ -509,8 +518,8 @@ var x = () => {
509
518
  });
510
519
  }, 1);
511
520
  }, r);
512
- }, Ye = (e, t, n, r) => {
513
- qe(e, (r) => {
521
+ }, Ze = (e, t, n, r) => {
522
+ Ye(e, (r) => {
514
523
  O(() => {
515
524
  let i = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value;
516
525
  n({
@@ -522,7 +531,7 @@ var x = () => {
522
531
  });
523
532
  }, 1);
524
533
  }, r);
525
- }, Xe = [
534
+ }, Qe = [
526
535
  "id",
527
536
  "data-icon",
528
537
  "data-semantic",
@@ -564,13 +573,13 @@ var x = () => {
564
573
  "data-size": t.size,
565
574
  "data-wrap": _(k)(t.wrap, "wrap"),
566
575
  "data-show-icon-leading": _(k)(t.showIcon ?? !0, "showIcon")
567
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Xe));
576
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Qe));
568
577
  }
569
- }), Ze = [
578
+ }), $e = [
570
579
  "data-size",
571
580
  "data-hide-asterisk",
572
581
  "data-hide-label"
573
- ], Qe = ["for"], $e = [
582
+ ], et = ["for"], tt = [
574
583
  "aria-invalid",
575
584
  "data-custom-validity",
576
585
  "id",
@@ -580,10 +589,10 @@ var x = () => {
580
589
  "value",
581
590
  "required",
582
591
  "aria-describedby"
583
- ], et = {
592
+ ], nt = {
584
593
  "data-visually-hidden": "true",
585
594
  role: "status"
586
- }, tt = /* @__PURE__ */ s({
595
+ }, rt = /* @__PURE__ */ s({
587
596
  name: "DBCheckbox",
588
597
  __name: "checkbox",
589
598
  props: {
@@ -670,8 +679,8 @@ var x = () => {
670
679
  flush: "post"
671
680
  }), y(() => [T.value], () => {
672
681
  if (T.value) {
673
- let e = T.value + q;
674
- D.value = e, k.value = T.value + J, j.value = T.value + ce, I(S.message, S.showMessage) && (N.value = e), B();
682
+ let e = T.value + X;
683
+ D.value = e, k.value = T.value + se, j.value = T.value + ce, I(S.message, S.showMessage) && (N.value = e), B();
675
684
  }
676
685
  }, {
677
686
  immediate: !0,
@@ -697,7 +706,7 @@ var x = () => {
697
706
  }), y(() => [R.value], () => {
698
707
  if (R.value) {
699
708
  let e = L.value;
700
- e || (e = new AbortController(), L.value = e), Je(R.value, {
709
+ e || (e = new AbortController(), L.value = e), Xe(R.value, {
701
710
  checked: S.checked,
702
711
  defaultChecked: void 0
703
712
  }, (e) => {
@@ -715,7 +724,7 @@ var x = () => {
715
724
  !R.value?.validity.valid || S.validation === "invalid" ? (N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value, O(() => P.value = "", 1e3))) : z() && R.value?.validity.valid && S.required ? (N.value = k.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => P.value = "", 1e3))) : I(S.message, S.showMessage) ? N.value = D.value : N.value = void 0;
716
725
  }
717
726
  function V(e, t) {
718
- S.onChange && S.onChange(e), Q(x, e, "checked"), B();
727
+ S.onChange && S.onChange(e), Je(x, e, "checked"), B();
719
728
  }
720
729
  function H(e) {
721
730
  S.onBlur && S.onBlur(e);
@@ -725,7 +734,7 @@ var x = () => {
725
734
  }
726
735
  function U() {
727
736
  let e = S.id ?? S.propOverrides?.id ?? `checkbox-${m}`;
728
- T.value = e, D.value = e + q, k.value = e + J, j.value = e + ce;
737
+ T.value = e, D.value = e + X, k.value = e + se, j.value = e + ce;
729
738
  }
730
739
  return (l, u) => (f(), r("div", {
731
740
  class: c(_(C)("db-checkbox", S.class)),
@@ -750,10 +759,10 @@ var x = () => {
750
759
  onBlur: u[1] ||= async (e) => H(e),
751
760
  onFocus: u[2] ||= async (e) => ee(e),
752
761
  "aria-describedby": s.ariaDescribedBy ?? N.value
753
- }, null, 40, $e),
762
+ }, null, 40, tt),
754
763
  s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
755
764
  h(l.$slots, "default")
756
- ], 8, Qe),
765
+ ], 8, et),
757
766
  _(I)(s.message, s.showMessage) ? (f(), t($, {
758
767
  key: 0,
759
768
  size: "small",
@@ -780,10 +789,10 @@ var x = () => {
780
789
  default: b(() => [a(g(M.value), 1)]),
781
790
  _: 1
782
791
  }, 8, ["id"]),
783
- i("span", et, g(P.value), 1)
784
- ], 10, Ze));
792
+ i("span", nt, g(P.value), 1)
793
+ ], 10, $e));
785
794
  }
786
- }), nt = [
795
+ }), it = [
787
796
  "id",
788
797
  "data-icon",
789
798
  "data-show-icon",
@@ -793,7 +802,7 @@ var x = () => {
793
802
  "data-width",
794
803
  "data-variant",
795
804
  "data-no-text"
796
- ], rt = /* @__PURE__ */ s({
805
+ ], at = /* @__PURE__ */ s({
797
806
  name: "DBCustomButton",
798
807
  __name: "custom-button",
799
808
  props: {
@@ -842,9 +851,9 @@ var x = () => {
842
851
  "data-width": e.width,
843
852
  "data-variant": e.variant,
844
853
  "data-no-text": _(k)(e.noText, "noText")
845
- }, [h(i.$slots, "default")], 10, nt));
854
+ }, [h(i.$slots, "default")], 10, it));
846
855
  }
847
- }), it = class {
856
+ }), ot = class {
848
857
  addCallback(e) {
849
858
  let t = x(), n = this.getCallbacks();
850
859
  return n[t] = e, t;
@@ -853,7 +862,7 @@ var x = () => {
853
862
  let t = this.getCallbacks();
854
863
  delete t[e];
855
864
  }
856
- }, at = class e extends it {
865
+ }, st = class e extends ot {
857
866
  static callbacks = {};
858
867
  static _instance = null;
859
868
  static runCallbacks(t) {
@@ -866,7 +875,7 @@ var x = () => {
866
875
  getCallbacks() {
867
876
  return e.callbacks;
868
877
  }
869
- }, ot = class e extends it {
878
+ }, ct = class e extends ot {
870
879
  static callbacks = {};
871
880
  static _instance = null;
872
881
  static runCallbacks(t) {
@@ -884,13 +893,13 @@ var x = () => {
884
893
  getCallbacks() {
885
894
  return e.callbacks;
886
895
  }
887
- }, st = (e, t, n) => {
896
+ }, lt = (e, t, n) => {
888
897
  if (!e || !t) return;
889
898
  let r = e.dataset.width === "full", i = e.dataset.width === "auto";
890
899
  e.style.inlineSize = "", e.style.minInlineSize = "";
891
900
  let a = getComputedStyle(e);
892
901
  if (a.zIndex === "9999" || a.position !== "fixed" && a.position !== "absolute") return;
893
- let { top: o, bottom: s, childHeight: c, childWidth: l, width: u, right: d, left: f, correctedPlacement: p, innerWidth: m } = ct(e, t, n), h = u;
902
+ let { top: o, bottom: s, childHeight: c, childWidth: l, width: u, right: d, left: f, correctedPlacement: p, innerWidth: m } = ut(e, t, n), h = u;
894
903
  if (i) {
895
904
  let t = parseFloat(getComputedStyle(e).maxInlineSize);
896
905
  !isNaN(t) && t > 0 && (h = Math.min(u, t));
@@ -900,7 +909,7 @@ var x = () => {
900
909
  i ? g = Math.max(l, h) : r && (g = u);
901
910
  let _ = p;
902
911
  i && (_ === "top" || _ === "bottom" || _ === "top-start" || _ === "bottom-start") && f + g > m && (_ = _.startsWith("top") ? "top-end" : "bottom-end"), _ === "top" || _ === "bottom" || _ === "top-start" || _ === "bottom-start" ? e.style.insetInlineStart = `${f}px` : (_ === "top-end" || _ === "bottom-end") && (e.style.insetInlineStart = `${Math.max(d - g, 0)}px`), _?.startsWith("top") ? e.style.insetBlockStart = `${o - c}px` : _?.startsWith("bottom") && (e.style.insetBlockStart = `${s}px`), e.style.position = "fixed";
903
- }, ct = (e, t, n) => {
912
+ }, ut = (e, t, n) => {
904
913
  if (!e || !t) return {
905
914
  top: 0,
906
915
  bottom: 0,
@@ -931,21 +940,21 @@ var x = () => {
931
940
  innerHeight: u,
932
941
  outsideYBoth: h && m
933
942
  };
934
- }, lt = 10, ut = /* @__PURE__ */ new WeakMap(), dt = (e) => {
935
- if (ut.has(e)) return ut.get(e);
943
+ }, dt = 10, ft = /* @__PURE__ */ new WeakMap(), pt = (e) => {
944
+ if (ft.has(e)) return ft.get(e);
936
945
  let t = e.parentElement, n = 0;
937
- for (; t && n < lt;) {
938
- if (t.dataset.correctedPlacement) return ut.set(e, t), t;
946
+ for (; t && n < dt;) {
947
+ if (t.dataset.correctedPlacement) return ft.set(e, t), t;
939
948
  t = t.parentElement, n += 1;
940
949
  }
941
- return ut.set(e, null), null;
942
- }, ft = (e, t, n) => {
950
+ return ft.set(e, null), null;
951
+ }, mt = (e, t, n) => {
943
952
  if (!e || !t) return;
944
- let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = dt(e), o = !a && !i, s = getComputedStyle(e);
953
+ let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = pt(e), o = !a && !i, s = getComputedStyle(e);
945
954
  if (s.position !== "fixed" && s.position !== "absolute") return;
946
955
  let c = s.getPropertyValue("--db-popover-distance");
947
956
  c.length || (c = "0px");
948
- let { top: l, height: u, width: d, childHeight: f, childWidth: p, right: m, left: h, bottom: g, correctedPlacement: _, innerWidth: v, innerHeight: y, outsideYBoth: b } = ct(e, t, e?.dataset?.placement ?? n ?? "bottom");
957
+ let { top: l, height: u, width: d, childHeight: f, childWidth: p, right: m, left: h, bottom: g, correctedPlacement: _, innerWidth: v, innerHeight: y, outsideYBoth: b } = ut(e, t, e?.dataset?.placement ?? n ?? "bottom");
949
958
  if (a) {
950
959
  let e = a.getBoundingClientRect();
951
960
  h = Math.abs(h - e.left), m = (d + Math.abs(m - e.right)) * 1.5, l = Math.abs(l - e.top), g = (u + Math.abs(g - e.bottom)) * 1.5;
@@ -990,14 +999,14 @@ var x = () => {
990
999
  let t = g + f;
991
1000
  e.style.insetBlockStart = `calc(${i ? t : g}px + ${c})`, e.style.insetBlockEnd = `calc(${o && t > y ? y : t}px + ${c})`;
992
1001
  }
993
- b ? (e.style.overflow = "hidden auto", e.style.insetBlock = c, e.style.maxBlockSize = `calc(${y}px - 2 * ${c})`) : (e.style.overflow = "", e.style.maxBlockSize = ""), e.style.position = "fixed", e.dataset.correctedPlacement = _, pt(e);
994
- }, pt = (e) => {
995
- let { outTop: t, outBottom: n, outLeft: r, outRight: i } = mt(e), a = {};
1002
+ b ? (e.style.overflow = "hidden auto", e.style.insetBlock = c, e.style.maxBlockSize = `calc(${y}px - 2 * ${c})`) : (e.style.overflow = "", e.style.maxBlockSize = ""), e.style.position = "fixed", e.dataset.correctedPlacement = _, ht(e);
1003
+ }, ht = (e) => {
1004
+ let { outTop: t, outBottom: n, outLeft: r, outRight: i } = gt(e), a = {};
996
1005
  return t || n ? (a = { vy: t ? "top" : "bottom" }, e.dataset.outsideVy = a.vy) : delete e.dataset.outsideVy, r || i ? (a = {
997
1006
  ...a,
998
1007
  vx: i ? "right" : "left"
999
1008
  }, e.dataset.outsideVx = a.vx) : delete e.dataset.outsideVx, a;
1000
- }, mt = (e) => {
1009
+ }, gt = (e) => {
1001
1010
  let { top: t, bottom: n, left: r, right: i } = e.getBoundingClientRect(), { innerHeight: a, innerWidth: o } = window, s = t < 0, c = n > a, l = r < 0, u = i > o, d = e.dataset.outsideVy, f = e.dataset.outsideVx, p = e?.parentElement?.getBoundingClientRect();
1002
1011
  return p && (d && (e.dataset.outsideVy === "top" ? s = p.top - (n - p.bottom) < 0 : c = p.bottom + (p.top - t) > a), f && (e.dataset.outsideVx === "left" ? l = p.left - (i - p.right) < 0 : u = p.right + (p.left - r) > o)), {
1003
1012
  outTop: s,
@@ -1005,7 +1014,7 @@ var x = () => {
1005
1014
  outLeft: l,
1006
1015
  outRight: u
1007
1016
  };
1008
- }, ht = class {
1017
+ }, _t = class {
1009
1018
  observe(e, t) {
1010
1019
  let n = this.getObserver();
1011
1020
  if (!n) return;
@@ -1024,7 +1033,7 @@ var x = () => {
1024
1033
  e(t);
1025
1034
  });
1026
1035
  }
1027
- }, gt = class e extends ht {
1036
+ }, vt = class e extends _t {
1028
1037
  static _instance = null;
1029
1038
  static callbacksByElement = /* @__PURE__ */ new Map();
1030
1039
  static idToElement = /* @__PURE__ */ new Map();
@@ -1050,7 +1059,7 @@ var x = () => {
1050
1059
  unobserveElement(e, t) {
1051
1060
  e.unobserve(t);
1052
1061
  }
1053
- }, _t = class e extends ht {
1062
+ }, yt = class e extends _t {
1054
1063
  static _instance = null;
1055
1064
  static callbacksByElement = /* @__PURE__ */ new Map();
1056
1065
  static idToElement = /* @__PURE__ */ new Map();
@@ -1076,7 +1085,7 @@ var x = () => {
1076
1085
  unobserveElement(e, t) {
1077
1086
  e.unobserve(t);
1078
1087
  }
1079
- }, vt = ["id", "data-width"], yt = /* @__PURE__ */ s({
1088
+ }, bt = ["id", "data-width"], xt = /* @__PURE__ */ s({
1080
1089
  name: "DBCustomSelectDropdown",
1081
1090
  __name: "custom-select-dropdown",
1082
1091
  props: {
@@ -1097,20 +1106,20 @@ var x = () => {
1097
1106
  id: e.id ?? e.propOverrides?.id,
1098
1107
  class: c(_(C)("db-custom-select-dropdown db-card", t.class)),
1099
1108
  "data-width": e.width
1100
- }, [h(i.$slots, "default")], 10, vt));
1109
+ }, [h(i.$slots, "default")], 10, bt));
1101
1110
  }
1102
- }), bt = ["id", "data-divider"], xt = [
1111
+ }), St = ["id", "data-divider"], Ct = [
1103
1112
  "data-icon",
1104
1113
  "data-show-icon",
1105
1114
  "data-icon-trailing"
1106
- ], St = [
1115
+ ], wt = [
1107
1116
  "type",
1108
1117
  "name",
1109
1118
  "form",
1110
1119
  "checked",
1111
1120
  "disabled",
1112
1121
  "value"
1113
- ], Ct = { class: "db-custom-select-list-item-label" }, wt = { key: 1 }, Tt = /* @__PURE__ */ s({
1122
+ ], Tt = { class: "db-custom-select-list-item-label" }, Et = { key: 1 }, Dt = /* @__PURE__ */ s({
1114
1123
  name: "DBCustomSelectListItem",
1115
1124
  __name: "custom-select-list-item",
1116
1125
  props: {
@@ -1162,7 +1171,7 @@ var x = () => {
1162
1171
  flush: "post"
1163
1172
  });
1164
1173
  function m(e) {
1165
- e.stopPropagation(), l.onChange && l.onChange(e), Q(s, e, "checked");
1174
+ e.stopPropagation(), l.onChange && l.onChange(e), Je(s, e, "checked");
1166
1175
  }
1167
1176
  function v() {
1168
1177
  if (!(l.isGroupTitle || l.type === "checkbox")) return A(l.checked, "checked") ? "check" : "x_placeholder";
@@ -1176,7 +1185,7 @@ var x = () => {
1176
1185
  "db-radio": t.type !== "checkbox" && !t.isGroupTitle
1177
1186
  })),
1178
1187
  "data-divider": _(k)(u.value, "hasDivider")
1179
- }, [t.isGroupTitle ? (f(), r("span", wt, g(t.groupTitle), 1)) : (f(), r("label", {
1188
+ }, [t.isGroupTitle ? (f(), r("span", Et, g(t.groupTitle), 1)) : (f(), r("label", {
1180
1189
  key: 0,
1181
1190
  "data-icon": t.type !== "checkbox" && t.icon ? t.icon : void 0,
1182
1191
  "data-show-icon": _(k)(t.showIcon, "showIcon"),
@@ -1191,13 +1200,13 @@ var x = () => {
1191
1200
  disabled: _(A)(t.disabled, "disabled"),
1192
1201
  value: t.value,
1193
1202
  onChange: s[0] ||= async (e) => m(e)
1194
- }, null, 40, St), i("span", Ct, [t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0), h(o.$slots, "default")])], 8, xt))], 10, bt));
1203
+ }, null, 40, wt), i("span", Tt, [t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0), h(o.$slots, "default")])], 8, Ct))], 10, St));
1195
1204
  }
1196
- }), Et = [
1205
+ }), Ot = [
1197
1206
  "role",
1198
1207
  "aria-label",
1199
1208
  "id"
1200
- ], Dt = /* @__PURE__ */ s({
1209
+ ], kt = /* @__PURE__ */ s({
1201
1210
  name: "DBCustomSelectList",
1202
1211
  __name: "custom-select-list",
1203
1212
  props: {
@@ -1222,9 +1231,9 @@ var x = () => {
1222
1231
  ref: n,
1223
1232
  id: e.id ?? e.propOverrides?.id,
1224
1233
  class: c(_(C)("db-custom-select-list", t.class))
1225
- }, [i("ul", null, [h(a.$slots, "default")])], 10, Et));
1234
+ }, [i("ul", null, [h(a.$slots, "default")])], 10, Ot));
1226
1235
  }
1227
- }), Ot = [
1236
+ }), At = [
1228
1237
  "data-variant",
1229
1238
  "data-hide-label",
1230
1239
  "data-show-icon",
@@ -1232,10 +1241,10 @@ var x = () => {
1232
1241
  "data-icon-trailing",
1233
1242
  "data-hide-asterisk",
1234
1243
  "data-show-icon-trailing"
1235
- ], kt = ["for"], At = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), jt = ["id"], Mt = ["value"], Nt = {
1244
+ ], jt = ["for"], Mt = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), Nt = ["id"], Pt = ["value"], Ft = {
1236
1245
  "data-visually-hidden": "true",
1237
1246
  role: "status"
1238
- }, Pt = /* @__PURE__ */ s({
1247
+ }, It = /* @__PURE__ */ s({
1239
1248
  name: "DBInput",
1240
1249
  __name: "input",
1241
1250
  props: {
@@ -1355,11 +1364,11 @@ var x = () => {
1355
1364
  setup(s, { emit: l }) {
1356
1365
  let x = v(), S = l, T = s, P = p(void 0), L = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p(void 0), ee = p(""), U = p(""), te = p(void 0), W = p(null);
1357
1366
  u(() => {
1358
- se(), B.value = T.invalidMessage || "TODO: Add an invalidMessage";
1367
+ Y(), B.value = T.invalidMessage || "TODO: Add an invalidMessage";
1359
1368
  }), d(() => {
1360
1369
  te.value?.abort();
1361
1370
  }), y(() => [T.id, T.propOverrides?.id], () => {
1362
- (T.id ?? T.propOverrides?.id) && se();
1371
+ (T.id ?? T.propOverrides?.id) && Y();
1363
1372
  }, {
1364
1373
  immediate: !0,
1365
1374
  flush: "post"
@@ -1370,8 +1379,8 @@ var x = () => {
1370
1379
  flush: "post"
1371
1380
  }), y(() => [P.value], () => {
1372
1381
  if (P.value) {
1373
- let e = P.value + q;
1374
- L.value = e, R.value = P.value + J, z.value = P.value + ce, V.value = T.dataListId ?? P.value + "-datalist", I(T.message, T.showMessage) && (H.value = e), re();
1382
+ let e = P.value + X;
1383
+ L.value = e, R.value = P.value + se, z.value = P.value + ce, V.value = T.dataListId ?? P.value + "-datalist", I(T.message, T.showMessage) && (H.value = e), re();
1375
1384
  }
1376
1385
  }, {
1377
1386
  immediate: !0,
@@ -1384,7 +1393,7 @@ var x = () => {
1384
1393
  }), y(() => [W.value], () => {
1385
1394
  if (W.value) {
1386
1395
  let e = te.value;
1387
- e || (e = new AbortController(), te.value = e), Ye(W.value, {
1396
+ e || (e = new AbortController(), te.value = e), Ze(W.value, {
1388
1397
  value: T.value,
1389
1398
  defaultValue: void 0
1390
1399
  }, (e) => {
@@ -1402,27 +1411,27 @@ var x = () => {
1402
1411
  !W.value?.validity.valid || T.validation === "invalid" ? (H.value = z.value, B.value = T.invalidMessage || W.value?.validationMessage || "TODO: Add an invalidMessage", E() && (U.value = B.value, O(() => U.value = "", 1e3))) : ne() && W.value?.validity.valid && (T.required || T.minLength || T.maxLength || T.pattern) ? (H.value = R.value, E() && (U.value = T.validMessage ?? "TODO: Add a validMessage", O(() => U.value = "", 1e3))) : I(T.message, T.showMessage) ? H.value = L.value : H.value = void 0;
1403
1412
  }
1404
1413
  function G(e, t) {
1405
- T.input && T.input(e), ee.value = e.target.value, T.onInput && T.onInput(e), Q(S, e), re();
1414
+ T.input && T.input(e), ee.value = e.target.value, T.onInput && T.onInput(e), Je(S, e), re();
1406
1415
  }
1407
1416
  function ie(e, t) {
1408
- T.onChange && T.onChange(e), Q(S, e), re();
1417
+ T.onChange && T.onChange(e), Je(S, e), re();
1409
1418
  }
1410
- function ae(e) {
1419
+ function K(e) {
1411
1420
  T.onBlur && T.onBlur(e);
1412
1421
  }
1413
- function K(e) {
1422
+ function q(e) {
1414
1423
  T.onFocus && T.onFocus(e);
1415
1424
  }
1416
- function oe() {
1425
+ function J() {
1417
1426
  let e = T.dataList;
1418
1427
  return Array.from((w(e) ? e?.map((e) => ({
1419
1428
  value: e,
1420
1429
  label: void 0
1421
1430
  })) : e) || []);
1422
1431
  }
1423
- function se() {
1432
+ function Y() {
1424
1433
  let e = T.id ?? T.propOverrides?.id ?? `input-${x}`;
1425
- P.value = e, L.value = e + q, R.value = e + J, z.value = e + ce, V.value = e + Y;
1434
+ P.value = e, L.value = e + X, R.value = e + se, z.value = e + ce, V.value = e + ue;
1426
1435
  }
1427
1436
  return (l, u) => (f(), r("div", {
1428
1437
  class: c(_(C)("db-input", T.class)),
@@ -1434,7 +1443,7 @@ var x = () => {
1434
1443
  "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
1435
1444
  "data-show-icon-trailing": _(k)(s.showIconTrailing, "showIconTrailing")
1436
1445
  }, [
1437
- i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, kt),
1446
+ i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, jt),
1438
1447
  i("input", {
1439
1448
  "aria-invalid": s.validation === "invalid",
1440
1449
  "data-custom-validity": s.validation,
@@ -1465,8 +1474,8 @@ var x = () => {
1465
1474
  inputMode: s.inputmode,
1466
1475
  onInput: u[0] ||= async (e) => G(e),
1467
1476
  onChange: u[1] ||= async (e) => ie(e),
1468
- onBlur: u[2] ||= async (e) => ae(e),
1469
- onFocus: u[3] ||= async (e) => K(e),
1477
+ onBlur: u[2] ||= async (e) => K(e),
1478
+ onFocus: u[3] ||= async (e) => q(e),
1470
1479
  list: s.dataList && V.value,
1471
1480
  "aria-describedby": s.ariaDescribedBy ?? H.value,
1472
1481
  role: [
@@ -1477,14 +1486,14 @@ var x = () => {
1477
1486
  "month",
1478
1487
  "color"
1479
1488
  ].includes(s.type ?? "") && _(D)() ? "textbox" : void 0
1480
- }, null, 40, At),
1489
+ }, null, 40, Mt),
1481
1490
  s.dataList ? (f(), r("datalist", {
1482
1491
  key: 0,
1483
1492
  id: V.value
1484
- }, [(f(!0), r(e, null, m(oe(), (e) => (f(), r("option", {
1493
+ }, [(f(!0), r(e, null, m(J(), (e) => (f(), r("option", {
1485
1494
  key: V.value + "-option-" + e.value,
1486
1495
  value: e.value
1487
- }, g(e.label), 9, Mt))), 128))], 8, jt)) : n("", !0),
1496
+ }, g(e.label), 9, Pt))), 128))], 8, Nt)) : n("", !0),
1488
1497
  h(l.$slots, "default"),
1489
1498
  _(I)(s.message, s.showMessage) ? (f(), t($, {
1490
1499
  key: 1,
@@ -1516,10 +1525,10 @@ var x = () => {
1516
1525
  default: b(() => [a(g(B.value), 1)]),
1517
1526
  _: 1
1518
1527
  }, 8, ["id", "size"]),
1519
- i("span", Nt, g(U.value), 1)
1520
- ], 10, Ot));
1528
+ i("span", Ft, g(U.value), 1)
1529
+ ], 10, At));
1521
1530
  }
1522
- }), Ft = [
1531
+ }), Lt = [
1523
1532
  "id",
1524
1533
  "data-emphasis",
1525
1534
  "data-wrap",
@@ -1528,7 +1537,7 @@ var x = () => {
1528
1537
  "data-width",
1529
1538
  "data-show-arrow",
1530
1539
  "data-placement"
1531
- ], It = /* @__PURE__ */ s({
1540
+ ], Rt = /* @__PURE__ */ s({
1532
1541
  name: "DBTooltip",
1533
1542
  __name: "tooltip",
1534
1543
  props: {
@@ -1558,7 +1567,7 @@ var x = () => {
1558
1567
  text: { default: void 0 }
1559
1568
  },
1560
1569
  setup(t) {
1561
- let i = v(), o = t, s = p(G), l = p(!1), m = p(void 0), b = p(void 0), x = p(void 0), S = p(void 0), w = p(void 0), T = p(0), E = p([]), D = p(null);
1570
+ let i = v(), o = t, s = p(void 0), l = p(!1), m = p(void 0), b = p(void 0), x = p(void 0), S = p(void 0), w = p(void 0), T = p(0), E = p([]), D = p(null);
1562
1571
  u(() => {
1563
1572
  L(), l.value = !0;
1564
1573
  }), d(() => {
@@ -1578,7 +1587,7 @@ var x = () => {
1578
1587
  if (e) {
1579
1588
  N(e);
1580
1589
  let t = () => I(e), n = () => F(), r = (e) => j(e);
1581
- e.addEventListener("mouseenter", t), e.addEventListener("focusin", t), e.addEventListener("keydown", r), e.addEventListener("mouseleave", n), e.addEventListener("focusout", n), E.value = [
1590
+ if (e.addEventListener("mouseenter", t), e.addEventListener("focusin", t), e.addEventListener("keydown", r), e.addEventListener("mouseleave", n), e.addEventListener("focusout", n), E.value = [
1582
1591
  ...E.value ?? [],
1583
1592
  {
1584
1593
  parent: e,
@@ -1605,7 +1614,12 @@ var x = () => {
1605
1614
  type: "focusout",
1606
1615
  fn: n
1607
1616
  }
1608
- ], e.dataset.hasTooltip = "true", o.variant === "label" ? e.setAttribute("aria-labelledby", s.value) : e.setAttribute("aria-describedby", s.value), S.value = e, w.value = s.value;
1617
+ ], e.dataset.hasTooltip = "true", o.variant === "label") e.setAttribute("aria-labelledby", s.value);
1618
+ else {
1619
+ let t = (e.getAttribute("aria-describedby") || "").split(" ").filter((e) => e !== "");
1620
+ t.includes(s.value) || t.push(s.value), e.setAttribute("aria-describedby", t.join(" "));
1621
+ }
1622
+ S.value = e, w.value = s.value;
1609
1623
  }
1610
1624
  l.value = !1;
1611
1625
  }
@@ -1625,17 +1639,17 @@ var x = () => {
1625
1639
  }
1626
1640
  function N(e) {
1627
1641
  e && D.value && O(() => {
1628
- D.value && ft(D.value, e);
1642
+ D.value && mt(D.value, e);
1629
1643
  }, 1);
1630
1644
  }
1631
1645
  function P(e, t) {
1632
1646
  e?.target?.contains && e?.target?.contains(D.value) && N(t);
1633
1647
  }
1634
1648
  function F() {
1635
- T.value = Math.max((T.value ?? 0) - 1, 0), !((T.value ?? 0) > 0) && (m.value &&= (new ot().removeCallback(m.value), void 0), x.value &&= (new _t().unobserve(x.value), void 0), b.value &&= (new gt().unobserve(b.value), void 0));
1649
+ T.value = Math.max((T.value ?? 0) - 1, 0), !((T.value ?? 0) > 0) && (m.value &&= (new ct().removeCallback(m.value), void 0), x.value &&= (new yt().unobserve(x.value), void 0), b.value &&= (new vt().unobserve(b.value), void 0));
1636
1650
  }
1637
1651
  function I(e) {
1638
- T.value = (T.value ?? 0) + 1, T.value === 1 && (m.value = new ot().addCallback((t) => P(t, e)), x.value = new _t().observe(document.documentElement, () => N(e)), b.value = new gt().observe(M(), (e) => {
1652
+ T.value = (T.value ?? 0) + 1, T.value === 1 && (m.value = new ct().addCallback((t) => P(t, e)), x.value = new yt().observe(document.documentElement, () => N(e)), b.value = new vt().observe(M(), (e) => {
1639
1653
  e.isIntersecting || j(!1);
1640
1654
  })), N(e);
1641
1655
  }
@@ -1644,13 +1658,15 @@ var x = () => {
1644
1658
  }
1645
1659
  function R() {
1646
1660
  let e = m.value;
1647
- e && (new ot().removeCallback(e), m.value = void 0), x.value &&= (new _t().unobserve(x.value), void 0), b.value &&= (new gt().unobserve(b.value), void 0), T.value = 0, (E.value ?? []).forEach((e) => {
1661
+ e && (new ct().removeCallback(e), m.value = void 0), x.value &&= (new yt().unobserve(x.value), void 0), b.value &&= (new vt().unobserve(b.value), void 0), T.value = 0, (E.value ?? []).forEach((e) => {
1648
1662
  e.parent.removeEventListener(e.type, e.fn);
1649
1663
  }), E.value = [];
1650
1664
  let t = S.value;
1651
1665
  if (t) {
1652
1666
  let e = w.value ?? s.value, n = t.querySelectorAll(".db-tooltip"), r = Array.from(n).some((e) => e !== D.value);
1653
- t.dataset.hasTooltip === "true" && !r && delete t.dataset.hasTooltip, t.getAttribute("aria-labelledby") === e && t.removeAttribute("aria-labelledby"), t.getAttribute("aria-describedby") === e && t.removeAttribute("aria-describedby"), S.value = void 0, w.value = void 0;
1667
+ t.dataset.hasTooltip === "true" && !r && delete t.dataset.hasTooltip, t.getAttribute("aria-labelledby") === e && t.removeAttribute("aria-labelledby");
1668
+ let i = t.getAttribute("aria-describedby") || "", a = i.split(" ").filter((t) => t !== "" && t !== e).join(" ");
1669
+ a ? t.setAttribute("aria-describedby", a) : i && t.removeAttribute("aria-describedby"), S.value = void 0, w.value = void 0;
1654
1670
  }
1655
1671
  }
1656
1672
  return (i, l) => (f(), r("i", {
@@ -1669,9 +1685,9 @@ var x = () => {
1669
1685
  "data-show-arrow": _(k)(t.showArrow ?? !0, "showArrow"),
1670
1686
  "data-placement": t.placement,
1671
1687
  onClick: l[0] ||= async (e) => A(e)
1672
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10, Ft));
1688
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10, Lt));
1673
1689
  }
1674
- }), Lt = [
1690
+ }), zt = [
1675
1691
  "id",
1676
1692
  "data-semantic",
1677
1693
  "data-emphasis",
@@ -1680,7 +1696,7 @@ var x = () => {
1680
1696
  "data-show-icon",
1681
1697
  "data-no-text",
1682
1698
  "data-overflow"
1683
- ], Rt = /* @__PURE__ */ s({
1699
+ ], Bt = /* @__PURE__ */ s({
1684
1700
  name: "DBTag",
1685
1701
  __name: "tag",
1686
1702
  props: {
@@ -1726,7 +1742,7 @@ var x = () => {
1726
1742
  e && (e.stopPropagation(), i.onRemove && i.onRemove(e));
1727
1743
  }
1728
1744
  function u() {
1729
- return i.removeButton ? i.removeButton : fe;
1745
+ return i.removeButton ? i.removeButton : pe;
1730
1746
  }
1731
1747
  return (d, p) => (f(), r("div", {
1732
1748
  ref_key: "_ref",
@@ -1753,13 +1769,13 @@ var x = () => {
1753
1769
  "data-variant": "ghost",
1754
1770
  type: "button",
1755
1771
  onClick: p[0] ||= async (e) => l(e)
1756
- }, [o(It, { variant: "label" }, {
1772
+ }, [o(Rt, { variant: "label" }, {
1757
1773
  default: b(() => [a(g(u()), 1)]),
1758
1774
  _: 1
1759
1775
  })])) : n("", !0)
1760
- ], 10, Lt));
1776
+ ], 10, zt));
1761
1777
  }
1762
- }), zt = [
1778
+ }), Vt = [
1763
1779
  "id",
1764
1780
  "aria-invalid",
1765
1781
  "data-custom-validity",
@@ -1772,7 +1788,7 @@ var x = () => {
1772
1788
  "data-hide-label",
1773
1789
  "data-icon",
1774
1790
  "data-show-icon"
1775
- ], Bt = ["id"], Vt = [
1791
+ ], Ht = ["id"], Ut = [
1776
1792
  "id",
1777
1793
  "form",
1778
1794
  "name",
@@ -1780,18 +1796,18 @@ var x = () => {
1780
1796
  "multiple",
1781
1797
  "disabled",
1782
1798
  "required"
1783
- ], Ht = ["disabled", "value"], Ut = ["open"], Wt = [
1799
+ ], Wt = ["disabled", "value"], Gt = ["open"], Kt = [
1784
1800
  "id",
1785
1801
  "aria-disabled",
1786
1802
  "tabIndex",
1787
1803
  "aria-labelledby"
1788
- ], Gt = ["data-visually-hidden", "id"], Kt = {
1804
+ ], qt = ["data-visually-hidden", "id"], Jt = {
1789
1805
  key: 0,
1790
1806
  "data-visually-hidden": "true"
1791
- }, qt = { key: 1 }, Jt = { key: 0 }, Yt = { key: 0 }, Xt = { class: "db-checkbox db-custom-select-list-item" }, Zt = ["form", "checked"], Qt = ["id"], $t = {
1807
+ }, Yt = { key: 1 }, Xt = { key: 0 }, Zt = { key: 0 }, Qt = { class: "db-checkbox db-custom-select-list-item" }, $t = ["form", "checked"], en = ["id"], tn = {
1792
1808
  "data-visually-hidden": "true",
1793
1809
  role: "status"
1794
- }, en = /* @__PURE__ */ s({
1810
+ }, nn = /* @__PURE__ */ s({
1795
1811
  name: "DBCustomSelect",
1796
1812
  __name: "custom-select",
1797
1813
  props: {
@@ -1916,32 +1932,32 @@ var x = () => {
1916
1932
  },
1917
1933
  emits: ["update:values"],
1918
1934
  setup(s, { emit: l }) {
1919
- let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), ee = p(!1), U = p(void 0), te = p(void 0), W = p(""), ne = p(void 0), re = p(""), G = p([]), ie = p(!1), ae = p(!1), K = p(0), Y = p([]), ue = p([]), de = p(!1), pe = p(void 0), he = p(0), ge = p(void 0), _e = p(void 0), ve = p(void 0), ye = p(void 0), be = p(!1), xe = p(!1), Se = p(null), X = p(null), Z = p(null), Ce = p(null), we = p(null);
1935
+ let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), ee = p(!1), U = p(void 0), te = p(void 0), W = p(""), ne = p(void 0), re = p(""), G = p([]), ie = p(!1), K = p(!1), q = p(0), J = p([]), Y = p([]), ue = p(!1), de = p(void 0), fe = p(0), me = p(void 0), ge = p(void 0), _e = p(void 0), ve = p(void 0), ye = p(!1), be = p(!1), xe = p(null), Z = p(null), Q = p(null), Se = p(null), Ce = p(null);
1920
1936
  u(() => {
1921
1937
  Ze(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
1922
1938
  }), d(() => {
1923
- U.value?.abort(), pe.value && new at().removeCallback(pe.value), ge.value && new ot().removeCallback(ge.value), ve.value && new _t().unobserve(ve.value), _e.value && new gt().unobserve(_e.value);
1939
+ U.value?.abort(), de.value && new st().removeCallback(de.value), me.value && new ct().removeCallback(me.value), _e.value && new yt().unobserve(_e.value), ge.value && new vt().unobserve(ge.value);
1924
1940
  }), y(() => [w.id, w.propOverrides?.id], () => {
1925
1941
  (w.id ?? w.propOverrides?.id) && Ze();
1926
1942
  }, {
1927
1943
  immediate: !0,
1928
1944
  flush: "post"
1929
- }), y(() => [X.value], () => {
1930
- X.value && X.value.addEventListener("focusout", (e) => ze(e));
1945
+ }), y(() => [Z.value], () => {
1946
+ Z.value && Z.value.addEventListener("focusout", (e) => Re(e));
1931
1947
  }, {
1932
1948
  immediate: !0,
1933
1949
  flush: "post"
1934
1950
  }), y(() => [T.value], () => {
1935
1951
  if (T.value) {
1936
- let e = T.value + q;
1937
- R.value = T.value + oe, P.value = T.value + se, j.value = T.value + J, M.value = T.value + ce, B.value = T.value + le, I(w.message, w.showMessage) ? Ae(e) : Ae();
1952
+ let e = T.value + X;
1953
+ R.value = T.value + ae, P.value = T.value + oe, j.value = T.value + se, M.value = T.value + ce, B.value = T.value + le, I(w.message, w.showMessage) ? ke(e) : ke();
1938
1954
  }
1939
1955
  }, {
1940
1956
  immediate: !0,
1941
1957
  flush: "post"
1942
- }), y(() => [X.value, te.value], () => {
1943
- if (X.value) {
1944
- let e = X.value.querySelector("summary");
1958
+ }), y(() => [Z.value, te.value], () => {
1959
+ if (Z.value) {
1960
+ let e = Z.value.querySelector("summary");
1945
1961
  e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (te.value || ""));
1946
1962
  }
1947
1963
  }, {
@@ -1950,44 +1966,44 @@ var x = () => {
1950
1966
  }), y(() => [
1951
1967
  w.showNoResults,
1952
1968
  w.showLoading,
1953
- ue.value
1969
+ Y.value
1954
1970
  ], () => {
1955
- w.showNoResults === void 0 ? ue.value && (de.value = ue.value.length === 0) : de.value = w.showNoResults;
1971
+ w.showNoResults === void 0 ? Y.value && (ue.value = Y.value.length === 0) : ue.value = w.showNoResults;
1956
1972
  }, {
1957
1973
  immediate: !0,
1958
1974
  flush: "post"
1959
1975
  }), y(() => [
1960
1976
  w.showSelectAll,
1961
- K.value,
1977
+ q.value,
1962
1978
  w.multiple
1963
1979
  ], () => {
1964
- ie.value = !!(w.multiple && (w.showSelectAll ?? K.value > 5));
1980
+ ie.value = !!(w.multiple && (w.showSelectAll ?? q.value > 5));
1965
1981
  }, {
1966
1982
  immediate: !0,
1967
1983
  flush: "post"
1968
- }), y(() => [w.showSearch, K.value], () => {
1969
- ae.value = w.showSearch ?? K.value > 9;
1984
+ }), y(() => [w.showSearch, q.value], () => {
1985
+ K.value = w.showSearch ?? q.value > 9;
1970
1986
  }, {
1971
1987
  immediate: !0,
1972
1988
  flush: "post"
1973
1989
  }), y(() => [w.values], () => {
1974
1990
  let e = w.values;
1975
- Array.isArray(e) ? Y.value !== e && (Y.value = e) : e == null && Y.value?.length !== 0 && (Y.value = []);
1991
+ Array.isArray(e) ? J.value !== e && (J.value = e) : e == null && J.value?.length !== 0 && (J.value = []);
1976
1992
  }, {
1977
1993
  immediate: !0,
1978
1994
  flush: "post"
1979
- }), y(() => [Y.value, Z.value], () => {
1980
- Z.value && De();
1995
+ }), y(() => [J.value, Q.value], () => {
1996
+ Q.value && Ee();
1981
1997
  }, {
1982
1998
  immediate: !0,
1983
1999
  flush: "post"
1984
- }), y(() => [Z.value], () => {
1985
- if (Z.value) {
2000
+ }), y(() => [Q.value], () => {
2001
+ if (Q.value) {
1986
2002
  let e = U.value;
1987
2003
  e || (e = new AbortController(), U.value = e);
1988
2004
  let t = w.values;
1989
- qe(Z.value, () => {
1990
- He(t || (Z.value.value ? [Z.value.value] : [])), De();
2005
+ Ye(Q.value, () => {
2006
+ Be(t || (Q.value.value ? [Q.value.value] : [])), Ee();
1991
2007
  }, e.signal);
1992
2008
  }
1993
2009
  }, {
@@ -1998,26 +2014,26 @@ var x = () => {
1998
2014
  }, {
1999
2015
  immediate: !0,
2000
2016
  flush: "post"
2001
- }), y(() => [Y.value, K.value], () => {
2002
- Y.value?.length === 0 ? (be.value = !1, xe.value = !1) : Y.value?.length === K.value ? (xe.value = !1, be.value = !0) : Y.value && (xe.value = !0);
2017
+ }), y(() => [J.value, q.value], () => {
2018
+ J.value?.length === 0 ? (ye.value = !1, be.value = !1) : J.value?.length === q.value ? (be.value = !1, ye.value = !0) : J.value && (be.value = !0);
2003
2019
  }, {
2004
2020
  immediate: !0,
2005
2021
  flush: "post"
2006
2022
  }), y(() => [w.options], () => {
2007
- ue.value = w.options, K.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0, X.value?.open && Ie();
2023
+ Y.value = w.options, q.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0, Z.value?.open && Fe();
2008
2024
  }, {
2009
2025
  immediate: !0,
2010
2026
  flush: "post"
2011
2027
  }), y(() => [w.searchValue], () => {
2012
- if (ye.value = w.searchValue, w.searchValue) {
2028
+ if (ve.value = w.searchValue, w.searchValue) {
2013
2029
  let e = w.searchValue;
2014
- Je(e);
2030
+ Ke(e);
2015
2031
  }
2016
2032
  }, {
2017
2033
  immediate: !0,
2018
2034
  flush: "post"
2019
- }), y(() => [w.options, Y.value], () => {
2020
- w.options?.length && (G.value = w.options?.filter((e) => !e.value || !Y.value?.includes ? !1 : !e.isGroupTitle && Y.value?.includes(e.value)));
2035
+ }), y(() => [w.options, J.value], () => {
2036
+ w.options?.length && (G.value = w.options?.filter((e) => !e.value || !J.value?.includes ? !1 : !e.isGroupTitle && J.value?.includes(e.value)));
2021
2037
  }, {
2022
2038
  immediate: !0,
2023
2039
  flush: "post"
@@ -2038,7 +2054,7 @@ var x = () => {
2038
2054
  W.value = t(e);
2039
2055
  return;
2040
2056
  }
2041
- w.selectedType === "amount" ? W.value = w.amountText ? w.amountText : `${G.value?.length} ${me}` : W.value = G.value?.map((e) => Me(e)).join(", ");
2057
+ w.selectedType === "amount" ? W.value = w.amountText ? w.amountText : `${G.value?.length} ${he}` : W.value = G.value?.map((e) => je(e)).join(", ");
2042
2058
  } else W.value = "";
2043
2059
  }, {
2044
2060
  immediate: !0,
@@ -2048,68 +2064,68 @@ var x = () => {
2048
2064
  }, {
2049
2065
  immediate: !0,
2050
2066
  flush: "post"
2051
- }), y(() => [xe.value, Ce.value], () => {
2052
- Ce.value && (Ce.value.indeterminate = !!xe.value);
2067
+ }), y(() => [be.value, Se.value], () => {
2068
+ Se.value && (Se.value.indeterminate = !!be.value);
2053
2069
  }, {
2054
2070
  immediate: !0,
2055
2071
  flush: "post"
2056
- }), y(() => [Z.value, w.invalidMessage], () => {
2057
- N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage";
2072
+ }), y(() => [Q.value, w.invalidMessage], () => {
2073
+ N.value = w.invalidMessage || Q.value?.validationMessage || "TODO: Add an invalidMessage";
2058
2074
  }, {
2059
2075
  immediate: !0,
2060
2076
  flush: "post"
2061
2077
  });
2062
- function Te(e) {
2063
- e?.target?.contains && e?.target?.contains(X.value) && Ie();
2078
+ function we(e) {
2079
+ e?.target?.contains && e?.target?.contains(Z.value) && Fe();
2064
2080
  }
2065
- function Ee() {
2081
+ function Te() {
2066
2082
  return !!(w.validMessage ?? w.validation === "valid");
2067
2083
  }
2068
- function De() {
2069
- Z.value && (Z.value.value = ke()), !Z.value?.validity.valid || w.validation === "invalid" ? (Ae(M.value), N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage", E() && (re.value = N.value, O(() => re.value = "", 1e3)), ee.value && (H.value = w.validation ?? "invalid")) : Ee() && Z.value?.validity.valid && w.required ? (Ae(j.value), E() && (re.value = w.validMessage ?? "TODO: Add a validMessage", O(() => re.value = "", 1e3)), H.value = w.validation ?? "valid") : I(w.message, w.showMessage) ? (Ae(D.value), H.value = w.validation ?? "no-validation") : (Ae(B.value), H.value = w.validation ?? "no-validation");
2084
+ function Ee() {
2085
+ Q.value && (Q.value.value = Oe()), !Q.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Q.value?.validationMessage || "TODO: Add an invalidMessage", E() && (re.value = N.value, O(() => re.value = "", 1e3)), ee.value && (H.value = w.validation ?? "invalid")) : Te() && Q.value?.validity.valid && w.required ? (ke(j.value), E() && (re.value = w.validMessage ?? "TODO: Add a validMessage", O(() => re.value = "", 1e3)), H.value = w.validation ?? "valid") : I(w.message, w.showMessage) ? (ke(D.value), H.value = w.validation ?? "no-validation") : (ke(B.value), H.value = w.validation ?? "no-validation");
2070
2086
  }
2071
- function Oe(e) {
2072
- w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (pe.value = new at().addCallback((e) => Ve(e)), ge.value = new ot().addCallback((e) => Te(e)), Ie(), ve.value = new _t().observe(document.documentElement, () => Ie()), _e.value = new gt().observe(X.value, (e) => {
2073
- !e.isIntersecting && X.value.open && (X.value.open = !1);
2074
- }), e.target.dataset.test || Ke()) : (pe.value && new at().removeCallback(pe.value), ge.value && new ot().removeCallback(ge.value), ve.value && new _t().unobserve(ve.value), _e.value && new gt().unobserve(_e.value));
2087
+ function De(e) {
2088
+ w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (de.value = new st().addCallback((e) => ze(e)), me.value = new ct().addCallback((e) => we(e)), Fe(), _e.value = new yt().observe(document.documentElement, () => Fe()), ge.value = new vt().observe(Z.value, (e) => {
2089
+ !e.isIntersecting && Z.value.open && (Z.value.open = !1);
2090
+ }), e.target.dataset.test || Ge()) : (de.value && new st().removeCallback(de.value), me.value && new ct().removeCallback(me.value), _e.value && new yt().unobserve(_e.value), ge.value && new vt().unobserve(ge.value));
2075
2091
  }
2076
- function ke() {
2077
- return Y.value?.length ? Y.value.at(0) ?? "" : "";
2092
+ function Oe() {
2093
+ return J.value?.length ? J.value.at(0) ?? "" : "";
2078
2094
  }
2079
- function Ae(e) {
2095
+ function ke(e) {
2080
2096
  let t = [];
2081
2097
  e && t.push(e), ne.value && W.value?.length && t.push(ne.value), te.value = t.join(" ");
2082
2098
  }
2083
- function je() {
2099
+ function Ae() {
2084
2100
  return w.selectAllLabel ?? "LABEL SHOULD BE SET";
2085
2101
  }
2086
- function Me(e) {
2102
+ function je(e) {
2087
2103
  return e.label ?? e.value?.toString() ?? "";
2088
2104
  }
2089
- function Ne(e) {
2090
- return e && Y.value?.includes ? Y.value?.includes(e) : !1;
2105
+ function Me(e) {
2106
+ return e && J.value?.includes ? J.value?.includes(e) : !1;
2091
2107
  }
2092
- function Pe(e) {
2108
+ function Ne(e) {
2093
2109
  let t = w.removeTagsTexts, n = w.options;
2094
2110
  if (t && n) {
2095
2111
  let r = n.findIndex((t) => t.value === e.value);
2096
2112
  if (r >= 0 && r < t.length) return t[r];
2097
2113
  }
2098
- return `${fe} ${Me(e)}`;
2114
+ return `${pe} ${je(e)}`;
2099
2115
  }
2100
- function Fe(e, t) {
2101
- t && t.stopPropagation(), Ue(e.value), Xe();
2116
+ function Pe(e, t) {
2117
+ t && t.stopPropagation(), He(e.value), Xe();
2102
2118
  }
2103
- function Ie() {
2104
- if (X.value) {
2105
- let e = X.value.querySelector("article");
2119
+ function Fe() {
2120
+ if (Z.value) {
2121
+ let e = Z.value.querySelector("article");
2106
2122
  e && O(() => {
2107
- st(e, X.value, w.placement ?? "bottom");
2123
+ lt(e, Z.value, w.placement ?? "bottom");
2108
2124
  }, 1);
2109
2125
  }
2110
2126
  }
2111
- function Le(e) {
2112
- if (X.value?.open) {
2127
+ function Ie(e) {
2128
+ if (Z.value?.open) {
2113
2129
  if (self.document) {
2114
2130
  let t = self.document.activeElement;
2115
2131
  if (t) if (t.getAttribute("type") === "checkbox" || t.getAttribute("type") === "radio") {
@@ -2124,7 +2140,7 @@ var x = () => {
2124
2140
  }
2125
2141
  e = e.nextElementSibling;
2126
2142
  }
2127
- e || Ge(t);
2143
+ e || We(t);
2128
2144
  } else {
2129
2145
  let e = n?.previousElementSibling;
2130
2146
  for (; e;) {
@@ -2136,69 +2152,69 @@ var x = () => {
2136
2152
  e = e.previousElementSibling;
2137
2153
  }
2138
2154
  if (!e) {
2139
- let e = X.value.querySelector("input[type=\"checkbox\"]");
2140
- if (e && e !== t) Ge(t);
2155
+ let e = Z.value.querySelector("input[type=\"checkbox\"]");
2156
+ if (e && e !== t) We(t);
2141
2157
  else {
2142
- let e = L(X.value);
2158
+ let e = L(Z.value);
2143
2159
  if (e) O(() => {
2144
2160
  e.focus();
2145
2161
  }, 100);
2146
2162
  else {
2147
- let e = Array.from(X.value?.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
2163
+ let e = Array.from(Z.value?.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
2148
2164
  e.length && e.at(-1)?.focus();
2149
2165
  }
2150
2166
  }
2151
2167
  }
2152
2168
  }
2153
- } else t.getAttribute("type") === "search" && (e.key === "ArrowUp" || e.key === "ArrowLeft") ? (ze(void 0, !0), Xe()) : Ge(t);
2169
+ } else t.getAttribute("type") === "search" && (e.key === "ArrowUp" || e.key === "ArrowLeft") ? (Re(void 0, !0), Xe()) : We(t);
2154
2170
  }
2155
- } else (e.key === "ArrowDown" || e.key === "ArrowRight") && (Ie(), X.value && (X.value.open = !0), Ke());
2171
+ } else (e.key === "ArrowDown" || e.key === "ArrowRight") && (Fe(), Z.value && (Z.value.open = !0), Ge());
2156
2172
  e.stopPropagation(), e.preventDefault();
2157
2173
  }
2158
- function Re(e) {
2159
- if (e.stopPropagation(), e.key === "Escape" && X.value?.open) ze(void 0, !0), Xe();
2160
- else if (e.key === "Enter" && X.value?.open) {
2174
+ function Le(e) {
2175
+ if (e.stopPropagation(), e.key === "Escape" && Z.value?.open) Re(void 0, !0), Xe();
2176
+ else if (e.key === "Enter" && Z.value?.open) {
2161
2177
  if (self.document) {
2162
2178
  let t = self.document.activeElement;
2163
2179
  if (["checkbox", "radio"].includes(t.getAttribute("type") || "")) t.click(), e.preventDefault();
2164
2180
  else if (t.getAttribute("type") === "search") {
2165
- let t = ue.value?.find((e) => !e.isGroupTitle && !e.disabled);
2166
- t?.value && (Ue(t.value), e.preventDefault());
2181
+ let t = Y.value?.find((e) => !e.isGroupTitle && !e.disabled);
2182
+ t?.value && (He(t.value), e.preventDefault());
2167
2183
  }
2168
2184
  }
2169
- } else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Le(e);
2185
+ } else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Ie(e);
2170
2186
  }
2171
- function ze(e, t) {
2172
- if (X.value) {
2173
- if (t) X.value.open = !1, Xe();
2174
- else if (X.value.open && e && e.relatedTarget) {
2187
+ function Re(e, t) {
2188
+ if (Z.value) {
2189
+ if (t) Z.value.open = !1, Xe();
2190
+ else if (Z.value.open && e && e.relatedTarget) {
2175
2191
  let t = e.relatedTarget;
2176
- !X.value.contains(t) && t.localName !== "dialog" && O(() => X.value.open = !1, 1);
2192
+ !Z.value.contains(t) && t.localName !== "dialog" && O(() => Z.value.open = !1, 1);
2177
2193
  }
2178
2194
  }
2179
2195
  }
2180
- function Ve(e) {
2196
+ function ze(e) {
2181
2197
  if (e) {
2182
2198
  let t = e.target;
2183
- X.value?.open && !X.value.contains(t) && (X.value.open = !1);
2199
+ Z.value?.open && !Z.value.contains(t) && (Z.value.open = !1);
2184
2200
  }
2185
2201
  }
2202
+ function Be(e) {
2203
+ (/* @__PURE__ */ new Date()).getTime() - fe.value < 200 || (J.value = e, ee.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Je(S, { target: { values: e } }, "values"), fe.value = (/* @__PURE__ */ new Date()).getTime());
2204
+ }
2186
2205
  function He(e) {
2187
- (/* @__PURE__ */ new Date()).getTime() - he.value < 200 || (Y.value = e, ee.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Q(S, { target: { values: e } }, "values"), he.value = (/* @__PURE__ */ new Date()).getTime());
2206
+ e && (w.multiple ? J.value?.includes(e) ? Be(J.value.filter((t) => t !== e)) : Be([...J.value || [], e]) : (Be([e]), Re(void 0, !0)));
2188
2207
  }
2189
2208
  function Ue(e) {
2190
- e && (w.multiple ? Y.value?.includes(e) ? He(Y.value.filter((t) => t !== e)) : He([...Y.value || [], e]) : (He([e]), ze(void 0, !0)));
2191
- }
2192
- function We(e) {
2193
- if (e.stopPropagation(), Y.value?.length === K.value) He([]);
2209
+ if (e.stopPropagation(), J.value?.length === q.value) Be([]);
2194
2210
  else {
2195
- let e = ae.value && we.value ? we.value.value : void 0;
2196
- He(w.options ? w.options.filter((t) => !t.isGroupTitle && (!e || t.value?.toLowerCase().includes(e.toLowerCase()))).map((e) => e.value ?? "") : []);
2211
+ let e = K.value && Ce.value ? Ce.value.value : void 0;
2212
+ Be(w.options ? w.options.filter((t) => !t.isGroupTitle && (!e || t.value?.toLowerCase().includes(e.toLowerCase()))).map((e) => e.value ?? "") : []);
2197
2213
  }
2198
2214
  }
2199
- function Ge(e) {
2200
- if (X.value) {
2201
- let t = Array.from(X.value.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
2215
+ function We(e) {
2216
+ if (Z.value) {
2217
+ let t = Array.from(Z.value.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
2202
2218
  if (t.length) {
2203
2219
  let n = t.at(0), r = n === e && t.length > 1 ? t.at(1) : n;
2204
2220
  r && O(() => {
@@ -2207,33 +2223,33 @@ var x = () => {
2207
2223
  }
2208
2224
  }
2209
2225
  }
2210
- function Ke() {
2211
- if (X.value) {
2212
- let e = L(X.value);
2226
+ function Ge() {
2227
+ if (Z.value) {
2228
+ let e = L(Z.value);
2213
2229
  e ? O(() => {
2214
2230
  e.focus();
2215
- }, 1) : Ge();
2231
+ }, 1) : We();
2216
2232
  }
2217
2233
  }
2218
- function Je(e) {
2234
+ function Ke(e) {
2219
2235
  if (e === void 0) return;
2220
2236
  let t;
2221
2237
  if (typeof e == "string") t = e;
2222
2238
  else {
2223
2239
  let n = e;
2224
- n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value, ye.value = t;
2240
+ n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value, ve.value = t;
2225
2241
  }
2226
- !w.options || !t || t.length === 0 ? ue.value = w.options : w.searchFilter ? ue.value = w.options.filter((e) => w.searchFilter(e, t)) : ue.value = w.options.filter((e) => !e.isGroupTitle && Me(e).toLowerCase().includes(t.toLowerCase())), X.value?.open && Ie();
2242
+ !w.options || !t || t.length === 0 ? Y.value = w.options : w.searchFilter ? Y.value = w.options.filter((e) => w.searchFilter(e, t)) : Y.value = w.options.filter((e) => !e.isGroupTitle && je(e).toLowerCase().includes(t.toLowerCase())), Z.value?.open && Fe();
2227
2243
  }
2228
- function Ye(e) {
2229
- e.stopPropagation(), He([]), Xe();
2244
+ function qe(e) {
2245
+ e.stopPropagation(), Be([]), Xe();
2230
2246
  }
2231
2247
  function Xe() {
2232
- X.value && X.value.querySelector("summary")?.focus();
2248
+ Z.value && Z.value.querySelector("summary")?.focus();
2233
2249
  }
2234
2250
  function Ze() {
2235
2251
  let e = w.id ?? w.propOverrides?.id ?? `custom-select-${x}`;
2236
- T.value = e, D.value = e + q, j.value = e + J, M.value = e + ce, P.value = e + se, R.value = e + oe, z.value = e + "-summary", B.value = e + le, ne.value = e + "-selected-labels", V.value = e + "-info";
2252
+ T.value = e, D.value = e + X, j.value = e + se, M.value = e + ce, P.value = e + oe, R.value = e + ae, z.value = e + "-summary", B.value = e + le, ne.value = e + "-selected-labels", V.value = e + "-info";
2237
2253
  }
2238
2254
  function Qe(e) {
2239
2255
  e.stopPropagation();
@@ -2241,7 +2257,7 @@ var x = () => {
2241
2257
  return (l, u) => (f(), r("div", {
2242
2258
  id: T.value,
2243
2259
  ref_key: "_ref",
2244
- ref: Se,
2260
+ ref: xe,
2245
2261
  class: c(_(C)("db-custom-select", w.class)),
2246
2262
  "aria-invalid": H.value === "invalid",
2247
2263
  "data-custom-validity": H.value,
@@ -2261,7 +2277,7 @@ var x = () => {
2261
2277
  id: P.value,
2262
2278
  tabIndex: -1,
2263
2279
  ref_key: "selectRef",
2264
- ref: Z,
2280
+ ref: Q,
2265
2281
  form: s.form,
2266
2282
  name: s.name,
2267
2283
  "data-custom-validity": H.value,
@@ -2273,13 +2289,13 @@ var x = () => {
2273
2289
  key: t,
2274
2290
  disabled: e.disabled,
2275
2291
  value: e.value
2276
- }, g(Me(e)), 9, Ht))), 128)) : n("", !0)], 40, Vt)], 8, Bt),
2292
+ }, g(je(e)), 9, Wt))), 128)) : n("", !0)], 40, Ut)], 8, Ht),
2277
2293
  i("details", {
2278
2294
  ref_key: "detailsRef",
2279
- ref: X,
2295
+ ref: Z,
2280
2296
  open: s.open,
2281
- onToggle: u[2] ||= async (e) => Oe(e),
2282
- onKeydown: u[3] ||= async (e) => Re(e)
2297
+ onToggle: u[2] ||= async (e) => De(e),
2298
+ onKeydown: u[3] ||= async (e) => Le(e)
2283
2299
  }, [h(l.$slots, "default"), s.options ? (f(), r(e, { key: 0 }, [i("summary", {
2284
2300
  class: "db-custom-select-form-field",
2285
2301
  id: z.value,
@@ -2290,29 +2306,29 @@ var x = () => {
2290
2306
  key: 0,
2291
2307
  "data-visually-hidden": _(k)(s.selectedType === "tag", "selectedType"),
2292
2308
  id: ne.value
2293
- }, [s.selectedPrefix ? (f(), r("span", Kt, g(s.selectedPrefix), 1)) : n("", !0), a(" " + g(W.value), 1)], 8, Gt)) : n("", !0), s.selectedType === "tag" ? (f(), r("div", qt, [(f(!0), r(e, null, m(G.value, (e, n) => (f(), t(Rt, {
2309
+ }, [s.selectedPrefix ? (f(), r("span", Jt, g(s.selectedPrefix), 1)) : n("", !0), a(" " + g(W.value), 1)], 8, qt)) : n("", !0), s.selectedType === "tag" ? (f(), r("div", Yt, [(f(!0), r(e, null, m(G.value, (e, n) => (f(), t(Bt, {
2294
2310
  key: n,
2295
2311
  emphasis: "strong",
2296
2312
  behavior: "removable",
2297
- removeButton: Pe(e),
2298
- onRemove: (t) => Fe(e, t)
2313
+ removeButton: Ne(e),
2314
+ onRemove: (t) => Pe(e, t)
2299
2315
  }, {
2300
- default: b(() => [a(g(Me(e)), 1)]),
2316
+ default: b(() => [a(g(je(e)), 1)]),
2301
2317
  _: 2
2302
- }, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, Wt), o(yt, { width: s.dropdownWidth }, {
2318
+ }, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, Kt), o(xt, { width: s.dropdownWidth }, {
2303
2319
  default: b(() => [
2304
- ae.value ? (f(), r("div", Jt, [o(Pt, {
2320
+ K.value ? (f(), r("div", Xt, [o(It, {
2305
2321
  type: "search",
2306
2322
  ref_key: "searchInputRef",
2307
- ref: we,
2323
+ ref: Ce,
2308
2324
  name: T.value,
2309
2325
  form: T.value,
2310
2326
  showLabel: !1,
2311
- value: ye.value,
2327
+ value: ve.value,
2312
2328
  label: s.searchLabel ?? _("LABEL SHOULD BE SET"),
2313
2329
  placeholder: s.searchPlaceholder ?? s.searchLabel,
2314
- ariaDescribedBy: de.value || s.showLoading ? V.value : void 0,
2315
- onInput: (e) => Je(e)
2330
+ ariaDescribedBy: ue.value || s.showLoading ? V.value : void 0,
2331
+ onInput: (e) => Ke(e)
2316
2332
  }, null, 8, [
2317
2333
  "name",
2318
2334
  "form",
@@ -2322,7 +2338,7 @@ var x = () => {
2322
2338
  "ariaDescribedBy",
2323
2339
  "onInput"
2324
2340
  ])])) : n("", !0),
2325
- de.value || s.showLoading ? (f(), t($, {
2341
+ ue.value || s.showLoading ? (f(), t($, {
2326
2342
  key: 1,
2327
2343
  id: V.value,
2328
2344
  icon: s.showLoading ? "circular_arrows" : void 0,
@@ -2334,32 +2350,32 @@ var x = () => {
2334
2350
  "id",
2335
2351
  "icon",
2336
2352
  "semantic"
2337
- ])) : (f(), r(e, { key: 2 }, [ie.value ? (f(), r("div", Yt, [i("div", Xt, [i("label", null, [i("input", {
2353
+ ])) : (f(), r(e, { key: 2 }, [ie.value ? (f(), r("div", Zt, [i("div", Qt, [i("label", null, [i("input", {
2338
2354
  type: "checkbox",
2339
2355
  value: "select-all",
2340
2356
  ref_key: "selectAllRef",
2341
- ref: Ce,
2357
+ ref: Se,
2342
2358
  form: T.value,
2343
- checked: be.value,
2344
- onChange: u[1] ||= async (e) => We(e)
2345
- }, null, 40, Zt), a(g(je()), 1)])])])) : n("", !0), o(Dt, {
2359
+ checked: ye.value,
2360
+ onChange: u[1] ||= async (e) => Ue(e)
2361
+ }, null, 40, $t), a(g(Ae()), 1)])])])) : n("", !0), o(kt, {
2346
2362
  multiple: _(A)(s.multiple, "multiple"),
2347
2363
  label: s.listLabel ?? s.label ?? _("LABEL SHOULD BE SET")
2348
2364
  }, {
2349
- default: b(() => [(f(!0), r(e, null, m(ue.value, (i, o) => (f(), t(Tt, {
2365
+ default: b(() => [(f(!0), r(e, null, m(Y.value, (i, o) => (f(), t(Dt, {
2350
2366
  key: o,
2351
2367
  type: s.multiple ? "checkbox" : "radio",
2352
2368
  showDivider: i.showDivider,
2353
2369
  icon: i.icon,
2354
2370
  isGroupTitle: i.isGroupTitle,
2355
- groupTitle: Me(i),
2371
+ groupTitle: je(i),
2356
2372
  name: T.value,
2357
- checked: Ne(i.value),
2373
+ checked: Me(i.value),
2358
2374
  disabled: i.disabled,
2359
2375
  value: i.value,
2360
- onChange: (e) => Ue(i.value)
2376
+ onChange: (e) => He(i.value)
2361
2377
  }, {
2362
- default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(Me(i)), 1)], 64))]),
2378
+ default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(je(i)), 1)], 64))]),
2363
2379
  _: 2
2364
2380
  }, 1032, [
2365
2381
  "type",
@@ -2375,14 +2391,14 @@ var x = () => {
2375
2391
  ]))), 128))]),
2376
2392
  _: 1
2377
2393
  }, 8, ["multiple", "label"])], 64)),
2378
- i("div", null, [o(Be, {
2394
+ i("div", null, [o(Ve, {
2379
2395
  variant: "ghost",
2380
2396
  width: "full",
2381
2397
  icon: "cross",
2382
2398
  size: "small",
2383
2399
  name: T.value,
2384
2400
  form: T.value,
2385
- onClick: (e) => ze(void 0, !0)
2401
+ onClick: (e) => Re(void 0, !0)
2386
2402
  }, {
2387
2403
  default: b(() => [a(g(s.mobileCloseButtonText ?? _("Close")), 1)]),
2388
2404
  _: 1
@@ -2393,8 +2409,8 @@ var x = () => {
2393
2409
  ])])
2394
2410
  ]),
2395
2411
  _: 1
2396
- }, 8, ["width"])], 64)) : n("", !0)], 40, Ut),
2397
- (s.showClearSelection ?? !0) && Y.value?.length ? (f(), t(Be, {
2412
+ }, 8, ["width"])], 64)) : n("", !0)], 40, Gt),
2413
+ (s.showClearSelection ?? !0) && J.value?.length ? (f(), t(Ve, {
2398
2414
  key: 0,
2399
2415
  icon: "cross",
2400
2416
  variant: "ghost",
@@ -2403,9 +2419,9 @@ var x = () => {
2403
2419
  name: T.value,
2404
2420
  form: T.value,
2405
2421
  disabled: _(A)(s.disabled, "disabled"),
2406
- onClick: (e) => Ye(e)
2422
+ onClick: (e) => qe(e)
2407
2423
  }, {
2408
- default: b(() => [a(g(s.clearSelectionText), 1), o(It, { placement: "top" }, {
2424
+ default: b(() => [a(g(s.clearSelectionText), 1), o(Rt, { placement: "top" }, {
2409
2425
  default: b(() => [a(g(s.clearSelectionText), 1)]),
2410
2426
  _: 1
2411
2427
  })]),
@@ -2420,7 +2436,7 @@ var x = () => {
2420
2436
  class: "db-custom-select-placeholder",
2421
2437
  "aria-hidden": "true",
2422
2438
  id: B.value
2423
- }, g(s.placeholder ?? s.label), 9, Qt),
2439
+ }, g(s.placeholder ?? s.label), 9, en),
2424
2440
  _(I)(s.message, s.showMessage) ? (f(), t($, {
2425
2441
  key: 1,
2426
2442
  size: "small",
@@ -2430,7 +2446,7 @@ var x = () => {
2430
2446
  default: b(() => [a(g(s.message), 1)]),
2431
2447
  _: 1
2432
2448
  }, 8, ["icon", "id"])) : n("", !0),
2433
- Ee() ? (f(), t($, {
2449
+ Te() ? (f(), t($, {
2434
2450
  key: 2,
2435
2451
  size: "small",
2436
2452
  semantic: "successful",
@@ -2447,14 +2463,14 @@ var x = () => {
2447
2463
  default: b(() => [a(g(N.value), 1)]),
2448
2464
  _: 1
2449
2465
  }, 8, ["id"]),
2450
- i("span", $t, g(re.value), 1)
2451
- ], 10, zt));
2466
+ i("span", tn, g(re.value), 1)
2467
+ ], 10, Vt));
2452
2468
  }
2453
- }), tn = [
2469
+ }), rn = [
2454
2470
  "fixed",
2455
2471
  "auto",
2456
2472
  "full"
2457
- ], nn = ["id"], rn = /* @__PURE__ */ s({
2473
+ ], an = ["id"], on = /* @__PURE__ */ s({
2458
2474
  name: "DBCustomSelectFormField",
2459
2475
  __name: "custom-select-form-field",
2460
2476
  props: {
@@ -2472,19 +2488,19 @@ var x = () => {
2472
2488
  ref: n,
2473
2489
  id: e.id ?? e.propOverrides?.id,
2474
2490
  class: c(_(C)("db-custom-select-form-field", t.class))
2475
- }, [h(i.$slots, "default")], 10, nn));
2491
+ }, [h(i.$slots, "default")], 10, an));
2476
2492
  }
2477
- }), an = ["checkbox", "radio"], on = [
2493
+ }), sn = ["checkbox", "radio"], cn = [
2478
2494
  "amount",
2479
2495
  "text",
2480
2496
  "tag"
2481
- ], sn = [
2497
+ ], ln = [
2482
2498
  "id",
2483
2499
  "data-margin",
2484
2500
  "data-variant",
2485
2501
  "data-emphasis",
2486
2502
  "data-width"
2487
- ], cn = /* @__PURE__ */ s({
2503
+ ], un = /* @__PURE__ */ s({
2488
2504
  name: "DBDivider",
2489
2505
  __name: "divider",
2490
2506
  props: {
@@ -2510,26 +2526,31 @@ var x = () => {
2510
2526
  "data-emphasis": e.emphasis,
2511
2527
  "data-width": e.width,
2512
2528
  class: c(_(C)("db-divider", t.class))
2513
- }, null, 10, sn));
2529
+ }, null, 10, ln));
2514
2530
  }
2515
- }), ln = ["none", "_"], un = ["horizontal", "vertical"], dn = [
2531
+ }), dn = ["none", "_"], fn = ["horizontal", "vertical"], pn = [
2516
2532
  "id",
2517
2533
  "data-position",
2518
2534
  "data-backdrop",
2519
2535
  "data-direction",
2520
2536
  "data-variant"
2521
- ], fn = [
2522
- "data-spacing",
2523
- "data-width",
2537
+ ], mn = [
2538
+ "data-container-size",
2539
+ "data-show-spacing",
2524
2540
  "data-direction",
2525
2541
  "data-rounded"
2526
- ], pn = { class: "db-drawer-header" }, mn = { class: "db-drawer-header-text" }, hn = { class: "db-drawer-content" }, gn = /* @__PURE__ */ s({
2542
+ ], hn = { class: "db-drawer-content" }, gn = /* @__PURE__ */ s({
2527
2543
  name: "DBDrawer",
2528
2544
  __name: "drawer",
2529
2545
  props: {
2530
2546
  backdrop: { default: void 0 },
2531
2547
  direction: { default: void 0 },
2532
- drawerHeader: {},
2548
+ header: {},
2549
+ footer: {},
2550
+ showSpacing: {
2551
+ type: [Boolean, String],
2552
+ default: void 0
2553
+ },
2533
2554
  open: {
2534
2555
  type: [Boolean, String],
2535
2556
  default: void 0
@@ -2540,6 +2561,7 @@ var x = () => {
2540
2561
  },
2541
2562
  variant: { default: void 0 },
2542
2563
  position: { default: void 0 },
2564
+ containerSize: { default: void 0 },
2543
2565
  children: { default: void 0 },
2544
2566
  className: { default: void 0 },
2545
2567
  class: {},
@@ -2550,99 +2572,188 @@ var x = () => {
2550
2572
  type: Function,
2551
2573
  default: void 0
2552
2574
  },
2553
- close: {},
2554
- closeButtonId: { default: void 0 },
2555
- closeButtonText: { default: void 0 },
2556
- width: { default: void 0 },
2557
- spacing: { default: void 0 }
2575
+ close: {}
2558
2576
  },
2559
2577
  setup(e) {
2560
- let t = e, n = p(!1), s = p(!1), l = p(null), d = p(null);
2578
+ let t = e, n = p(!1), a = p(!1), o = p(null), s = p(null);
2561
2579
  u(() => {
2562
- S(), n.value = !0;
2580
+ g(), n.value = !0;
2563
2581
  }), y(() => [t.open], () => {
2564
- S();
2582
+ g();
2565
2583
  }, {
2566
2584
  immediate: !0,
2567
2585
  flush: "post"
2568
2586
  }), y(() => [
2569
- l.value,
2587
+ o.value,
2570
2588
  n.value,
2571
2589
  t.position
2572
2590
  ], () => {
2573
- if (l.value && n.value && t.position === "absolute") {
2574
- let e = l.value.parentElement;
2591
+ if (o.value && n.value && t.position === "absolute") {
2592
+ let e = o.value.parentElement;
2575
2593
  e && (e.style.position = "relative");
2576
2594
  }
2577
2595
  }, {
2578
2596
  immediate: !0,
2579
2597
  flush: "post"
2580
2598
  });
2581
- function m() {
2599
+ function l() {
2582
2600
  return t.position === "absolute" || t.backdrop === "none" || t.variant === "inside";
2583
2601
  }
2584
- function v(e) {
2585
- s.value = e?.target?.nodeName === "DIALOG";
2602
+ function d(e) {
2603
+ a.value = e?.target?.nodeName === "DIALOG";
2586
2604
  }
2587
- function x(e, n) {
2588
- e && (B(e) ? e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e)) : (n && (e.stopPropagation(), t.onClose && t.onClose(e)), e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && s.value && t.onClose && t.onClose(e), s.value = !1));
2605
+ function m(e) {
2606
+ if (e) if (B(e)) e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e));
2607
+ else {
2608
+ let n = e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && a.value, r = !!e.target?.closest?.("[data-action=\"close\"]");
2609
+ (n || r) && (r && e.stopPropagation(), t.onClose && t.onClose(e)), a.value = !1;
2610
+ }
2589
2611
  }
2590
- function S() {
2591
- if (l.value) {
2612
+ function g() {
2613
+ if (o.value) {
2592
2614
  let e = A(t.open, "open");
2593
- e && !l.value.open && (d.value && d.value.removeAttribute("data-transition"), m() ? l.value.show() : (l.value.setAttribute("closedby", "any"), l.value.showModal()), O(() => {
2594
- d.value && (d.value.dataset.transition = "open");
2595
- }, 1)), !e && l.value.open && (d.value && (d.value.dataset.transition = "close"), O(() => {
2596
- l.value?.close();
2597
- }, 401));
2615
+ if (e && !o.value.open && (s.value && s.value.removeAttribute("data-transition"), l() ? o.value.show() : o.value.showModal(), O(() => {
2616
+ s.value && (s.value.dataset.transition = "open");
2617
+ }, 1)), !e && o.value.open) {
2618
+ s.value && (s.value.dataset.transition = "close");
2619
+ let e = 401;
2620
+ if (s.value) {
2621
+ let t = getComputedStyle(s.value).getPropertyValue("--db-drawer-close-delay").trim(), n = parseFloat(t);
2622
+ n > 0 && (e = n * 1e3 + 1);
2623
+ }
2624
+ O(() => {
2625
+ o.value?.close();
2626
+ }, e);
2627
+ }
2598
2628
  }
2599
2629
  }
2600
- return (n, s) => (f(), r("dialog", {
2630
+ return (n, a) => (f(), r("dialog", {
2601
2631
  class: "db-drawer",
2602
2632
  id: e.id ?? e.propOverrides?.id,
2603
2633
  ref_key: "_ref",
2604
- ref: l,
2605
- onClick: s[0] ||= async (e) => x(e),
2606
- onMousedown: s[1] ||= async (e) => v(e),
2607
- onKeydown: s[2] ||= async (e) => x(e),
2634
+ ref: o,
2635
+ onClick: a[0] ||= async (e) => m(e),
2636
+ onMousedown: a[1] ||= async (e) => d(e),
2637
+ onKeydown: a[2] ||= async (e) => m(e),
2608
2638
  "data-position": e.position,
2609
2639
  "data-backdrop": e.backdrop,
2610
2640
  "data-direction": e.direction,
2611
2641
  "data-variant": e.variant
2612
2642
  }, [i("article", {
2613
2643
  ref_key: "dialogContainerRef",
2614
- ref: d,
2644
+ ref: s,
2615
2645
  class: c(_(C)("db-drawer-container", t.class)),
2616
- "data-spacing": e.spacing,
2617
- "data-width": e.width,
2646
+ "data-container-size": e.containerSize,
2647
+ "data-show-spacing": _(k)(e.showSpacing ?? !0, "showSpacing"),
2618
2648
  "data-direction": e.direction,
2619
2649
  "data-rounded": _(k)(e.rounded, "rounded")
2620
- }, [i("header", pn, [i("div", mn, [h(n.$slots, "drawer-header")]), o(Be, {
2621
- class: "button-close-drawer",
2622
- icon: "cross",
2623
- variant: "ghost",
2624
- id: e.closeButtonId,
2625
- noText: !0,
2626
- onClick: (e) => x(e, !0)
2627
- }, {
2628
- default: b(() => [a(g(e.closeButtonText ?? _("Close")), 1)]),
2629
- _: 1
2630
- }, 8, ["id", "onClick"])]), i("div", hn, [h(n.$slots, "default")])], 10, fn)], 40, dn));
2650
+ }, [
2651
+ h(n.$slots, "header"),
2652
+ i("div", hn, [h(n.$slots, "default")]),
2653
+ h(n.$slots, "footer")
2654
+ ], 10, mn)], 40, pn));
2655
+ }
2656
+ }), _n = ["id"], vn = /* @__PURE__ */ s({
2657
+ name: "DBDrawerFooter",
2658
+ __name: "drawer-footer",
2659
+ props: {
2660
+ children: { default: void 0 },
2661
+ className: { default: void 0 },
2662
+ class: {},
2663
+ id: { default: void 0 },
2664
+ autofocus: { type: [Boolean, String] },
2665
+ propOverrides: { default: void 0 }
2666
+ },
2667
+ setup(e) {
2668
+ let t = e, n = p(null);
2669
+ return (i, a) => (f(), r("footer", {
2670
+ ref_key: "_ref",
2671
+ ref: n,
2672
+ id: e.id ?? e.propOverrides?.id,
2673
+ class: c(_(C)("db-drawer-footer", t.class))
2674
+ }, [h(i.$slots, "default")], 10, _n));
2631
2675
  }
2632
- }), _n = [
2676
+ }), yn = ["id"], bn = ["id"], xn = { key: 0 }, Sn = /* @__PURE__ */ s({
2677
+ name: "DBDrawerHeader",
2678
+ __name: "drawer-header",
2679
+ props: {
2680
+ closeButtonId: { default: void 0 },
2681
+ closeButtonText: { default: xe },
2682
+ text: { default: void 0 },
2683
+ children: { default: void 0 },
2684
+ className: { default: void 0 },
2685
+ class: {},
2686
+ id: { default: void 0 },
2687
+ autofocus: { type: [Boolean, String] },
2688
+ propOverrides: { default: void 0 },
2689
+ startSlot: {},
2690
+ endSlot: {}
2691
+ },
2692
+ setup(e) {
2693
+ let t = v(), n = e, s = p("db-drawer-header-heading-" + t), l = p(null);
2694
+ u(() => {
2695
+ m();
2696
+ }), d(() => {
2697
+ y();
2698
+ });
2699
+ function m() {
2700
+ if (l.value) {
2701
+ let e = l.value.closest("dialog");
2702
+ e && e.setAttribute("aria-labelledby", s.value);
2703
+ }
2704
+ }
2705
+ function y() {
2706
+ if (l.value) {
2707
+ let e = l.value.closest("dialog");
2708
+ e && e.getAttribute("aria-labelledby") === s.value && e.removeAttribute("aria-labelledby");
2709
+ }
2710
+ }
2711
+ return (t, u) => (f(), r("div", {
2712
+ ref_key: "_ref",
2713
+ ref: l,
2714
+ id: e.id ?? e.propOverrides?.id,
2715
+ class: c(_(C)("db-drawer-header", n.class))
2716
+ }, [
2717
+ i("header", {
2718
+ class: "db-drawer-header-container",
2719
+ id: s.value
2720
+ }, [h(t.$slots, "start-slot"), e.text ? (f(), r("h2", xn, g(e.text), 1)) : h(t.$slots, "default", { key: 1 })], 8, bn),
2721
+ h(t.$slots, "end-slot"),
2722
+ o(Ve, {
2723
+ "data-action": "close",
2724
+ icon: "cross",
2725
+ variant: "ghost",
2726
+ type: "button",
2727
+ id: e.closeButtonId,
2728
+ noText: !0
2729
+ }, {
2730
+ default: b(() => [a(g(e.closeButtonText), 1), o(Rt, null, {
2731
+ default: b(() => [a(g(e.closeButtonText), 1)]),
2732
+ _: 1
2733
+ })]),
2734
+ _: 1
2735
+ }, 8, ["id"])
2736
+ ], 10, yn));
2737
+ }
2738
+ }), Cn = [
2633
2739
  "none",
2634
2740
  "strong",
2635
2741
  "weak",
2636
2742
  "invisible"
2637
- ], vn = [
2638
- "left",
2639
- "right",
2743
+ ], wn = [
2744
+ "to-left",
2745
+ "to-right",
2640
2746
  "up",
2641
2747
  "down"
2642
- ], yn = ["modal", "inside"], bn = ["fixed", "absolute"], xn = (e) => {
2748
+ ], Tn = ["modal", "inside"], En = ["fixed", "absolute"], Dn = [
2749
+ "small",
2750
+ "medium",
2751
+ "large",
2752
+ "full"
2753
+ ], On = (e) => {
2643
2754
  let { target: t } = e;
2644
2755
  return !!(!t?.classList?.contains("db-navigation-item-expand-button") && t?.parentElement?.classList.contains("db-navigation-item"));
2645
- }, Sn = class {
2756
+ }, kn = class {
2646
2757
  element;
2647
2758
  subNavigation;
2648
2759
  parentSubNavigation = null;
@@ -2659,7 +2770,7 @@ var x = () => {
2659
2770
  }
2660
2771
  enableFollow() {
2661
2772
  if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) return;
2662
- let e = pt(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
2773
+ let e = ht(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
2663
2774
  this.triangleData = {
2664
2775
  itemRect: t,
2665
2776
  parentElementWidth: n,
@@ -2710,11 +2821,11 @@ var x = () => {
2710
2821
  let t = this.hasMouseEnteredSubNavigation(), n = this.getTriangleCoordinates(t ? "fill-gap" : "safe-triangle");
2711
2822
  n && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`), t && (this.triangleData = void 0));
2712
2823
  }
2713
- }, Cn = [
2824
+ }, An = [
2714
2825
  "id",
2715
2826
  "data-width",
2716
2827
  "data-on-forcing-mobile"
2717
- ], wn = { class: "db-header-meta-navigation" }, Tn = { class: "db-header-navigation-bar" }, En = { class: "db-header-brand-container" }, Dn = { class: "db-header-navigation-container" }, On = { class: "db-header-navigation" }, kn = { class: "db-header-primary-action" }, An = { class: "db-header-action-container" }, jn = { class: "db-header-burger-menu-container" }, Mn = { class: "db-header-secondary-action" }, Nn = { class: "db-header-drawer-navigation" }, Pn = { class: "db-header-meta-navigation" }, Fn = { class: "db-header-secondary-action" }, In = /* @__PURE__ */ s({
2828
+ ], jn = { class: "db-header-meta-navigation" }, Mn = { class: "db-header-navigation-bar" }, Nn = { class: "db-header-brand-container" }, Pn = { class: "db-header-navigation-container" }, Fn = { class: "db-header-navigation" }, In = { class: "db-header-primary-action" }, Ln = { class: "db-header-action-container" }, Rn = { class: "db-header-burger-menu-container" }, zn = { class: "db-header-secondary-action" }, Bn = { class: "db-header-drawer-navigation" }, Vn = { class: "db-header-meta-navigation" }, Hn = { class: "db-header-secondary-action" }, Un = /* @__PURE__ */ s({
2718
2829
  name: "DBHeader",
2719
2830
  __name: "header",
2720
2831
  props: {
@@ -2730,6 +2841,7 @@ var x = () => {
2730
2841
  type: [Boolean, String],
2731
2842
  default: void 0
2732
2843
  },
2844
+ drawerHeaderText: { default: void 0 },
2733
2845
  burgerMenuLabel: { default: void 0 },
2734
2846
  closeButtonId: { default: void 0 },
2735
2847
  closeButtonText: { default: void 0 },
@@ -2765,7 +2877,7 @@ var x = () => {
2765
2877
  t.onToggle && t.onToggle(n);
2766
2878
  }
2767
2879
  function m(e) {
2768
- xn(e) && d();
2880
+ On(e) && d();
2769
2881
  }
2770
2882
  return (n, u) => (f(), r("header", {
2771
2883
  ref_key: "_ref",
@@ -2775,11 +2887,11 @@ var x = () => {
2775
2887
  "data-width": e.width,
2776
2888
  "data-on-forcing-mobile": e.forceMobile && !s.value
2777
2889
  }, [
2778
- i("div", wn, [h(n.$slots, "meta-navigation")]),
2779
- i("div", Tn, [
2780
- i("div", En, [h(n.$slots, "brand")]),
2781
- i("div", Dn, [i("div", On, [h(n.$slots, "default")]), i("div", kn, [h(n.$slots, "primary-action")])]),
2782
- i("div", An, [i("div", jn, [o(Be, {
2890
+ i("div", jn, [h(n.$slots, "meta-navigation")]),
2891
+ i("div", Mn, [
2892
+ i("div", Nn, [h(n.$slots, "brand")]),
2893
+ i("div", Pn, [i("div", Fn, [h(n.$slots, "default")]), i("div", In, [h(n.$slots, "primary-action")])]),
2894
+ i("div", Ln, [i("div", Rn, [o(Ve, {
2783
2895
  icon: "menu",
2784
2896
  variant: "ghost",
2785
2897
  noText: !0,
@@ -2787,36 +2899,40 @@ var x = () => {
2787
2899
  }, {
2788
2900
  default: b(() => [a(g(e.burgerMenuLabel ?? _("Open navigation menu")), 1)]),
2789
2901
  _: 1
2790
- }, 8, ["onClick"])]), i("div", Mn, [h(n.$slots, "secondary-action")])])
2902
+ }, 8, ["onClick"])]), i("div", zn, [h(n.$slots, "secondary-action")])])
2791
2903
  ]),
2792
2904
  o(gn, {
2793
- class: "db-header-drawer",
2794
- spacing: "small",
2795
2905
  rounded: !0,
2796
- closeButtonId: e.closeButtonId,
2797
- closeButtonText: e.closeButtonText,
2798
2906
  open: _(A)(e.drawerOpen),
2799
2907
  onClose: (e) => d()
2800
2908
  }, {
2801
- default: b(() => [i("div", Nn, [i("div", {
2909
+ header: b(() => [o(Sn, {
2910
+ closeButtonId: e.closeButtonId,
2911
+ closeButtonText: e.closeButtonText,
2912
+ text: e.drawerHeaderText
2913
+ }, null, 8, [
2914
+ "closeButtonId",
2915
+ "closeButtonText",
2916
+ "text"
2917
+ ])]),
2918
+ footer: b(() => [o(vn, null, {
2919
+ default: b(() => [i("div", Hn, [h(n.$slots, "secondary-action")])]),
2920
+ _: 3
2921
+ })]),
2922
+ default: b(() => [i("div", Bn, [i("div", {
2802
2923
  class: "db-header-navigation",
2803
2924
  onClick: u[0] ||= async (e) => m(e)
2804
- }, [h(n.$slots, "default")]), i("div", Pn, [h(n.$slots, "meta-navigation")])]), i("div", Fn, [h(n.$slots, "secondary-action")])]),
2925
+ }, [h(n.$slots, "default")]), i("div", Vn, [h(n.$slots, "meta-navigation")])])]),
2805
2926
  _: 3
2806
- }, 8, [
2807
- "closeButtonId",
2808
- "closeButtonText",
2809
- "open",
2810
- "onClose"
2811
- ])
2812
- ], 10, Cn));
2927
+ }, 8, ["open", "onClose"])
2928
+ ], 10, An));
2813
2929
  }
2814
- }), Ln = [
2930
+ }), Wn = [
2815
2931
  "id",
2816
2932
  "data-icon",
2817
2933
  "data-icon-weight",
2818
2934
  "data-icon-variant"
2819
- ], Rn = /* @__PURE__ */ s({
2935
+ ], Gn = /* @__PURE__ */ s({
2820
2936
  name: "DBIcon",
2821
2937
  __name: "icon",
2822
2938
  props: {
@@ -2842,16 +2958,16 @@ var x = () => {
2842
2958
  "data-icon": t.icon,
2843
2959
  "data-icon-weight": t.weight,
2844
2960
  "data-icon-variant": t.variant
2845
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Ln));
2961
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Wn));
2846
2962
  }
2847
- }), zn = [
2963
+ }), Kn = [
2848
2964
  "16",
2849
2965
  "20",
2850
2966
  "24",
2851
2967
  "32",
2852
2968
  "48",
2853
2969
  "64"
2854
- ], Bn = [
2970
+ ], qn = [
2855
2971
  "color",
2856
2972
  "date",
2857
2973
  "datetime-local",
@@ -2868,7 +2984,7 @@ var x = () => {
2868
2984
  "time",
2869
2985
  "url",
2870
2986
  "week"
2871
- ], Vn = [
2987
+ ], Jn = [
2872
2988
  "id",
2873
2989
  "href",
2874
2990
  "target",
@@ -2883,7 +2999,7 @@ var x = () => {
2883
2999
  "data-variant",
2884
3000
  "data-content",
2885
3001
  "data-wrap"
2886
- ], Hn = /* @__PURE__ */ s({
3002
+ ], Yn = /* @__PURE__ */ s({
2887
3003
  name: "DBLink",
2888
3004
  __name: "link",
2889
3005
  props: {
@@ -2946,13 +3062,13 @@ var x = () => {
2946
3062
  "data-content": t.content || "internal",
2947
3063
  "data-wrap": _(k)(t.wrap, "wrap"),
2948
3064
  onClick: u[0] ||= async (e) => s(e)
2949
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10, Vn));
3065
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10, Jn));
2950
3066
  }
2951
- }), Un = [
3067
+ }), Xn = [
2952
3068
  "adaptive",
2953
3069
  "brand",
2954
3070
  "inline"
2955
- ], Wn = ["medium", "small"], Gn = ["external", "internal"], Kn = ["id"], qn = /* @__PURE__ */ s({
3071
+ ], Zn = ["medium", "small"], Qn = ["external", "internal"], $n = ["id"], er = /* @__PURE__ */ s({
2956
3072
  name: "DBNavigation",
2957
3073
  __name: "navigation",
2958
3074
  props: {
@@ -2970,9 +3086,9 @@ var x = () => {
2970
3086
  ref: n,
2971
3087
  id: e.id ?? e.propOverrides?.id,
2972
3088
  class: c(_(C)("db-navigation", t.class))
2973
- }, [i("menu", null, [h(a.$slots, "default")])], 10, Kn));
3089
+ }, [i("menu", null, [h(a.$slots, "default")])], 10, $n));
2974
3090
  }
2975
- }), Jn = [
3091
+ }), tr = [
2976
3092
  "id",
2977
3093
  "data-width",
2978
3094
  "data-icon",
@@ -2980,20 +3096,20 @@ var x = () => {
2980
3096
  "data-active",
2981
3097
  "data-wrap",
2982
3098
  "aria-disabled"
2983
- ], Yn = [
3099
+ ], nr = [
2984
3100
  "id",
2985
3101
  "aria-haspopup",
2986
3102
  "aria-expanded",
2987
3103
  "aria-controls",
2988
3104
  "disabled"
2989
- ], Xn = [
3105
+ ], rr = [
2990
3106
  "id",
2991
3107
  "aria-labelledby",
2992
3108
  "data-force-close"
2993
- ], Zn = {
3109
+ ], ir = {
2994
3110
  key: 0,
2995
3111
  class: "db-mobile-navigation-back"
2996
- }, Qn = /* @__PURE__ */ s({
3112
+ }, ar = /* @__PURE__ */ s({
2997
3113
  name: "DBNavigationItem",
2998
3114
  __name: "navigation-item",
2999
3115
  props: {
@@ -3053,7 +3169,7 @@ var x = () => {
3053
3169
  }), y(() => [d.value, j.value], () => {
3054
3170
  if (d.value && j.value) {
3055
3171
  let e = j.value.querySelector("menu");
3056
- e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new Sn(j.value, e)) : x.value = !1);
3172
+ e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new kn(j.value, e)) : x.value = !1);
3057
3173
  }
3058
3174
  }, {
3059
3175
  immediate: !0,
@@ -3081,7 +3197,7 @@ var x = () => {
3081
3197
  "data-width": t.width,
3082
3198
  "data-icon": t.icon,
3083
3199
  "data-show-icon": _(k)(t.showIcon, "showIcon"),
3084
- "data-active": t.active,
3200
+ "data-active": _(A)(t.active, "active"),
3085
3201
  "data-wrap": _(k)(t.wrap, "wrap"),
3086
3202
  "aria-disabled": _(k)(t.disabled, "disabled")
3087
3203
  }, [!_(A)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (f(), r(e, { key: 0 }, [i("button", {
@@ -3092,13 +3208,13 @@ var x = () => {
3092
3208
  "aria-controls": E.value,
3093
3209
  disabled: _(A)(t.disabled, "disabled"),
3094
3210
  onClick: u[0] ||= async (e) => N(e)
3095
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, Yn), i("menu", {
3211
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, nr), i("menu", {
3096
3212
  class: "db-sub-navigation",
3097
3213
  id: E.value,
3098
3214
  "aria-labelledby": D.value,
3099
3215
  "data-force-close": w.value,
3100
3216
  onClick: u[1] ||= async (e) => M(e)
3101
- }, [m.value ? (f(), r("div", Zn, [o(Be, {
3217
+ }, [m.value ? (f(), r("div", ir, [o(Ve, {
3102
3218
  icon: "arrow_left",
3103
3219
  variant: "ghost",
3104
3220
  id: t.backButtonId,
@@ -3106,9 +3222,9 @@ var x = () => {
3106
3222
  }, {
3107
3223
  default: b(() => [a(g(t.backButtonText ?? _("Back")), 1)]),
3108
3224
  _: 1
3109
- }, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, Xn)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, Jn));
3225
+ }, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, rr)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, tr));
3110
3226
  }
3111
- }), $n = [
3227
+ }), or = [
3112
3228
  "id",
3113
3229
  "role",
3114
3230
  "aria-live",
@@ -3117,10 +3233,10 @@ var x = () => {
3117
3233
  "data-icon",
3118
3234
  "data-show-icon",
3119
3235
  "data-link-variant"
3120
- ], er = {
3236
+ ], sr = {
3121
3237
  key: 0,
3122
3238
  "data-area": "head"
3123
- }, tr = { "data-area": "content" }, nr = ["dateTime"], rr = /* @__PURE__ */ s({
3239
+ }, cr = { "data-area": "content" }, lr = ["dateTime"], ur = /* @__PURE__ */ s({
3124
3240
  name: "DBNotification",
3125
3241
  __name: "notification",
3126
3242
  props: {
@@ -3189,15 +3305,15 @@ var x = () => {
3189
3305
  "data-link-variant": o.linkVariant
3190
3306
  }, [
3191
3307
  h(d.$slots, "image"),
3192
- _(I)(o.headline, o.showHeadline) ? (f(), r("header", er, g(o.headline), 1)) : n("", !0),
3193
- i("div", tr, [o.text ? (f(), r(e, { key: 0 }, [a(g(o.text), 1)], 64)) : n("", !0), h(d.$slots, "default")]),
3308
+ _(I)(o.headline, o.showHeadline) ? (f(), r("header", sr, g(o.headline), 1)) : n("", !0),
3309
+ i("div", cr, [o.text ? (f(), r(e, { key: 0 }, [a(g(o.text), 1)], 64)) : n("", !0), h(d.$slots, "default")]),
3194
3310
  _(I)(o.timestamp, o.showTimestamp) ? (f(), r("time", {
3195
3311
  key: 1,
3196
3312
  "data-area": "timestamp",
3197
3313
  dateTime: o.timestampDatetime
3198
- }, g(o.timestamp), 9, nr)) : n("", !0),
3314
+ }, g(o.timestamp), 9, lr)) : n("", !0),
3199
3315
  h(d.$slots, "link"),
3200
- _(A)(o.closeable, "closeable") ? (f(), t(Be, {
3316
+ _(A)(o.closeable, "closeable") ? (f(), t(Ve, {
3201
3317
  key: 2,
3202
3318
  icon: "cross",
3203
3319
  variant: "ghost",
@@ -3209,22 +3325,22 @@ var x = () => {
3209
3325
  default: b(() => [a(g(o.closeButtonText ?? _("Close")), 1)]),
3210
3326
  _: 1
3211
3327
  }, 8, ["id", "onClick"])) : n("", !0)
3212
- ], 10, $n));
3328
+ ], 10, or));
3213
3329
  }
3214
- }), ir = [
3330
+ }), dr = [
3215
3331
  "docked",
3216
3332
  "standalone",
3217
3333
  "overlay"
3218
- ], ar = ["block", "inline"], or = [
3334
+ ], fr = ["block", "inline"], pr = [
3219
3335
  "assertive",
3220
3336
  "polite",
3221
3337
  "off"
3222
- ], sr = [
3338
+ ], mr = [
3223
3339
  "id",
3224
3340
  "data-variant",
3225
3341
  "data-fade-in",
3226
3342
  "data-fonts-loaded"
3227
- ], cr = /* @__PURE__ */ s({
3343
+ ], hr = /* @__PURE__ */ s({
3228
3344
  name: "DBPage",
3229
3345
  __name: "page",
3230
3346
  props: {
@@ -3264,9 +3380,9 @@ var x = () => {
3264
3380
  h(o.$slots, "header"),
3265
3381
  i("main", { class: c(_(C)("db-main", e.mainClass)) }, [h(o.$slots, "default")], 2),
3266
3382
  h(o.$slots, "footer")
3267
- ], 10, sr));
3383
+ ], 10, mr));
3268
3384
  }
3269
- }), lr = ["auto", "fixed"], ur = ["hidden", "auto"], dr = ["id"], fr = [
3385
+ }), gr = ["auto", "fixed"], _r = ["hidden", "auto"], vr = ["id"], yr = [
3270
3386
  "data-spacing",
3271
3387
  "data-gap",
3272
3388
  "data-animation",
@@ -3274,7 +3390,7 @@ var x = () => {
3274
3390
  "data-delay",
3275
3391
  "data-width",
3276
3392
  "data-placement"
3277
- ], pr = /* @__PURE__ */ s({
3393
+ ], br = /* @__PURE__ */ s({
3278
3394
  name: "DBPopover",
3279
3395
  __name: "popover",
3280
3396
  props: {
@@ -3307,7 +3423,7 @@ var x = () => {
3307
3423
  u(() => {
3308
3424
  n.value = !0;
3309
3425
  }), d(() => {
3310
- o.value &&= (new ot().removeCallback(o.value), void 0), l.value &&= (new _t().unobserve(l.value), void 0), s.value &&= (new gt().unobserve(s.value), void 0);
3426
+ o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0);
3311
3427
  }), y(() => [m.value, n.value], () => {
3312
3428
  if (m.value && n.value) {
3313
3429
  n.value = !1;
@@ -3337,22 +3453,22 @@ var x = () => {
3337
3453
  if (!m.value) return;
3338
3454
  let e = m.value.querySelector("article");
3339
3455
  e && O(() => {
3340
- ft(e, m.value);
3456
+ mt(e, m.value);
3341
3457
  }, 1);
3342
3458
  }
3343
3459
  function b(e) {
3344
3460
  e?.target?.contains && e?.target?.contains(m.value) && v();
3345
3461
  }
3346
3462
  function x() {
3347
- a.value = !0, o.value &&= (new ot().removeCallback(o.value), void 0), l.value &&= (new _t().unobserve(l.value), void 0), s.value &&= (new gt().unobserve(s.value), void 0), o.value = new ot().addCallback((e) => b(e)), v(), l.value = new _t().observe(document.documentElement, () => v());
3463
+ a.value = !0, o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0), o.value = new ct().addCallback((e) => b(e)), v(), l.value = new yt().observe(document.documentElement, () => v());
3348
3464
  let e = w();
3349
- e && (s.value = new gt().observe(e, (e) => {
3465
+ e && (s.value = new vt().observe(e, (e) => {
3350
3466
  e.isIntersecting || g(!1);
3351
3467
  }));
3352
3468
  }
3353
3469
  function S(e) {
3354
3470
  let t = e?.target;
3355
- (!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) && (a.value = !1, o.value &&= (new ot().removeCallback(o.value), void 0), l.value &&= (new _t().unobserve(l.value), void 0), s.value &&= (new gt().unobserve(s.value), void 0));
3471
+ (!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) && (a.value = !1, o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0));
3356
3472
  }
3357
3473
  function w() {
3358
3474
  if (m.value) {
@@ -3378,14 +3494,14 @@ var x = () => {
3378
3494
  "data-delay": e.delay,
3379
3495
  "data-width": e.width,
3380
3496
  "data-placement": e.placement
3381
- }, [h(n.$slots, "default")], 8, fr)], 10, dr));
3497
+ }, [h(n.$slots, "default")], 8, yr)], 10, vr));
3382
3498
  }
3383
- }), mr = [
3499
+ }), xr = [
3384
3500
  "data-size",
3385
3501
  "data-hide-label",
3386
3502
  "data-hide-asterisk",
3387
3503
  "for"
3388
- ], hr = [
3504
+ ], Sr = [
3389
3505
  "aria-invalid",
3390
3506
  "data-custom-validity",
3391
3507
  "id",
@@ -3394,7 +3510,7 @@ var x = () => {
3394
3510
  "disabled",
3395
3511
  "value",
3396
3512
  "required"
3397
- ], gr = /* @__PURE__ */ s({
3513
+ ], Cr = /* @__PURE__ */ s({
3398
3514
  name: "DBRadio",
3399
3515
  __name: "radio",
3400
3516
  props: {
@@ -3479,7 +3595,7 @@ var x = () => {
3479
3595
  }), y(() => [w.value], () => {
3480
3596
  if (w.value) {
3481
3597
  let e = S.value;
3482
- e || (e = new AbortController(), S.value = e), qe(w.value, (e) => {
3598
+ e || (e = new AbortController(), S.value = e), Ye(w.value, (e) => {
3483
3599
  O(() => {
3484
3600
  let t = m.checked ? m.checked : w.value.checked, n = {
3485
3601
  ...e,
@@ -3498,10 +3614,10 @@ var x = () => {
3498
3614
  flush: "post"
3499
3615
  });
3500
3616
  function T(e, t) {
3501
- m.input && m.input(e), m.onInput && m.onInput(e), Q(l, e);
3617
+ m.input && m.input(e), m.onInput && m.onInput(e), Je(l, e);
3502
3618
  }
3503
3619
  function E(e, t) {
3504
- m.onChange && m.onChange(e), Q(l, e);
3620
+ m.onChange && m.onChange(e), Je(l, e);
3505
3621
  }
3506
3622
  function D(e) {
3507
3623
  m.onBlur && m.onBlur(e);
@@ -3535,16 +3651,16 @@ var x = () => {
3535
3651
  onChange: s[1] ||= async (e) => E(e),
3536
3652
  onBlur: s[2] ||= async (e) => D(e),
3537
3653
  onFocus: s[3] ||= async (e) => k(e)
3538
- }, null, 40, hr),
3654
+ }, null, 40, Sr),
3539
3655
  t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
3540
3656
  h(o.$slots, "default")
3541
- ], 10, mr));
3657
+ ], 10, xr));
3542
3658
  }
3543
- }), _r = [
3659
+ }), wr = [
3544
3660
  "id",
3545
3661
  "data-spacing",
3546
3662
  "data-width"
3547
- ], vr = /* @__PURE__ */ s({
3663
+ ], Tr = /* @__PURE__ */ s({
3548
3664
  name: "DBSection",
3549
3665
  __name: "section",
3550
3666
  props: {
@@ -3566,15 +3682,15 @@ var x = () => {
3566
3682
  class: c(_(C)("db-section", t.class)),
3567
3683
  "data-spacing": e.spacing || "medium",
3568
3684
  "data-width": e.width
3569
- }, [h(i.$slots, "default")], 10, _r));
3685
+ }, [h(i.$slots, "default")], 10, wr));
3570
3686
  }
3571
- }), yr = [
3687
+ }), Er = [
3572
3688
  "data-variant",
3573
3689
  "data-hide-label",
3574
3690
  "data-hide-asterisk",
3575
3691
  "data-icon",
3576
3692
  "data-show-icon"
3577
- ], br = ["for"], xr = [
3693
+ ], Dr = ["for"], Or = [
3578
3694
  "aria-invalid",
3579
3695
  "data-custom-validity",
3580
3696
  "required",
@@ -3586,18 +3702,18 @@ var x = () => {
3586
3702
  "autocomplete",
3587
3703
  "multiple",
3588
3704
  "aria-describedby"
3589
- ], Sr = ["data-show-empty-option"], Cr = ["label"], wr = [
3705
+ ], kr = ["data-show-empty-option"], Ar = ["label"], jr = [
3590
3706
  "value",
3591
3707
  "selected",
3592
3708
  "disabled"
3593
- ], Tr = [
3709
+ ], Mr = [
3594
3710
  "value",
3595
3711
  "disabled",
3596
3712
  "selected"
3597
- ], Er = ["id"], Dr = {
3713
+ ], Nr = ["id"], Pr = {
3598
3714
  "data-visually-hidden": "true",
3599
3715
  role: "status"
3600
- }, Or = /* @__PURE__ */ s({
3716
+ }, Fr = /* @__PURE__ */ s({
3601
3717
  name: "DBSelect",
3602
3718
  __name: "select",
3603
3719
  props: {
@@ -3688,11 +3804,11 @@ var x = () => {
3688
3804
  setup(s, { emit: l }) {
3689
3805
  let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(""), z = p(!1), B = p(""), V = p(void 0), H = p(null);
3690
3806
  u(() => {
3691
- z.value = !0, K(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
3807
+ z.value = !0, q(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
3692
3808
  }), d(() => {
3693
3809
  V.value?.abort();
3694
3810
  }), y(() => [w.id, w.propOverrides?.id], () => {
3695
- (w.id ?? w.propOverrides?.id) && K();
3811
+ (w.id ?? w.propOverrides?.id) && q();
3696
3812
  }, {
3697
3813
  immediate: !0,
3698
3814
  flush: "post"
@@ -3703,8 +3819,8 @@ var x = () => {
3703
3819
  flush: "post"
3704
3820
  }), y(() => [T.value, z.value], () => {
3705
3821
  if (T.value && z.value) {
3706
- let e = T.value + q, t = T.value + le;
3707
- D.value = e, j.value = T.value + J, M.value = T.value + ce, P.value = t, I(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, U(), z.value = !1;
3822
+ let e = T.value + X, t = T.value + le;
3823
+ D.value = e, j.value = T.value + se, M.value = T.value + ce, P.value = t, I(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, U(), z.value = !1;
3708
3824
  }
3709
3825
  }, {
3710
3826
  immediate: !0,
@@ -3717,7 +3833,7 @@ var x = () => {
3717
3833
  }), y(() => [H.value], () => {
3718
3834
  if (H.value) {
3719
3835
  let e = V.value;
3720
- e || (e = new AbortController(), V.value = e), Ye(H.value, {
3836
+ e || (e = new AbortController(), V.value = e), Ze(H.value, {
3721
3837
  value: w.value,
3722
3838
  defaultValue: void 0
3723
3839
  }, (e) => {
@@ -3738,10 +3854,10 @@ var x = () => {
3738
3854
  w.onClick && w.onClick(e);
3739
3855
  }
3740
3856
  function W(e, t) {
3741
- w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Q(S, e), U();
3857
+ w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Je(S, e), U();
3742
3858
  }
3743
3859
  function ne(e, t) {
3744
- w.onChange && w.onChange(e), Q(S, e), U();
3860
+ w.onChange && w.onChange(e), Je(S, e), U();
3745
3861
  }
3746
3862
  function re(e) {
3747
3863
  w.onBlur && w.onBlur(e);
@@ -3752,12 +3868,12 @@ var x = () => {
3752
3868
  function ie(e) {
3753
3869
  return e.label ?? e.value?.toString();
3754
3870
  }
3755
- function ae() {
3871
+ function K() {
3756
3872
  return w.variant === "floating" || w.placeholder ? w.showEmptyOption === void 0 ? !w.required : w.showEmptyOption : !1;
3757
3873
  }
3758
- function K() {
3874
+ function q() {
3759
3875
  let e = w.id ?? w.propOverrides?.id ?? `select-${x}`;
3760
- T.value = e, D.value = e + q, j.value = e + J, M.value = e + ce, P.value = e + le;
3876
+ T.value = e, D.value = e + X, j.value = e + se, M.value = e + ce, P.value = e + le;
3761
3877
  }
3762
3878
  return (l, u) => (f(), r("div", {
3763
3879
  class: c(_(C)("db-select", w.class)),
@@ -3767,7 +3883,7 @@ var x = () => {
3767
3883
  "data-icon": s.icon,
3768
3884
  "data-show-icon": _(k)(s.showIcon, "showIcon")
3769
3885
  }, [
3770
- i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, br),
3886
+ i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, Dr),
3771
3887
  i("select", {
3772
3888
  "aria-invalid": s.validation === "invalid",
3773
3889
  "data-custom-validity": s.validation,
@@ -3791,8 +3907,8 @@ var x = () => {
3791
3907
  key: 0,
3792
3908
  class: "placeholder",
3793
3909
  value: "",
3794
- "data-show-empty-option": _(k)(ae(), "showEmptyOption")
3795
- }, null, 8, Sr)) : n("", !0), s.options?.length ? (f(!0), r(e, { key: 1 }, m(s.options, (t, n) => (f(), r(e, { key: n }, [t.options ? (f(), r("optgroup", {
3910
+ "data-show-empty-option": _(k)(K(), "showEmptyOption")
3911
+ }, null, 8, kr)) : n("", !0), s.options?.length ? (f(!0), r(e, { key: 1 }, m(s.options, (t, n) => (f(), r(e, { key: n }, [t.options ? (f(), r("optgroup", {
3796
3912
  key: 0,
3797
3913
  label: ie(t)
3798
3914
  }, [(f(!0), r(e, null, m(t.options, (e, t) => (f(), r("option", {
@@ -3800,17 +3916,17 @@ var x = () => {
3800
3916
  value: e.value,
3801
3917
  selected: e.selected,
3802
3918
  disabled: e.disabled
3803
- }, g(ie(e)), 9, wr))), 128))], 8, Cr)) : (f(), r("option", {
3919
+ }, g(ie(e)), 9, jr))), 128))], 8, Ar)) : (f(), r("option", {
3804
3920
  key: 1,
3805
3921
  value: t.value,
3806
3922
  disabled: t.disabled,
3807
3923
  selected: t.selected
3808
- }, g(ie(t)), 9, Tr))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, xr),
3924
+ }, g(ie(t)), 9, Mr))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, Or),
3809
3925
  s.placeholder ? (f(), r("span", {
3810
3926
  key: 0,
3811
3927
  class: "db-select-placeholder",
3812
3928
  id: P.value
3813
- }, g(s.placeholder), 9, Er)) : n("", !0),
3929
+ }, g(s.placeholder), 9, Nr)) : n("", !0),
3814
3930
  _(I)(s.message, s.showMessage) ? (f(), t($, {
3815
3931
  key: 1,
3816
3932
  size: "small",
@@ -3837,10 +3953,10 @@ var x = () => {
3837
3953
  default: b(() => [a(g(N.value), 1)]),
3838
3954
  _: 1
3839
3955
  }, 8, ["id"]),
3840
- i("span", Dr, g(B.value), 1)
3841
- ], 10, yr));
3956
+ i("span", Pr, g(B.value), 1)
3957
+ ], 10, Er));
3842
3958
  }
3843
- }), kr = [
3959
+ }), Ir = [
3844
3960
  "id",
3845
3961
  "data-gap",
3846
3962
  "data-variant",
@@ -3848,7 +3964,7 @@ var x = () => {
3848
3964
  "data-alignment",
3849
3965
  "data-justify-content",
3850
3966
  "data-wrap"
3851
- ], Ar = /* @__PURE__ */ s({
3967
+ ], Lr = /* @__PURE__ */ s({
3852
3968
  name: "DBStack",
3853
3969
  __name: "stack",
3854
3970
  props: {
@@ -3881,26 +3997,26 @@ var x = () => {
3881
3997
  "data-alignment": e.alignment,
3882
3998
  "data-justify-content": e.justifyContent,
3883
3999
  "data-wrap": _(k)(e.wrap, "wrap")
3884
- }, [h(i.$slots, "default")], 10, kr));
4000
+ }, [h(i.$slots, "default")], 10, Ir));
3885
4001
  }
3886
- }), jr = ["simple", "divider"], Mr = ["row", "column"], Nr = [
4002
+ }), Rr = ["simple", "divider"], zr = ["row", "column"], Br = [
3887
4003
  "stretch",
3888
4004
  "start",
3889
4005
  "end",
3890
4006
  "center"
3891
- ], Pr = [
4007
+ ], Vr = [
3892
4008
  "space-between",
3893
4009
  "start",
3894
- "end",
3895
- "center"
3896
- ], Fr = [
4010
+ "center",
4011
+ "end"
4012
+ ], Hr = [
3897
4013
  "data-visual-aid",
3898
4014
  "data-size",
3899
4015
  "data-hide-label",
3900
4016
  "data-variant",
3901
4017
  "data-hide-asterisk",
3902
4018
  "data-custom-validity"
3903
- ], Ir = ["for"], Lr = [
4019
+ ], Ur = ["for"], Wr = [
3904
4020
  "id",
3905
4021
  "checked",
3906
4022
  "value",
@@ -3911,10 +4027,10 @@ var x = () => {
3911
4027
  "required",
3912
4028
  "data-aid-icon",
3913
4029
  "data-aid-icon-trailing"
3914
- ], Rr = {
4030
+ ], Gr = {
3915
4031
  "data-visually-hidden": "true",
3916
4032
  role: "status"
3917
- }, zr = /* @__PURE__ */ s({
4033
+ }, Kr = /* @__PURE__ */ s({
3918
4034
  name: "DBSwitch",
3919
4035
  __name: "switch",
3920
4036
  props: {
@@ -4018,7 +4134,7 @@ var x = () => {
4018
4134
  }), y(() => [R.value], () => {
4019
4135
  if (R.value) {
4020
4136
  let e = L.value;
4021
- e || (e = new AbortController(), L.value = e), Je(R.value, {
4137
+ e || (e = new AbortController(), L.value = e), Xe(R.value, {
4022
4138
  checked: S.checked,
4023
4139
  defaultChecked: void 0
4024
4140
  }, (e) => {
@@ -4052,7 +4168,7 @@ var x = () => {
4052
4168
  N.value = void 0;
4053
4169
  }
4054
4170
  function V(e, t) {
4055
- S.onChange && S.onChange(e), B(), Q(x, e, "checked");
4171
+ S.onChange && S.onChange(e), B(), Je(x, e, "checked");
4056
4172
  }
4057
4173
  function H(e) {
4058
4174
  S.onBlur && S.onBlur(e);
@@ -4065,7 +4181,7 @@ var x = () => {
4065
4181
  }
4066
4182
  function te() {
4067
4183
  let e = S.id ?? S.propOverrides?.id ?? `switch-${m}`;
4068
- w.value = e, T.value = `${e}${q}`, D.value = `${e}${J}`, j.value = `${e}${ce}`;
4184
+ w.value = e, T.value = `${e}${X}`, D.value = `${e}${se}`, j.value = `${e}${ce}`;
4069
4185
  }
4070
4186
  return (l, u) => (f(), r("div", {
4071
4187
  "data-visual-aid": _(k)(s.visualAid, "visualAid"),
@@ -4096,10 +4212,10 @@ var x = () => {
4096
4212
  onBlur: u[1] ||= async (e) => H(e),
4097
4213
  onFocus: u[2] ||= async (e) => ee(e),
4098
4214
  onKeydown: u[3] ||= async (e) => U(e)
4099
- }, null, 40, Lr),
4215
+ }, null, 40, Wr),
4100
4216
  s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
4101
4217
  h(l.$slots, "default")
4102
- ], 8, Ir),
4218
+ ], 8, Ur),
4103
4219
  _(I)(s.message, s.showMessage) ? (f(), t($, {
4104
4220
  key: 0,
4105
4221
  size: "small",
@@ -4127,127 +4243,161 @@ var x = () => {
4127
4243
  default: b(() => [a(g(M.value), 1)]),
4128
4244
  _: 1
4129
4245
  }, 8, ["id"]),
4130
- i("span", Rr, g(P.value), 1)
4131
- ], 10, Fr));
4246
+ i("span", Gr, g(P.value), 1)
4247
+ ], 10, Hr));
4132
4248
  }
4133
- }), Br = [
4134
- "for",
4135
- "data-icon",
4136
- "data-icon-trailing",
4137
- "data-show-icon",
4138
- "data-show-icon-trailing",
4139
- "data-no-text"
4140
- ], Vr = [
4249
+ }), qr = [
4141
4250
  "disabled",
4142
4251
  "aria-selected",
4143
- "checked",
4144
- "name",
4145
- "id"
4146
- ], Hr = /* @__PURE__ */ s({
4252
+ "focusgroupstart",
4253
+ "data-value"
4254
+ ], Jr = [
4255
+ "data-icon",
4256
+ "data-show-icon",
4257
+ "data-icon-trailing",
4258
+ "data-show-icon-trailing"
4259
+ ], Yr = { class: "db-tab-item-label-end-slot" }, Xr = /* @__PURE__ */ s({
4147
4260
  name: "DBTabItem",
4148
4261
  __name: "tab-item",
4149
4262
  props: {
4150
- children: { default: void 0 },
4151
- className: { default: void 0 },
4152
- class: {},
4153
- id: { default: void 0 },
4154
- autofocus: { type: [Boolean, String] },
4155
- propOverrides: { default: void 0 },
4156
- checked: {
4157
- type: [Boolean, String],
4158
- default: void 0
4159
- },
4160
4263
  disabled: {
4161
4264
  type: [Boolean, String],
4162
4265
  default: void 0
4163
4266
  },
4164
4267
  label: { default: void 0 },
4165
- noText: {
4268
+ tabIndex: {},
4269
+ value: { default: void 0 },
4270
+ children: { default: void 0 },
4271
+ className: { default: void 0 },
4272
+ class: {},
4273
+ autofocus: { type: [Boolean, String] },
4274
+ icon: { default: void 0 },
4275
+ showIcon: {
4166
4276
  type: [Boolean, String],
4167
4277
  default: void 0
4168
4278
  },
4169
- icon: { default: void 0 },
4170
4279
  iconTrailing: { default: void 0 },
4171
4280
  iconLeading: { default: void 0 },
4172
- showIconLeading: {
4173
- type: [Boolean, String],
4174
- default: void 0
4175
- },
4176
4281
  showIconTrailing: {
4177
4282
  type: [Boolean, String],
4178
4283
  default: void 0
4179
4284
  },
4180
- active: {
4285
+ showIconLeading: {
4181
4286
  type: [Boolean, String],
4182
4287
  default: void 0
4183
4288
  },
4184
- change: {},
4185
- onChange: {
4186
- type: Function,
4187
- default: void 0
4188
- },
4189
- showIcon: {
4289
+ active: {
4190
4290
  type: [Boolean, String],
4191
4291
  default: void 0
4192
4292
  },
4193
- name: { default: void 0 }
4293
+ width: {},
4294
+ endSlot: {}
4194
4295
  },
4195
- emits: ["update:checked"],
4196
- setup(t, { emit: o }) {
4197
- let s = o, l = t, m = p(!1), v = p(void 0), b = p(!1), x = p(!1), S = p(void 0), w = p(null);
4296
+ setup(o) {
4297
+ let s = o, l = p(!1), m = p(!1), v = p(""), x = p(null), S = p(null), w = p(null), T = p(!1), E = p(null), D = p(null);
4198
4298
  u(() => {
4199
- S.value = T, b.value = !0;
4299
+ l.value = !0;
4200
4300
  }), d(() => {
4201
- x.value && w.value && S.value && (w.value.closest("[role=tablist]")?.removeEventListener("change", S.value), x.value = !1);
4301
+ T.value = !0;
4302
+ let e = w.value;
4303
+ e !== null && (cancelAnimationFrame(e), w.value = null), x.value?.disconnect(), S.value?.disconnect();
4304
+ }), y(() => [D.value, l.value], () => {
4305
+ if (typeof window < "u" && D.value && l.value && !x.value) {
4306
+ let e = () => {
4307
+ w.value = requestAnimationFrame(() => {
4308
+ if (w.value = null, !T.value) {
4309
+ if (j(), D.value && !x.value) {
4310
+ let e = new ResizeObserver(() => {
4311
+ requestAnimationFrame(() => {
4312
+ T.value || j();
4313
+ });
4314
+ });
4315
+ e.observe(D.value), x.value = e;
4316
+ }
4317
+ if (D.value && !S.value) {
4318
+ let e = new MutationObserver(() => {
4319
+ requestAnimationFrame(() => {
4320
+ T.value || j();
4321
+ });
4322
+ });
4323
+ e.observe(D.value, {
4324
+ childList: !0,
4325
+ subtree: !0,
4326
+ characterData: !0
4327
+ }), S.value = e;
4328
+ }
4329
+ }
4330
+ });
4331
+ };
4332
+ (s.iconLeading ?? s.icon ?? s.iconTrailing) && document.fonts?.ready ? document.fonts.ready.then(() => {
4333
+ T.value || e();
4334
+ }) : e();
4335
+ }
4336
+ }, {
4337
+ immediate: !0,
4338
+ flush: "post"
4202
4339
  }), y(() => [
4203
- w.value,
4204
- b.value,
4205
- S.value
4340
+ s.label,
4341
+ l.value,
4342
+ D.value
4206
4343
  ], () => {
4207
- w.value && b.value && S.value && (b.value = !1, x.value ||= (w.value.closest("[role=tablist]")?.addEventListener("change", S.value), !0), (l.active || w.value.checked) && (m.value = !0, w.value.click()));
4344
+ D.value && l.value && j();
4208
4345
  }, {
4209
4346
  immediate: !0,
4210
4347
  flush: "post"
4211
- }), y(() => [l.name], () => {
4212
- l.name && (v.value = l.name);
4348
+ }), y(() => [E.value, m.value], () => {
4349
+ E.value && !m.value && O();
4213
4350
  }, {
4214
4351
  immediate: !0,
4215
4352
  flush: "post"
4216
4353
  });
4217
- function T(e) {
4218
- e.stopPropagation(), m.value = e.target === w.value;
4354
+ function O() {
4355
+ if (!E.value || !E.value.hasAttribute("data-has-tooltip")) return;
4356
+ E.value.removeAttribute("data-has-tooltip");
4357
+ let e = E.value.querySelector(".db-tooltip");
4358
+ if (!e || !e.id) return;
4359
+ let t = (E.value.getAttribute("aria-describedby") || "").split(" ").filter((t) => t !== "" && t !== e.id).join(" ");
4360
+ t ? E.value.setAttribute("aria-describedby", t) : E.value.removeAttribute("aria-describedby");
4219
4361
  }
4220
- function E(e) {
4221
- l.onChange && l.onChange(e), Q(s, e, "checked");
4362
+ function j() {
4363
+ if (D.value) {
4364
+ let e = Math.ceil(D.value.scrollWidth) > Math.ceil(D.value.clientWidth) + 1;
4365
+ m.value !== e && (m.value = e, e ? E.value && E.value.setAttribute("title", "") : (O(), E.value && E.value.getAttribute("title") === "" && E.value.removeAttribute("title"))), v.value = e && (s.label || D.value.innerText || D.value.textContent) || "";
4366
+ }
4222
4367
  }
4223
- return (o, s) => (f(), r("li", {
4224
- role: "none",
4225
- class: c(_(C)("db-tab-item", l.class))
4226
- }, [i("label", {
4227
- for: t.id ?? t.propOverrides?.id,
4228
- "data-icon": t.iconLeading ?? t.icon,
4229
- "data-icon-trailing": t.iconTrailing,
4230
- "data-show-icon": _(k)(t.showIconLeading, "showIconLeading") || _(k)(t.showIcon, "showIcon"),
4231
- "data-show-icon-trailing": _(k)(t.showIconTrailing, "showIconTrailing"),
4232
- "data-no-text": _(k)(t.noText, "noText")
4233
- }, [
4234
- i("input", {
4235
- type: "radio",
4236
- role: "tab",
4237
- disabled: _(A)(t.disabled, "disabled"),
4238
- "aria-selected": m.value,
4239
- checked: _(A)(t.checked, "checked"),
4240
- ref_key: "_ref",
4241
- ref: w,
4242
- name: v.value,
4243
- id: t.id ?? t.propOverrides?.id,
4244
- onInput: s[0] ||= async (e) => E(e)
4245
- }, null, 40, Vr),
4246
- t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
4247
- h(o.$slots, "default")
4248
- ], 8, Br)], 2));
4368
+ return (l, u) => (f(), r("button", {
4369
+ type: "button",
4370
+ role: "tab",
4371
+ ref_key: "_ref",
4372
+ ref: E,
4373
+ class: c(_(C)("db-tab-item", s.class)),
4374
+ disabled: _(A)(o.disabled, "disabled") ? !0 : void 0,
4375
+ "aria-selected": _(k)(o.active, "active"),
4376
+ focusgroupstart: _(A)(o.active, "active") ? "" : void 0,
4377
+ "data-value": o.value
4378
+ }, [i("span", {
4379
+ class: "db-tab-item-label",
4380
+ "data-icon": o.iconLeading ?? o.icon,
4381
+ "data-show-icon": _(k)(o.showIconLeading, "showIconLeading") || _(k)(o.showIcon, "showIcon"),
4382
+ "data-icon-trailing": o.iconTrailing,
4383
+ "data-show-icon-trailing": _(k)(o.showIconTrailing, "showIconTrailing")
4384
+ }, [i("span", {
4385
+ class: "db-tab-item-label-text",
4386
+ ref_key: "_labelRef",
4387
+ ref: D
4388
+ }, [o.label ? (f(), r(e, { key: 0 }, [a(g(o.label), 1)], 64)) : n("", !0), h(l.$slots, "default")], 512), i("span", Yr, [h(l.$slots, "end-slot")])], 8, Jr), m.value && v.value ? (f(), t(Rt, {
4389
+ key: 0,
4390
+ placement: "top"
4391
+ }, {
4392
+ default: b(() => [a(g(v.value), 1)]),
4393
+ _: 1
4394
+ })) : n("", !0)], 10, qr));
4249
4395
  }
4250
- }), Ur = ["id"], Wr = { role: "tablist" }, Gr = /* @__PURE__ */ s({
4396
+ }), Zr = [
4397
+ "id",
4398
+ "aria-orientation",
4399
+ "focusgroup"
4400
+ ], Qr = /* @__PURE__ */ s({
4251
4401
  name: "DBTabList",
4252
4402
  __name: "tab-list",
4253
4403
  props: {
@@ -4256,47 +4406,53 @@ var x = () => {
4256
4406
  class: {},
4257
4407
  id: { default: void 0 },
4258
4408
  autofocus: { type: [Boolean, String] },
4259
- propOverrides: { default: void 0 }
4409
+ propOverrides: { default: void 0 },
4410
+ orientation: { default: void 0 }
4260
4411
  },
4261
4412
  setup(e) {
4262
- let t = e, n = p(null);
4263
- return (a, o) => (f(), r("div", {
4413
+ let t = v(), n = e, i = p(void 0), a = p(null);
4414
+ return u(() => {
4415
+ i.value = n.id || n.propOverrides?.id || "tab-list-" + t;
4416
+ }), (t, o) => (f(), r("div", {
4417
+ role: "tablist",
4264
4418
  ref_key: "_ref",
4265
- ref: n,
4266
- id: e.id ?? e.propOverrides?.id,
4267
- class: c(_(C)("db-tab-list", t.class))
4268
- }, [i("ul", Wr, [h(a.$slots, "default")])], 10, Ur));
4419
+ ref: a,
4420
+ id: e.id ?? e.propOverrides?.id ?? i.value,
4421
+ class: c(_(C)("db-tab-list", n.class)),
4422
+ "aria-orientation": e.orientation ?? "horizontal",
4423
+ focusgroup: e.orientation === "vertical" ? "tablist block wrap" : "tablist"
4424
+ }, [h(t.$slots, "default")], 10, Zr));
4269
4425
  }
4270
- }), Kr = ["id"], qr = /* @__PURE__ */ s({
4426
+ }), $r = ["hidden"], ei = /* @__PURE__ */ s({
4271
4427
  name: "DBTabPanel",
4272
4428
  __name: "tab-panel",
4273
4429
  props: {
4274
- content: { default: void 0 },
4275
- children: { default: void 0 },
4276
- className: { default: void 0 },
4430
+ content: {},
4431
+ hidden: { type: Boolean },
4432
+ children: {},
4433
+ className: {},
4277
4434
  class: {},
4278
- id: { default: void 0 },
4279
- autofocus: { type: [Boolean, String] },
4280
- propOverrides: { default: void 0 }
4435
+ autofocus: { type: [Boolean, String] }
4281
4436
  },
4282
4437
  setup(t) {
4283
4438
  let i = t, o = p(null);
4284
- return u(() => {}), (s, l) => (f(), r("section", {
4439
+ return (s, l) => (f(), r("div", {
4285
4440
  role: "tabpanel",
4286
4441
  ref_key: "_ref",
4287
4442
  ref: o,
4288
4443
  class: c(_(C)("db-tab-panel", i.class)),
4289
- id: t.id ?? t.propOverrides?.id
4290
- }, [t.content ? (f(), r(e, { key: 0 }, [a(g(t.content), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Kr));
4444
+ hidden: t.hidden,
4445
+ tabIndex: 0
4446
+ }, [t.content ? (f(), r(e, { key: 0 }, [a(g(t.content), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, $r));
4291
4447
  }
4292
- }), Jr = [
4448
+ }), ti = [
4293
4449
  "id",
4294
4450
  "data-horizontal-alignment",
4295
4451
  "data-vertical-alignment",
4296
4452
  "colSpan",
4297
4453
  "rowSpan",
4298
4454
  "headers"
4299
- ], Yr = /* @__PURE__ */ s({
4455
+ ], ni = /* @__PURE__ */ s({
4300
4456
  name: "DBTableDataCell",
4301
4457
  __name: "table-data-cell",
4302
4458
  props: {
@@ -4326,9 +4482,9 @@ var x = () => {
4326
4482
  colSpan: _(j)(e.colSpan, e.colspan),
4327
4483
  rowSpan: _(j)(e.rowSpan, e.rowspan),
4328
4484
  headers: e.headers
4329
- }, [h(i.$slots, "default")], 10, Jr));
4485
+ }, [h(i.$slots, "default")], 10, ti));
4330
4486
  }
4331
- }), Xr = [
4487
+ }), ri = [
4332
4488
  "id",
4333
4489
  "data-horizontal-alignment",
4334
4490
  "data-vertical-alignment",
@@ -4338,7 +4494,7 @@ var x = () => {
4338
4494
  "rowSpan",
4339
4495
  "headers",
4340
4496
  "abbr"
4341
- ], Zr = /* @__PURE__ */ s({
4497
+ ], ii = /* @__PURE__ */ s({
4342
4498
  name: "DBTableHeaderCell",
4343
4499
  __name: "table-header-cell",
4344
4500
  props: {
@@ -4377,13 +4533,13 @@ var x = () => {
4377
4533
  rowSpan: _(j)(e.rowSpan, e.rowspan),
4378
4534
  headers: e.headers,
4379
4535
  abbr: e.abbr
4380
- }, [h(i.$slots, "default")], 10, Xr));
4536
+ }, [h(i.$slots, "default")], 10, ri));
4381
4537
  }
4382
- }), Qr = [
4538
+ }), ai = [
4383
4539
  "id",
4384
4540
  "data-interactive",
4385
4541
  "data-sub-header-emphasis"
4386
- ], $r = /* @__PURE__ */ s({
4542
+ ], oi = /* @__PURE__ */ s({
4387
4543
  name: "DBTableRow",
4388
4544
  __name: "table-row",
4389
4545
  props: {
@@ -4412,7 +4568,7 @@ var x = () => {
4412
4568
  class: c(_(C)("db-table-row", o.class)),
4413
4569
  "data-interactive": _(k)(n.interactive),
4414
4570
  "data-sub-header-emphasis": n.subHeaderEmphasis
4415
- }, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(Zr, {
4571
+ }, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(ii, {
4416
4572
  key: `${o.id ?? n.id ?? _(i)}-table-row-header-cell-${s}`,
4417
4573
  id: o.id,
4418
4574
  abbr: l(o)?.abbr,
@@ -4427,7 +4583,7 @@ var x = () => {
4427
4583
  rowSpan: o.rowSpan,
4428
4584
  rowspan: o.rowspan
4429
4585
  }, {
4430
- default: b(() => [o.link ? (f(), t(Hn, {
4586
+ default: b(() => [o.link ? (f(), t(Yn, {
4431
4587
  key: 0,
4432
4588
  content: o.link?.content,
4433
4589
  size: o.link?.size,
@@ -4480,7 +4636,7 @@ var x = () => {
4480
4636
  "colspan",
4481
4637
  "rowSpan",
4482
4638
  "rowspan"
4483
- ])) : (f(), t(Yr, {
4639
+ ])) : (f(), t(ni, {
4484
4640
  key: `${o.id ?? n.id ?? _(i)}-table-row-data-cell-${s}`,
4485
4641
  id: o.id,
4486
4642
  className: o.className ?? o.class,
@@ -4492,7 +4648,7 @@ var x = () => {
4492
4648
  rowSpan: o.rowSpan,
4493
4649
  rowspan: o.rowspan
4494
4650
  }, {
4495
- default: b(() => [o.link ? (f(), t(Hn, {
4651
+ default: b(() => [o.link ? (f(), t(Yn, {
4496
4652
  key: 0,
4497
4653
  content: o.link?.content,
4498
4654
  size: o.link?.size,
@@ -4542,9 +4698,9 @@ var x = () => {
4542
4698
  "colspan",
4543
4699
  "rowSpan",
4544
4700
  "rowspan"
4545
- ]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, Qr));
4701
+ ]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, ai));
4546
4702
  }
4547
- }), ei = ["id"], ti = /* @__PURE__ */ s({
4703
+ }), si = ["id"], ci = /* @__PURE__ */ s({
4548
4704
  name: "DBTableBody",
4549
4705
  __name: "table-body",
4550
4706
  props: {
@@ -4563,7 +4719,7 @@ var x = () => {
4563
4719
  ref: o,
4564
4720
  id: n.id ?? n.propOverrides?.id,
4565
4721
  class: c(_(C)("db-table-body", a.class))
4566
- }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t($r, {
4722
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
4567
4723
  key: `${e.id ?? n.id ?? _(i)}-table-body-row-${r}`,
4568
4724
  cells: e.cells,
4569
4725
  className: e.className ?? e.class,
@@ -4574,9 +4730,9 @@ var x = () => {
4574
4730
  "className",
4575
4731
  "interactive",
4576
4732
  "id"
4577
- ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, ei));
4733
+ ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, si));
4578
4734
  }
4579
- }), ni = ["id"], ri = /* @__PURE__ */ s({
4735
+ }), li = ["id"], ui = /* @__PURE__ */ s({
4580
4736
  name: "DBTableFooter",
4581
4737
  __name: "table-footer",
4582
4738
  props: {
@@ -4595,7 +4751,7 @@ var x = () => {
4595
4751
  ref: o,
4596
4752
  id: n.id ?? n.propOverrides?.id,
4597
4753
  class: c(_(C)("db-table-footer", a.class))
4598
- }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t($r, {
4754
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
4599
4755
  key: `${e.id ?? n.id ?? _(i)}-table-footer-row-${r}`,
4600
4756
  cells: e.cells,
4601
4757
  className: e.className ?? e.class,
@@ -4606,9 +4762,9 @@ var x = () => {
4606
4762
  "className",
4607
4763
  "interactive",
4608
4764
  "id"
4609
- ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, ni));
4765
+ ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, li));
4610
4766
  }
4611
- }), ii = ["id"], ai = /* @__PURE__ */ s({
4767
+ }), di = ["id"], fi = /* @__PURE__ */ s({
4612
4768
  name: "DBTableHead",
4613
4769
  __name: "table-head",
4614
4770
  props: {
@@ -4633,7 +4789,7 @@ var x = () => {
4633
4789
  ref: o,
4634
4790
  id: n.id ?? n.propOverrides?.id,
4635
4791
  class: c(_(C)("db-table-head", a.class))
4636
- }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t($r, {
4792
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
4637
4793
  key: `${e.id ?? n.id ?? _(i)}-table-head-row-${r}`,
4638
4794
  cells: s(e.cells),
4639
4795
  className: e.className ?? e.class,
@@ -4646,9 +4802,9 @@ var x = () => {
4646
4802
  "subHeaderEmphasis",
4647
4803
  "interactive",
4648
4804
  "id"
4649
- ]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, ii));
4805
+ ]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, di));
4650
4806
  }
4651
- }), oi = [
4807
+ }), pi = [
4652
4808
  "data-width",
4653
4809
  "data-size",
4654
4810
  "data-divider",
@@ -4656,7 +4812,7 @@ var x = () => {
4656
4812
  "data-mobile-variant",
4657
4813
  "data-show-caption",
4658
4814
  "data-sticky-header"
4659
- ], si = ["id"], ci = { key: 0 }, li = /* @__PURE__ */ s({
4815
+ ], mi = ["id"], hi = { key: 0 }, gi = /* @__PURE__ */ s({
4660
4816
  name: "DBTable",
4661
4817
  __name: "table",
4662
4818
  props: {
@@ -4743,22 +4899,22 @@ var x = () => {
4743
4899
  ref_key: "_ref",
4744
4900
  ref: d,
4745
4901
  id: a.id ?? a.propOverrides?.id
4746
- }, [a.captionPlain ? (f(), r("caption", ci, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
4747
- s.value?.header ? (f(), t(ai, {
4902
+ }, [a.captionPlain ? (f(), r("caption", hi, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
4903
+ s.value?.header ? (f(), t(fi, {
4748
4904
  key: 0,
4749
4905
  rows: s.value?.header
4750
4906
  }, null, 8, ["rows"])) : n("", !0),
4751
- s.value?.body ? (f(), t(ti, {
4907
+ s.value?.body ? (f(), t(ci, {
4752
4908
  key: 1,
4753
4909
  rows: s.value?.body
4754
4910
  }, null, 8, ["rows"])) : n("", !0),
4755
- s.value?.footer ? (f(), t(ri, {
4911
+ s.value?.footer ? (f(), t(ui, {
4756
4912
  key: 2,
4757
4913
  rows: s.value?.footer
4758
4914
  }, null, 8, ["rows"])) : n("", !0)
4759
- ], 64)) : h(p.$slots, "default", { key: 3 })], 8, si)], 14, oi));
4915
+ ], 64)) : h(p.$slots, "default", { key: 3 })], 8, mi)], 14, pi));
4760
4916
  }
4761
- }), ui = ["id"], di = /* @__PURE__ */ s({
4917
+ }), _i = ["id"], vi = /* @__PURE__ */ s({
4762
4918
  name: "DBTableCaption",
4763
4919
  __name: "table-caption",
4764
4920
  props: {
@@ -4776,56 +4932,62 @@ var x = () => {
4776
4932
  ref: n,
4777
4933
  id: e.id ?? e.propOverrides?.id,
4778
4934
  class: c(_(C)("db-table-caption", t.class))
4779
- }, [h(i.$slots, "default")], 10, ui));
4935
+ }, [h(i.$slots, "default")], 10, _i));
4780
4936
  }
4781
- }), fi = [
4937
+ }), yi = [
4782
4938
  "row",
4783
4939
  "col",
4784
4940
  "rowgroup",
4785
4941
  "colgroup"
4786
- ], pi = [
4942
+ ], bi = [
4787
4943
  "none",
4788
4944
  "weak",
4789
4945
  "strong"
4790
- ], mi = [
4946
+ ], xi = [
4791
4947
  "x-small",
4792
4948
  "small",
4793
4949
  "medium",
4794
4950
  "large"
4795
- ], hi = [
4951
+ ], Si = [
4796
4952
  "flat",
4797
4953
  "zebra",
4798
4954
  "spaced"
4799
- ], gi = [
4955
+ ], Ci = [
4800
4956
  "none",
4801
4957
  "both",
4802
4958
  "horizontal",
4803
4959
  "vertical"
4804
- ], _i = ["table", "list"], vi = [
4960
+ ], wi = ["table", "list"], Ti = [
4805
4961
  "none",
4806
4962
  "both",
4807
4963
  "horizontal",
4808
4964
  "vertical"
4809
- ], yi = [
4965
+ ], Ei = [
4810
4966
  "auto",
4811
4967
  "1fr",
4812
4968
  "min-content",
4813
4969
  "max-content"
4814
- ], bi = [
4970
+ ], Di = [
4815
4971
  "id",
4816
4972
  "data-orientation",
4817
4973
  "data-scroll-behavior",
4818
- "data-alignment",
4819
- "data-width"
4820
- ], xi = /* @__PURE__ */ s({
4974
+ "data-tab-item-alignment",
4975
+ "data-tab-item-width",
4976
+ "data-initial-selected-mode"
4977
+ ], Oi = /* @__PURE__ */ s({
4821
4978
  name: "DBTabs",
4822
4979
  __name: "tabs",
4823
4980
  props: {
4981
+ arrowScrollDistance: { default: void 0 },
4824
4982
  behavior: { default: void 0 },
4825
4983
  initialSelectedIndex: { default: void 0 },
4984
+ activeIndex: { default: void 0 },
4826
4985
  initialSelectedMode: { default: void 0 },
4827
- name: { default: void 0 },
4986
+ label: { default: void 0 },
4828
4987
  tabs: { default: void 0 },
4988
+ tabItemWidth: { default: "auto" },
4989
+ scrollStartLabel: { default: "Scroll start" },
4990
+ scrollEndLabel: { default: "Scroll end" },
4829
4991
  children: { default: void 0 },
4830
4992
  className: { default: void 0 },
4831
4993
  class: {},
@@ -4833,183 +4995,403 @@ var x = () => {
4833
4995
  autofocus: { type: [Boolean, String] },
4834
4996
  propOverrides: { default: void 0 },
4835
4997
  orientation: { default: void 0 },
4836
- width: { default: void 0 },
4837
- alignment: { default: void 0 },
4838
- arrowScrollDistance: { default: void 0 },
4839
- scrollLeftText: { default: void 0 },
4840
- scrollRightText: { default: void 0 },
4998
+ tabItemAlignment: { default: "start" },
4841
4999
  indexChange: {},
4842
5000
  onIndexChange: {
4843
5001
  type: Function,
4844
5002
  default: void 0
4845
5003
  },
4846
- onTabSelect: {
5004
+ valueChange: {},
5005
+ onValueChange: {
4847
5006
  type: Function,
4848
5007
  default: void 0
4849
- },
4850
- tabSelect: {}
5008
+ }
4851
5009
  },
4852
5010
  setup(i) {
4853
- let s = v(), l = i, x = p(""), S = p(!1), w = p(!1), T = p(!1), E = p(null), D = p(void 0), O = p(null);
5011
+ let s = v(), l = i, x = p(0), S = p(!1), w = p(!1), T = p(!1), E = p(null), D = p(null), O = p(null), k = p(null), j = p(!1), M = p([]), N = p([]), P = p(void 0), F = p(void 0), I = p(null);
4854
5012
  u(() => {
4855
- x.value = `tabs-${l.name || s}`, S.value = !0;
5013
+ j.value = ee(), L();
5014
+ let { startIndex: e, hashApplied: t } = se();
5015
+ if (x.value = e, S.value = !0, typeof window < "u" && I.value) {
5016
+ ae(), le();
5017
+ let n = e;
5018
+ if (ie(t)) {
5019
+ let e = G();
5020
+ e > -1 && (n = e, x.value = e);
5021
+ }
5022
+ B(n);
5023
+ }
5024
+ ce();
4856
5025
  }), d(() => {
4857
- D.value &&= (new _t().unobserve(D.value), void 0);
4858
- }), y(() => [O.value, S.value], () => {
4859
- if (O.value && S.value) {
4860
- M(), N(!0);
4861
- let e = O.value.querySelector(".db-tab-list");
4862
- e && new MutationObserver((e) => {
4863
- e.forEach((e) => {
4864
- (e.removedNodes.length || e.addedNodes.length) && (M(), N());
4865
- });
4866
- }).observe(e, {
4867
- childList: !0,
4868
- subtree: !0
4869
- }), S.value = !1;
5026
+ let e = O.value;
5027
+ e !== null && (cancelAnimationFrame(e), O.value = null), oe(), D.value?.disconnect(), D.value = null;
5028
+ }), y(() => [l.tabs, S.value], () => {
5029
+ S.value && l.tabs && (ae(), le(), B(x.value));
5030
+ }, {
5031
+ immediate: !0,
5032
+ flush: "post"
5033
+ }), y(() => [l.id, l.propOverrides?.id], () => {
5034
+ (l.id ?? l.propOverrides?.id) && L();
5035
+ }, {
5036
+ immediate: !0,
5037
+ flush: "post"
5038
+ }), y(() => [P.value], () => {
5039
+ P.value && le();
5040
+ }, {
5041
+ immediate: !0,
5042
+ flush: "post"
5043
+ }), y(() => [I.value, l.orientation], () => {
5044
+ if (I.value) {
5045
+ let e = K();
5046
+ if (e?.setAttribute("aria-orientation", l.orientation ?? "horizontal"), e) {
5047
+ let t = l.orientation === "vertical" ? "tablist block wrap" : "tablist";
5048
+ e.setAttribute("focusgroup", t);
5049
+ }
5050
+ }
5051
+ }, {
5052
+ immediate: !0,
5053
+ flush: "post"
5054
+ }), y(() => [I.value, l.label], () => {
5055
+ if (I.value) {
5056
+ let e = l.label, t = K();
5057
+ e ? (t?.setAttribute("aria-label", e), F.value = e) : F.value &&= (t?.getAttribute("aria-label") === F.value && t?.removeAttribute("aria-label"), void 0);
5058
+ }
5059
+ }, {
5060
+ immediate: !0,
5061
+ flush: "post"
5062
+ }), y(() => [I.value, l.behavior], () => {
5063
+ I.value && (l.behavior === "arrows" ? ae() : oe());
5064
+ }, {
5065
+ immediate: !0,
5066
+ flush: "post"
5067
+ }), y(() => [l.activeIndex], () => {
5068
+ if (l.activeIndex !== void 0) {
5069
+ let e = Number(l.activeIndex);
5070
+ isNaN(e) || (x.value = e);
4870
5071
  }
4871
5072
  }, {
4872
5073
  immediate: !0,
4873
5074
  flush: "post"
5075
+ }), y(() => [
5076
+ M.value,
5077
+ N.value,
5078
+ x.value,
5079
+ S.value
5080
+ ], () => {
5081
+ S.value && M.value.length > 0 && B(x.value);
5082
+ }, {
5083
+ immediate: !0,
5084
+ flush: "post"
4874
5085
  });
4875
- function k() {
5086
+ function L() {
5087
+ P.value = l.id ?? l.propOverrides?.id ?? `tabs-${s}`;
5088
+ }
5089
+ function R() {
5090
+ return l.id ?? l.propOverrides?.id;
5091
+ }
5092
+ function z(e) {
5093
+ let t = M.value;
5094
+ if (t.length > 0) {
5095
+ let n = t[e];
5096
+ if (n?.disabled || n?.getAttribute("aria-disabled") === "true") return;
5097
+ }
5098
+ let n = t[e]?.dataset?.value;
5099
+ if (l.activeIndex !== void 0) {
5100
+ if (e === Number(l.activeIndex)) return;
5101
+ l.onIndexChange && l.onIndexChange(e), l.onValueChange && l.onValueChange(n);
5102
+ return;
5103
+ }
5104
+ x.value !== e && (x.value = e, l.onIndexChange && l.onIndexChange(e), l.onValueChange && l.onValueChange(n), B(e));
5105
+ }
5106
+ function B(e) {
5107
+ let t = M.value, n = N.value, r = e === void 0 ? x.value : e, i = (e) => !!e && !e.disabled && e.getAttribute("aria-disabled") !== "true", a = r;
5108
+ a !== -1 && t.length > 0 && (a < 0 || a >= t.length || !i(t[a])) && (a = t.findIndex((e) => i(e))), a !== r && l.activeIndex === void 0 && (x.value = a);
5109
+ let o = a === -1 ? t.findIndex((e) => i(e)) : a;
5110
+ t.forEach((e, t) => {
5111
+ let n = a === t, r = o === t ? 0 : -1;
5112
+ e.setAttribute("aria-selected", String(n)), j.value || e.setAttribute("tabindex", String(r));
5113
+ }), n.forEach((e, t) => {
5114
+ e.hidden = a !== t;
5115
+ });
5116
+ }
5117
+ function V(e) {
5118
+ let t = e.target.closest("[role=\"tab\"]");
5119
+ if (!t || !I.value || t.closest(".db-tabs") !== I.value) return;
5120
+ let n = M.value.indexOf(t);
5121
+ n !== -1 && (e.preventDefault(), z(n));
5122
+ }
5123
+ function U(e) {
5124
+ if (!I.value) return;
5125
+ let t = e.key;
5126
+ if (!H.includes(t)) return;
5127
+ let n = M.value;
5128
+ if (n.length === 0) return;
5129
+ let r = e.target?.closest("[role=\"tab\"]");
5130
+ if (!r || r.closest(".db-tabs") !== I.value) return;
5131
+ let i = n.indexOf(r);
5132
+ if (i === -1) return;
5133
+ if (t === "Enter" || t === " ") {
5134
+ e.preventDefault(), z(i);
5135
+ return;
5136
+ }
5137
+ if (j.value) return;
5138
+ let a = l.orientation === "vertical", o = a ? "ArrowUp" : "ArrowLeft", s = a ? "ArrowDown" : "ArrowRight", c, u = n.length;
5139
+ if (t === s ? c = (i + 1) % u : t === o ? c = (i - 1 + u) % u : t === "Home" ? c = 0 : t === "End" && (c = u - 1), c !== void 0) {
5140
+ e.preventDefault();
5141
+ let r = t === s || t === "Home";
5142
+ for (let e = 0; e < u; e++) {
5143
+ let e = n[c];
5144
+ if (!e?.disabled && e?.getAttribute("aria-disabled") !== "true") break;
5145
+ c = r ? (c + 1) % u : (c - 1 + u) % u;
5146
+ }
5147
+ let i = n[c];
5148
+ i && !i.disabled && i.getAttribute("aria-disabled") !== "true" && (te(c), i.focus());
5149
+ }
5150
+ }
5151
+ function te(e) {
5152
+ j.value || M.value.forEach((t, n) => {
5153
+ t.setAttribute("tabindex", e === n ? "0" : "-1");
5154
+ });
5155
+ }
5156
+ function W() {
4876
5157
  try {
4877
- return typeof l.tabs == "string" ? JSON.parse(l.tabs) : l.tabs;
5158
+ if (typeof l.tabs == "string") return JSON.parse(l.tabs).map((e) => {
5159
+ let t = e;
5160
+ return !t.ariaLabel && t["aria-label"] ? {
5161
+ ...t,
5162
+ ariaLabel: t["aria-label"]
5163
+ } : e;
5164
+ });
5165
+ if (l.tabs) return l.tabs.map((e) => {
5166
+ let t = e;
5167
+ return !t.ariaLabel && t["aria-label"] ? {
5168
+ ...t,
5169
+ ariaLabel: t["aria-label"]
5170
+ } : e;
5171
+ });
4878
5172
  } catch (e) {
4879
5173
  console.error(e);
4880
5174
  }
4881
5175
  return [];
4882
5176
  }
4883
- function A(e) {
4884
- let t = e.scrollWidth > e.clientWidth;
4885
- w.value = t && e.scrollLeft > 1, T.value = t && e.scrollLeft < e.scrollWidth - e.clientWidth;
5177
+ function ne() {
5178
+ return S.value ? x.value : re();
4886
5179
  }
4887
- function j(e) {
4888
- let t = Number(l.arrowScrollDistance) || 100;
4889
- e && (t *= -1), E.value?.scrollBy({
4890
- top: 0,
4891
- left: t,
5180
+ function re() {
5181
+ let e = W(), t = (e) => !A(e.disabled, "disabled");
5182
+ if (l.activeIndex !== void 0) {
5183
+ let n = Number(l.activeIndex), r = isNaN(n) ? 0 : n;
5184
+ if (e.length > 0 && (r < 0 || r >= e.length || e[r] && !t(e[r]))) {
5185
+ let n = e.findIndex(t);
5186
+ return n > -1 ? n : 0;
5187
+ }
5188
+ return r;
5189
+ }
5190
+ if (l.initialSelectedIndex !== void 0) {
5191
+ let n = Number(l.initialSelectedIndex);
5192
+ if (isNaN(n)) return 0;
5193
+ if (e.length > 0 && n >= e.length) {
5194
+ let n = e.findIndex(t);
5195
+ return n > -1 ? n : 0;
5196
+ }
5197
+ if (e.length > 0 && e[n] && !t(e[n])) {
5198
+ let n = e.findIndex(t);
5199
+ return n > -1 ? n : 0;
5200
+ }
5201
+ return n;
5202
+ }
5203
+ if (l.initialSelectedMode === "manually") return -1;
5204
+ let n = e.findIndex((e) => A(e.active, "active") && t(e));
5205
+ if (n > -1) return n;
5206
+ let r = e.findIndex(t);
5207
+ return r > -1 ? r : 0;
5208
+ }
5209
+ function G() {
5210
+ return M.value.findIndex((e) => e.getAttribute("aria-selected") === "true" && !e.disabled && e.getAttribute("aria-disabled") !== "true");
5211
+ }
5212
+ function ie(e) {
5213
+ return !e && !l.tabs && l.activeIndex === void 0 && l.initialSelectedIndex === void 0 && (l.initialSelectedMode === void 0 || l.initialSelectedMode === "auto");
5214
+ }
5215
+ function K() {
5216
+ return I.value?.querySelector("[role=\"tablist\"]") ?? null;
5217
+ }
5218
+ function q() {
5219
+ let e = K();
5220
+ return !!e && typeof getComputedStyle < "u" && getComputedStyle(e).direction === "rtl";
5221
+ }
5222
+ function J(e) {
5223
+ if (!(e.scrollWidth > e.clientWidth)) {
5224
+ w.value = !1, T.value = !1;
5225
+ return;
5226
+ }
5227
+ let t = Math.abs(e.scrollLeft), n = e.scrollWidth - e.clientWidth;
5228
+ w.value = t > 2, T.value = t < n - 2;
5229
+ }
5230
+ function Y(e) {
5231
+ let t = K();
5232
+ if (!t) return;
5233
+ let n = Number(l.arrowScrollDistance) || 120;
5234
+ !!e !== q() && (n *= -1), t.scrollBy({
5235
+ left: n,
4892
5236
  behavior: "smooth"
4893
5237
  });
4894
5238
  }
4895
- function M() {
4896
- if (O.value) {
4897
- let e = O.value.querySelector(".db-tab-list");
5239
+ function ae() {
5240
+ if (I.value) {
5241
+ let e = K();
4898
5242
  if (e) {
4899
- let t = e.querySelector("[role=\"tablist\"]");
4900
- t && (t.setAttribute("aria-orientation", l.orientation || "horizontal"), l.behavior === "arrows" && (E.value = t, A(t), t.addEventListener("scroll", () => {
4901
- A(t);
4902
- }), D.value ||= new _t().observe(t, () => {
4903
- A(t);
4904
- })));
4905
- }
4906
- }
4907
- }
4908
- function N(e) {
4909
- if (O.value) {
4910
- let t = Array.from(O.value.querySelectorAll(":is(:scope > db-tab-list .db-tab-item, :scope > .db-tab-list .db-tab-item)")), n = Array.from(O.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));
4911
- for (let r of t) {
4912
- let i = t.indexOf(r), a = r.querySelector("label"), o = r.querySelector("input");
4913
- if (o && a) {
4914
- if (!o.id) {
4915
- let e = `${x.value}-tab-${i}`;
4916
- a.setAttribute("for", e), o.id = e, o.setAttribute("name", x.value), n.length > i && o.setAttribute("aria-controls", `${x.value}-tab-panel-${i}`);
5243
+ e.setAttribute("aria-orientation", l.orientation ?? "horizontal");
5244
+ let t = l.orientation === "vertical" ? "tablist block wrap" : "tablist";
5245
+ e.setAttribute("focusgroup", t);
5246
+ let n = l.label;
5247
+ if (n && (e.setAttribute("aria-label", n), F.value = n), l.behavior === "arrows") {
5248
+ if (J(e), !k.value) {
5249
+ let t = () => J(e);
5250
+ k.value = { fn: t }, e.addEventListener("scroll", t);
4917
5251
  }
4918
- if (e) {
4919
- let e = !l.initialSelectedMode || l.initialSelectedMode === "auto", t = l.initialSelectedIndex == null && i === 0 || Number(l.initialSelectedIndex) === i;
4920
- e && t && o.click();
5252
+ if (!E.value) {
5253
+ let t = new ResizeObserver(() => {
5254
+ J(e);
5255
+ });
5256
+ t.observe(e), E.value = t;
4921
5257
  }
4922
5258
  }
4923
5259
  }
4924
- for (let e of n) {
4925
- if (e.id) continue;
4926
- let t = n.indexOf(e);
4927
- e.id = `${x.value}-tab-panel-${t}`, e.setAttribute("aria-labelledby", `${x.value}-tab-${t}`);
4928
- }
4929
5260
  }
4930
5261
  }
4931
- function P(e) {
4932
- if (e.stopPropagation(), e.target) {
4933
- let t = e.target.parentElement;
4934
- if (t && t.parentElement && t.parentElement?.nodeName === "LI") {
4935
- let n = t.parentElement;
4936
- if (n) {
4937
- let t = n.parentElement;
4938
- if (t) {
4939
- let r = Array.from(t.children).indexOf(n);
4940
- l.onIndexChange && l.onIndexChange(r), l.onTabSelect && l.onTabSelect(e);
4941
- }
4942
- }
5262
+ function oe() {
5263
+ let e = k.value, t = K();
5264
+ e && t && t.removeEventListener("scroll", e.fn), k.value = null, E.value?.disconnect(), E.value = null, w.value = !1, T.value = !1;
5265
+ }
5266
+ function X(e) {
5267
+ return e.parentElement?.closest(".db-tabs, [role=\"tabpanel\"]") === I.value;
5268
+ }
5269
+ function se() {
5270
+ let e = re(), t = !1, n = R();
5271
+ if (typeof window < "u" && window.location.hash && n) {
5272
+ let r = window.location.hash.substring(1), i = `${n}-tab-`;
5273
+ if (r.startsWith(i)) {
5274
+ let n = r.replace(i, ""), a = parseInt(n, 10);
5275
+ isNaN(a) || (e = a, t = !0);
4943
5276
  }
4944
5277
  }
5278
+ return {
5279
+ startIndex: e,
5280
+ hashApplied: t
5281
+ };
5282
+ }
5283
+ function ce() {
5284
+ if (!I.value) return;
5285
+ let e = new MutationObserver((e) => {
5286
+ let t = (e) => {
5287
+ let t = e;
5288
+ return !!t.matches && (t.matches("[role=\"tab\"], [role=\"tabpanel\"]") || !!t.querySelector?.("[role=\"tab\"], [role=\"tabpanel\"]"));
5289
+ }, n = e.some((e) => Array.from(e.addedNodes).some(t) || Array.from(e.removedNodes).some(t)), r = e.some((e) => e.type === "characterData"), i = e.some((e) => e.type === "attributes" && (e.attributeName === "disabled" || e.attributeName === "aria-disabled") && e.target?.getAttribute?.("role") === "tab");
5290
+ if (!n && !r && !i) return;
5291
+ let a = O.value;
5292
+ a !== null && cancelAnimationFrame(a), O.value = requestAnimationFrame(() => {
5293
+ O.value = null, ae(), n && le(), i && B(x.value);
5294
+ });
5295
+ });
5296
+ e.observe(I.value, {
5297
+ childList: !0,
5298
+ subtree: !0,
5299
+ characterData: !0,
5300
+ attributes: !0,
5301
+ attributeFilter: ["disabled", "aria-disabled"]
5302
+ }), D.value = e;
5303
+ }
5304
+ function le() {
5305
+ let e = l.id ?? l.propOverrides?.id ?? P.value;
5306
+ if (!e || !I.value) return;
5307
+ let t = K(), n = Array.from(I.value?.querySelectorAll("[role=\"tabpanel\"]") ?? []).filter((e) => X(e));
5308
+ if (!t) return;
5309
+ let r = Array.from(t.querySelectorAll("[role=\"tab\"]"));
5310
+ M.value = r, N.value = n, r.forEach((t, r) => {
5311
+ let i = n[r], a = `${e}-tab-${r}`;
5312
+ if (t.id = a, i) {
5313
+ let n = `${e}-tab-panel-${r}`;
5314
+ i.id = n, t.setAttribute("aria-controls", n), i.setAttribute("aria-labelledby", a);
5315
+ }
5316
+ });
4945
5317
  }
4946
5318
  return (s, u) => (f(), r("div", {
4947
5319
  ref_key: "_ref",
4948
- ref: O,
4949
- id: i.id ?? i.propOverrides?.id,
5320
+ ref: I,
5321
+ id: i.id ?? i.propOverrides?.id ?? P.value,
4950
5322
  class: c(_(C)("db-tabs", l.class)),
4951
5323
  "data-orientation": i.orientation,
4952
5324
  "data-scroll-behavior": i.behavior,
4953
- "data-alignment": i.alignment ?? "start",
4954
- "data-width": i.width ?? "auto",
4955
- onInput: u[0] ||= async (e) => P(e),
4956
- onChange: u[1] ||= async (e) => P(e)
5325
+ "data-tab-item-alignment": i.tabItemAlignment,
5326
+ "data-tab-item-width": i.tabItemWidth,
5327
+ "data-initial-selected-mode": i.initialSelectedMode,
5328
+ onClick: u[0] ||= async (e) => V(e),
5329
+ onKeydown: u[1] ||= async (e) => U(e)
4957
5330
  }, [
4958
- w.value ? (f(), t(Be, {
5331
+ w.value ? (f(), t(Ve, {
4959
5332
  key: 0,
4960
- class: "overflow-scroll-left-button",
5333
+ class: "tabs-scroll-start",
4961
5334
  variant: "ghost",
4962
5335
  icon: "chevron_left",
4963
5336
  type: "button",
4964
5337
  noText: !0,
4965
- onClick: (e) => j(!0)
5338
+ onClick: (e) => Y(!0)
4966
5339
  }, {
4967
- default: b(() => [a(g(i.scrollLeftText ?? _("Scroll left")), 1)]),
5340
+ default: b(() => [a(g(i.scrollStartLabel), 1)]),
4968
5341
  _: 1
4969
5342
  }, 8, ["onClick"])) : n("", !0),
4970
- i.tabs ? (f(), r(e, { key: 1 }, [o(Gr, null, {
4971
- default: b(() => [(f(!0), r(e, null, m(k(), (e, n) => (f(), t(Hr, {
4972
- key: i.name + "tab-item" + n,
4973
- active: e.active,
5343
+ W().length ? (f(), r(e, { key: 1 }, [o(Qr, {
5344
+ orientation: i.orientation,
5345
+ "aria-label": i.label
5346
+ }, {
5347
+ default: b(() => [(f(!0), r(e, null, m(W(), (e, n) => (f(), t(Xr, {
5348
+ key: i.label + "tab-item" + n,
5349
+ "aria-label": e.ariaLabel,
4974
5350
  label: e.label,
4975
- iconTrailing: e.iconTrailing,
4976
5351
  icon: e.icon,
4977
- noText: e.noText
5352
+ showIcon: e.showIcon,
5353
+ iconTrailing: e.iconTrailing,
5354
+ showIconTrailing: e.showIconTrailing,
5355
+ disabled: e.disabled,
5356
+ active: ne() !== -1 && ne() === n,
5357
+ value: e.value
4978
5358
  }, null, 8, [
4979
- "active",
5359
+ "aria-label",
4980
5360
  "label",
4981
- "iconTrailing",
4982
5361
  "icon",
4983
- "noText"
5362
+ "showIcon",
5363
+ "iconTrailing",
5364
+ "showIconTrailing",
5365
+ "disabled",
5366
+ "active",
5367
+ "value"
4984
5368
  ]))), 128))]),
4985
5369
  _: 1
4986
- }), (f(!0), r(e, null, m(k(), (e, n) => (f(), t(qr, {
4987
- key: i.name + "tab-panel" + n,
5370
+ }, 8, ["orientation", "aria-label"]), (f(!0), r(e, null, m(W(), (e, n) => (f(), t(ei, {
5371
+ key: i.label + "tab-panel" + n,
4988
5372
  content: e.content
4989
5373
  }, {
4990
5374
  default: b(() => [a(g(e.children), 1)]),
4991
5375
  _: 2
4992
- }, 1032, ["content"]))), 128))], 64)) : n("", !0),
4993
- T.value ? (f(), t(Be, {
4994
- key: 2,
4995
- class: "overflow-scroll-right-button",
5376
+ }, 1032, ["content"]))), 128))], 64)) : h(s.$slots, "default", { key: 2 }),
5377
+ T.value ? (f(), t(Ve, {
5378
+ key: 3,
5379
+ class: "tabs-scroll-end",
4996
5380
  variant: "ghost",
4997
5381
  icon: "chevron_right",
4998
- type: "button",
4999
5382
  noText: !0,
5000
- onClick: (e) => j()
5383
+ onClick: (e) => Y(!1)
5001
5384
  }, {
5002
- default: b(() => [a(g(i.scrollRightText ?? _("Scroll right")), 1)]),
5385
+ default: b(() => [a(g(i.scrollEndLabel), 1)]),
5003
5386
  _: 1
5004
- }, 8, ["onClick"])) : n("", !0),
5005
- h(s.$slots, "default")
5006
- ], 42, bi));
5387
+ }, 8, ["onClick"])) : n("", !0)
5388
+ ], 42, Di));
5007
5389
  }
5008
- }), Si = ["scrollbar", "arrows"], Ci = ["auto", "manually"], wi = ["static", "removable"], Ti = [
5390
+ }), ki = ["scrollbar", "arrows"], Ai = ["auto", "manually"], ji = ["static", "removable"], Mi = [
5009
5391
  "data-variant",
5010
5392
  "data-hide-asterisk",
5011
5393
  "data-hide-label"
5012
- ], Ei = ["for"], Di = [
5394
+ ], Ni = ["for"], Pi = [
5013
5395
  "aria-invalid",
5014
5396
  "data-custom-validity",
5015
5397
  "data-field-sizing",
@@ -5031,10 +5413,10 @@ var x = () => {
5031
5413
  "placeholder",
5032
5414
  "rows",
5033
5415
  "cols"
5034
- ], Oi = {
5416
+ ], Fi = {
5035
5417
  "data-visually-hidden": "true",
5036
5418
  role: "status"
5037
- }, ki = /* @__PURE__ */ s({
5419
+ }, Ii = /* @__PURE__ */ s({
5038
5420
  name: "DBTextarea",
5039
5421
  __name: "textarea",
5040
5422
  props: {
@@ -5145,8 +5527,8 @@ var x = () => {
5145
5527
  flush: "post"
5146
5528
  }), y(() => [x.value], () => {
5147
5529
  if (x.value) {
5148
- let e = x.value + q;
5149
- S.value = e, w.value = x.value + J, T.value = x.value + ce, I(h.message, h.showMessage) && (k.value = e), z();
5530
+ let e = x.value + X;
5531
+ S.value = e, w.value = x.value + se, T.value = x.value + ce, I(h.message, h.showMessage) && (k.value = e), z();
5150
5532
  }
5151
5533
  }, {
5152
5534
  immediate: !0,
@@ -5159,7 +5541,7 @@ var x = () => {
5159
5541
  }), y(() => [L.value], () => {
5160
5542
  if (L.value) {
5161
5543
  let e = P.value;
5162
- e || (e = new AbortController(), P.value = e), Ye(L.value, {
5544
+ e || (e = new AbortController(), P.value = e), Ze(L.value, {
5163
5545
  value: h.value,
5164
5546
  defaultValue: void 0
5165
5547
  }, (e) => {
@@ -5177,10 +5559,10 @@ var x = () => {
5177
5559
  !L.value?.validity.valid || h.validation === "invalid" ? (k.value = T.value, D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage", E() && (N.value = D.value, O(() => N.value = "", 1e3))) : R() && L.value?.validity.valid && (h.required || h.minLength || h.maxLength) ? (k.value = w.value, E() && (N.value = h.validMessage ?? "TODO: Add a validMessage", O(() => N.value = "", 1e3))) : I(h.message, h.showMessage) ? k.value = S.value : k.value = void 0;
5178
5560
  }
5179
5561
  function B(e, t) {
5180
- h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e), Q(m, e), z();
5562
+ h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e), Je(m, e), z();
5181
5563
  }
5182
5564
  function V(e, t) {
5183
- h.onChange && h.onChange(e), Q(m, e), z();
5565
+ h.onChange && h.onChange(e), Je(m, e), z();
5184
5566
  }
5185
5567
  function H(e) {
5186
5568
  h.onBlur && h.onBlur(e);
@@ -5190,7 +5572,7 @@ var x = () => {
5190
5572
  }
5191
5573
  function U() {
5192
5574
  let e = h.id ?? h.propOverrides?.id ?? `textarea-${l}`;
5193
- x.value = e, S.value = e + q, w.value = e + J, T.value = e + ce;
5575
+ x.value = e, S.value = e + X, w.value = e + se, T.value = e + ce;
5194
5576
  }
5195
5577
  return (s, l) => (f(), r("div", {
5196
5578
  class: c(_(C)("db-textarea", h.class)),
@@ -5198,7 +5580,7 @@ var x = () => {
5198
5580
  "data-hide-asterisk": _(F)(e.showRequiredAsterisk),
5199
5581
  "data-hide-label": _(F)(e.showLabel)
5200
5582
  }, [
5201
- i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9, Ei),
5583
+ i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9, Ni),
5202
5584
  i("textarea", {
5203
5585
  "aria-invalid": e.validation === "invalid",
5204
5586
  "data-custom-validity": e.validation,
@@ -5227,7 +5609,7 @@ var x = () => {
5227
5609
  placeholder: e.placeholder ?? _(" "),
5228
5610
  rows: _(j)(e.rows, _(4)),
5229
5611
  cols: _(j)(e.cols)
5230
- }, g(e.value), 41, Di),
5612
+ }, g(e.value), 41, Pi),
5231
5613
  _(I)(e.message, e.showMessage) ? (f(), t($, {
5232
5614
  key: 0,
5233
5615
  size: "small",
@@ -5254,50 +5636,50 @@ var x = () => {
5254
5636
  default: b(() => [a(g(D.value), 1)]),
5255
5637
  _: 1
5256
5638
  }, 8, ["id"]),
5257
- i("span", Oi, g(N.value), 1)
5258
- ], 10, Ti));
5639
+ i("span", Fi, g(N.value), 1)
5640
+ ], 10, Mi));
5259
5641
  }
5260
- }), Ai = [
5642
+ }), Li = [
5261
5643
  "none",
5262
5644
  "both",
5263
5645
  "horizontal",
5264
5646
  "vertical"
5265
- ], ji = [
5647
+ ], Ri = [
5266
5648
  "hard",
5267
5649
  "soft",
5268
5650
  "off"
5269
- ], Mi = ["description", "label"], Ni = [
5651
+ ], zi = ["description", "label"], Bi = [
5270
5652
  "adaptive",
5271
5653
  "neutral",
5272
5654
  "critical",
5273
5655
  "informational",
5274
5656
  "warning",
5275
5657
  "successful"
5276
- ], Pi = [
5658
+ ], Vi = [
5277
5659
  "medium",
5278
5660
  "small",
5279
5661
  "large",
5280
5662
  "none"
5281
- ], Fi = [
5663
+ ], Hi = [
5282
5664
  "medium",
5283
5665
  "small",
5284
5666
  "large",
5285
5667
  "none"
5286
- ], Ii = [
5668
+ ], Ui = [
5287
5669
  "left",
5288
5670
  "right",
5289
5671
  "left-start",
5290
5672
  "left-end",
5291
5673
  "right-start",
5292
5674
  "right-end"
5293
- ], Li = [
5675
+ ], Wi = [
5294
5676
  "top",
5295
5677
  "bottom",
5296
5678
  "top-start",
5297
5679
  "top-end",
5298
5680
  "bottom-start",
5299
5681
  "bottom-end"
5300
- ], Ri = [...Ii, ...Li], zi = [
5682
+ ], Gi = [...Ui, ...Wi], Ki = [
5301
5683
  "none",
5302
5684
  "3x-large",
5303
5685
  "2x-large",
@@ -5308,25 +5690,25 @@ var x = () => {
5308
5690
  "x-small",
5309
5691
  "2x-small",
5310
5692
  "3x-small"
5311
- ], Bi = ["horizontal", "vertical"], Vi = ["full", "auto"], Hi = [
5693
+ ], qi = ["horizontal", "vertical"], Ji = ["full", "auto"], Yi = [
5312
5694
  "full",
5313
5695
  "medium",
5314
5696
  "large",
5315
5697
  "small"
5316
- ], Ui = [
5698
+ ], Xi = [
5317
5699
  "none",
5318
5700
  "slow",
5319
5701
  "fast"
5320
- ], Wi = ["auto", "fixed"], Gi = ["small", "medium"], Ki = ["weak", "strong"], qi = [
5702
+ ], Zi = ["auto", "fixed"], Qi = ["small", "medium"], $i = ["weak", "strong"], ea = [
5321
5703
  "invalid",
5322
5704
  "valid",
5323
5705
  "no-validation"
5324
- ], Ji = ["fixed", "content"], Yi = ["above", "floating"], Xi = ["leading", "trailing"], Zi = /* @__PURE__ */ "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".split("."), Qi = [
5706
+ ], ta = ["fixed", "content"], na = ["above", "floating"], ra = ["leading", "trailing"], ia = /* @__PURE__ */ "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".split("."), aa = [
5325
5707
  "_self",
5326
5708
  "_blank",
5327
5709
  "_parent",
5328
5710
  "_top"
5329
- ], $i = [
5711
+ ], oa = [
5330
5712
  "no-referrer",
5331
5713
  "no-referrer-when-downgrade",
5332
5714
  "origin",
@@ -5335,10 +5717,10 @@ var x = () => {
5335
5717
  "strict-origin",
5336
5718
  "strict-origin-when-cross-origin",
5337
5719
  "unsafe-url"
5338
- ], ea = [
5720
+ ], sa = [
5339
5721
  "start",
5340
5722
  "center",
5341
5723
  "end"
5342
5724
  ];
5343
5725
  //#endregion
5344
- export { re as AccordionBehaviorList, ne as AccordionVariantList, ea as AlignmentList, Zi as AutoCompleteList, Ie as BadgePlacementList, He as ButtonTypeList, Ve as ButtonVariantList, we as COLOR, Te as COLORS, Ee as COLORS_SIMPLE, Se as COLOR_CONST, Ce as COLOR_SIMPLE, Ge as CardBehaviorList, Ke as CardElevationLevelList, tn as CustomSelectDropdownWidthList, an as CustomSelectListItemTypeList, W as DBAccordion, U as DBAccordionItem, Fe as DBBadge, Re as DBBrand, Be as DBButton, We as DBCard, tt as DBCheckbox, rt as DBCustomButton, en as DBCustomSelect, yt as DBCustomSelectDropdown, rn as DBCustomSelectFormField, Dt as DBCustomSelectList, Tt as DBCustomSelectListItem, cn as DBDivider, gn as DBDrawer, In as DBHeader, Rn as DBIcon, $ as DBInfotext, Pt as DBInput, Hn as DBLink, qn as DBNavigation, Qn as DBNavigationItem, rr as DBNotification, cr as DBPage, pr as DBPopover, gr as DBRadio, vr as DBSection, Or as DBSelect, Ar as DBStack, zr as DBSwitch, Hr as DBTabItem, Gr as DBTabList, qr as DBTabPanel, li as DBTable, ti as DBTableBody, di as DBTableCaption, yi as DBTableColumnsSizeList, Yr as DBTableDataCell, gi as DBTableDividerList, ri as DBTableFooter, ai as DBTableHead, Zr as DBTableHeaderCell, fi as DBTableHeaderCellScopeList, _i as DBTableMobileVariantList, $r as DBTableRow, mi as DBTableRowSizeList, pi as DBTableRowSubHeaderEmphasisList, vi as DBTableStickyHeaderList, hi as DBTableVariantList, xi as DBTabs, Rt as DBTag, ki as DBTextarea, It as DBTooltip, Me as DB_UX_LOCAL_STORAGE_FRAMEWORK, Ne as DB_UX_LOCAL_STORAGE_MODE, pe as DEFAULT_BACK, _e as DEFAULT_BURGER_MENU, be as DEFAULT_CLOSE_BUTTON, Y as DEFAULT_DATALIST_ID_SUFFIX, ve as DEFAULT_ICON, G as DEFAULT_ID, de as DEFAULT_INVALID_MESSAGE, ce as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, ie as DEFAULT_LABEL, oe as DEFAULT_LABEL_ID_SUFFIX, K as DEFAULT_MESSAGE, q as DEFAULT_MESSAGE_ID_SUFFIX, ae as DEFAULT_PLACEHOLDER, le as DEFAULT_PLACEHOLDER_ID_SUFFIX, fe as DEFAULT_REMOVE, ye as DEFAULT_ROWS, he as DEFAULT_SCROLL_LEFT, ge as DEFAULT_SCROLL_RIGHT, me as DEFAULT_SELECTED, se as DEFAULT_SELECT_ID_SUFFIX, ue as DEFAULT_VALID_MESSAGE, J as DEFAULT_VALID_MESSAGE_ID_SUFFIX, ke as DEFAULT_VIEWPORT, Z as DENSITIES, X as DENSITY, xe as DENSITY_CONST, Ae as DESKTOP_VIEWPORT, ln as DividerMarginList, un as DividerVariantList, at as DocumentClickListener, ot as DocumentScrollListener, _n as DrawerBackdropList, vn as DrawerDirectionList, bn as DrawerPositionList, yn as DrawerVariantList, Ki as EmphasisList, Ji as FieldSizingList, zi as GapSpacingList, zn as IconWeightList, Bn as InputTypeList, Xi as LabelVariantHorizontalList, Yi as LabelVariantList, Gn as LinkContentList, $i as LinkReferrerPolicyList, Wn as LinkSizeList, Qi as LinkTargetList, Un as LinkVariantList, Fi as MarginList, Hi as MaxWidthList, Sn as NavigationItemSafeTriangle, or as NotificationAriaLiveList, ar as NotificationLinkVariantList, ir as NotificationVariantList, Bi as OrientationList, ur as PageDocumentOverflowList, lr as PageVariantList, Ii as PlacementHorizontalList, Ri as PlacementList, Li as PlacementVerticalList, Ui as PopoverDelayList, Wi as PopoverWidthList, De as SEMANTIC, Oe as SEMANTICS, on as SelectedTypeList, Ni as SemanticList, Gi as SizeList, Pi as SpacingList, Nr as StackAlignmentList, Mr as StackDirectionList, Pr as StackJustifyContentList, jr as StackVariantList, je as TESTING_VIEWPORTS, Si as TabsBehaviorList, Ci as TabsInitialSelectedModeList, wi as TagBehaviorList, Ai as TextareaResizeList, ji as TextareaWrapList, Mi as TooltipVariantList, qi as ValidationList, Vi as WidthList, S as addAttributeToChildren, C as cls, O as delay, A as getBoolean, k as getBooleanAsString, ct as getFloatingProps, F as getHideProp, N as getInputValue, V as getNotificationRole, j as getNumber, z as getOptionKey, L as getSearchInput, M as getStep, pt as handleDataOutside, st as handleFixedDropdown, ft as handleFixedPopover, E as hasVoiceOver, w as isArrayOfStrings, xn as isEventTargetNavigationItem, D as isIOSSafari, B as isKeyboardEvent, I as stringPropVisible, x as uuid };
5726
+ export { ie as AccordionBehaviorList, G as AccordionVariantList, sa as AlignmentList, ia as AutoCompleteList, Le as BadgePlacementList, Ue as ButtonTypeList, He as ButtonVariantList, Te as COLOR, Ee as COLORS, De as COLORS_SIMPLE, Q as COLOR_CONST, we as COLOR_SIMPLE, Ke as CardBehaviorList, qe as CardElevationLevelList, rn as CustomSelectDropdownWidthList, sn as CustomSelectListItemTypeList, re as DBAccordion, W as DBAccordionItem, Ie as DBBadge, ze as DBBrand, Ve as DBButton, Ge as DBCard, rt as DBCheckbox, at as DBCustomButton, nn as DBCustomSelect, xt as DBCustomSelectDropdown, on as DBCustomSelectFormField, kt as DBCustomSelectList, Dt as DBCustomSelectListItem, un as DBDivider, gn as DBDrawer, vn as DBDrawerFooter, Sn as DBDrawerHeader, Un as DBHeader, Gn as DBIcon, $ as DBInfotext, It as DBInput, Yn as DBLink, er as DBNavigation, ar as DBNavigationItem, ur as DBNotification, hr as DBPage, br as DBPopover, Cr as DBRadio, Tr as DBSection, Fr as DBSelect, Lr as DBStack, Kr as DBSwitch, Xr as DBTabItem, Qr as DBTabList, ei as DBTabPanel, gi as DBTable, ci as DBTableBody, vi as DBTableCaption, Ei as DBTableColumnsSizeList, ni as DBTableDataCell, Ci as DBTableDividerList, ui as DBTableFooter, fi as DBTableHead, ii as DBTableHeaderCell, yi as DBTableHeaderCellScopeList, wi as DBTableMobileVariantList, oi as DBTableRow, xi as DBTableRowSizeList, bi as DBTableRowSubHeaderEmphasisList, Ti as DBTableStickyHeaderList, Si as DBTableVariantList, Oi as DBTabs, Bt as DBTag, Ii as DBTextarea, Rt as DBTooltip, Ne as DB_UX_LOCAL_STORAGE_FRAMEWORK, Pe as DB_UX_LOCAL_STORAGE_MODE, me as DEFAULT_BACK, ve as DEFAULT_BURGER_MENU, xe as DEFAULT_CLOSE_BUTTON, ue as DEFAULT_DATALIST_ID_SUFFIX, ye as DEFAULT_ICON, K as DEFAULT_ID, fe as DEFAULT_INVALID_MESSAGE, ce as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, q as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, Y as DEFAULT_MESSAGE, X as DEFAULT_MESSAGE_ID_SUFFIX, J as DEFAULT_PLACEHOLDER, le as DEFAULT_PLACEHOLDER_ID_SUFFIX, pe as DEFAULT_REMOVE, be as DEFAULT_ROWS, ge as DEFAULT_SCROLL_LEFT, _e as DEFAULT_SCROLL_RIGHT, he as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, de as DEFAULT_VALID_MESSAGE, se as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Ae as DEFAULT_VIEWPORT, Ce as DENSITIES, Se as DENSITY, Z as DENSITY_CONST, je as DESKTOP_VIEWPORT, dn as DividerMarginList, fn as DividerVariantList, st as DocumentClickListener, ct as DocumentScrollListener, Cn as DrawerBackdropList, Dn as DrawerContainerSizeList, wn as DrawerDirectionList, En as DrawerPositionList, Tn as DrawerVariantList, $i as EmphasisList, ta as FieldSizingList, Ki as GapSpacingList, Kn as IconWeightList, qn as InputTypeList, ra as LabelVariantHorizontalList, na as LabelVariantList, Qn as LinkContentList, oa as LinkReferrerPolicyList, Zn as LinkSizeList, aa as LinkTargetList, Xn as LinkVariantList, Hi as MarginList, Yi as MaxWidthList, H as NAVIGATION_KEYS, kn as NavigationItemSafeTriangle, pr as NotificationAriaLiveList, fr as NotificationLinkVariantList, dr as NotificationVariantList, qi as OrientationList, _r as PageDocumentOverflowList, gr as PageVariantList, Ui as PlacementHorizontalList, Gi as PlacementList, Wi as PlacementVerticalList, Xi as PopoverDelayList, Zi as PopoverWidthList, Oe as SEMANTIC, ke as SEMANTICS, cn as SelectedTypeList, Bi as SemanticList, Qi as SizeList, Vi as SpacingList, Br as StackAlignmentList, zr as StackDirectionList, Vr as StackJustifyContentList, Rr as StackVariantList, Me as TESTING_VIEWPORTS, ki as TabsBehaviorList, Ai as TabsInitialSelectedModeList, ji as TagBehaviorList, Li as TextareaResizeList, Ri as TextareaWrapList, zi as TooltipVariantList, ea as ValidationList, Ji as WidthList, S as addAttributeToChildren, C as cls, O as delay, A as getBoolean, k as getBooleanAsString, ut as getFloatingProps, F as getHideProp, N as getInputValue, V as getNotificationRole, j as getNumber, z as getOptionKey, L as getSearchInput, M as getStep, ht as handleDataOutside, lt as handleFixedDropdown, mt as handleFixedPopover, ee as hasFocusgroupSupport, E as hasVoiceOver, w as isArrayOfStrings, On as isEventTargetNavigationItem, D as isIOSSafari, B as isKeyboardEvent, I as stringPropVisible, x as uuid };