@quidgest/ui 0.8.7 → 0.8.9

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/ui.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as A, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as z, unref as b, createCommentVNode as I, Fragment as ee, createTextVNode as re, toDisplayString as G, renderSlot as h, toRef as we, createBlock as V, withCtx as g, renderList as me, resolveDynamicComponent as De, h as $e, normalizeProps as te, mergeProps as ne, reactive as Ne, onBeforeUnmount as Me, onMounted as Te, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as oe } from "vue";
1
+ import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as Q, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as C, unref as b, createCommentVNode as I, Fragment as ee, createTextVNode as re, toDisplayString as G, renderSlot as h, toRef as we, createBlock as V, withCtx as g, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as oe, reactive as Ne, onBeforeUnmount as Me, onMounted as De, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as ae } from "vue";
2
2
  function ve(t) {
3
3
  return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
4
4
  }
@@ -31,16 +31,16 @@ function Pe() {
31
31
  const l = t.type.name ?? t.type.__name;
32
32
  if (!l)
33
33
  throw new Error("[Quidgest UI] Could not determine component name");
34
- const o = ze(), e = (d = o.value) == null ? void 0 : d.Global, n = (s = o.value) == null ? void 0 : s[l];
34
+ const o = Ce(), e = (d = o.value) == null ? void 0 : d.Global, n = (s = o.value) == null ? void 0 : s[l];
35
35
  return _(() => be(e, n));
36
36
  }
