@dskripchenko/ui 1.7.0 → 1.9.0

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/index.mjs CHANGED
@@ -380,15 +380,31 @@ function st(e, t, n) {
380
380
  };
381
381
  }
382
382
  //#endregion
383
+ //#region src/composables/useControlAttrs.ts
384
+ function ct() {
385
+ let e = R();
386
+ return {
387
+ rootAttrs: () => ({
388
+ class: e.class,
389
+ style: e.style
390
+ }),
391
+ controlAttrs: () => {
392
+ let t = {};
393
+ for (let n of Object.keys(e)) n !== "class" && n !== "style" && (t[n] = e[n]);
394
+ return t;
395
+ }
396
+ };
397
+ }
398
+ //#endregion
383
399
  //#region src/components/Input/UidInput.vue?vue&type=script&setup=true&lang.ts
384
- var ct = ["for"], lt = {
400
+ var lt = ["for"], ut = {
385
401
  key: 0,
386
402
  class: "uid-input-field__required",
387
403
  "aria-hidden": "true"
388
- }, ut = { class: "uid-input-field__control" }, dt = {
404
+ }, dt = { class: "uid-input-field__control" }, ft = {
389
405
  key: 0,
390
406
  class: "uid-input-field__prepend"
391
- }, ft = [
407
+ }, pt = [
392
408
  "id",
393
409
  "type",
394
410
  "name",
@@ -399,10 +415,11 @@ var ct = ["for"], lt = {
399
415
  "autocomplete",
400
416
  "aria-invalid",
401
417
  "aria-describedby"
402
- ], pt = {
418
+ ], mt = {
403
419
  key: 1,
404
420
  class: "uid-input-field__append"
405
- }, mt = ["id"], ht = /* @__PURE__ */ f({
421
+ }, ht = ["id"], gt = /* @__PURE__ */ f({
422
+ inheritAttrs: !1,
406
423
  __name: "UidInput",
407
424
  props: /* @__PURE__ */ g({
408
425
  type: { default: "text" },
@@ -433,29 +450,29 @@ var ct = ["for"], lt = {
433
450
  }),
434
451
  emits: /* @__PURE__ */ g(["blur", "focus"], ["update:modelValue"]),
435
452
  setup(e, { expose: t, emit: n }) {
436
- let r = e, i = n, o = B(e, "modelValue"), d = r.id ?? z(), { error: f, validate: p, onBlur: m } = st(o, a(() => r.rules), {
437
- name: r.name,
438
- label: r.label
439
- }), h = a(() => r.error || f.value), g = a(() => !!h.value), _ = a(() => h.value || r.hint);
440
- function v(e) {
441
- m(), i("blur", e);
453
+ let { rootAttrs: r, controlAttrs: i } = ct(), o = e, d = n, f = B(e, "modelValue"), p = o.id ?? z(), { error: m, validate: h, onBlur: g } = st(f, a(() => o.rules), {
454
+ name: o.name,
455
+ label: o.label
456
+ }), v = a(() => o.error || m.value), b = a(() => !!v.value), x = a(() => v.value || o.hint);
457
+ function S(e) {
458
+ g(), d("blur", e);
442
459
  }
443
- return t({ validate: p }), (t, n) => (T(), c("div", { class: y(["uid-input-field", [
460
+ return t({ validate: h }), (t, n) => (T(), c("div", _(L(r)(), { class: ["uid-input-field", [
444
461
  `uid-input-field--${e.size}`,
445
- g.value && "uid-input-field--error",
462
+ b.value && "uid-input-field--error",
446
463
  e.disabled && "uid-input-field--disabled",
447
464
  e.readonly && "uid-input-field--readonly"
448
- ]]) }, [
465
+ ]] }), [
449
466
  e.label ? (T(), c("label", {
450
467
  key: 0,
451
- for: L(d),
468
+ for: L(p),
452
469
  class: "uid-input-field__label"
453
- }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", lt, "*")) : s("", !0)], 8, ct)) : s("", !0),
454
- l("div", ut, [
455
- t.$slots.prepend ? (T(), c("span", dt, [A(t.$slots, "prepend")])) : s("", !0),
456
- J(l("input", {
457
- id: L(d),
458
- "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
470
+ }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", ut, "*")) : s("", !0)], 8, lt)) : s("", !0),
471
+ l("div", dt, [
472
+ t.$slots.prepend ? (T(), c("span", ft, [A(t.$slots, "prepend")])) : s("", !0),
473
+ J(l("input", _(L(i)(), {
474
+ id: L(p),
475
+ "onUpdate:modelValue": n[0] ||= (e) => f.value = e,
459
476
  class: "uid-input-field__input",
460
477
  type: e.type,
461
478
  name: e.name,
@@ -464,25 +481,25 @@ var ct = ["for"], lt = {
464
481
  readonly: e.readonly,
465
482
  required: e.required,
466
483
  autocomplete: e.autocomplete,
467
- "aria-invalid": g.value ? "true" : void 0,
468
- "aria-describedby": _.value ? `${L(d)}-hint` : void 0,
469
- onBlur: v,
470
- onFocus: n[1] ||= (e) => i("focus", e)
471
- }, null, 40, ft), [[H, o.value]]),
472
- t.$slots.append ? (T(), c("span", pt, [A(t.$slots, "append")])) : s("", !0)
484
+ "aria-invalid": b.value ? "true" : void 0,
485
+ "aria-describedby": x.value ? `${L(p)}-hint` : void 0,
486
+ onBlur: S,
487
+ onFocus: n[1] ||= (e) => d("focus", e)
488
+ }), null, 16, pt), [[H, f.value]]),
489
+ t.$slots.append ? (T(), c("span", mt, [A(t.$slots, "append")])) : s("", !0)
473
490
  ]),
474
- _.value ? (T(), c("p", {
491
+ x.value ? (T(), c("p", {
475
492
  key: 1,
476
- id: `${L(d)}-hint`,
477
- class: y(["uid-input-field__hint", g.value && "uid-input-field__hint--error"])
478
- }, P(_.value), 11, mt)) : s("", !0)
479
- ], 2));
493
+ id: `${L(p)}-hint`,
494
+ class: y(["uid-input-field__hint", b.value && "uid-input-field__hint--error"])
495
+ }, P(x.value), 11, ht)) : s("", !0)
496
+ ], 16));
480
497
  }
481
- }), gt = ["for"], _t = {
498
+ }), _t = ["for"], vt = {
482
499
  key: 0,
483
500
  class: "uid-textarea-field__required",
484
501
  "aria-hidden": "true"
485
- }, vt = [
502
+ }, yt = [
486
503
  "id",
487
504
  "name",
488
505
  "placeholder",
@@ -492,7 +509,8 @@ var ct = ["for"], lt = {
492
509
  "rows",
493
510
  "aria-invalid",
494
511
  "aria-describedby"
495
- ], yt = ["id"], bt = /* @__PURE__ */ f({
512
+ ], bt = ["id"], xt = /* @__PURE__ */ f({
513
+ inheritAttrs: !1,
496
514
  __name: "UidTextarea",
497
515
  props: /* @__PURE__ */ g({
498
516
  placeholder: { default: void 0 },
@@ -535,46 +553,46 @@ var ct = ["for"], lt = {
535
553
  }),
536
554
  emits: /* @__PURE__ */ g(["blur", "focus"], ["update:modelValue"]),
537
555
  setup(e, { expose: t, emit: n }) {
538
- let r = e, i = n, o = B(e, "modelValue"), d = O(null), f = z(), p = r.id ?? f, { error: m, validate: h, onBlur: g } = st(o, a(() => r.rules), {
539
- name: r.name,
540
- label: r.label
541
- }), _ = a(() => r.error || m.value), x = a(() => !!_.value), C = a(() => _.value || r.hint);
542
- function w() {
543
- let e = d.value;
556
+ let { rootAttrs: r, controlAttrs: i } = ct(), o = e, d = n, f = B(e, "modelValue"), p = O(null), m = z(), h = o.id ?? m, { error: g, validate: b, onBlur: x } = st(f, a(() => o.rules), {
557
+ name: o.name,
558
+ label: o.label
559
+ }), C = a(() => o.error || g.value), w = a(() => !!C.value), E = a(() => C.value || o.hint);
560
+ function D() {
561
+ let e = p.value;
544
562
  if (!e) return;
545
563
  let t = getComputedStyle(e);
546
564
  e.style.height = "auto";
547
565
  let n = e.scrollHeight;
548
- if (r.maxRows) {
549
- let e = parseFloat(t.lineHeight) || parseFloat(t.fontSize) * 1.5, i = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom);
550
- n = Math.min(n, e * r.maxRows + i);
566
+ if (o.maxRows) {
567
+ let e = parseFloat(t.lineHeight) || parseFloat(t.fontSize) * 1.5, r = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom);
568
+ n = Math.min(n, e * o.maxRows + r);
551
569
  }
552
570
  e.style.height = `${n}px`;
553
571
  }
554
572
  S(() => {
555
- r.autoGrow && w();
556
- }), G(o, async () => {
557
- r.autoGrow && (await v(), w());
573
+ o.autoGrow && D();
574
+ }), G(f, async () => {
575
+ o.autoGrow && (await v(), D());
558
576
  });
559
- function E(e) {
560
- g(), i("blur", e);
577
+ function k(e) {
578
+ x(), d("blur", e);
561
579
  }
562
- return t({ validate: h }), (t, n) => (T(), c("div", { class: y(["uid-textarea-field", [
580
+ return t({ validate: b }), (t, n) => (T(), c("div", _(L(r)(), { class: ["uid-textarea-field", [
563
581
  `uid-textarea-field--${e.size}`,
564
- x.value && "uid-textarea-field--error",
582
+ w.value && "uid-textarea-field--error",
565
583
  e.disabled && "uid-textarea-field--disabled",
566
584
  e.readonly && "uid-textarea-field--readonly"
567
- ]]) }, [
585
+ ]] }), [
568
586
  e.label ? (T(), c("label", {
569
587
  key: 0,
570
- for: L(p),
588
+ for: L(h),
571
589
  class: "uid-textarea-field__label"
572
- }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", _t, "*")) : s("", !0)], 8, gt)) : s("", !0),
573
- J(l("textarea", {
574
- id: L(p),
590
+ }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", vt, "*")) : s("", !0)], 8, _t)) : s("", !0),
591
+ J(l("textarea", _(L(i)(), {
592
+ id: L(h),
575
593
  ref_key: "textareaRef",
576
- ref: d,
577
- "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
594
+ ref: p,
595
+ "onUpdate:modelValue": n[0] ||= (e) => f.value = e,
578
596
  class: "uid-textarea-field__textarea",
579
597
  name: e.name,
580
598
  placeholder: e.placeholder,
@@ -582,23 +600,23 @@ var ct = ["for"], lt = {
582
600
  readonly: e.readonly,
583
601
  required: e.required,
584
602
  rows: e.rows,
585
- "aria-invalid": x.value ? "true" : void 0,
586
- "aria-describedby": C.value ? `${L(p)}-hint` : void 0,
587
- style: b(e.autoGrow ? {
603
+ "aria-invalid": w.value ? "true" : void 0,
604
+ "aria-describedby": E.value ? `${L(h)}-hint` : void 0,
605
+ style: e.autoGrow ? {
588
606
  resize: "none",
589
607
  overflow: "hidden"
590
- } : { resize: e.resize }),
591
- onBlur: E,
592
- onFocus: n[1] ||= (e) => i("focus", e)
593
- }, null, 44, vt), [[U, o.value]]),
594
- C.value ? (T(), c("p", {
608
+ } : { resize: e.resize },
609
+ onBlur: k,
610
+ onFocus: n[1] ||= (e) => d("focus", e)
611
+ }), null, 16, yt), [[U, f.value]]),
612
+ E.value ? (T(), c("p", {
595
613
  key: 1,
596
- id: `${L(p)}-hint`,
597
- class: y(["uid-textarea-field__hint", x.value && "uid-textarea-field__hint--error"])
598
- }, P(C.value), 11, yt)) : s("", !0)
599
- ], 2));
614
+ id: `${L(h)}-hint`,
615
+ class: y(["uid-textarea-field__hint", w.value && "uid-textarea-field__hint--error"])
616
+ }, P(E.value), 11, bt)) : s("", !0)
617
+ ], 16));
600
618
  }
601
- }), xt = { class: "uid-checkbox__label" }, St = [
619
+ }), St = { class: "uid-checkbox__label" }, Ct = [
602
620
  "id",
603
621
  "name",
604
622
  "checked",
@@ -606,14 +624,15 @@ var ct = ["for"], lt = {
606
624
  "required",
607
625
  "aria-describedby",
608
626
  "aria-invalid"
609
- ], Ct = {
627
+ ], wt = {
610
628
  key: 0,
611
629
  class: "uid-checkbox__text"
612
- }, wt = {
630
+ }, Tt = {
613
631
  key: 0,
614
632
  class: "uid-checkbox__required",
615
633
  "aria-hidden": "true"
616
- }, Tt = /* @__PURE__ */ f({
634
+ }, Et = /* @__PURE__ */ f({
635
+ inheritAttrs: !1,
617
636
  __name: "UidCheckbox",
618
637
  props: /* @__PURE__ */ g({
619
638
  label: { default: void 0 },
@@ -642,51 +661,51 @@ var ct = ["for"], lt = {
642
661
  }),
643
662
  emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
644
663
  setup(e, { emit: t }) {
645
- let n = e, r = t, i = B(e, "modelValue"), o = O(null), d = z(), f = n.id ?? d, p = `${f}-hint`, m = a(() => !!n.error), h = a(() => n.error || n.hint);
646
- function g(e) {
647
- o.value && (o.value.indeterminate = e);
664
+ let { rootAttrs: n, controlAttrs: r } = ct(), i = e, o = t, d = B(e, "modelValue"), f = O(null), p = z(), m = i.id ?? p, h = `${m}-hint`, g = a(() => !!i.error), v = a(() => i.error || i.hint);
665
+ function b(e) {
666
+ f.value && (f.value.indeterminate = e);
648
667
  }
649
- S(() => g(n.indeterminate)), G(() => n.indeterminate, g);
650
- function _(e) {
668
+ S(() => b(i.indeterminate)), G(() => i.indeterminate, b);
669
+ function x(e) {
651
670
  let t = e.target.checked;
652
- i.value = t, r("change", t);
671
+ d.value = t, o("change", t);
653
672
  }
654
- return (t, n) => (T(), c("div", { class: y(["uid-checkbox", [m.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]]) }, [l("label", xt, [
655
- l("input", {
656
- id: L(f),
673
+ return (t, i) => (T(), c("div", _(L(n)(), { class: ["uid-checkbox", [g.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]] }), [l("label", St, [
674
+ l("input", _(L(r)(), {
675
+ id: L(m),
657
676
  ref_key: "inputRef",
658
- ref: o,
677
+ ref: f,
659
678
  type: "checkbox",
660
679
  class: "uid-checkbox__input",
661
680
  name: e.name,
662
- checked: i.value,
681
+ checked: d.value,
663
682
  disabled: e.disabled,
664
683
  required: e.required,
665
- "aria-describedby": h.value ? p : void 0,
666
- "aria-invalid": m.value ? "true" : void 0,
667
- onChange: _
668
- }, null, 40, St),
669
- n[0] ||= l("span", {
684
+ "aria-describedby": v.value ? h : void 0,
685
+ "aria-invalid": g.value ? "true" : void 0,
686
+ onChange: x
687
+ }), null, 16, Ct),
688
+ i[0] ||= l("span", {
670
689
  class: "uid-checkbox__box",
671
690
  "aria-hidden": "true"
672
691
  }, null, -1),
673
- e.label ? (T(), c("span", Ct, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", wt, "*")) : s("", !0)])) : s("", !0)
674
- ]), h.value ? (T(), c("p", {
692
+ e.label ? (T(), c("span", wt, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", Tt, "*")) : s("", !0)])) : s("", !0)
693
+ ]), v.value ? (T(), c("p", {
675
694
  key: 0,
676
- id: p,
677
- class: y(["uid-checkbox__hint", m.value && "uid-checkbox__hint--error"])
678
- }, P(h.value), 3)) : s("", !0)], 2));
695
+ id: h,
696
+ class: y(["uid-checkbox__hint", g.value && "uid-checkbox__hint--error"])
697
+ }, P(v.value), 3)) : s("", !0)], 16));
679
698
  }
680
- }), Et = [
699
+ }), Dt = [
681
700
  "aria-labelledby",
682
701
  "aria-describedby",
683
702
  "aria-invalid",
684
703
  "aria-disabled"
685
- ], Dt = ["id"], Ot = {
704
+ ], Ot = ["id"], kt = {
686
705
  key: 0,
687
706
  class: "uid-checkbox-group__required",
688
707
  "aria-hidden": "true"
689
- }, kt = { class: "uid-checkbox-group__options" }, At = ["id"], jt = /* @__PURE__ */ f({
708
+ }, At = { class: "uid-checkbox-group__options" }, jt = ["id"], Mt = /* @__PURE__ */ f({
690
709
  __name: "UidCheckboxGroup",
691
710
  props: /* @__PURE__ */ g({
692
711
  options: {},
@@ -734,8 +753,8 @@ var ct = ["for"], lt = {
734
753
  key: 0,
735
754
  id: L(m),
736
755
  class: "uid-checkbox-group__legend"
737
- }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", Ot, "*")) : s("", !0)], 8, Dt)) : s("", !0),
738
- l("div", kt, [(T(!0), c(t, null, k(e.options, (t) => (T(), o(Tt, {
756
+ }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", kt, "*")) : s("", !0)], 8, Ot)) : s("", !0),
757
+ l("div", At, [(T(!0), c(t, null, k(e.options, (t) => (T(), o(Et, {
739
758
  key: t.value,
740
759
  class: "uid-checkbox-group__option",
741
760
  "model-value": b(t.value),
@@ -754,18 +773,19 @@ var ct = ["for"], lt = {
754
773
  key: 1,
755
774
  id: L(h),
756
775
  class: y(["uid-checkbox-group__hint", g.value && "uid-checkbox-group__hint--error"])
757
- }, P(_.value), 11, At)) : s("", !0)
758
- ], 10, Et));
776
+ }, P(_.value), 11, jt)) : s("", !0)
777
+ ], 10, Dt));
759
778
  }
760
- }), Mt = Symbol("uid-radio-group"), Nt = [
779
+ }), Nt = Symbol("uid-radio-group"), Pt = [
761
780
  "id",
762
781
  "name",
763
782
  "checked",
764
783
  "disabled"
765
- ], Pt = {
784
+ ], Ft = {
766
785
  key: 0,
767
786
  class: "uid-radio__text"
768
- }, Ft = /* @__PURE__ */ f({
787
+ }, It = /* @__PURE__ */ f({
788
+ inheritAttrs: !1,
769
789
  __name: "UidRadio",
770
790
  props: /* @__PURE__ */ g({
771
791
  value: { type: [
@@ -792,38 +812,38 @@ var ct = ["for"], lt = {
792
812
  }),
793
813
  emits: ["update:modelValue"],
794
814
  setup(e) {
795
- let t = e, n = B(e, "modelValue"), r = h(Mt, null), i = z(), o = t.id ?? i, u = a(() => r ? r.modelValue.value === t.value : n.value === t.value), d = a(() => r?.name ?? t.name ?? ""), f = a(() => (r?.disabled.value ?? !1) || (t.disabled ?? !1));
796
- function p() {
797
- r ? r.update(t.value) : n.value = t.value;
815
+ let { rootAttrs: t, controlAttrs: n } = ct(), r = e, i = B(e, "modelValue"), o = h(Nt, null), u = z(), d = r.id ?? u, f = a(() => o ? o.modelValue.value === r.value : i.value === r.value), p = a(() => o?.name ?? r.name ?? ""), m = a(() => (o?.disabled.value ?? !1) || (r.disabled ?? !1));
816
+ function g() {
817
+ o ? o.update(r.value) : i.value = r.value;
798
818
  }
799
- return (t, n) => (T(), c("label", { class: y(["uid-radio", f.value && "uid-radio--disabled"]) }, [
800
- l("input", {
801
- id: L(o),
819
+ return (r, i) => (T(), c("label", _(L(t)(), { class: ["uid-radio", m.value && "uid-radio--disabled"] }), [
820
+ l("input", _(L(n)(), {
821
+ id: L(d),
802
822
  type: "radio",
803
823
  class: "uid-radio__input",
804
- name: d.value,
805
- checked: u.value,
806
- disabled: f.value,
807
- onChange: p
808
- }, null, 40, Nt),
809
- n[0] ||= l("span", {
824
+ name: p.value,
825
+ checked: f.value,
826
+ disabled: m.value,
827
+ onChange: g
828
+ }), null, 16, Pt),
829
+ i[0] ||= l("span", {
810
830
  class: "uid-radio__circle",
811
831
  "aria-hidden": "true"
812
832
  }, null, -1),
813
- e.label ? (T(), c("span", Pt, P(e.label), 1)) : s("", !0)
814
- ], 2));
833
+ e.label ? (T(), c("span", Ft, P(e.label), 1)) : s("", !0)
834
+ ], 16));
815
835
  }
816
- }), It = [
836
+ }), Lt = [
817
837
  "aria-labelledby",
818
838
  "aria-describedby",
819
839
  "aria-required",
820
840
  "aria-invalid",
821
841
  "aria-disabled"
822
- ], Lt = ["id"], Rt = {
842
+ ], Rt = ["id"], zt = {
823
843
  key: 0,
824
844
  class: "uid-radio-group__required",
825
845
  "aria-hidden": "true"
826
- }, zt = { class: "uid-radio-group__options" }, Bt = ["id"], Vt = /* @__PURE__ */ f({
846
+ }, Bt = { class: "uid-radio-group__options" }, Vt = ["id"], Ht = /* @__PURE__ */ f({
827
847
  __name: "UidRadioGroup",
828
848
  props: /* @__PURE__ */ g({
829
849
  name: { default: void 0 },
@@ -851,7 +871,7 @@ var ct = ["for"], lt = {
851
871
  emits: ["update:modelValue"],
852
872
  setup(e) {
853
873
  let t = e, n = B(e, "modelValue"), r = z(), i = t.name ?? r, o = z(), d = z(), f = a(() => !!t.error), p = a(() => t.error || t.hint);
854
- return E(Mt, {
874
+ return E(Nt, {
855
875
  modelValue: n,
856
876
  update: (e) => {
857
877
  n.value = e;
@@ -875,16 +895,16 @@ var ct = ["for"], lt = {
875
895
  key: 0,
876
896
  id: L(o),
877
897
  class: "uid-radio-group__legend"
878
- }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", Rt, "*")) : s("", !0)], 8, Lt)) : s("", !0),
879
- l("div", zt, [A(t.$slots, "default")]),
898
+ }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", zt, "*")) : s("", !0)], 8, Rt)) : s("", !0),
899
+ l("div", Bt, [A(t.$slots, "default")]),
880
900
  p.value ? (T(), c("p", {
881
901
  key: 1,
882
902
  id: L(d),
883
903
  class: y(["uid-radio-group__hint", f.value && "uid-radio-group__hint--error"])
884
- }, P(p.value), 11, Bt)) : s("", !0)
885
- ], 10, It));
904
+ }, P(p.value), 11, Vt)) : s("", !0)
905
+ ], 10, Lt));
886
906
  }
887
- }), Ht = { class: "uid-switch__label" }, Ut = [
907
+ }), Ut = { class: "uid-switch__label" }, Wt = [
888
908
  "id",
889
909
  "name",
890
910
  "checked",
@@ -892,14 +912,15 @@ var ct = ["for"], lt = {
892
912
  "required",
893
913
  "aria-describedby",
894
914
  "aria-invalid"
895
- ], Wt = {
915
+ ], Gt = {
896
916
  key: 0,
897
917
  class: "uid-switch__text"
898
- }, Gt = {
918
+ }, Kt = {
899
919
  key: 0,
900
920
  class: "uid-switch__required",
901
921
  "aria-hidden": "true"
902
- }, Kt = /* @__PURE__ */ f({
922
+ }, qt = /* @__PURE__ */ f({
923
+ inheritAttrs: !1,
903
924
  __name: "UidSwitch",
904
925
  props: /* @__PURE__ */ g({
905
926
  label: { default: void 0 },
@@ -925,45 +946,45 @@ var ct = ["for"], lt = {
925
946
  }),
926
947
  emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
927
948
  setup(e, { emit: t }) {
928
- let n = e, r = t, i = B(e, "modelValue"), o = z(), d = n.id ?? o, f = `${d}-hint`, p = a(() => !!n.error), m = a(() => n.error || n.hint);
929
- function h(e) {
949
+ let { rootAttrs: n, controlAttrs: r } = ct(), i = e, o = t, d = B(e, "modelValue"), f = z(), p = i.id ?? f, m = `${p}-hint`, h = a(() => !!i.error), g = a(() => i.error || i.hint);
950
+ function v(e) {
930
951
  let t = e.target.checked;
931
- i.value = t, r("change", t);
952
+ d.value = t, o("change", t);
932
953
  }
933
- return (t, n) => (T(), c("div", { class: y(["uid-switch", [
954
+ return (t, i) => (T(), c("div", _(L(n)(), { class: ["uid-switch", [
934
955
  `uid-switch--${e.size}`,
935
- p.value && "uid-switch--error",
956
+ h.value && "uid-switch--error",
936
957
  e.disabled && "uid-switch--disabled"
937
- ]]) }, [l("label", Ht, [
938
- l("input", {
939
- id: L(d),
958
+ ]] }), [l("label", Ut, [
959
+ l("input", _(L(r)(), {
960
+ id: L(p),
940
961
  type: "checkbox",
941
962
  role: "switch",
942
963
  class: "uid-switch__input",
943
964
  name: e.name,
944
- checked: i.value,
965
+ checked: d.value,
945
966
  disabled: e.disabled,
946
967
  required: e.required,
947
- "aria-describedby": m.value ? f : void 0,
948
- "aria-invalid": p.value ? "true" : void 0,
949
- onChange: h
950
- }, null, 40, Ut),
951
- n[0] ||= l("span", {
968
+ "aria-describedby": g.value ? m : void 0,
969
+ "aria-invalid": h.value ? "true" : void 0,
970
+ onChange: v
971
+ }), null, 16, Wt),
972
+ i[0] ||= l("span", {
952
973
  class: "uid-switch__track",
953
974
  "aria-hidden": "true"
954
975
  }, [l("span", { class: "uid-switch__thumb" })], -1),
955
- e.label ? (T(), c("span", Wt, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", Gt, "*")) : s("", !0)])) : s("", !0)
956
- ]), m.value ? (T(), c("p", {
976
+ e.label ? (T(), c("span", Gt, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", Kt, "*")) : s("", !0)])) : s("", !0)
977
+ ]), g.value ? (T(), c("p", {
957
978
  key: 0,
958
- id: f,
959
- class: y(["uid-switch__hint", p.value && "uid-switch__hint--error"])
960
- }, P(m.value), 3)) : s("", !0)], 2));
979
+ id: m,
980
+ class: y(["uid-switch__hint", h.value && "uid-switch__hint--error"])
981
+ }, P(g.value), 3)) : s("", !0)], 16));
961
982
  }
962
- }), qt = ["for"], Jt = {
983
+ }), Jt = ["for"], Yt = {
963
984
  key: 0,
964
985
  class: "uid-label__required",
965
986
  "aria-hidden": "true"
966
- }, Yt = /* @__PURE__ */ f({
987
+ }, Xt = /* @__PURE__ */ f({
967
988
  __name: "UidLabel",
968
989
  props: {
969
990
  for: { default: void 0 },
@@ -980,13 +1001,13 @@ var ct = ["for"], lt = {
980
1001
  return (t, n) => (T(), c("label", {
981
1002
  class: y(["uid-label", e.disabled && "uid-label--disabled"]),
982
1003
  for: t.$props.for
983
- }, [A(t.$slots, "default"), e.required ? (T(), c("span", Jt, "*")) : s("", !0)], 10, qt));
1004
+ }, [A(t.$slots, "default"), e.required ? (T(), c("span", Yt, "*")) : s("", !0)], 10, Jt));
984
1005
  }
985
- }), Xt = ["for"], Zt = {
1006
+ }), Zt = ["for"], Qt = {
986
1007
  key: 0,
987
1008
  class: "uid-form-field__required",
988
1009
  "aria-hidden": "true"
989
- }, Qt = { class: "uid-form-field__content" }, $t = ["id"], en = /* @__PURE__ */ f({
1010
+ }, $t = { class: "uid-form-field__content" }, en = ["id"], tn = /* @__PURE__ */ f({
990
1011
  __name: "UidFormField",
991
1012
  props: {
992
1013
  label: { default: void 0 },
@@ -1009,38 +1030,38 @@ var ct = ["for"], lt = {
1009
1030
  key: 0,
1010
1031
  class: "uid-form-field__label",
1011
1032
  for: e.labelFor
1012
- }, [A(t.$slots, "label", {}, () => [u(P(e.label), 1)]), e.required ? (T(), c("span", Zt, "*")) : s("", !0)], 8, Xt)) : s("", !0),
1013
- l("div", Qt, [A(t.$slots, "default")]),
1033
+ }, [A(t.$slots, "label", {}, () => [u(P(e.label), 1)]), e.required ? (T(), c("span", Qt, "*")) : s("", !0)], 8, Zt)) : s("", !0),
1034
+ l("div", $t, [A(t.$slots, "default")]),
1014
1035
  r.value ? (T(), c("p", {
1015
1036
  key: 1,
1016
1037
  id: L(n),
1017
1038
  class: y(["uid-form-field__hint", o.value && "uid-form-field__hint--error"])
1018
- }, P(i.value), 11, $t)) : s("", !0)
1039
+ }, P(i.value), 11, en)) : s("", !0)
1019
1040
  ], 2));
1020
1041
  }
1021
- }), tn = Symbol("UidLocale");
1022
- function nn(e, t) {
1042
+ }), nn = Symbol("UidLocale");
1043
+ function rn(e, t) {
1023
1044
  if (typeof t != "object" || !t) return e;
1024
1045
  let n = { ...e };
1025
1046
  for (let r of Object.keys(t)) {
1026
1047
  let i = t[r], a = e[r];
1027
- i && typeof i == "object" && !Array.isArray(i) && typeof a == "object" && a && !Array.isArray(a) ? n[r] = nn(a, i) : i !== void 0 && (n[r] = i);
1048
+ i && typeof i == "object" && !Array.isArray(i) && typeof a == "object" && a && !Array.isArray(a) ? n[r] = rn(a, i) : i !== void 0 && (n[r] = i);
1028
1049
  }
1029
1050
  return n;
1030
1051
  }
1031
- function rn(e) {
1052
+ function an(e) {
1032
1053
  let t = a(() => {
1033
1054
  let t = e.value;
1034
- return t ? nn(Me, t) : Me;
1055
+ return t ? rn(Me, t) : Me;
1035
1056
  });
1036
- E(tn, t), K(() => Ie(t.value));
1057
+ E(nn, t), K(() => Ie(t.value));
1037
1058
  }
1038
1059
  function $() {
1039
- return h(tn, null) || a(() => Me);
1060
+ return h(nn, null) || a(() => Me);
1040
1061
  }
1041
1062
  //#endregion
1042
1063
  //#region src/components/Spinner/UidSpinner.vue?vue&type=script&setup=true&lang.ts
1043
- var an = ["aria-label"], on = /* @__PURE__ */ f({
1064
+ var on = ["aria-label"], sn = /* @__PURE__ */ f({
1044
1065
  __name: "UidSpinner",
1045
1066
  props: {
1046
1067
  size: { default: "md" },
@@ -1052,13 +1073,13 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1052
1073
  class: y(["uid-spinner", `uid-spinner--${e.size}`]),
1053
1074
  role: "status",
1054
1075
  "aria-label": e.label ?? L(t).common.loading
1055
- }, null, 10, an));
1076
+ }, null, 10, on));
1056
1077
  }
1057
- }), sn = {
1078
+ }), cn = {
1058
1079
  key: 0,
1059
1080
  class: "uid-skeleton-lines",
1060
1081
  "aria-hidden": "true"
1061
- }, cn = /* @__PURE__ */ f({
1082
+ }, ln = /* @__PURE__ */ f({
1062
1083
  __name: "UidSkeleton",
1063
1084
  props: {
1064
1085
  width: { default: "100%" },
@@ -1070,7 +1091,7 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1070
1091
  lines: { default: 1 }
1071
1092
  },
1072
1093
  setup(e) {
1073
- return (n, r) => e.lines > 1 ? (T(), c("div", sn, [(T(!0), c(t, null, k(e.lines, (t) => (T(), c("span", {
1094
+ return (n, r) => e.lines > 1 ? (T(), c("div", cn, [(T(!0), c(t, null, k(e.lines, (t) => (T(), c("span", {
1074
1095
  key: t,
1075
1096
  class: y(["uid-skeleton", [e.rounded === !0 && "uid-skeleton--rounded", e.rounded === "full" && "uid-skeleton--full"]]),
1076
1097
  style: b({
@@ -1087,7 +1108,7 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1087
1108
  "aria-hidden": "true"
1088
1109
  }, null, 6));
1089
1110
  }
1090
- }), ln = /* @__PURE__ */ f({
1111
+ }), un = /* @__PURE__ */ f({
1091
1112
  __name: "UidBadge",
1092
1113
  props: {
1093
1114
  variant: { default: "default" },
@@ -1104,10 +1125,10 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1104
1125
  e.dot && "uid-badge--dot"
1105
1126
  ]]) }, [e.dot ? s("", !0) : A(t.$slots, "default", { key: 0 })], 2));
1106
1127
  }
1107
- }), un = { class: "uid-alert__icon" }, dn = { class: "uid-alert__content" }, fn = {
1128
+ }), dn = { class: "uid-alert__icon" }, fn = { class: "uid-alert__content" }, pn = {
1108
1129
  key: 0,
1109
1130
  class: "uid-alert__title"
1110
- }, pn = { class: "uid-alert__body" }, mn = ["aria-label"], hn = /* @__PURE__ */ f({
1131
+ }, mn = { class: "uid-alert__body" }, hn = ["aria-label"], gn = /* @__PURE__ */ f({
1111
1132
  __name: "UidAlert",
1112
1133
  props: {
1113
1134
  variant: { default: "info" },
@@ -1130,11 +1151,11 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1130
1151
  class: y(["uid-alert", `uid-alert--${t.variant}`]),
1131
1152
  role: "alert"
1132
1153
  }, [
1133
- l("span", un, [A(n.$slots, "icon", {}, () => [d(e, {
1154
+ l("span", dn, [A(n.$slots, "icon", {}, () => [d(e, {
1134
1155
  icon: t.icon ?? f.value,
1135
1156
  size: 18
1136
1157
  }, null, 8, ["icon"])])]),
1137
- l("div", dn, [t.title ? (T(), c("p", fn, P(t.title), 1)) : s("", !0), l("div", pn, [A(n.$slots, "default")])]),
1158
+ l("div", fn, [t.title ? (T(), c("p", pn, P(t.title), 1)) : s("", !0), l("div", mn, [A(n.$slots, "default")])]),
1138
1159
  t.dismissible ? (T(), c("button", {
1139
1160
  key: 0,
1140
1161
  type: "button",
@@ -1144,13 +1165,13 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1144
1165
  }, [d(e, {
1145
1166
  icon: L(Ee),
1146
1167
  size: 16
1147
- }, null, 8, ["icon"])], 8, mn)) : s("", !0)
1168
+ }, null, 8, ["icon"])], 8, hn)) : s("", !0)
1148
1169
  ], 2));
1149
1170
  }
1150
- }), gn = { class: "uid-toast__icon" }, _n = { class: "uid-toast__content" }, vn = {
1171
+ }), _n = { class: "uid-toast__icon" }, vn = { class: "uid-toast__content" }, yn = {
1151
1172
  key: 0,
1152
1173
  class: "uid-toast__title"
1153
- }, yn = { class: "uid-toast__message" }, bn = ["aria-label"], xn = /* @__PURE__ */ f({
1174
+ }, bn = { class: "uid-toast__message" }, xn = ["aria-label"], Sn = /* @__PURE__ */ f({
1154
1175
  __name: "UidToast",
1155
1176
  props: {
1156
1177
  id: {},
@@ -1172,11 +1193,11 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1172
1193
  "aria-live": "polite",
1173
1194
  "aria-atomic": "true"
1174
1195
  }, [
1175
- l("span", gn, [d(e, {
1196
+ l("span", _n, [d(e, {
1176
1197
  icon: f.value,
1177
1198
  size: 18
1178
1199
  }, null, 8, ["icon"])]),
1179
- l("div", _n, [t.title ? (T(), c("p", vn, P(t.title), 1)) : s("", !0), l("p", yn, P(t.message), 1)]),
1200
+ l("div", vn, [t.title ? (T(), c("p", yn, P(t.title), 1)) : s("", !0), l("p", bn, P(t.message), 1)]),
1180
1201
  l("button", {
1181
1202
  type: "button",
1182
1203
  class: "uid-toast__close",
@@ -1185,26 +1206,26 @@ var an = ["aria-label"], on = /* @__PURE__ */ f({
1185
1206
  }, [d(e, {
1186
1207
  icon: L(Ee),
1187
1208
  size: 14
1188
- }, null, 8, ["icon"])], 8, bn)
1209
+ }, null, 8, ["icon"])], 8, xn)
1189
1210
  ], 2));
1190
1211
  }
1191
- }), Sn = O([]), Cn = 0;
1192
- function wn() {
1212
+ }), Cn = O([]), wn = 0;
1213
+ function Tn() {
1193
1214
  function e(e) {
1194
1215
  let n = typeof e == "string" ? { message: e } : e, r = {
1195
- id: ++Cn,
1216
+ id: ++wn,
1196
1217
  variant: "info",
1197
1218
  duration: 4e3,
1198
1219
  ...n
1199
1220
  };
1200
- return Sn.value.push(r), r.duration > 0 && setTimeout(() => t(r.id), r.duration), r.id;
1221
+ return Cn.value.push(r), r.duration > 0 && setTimeout(() => t(r.id), r.duration), r.id;
1201
1222
  }
1202
1223
  function t(e) {
1203
- let t = Sn.value.findIndex((t) => t.id === e);
1204
- t !== -1 && Sn.value.splice(t, 1);
1224
+ let t = Cn.value.findIndex((t) => t.id === e);
1225
+ t !== -1 && Cn.value.splice(t, 1);
1205
1226
  }
1206
1227
  function n() {
1207
- Sn.value = [];
1228
+ Cn.value = [];
1208
1229
  }
1209
1230
  function r(t) {
1210
1231
  return e(typeof t == "string" ? {
@@ -1243,7 +1264,7 @@ function wn() {
1243
1264
  });
1244
1265
  }
1245
1266
  return {
1246
- toasts: D(Sn),
1267
+ toasts: D(Cn),
1247
1268
  add: e,
1248
1269
  dismiss: t,
1249
1270
  clear: n,
@@ -1255,33 +1276,33 @@ function wn() {
1255
1276
  }
1256
1277
  //#endregion
1257
1278
  //#region src/components/Toast/UidToastProvider.vue
1258
- var Tn = /* @__PURE__ */ f({
1279
+ var En = /* @__PURE__ */ f({
1259
1280
  __name: "UidToastProvider",
1260
1281
  setup(e) {
1261
- let { toasts: r, dismiss: a } = wn();
1282
+ let { toasts: r, dismiss: a } = Tn();
1262
1283
  return (e, s) => (T(), o(n, { to: "body" }, [d(i, {
1263
1284
  tag: "div",
1264
1285
  name: "uid-toast",
1265
1286
  class: "uid-toast-list"
1266
1287
  }, {
1267
- default: q(() => [(T(!0), c(t, null, k(L(r), (e) => (T(), o(xn, _({ key: e.id }, { ref_for: !0 }, e, { onDismiss: L(a) }), null, 16, ["onDismiss"]))), 128))]),
1288
+ default: q(() => [(T(!0), c(t, null, k(L(r), (e) => (T(), o(Sn, _({ key: e.id }, { ref_for: !0 }, e, { onDismiss: L(a) }), null, 16, ["onDismiss"]))), 128))]),
1268
1289
  _: 1
1269
1290
  })]));
1270
1291
  }
1271
- }), En = { class: "uid-progress-wrapper" }, Dn = {
1292
+ }), Dn = { class: "uid-progress-wrapper" }, On = {
1272
1293
  key: 0,
1273
1294
  class: "uid-progress-header"
1274
- }, On = {
1295
+ }, kn = {
1275
1296
  key: 0,
1276
1297
  class: "uid-progress-label"
1277
- }, kn = {
1298
+ }, An = {
1278
1299
  key: 1,
1279
1300
  class: "uid-progress-value"
1280
- }, An = [
1301
+ }, jn = [
1281
1302
  "aria-valuemax",
1282
1303
  "aria-valuenow",
1283
1304
  "aria-label"
1284
- ], jn = /* @__PURE__ */ f({
1305
+ ], Mn = /* @__PURE__ */ f({
1285
1306
  __name: "UidProgress",
1286
1307
  props: {
1287
1308
  value: { default: void 0 },
@@ -1298,7 +1319,7 @@ var Tn = /* @__PURE__ */ f({
1298
1319
  let t = e, n = a(() => {
1299
1320
  if (t.value !== void 0) return Math.min(100, Math.max(0, t.value / (t.max ?? 100) * 100));
1300
1321
  }), r = a(() => t.value === void 0), i = a(() => n.value === void 0 ? void 0 : `${Math.round(n.value)}%`);
1301
- return (t, a) => (T(), c("div", En, [e.label || e.showValue && i.value ? (T(), c("div", Dn, [e.label ? (T(), c("span", On, P(e.label), 1)) : s("", !0), e.showValue && i.value ? (T(), c("span", kn, P(i.value), 1)) : s("", !0)])) : s("", !0), l("div", {
1322
+ return (t, a) => (T(), c("div", Dn, [e.label || e.showValue && i.value ? (T(), c("div", On, [e.label ? (T(), c("span", kn, P(e.label), 1)) : s("", !0), e.showValue && i.value ? (T(), c("span", An, P(i.value), 1)) : s("", !0)])) : s("", !0), l("div", {
1302
1323
  class: y(["uid-progress", [
1303
1324
  `uid-progress--${e.size}`,
1304
1325
  `uid-progress--${e.variant}`,
@@ -1313,9 +1334,9 @@ var Tn = /* @__PURE__ */ f({
1313
1334
  key: 0,
1314
1335
  class: "uid-progress__bar",
1315
1336
  style: b({ width: `${n.value}%` })
1316
- }, null, 4))], 10, An)]));
1337
+ }, null, 4))], 10, jn)]));
1317
1338
  }
1318
- }), Mn = [
1339
+ }), Nn = [
1319
1340
  "a[href]",
1320
1341
  "button:not([disabled])",
1321
1342
  "input:not([disabled])",
@@ -1323,10 +1344,10 @@ var Tn = /* @__PURE__ */ f({
1323
1344
  "textarea:not([disabled])",
1324
1345
  "[tabindex]:not([tabindex=\"-1\"])"
1325
1346
  ].join(", ");
1326
- function Nn(e) {
1347
+ function Pn(e) {
1327
1348
  let t = O(null);
1328
1349
  function n() {
1329
- return e.value ? Array.from(e.value.querySelectorAll(Mn)).filter((e) => !e.closest("[aria-hidden=\"true\"]")) : [];
1350
+ return e.value ? Array.from(e.value.querySelectorAll(Nn)).filter((e) => !e.closest("[aria-hidden=\"true\"]")) : [];
1330
1351
  }
1331
1352
  function r(e) {
1332
1353
  if (e.key !== "Tab") return;
@@ -1351,17 +1372,17 @@ function Nn(e) {
1351
1372
  }
1352
1373
  //#endregion
1353
1374
  //#region src/composables/useScrollLock.ts
1354
- var Pn = 0;
1355
- function Fn() {
1375
+ var Fn = 0;
1376
+ function In() {
1356
1377
  let e = !1;
1357
1378
  function t() {
1358
- if (!e && (e = !0, Pn++, Pn === 1)) {
1379
+ if (!e && (e = !0, Fn++, Fn === 1)) {
1359
1380
  let e = window.innerWidth - document.documentElement.clientWidth;
1360
1381
  document.body.style.overflow = "hidden", e > 0 && (document.body.style.paddingRight = `${e}px`);
1361
1382
  }
1362
1383
  }
1363
1384
  function n() {
1364
- e && (e = !1, Pn--, Pn === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = ""));
1385
+ e && (e = !1, Fn--, Fn === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = ""));
1365
1386
  }
1366
1387
  return {
1367
1388
  lock: t,
@@ -1370,18 +1391,18 @@ function Fn() {
1370
1391
  }
1371
1392
  //#endregion
1372
1393
  //#region src/composables/useOverlayStack.ts
1373
- var In = [];
1374
- function Ln() {
1394
+ var Ln = [];
1395
+ function Rn() {
1375
1396
  let e = Symbol("uid-overlay");
1376
1397
  function t() {
1377
- In.includes(e) || In.push(e);
1398
+ Ln.includes(e) || Ln.push(e);
1378
1399
  }
1379
1400
  function n() {
1380
- let t = In.indexOf(e);
1381
- t >= 0 && In.splice(t, 1);
1401
+ let t = Ln.indexOf(e);
1402
+ t >= 0 && Ln.splice(t, 1);
1382
1403
  }
1383
1404
  function r() {
1384
- return In[In.length - 1] === e;
1405
+ return Ln[Ln.length - 1] === e;
1385
1406
  }
1386
1407
  return {
1387
1408
  push: t,
@@ -1391,10 +1412,10 @@ function Ln() {
1391
1412
  }
1392
1413
  //#endregion
1393
1414
  //#region src/components/Modal/UidModal.vue?vue&type=script&setup=true&lang.ts
1394
- var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"], Vn = ["aria-label"], Hn = { class: "uid-modal__body" }, Un = {
1415
+ var zn = ["aria-labelledby"], Bn = { class: "uid-modal__header" }, Vn = ["id"], Hn = ["aria-label"], Un = { class: "uid-modal__body" }, Wn = {
1395
1416
  key: 0,
1396
1417
  class: "uid-modal__footer"
1397
- }, Wn = /* @__PURE__ */ f({
1418
+ }, Gn = /* @__PURE__ */ f({
1398
1419
  __name: "UidModal",
1399
1420
  props: /* @__PURE__ */ g({
1400
1421
  title: { default: void 0 },
@@ -1420,7 +1441,7 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1420
1441
  }),
1421
1442
  emits: /* @__PURE__ */ g(["close"], ["update:modelValue"]),
1422
1443
  setup(t, { emit: i }) {
1423
- let a = $(), u = B(t, "modelValue"), f = t, p = i, m = z(), h = O(null), { activate: g, deactivate: _ } = Nn(h), b = Ln(), { lock: S, unlock: C } = Fn();
1444
+ let a = $(), u = B(t, "modelValue"), f = t, p = i, m = z(), h = O(null), { activate: g, deactivate: _ } = Pn(h), b = Rn(), { lock: S, unlock: C } = In();
1424
1445
  function w() {
1425
1446
  u.value = !1, p("close");
1426
1447
  }
@@ -1449,11 +1470,11 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1449
1470
  "aria-labelledby": t.title ? L(m) : void 0,
1450
1471
  tabindex: "-1"
1451
1472
  }, [
1452
- l("div", zn, [A(i.$slots, "header", {}, () => [t.title ? (T(), c("p", {
1473
+ l("div", Bn, [A(i.$slots, "header", {}, () => [t.title ? (T(), c("p", {
1453
1474
  key: 0,
1454
1475
  id: L(m),
1455
1476
  class: "uid-modal__title"
1456
- }, P(t.title), 9, Bn)) : s("", !0)]), t.hideClose ? s("", !0) : (T(), c("button", {
1477
+ }, P(t.title), 9, Vn)) : s("", !0)]), t.hideClose ? s("", !0) : (T(), c("button", {
1457
1478
  key: 0,
1458
1479
  type: "button",
1459
1480
  class: "uid-modal__close",
@@ -1462,17 +1483,17 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1462
1483
  }, [d(e, {
1463
1484
  icon: L(Ee),
1464
1485
  size: 18
1465
- }, null, 8, ["icon"])], 8, Vn))]),
1466
- l("div", Hn, [A(i.$slots, "default")]),
1467
- i.$slots.footer ? (T(), c("div", Un, [A(i.$slots, "footer")])) : s("", !0)
1468
- ], 10, Rn)])) : s("", !0)]),
1486
+ }, null, 8, ["icon"])], 8, Hn))]),
1487
+ l("div", Un, [A(i.$slots, "default")]),
1488
+ i.$slots.footer ? (T(), c("div", Wn, [A(i.$slots, "footer")])) : s("", !0)
1489
+ ], 10, zn)])) : s("", !0)]),
1469
1490
  _: 3
1470
1491
  })]));
1471
1492
  }
1472
- }), Gn = ["aria-labelledby"], Kn = { class: "uid-drawer__header" }, qn = ["id"], Jn = ["aria-label"], Yn = { class: "uid-drawer__body" }, Xn = {
1493
+ }), Kn = ["aria-labelledby"], qn = { class: "uid-drawer__header" }, Jn = ["id"], Yn = ["aria-label"], Xn = { class: "uid-drawer__body" }, Zn = {
1473
1494
  key: 0,
1474
1495
  class: "uid-drawer__footer"
1475
- }, Zn = /* @__PURE__ */ f({
1496
+ }, Qn = /* @__PURE__ */ f({
1476
1497
  __name: "UidDrawer",
1477
1498
  props: /* @__PURE__ */ g({
1478
1499
  title: { default: void 0 },
@@ -1500,7 +1521,7 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1500
1521
  }),
1501
1522
  emits: /* @__PURE__ */ g(["close"], ["update:modelValue"]),
1502
1523
  setup(t, { emit: i }) {
1503
- let a = $(), u = B(t, "modelValue"), f = t, p = i, m = z(), h = O(null), { activate: g, deactivate: _ } = Nn(h), S = Ln(), { lock: C, unlock: w } = Fn();
1524
+ let a = $(), u = B(t, "modelValue"), f = t, p = i, m = z(), h = O(null), { activate: g, deactivate: _ } = Pn(h), S = Rn(), { lock: C, unlock: w } = In();
1504
1525
  function E() {
1505
1526
  u.value = !1, p("close");
1506
1527
  }
@@ -1532,11 +1553,11 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1532
1553
  "aria-labelledby": t.title ? L(m) : void 0,
1533
1554
  tabindex: "-1"
1534
1555
  }, [
1535
- l("div", Kn, [A(i.$slots, "header", {}, () => [t.title ? (T(), c("p", {
1556
+ l("div", qn, [A(i.$slots, "header", {}, () => [t.title ? (T(), c("p", {
1536
1557
  key: 0,
1537
1558
  id: L(m),
1538
1559
  class: "uid-drawer__title"
1539
- }, P(t.title), 9, qn)) : s("", !0)]), t.hideClose ? s("", !0) : (T(), c("button", {
1560
+ }, P(t.title), 9, Jn)) : s("", !0)]), t.hideClose ? s("", !0) : (T(), c("button", {
1540
1561
  key: 0,
1541
1562
  type: "button",
1542
1563
  class: "uid-drawer__close",
@@ -1545,15 +1566,15 @@ var Rn = ["aria-labelledby"], zn = { class: "uid-modal__header" }, Bn = ["id"],
1545
1566
  }, [d(e, {
1546
1567
  icon: L(Ee),
1547
1568
  size: 18
1548
- }, null, 8, ["icon"])], 8, Jn))]),
1549
- l("div", Yn, [A(i.$slots, "default")]),
1550
- i.$slots.footer ? (T(), c("div", Xn, [A(i.$slots, "footer")])) : s("", !0)
1551
- ], 14, Gn)])) : s("", !0)]),
1569
+ }, null, 8, ["icon"])], 8, Yn))]),
1570
+ l("div", Xn, [A(i.$slots, "default")]),
1571
+ i.$slots.footer ? (T(), c("div", Zn, [A(i.$slots, "footer")])) : s("", !0)
1572
+ ], 14, Kn)])) : s("", !0)]),
1552
1573
  _: 3
1553
1574
  }, 8, ["name"])]));
1554
1575
  }
1555
- }), Qn = 8, $n = 8;
1556
- function er(e, t, n = {}) {
1576
+ }), $n = 8, er = 8;
1577
+ function tr(e, t, n = {}) {
1557
1578
  let r = O(0), i = O(0), o = O(I(n.placement) ?? "bottom"), s = a(() => ({
1558
1579
  position: "fixed",
1559
1580
  left: `${r.value}px`,
@@ -1562,7 +1583,7 @@ function er(e, t, n = {}) {
1562
1583
  function c() {
1563
1584
  let a = e.value, s = t.value;
1564
1585
  if (!a || !s) return;
1565
- let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ?? Qn, d = window.innerWidth, f = window.innerHeight, p = I(n.placement) ?? "bottom";
1586
+ let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ?? $n, d = window.innerWidth, f = window.innerHeight, p = I(n.placement) ?? "bottom";
1566
1587
  if (p.startsWith("bottom")) {
1567
1588
  let e = f - c.bottom, t = c.top;
1568
1589
  e < l.height + u && t > e && (p = p.replace("bottom", "top"));
@@ -1572,7 +1593,7 @@ function er(e, t, n = {}) {
1572
1593
  }
1573
1594
  o.value = p;
1574
1595
  let m = 0, h = 0;
1575
- p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max($n, Math.min(m, d - l.width - $n)), i.value = Math.max($n, Math.min(h, f - l.height - $n));
1596
+ p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max(er, Math.min(m, d - l.width - er)), i.value = Math.max(er, Math.min(h, f - l.height - er));
1576
1597
  }
1577
1598
  return {
1578
1599
  x: r,
@@ -1584,7 +1605,7 @@ function er(e, t, n = {}) {
1584
1605
  }
1585
1606
  //#endregion
1586
1607
  //#region src/components/Tooltip/UidTooltip.vue?vue&type=script&setup=true&lang.ts
1587
- var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1608
+ var nr = ["aria-describedby"], rr = ["id"], ir = /* @__PURE__ */ f({
1588
1609
  __name: "UidTooltip",
1589
1610
  props: {
1590
1611
  content: {},
@@ -1595,7 +1616,7 @@ var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1595
1616
  }
1596
1617
  },
1597
1618
  setup(e) {
1598
- let i = e, u = z(), f = O(null), p = O(null), m = O(!1), { floatingStyle: h, update: g } = er(f, p, { placement: a(() => i.placement) });
1619
+ let i = e, u = z(), f = O(null), p = O(null), m = O(!1), { floatingStyle: h, update: g } = tr(f, p, { placement: a(() => i.placement) });
1599
1620
  async function _() {
1600
1621
  i.disabled || (m.value = !0, await v(), g());
1601
1622
  }
@@ -1611,7 +1632,7 @@ var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1611
1632
  onMouseleave: y,
1612
1633
  onFocusin: _,
1613
1634
  onFocusout: y
1614
- }, [A(i.$slots, "default")], 40, tr), (T(), o(n, { to: "body" }, [d(r, { name: "uid-tooltip" }, {
1635
+ }, [A(i.$slots, "default")], 40, nr), (T(), o(n, { to: "body" }, [d(r, { name: "uid-tooltip" }, {
1615
1636
  default: q(() => [m.value ? (T(), c("div", {
1616
1637
  key: 0,
1617
1638
  id: L(u),
@@ -1620,19 +1641,19 @@ var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1620
1641
  class: "uid-tooltip",
1621
1642
  role: "tooltip",
1622
1643
  style: b(L(h))
1623
- }, P(e.content), 13, nr)) : s("", !0)]),
1644
+ }, P(e.content), 13, rr)) : s("", !0)]),
1624
1645
  _: 1
1625
1646
  })]))], 64));
1626
1647
  }
1627
- }), ir = [
1648
+ }), ar = [
1628
1649
  "aria-expanded",
1629
1650
  "aria-controls",
1630
1651
  "onKeydown"
1631
- ], ar = ["id"], or = /* @__PURE__ */ f({
1652
+ ], or = ["id"], sr = /* @__PURE__ */ f({
1632
1653
  __name: "UidPopover",
1633
1654
  props: { placement: { default: "bottom" } },
1634
1655
  setup(e) {
1635
- let i = e, u = O(null), f = O(null), p = O(!1), m = z(), { floatingStyle: h, update: g } = er(u, f, { placement: a(() => i.placement) });
1656
+ let i = e, u = O(null), f = O(null), p = O(!1), m = z(), { floatingStyle: h, update: g } = tr(u, f, { placement: a(() => i.placement) });
1636
1657
  async function _() {
1637
1658
  p.value = !p.value, p.value && (await v(), g());
1638
1659
  }
@@ -1661,7 +1682,7 @@ var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1661
1682
  "aria-controls": L(m),
1662
1683
  onClick: _,
1663
1684
  onKeydown: [Y(X(_, ["prevent"]), ["enter"]), Y(X(_, ["prevent"]), ["space"])]
1664
- }, [A(e.$slots, "trigger")], 40, ir), (T(), o(n, { to: "body" }, [d(r, { name: "uid-popover" }, {
1685
+ }, [A(e.$slots, "trigger")], 40, ar), (T(), o(n, { to: "body" }, [d(r, { name: "uid-popover" }, {
1665
1686
  default: q(() => [p.value ? (T(), c("div", {
1666
1687
  key: 0,
1667
1688
  id: L(m),
@@ -1670,16 +1691,16 @@ var tr = ["aria-describedby"], nr = ["id"], rr = /* @__PURE__ */ f({
1670
1691
  class: "uid-popover",
1671
1692
  role: "dialog",
1672
1693
  style: b(L(h))
1673
- }, [A(e.$slots, "default")], 12, ar)) : s("", !0)]),
1694
+ }, [A(e.$slots, "default")], 12, or)) : s("", !0)]),
1674
1695
  _: 3
1675
1696
  })]))], 64));
1676
1697
  }
1677
- }), sr = Symbol("uid-menu-close"), cr = Symbol("uid-menu-level"), lr = "[role=\"menuitem\"]:not([disabled]):not([aria-disabled=\"true\"])";
1678
- function ur(e) {
1679
- return e ? Array.from(e.querySelectorAll(lr)).filter((t) => t.parentElement?.closest("[role=\"menu\"]") === e) : [];
1698
+ }), cr = Symbol("uid-menu-close"), lr = Symbol("uid-menu-level"), ur = "[role=\"menuitem\"]:not([disabled]):not([aria-disabled=\"true\"])";
1699
+ function dr(e) {
1700
+ return e ? Array.from(e.querySelectorAll(ur)).filter((t) => t.parentElement?.closest("[role=\"menu\"]") === e) : [];
1680
1701
  }
