@quidgest/ui 0.13.3 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/manifest/components.json +4 -0
  2. package/dist/ui.css +81 -0
  3. package/dist/ui.esm.js +1163 -935
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +110 -101
  7. package/dist/ui.scss +1059 -973
  8. package/esm/components/QBadge/QBadge.d.ts +16 -68
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +29 -32
  11. package/esm/components/QBadge/index.d.ts +2 -139
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +29 -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 +15 -80
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/index.d.ts +3 -198
  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 +11 -42
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/index.d.ts +2 -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 +16 -73
  29. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  30. package/esm/components/QButtonToggle/index.d.ts +2 -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 +445 -435
  35. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.vue.js +121 -126
  37. package/esm/components/QCombobox/index.d.ts +2 -1075
  38. package/esm/components/QCombobox/index.d.ts.map +1 -1
  39. package/esm/components/QCombobox/types.d.ts +93 -0
  40. package/esm/components/QCombobox/types.d.ts.map +1 -0
  41. package/esm/components/QCombobox/types.js +16 -0
  42. package/esm/components/QDialog/QDialog.d.ts +23 -186
  43. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  44. package/esm/components/QDialog/QDialog.vue.js +48 -64
  45. package/esm/components/QDialog/index.d.ts +3 -268
  46. package/esm/components/QDialog/index.d.ts.map +1 -1
  47. package/esm/components/QDialog/types.d.ts +80 -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 +22 -77
  51. package/esm/components/QField/QField.d.ts.map +1 -1
  52. package/esm/components/QField/index.d.ts +3 -169
  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 +6 -6
  57. package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
  58. package/esm/components/QIcon/InlineSvg.js +6 -13
  59. package/esm/components/QIcon/QIcon.d.ts +4 -46
  60. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  61. package/esm/components/QIcon/QIcon.vue.js +2 -2
  62. package/esm/components/QIcon/QIconFont.d.ts +3 -51
  63. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  64. package/esm/components/QIcon/QIconFont.vue.js +9 -9
  65. package/esm/components/QIcon/QIconImg.d.ts +2 -36
  66. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  67. package/esm/components/QIcon/QIconImg.vue.js +3 -3
  68. package/esm/components/QIcon/QIconSvg.d.ts +7 -65
  69. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  70. package/esm/components/QIcon/QIconSvg.vue.js +9 -9
  71. package/esm/components/QIcon/index.d.ts +9 -157
  72. package/esm/components/QIcon/index.d.ts.map +1 -1
  73. package/esm/components/QIcon/types.d.ts +40 -0
  74. package/esm/components/QIcon/types.d.ts.map +1 -0
  75. package/esm/components/QInputGroup/QInputGroup.d.ts +17 -74
  76. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  77. package/esm/components/QInputGroup/index.d.ts +2 -153
  78. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  79. package/esm/components/QInputGroup/types.d.ts +34 -0
  80. package/esm/components/QInputGroup/types.d.ts.map +1 -0
  81. package/esm/components/QLineLoader/QLineLoader.d.ts +3 -29
  82. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  83. package/esm/components/QLineLoader/index.d.ts +2 -13
  84. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  85. package/esm/components/QLineLoader/types.d.ts +7 -0
  86. package/esm/components/QLineLoader/types.d.ts.map +1 -0
  87. package/esm/components/QList/QList.d.ts +25 -116
  88. package/esm/components/QList/QList.d.ts.map +1 -1
  89. package/esm/components/QList/QListItem.d.ts +16 -84
  90. package/esm/components/QList/QListItem.d.ts.map +1 -1
  91. package/esm/components/QList/QListItem.vue.js +25 -31
  92. package/esm/components/QList/QListItemGroup.d.ts +11 -34
  93. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  94. package/esm/components/QList/index.d.ts +7 -453
  95. package/esm/components/QList/index.d.ts.map +1 -1
  96. package/esm/components/QList/types.d.ts +100 -0
  97. package/esm/components/QList/types.d.ts.map +1 -0
  98. package/esm/components/QList/types.js +11 -0
  99. package/esm/components/QOverlay/QOverlay.d.ts +31 -234
  100. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  101. package/esm/components/QOverlay/QOverlay.vue.js +1 -2
  102. package/esm/components/QOverlay/index.d.ts +2 -339
  103. package/esm/components/QOverlay/index.d.ts.map +1 -1
  104. package/esm/components/QOverlay/types.d.ts +87 -0
  105. package/esm/components/QOverlay/types.d.ts.map +1 -0
  106. package/esm/components/QPopover/QPopover.d.ts +21 -120
  107. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  108. package/esm/components/QPopover/index.d.ts +2 -180
  109. package/esm/components/QPopover/index.d.ts.map +1 -1
  110. package/esm/components/QPopover/types.d.ts +43 -0
  111. package/esm/components/QPopover/types.d.ts.map +1 -0
  112. package/esm/components/QPropertyList/QPropertyList.d.ts +42 -0
  113. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -0
  114. package/esm/components/QPropertyList/QPropertyList.vue.js +145 -0
  115. package/esm/components/QPropertyList/QPropertyList.vue2.js +4 -0
  116. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +11 -0
  117. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -0
  118. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +68 -0
  119. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +4 -0
  120. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +21 -0
  121. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -0
  122. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +43 -0
  123. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +4 -0
  124. package/esm/components/QPropertyList/QPropertyListRow.d.ts +24 -0
  125. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -0
  126. package/esm/components/QPropertyList/QPropertyListRow.vue.js +64 -0
  127. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +4 -0
  128. package/esm/components/QPropertyList/index.d.ts +12 -0
  129. package/esm/components/QPropertyList/index.d.ts.map +1 -0
  130. package/esm/components/QPropertyList/index.js +12 -0
  131. package/esm/components/QPropertyList/types.d.ts +137 -0
  132. package/esm/components/QPropertyList/types.d.ts.map +1 -0
  133. package/esm/components/QPropertyList/types.js +14 -0
  134. package/esm/components/QSelect/QSelect.d.ts +202 -227
  135. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  136. package/esm/components/QSelect/QSelect.vue.js +140 -146
  137. package/esm/components/QSelect/index.d.ts +2 -369
  138. package/esm/components/QSelect/index.d.ts.map +1 -1
  139. package/esm/components/QSelect/types.d.ts +81 -0
  140. package/esm/components/QSelect/types.d.ts.map +1 -0
  141. package/esm/components/QSelect/types.js +16 -0
  142. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +3 -41
  143. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  144. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
  145. package/esm/components/QSkeletonLoader/index.d.ts +2 -31
  146. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  147. package/esm/components/QSkeletonLoader/types.d.ts +15 -0
  148. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -0
  149. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +3 -35
  150. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  151. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  152. package/esm/components/QSpinnerLoader/index.d.ts +2 -22
  153. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  154. package/esm/components/QSpinnerLoader/types.d.ts +11 -0
  155. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -0
  156. package/esm/components/QTextField/QTextField.d.ts +103 -147
  157. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  158. package/esm/components/QTextField/index.d.ts +2 -229
  159. package/esm/components/QTextField/index.d.ts.map +1 -1
  160. package/esm/components/QTextField/types.d.ts +50 -0
  161. package/esm/components/QTextField/types.d.ts.map +1 -0
  162. package/esm/components/QThemeProvider/QThemeProvider.d.ts +10 -17
  163. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  164. package/esm/components/QThemeProvider/index.d.ts +2 -37
  165. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  166. package/esm/components/QThemeProvider/types.d.ts +7 -0
  167. package/esm/components/QThemeProvider/types.d.ts.map +1 -0
  168. package/esm/components/QTooltip/QTooltip.d.ts +28 -190
  169. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  170. package/esm/components/QTooltip/index.d.ts +2 -279
  171. package/esm/components/QTooltip/index.d.ts.map +1 -1
  172. package/esm/components/QTooltip/types.d.ts +66 -0
  173. package/esm/components/QTooltip/types.d.ts.map +1 -0
  174. package/esm/components/index.d.ts +1 -0
  175. package/esm/components/index.d.ts.map +1 -1
  176. package/esm/components/index.js +42 -37
  177. package/esm/composables/defaults.d.ts +0 -1
  178. package/esm/composables/defaults.js +3 -6
  179. package/esm/composables/theme.d.ts +0 -1
  180. package/esm/framework.d.ts +0 -1
  181. package/esm/index.d.ts +4 -0
  182. package/esm/templates/theme.d.ts +0 -1
  183. package/esm/utils/color.js +1 -2
  184. package/esm/utils/setupPropsProxy.d.ts +0 -1
  185. package/esm/utils/setupPropsProxy.js +2 -4
  186. package/esm/utils/theme.d.ts +0 -1
  187. package/package.json +40 -41
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 g, openBlock as r, createElementBlock as p, normalizeClass as V, normalizeStyle as ue, getCurrentInstance as Ne, ref as D, provide as He, inject as Ge, withModifiers as ve, createVNode as z, unref as m, createCommentVNode as x, createElementVNode as L, Fragment as K, createTextVNode as ce, toDisplayString as O, renderSlot as h, createBlock as S, resolveDynamicComponent as Be, h as Qe, withCtx as _, normalizeProps as j, guardReactiveProps as le, toRef as Fe, mergeModels as Z, useModel as ne, renderList as he, mergeProps as J, reactive as ze, watch as te, nextTick as oe, onMounted as Re, onBeforeUnmount as ut, Teleport as ct, 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.1
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
+ }, Ke = {
39
39
  primary: "#009ff5",
40
40
  primaryLight: "#ade2ff",
41
41
  primaryDark: "#164965",
@@ -66,11 +66,11 @@ const Le = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, On = /* @__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: Ke,
72
+ defaultLightColorScheme: Ie
73
+ }, Symbol.toStringTag, { value: "Module" })), ht = /* @__PURE__ */ B({
74
74
  __name: "QSpinnerLoader",
75
75
  props: {
76
76
  size: { default: 48 },
@@ -80,8 +80,8 @@ const Le = {
80
80
  const t = o, e = g(() => ({
81
81
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
82
  }));
83
- return (n, l) => (u(), v("div", {
84
- class: C(["q-spinner-loader", t.class]),
83
+ return (n, l) => (r(), p("div", {
84
+ class: V(["q-spinner-loader", t.class]),
85
85
  style: ue(e.value)
86
86
  }, null, 6));
87
87
  }
@@ -92,14 +92,14 @@ function Se(o) {
92
92
  function Me(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
101
  if (Me(l) && Me(s)) {
102
- e[n] = Be(
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 = Ne();
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");
119
+ if (!t) throw new Error("[Quidgest UI] Could not determine component name");
121
120
  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));
121
+ return g(() => 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 je(o) {
124
+ if (Se(o)) return;
125
+ const t = We(), e = D(o), n = g(() => Se(e.value) ? t.value : Ce(t.value, e.value));
126
+ He(Te, n);
129
127
  }
130
128
  function We() {
131
- const o = He(Ce, void 0);
132
- if (!o)
133
- throw new Error("[Quidgest UI] Could not find defaults instance");
129
+ const o = Ge(Te, void 0);
130
+ if (!o) throw new Error("[Quidgest UI] Could not find defaults instance");
134
131
  return o;
135
132
  }
136
133
  function Xe(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 bt(o, t) {
140
137
  var n;
141
138
  const e = Xe(t);
142
139
  return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
143
140
  }
144
- function B(o) {
141
+ function C(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 = Ne();
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 c = Reflect.get(a, d), w = (I = l.value) == null ? void 0 : I[d];
152
+ return typeof d == "string" && !bt(s.vnode, d) ? w ?? c : c;
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 = C(ht), gt = ["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" }, wt = /* @__PURE__ */ B({
167
162
  __name: "QButton",
168
163
  props: {
169
164
  active: { type: Boolean },
@@ -200,33 +195,33 @@ 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
- class: C(i.value),
200
+ class: V(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
+ z(m(xe), { size: 20 })
206
+ ])) : x("", !0),
207
+ L("span", kt, [
208
+ a.iconOnRight ? (r(), p(K, { key: 0 }, [
209
+ ce(O(e.label), 1)
210
+ ], 64)) : x("", !0),
211
+ h(a.$slots, "default"),
212
+ a.iconOnRight ? x("", !0) : (r(), p(K, { key: 1 }, [
213
+ ce(O(e.label), 1)
219
214
  ], 64))
220
215
  ])
221
- ], 10, mt));
216
+ ], 10, gt));
222
217
  }
223
- }), de = B(yt), bt = /* @__PURE__ */ L({
218
+ }), re = C(wt), $t = /* @__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
227
  const t = o, e = g(() => {
@@ -241,31 +236,31 @@ const Ie = B(ct), mt = ["disabled"], vt = {
241
236
  return;
242
237
  }
243
238
  });
244
- return (n, l) => (u(), I(Ke(e.value), {
245
- class: C(t.class),
239
+ return (n, l) => (r(), S(Be(e.value), {
240
+ class: V(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
255
  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(() => ({
261
256
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
262
257
  }));
263
- return (s, i) => (u(), v("i", {
264
- class: C(["q-icon", "q-icon__font", e.value, n.value, t.class]),
258
+ return (s, i) => (r(), p("i", {
259
+ class: V(["q-icon", "q-icon__font", e.value, n.value, t.class]),
265
260
  style: ue(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: {},
@@ -276,13 +271,13 @@ const Ie = B(ct), mt = ["disabled"], vt = {
276
271
  const t = o, e = g(() => ({
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
- class: C(["q-icon", "q-icon__img", t.class]),
276
+ class: V(["q-icon", "q-icon__img", t.class]),
282
277
  style: ue(e.value)
283
- }, null, 14, _t));
278
+ }, null, 14, xt));
284
279
  }
285
- }), ye = {}, wt = L({
280
+ }), be = {}, 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 Qe("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, Qe("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
+ be[o] || (be[o] = Bt(this.download(o))), this.svgElSource && be[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
362
+ const t = await be[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 be[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,13 +405,13 @@ 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 }) {
@@ -436,8 +424,8 @@ const It = /* @__PURE__ */ L({
436
424
  function i() {
437
425
  n("unloaded");
438
426
  }
439
- return (a, r) => (u(), I(m(wt), {
440
- class: C(["q-icon", "q-icon__svg", e.class]),
427
+ return (a, d) => (r(), S(m(It), {
428
+ class: V(["q-icon", "q-icon__svg", e.class]),
441
429
  src: e.bundle,
442
430
  symbol: e.icon,
443
431
  style: ue(l.value),
@@ -445,11 +433,15 @@ const It = /* @__PURE__ */ L({
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 = C($t), Ye = C(qt), Ze = C(Lt), Je = C(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);
@@ -457,34 +449,33 @@ function Lt(o) {
457
449
  }
458
450
  }
459
451
  function et(o) {
460
- if (xt(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
- const f = l - s;
479
- switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
469
+ const c = l - s;
470
+ switch (a = d > 0.5 ? c / (2 - l - s) : c / (l + s), l) {
480
471
  case t:
481
- i = (e - n) / f + (e < n ? 6 : 0);
472
+ i = (e - n) / c + (e < n ? 6 : 0);
482
473
  break;
483
474
  case e:
484
- i = (n - t) / f + 2;
475
+ i = (n - t) / c + 2;
485
476
  break;
486
477
  case n:
487
- i = (t - e) / f + 4;
478
+ i = (t - e) / c + 4;
488
479
  break;
489
480
  }
490
481
  i /= 6;
@@ -492,73 +483,69 @@ 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 = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
506
493
  __name: "QBadge",
507
494
  props: {
508
495
  color: { default: "primary" },
509
496
  variant: { default: "tonal" },
510
497
  removable: { type: Boolean },
511
498
  pill: { type: Boolean },
512
- internals: { default: () => ({ icons: Tt }) }
499
+ icons: { default: () => Tt }
513
500
  },
514
501
  emits: ["click:remove"],
515
502
  setup(o, { emit: t }) {
516
503
  const e = o, n = t, l = g(
517
504
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
518
505
  ), 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 }];
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 }];
521
508
  }), i = g(() => {
522
- let r, f;
509
+ let d, c;
523
510
  if (!l.value)
524
- if (r = e.color, e.variant === "tonal")
525
- f = e.color;
511
+ if (d = e.color, e.variant === "tonal")
512
+ c = e.color;
526
513
  else {
527
- const q = et(r), x = St(q);
528
- f = Bt(x.l);
514
+ const w = et(d), I = Dt(w);
515
+ c = At(I.l);
529
516
  }
530
517
  return {
531
- "--q-badge-color": r,
532
- "--q-badge-text-color": f
518
+ "--q-badge-color": d,
519
+ "--q-badge-text-color": c
533
520
  };
534
521
  });
535
522
  function a() {
536
523
  n("click:remove");
537
524
  }
538
- return (r, f) => (u(), v("span", {
539
- class: C(s.value),
525
+ return (d, c) => (r(), p("span", {
526
+ class: V(s.value),
540
527
  role: "presentation",
541
528
  style: ue(i.value)
542
529
  }, [
543
- Ct,
544
- A("div", Vt, [
545
- y(r.$slots, "default"),
546
- e.removable ? (u(), I(m(de), {
530
+ c[0] || (c[0] = L("div", { class: "q-badge__underlay" }, null, -1)),
531
+ L("div", Qt, [
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
+ z(m(N), j(le(e.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
+ }), zt = C(Ft), Mt = /* @__PURE__ */ B({
562
549
  __name: "QButtonGroup",
563
550
  props: {
564
551
  disabled: { type: Boolean },
@@ -568,15 +555,15 @@ 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 je({
572
559
  QButton: {
573
560
  bStyle: "secondary",
574
- disabled: ze(t, "disabled"),
575
- borderless: ze(t, "borderless"),
561
+ disabled: Fe(t, "disabled"),
562
+ borderless: Fe(t, "borderless"),
576
563
  elevated: !1
577
564
  }
578
- }), (e, n) => (u(), v("div", {
579
- class: C([
565
+ }), (e, n) => (r(), p("div", {
566
+ class: V([
580
567
  "q-btn-group",
581
568
  {
582
569
  "q-btn-group--elevated": t.elevated
@@ -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
+ }), tt = C(Mt), 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 = ne(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(tt), {
610
597
  "b-style": "secondary",
611
- class: C(t.class),
598
+ class: V(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
+ }), Pt = C(Ot), Ut = /* @__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 = ne(o, "modelValue"), l = D(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
640
+ (v) => e.items.some(($) => $.group === v.id)
641
+ ) : [{ id: "", title: "" }]), a = D(null);
642
+ function d(v) {
643
+ n.value = v;
657
644
  }
658
- function f() {
645
+ function c() {
659
646
  l.value = !0;
660
647
  }
661
- function q() {
648
+ function w() {
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 b;
653
+ if ((b = a.value) != null && b.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 $;
656
+ n.value ? $ = e.items.findIndex((G) => G[e.itemValue] === n.value) : $ = Q();
657
+ const f = l.value;
658
+ T($, f);
672
659
  }
673
- function M(p) {
674
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
660
+ function P(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
+ T(W(v));
694
681
  break;
695
682
  case "first":
696
- S(R());
683
+ T(Q());
697
684
  break;
698
685
  case "last":
699
- S(O());
686
+ T(H());
700
687
  break;
701
688
  }
702
689
  }
703
- function S(p, _ = !1) {
704
- var h;
705
- (h = V()[p]) == null || h.focus({ preventScroll: _ });
706
- }
707
- function V() {
708
- var _;
709
- const p = (_ = a.value) == null ? void 0 : _.querySelectorAll("li");
710
- return p ? Array.from(p) : [];
711
- }
712
- function Y(p) {
713
- return V()[p];
714
- }
715
- function oe() {
716
- return V().indexOf(document.activeElement);
717
- }
718
- function R() {
719
- const p = V(), _ = p.find((c) => Q(c));
720
- return _ ? p.indexOf(_) : -1;
721
- }
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;
690
+ function T(v, $ = !1) {
691
+ var b;
692
+ (b = y()[v]) == null || b.focus({ preventScroll: $ });
693
+ }
694
+ function y() {
695
+ var $;
696
+ const v = ($ = a.value) == null ? void 0 : $.querySelectorAll("li");
697
+ return v ? Array.from(v) : [];
698
+ }
699
+ function E(v) {
700
+ return y()[v];
701
+ }
702
+ function M() {
703
+ return y().indexOf(document.activeElement);
704
+ }
705
+ function Q() {
706
+ const v = y(), $ = v.find((f) => U(f));
707
+ return $ ? v.indexOf($) : -1;
708
+ }
709
+ function H() {
710
+ const v = y(), $ = [...v].reverse().find((f) => U(f));
711
+ return $ ? v.indexOf($) : -1;
712
+ }
713
+ function se(v, $, f) {
714
+ return $ === "prev" && v === 0 || $ === "next" && v === f.length - 1;
715
+ }
716
+ function W(v) {
717
+ const $ = M();
718
+ return ae($, v);
719
+ }
720
+ function ae(v, $) {
721
+ const f = y();
722
+ if (se(v, $, f))
723
+ return v;
724
+ let b = v + ($ === "next" ? 1 : -1);
725
+ for (; !U(f[b]); ) {
726
+ if (se(b, $, f))
727
+ return v;
728
+ b += $ === "next" ? 1 : -1;
742
729
  }
743
- return h;
730
+ return b;
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(($) => $.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: T,
740
+ getItem: E,
741
+ getAdjacentItemIndex: ae,
742
+ getFirstFocusableItemIndex: Q,
743
+ getLastFocusableItemIndex: H
744
+ }), (v, $) => (r(), S(Be(s.value), {
758
745
  ref_key: "listRef",
759
746
  ref: a,
760
- class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
747
+ class: V(["q-list", { "q-list--disabled": e.disabled }, e.class]),
761
748
  role: "listbox",
762
749
  tabindex: e.disabled ? -1 : 0,
763
- onFocus: x,
764
- onMousedown: f,
765
- onMouseup: q,
766
- onKeydown: M
750
+ onFocus: I,
751
+ onMousedown: c,
752
+ onMouseup: w,
753
+ onKeydown: P
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, (f) => (r(), S(m(nt), {
757
+ key: f.id,
758
+ id: f.id,
759
+ title: i.value.length === 1 ? void 0 : f.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(f.id), (b) => (r(), S(m(ot), {
763
+ key: b[e.itemValue],
764
+ value: b[e.itemValue],
765
+ label: b[e.itemLabel],
766
+ description: b.description,
767
+ icon: b.icon,
768
+ disabled: e.disabled || f.disabled || b.disabled,
769
+ highlighted: e.highlighted === b[e.itemValue],
770
+ selected: v.selectable && n.value === b[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: b })
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
+ }), Nt = {
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 Ht = 0;
794
+ function fe(o) {
795
+ return o || `uid-${++Ht}`;
796
+ }
797
+ const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = { class: "q-list-item__container" }, Kt = { class: "q-list-item__content" }, jt = {
798
+ key: 0,
799
+ class: "q-list-item__description"
800
+ }, Wt = { class: "q-list-item__check-container" }, Xt = /* @__PURE__ */ B({
814
801
  __name: "QListItem",
815
802
  props: {
816
803
  value: { type: [String, Number, Boolean, Symbol] },
@@ -820,23 +807,23 @@ 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
+ icons: { default: () => Nt }
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",
838
825
  tabindex: e.disabled ? void 0 : -2,
839
- class: C([
826
+ class: V([
840
827
  "q-list-item",
841
828
  {
842
829
  "q-list-item--disabled": e.disabled,
@@ -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", Rt, [
840
+ L("div", Kt, [
841
+ h(a.$slots, "default", {}, () => [
842
+ e.icon ? (r(), S(m(N), j(J({ key: 0 }, e.icon)), null, 16)) : x("", !0),
843
+ ce(" " + O(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", jt, [
847
+ z(m(N), j(le(e.icons.description)), null, 16),
848
+ L("span", null, O(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", Wt, [
852
+ e.selected ? (r(), S(m(N), J({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : x("", !0)
866
853
  ])
867
- ], 42, Ot));
854
+ ], 42, Gt));
868
855
  }
869
- }), Gt = ["data-key", "aria-labelledby"], Rt = ["id"], Wt = /* @__PURE__ */ L({
856
+ }), Yt = ["data-key", "aria-labelledby"], Zt = ["id"], Jt = /* @__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
+ }, O(t.title), 9, Zt)) : x("", !0),
876
+ h(n.$slots, "default")
877
+ ], 8, Yt));
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 = C(Ut), ot = C(Xt), nt = C(Jt), we = 8;
880
+ function eo(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(), c = to(i, a, s, l), w = so(i, a, c), I = no(w, c, l), P = oo(I, a, c);
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 = lo(P, i, a, d, c);
900
887
  }
901
- return { overlayCoords: M, arrowCoords: E, placement: f };
888
+ return { overlayCoords: P, arrowCoords: A, placement: c };
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 to(o, t, e, n) {
891
+ const l = Oe(o, t, e, n);
892
+ if (Pe(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 = Oe(
912
899
  o,
913
900
  t,
914
901
  a,
915
902
  n
916
903
  );
917
- if (Oe(r))
904
+ if (Pe(d))
918
905
  return e;
919
- const f = lo(e);
920
- return f ? `${a}-${f}` : a;
906
+ const c = ro(e);
907
+ return c ? `${a}-${c}` : 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 oo(o, t, e) {
912
+ const n = $e(e), l = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...o };
913
+ return n === "x" ? s.x = l(o.x, we, window.innerWidth - t.width - we) : s.y = l(o.y, we, window.innerHeight - t.height - we), s;
927
914
  }
928
- function Jt(o, t, e) {
929
- const n = ge(t);
915
+ function no(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) {
922
+ function lo(o, t, e, n, l) {
936
923
  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;
938
- if (f > 0 && f < e.height - n.height)
924
+ const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i, c = e.height / 2 - d - n.height / 2 + 2;
925
+ if (c > 0 && c < e.height - n.height)
939
926
  return {
940
- y: f
927
+ y: c
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;
944
- if (f > 0 && f < e.width - n.width)
930
+ const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i, c = e.width / 2 - d - n.width / 2 + 2;
931
+ if (c > 0 && c < e.width - n.width)
945
932
  return {
946
- x: f
933
+ x: c
947
934
  };
948
935
  }
949
936
  }
950
- function to(o, t, e) {
937
+ function so(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 c = $e(e) === "y" ? "height" : "width", w = $e(e), I = o[c] / 2 - t[c] / 2;
972
959
  switch (l) {
973
960
  case "start":
974
- a[q] -= x;
961
+ a[w] -= I;
975
962
  break;
976
963
  case "end":
977
- a[q] += x;
964
+ a[w] += 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 Oe(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 ao(o) {
1006
993
  return o === "x" ? "y" : "x";
1007
994
  }
1008
- function no(o) {
1009
- const t = ge(o);
995
+ function io(o) {
996
+ const t = _e(o);
1010
997
  return ["left", "right"].includes(t) ? "x" : "y";
1011
998
  }
1012
999
  function $e(o) {
1013
- return oo(no(o));
1000
+ return ao(io(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 ro(o) {
1020
1007
  const [, t] = o.split("-");
1021
1008
  return t;
1022
1009
  }
1023
- function Oe(o) {
1010
+ function Pe(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 co = ["role"], fo = /* @__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 = ne(o, "modelValue"), s = g(() => [
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 = g(() => (l.value || a.animating) && !e.nonModal), a = ze({
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 = ze({
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
+ }), c = g(() => a.top !== 0 && a.left !== 0);
1063
+ te(l, () => a.animating = !0);
1064
+ const w = g(() => {
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 = g(() => {
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
+ }), P = D(null), A = D(null);
1080
+ function T() {
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,
1106
- (M == null ? void 0 : M.value) ?? void 0,
1107
- ce
1089
+ }, X = eo(
1090
+ k,
1091
+ A.value,
1092
+ (P == null ? void 0 : P.value) ?? void 0,
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
+ te(
1112
1098
  () => e.placement,
1113
- () => J(S)
1099
+ () => oe(T)
1114
1100
  );
1115
- let V;
1116
- function Y() {
1117
- R(0);
1101
+ let y;
1102
+ function E() {
1103
+ Q(0);
1118
1104
  }
1119
- function oe() {
1120
- R(e.delay);
1105
+ function M() {
1106
+ Q(e.delay);
1121
1107
  }
1122
- function R(b) {
1123
- V || (V = window.setTimeout(() => {
1108
+ function Q(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
+ te(c, () => oe(se));
1120
+ function se() {
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 ae() {
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(T), 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", E);
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", M), k.addEventListener("mouseleave", H), k.addEventListener("focusin", E), 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 $() {
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", E);
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", M), k.removeEventListener("mouseleave", H), k.removeEventListener("focusin", E), 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 f() {
1161
+ window.addEventListener("resize", T), e.scrollLock || window.addEventListener("scroll", T);
1176
1162
  }
1177
- function h() {
1178
- window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
1163
+ function b() {
1164
+ window.removeEventListener("resize", T), e.scrollLock || window.removeEventListener("scroll", T);
1179
1165
  }
1180
- let U;
1181
- function ae() {
1182
- Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
1166
+ let G;
1167
+ function ie() {
1168
+ U() ? (T(), G = window.setTimeout(ie, 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 ee() {
1171
+ f(), e.spy ? ie() : T(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && oe(() => {
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
+ b(), 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
- return je(() => {
1197
- J(p);
1198
- }), at(() => {
1199
- _(), ie();
1200
- }), Z(
1182
+ return Re(() => {
1183
+ oe(v);
1184
+ }), ut(() => {
1185
+ $(), de();
1186
+ }), te(
1201
1187
  l,
1202
- (b) => {
1203
- J(() => b ? K() : ie());
1188
+ (k) => {
1189
+ oe(() => k ? ee() : de());
1204
1190
  },
1205
1191
  { immediate: !0 }
1206
- ), (b, ce) => (u(), I(st, {
1192
+ ), (k, pe) => (r(), S(ct, {
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
- class: C([
1198
+ class: V([
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
+ z(ft, {
1219
1205
  name: e.transition,
1220
1206
  appear: "",
1221
- onLeave: le
1207
+ onLeave: ae
1222
1208
  }, {
1223
- default: k(() => [
1224
- l.value ? (u(), v("div", {
1209
+ default: _(() => [
1210
+ l.value ? (r(), p("div", {
1225
1211
  key: 0,
1226
- class: C(s.value),
1227
- style: ue(q.value)
1212
+ class: V(s.value),
1213
+ style: ue(w.value)
1228
1214
  }, [
1229
- A("div", re({
1215
+ L("div", J({
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
- ref: M,
1228
+ ref: P,
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: ue(I.value)
1232
+ }, null, 4)) : x("", !0),
1233
+ h(k.$slots, "default")
1234
+ ], 16, co)
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 = C(fo), po = ["id"], mo = {
1256
1242
  key: 0,
1257
1243
  class: "q-field__label"
1258
- }, co = ["for"], fo = {
1244
+ }, vo = ["for"], ho = {
1259
1245
  key: 0,
1260
1246
  class: "q-field__prepend"
1261
- }, po = {
1247
+ }, yo = {
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
+ }, go = /* @__PURE__ */ B({
1268
1254
  inheritAttrs: !1,
1269
1255
  __name: "QField",
1270
1256
  props: {
@@ -1278,12 +1264,12 @@ 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 = D(null), s = g(() => 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
- class: C([
1272
+ class: V([
1287
1273
  "q-field",
1288
1274
  `q-field--${e.size}`,
1289
1275
  {
@@ -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", mo, [
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
+ }, O(e.label), 9, vo),
1288
+ h(i.$slots, "label.append")
1289
+ ])) : x("", !0),
1290
+ h(i.$slots, "control", {}, () => [
1291
+ L("div", J({
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", ho, [
1297
+ h(i.$slots, "prepend")
1298
+ ])) : x("", !0),
1299
+ h(i.$slots, "default"),
1300
+ i.$slots.append ? (r(), p("div", yo, [
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, po));
1323
1309
  }
1324
- }), xe = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1310
+ }), Le = C(go), _o = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], ko = /* @__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,19 +1328,19 @@ 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 = ne(o, "modelValue"), l = fe(e.id), s = D(null), i = D(null), a = g(
1346
1332
  () => e.readonly || e.disabled ? "" : e.placeholder
1347
1333
  );
1348
1334
  return t({
1349
1335
  fieldRef: g(() => {
1350
- var r;
1351
- return (r = s.value) == null ? void 0 : r.fieldRef;
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, c) => (r(), S(m(Le), {
1355
1341
  ref_key: "fieldRef",
1356
1342
  ref: s,
1357
- class: C(["q-text-field", e.class]),
1343
+ class: V(["q-text-field", e.class]),
1358
1344
  for: m(l),
1359
1345
  label: e.label,
1360
1346
  size: e.size,
@@ -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", J({
1359
+ "onUpdate:modelValue": c[0] || (c[0] = (w) => n.value = w),
1374
1360
  ref_key: "inputRef",
1375
1361
  ref: i,
1376
1362
  id: m(l),
@@ -1382,53 +1368,56 @@ 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, _o), [
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 = {
1421
- noData: "No data available"
1422
- }, wo = {
1400
+ }), lt = C(ko), wo = {
1401
+ noData: "No data available",
1402
+ clearValue: "Clear value",
1403
+ showOptions: "Show options"
1404
+ }, $o = {
1423
1405
  chevron: {
1424
1406
  icon: "chevron-down"
1425
1407
  },
1426
1408
  clear: {
1427
1409
  icon: "close"
1428
1410
  }
1429
- }, $o = /* @__PURE__ */ L({
1411
+ }, qo = ["data-key"], xo = {
1412
+ key: 0,
1413
+ class: "q-select__loader"
1414
+ }, Lo = {
1415
+ key: 2,
1416
+ class: "q-select__loader"
1417
+ }, Io = /* @__PURE__ */ B({
1418
+ inheritAttrs: !1,
1430
1419
  __name: "QCombobox",
1431
- props: /* @__PURE__ */ X({
1420
+ props: /* @__PURE__ */ Z({
1432
1421
  id: { default: void 0 },
1433
1422
  placeholder: { default: "" },
1434
1423
  selectionMode: { default: "automatic" },
@@ -1446,7 +1435,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1446
1435
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1447
1436
  size: { default: void 0 },
1448
1437
  class: { default: void 0 },
1449
- internals: { default: () => ({ icons: wo, texts: ko }) }
1438
+ icons: { default: () => $o },
1439
+ texts: { default: () => wo }
1450
1440
  }, {
1451
1441
  modelValue: {
1452
1442
  type: [String, Number, Boolean, Symbol]
@@ -1457,161 +1447,159 @@ const so = ["role"], io = /* @__PURE__ */ L({
1457
1447
  search: { default: "" },
1458
1448
  searchModifiers: {}
1459
1449
  }),
1460
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1450
+ emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1461
1451
  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())
1452
+ const n = o, l = e, s = ne(o, "modelValue"), i = ne(o, "open"), a = ne(o, "search"), d = D(void 0), c = D(null), w = D(null), I = D(null), P = D(null);
1453
+ Re(W);
1454
+ const A = g(() => n.clearable && !n.readonly && !n.disabled), T = g(() => {
1455
+ var u;
1456
+ return n.filterMode === "manual" || !H.value ? n.items : (u = n.items) == null ? void 0 : u.filter(
1457
+ (q) => q[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1468
1458
  );
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)
1459
+ }), y = g(() => {
1460
+ var u;
1461
+ return (u = n.items) == null ? void 0 : u.find((q) => q[n.itemValue] === s.value);
1462
+ }), E = g(() => y.value === void 0), M = g(() => {
1463
+ const u = d.value;
1464
+ if (u !== void 0 && T.value[u])
1465
+ return T.value[u];
1466
+ }), Q = g(() => {
1467
+ var q;
1468
+ if (d.value === void 0)
1479
1469
  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]);
1470
+ const u = (q = w.value) == null ? void 0 : q.getItem(d.value);
1471
+ return u == null ? void 0 : u.id;
1472
+ }), H = g(() => {
1473
+ var u;
1474
+ return a.value.length > 0 && a.value !== ((u = y.value) == null ? void 0 : u[n.itemLabel]);
1485
1475
  });
1486
- function ne(d) {
1487
- s.value = d, Q();
1476
+ function se(u) {
1477
+ s.value = u, U();
1488
1478
  }
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);
1479
+ function W() {
1480
+ var q;
1481
+ const u = ((q = y.value) == null ? void 0 : q[n.itemLabel]) || "";
1482
+ a.value !== u && (a.value = u);
1493
1483
  }
1494
- function le() {
1495
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ie());
1484
+ function ae() {
1485
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, de());
1496
1486
  }
1497
- function Q() {
1498
- i.value && (l("before-hide"), i.value = !1, r.value = void 0);
1487
+ function U() {
1488
+ i.value && (l("before-hide"), i.value = !1, d.value = void 0);
1499
1489
  }
1500
- function W() {
1501
- i.value ? Q() : _();
1490
+ function Y() {
1491
+ i.value ? U() : $();
1502
1492
  }
1503
- function p() {
1504
- E.value && (s.value = n.emptyValue, r.value = void 0, ie());
1493
+ function v() {
1494
+ A.value && (s.value = n.emptyValue, d.value = void 0, de());
1505
1495
  }
1506
- function _() {
1507
- if (le(), V.value !== void 0) {
1508
- const d = S.value.indexOf(V.value);
1509
- d !== -1 && J(() => j(d));
1496
+ function $() {
1497
+ if (ae(), y.value !== void 0) {
1498
+ const u = T.value.indexOf(y.value);
1499
+ u !== -1 && oe(() => X(u));
1510
1500
  }
1511
1501
  }
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();
1502
+ function f(u) {
1503
+ var q, F;
1504
+ if (!(!u.key || n.readonly || n.disabled))
1505
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), u.key === "Escape")
1506
+ W(), i.value && U();
1507
+ else if (["ArrowDown", "ArrowUp"].includes(u.key))
1508
+ i.value ? oe(() => {
1509
+ if (d.value === void 0)
1510
+ b();
1521
1511
  else {
1522
- const P = d.key === "ArrowDown" ? "next" : "prev";
1523
- ae(r.value, P);
1512
+ const R = u.key === "ArrowDown" ? "next" : "prev";
1513
+ ie(d.value, R);
1524
1514
  }
1525
- }) : (le(), J(() => {
1526
- d.key === "ArrowDown" ? h() : U();
1515
+ }) : (ae(), oe(() => {
1516
+ u.key === "ArrowDown" ? b() : G();
1527
1517
  }));
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();
1518
+ else if (u.key === "Enter") {
1519
+ if (M.value === void 0) return;
1520
+ se(M.value[n.itemValue]);
1521
+ } else u.key === "Home" ? d.value = (q = w.value) == null ? void 0 : q.getFirstFocusableItemIndex() : u.key === "End" ? d.value = (F = w.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(u.key) || u.key === "Backspace") && ae();
1522
+ }
1523
+ function b() {
1524
+ var u, q;
1525
+ if (E.value)
1526
+ d.value = (q = w.value) == null ? void 0 : q.getFirstFocusableItemIndex();
1539
1527
  else {
1540
- const D = S.value.findIndex(
1541
- (P) => P[n.itemValue] === s.value
1528
+ const F = T.value.findIndex(
1529
+ (R) => R[n.itemValue] === s.value
1542
1530
  );
1543
- D === -1 ? r.value = (d = q.value) == null ? void 0 : d.getFirstFocusableItemIndex() : r.value = D;
1531
+ F === -1 ? d.value = (u = w.value) == null ? void 0 : u.getFirstFocusableItemIndex() : d.value = F;
1544
1532
  }
1545
1533
  }
1546
- function U() {
1547
- var d;
1548
- r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
1534
+ function G() {
1535
+ var u;
1536
+ d.value = (u = w.value) == null ? void 0 : u.getLastFocusableItemIndex();
1549
1537
  }
1550
- function ae(d, w) {
1551
- var D;
1552
- r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
1538
+ function ie(u, q) {
1539
+ var F;
1540
+ d.value = (F = w.value) == null ? void 0 : F.getAdjacentItemIndex(u, q);
1553
1541
  }
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();
1542
+ function ee(u) {
1543
+ var me, Ee, De, Ae;
1544
+ const q = ((me = I == null ? void 0 : I.value) == null ? void 0 : me.$el) === u.relatedTarget, F = (De = (Ee = c == null ? void 0 : c.value) == null ? void 0 : Ee.$el) == null ? void 0 : De.contains(u.relatedTarget), R = (Ae = P == null ? void 0 : P.value) == null ? void 0 : Ae.contains(u.relatedTarget);
1545
+ if (q || R || F) {
1546
+ u.preventDefault(), u.stopPropagation();
1559
1547
  return;
1560
1548
  }
1561
- Q(), E.value && !a.value && (s.value = n.emptyValue), H();
1549
+ U(), A.value && !a.value && (s.value = n.emptyValue), W();
1562
1550
  }
1563
- function ie() {
1564
- var d, w;
1565
- (w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
1551
+ function de() {
1552
+ var u, q;
1553
+ (q = (u = c.value) == null ? void 0 : u.inputRef) == null || q.focus();
1566
1554
  }
1567
- function _e() {
1568
- ie();
1555
+ function ke() {
1556
+ de();
1569
1557
  }
1570
- function b() {
1558
+ function k() {
1571
1559
  l("show");
1572
1560
  }
1573
- function ce() {
1561
+ function pe() {
1574
1562
  l("hide");
1575
1563
  }
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);
1564
+ function X(u) {
1565
+ var F;
1566
+ const q = (F = w.value) == null ? void 0 : F.getItem(u);
1567
+ w.value && (w.value.$el.scrollTop = q == null ? void 0 : q.offsetTop);
1580
1568
  }
1581
- return Z(s, H), Z(
1569
+ return te(s, W), te(
1582
1570
  () => 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();
1571
+ (u, q) => {
1572
+ if (!E.value) {
1573
+ const F = q.find((R) => R[n.itemValue] === s.value);
1574
+ a.value === (F == null ? void 0 : F[n.itemLabel]) && W();
1587
1575
  }
1588
1576
  },
1589
1577
  { 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(
1578
+ ), te(d, (u) => {
1579
+ u !== void 0 && X(u);
1580
+ }), te(a, (u) => {
1581
+ u && i.value && n.selectionMode === "automatic" && oe(b);
1582
+ }), te(
1595
1583
  () => n.loading,
1596
- (d) => {
1597
- !d && i.value && J(h);
1584
+ (u) => {
1585
+ !u && i.value && oe(b);
1598
1586
  }
1599
1587
  ), t({
1600
- triggerEl: f
1601
- }), (d, w) => {
1602
- var D;
1603
- return u(), v(te, null, [
1604
- z(m(lt), {
1588
+ triggerEl: c
1589
+ }), (u, q) => {
1590
+ var F;
1591
+ return r(), p(K, null, [
1592
+ z(m(lt), J({
1605
1593
  modelValue: a.value,
1606
- "onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
1594
+ "onUpdate:modelValue": q[0] || (q[0] = (R) => a.value = R),
1607
1595
  id: n.id,
1608
1596
  label: n.label,
1609
1597
  required: n.required,
1610
1598
  ref_key: "triggerEl",
1611
- ref: f,
1599
+ ref: c,
1612
1600
  role: "combobox",
1613
1601
  placeholder: n.placeholder,
1614
- class: C([
1602
+ class: [
1615
1603
  "q-combobox",
1616
1604
  {
1617
1605
  "q-combobox--readonly": n.readonly,
@@ -1619,7 +1607,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1619
1607
  "q-combobox--expanded": i.value
1620
1608
  },
1621
1609
  n.class
1622
- ]),
1610
+ ],
1623
1611
  readonly: n.readonly,
1624
1612
  disabled: n.disabled,
1625
1613
  "data-loading": n.loading,
@@ -1627,119 +1615,122 @@ const so = ["role"], io = /* @__PURE__ */ L({
1627
1615
  "aria-expanded": i.value,
1628
1616
  "aria-haspopup": "listbox",
1629
1617
  "aria-autocomplete": "list",
1630
- "aria-activedescendant": R.value,
1631
- size: n.size,
1632
- onClick: _,
1633
- onFocusout: K,
1634
- onKeydown: pe(c, ["stop"])
1635
- }, qe({
1636
- "label.prepend": k(() => [
1637
- y(d.$slots, "label.prepend")
1618
+ "aria-activedescendant": Q.value,
1619
+ size: n.size
1620
+ }, u.$attrs, {
1621
+ onClick: $,
1622
+ onFocusout: ee,
1623
+ onKeydown: ve(f, ["stop"])
1624
+ }), qe({
1625
+ "label.prepend": _(() => [
1626
+ h(u.$slots, "label.prepend")
1638
1627
  ]),
1639
- "label.append": k(() => [
1640
- y(d.$slots, "label.append")
1628
+ "label.append": _(() => [
1629
+ h(u.$slots, "label.append")
1641
1630
  ]),
1642
- append: k(() => [
1643
- y(d.$slots, "append"),
1644
- E.value && a.value ? (u(), I(m(de), {
1631
+ append: _(() => [
1632
+ h(u.$slots, "append"),
1633
+ A.value && a.value ? (r(), S(m(re), {
1645
1634
  key: 0,
1646
1635
  class: "q-combobox__clear",
1636
+ "aria-label": n.texts.clearValue,
1647
1637
  "b-style": "plain",
1648
1638
  borderless: "",
1649
1639
  tabindex: "-1",
1650
- onClick: p
1640
+ onClick: v
1651
1641
  }, {
1652
- default: k(() => [
1653
- z(m(F), G(se(n.internals.icons.clear)), null, 16)
1642
+ default: _(() => [
1643
+ z(m(N), j(le(n.icons.clear)), null, 16)
1654
1644
  ]),
1655
1645
  _: 1
1656
- })) : $("", !0),
1657
- n.readonly ? $("", !0) : (u(), I(m(de), {
1646
+ }, 8, ["aria-label"])) : x("", !0),
1647
+ n.readonly ? x("", !0) : (r(), S(m(re), {
1658
1648
  key: 1,
1659
1649
  ref_key: "toggleRef",
1660
- ref: x,
1650
+ ref: I,
1661
1651
  class: "q-combobox__chevron",
1652
+ "aria-label": n.texts.showOptions,
1662
1653
  "b-style": "plain",
1663
1654
  borderless: "",
1664
1655
  tabindex: "-1",
1665
1656
  disabled: n.disabled,
1666
- onMousedown: pe(W, ["stop", "prevent"])
1657
+ onMousedown: ve(Y, ["stop", "prevent"])
1667
1658
  }, {
1668
- default: k(() => [
1669
- z(m(F), G(se(n.internals.icons.chevron)), null, 16)
1659
+ default: _(() => [
1660
+ z(m(N), j(le(n.icons.chevron)), null, 16)
1670
1661
  ]),
1671
1662
  _: 1
1672
- }, 8, ["disabled"]))
1663
+ }, 8, ["aria-label", "disabled"]))
1673
1664
  ]),
1674
1665
  _: 2
1675
1666
  }, [
1676
- d.$slots.prepend ? {
1667
+ u.$slots.prepend ? {
1677
1668
  name: "prepend",
1678
- fn: k(() => [
1679
- y(d.$slots, "prepend")
1669
+ fn: _(() => [
1670
+ h(u.$slots, "prepend")
1680
1671
  ]),
1681
1672
  key: "0"
1682
1673
  } : void 0,
1683
- d.$slots.extras ? {
1674
+ u.$slots.extras ? {
1684
1675
  name: "extras",
1685
- fn: k(() => [
1686
- y(d.$slots, "extras")
1676
+ fn: _(() => [
1677
+ h(u.$slots, "extras")
1687
1678
  ]),
1688
1679
  key: "1"
1689
1680
  } : void 0
1690
- ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1691
- z(m(he), {
1681
+ ]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1682
+ z(m(ye), {
1692
1683
  modelValue: i.value,
1693
- "onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
1684
+ "onUpdate:modelValue": q[2] || (q[2] = (R) => i.value = R),
1694
1685
  spy: "",
1695
1686
  "non-modal": "",
1696
1687
  trigger: "manual",
1697
1688
  placement: "bottom-start",
1698
1689
  width: "anchor",
1699
1690
  offset: 4,
1700
- anchor: (D = f.value) == null ? void 0 : D.$el,
1701
- onEnter: b,
1702
- onLeave: ce
1691
+ anchor: (F = c.value) == null ? void 0 : F.$el,
1692
+ onEnter: k,
1693
+ onLeave: pe
1703
1694
  }, {
1704
- default: k(() => {
1705
- var P;
1695
+ default: _(() => {
1696
+ var R;
1706
1697
  return [
1707
- A("div", {
1698
+ L("div", {
1708
1699
  ref_key: "contentRef",
1709
- ref: M,
1700
+ ref: P,
1710
1701
  class: "q-select__body",
1711
1702
  "data-testid": "combobox-dropdown",
1712
1703
  "data-key": n.id,
1713
- onFocusout: K
1704
+ onFocusout: ee
1714
1705
  }, [
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), {
1706
+ h(u.$slots, "body.prepend"),
1707
+ n.loading ? (r(), p("div", xo, [
1708
+ z(m(xe), { size: 24 })
1709
+ ])) : T.value.length ? (r(), S(m(Ve), {
1719
1710
  key: 1,
1720
1711
  ref_key: "listRef",
1721
- ref: q,
1712
+ ref: w,
1722
1713
  class: "q-select__items",
1723
1714
  selectable: "",
1724
1715
  modelValue: s.value,
1725
1716
  "onUpdate:modelValue": [
1726
- w[1] || (w[1] = (fe) => s.value = fe),
1727
- ne
1717
+ q[1] || (q[1] = (me) => s.value = me),
1718
+ se
1728
1719
  ],
1729
- highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
1730
- items: S.value,
1731
- groups: d.groups,
1720
+ highlighted: (R = M.value) == null ? void 0 : R[n.itemValue],
1721
+ items: T.value,
1722
+ groups: u.groups,
1732
1723
  "item-label": n.itemLabel,
1733
1724
  "item-value": n.itemValue,
1734
- onMouseup: _e
1725
+ onMouseup: ke
1735
1726
  }, {
1736
- item: k(({ item: fe }) => [
1737
- y(d.$slots, "item", { item: fe })
1727
+ item: _(({ item: me }) => [
1728
+ h(u.$slots, "item", { item: me })
1738
1729
  ]),
1739
1730
  _: 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)
1731
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div", Lo, O(n.texts.noData), 1)),
1732
+ h(u.$slots, "body.append")
1733
+ ], 40, qo)
1743
1734
  ];
1744
1735
  }),
1745
1736
  _: 3
@@ -1747,10 +1738,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1747
1738
  ], 64);
1748
1739
  };
1749
1740
  }
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 = [
1741
+ }), So = C(Io), Bo = [
1754
1742
  {
1755
1743
  id: "button",
1756
1744
  icon: {
@@ -1761,42 +1749,45 @@ const so = ["role"], io = /* @__PURE__ */ L({
1761
1749
  label: "Ok"
1762
1750
  }
1763
1751
  }
1764
- ], Do = {
1752
+ ], Co = {
1765
1753
  icon: "check-circle-outline"
1766
- }, Ao = {
1754
+ }, To = {
1767
1755
  close: {
1768
1756
  icon: "close"
1769
1757
  }
1770
- }, zo = /* @__PURE__ */ L({
1758
+ }, Vo = { class: "q-dialog__header" }, Eo = { class: "q-dialog__header-title" }, Do = { class: "q-dialog__body" }, Ao = {
1759
+ key: 0,
1760
+ class: "q-dialog__body-icon"
1761
+ }, Qo = { class: "q-dialog__body-text" }, Fo = ["innerHTML"], zo = { key: 1 }, Mo = { class: "q-dialog__body-actions" }, Oo = /* @__PURE__ */ B({
1771
1762
  __name: "QDialog",
1772
- props: /* @__PURE__ */ X({
1763
+ props: /* @__PURE__ */ Z({
1773
1764
  text: { default: "" },
1774
1765
  attach: { default: "body" },
1775
1766
  inline: { type: Boolean },
1776
1767
  backdropBlur: { type: Boolean, default: !0 },
1777
- buttons: { default: () => Eo },
1768
+ buttons: { default: () => Bo },
1778
1769
  dismissible: { type: Boolean },
1779
1770
  html: { type: Boolean, default: !0 },
1780
- icon: { default: () => Do },
1771
+ icon: { default: () => Co },
1781
1772
  id: { default: void 0 },
1782
1773
  title: { default: "" },
1783
1774
  class: { default: void 0 },
1784
- internals: { default: () => ({ icons: Ao }) }
1775
+ icons: { default: () => To }
1785
1776
  }, {
1786
1777
  modelValue: { type: Boolean },
1787
1778
  modelModifiers: {}
1788
1779
  }),
1789
1780
  emits: ["update:modelValue"],
1790
1781
  setup(o) {
1791
- const t = o, e = ee(o, "modelValue"), n = ve(t.id), l = g(() => ["q-dialog", t.class]);
1782
+ const t = o, e = ne(o, "modelValue"), n = fe(t.id), l = g(() => ["q-dialog", t.class]);
1792
1783
  function s() {
1793
1784
  e.value = !1;
1794
1785
  }
1795
1786
  function i(a) {
1796
- var r;
1797
- (r = a.action) == null || r.call(a), s();
1787
+ var d;
1788
+ (d = a.action) == null || d.call(a), s();
1798
1789
  }
1799
- return (a, r) => (u(), I(m(he), {
1790
+ return (a, d) => (r(), S(m(ye), {
1800
1791
  "model-value": e.value,
1801
1792
  id: m(n),
1802
1793
  inline: t.inline,
@@ -1806,49 +1797,49 @@ const so = ["role"], io = /* @__PURE__ */ L({
1806
1797
  "scroll-lock": "",
1807
1798
  persistent: ""
1808
1799
  }, {
1809
- default: k(() => [
1810
- A("div", {
1811
- class: C(l.value)
1800
+ default: _(() => [
1801
+ L("div", {
1802
+ class: V(l.value)
1812
1803
  }, [
1813
- A("div", Io, [
1814
- A("span", xo, N(t.title), 1),
1815
- t.dismissible ? (u(), I(m(de), {
1804
+ L("div", Vo, [
1805
+ L("span", Eo, O(t.title), 1),
1806
+ t.dismissible ? (r(), S(m(re), {
1816
1807
  key: 0,
1817
1808
  "b-style": "tertiary",
1818
1809
  onClick: s
1819
1810
  }, {
1820
- default: k(() => [
1821
- z(m(F), G(se(t.internals.icons.close)), null, 16)
1811
+ default: _(() => [
1812
+ z(m(N), j(le(t.icons.close)), null, 16)
1822
1813
  ]),
1823
1814
  _: 1
1824
- })) : $("", !0)
1815
+ })) : x("", !0)
1825
1816
  ]),
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)
1817
+ h(a.$slots, "body.content", {}, () => [
1818
+ L("div", Do, [
1819
+ h(a.$slots, "body.icon", {}, () => [
1820
+ t.icon ? (r(), p("span", Ao, [
1821
+ z(m(N), j(le(t.icon)), null, 16)
1822
+ ])) : x("", !0)
1832
1823
  ]),
1833
- A("div", Bo, [
1834
- t.html ? (u(), v("span", {
1824
+ L("div", Qo, [
1825
+ t.html ? (r(), p("span", {
1835
1826
  key: 0,
1836
1827
  innerHTML: t.text
1837
- }, null, 8, Co)) : (u(), v("span", Vo, N(t.text), 1))
1828
+ }, null, 8, Fo)) : (r(), p("span", zo, O(t.text), 1))
1838
1829
  ]),
1839
- y(a.$slots, "body.append")
1830
+ h(a.$slots, "body.append")
1840
1831
  ])
1841
1832
  ]),
1842
- A("div", To, [
1843
- (u(!0), v(te, null, we(t.buttons, (f) => (u(), I(m(de), re({ ref_for: !0 }, f.props, {
1844
- key: f.id,
1845
- onClick: () => i(f)
1833
+ L("div", Mo, [
1834
+ (r(!0), p(K, null, he(t.buttons, (c) => (r(), S(m(re), J({ ref_for: !0 }, c.props, {
1835
+ key: c.id,
1836
+ onClick: () => i(c)
1846
1837
  }), {
1847
- default: k(() => [
1848
- f.icon ? (u(), I(m(F), re({
1838
+ default: _(() => [
1839
+ c.icon ? (r(), S(m(N), J({
1849
1840
  key: 0,
1850
1841
  ref_for: !0
1851
- }, f.icon), null, 16)) : $("", !0)
1842
+ }, c.icon), null, 16)) : x("", !0)
1852
1843
  ]),
1853
1844
  _: 2
1854
1845
  }, 1040, ["onClick"]))), 128))
@@ -1858,13 +1849,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
1858
1849
  _: 3
1859
1850
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
1860
1851
  }
1861
- }), Qo = B(zo), Mo = {
1852
+ }), Po = C(Oo), Uo = {
1862
1853
  key: 0,
1863
1854
  class: "q-input-group__prepend"
1864
- }, Fo = { key: 0 }, Oo = {
1855
+ }, No = { key: 0 }, Ho = {
1865
1856
  key: 1,
1866
1857
  class: "q-input-group__append"
1867
- }, Uo = { key: 0 }, Po = /* @__PURE__ */ L({
1858
+ }, Go = { key: 0 }, Ro = /* @__PURE__ */ B({
1868
1859
  __name: "QInputGroup",
1869
1860
  props: {
1870
1861
  id: { default: void 0 },
@@ -1877,64 +1868,64 @@ const so = ["role"], io = /* @__PURE__ */ L({
1877
1868
  },
1878
1869
  setup(o) {
1879
1870
  const t = o;
1880
- return Re({
1871
+ return je({
1881
1872
  QField: {
1882
1873
  size: "block"
1883
1874
  }
1884
- }), (e, n) => (u(), I(m(xe), {
1875
+ }), (e, n) => (r(), S(m(Le), {
1885
1876
  id: t.id,
1886
- class: C(["q-input-group", t.class]),
1877
+ class: V(["q-input-group", t.class]),
1887
1878
  label: t.label,
1888
1879
  required: t.required,
1889
1880
  size: t.size
1890
1881
  }, 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)
1882
+ default: _(() => [
1883
+ e.$slots.prepend || t.prependIcon ? (r(), p("div", Uo, [
1884
+ t.prependIcon ? (r(), p("span", No, [
1885
+ z(m(N), j(le(t.prependIcon)), null, 16)
1886
+ ])) : x("", !0),
1887
+ h(e.$slots, "prepend")
1888
+ ])) : x("", !0),
1889
+ h(e.$slots, "default"),
1890
+ e.$slots.append || t.appendIcon ? (r(), p("div", Ho, [
1891
+ t.appendIcon ? (r(), p("span", Go, [
1892
+ z(m(N), j(le(t.appendIcon)), null, 16)
1893
+ ])) : x("", !0),
1894
+ h(e.$slots, "append")
1895
+ ])) : x("", !0)
1905
1896
  ]),
1906
1897
  _: 2
1907
1898
  }, [
1908
1899
  e.$slots.extras ? {
1909
1900
  name: "extras",
1910
- fn: k(() => [
1911
- y(e.$slots, "extras")
1901
+ fn: _(() => [
1902
+ h(e.$slots, "extras")
1912
1903
  ]),
1913
1904
  key: "0"
1914
1905
  } : void 0
1915
1906
  ]), 1032, ["id", "class", "label", "required", "size"]));
1916
1907
  }
1917
- }), No = B(Po), Ho = /* @__PURE__ */ L({
1908
+ }), Ko = C(Ro), jo = /* @__PURE__ */ B({
1918
1909
  __name: "QLineLoader",
1919
1910
  props: {
1920
1911
  class: { default: void 0 }
1921
1912
  },
1922
1913
  setup(o) {
1923
1914
  const t = o;
1924
- return (e, n) => (u(), v("div", {
1925
- class: C(["q-line-loader", t.class])
1915
+ return (e, n) => (r(), p("div", {
1916
+ class: V(["q-line-loader", t.class])
1926
1917
  }, null, 2));
1927
1918
  }
1928
- }), Ko = B(Ho), jo = {
1919
+ }), Wo = C(jo), Xo = {
1929
1920
  key: 0,
1930
1921
  class: "q-popover__header"
1931
- }, Go = {
1922
+ }, Yo = {
1932
1923
  key: 1,
1933
1924
  class: "q-popover__body"
1934
- }, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
1925
+ }, Zo = ["innerHTML"], Jo = { key: 1 }, en = /* @__PURE__ */ B({
1935
1926
  inheritAttrs: !1,
1936
1927
  __name: "QPopover",
1937
- props: /* @__PURE__ */ X({
1928
+ props: /* @__PURE__ */ Z({
1938
1929
  anchor: {},
1939
1930
  arrow: { type: Boolean, default: !0 },
1940
1931
  attach: { default: "body" },
@@ -1950,8 +1941,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1950
1941
  }),
1951
1942
  emits: ["update:modelValue"],
1952
1943
  setup(o) {
1953
- const t = o, e = ee(o, "modelValue");
1954
- return (n, l) => (u(), I(m(he), {
1944
+ const t = o, e = ne(o, "modelValue");
1945
+ return (n, l) => (r(), S(m(ye), {
1955
1946
  modelValue: e.value,
1956
1947
  "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
1957
1948
  class: "q-popover",
@@ -1963,43 +1954,275 @@ const so = ["role"], io = /* @__PURE__ */ L({
1963
1954
  disabled: t.disabled,
1964
1955
  placement: t.placement
1965
1956
  }, {
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", {
1957
+ default: _(() => [
1958
+ t.title || n.$slots.header ? (r(), p("h3", Xo, [
1959
+ ce(O(t.title) + " ", 1),
1960
+ h(n.$slots, "header")
1961
+ ])) : x("", !0),
1962
+ t.text || n.$slots.body ? (r(), p("div", Yo, [
1963
+ t.html ? (r(), p("span", {
1973
1964
  key: 0,
1974
1965
  innerHTML: t.text
1975
- }, null, 8, Ro)) : (u(), v("span", Wo, N(t.text), 1)),
1976
- y(n.$slots, "body")
1977
- ])) : $("", !0)
1966
+ }, null, 8, Zo)) : (r(), p("span", Jo, O(t.text), 1)),
1967
+ h(n.$slots, "body")
1968
+ ])) : x("", !0)
1978
1969
  ]),
1979
1970
  _: 3
1980
1971
  }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1981
1972
  }
1982
- }), Yo = B(Xo), Zo = {
1983
- key: 0,
1984
- class: "q-select__value"
1985
- }, Jo = {
1973
+ }), tn = C(en), st = {
1974
+ emptyMessage: "Select a field to view details."
1975
+ }, at = {
1976
+ open: {
1977
+ icon: "minus-box"
1978
+ },
1979
+ close: {
1980
+ icon: "plus-box"
1981
+ }
1982
+ }, on = { class: "q-property-list__table" }, nn = /* @__PURE__ */ B({
1983
+ __name: "QPropertyList",
1984
+ props: {
1985
+ fields: { default: () => [] },
1986
+ noPanel: { type: Boolean },
1987
+ noToggle: { type: Boolean },
1988
+ panelPosition: { default: "bottom" },
1989
+ groups: { default: () => [] },
1990
+ class: { default: void 0 },
1991
+ readonly: { type: Boolean },
1992
+ icons: { default: () => at },
1993
+ texts: { default: () => st }
1994
+ },
1995
+ emits: ["field-change"],
1996
+ setup(o, { emit: t }) {
1997
+ const e = o, n = t, l = D(e.groups.map((y) => y.id)), s = D(void 0), i = D(null), a = g(() => e.groups.length ? e.groups.filter(
1998
+ (y) => e.fields.some((E) => E.group === y.id)
1999
+ ) : [{ id: "", title: "" }]), d = g(() => [
2000
+ e.class,
2001
+ {
2002
+ "q-property-list--side-panel": e.panelPosition === "right"
2003
+ }
2004
+ ]);
2005
+ function c() {
2006
+ var y;
2007
+ (y = i.value) != null && y.contains(document.activeElement) || (s.value = void 0);
2008
+ }
2009
+ function w(y) {
2010
+ return y ? e.fields.filter((E) => E.group === y) : e.fields;
2011
+ }
2012
+ function I(y) {
2013
+ const E = l.value.indexOf(y);
2014
+ E === -1 ? l.value.push(y) : l.value.splice(E, 1);
2015
+ }
2016
+ function P(y) {
2017
+ var Q;
2018
+ const E = y.group && !l.value.includes(y.group), M = ((Q = s.value) == null ? void 0 : Q.id) === y.id;
2019
+ return [
2020
+ {
2021
+ "q-property-list__row--closed": E,
2022
+ "q-property-list__row--selected": M
2023
+ }
2024
+ ];
2025
+ }
2026
+ function A(y) {
2027
+ s.value = y;
2028
+ }
2029
+ function T(y, E) {
2030
+ e.readonly || (y.props.readonly ?? !1) || (y.props.modelValue = E, n("field-change", y));
2031
+ }
2032
+ return (y, E) => (r(), p("div", {
2033
+ tabindex: "0",
2034
+ class: V(["q-property-list", d.value]),
2035
+ ref_key: "componentRoot",
2036
+ ref: i,
2037
+ onFocusout: c
2038
+ }, [
2039
+ L("table", on, [
2040
+ E[0] || (E[0] = L("thead", { class: "q-property-list__header" }, [
2041
+ L("tr", null, [
2042
+ L("th", { colspan: "2" })
2043
+ ])
2044
+ ], -1)),
2045
+ L("tbody", null, [
2046
+ (r(!0), p(K, null, he(a.value, (M) => (r(), p(K, {
2047
+ key: M.id
2048
+ }, [
2049
+ M.title ? (r(), S(m(rt), {
2050
+ key: 0,
2051
+ id: M.id,
2052
+ title: M.title,
2053
+ icons: e.icons,
2054
+ "no-toggle": e.noToggle,
2055
+ onToggleGroup: I
2056
+ }, null, 8, ["id", "title", "icons", "no-toggle"])) : x("", !0),
2057
+ (r(!0), p(K, null, he(w(M.id), (Q) => (r(), S(m(it), {
2058
+ key: Q.id,
2059
+ class: V(P(Q)),
2060
+ field: Q,
2061
+ readonly: e.readonly,
2062
+ onFocus: A,
2063
+ onFieldChange: T
2064
+ }, {
2065
+ default: _(() => [
2066
+ h(y.$slots, Q.id, { field: Q })
2067
+ ]),
2068
+ _: 2
2069
+ }, 1032, ["class", "field", "readonly"]))), 128))
2070
+ ], 64))), 128))
2071
+ ])
2072
+ ]),
2073
+ e.noPanel ? x("", !0) : (r(), S(m(dt), {
2074
+ key: 0,
2075
+ field: s.value,
2076
+ texts: e.texts
2077
+ }, {
2078
+ default: _(() => [
2079
+ s.value ? h(y.$slots, "panel", {
2080
+ key: 0,
2081
+ field: s.value
2082
+ }) : x("", !0)
2083
+ ]),
2084
+ _: 3
2085
+ }, 8, ["field", "texts"]))
2086
+ ], 34));
2087
+ }
2088
+ }), ln = { class: "q-property-list-field__container" }, sn = /* @__PURE__ */ B({
2089
+ __name: "QPropertyListRow",
2090
+ props: {
2091
+ field: {},
2092
+ class: {},
2093
+ readonly: { type: Boolean }
2094
+ },
2095
+ emits: ["focus", "field-change"],
2096
+ setup(o, { emit: t }) {
2097
+ const e = o, n = t, l = g(() => ["q-property-list__row", e.class]), s = g(() => {
2098
+ var I;
2099
+ const w = ["q-property-list__cell", "q-property-list__cell--label"];
2100
+ return (I = e.field.props) != null && I.required && w.push("q-property-list__cell--required"), w;
2101
+ }), i = g(() => e.readonly || (e.field.props.readonly ?? !1));
2102
+ function a() {
2103
+ n("focus", e.field);
2104
+ }
2105
+ function d(w) {
2106
+ n("field-change", e.field, w);
2107
+ }
2108
+ const c = g(() => ({
2109
+ ...e.field.props,
2110
+ readonly: i.value
2111
+ }));
2112
+ return (w, I) => (r(), p("tr", {
2113
+ class: V(l.value),
2114
+ onFocusin: a
2115
+ }, [
2116
+ L("td", {
2117
+ class: V(s.value),
2118
+ onClick: a
2119
+ }, O(e.field.label), 3),
2120
+ L("td", {
2121
+ class: "q-property-list__cell",
2122
+ onClick: a
2123
+ }, [
2124
+ h(w.$slots, "default", {}, () => [
2125
+ L("div", ln, [
2126
+ (r(), S(Be(e.field.component), J(c.value, {
2127
+ "model-value": e.field.props.modelValue,
2128
+ "onUpdate:modelValue": d
2129
+ }), null, 16, ["model-value"]))
2130
+ ])
2131
+ ])
2132
+ ])
2133
+ ], 34));
2134
+ }
2135
+ }), an = ["data-key", "aria-labelledby"], rn = ["id"], dn = { class: "q-property-list-group__content" }, un = /* @__PURE__ */ B({
2136
+ __name: "QPropertyListGroup",
2137
+ props: {
2138
+ id: {},
2139
+ title: {},
2140
+ noToggle: { type: Boolean, default: !1 },
2141
+ icons: { default: () => at },
2142
+ texts: {}
2143
+ },
2144
+ emits: ["toggle-group"],
2145
+ setup(o, { emit: t }) {
2146
+ const e = o, n = t, l = D(!0), s = fe(), i = g(() => l.value ? e.icons.open : e.icons.close), a = g(() => [
2147
+ "q-property-list-group",
2148
+ {
2149
+ "q-property-list-group--no-toggle": e.noToggle
2150
+ }
2151
+ ]);
2152
+ function d() {
2153
+ e.noToggle || (l.value = !l.value, n("toggle-group", e.id));
2154
+ }
2155
+ return (c, w) => (r(), p("tr", {
2156
+ class: V(a.value),
2157
+ role: "group",
2158
+ "data-key": e.id,
2159
+ "aria-labelledby": m(s),
2160
+ onClick: d
2161
+ }, [
2162
+ L("td", {
2163
+ id: m(s),
2164
+ colspan: "2"
2165
+ }, [
2166
+ L("div", dn, [
2167
+ e.noToggle ? x("", !0) : (r(), S(m(re), {
2168
+ key: 0,
2169
+ "b-style": "tertiary",
2170
+ borderless: "",
2171
+ onClick: d
2172
+ }, {
2173
+ default: _(() => [
2174
+ z(m(N), j(le(i.value)), null, 16)
2175
+ ]),
2176
+ _: 1
2177
+ })),
2178
+ ce(" " + O(e.title), 1)
2179
+ ])
2180
+ ], 8, rn)
2181
+ ], 10, an));
2182
+ }
2183
+ }), cn = { class: "q-property-list-panel__container" }, fn = { class: "q-property-list-panel__label" }, pn = { class: "q-property-list-panel__description" }, mn = {
1986
2184
  key: 1,
1987
- class: "q-select__placeholder"
1988
- }, en = ["data-key"], tn = {
1989
- key: 0,
1990
- class: "q-select__loader"
1991
- }, on = {
1992
- placeholder: "Choose..."
1993
- }, nn = {
2185
+ class: "q-property-list-panel__empty"
2186
+ }, vn = /* @__PURE__ */ B({
2187
+ __name: "QPropertyListPanel",
2188
+ props: {
2189
+ field: { default: void 0 },
2190
+ icons: {},
2191
+ texts: { default: () => st }
2192
+ },
2193
+ setup(o) {
2194
+ const t = o;
2195
+ return (e, n) => (r(), p("div", cn, [
2196
+ t.field ? h(e.$slots, "default", { key: 0 }, () => [
2197
+ L("div", fn, O(t.field.label), 1),
2198
+ L("div", pn, O(t.field.description), 1)
2199
+ ]) : (r(), p("div", mn, O(t.texts.emptyMessage), 1))
2200
+ ]));
2201
+ }
2202
+ }), hn = C(nn), it = C(sn), rt = C(un), dt = C(vn), yn = {
2203
+ placeholder: "Choose...",
2204
+ clearValue: "Clear value",
2205
+ showOptions: "Show options"
2206
+ }, bn = {
1994
2207
  chevron: {
1995
2208
  icon: "chevron-down"
1996
2209
  },
1997
2210
  clear: {
1998
2211
  icon: "close"
1999
2212
  }
2000
- }, ln = /* @__PURE__ */ L({
2213
+ }, gn = {
2214
+ key: 0,
2215
+ class: "q-select__value"
2216
+ }, _n = {
2217
+ key: 1,
2218
+ class: "q-select__placeholder"
2219
+ }, kn = ["data-key"], wn = {
2220
+ key: 0,
2221
+ class: "q-select__loader"
2222
+ }, $n = /* @__PURE__ */ B({
2223
+ inheritAttrs: !1,
2001
2224
  __name: "QSelect",
2002
- props: /* @__PURE__ */ X({
2225
+ props: /* @__PURE__ */ Z({
2003
2226
  id: { default: void 0 },
2004
2227
  label: { default: "" },
2005
2228
  clearable: { type: Boolean },
@@ -2014,88 +2237,89 @@ const so = ["role"], io = /* @__PURE__ */ L({
2014
2237
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2015
2238
  size: { default: void 0 },
2016
2239
  class: { default: "" },
2017
- internals: { default: () => ({ icons: nn, texts: on }) }
2240
+ icons: { default: () => bn },
2241
+ texts: { default: () => yn }
2018
2242
  }, {
2019
2243
  modelValue: {
2020
2244
  type: [String, Number, Boolean, Symbol]
2021
2245
  },
2022
2246
  modelModifiers: {}
2023
2247
  }),
2024
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2248
+ emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2025
2249
  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(
2250
+ const e = o, n = t, l = ne(o, "modelValue"), s = D(!1), i = D(""), a = D(null), d = D(null), c = D(null), w = g(() => I.value === void 0), I = g(
2027
2251
  () => {
2028
- var c;
2029
- return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
2252
+ var f;
2253
+ return (f = e.items) == null ? void 0 : f.find((b) => b[e.itemValue] === l.value);
2030
2254
  }
2031
- ), M = g(
2032
- () => x.value ? x.value[e.itemLabel] : ""
2033
- ), E = g(
2255
+ ), P = g(
2256
+ () => I.value ? I.value[e.itemLabel] : ""
2257
+ ), A = g(
2034
2258
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2035
2259
  );
2036
- function S(c) {
2037
- l.value = c, R();
2260
+ function T(f) {
2261
+ l.value = f, Q();
2038
2262
  }
2039
- function V() {
2040
- E.value && (S(e.emptyValue), W());
2263
+ function y() {
2264
+ A.value && (T(e.emptyValue), Y());
2041
2265
  }
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();
2266
+ function E(f) {
2267
+ var b, G, ie;
2268
+ !((b = c.value) != null && b.contains(f.relatedTarget)) && !((ie = (G = a.value) == null ? void 0 : G.fieldRef) != null && ie.contains(f.relatedTarget)) && Q();
2045
2269
  }
2046
- function oe() {
2270
+ function M() {
2047
2271
  s.value || (n("before-show"), s.value = !0);
2048
2272
  }
2049
- function R() {
2273
+ function Q() {
2050
2274
  s.value && (n("before-hide"), s.value = !1);
2051
2275
  }
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);
2276
+ function H() {
2277
+ e.readonly || e.disabled || (s.value ? Q() : M());
2278
+ }
2279
+ let se;
2280
+ function W(f) {
2281
+ if (!(!f.key || e.readonly || e.disabled)) {
2282
+ if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), ["Enter", " "].includes(f.key) && (s.value = !0), ["Escape", "Tab"].includes(f.key) && (s.value ? s.value = !1 : A.value && f.key === "Escape" && y()), f.key === "Delete" && e.clearable && y(), /^[a-z]$/i.test(f.key)) {
2283
+ i.value += f.key.toLowerCase();
2284
+ for (let b = 0; b < e.items.length; b++)
2285
+ if (e.items[b][e.itemLabel].toLowerCase().startsWith(i.value)) {
2286
+ $(b);
2063
2287
  break;
2064
2288
  }
2065
2289
  }
2066
- ne = window.setTimeout(function() {
2290
+ se = window.setTimeout(function() {
2067
2291
  i.value = "";
2068
2292
  }, 500);
2069
2293
  }
2070
2294
  }
2071
- function le() {
2072
- var c;
2073
- e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
2295
+ function ae() {
2296
+ var f;
2297
+ e.loading ? (f = c.value) == null || f.focus() : v(), n("show");
2074
2298
  }
2075
- function Q() {
2076
- W(), n("hide");
2299
+ function U() {
2300
+ Y(), n("hide");
2077
2301
  }
2078
- function W() {
2079
- var c, h;
2080
- (h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
2302
+ function Y() {
2303
+ var f, b;
2304
+ (b = (f = a.value) == null ? void 0 : f.fieldRef) == null || b.focus();
2081
2305
  }
2082
- function p() {
2083
- var c;
2084
- (c = r.value) == null || c.$el.focus();
2306
+ function v() {
2307
+ var f;
2308
+ (f = d.value) == null || f.$el.focus();
2085
2309
  }
2086
- function _(c) {
2087
- var h;
2088
- (h = r.value) == null || h.focusItem(c);
2310
+ function $(f) {
2311
+ var b;
2312
+ (b = d.value) == null || b.focusItem(f);
2089
2313
  }
2090
- return Z(
2314
+ return te(
2091
2315
  () => e.loading,
2092
- (c) => {
2093
- !c && s.value && J(p);
2316
+ (f) => {
2317
+ !f && s.value && oe(v);
2094
2318
  }
2095
- ), (c, h) => {
2096
- var U, ae;
2097
- return u(), v(te, null, [
2098
- z(m(xe), {
2319
+ ), (f, b) => {
2320
+ var G, ie;
2321
+ return r(), p(K, null, [
2322
+ z(m(Le), J({
2099
2323
  id: e.id,
2100
2324
  label: e.label,
2101
2325
  required: e.required,
@@ -2103,7 +2327,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2103
2327
  ref: a,
2104
2328
  role: "combobox",
2105
2329
  tabindex: e.disabled ? -1 : 0,
2106
- class: C([
2330
+ class: [
2107
2331
  "q-select",
2108
2332
  {
2109
2333
  "q-select--readonly": e.readonly,
@@ -2111,133 +2335,131 @@ const so = ["role"], io = /* @__PURE__ */ L({
2111
2335
  "q-select--expanded": s.value
2112
2336
  },
2113
2337
  e.class
2114
- ]),
2338
+ ],
2115
2339
  readonly: e.readonly,
2116
2340
  disabled: e.disabled,
2117
2341
  "data-loading": e.loading,
2118
2342
  "aria-expanded": s.value,
2119
2343
  "aria-haspopup": "listbox",
2120
- size: e.size,
2121
- onClick: O,
2122
- onKeydown: pe(H, ["stop"])
2123
- }, qe({
2124
- append: k(() => [
2125
- y(c.$slots, "append"),
2126
- E.value && l.value ? (u(), I(m(de), {
2344
+ size: e.size
2345
+ }, f.$attrs, {
2346
+ onClick: H,
2347
+ onKeydown: ve(W, ["stop"])
2348
+ }), qe({
2349
+ append: _(() => [
2350
+ h(f.$slots, "append"),
2351
+ A.value && l.value ? (r(), S(m(re), {
2127
2352
  key: 0,
2128
2353
  class: "q-select__clear",
2354
+ "aria-label": e.texts.clearValue,
2129
2355
  "b-style": "plain",
2130
2356
  borderless: "",
2131
2357
  tabindex: "-1",
2132
- onClick: V
2358
+ onClick: y
2133
2359
  }, {
2134
- default: k(() => [
2135
- z(m(F), G(se(e.internals.icons.clear)), null, 16)
2360
+ default: _(() => [
2361
+ z(m(N), j(le(e.icons.clear)), null, 16)
2136
2362
  ]),
2137
2363
  _: 1
2138
- })) : $("", !0),
2139
- e.readonly ? $("", !0) : (u(), I(m(de), {
2364
+ }, 8, ["aria-label"])) : x("", !0),
2365
+ e.readonly ? x("", !0) : (r(), S(m(re), {
2140
2366
  key: 1,
2141
2367
  class: "q-select__chevron",
2368
+ "aria-label": e.texts.showOptions,
2142
2369
  "b-style": "plain",
2143
2370
  borderless: "",
2144
2371
  tabindex: "-1",
2145
2372
  disabled: e.disabled,
2146
- onClick: O
2373
+ onClick: H
2147
2374
  }, {
2148
- default: k(() => [
2149
- z(m(F), G(se(e.internals.icons.chevron)), null, 16)
2375
+ default: _(() => [
2376
+ z(m(N), j(le(e.icons.chevron)), null, 16)
2150
2377
  ]),
2151
2378
  _: 1
2152
- }, 8, ["disabled"]))
2379
+ }, 8, ["aria-label", "disabled"]))
2153
2380
  ]),
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))
2381
+ default: _(() => [
2382
+ w.value ? (r(), p("span", _n, [
2383
+ !e.readonly && !e.disabled ? (r(), p(K, { key: 0 }, [
2384
+ ce(O(e.texts.placeholder), 1)
2385
+ ], 64)) : x("", !0)
2386
+ ])) : (r(), p("span", gn, O(P.value), 1))
2160
2387
  ]),
2161
2388
  _: 2
2162
2389
  }, [
2163
- (U = x.value) != null && U.icon || c.$slots.prepend ? {
2390
+ (G = I.value) != null && G.icon || f.$slots.prepend ? {
2164
2391
  name: "prepend",
2165
- fn: k(() => {
2166
- var K, ie;
2392
+ fn: _(() => {
2393
+ var ee, de;
2167
2394
  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)
2395
+ h(f.$slots, "prepend"),
2396
+ (ee = I.value) != null && ee.icon ? (r(), S(m(N), j(J({ key: 0 }, (de = I.value) == null ? void 0 : de.icon)), null, 16)) : x("", !0)
2170
2397
  ];
2171
2398
  }),
2172
2399
  key: "0"
2173
2400
  } : void 0,
2174
- c.$slots.extras ? {
2401
+ f.$slots.extras ? {
2175
2402
  name: "extras",
2176
- fn: k(() => [
2177
- y(c.$slots, "extras")
2403
+ fn: _(() => [
2404
+ h(f.$slots, "extras")
2178
2405
  ]),
2179
2406
  key: "1"
2180
2407
  } : void 0
2181
- ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2182
- z(m(he), {
2408
+ ]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2409
+ z(m(ye), {
2183
2410
  modelValue: s.value,
2184
- "onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
2411
+ "onUpdate:modelValue": b[0] || (b[0] = (ee) => s.value = ee),
2185
2412
  spy: "",
2186
2413
  trigger: "manual",
2187
2414
  placement: "bottom-start",
2188
2415
  width: "anchor",
2189
2416
  "scroll-lock": "",
2190
- anchor: (ae = a.value) == null ? void 0 : ae.$el,
2417
+ anchor: (ie = a.value) == null ? void 0 : ie.$el,
2191
2418
  offset: 2,
2192
- onEnter: le,
2193
- onLeave: Q
2419
+ onEnter: ae,
2420
+ onLeave: U
2194
2421
  }, {
2195
- default: k(() => [
2196
- A("div", {
2422
+ default: _(() => [
2423
+ L("div", {
2197
2424
  ref_key: "contentRef",
2198
- ref: f,
2425
+ ref: c,
2199
2426
  "data-testid": "combobox-dropdown",
2200
2427
  "data-key": e.id,
2201
2428
  class: "q-select__body",
2202
2429
  tabindex: "-1",
2203
- onFocusout: Y,
2204
- onKeydown: pe(H, ["stop"])
2430
+ onFocusout: E,
2431
+ onKeydown: ve(W, ["stop"])
2205
2432
  }, [
2206
- y(c.$slots, "body.prepend"),
2207
- e.loading ? (u(), v("div", tn, [
2208
- z(m(Ie), { size: 24 })
2209
- ])) : (u(), I(m(Ve), {
2433
+ h(f.$slots, "body.prepend"),
2434
+ e.loading ? (r(), p("div", wn, [
2435
+ z(m(xe), { size: 24 })
2436
+ ])) : (r(), S(m(Ve), {
2210
2437
  key: 1,
2211
2438
  ref_key: "listRef",
2212
- ref: r,
2439
+ ref: d,
2213
2440
  class: "q-select__items",
2214
2441
  selectable: "",
2215
- modelValue: l.value,
2216
- "onUpdate:modelValue": [
2217
- h[0] || (h[0] = (K) => l.value = K),
2218
- S
2219
- ],
2442
+ "model-value": l.value,
2220
2443
  items: e.items,
2221
- groups: c.groups,
2444
+ groups: f.groups,
2222
2445
  "item-label": e.itemLabel,
2223
- "item-value": e.itemValue
2446
+ "item-value": e.itemValue,
2447
+ "onUpdate:modelValue": T
2224
2448
  }, {
2225
- item: k(({ item: K }) => [
2226
- y(c.$slots, "item", { item: K })
2449
+ item: _(({ item: ee }) => [
2450
+ h(f.$slots, "item", { item: ee })
2227
2451
  ]),
2228
2452
  _: 3
2229
- }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
2230
- y(c.$slots, "body.append")
2231
- ], 40, en)
2453
+ }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
2454
+ h(f.$slots, "body.append")
2455
+ ], 40, kn)
2232
2456
  ]),
2233
2457
  _: 3
2234
2458
  }, 8, ["modelValue", "anchor"])
2235
2459
  ], 64);
2236
2460
  };
2237
2461
  }
2238
- }), an = B(ln), sn = /* @__PURE__ */ A("div", { class: "q-skeleton-loader__bone" }, null, -1), rn = [
2239
- sn
2240
- ], dn = /* @__PURE__ */ L({
2462
+ }), qn = C($n), xn = /* @__PURE__ */ B({
2241
2463
  __name: "QSkeletonLoader",
2242
2464
  props: {
2243
2465
  type: { default: void 0 },
@@ -2252,27 +2474,29 @@ const so = ["role"], io = /* @__PURE__ */ L({
2252
2474
  height: s
2253
2475
  };
2254
2476
  });
2255
- return (l, s) => (u(), v("div", {
2256
- class: C(["q-skeleton-loader", e.value]),
2477
+ return (l, s) => (r(), p("div", {
2478
+ class: V(["q-skeleton-loader", e.value]),
2257
2479
  style: ue(n.value)
2258
- }, rn, 6));
2480
+ }, s[0] || (s[0] = [
2481
+ L("div", { class: "q-skeleton-loader__bone" }, null, -1)
2482
+ ]), 6));
2259
2483
  }
2260
- }), un = B(dn), cn = /* @__PURE__ */ L({
2484
+ }), Ln = C(xn), In = /* @__PURE__ */ B({
2261
2485
  __name: "QThemeProvider",
2262
2486
  props: {
2263
2487
  theme: {}
2264
2488
  },
2265
2489
  setup(o) {
2266
2490
  const t = o;
2267
- return (e, n) => (u(), v("div", {
2268
- class: C(["q-theme-provider", `q-theme--${t.theme}`])
2491
+ return (e, n) => (r(), p("div", {
2492
+ class: V(["q-theme-provider", `q-theme--${t.theme}`])
2269
2493
  }, [
2270
- y(e.$slots, "default")
2494
+ h(e.$slots, "default")
2271
2495
  ], 2));
2272
2496
  }
2273
- }), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
2497
+ }), Sn = C(In), Bn = ["innerHTML"], Cn = /* @__PURE__ */ B({
2274
2498
  __name: "QTooltip",
2275
- props: /* @__PURE__ */ X({
2499
+ props: /* @__PURE__ */ Z({
2276
2500
  id: { default: void 0 },
2277
2501
  anchor: {},
2278
2502
  appearance: { default: "inverted" },
@@ -2293,12 +2517,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
2293
2517
  }),
2294
2518
  emits: ["update:modelValue"],
2295
2519
  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", {
2520
+ const t = o, e = ne(o, "modelValue"), n = fe(t.id);
2521
+ return (l, s) => (r(), p(K, null, [
2522
+ h(l.$slots, "anchor", {
2299
2523
  props: { "aria-describedby": m(n) }
2300
2524
  }),
2301
- z(m(he), {
2525
+ z(m(ye), {
2302
2526
  "model-value": e.value,
2303
2527
  anchor: t.anchor,
2304
2528
  role: "tooltip",
@@ -2308,20 +2532,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
2308
2532
  arrow: t.arrow,
2309
2533
  attach: t.attach,
2310
2534
  inline: t.inline,
2311
- class: C(["q-tooltip", t.class]),
2535
+ class: V(["q-tooltip", t.class]),
2312
2536
  delay: t.delay,
2313
2537
  disabled: t.disabled,
2314
2538
  placement: t.placement,
2315
2539
  trigger: t.trigger
2316
2540
  }, {
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", {
2541
+ default: _(() => [
2542
+ h(l.$slots, "default", {}, () => [
2543
+ t.icon ? (r(), S(m(N), j(J({ key: 0 }, t.icon)), null, 16)) : x("", !0),
2544
+ t.html ? (r(), p("span", {
2321
2545
  key: 1,
2322
2546
  innerHTML: t.text
2323
- }, null, 8, pn)) : (u(), v(te, { key: 2 }, [
2324
- me(N(t.text), 1)
2547
+ }, null, 8, Bn)) : (r(), p(K, { key: 2 }, [
2548
+ ce(O(t.text), 1)
2325
2549
  ], 64))
2326
2550
  ])
2327
2551
  ]),
@@ -2329,53 +2553,57 @@ const so = ["role"], io = /* @__PURE__ */ L({
2329
2553
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2330
2554
  ], 64));
2331
2555
  }
2332
- }), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2556
+ }), Tn = C(Cn), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2333
2557
  __proto__: null,
2334
- QBadge: Dt,
2335
- QButton: de,
2558
+ QBadge: zt,
2559
+ QButton: re,
2336
2560
  QButtonGroup: tt,
2337
- QButtonToggle: Qt,
2338
- QCombobox: qo,
2339
- QDialog: Qo,
2340
- QField: xe,
2341
- QIcon: F,
2561
+ QButtonToggle: Pt,
2562
+ QCombobox: So,
2563
+ QDialog: Po,
2564
+ QField: Le,
2565
+ QIcon: N,
2342
2566
  QIconFont: Ye,
2343
2567
  QIconImg: Ze,
2344
2568
  QIconSvg: Je,
2345
- QInputGroup: No,
2346
- QLineLoader: Ko,
2569
+ QInputGroup: Ko,
2570
+ QLineLoader: Wo,
2347
2571
  QList: Ve,
2348
2572
  QListItem: ot,
2349
2573
  QListItemGroup: nt,
2350
- QOverlay: he,
2351
- QPopover: Yo,
2352
- QSelect: an,
2353
- QSkeletonLoader: un,
2354
- QSpinnerLoader: Ie,
2574
+ QOverlay: ye,
2575
+ QPopover: tn,
2576
+ QPropertyList: hn,
2577
+ QPropertyListGroup: rt,
2578
+ QPropertyListPanel: dt,
2579
+ QPropertyListRow: it,
2580
+ QSelect: qn,
2581
+ QSkeletonLoader: Ln,
2582
+ QSpinnerLoader: xe,
2355
2583
  QTextField: lt,
2356
- QThemeProvider: fn,
2357
- QTooltip: vn
2358
- }, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
2359
- function yn() {
2360
- const o = He(be);
2584
+ QThemeProvider: Sn,
2585
+ QTooltip: Tn
2586
+ }, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
2587
+ function En() {
2588
+ const o = Ge(ge);
2361
2589
  if (!o)
2362
2590
  throw new Error("[Quidgest UI] Could not find theme instance");
2363
2591
  return o;
2364
2592
  }
2365
- function In(o) {
2366
- const t = yn(), e = {
2367
- activeTheme: T(o),
2593
+ function Pn(o) {
2594
+ const t = En(), e = {
2595
+ activeTheme: D(o),
2368
2596
  themes: t.themes
2369
2597
  };
2370
- return Ne(be, e), e;
2598
+ return He(ge, e), e;
2371
2599
  }
2372
- function bn() {
2600
+ function Dn() {
2373
2601
  let o = document.getElementById(
2374
- be
2602
+ ge
2375
2603
  );
2376
- return o || (o = document.createElement("style"), o.id = be, document.head.appendChild(o)), o;
2604
+ return o || (o = document.createElement("style"), o.id = ge, document.head.appendChild(o)), o;
2377
2605
  }
2378
- function gn(o) {
2606
+ function An(o) {
2379
2607
  let t = "";
2380
2608
  for (const n of o) {
2381
2609
  t += `.q-theme--${n.name} {
@@ -2395,33 +2623,33 @@ function gn(o) {
2395
2623
  t += `}
2396
2624
  `;
2397
2625
  }
2398
- const e = bn();
2626
+ const e = Dn();
2399
2627
  e.textContent = t;
2400
2628
  }
2401
2629
  function Ue(o) {
2402
2630
  return o ? `--q-theme-${Xe(o)}` : "";
2403
2631
  }
2404
- function _n(o = {}) {
2632
+ function Qn(o = {}) {
2405
2633
  return { install: (e) => {
2406
2634
  const n = o.components || {};
2407
2635
  for (const s in n)
2408
2636
  e.component(s, n[s]);
2409
2637
  const l = o.defaults || {};
2410
- e.provide(Ce, T(l)), kn(e, o.themes);
2638
+ e.provide(Te, D(l)), Fn(e, o.themes);
2411
2639
  } };
2412
2640
  }
2413
- function kn(o, t) {
2641
+ function Fn(o, t) {
2414
2642
  const e = [];
2415
2643
  let n;
2416
2644
  if (!t)
2417
2645
  n = "default", e.push({
2418
2646
  name: n,
2419
2647
  mode: "light",
2420
- scheme: Le
2648
+ scheme: Ie
2421
2649
  });
2422
2650
  else
2423
2651
  for (const l of t.themes) {
2424
- const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
2652
+ const i = { ...l.mode === "light" ? Ie : Ke, ...l.colors };
2425
2653
  e.push({
2426
2654
  name: l.name,
2427
2655
  mode: l.mode,
@@ -2430,21 +2658,21 @@ function kn(o, t) {
2430
2658
  }
2431
2659
  if (n) {
2432
2660
  const l = {
2433
- activeTheme: T(n),
2661
+ activeTheme: D(n),
2434
2662
  themes: e
2435
2663
  };
2436
- gn(e), Z(l.activeTheme, wn, { immediate: !0 }), o.provide(be, l);
2664
+ An(e), te(l.activeTheme, zn, { immediate: !0 }), o.provide(ge, l);
2437
2665
  }
2438
2666
  }
2439
- function wn(o) {
2667
+ function zn(o) {
2440
2668
  const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
2441
2669
  t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
2442
2670
  }
2443
- const xn = (o = {}) => _n({ components: hn, ...o });
2671
+ const Un = (o = {}) => Qn({ components: Vn, ...o });
2444
2672
  export {
2445
- hn as components,
2446
- xn as createFramework,
2447
- In as provideTheme,
2448
- qn as templates,
2449
- yn as useTheme
2673
+ Vn as components,
2674
+ Un as createFramework,
2675
+ Pn as provideTheme,
2676
+ On as templates,
2677
+ En as useTheme
2450
2678
  };