37
- function Ce(t) {
37
+ function ze(t) {
38
38
  if (ve(t))
39
39
  return;
40
- const l = ze(), o = q(t), e = _(() => ve(o.value) ? l.value : be(l.value, o.value));
40
+ const l = Ce(), o = q(t), e = _(() => ve(o.value) ? l.value : be(l.value, o.value));
41
41
  Ve(ye, e);
42
42
  }
43
- function ze() {
43
+ function Ce() {
44
44
  const t = Ee(ye, void 0);
45
45
  if (!t)
46
46
  throw new Error("[Quidgest UI] Could not find defaults instance");
@@ -61,11 +61,11 @@ function Il(t) {
61
61
  return Ve(de, o), o;
62
62
  }
63
63
  const Ie = {
64
- primary: "#007dbe",
64
+ primary: "#008ad2",
65
65
  primaryLight: "#cde5ff",
66
66
  primaryDark: "#006398",
67
67
  secondary: "#001d31",
68
- highlight: "#be4300",
68
+ highlight: "#ff8241",
69
69
  info: "#17a2b8",
70
70
  infoLight: "#bceff7",
71
71
  infoDark: "#11798a",
@@ -76,14 +76,14 @@ const Ie = {
76
76
  warningLight: "#ffeabf",
77
77
  warningDark: "#bf7f00",
78
78
  danger: "#b71c1c",
79
- dangerLight: "#f5bebe",
79
+ dangerLight: "#f7cccc",
80
80
  dangerDark: "#891515",
81
81
  background: "#fff",
82
82
  container: "#fff",
83
- neutral: "#72787e",
84
- neutralLight: "#c2c7ce",
85
- neutralDark: "#2b3137",
86
- onBackground: "#1e2436",
83
+ neutral: "#7c858d",
84
+ neutralLight: "#c4c5ca",
85
+ neutralDark: "#40474f",
86
+ onBackground: "#202428",
87
87
  onPrimary: "#fff",
88
88
  onSecondary: "#fff",
89
89
  onHighlight: "#fff",
@@ -92,28 +92,28 @@ const Ie = {
92
92
  onDanger: "#fff",
93
93
  onInfo: "#fff"
94
94
  }, Ye = {
95
- primary: "#018BD2",
96
- primaryLight: "#cce7f6",
97
- primaryDark: "#006fac",
98
- secondary: "#11294d",
99
- highlight: "#FFAD54",
100
- info: "#3DB6D1",
101
- infoLight: "#5aa2bc",
102
- infoDark: "#0c616a",
103
- success: "#00C781",
104
- successLight: "#6bae78",
105
- successDark: "#0f3b16",
106
- warning: "#FFD860",
107
- warningLight: "#ffd07a",
108
- warningDark: "#cc8000",
109
- danger: "#FC4B6C",
110
- dangerLight: "#FF7A88",
111
- dangerDark: "#B21929",
112
- background: "#1e2436",
113
- container: "#21323d",
114
- neutral: "#dee3eb",
115
- neutralLight: "#2b3137",
116
- neutralDark: "#ecf1f9",
95
+ primary: "#009ff5",
96
+ primaryLight: "#ade2ff",
97
+ primaryDark: "#164965",
98
+ secondary: "#003552",
99
+ highlight: "#f65600",
100
+ info: "#25cbe4",
101
+ infoLight: "#bceff7",
102
+ infoDark: "#225964",
103
+ success: "#3acf5d",
104
+ successLight: "#c2f0cd",
105
+ successDark: "#275738",
106
+ warning: "#ffa900",
107
+ warningLight: "#ffeabf",
108
+ warningDark: "#5a471e",
109
+ danger: "#de2b2b",
110
+ dangerLight: "#f7cccc",
111
+ dangerDark: "#4d2528",
112
+ background: "#202428",
113
+ container: "#202428",
114
+ neutral: "#9299a0",
115
+ neutralLight: "#dee1e3",
116
+ neutralDark: "#41464a",
117
117
  onBackground: "#fff",
118
118
  onPrimary: "#fff",
119
119
  onSecondary: "#fff",
@@ -133,7 +133,7 @@ function Je(t) {
133
133
  const l = parseInt(t.slice(1, 3), 16), o = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
134
134
  return { r: l, g: o, b: e };
135
135
  }
136
- function Ae(t) {
136
+ function Qe(t) {
137
137
  return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
138
138
  }
139
139
  function et() {
@@ -166,7 +166,7 @@ function tt(t) {
166
166
  o.textContent = l;
167
167
  }
168
168
  function Le(t) {
169
- return t ? `--q-theme-${Ae(t)}` : "";
169
+ return t ? `--q-theme-${Qe(t)}` : "";
170
170
  }
171
171
  function Ll(t = {}) {
172
172
  return { install: (o) => {
@@ -200,7 +200,7 @@ function lt(t, l) {
200
200
  activeTheme: q(e),
201
201
  themes: o
202
202
  };
203
- tt(o), A(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
203
+ tt(o), Q(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
204
204
  }
205
205
  }
206
206
  function nt(t) {
@@ -238,7 +238,7 @@ const ot = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
238
238
  });
239
239
  function it(t, l) {
240
240
  var e;
241
- const o = Ae(l);
241
+ const o = Qe(l);
242
242
  return o ? typeof ((e = t.props) == null ? void 0 : e[o]) < "u" : !1;
243
243
  }
244
244
  function x(t) {
@@ -307,7 +307,7 @@ const ge = x(st), rt = ["disabled"], dt = {
307
307
  onClick: ie(d, ["stop", "prevent"])
308
308
  }, [
309
309
  u.loading ? (c(), v("div", dt, [
310
- z(b(ge), { size: 20 })
310
+ C(b(ge), { size: 20 })
311
311
  ])) : I("", !0),
312
312
  Y("span", ut, [
313
313
  u.iconOnRight ? (c(), v(ee, { key: 0 }, [
@@ -330,7 +330,7 @@ const ge = x(st), rt = ["disabled"], dt = {
330
330
  },
331
331
  setup(t) {
332
332
  const l = t;
333
- return Ce({
333
+ return ze({
334
334
  QButton: {
335
335
  bStyle: "secondary",
336
336
  disabled: we(l, "disabled"),
@@ -363,7 +363,7 @@ const ge = x(st), rt = ["disabled"], dt = {
363
363
  emits: ["update:modelValue"],
364
364
  setup(t, { emit: l }) {
365
365
  const o = l, e = t, n = q(e.modelValue);
366
- A(
366
+ Q(
367
367
  () => e.modelValue,
368
368
  (u) => n.value = u
369
369
  );
@@ -423,7 +423,7 @@ const ge = x(st), rt = ["disabled"], dt = {
423
423
  return;
424
424
  }
425
425
  });
426
- return (e, n) => (c(), V(De(o.value), {
426
+ return (e, n) => (c(), V(Te(o.value), {
427
427
  class: E(l.class),
428
428
  icon: l.icon,
429
429
  size: l.size
@@ -648,35 +648,35 @@ const wt = /* @__PURE__ */ L({
648
648
  function f() {
649
649
  s.value = !0;
650
650
  }
651
- function C() {
651
+ function z() {
652
652
  s.value = !1;
653
653
  }
654
- function D(i) {
654
+ function T(i) {
655
655
  var $;
656
656
  if (($ = y.value) != null && $.contains(i.relatedTarget))
657
657
  return;
658
658
  let a;
659
- d.value ? a = n.items.findIndex((T) => T[n.itemValue] === d.value) : a = W();
659
+ d.value ? a = n.items.findIndex((D) => D[n.itemValue] === d.value) : a = W();
660
660
  const m = s.value;
661
661
  F(a, m);
662
662
  }
663
663
  function B(i) {
664
664
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && i.preventDefault(), i.key) {
665
665
  case "ArrowDown":
666
- Q("next");
666
+ A("next");
667
667
  break;
668
668
  case "ArrowUp":
669
- Q("prev");
669
+ A("prev");
670
670
  break;
671
671
  case "Home":
672
- Q("first");
672
+ A("first");
673
673
  break;
674
674
  case "End":
675
- Q("last");
675
+ A("last");
676
676
  break;
677
677
  }
678
678
  }
679
- function Q(i) {
679
+ function A(i) {
680
680
  switch (i) {
681
681
  case "next":
682
682
  case "prev":
@@ -738,7 +738,7 @@ const wt = /* @__PURE__ */ L({
738
738
  function j(i) {
739
739
  return i ? n.items.filter((a) => a.group === i) : n.items;
740
740
  }
741
- return A(
741
+ return Q(
742
742
  () => n.modelValue,
743
743
  (i) => {
744
744
  d.value = i;
@@ -749,25 +749,25 @@ const wt = /* @__PURE__ */ L({
749
749
  getAdjacentItemIndex: Z,
750
750
  getFirstFocusableItemIndex: W,
751
751
  getLastFocusableItemIndex: U
752
- }), (i, a) => (c(), V(De(u.value), {
752
+ }), (i, a) => (c(), V(Te(u.value), {
753
753
  ref_key: "listRef",
754
754
  ref: y,
755
755
  class: E(["q-list", { "q-list--disabled": n.disabled }, n.class]),
756
756
  role: "listbox",
757
757
  tabindex: n.disabled ? -1 : 0,
758
- onFocus: D,
758
+ onFocus: T,
759
759
  onMousedown: f,
760
- onMouseup: C,
760
+ onMouseup: z,
761
761
  onKeydown: B
762
762
  }, {
763
763
  default: g(() => [
764
- (c(!0), v(ee, null, me(p.value, (m) => (c(), V(b(At), {
764
+ (c(!0), v(ee, null, me(p.value, (m) => (c(), V(b(Qt), {
765
765
  key: m.id,
766
766
  title: p.value.length === 1 ? void 0 : m.title,
767
767
  disabled: m.disabled
768
768
  }, {
769
769
  default: g(() => [
770
- (c(!0), v(ee, null, me(j(m.id), ($) => (c(), V(b(zt), {
770
+ (c(!0), v(ee, null, me(j(m.id), ($) => (c(), V(b(Ct), {
771
771
  key: $[n.itemValue],
772
772
  value: $[n.itemValue],
773
773
  label: $[n.itemLabel],
@@ -836,15 +836,15 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
836
836
  onClick: ie(d, ["stop", "prevent"])
837
837
  }, [
838
838
  h(u.$slots, "default", {}, () => [
839
- e.icon ? (c(), V(b(J), te(ne({ key: 0 }, e.icon)), null, 16)) : I("", !0),
839
+ e.icon ? (c(), V(b(J), te(oe({ key: 0 }, e.icon)), null, 16)) : I("", !0),
840
840
  re(" " + G(e.label), 1)
841
841
  ]),
842
842
  Y("div", Bt, [
843
- e.selected ? (c(), V(b(J), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
843
+ e.selected ? (c(), V(b(J), oe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
844
844
  ])
845
845
  ], 42, xt));
846
846
  }
847
- }), Dt = ["aria-labelledby"], Tt = ["id"], Ct = /* @__PURE__ */ L({
847
+ }), Tt = ["aria-labelledby"], Dt = ["id"], zt = /* @__PURE__ */ L({
848
848
  __name: "QListItemGroup",
849
849
  props: {
850
850
  title: { default: "" },
@@ -862,12 +862,12 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
862
862
  id: b(o),
863
863
  class: "q-list-item-group__title",
864
864
  role: "presentation"
865
- }, G(l.title), 9, Tt)) : I("", !0),
865
+ }, G(l.title), 9, Dt)) : I("", !0),
866
866
  h(e.$slots, "default")
867
- ], 8, Dt));
867
+ ], 8, Tt));
868
868
  }
869
- }), Qe = x(Lt), zt = x(Et), At = x(Ct);
870
- function Qt(t, l, o = "right", e) {
869
+ }), Ae = x(Lt), Ct = x(Et), Qt = x(zt);
870
+ function At(t, l, o = "right", e) {
871
871
  const n = t.getBoundingClientRect(), d = n.x + window.scrollX, s = n.y + window.scrollY, u = l == null ? void 0 : l.getBoundingClientRect(), p = (u == null ? void 0 : u.width) ?? 0, y = (u == null ? void 0 : u.height) ?? 0;
872
872
  let w = o;
873
873
  u && !Fe(n, u, w) && (w = Ft(n, u, w));
@@ -924,7 +924,7 @@ function Ft(t, l, o) {
924
924
  return n;
925
925
  return o;
926
926
  }
927
- function le(t) {
927
+ function ne(t) {
928
928
  return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
929
929
  }
930
930
  const Rt = ["role"], Ot = {
@@ -967,10 +967,10 @@ const Rt = ["role"], Ot = {
967
967
  width: 0,
968
968
  placement: e.placement
969
969
  });
970
- A(
970
+ Q(
971
971
  () => e.modelValue,
972
972
  () => s.visible = e.modelValue
973
- ), A(
973
+ ), Q(
974
974
  () => s.visible,
975
975
  () => s.animating = !0
976
976
  );
@@ -998,9 +998,9 @@ const Rt = ["role"], Ot = {
998
998
  }), p = q(null);
999
999
  function y() {
1000
1000
  if (e.anchor) {
1001
- const i = le(e.anchor);
1001
+ const i = ne(e.anchor);
1002
1002
  if (i) {
1003
- const a = Qt(
1003
+ const a = At(
1004
1004
  i,
1005
1005
  p.value,
1006
1006
  e.placement,
@@ -1010,15 +1010,15 @@ const Rt = ["role"], Ot = {
1010
1010
  }
1011
1011
  }
1012
1012
  }
1013
- A([() => s.visible, () => e.placement], y);
1013
+ Q([() => s.visible, () => e.placement], y);
1014
1014
  let w;
1015
1015
  function f() {
1016
- D(0);
1016
+ T(0);
1017
1017
  }
1018
- function C() {
1019
- D(e.delay);
1018
+ function z() {
1019
+ T(e.delay);
1020
1020
  }
1021
- function D(i) {
1021
+ function T(i) {
1022
1022
  w || (w = window.setTimeout(() => {
1023
1023
  s.visible = !0, X(() => {
1024
1024
  var a;
@@ -1029,31 +1029,31 @@ const Rt = ["role"], Ot = {
1029
1029
  function B() {
1030
1030
  clearTimeout(w), w = void 0, s.visible = !1, X(() => {
1031
1031
  if (e.anchor && e.trigger === "click") {
1032
- const i = le(e.anchor);
1032
+ const i = ne(e.anchor);
1033
1033
  i == null || i.focus();
1034
1034
  }
1035
1035
  });
1036
1036
  }
1037
- let Q;
1037
+ let A;
1038
1038
  function F() {
1039
1039
  o("enter");
1040
1040
  }
1041
1041
  function R() {
1042
- window.clearTimeout(Q), Q = window.setTimeout(() => s.animating = !1, 200), o("leave");
1042
+ window.clearTimeout(A), A = window.setTimeout(() => s.animating = !1, 200), o("leave");
1043
1043
  }
1044
1044
  let O;
1045
1045
  function M() {
1046
1046
  X(() => {
1047
1047
  if (!e.anchor)
1048
1048
  return;
1049
- const i = le(e.anchor);
1049
+ const i = ne(e.anchor);
1050
1050
  if (i)
1051
1051
  switch (e.trigger) {
1052
1052
  case "click":
1053
1053
  i.addEventListener("click", f);
1054
1054
  break;
1055
1055
  case "hover":
1056
- i.addEventListener("mouseenter", C), i.addEventListener("mouseleave", B), i.addEventListener("focusin", f), i.addEventListener("focusout", B);
1056
+ i.addEventListener("mouseenter", z), i.addEventListener("mouseleave", B), i.addEventListener("focusin", f), i.addEventListener("focusout", B);
1057
1057
  break;
1058
1058
  }
1059
1059
  });
@@ -1062,7 +1062,7 @@ const Rt = ["role"], Ot = {
1062
1062
  X(() => {
1063
1063
  if (!e.anchor)
1064
1064
  return;
1065
- const i = le(e.anchor);
1065
+ const i = ne(e.anchor);
1066
1066
  i && (window.addEventListener("resize", y), O = new MutationObserver(y), O.observe(i, {
1067
1067
  attributes: !1,
1068
1068
  childList: !0,
@@ -1074,14 +1074,14 @@ const Rt = ["role"], Ot = {
1074
1074
  function U() {
1075
1075
  if (!e.anchor)
1076
1076
  return;
1077
- const i = le(e.anchor);
1077
+ const i = ne(e.anchor);
1078
1078
  if (i)
1079
1079
  switch (e.trigger) {
1080
1080
  case "click":
1081
1081
  i.removeEventListener("click", f);
1082
1082
  break;
1083
1083
  case "hover":
1084
- i.removeEventListener("mouseenter", C), i.removeEventListener("mouseleave", B), i.removeEventListener("focusin", f), i.removeEventListener("focusout", B);
1084
+ i.removeEventListener("mouseenter", z), i.removeEventListener("mouseleave", B), i.removeEventListener("focusin", f), i.removeEventListener("focusout", B);
1085
1085
  break;
1086
1086
  }
1087
1087
  }
@@ -1092,7 +1092,7 @@ const Rt = ["role"], Ot = {
1092
1092
  function Z() {
1093
1093
  if (!e.anchor)
1094
1094
  return;
1095
- le(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : B();
1095
+ ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : B();
1096
1096
  }
1097
1097
  function K() {
1098
1098
  W(), e.spy && Z(), e.anchor && document.addEventListener("scroll", B);
@@ -1102,11 +1102,11 @@ const Rt = ["role"], Ot = {
1102
1102
  }
1103
1103
  return Me(() => {
1104
1104
  U(), j();
1105
- }), Te(() => {
1105
+ }), De(() => {
1106
1106
  X(() => {
1107
1107
  M(), y();
1108
1108
  });
1109
- }), A(
1109
+ }), Q(
1110
1110
  () => s.visible,
1111
1111
  (i) => {
1112
1112
  i ? K() : j(), o("update:modelValue", i);
@@ -1123,7 +1123,7 @@ const Rt = ["role"], Ot = {
1123
1123
  { "q-overlay__underlay--blur": e.backdropBlur }
1124
1124
  ])
1125
1125
  }, null, 2)) : I("", !0),
1126
- z(Ke, {
1126
+ C(Ke, {
1127
1127
  name: e.transition,
1128
1128
  appear: "",
1129
1129
  onEnter: F,
@@ -1135,7 +1135,7 @@ const Rt = ["role"], Ot = {
1135
1135
  class: E(n.value),
1136
1136
  style: ce(u.value)
1137
1137
  }, [
1138
- Y("div", ne({
1138
+ Y("div", oe({
1139
1139
  class: "q-overlay__content",
1140
1140
  ref_key: "overlayRef",
1141
1141
  ref: p,
@@ -1204,7 +1204,7 @@ const Rt = ["role"], Ot = {
1204
1204
  h(s.$slots, "label.append")
1205
1205
  ])) : I("", !0),
1206
1206
  h(s.$slots, "control", {}, () => [
1207
- Y("div", ne({
1207
+ Y("div", oe({
1208
1208
  class: "q-field__control",
1209
1209
  ref_key: "fieldRef",
1210
1210
  ref: n
@@ -1252,7 +1252,7 @@ const Rt = ["role"], Ot = {
1252
1252
  }), w = _(
1253
1253
  () => n.readonly || n.disabled ? "" : n.placeholder
1254
1254
  );
1255
- return A(
1255
+ return Q(
1256
1256
  () => n.modelValue,
1257
1257
  (f) => s.value = f
1258
1258
  ), l({
@@ -1261,7 +1261,7 @@ const Rt = ["role"], Ot = {
1261
1261
  return (f = u.value) == null ? void 0 : f.fieldRef;
1262
1262
  }),
1263
1263
  inputRef: p
1264
- }), (f, C) => (c(), V(b(_e), {
1264
+ }), (f, z) => (c(), V(b(_e), {
1265
1265
  ref_key: "fieldRef",
1266
1266
  ref: u,
1267
1267
  class: E(["q-text-field", n.class]),
@@ -1279,8 +1279,8 @@ const Rt = ["role"], Ot = {
1279
1279
  h(f.$slots, "label.append")
1280
1280
  ]),
1281
1281
  default: g(() => [
1282
- We(Y("input", ne({
1283
- "onUpdate:modelValue": C[0] || (C[0] = (D) => y.value = D),
1282
+ We(Y("input", oe({
1283
+ "onUpdate:modelValue": z[0] || (z[0] = (T) => y.value = T),
1284
1284
  ref_key: "inputRef",
1285
1285
  ref: p,
1286
1286
  id: b(d),
@@ -1363,8 +1363,8 @@ const Rt = ["role"], Ot = {
1363
1363
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
1364
1364
  setup(t, { expose: l, emit: o }) {
1365
1365
  const e = o, n = t, d = q(n.modelValue), s = q(!1), u = q(""), p = q(void 0), y = q(null), w = q(null), f = q(null);
1366
- Te(U);
1367
- const C = _(() => n.clearable && !n.readonly && !n.disabled), D = _(() => {
1366
+ De(U);
1367
+ const z = _(() => n.clearable && !n.readonly && !n.disabled), T = _(() => {
1368
1368
  var r;
1369
1369
  return n.filterMode === "manual" || !O.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
1370
1370
  (k) => k[n.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
@@ -1372,10 +1372,10 @@ const Rt = ["role"], Ot = {
1372
1372
  }), B = _(() => {
1373
1373
  var r;
1374
1374
  return (r = n.items) == null ? void 0 : r.find((k) => k[n.itemValue] === d.value);
1375
- }), Q = _(() => B.value === void 0), F = _(() => {
1375
+ }), A = _(() => B.value === void 0), F = _(() => {
1376
1376
  const r = p.value;
1377
- if (r !== void 0 && D.value[r])
1378
- return D.value[r];
1377
+ if (r !== void 0 && T.value[r])
1378
+ return T.value[r];
1379
1379
  }), R = _(() => {
1380
1380
  var k;
1381
1381
  if (p.value === void 0)
@@ -1397,7 +1397,7 @@ const Rt = ["role"], Ot = {
1397
1397
  u.value = ((r = B.value) == null ? void 0 : r[n.itemLabel]) || "";
1398
1398
  }
1399
1399
  function H() {
1400
- s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, ae());
1400
+ s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, le());
1401
1401
  }
1402
1402
  function N() {
1403
1403
  s.value && (e("before-hide"), s.value = !1, p.value = void 0);
@@ -1406,11 +1406,11 @@ const Rt = ["role"], Ot = {
1406
1406
  s.value ? N() : j();
1407
1407
  }
1408
1408
  function K() {
1409
- C.value && (M(n.emptyValue), p.value = void 0);
1409
+ z.value && (M(n.emptyValue), p.value = void 0, le());
1410
1410
  }
1411
1411
  function j() {
1412
1412
  if (H(), B.value !== void 0) {
1413
- const r = D.value.indexOf(B.value);
1413
+ const r = T.value.indexOf(B.value);
1414
1414
  r !== -1 && X(() => ke(r));
1415
1415
  }
1416
1416
  }
@@ -1418,7 +1418,7 @@ const Rt = ["role"], Ot = {
1418
1418
  var k, S;
1419
1419
  if (!(!r.key || n.readonly || n.disabled))
1420
1420
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
1421
- s.value ? N() : C.value && K();
1421
+ s.value ? N() : z.value && K();
1422
1422
  else if (["ArrowDown", "ArrowUp"].includes(r.key))
1423
1423
  s.value ? X(() => {
1424
1424
  if (p.value === void 0)
@@ -1439,10 +1439,10 @@ const Rt = ["role"], Ot = {
1439
1439
  }
1440
1440
  function a() {
1441
1441
  var r, k;
1442
- if (Q.value)
1442
+ if (A.value)
1443
1443
  p.value = (k = w.value) == null ? void 0 : k.getFirstFocusableItemIndex();
1444
1444
  else {
1445
- const S = D.value.findIndex(
1445
+ const S = T.value.findIndex(
1446
1446
  (P) => P[n.itemValue] === d.value
1447
1447
  );
1448
1448
  S === -1 ? p.value = (r = w.value) == null ? void 0 : r.getFirstFocusableItemIndex() : p.value = S;
@@ -1456,16 +1456,16 @@ const Rt = ["role"], Ot = {
1456
1456
  var S;
1457
1457
  p.value = (S = w.value) == null ? void 0 : S.getAdjacentItemIndex(r, k);
1458
1458
  }
1459
- function T(r) {
1459
+ function D(r) {
1460
1460
  var k, S, P;
1461
1461
  !((k = f.value) != null && k.contains(r.relatedTarget)) && !((P = (S = y.value) == null ? void 0 : S.fieldRef) != null && P.contains(r.relatedTarget)) ? (N(), U()) : (r.preventDefault(), r.stopPropagation());
1462
1462
  }
1463
- function ae() {
1463
+ function le() {
1464
1464
  var r, k;
1465
1465
  (k = (r = y.value) == null ? void 0 : r.inputRef) == null || k.focus();
1466
1466
  }
1467
1467
  function Re() {
1468
- ae();
1468
+ le();
1469
1469
  }
1470
1470
  function Oe() {
1471
1471
  e("show");
@@ -1478,19 +1478,19 @@ const Rt = ["role"], Ot = {
1478
1478
  const k = (S = w.value) == null ? void 0 : S.getItem(r);
1479
1479
  k == null || k.scrollIntoView({ block: "nearest", inline: "start" });
1480
1480
  }
1481
- return A(
1481
+ return Q(
1482
1482
  () => n.modelValue,
1483
1483
  (r) => {
1484
1484
  d.value = r;
1485
1485
  }
1486
- ), A([d, () => n.items], U, { deep: !0 }), A(p, (r) => {
1486
+ ), Q([d, () => n.items], U, { deep: !0 }), Q(p, (r) => {
1487
1487
  r !== void 0 && ke(r);
1488
- }), A(u, (r) => {
1489
- !r && C.value ? K() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
1488
+ }), Q(u, (r) => {
1489
+ !r && z.value ? K() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
1490
1490
  }), l({
1491
1491
  triggerEl: y
1492
1492
  }), (r, k) => (c(), v(ee, null, [
1493
- z(b(Yt), {
1493
+ C(b(Yt), {
1494
1494
  modelValue: u.value,
1495
1495
  "onUpdate:modelValue": k[0] || (k[0] = (S) => u.value = S),
1496
1496
  id: n.id,
@@ -1518,7 +1518,7 @@ const Rt = ["role"], Ot = {
1518
1518
  "aria-activedescendant": R.value,
1519
1519
  size: n.size,
1520
1520
  onClick: j,
1521
- onFocusout: T,
1521
+ onFocusout: D,
1522
1522
  onKeydown: ie(i, ["stop"])
1523
1523
  }, he({
1524
1524
  "label.prepend": g(() => [
@@ -1529,7 +1529,7 @@ const Rt = ["role"], Ot = {
1529
1529
  ]),
1530
1530
  append: g(() => [
1531
1531
  h(r.$slots, "append"),
1532
- C.value && u.value ? (c(), V(b(ue), {
1532
+ z.value && u.value ? (c(), V(b(ue), {
1533
1533
  key: 0,
1534
1534
  class: "q-combobox__clear",
1535
1535
  "b-style": "plain",
@@ -1538,7 +1538,7 @@ const Rt = ["role"], Ot = {
1538
1538
  onClick: K
1539
1539
  }, {
1540
1540
  default: g(() => [
1541
- z(b(J), te(oe(n.icons.clear)), null, 16)
1541
+ C(b(J), te(ae(n.icons.clear)), null, 16)
1542
1542
  ]),
1543
1543
  _: 1
1544
1544
  })) : I("", !0),
@@ -1552,7 +1552,7 @@ const Rt = ["role"], Ot = {
1552
1552
  onClick: Z
1553
1553
  }, {
1554
1554
  default: g(() => [
1555
- z(b(J), te(oe(n.icons.chevron)), null, 16)
1555
+ C(b(J), te(ae(n.icons.chevron)), null, 16)
1556
1556
  ]),
1557
1557
  _: 1
1558
1558
  }, 8, ["disabled"]))
@@ -1574,7 +1574,7 @@ const Rt = ["role"], Ot = {
1574
1574
  key: "1"
1575
1575
  } : void 0
1576
1576
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1577
- z(b(pe), {
1577
+ C(b(pe), {
1578
1578
  modelValue: s.value,
1579
1579
  "onUpdate:modelValue": k[2] || (k[2] = (S) => s.value = S),
1580
1580
  spy: "",
@@ -1593,12 +1593,12 @@ const Rt = ["role"], Ot = {
1593
1593
  ref_key: "contentRef",
1594
1594
  ref: f,
1595
1595
  class: "q-select__body",
1596
- onFocusout: T
1596
+ onFocusout: D
1597
1597
  }, [
1598
1598
  h(r.$slots, "body.prepend"),
1599
1599
  n.loading ? (c(), v("div", Zt, [
1600
- z(b(ge), { size: 24 })
1601
- ])) : D.value.length ? (c(), V(b(Qe), {
1600
+ C(b(ge), { size: 24 })
1601
+ ])) : T.value.length ? (c(), V(b(Ae), {
1602
1602
  key: 1,
1603
1603
  ref_key: "listRef",
1604
1604
  ref: w,
@@ -1609,7 +1609,7 @@ const Rt = ["role"], Ot = {
1609
1609
  W
1610
1610
  ],
1611
1611
  highlighted: (S = F.value) == null ? void 0 : S[n.itemValue],
1612
- items: D.value,
1612
+ items: T.value,
1613
1613
  groups: r.groups,
1614
1614
  "item-label": n.itemLabel,
1615
1615
  "item-value": n.itemValue,
@@ -1647,7 +1647,7 @@ const Rt = ["role"], Ot = {
1647
1647
  },
1648
1648
  setup(t) {
1649
1649
  const l = t;
1650
- return Ce({
1650
+ return ze({
1651
1651
  QField: {
1652
1652
  size: "block"
1653
1653
  }
@@ -1661,14 +1661,14 @@ const Rt = ["role"], Ot = {
1661
1661
  default: g(() => [
1662
1662
  o.$slots.prepend || l.prependIcon ? (c(), v("div", nl, [
1663
1663
  l.prependIcon ? (c(), v("span", ol, [
1664
- z(b(J), te(oe(l.prependIcon)), null, 16)
1664
+ C(b(J), te(ae(l.prependIcon)), null, 16)
1665
1665
  ])) : I("", !0),
1666
1666
  h(o.$slots, "prepend")
1667
1667
  ])) : I("", !0),
1668
1668
  h(o.$slots, "default"),
1669
1669
  o.$slots.append || l.appendIcon ? (c(), v("div", al, [
1670
1670
  l.appendIcon ? (c(), v("span", sl, [
1671
- z(b(J), te(oe(l.appendIcon)), null, 16)
1671
+ C(b(J), te(ae(l.appendIcon)), null, 16)
1672
1672
  ])) : I("", !0),
1673
1673
  h(o.$slots, "append")
1674
1674
  ])) : I("", !0)
@@ -1781,23 +1781,23 @@ const Rt = ["role"], Ot = {
1781
1781
  var a;
1782
1782
  return (a = e.items) == null ? void 0 : a.find((m) => m[e.itemValue] === n.value);
1783
1783
  }
1784
- ), C = _(
1784
+ ), z = _(
1785
1785
  () => f.value ? f.value[e.itemLabel] : ""
1786
- ), D = _(
1786
+ ), T = _(
1787
1787
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1788
1788
  );
1789
1789
  function B(a) {
1790
1790
  n.value = a, o("update:modelValue", a), M();
1791
1791
  }
1792
- function Q() {
1793
- D.value && B(e.emptyValue);
1792
+ function A() {
1793
+ T.value && B(e.emptyValue);
1794
1794
  }
1795
1795
  function F() {
1796
1796
  e.readonly || e.disabled || (d.value ? M() : O());
1797
1797
  }
1798
1798
  function R(a) {
1799
- var m, $, T;
1800
- !((m = y.value) != null && m.contains(a.relatedTarget)) && !((T = ($ = u.value) == null ? void 0 : $.fieldRef) != null && T.contains(a.relatedTarget)) && M();
1799
+ var m, $, D;
1800
+ !((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) && M();
1801
1801
  }
1802
1802
  function O() {
1803
1803
  d.value || (o("before-show"), d.value = !0);
@@ -1811,7 +1811,7 @@ const Rt = ["role"], Ot = {
1811
1811
  let U;
1812
1812
  function H(a) {
1813
1813
  if (!(!a.key || e.readonly || e.disabled)) {
1814
- if (window.clearTimeout(U), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), ["Enter", " "].includes(a.key) && (d.value = !0), ["Escape", "Tab"].includes(a.key) && (d.value ? d.value = !1 : D.value && a.key === "Escape" && Q()), a.key === "Delete" && e.clearable && Q(), /^[a-z]$/i.test(a.key)) {
1814
+ if (window.clearTimeout(U), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), ["Enter", " "].includes(a.key) && (d.value = !0), ["Escape", "Tab"].includes(a.key) && (d.value ? d.value = !1 : T.value && a.key === "Escape" && A()), a.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(a.key)) {
1815
1815
  s.value += a.key.toLowerCase();
1816
1816
  for (let m = 0; m < e.items.length; m++)
1817
1817
  if (e.items[m][e.itemLabel].toLowerCase().startsWith(s.value)) {
@@ -1843,12 +1843,12 @@ const Rt = ["role"], Ot = {
1843
1843
  var m;
1844
1844
  (m = p.value) == null || m.focusItem(a);
1845
1845
  }
1846
- return A(
1846
+ return Q(
1847
1847
  () => e.modelValue,
1848
1848
  (a) => {
1849
1849
  n.value = a;
1850
1850
  }
1851
- ), A(
1851
+ ), Q(
1852
1852
  () => e.loading,
1853
1853
  (a) => {
1854
1854
  !a && d.value && X(j);
@@ -1856,7 +1856,7 @@ const Rt = ["role"], Ot = {
1856
1856
  ), (a, m) => {
1857
1857
  var $;
1858
1858
  return c(), v(ee, null, [
1859
- z(b(_e), {
1859
+ C(b(_e), {
1860
1860
  id: e.id,
1861
1861
  label: e.label,
1862
1862
  required: e.required,
@@ -1883,16 +1883,16 @@ const Rt = ["role"], Ot = {
1883
1883
  }, he({
1884
1884
  append: g(() => [
1885
1885
  h(a.$slots, "append"),
1886
- D.value && n.value ? (c(), V(b(ue), {
1886
+ T.value && n.value ? (c(), V(b(ue), {
1887
1887
  key: 0,
1888
1888
  class: "q-select__clear",
1889
1889
  "b-style": "plain",
1890
1890
  borderless: "",
1891
1891
  tabindex: "-1",
1892
- onClick: Q
1892
+ onClick: A
1893
1893
  }, {
1894
1894
  default: g(() => [
1895
- z(b(J), te(oe(e.icons.clear)), null, 16)
1895
+ C(b(J), te(ae(e.icons.clear)), null, 16)
1896
1896
  ]),
1897
1897
  _: 1
1898
1898
  })) : I("", !0),
@@ -1906,7 +1906,7 @@ const Rt = ["role"], Ot = {
1906
1906
  onClick: W
1907
1907
  }, {
1908
1908
  default: g(() => [
1909
- z(b(J), te(oe(e.icons.chevron)), null, 16)
1909
+ C(b(J), te(ae(e.icons.chevron)), null, 16)
1910
1910
  ]),
1911
1911
  _: 1
1912
1912
  }, 8, ["disabled"]))
@@ -1916,17 +1916,17 @@ const Rt = ["role"], Ot = {
1916
1916
  !e.readonly && !e.disabled ? (c(), v(ee, { key: 0 }, [
1917
1917
  re(G(a.texts.placeholder), 1)
1918
1918
  ], 64)) : I("", !0)
1919
- ])) : (c(), v("span", ml, G(C.value), 1))
1919
+ ])) : (c(), v("span", ml, G(z.value), 1))
1920
1920
  ]),
1921
1921
  _: 2
1922
1922
  }, [
1923
1923
  ($ = f.value) != null && $.icon || a.$slots.prepend ? {
1924
1924
  name: "prepend",
1925
1925
  fn: g(() => {
1926
- var T, ae;
1926
+ var D, le;
1927
1927
  return [
1928
1928
  h(a.$slots, "prepend"),
1929
- (T = f.value) != null && T.icon ? (c(), V(b(J), te(ne({ key: 0 }, (ae = f.value) == null ? void 0 : ae.icon)), null, 16)) : I("", !0)
1929
+ (D = f.value) != null && D.icon ? (c(), V(b(J), te(oe({ key: 0 }, (le = f.value) == null ? void 0 : le.icon)), null, 16)) : I("", !0)
1930
1930
  ];
1931
1931
  }),
1932
1932
  key: "0"
@@ -1939,9 +1939,9 @@ const Rt = ["role"], Ot = {
1939
1939
  key: "1"
1940
1940
  } : void 0
1941
1941
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
1942
- z(b(pe), {
1942
+ C(b(pe), {
1943
1943
  modelValue: d.value,
1944
- "onUpdate:modelValue": m[1] || (m[1] = (T) => d.value = T),
1944
+ "onUpdate:modelValue": m[1] || (m[1] = (D) => d.value = D),
1945
1945
  spy: "",
1946
1946
  trigger: "manual",
1947
1947
  placement: "bottom",
@@ -1962,15 +1962,15 @@ const Rt = ["role"], Ot = {
1962
1962
  }, [
1963
1963
  h(a.$slots, "body.prepend"),
1964
1964
  e.loading ? (c(), v("div", hl, [
1965
- z(b(ge), { size: 24 })
1966
- ])) : (c(), V(b(Qe), {
1965
+ C(b(ge), { size: 24 })
1966
+ ])) : (c(), V(b(Ae), {
1967
1967
  key: 1,
1968
1968
  ref_key: "listRef",
1969
1969
  ref: p,
1970
1970
  class: "q-select__items",
1971
1971
  modelValue: n.value,
1972
1972
  "onUpdate:modelValue": [
1973
- m[0] || (m[0] = (T) => n.value = T),
1973
+ m[0] || (m[0] = (D) => n.value = D),
1974
1974
  B
1975
1975
  ],
1976
1976
  items: e.items,
@@ -1978,8 +1978,8 @@ const Rt = ["role"], Ot = {
1978
1978
  "item-label": e.itemLabel,
1979
1979
  "item-value": e.itemValue
1980
1980
  }, {
1981
- item: g(({ item: T }) => [
1982
- h(a.$slots, "item", { item: T })
1981
+ item: g(({ item: D }) => [
1982
+ h(a.$slots, "item", { item: D })
1983
1983
  ]),
1984
1984
  _: 3
1985
1985
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
@@ -1991,7 +1991,7 @@ const Rt = ["role"], Ot = {
1991
1991
  ], 64);
1992
1992
  };
1993
1993
  }
1994
- }), Dl = x(gl), _l = /* @__PURE__ */ L({
1994
+ }), Tl = x(gl), _l = /* @__PURE__ */ L({
1995
1995
  __name: "QThemeProvider",
1996
1996
  props: {
1997
1997
  theme: {}
@@ -2004,7 +2004,7 @@ const Rt = ["role"], Ot = {
2004
2004
  h(o.$slots, "default")
2005
2005
  ], 2));
2006
2006
  }
2007
- }), Tl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ L({
2007
+ }), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ L({
2008
2008
  __name: "QTooltip",
2009
2009
  props: {
2010
2010
  modelValue: { type: Boolean },
@@ -2027,7 +2027,7 @@ const Rt = ["role"], Ot = {
2027
2027
  h(e.$slots, "anchor", {
2028
2028
  props: { "aria-describedby": b(o) }
2029
2029
  }),
2030
- z(b(pe), {
2030
+ C(b(pe), {
2031
2031
  "model-value": l.modelValue,
2032
2032
  anchor: l.anchor,
2033
2033
  role: "tooltip",
@@ -2051,7 +2051,7 @@ const Rt = ["role"], Ot = {
2051
2051
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
2052
2052
  ], 64));
2053
2053
  }
2054
- }), Cl = x($l);
2054
+ }), zl = x($l);
2055
2055
  export {
2056
2056
  ue as QButton,
2057
2057
  pt as QButtonGroup,
@@ -2064,16 +2064,16 @@ export {
2064
2064
  It as QIconSvg,
2065
2065
  Bl as QInputGroup,
2066
2066
  Vl as QLineLoader,
2067
- Qe as QList,
2068
- zt as QListItem,
2069
- At as QListItemGroup,
2067
+ Ae as QList,
2068
+ Ct as QListItem,
2069
+ Qt as QListItemGroup,
2070
2070
  pe as QOverlay,
2071
2071
  El as QPopover,
2072
- Dl as QSelect,
2072
+ Tl as QSelect,
2073
2073
  ge as QSpinnerLoader,
2074
2074
  Yt as QTextField,
2075
- Tl as QThemeProvider,
2076
- Cl as QTooltip,
2075
+ Dl as QThemeProvider,
2076
+ zl as QTooltip,
2077
2077
  Ll as createFramework,
2078
2078
  Ye as defaultDarkColorScheme,
2079
2079
  Ie as defaultLightColorScheme,