1681
- function dr(e, t) {
1682
- let n = ur(e);
1702
+ function fr(e, t) {
1703
+ let n = dr(e);
1683
1704
  if (!n.length) return !1;
1684
1705
  let r = n.indexOf(document.activeElement), i;
1685
1706
  if (t === "ArrowDown") i = n[(r + 1) % n.length];
@@ -1691,30 +1712,30 @@ function dr(e, t) {
1691
1712
  }
1692
1713
  //#endregion
1693
1714
  //#region src/components/Menu/UidMenu.vue?vue&type=script&setup=true&lang.ts
1694
- var fr = [
1715
+ var pr = [
1695
1716
  "role",
1696
1717
  "tabindex",
1697
1718
  "aria-haspopup",
1698
1719
  "aria-expanded",
1699
1720
  "aria-controls"
1700
- ], pr = ["id"], mr = "button, a[href], input, select, textarea, [role=\"button\"], [tabindex]", hr = /* @__PURE__ */ f({
1721
+ ], mr = ["id"], hr = "button, a[href], input, select, textarea, [role=\"button\"], [tabindex]", gr = /* @__PURE__ */ f({
1701
1722
  __name: "UidMenu",
1702
1723
  setup(e) {
1703
- let i = O(null), u = O(null), f = O(!1), p = z(), { floatingStyle: m, update: h } = er(a(() => i.value?.firstElementChild ?? i.value), u, { placement: "bottom-start" }), g = O(!1);
1724
+ let i = O(null), u = O(null), f = O(!1), p = z(), { floatingStyle: m, update: h } = tr(a(() => i.value?.firstElementChild ?? i.value), u, { placement: "bottom-start" }), g = O(!1);
1704
1725
  function _() {
1705
1726
  let e = i.value?.firstElementChild;
1706
- g.value = e !== null && e.matches(mr), g.value && (e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", String(f.value)), e.setAttribute("aria-controls", p));
1727
+ g.value = e !== null && e.matches(hr), g.value && (e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", String(f.value)), e.setAttribute("aria-controls", p));
1707
1728
  }
1708
1729
  S(_), G(f, _);
1709
1730
  function y() {
1710
- return ur(u.value);
1731
+ return dr(u.value);
1711
1732
  }
1712
1733
  function x() {
1713
1734
  f.value = !1, i.value?.querySelector("button, [tabindex]")?.focus();
1714
1735
  }
1715
- E(sr, x);
1736
+ E(cr, x);
1716
1737
  let w = O(null);
1717
- E(cr, { activeSubmenu: w }), G(f, (e) => {
1738
+ E(lr, { activeSubmenu: w }), G(f, (e) => {
1718
1739
  e || (w.value = null);
1719
1740
  });
1720
1741
  async function D() {
@@ -1726,7 +1747,7 @@ var fr = [
1726
1747
  (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && !f.value && (e.preventDefault(), D());
1727
1748
  }
1728
1749
  function j(e) {
1729
- dr(u.value, e.key) ? e.preventDefault() : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), x()) : e.key === "Tab" && x();
1750
+ fr(u.value, e.key) ? e.preventDefault() : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), x()) : e.key === "Tab" && x();
1730
1751
  }
1731
1752
  function M(e) {
1732
1753
  let t = e.target;
@@ -1747,7 +1768,7 @@ var fr = [
1747
1768
  "aria-controls": g.value ? void 0 : L(p),
1748
1769
  onClick: D,
1749
1770
  onKeydown: k
1750
- }, [A(e.$slots, "trigger")], 40, fr), (T(), o(n, { to: "body" }, [d(r, { name: "uid-menu" }, {
1771
+ }, [A(e.$slots, "trigger")], 40, pr), (T(), o(n, { to: "body" }, [d(r, { name: "uid-menu" }, {
1751
1772
  default: q(() => [f.value ? (T(), c("div", {
1752
1773
  key: 0,
1753
1774
  id: L(p),
@@ -1757,11 +1778,11 @@ var fr = [
1757
1778
  role: "menu",
1758
1779
  style: b(L(m)),
1759
1780
  onKeydown: j
1760
- }, [A(e.$slots, "default")], 44, pr)) : s("", !0)]),
1781
+ }, [A(e.$slots, "default")], 44, mr)) : s("", !0)]),
1761
1782
  _: 3
1762
1783
  })]))], 64));
1763
1784
  }
1764
- }), gr = ["disabled"], _r = /* @__PURE__ */ f({
1785
+ }), _r = ["disabled"], vr = /* @__PURE__ */ f({
1765
1786
  __name: "UidMenuItem",
1766
1787
  props: {
1767
1788
  icon: { default: void 0 },
@@ -1773,7 +1794,7 @@ var fr = [
1773
1794
  },
1774
1795
  emits: ["click"],
1775
1796
  setup(t, { emit: n }) {
1776
- let r = t, i = n, a = h(sr, () => {});
1797
+ let r = t, i = n, a = h(cr, () => {});
1777
1798
  function l(e) {
1778
1799
  r.disabled || (i("click", e), a());
1779
1800
  }
@@ -1788,25 +1809,25 @@ var fr = [
1788
1809
  class: "uid-menu-item__icon",
1789
1810
  icon: t.icon,
1790
1811
  size: 16
1791
- }, null, 8, ["icon"])) : s("", !0), A(n.$slots, "default")], 10, gr));
1812
+ }, null, 8, ["icon"])) : s("", !0), A(n.$slots, "default")], 10, _r));
1792
1813
  }
