@quidgest/ui 0.13.3 → 0.14.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.
Files changed (179) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +77 -0
  3. package/dist/ui.esm.js +1129 -908
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +94 -85
  7. package/dist/ui.scss +86 -4
  8. package/esm/components/QBadge/QBadge.d.ts +10 -35
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +19 -22
  11. package/esm/components/QBadge/index.d.ts +3 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +30 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -0
  15. package/esm/components/QBadge/types.js +8 -0
  16. package/esm/components/QButton/QButton.d.ts +8 -50
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -197
  19. package/esm/components/QButton/index.d.ts.map +1 -1
  20. package/esm/components/QButton/types.d.ts +47 -0
  21. package/esm/components/QButton/types.d.ts.map +1 -0
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +7 -21
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +3 -79
  25. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  26. package/esm/components/QButtonGroup/types.d.ts +19 -0
  27. package/esm/components/QButtonGroup/types.d.ts.map +1 -0
  28. package/esm/components/QButtonToggle/QButtonToggle.d.ts +6 -33
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +3 -115
  31. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  32. package/esm/components/QButtonToggle/types.d.ts +32 -0
  33. package/esm/components/QButtonToggle/types.d.ts.map +1 -0
  34. package/esm/components/QCombobox/QCombobox.d.ts +266 -144
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +52 -62
  37. package/esm/components/QCombobox/index.d.ts +3 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +92 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +14 -0
  42. package/esm/components/QDialog/QDialog.d.ts +18 -93
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +45 -61
  45. package/esm/components/QDialog/index.d.ts +3 -267
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +82 -0
  48. package/esm/components/QDialog/types.d.ts.map +1 -0
  49. package/esm/components/QDialog/types.js +23 -0
  50. package/esm/components/QField/QField.d.ts +15 -47
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -168
  53. package/esm/components/QField/index.d.ts.map +1 -1
  54. package/esm/components/QField/types.d.ts +37 -0
  55. package/esm/components/QField/types.d.ts.map +1 -0
  56. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  57. package/esm/components/QIcon/InlineSvg.js +6 -13
  58. package/esm/components/QIcon/QIcon.d.ts +3 -19
  59. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  60. package/esm/components/QIcon/QIcon.vue.js +2 -2
  61. package/esm/components/QIcon/QIconFont.d.ts +2 -22
  62. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  63. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  64. package/esm/components/QIcon/QIconImg.d.ts +3 -27
  65. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  66. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  67. package/esm/components/QIcon/QIconSvg.d.ts +4 -36
  68. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  69. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  70. package/esm/components/QIcon/index.d.ts +9 -156
  71. package/esm/components/QIcon/index.d.ts.map +1 -1
  72. package/esm/components/QIcon/types.d.ts +40 -0
  73. package/esm/components/QIcon/types.d.ts.map +1 -0
  74. package/esm/components/QInputGroup/QInputGroup.d.ts +12 -42
  75. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  76. package/esm/components/QInputGroup/index.d.ts +3 -153
  77. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  78. package/esm/components/QInputGroup/types.d.ts +35 -0
  79. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  80. package/esm/components/QLineLoader/QLineLoader.d.ts +2 -6
  81. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  82. package/esm/components/QLineLoader/index.d.ts +3 -13
  83. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  84. package/esm/components/QLineLoader/types.d.ts +7 -0
  85. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  86. package/esm/components/QList/QList.d.ts +11 -52
  87. package/esm/components/QList/QList.d.ts.map +1 -1
  88. package/esm/components/QList/QListItem.d.ts +10 -53
  89. package/esm/components/QList/QListItem.d.ts.map +1 -1
  90. package/esm/components/QList/QListItem.vue.js +22 -28
  91. package/esm/components/QList/QListItemGroup.d.ts +7 -13
  92. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  93. package/esm/components/QList/index.d.ts +7 -452
  94. package/esm/components/QList/index.d.ts.map +1 -1
  95. package/esm/components/QList/types.d.ts +102 -0
  96. package/esm/components/QList/types.d.ts.map +1 -0
  97. package/esm/components/QList/types.js +11 -0
  98. package/esm/components/QOverlay/QOverlay.d.ts +33 -118
  99. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  100. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  101. package/esm/components/QOverlay/index.d.ts +3 -339
  102. package/esm/components/QOverlay/index.d.ts.map +1 -1
  103. package/esm/components/QOverlay/types.d.ts +88 -0
  104. package/esm/components/QOverlay/types.d.ts.map +1 -0
  105. package/esm/components/QPopover/QPopover.d.ts +17 -58
  106. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  107. package/esm/components/QPopover/index.d.ts +3 -180
  108. package/esm/components/QPopover/index.d.ts.map +1 -1
  109. package/esm/components/QPopover/types.d.ts +44 -0
  110. package/esm/components/QPopover/types.d.ts.map +1 -0
  111. package/esm/components/QPropertyList/QPropertyList.d.ts +70 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  113. package/esm/components/QPropertyList/QPropertyList.vue.js +146 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  115. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +48 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +72 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  119. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +53 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +45 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  123. package/esm/components/QPropertyList/QPropertyListRow.d.ts +29 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  127. package/esm/components/QPropertyList/index.d.ts +13 -0
  128. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  129. package/esm/components/QPropertyList/index.js +12 -0
  130. package/esm/components/QPropertyList/types.d.ts +101 -0
  131. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  132. package/esm/components/QPropertyList/types.js +14 -0
  133. package/esm/components/QSelect/QSelect.d.ts +25 -102
  134. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  135. package/esm/components/QSelect/QSelect.vue.js +80 -91
  136. package/esm/components/QSelect/index.d.ts +3 -369
  137. package/esm/components/QSelect/index.d.ts.map +1 -1
  138. package/esm/components/QSelect/types.d.ts +80 -0
  139. package/esm/components/QSelect/types.d.ts.map +1 -0
  140. package/esm/components/QSelect/types.js +14 -0
  141. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -14
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  143. package/esm/components/QSkeletonLoader/index.d.ts +3 -31
  144. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  145. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  146. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  147. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -10
  148. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  150. package/esm/components/QSpinnerLoader/index.d.ts +3 -22
  151. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  152. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  153. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  154. package/esm/components/QTextField/QTextField.d.ts +13 -61
  155. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  156. package/esm/components/QTextField/index.d.ts +3 -229
  157. package/esm/components/QTextField/index.d.ts.map +1 -1
  158. package/esm/components/QTextField/types.d.ts +51 -0
  159. package/esm/components/QTextField/types.d.ts.map +1 -0
  160. package/esm/components/QThemeProvider/QThemeProvider.d.ts +6 -8
  161. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  162. package/esm/components/QThemeProvider/index.d.ts +3 -37
  163. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/types.d.ts +7 -0
  165. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  166. package/esm/components/QTooltip/QTooltip.d.ts +30 -94
  167. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  168. package/esm/components/QTooltip/index.d.ts +3 -279
  169. package/esm/components/QTooltip/index.d.ts.map +1 -1
  170. package/esm/components/QTooltip/types.d.ts +67 -0
  171. package/esm/components/QTooltip/types.d.ts.map +1 -0
  172. package/esm/components/index.d.ts +1 -0
  173. package/esm/components/index.d.ts.map +1 -1
  174. package/esm/components/index.js +42 -37
  175. package/esm/composables/defaults.js +3 -6
  176. package/esm/index.d.ts +4 -0
  177. package/esm/utils/color.js +1 -2
  178. package/esm/utils/setupPropsProxy.js +2 -4
  179. package/package.json +35 -36
