@nightshadeui/components 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { openBlock as a, createBlock as v, resolveDynamicComponent as $, normalizeClass as h, withCtx as m, renderSlot as p, createElementBlock as d, createCommentVNode as b, toDisplayString as P, resolveComponent as g, Fragment as w, renderList as F, createElementVNode as c, Transition as G, Teleport as R, withModifiers as B, normalizeStyle as j, mergeProps as I, createVNode as A } from "vue";
1
+ import { openBlock as a, createBlock as v, resolveDynamicComponent as $, normalizeClass as h, withCtx as m, renderSlot as p, createElementBlock as d, createCommentVNode as b, toDisplayString as P, resolveComponent as g, Fragment as w, renderList as F, createElementVNode as c, Transition as G, Teleport as R, withModifiers as B, normalizeStyle as j, mergeProps as C, createVNode as A } from "vue";
2
2
  function U(e) {
3
3
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4
4
  }
@@ -6,8 +6,8 @@ function D(e, t) {
6
6
  return Object.prototype.hasOwnProperty.call(e, t);
7
7
  }
8
8
  function q(e, t) {
9
- const r = e?.$?.vnode?.props || {};
10
- return D(r, t) ? !0 : D(r, U(t));
9
+ const r = e?.$?.vnode?.props || {}, n = D(r, t) ? t : U(t);
10
+ return D(r, n) && r[n] !== void 0;
11
11
  }
12
12
  const y = {
13
13
  inject: {
@@ -36,7 +36,7 @@ function H(e, t) {
36
36
  }
37
37
  return r;
38
38
  }
39
- function C(e, t) {
39
+ function I(e, t) {
40
40
  const r = {}, n = e?.resolvedProps || H(e, e?.$options), s = Object.keys(t.props || {});
41
41
  for (const o of s)
42
42
  r[o] = n[o];
@@ -82,6 +82,12 @@ const f = (e, t) => {
82
82
  };
83
83
  },
84
84
  computed: {
85
+ isButton() {
86
+ return this.resolvedProps.tagName === "button";
87
+ },
88
+ inactive() {
89
+ return this.resolvedProps.disabled || this.blocked;
90
+ },
85
91
  baseStyle() {
86
92
  const { resolvedProps: e } = this;
87
93
  return {
@@ -107,6 +113,12 @@ const f = (e, t) => {
107
113
  } = this, { forceActive: u, forceHover: k, forceFocus: z } = l, T = Object.assign({}, e);
108
114
  return (s || u) && Object.assign(T, r), (o || k) && Object.assign(T, t), (i || z) && Object.assign(T, n), T;
109
115
  }
116
+ },
117
+ methods: {
118
+ /** Only a `<button>` ignores clicks when disabled: stop them on any other tag (links, router links). */
119
+ onClickCapture(e) {
120
+ this.inactive && (e.preventDefault(), e.stopImmediatePropagation());
121
+ }
110
122
  }
111
123
  }, W = {
112
124
  key: 0,
@@ -127,15 +139,18 @@ function Y(e, t, r, n, s, o) {
127
139
  "Btn-translucent": o.effectiveStyle.translucent && !o.effectiveStyle.ghost,
128
140
  "Btn-square": e.resolvedProps.square,
129
141
  "Btn-block": e.resolvedProps.block,
130
- "Btn-disabled": e.resolvedProps.disabled || s.blocked,
142
+ "Btn-disabled": o.inactive,
131
143
  "Btn-forceFocus": e.resolvedProps.forceFocus,
132
144
  "Btn-forceHover": e.resolvedProps.forceHover,
133
145
  "Btn-forceActive": e.resolvedProps.forceActive
134
146
  }
135
147
  ]]),
136
- disabled: e.resolvedProps.disabled || s.blocked,
148
+ disabled: o.isButton ? o.inactive : void 0,
149
+ "aria-disabled": !o.isButton && o.inactive ? "true" : void 0,
150
+ tabindex: !o.isButton && o.inactive ? -1 : void 0,
137
151
  title: e.resolvedProps.title ?? e.resolvedProps.label,
138
- href: e.resolvedProps.href,
152
+ href: o.inactive ? void 0 : e.resolvedProps.href,
153
+ onClickCapture: o.onClickCapture,
139
154
  onMouseenter: t[0] || (t[0] = (i) => s.hover = !0),
140
155
  onMouseleave: t[1] || (t[1] = (i) => s.hover = !1),
141
156
  onMousedown: t[2] || (t[2] = (i) => s.active = !0),
@@ -178,9 +193,9 @@ function Y(e, t, r, n, s, o) {
178
193
  }, void 0, !0)
179
194
  ]),
180
195
  _: 3
181
- }, 40, ["class", "disabled", "title", "href"]);
196
+ }, 40, ["class", "disabled", "aria-disabled", "tabindex", "title", "href", "onClickCapture"]);
182
197
  }