1793
- }), vr = (e, t) => {
1814
+ }), yr = (e, t) => {
1794
1815
  let n = e.__vccOpts || e;
1795
1816
  for (let [e, r] of t) n[e] = r;
1796
1817
  return n;
1797
- }, yr = {}, br = {
1818
+ }, br = {}, xr = {
1798
1819
  class: "uid-menu-separator",
1799
1820
  role: "separator",
1800
1821
  "aria-hidden": "true"
1801
1822
  };
1802
- function xr(e, t) {
1803
- return T(), c("div", br);
1823
+ function Sr(e, t) {
1824
+ return T(), c("div", xr);
1804
1825
  }
1805
- var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1826
+ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
1806
1827
  "aria-expanded",
1807
1828
  "aria-controls",
1808
1829
  "disabled"
1809
- ], wr = { class: "uid-submenu__label" }, Tr = ["aria-label", "data-side"], Er = 100, Dr = 200, Or = 8, kr = 2, Ar = /* @__PURE__ */ f({
1830
+ ], Tr = { class: "uid-submenu__label" }, Er = ["aria-label", "data-side"], Dr = 100, Or = 200, kr = 8, Ar = 2, jr = /* @__PURE__ */ f({
1810
1831
  __name: "UidSubMenu",
1811
1832
  props: {
1812
1833
  label: { default: "" },
@@ -1823,8 +1844,8 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1823
1844
  left: "0px",
1824
1845
  top: "0px",
1825
1846
  visibility: "hidden"
1826
- }), D = h(cr, null), k = O(null);
1827
- E(cr, { activeSubmenu: k });
1847
+ }), D = h(lr, null), k = O(null);
1848
+ E(lr, { activeSubmenu: k });
1828
1849
  let j, M, N = "";