package/dist/ui.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as L, computed as g, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as T, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as I, resolveDynamicComponent as Ke, h as Ae, withCtx as k, normalizeProps as G, guardReactiveProps as se, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
1
+ import { defineComponent as B, computed as b, openBlock as r, createElementBlock as p, normalizeClass as C, normalizeStyle as ce, getCurrentInstance as Ge, ref as E, provide as Re, inject as Ke, withModifiers as ve, createVNode as F, unref as m, createCommentVNode as x, createElementVNode as L, Fragment as K, createTextVNode as ue, toDisplayString as z, renderSlot as h, createBlock as S, resolveDynamicComponent as Be, h as ze, withCtx as _, normalizeProps as j, guardReactiveProps as ne, toRef as Me, mergeModels as Z, useModel as oe, renderList as he, mergeProps as ie, reactive as Pe, watch as ee, nextTick as te, onMounted as je, onBeforeUnmount as ct, Teleport as ut, Transition as ft, withKeys as pt, createSlots as qe, withDirectives as mt, vModelDynamic as vt } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.13.3
3
+ * Quidgest UI v0.14.0
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
7
- const Le = {
7
+ const Ie = {
8
8
  primary: "#008ad2",
9
9
  primaryLight: "#cde5ff",
10
10
  primaryDark: "#006398",
@@ -35,7 +35,7 @@ const Le = {
35
35
  onWarning: "#fff",
36
36
  onDanger: "#fff",
37
37
  onInfo: "#fff"
38
- }, Ge = {
38
+ }, We = {
39
39
  primary: "#009ff5",
40
40
  primaryLight: "#ade2ff",
41
41
  primaryDark: "#164965",
@@ -66,40 +66,40 @@ const Le = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
- defaultDarkColorScheme: Ge,
72
- defaultLightColorScheme: Le
73
- }, Symbol.toStringTag, { value: "Module" })), ct = /* @__PURE__ */ L({
71
+ defaultDarkColorScheme: We,
72
+ defaultLightColorScheme: Ie
73
+ }, Symbol.toStringTag, { value: "Module" })), ht = /* @__PURE__ */ B({
74
74
  __name: "QSpinnerLoader",
75
75
  props: {
76
76
  size: { default: 48 },
77
77
  class: { default: void 0 }
78
78
  },
79
79
  setup(o) {
80
- const t = o, e = g(() => ({
80
+ const t = o, e = b(() => ({
81
81
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
82
  }));
83
- return (n, l) => (u(), v("div", {
83
+ return (n, l) => (r(), p("div", {
84
84
  class: C(["q-spinner-loader", t.class]),
85
- style: ue(e.value)
85
+ style: ce(e.value)
86
86
  }, null, 6));
87
87
  }
88
88
  });
89
89
  function Se(o) {
90
90
  return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
91
91
  }
92
- function Me(o) {
92
+ function Oe(o) {
93
93
  return o !== null && typeof o == "object" && !Array.isArray(o);
94
94
  }
95
- function Be(o = {}, t = {}) {
95
+ function Ce(o = {}, t = {}) {
96
96
  const e = {};
97
97
  for (const n in o)
98
98
  e[n] = o[n];
99
99
  for (const n in t) {
100
100
  const l = o[n], s = t[n];
101
- if (Me(l) && Me(s)) {
102
- e[n] = Be(
101
+ if (Oe(l) && Oe(s)) {
102
+ e[n] = Ce(
103
103
  l,
104
104
  s
105
105
  );
@@ -109,61 +109,56 @@ function Be(o = {}, t = {}) {
109
109
  }
110
110
  return e;
111
111
  }
112
- const Ce = "q-defaults";
113
- function ft() {
112
+ const Te = "q-defaults";
113
+ function yt() {
114
114
  var s, i;
115
- const o = Pe();
115
+ const o = Ge();
116
116
  if (!o)
117
117
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
118
  const t = o.type.name ?? o.type.__name;
119
- if (!t)
120
- throw new Error("[Quidgest UI] Could not determine component name");
121
- const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
122
- return g(() => Be(n, l));
119
+ if (!t) throw new Error("[Quidgest UI] Could not determine component name");
120
+ const e = Ye(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
121
+ return b(() => Ce(n, l));
123
122
  }
124
- function Re(o) {
125
- if (Se(o))
126
- return;
127
- const t = We(), e = T(o), n = g(() => Se(e.value) ? t.value : Be(t.value, e.value));
128
- Ne(Ce, n);
123
+ function Xe(o) {
124
+ if (Se(o)) return;
125
+ const t = Ye(), e = E(o), n = b(() => Se(e.value) ? t.value : Ce(t.value, e.value));
126
+ Re(Te, n);
129
127
  }
130
- function We() {
131
- const o = He(Ce, void 0);
132
- if (!o)
133
- throw new Error("[Quidgest UI] Could not find defaults instance");
128
+ function Ye() {
129
+ const o = Ke(Te, void 0);
130
+ if (!o) throw new Error("[Quidgest UI] Could not find defaults instance");
134
131
  return o;
135
132
  }
136
- function Xe(o) {
133
+ function Ze(o) {
137
134
  return o.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
135
  }
139
- function pt(o, t) {
136
+ function gt(o, t) {
140
137
  var n;
141
- const e = Xe(t);
138
+ const e = Ze(t);
142
139
  return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
143
140
  }
144
- function B(o) {
141
+ function T(o) {
145
142
  const t = o.setup;
146
143
  return t && (o.setup = (e, n) => {
147
- const l = ft();
148
- if (Se(l.value))
149
- return t(e, n);
150
- const s = Pe();
151
- if (s === null)
152
- return t(e, n);
144
+ const l = yt();
145
+ if (Se(l.value)) return t(e, n);
146
+ const s = Ge();
147
+ if (s === null) return t(e, n);
153
148
  const i = new Proxy(e, {
154
- get(a, r) {
155
- var x;
156
- const f = Reflect.get(a, r), q = (x = l.value) == null ? void 0 : x[r];
157
- return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
149
+ get(a, d) {
150
+ var I;
151
+ const f = Reflect.get(a, d), $ = (I = l.value) == null ? void 0 : I[d];
152
+ return typeof d == "string" && !gt(s.vnode, d) ? $ ?? f : f;
158
153
  }
159
154
  });
160
155
  return t(i, n);
161
156
  }), o;
162
157
  }
163
- const Ie = B(ct), mt = ["disabled"], vt = {
158
+ const xe = T(ht), bt = ["disabled"], _t = {
164
159
  key: 0,
165
160
  class: "q-btn__spinner"
166
- }, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
161
+ }, kt = { class: "q-btn__content" }, $t = /* @__PURE__ */ B({
167
162
  __name: "QButton",
168
163
  props: {
169
164
  active: { type: Boolean },
@@ -180,11 +175,11 @@ const Ie = B(ct), mt = ["disabled"], vt = {
180
175
  },
181
176
  emits: ["click"],
182
177
  setup(o, { emit: t }) {
183
- const e = o, n = t, l = g(() => e.disabled || e.loading);
178
+ const e = o, n = t, l = b(() => e.disabled || e.loading);
184
179
  function s(a) {
185
180
  l.value || n("click", a);
186
181
  }
187
- const i = g(() => {
182
+ const i = b(() => {
188
183
  const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
189
184
  return [
190
185
  "q-btn",
@@ -200,72 +195,72 @@ const Ie = B(ct), mt = ["disabled"], vt = {
200
195
  e.class
201
196
  ];
202
197
  });
203
- return (a, r) => (u(), v("button", {
198
+ return (a, d) => (r(), p("button", {
204
199
  type: "button",
205
200
  class: C(i.value),
206
201
  disabled: l.value,
207
- onClick: pe(s, ["stop", "prevent"])
202
+ onClick: ve(s, ["stop", "prevent"])
208
203
  }, [
209
- a.loading ? (u(), v("div", vt, [
210
- z(m(Ie), { size: 20 })
211
- ])) : $("", !0),
212
- A("span", ht, [
213
- a.iconOnRight ? (u(), v(te, { key: 0 }, [
214
- me(N(e.label), 1)
215
- ], 64)) : $("", !0),
216
- y(a.$slots, "default"),
217
- a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
218
- me(N(e.label), 1)
204
+ a.loading ? (r(), p("div", _t, [
205
+ F(m(xe), { size: 20 })
206
+ ])) : x("", !0),
207
+ L("span", kt, [
208
+ a.iconOnRight ? (r(), p(K, { key: 0 }, [
209
+ ue(z(e.label), 1)
210
+ ], 64)) : x("", !0),
211
+ h(a.$slots, "default"),
212
+ a.iconOnRight ? x("", !0) : (r(), p(K, { key: 1 }, [
213
+ ue(z(e.label), 1)
219
214
  ], 64))
220
215
  ])
221
- ], 10, mt));
216
+ ], 10, bt));
222
217
  }
223
- }), de = B(yt), bt = /* @__PURE__ */ L({
218
+ }), re = T($t), wt = /* @__PURE__ */ B({
224
219
  __name: "QIcon",
225
220
  props: {
226
221
  icon: {},
227
- type: { default: "svg" },
228
222
  size: { default: void 0 },
229
- class: { default: void 0 }
223
+ class: { default: void 0 },
224
+ type: { default: "svg" }
230
225
  },
231
226
  setup(o) {
232
- const t = o, e = g(() => {
227
+ const t = o, e = b(() => {
233
228
  switch (t.type) {
234
229
  case "svg":
235
- return Je;
230
+ return tt;
236
231
  case "font":
237
- return Ye;
232
+ return Je;
238
233
  case "img":
239
- return Ze;
234
+ return et;
240
235
  default:
241
236
  return;
242
237
  }
243
238
  });
244
- return (n, l) => (u(), I(Ke(e.value), {
239
+ return (n, l) => (r(), S(Be(e.value), {
245
240
  class: C(t.class),
246
241
  icon: t.icon,
247
242
  size: t.size
248
243
  }, null, 8, ["class", "icon", "size"]));
249
244
  }
250
- }), gt = /* @__PURE__ */ L({
245
+ }), qt = /* @__PURE__ */ B({
251
246
  __name: "QIconFont",
252
247
  props: {
253
248
  icon: {},
254
- library: { default: "" },
255
- variant: { default: "" },
256
249
  size: { default: void 0 },
257
- class: { default: void 0 }
250
+ class: { default: void 0 },
251
+ library: { default: "" },
252
+ variant: { default: "" }
258
253
  },
259
254
  setup(o) {
260
- const t = o, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
255
+ const t = o, e = b(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = b(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = b(() => ({
261
256
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
262
257
  }));
263
- return (s, i) => (u(), v("i", {
258
+ return (s, i) => (r(), p("i", {
264
259
  class: C(["q-icon", "q-icon__font", e.value, n.value, t.class]),
265
- style: ue(l.value)
260
+ style: ce(l.value)
266
261
  }, null, 6));
267
262
  }
268
- }), _t = ["src"], kt = /* @__PURE__ */ L({
263
+ }), xt = ["src"], Lt = /* @__PURE__ */ B({
269
264
  __name: "QIconImg",
270
265
  props: {
271
266
  icon: {},
@@ -273,16 +268,16 @@ const Ie = B(ct), mt = ["disabled"], vt = {
273
268
  class: {}
274
269
  },
275
270
  setup(o) {
276
- const t = o, e = g(() => ({
271
+ const t = o, e = b(() => ({
277
272
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
278
273
  }));
279
- return (n, l) => (u(), v("img", {
274
+ return (n, l) => (r(), p("img", {
280
275
  src: t.icon,
281
276
  class: C(["q-icon", "q-icon__img", t.class]),
282
- style: ue(e.value)
283
- }, null, 14, _t));
277
+ style: ce(e.value)
278
+ }, null, 14, xt));
284
279
  }
285
- }), ye = {}, wt = L({
280
+ }), ge = {}, It = B({
286
281
  name: "InlineSvg",
287
282
  emits: {
288
283
  loaded: (o) => typeof o == "object",
@@ -291,13 +286,11 @@ const Ie = B(ct), mt = ["disabled"], vt = {
291
286
  },
292
287
  inheritAttrs: !1,
293
288
  render() {
294
- if (!this.svgElSource)
295
- return null;
289
+ if (!this.svgElSource) return null;
296
290
  const o = this.getSvgContent(this.svgElSource);
297
- if (!o)
298
- return Ae("div", this.$attrs);
291
+ if (!o) return ze("div", this.$attrs);
299
292
  const t = {};
300
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Ae("svg", t);
293
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, ze("svg", t);
301
294
  },
302
295
  props: {
303
296
  /**
@@ -350,16 +343,14 @@ const Ie = B(ct), mt = ["disabled"], vt = {
350
343
  methods: {
351
344
  copySvgAttrs(o, t) {
352
345
  const e = t.attributes;
353
- if (e)
354
- for (const n of e)
355
- o[n.name] = n.value;
346
+ if (e) for (const n of e) o[n.name] = n.value;
356
347
  },
357
348
  copyComponentAttrs(o, t) {
358
349
  for (const [e, n] of Object.entries(t))
359
350
  n !== !1 && n !== null && n !== void 0 && (o[e] = n);
360
351
  },
361
352
  getSvgContent(o) {
362
- return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), $t(o, this.title)), o);
353
+ return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), St(o, this.title)), o);
363
354
  },
364
355
  /**
365
356
  * Get svgElSource
@@ -367,11 +358,11 @@ const Ie = B(ct), mt = ["disabled"], vt = {
367
358
  */
368
359
  async getSource(o) {
369
360
  try {
370
- ye[o] || (ye[o] = qt(this.download(o))), this.svgElSource && ye[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
- const t = await ye[o];
361
+ ge[o] || (ge[o] = Bt(this.download(o))), this.svgElSource && ge[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
362
+ const t = await ge[o];
372
363
  this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
373
364
  } catch (t) {
374
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[o], this.$emit("error", t);
365
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ge[o], this.$emit("error", t);
375
366
  }
376
367
  },
377
368
  /**
@@ -381,11 +372,9 @@ const Ie = B(ct), mt = ["disabled"], vt = {
381
372
  */
382
373
  async download(o) {
383
374
  const t = await fetch(o);
384
- if (!t.ok)
385
- throw new Error("Error loading SVG");
375
+ if (!t.ok) throw new Error("Error loading SVG");
386
376
  const e = await t.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
387
- if (!s)
388
- throw new Error("Loaded file is not a valid SVG");
377
+ if (!s) throw new Error("Loaded file is not a valid SVG");
389
378
  return s;
390
379
  }
391
380
  },
@@ -396,7 +385,7 @@ const Ie = B(ct), mt = ["disabled"], vt = {
396
385
  },
397
386
  expose: []
398
387
  });
399
- function $t(o, t) {
388
+ function St(o, t) {
400
389
  const e = o.getElementsByTagName("title");
401
390
  if (e.length)
402
391
  e[0].textContent = t;
@@ -405,9 +394,8 @@ function $t(o, t) {
405
394
  n.textContent = t, o.insertBefore(n, o.firstChild);
406
395
  }
407
396
  }
408
- function qt(o) {
409
- if (o.getIsPending)
410
- return o;
397
+ function Bt(o) {
398
+ if (o.getIsPending) return o;
411
399
  let t = !0;
412
400
  const e = o.then(
413
401
  (n) => (t = !1, n),
@@ -417,17 +405,17 @@ function qt(o) {
417
405
  );
418
406
  return e.getIsPending = () => t, e;
419
407
  }
420
- const It = /* @__PURE__ */ L({
408
+ const Ct = /* @__PURE__ */ B({
421
409
  __name: "QIconSvg",
422
410
  props: {
423
411
  icon: {},
424
- bundle: { default: "" },
425
412
  size: { default: void 0 },
426
- class: { default: void 0 }
413
+ class: { default: void 0 },
414
+ bundle: { default: "" }
427
415
  },
428
416
  emits: ["loaded", "unloaded"],
429
417
  setup(o, { emit: t }) {
430
- const e = o, n = t, l = g(() => ({
418
+ const e = o, n = t, l = b(() => ({
431
419
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
432
420
  }));
433
421
  function s(a) {
@@ -436,47 +424,50 @@ const It = /* @__PURE__ */ L({
436
424
  function i() {
437
425
  n("unloaded");
438
426
  }
439
- return (a, r) => (u(), I(m(wt), {
427
+ return (a, d) => (r(), S(m(It), {
440
428
  class: C(["q-icon", "q-icon__svg", e.class]),
441
429
  src: e.bundle,
442
430
  symbol: e.icon,
443
- style: ue(l.value),
431
+ style: ce(l.value),
444
432
  onLoaded: s,
445
433
  onUnloaded: i
446
434
  }, null, 8, ["class", "src", "symbol", "style"]));
447
435
  }
448
- }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(It);
449
- function xt(o) {
436
+ }), N = T(wt), Je = T(qt), et = T(Lt), tt = T(Ct), Tt = {
437
+ remove: {
438
+ icon: "close"
439
+ }
440
+ };
441
+ function Vt(o) {
450
442
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
451
443
  }
452
- function Lt(o) {
444
+ function Et(o) {
453
445
  const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
446
  if (t) {
455
447
  const e = parseInt(t[1], 10), n = parseInt(t[2], 10), l = parseInt(t[3], 10);
456
448
  return { r: e, g: n, b: l };
457
449
  }
458
450
  }
459
- function et(o) {
460
- if (xt(o)) {
451
+ function ot(o) {
452
+ if (Vt(o)) {
461
453
  o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
462
454
  const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
463
455
  return { r: t, g: e, b: n };
464
456
  } else {
465
- const t = Lt(o);
466
- if (t)
467
- return t;
457
+ const t = Et(o);
458
+ if (t) return t;
468
459
  }
469
460
  throw new Error("Invalid color format");
470
461
  }
471
- function St(o) {
462
+ function Dt(o) {
472
463
  const t = o.r / 255, e = o.g / 255, n = o.b / 255, l = Math.max(t, e, n), s = Math.min(t, e, n);
473
464
  let i = 0, a;
474
- const r = (l + s) / 2;
465
+ const d = (l + s) / 2;
475
466
  if (l === s)
476
467
  i = a = 0;
477
468
  else {
478
469
  const f = l - s;
479
- switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
470
+ switch (a = d > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
480
471
  case t:
481
472
  i = (e - n) / f + (e < n ? 6 : 0);
482
473
  break;
@@ -492,17 +483,13 @@ function St(o) {
492
483
  return {
493
484
  h: Math.round(i * 360),
494
485
  s: Math.round(a * 100),
495
- l: Math.round(r * 100)
486
+ l: Math.round(d * 100)
496
487
  };
497
488
  }
498
- function Bt(o) {
489
+ function At(o) {
499
490
  return o > 50 ? "#000" : "#fff";
500
491
  }
501
- const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Vt = { class: "q-badge__content" }, Tt = {
502
- remove: {
503
- icon: "close"
504
- }
505
- }, Et = /* @__PURE__ */ L({
492
+ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), Ft = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
506
493
  __name: "QBadge",
507
494
  props: {
508
495
  color: { default: "primary" },
@@ -513,52 +500,52 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
513
500
  },
514
501
  emits: ["click:remove"],
515
502
  setup(o, { emit: t }) {
516
- const e = o, n = t, l = g(
503
+ const e = o, n = t, l = b(
517
504
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
518
- ), s = g(() => {
519
- const r = l.value ? `q-badge--${e.color}` : void 0;
520
- return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
521
- }), i = g(() => {
522
- let r, f;
505
+ ), s = b(() => {
506
+ const d = l.value ? `q-badge--${e.color}` : void 0;
507
+ return ["q-badge", `q-badge--${e.variant}`, d, { "q-badge--pill": e.pill }];
508
+ }), i = b(() => {
509
+ let d, f;
523
510
  if (!l.value)
524
- if (r = e.color, e.variant === "tonal")
511
+ if (d = e.color, e.variant === "tonal")
525
512
  f = e.color;
526
513
  else {
527
- const q = et(r), x = St(q);
528
- f = Bt(x.l);
514
+ const $ = ot(d), I = Dt($);
515
+ f = At(I.l);
529
516
  }
530
517
  return {
531
- "--q-badge-color": r,
518
+ "--q-badge-color": d,
532
519
  "--q-badge-text-color": f
533
520
  };
534
521
  });
535
522
  function a() {
536
523
  n("click:remove");
537
524
  }
538
- return (r, f) => (u(), v("span", {
525
+ return (d, f) => (r(), p("span", {
539
526
  class: C(s.value),
540
527
  role: "presentation",
541
- style: ue(i.value)
528
+ style: ce(i.value)
542
529
  }, [
543
- Ct,
544
- A("div", Vt, [
545
- y(r.$slots, "default"),
546
- e.removable ? (u(), I(m(de), {
530
+ Qt,
531
+ L("div", Ft, [
532
+ h(d.$slots, "default"),
533
+ e.removable ? (r(), S(m(re), {
547
534
  key: 0,
548
535
  class: "q-badge__remove",
549
536
  borderless: "",
550
537
  tabindex: "0",
551
538
  onClick: a
552
539
  }, {
553
- default: k(() => [
554
- z(m(F), G(se(e.internals.icons.remove)), null, 16)
540
+ default: _(() => [
541
+ F(m(N), j(ne(e.internals.icons.remove)), null, 16)
555
542
  ]),
556
543
  _: 1
557
- })) : $("", !0)
544
+ })) : x("", !0)
558
545
  ])
559
546
  ], 6));
560
547
  }
561
- }), Dt = B(Et), At = /* @__PURE__ */ L({
548
+ }), Mt = T(zt), Pt = /* @__PURE__ */ B({
562
549
  __name: "QButtonGroup",
563
550
  props: {
564
551
  disabled: { type: Boolean },
@@ -568,14 +555,14 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
568
555
  },
569
556
  setup(o) {
570
557
  const t = o;
571
- return Re({
558
+ return Xe({
572
559
  QButton: {
573
560
  bStyle: "secondary",
574
- disabled: ze(t, "disabled"),
575
- borderless: ze(t, "borderless"),
561
+ disabled: Me(t, "disabled"),
562
+ borderless: Me(t, "borderless"),
576
563
  elevated: !1
577
564
  }
578
- }), (e, n) => (u(), v("div", {
565
+ }), (e, n) => (r(), p("div", {
579
566
  class: C([
580
567
  "q-btn-group",
581
568
  {
@@ -584,12 +571,12 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
584
571
  t.class
585
572
  ])
586
573
  }, [
587
- y(e.$slots, "default")
574
+ h(e.$slots, "default")
588
575
  ], 2));
589
576
  }
590
- }), tt = B(At), zt = /* @__PURE__ */ L({
577
+ }), nt = T(Pt), Ot = /* @__PURE__ */ B({
591
578
  __name: "QButtonToggle",
592
- props: /* @__PURE__ */ X({
579
+ props: /* @__PURE__ */ Z({
593
580
  options: {},
594
581
  disabled: { type: Boolean },
595
582
  borderless: { type: Boolean },
@@ -602,27 +589,27 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
602
589
  }),
603
590
  emits: ["update:modelValue"],
604
591
  setup(o) {
605
- const t = o, e = ee(o, "modelValue");
592
+ const t = o, e = oe(o, "modelValue");
606
593
  function n(l) {
607
594
  e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
608
595
  }
609
- return (l, s) => (u(), I(m(tt), {
596
+ return (l, s) => (r(), S(m(nt), {
610
597
  "b-style": "secondary",
611
598
  class: C(t.class),
612
599
  disabled: t.disabled,
613
600
  borderless: t.borderless,
614
601
  elevated: t.elevated
615
602
  }, {
616
- default: k(() => [
617
- (u(!0), v(te, null, we(t.options, (i) => (u(), I(m(de), {
603
+ default: _(() => [
604
+ (r(!0), p(K, null, he(t.options, (i) => (r(), S(m(re), {
618
605
  key: i.key,
619
606
  title: i.title,
620
607
  label: i.label,
621
608
  active: e.value === i.key,
622
609
  onClick: () => n(i)
623
610
  }, {
624
- default: k(() => [
625
- y(l.$slots, i.key)
611
+ default: _(() => [
612
+ h(l.$slots, i.key)
626
613
  ]),
627
614
  _: 2
628
615
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -630,9 +617,9 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
630
617
  _: 3
631
618
  }, 8, ["class", "disabled", "borderless", "elevated"]));
632
619
  }
633
- }), Qt = B(zt), Mt = /* @__PURE__ */ L({
620
+ }), Ut = T(Ot), Nt = /* @__PURE__ */ B({
634
621
  __name: "QList",
635
- props: /* @__PURE__ */ X({
622
+ props: /* @__PURE__ */ Z({
636
623
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
637
624
  items: {},
638
625
  groups: { default: () => [] },
@@ -649,142 +636,142 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
649
636
  }),
650
637
  emits: ["update:modelValue"],
651
638
  setup(o, { expose: t }) {
652
- const e = o, n = ee(o, "modelValue"), l = T(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
653
- (p) => e.items.some((_) => _.group === p.id)
654
- ) : [{ id: "", title: "" }]), a = T(null);
655
- function r(p) {
656
- n.value = p;
639
+ const e = o, n = oe(o, "modelValue"), l = E(!1), s = b(() => i.value.length > 1 ? "div" : "ul"), i = b(() => e.groups.length ? e.groups.filter(
640
+ (v) => e.items.some((w) => w.group === v.id)
641
+ ) : [{ id: "", title: "" }]), a = E(null);
642
+ function d(v) {
643
+ n.value = v;
657
644
  }
658
645
  function f() {
659
646
  l.value = !0;
660
647
  }
661
- function q() {
648
+ function $() {
662
649
  l.value = !1;
663
650
  }
664
- function x(p) {
665
- var h;
666
- if ((h = a.value) != null && h.contains(p.relatedTarget))
651
+ function I(v) {
652
+ var g;
653
+ if ((g = a.value) != null && g.contains(v.relatedTarget))
667
654
  return;
668
- let _;
669
- n.value ? _ = e.items.findIndex((U) => U[e.itemValue] === n.value) : _ = R();
670
- const c = l.value;
671
- S(_, c);
655
+ let w;
656
+ n.value ? w = e.items.findIndex((G) => G[e.itemValue] === n.value) : w = P();
657
+ const u = l.value;
658
+ V(w, u);
672
659
  }
673
- function M(p) {
674
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
660
+ function M(v) {
661
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
675
662
  case "ArrowDown":
676
- E("next");
663
+ A("next");
677
664
  break;
678
665
  case "ArrowUp":
679
- E("prev");
666
+ A("prev");
680
667
  break;
681
668
  case "Home":
682
- E("first");
669
+ A("first");
683
670
  break;
684
671
  case "End":
685
- E("last");
672
+ A("last");
686
673
  break;
687
674
  }
688
675
  }
689
- function E(p) {
690
- switch (p) {
676
+ function A(v) {
677
+ switch (v) {
691
678
  case "next":
692
679
  case "prev":
693
- S(H(p));
680
+ V(W(v));
694
681
  break;
695
682
  case "first":
696
- S(R());
683
+ V(P());
697
684
  break;
698
685
  case "last":
699
- S(O());
686
+ V(H());
700
687
  break;
701
688
  }
702
689
  }
703
- function S(p, _ = !1) {
704
- var h;
705
- (h = V()[p]) == null || h.focus({ preventScroll: _ });
690
+ function V(v, w = !1) {
691
+ var g;
692
+ (g = y()[v]) == null || g.focus({ preventScroll: w });
706
693
  }
707
- function V() {
708
- var _;
709
- const p = (_ = a.value) == null ? void 0 : _.querySelectorAll("li");
710
- return p ? Array.from(p) : [];
694
+ function y() {
695
+ var w;
696
+ const v = (w = a.value) == null ? void 0 : w.querySelectorAll("li");
697
+ return v ? Array.from(v) : [];
711
698
  }
712
- function Y(p) {
713
- return V()[p];
699
+ function D(v) {
700
+ return y()[v];
714
701
  }
715
- function oe() {
716
- return V().indexOf(document.activeElement);
702
+ function O() {
703
+ return y().indexOf(document.activeElement);
717
704
  }
718
- function R() {
719
- const p = V(), _ = p.find((c) => Q(c));
720
- return _ ? p.indexOf(_) : -1;
705
+ function P() {
706
+ const v = y(), w = v.find((u) => U(u));
707
+ return w ? v.indexOf(w) : -1;
721
708
  }
722
- function O() {
723
- const p = V(), _ = [...p].reverse().find((c) => Q(c));
724
- return _ ? p.indexOf(_) : -1;
725
- }
726
- function ne(p, _, c) {
727
- return _ === "prev" && p === 0 || _ === "next" && p === c.length - 1;
728
- }
729
- function H(p) {
730
- const _ = oe();
731
- return le(_, p);
732
- }
733
- function le(p, _) {
734
- const c = V();
735
- if (ne(p, _, c))
736
- return p;
737
- let h = p + (_ === "next" ? 1 : -1);
738
- for (; !Q(c[h]); ) {
739
- if (ne(h, _, c))
740
- return p;
741
- h += _ === "next" ? 1 : -1;
709
+ function H() {
710
+ const v = y(), w = [...v].reverse().find((u) => U(u));
711
+ return w ? v.indexOf(w) : -1;
712
+ }
713
+ function le(v, w, u) {
714
+ return w === "prev" && v === 0 || w === "next" && v === u.length - 1;
715
+ }
716
+ function W(v) {
717
+ const w = O();
718
+ return se(w, v);
719
+ }
720
+ function se(v, w) {
721
+ const u = y();
722
+ if (le(v, w, u))
723
+ return v;
724
+ let g = v + (w === "next" ? 1 : -1);
725
+ for (; !U(u[g]); ) {
726
+ if (le(g, w, u))
727
+ return v;
728
+ g += w === "next" ? 1 : -1;
742
729
  }
743
- return h;
730
+ return g;
744
731
  }
745
- function Q(p) {
746
- return p.tabIndex === -2;
732
+ function U(v) {
733
+ return v.tabIndex === -2;
747
734
  }
748
- function W(p) {
749
- return p ? e.items.filter((_) => _.group === p) : e.items;
735
+ function Y(v) {
736
+ return v ? e.items.filter((w) => w.group === v) : e.items;
750
737
  }
751
738
  return t({
752
- focusItem: S,
753
- getItem: Y,
754
- getAdjacentItemIndex: le,
755
- getFirstFocusableItemIndex: R,
756
- getLastFocusableItemIndex: O
757
- }), (p, _) => (u(), I(Ke(s.value), {
739
+ focusItem: V,
740
+ getItem: D,
741
+ getAdjacentItemIndex: se,
742
+ getFirstFocusableItemIndex: P,
743
+ getLastFocusableItemIndex: H
744
+ }), (v, w) => (r(), S(Be(s.value), {
758
745
  ref_key: "listRef",
759
746
  ref: a,
760
747
  class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
761
748
  role: "listbox",
762
749
  tabindex: e.disabled ? -1 : 0,
763
- onFocus: x,
750
+ onFocus: I,
764
751
  onMousedown: f,
765
- onMouseup: q,
752
+ onMouseup: $,
766
753
  onKeydown: M
767
754
  }, {
768
- default: k(() => [
769
- (u(!0), v(te, null, we(i.value, (c) => (u(), I(m(nt), {
770
- key: c.id,
771
- id: c.id,
772
- title: i.value.length === 1 ? void 0 : c.title
755
+ default: _(() => [
756
+ (r(!0), p(K, null, he(i.value, (u) => (r(), S(m(st), {
757
+ key: u.id,
758
+ id: u.id,
759
+ title: i.value.length === 1 ? void 0 : u.title
773
760
  }, {
774
- default: k(() => [
775
- (u(!0), v(te, null, we(W(c.id), (h) => (u(), I(m(ot), {
776
- key: h[e.itemValue],
777
- value: h[e.itemValue],
778
- label: h[e.itemLabel],
779
- description: h.description,
780
- icon: h.icon,
781
- disabled: e.disabled || c.disabled || h.disabled,
782
- highlighted: e.highlighted === h[e.itemValue],
783
- selected: p.selectable && n.value === h[e.itemValue],
784
- onSelect: r
761
+ default: _(() => [
762
+ (r(!0), p(K, null, he(Y(u.id), (g) => (r(), S(m(lt), {
763
+ key: g[e.itemValue],
764
+ value: g[e.itemValue],
765
+ label: g[e.itemLabel],
766
+ description: g.description,
767
+ icon: g.icon,
768
+ disabled: e.disabled || u.disabled || g.disabled,
769
+ highlighted: e.highlighted === g[e.itemValue],
770
+ selected: v.selectable && n.value === g[e.itemValue],
771
+ onSelect: d
785
772
  }, {
786
- default: k(() => [
787
- y(p.$slots, "item", { item: h })
773
+ default: _(() => [
774
+ h(v.$slots, "item", { item: g })
788
775
  ]),
789
776
  _: 2
790
777
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -795,22 +782,22 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), V
795
782
  _: 3
796
783
  }, 40, ["class", "tabindex"]));
797
784
  }
798
- });
799
- let Ft = 0;
800
- function ve(o) {
801
- return o || `uid-${++Ft}`;
802
- }
803
- const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
804
- key: 0,
805
- class: "q-list-item__description"
806
- }, Ht = { class: "q-list-item__check-container" }, Kt = {
785
+ }), Ht = {
807
786
  check: {
808
787
  icon: "check"
809
788
  },
810
789
  description: {
811
790
  icon: "information-outline"
812
791
  }
813
- }, jt = /* @__PURE__ */ L({
792
+ };
793
+ let Gt = 0;
794
+ function fe(o) {
795
+ return o || `uid-${++Gt}`;
796
+ }
797
+ const Rt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Kt = { class: "q-list-item__container" }, jt = { class: "q-list-item__content" }, Wt = {
798
+ key: 0,
799
+ class: "q-list-item__description"
800
+ }, Xt = { class: "q-list-item__check-container" }, Yt = /* @__PURE__ */ B({
814
801
  __name: "QListItem",
815
802
  props: {
816
803
  value: { type: [String, Number, Boolean, Symbol] },
@@ -820,18 +807,18 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
820
807
  highlighted: { type: Boolean },
821
808
  disabled: { type: Boolean },
822
809
  description: { default: void 0 },
823
- internals: { default: () => ({ icons: Kt }) }
810
+ internals: { default: () => ({ icons: Ht }) }
824
811
  },
825
812
  emits: ["select"],
826
813
  setup(o, { emit: t }) {
827
- const e = o, n = t, l = ve();
814
+ const e = o, n = t, l = fe();
828
815
  function s() {
829
816
  e.disabled || n("select", e.value);
830
817
  }
831
818
  function i(a) {
832
819
  a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
833
820
  }
834
- return (a, r) => (u(), v("li", {
821
+ return (a, d) => (r(), p("li", {
835
822
  id: m(l),
836
823
  "data-key": e.value,
837
824
  role: "option",
@@ -847,107 +834,107 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
847
834
  "aria-label": e.label,
848
835
  "aria-selected": e.disabled ? void 0 : e.selected,
849
836
  onKeydown: i,
850
- onClick: pe(s, ["stop", "prevent"])
837
+ onClick: ve(s, ["stop", "prevent"])
851
838
  }, [
852
- A("div", Ut, [
853
- A("div", Pt, [
854
- y(a.$slots, "default", {}, () => [
855
- e.icon ? (u(), I(m(F), G(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
856
- me(" " + N(e.label), 1)
839
+ L("div", Kt, [
840
+ L("div", jt, [
841
+ h(a.$slots, "default", {}, () => [
842
+ e.icon ? (r(), S(m(N), j(ie({ key: 0 }, e.icon)), null, 16)) : x("", !0),
843
+ ue(" " + z(e.label), 1)
857
844
  ])
858
845
  ]),
859
- e.description ? (u(), v("div", Nt, [
860
- z(m(F), G(se(e.internals.icons.description)), null, 16),
861
- A("span", null, N(e.description), 1)
862
- ])) : $("", !0)
846
+ e.description ? (r(), p("div", Wt, [
847
+ F(m(N), j(ne(e.internals.icons.description)), null, 16),
848
+ L("span", null, z(e.description), 1)
849
+ ])) : x("", !0)
863
850
  ]),
864
- A("div", Ht, [
865
- e.selected ? (u(), I(m(F), re({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
851
+ L("div", Xt, [
852
+ e.selected ? (r(), S(m(N), ie({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }), null, 16)) : x("", !0)
866
853
  ])
867
- ], 42, Ot));
854
+ ], 42, Rt));
868
855
  }
869
- }), Gt = ["data-key", "aria-labelledby"], Rt = ["id"], Wt = /* @__PURE__ */ L({
856
+ }), Zt = ["data-key", "aria-labelledby"], Jt = ["id"], eo = /* @__PURE__ */ B({
870
857
  __name: "QListItemGroup",
871
858
  props: {
872
859
  id: {},
873
860
  title: { default: "" }
874
861
  },
875
862
  setup(o) {
876
- const t = o, e = ve();
877
- return (n, l) => (u(), v("ul", {
863
+ const t = o, e = fe();
864
+ return (n, l) => (r(), p("ul", {
878
865
  class: "q-list-item-group",
879
866
  role: "group",
880
867
  "data-key": t.id,
881
868
  "aria-labelledby": t.title ? m(e) : void 0
882
869
  }, [
883
- t.title ? (u(), v("li", {
870
+ t.title ? (r(), p("li", {
884
871
  key: 0,
885
872
  id: m(e),
886
873
  class: "q-list-item-group__title",
887
874
  role: "presentation"
888
- }, N(t.title), 9, Rt)) : $("", !0),
889
- y(n.$slots, "default")
890
- ], 8, Gt));
875
+ }, z(t.title), 9, Jt)) : x("", !0),
876
+ h(n.$slots, "default")
877
+ ], 8, Zt));
891
878
  }
892
- }), Ve = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
893
- function Xt(o, t, e, n) {
894
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), x = Jt(q, f, l), M = Zt(x, a, f);
895
- let E;
879
+ }), Ve = T(Nt), lt = T(Yt), st = T(eo), $e = 8;
880
+ function to(o, t, e, n) {
881
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), d = e == null ? void 0 : e.getBoundingClientRect(), f = oo(i, a, s, l), $ = ao(i, a, f), I = lo($, f, l), M = no(I, a, f);
882
+ let A;
896
883
  if (n != null && n.arrow) {
897
- if (!r)
884
+ if (!d)
898
885
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
899
- E = eo(M, i, a, r, f);
886
+ A = so(M, i, a, d, f);
900
887
  }
901
- return { overlayCoords: M, arrowCoords: E, placement: f };
888
+ return { overlayCoords: M, arrowCoords: A, placement: f };
902
889
  }
903
- function Yt(o, t, e, n) {
904
- const l = Fe(o, t, e, n);
905
- if (Oe(l)) {
906
- const s = ge(e), a = {
890
+ function oo(o, t, e, n) {
891
+ const l = Ue(o, t, e, n);
892
+ if (Ne(l)) {
893
+ const s = _e(e), a = {
907
894
  top: "bottom",
908
895
  bottom: "top",
909
896
  left: "right",
910
897
  right: "left"
911
- }[s], r = Fe(
898
+ }[s], d = Ue(
912
899
  o,
913
900
  t,
914
901
  a,
915
902
  n
916
903
  );
917
- if (Oe(r))
904
+ if (Ne(d))
918
905
  return e;
919
- const f = lo(e);
906
+ const f = co(e);
920
907
  return f ? `${a}-${f}` : a;
921
908
  }
922
909
  return e;
923
910
  }
924
- function Zt(o, t, e) {
925
- const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...o };
926
- return n === "x" ? s.x = l(o.x, ke, window.innerWidth - t.width - ke) : s.y = l(o.y, ke, window.innerHeight - t.height - ke), s;
911
+ function no(o, t, e) {
912
+ const n = we(e), l = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...o };
913
+ return n === "x" ? s.x = l(o.x, $e, window.innerWidth - t.width - $e) : s.y = l(o.y, $e, window.innerHeight - t.height - $e), s;
927
914
  }
928
- function Jt(o, t, e) {
929
- const n = ge(t);
915
+ function lo(o, t, e) {
916
+ const n = _e(t);
930
917
  return {
931
918
  x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
932
919
  y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
933
920
  };
934
921
  }
935
- function eo(o, t, e, n, l) {
936
- if ($e(l) === "y") {
937
- const i = t.top + t.height / 2, a = o.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
922
+ function so(o, t, e, n, l) {
923
+ if (we(l) === "y") {
924
+ const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i, f = e.height / 2 - d - n.height / 2 + 2;
938
925
  if (f > 0 && f < e.height - n.height)
939
926
  return {
940
927
  y: f
941
928
  };
942
929
  } else {
943
- const i = t.left + t.width / 2, a = o.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
930
+ const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i, f = e.width / 2 - d - n.width / 2 + 2;
944
931
  if (f > 0 && f < e.width - n.width)
945
932
  return {
946
933
  x: f
947
934
  };
948
935
  }
949
936
  }
950
- function to(o, t, e) {
937
+ function ao(o, t, e) {
951
938
  const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
952
939
  let a;
953
940
  switch (n) {
@@ -968,21 +955,21 @@ function to(o, t, e) {
968
955
  }
969
956
  if (!l)
970
957
  return a;
971
- const f = $e(e) === "y" ? "height" : "width", q = $e(e), x = o[f] / 2 - t[f] / 2;
958
+ const f = we(e) === "y" ? "height" : "width", $ = we(e), I = o[f] / 2 - t[f] / 2;
972
959
  switch (l) {
973
960
  case "start":
974
- a[q] -= x;
961
+ a[$] -= I;
975
962
  break;
976
963
  case "end":
977
- a[q] += x;
964
+ a[$] += I;
978
965
  break;
979
966
  default:
980
967
  throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
981
968
  }
982
969
  return a;
983
970
  }
984
- function Fe(o, t, e, n) {
985
- const l = ge(e);
971
+ function Ue(o, t, e, n) {
972
+ const l = _e(e);
986
973
  let s = 0;
987
974
  switch (l) {
988
975
  case "top":
@@ -1002,34 +989,34 @@ function Fe(o, t, e, n) {
1002
989
  }
1003
990
  return s;
1004
991
  }
1005
- function oo(o) {
992
+ function io(o) {
1006
993
  return o === "x" ? "y" : "x";
1007
994
  }
1008
- function no(o) {
1009
- const t = ge(o);
995
+ function ro(o) {
996
+ const t = _e(o);
1010
997
  return ["left", "right"].includes(t) ? "x" : "y";
1011
998
  }
1012
- function $e(o) {
1013
- return oo(no(o));
999
+ function we(o) {
1000
+ return io(ro(o));
1014
1001
  }
1015
- function ge(o) {
1002
+ function _e(o) {
1016
1003
  const [t] = o.split("-");
1017
1004
  return t;
1018
1005
  }
1019
- function lo(o) {
1006
+ function co(o) {
1020
1007
  const [, t] = o.split("-");
1021
1008
  return t;
1022
1009
  }
1023
- function Oe(o) {
1010
+ function Ne(o) {
1024
1011
  return o < 0;
1025
1012
  }
1026
- function ao(o) {
1013
+ function uo(o) {
1027
1014
  return typeof o == "string" ? document.querySelector(o) : o;
1028
1015
  }
1029
- const so = ["role"], io = /* @__PURE__ */ L({
1016
+ const fo = ["role"], po = /* @__PURE__ */ B({
1030
1017
  inheritAttrs: !1,
1031
1018
  __name: "QOverlay",
1032
- props: /* @__PURE__ */ X({
1019
+ props: /* @__PURE__ */ Z({
1033
1020
  anchor: { default: void 0 },
1034
1021
  appearance: { default: "regular" },
1035
1022
  arrow: { type: Boolean },
@@ -1052,219 +1039,218 @@ const so = ["role"], io = /* @__PURE__ */ L({
1052
1039
  modelValue: { type: Boolean },
1053
1040
  modelModifiers: {}
1054
1041
  }),
1055
- emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
1042
+ emits: /* @__PURE__ */ Z(["enter", "leave"], ["update:modelValue"]),
1056
1043
  setup(o, { emit: t }) {
1057
- const e = o, n = t, l = ee(o, "modelValue"), s = g(() => [
1044
+ const e = o, n = t, l = oe(o, "modelValue"), s = b(() => [
1058
1045
  "q-overlay",
1059
- `q-overlay--${ge(a.placement)}`,
1046
+ `q-overlay--${_e(a.placement)}`,
1060
1047
  {
1061
1048
  "q-overlay--independent": e.anchor === void 0,
1062
1049
  "q-overlay--inverted": e.appearance === "inverted"
1063
1050
  },
1064
1051
  e.class
1065
- ]), i = g(() => (l.value || a.animating) && !e.nonModal), a = Qe({
1052
+ ]), i = b(() => (l.value || a.animating) && !e.nonModal), a = Pe({
1066
1053
  animating: !1,
1067
1054
  top: 0,
1068
1055
  left: 0,
1069
1056
  width: 0,
1070
1057
  placement: e.placement
1071
- }), r = Qe({
1058
+ }), d = Pe({
1072
1059
  top: void 0,
1073
1060
  left: void 0,
1074
1061
  hidden: !0
1075
- }), f = g(() => a.top !== 0 && a.left !== 0);
1076
- Z(l, () => a.animating = !0);
1077
- const q = g(() => {
1078
- if (e.anchor === void 0)
1079
- return;
1080
- const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
1062
+ }), f = b(() => a.top !== 0 && a.left !== 0);
1063
+ ee(l, () => a.animating = !0);
1064
+ const $ = b(() => {
1065
+ if (e.anchor === void 0) return;
1066
+ const k = U(), pe = e.width === "anchor", X = pe ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
1081
1067
  return {
1082
1068
  top: `${a.top}px`,
1083
1069
  left: `${a.left}px`,
1084
- width: j !== void 0 ? `${j}px` : void 0
1070
+ width: X !== void 0 ? `${X}px` : void 0
1085
1071
  };
1086
- }), x = g(() => {
1072
+ }), I = b(() => {
1087
1073
  if (e.arrow)
1088
1074
  return {
1089
- top: r.top !== void 0 ? `${r.top}px` : void 0,
1090
- left: r.left !== void 0 ? `${r.left}px` : void 0,
1091
- opacity: r.hidden ? 0 : 1
1075
+ top: d.top !== void 0 ? `${d.top}px` : void 0,
1076
+ left: d.left !== void 0 ? `${d.left}px` : void 0,
1077
+ opacity: d.hidden ? 0 : 1
1092
1078
  };
1093
- }), M = T(null), E = T(null);
1094
- function S() {
1095
- const b = Q();
1096
- if (!b || !E.value)
1079
+ }), M = E(null), A = E(null);
1080
+ function V() {
1081
+ const k = U();
1082
+ if (!k || !A.value)
1097
1083
  return;
1098
- const ce = {
1084
+ const pe = {
1099
1085
  placement: e.placement,
1100
1086
  width: e.width,
1101
1087
  offset: e.offset,
1102
1088
  arrow: e.arrow
1103
- }, j = Xt(
1104
- b,
1105
- E.value,
1089
+ }, X = to(
1090
+ k,
1091
+ A.value,
1106
1092
  (M == null ? void 0 : M.value) ?? void 0,
1107
- ce
1093
+ pe
1108
1094
  );
1109
- a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
1095
+ a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement, d.hidden = X.arrowCoords === void 0, X.arrowCoords && (d.top = X.arrowCoords.y, d.left = X.arrowCoords.x);
1110
1096
  }
1111
- Z(
1097
+ ee(
1112
1098
  () => e.placement,
1113
- () => J(S)
1099
+ () => te(V)
1114
1100
  );
1115
- let V;
1116
- function Y() {
1117
- R(0);
1101
+ let y;
1102
+ function D() {
1103
+ P(0);
1118
1104
  }
1119
- function oe() {
1120
- R(e.delay);
1105
+ function O() {
1106
+ P(e.delay);
1121
1107
  }
1122
- function R(b) {
1123
- V || (V = window.setTimeout(() => {
1108
+ function P(k) {
1109
+ y || (y = window.setTimeout(() => {
1124
1110
  l.value = !0;
1125
- }, b));
1111
+ }, k));
1126
1112
  }
1127
- function O() {
1128
- if (clearTimeout(V), V = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1129
- const b = Q();
1130
- b == null || b.focus();
1113
+ function H() {
1114
+ if (clearTimeout(y), y = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1115
+ const k = U();
1116
+ k == null || k.focus();
1131
1117
  }
1132
1118
  }
1133
- Z(f, () => J(ne));
1134
- function ne() {
1119
+ ee(f, () => te(le));
1120
+ function le() {
1135
1121
  n("enter");
1136
1122
  }
1137
- let H;
1138
- function le() {
1139
- window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
1123
+ let W;
1124
+ function se() {
1125
+ window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200), n("leave");
1140
1126
  }
1141
- function Q() {
1142
- return e.anchor ? ao(e.anchor) : null;
1127
+ function U() {
1128
+ return e.anchor ? uo(e.anchor) : null;
1143
1129
  }
1144
- let W;
1145
- function p() {
1146
- const b = Q();
1147
- if (b)
1148
- switch (W = new MutationObserver(S), W.observe(b, {
1130
+ let Y;
1131
+ function v() {
1132
+ const k = U();
1133
+ if (k)
1134
+ switch (Y = new MutationObserver(V), Y.observe(k, {
1149
1135
  attributes: !1,
1150
1136
  childList: !0,
1151
1137
  characterData: !0,
1152
1138
  subtree: !0
1153
1139
  }), e.trigger) {
1154
1140
  case "click":
1155
- b.addEventListener("click", Y);
1141
+ k.addEventListener("click", D);
1156
1142
  break;
1157
1143
  case "hover":
1158
- b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
1144
+ k.addEventListener("mouseenter", O), k.addEventListener("mouseleave", H), k.addEventListener("focusin", D), k.addEventListener("focusout", H);
1159
1145
  break;
1160
1146
  }
1161
1147
  }
1162
- function _() {
1163
- const b = Q();
1164
- if (b)
1165
- switch (W == null || W.disconnect(), e.trigger) {
1148
+ function w() {
1149
+ const k = U();
1150
+ if (k)
1151
+ switch (Y == null || Y.disconnect(), e.trigger) {
1166
1152
  case "click":
1167
- b.removeEventListener("click", Y);
1153
+ k.removeEventListener("click", D);
1168
1154
  break;
1169
1155
  case "hover":
1170
- b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
1156
+ k.removeEventListener("mouseenter", O), k.removeEventListener("mouseleave", H), k.removeEventListener("focusin", D), k.removeEventListener("focusout", H);
1171
1157
  break;
1172
1158
  }
1173
1159
  }
1174
- function c() {
1175
- window.addEventListener("resize", S), e.scrollLock || window.addEventListener("scroll", S);
1160
+ function u() {
1161
+ window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
1176
1162
  }
1177
- function h() {
1178
- window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
1163
+ function g() {
1164
+ window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
1179
1165
  }
1180
- let U;
1166
+ let G;
1181
1167
  function ae() {
1182
- Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
1168
+ U() ? (V(), G = window.setTimeout(ae, 100)) : H();
1183
1169
  }
1184
- function K() {
1185
- c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
1186
- var b;
1187
- return (b = E.value) == null ? void 0 : b.focus();
1170
+ function J() {
1171
+ u(), e.spy ? ae() : V(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && te(() => {
1172
+ var k;
1173
+ return (k = A.value) == null ? void 0 : k.focus();
1188
1174
  });
1189
1175
  }
1190
- function ie() {
1191
- h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1176
+ function de() {
1177
+ g(), e.spy && (clearTimeout(G), G = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1192
1178
  }
1193
- function _e() {
1194
- e.persistent || O();
1179
+ function ke() {
1180
+ e.persistent || H();
1195
1181
  }
1196
1182
  return je(() => {
1197
- J(p);
1198
- }), at(() => {
1199
- _(), ie();
1200
- }), Z(
1183
+ te(v);
1184
+ }), ct(() => {
1185
+ w(), de();
1186
+ }), ee(
1201
1187
  l,
1202
- (b) => {
1203
- J(() => b ? K() : ie());
1188
+ (k) => {
1189
+ te(() => k ? J() : de());
1204
1190
  },
1205
1191
  { immediate: !0 }
1206
- ), (b, ce) => (u(), I(st, {
1192
+ ), (k, pe) => (r(), S(ut, {
1207
1193
  disabled: !l.value && !a.animating || e.inline,
1208
1194
  to: e.attach
1209
1195
  }, [
1210
- i.value ? (u(), v("div", {
1196
+ i.value ? (r(), p("div", {
1211
1197
  key: 0,
1212
1198
  class: C([
1213
1199
  e.backdropClass,
1214
1200
  "q-overlay__underlay",
1215
1201
  { "q-overlay__underlay--blur": e.backdropBlur }
1216
1202
  ])
1217
- }, null, 2)) : $("", !0),
1218
- z(it, {
1203
+ }, null, 2)) : x("", !0),
1204
+ F(ft, {
1219
1205
  name: e.transition,
1220
1206
  appear: "",
1221
- onLeave: le
1207
+ onLeave: se
1222
1208
  }, {
1223
- default: k(() => [
1224
- l.value ? (u(), v("div", {
1209
+ default: _(() => [
1210
+ l.value ? (r(), p("div", {
1225
1211
  key: 0,
1226
1212
  class: C(s.value),
1227
- style: ue(q.value)
1213
+ style: ce($.value)
1228
1214
  }, [
1229
- A("div", re({
1215
+ L("div", ie({
1230
1216
  class: "q-overlay__content",
1231
1217
  ref_key: "overlayRef",
1232
- ref: E,
1218
+ ref: A,
1233
1219
  tabindex: "-1",
1234
1220
  role: i.value ? "dialog" : void 0
1235
- }, b.$attrs, {
1236
- onKeydown: rt(_e, ["escape"]),
1237
- onBlur: _e
1221
+ }, k.$attrs, {
1222
+ onKeydown: pt(ke, ["escape"]),
1223
+ onBlur: ke
1238
1224
  }), [
1239
- e.arrow ? (u(), v("div", {
1225
+ e.arrow ? (r(), p("div", {
1240
1226
  key: 0,
1241
1227
  ref_key: "arrowRef",
1242
1228
  ref: M,
1243
1229
  role: "presentation",
1244
1230
  class: "q-overlay__arrow",
1245
- style: ue(x.value)
1246
- }, null, 4)) : $("", !0),
1247
- y(b.$slots, "default")
1248
- ], 16, so)
1249
- ], 6)) : $("", !0)
1231
+ style: ce(I.value)
1232
+ }, null, 4)) : x("", !0),
1233
+ h(k.$slots, "default")
1234
+ ], 16, fo)
1235
+ ], 6)) : x("", !0)
1250
1236
  ]),
1251
1237
  _: 3
1252
1238
  }, 8, ["name"])
1253
1239
  ], 8, ["disabled", "to"]));
1254
1240
  }
1255
- }), he = B(io), ro = ["id"], uo = {
1241
+ }), ye = T(po), mo = ["id"], vo = {
1256
1242
  key: 0,
1257
1243
  class: "q-field__label"
1258
- }, co = ["for"], fo = {
1244
+ }, ho = ["for"], yo = {
1259
1245
  key: 0,
1260
1246
  class: "q-field__prepend"
1261
- }, po = {
1247
+ }, go = {
1262
1248
  key: 1,
1263
1249
  class: "q-field__append"
1264
- }, mo = {
1250
+ }, bo = {
1265
1251
  key: 1,
1266
1252
  class: "q-field__extras"
1267
- }, vo = /* @__PURE__ */ L({
1253
+ }, _o = /* @__PURE__ */ B({
1268
1254
  inheritAttrs: !1,
1269
1255
  __name: "QField",
1270
1256
  props: {
@@ -1278,10 +1264,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1278
1264
  class: { default: void 0 }
1279
1265
  },
1280
1266
  setup(o, { expose: t }) {
1281
- const e = o, n = ve(e.id), l = T(null), s = g(() => e.required && !e.readonly && !e.disabled);
1267
+ const e = o, n = fe(e.id), l = E(null), s = b(() => e.required && !e.readonly && !e.disabled);
1282
1268
  return t({
1283
1269
  fieldRef: l
1284
- }), (i, a) => (u(), v("div", {
1270
+ }), (i, a) => (r(), p("div", {
1285
1271
  id: m(n),
1286
1272
  class: C([
1287
1273
  "q-field",
@@ -1294,37 +1280,37 @@ const so = ["role"], io = /* @__PURE__ */ L({
1294
1280
  e.class
1295
1281
  ])
1296
1282
  }, [
1297
- e.label ? (u(), v("div", uo, [
1298
- y(i.$slots, "label.prepend"),
1299
- A("label", {
1283
+ e.label ? (r(), p("div", vo, [
1284
+ h(i.$slots, "label.prepend"),
1285
+ L("label", {
1300
1286
  for: e.for
1301
- }, N(e.label), 9, co),
1302
- y(i.$slots, "label.append")
1303
- ])) : $("", !0),
1304
- y(i.$slots, "control", {}, () => [
1305
- A("div", re({
1287
+ }, z(e.label), 9, ho),
1288
+ h(i.$slots, "label.append")
1289
+ ])) : x("", !0),
1290
+ h(i.$slots, "control", {}, () => [
1291
+ L("div", ie({
1306
1292
  class: "q-field__control",
1307
1293
  ref_key: "fieldRef",
1308
1294
  ref: l
1309
1295
  }, i.$attrs), [
1310
- i.$slots.prepend ? (u(), v("div", fo, [
1311
- y(i.$slots, "prepend")
1312
- ])) : $("", !0),
1313
- y(i.$slots, "default"),
1314
- i.$slots.append ? (u(), v("div", po, [
1315
- y(i.$slots, "append")
1316
- ])) : $("", !0)
1296
+ i.$slots.prepend ? (r(), p("div", yo, [
1297
+ h(i.$slots, "prepend")
1298
+ ])) : x("", !0),
1299
+ h(i.$slots, "default"),
1300
+ i.$slots.append ? (r(), p("div", go, [
1301
+ h(i.$slots, "append")
1302
+ ])) : x("", !0)
1317
1303
  ], 16)
1318
1304
  ]),
1319
- i.$slots.extras ? (u(), v("div", mo, [
1320
- y(i.$slots, "extras")
1321
- ])) : $("", !0)
1322
- ], 10, ro));
1305
+ i.$slots.extras ? (r(), p("div", bo, [
1306
+ h(i.$slots, "extras")
1307
+ ])) : x("", !0)
1308
+ ], 10, mo));
1323
1309
  }
1324
- }), xe = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1310
+ }), Le = T(_o), ko = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], $o = /* @__PURE__ */ B({
1325
1311
  inheritAttrs: !1,
1326
1312
  __name: "QTextField",
1327
- props: /* @__PURE__ */ X({
1313
+ props: /* @__PURE__ */ Z({
1328
1314
  id: { default: void 0 },
1329
1315
  placeholder: { default: "" },
1330
1316
  label: { default: "" },
@@ -1342,16 +1328,16 @@ const so = ["role"], io = /* @__PURE__ */ L({
1342
1328
  }),
1343
1329
  emits: ["update:modelValue"],
1344
1330
  setup(o, { expose: t }) {
1345
- const e = o, n = ee(o, "modelValue"), l = ve(e.id), s = T(null), i = T(null), a = g(
1331
+ const e = o, n = oe(o, "modelValue"), l = fe(e.id), s = E(null), i = E(null), a = b(
1346
1332
  () => e.readonly || e.disabled ? "" : e.placeholder
1347
1333
  );
1348
1334
  return t({
1349
- fieldRef: g(() => {
1350
- var r;
1351
- return (r = s.value) == null ? void 0 : r.fieldRef;
1335
+ fieldRef: b(() => {
1336
+ var d;
1337
+ return (d = s.value) == null ? void 0 : d.fieldRef;
1352
1338
  }),
1353
1339
  inputRef: i
1354
- }), (r, f) => (u(), I(m(xe), {
1340
+ }), (d, f) => (r(), S(m(Le), {
1355
1341
  ref_key: "fieldRef",
1356
1342
  ref: s,
1357
1343
  class: C(["q-text-field", e.class]),
@@ -1362,15 +1348,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
1362
1348
  disabled: e.disabled,
1363
1349
  required: e.required
1364
1350
  }, qe({
1365
- "label.prepend": k(() => [
1366
- y(r.$slots, "label.prepend")
1351
+ "label.prepend": _(() => [
1352
+ h(d.$slots, "label.prepend")
1367
1353
  ]),
1368
- "label.append": k(() => [
1369
- y(r.$slots, "label.append")
1354
+ "label.append": _(() => [
1355
+ h(d.$slots, "label.append")
1370
1356
  ]),
1371
- default: k(() => [
1372
- dt(A("input", re({
1373
- "onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
1357
+ default: _(() => [
1358
+ mt(L("input", ie({
1359
+ "onUpdate:modelValue": f[0] || (f[0] = ($) => n.value = $),
1374
1360
  ref_key: "inputRef",
1375
1361
  ref: i,
1376
1362
  id: m(l),
@@ -1382,53 +1368,53 @@ const so = ["role"], io = /* @__PURE__ */ L({
1382
1368
  readonly: e.readonly,
1383
1369
  disabled: e.disabled,
1384
1370
  maxlength: e.maxLength
1385
- }, r.$attrs), null, 16, ho), [
1386
- [ut, n.value]
1371
+ }, d.$attrs), null, 16, ko), [
1372
+ [vt, n.value]
1387
1373
  ])
1388
1374
  ]),
1389
1375
  _: 2
1390
1376
  }, [
1391
- r.$slots.prepend ? {
1377
+ d.$slots.prepend ? {
1392
1378
  name: "prepend",
1393
- fn: k(() => [
1394
- y(r.$slots, "prepend")
1379
+ fn: _(() => [
1380
+ h(d.$slots, "prepend")
1395
1381
  ]),
1396
1382
  key: "0"
1397
1383
  } : void 0,
1398
- r.$slots.append ? {
1384
+ d.$slots.append ? {
1399
1385
  name: "append",
1400
- fn: k(() => [
1401
- y(r.$slots, "append")
1386
+ fn: _(() => [
1387
+ h(d.$slots, "append")
1402
1388
  ]),
1403
1389
  key: "1"
1404
1390
  } : void 0,
1405
- r.$slots.extras ? {
1391
+ d.$slots.extras ? {
1406
1392
  name: "extras",
1407
- fn: k(() => [
1408
- y(r.$slots, "extras")
1393
+ fn: _(() => [
1394
+ h(d.$slots, "extras")
1409
1395
  ]),
1410
1396
  key: "2"
1411
1397
  } : void 0
1412
1398
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1413
1399
  }
1414
- }), lt = B(yo), bo = ["data-key"], go = {
1415
- key: 0,
1416
- class: "q-select__loader"
1417
- }, _o = {
1418
- key: 2,
1419
- class: "q-select__loader"
1420
- }, ko = {
1400
+ }), at = T($o), wo = {
1421
1401
  noData: "No data available"
1422
- }, wo = {
1402
+ }, qo = {
1423
1403
  chevron: {
1424
1404
  icon: "chevron-down"
1425
1405
  },
1426
1406
  clear: {
1427
1407
  icon: "close"
1428
1408
  }
1429
- }, $o = /* @__PURE__ */ L({
1409
+ }, xo = ["data-key"], Lo = {
1410
+ key: 0,
1411
+ class: "q-select__loader"
1412
+ }, Io = {
1413
+ key: 2,
1414
+ class: "q-select__loader"
1415
+ }, So = /* @__PURE__ */ B({
1430
1416
  __name: "QCombobox",
1431
- props: /* @__PURE__ */ X({
1417
+ props: /* @__PURE__ */ Z({
1432
1418
  id: { default: void 0 },
1433
1419
  placeholder: { default: "" },
1434
1420
  selectionMode: { default: "automatic" },
@@ -1446,7 +1432,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1446
1432
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1447
1433
  size: { default: void 0 },
1448
1434
  class: { default: void 0 },
1449
- internals: { default: () => ({ icons: wo, texts: ko }) }
1435
+ internals: { default: () => ({ icons: qo, texts: wo }) }
1450
1436
  }, {
1451
1437
  modelValue: {
1452
1438
  type: [String, Number, Boolean, Symbol]
@@ -1457,153 +1443,151 @@ const so = ["role"], io = /* @__PURE__ */ L({
1457
1443
  search: { default: "" },
1458
1444
  searchModifiers: {}
1459
1445
  }),
1460
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1446
+ emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1461
1447
  setup(o, { expose: t, emit: e }) {
1462
- const n = o, l = e, s = ee(o, "modelValue"), i = ee(o, "open"), a = ee(o, "search"), r = T(void 0), f = T(null), q = T(null), x = T(null), M = T(null);
1463
- je(H);
1464
- const E = g(() => n.clearable && !n.readonly && !n.disabled), S = g(() => {
1465
- var d;
1466
- return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
1467
- (w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1448
+ const n = o, l = e, s = oe(o, "modelValue"), i = oe(o, "open"), a = oe(o, "search"), d = E(void 0), f = E(null), $ = E(null), I = E(null), M = E(null);
1449
+ je(W);
1450
+ const A = b(() => n.clearable && !n.readonly && !n.disabled), V = b(() => {
1451
+ var c;
1452
+ return n.filterMode === "manual" || !H.value ? n.items : (c = n.items) == null ? void 0 : c.filter(
1453
+ (q) => q[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1468
1454
  );
1469
- }), V = g(() => {
1470
- var d;
1471
- return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
1472
- }), Y = g(() => V.value === void 0), oe = g(() => {
1473
- const d = r.value;
1474
- if (d !== void 0 && S.value[d])
1475
- return S.value[d];
1476
- }), R = g(() => {
1477
- var w;
1478
- if (r.value === void 0)
1455
+ }), y = b(() => {
1456
+ var c;
1457
+ return (c = n.items) == null ? void 0 : c.find((q) => q[n.itemValue] === s.value);
1458
+ }), D = b(() => y.value === void 0), O = b(() => {
1459
+ const c = d.value;
1460
+ if (c !== void 0 && V.value[c])
1461
+ return V.value[c];
1462
+ }), P = b(() => {
1463
+ var q;
1464
+ if (d.value === void 0)
1479
1465
  return;
1480
- const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
1481
- return d == null ? void 0 : d.id;
1482
- }), O = g(() => {
1483
- var d;
1484
- return a.value.length > 0 && a.value !== ((d = V.value) == null ? void 0 : d[n.itemLabel]);
1466
+ const c = (q = $.value) == null ? void 0 : q.getItem(d.value);
1467
+ return c == null ? void 0 : c.id;
1468
+ }), H = b(() => {
1469
+ var c;
1470
+ return a.value.length > 0 && a.value !== ((c = y.value) == null ? void 0 : c[n.itemLabel]);
1485
1471
  });
1486
- function ne(d) {
1487
- s.value = d, Q();
1472
+ function le(c) {
1473
+ s.value = c, U();
1488
1474
  }
1489
- function H() {
1490
- var w;
1491
- const d = ((w = V.value) == null ? void 0 : w[n.itemLabel]) || "";
1492
- a.value !== d && (a.value = d);
1475
+ function W() {
1476
+ var q;
1477
+ const c = ((q = y.value) == null ? void 0 : q[n.itemLabel]) || "";
1478
+ a.value !== c && (a.value = c);
1493
1479
  }
1494
- function le() {
1495
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ie());
1480
+ function se() {
1481
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, de());
1496
1482
  }
1497
- function Q() {
1498
- i.value && (l("before-hide"), i.value = !1, r.value = void 0);
1483
+ function U() {
1484
+ i.value && (l("before-hide"), i.value = !1, d.value = void 0);
1499
1485
  }
1500
- function W() {
1501
- i.value ? Q() : _();
1486
+ function Y() {
1487
+ i.value ? U() : w();
1502
1488
  }
1503
- function p() {
1504
- E.value && (s.value = n.emptyValue, r.value = void 0, ie());
1489
+ function v() {
1490
+ A.value && (s.value = n.emptyValue, d.value = void 0, de());
1505
1491
  }
1506
- function _() {
1507
- if (le(), V.value !== void 0) {
1508
- const d = S.value.indexOf(V.value);
1509
- d !== -1 && J(() => j(d));
1492
+ function w() {
1493
+ if (se(), y.value !== void 0) {
1494
+ const c = V.value.indexOf(y.value);
1495
+ c !== -1 && te(() => X(c));
1510
1496
  }
1511
1497
  }
1512
- function c(d) {
1513
- var w, D;
1514
- if (!(!d.key || n.readonly || n.disabled))
1515
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
1516
- H(), i.value && Q();
1517
- else if (["ArrowDown", "ArrowUp"].includes(d.key))
1518
- i.value ? J(() => {
1519
- if (r.value === void 0)
1520
- h();
1498
+ function u(c) {
1499
+ var q, Q;
1500
+ if (!(!c.key || n.readonly || n.disabled))
1501
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
1502
+ W(), i.value && U();
1503
+ else if (["ArrowDown", "ArrowUp"].includes(c.key))
1504
+ i.value ? te(() => {
1505
+ if (d.value === void 0)
1506
+ g();
1521
1507
  else {
1522
- const P = d.key === "ArrowDown" ? "next" : "prev";
1523
- ae(r.value, P);
1508
+ const R = c.key === "ArrowDown" ? "next" : "prev";
1509
+ ae(d.value, R);
1524
1510
  }
1525
- }) : (le(), J(() => {
1526
- d.key === "ArrowDown" ? h() : U();
1511
+ }) : (se(), te(() => {
1512
+ c.key === "ArrowDown" ? g() : G();
1527
1513
  }));
1528
- else if (d.key === "Enter") {
1529
- if (oe.value === void 0)
1530
- return;
1531
- ne(oe.value[n.itemValue]);
1532
- } else
1533
- d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
1534
- }
1535
- function h() {
1536
- var d, w;
1537
- if (Y.value)
1538
- r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1514
+ else if (c.key === "Enter") {
1515
+ if (O.value === void 0) return;
1516
+ le(O.value[n.itemValue]);
1517
+ } else c.key === "Home" ? d.value = (q = $.value) == null ? void 0 : q.getFirstFocusableItemIndex() : c.key === "End" ? d.value = (Q = $.value) == null ? void 0 : Q.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && se();
1518
+ }
1519
+ function g() {
1520
+ var c, q;
1521
+ if (D.value)
1522
+ d.value = (q = $.value) == null ? void 0 : q.getFirstFocusableItemIndex();
1539
1523
  else {
1540
- const D = S.value.findIndex(
1541
- (P) => P[n.itemValue] === s.value
1524
+ const Q = V.value.findIndex(
1525
+ (R) => R[n.itemValue] === s.value
1542
1526
  );
1543
- D === -1 ? r.value = (d = q.value) == null ? void 0 : d.getFirstFocusableItemIndex() : r.value = D;
1527
+ Q === -1 ? d.value = (c = $.value) == null ? void 0 : c.getFirstFocusableItemIndex() : d.value = Q;
1544
1528
  }
1545
1529
  }
1546
- function U() {
1547
- var d;
1548
- r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
1530
+ function G() {
1531
+ var c;
1532
+ d.value = (c = $.value) == null ? void 0 : c.getLastFocusableItemIndex();
1549
1533
  }
1550
- function ae(d, w) {
1551
- var D;
1552
- r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
1534
+ function ae(c, q) {
1535
+ var Q;
1536
+ d.value = (Q = $.value) == null ? void 0 : Q.getAdjacentItemIndex(c, q);
1553
1537
  }
1554
- function K(d) {
1555
- var fe, Te, Ee, De;
1556
- const w = ((fe = x == null ? void 0 : x.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Te = f == null ? void 0 : f.value) == null ? void 0 : Te.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
1557
- if (w || P || D) {
1558
- d.preventDefault(), d.stopPropagation();
1538
+ function J(c) {
1539
+ var me, Ae, Qe, Fe;
1540
+ const q = ((me = I == null ? void 0 : I.value) == null ? void 0 : me.$el) === c.relatedTarget, Q = (Qe = (Ae = f == null ? void 0 : f.value) == null ? void 0 : Ae.$el) == null ? void 0 : Qe.contains(c.relatedTarget), R = (Fe = M == null ? void 0 : M.value) == null ? void 0 : Fe.contains(c.relatedTarget);
1541
+ if (q || R || Q) {
1542
+ c.preventDefault(), c.stopPropagation();
1559
1543
  return;
1560
1544
  }
1561
- Q(), E.value && !a.value && (s.value = n.emptyValue), H();
1545
+ U(), A.value && !a.value && (s.value = n.emptyValue), W();
1562
1546
  }
1563
- function ie() {
1564
- var d, w;
1565
- (w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
1547
+ function de() {
1548
+ var c, q;
1549
+ (q = (c = f.value) == null ? void 0 : c.inputRef) == null || q.focus();
1566
1550
  }
1567
- function _e() {
1568
- ie();
1551
+ function ke() {
1552
+ de();
1569
1553
  }
1570
- function b() {
1554
+ function k() {
1571
1555
  l("show");
1572
1556
  }
1573
- function ce() {
1557
+ function pe() {
1574
1558
  l("hide");
1575
1559
  }
1576
- function j(d) {
1577
- var D;
1578
- const w = (D = q.value) == null ? void 0 : D.getItem(d);
1579
- q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
1560
+ function X(c) {
1561
+ var Q;
1562
+ const q = (Q = $.value) == null ? void 0 : Q.getItem(c);
1563
+ $.value && ($.value.$el.scrollTop = q == null ? void 0 : q.offsetTop);
1580
1564
  }
1581
- return Z(s, H), Z(
1565
+ return ee(s, W), ee(
1582
1566
  () => n.items,
1583
- (d, w) => {
1584
- if (!Y.value) {
1585
- const D = w.find((P) => P[n.itemValue] === s.value);
1586
- a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
1567
+ (c, q) => {
1568
+ if (!D.value) {
1569
+ const Q = q.find((R) => R[n.itemValue] === s.value);
1570
+ a.value === (Q == null ? void 0 : Q[n.itemLabel]) && W();
1587
1571
  }
1588
1572
  },
1589
1573
  { deep: !0 }
1590
- ), Z(r, (d) => {
1591
- d !== void 0 && j(d);
1592
- }), Z(a, (d) => {
1593
- d && i.value && n.selectionMode === "automatic" && J(h);
1594
- }), Z(
1574
+ ), ee(d, (c) => {
1575
+ c !== void 0 && X(c);
1576
+ }), ee(a, (c) => {
1577
+ c && i.value && n.selectionMode === "automatic" && te(g);
1578
+ }), ee(
1595
1579
  () => n.loading,
1596
- (d) => {
1597
- !d && i.value && J(h);
1580
+ (c) => {
1581
+ !c && i.value && te(g);
1598
1582
  }
1599
1583
  ), t({
1600
1584
  triggerEl: f
1601
- }), (d, w) => {
1602
- var D;
1603
- return u(), v(te, null, [
1604
- z(m(lt), {
1585
+ }), (c, q) => {
1586
+ var Q;
1587
+ return r(), p(K, null, [
1588
+ F(m(at), {
1605
1589
  modelValue: a.value,
1606
- "onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
1590
+ "onUpdate:modelValue": q[0] || (q[0] = (R) => a.value = R),
1607
1591
  id: n.id,
1608
1592
  label: n.label,
1609
1593
  required: n.required,
@@ -1627,119 +1611,119 @@ const so = ["role"], io = /* @__PURE__ */ L({
1627
1611
  "aria-expanded": i.value,
1628
1612
  "aria-haspopup": "listbox",
1629
1613
  "aria-autocomplete": "list",
1630
- "aria-activedescendant": R.value,
1614
+ "aria-activedescendant": P.value,
1631
1615
  size: n.size,
1632
- onClick: _,
1633
- onFocusout: K,
1634
- onKeydown: pe(c, ["stop"])
1616
+ onClick: w,
1617
+ onFocusout: J,
1618
+ onKeydown: ve(u, ["stop"])
1635
1619
  }, qe({
1636
- "label.prepend": k(() => [
1637
- y(d.$slots, "label.prepend")
1620
+ "label.prepend": _(() => [
1621
+ h(c.$slots, "label.prepend")
1638
1622
  ]),
1639
- "label.append": k(() => [
1640
- y(d.$slots, "label.append")
1623
+ "label.append": _(() => [
1624
+ h(c.$slots, "label.append")
1641
1625
  ]),
1642
- append: k(() => [
1643
- y(d.$slots, "append"),
1644
- E.value && a.value ? (u(), I(m(de), {
1626
+ append: _(() => [
1627
+ h(c.$slots, "append"),
1628
+ A.value && a.value ? (r(), S(m(re), {
1645
1629
  key: 0,
1646
1630
  class: "q-combobox__clear",
1647
1631
  "b-style": "plain",
1648
1632
  borderless: "",
1649
1633
  tabindex: "-1",
1650
- onClick: p
1634
+ onClick: v
1651
1635
  }, {
1652
- default: k(() => [
1653
- z(m(F), G(se(n.internals.icons.clear)), null, 16)
1636
+ default: _(() => [
1637
+ F(m(N), j(ne(n.internals.icons.clear)), null, 16)
1654
1638
  ]),
1655
1639
  _: 1
1656
- })) : $("", !0),
1657
- n.readonly ? $("", !0) : (u(), I(m(de), {
1640
+ })) : x("", !0),
1641
+ n.readonly ? x("", !0) : (r(), S(m(re), {
1658
1642
  key: 1,
1659
1643
  ref_key: "toggleRef",
1660
- ref: x,
1644
+ ref: I,
1661
1645
  class: "q-combobox__chevron",
1662
1646
  "b-style": "plain",
1663
1647
  borderless: "",
1664
1648
  tabindex: "-1",
1665
1649
  disabled: n.disabled,
1666
- onMousedown: pe(W, ["stop", "prevent"])
1650
+ onMousedown: ve(Y, ["stop", "prevent"])
1667
1651
  }, {
1668
- default: k(() => [
1669
- z(m(F), G(se(n.internals.icons.chevron)), null, 16)
1652
+ default: _(() => [
1653
+ F(m(N), j(ne(n.internals.icons.chevron)), null, 16)
1670
1654
  ]),
1671
1655
  _: 1
1672
1656
  }, 8, ["disabled"]))
1673
1657
  ]),
1674
1658
  _: 2
1675
1659
  }, [
1676
- d.$slots.prepend ? {
1660
+ c.$slots.prepend ? {
1677
1661
  name: "prepend",
1678
- fn: k(() => [
1679
- y(d.$slots, "prepend")
1662
+ fn: _(() => [
1663
+ h(c.$slots, "prepend")
1680
1664
  ]),
1681
1665
  key: "0"
1682
1666
  } : void 0,
1683
- d.$slots.extras ? {
1667
+ c.$slots.extras ? {
1684
1668
  name: "extras",
1685
- fn: k(() => [
1686
- y(d.$slots, "extras")
1669
+ fn: _(() => [
1670
+ h(c.$slots, "extras")
1687
1671
  ]),
1688
1672
  key: "1"
1689
1673
  } : void 0
1690
1674
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1691
- z(m(he), {
1675
+ F(m(ye), {
1692
1676
  modelValue: i.value,
1693
- "onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
1677
+ "onUpdate:modelValue": q[2] || (q[2] = (R) => i.value = R),
1694
1678
  spy: "",
1695
1679
  "non-modal": "",
1696
1680
  trigger: "manual",
1697
1681
  placement: "bottom-start",
1698
1682
  width: "anchor",
1699
1683
  offset: 4,
1700
- anchor: (D = f.value) == null ? void 0 : D.$el,
1701
- onEnter: b,
1702
- onLeave: ce
1684
+ anchor: (Q = f.value) == null ? void 0 : Q.$el,
1685
+ onEnter: k,
1686
+ onLeave: pe
1703
1687
  }, {
1704
- default: k(() => {
1705
- var P;
1688
+ default: _(() => {
1689
+ var R;
1706
1690
  return [
1707
- A("div", {
1691
+ L("div", {
1708
1692
  ref_key: "contentRef",
1709
1693
  ref: M,
1710
1694
  class: "q-select__body",
1711
1695
  "data-testid": "combobox-dropdown",
1712
1696
  "data-key": n.id,
1713
- onFocusout: K
1697
+ onFocusout: J
1714
1698
  }, [
1715
- y(d.$slots, "body.prepend"),
1716
- n.loading ? (u(), v("div", go, [
1717
- z(m(Ie), { size: 24 })
1718
- ])) : S.value.length ? (u(), I(m(Ve), {
1699
+ h(c.$slots, "body.prepend"),
1700
+ n.loading ? (r(), p("div", Lo, [
1701
+ F(m(xe), { size: 24 })
1702
+ ])) : V.value.length ? (r(), S(m(Ve), {
1719
1703
  key: 1,
1720
1704
  ref_key: "listRef",
1721
- ref: q,
1705
+ ref: $,
1722
1706
  class: "q-select__items",
1723
1707
  selectable: "",
1724
1708
  modelValue: s.value,
1725
1709
  "onUpdate:modelValue": [
1726
- w[1] || (w[1] = (fe) => s.value = fe),
1727
- ne
1710
+ q[1] || (q[1] = (me) => s.value = me),
1711
+ le
1728
1712
  ],
1729
- highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
1730
- items: S.value,
1731
- groups: d.groups,
1713
+ highlighted: (R = O.value) == null ? void 0 : R[n.itemValue],
1714
+ items: V.value,
1715
+ groups: c.groups,
1732
1716
  "item-label": n.itemLabel,
1733
1717
  "item-value": n.itemValue,
1734
- onMouseup: _e
1718
+ onMouseup: ke
1735
1719
  }, {
1736
- item: k(({ item: fe }) => [
1737
- y(d.$slots, "item", { item: fe })
1720
+ item: _(({ item: me }) => [
1721
+ h(c.$slots, "item", { item: me })
1738
1722
  ]),
1739
1723
  _: 3
1740
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.internals.texts.noData), 1)),
1741
- y(d.$slots, "body.append")
1742
- ], 40, bo)
1724
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div", Io, z(c.internals.texts.noData), 1)),
1725
+ h(c.$slots, "body.append")
1726
+ ], 40, xo)
1743
1727
  ];
1744
1728
  }),
1745
1729
  _: 3
@@ -1747,10 +1731,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1747
1731
  ], 64);
1748
1732
  };
1749
1733
  }
1750
- }), qo = B($o), Io = { class: "q-dialog__header" }, xo = { class: "q-dialog__header-title" }, Lo = { class: "q-dialog__body" }, So = {
1751
- key: 0,
1752
- class: "q-dialog__body-icon"
1753
- }, Bo = { class: "q-dialog__body-text" }, Co = ["innerHTML"], Vo = { key: 1 }, To = { class: "q-dialog__body-actions" }, Eo = [
1734
+ }), Bo = T(So), Co = [
1754
1735
  {
1755
1736
  id: "button",
1756
1737
  icon: {
@@ -1761,42 +1742,45 @@ const so = ["role"], io = /* @__PURE__ */ L({
1761
1742
  label: "Ok"
1762
1743
  }
1763
1744
  }
1764
- ], Do = {
1745
+ ], To = {
1765
1746
  icon: "check-circle-outline"
1766
- }, Ao = {
1747
+ }, Vo = {
1767
1748
  close: {
1768
1749
  icon: "close"
1769
1750
  }
1770
- }, zo = /* @__PURE__ */ L({
1751
+ }, Eo = { class: "q-dialog__header" }, Do = { class: "q-dialog__header-title" }, Ao = { class: "q-dialog__body" }, Qo = {
1752
+ key: 0,
1753
+ class: "q-dialog__body-icon"
1754
+ }, Fo = { class: "q-dialog__body-text" }, zo = ["innerHTML"], Mo = { key: 1 }, Po = { class: "q-dialog__body-actions" }, Oo = /* @__PURE__ */ B({
1771
1755
  __name: "QDialog",
1772
- props: /* @__PURE__ */ X({
1756
+ props: /* @__PURE__ */ Z({
1773
1757
  text: { default: "" },
1774
1758
  attach: { default: "body" },
1775
1759
  inline: { type: Boolean },
1776
1760
  backdropBlur: { type: Boolean, default: !0 },
1777
- buttons: { default: () => Eo },
1761
+ buttons: { default: () => Co },
1778
1762
  dismissible: { type: Boolean },
1779
1763
  html: { type: Boolean, default: !0 },
1780
- icon: { default: () => Do },
1764
+ icon: { default: () => To },
1781
1765
  id: { default: void 0 },
1782
1766
  title: { default: "" },
1783
1767
  class: { default: void 0 },
1784
- internals: { default: () => ({ icons: Ao }) }
1768
+ internals: { default: () => ({ icons: Vo }) }
1785
1769
  }, {
1786
1770
  modelValue: { type: Boolean },
1787
1771
  modelModifiers: {}
1788
1772
  }),
1789
1773
  emits: ["update:modelValue"],
1790
1774
  setup(o) {
1791
- const t = o, e = ee(o, "modelValue"), n = ve(t.id), l = g(() => ["q-dialog", t.class]);
1775
+ const t = o, e = oe(o, "modelValue"), n = fe(t.id), l = b(() => ["q-dialog", t.class]);
1792
1776
  function s() {
1793
1777
  e.value = !1;
1794
1778
  }
1795
1779
  function i(a) {
1796
- var r;
1797
- (r = a.action) == null || r.call(a), s();
1780
+ var d;
1781
+ (d = a.action) == null || d.call(a), s();
1798
1782
  }
1799
- return (a, r) => (u(), I(m(he), {
1783
+ return (a, d) => (r(), S(m(ye), {
1800
1784
  "model-value": e.value,
1801
1785
  id: m(n),
1802
1786
  inline: t.inline,
@@ -1806,49 +1790,49 @@ const so = ["role"], io = /* @__PURE__ */ L({
1806
1790
  "scroll-lock": "",
1807
1791
  persistent: ""
1808
1792
  }, {
1809
- default: k(() => [
1810
- A("div", {
1793
+ default: _(() => [
1794
+ L("div", {
1811
1795
  class: C(l.value)
1812
1796
  }, [
1813
- A("div", Io, [
1814
- A("span", xo, N(t.title), 1),
1815
- t.dismissible ? (u(), I(m(de), {
1797
+ L("div", Eo, [
1798
+ L("span", Do, z(t.title), 1),
1799
+ t.dismissible ? (r(), S(m(re), {
1816
1800
  key: 0,
1817
1801
  "b-style": "tertiary",
1818
1802
  onClick: s
1819
1803
  }, {
1820
- default: k(() => [
1821
- z(m(F), G(se(t.internals.icons.close)), null, 16)
1804
+ default: _(() => [
1805
+ F(m(N), j(ne(t.internals.icons.close)), null, 16)
1822
1806
  ]),
1823
1807
  _: 1
1824
- })) : $("", !0)
1808
+ })) : x("", !0)
1825
1809
  ]),
1826
- y(a.$slots, "body.content", {}, () => [
1827
- A("div", Lo, [
1828
- y(a.$slots, "body.icon", {}, () => [
1829
- t.icon ? (u(), v("span", So, [
1830
- z(m(F), G(se(t.icon)), null, 16)
1831
- ])) : $("", !0)
1810
+ h(a.$slots, "body.content", {}, () => [
1811
+ L("div", Ao, [
1812
+ h(a.$slots, "body.icon", {}, () => [
1813
+ t.icon ? (r(), p("span", Qo, [
1814
+ F(m(N), j(ne(t.icon)), null, 16)
1815
+ ])) : x("", !0)
1832
1816
  ]),
1833
- A("div", Bo, [
1834
- t.html ? (u(), v("span", {
1817
+ L("div", Fo, [
1818
+ t.html ? (r(), p("span", {
1835
1819
  key: 0,
1836
1820
  innerHTML: t.text
1837
- }, null, 8, Co)) : (u(), v("span", Vo, N(t.text), 1))
1821
+ }, null, 8, zo)) : (r(), p("span", Mo, z(t.text), 1))
1838
1822
  ]),
1839
- y(a.$slots, "body.append")
1823
+ h(a.$slots, "body.append")
1840
1824
  ])
1841
1825
  ]),
1842
- A("div", To, [
1843
- (u(!0), v(te, null, we(t.buttons, (f) => (u(), I(m(de), re({ ref_for: !0 }, f.props, {
1826
+ L("div", Po, [
1827
+ (r(!0), p(K, null, he(t.buttons, (f) => (r(), S(m(re), ie({ ref_for: !0 }, f.props, {
1844
1828
  key: f.id,
1845
1829
  onClick: () => i(f)
1846
1830
  }), {
1847
- default: k(() => [
1848
- f.icon ? (u(), I(m(F), re({
1831
+ default: _(() => [
1832
+ f.icon ? (r(), S(m(N), ie({
1849
1833
  key: 0,
1850
1834
  ref_for: !0
1851
- }, f.icon), null, 16)) : $("", !0)
1835
+ }, f.icon), null, 16)) : x("", !0)
1852
1836
  ]),
1853
1837
  _: 2
1854
1838
  }, 1040, ["onClick"]))), 128))
@@ -1858,13 +1842,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
1858
1842
  _: 3
1859
1843
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
1860
1844
  }
1861
- }), Qo = B(zo), Mo = {
1845
+ }), Uo = T(Oo), No = {
1862
1846
  key: 0,
1863
1847
  class: "q-input-group__prepend"
1864
- }, Fo = { key: 0 }, Oo = {
1848
+ }, Ho = { key: 0 }, Go = {
1865
1849
  key: 1,
1866
1850
  class: "q-input-group__append"
1867
- }, Uo = { key: 0 }, Po = /* @__PURE__ */ L({
1851
+ }, Ro = { key: 0 }, Ko = /* @__PURE__ */ B({
1868
1852
  __name: "QInputGroup",
1869
1853
  props: {
1870
1854
  id: { default: void 0 },
@@ -1877,64 +1861,64 @@ const so = ["role"], io = /* @__PURE__ */ L({
1877
1861
  },
1878
1862
  setup(o) {
1879
1863
  const t = o;
1880
- return Re({
1864
+ return Xe({
1881
1865
  QField: {
1882
1866
  size: "block"
1883
1867
  }
1884
- }), (e, n) => (u(), I(m(xe), {
1868
+ }), (e, n) => (r(), S(m(Le), {
1885
1869
  id: t.id,
1886
1870
  class: C(["q-input-group", t.class]),
1887
1871
  label: t.label,
1888
1872
  required: t.required,
1889
1873
  size: t.size
1890
1874
  }, qe({
1891
- default: k(() => [
1892
- e.$slots.prepend || t.prependIcon ? (u(), v("div", Mo, [
1893
- t.prependIcon ? (u(), v("span", Fo, [
1894
- z(m(F), G(se(t.prependIcon)), null, 16)
1895
- ])) : $("", !0),
1896
- y(e.$slots, "prepend")
1897
- ])) : $("", !0),
1898
- y(e.$slots, "default"),
1899
- e.$slots.append || t.appendIcon ? (u(), v("div", Oo, [
1900
- t.appendIcon ? (u(), v("span", Uo, [
1901
- z(m(F), G(se(t.appendIcon)), null, 16)
1902
- ])) : $("", !0),
1903
- y(e.$slots, "append")
1904
- ])) : $("", !0)
1875
+ default: _(() => [
1876
+ e.$slots.prepend || t.prependIcon ? (r(), p("div", No, [
1877
+ t.prependIcon ? (r(), p("span", Ho, [
1878
+ F(m(N), j(ne(t.prependIcon)), null, 16)
1879
+ ])) : x("", !0),
1880
+ h(e.$slots, "prepend")
1881
+ ])) : x("", !0),
1882
+ h(e.$slots, "default"),
1883
+ e.$slots.append || t.appendIcon ? (r(), p("div", Go, [
1884
+ t.appendIcon ? (r(), p("span", Ro, [
1885
+ F(m(N), j(ne(t.appendIcon)), null, 16)
1886
+ ])) : x("", !0),
1887
+ h(e.$slots, "append")
1888
+ ])) : x("", !0)
1905
1889
  ]),
1906
1890
  _: 2
1907
1891
  }, [
1908
1892
  e.$slots.extras ? {
1909
1893
  name: "extras",
1910
- fn: k(() => [
1911
- y(e.$slots, "extras")
1894
+ fn: _(() => [
1895
+ h(e.$slots, "extras")
1912
1896
  ]),
1913
1897
  key: "0"
1914
1898
  } : void 0
1915
1899
  ]), 1032, ["id", "class", "label", "required", "size"]));
1916
1900
  }
1917
- }), No = B(Po), Ho = /* @__PURE__ */ L({
1901
+ }), jo = T(Ko), Wo = /* @__PURE__ */ B({
1918
1902
  __name: "QLineLoader",
1919
1903
  props: {
1920
1904
  class: { default: void 0 }
1921
1905
  },
1922
1906
  setup(o) {
1923
1907
  const t = o;
1924
- return (e, n) => (u(), v("div", {
1908
+ return (e, n) => (r(), p("div", {
1925
1909
  class: C(["q-line-loader", t.class])
1926
1910
  }, null, 2));
1927
1911
  }
1928
- }), Ko = B(Ho), jo = {
1912
+ }), Xo = T(Wo), Yo = {
1929
1913
  key: 0,
1930
1914
  class: "q-popover__header"
1931
- }, Go = {
1915
+ }, Zo = {
1932
1916
  key: 1,
1933
1917
  class: "q-popover__body"
1934
- }, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
1918
+ }, Jo = ["innerHTML"], en = { key: 1 }, tn = /* @__PURE__ */ B({
1935
1919
  inheritAttrs: !1,
1936
1920
  __name: "QPopover",
1937
- props: /* @__PURE__ */ X({
1921
+ props: /* @__PURE__ */ Z({
1938
1922
  anchor: {},
1939
1923
  arrow: { type: Boolean, default: !0 },
1940
1924
  attach: { default: "body" },
@@ -1950,8 +1934,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1950
1934
  }),
1951
1935
  emits: ["update:modelValue"],
1952
1936
  setup(o) {
1953
- const t = o, e = ee(o, "modelValue");
1954
- return (n, l) => (u(), I(m(he), {
1937
+ const t = o, e = oe(o, "modelValue");
1938
+ return (n, l) => (r(), S(m(ye), {
1955
1939
  modelValue: e.value,
1956
1940
  "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
1957
1941
  class: "q-popover",
@@ -1963,43 +1947,279 @@ const so = ["role"], io = /* @__PURE__ */ L({
1963
1947
  disabled: t.disabled,
1964
1948
  placement: t.placement
1965
1949
  }, {
1966
- default: k(() => [
1967
- t.title || n.$slots.header ? (u(), v("h3", jo, [
1968
- me(N(t.title) + " ", 1),
1969
- y(n.$slots, "header")
1970
- ])) : $("", !0),
1971
- t.text || n.$slots.body ? (u(), v("div", Go, [
1972
- t.html ? (u(), v("span", {
1950
+ default: _(() => [
1951
+ t.title || n.$slots.header ? (r(), p("h3", Yo, [
1952
+ ue(z(t.title) + " ", 1),
1953
+ h(n.$slots, "header")
1954
+ ])) : x("", !0),
1955
+ t.text || n.$slots.body ? (r(), p("div", Zo, [
1956
+ t.html ? (r(), p("span", {
1973
1957
  key: 0,
1974
1958
  innerHTML: t.text
1975
- }, null, 8, Ro)) : (u(), v("span", Wo, N(t.text), 1)),
1976
- y(n.$slots, "body")
1977
- ])) : $("", !0)
1959
+ }, null, 8, Jo)) : (r(), p("span", en, z(t.text), 1)),
1960
+ h(n.$slots, "body")
1961
+ ])) : x("", !0)
1978
1962
  ]),
1979
1963
  _: 3
1980
1964
  }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1981
1965
  }
1982
- }), Yo = B(Xo), Zo = {
1983
- key: 0,
1984
- class: "q-select__value"
1985
- }, Jo = {
1966
+ }), on = T(tn), Ee = {
1967
+ emptyMessage: "Select a field to view details."
1968
+ }, De = {
1969
+ open: {
1970
+ icon: "minus-box"
1971
+ },
1972
+ close: {
1973
+ icon: "plus-box"
1974
+ }
1975
+ }, nn = { class: "q-property-list__table" }, ln = /* @__PURE__ */ L("thead", { class: "q-property-list__header" }, [
1976
+ /* @__PURE__ */ L("tr", null, [
1977
+ /* @__PURE__ */ L("th", { colspan: "2" })
1978
+ ])
1979
+ ], -1), sn = /* @__PURE__ */ B({
1980
+ __name: "QPropertyList",
1981
+ props: {
1982
+ fields: { default: () => [] },
1983
+ noPanel: { type: Boolean },
1984
+ noToggle: { type: Boolean },
1985
+ panelPosition: { default: "bottom" },
1986
+ groups: { default: () => [] },
1987
+ class: { default: void 0 },
1988
+ internals: { default: () => ({
1989
+ icons: De,
1990
+ texts: Ee
1991
+ }) },
1992
+ readonly: { type: Boolean }
1993
+ },
1994
+ emits: ["field-change"],
1995
+ setup(o, { emit: t }) {
1996
+ const e = o, n = t, l = E(e.groups.map((y) => y.id)), s = E(void 0), i = E(null), a = b(() => e.groups.length ? e.groups.filter(
1997
+ (y) => e.fields.some((D) => D.group === y.id)
1998
+ ) : [{ id: "", title: "" }]), d = b(() => [
1999
+ e.class,
2000
+ {
2001
+ "q-property-list--side-panel": e.panelPosition === "right"
2002
+ }
2003
+ ]);
2004
+ function f() {
2005
+ var y;
2006
+ (y = i.value) != null && y.contains(document.activeElement) || (s.value = void 0);
2007
+ }
2008
+ function $(y) {
2009
+ return y ? e.fields.filter((D) => D.group === y) : e.fields;
2010
+ }
2011
+ function I(y) {
2012
+ const D = l.value.indexOf(y);
2013
+ D === -1 ? l.value.push(y) : l.value.splice(D, 1);
2014
+ }
2015
+ function M(y) {
2016
+ var D;
2017
+ return [
2018
+ {
2019
+ "q-property-list__row--closed": y.group && !l.value.includes(y.group),
2020
+ "q-property-list__row--selected": ((D = s.value) == null ? void 0 : D.id) === y.id
2021
+ }
2022
+ ];
2023
+ }
2024
+ function A(y) {
2025
+ s.value = y;
2026
+ }
2027
+ function V(y, D) {
2028
+ e.readonly || (y.props.readonly ?? !1) || (y.props.modelValue = D, n("field-change", y));
2029
+ }
2030
+ return (y, D) => (r(), p("div", {
2031
+ tabindex: "0",
2032
+ class: C(["q-property-list", d.value]),
2033
+ ref_key: "componentRoot",
2034
+ ref: i,
2035
+ onFocusout: f
2036
+ }, [
2037
+ L("table", nn, [
2038
+ ln,
2039
+ L("tbody", null, [
2040
+ (r(!0), p(K, null, he(a.value, (O) => (r(), p(K, {
2041
+ key: O.id
2042
+ }, [
2043
+ O.title ? (r(), S(m(rt), {
2044
+ key: 0,
2045
+ id: O.id,
2046
+ title: O.title,
2047
+ internals: e.internals,
2048
+ "no-toggle": e.noToggle,
2049
+ onToggleGroup: I
2050
+ }, null, 8, ["id", "title", "internals", "no-toggle"])) : x("", !0),
2051
+ (r(!0), p(K, null, he($(O.id), (P) => (r(), S(m(it), {
2052
+ key: P.id,
2053
+ class: C(M(P)),
2054
+ field: P,
2055
+ readonly: e.readonly,
2056
+ onFocus: A,
2057
+ onFieldChange: V
2058
+ }, {
2059
+ default: _(() => [
2060
+ h(y.$slots, P.id, { field: P })
2061
+ ]),
2062
+ _: 2
2063
+ }, 1032, ["class", "field", "readonly"]))), 128))
2064
+ ], 64))), 128))
2065
+ ])
2066
+ ]),
2067
+ e.noPanel ? x("", !0) : (r(), S(m(dt), {
2068
+ key: 0,
2069
+ internals: e.internals,
2070
+ field: s.value
2071
+ }, {
2072
+ default: _(() => [
2073
+ s.value ? h(y.$slots, "panel", {
2074
+ key: 0,
2075
+ field: s.value
2076
+ }) : x("", !0)
2077
+ ]),
2078
+ _: 3
2079
+ }, 8, ["internals", "field"]))
2080
+ ], 34));
2081
+ }
2082
+ }), an = { class: "q-property-list-field__container" }, rn = /* @__PURE__ */ B({
2083
+ __name: "QPropertyListRow",
2084
+ props: {
2085
+ field: {},
2086
+ class: {},
2087
+ readonly: { type: Boolean }
2088
+ },
2089
+ emits: ["focus", "field-change"],
2090
+ setup(o, { emit: t }) {
2091
+ const e = o, n = t, l = b(() => ["q-property-list__row", e.class]), s = b(() => {
2092
+ var I;
2093
+ const $ = ["q-property-list__cell", "q-property-list__cell--label"];
2094
+ return (I = e.field.props) != null && I.required && $.push("q-property-list__cell--required"), $;
2095
+ }), i = b(() => e.readonly || (e.field.props.readonly ?? !1));
2096
+ function a() {
2097
+ n("focus", e.field);
2098
+ }
2099
+ function d($) {
2100
+ n("field-change", e.field, $);
2101
+ }
2102
+ const f = b(() => ({
2103
+ ...e.field.props,
2104
+ readonly: i.value
2105
+ }));
2106
+ return ($, I) => (r(), p("tr", {
2107
+ class: C(l.value),
2108
+ onFocusin: a
2109
+ }, [
2110
+ L("td", {
2111
+ class: C(s.value),
2112
+ onClick: a
2113
+ }, z(e.field.label), 3),
2114
+ L("td", {
2115
+ class: "q-property-list__cell",
2116
+ onClick: a
2117
+ }, [
2118
+ h($.$slots, "default", {}, () => [
2119
+ L("div", an, [
2120
+ (r(), S(Be(e.field.component), ie(f.value, {
2121
+ "model-value": e.field.props.modelValue,
2122
+ "onUpdate:modelValue": d
2123
+ }), null, 16, ["model-value"]))
2124
+ ])
2125
+ ])
2126
+ ])
2127
+ ], 34));
2128
+ }
2129
+ }), dn = ["data-key", "aria-labelledby"], cn = ["id"], un = { class: "q-property-list-group__content" }, fn = /* @__PURE__ */ B({
2130
+ __name: "QPropertyListGroup",
2131
+ props: {
2132
+ id: {},
2133
+ title: {},
2134
+ noToggle: { type: Boolean, default: !1 },
2135
+ internals: { default: () => ({
2136
+ icons: De,
2137
+ texts: Ee
2138
+ }) }
2139
+ },
2140
+ emits: ["toggle-group"],
2141
+ setup(o, { emit: t }) {
2142
+ const e = o, n = t, l = E(!0), s = fe(), i = b(
2143
+ () => l.value ? e.internals.icons.open : e.internals.icons.close
2144
+ ), a = b(() => [
2145
+ "q-property-list-group",
2146
+ {
2147
+ "q-property-list-group--no-toggle": e.noToggle
2148
+ }
2149
+ ]);
2150
+ function d() {
2151
+ e.noToggle || (l.value = !l.value, n("toggle-group", e.id));
2152
+ }
2153
+ return (f, $) => (r(), p("tr", {
2154
+ class: C(a.value),
2155
+ role: "group",
2156
+ "data-key": e.id,
2157
+ "aria-labelledby": m(s),
2158
+ onClick: d
2159
+ }, [
2160
+ L("td", {
2161
+ id: m(s),
2162
+ colspan: "2"
2163
+ }, [
2164
+ L("div", un, [
2165
+ e.noToggle ? x("", !0) : (r(), S(m(re), {
2166
+ key: 0,
2167
+ "b-style": "tertiary",
2168
+ borderless: "",
2169
+ onClick: d
2170
+ }, {
2171
+ default: _(() => [
2172
+ F(m(N), j(ne(i.value)), null, 16)
2173
+ ]),
2174
+ _: 1
2175
+ })),
2176
+ ue(" " + z(e.title), 1)
2177
+ ])
2178
+ ], 8, cn)
2179
+ ], 10, dn));
2180
+ }
2181
+ }), pn = { class: "q-property-list-panel__container" }, mn = { class: "q-property-list-panel__label" }, vn = { class: "q-property-list-panel__description" }, hn = {
1986
2182
  key: 1,
1987
- class: "q-select__placeholder"
1988
- }, en = ["data-key"], tn = {
1989
- key: 0,
1990
- class: "q-select__loader"
1991
- }, on = {
2183
+ class: "q-property-list-panel__empty"
2184
+ }, yn = /* @__PURE__ */ B({
2185
+ __name: "QPropertyListPanel",
2186
+ props: {
2187
+ field: { default: void 0 },
2188
+ internals: { default: () => ({
2189
+ icons: De,
2190
+ texts: Ee
2191
+ }) }
2192
+ },
2193
+ setup(o) {
2194
+ const t = o;
2195
+ return (e, n) => (r(), p("div", pn, [
2196
+ t.field ? h(e.$slots, "default", { key: 0 }, () => [
2197
+ L("div", mn, z(t.field.label), 1),
2198
+ L("div", vn, z(t.field.description), 1)
2199
+ ]) : (r(), p("div", hn, z(t.internals.texts.emptyMessage), 1))
2200
+ ]));
2201
+ }
2202
+ }), gn = T(sn), it = T(rn), rt = T(fn), dt = T(yn), bn = {
1992
2203
  placeholder: "Choose..."
1993
- }, nn = {
2204
+ }, _n = {
1994
2205
  chevron: {
1995
2206
  icon: "chevron-down"
1996
2207
  },
1997
2208
  clear: {
1998
2209
  icon: "close"
1999
2210
  }
2000
- }, ln = /* @__PURE__ */ L({
2211
+ }, kn = {
2212
+ key: 0,
2213
+ class: "q-select__value"
2214
+ }, $n = {
2215
+ key: 1,
2216
+ class: "q-select__placeholder"
2217
+ }, wn = ["data-key"], qn = {
2218
+ key: 0,
2219
+ class: "q-select__loader"
2220
+ }, xn = /* @__PURE__ */ B({
2001
2221
  __name: "QSelect",
2002
- props: /* @__PURE__ */ X({
2222
+ props: /* @__PURE__ */ Z({
2003
2223
  id: { default: void 0 },
2004
2224
  label: { default: "" },
2005
2225
  clearable: { type: Boolean },
@@ -2014,88 +2234,88 @@ const so = ["role"], io = /* @__PURE__ */ L({
2014
2234
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2015
2235
  size: { default: void 0 },
2016
2236
  class: { default: "" },
2017
- internals: { default: () => ({ icons: nn, texts: on }) }
2237
+ internals: { default: () => ({ icons: _n, texts: bn }) }
2018
2238
  }, {
2019
2239
  modelValue: {
2020
2240
  type: [String, Number, Boolean, Symbol]
2021
2241
  },
2022
2242
  modelModifiers: {}
2023
2243
  }),
2024
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2244
+ emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2025
2245
  setup(o, { emit: t }) {
2026
- const e = o, n = t, l = ee(o, "modelValue"), s = T(!1), i = T(""), a = T(null), r = T(null), f = T(null), q = g(() => x.value === void 0), x = g(
2246
+ const e = o, n = t, l = oe(o, "modelValue"), s = E(!1), i = E(""), a = E(null), d = E(null), f = E(null), $ = b(() => I.value === void 0), I = b(
2027
2247
  () => {
2028
- var c;
2029
- return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
2248
+ var u;
2249
+ return (u = e.items) == null ? void 0 : u.find((g) => g[e.itemValue] === l.value);
2030
2250
  }
2031
- ), M = g(
2032
- () => x.value ? x.value[e.itemLabel] : ""
2033
- ), E = g(
2251
+ ), M = b(
2252
+ () => I.value ? I.value[e.itemLabel] : ""
2253
+ ), A = b(
2034
2254
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2035
2255
  );
2036
- function S(c) {
2037
- l.value = c, R();
2256
+ function V(u) {
2257
+ l.value = u, P();
2038
2258
  }
2039
- function V() {
2040
- E.value && (S(e.emptyValue), W());
2259
+ function y() {
2260
+ A.value && (V(e.emptyValue), Y());
2041
2261
  }
2042
- function Y(c) {
2043
- var h, U, ae;
2044
- !((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && R();
2262
+ function D(u) {
2263
+ var g, G, ae;
2264
+ !((g = f.value) != null && g.contains(u.relatedTarget)) && !((ae = (G = a.value) == null ? void 0 : G.fieldRef) != null && ae.contains(u.relatedTarget)) && P();
2045
2265
  }
2046
- function oe() {
2266
+ function O() {
2047
2267
  s.value || (n("before-show"), s.value = !0);
2048
2268
  }
2049
- function R() {
2269
+ function P() {
2050
2270
  s.value && (n("before-hide"), s.value = !1);
2051
2271
  }
2052
- function O() {
2053
- e.readonly || e.disabled || (s.value ? R() : oe());
2054
- }
2055
- let ne;
2056
- function H(c) {
2057
- if (!(!c.key || e.readonly || e.disabled)) {
2058
- if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && V()), c.key === "Delete" && e.clearable && V(), /^[a-z]$/i.test(c.key)) {
2059
- i.value += c.key.toLowerCase();
2060
- for (let h = 0; h < e.items.length; h++)
2061
- if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
2062
- _(h);
2272
+ function H() {
2273
+ e.readonly || e.disabled || (s.value ? P() : O());
2274
+ }
2275
+ let le;
2276
+ function W(u) {
2277
+ if (!(!u.key || e.readonly || e.disabled)) {
2278
+ if (window.clearTimeout(le), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (s.value = !0), ["Escape", "Tab"].includes(u.key) && (s.value ? s.value = !1 : A.value && u.key === "Escape" && y()), u.key === "Delete" && e.clearable && y(), /^[a-z]$/i.test(u.key)) {
2279
+ i.value += u.key.toLowerCase();
2280
+ for (let g = 0; g < e.items.length; g++)
2281
+ if (e.items[g][e.itemLabel].toLowerCase().startsWith(i.value)) {
2282
+ w(g);
2063
2283
  break;
2064
2284
  }
2065
2285
  }
2066
- ne = window.setTimeout(function() {
2286
+ le = window.setTimeout(function() {
2067
2287
  i.value = "";
2068
2288
  }, 500);
2069
2289
  }
2070
2290
  }
2071
- function le() {
2072
- var c;
2073
- e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
2291
+ function se() {
2292
+ var u;
2293
+ e.loading ? (u = f.value) == null || u.focus() : v(), n("show");
2074
2294
  }
2075
- function Q() {
2076
- W(), n("hide");
2295
+ function U() {
2296
+ Y(), n("hide");
2077
2297
  }
2078
- function W() {
2079
- var c, h;
2080
- (h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
2298
+ function Y() {
2299
+ var u, g;
2300
+ (g = (u = a.value) == null ? void 0 : u.fieldRef) == null || g.focus();
2081
2301
  }
2082
- function p() {
2083
- var c;
2084
- (c = r.value) == null || c.$el.focus();
2302
+ function v() {
2303
+ var u;
2304
+ (u = d.value) == null || u.$el.focus();
2085
2305
  }
2086
- function _(c) {
2087
- var h;
2088
- (h = r.value) == null || h.focusItem(c);
2306
+ function w(u) {
2307
+ var g;
2308
+ (g = d.value) == null || g.focusItem(u);
2089
2309
  }
2090
- return Z(
2310
+ return ee(
2091
2311
  () => e.loading,
2092
- (c) => {
2093
- !c && s.value && J(p);
2312
+ (u) => {
2313
+ !u && s.value && te(v);
2094
2314
  }
2095
- ), (c, h) => {
2096
- var U, ae;
2097
- return u(), v(te, null, [
2098
- z(m(xe), {
2315
+ ), (u, g) => {
2316
+ var G, ae;
2317
+ return r(), p(K, null, [
2318
+ F(m(Le), {
2099
2319
  id: e.id,
2100
2320
  label: e.label,
2101
2321
  required: e.required,
@@ -2118,70 +2338,70 @@ const so = ["role"], io = /* @__PURE__ */ L({
2118
2338
  "aria-expanded": s.value,
2119
2339
  "aria-haspopup": "listbox",
2120
2340
  size: e.size,
2121
- onClick: O,
2122
- onKeydown: pe(H, ["stop"])
2341
+ onClick: H,
2342
+ onKeydown: ve(W, ["stop"])
2123
2343
  }, qe({
2124
- append: k(() => [
2125
- y(c.$slots, "append"),
2126
- E.value && l.value ? (u(), I(m(de), {
2344
+ append: _(() => [
2345
+ h(u.$slots, "append"),
2346
+ A.value && l.value ? (r(), S(m(re), {
2127
2347
  key: 0,
2128
2348
  class: "q-select__clear",
2129
2349
  "b-style": "plain",
2130
2350
  borderless: "",
2131
2351
  tabindex: "-1",
2132
- onClick: V
2352
+ onClick: y
2133
2353
  }, {
2134
- default: k(() => [
2135
- z(m(F), G(se(e.internals.icons.clear)), null, 16)
2354
+ default: _(() => [
2355
+ F(m(N), j(ne(e.internals.icons.clear)), null, 16)
2136
2356
  ]),
2137
2357
  _: 1
2138
- })) : $("", !0),
2139
- e.readonly ? $("", !0) : (u(), I(m(de), {
2358
+ })) : x("", !0),
2359
+ e.readonly ? x("", !0) : (r(), S(m(re), {
2140
2360
  key: 1,
2141
2361
  class: "q-select__chevron",
2142
2362
  "b-style": "plain",
2143
2363
  borderless: "",
2144
2364
  tabindex: "-1",
2145
2365
  disabled: e.disabled,
2146
- onClick: O
2366
+ onClick: H
2147
2367
  }, {
2148
- default: k(() => [
2149
- z(m(F), G(se(e.internals.icons.chevron)), null, 16)
2368
+ default: _(() => [
2369
+ F(m(N), j(ne(e.internals.icons.chevron)), null, 16)
2150
2370
  ]),
2151
2371
  _: 1
2152
2372
  }, 8, ["disabled"]))
2153
2373
  ]),
2154
- default: k(() => [
2155
- q.value ? (u(), v("span", Jo, [
2156
- !e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
2157
- me(N(c.internals.texts.placeholder), 1)
2158
- ], 64)) : $("", !0)
2159
- ])) : (u(), v("span", Zo, N(M.value), 1))
2374
+ default: _(() => [
2375
+ $.value ? (r(), p("span", $n, [
2376
+ !e.readonly && !e.disabled ? (r(), p(K, { key: 0 }, [
2377
+ ue(z(u.internals.texts.placeholder), 1)
2378
+ ], 64)) : x("", !0)
2379
+ ])) : (r(), p("span", kn, z(M.value), 1))
2160
2380
  ]),
2161
2381
  _: 2
2162
2382
  }, [
2163
- (U = x.value) != null && U.icon || c.$slots.prepend ? {
2383
+ (G = I.value) != null && G.icon || u.$slots.prepend ? {
2164
2384
  name: "prepend",
2165
- fn: k(() => {
2166
- var K, ie;
2385
+ fn: _(() => {
2386
+ var J, de;
2167
2387
  return [
2168
- y(c.$slots, "prepend"),
2169
- (K = x.value) != null && K.icon ? (u(), I(m(F), G(re({ key: 0 }, (ie = x.value) == null ? void 0 : ie.icon)), null, 16)) : $("", !0)
2388
+ h(u.$slots, "prepend"),
2389
+ (J = I.value) != null && J.icon ? (r(), S(m(N), j(ie({ key: 0 }, (de = I.value) == null ? void 0 : de.icon)), null, 16)) : x("", !0)
2170
2390
  ];
2171
2391
  }),
2172
2392
  key: "0"
2173
2393
  } : void 0,
2174
- c.$slots.extras ? {
2394
+ u.$slots.extras ? {
2175
2395
  name: "extras",
2176
- fn: k(() => [
2177
- y(c.$slots, "extras")
2396
+ fn: _(() => [
2397
+ h(u.$slots, "extras")
2178
2398
  ]),
2179
2399
  key: "1"
2180
2400
  } : void 0
2181
2401
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2182
- z(m(he), {
2402
+ F(m(ye), {
2183
2403
  modelValue: s.value,
2184
- "onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
2404
+ "onUpdate:modelValue": g[0] || (g[0] = (J) => s.value = J),
2185
2405
  spy: "",
2186
2406
  trigger: "manual",
2187
2407
  placement: "bottom-start",
@@ -2189,55 +2409,52 @@ const so = ["role"], io = /* @__PURE__ */ L({
2189
2409
  "scroll-lock": "",
2190
2410
  anchor: (ae = a.value) == null ? void 0 : ae.$el,
2191
2411
  offset: 2,
2192
- onEnter: le,
2193
- onLeave: Q
2412
+ onEnter: se,
2413
+ onLeave: U
2194
2414
  }, {
2195
- default: k(() => [
2196
- A("div", {
2415
+ default: _(() => [
2416
+ L("div", {
2197
2417
  ref_key: "contentRef",
2198
2418
  ref: f,
2199
2419
  "data-testid": "combobox-dropdown",
2200
2420
  "data-key": e.id,
2201
2421
  class: "q-select__body",
2202
2422
  tabindex: "-1",
2203
- onFocusout: Y,
2204
- onKeydown: pe(H, ["stop"])
2423
+ onFocusout: D,
2424
+ onKeydown: ve(W, ["stop"])
2205
2425
  }, [
2206
- y(c.$slots, "body.prepend"),
2207
- e.loading ? (u(), v("div", tn, [
2208
- z(m(Ie), { size: 24 })
2209
- ])) : (u(), I(m(Ve), {
2426
+ h(u.$slots, "body.prepend"),
2427
+ e.loading ? (r(), p("div", qn, [
2428
+ F(m(xe), { size: 24 })
2429
+ ])) : (r(), S(m(Ve), {
2210
2430
  key: 1,
2211
2431
  ref_key: "listRef",
2212
- ref: r,
2432
+ ref: d,
2213
2433
  class: "q-select__items",
2214
2434
  selectable: "",
2215
- modelValue: l.value,
2216
- "onUpdate:modelValue": [
2217
- h[0] || (h[0] = (K) => l.value = K),
2218
- S
2219
- ],
2435
+ "model-value": l.value,
2220
2436
  items: e.items,
2221
- groups: c.groups,
2437
+ groups: u.groups,
2222
2438
  "item-label": e.itemLabel,
2223
- "item-value": e.itemValue
2439
+ "item-value": e.itemValue,
2440
+ "onUpdate:modelValue": V
2224
2441
  }, {
2225
- item: k(({ item: K }) => [
2226
- y(c.$slots, "item", { item: K })
2442
+ item: _(({ item: J }) => [
2443
+ h(u.$slots, "item", { item: J })
2227
2444
  ]),
2228
2445
  _: 3
2229
- }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
2230
- y(c.$slots, "body.append")
2231
- ], 40, en)
2446
+ }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
2447
+ h(u.$slots, "body.append")
2448
+ ], 40, wn)
2232
2449
  ]),
2233
2450
  _: 3
2234
2451
  }, 8, ["modelValue", "anchor"])
2235
2452
  ], 64);
2236
2453
  };
2237
2454
  }
2238
- }), an = B(ln), sn = /* @__PURE__ */ A("div", { class: "q-skeleton-loader__bone" }, null, -1), rn = [
2239
- sn
2240
- ], dn = /* @__PURE__ */ L({
2455
+ }), Ln = T(xn), In = /* @__PURE__ */ L("div", { class: "q-skeleton-loader__bone" }, null, -1), Sn = [
2456
+ In
2457
+ ], Bn = /* @__PURE__ */ B({
2241
2458
  __name: "QSkeletonLoader",
2242
2459
  props: {
2243
2460
  type: { default: void 0 },
@@ -2245,34 +2462,34 @@ const so = ["role"], io = /* @__PURE__ */ L({
2245
2462
  height: { default: void 0 }
2246
2463
  },
2247
2464
  setup(o) {
2248
- const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
2465
+ const t = o, e = b(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = b(() => {
2249
2466
  const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2250
2467
  return {
2251
2468
  width: l,
2252
2469
  height: s
2253
2470
  };
2254
2471
  });
2255
- return (l, s) => (u(), v("div", {
2472
+ return (l, s) => (r(), p("div", {
2256
2473
  class: C(["q-skeleton-loader", e.value]),
2257
- style: ue(n.value)
2258
- }, rn, 6));
2474
+ style: ce(n.value)
2475
+ }, Sn, 6));
2259
2476
  }
2260
- }), un = B(dn), cn = /* @__PURE__ */ L({
2477
+ }), Cn = T(Bn), Tn = /* @__PURE__ */ B({
2261
2478
  __name: "QThemeProvider",
2262
2479
  props: {
2263
2480
  theme: {}
2264
2481
  },
2265
2482
  setup(o) {
2266
2483
  const t = o;
2267
- return (e, n) => (u(), v("div", {
2484
+ return (e, n) => (r(), p("div", {
2268
2485
  class: C(["q-theme-provider", `q-theme--${t.theme}`])
2269
2486
  }, [
2270
- y(e.$slots, "default")
2487
+ h(e.$slots, "default")
2271
2488
  ], 2));
2272
2489
  }
2273
- }), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
2490
+ }), Vn = T(Tn), En = ["innerHTML"], Dn = /* @__PURE__ */ B({
2274
2491
  __name: "QTooltip",
2275
- props: /* @__PURE__ */ X({
2492
+ props: /* @__PURE__ */ Z({
2276
2493
  id: { default: void 0 },
2277
2494
  anchor: {},
2278
2495
  appearance: { default: "inverted" },
@@ -2293,12 +2510,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
2293
2510
  }),
2294
2511
  emits: ["update:modelValue"],
2295
2512
  setup(o) {
2296
- const t = o, e = ee(o, "modelValue"), n = ve(t.id);
2297
- return (l, s) => (u(), v(te, null, [
2298
- y(l.$slots, "anchor", {
2513
+ const t = o, e = oe(o, "modelValue"), n = fe(t.id);
2514
+ return (l, s) => (r(), p(K, null, [
2515
+ h(l.$slots, "anchor", {
2299
2516
  props: { "aria-describedby": m(n) }
2300
2517
  }),
2301
- z(m(he), {
2518
+ F(m(ye), {
2302
2519
  "model-value": e.value,
2303
2520
  anchor: t.anchor,
2304
2521
  role: "tooltip",
@@ -2314,14 +2531,14 @@ const so = ["role"], io = /* @__PURE__ */ L({
2314
2531
  placement: t.placement,
2315
2532
  trigger: t.trigger
2316
2533
  }, {
2317
- default: k(() => [
2318
- y(l.$slots, "default", {}, () => [
2319
- t.icon ? (u(), I(m(F), G(re({ key: 0 }, t.icon)), null, 16)) : $("", !0),
2320
- t.html ? (u(), v("span", {
2534
+ default: _(() => [
2535
+ h(l.$slots, "default", {}, () => [
2536
+ t.icon ? (r(), S(m(N), j(ie({ key: 0 }, t.icon)), null, 16)) : x("", !0),
2537
+ t.html ? (r(), p("span", {
2321
2538
  key: 1,
2322
2539
  innerHTML: t.text
2323
- }, null, 8, pn)) : (u(), v(te, { key: 2 }, [
2324
- me(N(t.text), 1)
2540
+ }, null, 8, En)) : (r(), p(K, { key: 2 }, [
2541
+ ue(z(t.text), 1)
2325
2542
  ], 64))
2326
2543
  ])
2327
2544
  ]),
@@ -2329,53 +2546,57 @@ const so = ["role"], io = /* @__PURE__ */ L({
2329
2546
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2330
2547
  ], 64));
2331
2548
  }
2332
- }), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2549
+ }), An = T(Dn), Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2333
2550
  __proto__: null,
2334
- QBadge: Dt,
2335
- QButton: de,
2336
- QButtonGroup: tt,
2337
- QButtonToggle: Qt,
2338
- QCombobox: qo,
2339
- QDialog: Qo,
2340
- QField: xe,
2341
- QIcon: F,
2342
- QIconFont: Ye,
2343
- QIconImg: Ze,
2344
- QIconSvg: Je,
2345
- QInputGroup: No,
2346
- QLineLoader: Ko,
2551
+ QBadge: Mt,
2552
+ QButton: re,
2553
+ QButtonGroup: nt,
2554
+ QButtonToggle: Ut,
2555
+ QCombobox: Bo,
2556
+ QDialog: Uo,
2557
+ QField: Le,
2558
+ QIcon: N,
2559
+ QIconFont: Je,
2560
+ QIconImg: et,
2561
+ QIconSvg: tt,
2562
+ QInputGroup: jo,
2563
+ QLineLoader: Xo,
2347
2564
  QList: Ve,
2348
- QListItem: ot,
2349
- QListItemGroup: nt,
2350
- QOverlay: he,
2351
- QPopover: Yo,
2352
- QSelect: an,
2353
- QSkeletonLoader: un,
2354
- QSpinnerLoader: Ie,
2355
- QTextField: lt,
2356
- QThemeProvider: fn,
2357
- QTooltip: vn
2565
+ QListItem: lt,
2566
+ QListItemGroup: st,
2567
+ QOverlay: ye,
2568
+ QPopover: on,
2569
+ QPropertyList: gn,
2570
+ QPropertyListGroup: rt,
2571
+ QPropertyListPanel: dt,
2572
+ QPropertyListRow: it,
2573
+ QSelect: Ln,
2574
+ QSkeletonLoader: Cn,
2575
+ QSpinnerLoader: xe,
2576
+ QTextField: at,
2577
+ QThemeProvider: Vn,
2578
+ QTooltip: An
2358
2579
  }, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
2359
- function yn() {
2360
- const o = He(be);
2580
+ function Fn() {
2581
+ const o = Ke(be);
2361
2582
  if (!o)
2362
2583
  throw new Error("[Quidgest UI] Could not find theme instance");
2363
2584
  return o;
2364
2585
  }
2365
- function In(o) {
2366
- const t = yn(), e = {
2367
- activeTheme: T(o),
2586
+ function Gn(o) {
2587
+ const t = Fn(), e = {
2588
+ activeTheme: E(o),
2368
2589
  themes: t.themes
2369
2590
  };
2370
- return Ne(be, e), e;
2591
+ return Re(be, e), e;
2371
2592
  }
2372
- function bn() {
2593
+ function zn() {
2373
2594
  let o = document.getElementById(
2374
2595
  be
2375
2596
  );
2376
2597
  return o || (o = document.createElement("style"), o.id = be, document.head.appendChild(o)), o;
2377
2598
  }
2378
- function gn(o) {
2599
+ function Mn(o) {
2379
2600
  let t = "";
2380
2601
  for (const n of o) {
2381
2602
  t += `.q-theme--${n.name} {
@@ -2385,43 +2606,43 @@ function gn(o) {
2385
2606
  for (s in l) {
2386
2607
  const i = l[s];
2387
2608
  if (i) {
2388
- t += ` ${Ue(s)}: ${i};
2609
+ t += ` ${He(s)}: ${i};
2389
2610
  `;
2390
- const a = et(i);
2391
- t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2611
+ const a = ot(i);
2612
+ t += ` ${He(s)}-rgb: ${a.r} ${a.g} ${a.b};
2392
2613
  `;
2393
2614
  }
2394
2615
  }
2395
2616
  t += `}
2396
2617
  `;
2397
2618
  }
2398
- const e = bn();
2619
+ const e = zn();
2399
2620
  e.textContent = t;
2400
2621
  }
2401
- function Ue(o) {
2402
- return o ? `--q-theme-${Xe(o)}` : "";
2622
+ function He(o) {
2623
+ return o ? `--q-theme-${Ze(o)}` : "";
2403
2624
  }
2404
- function _n(o = {}) {
2625
+ function Pn(o = {}) {
2405
2626
  return { install: (e) => {
2406
2627
  const n = o.components || {};
2407
2628
  for (const s in n)
2408
2629
  e.component(s, n[s]);
2409
2630
  const l = o.defaults || {};
2410
- e.provide(Ce, T(l)), kn(e, o.themes);
2631
+ e.provide(Te, E(l)), On(e, o.themes);
2411
2632
  } };
2412
2633
  }
2413
- function kn(o, t) {
2634
+ function On(o, t) {
2414
2635
  const e = [];
2415
2636
  let n;
2416
2637
  if (!t)
2417
2638
  n = "default", e.push({
2418
2639
  name: n,
2419
2640
  mode: "light",
2420
- scheme: Le
2641
+ scheme: Ie
2421
2642
  });
2422
2643
  else
2423
2644
  for (const l of t.themes) {
2424
- const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
2645
+ const i = { ...l.mode === "light" ? Ie : We, ...l.colors };
2425
2646
  e.push({
2426
2647
  name: l.name,
2427
2648
  mode: l.mode,
@@ -2430,21 +2651,21 @@ function kn(o, t) {
2430
2651
  }
2431
2652
  if (n) {
2432
2653
  const l = {
2433
- activeTheme: T(n),
2654
+ activeTheme: E(n),
2434
2655
  themes: e
2435
2656
  };
2436
- gn(e), Z(l.activeTheme, wn, { immediate: !0 }), o.provide(be, l);
2657
+ Mn(e), ee(l.activeTheme, Un, { immediate: !0 }), o.provide(be, l);
2437
2658
  }
2438
2659
  }
2439
- function wn(o) {
2660
+ function Un(o) {
2440
2661
  const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
2441
2662
  t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
2442
2663
  }
2443
- const xn = (o = {}) => _n({ components: hn, ...o });
2664
+ const Rn = (o = {}) => Pn({ components: Qn, ...o });
2444
2665
  export {
2445
- hn as components,
2446
- xn as createFramework,
2447
- In as provideTheme,
2448
- qn as templates,
2449
- yn as useTheme
2666
+ Qn as components,
2667
+ Rn as createFramework,
2668
+ Gn as provideTheme,
2669
+ Hn as templates,
2670
+ Fn as useTheme
2450
2671
  };