183
- const E = /* @__PURE__ */ f(X, [["render", Y], ["__scopeId", "data-v-1050482f"]]), Z = {
198
+ const E = /* @__PURE__ */ f(X, [["render", Y], ["__scopeId", "data-v-d6869d7b"]]), Z = {
184
199
  mixins: [y],
185
200
  props: {
186
201
  tagName: { type: String, default: "div" },
@@ -328,7 +343,7 @@ function ie(e, t, r, n, s, o) {
328
343
  _: 3
329
344
  }, 8, ["name"]);
330
345
  }
331
- const L = /* @__PURE__ */ f(re, [["render", ie], ["__scopeId", "data-v-905600bc"]]), ae = {}, ue = {
346
+ const L = /* @__PURE__ */ f(re, [["render", ie], ["__scopeId", "data-v-99b7c1c3"]]), ae = {}, ue = {
332
347
  viewBox: "0 0 32 32",
333
348
  fill: "none",
334
349
  stroke: "currentColor",
@@ -416,11 +431,11 @@ const ye = /* @__PURE__ */ f(fe, [["render", ve]]), he = {
416
431
  this.$emit("update:modelValue", e.target.checked);
417
432
  }
418
433
  }
419
- }, me = {
434
+ }, me = ["tabindex"], be = {
420
435
  key: 1,
421
436
  class: "Mark"
422
- }, be = ["checked", "disabled"];
423
- function ge(e, t, r, n, s, o) {
437
+ }, ge = ["checked", "disabled"];
438
+ function Pe(e, t, r, n, s, o) {
424
439
  return a(), d("label", {
425
440
  class: h(["Checkbox InputElement", [
426
441
  o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
@@ -436,7 +451,7 @@ function ge(e, t, r, n, s, o) {
436
451
  "Checkbox-forceHover": e.resolvedProps.forceHover
437
452
  }
438
453
  ]]),
439
- tabindex: "0",
454
+ tabindex: e.resolvedProps.disabled ? -1 : 0,
440
455
  onMouseenter: t[1] || (t[1] = (i) => s.hover = !0),
441
456
  onMouseleave: t[2] || (t[2] = (i) => s.hover = !1),
442
457
  onFocusin: t[3] || (t[3] = (i) => s.focus = !0),
@@ -446,7 +461,7 @@ function ge(e, t, r, n, s, o) {
446
461
  o.markComponent ? (a(), v($(o.markComponent), {
447
462
  key: 0,
448
463
  class: "Mark MarkGlyph"
449
- })) : (a(), d("div", me))
464
+ })) : (a(), d("div", be))
450
465
  ], !0) : b("", !0),
451
466
  e.resolvedProps.modelValue ? b("", !0) : p(e.$slots, "inactive", { key: 1 }, void 0, !0),
452
467
  c("input", {
@@ -454,10 +469,10 @@ function ge(e, t, r, n, s, o) {
454
469
  checked: e.resolvedProps.modelValue,
455
470
  disabled: e.resolvedProps.disabled,
456
471
  onChange: t[0] || (t[0] = (...i) => o.onChange && o.onChange(...i))
457
- }, null, 40, be)
458
- ], 34);
472
+ }, null, 40, ge)
473
+ ], 42, me);
459
474
  }
460
- const Pe = /* @__PURE__ */ f(he, [["render", ge], ["__scopeId", "data-v-b636a028"]]), Se = {
475
+ const Se = /* @__PURE__ */ f(he, [["render", Pe], ["__scopeId", "data-v-fd0a45d1"]]), $e = {
461
476
  mixins: [y],
462
477
  props: {
463
478
  tagName: { type: String, default: "button" },
@@ -486,11 +501,11 @@ const Pe = /* @__PURE__ */ f(he, [["render", ge], ["__scopeId", "data-v-b636a028
486
501
  };
487
502
  }
488
503
  }
489
- }, $e = {
504
+ }, ke = {
490
505
  key: 1,
491
506
  class: "Label"
492
507
  };
493
- function ke(e, t, r, n, s, o) {
508
+ function Be(e, t, r, n, s, o) {
494
509
  return a(), v($(e.resolvedProps.tagName), {
495
510
  class: h(["Chip InputElement", [
496
511
  o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
@@ -514,14 +529,14 @@ function ke(e, t, r, n, s, o) {
514
529
  key: 0,
515
530
  class: h([e.resolvedProps.icon, "Icon"])
516
531
  }, null, 2)) : b("", !0),
517
- e.resolvedProps.label ? (a(), d("span", $e, P(e.resolvedProps.label), 1)) : b("", !0)
532
+ e.resolvedProps.label ? (a(), d("span", ke, P(e.resolvedProps.label), 1)) : b("", !0)
518
533
  ], !0),
519
534
  p(e.$slots, "after", {}, void 0, !0)
520
535
  ]),
521
536
  _: 3
522
537
  }, 8, ["class", "disabled"]);
523
538
  }