1829
1850
  function F() {
1830
1851
  clearTimeout(j), clearTimeout(M);
@@ -1832,20 +1853,20 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1832
1853
  function I() {
1833
1854
  let e = g.value, t = _.value;
1834
1855
  if (!e || !t) return;
1835
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight, o = n.right + kr;
1836
- if (S.value = "right", o + r.width > i - Or) {
1837
- let e = n.left - kr - r.width;
1838
- e >= Or ? (o = e, S.value = "left") : o = Math.max(Or, i - Or - r.width);
1856
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight, o = n.right + Ar;
1857
+ if (S.value = "right", o + r.width > i - kr) {
1858
+ let e = n.left - Ar - r.width;
1859
+ e >= kr ? (o = e, S.value = "left") : o = Math.max(kr, i - kr - r.width);
1839
1860
  }
1840
1861
  let s = parseFloat(getComputedStyle(t).paddingTop) || 0, c = n.top - s;
1841
- c + r.height > a - Or && (c = a - Or - r.height), c = Math.max(Or, c), w.value = {
1862
+ c + r.height > a - kr && (c = a - kr - r.height), c = Math.max(kr, c), w.value = {
1842
1863
  position: "fixed",
1843
1864
  left: `${o}px`,
1844
1865
  top: `${c}px`
1845
1866
  };
1846
1867
  }
1847
1868
  async function R(e = !1) {
1848
- a.disabled || (F(), D && (D.activeSubmenu.value = p), x.value || (x.value = !0, f("open")), await v(), I(), e && (await v(), ur(_.value)[0]?.focus()));
1869
+ a.disabled || (F(), D && (D.activeSubmenu.value = p), x.value || (x.value = !0, f("open")), await v(), I(), e && (await v(), dr(_.value)[0]?.focus()));
1849
1870
  }
1850
1871
  function B(e = !1) {
1851
1872
  F(), x.value && (x.value = !1, k.value = null, f("close")), D && D.activeSubmenu.value === p && (D.activeSubmenu.value = null), e && g.value?.focus();
@@ -1859,13 +1880,13 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1859
1880
  function H(e) {
1860
1881
  N = e.pointerType, !(e.pointerType !== "mouse" || a.disabled) && (clearTimeout(M), !x.value && (j = setTimeout(() => {
1861
1882
  R();
1862
- }, Er)));
1883
+ }, Dr)));
1863
1884
  }
1864
1885
  function U() {
1865
1886
  clearTimeout(M);
1866
1887
  }
1867
1888
  function W() {
1868
- clearTimeout(j), !(N !== "mouse" || !x.value) && (M = setTimeout(() => B(), Dr));
1889
+ clearTimeout(j), !(N !== "mouse" || !x.value) && (M = setTimeout(() => B(), Or));
1869
1890
  }
1870
1891
  function K() {
1871
1892
  a.disabled || (x.value && N !== "mouse" ? B() : R());
@@ -1874,7 +1895,7 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1874
1895
  (e.key === "ArrowRight" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), R(!0));
1875
1896
  }
1876
1897
  function Y(e) {
1877
- dr(_.value, e.key) ? (e.preventDefault(), e.stopPropagation()) : (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), B(!0));
1898
+ fr(_.value, e.key) ? (e.preventDefault(), e.stopPropagation()) : (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), B(!0));
1878
1899
  }
1879
1900
  return C(() => {
1880
1901
  F(), D && D.activeSubmenu.value === p && (D.activeSubmenu.value = null);
@@ -1910,13 +1931,13 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1910
1931
  icon: t.icon,
1911
1932
  size: 16
1912
1933
  }, null, 8, ["icon"])) : s("", !0),
1913
- l("span", wr, [A(n.$slots, "label", {}, () => [u(P(t.label), 1)])]),
1934
+ l("span", Tr, [A(n.$slots, "label", {}, () => [u(P(t.label), 1)])]),
1914
1935
  d(e, {
1915
1936
  icon: L(le),
1916
1937
  size: 16,
1917
1938
  class: "uid-submenu__chevron"
1918
1939
  }, null, 8, ["icon"])
1919
- ], 42, Cr), d(r, { name: "uid-submenu" }, {
1940
+ ], 42, wr), d(r, { name: "uid-submenu" }, {
1920
1941
  default: q(() => [x.value ? (T(), c("div", {
1921
1942
  key: 0,
1922
1943
  id: m,
@@ -1928,11 +1949,11 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1928
1949
  "data-side": S.value,
1929
1950
  style: b(w.value),
1930
1951
  onKeydown: Y
1931
- }, [A(n.$slots, "default")], 44, Tr)) : s("", !0)]),
1952
+ }, [A(n.$slots, "default")], 44, Er)) : s("", !0)]),
1932
1953
  _: 3
1933
1954
  })], 32));
1934
1955
  }
1935
- }), jr = Symbol("uid-tabs"), Mr = ["aria-orientation"], Nr = { class: "uid-tabs__panels" }, Pr = /* @__PURE__ */ f({
1956
+ }), Mr = Symbol("uid-tabs"), Nr = ["aria-orientation"], Pr = { class: "uid-tabs__panels" }, Fr = /* @__PURE__ */ f({
1936
1957
  __name: "UidTabs",
1937
1958
  props: /* @__PURE__ */ g({ orientation: { default: "horizontal" } }, {
1938
1959
  modelValue: { required: !0 },
@@ -1941,7 +1962,7 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1941
1962
  emits: ["update:modelValue"],
1942
1963
  setup(e) {
1943
1964
  let t = B(e, "modelValue");
1944
- return E(jr, {
1965
+ return E(Mr, {
1945
1966
  activeTab: t,
1946
1967
  setTab: (e) => {
1947
1968
  t.value = e;
@@ -1951,15 +1972,15 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1951
1972
  class: "uid-tabs__list",
1952
1973
  role: "tablist",
1953
1974
  "aria-orientation": e.orientation
1954
- }, [A(t.$slots, "list")], 8, Mr), l("div", Nr, [A(t.$slots, "default")])], 2));
1975
+ }, [A(t.$slots, "list")], 8, Nr), l("div", Pr, [A(t.$slots, "default")])], 2));
1955
1976
  }
1956
- }), Fr = [
1977
+ }), Ir = [
1957
1978
  "id",
1958
1979
  "aria-selected",
1959
1980
  "aria-controls",
1960
1981
  "disabled",
1961
1982
  "tabindex"
1962
- ], Ir = /* @__PURE__ */ f({
1983
+ ], Lr = /* @__PURE__ */ f({
1963
1984
  __name: "UidTab",
1964
1985
  props: {
1965
1986
  value: {},
@@ -1969,7 +1990,7 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1969
1990
  }
1970
1991
  },
1971
1992
  setup(e) {
1972
- let t = e, n = h(jr), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-tab-${t.value}`), o = a(() => `${n.idPrefix}-panel-${t.value}`);
1993
+ let t = e, n = h(Mr), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-tab-${t.value}`), o = a(() => `${n.idPrefix}-panel-${t.value}`);
1973
1994
  function s() {
1974
1995
  t.disabled || n.setTab(t.value);
1975
1996
  }
@@ -1998,13 +2019,13 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
1998
2019
  tabindex: r.value ? 0 : -1,
1999
2020
  onClick: s,
2000
2021
  onKeydown: l
2001
- }, [A(t.$slots, "default")], 42, Fr));
2022
+ }, [A(t.$slots, "default")], 42, Ir));
2002
2023
  }
2003
- }), Lr = ["id", "aria-labelledby"], Rr = /* @__PURE__ */ f({
2024
+ }), Rr = ["id", "aria-labelledby"], zr = /* @__PURE__ */ f({
2004
2025
  __name: "UidTabPanel",
2005
2026
  props: { value: {} },
2006
2027
  setup(e) {
2007
- let t = e, n = h(jr), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-panel-${t.value}`), o = a(() => `${n.idPrefix}-tab-${t.value}`);
2028
+ let t = e, n = h(Mr), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-panel-${t.value}`), o = a(() => `${n.idPrefix}-tab-${t.value}`);
2008
2029
  return (e, t) => r.value ? (T(), c("div", {
2009
2030
  key: 0,
2010
2031
  id: i.value,
@@ -2012,9 +2033,9 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
2012
2033
  role: "tabpanel",
2013
2034
  "aria-labelledby": o.value,
2014
2035
  tabindex: "0"
2015
- }, [A(e.$slots, "default")], 8, Lr)) : s("", !0);
2036
+ }, [A(e.$slots, "default")], 8, Rr)) : s("", !0);
2016
2037
  }
2017
- }), zr = Symbol("UidBreadcrumb"), Br = ["aria-label"], Vr = ["id", "aria-label"], Hr = ["aria-disabled", "onClick"], Ur = /* @__PURE__ */ f({
2038
+ }), Br = Symbol("UidBreadcrumb"), Vr = ["aria-label"], Hr = ["id", "aria-label"], Ur = ["aria-disabled", "onClick"], Wr = /* @__PURE__ */ f({
2018
2039
  __name: "UidBreadcrumb",
2019
2040
  props: {
2020
2041
  label: { default: void 0 },
@@ -2074,7 +2095,7 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
2074
2095
  }), x(() => {
2075
2096
  V(), ne();
2076
2097
  });
2077
- let H = O(!1), U = O(null), W = O(null), K = z(), { floatingStyle: q, update: J } = er(U, W, {
2098
+ let H = O(!1), U = O(null), W = O(null), K = z(), { floatingStyle: q, update: J } = tr(U, W, {
2078
2099
  placement: "bottom-start",
2079
2100
  offset: 4
2080
2101
  });
@@ -2117,7 +2138,7 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
2117
2138
  }
2118
2139
  return G(h, (e) => {
2119
2140
  e.length === 0 && Z();
2120
- }), E(zr, {
2141
+ }), E(Br, {
2121
2142
  tick: d,
2122
2143
  hidden: h,
2123
2144
  menu: F(i, "collapseMenu"),
@@ -2169,13 +2190,13 @@ var Sr = /* @__PURE__ */ vr(yr, [["render", xr]]), Cr = [
2169
2190
  tabindex: "-1",
2170
2191
  "aria-disabled": e.target ? void 0 : "true",
2171
2192
  onClick: (t) => ae(e)
2172
- }, P(e.label), 9, Hr))), 128))], 44, Vr)) : s("", !0)])) : s("", !0)
2173
- ], 10, Br));
2193
+ }, P(e.label), 9, Ur))), 128))], 44, Hr)) : s("", !0)])) : s("", !0)
2194
+ ], 10, Vr));
2174
2195
  }
2175
2196
  });
2176
2197
  //#endregion
2177
2198
  //#region src/composables/useRouterLink.ts
2178
- function Wr(e) {
2199
+ function Gr(e) {
2179
2200
  let t = p();
2180
2201
  return {
2181
2202
  routerLink: a(() => e.to === void 0 ? null : t?.appContext.components.RouterLink ?? null),
@@ -2184,22 +2205,22 @@ function Wr(e) {
2184
2205
  }
2185
2206
  //#endregion
2186
2207
  //#region src/components/Breadcrumb/UidBreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
2187
- var Gr = [
2208
+ var Kr = [
2188
2209
  "aria-label",
2189
2210
  "aria-expanded",
2190
2211
  "aria-controls"
2191
- ], Kr = {
2212
+ ], qr = {
2192
2213
  key: 1,
2193
2214
  class: "uid-breadcrumb__ellipsis",
2194
2215
  "aria-hidden": "true"
2195
- }, qr = {
2216
+ }, Jr = {
2196
2217
  key: 1,
2197
2218
  class: "uid-breadcrumb__current",
2198
2219
  "aria-current": "page"
2199
- }, Jr = ["href"], Yr = {
2220
+ }, Yr = ["href"], Xr = {
2200
2221
  key: 5,
2201
2222
  class: "uid-breadcrumb__text"
2202
- }, Xr = /* @__PURE__ */ f({
2223
+ }, Zr = /* @__PURE__ */ f({
2203
2224
  __name: "UidBreadcrumbItem",
2204
2225
  props: {
2205
2226
  href: { default: void 0 },
@@ -2211,7 +2232,7 @@ var Gr = [
2211
2232
  },
2212
2233
  emits: ["click"],
2213
2234
  setup(e, { emit: n }) {
2214
- let r = e, i = n, u = p(), d = h(zr, null), f = O(null), m = O(!1);
2235
+ let r = e, i = n, u = p(), d = h(Br, null), f = O(null), m = O(!1);
2215
2236
  function g() {
2216
2237
  let e = f.value;
2217
2238
  m.value = !!e && e.nextElementSibling === null;
@@ -2221,7 +2242,7 @@ var Gr = [
2221
2242
  function C(e) {
2222
2243
  d?.toggleMenu(e.currentTarget);
2223
2244
  }
2224
- let { routerLink: E, fallbackHref: D } = Wr(r);
2245
+ let { routerLink: E, fallbackHref: D } = Gr(r);
2225
2246
  function k() {
2226
2247
  return !!u?.vnode.props?.onClick;
2227
2248
  }
@@ -2249,8 +2270,8 @@ var Gr = [
2249
2270
  "aria-expanded": L(d).menuOpen.value,
2250
2271
  "aria-controls": L(d).menuOpen.value ? L(d).menuId : void 0,
2251
2272
  onClick: C
2252
- }, " … ", 8, Gr)) : (T(), c("span", Kr, "…"))], 64)) : s("", !0),
2253
- _.value ? (T(), c("span", qr, [A(n.$slots, "default")])) : L(E) ? (T(), o(M(L(E)), {
2273
+ }, " … ", 8, Kr)) : (T(), c("span", qr, "…"))], 64)) : s("", !0),
2274
+ _.value ? (T(), c("span", Jr, [A(n.$slots, "default")])) : L(E) ? (T(), o(M(L(E)), {
2254
2275
  key: 2,
2255
2276
  class: "uid-breadcrumb__link",
2256
2277
  to: e.to,
@@ -2263,15 +2284,15 @@ var Gr = [
2263
2284
  class: "uid-breadcrumb__link",
2264
2285
  href: L(D),
2265
2286
  onClick: j
2266
- }, [A(n.$slots, "default")], 8, Jr)) : k() ? (T(), c("button", {
2287
+ }, [A(n.$slots, "default")], 8, Yr)) : k() ? (T(), c("button", {
2267
2288
  key: 4,
2268
2289
  type: "button",
2269
2290
  class: "uid-breadcrumb__link uid-breadcrumb__link--button",
2270
2291
  onClick: j
2271
- }, [A(n.$slots, "default")])) : (T(), c("span", Yr, [A(n.$slots, "default")]))
2292
+ }, [A(n.$slots, "default")])) : (T(), c("span", Xr, [A(n.$slots, "default")]))
2272
2293
  ], 2));
2273
2294
  }
2274
- }), Zr = /* @__PURE__ */ f({
2295
+ }), Qr = /* @__PURE__ */ f({
2275
2296
  __name: "UidLink",
2276
2297
  props: {
2277
2298
  href: { default: void 0 },
@@ -2287,7 +2308,7 @@ var Gr = [
2287
2308
  as: { default: void 0 }
2288
2309
  },
2289
2310
  setup(e) {
2290
- let t = e, { routerLink: n, fallbackHref: r } = Wr(t), i = a(() => t.as ?? n.value ?? "a"), s = a(() => t.as === void 0 && n.value ? { to: t.to } : {
2311
+ let t = e, { routerLink: n, fallbackHref: r } = Gr(t), i = a(() => t.as ?? n.value ?? "a"), s = a(() => t.as === void 0 && n.value ? { to: t.to } : {
2291
2312
  href: t.disabled ? void 0 : r.value,
2292
2313
  target: t.external ? "_blank" : void 0,
2293
2314
  rel: t.external ? "noopener noreferrer" : void 0
@@ -2304,15 +2325,15 @@ var Gr = [
2304
2325
  "tabindex"
2305
2326
  ]));
2306
2327
  }
2307
- }), Qr = ["aria-label"], $r = ["disabled", "aria-label"], ei = {
2328
+ }), $r = ["aria-label"], ei = ["disabled", "aria-label"], ti = {
2308
2329
  key: 0,
2309
2330
  class: "uid-pagination__ellipsis",
2310
2331
  "aria-hidden": "true"
2311
- }, ti = [
2332
+ }, ni = [
2312
2333
  "aria-label",
2313
2334
  "aria-current",
2314
2335
  "onClick"
2315
- ], ni = ["disabled", "aria-label"], ri = /* @__PURE__ */ f({
2336
+ ], ri = ["disabled", "aria-label"], ii = /* @__PURE__ */ f({
2316
2337
  __name: "UidPagination",
2317
2338
  props: /* @__PURE__ */ g({
2318
2339
  total: {},
@@ -2354,15 +2375,15 @@ var Gr = [
2354
2375
  }, [d(e, {
2355
2376
  icon: L(ce),
2356
2377
  size: 16
2357
- }, null, 8, ["icon"])], 8, $r),
2358
- (T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: `${n}-${e}` }, [e === "..." ? (T(), c("span", ei, " … ")) : (T(), c("button", {
2378
+ }, null, 8, ["icon"])], 8, ei),
2379
+ (T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: `${n}-${e}` }, [e === "..." ? (T(), c("span", ti, " … ")) : (T(), c("button", {
2359
2380
  key: 1,
2360
2381
  type: "button",
2361
2382
  class: y(["uid-pagination__btn", { "uid-pagination__btn--active": e === i.value }]),
2362
2383
  "aria-label": L(r).pagination.page(e),
2363
2384
  "aria-current": e === i.value ? "page" : void 0,
2364
2385
  onClick: (t) => p(e)
2365
- }, P(e), 11, ti))], 64))), 128)),
2386
+ }, P(e), 11, ni))], 64))), 128)),
2366
2387
  l("button", {
2367
2388
  type: "button",
2368
2389
  class: "uid-pagination__btn uid-pagination__btn--nav",
@@ -2372,10 +2393,10 @@ var Gr = [
2372
2393
  }, [d(e, {
2373
2394
  icon: L(le),
2374
2395
  size: 16
2375
- }, null, 8, ["icon"])], 8, ni)
2376
- ], 8, Qr));
2396
+ }, null, 8, ["icon"])], 8, ri)
2397
+ ], 8, $r));
2377
2398
  }
2378
- }), ii = ["aria-label"], ai = ["disabled", "aria-label"], oi = ["disabled", "aria-label"], si = /* @__PURE__ */ f({
2399
+ }), ai = ["aria-label"], oi = ["disabled", "aria-label"], si = ["disabled", "aria-label"], ci = /* @__PURE__ */ f({
2379
2400
  __name: "UidPaginationCursor",
2380
2401
  props: {
2381
2402
  hasPrev: {
@@ -2404,7 +2425,7 @@ var Gr = [
2404
2425
  }, [d(e, {
2405
2426
  icon: L(ce),
2406
2427
  size: 16
2407
- }, null, 8, ["icon"]), u(" " + P(t.prevLabel ?? L(r).pagination.back), 1)], 8, ai), l("button", {
2428
+ }, null, 8, ["icon"]), u(" " + P(t.prevLabel ?? L(r).pagination.back), 1)], 8, oi), l("button", {
2408
2429
  type: "button",
2409
2430
  class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
2410
2431
  disabled: !t.hasNext,
@@ -2413,9 +2434,9 @@ var Gr = [
2413
2434
  }, [u(P(t.nextLabel ?? L(r).pagination.forward) + " ", 1), d(e, {
2414
2435
  icon: L(le),
2415
2436
  size: 16
2416
- }, null, 8, ["icon"])], 8, oi)], 8, ii));
2437
+ }, null, 8, ["icon"])], 8, si)], 8, ai));
2417
2438
  }