524
- const Be = /* @__PURE__ */ f(Se, [["render", ke], ["__scopeId", "data-v-2d8b8114"]]), we = {
539
+ const we = /* @__PURE__ */ f($e, [["render", Be], ["__scopeId", "data-v-2d8b8114"]]), Te = {
525
540
  mixins: [y],
526
541
  props: {
527
542
  overlayEnabled: { type: Boolean, default: !0 },
@@ -543,7 +558,7 @@ const Be = /* @__PURE__ */ f(Se, [["render", ke], ["__scopeId", "data-v-2d8b8114
543
558
  }
544
559
  }
545
560
  };
546
- function Te(e, t, r, n, s, o) {
561
+ function Ce(e, t, r, n, s, o) {
547
562
  return a(), v(R, { to: "#overlays" }, [
548
563
  c("div", {
549
564
  class: h(["ModalOverlay", {
@@ -556,7 +571,7 @@ function Te(e, t, r, n, s, o) {
556
571
  ], 2)
557
572
  ]);
558
573
  }
559
- const _ = /* @__PURE__ */ f(we, [["render", Te], ["__scopeId", "data-v-f1088f36"]]), Ie = {
574
+ const _ = /* @__PURE__ */ f(Te, [["render", Ce], ["__scopeId", "data-v-f1088f36"]]), Ie = {
560
575
  components: {
561
576
  ModalOverlay: _
562
577
  },
@@ -646,7 +661,7 @@ const _ = /* @__PURE__ */ f(we, [["render", Te], ["__scopeId", "data-v-f1088f36"
646
661
  }
647
662
  }
648
663
  };
649
- function Ce(e, t, r, n, s, o) {
664
+ function ze(e, t, r, n, s, o) {
650
665
  const i = g("Bubble"), l = g("ModalOverlay");
651
666
  return a(), v(l, {
652
667
  overlayEnabled: e.resolvedProps.overlayEnabled,
@@ -674,7 +689,7 @@ function Ce(e, t, r, n, s, o) {
674
689
  _: 3
675
690
  }, 8, ["overlayEnabled", "overlayShown", "onHide"]);
676
691
  }
677
- const V = /* @__PURE__ */ f(Ie, [["render", Ce]]), ze = {
692
+ const V = /* @__PURE__ */ f(Ie, [["render", ze]]), Oe = {
678
693
  components: {
679
694
  ContextPopup: V,
680
695
  BaseMenu: O
@@ -692,10 +707,10 @@ const V = /* @__PURE__ */ f(Ie, [["render", Ce]]), ze = {
692
707
  ],
693
708
  computed: {
694
709
  contextPopupProps() {
695
- return C(this, V);
710
+ return I(this, V);
696
711
  },
697
712
  baseMenuProps() {
698
- return C(this, O);
713
+ return I(this, O);
699
714
  }
700
715
  },
701
716
  methods: {
@@ -707,34 +722,34 @@ const V = /* @__PURE__ */ f(Ie, [["render", Ce]]), ze = {
707
722
  }
708
723
  }
709
724
  };
710
- function Oe(e, t, r, n, s, o) {
725
+ function Ve(e, t, r, n, s, o) {
711
726
  const i = g("BaseMenu"), l = g("ContextPopup");
712
- return a(), v(l, I({ ref: "popup" }, o.contextPopupProps, {
727
+ return a(), v(l, C({ ref: "popup" }, o.contextPopupProps, {
713
728
  onHide: t[0] || (t[0] = (u) => e.$emit("hide")),
714
729
  onMouseenter: t[1] || (t[1] = (u) => e.$emit("mouseenter")),
715
730
  onMouseleave: t[2] || (t[2] = (u) => e.$emit("mouseleave")),
716
731
  onReady: t[3] || (t[3] = (u) => e.$emit("ready"))
717
732
  }), {
718
733
  default: m(() => [
719
- A(i, I({ class: "ContextMenu" }, { ...o.baseMenuProps, ...e.$attrs }, { onActivate: o.onActivate }), null, 16, ["onActivate"])
734
+ A(i, C({ class: "ContextMenu" }, { ...o.baseMenuProps, ...e.$attrs }, { onActivate: o.onActivate }), null, 16, ["onActivate"])
720
735
  ]),
721
736
  _: 1
722
737
  }, 16);
723
738
  }
724
- const Ve = /* @__PURE__ */ f(ze, [["render", Oe]]), Fe = {
739
+ const Fe = /* @__PURE__ */ f(Oe, [["render", Ve]]), Ee = {
725
740
  mixins: [y],
726
741
  props: {
727
742
  fill: { type: String, default: "none" }
728
743
  }
729
744
  };
730
- function Ee(e, t, r, n, s, o) {
745
+ function Me(e, t, r, n, s, o) {
731
746
  return a(), d("div", {
732
747
  class: h(["Filler", [
733
748
  `Filler-${e.resolvedProps.fill}`
734
749
  ]])
735
750
  }, null, 2);
736
751
  }
737
- const Me = /* @__PURE__ */ f(Fe, [["render", Ee], ["__scopeId", "data-v-e6acedec"]]), Ae = {
752
+ const Ae = /* @__PURE__ */ f(Ee, [["render", Me], ["__scopeId", "data-v-e6acedec"]]), je = {
738
753
  mixins: [y],
739
754
  props: {
740
755
  tagName: { type: String, default: "div" },
@@ -744,7 +759,7 @@ const Me = /* @__PURE__ */ f(Fe, [["render", Ee], ["__scopeId", "data-v-e6acedec
744
759
  wrap: { type: Boolean, default: !1 }
745
760
  }
746
761
  };
747
- function je(e, t, r, n, s, o) {
762
+ function De(e, t, r, n, s, o) {
748
763
  return a(), v($(e.resolvedProps.tagName), {
749
764
  class: h(["HGroup", [
750
765
  `HGroup-align-${e.resolvedProps.align}`,
@@ -761,7 +776,7 @@ function je(e, t, r, n, s, o) {
761
776
  _: 3
762
777
  }, 8, ["class"]);
763
778
  }
764
- const De = /* @__PURE__ */ f(Ae, [["render", je], ["__scopeId", "data-v-64030310"]]), He = {
779
+ const He = /* @__PURE__ */ f(je, [["render", De], ["__scopeId", "data-v-64030310"]]), Ne = {
765
780
  mixins: [y],
766
781
  props: {
767
782
  tagName: { type: String, default: "div" },
@@ -776,8 +791,8 @@ const De = /* @__PURE__ */ f(Ae, [["render", je], ["__scopeId", "data-v-64030310
776
791
  return e === "top" || e === "bottom" ? "h" : "v";
777
792
  }
778
793
  }
779
- }, Ne = { class: "Content" }, Le = ["title"];
780
- function _e(e, t, r, n, s, o) {
794
+ }, Le = { class: "Content" }, _e = ["title"];
795
+ function Ke(e, t, r, n, s, o) {
781
796
  const i = g("TabCap");
782
797
  return a(), v($(e.resolvedProps.tagName), {
783
798
  class: h(["Tab", [
@@ -793,13 +808,13 @@ function _e(e, t, r, n, s, o) {
793
808
  dir: e.resolvedProps.dir,
794
809
  type: "start"
795
810
  }, null, 8, ["dir"]),
796
- c("div", Ne, [
811
+ c("div", Le, [
797
812
  p(e.$slots, "default", {}, () => [
798
813
  e.resolvedProps.label ? (a(), d("div", {
799
814
  key: 0,
800
815
  class: "TabLabel",
801
816
  title: e.resolvedProps.label
802
- }, P(e.resolvedProps.label), 9, Le)) : b("", !0)
817
+ }, P(e.resolvedProps.label), 9, _e)) : b("", !0)
803
818
  ], !0)
804
819
  ]),
805
820
  A(i, {
@@ -811,7 +826,7 @@ function _e(e, t, r, n, s, o) {
811
826
  _: 3
812
827
  }, 8, ["class"]);
813
828
  }
814
- const K = /* @__PURE__ */ f(He, [["render", _e], ["__scopeId", "data-v-b8592753"]]), Ke = {
829
+ const K = /* @__PURE__ */ f(Ne, [["render", Ke], ["__scopeId", "data-v-fb4c513d"]]), Ge = {
815
830
  components: {
816
831
  Tab: K
817
832
  },
@@ -862,14 +877,14 @@ const K = /* @__PURE__ */ f(He, [["render", _e], ["__scopeId", "data-v-b8592753"
862
877
  return (n || i) && Object.assign(u, t), (s || l) && Object.assign(u, r), u;
863
878
  }
864
879
  }
865
- }, Ge = {
880
+ }, Re = {
866
881
  key: 1,
867
882
  class: "Label TextLabel"
868
- }, Re = {
883
+ }, Ue = {
869
884
  key: 2,
870
885
  class: "Label InlineLabel"
871
- }, Ue = { class: "InputElement Container" };
872
- function qe(e, t, r, n, s, o) {
886
+ }, qe = { class: "InputElement Container" };
887
+ function Xe(e, t, r, n, s, o) {
873
888
  const i = g("Tab");
874
889
  return a(), v($(e.resolvedProps.tagName), {
875
890
  class: h(["InputBase", [
@@ -895,25 +910,25 @@ function qe(e, t, r, n, s, o) {
895
910
  key: 0,
896
911
  class: "Label TabLabel",
897
912
  label: e.resolvedProps.label,
898
- tone: e.resolvedProps.tone
913
+ tone: o.effectiveStyle.tone
899
914
  }, null, 8, ["label", "tone"])) : b("", !0),
900
- e.resolvedProps.labelStyle === "text" ? (a(), d("div", Ge, P(e.resolvedProps.label), 1)) : b("", !0),
901
- e.resolvedProps.labelStyle === "inline" ? (a(), d("div", Re, P(e.resolvedProps.label), 1)) : b("", !0)
915
+ e.resolvedProps.labelStyle === "text" ? (a(), d("div", Re, P(e.resolvedProps.label), 1)) : b("", !0),
916
+ e.resolvedProps.labelStyle === "inline" ? (a(), d("div", Ue, P(e.resolvedProps.label), 1)) : b("", !0)
902
917
  ], 64)) : b("", !0),
903
- c("div", Ue, [
918
+ c("div", qe, [
904
919
  p(e.$slots, "default", {}, void 0, !0)
905
920
  ])
906
921
  ]),
907
922
  _: 3
908
923
  }, 40, ["class"]);
909
924
  }
910
- const S = /* @__PURE__ */ f(Ke, [["render", qe], ["__scopeId", "data-v-bb5bf603"]]), Xe = {
925
+ const S = /* @__PURE__ */ f(Ge, [["render", Xe], ["__scopeId", "data-v-273a40fd"]]), We = {
911
926
  mixins: [y],
912
927
  props: {
913
928
  tagName: { type: String, default: "div" }
914
929
  }
915
930
  };
916
- function We(e, t, r, n, s, o) {
931
+ function Ye(e, t, r, n, s, o) {
917
932
  return a(), v($(e.resolvedProps.tagName), { class: "InputGroup" }, {
918
933
  default: m(() => [
919
934
  p(e.$slots, "default", {}, void 0, !0)
@@ -921,7 +936,7 @@ function We(e, t, r, n, s, o) {
921
936
  _: 3
922
937
  });
923
938
  }
924
- const Ye = /* @__PURE__ */ f(Xe, [["render", We], ["__scopeId", "data-v-0e623cfd"]]), Ze = {
939
+ const Ze = /* @__PURE__ */ f(We, [["render", Ye], ["__scopeId", "data-v-c0fbdcc0"]]), Je = {
925
940
  components: {
926
941
  InputBase: S
927
942
  },
@@ -946,7 +961,7 @@ const Ye = /* @__PURE__ */ f(Xe, [["render", We], ["__scopeId", "data-v-0e623cfd
946
961
  ],
947
962
  computed: {
948
963
  inputBaseProps() {
949
- return C(this, S);
964
+ return I(this, S);
950
965
  },
951
966
  hasGroupedOptions() {
952
967
  return this.resolvedProps.options.some((e) => e?.group);
@@ -991,10 +1006,10 @@ const Ye = /* @__PURE__ */ f(Xe, [["render", We], ["__scopeId", "data-v-0e623cfd
991
1006
  e.target !== t && (e.preventDefault(), typeof t.showPicker == "function" ? t.showPicker() : t.click());
992
1007
  }
993
1008
  }
994
- }, Je = ["value", "disabled", "aria-readonly"], Qe = ["label"], xe = ["value"], et = ["value"];
995
- function tt(e, t, r, n, s, o) {
1009
+ }, Qe = ["value", "disabled", "aria-readonly"], xe = ["label"], et = ["value"], tt = ["value"];
1010
+ function ot(e, t, r, n, s, o) {
996
1011
  const i = g("InputBase");
997
- return a(), v(i, I({ class: "InputSelect" }, o.inputBaseProps, {
1012
+ return a(), v(i, C({ class: "InputSelect" }, o.inputBaseProps, {
998
1013
  onClick: t[4] || (t[4] = (l) => o.onBaseClick(l))
999
1014
  }), {
1000
1015
  default: m(() => [
@@ -1016,18 +1031,18 @@ function tt(e, t, r, n, s, o) {
1016
1031
  (a(!0), d(w, null, F(l.options, (u) => (a(), d("option", {
1017
1032
  key: o.optionKey(u),
1018
1033
  value: u.value
1019
- }, P(o.optionLabel(u)), 9, xe))), 128))
1020
- ], 8, Qe))), 128)) : (a(!0), d(w, { key: 1 }, F(e.resolvedProps.options, (l) => (a(), d("option", {
1034
+ }, P(o.optionLabel(u)), 9, et))), 128))
1035
+ ], 8, xe))), 128)) : (a(!0), d(w, { key: 1 }, F(e.resolvedProps.options, (l) => (a(), d("option", {
1021
1036
  key: o.optionKey(l),
1022
1037
  value: l.value
1023
- }, P(o.optionLabel(l)), 9, et))), 128))
1024
- ], 40, Je),
1038
+ }, P(o.optionLabel(l)), 9, tt))), 128))
1039
+ ], 40, Qe),
1025
1040
  p(e.$slots, "after", {}, void 0, !0)
1026
1041
  ]),
1027
1042
  _: 3
1028
1043
  }, 16);
1029
1044
  }
1030
- const ot = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-f10cecb8"]]), st = {
1045
+ const st = /* @__PURE__ */ f(Je, [["render", ot], ["__scopeId", "data-v-f10cecb8"]]), rt = {
1031
1046
  components: {
1032
1047
  InputBase: S
1033
1048
  },
@@ -1052,7 +1067,7 @@ const ot = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-f10cecb8
1052
1067
  ],
1053
1068
  computed: {
1054
1069
  inputBaseProps() {
1055
- return C(this, S);
1070
+ return I(this, S);
1056
1071
  }
1057
1072
  },
1058
1073
  mounted() {
@@ -1060,13 +1075,13 @@ const ot = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-f10cecb8
1060
1075
  },
1061
1076
  methods: {
1062
1077
  onInput(e) {
1063
- this.$emit("update:modelValue", e.target.value);
1078
+ this.$emit("input", e), this.$emit("update:modelValue", e.target.value);
1064
1079
  }
1065
1080
  }
1066
- }, rt = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
1067
- function nt(e, t, r, n, s, o) {
1081
+ }, nt = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
1082
+ function lt(e, t, r, n, s, o) {
1068
1083
  const i = g("InputBase");
1069
- return a(), v(i, I({ class: "InputText" }, o.inputBaseProps), {
1084
+ return a(), v(i, C({ class: "InputText" }, o.inputBaseProps), {
1070
1085
  default: m(() => [
1071
1086
  p(e.$slots, "before", {}, void 0, !0),
1072
1087
  c("input", {
@@ -1083,13 +1098,13 @@ function nt(e, t, r, n, s, o) {
1083
1098
  onInput: t[0] || (t[0] = (l) => o.onInput(l)),
1084
1099
  onFocus: t[1] || (t[1] = (l) => e.$emit("focus", l)),
1085
1100
  onBlur: t[2] || (t[2] = (l) => e.$emit("blur", l))
1086
- }, null, 40, rt),
1101
+ }, null, 40, nt),
1087
1102
  p(e.$slots, "after", {}, void 0, !0)
1088
1103
  ]),
1089
1104
  _: 3
1090
1105
  }, 16);
1091
1106
  }
1092
- const lt = /* @__PURE__ */ f(st, [["render", nt], ["__scopeId", "data-v-7d668f70"]]), it = {
1107
+ const it = /* @__PURE__ */ f(rt, [["render", lt], ["__scopeId", "data-v-799a626e"]]), at = {
1093
1108
  components: {
1094
1109
  InputBase: S
1095
1110
  },
@@ -1112,7 +1127,7 @@ const lt = /* @__PURE__ */ f(st, [["render", nt], ["__scopeId", "data-v-7d668f70
1112
1127
  ],
1113
1128
  computed: {
1114
1129
  inputBaseProps() {
1115
- return C(this, S);
1130
+ return I(this, S);
1116
1131
  }
1117
1132
  },
1118
1133
  watch: {
@@ -1131,13 +1146,13 @@ const lt = /* @__PURE__ */ f(st, [["render", nt], ["__scopeId", "data-v-7d668f70
1131
1146
  },
1132
1147
  methods: {
1133
1148
  onInput(e) {
1134
- this.$emit("update:modelValue", e.target.value);
1149
+ this.$emit("input", e), this.$emit("update:modelValue", e.target.value);
1135
1150
  }
1136
1151
  }
1137
- }, at = ["value", "placeholder", "readonly", "disabled", "rows"];
1138
- function ut(e, t, r, n, s, o) {
1152
+ }, ut = ["value", "placeholder", "readonly", "disabled", "rows"];
1153
+ function dt(e, t, r, n, s, o) {
1139
1154
  const i = g("InputBase");
1140
- return a(), v(i, I({ class: "InputTextarea" }, o.inputBaseProps, { fixedHeight: !1 }), {
1155
+ return a(), v(i, C({ class: "InputTextarea" }, o.inputBaseProps, { fixedHeight: !1 }), {
1141
1156
  default: m(() => [
1142
1157
  p(e.$slots, "before", {}, void 0, !0),
1143
1158
  c("textarea", {
@@ -1152,13 +1167,13 @@ function ut(e, t, r, n, s, o) {
1152
1167
  onInput: t[0] || (t[0] = (l) => o.onInput(l)),
1153
1168
  onFocus: t[1] || (t[1] = (l) => e.$emit("focus", l)),
1154
1169
  onBlur: t[2] || (t[2] = (l) => e.$emit("blur", l))
1155
- }, null, 40, at),
1170
+ }, null, 40, ut),
1156
1171
  p(e.$slots, "after", {}, void 0, !0)
1157
1172
  ]),
1158
1173
  _: 3
1159
1174
  }, 16);
1160
1175
  }
1161
- const dt = /* @__PURE__ */ f(it, [["render", ut], ["__scopeId", "data-v-99ad4e2b"]]), pt = {
1176
+ const pt = /* @__PURE__ */ f(at, [["render", dt], ["__scopeId", "data-v-963c7073"]]), ft = {
1162
1177
  components: {
1163
1178
  Btn: E
1164
1179
  },
@@ -1173,7 +1188,7 @@ const dt = /* @__PURE__ */ f(it, [["render", ut], ["__scopeId", "data-v-99ad4e2b
1173
1188
  methods: {
1174
1189
  actualProps(e, t) {
1175
1190
  return {
1176
- ...C(this, E),
1191
+ ...I(this, E),
1177
1192
  ...this.resolvedProps.baseProps,
1178
1193
  ...e ? this.resolvedProps.activeProps : {},
1179
1194
  ...t ? this.resolvedProps.exactActiveProps : {}
@@ -1181,14 +1196,14 @@ const dt = /* @__PURE__ */ f(it, [["render", ut], ["__scopeId", "data-v-99ad4e2b
1181
1196
  }
1182
1197
  }
1183
1198
  };
1184
- function ft(e, t, r, n, s, o) {
1199
+ function ct(e, t, r, n, s, o) {
1185
1200
  const i = g("Btn"), l = g("RouterLink");
1186
1201
  return a(), v(l, {
1187
1202
  to: e.resolvedProps.to,
1188
1203
  custom: ""
1189
1204
  }, {
1190
1205
  default: m(({ href: u, navigate: k, isActive: z, isExactActive: T }) => [
1191
- A(i, I({
1206
+ A(i, C({
1192
1207
  tagName: "a",
1193
1208
  href: u
1194
1209
  }, o.actualProps(z, T), { onClick: k }), null, 16, ["href", "onClick"])
@@ -1196,17 +1211,17 @@ function ft(e, t, r, n, s, o) {
1196
1211
  _: 1
1197
1212
  }, 8, ["to"]);
1198
1213
  }
1199
- const ct = /* @__PURE__ */ f(pt, [["render", ft]]);
1214
+ const vt = /* @__PURE__ */ f(ft, [["render", ct]]);
1200
1215
  function M(e, t, r) {
1201
1216
  return Math.max(t, Math.min(r, e));
1202
1217
  }
1203
- function vt(e, t, r) {
1218
+ function yt(e, t, r) {
1204
1219
  if (!r)
1205
1220
  return e;
1206
1221
  const n = Math.round((e - t) / r);
1207
1222
  return t + n * r;
1208
1223
  }
1209
- const yt = {
1224
+ const ht = {
1210
1225
  components: {
1211
1226
  Bubble: L
1212
1227
  },
@@ -1326,7 +1341,7 @@ const yt = {
1326
1341
  },
1327
1342
  normalize(e) {
1328
1343
  const { min: t, max: r, step: n } = this.resolvedProps;
1329
- return this.snap(vt(M(e, t, r), t, n));
1344
+ return this.snap(yt(M(e, t, r), t, n));
1330
1345
  },
1331
1346
  valueFromClientX(e) {
1332
1347
  const t = this.$refs.trackArea, r = this.$refs.knob;
@@ -1410,23 +1425,23 @@ const yt = {
1410
1425
  e.key === "Home" && (e.preventDefault(), this.setValue(t)), e.key === "End" && (e.preventDefault(), this.setValue(r));
1411
1426
  }
1412
1427
  }
1413
- }, ht = {
1428
+ }, mt = {
1414
1429
  ref: "hitArea",
1415
1430
  class: "HitArea"
1416
- }, mt = {
1431
+ }, bt = {
1417
1432
  ref: "trackArea",
1418
1433
  class: "TrackArea"
1419
- }, bt = {
1434
+ }, gt = {
1420
1435
  ref: "rail",
1421
1436
  class: "Track"
1422
- }, gt = {
1437
+ }, Pt = {
1423
1438
  ref: "knob",
1424
1439
  class: "Knob"
1425
- }, Pt = { class: "TooltipContent" }, St = ["value", "min", "max"], $t = {
1440
+ }, St = { class: "TooltipContent" }, $t = ["value", "min", "max"], kt = {
1426
1441
  key: 0,
1427
1442
  class: "Scale"
1428
- }, kt = ["data-value"], Bt = { class: "Label" };
1429
- function wt(e, t, r, n, s, o) {
1443
+ }, Bt = ["data-value"], wt = { class: "Label" };
1444
+ function Tt(e, t, r, n, s, o) {
1430
1445
  const i = g("Bubble");
1431
1446
  return a(), v($(e.resolvedProps.tagName), {
1432
1447
  class: h(["Slider InputElement", [
@@ -1448,7 +1463,7 @@ function wt(e, t, r, n, s, o) {
1448
1463
  "aria-valuemax": e.resolvedProps.max,
1449
1464
  "aria-valuenow": o.currentValue,
1450
1465
  "aria-disabled": e.resolvedProps.disabled || void 0,
1451
- tabindex: "0",
1466
+ tabindex: e.resolvedProps.disabled ? -1 : 0,
1452
1467
  style: j({ "--Slider-ratio": o.ratio }),
1453
1468
  onPointerdown: o.onPointerDown,
1454
1469
  onKeydown: o.onKeydown,
@@ -1458,14 +1473,14 @@ function wt(e, t, r, n, s, o) {
1458
1473
  onFocusout: t[10] || (t[10] = (l) => s.focus = !1)
1459
1474
  }, {
1460
1475
  default: m(() => [
1461
- c("div", ht, null, 512),
1462
- c("div", mt, [
1463
- c("div", bt, [
1476
+ c("div", mt, null, 512),
1477
+ c("div", bt, [
1478
+ c("div", gt, [
1464
1479
  c("div", {
1465
1480
  class: h(["Fill", `Slider-fill-${r.fillStyle}`])
1466
1481
  }, null, 2)
1467
1482
  ], 512),
1468
- c("div", gt, [
1483
+ c("div", Pt, [
1469
1484
  o.tooltipShown ? (a(), v(i, {
1470
1485
  key: 0,
1471
1486
  class: h(`Tooltip tone-${e.resolvedProps.tooltipTone}`),
@@ -1475,7 +1490,7 @@ function wt(e, t, r, n, s, o) {
1475
1490
  }, ["stop"]))
1476
1491
  }, {
1477
1492
  default: m(() => [
1478
- c("div", Pt, [
1493
+ c("div", St, [
1479
1494
  s.tooltipEditing ? (a(), d("input", {
1480
1495
  key: 1,
1481
1496
  ref: "tooltipInput",
@@ -1492,7 +1507,7 @@ function wt(e, t, r, n, s, o) {
1492
1507
  }, ["stop"])),
1493
1508
  onPointerdown: t[5] || (t[5] = B(() => {
1494
1509
  }, ["stop"]))
1495
- }, null, 40, St)) : (a(), d("div", {
1510
+ }, null, 40, $t)) : (a(), d("div", {
1496
1511
  key: 0,
1497
1512
  class: "TooltipBody",
1498
1513
  onClick: t[0] || (t[0] = B((...l) => o.startTooltipEdit && o.startTooltipEdit(...l), ["stop"]))
@@ -1503,7 +1518,7 @@ function wt(e, t, r, n, s, o) {
1503
1518
  }, 8, ["class"])) : b("", !0)
1504
1519
  ], 512)
1505
1520
  ], 512),
1506
- o.scaleTicks.length ? (a(), d("div", $t, [
1521
+ o.scaleTicks.length ? (a(), d("div", kt, [
1507
1522
  (a(!0), d(w, null, F(o.scaleTicks, (l) => (a(), d("div", {
1508
1523
  key: l,
1509
1524
  class: "Tick",
@@ -1511,21 +1526,21 @@ function wt(e, t, r, n, s, o) {
1511
1526
  style: j(o.tickElementStyle(l))
1512
1527
  }, [
1513
1528
  t[11] || (t[11] = c("div", { class: "Mark" }, null, -1)),
1514
- c("div", Bt, P(o.scaleLabel(l)), 1)
1515
- ], 12, kt))), 128))
1529
+ c("div", wt, P(o.scaleLabel(l)), 1)
1530
+ ], 12, Bt))), 128))
1516
1531
  ])) : b("", !0)
1517
1532
  ]),
1518
1533
  _: 1
1519
- }, 40, ["class", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "style", "onPointerdown", "onKeydown"]);
1534
+ }, 40, ["class", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "tabindex", "style", "onPointerdown", "onKeydown"]);
1520
1535
  }
1521
- const Tt = /* @__PURE__ */ f(yt, [["render", wt], ["__scopeId", "data-v-7a56ca8c"]]), It = {
1536
+ const Ct = /* @__PURE__ */ f(ht, [["render", Tt], ["__scopeId", "data-v-d96fd04f"]]), It = {
1522
1537
  mixins: [y],
1523
1538
  props: {
1524
1539
  dir: { type: String, default: "top" },
1525
1540
  type: { type: String, default: "start" }
1526
1541
  }
1527
1542
  };
1528
- function Ct(e, t, r, n, s, o) {
1543
+ function zt(e, t, r, n, s, o) {
1529
1544
  return a(), d("svg", {
1530
1545
  class: h(["TabCap", [
1531
1546
  `TabCap-${e.resolvedProps.dir}`,
@@ -1537,7 +1552,7 @@ function Ct(e, t, r, n, s, o) {
1537
1552
  c("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
1538
1553
  ])], 2);
1539
1554
  }
1540
- const zt = /* @__PURE__ */ f(It, [["render", Ct], ["__scopeId", "data-v-697fbd68"]]), Ot = {
1555
+ const Ot = /* @__PURE__ */ f(It, [["render", zt], ["__scopeId", "data-v-697fbd68"]]), Vt = {
1541
1556
  mixins: [y],
1542
1557
  props: {
1543
1558
  modelValue: { type: Boolean },
@@ -1595,8 +1610,8 @@ const zt = /* @__PURE__ */ f(It, [["render", Ct], ["__scopeId", "data-v-697fbd68
1595
1610
  this.$emit("update:modelValue", e.target.checked);
1596
1611
  }
1597
1612
  }
1598
- }, Vt = ["checked", "disabled"];
1599
- function Ft(e, t, r, n, s, o) {
1613
+ }, Ft = ["tabindex"], Et = ["checked", "disabled"];
1614
+ function Mt(e, t, r, n, s, o) {
1600
1615
  return a(), d("label", {
1601
1616
  class: h(["Toggle InputElement", [
1602
1617
  o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
@@ -1612,7 +1627,7 @@ function Ft(e, t, r, n, s, o) {
1612
1627
  "Toggle-forceHover": e.resolvedProps.forceHover
1613
1628
  }
1614
1629
  ]]),
1615
- tabindex: "0",
1630
+ tabindex: e.resolvedProps.disabled ? -1 : 0,
1616
1631
  onMouseenter: t[1] || (t[1] = (i) => s.hover = !0),
1617
1632
  onMouseleave: t[2] || (t[2] = (i) => s.hover = !1),
1618
1633
  onFocusin: t[3] || (t[3] = (i) => s.focus = !0),
@@ -1623,10 +1638,10 @@ function Ft(e, t, r, n, s, o) {
1623
1638
  checked: e.resolvedProps.modelValue,
1624
1639
  disabled: e.resolvedProps.disabled,
1625
1640
  onChange: t[0] || (t[0] = (...i) => o.onChange && o.onChange(...i))
1626
- }, null, 40, Vt)
1627
- ], 34);
1641
+ }, null, 40, Et)
1642
+ ], 42, Ft);
1628
1643
  }
1629
- const Et = /* @__PURE__ */ f(Ot, [["render", Ft], ["__scopeId", "data-v-d71188af"]]), Mt = {
1644
+ const At = /* @__PURE__ */ f(Vt, [["render", Mt], ["__scopeId", "data-v-384b58cc"]]), jt = {
1630
1645
  mixins: [y],
1631
1646
  props: {
1632
1647
  size: { type: String },
@@ -1635,7 +1650,7 @@ const Et = /* @__PURE__ */ f(Ot, [["render", Ft], ["__scopeId", "data-v-d71188af
1635
1650
  round: { type: Boolean, default: !1 }
1636
1651
  }
1637
1652
  };
1638
- function At(e, t, r, n, s, o) {
1653
+ function Dt(e, t, r, n, s, o) {
1639
1654
  return a(), d("div", {
1640
1655
  class: h(["ToolPanel", [
1641
1656
  e.resolvedProps.size && `ToolPanel-size-${e.resolvedProps.size}`,
@@ -1650,55 +1665,55 @@ function At(e, t, r, n, s, o) {
1650
1665
  p(e.$slots, "default", {}, void 0, !0)
1651
1666
  ], 2);
1652
1667
  }
1653
- const jt = /* @__PURE__ */ f(Mt, [["render", At], ["__scopeId", "data-v-9e5d1a90"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1668
+ const Ht = /* @__PURE__ */ f(jt, [["render", Dt], ["__scopeId", "data-v-9e5d1a90"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1654
1669
  __proto__: null,
1655
1670
  BaseMenu: O,
1656
1671
  Btn: E,
1657
1672
  Bubble: L,
1658
- Checkbox: Pe,
1659
- Chip: Be,
1660
- ContextMenu: Ve,
1673
+ Checkbox: Se,
1674
+ Chip: we,
1675
+ ContextMenu: Fe,
1661
1676
  ContextPopup: V,
1662
- Filler: Me,
1663
- HGroup: De,
1677
+ Filler: Ae,
1678
+ HGroup: He,
1664
1679
  InputBase: S,
1665
- InputGroup: Ye,
1666
- InputSelect: ot,
1667
- InputText: lt,
1668
- InputTextarea: dt,
1680
+ InputGroup: Ze,
1681
+ InputSelect: st,
1682
+ InputText: it,
1683
+ InputTextarea: pt,
1669
1684
  ModalOverlay: _,
1670
- RouterBtn: ct,
1671
- Slider: Tt,
1685
+ RouterBtn: vt,
1686
+ Slider: Ct,
1672
1687
  Tab: K,
1673
- TabCap: zt,
1674
- Toggle: Et,
1675
- ToolPanel: jt,
1688
+ TabCap: Ot,
1689
+ Toggle: At,
1690
+ ToolPanel: Ht,
1676
1691
  VGroup: N
1677
1692
  }, Symbol.toStringTag, { value: "Module" }));
1678
1693
  export {
1679
1694
  O as BaseMenu,
1680
1695
  E as Btn,
1681
1696
  L as Bubble,
1682
- Pe as Checkbox,
1683
- Be as Chip,
1684
- Ve as ContextMenu,
1697
+ Se as Checkbox,
1698
+ we as Chip,
1699
+ Fe as ContextMenu,
1685
1700
  V as ContextPopup,
1686
- Me as Filler,
1701
+ Ae as Filler,
1687
1702
  pe as GlyphCheck,
1688
1703
  ye as GlyphXmark,
1689
- De as HGroup,
1704
+ He as HGroup,
1690
1705
  S as InputBase,
1691
- Ye as InputGroup,
1692
- ot as InputSelect,
1693
- lt as InputText,
1694
- dt as InputTextarea,
1706
+ Ze as InputGroup,
1707
+ st as InputSelect,
1708
+ it as InputText,
1709
+ pt as InputTextarea,
1695
1710
  _ as ModalOverlay,
1696
- ct as RouterBtn,
1697
- Tt as Slider,
1711
+ vt as RouterBtn,
1712
+ Ct as Slider,
1698
1713
  K as Tab,
1699
- zt as TabCap,
1700
- Et as Toggle,
1701
- jt as ToolPanel,
1714
+ Ot as TabCap,
1715
+ At as Toggle,
1716
+ Ht as ToolPanel,
1702
1717
  N as VGroup,
1703
- Ht as standardComponents
1718
+ Lt as standardComponents
1704
1719
  };