2418
- }), ci = { class: "uid-load-more" }, li = ["disabled"], ui = /* @__PURE__ */ f({
2439
+ }), li = { class: "uid-load-more" }, ui = ["disabled"], di = /* @__PURE__ */ f({
2419
2440
  __name: "UidLoadMore",
2420
2441
  props: {
2421
2442
  loading: {
@@ -2431,20 +2452,20 @@ var Gr = [
2431
2452
  emits: ["load"],
2432
2453
  setup(e, { emit: t }) {
2433
2454
  let n = $(), r = t;
2434
- return (t, i) => (T(), c("div", ci, [l("button", {
2455
+ return (t, i) => (T(), c("div", li, [l("button", {
2435
2456
  type: "button",
2436
2457
  class: "uid-load-more__btn",
2437
2458
  disabled: e.disabled || e.loading,
2438
2459
  onClick: i[0] ||= (e) => r("load")
2439
- }, [e.loading ? (T(), o(on, {
2460
+ }, [e.loading ? (T(), o(sn, {
2440
2461
  key: 0,
2441
2462
  size: "sm"
2442
- })) : s("", !0), l("span", null, P(e.label ?? L(n).pagination.loadMore), 1)], 8, li)]));
2463
+ })) : s("", !0), l("span", null, P(e.label ?? L(n).pagination.loadMore), 1)], 8, ui)]));
2443
2464
  }
2444
- }), di = { class: "uid-infinite-scroll" }, fi = {
2465
+ }), fi = { class: "uid-infinite-scroll" }, pi = {
2445
2466
  key: 0,
2446
2467
  class: "uid-infinite-scroll__loader"
2447
- }, pi = /* @__PURE__ */ f({
2468
+ }, mi = /* @__PURE__ */ f({
2448
2469
  __name: "UidInfiniteScroll",
2449
2470
  props: {
2450
2471
  loading: {
@@ -2472,14 +2493,15 @@ var Gr = [
2472
2493
  e && u();
2473
2494
  }, { immediate: !0 }), G(() => n.disabled, (e) => {
2474
2495
  e ? o() : u();
2475
- }), C(o), (t, n) => (T(), c("div", di, [e.loading ? (T(), c("div", fi, [d(on, { size: "sm" })])) : s("", !0), l("div", {
2496
+ }), C(o), (t, n) => (T(), c("div", fi, [e.loading ? (T(), c("div", pi, [d(sn, { size: "sm" })])) : s("", !0), l("div", {
2476
2497
  ref_key: "sentinelRef",
2477
2498
  ref: i,
2478
2499
  class: "uid-infinite-scroll__sentinel",
2479
2500
  "aria-hidden": "true"
2480
2501
  }, null, 512)]));
2481
2502
  }
2482
- }), mi = { class: "uid-page-size" }, hi = { class: "uid-page-size__label" }, gi = ["value"], _i = ["value"], vi = /* @__PURE__ */ f({
2503
+ }), hi = { class: "uid-page-size__label" }, gi = ["value"], _i = ["value"], vi = /* @__PURE__ */ f({
2504
+ inheritAttrs: !1,
2483
2505
  __name: "UidPageSize",
2484
2506
  props: /* @__PURE__ */ g({
2485
2507
  options: { default: () => [
@@ -2495,15 +2517,15 @@ var Gr = [
2495
2517
  }),
2496
2518
  emits: ["update:modelValue"],
2497
2519
  setup(e) {
2498
- let n = B(e, "modelValue"), r = $();
2499
- return (i, a) => (T(), c("div", mi, [l("span", hi, P(e.label ?? L(r).pagination.rowsPerPage), 1), l("select", {
2520
+ let n = B(e, "modelValue"), { rootAttrs: r, controlAttrs: i } = ct(), a = $();
2521
+ return (o, s) => (T(), c("div", _({ class: "uid-page-size" }, L(r)()), [l("span", hi, P(e.label ?? L(a).pagination.rowsPerPage), 1), l("select", _(L(i)(), {
2500
2522
  class: "uid-page-size__select",
2501
2523
  value: n.value,
2502
- onChange: a[0] ||= (e) => n.value = Number(e.target.value)
2503
- }, [(T(!0), c(t, null, k(e.options, (e) => (T(), c("option", {
2524
+ onChange: s[0] ||= (e) => n.value = Number(e.target.value)
2525
+ }), [(T(!0), c(t, null, k(e.options, (e) => (T(), c("option", {
2504
2526
  key: e,
2505
2527
  value: e
2506
- }, P(e), 9, _i))), 128))], 40, gi)]));
2528
+ }, P(e), 9, _i))), 128))], 16, gi)], 16));
2507
2529
  }
2508
2530
  }), yi = ["role", "tabindex"], bi = {
2509
2531
  key: 0,
@@ -2905,7 +2927,7 @@ var Gr = [
2905
2927
  class: y(["uid-table__th uid-table__th--select", ce.value]),
2906
2928
  style: b(le.value),
2907
2929
  scope: "col"
2908
- }, [d(Tt, {
2930
+ }, [d(Et, {
2909
2931
  "model-value": g.value,
2910
2932
  indeterminate: C.value,
2911
2933
  "aria-label": L(f).table.selectAll,
@@ -2936,7 +2958,7 @@ var Gr = [
2936
2958
  }, null, 8, ["icon"])) : s("", !0)])], 46, Gi))), 128))], 512)]), l("tbody", qi, [n.loading ? (T(), c("tr", Ji, [l("td", {
2937
2959
  colspan: h.value,
2938
2960
  class: "uid-table__td uid-table__td--center"
2939
- }, [d(on, { size: "md" })], 8, Yi)])) : I.value ? (T(), c("tr", Xi, [l("td", {
2961
+ }, [d(sn, { size: "md" })], 8, Yi)])) : I.value ? (T(), c("tr", Xi, [l("td", {
2940
2962
  colspan: h.value,
2941
2963
  class: "uid-table__td uid-table__td--empty"
2942
2964
  }, [A(r.$slots, "empty", {}, () => [u(P(n.emptyText ?? L(f).table.empty), 1)])], 8, Zi)])) : (T(!0), c(t, { key: 2 }, k(n.data, (e, a) => (T(), c("tr", {
@@ -2948,7 +2970,7 @@ var Gr = [
2948
2970
  class: y(["uid-table__td uid-table__td--select", ce.value]),
2949
2971
  style: b(le.value),
2950
2972
  onClick: i[0] ||= X(() => {}, ["stop"])
2951
- }, [d(Tt, {
2973
+ }, [d(Et, {
2952
2974
  "model-value": n.selection.has(m(e)),
2953
2975
  "aria-label": L(f).table.row(m(e)),
2954
2976
  "onUpdate:modelValue": (t) => F(e, t)
@@ -3018,7 +3040,7 @@ var Gr = [
3018
3040
  function x(e) {
3019
3041
  g.value = e, h("update:modelValue", e), h("change", e);
3020
3042
  }
3021
- let S = O(!1), w = O(""), E = O(0), D = O(null), A = O(null), j = O(null), M = O(null), N = O(null), F = z(), { floatingStyle: I, update: R } = er(A, j, {
3043
+ let S = O(!1), w = O(""), E = O(0), D = O(null), A = O(null), j = O(null), M = O(null), N = O(null), F = z(), { floatingStyle: I, update: R } = tr(A, j, {
3022
3044
  placement: "bottom-start",
3023
3045
  offset: 4
3024
3046
  }), B = O(0);
@@ -3215,7 +3237,7 @@ var Gr = [
3215
3237
  }
3216
3238
  }), ma = 8;
3217
3239
  function ha(e, t, n, r = {}) {
3218
- let { floatingStyle: i, update: o, actualPlacement: s } = er(e, t, {
3240
+ let { floatingStyle: i, update: o, actualPlacement: s } = tr(e, t, {
3219
3241
  placement: r.placement ?? "bottom-start",
3220
3242
  offset: r.offset ?? 4
3221
3243
  }), c = O(0), l = O(!1), u = O(null), d = null, f = !1;
@@ -3569,6 +3591,7 @@ var ga = [
3569
3591
  key: 1,
3570
3592
  class: "uid-slider__marks"
3571
3593
  }, Ma = ["disabled", "onClick"], Na = { class: "uid-slider__mark-label" }, Pa = /* @__PURE__ */ f({
3594
+ inheritAttrs: !1,
3572
3595
  __name: "UidSlider",
3573
3596
  props: /* @__PURE__ */ g({
3574
3597
  min: { default: 0 },
@@ -3596,65 +3619,65 @@ var ga = [
3596
3619
  }),
3597
3620
  emits: ["update:modelValue"],
3598
3621
  setup(e) {
3599
- let n = e, r = z(), i = a(() => n.ariaLabelledby ? void 0 : n.ariaLabel ?? n.label), o = B(e, "modelValue"), u = a(() => (o.value - n.min) / (n.max - n.min) * 100), d = a(() => n.max - n.min), f = a(() => {
3600
- let e = n.marks;
3601
- return !e || d.value <= 0 ? [] : (Array.isArray(e) ? e.map((e) => typeof e == "number" ? { value: e } : e) : Object.keys(e).map((t) => ({
3622
+ let { rootAttrs: n, controlAttrs: r } = ct(), i = e, o = z(), u = a(() => i.ariaLabelledby ? void 0 : i.ariaLabel ?? i.label), d = B(e, "modelValue"), f = a(() => (d.value - i.min) / (i.max - i.min) * 100), p = a(() => i.max - i.min), m = a(() => {
3623
+ let e = i.marks;
3624
+ return !e || p.value <= 0 ? [] : (Array.isArray(e) ? e.map((e) => typeof e == "number" ? { value: e } : e) : Object.keys(e).map((t) => ({
3602
3625
  value: Number(t),
3603
3626
  label: e[Number(t)]
3604
- }))).filter((e) => Number.isFinite(e.value) && e.value >= n.min && e.value <= n.max).sort((e, t) => e.value - t.value).map((e) => ({
3627
+ }))).filter((e) => Number.isFinite(e.value) && e.value >= i.min && e.value <= i.max).sort((e, t) => e.value - t.value).map((e) => ({
3605
3628
  value: e.value,
3606
- label: e.label ?? (n.formatValue ? n.formatValue(e.value) : String(e.value)),
3607
- percent: (e.value - n.min) / d.value * 100
3629
+ label: e.label ?? (i.formatValue ? i.formatValue(e.value) : String(e.value)),
3630
+ percent: (e.value - i.min) / p.value * 100
3608
3631
  }));
3609
3632
  });
3610
- function p(e) {
3611
- n.disabled || o.value === e || (o.value = e);
3633
+ function h(e) {
3634
+ i.disabled || d.value === e || (d.value = e);
3612
3635
  }
3613
- let m = a(() => n.formatValue ? n.formatValue(o.value) : String(o.value));
3614
- return (n, a) => (T(), c("div", { class: y(["uid-slider", {
3636
+ let g = a(() => i.formatValue ? i.formatValue(d.value) : String(d.value));
3637
+ return (i, a) => (T(), c("div", _(L(n)(), { class: ["uid-slider", {
3615
3638
  "uid-slider--disabled": e.disabled,
3616
- "uid-slider--marked": f.value.length > 0
3617
- }]) }, [
3639
+ "uid-slider--marked": m.value.length > 0
3640
+ }] }), [
3618
3641
  e.label || e.showValue ? (T(), c("div", Da, [e.label ? (T(), c("label", {
3619
3642
  key: 0,
3620
3643
  class: "uid-slider__label",
3621
- for: L(r)
3622
- }, P(e.label), 9, Oa)) : s("", !0), e.showValue ? (T(), c("span", ka, P(m.value), 1)) : s("", !0)])) : s("", !0),
3623
- J(l("input", {
3624
- id: L(r),
3625
- "onUpdate:modelValue": a[0] ||= (e) => o.value = e,
3644
+ for: L(o)
3645
+ }, P(e.label), 9, Oa)) : s("", !0), e.showValue ? (T(), c("span", ka, P(g.value), 1)) : s("", !0)])) : s("", !0),
3646
+ J(l("input", _(L(r)(), {
3647
+ id: L(o),
3648
+ "onUpdate:modelValue": a[0] ||= (e) => d.value = e,
3626
3649
  class: "uid-slider__input",
3627
3650
  type: "range",
3628
3651
  min: e.min,
3629
3652
  max: e.max,
3630
3653
  step: e.step,
3631
3654
  disabled: e.disabled,
3632
- "aria-label": i.value,
3655
+ "aria-label": u.value,
3633
3656
  "aria-labelledby": e.ariaLabelledby,
3634
- "aria-valuetext": e.formatValue ? m.value : void 0,
3657
+ "aria-valuetext": e.formatValue ? g.value : void 0,
3635
3658
  "aria-valuemin": e.min,
3636
3659
  "aria-valuemax": e.max,
3637
- "aria-valuenow": o.value,
3638
- style: b({ "--_fill": `${u.value}%` })
3639
- }, null, 12, Aa), [[
3660
+ "aria-valuenow": d.value,
3661
+ style: { "--_fill": `${f.value}%` }
3662
+ }), null, 16, Aa), [[
3640
3663
  U,
3641
- o.value,
3664
+ d.value,
3642
3665
  void 0,
3643
3666
  { number: !0 }
3644
3667
  ]]),
3645
- f.value.length ? (T(), c("div", ja, [(T(!0), c(t, null, k(f.value, (t) => (T(), c("button", {
3668
+ m.value.length ? (T(), c("div", ja, [(T(!0), c(t, null, k(m.value, (t) => (T(), c("button", {
3646
3669
  key: t.value,
3647
3670
  type: "button",
3648
- class: y(["uid-slider__mark", { "uid-slider__mark--active": t.value <= o.value }]),
3671
+ class: y(["uid-slider__mark", { "uid-slider__mark--active": t.value <= d.value }]),
3649
3672
  style: b({ "--_pos": t.percent / 100 }),
3650
3673
  disabled: e.disabled,
3651
3674
  tabindex: "-1",
3652
- onClick: (e) => p(t.value)
3675
+ onClick: (e) => h(t.value)
3653
3676
  }, [a[1] ||= l("span", {
3654
3677
  class: "uid-slider__mark-tick",
3655
3678
  "aria-hidden": "true"
3656
3679
  }, null, -1), l("span", Na, P(t.label), 1)], 14, Ma))), 128))])) : s("", !0)
3657
- ], 2));
3680
+ ], 16));
3658
3681
  }
3659
3682
  }), Fa = "[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?";
3660
3683
  function Ia(e, t, n) {
@@ -4060,7 +4083,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4060
4083
  }),
4061
4084
  emits: ["update:modelValue"],
4062
4085
  setup(i) {
4063
- let u = i, f = $(), p = B(i, "modelValue"), m = O(""), h = O(0), g = O(null), _ = O(null), b = O(null), { activate: x, deactivate: w } = Nn(g), E = Ln(), { lock: D, unlock: A } = Fn(), j = a(() => {
4086
+ let u = i, f = $(), p = B(i, "modelValue"), m = O(""), h = O(0), g = O(null), _ = O(null), b = O(null), { activate: x, deactivate: w } = Pn(g), E = Rn(), { lock: D, unlock: A } = In(), j = a(() => {
4064
4087
  let e = m.value.trim().toLowerCase();
4065
4088
  return e ? u.commands.filter((t) => t.label.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e)) : u.commands;
4066
4089
  }), M = a(() => {
@@ -4169,6 +4192,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4169
4192
  "aria-invalid",
4170
4193
  "aria-describedby"
4171
4194
  ], So = ["disabled", "aria-label"], Co = ["id"], wo = /* @__PURE__ */ f({
4195
+ inheritAttrs: !1,
4172
4196
  __name: "UidNumberInput",
4173
4197
  props: /* @__PURE__ */ g({
4174
4198
  min: { default: void 0 },
@@ -4212,74 +4236,75 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4212
4236
  "change"
4213
4237
  ], ["update:modelValue"]),
4214
4238
  setup(t, { emit: n }) {
4215
- let r = t, i = n, o = B(t, "modelValue"), f = $(), p = a(() => f.value.numberInput.increment(r.step)), m = a(() => f.value.numberInput.decrement(r.step)), h = r.id ?? z(), g = a(() => !!r.error), _ = a(() => r.error || r.hint), v = a(() => r.min !== void 0 && o.value !== null && o.value <= r.min), b = a(() => r.max !== void 0 && o.value !== null && o.value >= r.max);
4216
- function x(e) {
4217
- return r.min !== void 0 && e < r.min && (e = r.min), r.max !== void 0 && e > r.max && (e = r.max), e;
4239
+ let { rootAttrs: r, controlAttrs: i } = ct(), o = t, f = n, p = B(t, "modelValue"), m = $(), h = a(() => m.value.numberInput.increment(o.step)), g = a(() => m.value.numberInput.decrement(o.step)), v = o.id ?? z(), b = a(() => !!o.error), x = a(() => o.error || o.hint), S = a(() => o.min !== void 0 && p.value !== null && p.value <= o.min), C = a(() => o.max !== void 0 && p.value !== null && p.value >= o.max);
4240
+ function w(e) {
4241
+ return o.min !== void 0 && e < o.min && (e = o.min), o.max !== void 0 && e > o.max && (e = o.max), e;
4218
4242
  }
4219
- function S(e) {
4220
- if (r.precision === void 0) return e;
4221
- let t = 10 ** r.precision;
4243
+ function E(e) {
4244
+ if (o.precision === void 0) return e;
4245
+ let t = 10 ** o.precision;
4222
4246
  return Math.round(e * t) / t;
4223
4247
  }
4224
- function C(e) {
4225
- e !== o.value && (o.value = e, i("change", e));
4248
+ function D(e) {
4249
+ e !== p.value && (p.value = e, f("change", e));
4226
4250
  }
4227
- function w() {
4228
- r.disabled || r.readonly || C(S(x((o.value ?? r.min ?? 0) + r.step)));
4251
+ function O() {
4252
+ o.disabled || o.readonly || D(E(w((p.value ?? o.min ?? 0) + o.step)));
4229
4253
  }
4230
- function E() {
4231
- r.disabled || r.readonly || C(S(x((o.value ?? r.max ?? 0) - r.step)));
4254
+ function k() {
4255
+ o.disabled || o.readonly || D(E(w((p.value ?? o.max ?? 0) - o.step)));
4232
4256
  }
4233
- function D(e) {
4257
+ function A(e) {
4234
4258
  let t = e.target.value;
4235
4259
  if (t === "" || t === "-") {
4236
- C(null);
4260
+ D(null);
4237
4261
  return;
4238
4262
  }
4239
4263
  let n = Number(t);
4240
- Number.isNaN(n) || C(S(n));
4264
+ Number.isNaN(n) || D(E(n));
4241
4265
  }
4242
- function O(e) {
4243
- if (o.value !== null) {
4244
- let e = S(x(o.value));
4245
- e !== o.value && C(e);
4266
+ function j(e) {
4267
+ if (p.value !== null) {
4268
+ let e = E(w(p.value));
4269
+ e !== p.value && D(e);
4246
4270
  }
4247
- i("blur", e);
4271
+ f("blur", e);
4248
4272
  }
4249
- function k(e) {
4250
- e.key === "ArrowUp" ? (e.preventDefault(), w()) : e.key === "ArrowDown" && (e.preventDefault(), E());
4273
+ function M(e) {
4274
+ e.key === "ArrowUp" ? (e.preventDefault(), O()) : e.key === "ArrowDown" && (e.preventDefault(), k());
4251
4275
  }
4252
- let A = a(() => o.value === null ? "" : String(o.value)), j = a(() => r.controls && !r.disabled && !r.readonly);
4253
- return (n, r) => (T(), c("div", { class: y(["uid-number-input", [
4276
+ let N = a(() => p.value === null ? "" : String(p.value)), F = a(() => o.controls && !o.disabled && !o.readonly);
4277
+ return (n, a) => (T(), c("div", _(L(r)(), { class: ["uid-number-input", [
4254
4278
  `uid-number-input--${t.size}`,
4255
- g.value && "uid-number-input--error",
4279
+ b.value && "uid-number-input--error",
4256
4280
  t.disabled && "uid-number-input--disabled",
4257
4281
  t.readonly && "uid-number-input--readonly",
4258
4282
  t.centered && "uid-number-input--centered"
4259
- ]]) }, [
4283
+ ]] }), [
4260
4284
  t.label ? (T(), c("label", {
4261
4285
  key: 0,
4262
- for: L(h),
4286
+ for: L(v),
4263
4287
  class: "uid-number-input__label"
4264
4288
  }, [u(P(t.label) + " ", 1), t.required ? (T(), c("span", vo, "*")) : s("", !0)], 8, _o)) : s("", !0),
4265
4289
  l("div", yo, [
4266
- j.value ? (T(), c("button", {
4290
+ F.value ? (T(), c("button", {
4267
4291
  key: 0,
4268
4292
  type: "button",
4269
4293
  class: "uid-number-input__btn uid-number-input__btn--prefix",
4270
- disabled: t.disabled || t.readonly || v.value,
4271
- "aria-label": m.value,
4294
+ disabled: t.disabled || t.readonly || S.value,
4295
+ "aria-label": g.value,
4272
4296
  tabindex: "-1",
4273
- onClick: E
4297
+ onClick: k
4274
4298
  }, [d(e, {
4275
4299
  icon: L(ye),
4276
4300
  size: 14
4277
4301
  }, null, 8, ["icon"])], 8, bo)) : s("", !0),
4278
- l("input", {
4279
- id: L(h),
4302
+ l("input", _({
4303
+ id: L(v),
4280
4304
  class: "uid-number-input__input",
4281
4305
  type: "number",
4282
- inputmode: "decimal",
4306
+ inputmode: "decimal"
4307
+ }, L(i)(), {
4283
4308
  name: t.name,
4284
4309
  placeholder: t.placeholder,
4285
4310
  disabled: t.disabled,
@@ -4288,33 +4313,33 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4288
4313
  min: t.min,
4289
4314
  max: t.max,
4290
4315
  step: t.step,
4291
- value: A.value,
4292
- "aria-invalid": g.value ? "true" : void 0,
4293
- "aria-describedby": _.value ? `${L(h)}-hint` : void 0,
4294
- onInput: D,
4295
- onBlur: O,
4296
- onFocus: r[0] ||= (e) => i("focus", e),
4297
- onKeydown: k
4298
- }, null, 40, xo),
4299
- j.value ? (T(), c("button", {
4316
+ value: N.value,
4317
+ "aria-invalid": b.value ? "true" : void 0,
4318
+ "aria-describedby": x.value ? `${L(v)}-hint` : void 0,
4319
+ onInput: A,
4320
+ onBlur: j,
4321
+ onFocus: a[0] ||= (e) => f("focus", e),
4322
+ onKeydown: M
4323
+ }), null, 16, xo),
4324
+ F.value ? (T(), c("button", {
4300
4325
  key: 1,
4301
4326
  type: "button",
4302
4327
  class: "uid-number-input__btn",
4303
- disabled: t.disabled || t.readonly || b.value,
4304
- "aria-label": p.value,
4328
+ disabled: t.disabled || t.readonly || C.value,
4329
+ "aria-label": h.value,
4305
4330
  tabindex: "-1",
4306
- onClick: w
4331
+ onClick: O
4307
4332
  }, [d(e, {
4308
4333
  icon: L(be),
4309
4334
  size: 14
4310
4335
  }, null, 8, ["icon"])], 8, So)) : s("", !0)
4311
4336
  ]),
4312
- _.value ? (T(), c("p", {
4337
+ x.value ? (T(), c("p", {
4313
4338
  key: 1,
4314
- id: `${L(h)}-hint`,
4315
- class: y(["uid-number-input__hint", g.value && "uid-number-input__hint--error"])
4316
- }, P(_.value), 11, Co)) : s("", !0)
4317
- ], 2));
4339
+ id: `${L(v)}-hint`,
4340
+ class: y(["uid-number-input__hint", b.value && "uid-number-input__hint--error"])
4341
+ }, P(x.value), 11, Co)) : s("", !0)
4342
+ ], 16));
4318
4343
  }
4319
4344
  }), To = [
4320
4345
  "aria-expanded",
@@ -4986,6 +5011,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4986
5011
  "aria-invalid",
4987
5012
  "aria-describedby"
4988
5013
  ], _s = ["id"], vs = /* @__PURE__ */ f({
5014
+ inheritAttrs: !1,
4989
5015
  __name: "UidTagsInput",
4990
5016
  props: /* @__PURE__ */ g({
4991
5017
  separators: { default: () => [",", "Enter"] },
@@ -5018,112 +5044,112 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5018
5044
  }),
5019
5045
  emits: /* @__PURE__ */ g(["add", "remove"], ["update:modelValue"]),
5020
5046
  setup(e, { emit: n }) {
5021
- let r = e, i = n, o = B(e, "modelValue"), d = O(""), f = O(null), p = r.id ?? z(), m = $(), h = a(() => !!r.error), g = a(() => r.error || r.hint), _ = a(() => r.max !== void 0 && o.value.length >= r.max);
5022
- function v(e) {
5023
- return r.validate ? r.validate(e) : !0;
5047
+ let { rootAttrs: r, controlAttrs: i } = ct(), o = e, d = n, f = B(e, "modelValue"), p = O(""), m = O(null), h = o.id ?? z(), g = $(), v = a(() => !!o.error), b = a(() => o.error || o.hint), x = a(() => o.max !== void 0 && f.value.length >= o.max);
5048
+ function S(e) {
5049
+ return o.validate ? o.validate(e) : !0;
5024
5050
  }
5025
- function b() {
5026
- let e = d.value.trim();
5027
- if (e && !_.value) {
5028
- if (r.unique && o.value.includes(e)) {
5029
- d.value = "";
5051
+ function C() {
5052
+ let e = p.value.trim();
5053
+ if (e && !x.value) {
5054
+ if (o.unique && f.value.includes(e)) {
5055
+ p.value = "";
5030
5056
  return;
5031
5057
  }
5032
- v(e) && (o.value = [...o.value, e], i("add", e), d.value = "");
5058
+ S(e) && (f.value = [...f.value, e], d("add", e), p.value = "");
5033
5059
  }
5034
5060
  }
5035
- function x(e) {
5036
- let t = o.value[e];
5037
- o.value = o.value.filter((t, n) => n !== e), i("remove", t, e);
5061
+ function w(e) {
5062
+ let t = f.value[e];
5063
+ f.value = f.value.filter((t, n) => n !== e), d("remove", t, e);
5038
5064
  }
5039
- function S(e) {
5040
- if (r.separators.includes(e.key)) {
5041
- e.preventDefault(), b();
5065
+ function E(e) {
5066
+ if (o.separators.includes(e.key)) {
5067
+ e.preventDefault(), C();
5042
5068
  return;
5043
5069
  }
5044
- e.key === "Backspace" && d.value === "" && o.value.length > 0 && x(o.value.length - 1);
5070
+ e.key === "Backspace" && p.value === "" && f.value.length > 0 && w(f.value.length - 1);
5045
5071
  }
5046
- function C(e) {
5072
+ function D(e) {
5047
5073
  let t = e.target, n = t.value;
5048
- for (let e of r.separators) if (e !== "Enter" && n.includes(e)) {
5049
- let a = n.split(e);
5050
- n = a.pop() ?? "", t.value = n, d.value = n;
5051
- for (let e of a) {
5074
+ for (let e of o.separators) if (e !== "Enter" && n.includes(e)) {
5075
+ let r = n.split(e);
5076
+ n = r.pop() ?? "", t.value = n, p.value = n;
5077
+ for (let e of r) {
5052
5078
  let t = e.trim();
5053
5079
  if (t) {
5054
- if (_.value) break;
5055
- r.unique && o.value.includes(t) || v(t) && (o.value = [...o.value, t], i("add", t));
5080
+ if (x.value) break;
5081
+ o.unique && f.value.includes(t) || S(t) && (f.value = [...f.value, t], d("add", t));
5056
5082
  }
5057
5083
  }
5058
5084
  return;
5059
5085
  }
5060
- d.value = n;
5086
+ p.value = n;
5061
5087
  }
5062
- function w(e) {
5088
+ function A(e) {
5063
5089
  let t = e.clipboardData?.getData("text");
5064
5090
  if (!t) return;
5065
- let n = RegExp(`[${r.separators.filter((e) => e !== "Enter").join("")}\\n]`);
5091
+ let n = RegExp(`[${o.separators.filter((e) => e !== "Enter").join("")}\\n]`);
5066
5092
  if (n.test(t)) {
5067
5093
  e.preventDefault();
5068
5094
  for (let e of t.split(n)) {
5069
5095
  let t = e.trim();
5070
5096
  if (t) {
5071
- if (_.value) break;
5072
- r.unique && o.value.includes(t) || v(t) && (o.value = [...o.value, t], i("add", t));
5097
+ if (x.value) break;
5098
+ o.unique && f.value.includes(t) || S(t) && (f.value = [...f.value, t], d("add", t));
5073
5099
  }
5074
5100
  }
5075
5101
  }
5076
5102
  }
5077
- function E() {
5078
- f.value?.focus();
5103
+ function j() {
5104
+ m.value?.focus();
5079
5105
  }
5080
- return (n, r) => (T(), c("div", { class: y(["uid-tags-input", [
5106
+ return (n, a) => (T(), c("div", _(L(r)(), { class: ["uid-tags-input", [
5081
5107
  `uid-tags-input--${e.size}`,
5082
- h.value && "uid-tags-input--error",
5108
+ v.value && "uid-tags-input--error",
5083
5109
  e.disabled && "uid-tags-input--disabled"
5084
- ]]) }, [
5110
+ ]] }), [
5085
5111
  e.label ? (T(), c("label", {
5086
5112
  key: 0,
5087
- for: L(p),
5113
+ for: L(h),
5088
5114
  class: "uid-tags-input__label"
5089
5115
  }, [u(P(e.label) + " ", 1), e.required ? (T(), c("span", ms, "*")) : s("", !0)], 8, ps)) : s("", !0),
5090
5116
  l("div", {
5091
5117
  class: "uid-tags-input__control",
5092
5118
  role: "list",
5093
- onClick: E
5094
- }, [(T(!0), c(t, null, k(o.value, (t, n) => (T(), c("span", {
5119
+ onClick: j
5120
+ }, [(T(!0), c(t, null, k(f.value, (t, n) => (T(), c("span", {
5095
5121
  key: `${t}-${n}`,
5096
- class: y(["uid-tags-input__chip", { "uid-tags-input__chip--invalid": !v(t) }]),
5122
+ class: y(["uid-tags-input__chip", { "uid-tags-input__chip--invalid": !S(t) }]),
5097
5123
  role: "listitem"
5098
5124
  }, [l("span", null, P(t), 1), e.disabled ? s("", !0) : (T(), c("button", {
5099
5125
  key: 0,
5100
5126
  type: "button",
5101
5127
  class: "uid-tags-input__chip-remove",
5102
- "aria-label": L(m).tagsInput.remove(t),
5103
- onClick: X((e) => x(n), ["stop"])
5104
- }, "×", 8, hs))], 2))), 128)), l("input", {
5105
- id: L(p),
5128
+ "aria-label": L(g).tagsInput.remove(t),
5129
+ onClick: X((e) => w(n), ["stop"])
5130
+ }, "×", 8, hs))], 2))), 128)), l("input", _(L(i)(), {
5131
+ id: L(h),
5106
5132
  ref_key: "inputRef",
5107
- ref: f,
5133
+ ref: m,
5108
5134
  class: "uid-tags-input__field",
5109
5135
  type: "text",
5110
- placeholder: o.value.length === 0 ? e.placeholder : "",
5136
+ placeholder: f.value.length === 0 ? e.placeholder : "",
5111
5137
  disabled: e.disabled,
5112
- readonly: _.value,
5113
- value: d.value,
5114
- "aria-invalid": h.value ? "true" : void 0,
5115
- "aria-describedby": g.value ? `${L(p)}-hint` : void 0,
5116
- onInput: C,
5117
- onKeydown: S,
5118
- onPaste: w,
5119
- onBlur: b
5120
- }, null, 40, gs)]),
5121
- g.value ? (T(), c("p", {
5138
+ readonly: x.value,
5139
+ value: p.value,
5140
+ "aria-invalid": v.value ? "true" : void 0,
5141
+ "aria-describedby": b.value ? `${L(h)}-hint` : void 0,
5142
+ onInput: D,
5143
+ onKeydown: E,
5144
+ onPaste: A,
5145
+ onBlur: C
5146
+ }), null, 16, gs)]),
5147
+ b.value ? (T(), c("p", {
5122
5148
  key: 1,
5123
- id: `${L(p)}-hint`,
5124
- class: y(["uid-tags-input__hint", h.value && "uid-tags-input__hint--error"])
5125
- }, P(g.value), 11, _s)) : s("", !0)
5126
- ], 2));
5149
+ id: `${L(h)}-hint`,
5150
+ class: y(["uid-tags-input__hint", v.value && "uid-tags-input__hint--error"])
5151
+ }, P(b.value), 11, _s)) : s("", !0)
5152
+ ], 16));
5127
5153
  }
5128
5154
  }), ys = ["for"], bs = {
5129
5155
  key: 0,
@@ -5153,6 +5179,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5153
5179
  key: 2,
5154
5180
  class: "uid-combobox__empty"
5155
5181
  }, js = /* @__PURE__ */ f({
5182
+ inheritAttrs: !1,
5156
5183
  __name: "UidCombobox",
5157
5184
  props: /* @__PURE__ */ g({
5158
5185
  options: {},
@@ -5189,165 +5216,165 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5189
5216
  }),
5190
5217
  emits: /* @__PURE__ */ g(["change", "create"], ["update:modelValue"]),
5191
5218
  setup(r, { emit: i }) {
5192
- let f = r, p = $(), m = a(() => f.placeholder ?? p.value.combobox.placeholder), h = a(() => f.emptyText ?? p.value.combobox.noResults), g = i, _ = B(r, "modelValue"), x = O(!1), S = O(""), w = O(0), E = O(null), D = O(null), A = O(null), j = O(null), { panelStyle: M, containsTarget: N } = ha(j, A, x, { matchWidth: "exact" }), F = f.id ?? z(), I = z(), R = a(() => f.options.find((e) => e.value === _.value) ?? null);
5193
- G(R, (e) => {
5194
- x.value || (S.value = e?.label ?? "");
5219
+ let { rootAttrs: f, controlAttrs: p } = ct(), m = r, h = $(), g = a(() => m.placeholder ?? h.value.combobox.placeholder), x = a(() => m.emptyText ?? h.value.combobox.noResults), S = i, w = B(r, "modelValue"), E = O(!1), D = O(""), A = O(0), j = O(null), M = O(null), N = O(null), F = O(null), { panelStyle: I, containsTarget: R } = ha(F, N, E, { matchWidth: "exact" }), V = m.id ?? z(), H = z(), U = a(() => m.options.find((e) => e.value === w.value) ?? null);
5220
+ G(U, (e) => {
5221
+ E.value || (D.value = e?.label ?? "");
5195
5222
  }, { immediate: !0 });
5196
- let V = a(() => {
5197
- let e = S.value.trim().toLowerCase();
5198
- return e ? f.filter ? f.options.filter((e) => f.filter(e, S.value)) : f.options.filter((t) => t.label.toLowerCase().includes(e)) : f.options;
5199
- }), H = a(() => f.allowCreate && S.value.trim().length > 0 && !V.value.some((e) => e.label.toLowerCase() === S.value.trim().toLowerCase())), U = a(() => !!f.error), W = a(() => f.error || f.hint);
5200
- G(S, () => {
5201
- w.value = 0;
5223
+ let W = a(() => {
5224
+ let e = D.value.trim().toLowerCase();
5225
+ return e ? m.filter ? m.options.filter((e) => m.filter(e, D.value)) : m.options.filter((t) => t.label.toLowerCase().includes(e)) : m.options;
5226
+ }), K = a(() => m.allowCreate && D.value.trim().length > 0 && !W.value.some((e) => e.label.toLowerCase() === D.value.trim().toLowerCase())), q = a(() => !!m.error), J = a(() => m.error || m.hint);
5227
+ G(D, () => {
5228
+ A.value = 0;
5202
5229
  });
5203
- function K() {
5204
- f.disabled || (x.value = !0);
5205
- }
5206
- function q() {
5207
- x.value = !1, S.value = R.value?.label ?? "";
5208
- }
5209
- function J(e) {
5210
- e.disabled || (_.value = e.value, g("change", e.value), S.value = e.label, x.value = !1, D.value?.blur());
5211
- }
5212
5230
  function Y() {
5213
- let e = S.value.trim();
5214
- e && (g("create", e), x.value = !1);
5231
+ m.disabled || (E.value = !0);
5215
5232
  }
5216
- function X(e) {
5217
- e.stopPropagation(), _.value = null, g("change", null), S.value = "", D.value?.focus();
5233
+ function X() {
5234
+ E.value = !1, D.value = U.value?.label ?? "";
5218
5235
  }
5219
5236
  function ee(e) {
5220
- S.value = e.target.value, x.value || K();
5237
+ e.disabled || (w.value = e.value, S("change", e.value), D.value = e.label, E.value = !1, M.value?.blur());
5221
5238
  }
5222
5239
  function te() {
5223
- K();
5240
+ let e = D.value.trim();
5241
+ e && (S("create", e), E.value = !1);
5224
5242
  }
5225
5243
  function ne(e) {
5244
+ e.stopPropagation(), w.value = null, S("change", null), D.value = "", M.value?.focus();
5245
+ }
5246
+ function Z(e) {
5247
+ D.value = e.target.value, E.value || Y();
5248
+ }
5249
+ function re() {
5250
+ Y();
5251
+ }
5252
+ function ie(e) {
5226
5253
  if (e.key === "ArrowDown") {
5227
- if (e.preventDefault(), !x.value) {
5228
- K();
5254
+ if (e.preventDefault(), !E.value) {
5255
+ Y();
5229
5256
  return;
5230
5257
  }
5231
- Z();
5232
- } else if (e.key === "ArrowUp") e.preventDefault(), x.value && re();
5258
+ ae();
5259
+ } else if (e.key === "ArrowUp") e.preventDefault(), E.value && oe();
5233
5260
  else if (e.key === "Enter") {
5234
- if (e.preventDefault(), !x.value) {
5235
- K();
5261
+ if (e.preventDefault(), !E.value) {
5262
+ Y();
5236
5263
  return;
5237
5264
  }
5238
- ie();
5239
- } else e.key === "Escape" ? x.value ? (e.stopPropagation(), q()) : D.value?.blur() : e.key === "Tab" && q();
5265
+ ce();
5266
+ } else e.key === "Escape" ? E.value ? (e.stopPropagation(), X()) : M.value?.blur() : e.key === "Tab" && X();
5240
5267
  }
5241
- function Z() {
5242
- let e = V.value.length + +!!H.value;
5243
- e !== 0 && (w.value = Math.min(w.value + 1, e - 1), ae());
5268
+ function ae() {
5269
+ let e = W.value.length + +!!K.value;
5270
+ e !== 0 && (A.value = Math.min(A.value + 1, e - 1), le());
5244
5271
  }
5245
- function re() {
5246
- w.value = Math.max(w.value - 1, 0), ae();
5272
+ function oe() {
5273
+ A.value = Math.max(A.value - 1, 0), le();
5247
5274
  }
5248
- function ie() {
5249
- if (H.value && w.value === V.value.length) {
5250
- Y();
5275
+ function ce() {
5276
+ if (K.value && A.value === W.value.length) {
5277
+ te();
5251
5278
  return;
5252
5279
  }
5253
- let e = V.value[w.value];
5254
- e && J(e);
5280
+ let e = W.value[A.value];
5281
+ e && ee(e);
5255
5282
  }
5256
- function ae() {
5283
+ function le() {
5257
5284
  v(() => {
5258
- (A.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
5285
+ (N.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
5259
5286
  });
5260
5287
  }
5261
- function oe(e) {
5288
+ function ue(e) {
5262
5289
  let t = e.target;
5263
- !E.value?.contains(t) && !N(t) && q();
5290
+ !j.value?.contains(t) && !R(t) && X();
5264
5291
  }
5265
- return G(x, (e) => {
5266
- e ? (w.value = Math.max(0, V.value.findIndex((e) => e.value === _.value)), document.addEventListener("pointerdown", oe)) : document.removeEventListener("pointerdown", oe);
5267
- }), C(() => document.removeEventListener("pointerdown", oe)), (i, a) => (T(), c("div", {
5292
+ return G(E, (e) => {
5293
+ e ? (A.value = Math.max(0, W.value.findIndex((e) => e.value === w.value)), document.addEventListener("pointerdown", ue)) : document.removeEventListener("pointerdown", ue);
5294
+ }), C(() => document.removeEventListener("pointerdown", ue)), (i, a) => (T(), c("div", _(L(f)(), {
5268
5295
  ref_key: "containerRef",
5269
- ref: E,
5270
- class: y(["uid-combobox", [
5296
+ ref: j,
5297
+ class: ["uid-combobox", [
5271
5298
  `uid-combobox--${r.size}`,
5272
- x.value && "uid-combobox--open",
5299
+ E.value && "uid-combobox--open",
5273
5300
  r.disabled && "uid-combobox--disabled",
5274
- U.value && "uid-combobox--error"
5275
- ]])
5276
- }, [
5301
+ q.value && "uid-combobox--error"
5302
+ ]]
5303
+ }), [
5277
5304
  r.label ? (T(), c("label", {
5278
5305
  key: 0,
5279
- for: L(F),
5306
+ for: L(V),
5280
5307
  class: "uid-combobox__label"
5281
5308
  }, [u(P(r.label) + " ", 1), r.required ? (T(), c("span", bs, "*")) : s("", !0)], 8, ys)) : s("", !0),
5282
5309
  l("div", {
5283
5310
  ref_key: "controlRef",
5284
- ref: j,
5311
+ ref: F,
5285
5312
  class: "uid-combobox__control"
5286
- }, [l("input", {
5287
- id: L(F),
5313
+ }, [l("input", _(L(p)(), {
5314
+ id: L(V),
5288
5315
  ref_key: "inputRef",
5289
- ref: D,
5316
+ ref: M,
5290
5317
  class: "uid-combobox__field",
5291
5318
  type: "text",
5292
5319
  role: "combobox",
5293
5320
  autocomplete: "off",
5294
5321
  "aria-haspopup": "listbox",
5295
- "aria-expanded": x.value,
5296
- "aria-controls": L(I),
5322
+ "aria-expanded": E.value,
5323
+ "aria-controls": L(H),
5297
5324
  "aria-autocomplete": "list",
5298
- "aria-activedescendant": x.value ? `${L(I)}-${w.value}` : void 0,
5299
- "aria-invalid": U.value ? "true" : void 0,
5300
- placeholder: m.value,
5325
+ "aria-activedescendant": E.value ? `${L(H)}-${A.value}` : void 0,
5326
+ "aria-invalid": q.value ? "true" : void 0,
5327
+ placeholder: g.value,
5301
5328
  disabled: r.disabled,
5302
5329
  required: r.required,
5303
- value: S.value,
5304
- onInput: ee,
5305
- onFocus: te,
5306
- onKeydown: ne
5307
- }, null, 40, xs), l("div", Ss, [r.clearable && _.value !== null ? (T(), c("button", {
5330
+ value: D.value,
5331
+ onInput: Z,
5332
+ onFocus: re,
5333
+ onKeydown: ie
5334
+ }), null, 16, xs), l("div", Ss, [r.clearable && w.value !== null ? (T(), c("button", {
5308
5335
  key: 0,
5309
5336
  type: "button",
5310
5337
  class: "uid-combobox__clear",
5311
- "aria-label": L(p).common.clear,
5312
- onClick: X
5338
+ "aria-label": L(h).common.clear,
5339
+ onClick: ne
5313
5340
  }, [d(e, {
5314
5341
  icon: L(Ee),
5315
5342
  size: 12
5316
5343
  }, null, 8, ["icon"])], 8, Cs)) : s("", !0), d(e, {
5317
5344
  icon: L(se),
5318
5345
  size: 16,
5319
- class: y(["uid-combobox__chevron", { "uid-combobox__chevron--open": x.value }]),
5346
+ class: y(["uid-combobox__chevron", { "uid-combobox__chevron--open": E.value }]),
5320
5347
  "aria-hidden": "true",
5321
- onClick: K
5348
+ onClick: Y
5322
5349
  }, null, 8, ["icon", "class"])])], 512),
5323
- (T(), o(n, { to: "body" }, [x.value ? (T(), c("div", {
5350
+ (T(), o(n, { to: "body" }, [E.value ? (T(), c("div", {
5324
5351
  key: 0,
5325
- id: L(I),
5352
+ id: L(H),
5326
5353
  ref_key: "listRef",
5327
- ref: A,
5354
+ ref: N,
5328
5355
  class: "uid-combobox__dropdown",
5329
- style: b(L(M)),
5356
+ style: b(L(I)),
5330
5357
  role: "listbox"
5331
5358
  }, [
5332
- V.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(V.value, (t, n) => (T(), c("button", {
5333
- id: `${L(I)}-${n}`,
5359
+ W.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(W.value, (t, n) => (T(), c("button", {
5360
+ id: `${L(H)}-${n}`,
5334
5361
  key: t.value,
5335
5362
  type: "button",
5336
5363
  role: "option",
5337
5364
  class: y(["uid-combobox__option", {
5338
- "uid-combobox__option--active": n === w.value,
5339
- "uid-combobox__option--selected": t.value === _.value,
5365
+ "uid-combobox__option--active": n === A.value,
5366
+ "uid-combobox__option--selected": t.value === w.value,
5340
5367
  "uid-combobox__option--disabled": t.disabled
5341
5368
  }]),
5342
- "data-active": n === w.value ? "true" : void 0,
5343
- "aria-selected": t.value === _.value,
5369
+ "data-active": n === A.value ? "true" : void 0,
5370
+ "aria-selected": t.value === w.value,
5344
5371
  "aria-disabled": t.disabled,
5345
- onClick: (e) => J(t),
5346
- onMouseenter: (e) => !t.disabled && (w.value = n)
5372
+ onClick: (e) => ee(t),
5373
+ onMouseenter: (e) => !t.disabled && (A.value = n)
5347
5374
  }, [
5348
5375
  l("span", Es, P(t.label), 1),
5349
5376
  t.hint ? (T(), c("span", Ds, P(t.hint), 1)) : s("", !0),
5350
- t.value === _.value ? (T(), o(e, {
5377
+ t.value === w.value ? (T(), o(e, {
5351
5378
  key: 1,
5352
5379
  icon: L(Q),
5353
5380
  size: 14,
@@ -5355,23 +5382,23 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5355
5382
  "aria-hidden": "true"
5356
5383
  }, null, 8, ["icon"])) : s("", !0)
5357
5384
  ], 42, Ts))), 128)) : s("", !0),
5358
- H.value ? (T(), c("button", {
5385
+ K.value ? (T(), c("button", {
5359
5386
  key: 1,
5360
- id: `${L(I)}-${V.value.length}`,
5387
+ id: `${L(H)}-${W.value.length}`,
5361
5388
  type: "button",
5362
5389
  role: "option",
5363
- class: y(["uid-combobox__option uid-combobox__create", { "uid-combobox__option--active": w.value === V.value.length }]),
5364
- "data-active": w.value === V.value.length ? "true" : void 0,
5365
- onClick: Y,
5366
- onMouseenter: a[0] ||= (e) => w.value = V.value.length
5367
- }, [l("span", ks, P(L(p).combobox.create(S.value)), 1)], 42, Os)) : s("", !0),
5368
- V.value.length === 0 && !H.value ? (T(), c("div", As, P(h.value), 1)) : s("", !0)
5390
+ class: y(["uid-combobox__option uid-combobox__create", { "uid-combobox__option--active": A.value === W.value.length }]),
5391
+ "data-active": A.value === W.value.length ? "true" : void 0,
5392
+ onClick: te,
5393
+ onMouseenter: a[0] ||= (e) => A.value = W.value.length
5394
+ }, [l("span", ks, P(L(h).combobox.create(D.value)), 1)], 42, Os)) : s("", !0),
5395
+ W.value.length === 0 && !K.value ? (T(), c("div", As, P(x.value), 1)) : s("", !0)
5369
5396
  ], 12, ws)) : s("", !0)])),
5370
- W.value ? (T(), c("p", {
5397
+ J.value ? (T(), c("p", {
5371
5398
  key: 1,
5372
- class: y(["uid-combobox__hint", U.value && "uid-combobox__hint--error"])
5373
- }, P(W.value), 3)) : s("", !0)
5374
- ], 2));
5399
+ class: y(["uid-combobox__hint", q.value && "uid-combobox__hint--error"])
5400
+ }, P(J.value), 3)) : s("", !0)
5401
+ ], 16));
5375
5402
  }
5376
5403
  }), Ms = Symbol("UidTree"), Ns = [
5377
5404
  "aria-expanded",
@@ -6265,7 +6292,7 @@ var Lc = {
6265
6292
  decoding: "async",
6266
6293
  onLoad: C,
6267
6294
  onError: w
6268
- }, null, 40, Zc))], 64)), n.preview ? (T(), o(Wn, {
6295
+ }, null, 40, Zc))], 64)), n.preview ? (T(), o(Gn, {
6269
6296
  key: 2,
6270
6297
  modelValue: h.value,
6271
6298
  "onUpdate:modelValue": i[0] ||= (e) => h.value = e,
@@ -6531,7 +6558,8 @@ var Lc = {
6531
6558
  icon: {},
6532
6559
  loading: { type: Boolean },
6533
6560
  footer: {},
6534
- locale: { default: void 0 }
6561
+ locale: { default: void 0 },
6562
+ trendPlacement: { default: "inline" }
6535
6563
  },
6536
6564
  setup(t) {
6537
6565
  let n = t, r = $(), i = a(() => n.locale ?? r.value.code ?? "ru-RU"), d = a(() => n.value === void 0 ? "" : n.formatter ? n.formatter(n.value) : typeof n.value == "number" ? n.value.toLocaleString(i.value, {
@@ -6541,6 +6569,7 @@ var Lc = {
6541
6569
  return (n, r) => (T(), c("div", { class: y(["uid-stat", [
6542
6570
  `uid-stat--${t.tone}`,
6543
6571
  t.variant === "ghost" && "uid-stat--ghost",
6572
+ t.trendPlacement === "below" && "uid-stat--trend-below",
6544
6573
  t.loading && "uid-stat--loading"
6545
6574
  ]]) }, [t.icon || n.$slots.icon ? (T(), c("span", ul, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
6546
6575
  key: 0,
@@ -7102,6 +7131,7 @@ var Lc = {
7102
7131
  key: 0,
7103
7132
  class: "uid-mention__empty"
7104
7133
  }, au = /* @__PURE__ */ f({
7134
+ inheritAttrs: !1,
7105
7135
  __name: "UidMention",
7106
7136
  props: /* @__PURE__ */ g({
7107
7137
  options: {},
@@ -7121,15 +7151,15 @@ var Lc = {
7121
7151
  }),
7122
7152
  emits: /* @__PURE__ */ g(["select"], ["update:modelValue"]),
7123
7153
  setup(e, { emit: r }) {
7124
- let i = e, u = $(), d = a(() => i.emptyText ?? u.value.mention.noResults), f = r, p = B(e, "modelValue"), m = O(null), h = z(), g = O(!1), _ = O(""), x = O(0), S = O(-1), C = O(""), w = O(null), { panelStyle: E } = ha(m, w, g), D = a(() => Array.isArray(i.prefix) ? i.prefix : [i.prefix]), A = a(() => {
7125
- let e = _.value.toLowerCase();
7126
- return i.filter ? i.options.filter((e) => i.filter(e, _.value)) : e ? i.options.filter((t) => t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : i.options;
7154
+ let { rootAttrs: i, controlAttrs: u } = ct(), d = e, f = $(), p = a(() => d.emptyText ?? f.value.mention.noResults), m = r, h = B(e, "modelValue"), g = O(null), x = z(), S = O(!1), C = O(""), w = O(0), E = O(-1), D = O(""), A = O(null), { panelStyle: j } = ha(g, A, S), M = a(() => Array.isArray(d.prefix) ? d.prefix : [d.prefix]), N = a(() => {
7155
+ let e = C.value.toLowerCase();
7156
+ return d.filter ? d.options.filter((e) => d.filter(e, C.value)) : e ? d.options.filter((t) => t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : d.options;
7127
7157
  });
7128
- function j() {
7129
- let e = m.value;
7158
+ function F() {
7159
+ let e = g.value;
7130
7160
  if (!e) return;
7131
- let t = e.selectionStart ?? 0, n = p.value.slice(0, t), r = -1, i = "";
7132
- for (let e of D.value) {
7161
+ let t = e.selectionStart ?? 0, n = h.value.slice(0, t), r = -1, i = "";
7162
+ for (let e of M.value) {
7133
7163
  let t = n.lastIndexOf(e);
7134
7164
  if (t > r) {
7135
7165
  let a = n[t - 1];
@@ -7139,62 +7169,62 @@ var Lc = {
7139
7169
  }
7140
7170
  }
7141
7171
  }
7142
- r >= 0 ? (S.value = r, C.value = i, _.value = n.slice(r + i.length), x.value = 0, g.value ||= !0) : (g.value = !1, _.value = "", S.value = -1);
7172
+ r >= 0 ? (E.value = r, D.value = i, C.value = n.slice(r + i.length), w.value = 0, S.value ||= !0) : (S.value = !1, C.value = "", E.value = -1);
7143
7173
  }
7144
- function M(e) {
7145
- if (S.value < 0) return;
7146
- let t = m.value;
7174
+ function I(e) {
7175
+ if (E.value < 0) return;
7176
+ let t = g.value;
7147
7177
  if (!t) return;
7148
- let n = t.selectionStart ?? 0, r = p.value.slice(0, S.value), i = p.value.slice(n), a = `${C.value}${e.value} `;
7149
- p.value = r + a + i, f("select", e, C.value), g.value = !1, S.value = -1, _.value = "", v(() => {
7178
+ let n = t.selectionStart ?? 0, r = h.value.slice(0, E.value), i = h.value.slice(n), a = `${D.value}${e.value} `;
7179
+ h.value = r + a + i, m("select", e, D.value), S.value = !1, E.value = -1, C.value = "", v(() => {
7150
7180
  let e = r.length + a.length;
7151
7181
  t.focus(), t.setSelectionRange(e, e);
7152
7182
  });
7153
7183
  }
7154
- function N(e) {
7155
- p.value = e.target.value, j();
7184
+ function R(e) {
7185
+ h.value = e.target.value, F();
7156
7186
  }
7157
- function F() {
7158
- j();
7187
+ function V() {
7188
+ F();
7159
7189
  }
7160
- function I(e) {
7161
- g.value && (e.key === "ArrowDown" ? (e.preventDefault(), x.value = Math.min(x.value + 1, A.value.length - 1)) : e.key === "ArrowUp" ? (e.preventDefault(), x.value = Math.max(x.value - 1, 0)) : e.key === "Enter" || e.key === "Tab" ? A.value.length > 0 && (e.preventDefault(), M(A.value[x.value])) : e.key === "Escape" && g.value && (e.stopPropagation(), g.value = !1));
7190
+ function H(e) {
7191
+ S.value && (e.key === "ArrowDown" ? (e.preventDefault(), w.value = Math.min(w.value + 1, N.value.length - 1)) : e.key === "ArrowUp" ? (e.preventDefault(), w.value = Math.max(w.value - 1, 0)) : e.key === "Enter" || e.key === "Tab" ? N.value.length > 0 && (e.preventDefault(), I(N.value[w.value])) : e.key === "Escape" && S.value && (e.stopPropagation(), S.value = !1));
7162
7192
  }
7163
- return (r, i) => (T(), c("div", { class: y(["uid-mention", { "uid-mention--disabled": e.disabled }]) }, [
7193
+ return (r, a) => (T(), c("div", _(L(i)(), { class: ["uid-mention", { "uid-mention--disabled": e.disabled }] }), [
7164
7194
  e.label ? (T(), c("label", {
7165
7195
  key: 0,
7166
- for: L(h),
7196
+ for: L(x),
7167
7197
  class: "uid-mention__label"
7168
7198
  }, P(e.label), 9, $l)) : s("", !0),
7169
- l("textarea", {
7170
- id: L(h),
7199
+ l("textarea", _(L(u)(), {
7200
+ id: L(x),
7171
7201
  ref_key: "fieldRef",
7172
- ref: m,
7202
+ ref: g,
7173
7203
  class: "uid-mention__field",
7174
- value: p.value,
7204
+ value: h.value,
7175
7205
  placeholder: e.placeholder,
7176
7206
  rows: e.rows,
7177
7207
  disabled: e.disabled,
7178
- onInput: N,
7179
- onClick: F,
7180
- onKeydown: I,
7181
- onKeyup: j,
7182
- onBlur: i[0] ||= (e) => g.value = !1
7183
- }, null, 40, eu),
7184
- (T(), o(n, { to: "body" }, [g.value ? (T(), c("div", {
7208
+ onInput: R,
7209
+ onClick: V,
7210
+ onKeydown: H,
7211
+ onKeyup: F,
7212
+ onBlur: a[0] ||= (e) => S.value = !1
7213
+ }), null, 16, eu),
7214
+ (T(), o(n, { to: "body" }, [S.value ? (T(), c("div", {
7185
7215
  key: 0,
7186
7216
  ref_key: "panelRef",
7187
- ref: w,
7217
+ ref: A,
7188
7218
  class: "uid-mention__dropdown",
7189
- style: b(L(E))
7190
- }, [(T(!0), c(t, null, k(A.value, (e, t) => (T(), c("button", {
7219
+ style: b(L(j))
7220
+ }, [(T(!0), c(t, null, k(N.value, (e, t) => (T(), c("button", {
7191
7221
  key: e.value,
7192
7222
  type: "button",
7193
- class: y(["uid-mention__option", { "uid-mention__option--active": t === x.value }]),
7194
- onMousedown: X((t) => M(e), ["prevent"]),
7195
- onMouseenter: (e) => x.value = t
7196
- }, [l("span", nu, P(e.label), 1), e.hint ? (T(), c("span", ru, P(e.hint), 1)) : s("", !0)], 42, tu))), 128)), A.value.length === 0 ? (T(), c("div", iu, P(d.value), 1)) : s("", !0)], 4)) : s("", !0)]))
7197
- ], 2));
7223
+ class: y(["uid-mention__option", { "uid-mention__option--active": t === w.value }]),
7224
+ onMousedown: X((t) => I(e), ["prevent"]),
7225
+ onMouseenter: (e) => w.value = t
7226
+ }, [l("span", nu, P(e.label), 1), e.hint ? (T(), c("span", ru, P(e.hint), 1)) : s("", !0)], 42, tu))), 128)), N.value.length === 0 ? (T(), c("div", iu, P(p.value), 1)) : s("", !0)], 4)) : s("", !0)]))
7227
+ ], 16));
7198
7228
  }
7199
7229
  }), ou = ["for"], su = {
7200
7230
  key: 0,
@@ -8568,7 +8598,7 @@ var Lc = {
8568
8598
  "--uid-gauge-value-size": `${Math.max(14, n.size * .13)}px`
8569
8599
  }));
8570
8600
  return (n, r) => (T(), c("div", {
8571
- class: y(["uid-gauge", e.tone !== "primary" && `uid-gauge--${e.tone}`]),
8601
+ class: y(["uid-gauge", [e.tone !== "primary" && `uid-gauge--${e.tone}`, e.ranges && e.ranges.length > 0 && "uid-gauge--ranged"]]),
8572
8602
  style: b(C.value),
8573
8603
  role: "meter",
8574
8604
  "aria-valuemin": e.min,
@@ -9106,7 +9136,7 @@ var Lc = {
9106
9136
  as: { default: void 0 }
9107
9137
  },
9108
9138
  setup(e) {
9109
- let t = e, { routerLink: n, fallbackHref: r } = Wr(t), i = a(() => t.as ?? n.value ?? "a"), u = a(() => t.as === void 0 && n.value ? { to: t.to } : { href: t.disabled ? void 0 : r.value });
9139
+ let t = e, { routerLink: n, fallbackHref: r } = Gr(t), i = a(() => t.as ?? n.value ?? "a"), u = a(() => t.as === void 0 && n.value ? { to: t.to } : { href: t.disabled ? void 0 : r.value });
9110
9140
  return (t, n) => (T(), o(M(i.value), _({ class: ["uid-sidebar-item", {
9111
9141
  "uid-sidebar-item--active": e.active,
9112
9142
  "uid-sidebar-item--disabled": e.disabled
@@ -9151,7 +9181,7 @@ var Lc = {
9151
9181
  function op(e, t) {
9152
9182
  return T(), c("div", ap);
9153
9183
  }
9154
- var sp = /* @__PURE__ */ vr(ip, [["render", op]]), cp = { class: "uid-pattern-page-header" }, lp = {
9184
+ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-page-header" }, lp = {
9155
9185
  key: 0,
9156
9186
  class: "uid-pattern-page-header__breadcrumb"
9157
9187
  }, up = { class: "uid-pattern-page-header__row" }, dp = { class: "uid-pattern-page-header__heading" }, fp = ["aria-label"], pp = { class: "uid-pattern-page-header__title" }, mp = {
@@ -9369,7 +9399,7 @@ var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sid
9369
9399
  props: { locale: {} },
9370
9400
  setup(e) {
9371
9401
  let t = e;
9372
- return rn(a(() => t.locale)), (e, t) => A(e.$slots, "default");
9402
+ return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
9373
9403
  }
9374
9404
  }), rm = {
9375
9405
  code: "en-US",
@@ -9624,4 +9654,4 @@ function cm() {
9624
9654
  };
9625
9655
  }
9626
9656
  //#endregion
9627
- export { Li as UidAccordion, Ui as UidAccordionItem, Fl as UidAffix, hn as UidAlert, Wl as UidAnchor, Yp as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, Nl as UidBackTop, ln as UidBadge, Ur as UidBreadcrumb, Xr as UidBreadcrumbItem, je as UidButton, Md as UidCalendar, wi as UidCard, Du as UidCarousel, vd as UidCascader, Tt as UidCheckbox, jt as UidCheckboxGroup, Gc as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, kf as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, Tl as UidDescriptionItem, xl as UidDescriptionList, Pi as UidDivider, Zn as UidDrawer, wp as UidEmptyState, Mp as UidErrorState, gc as UidFileUpload, Gf as UidFooter, en as UidFormField, uf as UidGauge, Of as UidGrid, Bf as UidHeader, vf as UidHeatmap, e as UidIcon, el as UidImage, pi as UidInfiniteScroll, ht as UidInput, Yt as UidLabel, Zr as UidLink, ui as UidLoadMore, nm as UidLocaleProvider, au as UidMention, hr as UidMenu, _r as UidMenuItem, Sr as UidMenuSeparator, Wn as UidModal, xu as UidNotificationBadge, wo as UidNumberInput, _p as UidPageHeader, vi as UidPageSize, ri as UidPagination, si as UidPaginationCursor, or as UidPopover, jn as UidProgress, Jd as UidProgressRing, Ft as UidRadio, Vt as UidRadioGroup, ol as UidRating, jl as UidResult, pa as UidSelect, Xf as UidSidebar, sp as UidSidebarDivider, rp as UidSidebarGroup, ep as UidSidebarItem, Wp as UidSidebarLayout, Ip as UidSimpleLayout, cn as UidSkeleton, Pa as UidSlider, Hd as UidSparkline, on as UidSpinner, ll as UidSplitter, Df as UidStack, vl as UidStat, Ef as UidStepper, Ar as UidSubMenu, Kt as UidSwitch, Ir as UidTab, Rr as UidTabPanel, $i as UidTable, Pr as UidTabs, Mi as UidTag, vs as UidTagsInput, bt as UidTextarea, Io as UidTimePicker, Us as UidTimeline, Zs as UidTimelineItem, xn as UidToast, Tn as UidToastProvider, rr as UidTooltip, Ql as UidTour, $u as UidTransfer, Bs as UidTreeItem, vu as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, Rl as UidWatermark, Mf as UidWizard, tm as UidWizardLayout, Pf as UidWizardStep, Ge as email, rm as en, ze as getMessage, et as inList, Je as integer, Fc as isHighlightable, Xe as max, Qe as maxValue, Ye as min, Ze as minValue, Ka as normalizeColor, We as nullable, qe as numeric, Ua as parseColor, at as parseRules, rn as provideLocale, $e as regex, Ue as required, nt as requiredIf, rt as requiredUnless, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, Ic as tokenize, Ke as url, cm as useCommandPalette, st as useField, Nn as useFocusTrap, $ as useLocale, er as usePopover, Fn as useScrollLock, Rp as useSidebar, am as useTheme, wn as useToast, om as useWizard };
9657
+ export { Li as UidAccordion, Ui as UidAccordionItem, Fl as UidAffix, gn as UidAlert, Wl as UidAnchor, Yp as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, Nl as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, Md as UidCalendar, wi as UidCard, Du as UidCarousel, vd as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, Gc as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, kf as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, Tl as UidDescriptionItem, xl as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, wp as UidEmptyState, Mp as UidErrorState, gc as UidFileUpload, Gf as UidFooter, tn as UidFormField, uf as UidGauge, Of as UidGrid, Bf as UidHeader, vf as UidHeatmap, e as UidIcon, el as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, nm as UidLocaleProvider, au as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, xu as UidNotificationBadge, wo as UidNumberInput, _p as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, Jd as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, ol as UidRating, jl as UidResult, pa as UidSelect, Xf as UidSidebar, sp as UidSidebarDivider, rp as UidSidebarGroup, ep as UidSidebarItem, Wp as UidSidebarLayout, Ip as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Hd as UidSparkline, sn as UidSpinner, ll as UidSplitter, Df as UidStack, vl as UidStat, Ef as UidStepper, jr as UidSubMenu, qt as UidSwitch, Lr as UidTab, zr as UidTabPanel, $i as UidTable, Fr as UidTabs, Mi as UidTag, vs as UidTagsInput, xt as UidTextarea, Io as UidTimePicker, Us as UidTimeline, Zs as UidTimelineItem, Sn as UidToast, En as UidToastProvider, ir as UidTooltip, Ql as UidTour, $u as UidTransfer, Bs as UidTreeItem, vu as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, Rl as UidWatermark, Mf as UidWizard, tm as UidWizardLayout, Pf as UidWizardStep, Ge as email, rm as en, ze as getMessage, et as inList, Je as integer, Fc as isHighlightable, Xe as max, Qe as maxValue, Ye as min, Ze as minValue, Ka as normalizeColor, We as nullable, qe as numeric, Ua as parseColor, at as parseRules, an as provideLocale, $e as regex, Ue as required, nt as requiredIf, rt as requiredUnless, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, Ic as tokenize, Ke as url, cm as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, tr as usePopover, In as useScrollLock, Rp as useSidebar, am as useTheme, Tn as useToast, om as useWizard };