@quidgest/ui 0.14.10 → 0.14.12

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 (245) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +95 -39
  3. package/dist/ui.esm.js +1931 -1578
  4. package/dist/ui.js +29 -29
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +181 -158
  7. package/dist/ui.scss +83 -40
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QAccordion/QAccordion.vue.js +2 -2
  10. package/esm/components/QAccordion/index.d.ts +33 -2
  11. package/esm/components/QAccordion/index.d.ts.map +1 -1
  12. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  13. package/esm/components/QBadge/QBadge.vue.js +7 -7
  14. package/esm/components/QBadge/index.d.ts +39 -2
  15. package/esm/components/QBadge/index.d.ts.map +1 -1
  16. package/esm/components/QBadge/types.d.ts.map +1 -1
  17. package/esm/components/QButton/QButton.d.ts +0 -2
  18. package/esm/components/QButton/QButton.d.ts.map +1 -1
  19. package/esm/components/QButton/QButton.vue.js +18 -18
  20. package/esm/components/QButton/index.d.ts +36 -2
  21. package/esm/components/QButton/index.d.ts.map +1 -1
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +1 -3
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/QButtonGroup.vue.js +7 -7
  25. package/esm/components/QButtonGroup/index.d.ts +17 -2
  26. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  27. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  28. package/esm/components/QButtonToggle/QButtonToggle.vue.js +1 -1
  29. package/esm/components/QButtonToggle/index.d.ts +31 -2
  30. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  31. package/esm/components/QCard/QCard.d.ts +4 -9
  32. package/esm/components/QCard/QCard.d.ts.map +1 -1
  33. package/esm/components/QCard/QCard.vue.js +34 -34
  34. package/esm/components/QCard/index.d.ts +34 -2
  35. package/esm/components/QCard/index.d.ts.map +1 -1
  36. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -3
  37. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  38. package/esm/components/QCheckbox/QCheckbox.vue.js +19 -19
  39. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +1 -3
  40. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
  41. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -7
  42. package/esm/components/QCheckbox/index.d.ts +79 -2
  43. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  44. package/esm/components/QCheckbox/types.d.ts +8 -4
  45. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  46. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -3
  47. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  48. package/esm/components/QCollapsible/QCollapsible.vue.js +54 -60
  49. package/esm/components/QCollapsible/index.d.ts +47 -2
  50. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  51. package/esm/components/QCollapsible/types.d.ts +5 -4
  52. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  53. package/esm/components/QCollapsible/types.js +4 -5
  54. package/esm/components/QColorPicker/QColorPicker.d.ts +34 -0
  55. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -0
  56. package/esm/components/QColorPicker/QColorPicker.vue.js +97 -0
  57. package/esm/components/QColorPicker/QColorPicker.vue2.js +4 -0
  58. package/esm/components/QColorPicker/index.d.ts +48 -0
  59. package/esm/components/QColorPicker/index.d.ts.map +1 -0
  60. package/esm/components/QColorPicker/index.js +6 -0
  61. package/esm/components/QColorPicker/types.d.ts +44 -0
  62. package/esm/components/QColorPicker/types.d.ts.map +1 -0
  63. package/esm/components/QColorPicker/types.js +6 -0
  64. package/esm/components/QCombobox/QCombobox.d.ts +686 -81
  65. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  66. package/esm/components/QCombobox/QCombobox.vue.js +156 -174
  67. package/esm/components/QCombobox/index.d.ts +1395 -2
  68. package/esm/components/QCombobox/index.d.ts.map +1 -1
  69. package/esm/components/QCombobox/types.d.ts +14 -6
  70. package/esm/components/QCombobox/types.d.ts.map +1 -1
  71. package/esm/components/QCombobox/types.js +9 -11
  72. package/esm/components/QDialog/QDialog.d.ts +3 -7
  73. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  74. package/esm/components/QDialog/QDialog.vue.js +33 -33
  75. package/esm/components/QDialog/index.d.ts +56 -2
  76. package/esm/components/QDialog/index.d.ts.map +1 -1
  77. package/esm/components/QDialog/types.d.ts +5 -3
  78. package/esm/components/QDialog/types.d.ts.map +1 -1
  79. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +16 -0
  80. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -0
  81. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +38 -0
  82. package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +4 -0
  83. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +369 -0
  84. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -0
  85. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +153 -0
  86. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +4 -0
  87. package/esm/components/QDropdownMenu/index.d.ts +14 -0
  88. package/esm/components/QDropdownMenu/index.d.ts.map +1 -0
  89. package/esm/components/QDropdownMenu/index.js +6 -0
  90. package/esm/components/QDropdownMenu/types.d.ts +96 -0
  91. package/esm/components/QDropdownMenu/types.d.ts.map +1 -0
  92. package/esm/components/QDropdownMenu/types.js +8 -0
  93. package/esm/components/QField/QField.d.ts +5 -7
  94. package/esm/components/QField/QField.d.ts.map +1 -1
  95. package/esm/components/QField/QField.vue.js +25 -25
  96. package/esm/components/QField/index.d.ts +37 -2
  97. package/esm/components/QField/index.d.ts.map +1 -1
  98. package/esm/components/QIcon/QIcon.d.ts +0 -2
  99. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  100. package/esm/components/QIcon/QIcon.vue.js +8 -8
  101. package/esm/components/QIcon/QIconFont.d.ts +0 -3
  102. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  103. package/esm/components/QIcon/QIconFont.vue.js +10 -10
  104. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  105. package/esm/components/QIcon/QIconImg.vue.js +4 -4
  106. package/esm/components/QIcon/QIconSvg.d.ts +0 -2
  107. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  108. package/esm/components/QIcon/QIconSvg.vue.js +10 -10
  109. package/esm/components/QIcon/index.d.ts +16 -8
  110. package/esm/components/QIcon/index.d.ts.map +1 -1
  111. package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
  112. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  113. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  114. package/esm/components/QInputGroup/index.d.ts +26 -2
  115. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  116. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
  117. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  118. package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
  119. package/esm/components/QLineLoader/index.d.ts +1 -2
  120. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  121. package/esm/components/QList/QList.d.ts +138 -3
  122. package/esm/components/QList/QList.d.ts.map +1 -1
  123. package/esm/components/QList/QList.vue.js +117 -99
  124. package/esm/components/QList/QListItem.d.ts +2 -2
  125. package/esm/components/QList/QListItem.d.ts.map +1 -1
  126. package/esm/components/QList/QListItem.vue.js +39 -37
  127. package/esm/components/QList/QListItemGroup.d.ts +1 -3
  128. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  129. package/esm/components/QList/QListItemGroup.vue.js +6 -6
  130. package/esm/components/QList/index.d.ts +189 -6
  131. package/esm/components/QList/index.d.ts.map +1 -1
  132. package/esm/components/QList/types.d.ts +8 -10
  133. package/esm/components/QList/types.d.ts.map +1 -1
  134. package/esm/components/QOverlay/QOverlay.d.ts +5 -4
  135. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  136. package/esm/components/QOverlay/QOverlay.vue.js +151 -136
  137. package/esm/components/QOverlay/index.d.ts +78 -2
  138. package/esm/components/QOverlay/index.d.ts.map +1 -1
  139. package/esm/components/QOverlay/types.d.ts +4 -0
  140. package/esm/components/QOverlay/types.d.ts.map +1 -1
  141. package/esm/components/QPopover/QPopover.d.ts +0 -1
  142. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  143. package/esm/components/QPopover/QPopover.vue.js +6 -6
  144. package/esm/components/QPopover/index.d.ts +49 -2
  145. package/esm/components/QPopover/index.d.ts.map +1 -1
  146. package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
  147. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
  149. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
  150. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  151. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
  152. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
  153. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  154. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
  155. package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
  156. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  157. package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
  158. package/esm/components/QPropertyList/index.d.ts +117 -8
  159. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  160. package/esm/components/QPropertyList/types.d.ts +8 -4
  161. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  162. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
  163. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  164. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
  165. package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
  166. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
  167. package/esm/components/QSelect/QSelect.d.ts +313 -28
  168. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  169. package/esm/components/QSelect/QSelect.vue.js +112 -129
  170. package/esm/components/QSelect/index.d.ts +314 -2
  171. package/esm/components/QSelect/index.d.ts.map +1 -1
  172. package/esm/components/QSelect/types.d.ts +13 -5
  173. package/esm/components/QSelect/types.d.ts.map +1 -1
  174. package/esm/components/QSelect/types.js +9 -11
  175. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
  176. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  177. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
  178. package/esm/components/QSkeletonLoader/index.d.ts +1 -2
  179. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  180. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
  181. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  182. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
  183. package/esm/components/QSpinnerLoader/index.d.ts +3 -2
  184. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  185. package/esm/components/QTextField/QTextField.d.ts +79 -22
  186. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  187. package/esm/components/QTextField/QTextField.vue.js +18 -18
  188. package/esm/components/QTextField/index.d.ts +122 -2
  189. package/esm/components/QTextField/index.d.ts.map +1 -1
  190. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  191. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
  192. package/esm/components/QThemeProvider/index.d.ts +17 -2
  193. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  194. package/esm/components/QThemeProvider/types.d.ts +1 -1
  195. package/esm/components/QTooltip/QTooltip.d.ts +0 -4
  196. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  197. package/esm/components/QTooltip/QTooltip.vue.js +17 -17
  198. package/esm/components/QTooltip/index.d.ts +62 -2
  199. package/esm/components/QTooltip/index.d.ts.map +1 -1
  200. package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
  201. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
  202. package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
  203. package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
  204. package/esm/components/__internal__/QChevron/index.d.ts +13 -0
  205. package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
  206. package/esm/components/__internal__/QChevron/index.js +6 -0
  207. package/esm/components/__internal__/QChevron/types.d.ts +16 -0
  208. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
  209. package/esm/components/__internal__/QChevron/types.js +8 -0
  210. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
  211. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
  212. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
  213. package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
  214. package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
  215. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
  216. package/esm/components/__internal__/QClearButton/index.js +6 -0
  217. package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
  218. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
  219. package/esm/components/__internal__/QClearButton/types.js +11 -0
  220. package/esm/components/index.d.ts +2 -0
  221. package/esm/components/index.d.ts.map +1 -1
  222. package/esm/components/index.js +48 -44
  223. package/esm/composables/group.js +5 -5
  224. package/esm/composables/overlay.d.ts +4 -0
  225. package/esm/composables/overlay.d.ts.map +1 -1
  226. package/esm/composables/overlay.js +69 -62
  227. package/esm/composables/theme.d.ts +54 -6
  228. package/esm/composables/theme.d.ts.map +1 -1
  229. package/esm/composables/theme.js +10 -12
  230. package/esm/framework.d.ts +17 -20
  231. package/esm/framework.d.ts.map +1 -1
  232. package/esm/framework.js +22 -25
  233. package/esm/index.d.ts +2 -0
  234. package/esm/templates/theme.js +16 -16
  235. package/esm/utils/color.d.ts +2 -1
  236. package/esm/utils/color.d.ts.map +1 -1
  237. package/esm/utils/color.js +19 -19
  238. package/esm/utils/setupPropsProxy.d.ts +22 -9
  239. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  240. package/esm/utils/setupPropsProxy.js +22 -22
  241. package/esm/utils/theme.d.ts +13 -1
  242. package/esm/utils/theme.d.ts.map +1 -1
  243. package/esm/utils/theme.js +40 -24
  244. package/package.json +19 -54
  245. /package/{LICENSE.md → LICENSE} +0 -0
package/dist/ui.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { getCurrentInstance as Je, computed as y, ref as A, provide as De, inject as ze, watch as Z, defineComponent as C, mergeModels as G, toRef as Ve, useModel as K, openBlock as i, createElementBlock as f, renderSlot as p, normalizeClass as T, normalizeStyle as fe, withModifiers as ue, createVNode as D, unref as m, createCommentVNode as g, createElementVNode as q, Fragment as U, createTextVNode as ae, toDisplayString as E, createBlock as B, resolveDynamicComponent as Se, h as He, withCtx as w, normalizeProps as W, guardReactiveProps as ne, renderList as he, useAttrs as bt, createSlots as ye, withKeys as Ae, mergeProps as H, onMounted as Me, onUnmounted as gt, reactive as je, nextTick as te, onBeforeUnmount as _t, Teleport as $t, Transition as kt, withDirectives as wt, vModelDynamic as qt } from "vue";
1
+ import { getCurrentInstance as st, computed as g, ref as B, provide as Fe, inject as Me, watch as Y, defineComponent as I, mergeModels as G, toRef as qe, useModel as K, createElementBlock as h, openBlock as d, renderSlot as p, normalizeStyle as ue, normalizeClass as T, withModifiers as ne, createCommentVNode as w, createElementVNode as x, createVNode as U, unref as y, Fragment as W, createTextVNode as ie, toDisplayString as z, createBlock as C, resolveDynamicComponent as Ie, h as Ye, withCtx as _, normalizeProps as se, guardReactiveProps as fe, renderList as ye, useAttrs as St, createSlots as pe, withKeys as De, mergeProps as Z, withDirectives as at, vModelDynamic as Bt, vModelText as Vt, onMounted as Oe, onUnmounted as Tt, reactive as Ze, nextTick as le, onBeforeUnmount as At, Teleport as Et, Transition as Dt } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.14.10
3
+ * Quidgest UI v0.14.12
4
4
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
7
- const Ee = {
7
+ const Qe = {
8
8
  primary: "#008ad2",
9
9
  primaryLight: "#cde5ff",
10
10
  primaryDark: "#006398",
@@ -35,29 +35,29 @@ const Ee = {
35
35
  onWarning: "#fff",
36
36
  onDanger: "#fff",
37
37
  onInfo: "#fff"
38
- }, et = {
39
- primary: "#009ff5",
40
- primaryLight: "#ade2ff",
41
- primaryDark: "#164965",
38
+ }, it = {
39
+ primary: "#008ad2",
40
+ primaryLight: "#006398",
41
+ primaryDark: "#cde5ff",
42
42
  secondary: "#003552",
43
43
  highlight: "#f65600",
44
- info: "#25cbe4",
45
- infoLight: "#bceff7",
46
- infoDark: "#225964",
47
- success: "#3acf5d",
48
- successLight: "#c2f0cd",
49
- successDark: "#275738",
44
+ info: "#17a2b8",
45
+ infoLight: "#11798a",
46
+ infoDark: "#bceff7",
47
+ success: "#28a745",
48
+ successLight: "#1e7d34",
49
+ successDark: "#c2f0cd",
50
50
  warning: "#ffa900",
51
- warningLight: "#ffeabf",
52
- warningDark: "#5a471e",
53
- danger: "#de2b2b",
54
- dangerLight: "#f7cccc",
55
- dangerDark: "#4d2528",
51
+ warningLight: "#bf7f00",
52
+ warningDark: "#ffeabf",
53
+ danger: "#b71c1c",
54
+ dangerLight: "#891515",
55
+ dangerDark: "#f7cccc",
56
56
  background: "#202428",
57
57
  container: "#202428",
58
58
  neutral: "#9299a0",
59
- neutralLight: "#dee1e3",
60
- neutralDark: "#41464a",
59
+ neutralLight: "#40474f",
60
+ neutralDark: "#c4c5ca",
61
61
  onBackground: "#fff",
62
62
  onPrimary: "#fff",
63
63
  onSecondary: "#fff",
@@ -66,85 +66,85 @@ const Ee = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
- defaultDarkColorScheme: et,
72
- defaultLightColorScheme: Ee
71
+ defaultDarkColorScheme: it,
72
+ defaultLightColorScheme: Qe
73
73
  }, Symbol.toStringTag, { value: "Module" }));
74
- function Qe(n) {
74
+ function ze(n) {
75
75
  return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
76
76
  }
77
- function Ke(n) {
77
+ function Je(n) {
78
78
  return n !== null && typeof n == "object" && !Array.isArray(n);
79
79
  }
80
- function Fe(n = {}, t = {}) {
80
+ function Ue(n = {}, t = {}) {
81
81
  const e = {};
82
- for (const l in n)
83
- e[l] = n[l];
84
- for (const l in t) {
85
- const o = n[l], s = t[l];
86
- if (Ke(o) && Ke(s)) {
87
- e[l] = Fe(
88
- o,
82
+ for (const o in n)
83
+ e[o] = n[o];
84
+ for (const o in t) {
85
+ const l = n[o], s = t[o];
86
+ if (Je(l) && Je(s)) {
87
+ e[o] = Ue(
88
+ l,
89
89
  s
90
90
  );
91
91
  continue;
92
92
  }
93
- e[l] = s;
93
+ e[o] = s;
94
94
  }
95
95
  return e;
96
96
  }
97
- const Oe = "q-defaults";
98
- function xt() {
97
+ const Pe = "q-defaults";
98
+ function Qt() {
99
99
  var s, a;
100
- const n = Je();
100
+ const n = st();
101
101
  if (!n)
102
102
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
103
103
  const t = n.type.name ?? n.type.__name;
104
104
  if (!t) throw new Error("[Quidgest UI] Could not determine component name");
105
- const e = tt(), l = (s = e.value) == null ? void 0 : s.Global, o = (a = e.value) == null ? void 0 : a[t];
106
- return y(() => Fe(l, o));
105
+ const e = rt(), o = (s = e.value) == null ? void 0 : s.Global, l = (a = e.value) == null ? void 0 : a[t];
106
+ return g(() => Ue(o, l));
107
107
  }
108
- function Pe(n) {
109
- if (Qe(n)) return;
110
- const t = tt(), e = A(n), l = y(() => Qe(e.value) ? t.value : Fe(t.value, e.value));
111
- De(Oe, l);
108
+ function Ne(n) {
109
+ if (ze(n)) return;
110
+ const t = rt(), e = B(n), o = g(() => ze(e.value) ? t.value : Ue(t.value, e.value));
111
+ Fe(Pe, o);
112
112
  }
113
- function tt() {
114
- const n = ze(Oe, void 0);
113
+ function rt() {
114
+ const n = Me(Pe, void 0);
115
115
  if (!n) throw new Error("[Quidgest UI] Could not find defaults instance");
116
116
  return n;
117
117
  }
118
- const nt = "q-group";
119
- function St(n) {
120
- var e, l;
118
+ const dt = "q-group";
119
+ function zt(n) {
120
+ var e, o;
121
121
  const t = {
122
- active: A(((e = n.active) == null ? void 0 : e.value) ?? ((l = n.multiple) == null ? void 0 : l.value) ? [] : null),
123
- multiple: y(() => {
124
- var o;
125
- return ((o = n.multiple) == null ? void 0 : o.value) || !1;
122
+ active: B(((e = n.active) == null ? void 0 : e.value) ?? ((o = n.multiple) == null ? void 0 : o.value) ? [] : null),
123
+ multiple: g(() => {
124
+ var l;
125
+ return ((l = n.multiple) == null ? void 0 : l.value) || !1;
126
126
  })
127
127
  };
128
- return Z(
128
+ return Y(
129
129
  () => t.multiple.value,
130
- (o) => {
131
- o && t.active.value ? t.active.value = [t.active.value] : o ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
130
+ (l) => {
131
+ l && t.active.value ? t.active.value = [t.active.value] : l ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
132
132
  }
133
- ), De(nt, t), t;
133
+ ), Fe(dt, t), t;
134
134
  }
135
- function Lt(n) {
136
- const t = ze(nt, void 0);
135
+ function Ft(n) {
136
+ const t = Me(dt, void 0);
137
137
  if (!t) return;
138
- const e = y(() => {
139
- var o;
140
- return Array.isArray(t.active.value) ? (o = t.active.value) == null ? void 0 : o.includes(n) : t.active.value === n;
138
+ const e = g(() => {
139
+ var l;
140
+ return Array.isArray(t.active.value) ? (l = t.active.value) == null ? void 0 : l.includes(n) : t.active.value === n;
141
141
  });
142
142
  return { isActive: e, toggle: () => {
143
- var o;
144
- Array.isArray(t.active.value) ? e.value ? t.active.value = (o = t.active.value) == null ? void 0 : o.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
143
+ var l;
144
+ Array.isArray(t.active.value) ? e.value ? t.active.value = (l = t.active.value) == null ? void 0 : l.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
145
145
  } };
146
146
  }
147
- const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
147
+ const Mt = { class: "q-accordion" }, Ot = /* @__PURE__ */ I({
148
148
  __name: "QAccordion",
149
149
  props: /* @__PURE__ */ G({
150
150
  variant: {}
@@ -154,66 +154,66 @@ const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
154
154
  }),
155
155
  emits: ["update:modelValue"],
156
156
  setup(n) {
157
- Pe({
157
+ Ne({
158
158
  QCollapsible: {
159
- variant: Ve(n, "variant")
159
+ variant: qe(n, "variant")
160
160
  }
161
161
  });
162
162
  const e = K(n, "modelValue");
163
- return St({ active: e }), (l, o) => (i(), f("div", Bt, [
164
- p(l.$slots, "default")
163
+ return zt({ active: e }), (o, l) => (d(), h("div", Mt, [
164
+ p(o.$slots, "default")
165
165
  ]));
166
166
  }
167
167
  });
168
- function lt(n) {
168
+ function ct(n) {
169
169
  return n.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();
170
170
  }
171
- function It(n, t) {
172
- var l;
173
- const e = lt(t);
174
- return e ? typeof ((l = n.props) == null ? void 0 : l[e]) < "u" : !1;
171
+ function Ut(n, t) {
172
+ var o;
173
+ const e = ct(t);
174
+ return e ? typeof ((o = n.props) == null ? void 0 : o[e]) < "u" : !1;
175
175
  }
176
- function I(n) {
177
- const t = n.setup;
178
- return t && (n.setup = (e, l) => {
179
- const o = xt();
180
- if (Qe(o.value)) return t(e, l);
181
- const s = Je();
182
- if (s === null) return t(e, l);
183
- const a = new Proxy(e, {
184
- get(d, r) {
185
- var x;
186
- const u = Reflect.get(d, r), b = (x = o.value) == null ? void 0 : x[r];
187
- return typeof r == "string" && !It(s.vnode, r) ? b ?? u : u;
176
+ function L(n) {
177
+ const t = n, e = t.setup;
178
+ return e && (t.setup = (o, l) => {
179
+ const s = Qt();
180
+ if (ze(s.value)) return e(o, l);
181
+ const a = st();
182
+ if (a === null) return e(o, l);
183
+ const r = new Proxy(o, {
184
+ get(i, c) {
185
+ var A;
186
+ const b = Reflect.get(i, c), m = (A = s.value) == null ? void 0 : A[c];
187
+ return typeof c == "string" && !Ut(a.vnode, c) ? m ?? b : b;
188
188
  }
189
189
  });
190
- return t(a, l);
190
+ return e(r, l);
191
191
  }), n;
192
192
  }
193
- const Tt = I(Ct), Vt = /* @__PURE__ */ C({
193
+ const Pt = L(Ot), Nt = /* @__PURE__ */ I({
194
194
  __name: "QSpinnerLoader",
195
195
  props: {
196
196
  size: { default: 48 },
197
- class: { default: void 0 }
197
+ class: {}
198
198
  },
199
199
  setup(n) {
200
- const t = n, e = y(() => ({
200
+ const t = n, e = g(() => ({
201
201
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
202
202
  }));
203
- return (l, o) => (i(), f("div", {
203
+ return (o, l) => (d(), h("div", {
204
204
  class: T(["q-spinner-loader", t.class]),
205
- style: fe(e.value)
205
+ style: ue(e.value)
206
206
  }, null, 6));
207
207
  }
208
- }), _e = I(Vt), At = ["disabled"], Et = {
208
+ }), $e = L(Nt), Rt = ["disabled"], Gt = {
209
209
  key: 0,
210
210
  class: "q-btn__spinner"
211
- }, Qt = { class: "q-btn__content" }, Dt = /* @__PURE__ */ C({
211
+ }, Ht = { class: "q-btn__content" }, Kt = /* @__PURE__ */ I({
212
212
  __name: "QButton",
213
213
  props: {
214
214
  active: { type: Boolean },
215
215
  bStyle: { default: "secondary" },
216
- label: { default: "" },
216
+ label: {},
217
217
  disabled: { type: Boolean },
218
218
  iconOnRight: { type: Boolean },
219
219
  borderless: { type: Boolean },
@@ -221,20 +221,20 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
221
221
  block: { type: Boolean },
222
222
  loading: { type: Boolean },
223
223
  size: { default: "regular" },
224
- class: { default: void 0 }
224
+ class: {}
225
225
  },
226
226
  emits: ["click"],
227
227
  setup(n, { emit: t }) {
228
- const e = n, l = t, o = y(() => e.disabled || e.loading);
229
- function s(d) {
230
- o.value || l("click", d);
228
+ const e = n, o = t, l = g(() => e.disabled || e.loading);
229
+ function s(r) {
230
+ l.value || o("click", r);
231
231
  }
232
- const a = y(() => {
233
- const d = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
232
+ const a = g(() => {
233
+ const r = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
234
234
  return [
235
235
  "q-btn",
236
236
  `q-btn--${e.bStyle}`,
237
- d,
237
+ r,
238
238
  {
239
239
  "q-btn--active": e.active,
240
240
  "q-btn--borderless": e.borderless,
@@ -245,72 +245,72 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
245
245
  e.class
246
246
  ];
247
247
  });
248
- return (d, r) => (i(), f("button", {
248
+ return (r, i) => (d(), h("button", {
249
249
  type: "button",
250
250
  class: T(a.value),
251
- disabled: o.value,
252
- onClick: ue(s, ["stop", "prevent"])
251
+ disabled: l.value,
252
+ onClick: ne(s, ["stop", "prevent"])
253
253
  }, [
254
- d.loading ? (i(), f("div", Et, [
255
- D(m(_e), { size: 20 })
256
- ])) : g("", !0),
257
- q("span", Qt, [
258
- d.iconOnRight ? (i(), f(U, { key: 0 }, [
259
- ae(E(e.label), 1)
260
- ], 64)) : g("", !0),
261
- p(d.$slots, "default"),
262
- d.iconOnRight ? g("", !0) : (i(), f(U, { key: 1 }, [
263
- ae(E(e.label), 1)
254
+ r.loading ? (d(), h("div", Gt, [
255
+ U(y($e), { size: 20 })
256
+ ])) : w("", !0),
257
+ x("span", Ht, [
258
+ r.iconOnRight ? (d(), h(W, { key: 0 }, [
259
+ ie(z(e.label), 1)
260
+ ], 64)) : w("", !0),
261
+ p(r.$slots, "default"),
262
+ r.iconOnRight ? w("", !0) : (d(), h(W, { key: 1 }, [
263
+ ie(z(e.label), 1)
264
264
  ], 64))
265
265
  ])
266
- ], 10, At));
266
+ ], 10, Rt));
267
267
  }
268
- }), le = I(Dt), zt = /* @__PURE__ */ C({
268
+ }), re = L(Kt), Wt = /* @__PURE__ */ I({
269
269
  __name: "QIcon",
270
270
  props: {
271
271
  icon: {},
272
- size: { default: void 0 },
273
- class: { default: void 0 },
272
+ size: {},
273
+ class: {},
274
274
  type: { default: "svg" }
275
275
  },
276
276
  setup(n) {
277
- const t = n, e = y(() => {
277
+ const t = n, e = g(() => {
278
278
  switch (t.type) {
279
279
  case "svg":
280
- return at;
280
+ return pt;
281
281
  case "font":
282
- return ot;
282
+ return ut;
283
283
  case "img":
284
- return st;
284
+ return ft;
285
285
  default:
286
286
  return;
287
287
  }
288
288
  });
289
- return (l, o) => (i(), B(Se(e.value), {
289
+ return (o, l) => (d(), C(Ie(e.value), {
290
290
  class: T(t.class),
291
291
  icon: t.icon,
292
292
  size: t.size
293
293
  }, null, 8, ["class", "icon", "size"]));
294
294
  }
295
- }), Mt = /* @__PURE__ */ C({
295
+ }), jt = /* @__PURE__ */ I({
296
296
  __name: "QIconFont",
297
297
  props: {
298
298
  icon: {},
299
- size: { default: void 0 },
300
- class: { default: void 0 },
299
+ size: {},
300
+ class: {},
301
301
  library: { default: "" },
302
- variant: { default: "" }
302
+ variant: {}
303
303
  },
304
304
  setup(n) {
305
- const t = n, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), o = y(() => ({
305
+ const t = n, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), o = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
306
306
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
307
307
  }));
308
- return (s, a) => (i(), f("i", {
309
- class: T(["q-icon", "q-icon__font", e.value, l.value, t.class]),
310
- style: fe(o.value)
308
+ return (s, a) => (d(), h("i", {
309
+ class: T(["q-icon", "q-icon__font", e.value, o.value, t.class]),
310
+ style: ue(l.value)
311
311
  }, null, 6));
312
312
  }
313
- }), Ft = ["src"], Ot = /* @__PURE__ */ C({
313
+ }), Xt = ["src"], Yt = /* @__PURE__ */ I({
314
314
  __name: "QIconImg",
315
315
  props: {
316
316
  icon: {},
@@ -318,16 +318,16 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
318
318
  class: {}
319
319
  },
320
320
  setup(n) {
321
- const t = n, e = y(() => ({
321
+ const t = n, e = g(() => ({
322
322
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
323
323
  }));
324
- return (l, o) => (i(), f("img", {
324
+ return (o, l) => (d(), h("img", {
325
325
  src: t.icon,
326
326
  class: T(["q-icon", "q-icon__img", t.class]),
327
- style: fe(e.value)
328
- }, null, 14, Ft));
327
+ style: ue(e.value)
328
+ }, null, 14, Xt));
329
329
  }
330
- }), be = {}, Pt = C({
330
+ }), _e = {}, Zt = I({
331
331
  name: "InlineSvg",
332
332
  emits: {
333
333
  loaded: (n) => typeof n == "object",
@@ -338,9 +338,9 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
338
338
  render() {
339
339
  if (!this.svgElSource) return null;
340
340
  const n = this.getSvgContent(this.svgElSource);
341
- if (!n) return He("div", this.$attrs);
341
+ if (!n) return Ye("div", this.$attrs);
342
342
  const t = {};
343
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, He("svg", t);
343
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, Ye("svg", t);
344
344
  },
345
345
  props: {
346
346
  /**
@@ -393,14 +393,14 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
393
393
  methods: {
394
394
  copySvgAttrs(n, t) {
395
395
  const e = t.attributes;
396
- if (e) for (const l of e) n[l.name] = l.value;
396
+ if (e) for (const o of e) n[o.name] = o.value;
397
397
  },
398
398
  copyComponentAttrs(n, t) {
399
- for (const [e, l] of Object.entries(t))
400
- l !== !1 && l !== null && l !== void 0 && (n[e] = l);
399
+ for (const [e, o] of Object.entries(t))
400
+ o !== !1 && o !== null && o !== void 0 && (n[e] = o);
401
401
  },
402
402
  getSvgContent(n) {
403
- return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), Ut(n, this.title)), n);
403
+ return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), Jt(n, this.title)), n);
404
404
  },
405
405
  /**
406
406
  * Get svgElSource
@@ -408,11 +408,11 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
408
408
  */
409
409
  async getSource(n) {
410
410
  try {
411
- be[n] || (be[n] = Nt(this.download(n))), this.svgElSource && be[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
412
- const t = await be[n];
411
+ _e[n] || (_e[n] = en(this.download(n))), this.svgElSource && _e[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
412
+ const t = await _e[n];
413
413
  this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
414
414
  } catch (t) {
415
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete be[n], this.$emit("error", t);
415
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete _e[n], this.$emit("error", t);
416
416
  }
417
417
  },
418
418
  /**
@@ -435,184 +435,184 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
435
435
  },
436
436
  expose: []
437
437
  });
438
- function Ut(n, t) {
438
+ function Jt(n, t) {
439
439
  const e = n.getElementsByTagName("title");
440
440
  if (e.length)
441
441
  e[0].textContent = t;
442
442
  else {
443
- const l = document.createElementNS("http://www.w3.org/2000/svg", "title");
444
- l.textContent = t, n.insertBefore(l, n.firstChild);
443
+ const o = document.createElementNS("http://www.w3.org/2000/svg", "title");
444
+ o.textContent = t, n.insertBefore(o, n.firstChild);
445
445
  }
446
446
  }
447
- function Nt(n) {
447
+ function en(n) {
448
448
  if (n.getIsPending) return n;
449
449
  let t = !0;
450
450
  const e = n.then(
451
- (l) => (t = !1, l),
452
- (l) => {
453
- throw t = !1, l;
451
+ (o) => (t = !1, o),
452
+ (o) => {
453
+ throw t = !1, o;
454
454
  }
455
455
  );
456
456
  return e.getIsPending = () => t, e;
457
457
  }
458
- const Rt = /* @__PURE__ */ C({
458
+ const tn = /* @__PURE__ */ I({
459
459
  __name: "QIconSvg",
460
460
  props: {
461
461
  icon: {},
462
- size: { default: void 0 },
463
- class: { default: void 0 },
462
+ size: {},
463
+ class: {},
464
464
  bundle: { default: "" }
465
465
  },
466
466
  emits: ["loaded", "unloaded"],
467
467
  setup(n, { emit: t }) {
468
- const e = n, l = t, o = y(() => ({
468
+ const e = n, o = t, l = g(() => ({
469
469
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
470
470
  }));
471
- function s(d) {
472
- l("loaded", d);
471
+ function s(r) {
472
+ o("loaded", r);
473
473
  }
474
474
  function a() {
475
- l("unloaded");
475
+ o("unloaded");
476
476
  }
477
- return (d, r) => (i(), B(m(Pt), {
477
+ return (r, i) => (d(), C(y(Zt), {
478
478
  class: T(["q-icon", "q-icon__svg", e.class]),
479
479
  src: e.bundle,
480
480
  symbol: e.icon,
481
- style: fe(o.value),
481
+ style: ue(l.value),
482
482
  onLoaded: s,
483
483
  onUnloaded: a
484
484
  }, null, 8, ["class", "src", "symbol", "style"]));
485
485
  }
486
- }), O = I(zt), ot = I(Mt), st = I(Ot), at = I(Rt), Gt = {
486
+ }), X = L(Wt), ut = L(jt), ft = L(Yt), pt = L(tn), nn = {
487
487
  remove: {
488
488
  icon: "close"
489
489
  }
490
490
  };
491
- function Ht(n) {
492
- return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
491
+ function mt(n, t = !1) {
492
+ return t ? /^#[a-fA-F0-9]{6}$/.test(n) : /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
493
493
  }
494
- function jt(n) {
494
+ function on(n) {
495
495
  const t = n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
496
496
  if (t) {
497
- const e = parseInt(t[1], 10), l = parseInt(t[2], 10), o = parseInt(t[3], 10);
498
- return { r: e, g: l, b: o };
497
+ const e = parseInt(t[1], 10), o = parseInt(t[2], 10), l = parseInt(t[3], 10);
498
+ return { r: e, g: o, b: l };
499
499
  }
500
500
  }
501
- function it(n) {
502
- if (Ht(n)) {
501
+ function ht(n) {
502
+ if (mt(n)) {
503
503
  n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
504
- const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), l = parseInt(n.slice(5, 7), 16);
505
- return { r: t, g: e, b: l };
504
+ const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), o = parseInt(n.slice(5, 7), 16);
505
+ return { r: t, g: e, b: o };
506
506
  } else {
507
- const t = jt(n);
507
+ const t = on(n);
508
508
  if (t) return t;
509
509
  }
510
510
  throw new Error("Invalid color format");
511
511
  }
512
- function Kt(n) {
513
- const t = n.r / 255, e = n.g / 255, l = n.b / 255, o = Math.max(t, e, l), s = Math.min(t, e, l);
514
- let a = 0, d;
515
- const r = (o + s) / 2;
516
- if (o === s)
517
- a = d = 0;
512
+ function ln(n) {
513
+ const t = n.r / 255, e = n.g / 255, o = n.b / 255, l = Math.max(t, e, o), s = Math.min(t, e, o);
514
+ let a = 0, r;
515
+ const i = (l + s) / 2;
516
+ if (l === s)
517
+ a = r = 0;
518
518
  else {
519
- const u = o - s;
520
- switch (d = r > 0.5 ? u / (2 - o - s) : u / (o + s), o) {
519
+ const c = l - s;
520
+ switch (r = i > 0.5 ? c / (2 - l - s) : c / (l + s), l) {
521
521
  case t:
522
- a = (e - l) / u + (e < l ? 6 : 0);
522
+ a = (e - o) / c + (e < o ? 6 : 0);
523
523
  break;
524
524
  case e:
525
- a = (l - t) / u + 2;
525
+ a = (o - t) / c + 2;
526
526
  break;
527
- case l:
528
- a = (t - e) / u + 4;
527
+ case o:
528
+ a = (t - e) / c + 4;
529
529
  break;
530
530
  }
531
531
  a /= 6;
532
532
  }
533
533
  return {
534
534
  h: Math.round(a * 360),
535
- s: Math.round(d * 100),
536
- l: Math.round(r * 100)
535
+ s: Math.round(r * 100),
536
+ l: Math.round(i * 100)
537
537
  };
538
538
  }
539
- function Wt(n) {
539
+ function sn(n) {
540
540
  return n > 50 ? "#000" : "#fff";
541
541
  }
542
- const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
542
+ const an = { class: "q-badge__content" }, rn = /* @__PURE__ */ I({
543
543
  __name: "QBadge",
544
544
  props: {
545
545
  color: { default: "primary" },
546
546
  variant: { default: "tonal" },
547
547
  removable: { type: Boolean },
548
548
  pill: { type: Boolean },
549
- icons: { default: () => Gt }
549
+ icons: { default: () => nn }
550
550
  },
551
551
  emits: ["click:remove"],
552
552
  setup(n, { emit: t }) {
553
- const e = n, l = t, o = y(
553
+ const e = n, o = t, l = g(
554
554
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
555
- ), s = y(() => {
556
- const r = o.value ? `q-badge--${e.color}` : void 0;
557
- return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
558
- }), a = y(() => {
559
- let r, u;
560
- if (!o.value)
561
- if (r = e.color, e.variant === "tonal")
562
- u = e.color;
555
+ ), s = g(() => {
556
+ const i = l.value ? `q-badge--${e.color}` : void 0;
557
+ return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
558
+ }), a = g(() => {
559
+ let i, c;
560
+ if (!l.value)
561
+ if (i = e.color, e.variant === "tonal")
562
+ c = e.color;
563
563
  else {
564
- const b = it(r), x = Kt(b);
565
- u = Wt(x.l);
564
+ const b = ht(i), m = ln(b);
565
+ c = sn(m.l);
566
566
  }
567
567
  return {
568
- "--q-badge-color": r,
569
- "--q-badge-text-color": u
568
+ "--q-badge-color": i,
569
+ "--q-badge-text-color": c
570
570
  };
571
571
  });
572
- function d() {
573
- l("click:remove");
572
+ function r() {
573
+ o("click:remove");
574
574
  }
575
- return (r, u) => (i(), f("span", {
575
+ return (i, c) => (d(), h("span", {
576
576
  class: T(s.value),
577
577
  role: "presentation",
578
- style: fe(a.value)
578
+ style: ue(a.value)
579
579
  }, [
580
- u[0] || (u[0] = q("div", { class: "q-badge__underlay" }, null, -1)),
581
- q("div", Xt, [
582
- p(r.$slots, "default"),
583
- e.removable ? (i(), B(m(le), {
580
+ c[0] || (c[0] = x("div", { class: "q-badge__underlay" }, null, -1)),
581
+ x("div", an, [
582
+ p(i.$slots, "default"),
583
+ e.removable ? (d(), C(y(re), {
584
584
  key: 0,
585
585
  class: "q-badge__remove",
586
586
  borderless: "",
587
587
  tabindex: "0",
588
- onClick: d
588
+ onClick: r
589
589
  }, {
590
- default: w(() => [
591
- D(m(O), W(ne(e.icons.remove)), null, 16)
590
+ default: _(() => [
591
+ U(y(X), se(fe(e.icons.remove)), null, 16)
592
592
  ]),
593
593
  _: 1
594
- })) : g("", !0)
594
+ })) : w("", !0)
595
595
  ])
596
596
  ], 6));
597
597
  }
598
- }), Zt = I(Yt), Jt = /* @__PURE__ */ C({
598
+ }), dn = L(rn), cn = /* @__PURE__ */ I({
599
599
  __name: "QButtonGroup",
600
600
  props: {
601
601
  disabled: { type: Boolean },
602
602
  borderless: { type: Boolean },
603
603
  elevated: { type: Boolean },
604
- class: { default: void 0 }
604
+ class: {}
605
605
  },
606
606
  setup(n) {
607
607
  const t = n;
608
- return Pe({
608
+ return Ne({
609
609
  QButton: {
610
610
  bStyle: "secondary",
611
- disabled: Ve(t, "disabled"),
612
- borderless: Ve(t, "borderless"),
611
+ disabled: qe(t, "disabled"),
612
+ borderless: qe(t, "borderless"),
613
613
  elevated: !1
614
614
  }
615
- }), (e, l) => (i(), f("div", {
615
+ }), (e, o) => (d(), h("div", {
616
616
  class: T([
617
617
  "q-btn-group",
618
618
  {
@@ -624,7 +624,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
624
624
  p(e.$slots, "default")
625
625
  ], 2));
626
626
  }
627
- }), rt = I(Jt), en = /* @__PURE__ */ C({
627
+ }), vt = L(cn), un = /* @__PURE__ */ I({
628
628
  __name: "QButtonToggle",
629
629
  props: /* @__PURE__ */ G({
630
630
  options: {},
@@ -640,10 +640,10 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
640
640
  emits: ["update:modelValue"],
641
641
  setup(n) {
642
642
  const t = n, e = K(n, "modelValue");
643
- function l(o) {
644
- e.value === o.key && !t.required ? e.value = void 0 : e.value = o.key;
643
+ function o(l) {
644
+ e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
645
645
  }
646
- return (o, s) => (i(), B(m(rt), {
646
+ return (l, s) => (d(), C(y(vt), {
647
647
  "b-style": "secondary",
648
648
  class: T(t.class),
649
649
  disabled: t.disabled,
@@ -651,18 +651,18 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
651
651
  elevated: t.elevated,
652
652
  role: "listbox"
653
653
  }, {
654
- default: w(() => [
655
- (i(!0), f(U, null, he(t.options, (a) => (i(), B(m(le), {
654
+ default: _(() => [
655
+ (d(!0), h(W, null, ye(t.options, (a) => (d(), C(y(re), {
656
656
  key: a.key,
657
657
  title: a.title,
658
658
  label: a.label,
659
659
  active: e.value === a.key,
660
660
  role: "option",
661
661
  "aria-selected": e.value === a.key,
662
- onClick: () => l(a)
662
+ onClick: () => o(a)
663
663
  }, {
664
- default: w(() => [
665
- p(o.$slots, a.key)
664
+ default: _(() => [
665
+ p(l.$slots, a.key)
666
666
  ]),
667
667
  _: 2
668
668
  }, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
@@ -670,46 +670,46 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
670
670
  _: 3
671
671
  }, 8, ["class", "disabled", "borderless", "elevated"]));
672
672
  }
673
- }), tn = I(en);
674
- let nn = 0;
675
- function ie(n) {
676
- return n || `uid-${++nn}`;
673
+ }), fn = L(un);
674
+ let pn = 0;
675
+ function de(n) {
676
+ return n || `uid-${++pn}`;
677
677
  }
678
- const ln = { class: "q-card__header" }, on = {
678
+ const mn = { class: "q-card__header" }, hn = {
679
679
  key: 0,
680
680
  class: "q-card__header-content"
681
- }, sn = { class: "q-card__header-text" }, an = {
681
+ }, vn = { class: "q-card__header-text" }, yn = {
682
682
  key: 0,
683
683
  class: "q-card__title",
684
684
  role: "cell"
685
- }, rn = {
685
+ }, bn = {
686
686
  key: 1,
687
687
  class: "q-card__subtitle",
688
688
  role: "cell"
689
- }, dn = { class: "q-card__content" }, un = {
689
+ }, gn = { class: "q-card__content" }, _n = {
690
690
  key: 0,
691
691
  class: "q-card__footer"
692
- }, cn = /* @__PURE__ */ C({
692
+ }, $n = /* @__PURE__ */ I({
693
693
  __name: "QCard",
694
694
  props: {
695
- id: { default: void 0 },
696
- title: { default: void 0 },
697
- subtitle: { default: void 0 },
698
- href: { default: void 0 },
695
+ id: {},
696
+ title: {},
697
+ subtitle: {},
698
+ href: {},
699
699
  disabled: { type: Boolean },
700
700
  loading: { type: Boolean },
701
701
  borderless: { type: Boolean },
702
702
  variant: { default: "default" },
703
703
  elevation: { default: "none" },
704
- width: { default: void 0 }
704
+ width: {}
705
705
  },
706
706
  setup(n) {
707
- const t = n, e = bt(), l = ie(t.id), o = y(() => {
708
- const r = t.width ? `q-card--${t.width}` : void 0, u = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, b = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
707
+ const t = n, e = St(), o = de(t.id), l = g(() => {
708
+ const i = t.width ? `q-card--${t.width}` : void 0, c = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, b = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
709
709
  return [
710
710
  "q-card",
711
- r,
712
- u,
711
+ i,
712
+ c,
713
713
  b,
714
714
  {
715
715
  "q-card--clickable": s.value,
@@ -718,94 +718,94 @@ const ln = { class: "q-card__header" }, on = {
718
718
  "q-card--disabled": t.disabled
719
719
  }
720
720
  ];
721
- }), s = y(() => !!e.onClick || t.href), a = y(() => t.disabled || t.loading), d = (r) => {
722
- a.value && r.stopImmediatePropagation();
721
+ }), s = g(() => !!e.onClick || t.href), a = g(() => t.disabled || t.loading), r = (i) => {
722
+ a.value && i.stopImmediatePropagation();
723
723
  };
724
- return (r, u) => (i(), B(Se(t.href ? "a" : "div"), {
725
- id: m(l),
726
- class: T([...o.value, r.$attrs.class]),
724
+ return (i, c) => (d(), C(Ie(t.href ? "a" : "div"), {
725
+ id: y(o),
726
+ class: T([...l.value, i.$attrs.class]),
727
727
  href: t.href && !a.value ? t.href : void 0,
728
- onClick: d
728
+ onClick: r
729
729
  }, {
730
- default: w(() => [
731
- t.loading ? (i(), B(m(_e), {
730
+ default: _(() => [
731
+ t.loading ? (d(), C(y($e), {
732
732
  key: 0,
733
733
  size: 36
734
- })) : (i(), f(U, { key: 1 }, [
735
- q("div", ln, [
736
- p(r.$slots, "header", {}, () => [
737
- p(r.$slots, "header.prepend"),
738
- r.$slots.title || t.title || r.$slots.subtitle || t.subtitle ? (i(), f("div", on, [
739
- p(r.$slots, "header.content.prepend"),
740
- q("div", sn, [
741
- r.$slots.title || t.title ? (i(), f("p", an, [
742
- r.$slots.title ? p(r.$slots, "title", { key: 0 }) : (i(), f(U, { key: 1 }, [
743
- ae(E(r.$props.title), 1)
734
+ })) : (d(), h(W, { key: 1 }, [
735
+ x("div", mn, [
736
+ p(i.$slots, "header", {}, () => [
737
+ p(i.$slots, "header.prepend"),
738
+ i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (d(), h("div", hn, [
739
+ p(i.$slots, "header.content.prepend"),
740
+ x("div", vn, [
741
+ i.$slots.title || t.title ? (d(), h("p", yn, [
742
+ i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (d(), h(W, { key: 1 }, [
743
+ ie(z(i.$props.title), 1)
744
744
  ], 64))
745
- ])) : g("", !0),
746
- r.$slots.subtitle || t.subtitle ? (i(), f("p", rn, [
747
- r.$slots.subtitle ? p(r.$slots, "subtitle", { key: 0 }) : (i(), f(U, { key: 1 }, [
748
- ae(E(r.$props.subtitle), 1)
745
+ ])) : w("", !0),
746
+ i.$slots.subtitle || t.subtitle ? (d(), h("p", bn, [
747
+ i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (d(), h(W, { key: 1 }, [
748
+ ie(z(i.$props.subtitle), 1)
749
749
  ], 64))
750
- ])) : g("", !0)
750
+ ])) : w("", !0)
751
751
  ]),
752
- p(r.$slots, "header.content.append")
753
- ])) : g("", !0),
754
- p(r.$slots, "header.append")
752
+ p(i.$slots, "header.content.append")
753
+ ])) : w("", !0),
754
+ p(i.$slots, "header.append")
755
755
  ])
756
756
  ]),
757
- q("div", dn, [
758
- p(r.$slots, "default")
757
+ x("div", gn, [
758
+ p(i.$slots, "default")
759
759
  ]),
760
- r.$slots.footer ? (i(), f("div", un, [
761
- p(r.$slots, "footer")
762
- ])) : g("", !0)
760
+ i.$slots.footer ? (d(), h("div", _n, [
761
+ p(i.$slots, "footer")
762
+ ])) : w("", !0)
763
763
  ], 64))
764
764
  ]),
765
765
  _: 3
766
766
  }, 8, ["id", "class", "href"]));
767
767
  }
768
- }), dt = I(cn), fn = { key: 0 }, pn = { class: "q-field__extras" }, mn = { key: 1 }, We = /* @__PURE__ */ C({
768
+ }), yt = L($n), kn = { key: 0 }, wn = { class: "q-field__extras" }, qn = { key: 1 }, et = /* @__PURE__ */ I({
769
769
  __name: "QCheckboxLabel",
770
770
  props: {
771
- label: { default: "" }
771
+ label: {}
772
772
  },
773
773
  setup(n) {
774
774
  const t = n;
775
- return (e, l) => e.$slots.extras ? (i(), f("div", fn, [
776
- q("span", null, E(t.label), 1),
777
- q("div", pn, [
775
+ return (e, o) => e.$slots.extras ? (d(), h("div", kn, [
776
+ x("span", null, z(t.label), 1),
777
+ x("div", wn, [
778
778
  p(e.$slots, "extras")
779
779
  ])
780
- ])) : (i(), f("span", mn, E(t.label), 1));
780
+ ])) : (d(), h("span", qn, z(t.label), 1));
781
781
  }
782
- }), hn = {
782
+ }), xn = {
783
783
  checked: {
784
784
  icon: "check"
785
785
  },
786
786
  indeterminate: {
787
787
  icon: "minus"
788
788
  }
789
- }, yn = ["id", "aria-checked", "disabled", "onKeydown"], vn = ["checked", "disabled"], bn = /* @__PURE__ */ C({
789
+ }, Cn = ["id", "aria-checked", "disabled", "onKeydown"], In = ["checked", "disabled"], Ln = /* @__PURE__ */ I({
790
790
  __name: "QCheckbox",
791
791
  props: /* @__PURE__ */ G({
792
- label: { default: "" },
793
- id: { default: void 0 },
792
+ label: {},
793
+ id: {},
794
794
  labelPlacement: { default: "right" },
795
795
  disabled: { type: Boolean },
796
796
  readonly: { type: Boolean },
797
797
  indeterminate: { type: Boolean },
798
798
  color: { default: "primary" },
799
799
  size: { default: "regular" },
800
- class: { default: void 0 },
801
- icons: { default: () => hn }
800
+ class: {},
801
+ icons: { default: () => xn }
802
802
  }, {
803
803
  modelValue: { type: Boolean },
804
804
  modelModifiers: {}
805
805
  }),
806
806
  emits: ["update:modelValue"],
807
807
  setup(n) {
808
- const t = n, e = K(n, "modelValue"), l = ie(t.id), o = y(() => [
808
+ const t = n, e = K(n, "modelValue"), o = de(t.id), l = g(() => [
809
809
  "q-checkbox",
810
810
  `q-checkbox--${t.size}`,
811
811
  `q-checkbox--${t.color}`,
@@ -820,78 +820,96 @@ const ln = { class: "q-card__header" }, on = {
820
820
  function s() {
821
821
  !t.disabled && !t.readonly && (e.value = !e.value);
822
822
  }
823
- return (a, d) => (i(), f(U, null, [
824
- q("label", {
825
- class: T(o.value)
823
+ return (a, r) => (d(), h(W, null, [
824
+ x("label", {
825
+ class: T(l.value)
826
826
  }, [
827
- t.labelPlacement !== "right" ? (i(), B(We, {
827
+ t.labelPlacement !== "right" ? (d(), C(et, {
828
828
  key: 0,
829
829
  label: t.label
830
- }, ye({ _: 2 }, [
830
+ }, pe({ _: 2 }, [
831
831
  a.$slots.extras ? {
832
832
  name: "extras",
833
- fn: w(() => [
833
+ fn: _(() => [
834
834
  p(a.$slots, "extras")
835
835
  ]),
836
836
  key: "0"
837
837
  } : void 0
838
- ]), 1032, ["label"])) : g("", !0),
839
- q("button", {
840
- id: m(l),
838
+ ]), 1032, ["label"])) : w("", !0),
839
+ x("button", {
840
+ id: y(o),
841
841
  role: "checkbox",
842
842
  type: "button",
843
843
  "aria-checked": t.indeterminate ? "mixed" : e.value,
844
844
  disabled: t.disabled || t.readonly,
845
845
  class: "q-checkbox__input",
846
- onClick: ue(s, ["prevent"]),
846
+ onClick: ne(s, ["prevent"]),
847
847
  onKeydown: [
848
- Ae(ue(s, ["prevent"]), ["space"]),
849
- d[0] || (d[0] = Ae(ue(() => {
848
+ De(ne(s, ["prevent"]), ["space"]),
849
+ r[0] || (r[0] = De(ne(() => {
850
850
  }, ["prevent"]), ["enter"]))
851
851
  ]
852
852
  }, [
853
- e.value || a.indeterminate ? (i(), B(m(O), H({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : g("", !0)
854
- ], 40, yn),
855
- t.labelPlacement === "right" ? (i(), B(We, {
853
+ e.value || a.indeterminate ? (d(), C(y(X), Z({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : w("", !0)
854
+ ], 40, Cn),
855
+ t.labelPlacement === "right" ? (d(), C(et, {
856
856
  key: 1,
857
857
  label: t.label
858
- }, ye({ _: 2 }, [
858
+ }, pe({ _: 2 }, [
859
859
  a.$slots.extras ? {
860
860
  name: "extras",
861
- fn: w(() => [
861
+ fn: _(() => [
862
862
  p(a.$slots, "extras")
863
863
  ]),
864
864
  key: "0"
865
865
  } : void 0
866
- ]), 1032, ["label"])) : g("", !0)
866
+ ]), 1032, ["label"])) : w("", !0)
867
867
  ], 2),
868
- q("input", {
868
+ x("input", {
869
869
  type: "checkbox",
870
870
  tabindex: "-1",
871
871
  "aria-hidden": "true",
872
872
  class: "q-checkbox__native-input",
873
873
  checked: !!e.value,
874
874
  disabled: t.disabled || t.readonly
875
- }, null, 8, vn)
875
+ }, null, 8, In)
876
876
  ], 64));
877
877
  }
878
- }), gn = I(bn), _n = {
878
+ }), Sn = L(Ln), Le = {
879
879
  chevron: {
880
880
  icon: "chevron-down"
881
881
  }
882
- }, $n = {
882
+ }, Bn = /* @__PURE__ */ I({
883
+ __name: "QChevron",
884
+ props: /* @__PURE__ */ G({
885
+ class: {},
886
+ icons: { default: () => Le }
887
+ }, {
888
+ modelValue: { type: Boolean },
889
+ modelModifiers: {}
890
+ }),
891
+ emits: ["update:modelValue"],
892
+ setup(n) {
893
+ const t = n, e = K(n, "modelValue");
894
+ return (o, l) => (d(), C(y(X), Z({
895
+ class: ["q-chevron", { "q-chevron--expanded": e.value }]
896
+ }, t.icons.chevron), null, 16, ["class"]));
897
+ }
898
+ }), xe = L(Bn), Vn = {
899
+ ...Le
900
+ }, Tn = {
883
901
  key: 0,
884
902
  class: "q-collapsible__header"
885
- }, kn = { class: "q-collapsible__title" }, wn = { class: "q-collapsible__title-text" }, qn = {
903
+ }, An = { class: "q-collapsible__title" }, En = { class: "q-collapsible__title-text" }, Dn = {
886
904
  key: 1,
887
905
  class: "q-collapsible--required"
888
- }, xn = {
906
+ }, Qn = {
889
907
  key: 0,
890
908
  class: "q-collapsible__subtitle"
891
- }, Sn = { class: "q-collapsible__content-inner" }, Ln = { class: "q-collapsible__content" }, Bn = /* @__PURE__ */ C({
909
+ }, zn = { class: "q-collapsible__content-inner" }, Fn = { class: "q-collapsible__content" }, Mn = /* @__PURE__ */ I({
892
910
  __name: "QCollapsible",
893
911
  props: /* @__PURE__ */ G({
894
- id: { default: void 0 },
912
+ id: {},
895
913
  title: {},
896
914
  subtitle: {},
897
915
  width: { default: "fit-content" },
@@ -899,77 +917,83 @@ const ln = { class: "q-card__header" }, on = {
899
917
  spacing: {},
900
918
  variant: {},
901
919
  iconRight: { type: Boolean },
902
- icons: { default: () => _n }
920
+ icons: { default: () => Vn }
903
921
  }, {
904
922
  modelValue: { type: Boolean },
905
923
  modelModifiers: {}
906
924
  }),
907
925
  emits: ["update:modelValue"],
908
926
  setup(n) {
909
- const t = n, e = K(n, "modelValue"), l = ie(t.id), o = Lt(l), s = y(() => t.width === "block" ? "block" : void 0), a = y(() => {
910
- const u = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, b = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
927
+ const t = n, e = K(n, "modelValue"), o = de(t.id), l = Ft(o), s = g(() => t.width === "block" ? "block" : void 0), a = g(() => {
928
+ const c = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, b = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
911
929
  return [
912
930
  "q-collapsible",
913
- u,
931
+ c,
914
932
  b,
915
933
  {
916
- "q-collapsible--icon-right": t.iconRight,
917
- "q-collapsible--expanded": e.value
934
+ "q-collapsible--icon-right": t.iconRight
918
935
  }
919
936
  ];
920
- }), d = y(() => [
937
+ }), r = g(() => [
921
938
  "q-collapsible__content-wrapper",
922
939
  {
923
940
  "q-collapsible__content-show": e.value
924
941
  }
925
- ]), r = () => {
926
- e.value = !e.value, o == null || o.toggle();
942
+ ]), i = () => {
943
+ e.value = !e.value, l == null || l.toggle();
927
944
  };
928
- return Z(
929
- () => o == null ? void 0 : o.isActive.value,
930
- () => e.value = o == null ? void 0 : o.isActive.value
931
- ), (u, b) => (i(), B(m(dt), {
932
- id: m(l),
945
+ return Y(
946
+ () => l == null ? void 0 : l.isActive.value,
947
+ () => e.value = l == null ? void 0 : l.isActive.value
948
+ ), (c, b) => (d(), C(y(yt), {
949
+ id: y(o),
933
950
  class: T(a.value),
934
951
  width: s.value
935
952
  }, {
936
- header: w(() => [
937
- u.title ? (i(), f("div", $n, [
938
- D(m(le), {
953
+ header: _(() => [
954
+ c.title ? (d(), h("div", Tn, [
955
+ U(y(re), {
939
956
  "b-style": "tertiary",
940
957
  class: "q-collapsible__btn",
941
- onClick: r
958
+ onClick: i
942
959
  }, {
943
- default: w(() => [
944
- q("div", kn, [
945
- u.iconRight ? g("", !0) : p(u.$slots, "icon", { key: 0 }, () => [
946
- D(m(O), H({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
960
+ default: _(() => [
961
+ x("div", An, [
962
+ c.iconRight ? w("", !0) : p(c.$slots, "icon", { key: 0 }, () => [
963
+ U(y(xe), {
964
+ "model-value": e.value,
965
+ icons: t.icons
966
+ }, null, 8, ["model-value", "icons"])
947
967
  ]),
948
- p(u.$slots, "title.prepend"),
949
- q("h4", wn, E(u.title), 1),
950
- t.required ? (i(), f("span", qn, " * ")) : g("", !0),
951
- p(u.$slots, "title.append"),
952
- u.iconRight ? p(u.$slots, "icon", { key: 2 }, () => [
953
- D(m(O), H({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
954
- ]) : g("", !0)
968
+ p(c.$slots, "title.prepend"),
969
+ x("h4", En, z(c.title), 1),
970
+ t.required ? (d(), h("span", Dn, " * ")) : w("", !0),
971
+ p(c.$slots, "title.append"),
972
+ c.iconRight ? p(c.$slots, "icon", { key: 2 }, () => [
973
+ U(y(xe), {
974
+ "model-value": e.value,
975
+ class: "q-collapsible__chevron-right",
976
+ icons: t.icons
977
+ }, null, 8, ["model-value", "icons"])
978
+ ]) : w("", !0)
955
979
  ]),
956
- u.$slots.subtitle || u.subtitle ? (i(), f("div", xn, [
957
- p(u.$slots, "subtitle", {}, () => [
958
- ae(E(u.subtitle), 1)
980
+ c.$slots.subtitle || c.subtitle ? (d(), h("div", Qn, [
981
+ p(c.$slots, "subtitle", {}, () => [
982
+ ie(z(c.subtitle), 1)
959
983
  ])
960
- ])) : g("", !0)
984
+ ])) : w("", !0)
961
985
  ]),
962
986
  _: 3
963
987
  })
964
- ])) : g("", !0)
988
+ ])) : w("", !0)
965
989
  ]),
966
- default: w(() => [
967
- q("div", {
968
- class: T(d.value)
990
+ default: _(() => [
991
+ x("div", {
992
+ class: T(r.value)
969
993
  }, [
970
- q("div", Sn, [
971
- q("div", Ln, [
972
- p(u.$slots, "default")
994
+ x("div", zn, [
995
+ x("div", Fn, [
996
+ p(c.$slots, "default")
973
997
  ])
974
998
  ])
975
999
  ], 2)
@@ -977,16 +1001,278 @@ const ln = { class: "q-card__header" }, on = {
977
1001
  _: 3
978
1002
  }, 8, ["id", "class", "width"]));
979
1003
  }
980
- }), Cn = I(Bn), In = /* @__PURE__ */ C({
1004
+ }), On = L(Mn), Un = {
1005
+ selectColor: "Select a color"
1006
+ }, Pn = ["id"], Nn = {
1007
+ key: 0,
1008
+ class: "q-field__label"
1009
+ }, Rn = ["for"], Gn = {
1010
+ key: 0,
1011
+ class: "q-field__prepend"
1012
+ }, Hn = {
1013
+ key: 1,
1014
+ class: "q-field__append"
1015
+ }, Kn = {
1016
+ key: 1,
1017
+ class: "q-field__extras"
1018
+ }, Wn = /* @__PURE__ */ I({
1019
+ inheritAttrs: !1,
1020
+ __name: "QField",
1021
+ props: {
1022
+ id: {},
1023
+ label: {},
1024
+ for: {},
1025
+ size: { default: "medium" },
1026
+ readonly: { type: Boolean },
1027
+ disabled: { type: Boolean },
1028
+ required: { type: Boolean },
1029
+ class: {}
1030
+ },
1031
+ setup(n, { expose: t }) {
1032
+ const e = n, o = de(e.id), l = B(null), s = g(() => e.required && !e.readonly && !e.disabled);
1033
+ return t({
1034
+ fieldRef: l
1035
+ }), (a, r) => (d(), h("div", {
1036
+ id: y(o),
1037
+ class: T([
1038
+ "q-field",
1039
+ `q-field--${e.size}`,
1040
+ {
1041
+ "q-field--readonly": e.readonly,
1042
+ "q-field--disabled": e.disabled,
1043
+ "q-field--required": s.value
1044
+ },
1045
+ e.class
1046
+ ])
1047
+ }, [
1048
+ e.label ? (d(), h("div", Nn, [
1049
+ p(a.$slots, "label.prepend"),
1050
+ x("label", {
1051
+ for: e.for
1052
+ }, z(e.label), 9, Rn),
1053
+ p(a.$slots, "label.append")
1054
+ ])) : w("", !0),
1055
+ p(a.$slots, "control", {}, () => [
1056
+ x("div", Z({
1057
+ ref_key: "fieldRef",
1058
+ ref: l,
1059
+ class: "q-field__control"
1060
+ }, a.$attrs), [
1061
+ a.$slots.prepend ? (d(), h("div", Gn, [
1062
+ p(a.$slots, "prepend")
1063
+ ])) : w("", !0),
1064
+ p(a.$slots, "default"),
1065
+ a.$slots.append ? (d(), h("div", Hn, [
1066
+ p(a.$slots, "append")
1067
+ ])) : w("", !0)
1068
+ ], 16)
1069
+ ]),
1070
+ a.$slots.extras ? (d(), h("div", Kn, [
1071
+ p(a.$slots, "extras")
1072
+ ])) : w("", !0)
1073
+ ], 10, Pn));
1074
+ }
1075
+ }), Se = L(Wn), jn = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xn = /* @__PURE__ */ I({
1076
+ inheritAttrs: !1,
1077
+ __name: "QTextField",
1078
+ props: /* @__PURE__ */ G({
1079
+ id: {},
1080
+ placeholder: {},
1081
+ label: {},
1082
+ size: {},
1083
+ maxLength: {},
1084
+ readonly: { type: Boolean },
1085
+ disabled: { type: Boolean },
1086
+ required: { type: Boolean },
1087
+ role: {},
1088
+ type: { default: "text" },
1089
+ class: {}
1090
+ }, {
1091
+ modelValue: {},
1092
+ modelModifiers: {}
1093
+ }),
1094
+ emits: ["update:modelValue"],
1095
+ setup(n, { expose: t }) {
1096
+ const e = n, o = K(n, "modelValue"), l = de(e.id), s = B(null), a = B(null), r = g(
1097
+ () => e.readonly || e.disabled ? void 0 : e.placeholder
1098
+ );
1099
+ return t({
1100
+ fieldRef: g(() => {
1101
+ var i;
1102
+ return (i = s.value) == null ? void 0 : i.fieldRef;
1103
+ }),
1104
+ inputRef: a
1105
+ }), (i, c) => (d(), C(y(Se), {
1106
+ ref_key: "fieldRef",
1107
+ ref: s,
1108
+ class: T(["q-text-field", e.class]),
1109
+ for: y(l),
1110
+ label: e.label,
1111
+ size: e.size,
1112
+ readonly: e.readonly,
1113
+ disabled: e.disabled,
1114
+ required: e.required
1115
+ }, pe({
1116
+ "label.prepend": _(() => [
1117
+ p(i.$slots, "label.prepend")
1118
+ ]),
1119
+ "label.append": _(() => [
1120
+ p(i.$slots, "label.append")
1121
+ ]),
1122
+ default: _(() => [
1123
+ at(x("input", Z({
1124
+ id: y(l),
1125
+ ref_key: "inputRef",
1126
+ ref: a,
1127
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => o.value = b),
1128
+ class: "q-text-field__input",
1129
+ type: e.type,
1130
+ role: e.role,
1131
+ required: e.required,
1132
+ placeholder: r.value,
1133
+ readonly: e.readonly,
1134
+ disabled: e.disabled,
1135
+ maxlength: e.maxLength
1136
+ }, i.$attrs), null, 16, jn), [
1137
+ [Bt, o.value]
1138
+ ])
1139
+ ]),
1140
+ _: 2
1141
+ }, [
1142
+ i.$slots.prepend ? {
1143
+ name: "prepend",
1144
+ fn: _(() => [
1145
+ p(i.$slots, "prepend")
1146
+ ]),
1147
+ key: "0"
1148
+ } : void 0,
1149
+ i.$slots.append ? {
1150
+ name: "append",
1151
+ fn: _(() => [
1152
+ p(i.$slots, "append")
1153
+ ]),
1154
+ key: "1"
1155
+ } : void 0,
1156
+ i.$slots.extras ? {
1157
+ name: "extras",
1158
+ fn: _(() => [
1159
+ p(i.$slots, "extras")
1160
+ ]),
1161
+ key: "2"
1162
+ } : void 0
1163
+ ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1164
+ }
1165
+ }), Re = L(Xn), Yn = ["readonly", "disabled", "aria-label"], Zn = /* @__PURE__ */ I({
1166
+ __name: "QColorPicker",
1167
+ props: /* @__PURE__ */ G({
1168
+ id: {},
1169
+ placeholder: {},
1170
+ label: {},
1171
+ size: { default: "small" },
1172
+ readonly: { type: Boolean },
1173
+ disabled: { type: Boolean },
1174
+ required: { type: Boolean },
1175
+ class: {},
1176
+ texts: { default: () => Un }
1177
+ }, {
1178
+ modelValue: {},
1179
+ modelModifiers: {}
1180
+ }),
1181
+ emits: ["update:modelValue"],
1182
+ setup(n) {
1183
+ const t = n, e = K(n, "modelValue"), o = B(""), l = B(""), s = g(() => t.readonly || t.disabled);
1184
+ function a(m) {
1185
+ return mt(m, !0);
1186
+ }
1187
+ function r(m) {
1188
+ const A = m.target;
1189
+ e.value = a(A.value) ? A.value : "";
1190
+ }
1191
+ function i() {
1192
+ a(l.value) ? e.value = l.value : (e.value = "", l.value = "");
1193
+ }
1194
+ function c(m) {
1195
+ m && a(m) ? o.value = m : o.value = "#000000";
1196
+ }
1197
+ Y(e, c, { immediate: !0 });
1198
+ function b(m) {
1199
+ m && a(m) ? l.value = m : l.value = "";
1200
+ }
1201
+ return Y(e, b, { immediate: !0 }), (m, A) => (d(), C(y(Re), {
1202
+ modelValue: l.value,
1203
+ "onUpdate:modelValue": A[1] || (A[1] = (P) => l.value = P),
1204
+ maxlength: "7",
1205
+ id: t.id,
1206
+ class: T(["q-color-picker", t.class]),
1207
+ label: t.label,
1208
+ size: t.size,
1209
+ readonly: t.readonly,
1210
+ disabled: t.disabled,
1211
+ required: t.required,
1212
+ placeholder: t.placeholder,
1213
+ onChange: i
1214
+ }, pe({
1215
+ "label.prepend": _(() => [
1216
+ p(m.$slots, "label.prepend")
1217
+ ]),
1218
+ "label.append": _(() => [
1219
+ p(m.$slots, "label.append")
1220
+ ]),
1221
+ prepend: _(() => [
1222
+ p(m.$slots, "prepend"),
1223
+ at(x("input", {
1224
+ "onUpdate:modelValue": A[0] || (A[0] = (P) => o.value = P),
1225
+ type: "color",
1226
+ class: "q-color-picker__swatch",
1227
+ readonly: t.readonly,
1228
+ disabled: s.value,
1229
+ "aria-label": t.texts.selectColor,
1230
+ onChange: r
1231
+ }, null, 40, Yn), [
1232
+ [Vt, o.value]
1233
+ ])
1234
+ ]),
1235
+ _: 2
1236
+ }, [
1237
+ m.$slots.append ? {
1238
+ name: "append",
1239
+ fn: _(() => [
1240
+ p(m.$slots, "append")
1241
+ ]),
1242
+ key: "0"
1243
+ } : void 0,
1244
+ m.$slots.extras ? {
1245
+ name: "extras",
1246
+ fn: _(() => [
1247
+ p(m.$slots, "extras")
1248
+ ]),
1249
+ key: "1"
1250
+ } : void 0
1251
+ ]), 1032, ["modelValue", "id", "class", "label", "size", "readonly", "disabled", "required", "placeholder"]));
1252
+ }
1253
+ }), Jn = L(Zn), Ge = {
1254
+ clearValue: "Clear value"
1255
+ }, He = {
1256
+ clear: {
1257
+ icon: "close"
1258
+ }
1259
+ }, eo = {
1260
+ ...Ge,
1261
+ noData: "No data available",
1262
+ showOptions: "Show options"
1263
+ }, to = {
1264
+ ...Le,
1265
+ ...He
1266
+ }, no = /* @__PURE__ */ I({
981
1267
  __name: "QList",
982
1268
  props: /* @__PURE__ */ G({
983
- highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
1269
+ highlighted: { type: [String, Number, Boolean, Symbol] },
984
1270
  items: {},
985
1271
  groups: { default: () => [] },
986
1272
  itemValue: { default: "key" },
987
1273
  itemLabel: { default: "label" },
988
1274
  disabled: { type: Boolean },
989
- class: { default: void 0 },
1275
+ class: {},
990
1276
  selectable: { type: Boolean }
991
1277
  }, {
992
1278
  modelValue: {
@@ -996,143 +1282,161 @@ const ln = { class: "q-card__header" }, on = {
996
1282
  }),
997
1283
  emits: ["update:modelValue"],
998
1284
  setup(n, { expose: t }) {
999
- const e = n, l = K(n, "modelValue"), o = A(!1), s = y(() => a.value.length > 1 ? "div" : "ul"), a = y(() => e.groups.length ? e.groups.filter(
1000
- (v) => e.items.some((S) => S.group === v.id)
1001
- ) : [{ id: "", title: "" }]), d = A(null);
1002
- function r(v) {
1003
- l.value = v;
1004
- }
1005
- function u() {
1006
- o.value = !0;
1285
+ const e = n, o = K(n, "modelValue"), l = B(!1), s = g(() => a.value.length > 1 ? "div" : "ul"), a = g(() => e.groups.length ? e.groups.filter(
1286
+ (k) => e.items.some((u) => u.group === k.id)
1287
+ ) : [{ id: "", title: "" }]), r = B(null), i = B(null);
1288
+ function c(k) {
1289
+ o.value = k;
1007
1290
  }
1008
1291
  function b() {
1009
- o.value = !1;
1292
+ l.value = !0;
1010
1293
  }
1011
- function x(v) {
1012
- var $;
1013
- if (($ = d.value) != null && $.contains(v.relatedTarget))
1294
+ function m() {
1295
+ l.value = !1;
1296
+ }
1297
+ function A(k) {
1298
+ var O;
1299
+ if ((O = r.value) != null && O.contains(k.relatedTarget))
1014
1300
  return;
1015
- let S;
1016
- l.value ? S = e.items.findIndex((J) => J[e.itemValue] === l.value) : S = Q();
1017
- const h = o.value;
1018
- z(S, h);
1301
+ let u;
1302
+ o.value ? u = e.items.findIndex((H) => H[e.itemValue] === o.value) : u = j();
1303
+ const q = l.value;
1304
+ $(u, q);
1019
1305
  }
1020
- function R(v) {
1021
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
1306
+ function P(k) {
1307
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(k.key) && k.preventDefault(), k.key) {
1022
1308
  case "ArrowDown":
1023
- P("next");
1309
+ N("next");
1024
1310
  break;
1025
1311
  case "ArrowUp":
1026
- P("prev");
1312
+ N("prev");
1027
1313
  break;
1028
1314
  case "Home":
1029
- P("first");
1315
+ N("first");
1030
1316
  break;
1031
1317
  case "End":
1032
- P("last");
1318
+ N("last");
1033
1319
  break;
1034
1320
  }
1035
1321
  }
1036
- function P(v) {
1037
- switch (v) {
1322
+ function N(k) {
1323
+ switch (k) {
1038
1324
  case "next":
1039
1325
  case "prev":
1040
- z(N(v));
1326
+ $(E(k));
1041
1327
  break;
1042
1328
  case "first":
1043
- z(Q());
1329
+ $(j());
1044
1330
  break;
1045
1331
  case "last":
1046
- z(oe());
1332
+ $(te());
1047
1333
  break;
1048
1334
  }
1049
1335
  }
1050
- function z(v, S = !1) {
1051
- var $;
1052
- ($ = _()[v]) == null || $.focus({ preventScroll: S });
1053
- }
1054
- function _() {
1055
- var S;
1056
- const v = (S = d.value) == null ? void 0 : S.querySelectorAll("li");
1057
- return v ? Array.from(v) : [];
1336
+ function $(k, u = !1) {
1337
+ var O;
1338
+ (O = V()[k]) == null || O.focus({ preventScroll: u });
1058
1339
  }
1059
- function V(v) {
1060
- return _()[v];
1340
+ function V() {
1341
+ var u;
1342
+ const k = (u = r.value) == null ? void 0 : u.querySelectorAll("li");
1343
+ return k ? Array.from(k) : [];
1061
1344
  }
1062
- function M() {
1063
- return _().indexOf(document.activeElement);
1345
+ function D(k) {
1346
+ return V()[k];
1064
1347
  }
1065
1348
  function Q() {
1066
- const v = _(), S = v.find((h) => X(h));
1067
- return S ? v.indexOf(S) : -1;
1068
- }
1069
- function oe() {
1070
- const v = _(), S = [...v].reverse().find((h) => X(h));
1071
- return S ? v.indexOf(S) : -1;
1072
- }
1073
- function ee(v, S, h) {
1074
- return S === "prev" && v === 0 || S === "next" && v === h.length - 1;
1075
- }
1076
- function N(v) {
1077
- const S = M();
1078
- return se(S, v);
1079
- }
1080
- function se(v, S) {
1081
- const h = _();
1082
- if (ee(v, S, h))
1083
- return v;
1084
- let $ = v + (S === "next" ? 1 : -1);
1085
- for (; !X(h[$]); ) {
1086
- if (ee($, S, h))
1087
- return v;
1088
- $ += S === "next" ? 1 : -1;
1349
+ return V().indexOf(document.activeElement);
1350
+ }
1351
+ function j() {
1352
+ const k = V(), u = k.find((q) => ae(q));
1353
+ return u ? k.indexOf(u) : -1;
1354
+ }
1355
+ function te() {
1356
+ const k = V(), u = [...k].reverse().find((q) => ae(q));
1357
+ return u ? k.indexOf(u) : -1;
1358
+ }
1359
+ function S(k, u, q) {
1360
+ return u === "prev" && k <= 0 || u === "next" && k === q.length - 1;
1361
+ }
1362
+ function E(k) {
1363
+ const u = Q();
1364
+ return R(u, k);
1365
+ }
1366
+ function R(k, u) {
1367
+ const q = V();
1368
+ if (S(k, u, q))
1369
+ return k;
1370
+ let O = k + (u === "next" ? 1 : -1);
1371
+ for (; !ae(q[O]); ) {
1372
+ if (S(O, u, q))
1373
+ return k;
1374
+ O += u === "next" ? 1 : -1;
1089
1375
  }
1090
- return $;
1376
+ return O;
1091
1377
  }
1092
- function X(v) {
1093
- return v.tabIndex === -2;
1378
+ function ae(k) {
1379
+ return k.tabIndex === -2;
1094
1380
  }
1095
- function ce(v) {
1096
- return v ? e.items.filter((S) => S.group === v) : e.items;
1381
+ function ce(k) {
1382
+ return k ? e.items.filter((u) => u.group === k) : e.items;
1097
1383
  }
1098
1384
  return t({
1099
- focusItem: z,
1100
- getItem: V,
1101
- getAdjacentItemIndex: se,
1102
- getFirstFocusableItemIndex: Q,
1103
- getLastFocusableItemIndex: oe
1104
- }), (v, S) => (i(), B(Se(s.value), {
1385
+ focusItem: $,
1386
+ getItem: D,
1387
+ getAdjacentItemIndex: R,
1388
+ getFirstFocusableItemIndex: j,
1389
+ getLastFocusableItemIndex: te
1390
+ }), (k, u) => (d(), C(Ie(s.value), {
1105
1391
  ref_key: "listRef",
1106
- ref: d,
1392
+ ref: r,
1107
1393
  class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
1108
1394
  role: "listbox",
1109
1395
  tabindex: e.disabled ? -1 : 0,
1110
- onFocus: x,
1111
- onMousedown: u,
1112
- onMouseup: b,
1113
- onKeydown: R
1396
+ onFocus: A,
1397
+ onMousedown: b,
1398
+ onMouseup: m,
1399
+ onKeydown: P
1114
1400
  }, {
1115
- default: w(() => [
1116
- (i(!0), f(U, null, he(a.value, (h) => (i(), B(m(ct), {
1117
- id: h.id,
1118
- key: h.id,
1119
- title: a.value.length === 1 ? void 0 : h.title
1401
+ default: _(() => [
1402
+ (d(!0), h(W, null, ye(a.value, (q, O) => (d(), C(y(gt), {
1403
+ id: q.id,
1404
+ key: q.id,
1405
+ title: a.value.length === 1 ? void 0 : q.title
1120
1406
  }, {
1121
- default: w(() => [
1122
- (i(!0), f(U, null, he(ce(h.id), ($) => (i(), B(m(ut), {
1123
- key: $[e.itemValue],
1124
- value: $[e.itemValue],
1125
- label: $[e.itemLabel],
1126
- description: $.description,
1127
- icon: $.icon,
1128
- disabled: e.disabled || h.disabled || $.disabled,
1129
- highlighted: e.highlighted === $[e.itemValue],
1130
- selected: v.selectable && l.value === $[e.itemValue],
1131
- onSelect: r
1407
+ default: _(() => [
1408
+ (d(!0), h(W, null, ye(ce(q.id), (H, J) => (d(), C(y(bt), {
1409
+ key: H[e.itemValue],
1410
+ ref_for: !0,
1411
+ ref_key: "listItemsRef",
1412
+ ref: i,
1413
+ value: H[e.itemValue],
1414
+ label: H[e.itemLabel],
1415
+ description: H.description,
1416
+ icon: H.icon,
1417
+ disabled: e.disabled || q.disabled || H.disabled,
1418
+ highlighted: e.highlighted === H[e.itemValue],
1419
+ selected: k.selectable && o.value === H[e.itemValue],
1420
+ onSelect: c
1132
1421
  }, {
1133
- default: w(() => [
1134
- p(v.$slots, "item", { item: $ })
1135
- ]),
1422
+ append: _(() => {
1423
+ var ee, oe;
1424
+ return [
1425
+ p(k.$slots, "item.append", {
1426
+ item: H,
1427
+ element: (oe = (ee = i.value) == null ? void 0 : ee[J + O * a.value.length]) == null ? void 0 : oe.$el
1428
+ })
1429
+ ];
1430
+ }),
1431
+ default: _(() => {
1432
+ var ee, oe;
1433
+ return [
1434
+ p(k.$slots, "item", {
1435
+ item: H,
1436
+ element: (oe = (ee = i.value) == null ? void 0 : ee[J + O * a.value.length]) == null ? void 0 : oe.$el
1437
+ })
1438
+ ];
1439
+ }),
1136
1440
  _: 2
1137
1441
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
1138
1442
  ]),
@@ -1142,39 +1446,39 @@ const ln = { class: "q-card__header" }, on = {
1142
1446
  _: 3
1143
1447
  }, 40, ["class", "tabindex"]));
1144
1448
  }
1145
- }), Tn = {
1449
+ }), oo = {
1146
1450
  check: {
1147
1451
  icon: "check"
1148
1452
  },
1149
1453
  description: {
1150
1454
  icon: "information-outline"
1151
1455
  }
1152
- }, Vn = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], An = { class: "q-list-item__container" }, En = { class: "q-list-item__content" }, Qn = {
1456
+ }, lo = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], so = { class: "q-list-item__container" }, ao = { class: "q-list-item__content" }, io = {
1153
1457
  key: 0,
1154
1458
  class: "q-list-item__description"
1155
- }, Dn = { class: "q-list-item__check-container" }, zn = /* @__PURE__ */ C({
1459
+ }, ro = { class: "q-list-item__check-container" }, co = /* @__PURE__ */ I({
1156
1460
  __name: "QListItem",
1157
1461
  props: {
1158
1462
  value: { type: [String, Number, Boolean, Symbol] },
1159
1463
  label: {},
1160
- icon: { default: void 0 },
1464
+ icon: {},
1161
1465
  selected: { type: Boolean },
1162
1466
  highlighted: { type: Boolean },
1163
1467
  disabled: { type: Boolean },
1164
- description: { default: void 0 },
1165
- icons: { default: () => Tn }
1468
+ description: {},
1469
+ icons: { default: () => oo }
1166
1470
  },
1167
1471
  emits: ["select"],
1168
1472
  setup(n, { emit: t }) {
1169
- const e = n, l = t, o = ie();
1473
+ const e = n, o = t, l = de();
1170
1474
  function s() {
1171
- e.disabled || l("select", e.value);
1475
+ e.disabled || o("select", e.value);
1172
1476
  }
1173
- function a(d) {
1174
- d.key === "Tab" && s(), (d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), s());
1477
+ function a(r) {
1478
+ r.key === "Tab" && s(), (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
1175
1479
  }
1176
- return (d, r) => (i(), f("li", {
1177
- id: m(o),
1480
+ return (r, i) => (d(), h("li", {
1481
+ id: y(l),
1178
1482
  "data-key": e.value,
1179
1483
  role: "option",
1180
1484
  tabindex: e.disabled ? void 0 : -2,
@@ -1189,701 +1493,646 @@ const ln = { class: "q-card__header" }, on = {
1189
1493
  "aria-label": e.label,
1190
1494
  "aria-selected": e.disabled ? void 0 : e.selected,
1191
1495
  onKeydown: a,
1192
- onClick: ue(s, ["stop", "prevent"])
1496
+ onClick: ne(s, ["stop", "prevent"])
1193
1497
  }, [
1194
- q("div", An, [
1195
- q("div", En, [
1196
- p(d.$slots, "default", {}, () => [
1197
- e.icon ? (i(), B(m(O), W(H({ key: 0 }, e.icon)), null, 16)) : g("", !0),
1198
- ae(" " + E(e.label), 1)
1498
+ p(r.$slots, "prepend"),
1499
+ x("div", so, [
1500
+ x("div", ao, [
1501
+ p(r.$slots, "default", {}, () => [
1502
+ e.icon ? (d(), C(y(X), se(Z({ key: 0 }, e.icon)), null, 16)) : w("", !0),
1503
+ ie(" " + z(e.label), 1)
1199
1504
  ])
1200
1505
  ]),
1201
- e.description ? (i(), f("div", Qn, [
1202
- D(m(O), W(ne(e.icons.description)), null, 16),
1203
- q("span", null, E(e.description), 1)
1204
- ])) : g("", !0)
1506
+ e.description ? (d(), h("div", io, [
1507
+ U(y(X), se(fe(e.icons.description)), null, 16),
1508
+ x("span", null, z(e.description), 1)
1509
+ ])) : w("", !0)
1205
1510
  ]),
1206
- q("div", Dn, [
1207
- e.selected ? (i(), B(m(O), H({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : g("", !0)
1511
+ p(r.$slots, "append"),
1512
+ x("div", ro, [
1513
+ e.selected ? (d(), C(y(X), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : w("", !0)
1208
1514
  ])
1209
- ], 42, Vn));
1515
+ ], 42, lo));
1210
1516
  }
1211
- }), Mn = ["data-key", "aria-labelledby"], Fn = ["id"], On = /* @__PURE__ */ C({
1517
+ }), uo = ["data-key", "aria-labelledby"], fo = ["id"], po = /* @__PURE__ */ I({
1212
1518
  __name: "QListItemGroup",
1213
1519
  props: {
1214
1520
  id: {},
1215
- title: { default: "" }
1521
+ title: {}
1216
1522
  },
1217
1523
  setup(n) {
1218
- const t = n, e = ie();
1219
- return (l, o) => (i(), f("ul", {
1524
+ const t = n, e = de();
1525
+ return (o, l) => (d(), h("ul", {
1220
1526
  class: "q-list-item-group",
1221
1527
  role: "group",
1222
1528
  "data-key": t.id,
1223
- "aria-labelledby": t.title ? m(e) : void 0
1529
+ "aria-labelledby": t.title ? y(e) : void 0
1224
1530
  }, [
1225
- t.title ? (i(), f("li", {
1531
+ t.title ? (d(), h("li", {
1226
1532
  key: 0,
1227
- id: m(e),
1533
+ id: y(e),
1228
1534
  class: "q-list-item-group__title",
1229
1535
  role: "presentation"
1230
- }, E(t.title), 9, Fn)) : g("", !0),
1231
- p(l.$slots, "default")
1232
- ], 8, Mn));
1536
+ }, z(t.title), 9, fo)) : w("", !0),
1537
+ p(o.$slots, "default")
1538
+ ], 8, uo));
1233
1539
  }
1234
- }), Ue = I(In), ut = I(zn), ct = I(On), me = "data-scroll-locked", Ce = "right-scroll-bar-position", Ie = "width-before-scroll-bar", Pn = "with-scroll-bars-hidden", Un = "--removed-body-scroll-bar-size", Nn = {
1540
+ }), Be = L(no), bt = L(co), gt = L(po), ve = "data-scroll-locked", Te = "right-scroll-bar-position", Ae = "width-before-scroll-bar", mo = "with-scroll-bars-hidden", ho = "--removed-body-scroll-bar-size", vo = {
1235
1541
  left: 0,
1236
1542
  top: 0,
1237
1543
  right: 0,
1238
1544
  gap: 0
1239
- }, Te = (n) => parseInt(n || "", 10) || 0, Rn = (n) => {
1240
- const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"], l = t[n === "padding" ? "paddingTop" : "marginTop"], o = t[n === "padding" ? "paddingRight" : "marginRight"];
1241
- return [Te(e), Te(l), Te(o)];
1242
- }, Gn = (n = "margin") => {
1545
+ }, Ee = (n) => parseInt(n || "", 10) || 0, yo = (n) => {
1546
+ const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"], o = t[n === "padding" ? "paddingTop" : "marginTop"], l = t[n === "padding" ? "paddingRight" : "marginRight"];
1547
+ return [Ee(e), Ee(o), Ee(l)];
1548
+ }, bo = (n = "margin") => {
1243
1549
  if (typeof window > "u")
1244
- return Nn;
1245
- const t = Rn(n), e = document.documentElement.clientWidth, l = window.innerWidth;
1550
+ return vo;
1551
+ const t = yo(n), e = document.documentElement.clientWidth, o = window.innerWidth;
1246
1552
  return {
1247
1553
  left: t[0],
1248
1554
  top: t[1],
1249
1555
  right: t[2],
1250
- gap: Math.max(0, l - e + t[2] - t[0])
1556
+ gap: Math.max(0, o - e + t[2] - t[0])
1251
1557
  };
1252
1558
  };
1253
- function Hn() {
1559
+ function go() {
1254
1560
  return document ? document.createElement("style") : null;
1255
1561
  }
1256
- function jn(n, t) {
1562
+ function _o(n, t) {
1257
1563
  n.appendChild(document.createTextNode(t));
1258
1564
  }
1259
- function Kn(n) {
1565
+ function $o(n) {
1260
1566
  (document.head || document.getElementsByTagName("head")[0]).appendChild(n);
1261
1567
  }
1262
- const Wn = () => {
1568
+ const ko = () => {
1263
1569
  let n = 0, t = null;
1264
1570
  return {
1265
1571
  add: (e) => {
1266
- n === 0 && (t = Hn()) && (jn(t, e), Kn(t)), n++;
1572
+ n === 0 && (t = go()) && (_o(t, e), $o(t)), n++;
1267
1573
  },
1268
1574
  remove: () => {
1269
1575
  var e;
1270
1576
  n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
1271
1577
  }
1272
1578
  };
1273
- }, Xn = /* @__PURE__ */ C({
1579
+ }, wo = /* @__PURE__ */ I({
1274
1580
  __name: "QRemoveScrollBar",
1275
1581
  props: {
1276
- noRelative: { type: Boolean, default: !1 },
1277
- noImportant: { type: Boolean, default: !1 },
1582
+ noRelative: { type: Boolean },
1583
+ noImportant: { type: Boolean },
1278
1584
  gapMode: { default: "margin" }
1279
1585
  },
1280
1586
  setup(n) {
1281
- const t = n, e = Wn(), l = () => {
1282
- const s = parseInt(document.body.getAttribute(me) || "0", 10);
1587
+ const t = n, e = ko(), o = () => {
1588
+ const s = parseInt(document.body.getAttribute(ve) || "0", 10);
1283
1589
  return isFinite(s) ? s : 0;
1284
- }, o = ({ left: s, top: a, right: d, gap: r }, u, b = "margin", x) => `
1285
- .${Pn} {
1286
- overflow: hidden ${x};
1287
- padding-right: ${r}px ${x};
1590
+ }, l = ({ left: s, top: a, right: r, gap: i }, c, b = "margin", m) => `
1591
+ .${mo} {
1592
+ overflow: hidden ${m};
1593
+ padding-right: ${i}px ${m};
1288
1594
  }
1289
- body[${me}] {
1290
- overflow: hidden ${x};
1595
+ body[${ve}] {
1596
+ overflow: hidden ${m};
1291
1597
  overscroll-behavior: contain;
1292
1598
  ${[
1293
- u && `position: relative ${x};`,
1599
+ c && `position: relative ${m};`,
1294
1600
  b === "margin" && `
1295
1601
  padding-left: ${s}px;
1296
1602
  padding-top: ${a}px;
1297
- padding-right: ${d}px;
1603
+ padding-right: ${r}px;
1298
1604
  margin-left:0;
1299
1605
  margin-top:0;
1300
- margin-right: ${r}px ${x};
1606
+ margin-right: ${i}px ${m};
1301
1607
  `,
1302
- b === "padding" && `padding-right: ${r}px ${x};`
1608
+ b === "padding" && `padding-right: ${i}px ${m};`
1303
1609
  ].filter(Boolean).join("")}
1304
1610
  }
1305
1611
 
1306
- .${Ce} {
1307
- right: ${r}px ${x};
1612
+ .${Te} {
1613
+ right: ${i}px ${m};
1308
1614
  }
1309
1615
 
1310
- .${Ie} {
1311
- margin-right: ${r}px ${x};
1616
+ .${Ae} {
1617
+ margin-right: ${i}px ${m};
1312
1618
  }
1313
1619
 
1314
- .${Ce} .${Ce} {
1315
- right: 0 ${x};
1620
+ .${Te} .${Te} {
1621
+ right: 0 ${m};
1316
1622
  }
1317
1623
 
1318
- .${Ie} .${Ie} {
1319
- margin-right: 0 ${x};
1624
+ .${Ae} .${Ae} {
1625
+ margin-right: 0 ${m};
1320
1626
  }
1321
1627
 
1322
- body[${me}] {
1323
- ${Un}: ${r}px;
1628
+ body[${ve}] {
1629
+ ${ho}: ${i}px;
1324
1630
  }
1325
1631
  `;
1326
- return Me(() => {
1327
- document.body.setAttribute(me, (l() + 1).toString());
1328
- const s = Gn(t.gapMode);
1632
+ return Oe(() => {
1633
+ document.body.setAttribute(ve, (o() + 1).toString());
1634
+ const s = bo(t.gapMode);
1329
1635
  e.add(
1330
- o(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
1636
+ l(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
1331
1637
  );
1332
- }), gt(() => {
1333
- const s = l() - 1;
1334
- s <= 0 ? document.body.removeAttribute(me) : document.body.setAttribute(me, s.toString()), e.remove();
1638
+ }), Tt(() => {
1639
+ const s = o() - 1;
1640
+ s <= 0 ? document.body.removeAttribute(ve) : document.body.setAttribute(ve, s.toString()), e.remove();
1335
1641
  }), (s, a) => p(s.$slots, "default");
1336
1642
  }
1337
- }), Yn = I(Xn), qe = 8;
1338
- function Zn(n, t, e, l) {
1339
- const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", a = n.getBoundingClientRect(), d = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), u = Jn(a, d, s, o), b = ll(a, d, u), x = tl(b, u, o), R = el(x, d, u);
1340
- let P;
1341
- if (l != null && l.arrow) {
1342
- if (!r)
1643
+ }), qo = L(wo), tt = "q-theme";
1644
+ function xo() {
1645
+ let n = document.getElementById(
1646
+ tt
1647
+ );
1648
+ return n || (n = document.createElement("style"), n.id = tt, document.head.appendChild(n)), n;
1649
+ }
1650
+ function Co(n) {
1651
+ let t = "";
1652
+ for (const o of n) {
1653
+ t += `.q-theme--${o.name} {
1654
+ `;
1655
+ const l = o.scheme;
1656
+ let s;
1657
+ for (s in l) {
1658
+ const a = l[s];
1659
+ if (a) {
1660
+ t += ` ${nt(s)}: ${a};
1661
+ `;
1662
+ const r = ht(a);
1663
+ t += ` ${nt(s)}-rgb: ${r.r} ${r.g} ${r.b};
1664
+ `;
1665
+ }
1666
+ }
1667
+ t += `}
1668
+ `;
1669
+ }
1670
+ const e = xo();
1671
+ e.textContent = t;
1672
+ }
1673
+ function nt(n) {
1674
+ return n ? `--q-theme-${ct(n)}` : "";
1675
+ }
1676
+ function _t(n, t) {
1677
+ const e = g(() => {
1678
+ const l = t.find((s) => s.name === n.value);
1679
+ if (!l)
1680
+ throw new Error(`Theme "${n}" not found`);
1681
+ return l;
1682
+ });
1683
+ return {
1684
+ name: n,
1685
+ current: e,
1686
+ themes: t
1687
+ };
1688
+ }
1689
+ const Ke = Symbol.for("q-theme");
1690
+ function $t() {
1691
+ const n = Me(Ke);
1692
+ if (!n)
1693
+ throw new Error("[Quidgest UI] Could not find theme instance");
1694
+ return n;
1695
+ }
1696
+ function Io(n) {
1697
+ const t = $t(), e = t.themes, o = _t(n, e);
1698
+ return Fe(Ke, o), o;
1699
+ }
1700
+ const Lo = /* @__PURE__ */ I({
1701
+ __name: "QThemeProvider",
1702
+ props: {
1703
+ theme: {}
1704
+ },
1705
+ setup(n) {
1706
+ const t = n, e = qe(t, "theme");
1707
+ return Io(e), (o, l) => (d(), h("div", {
1708
+ class: T(["q-theme-provider", `q-theme--${t.theme}`])
1709
+ }, [
1710
+ p(o.$slots, "default")
1711
+ ], 2));
1712
+ }
1713
+ }), kt = L(Lo), we = 8;
1714
+ function So(n, t, e, o) {
1715
+ const l = (o == null ? void 0 : o.offset) ?? 0, s = (o == null ? void 0 : o.crossOffset) ?? 0, a = (o == null ? void 0 : o.placement) ?? "bottom", r = n.getBoundingClientRect(), i = t.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), b = Bo(r, i, a, l), m = Do(r, i, b), A = To(m, b, l), P = Ao(A, b, s), N = Vo(P, i, b);
1716
+ let $;
1717
+ if (o != null && o.arrow) {
1718
+ if (!c)
1343
1719
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
1344
- P = nl(R, a, d, r, u);
1720
+ $ = Eo(N, r, i, c, b);
1345
1721
  }
1346
- return { overlayCoords: R, arrowCoords: P, placement: u };
1722
+ return { overlayCoords: N, arrowCoords: $, placement: b };
1347
1723
  }
1348
- function Jn(n, t, e, l) {
1349
- const o = Xe(n, t, e, l);
1350
- if (Ye(o)) {
1351
- const s = $e(e), d = {
1724
+ function Bo(n, t, e, o) {
1725
+ const l = ot(n, t, e, o);
1726
+ if (lt(l)) {
1727
+ const s = be(e), r = {
1352
1728
  top: "bottom",
1353
1729
  bottom: "top",
1354
1730
  left: "right",
1355
1731
  right: "left"
1356
- }[s], r = Xe(
1732
+ }[s], i = ot(
1357
1733
  n,
1358
1734
  t,
1359
- d,
1360
- l
1735
+ r,
1736
+ o
1361
1737
  );
1362
- if (Ye(r))
1738
+ if (lt(i))
1363
1739
  return e;
1364
- const u = al(e);
1365
- return u ? `${d}-${u}` : d;
1740
+ const c = Fo(e);
1741
+ return c ? `${r}-${c}` : r;
1366
1742
  }
1367
1743
  return e;
1368
1744
  }
1369
- function el(n, t, e) {
1370
- const l = xe(e), o = (a, d, r) => Math.min(Math.max(a, d), r), s = { ...n };
1371
- return l === "x" ? s.x = o(n.x, qe, window.innerWidth - t.width - qe) : s.y = o(n.y, qe, window.innerHeight - t.height - qe), s;
1745
+ function Vo(n, t, e) {
1746
+ const o = Ce(e), l = (a, r, i) => Math.min(Math.max(a, r), i), s = { ...n };
1747
+ return o === "x" ? s.x = l(n.x, we, window.innerWidth - t.width - we) : s.y = l(n.y, we, window.innerHeight - t.height - we), s;
1748
+ }
1749
+ function To(n, t, e) {
1750
+ const o = be(t);
1751
+ return {
1752
+ x: n.x + (o === "left" ? -e : o === "right" ? e : 0),
1753
+ y: n.y + (o === "top" ? -e : o === "bottom" ? e : 0)
1754
+ };
1372
1755
  }
1373
- function tl(n, t, e) {
1374
- const l = $e(t);
1756
+ function Ao(n, t, e) {
1757
+ const o = be(t);
1375
1758
  return {
1376
- x: n.x + (l === "left" ? -e : l === "right" ? e : 0),
1377
- y: n.y + (l === "top" ? -e : l === "bottom" ? e : 0)
1759
+ x: n.x + (o === "top" || o === "bottom" ? e : 0),
1760
+ y: n.y + (o === "right" || o === "left" ? e : 0)
1378
1761
  };
1379
1762
  }
1380
- function nl(n, t, e, l, o) {
1381
- if (xe(o) === "y") {
1382
- const a = t.top + t.height / 2, d = n.y + e.height / 2, r = d - a, u = e.height / 2 - r - l.height / 2 + 2;
1383
- if (u > 0 && u < e.height - l.height)
1763
+ function Eo(n, t, e, o, l) {
1764
+ if (Ce(l) === "y") {
1765
+ const a = t.top + t.height / 2, r = n.y + e.height / 2, i = r - a, c = e.height / 2 - i - o.height / 2 + 2;
1766
+ if (c > 0 && c < e.height - o.height)
1384
1767
  return {
1385
- y: u
1768
+ y: c
1386
1769
  };
1387
1770
  } else {
1388
- const a = t.left + t.width / 2, d = n.x + e.width / 2, r = d - a, u = e.width / 2 - r - l.width / 2 + 2;
1389
- if (u > 0 && u < e.width - l.width)
1771
+ const a = t.left + t.width / 2, r = n.x + e.width / 2, i = r - a, c = e.width / 2 - i - o.width / 2 + 2;
1772
+ if (c > 0 && c < e.width - o.width)
1390
1773
  return {
1391
- x: u
1774
+ x: c
1392
1775
  };
1393
1776
  }
1394
1777
  }
1395
- function ll(n, t, e) {
1396
- const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, a = n.y + n.height / 2 - t.height / 2;
1397
- let d;
1398
- switch (l) {
1778
+ function Do(n, t, e) {
1779
+ const [o, l] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, a = n.y + n.height / 2 - t.height / 2;
1780
+ let r;
1781
+ switch (o) {
1399
1782
  case "top":
1400
- d = { x: s, y: n.y - t.height };
1783
+ r = { x: s, y: n.y - t.height };
1401
1784
  break;
1402
1785
  case "bottom":
1403
- d = { x: s, y: n.y + n.height };
1786
+ r = { x: s, y: n.y + n.height };
1404
1787
  break;
1405
1788
  case "left":
1406
- d = { x: n.x - t.width, y: a };
1789
+ r = { x: n.x - t.width, y: a };
1407
1790
  break;
1408
1791
  case "right":
1409
- d = { x: n.x + n.width, y: a };
1792
+ r = { x: n.x + n.width, y: a };
1410
1793
  break;
1411
1794
  default:
1412
1795
  throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
1413
1796
  }
1414
- if (!o)
1415
- return d;
1416
- const u = xe(e) === "y" ? "height" : "width", b = xe(e), x = n[u] / 2 - t[u] / 2;
1417
- switch (o) {
1797
+ if (!l)
1798
+ return r;
1799
+ const c = Ce(e) === "y" ? "height" : "width", b = Ce(e), m = n[c] / 2 - t[c] / 2;
1800
+ switch (l) {
1418
1801
  case "start":
1419
- d[b] -= x;
1802
+ r[b] -= m;
1420
1803
  break;
1421
1804
  case "end":
1422
- d[b] += x;
1805
+ r[b] += m;
1423
1806
  break;
1424
1807
  default:
1425
- throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
1808
+ throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
1426
1809
  }
1427
- return d;
1810
+ return r;
1428
1811
  }
1429
- function Xe(n, t, e, l) {
1430
- const o = $e(e);
1812
+ function ot(n, t, e, o) {
1813
+ const l = be(e);
1431
1814
  let s = 0;
1432
- switch (o) {
1815
+ switch (l) {
1433
1816
  case "top":
1434
- s = n.top - (t.height + l);
1817
+ s = n.top - (t.height + o);
1435
1818
  break;
1436
1819
  case "bottom":
1437
- s = window.innerHeight - n.bottom - (t.height + l);
1820
+ s = window.innerHeight - n.bottom - (t.height + o);
1438
1821
  break;
1439
1822
  case "left":
1440
- s = n.left - (t.width + l);
1823
+ s = n.left - (t.width + o);
1441
1824
  break;
1442
1825
  case "right":
1443
- s = window.innerWidth - n.right - (t.width + l);
1826
+ s = window.innerWidth - n.right - (t.width + o);
1444
1827
  break;
1445
1828
  default:
1446
- throw new Error(`[Quidgest UI] Invalid side value: ${o}`);
1829
+ throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
1447
1830
  }
1448
1831
  return s;
1449
1832
  }
1450
- function ol(n) {
1833
+ function Qo(n) {
1451
1834
  return n === "x" ? "y" : "x";
1452
1835
  }
1453
- function sl(n) {
1454
- const t = $e(n);
1836
+ function zo(n) {
1837
+ const t = be(n);
1455
1838
  return ["left", "right"].includes(t) ? "x" : "y";
1456
1839
  }
1457
- function xe(n) {
1458
- return ol(sl(n));
1840
+ function Ce(n) {
1841
+ return Qo(zo(n));
1459
1842
  }
1460
- function $e(n) {
1843
+ function be(n) {
1461
1844
  const [t] = n.split("-");
1462
1845
  return t;
1463
1846
  }
1464
- function al(n) {
1847
+ function Fo(n) {
1465
1848
  const [, t] = n.split("-");
1466
1849
  return t;
1467
1850
  }
1468
- function Ye(n) {
1851
+ function lt(n) {
1469
1852
  return n < 0;
1470
1853
  }
1471
- function il(n) {
1854
+ function Mo(n) {
1472
1855
  return typeof n == "string" ? document.querySelector(n) : n;
1473
1856
  }
1474
- const rl = ["role"], dl = /* @__PURE__ */ C({
1857
+ const Oo = ["role"], Uo = /* @__PURE__ */ I({
1475
1858
  inheritAttrs: !1,
1476
1859
  __name: "QOverlay",
1477
1860
  props: /* @__PURE__ */ G({
1478
- anchor: { default: void 0 },
1861
+ anchor: {},
1479
1862
  appearance: { default: "regular" },
1480
1863
  arrow: { type: Boolean },
1481
1864
  attach: { default: "body" },
1482
1865
  inline: { type: Boolean },
1483
1866
  backdropBlur: { type: Boolean },
1484
- backdropClass: { default: void 0 },
1867
+ backdropClass: {},
1485
1868
  delay: { default: 500 },
1486
1869
  nonModal: { type: Boolean },
1487
1870
  scrollLock: { type: Boolean },
1488
1871
  offset: { default: 8 },
1872
+ crossOffset: { default: 0 },
1489
1873
  persistent: { type: Boolean },
1490
1874
  placement: { default: "right" },
1491
1875
  spy: { type: Boolean },
1492
1876
  transition: { default: "fade" },
1493
1877
  trigger: { default: "click" },
1494
1878
  width: { default: "auto" },
1495
- class: { default: void 0 }
1879
+ class: {}
1496
1880
  }, {
1497
1881
  modelValue: { type: Boolean },
1498
1882
  modelModifiers: {}
1499
1883
  }),
1500
1884
  emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
1501
1885
  setup(n, { emit: t }) {
1502
- const e = n, l = t, o = K(n, "modelValue"), s = y(() => [
1886
+ const e = n, o = t, l = K(n, "modelValue"), s = $t(), a = g(() => [
1503
1887
  "q-overlay",
1504
- `q-overlay--${$e(u.placement)}`,
1888
+ `q-overlay--${be(b.placement)}`,
1505
1889
  {
1506
- "q-overlay--independent": a.value,
1890
+ "q-overlay--independent": r.value,
1507
1891
  "q-overlay--inverted": e.appearance === "inverted"
1508
1892
  },
1509
1893
  e.class
1510
- ]), a = y(() => e.anchor === void 0), d = y(() => (o.value || u.animating) && !e.nonModal), r = y(() => (o.value || u.animating) && e.scrollLock), u = je({
1894
+ ]), r = g(() => e.anchor === void 0), i = g(() => (l.value || b.animating) && !e.nonModal), c = g(() => (l.value || b.animating) && e.scrollLock), b = Ze({
1511
1895
  animating: !1,
1512
1896
  top: 0,
1513
1897
  left: 0,
1514
1898
  width: 0,
1515
1899
  placement: e.placement
1516
- }), b = je({
1900
+ }), m = Ze({
1517
1901
  top: void 0,
1518
1902
  left: void 0,
1519
1903
  hidden: !0
1520
- }), x = y(() => u.top !== 0 && u.left !== 0);
1521
- Z(o, () => u.animating = !0);
1522
- const R = y(() => {
1523
- if (a.value) return;
1524
- const L = v(), c = e.width === "anchor", k = c ? L == null ? void 0 : L.getBoundingClientRect().width : void 0;
1904
+ }), A = g(() => b.top !== 0 && b.left !== 0);
1905
+ Y(l, () => b.animating = !0);
1906
+ const P = g(() => {
1907
+ if (r.value) return;
1908
+ const v = u(), F = e.width === "anchor", M = F ? v == null ? void 0 : v.getBoundingClientRect().width : void 0;
1525
1909
  return {
1526
- top: `${u.top}px`,
1527
- left: `${u.left}px`,
1528
- width: k !== void 0 ? `${k}px` : void 0
1910
+ top: `${b.top}px`,
1911
+ left: `${b.left}px`,
1912
+ width: M !== void 0 ? `${M}px` : void 0
1529
1913
  };
1530
- }), P = y(() => {
1914
+ }), N = g(() => {
1531
1915
  if (e.arrow)
1532
1916
  return {
1533
- top: b.top !== void 0 ? `${b.top}px` : void 0,
1534
- left: b.left !== void 0 ? `${b.left}px` : void 0,
1535
- opacity: b.hidden ? 0 : 1
1917
+ top: m.top !== void 0 ? `${m.top}px` : void 0,
1918
+ left: m.left !== void 0 ? `${m.left}px` : void 0,
1919
+ opacity: m.hidden ? 0 : 1
1536
1920
  };
1537
- }), z = A(null), _ = A(null);
1538
- function V() {
1539
- const L = v();
1540
- if (!L || !_.value)
1921
+ }), $ = B(null), V = B(null);
1922
+ function D() {
1923
+ const v = u();
1924
+ if (!v || !V.value)
1541
1925
  return;
1542
- const c = {
1926
+ const F = {
1543
1927
  placement: e.placement,
1544
1928
  width: e.width,
1545
1929
  offset: e.offset,
1930
+ crossOffset: e.crossOffset,
1546
1931
  arrow: e.arrow
1547
- }, k = Zn(
1548
- L,
1549
- _.value,
1550
- (z == null ? void 0 : z.value) ?? void 0,
1551
- c
1932
+ }, M = So(
1933
+ v,
1934
+ V.value,
1935
+ ($ == null ? void 0 : $.value) ?? void 0,
1936
+ F
1552
1937
  );
1553
- u.left = k.overlayCoords.x, u.top = k.overlayCoords.y, u.placement = k.placement, b.hidden = k.arrowCoords === void 0, k.arrowCoords && (b.top = k.arrowCoords.y, b.left = k.arrowCoords.x);
1938
+ b.left = M.overlayCoords.x, b.top = M.overlayCoords.y, b.placement = M.placement, m.hidden = M.arrowCoords === void 0, M.arrowCoords && (m.top = M.arrowCoords.y, m.left = M.arrowCoords.x);
1554
1939
  }
1555
- Z(
1940
+ Y(
1556
1941
  () => e.placement,
1557
- () => te(V)
1942
+ () => le(D)
1558
1943
  );
1559
- let M;
1560
- function Q() {
1561
- ee(0);
1562
- }
1563
- function oe() {
1564
- ee(e.delay);
1565
- }
1566
- function ee(L) {
1567
- M || (M = window.setTimeout(() => {
1568
- o.value = !0;
1569
- }, L));
1570
- }
1571
- function N() {
1572
- if (clearTimeout(M), M = void 0, o.value = !1, e.anchor && e.trigger === "click") {
1573
- const L = v();
1574
- L == null || L.focus();
1944
+ let Q;
1945
+ function j() {
1946
+ S(0);
1947
+ }
1948
+ function te() {
1949
+ S(e.delay);
1950
+ }
1951
+ function S(v) {
1952
+ Q && R(), Q = window.setTimeout(() => {
1953
+ l.value = !0;
1954
+ }, v);
1955
+ }
1956
+ function E() {
1957
+ if (Q && R(), l.value = !1, e.anchor && e.trigger === "click") {
1958
+ const v = u();
1959
+ v == null || v.focus();
1575
1960
  }
1576
1961
  }
1577
- Z(x, () => te(se));
1578
- function se() {
1579
- l("enter");
1962
+ function R() {
1963
+ clearTimeout(Q), Q = void 0;
1580
1964
  }
1581
- let X;
1582
- function ce() {
1583
- window.clearTimeout(X), X = window.setTimeout(() => u.animating = !1, 200), l("leave");
1965
+ Y(A, () => le(ae));
1966
+ function ae() {
1967
+ o("enter");
1584
1968
  }
1585
- function v() {
1586
- return e.anchor ? il(e.anchor) : null;
1969
+ let ce;
1970
+ function k() {
1971
+ window.clearTimeout(ce), ce = window.setTimeout(() => b.animating = !1, 200), o("leave");
1587
1972
  }
1588
- let S;
1589
- function h() {
1590
- const L = v();
1591
- if (L)
1592
- switch (S = new MutationObserver(V), S.observe(L, {
1973
+ function u() {
1974
+ return e.anchor ? Mo(e.anchor) : null;
1975
+ }
1976
+ let q;
1977
+ function O() {
1978
+ const v = u();
1979
+ if (v)
1980
+ switch (q = new MutationObserver(D), q.observe(v, {
1593
1981
  attributes: !1,
1594
1982
  childList: !0,
1595
1983
  characterData: !0,
1596
1984
  subtree: !0
1597
1985
  }), e.trigger) {
1598
1986
  case "click":
1599
- L.addEventListener("click", Q);
1987
+ v.addEventListener("click", j);
1600
1988
  break;
1601
1989
  case "hover":
1602
- L.addEventListener("mouseenter", oe), L.addEventListener("mouseleave", N), L.addEventListener("focusin", Q), L.addEventListener("focusout", N);
1990
+ v.addEventListener("mouseenter", te), v.addEventListener("mouseleave", E), v.addEventListener("focusin", j), v.addEventListener("focusout", E);
1603
1991
  break;
1604
1992
  }
1605
1993
  }
1606
- function $() {
1607
- const L = v();
1608
- if (L)
1609
- switch (S == null || S.disconnect(), e.trigger) {
1994
+ function H() {
1995
+ const v = u();
1996
+ if (v)
1997
+ switch (q == null || q.disconnect(), e.trigger) {
1610
1998
  case "click":
1611
- L.removeEventListener("click", Q);
1999
+ v.removeEventListener("click", j);
1612
2000
  break;
1613
2001
  case "hover":
1614
- L.removeEventListener("mouseenter", oe), L.removeEventListener("mouseleave", N), L.removeEventListener("focusin", Q), L.removeEventListener("focusout", N);
2002
+ v.removeEventListener("mouseenter", te), v.removeEventListener("mouseleave", E), v.removeEventListener("focusin", j), v.removeEventListener("focusout", E);
1615
2003
  break;
1616
2004
  }
1617
2005
  }
1618
2006
  function J() {
1619
- window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
2007
+ window.addEventListener("resize", D), e.scrollLock || window.addEventListener("scroll", D);
1620
2008
  }
1621
- function re() {
1622
- window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
2009
+ function ee() {
2010
+ window.removeEventListener("resize", D), e.scrollLock || window.removeEventListener("scroll", D);
1623
2011
  }
1624
- let Y;
1625
- function de() {
1626
- v() ? (V(), Y = window.setTimeout(de, 100)) : N();
2012
+ let oe;
2013
+ function ke() {
2014
+ u() ? (D(), oe = window.setTimeout(ke, 100)) : E();
1627
2015
  }
1628
- function Be() {
1629
- a.value || (J(), e.spy ? de() : V()), (a.value || e.trigger === "click") && te(() => {
1630
- var L;
1631
- return (L = _.value) == null ? void 0 : L.focus();
2016
+ function Ve() {
2017
+ r.value || (J(), e.spy ? ke() : D()), (r.value || e.trigger === "click") && le(() => {
2018
+ var v;
2019
+ return (v = V.value) == null ? void 0 : v.focus();
1632
2020
  });
1633
2021
  }
1634
- function ke() {
1635
- a.value || re(), e.spy && (clearTimeout(Y), Y = void 0), u.top = 0, u.left = 0;
1636
- }
1637
- function we() {
1638
- e.persistent || N();
1639
- }
1640
- return Me(() => {
1641
- te(h);
1642
- }), _t(() => {
1643
- $(), ke();
1644
- }), Z(
1645
- o,
1646
- (L) => {
1647
- te(() => L ? Be() : ke());
2022
+ function ge() {
2023
+ r.value || ee(), e.spy && (clearTimeout(oe), oe = void 0), b.top = 0, b.left = 0;
2024
+ }
2025
+ function f() {
2026
+ e.persistent || E();
2027
+ }
2028
+ return Oe(() => {
2029
+ le(O);
2030
+ }), At(() => {
2031
+ H(), ge();
2032
+ }), Y(
2033
+ l,
2034
+ (v) => {
2035
+ le(() => v ? Ve() : ge());
1648
2036
  },
1649
2037
  { immediate: !0 }
1650
- ), (L, c) => (i(), f(U, null, [
1651
- (i(), B($t, {
1652
- disabled: !o.value && !u.animating || e.inline,
2038
+ ), (v, F) => (d(), h(W, null, [
2039
+ (d(), C(Et, {
2040
+ disabled: !l.value && !b.animating || e.inline,
1653
2041
  to: e.attach
1654
2042
  }, [
1655
- d.value ? (i(), f("div", {
1656
- key: 0,
1657
- class: T([
1658
- e.backdropClass,
1659
- "q-overlay__underlay",
1660
- { "q-overlay__underlay--blur": e.backdropBlur }
1661
- ])
1662
- }, null, 2)) : g("", !0),
1663
- D(kt, {
1664
- name: e.transition,
1665
- appear: "",
1666
- onLeave: ce
2043
+ U(y(kt), {
2044
+ theme: y(s).current.value.name
1667
2045
  }, {
1668
- default: w(() => [
1669
- o.value ? (i(), f("div", {
2046
+ default: _(() => [
2047
+ i.value ? (d(), h("div", {
1670
2048
  key: 0,
1671
- class: T(s.value),
1672
- style: fe(R.value)
1673
- }, [
1674
- q("div", H({
1675
- ref_key: "overlayRef",
1676
- ref: _,
1677
- class: "q-overlay__content",
1678
- tabindex: "-1",
1679
- role: d.value ? "dialog" : void 0
1680
- }, L.$attrs, {
1681
- onKeydown: Ae(we, ["escape"]),
1682
- onBlur: we
1683
- }), [
1684
- e.arrow ? (i(), f("div", {
2049
+ class: T([
2050
+ e.backdropClass,
2051
+ "q-overlay__underlay",
2052
+ { "q-overlay__underlay--blur": e.backdropBlur }
2053
+ ])
2054
+ }, null, 2)) : w("", !0),
2055
+ U(Dt, {
2056
+ name: e.transition,
2057
+ appear: "",
2058
+ onLeave: k
2059
+ }, {
2060
+ default: _(() => [
2061
+ l.value ? (d(), h("div", {
1685
2062
  key: 0,
1686
- ref_key: "arrowRef",
1687
- ref: z,
1688
- role: "presentation",
1689
- class: "q-overlay__arrow",
1690
- style: fe(P.value)
1691
- }, null, 4)) : g("", !0),
1692
- p(L.$slots, "default")
1693
- ], 16, rl)
1694
- ], 6)) : g("", !0)
2063
+ class: T(a.value),
2064
+ style: ue(P.value)
2065
+ }, [
2066
+ x("div", Z({
2067
+ ref_key: "overlayRef",
2068
+ ref: V,
2069
+ class: "q-overlay__content",
2070
+ tabindex: "-1",
2071
+ role: i.value ? "dialog" : void 0
2072
+ }, v.$attrs, {
2073
+ onKeydown: De(f, ["escape"]),
2074
+ onBlur: f
2075
+ }), [
2076
+ e.arrow ? (d(), h("div", {
2077
+ key: 0,
2078
+ ref_key: "arrowRef",
2079
+ ref: $,
2080
+ role: "presentation",
2081
+ class: "q-overlay__arrow",
2082
+ style: ue(N.value)
2083
+ }, null, 4)) : w("", !0),
2084
+ p(v.$slots, "default")
2085
+ ], 16, Oo)
2086
+ ], 6)) : w("", !0)
2087
+ ]),
2088
+ _: 3
2089
+ }, 8, ["name"])
1695
2090
  ]),
1696
2091
  _: 3
1697
- }, 8, ["name"])
2092
+ }, 8, ["theme"])
1698
2093
  ], 8, ["disabled", "to"])),
1699
- r.value ? (i(), B(m(Yn), { key: 0 })) : g("", !0)
2094
+ c.value ? (d(), C(y(qo), { key: 0 })) : w("", !0)
1700
2095
  ], 64));
1701
2096
  }
1702
- }), ve = I(dl), ul = ["id"], cl = {
1703
- key: 0,
1704
- class: "q-field__label"
1705
- }, fl = ["for"], pl = {
1706
- key: 0,
1707
- class: "q-field__prepend"
1708
- }, ml = {
1709
- key: 1,
1710
- class: "q-field__append"
1711
- }, hl = {
1712
- key: 1,
1713
- class: "q-field__extras"
1714
- }, yl = /* @__PURE__ */ C({
1715
- inheritAttrs: !1,
1716
- __name: "QField",
2097
+ }), me = L(Uo), Po = /* @__PURE__ */ I({
2098
+ __name: "QClearButton",
1717
2099
  props: {
1718
- id: { default: void 0 },
1719
- label: { default: "" },
1720
- for: { default: void 0 },
1721
- size: { default: "medium" },
1722
- readonly: { type: Boolean },
1723
- disabled: { type: Boolean },
1724
- required: { type: Boolean },
1725
- class: { default: void 0 }
2100
+ class: {},
2101
+ icons: { default: () => He },
2102
+ texts: { default: () => Ge }
1726
2103
  },
1727
- setup(n, { expose: t }) {
1728
- const e = n, l = ie(e.id), o = A(null), s = y(() => e.required && !e.readonly && !e.disabled);
1729
- return t({
1730
- fieldRef: o
1731
- }), (a, d) => (i(), f("div", {
1732
- id: m(l),
1733
- class: T([
1734
- "q-field",
1735
- `q-field--${e.size}`,
1736
- {
1737
- "q-field--readonly": e.readonly,
1738
- "q-field--disabled": e.disabled,
1739
- "q-field--required": s.value
1740
- },
1741
- e.class
1742
- ])
1743
- }, [
1744
- e.label ? (i(), f("div", cl, [
1745
- p(a.$slots, "label.prepend"),
1746
- q("label", {
1747
- for: e.for
1748
- }, E(e.label), 9, fl),
1749
- p(a.$slots, "label.append")
1750
- ])) : g("", !0),
1751
- p(a.$slots, "control", {}, () => [
1752
- q("div", H({
1753
- ref_key: "fieldRef",
1754
- ref: o,
1755
- class: "q-field__control"
1756
- }, a.$attrs), [
1757
- a.$slots.prepend ? (i(), f("div", pl, [
1758
- p(a.$slots, "prepend")
1759
- ])) : g("", !0),
1760
- p(a.$slots, "default"),
1761
- a.$slots.append ? (i(), f("div", ml, [
1762
- p(a.$slots, "append")
1763
- ])) : g("", !0)
1764
- ], 16)
1765
- ]),
1766
- a.$slots.extras ? (i(), f("div", hl, [
1767
- p(a.$slots, "extras")
1768
- ])) : g("", !0)
1769
- ], 10, ul));
1770
- }
1771
- }), Le = I(yl), vl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], bl = /* @__PURE__ */ C({
1772
- inheritAttrs: !1,
1773
- __name: "QTextField",
1774
- props: /* @__PURE__ */ G({
1775
- id: { default: void 0 },
1776
- placeholder: { default: "" },
1777
- label: { default: "" },
1778
- size: { default: void 0 },
1779
- maxLength: { default: void 0 },
1780
- readonly: { type: Boolean },
1781
- disabled: { type: Boolean },
1782
- required: { type: Boolean },
1783
- role: { default: void 0 },
1784
- type: { default: "text" },
1785
- class: { default: void 0 }
1786
- }, {
1787
- modelValue: {},
1788
- modelModifiers: {}
1789
- }),
1790
- emits: ["update:modelValue"],
1791
- setup(n, { expose: t }) {
1792
- const e = n, l = K(n, "modelValue"), o = ie(e.id), s = A(null), a = A(null), d = y(
1793
- () => e.readonly || e.disabled ? "" : e.placeholder
1794
- );
1795
- return t({
1796
- fieldRef: y(() => {
1797
- var r;
1798
- return (r = s.value) == null ? void 0 : r.fieldRef;
1799
- }),
1800
- inputRef: a
1801
- }), (r, u) => (i(), B(m(Le), {
1802
- ref_key: "fieldRef",
1803
- ref: s,
1804
- class: T(["q-text-field", e.class]),
1805
- for: m(o),
1806
- label: e.label,
1807
- size: e.size,
1808
- readonly: e.readonly,
1809
- disabled: e.disabled,
1810
- required: e.required
1811
- }, ye({
1812
- "label.prepend": w(() => [
1813
- p(r.$slots, "label.prepend")
1814
- ]),
1815
- "label.append": w(() => [
1816
- p(r.$slots, "label.append")
1817
- ]),
1818
- default: w(() => [
1819
- wt(q("input", H({
1820
- id: m(o),
1821
- ref_key: "inputRef",
1822
- ref: a,
1823
- "onUpdate:modelValue": u[0] || (u[0] = (b) => l.value = b),
1824
- class: "q-text-field__input",
1825
- type: e.type,
1826
- role: e.role,
1827
- required: e.required,
1828
- placeholder: d.value,
1829
- readonly: e.readonly,
1830
- disabled: e.disabled,
1831
- maxlength: e.maxLength
1832
- }, r.$attrs), null, 16, vl), [
1833
- [qt, l.value]
1834
- ])
2104
+ emits: ["click"],
2105
+ setup(n, { emit: t }) {
2106
+ const e = n, o = t, l = (s) => o("click", s);
2107
+ return (s, a) => (d(), C(y(re), {
2108
+ class: "q-clear-btn",
2109
+ "aria-label": e.texts.clearValue,
2110
+ "b-style": "plain",
2111
+ borderless: "",
2112
+ tabindex: "-1",
2113
+ onClick: l
2114
+ }, {
2115
+ default: _(() => [
2116
+ U(y(X), se(fe(e.icons.clear)), null, 16)
1835
2117
  ]),
1836
- _: 2
1837
- }, [
1838
- r.$slots.prepend ? {
1839
- name: "prepend",
1840
- fn: w(() => [
1841
- p(r.$slots, "prepend")
1842
- ]),
1843
- key: "0"
1844
- } : void 0,
1845
- r.$slots.append ? {
1846
- name: "append",
1847
- fn: w(() => [
1848
- p(r.$slots, "append")
1849
- ]),
1850
- key: "1"
1851
- } : void 0,
1852
- r.$slots.extras ? {
1853
- name: "extras",
1854
- fn: w(() => [
1855
- p(r.$slots, "extras")
1856
- ]),
1857
- key: "2"
1858
- } : void 0
1859
- ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
2118
+ _: 1
2119
+ }, 8, ["aria-label"]));
1860
2120
  }
1861
- }), ft = I(bl), gl = {
1862
- noData: "No data available",
1863
- clearValue: "Clear value",
1864
- showOptions: "Show options"
1865
- }, _l = {
1866
- chevron: {
1867
- icon: "chevron-down"
1868
- },
1869
- clear: {
1870
- icon: "close"
1871
- }
1872
- }, $l = ["data-key"], kl = {
2121
+ }), wt = L(Po), No = ["data-key"], Ro = {
1873
2122
  key: 0,
1874
2123
  class: "q-select__loader"
1875
- }, wl = {
2124
+ }, Go = {
1876
2125
  key: 2,
1877
2126
  class: "q-select__loader"
1878
- }, ql = /* @__PURE__ */ C({
2127
+ }, Ho = /* @__PURE__ */ I({
1879
2128
  inheritAttrs: !1,
1880
2129
  __name: "QCombobox",
1881
2130
  props: /* @__PURE__ */ G({
1882
- id: { default: void 0 },
1883
- placeholder: { default: "" },
2131
+ id: {},
2132
+ placeholder: {},
1884
2133
  selectionMode: { default: "automatic" },
1885
2134
  filterMode: { default: "builtin" },
1886
- label: { default: "" },
2135
+ label: {},
1887
2136
  clearable: { type: Boolean },
1888
2137
  readonly: { type: Boolean },
1889
2138
  disabled: { type: Boolean },
@@ -1893,11 +2142,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
1893
2142
  groups: { default: () => [] },
1894
2143
  itemValue: { default: "key" },
1895
2144
  itemLabel: { default: "label" },
1896
- emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1897
- size: { default: void 0 },
1898
- class: { default: void 0 },
1899
- icons: { default: () => _l },
1900
- texts: { default: () => gl }
2145
+ emptyValue: { type: [String, Number, Boolean, Symbol] },
2146
+ size: {},
2147
+ class: {},
2148
+ icons: { default: () => to },
2149
+ texts: { default: () => eo }
1901
2150
  }, {
1902
2151
  modelValue: {
1903
2152
  type: [String, Number, Boolean, Symbol]
@@ -1910,288 +2159,282 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
1910
2159
  }),
1911
2160
  emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1912
2161
  setup(n, { expose: t, emit: e }) {
1913
- const l = n, o = e, s = K(n, "modelValue"), a = K(n, "open"), d = K(n, "search"), r = A(void 0), u = A(null), b = A(null), x = A(null), R = A(null);
1914
- Me(N);
1915
- const P = y(() => l.clearable && !l.readonly && !l.disabled), z = y(() => {
1916
- var c;
1917
- return l.filterMode === "manual" || !oe.value ? l.items : (c = l.items) == null ? void 0 : c.filter(
1918
- (k) => k[l.itemLabel].toLowerCase().startsWith(d.value.toLowerCase())
2162
+ const o = n, l = e, s = K(n, "modelValue"), a = K(n, "open"), r = K(n, "search"), i = B(void 0), c = B(null), b = B(null), m = B(null), A = B(null);
2163
+ Oe(S);
2164
+ const P = g(() => o.clearable && !o.readonly && !o.disabled), N = g(() => {
2165
+ var f;
2166
+ return o.filterMode === "manual" || !j.value ? o.items : (f = o.items) == null ? void 0 : f.filter(
2167
+ (v) => v[o.itemLabel].toLowerCase().startsWith(r.value.toLowerCase())
1919
2168
  );
1920
- }), _ = y(() => {
1921
- var c;
1922
- return (c = l.items) == null ? void 0 : c.find((k) => k[l.itemValue] === s.value);
1923
- }), V = y(() => _.value === void 0), M = y(() => {
1924
- const c = r.value;
1925
- if (c !== void 0 && z.value[c])
1926
- return z.value[c];
1927
- }), Q = y(() => {
1928
- var k;
1929
- if (r.value === void 0)
2169
+ }), $ = g(() => {
2170
+ var f;
2171
+ return (f = o.items) == null ? void 0 : f.find((v) => v[o.itemValue] === s.value);
2172
+ }), V = g(() => $.value === void 0), D = g(() => {
2173
+ const f = i.value;
2174
+ if (f !== void 0 && N.value[f])
2175
+ return N.value[f];
2176
+ }), Q = g(() => {
2177
+ var v;
2178
+ if (i.value === void 0)
1930
2179
  return;
1931
- const c = (k = b.value) == null ? void 0 : k.getItem(r.value);
1932
- return c == null ? void 0 : c.id;
1933
- }), oe = y(() => {
1934
- var c;
1935
- return d.value.length > 0 && d.value !== ((c = _.value) == null ? void 0 : c[l.itemLabel]);
2180
+ const f = (v = b.value) == null ? void 0 : v.getItem(i.value);
2181
+ return f == null ? void 0 : f.id;
2182
+ }), j = g(() => {
2183
+ var f;
2184
+ return r.value.length > 0 && r.value !== ((f = $.value) == null ? void 0 : f[o.itemLabel]);
1936
2185
  });
1937
- function ee(c) {
1938
- s.value = c, X();
2186
+ function te(f) {
2187
+ s.value = f, R();
1939
2188
  }
1940
- function N() {
1941
- var k;
1942
- const c = ((k = _.value) == null ? void 0 : k[l.itemLabel]) || "";
1943
- d.value !== c && (d.value = c);
2189
+ function S() {
2190
+ var v;
2191
+ const f = ((v = $.value) == null ? void 0 : v[o.itemLabel]) || "";
2192
+ r.value !== f && (r.value = f);
1944
2193
  }
1945
- function se() {
1946
- a.value || l.readonly || l.disabled || (o("before-show"), a.value = !0, de());
2194
+ function E() {
2195
+ a.value || o.readonly || o.disabled || (l("before-show"), a.value = !0, ee());
1947
2196
  }
1948
- function X() {
1949
- a.value && (o("before-hide"), a.value = !1, r.value = void 0);
2197
+ function R() {
2198
+ a.value && (l("before-hide"), a.value = !1, i.value = void 0);
1950
2199
  }
1951
- function ce() {
1952
- a.value ? X() : S();
2200
+ function ae() {
2201
+ a.value ? R() : k();
1953
2202
  }
1954
- function v() {
1955
- P.value && (s.value = l.emptyValue, r.value = void 0, de());
2203
+ function ce() {
2204
+ P.value && (s.value = o.emptyValue, i.value = void 0, ee());
1956
2205
  }
1957
- function S() {
1958
- if (se(), _.value !== void 0) {
1959
- const c = z.value.indexOf(_.value);
1960
- c !== -1 && te(() => L(c));
2206
+ function k() {
2207
+ if (E(), $.value !== void 0) {
2208
+ const f = N.value.indexOf($.value);
2209
+ f !== -1 && le(() => ge(f));
1961
2210
  }
1962
2211
  }
1963
- function h(c) {
1964
- var k, F;
1965
- if (!(!c.key || l.readonly || l.disabled))
1966
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
1967
- N(), a.value && X();
1968
- else if (["ArrowDown", "ArrowUp"].includes(c.key))
1969
- a.value ? te(() => {
1970
- if (r.value === void 0)
1971
- $();
2212
+ function u(f) {
2213
+ var v, F;
2214
+ if (!(!f.key || o.readonly || o.disabled))
2215
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), f.key === "Escape")
2216
+ S(), a.value && R();
2217
+ else if (["ArrowDown", "ArrowUp"].includes(f.key))
2218
+ a.value ? le(() => {
2219
+ if (i.value === void 0)
2220
+ q();
1972
2221
  else {
1973
- const j = c.key === "ArrowDown" ? "next" : "prev";
1974
- re(r.value, j);
2222
+ const M = f.key === "ArrowDown" ? "next" : "prev";
2223
+ H(i.value, M);
1975
2224
  }
1976
- }) : (se(), te(() => {
1977
- c.key === "ArrowDown" ? $() : J();
2225
+ }) : (E(), le(() => {
2226
+ f.key === "ArrowDown" ? q() : O();
1978
2227
  }));
1979
- else if (c.key === "Enter") {
1980
- if (M.value === void 0) return;
1981
- ee(M.value[l.itemValue]);
1982
- } else c.key === "Home" ? r.value = (k = b.value) == null ? void 0 : k.getFirstFocusableItemIndex() : c.key === "End" ? r.value = (F = b.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && se();
2228
+ else if (f.key === "Enter") {
2229
+ if (D.value === void 0) return;
2230
+ te(D.value[o.itemValue]);
2231
+ } else f.key === "Home" ? i.value = (v = b.value) == null ? void 0 : v.getFirstFocusableItemIndex() : f.key === "End" ? i.value = (F = b.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(f.key) || f.key === "Backspace") && E();
1983
2232
  }
1984
- function $() {
1985
- var c, k;
2233
+ function q() {
2234
+ var f, v;
1986
2235
  if (V.value)
1987
- r.value = (k = b.value) == null ? void 0 : k.getFirstFocusableItemIndex();
2236
+ i.value = (v = b.value) == null ? void 0 : v.getFirstFocusableItemIndex();
1988
2237
  else {
1989
- const F = z.value.findIndex(
1990
- (j) => j[l.itemValue] === s.value
2238
+ const F = N.value.findIndex(
2239
+ (M) => M[o.itemValue] === s.value
1991
2240
  );
1992
- F === -1 ? r.value = (c = b.value) == null ? void 0 : c.getFirstFocusableItemIndex() : r.value = F;
2241
+ F === -1 ? i.value = (f = b.value) == null ? void 0 : f.getFirstFocusableItemIndex() : i.value = F;
1993
2242
  }
1994
2243
  }
1995
- function J() {
1996
- var c;
1997
- r.value = (c = b.value) == null ? void 0 : c.getLastFocusableItemIndex();
2244
+ function O() {
2245
+ var f;
2246
+ i.value = (f = b.value) == null ? void 0 : f.getLastFocusableItemIndex();
1998
2247
  }
1999
- function re(c, k) {
2248
+ function H(f, v) {
2000
2249
  var F;
2001
- r.value = (F = b.value) == null ? void 0 : F.getAdjacentItemIndex(c, k);
2250
+ i.value = (F = b.value) == null ? void 0 : F.getAdjacentItemIndex(f, v);
2002
2251
  }
2003
- function Y(c) {
2004
- var pe, Ne, Re, Ge;
2005
- const k = ((pe = x == null ? void 0 : x.value) == null ? void 0 : pe.$el) === c.relatedTarget, F = (Re = (Ne = u == null ? void 0 : u.value) == null ? void 0 : Ne.$el) == null ? void 0 : Re.contains(c.relatedTarget), j = (Ge = R == null ? void 0 : R.value) == null ? void 0 : Ge.contains(c.relatedTarget);
2006
- if (k || j || F) {
2007
- c.preventDefault(), c.stopPropagation();
2252
+ function J(f) {
2253
+ var he, We, je, Xe;
2254
+ const v = ((he = m == null ? void 0 : m.value) == null ? void 0 : he.$el) === f.relatedTarget, F = (je = (We = c == null ? void 0 : c.value) == null ? void 0 : We.$el) == null ? void 0 : je.contains(f.relatedTarget), M = (Xe = A == null ? void 0 : A.value) == null ? void 0 : Xe.contains(f.relatedTarget);
2255
+ if (v || M || F) {
2256
+ f.preventDefault(), f.stopPropagation();
2008
2257
  return;
2009
2258
  }
2010
- X(), P.value && !d.value && (s.value = l.emptyValue), N();
2259
+ R(), P.value && !r.value && (s.value = o.emptyValue), S();
2011
2260
  }
2012
- function de() {
2013
- var c, k;
2014
- (k = (c = u.value) == null ? void 0 : c.inputRef) == null || k.focus();
2261
+ function ee() {
2262
+ var f, v;
2263
+ (v = (f = c.value) == null ? void 0 : f.inputRef) == null || v.focus();
2015
2264
  }
2016
- function Be() {
2017
- de();
2265
+ function oe() {
2266
+ ee();
2018
2267
  }
2019
2268
  function ke() {
2020
- o("show");
2269
+ l("show");
2021
2270
  }
2022
- function we() {
2023
- o("hide");
2271
+ function Ve() {
2272
+ l("hide");
2024
2273
  }
2025
- function L(c) {
2274
+ function ge(f) {
2026
2275
  var F;
2027
- const k = (F = b.value) == null ? void 0 : F.getItem(c);
2028
- b.value && (b.value.$el.scrollTop = k == null ? void 0 : k.offsetTop);
2276
+ const v = (F = b.value) == null ? void 0 : F.getItem(f);
2277
+ b.value && (b.value.$el.scrollTop = v == null ? void 0 : v.offsetTop);
2029
2278
  }
2030
- return Z(s, N), Z(
2031
- () => l.items,
2032
- (c, k) => {
2279
+ return Y(s, S), Y(
2280
+ () => o.items,
2281
+ (f, v) => {
2033
2282
  if (!V.value) {
2034
- const F = k.find((j) => j[l.itemValue] === s.value);
2035
- d.value === (F == null ? void 0 : F[l.itemLabel]) && N();
2283
+ const F = v.find((M) => M[o.itemValue] === s.value);
2284
+ r.value === (F == null ? void 0 : F[o.itemLabel]) && S();
2036
2285
  }
2037
2286
  },
2038
2287
  { deep: !0 }
2039
- ), Z(r, (c) => {
2040
- c !== void 0 && L(c);
2041
- }), Z(d, (c) => {
2042
- c && a.value && l.selectionMode === "automatic" && te($);
2043
- }), Z(
2044
- () => l.loading,
2045
- (c) => {
2046
- !c && a.value && te($);
2288
+ ), Y(i, (f) => {
2289
+ f !== void 0 && ge(f);
2290
+ }), Y(r, (f) => {
2291
+ f && a.value && o.selectionMode === "automatic" && le(q);
2292
+ }), Y(
2293
+ () => o.loading,
2294
+ (f) => {
2295
+ !f && a.value && le(q);
2047
2296
  }
2048
2297
  ), t({
2049
- triggerEl: u
2050
- }), (c, k) => {
2298
+ triggerEl: c
2299
+ }), (f, v) => {
2051
2300
  var F;
2052
- return i(), f(U, null, [
2053
- D(m(ft), H({
2054
- id: l.id,
2301
+ return d(), h(W, null, [
2302
+ U(y(Re), Z({
2303
+ id: o.id,
2055
2304
  ref_key: "triggerEl",
2056
- ref: u,
2057
- modelValue: d.value,
2058
- "onUpdate:modelValue": k[0] || (k[0] = (j) => d.value = j),
2059
- label: l.label,
2060
- required: l.required,
2305
+ ref: c,
2306
+ modelValue: r.value,
2307
+ "onUpdate:modelValue": v[0] || (v[0] = (M) => r.value = M),
2308
+ label: o.label,
2309
+ required: o.required,
2061
2310
  role: "combobox",
2062
- placeholder: l.placeholder,
2311
+ placeholder: o.placeholder,
2063
2312
  class: [
2064
2313
  "q-combobox",
2065
2314
  {
2066
- "q-combobox--readonly": l.readonly,
2067
- "q-combobox--disabled": l.disabled,
2068
- "q-combobox--expanded": a.value
2315
+ "q-combobox--readonly": o.readonly,
2316
+ "q-combobox--disabled": o.disabled
2069
2317
  },
2070
- l.class
2318
+ o.class
2071
2319
  ],
2072
- readonly: l.readonly,
2073
- disabled: l.disabled,
2074
- "data-loading": l.loading,
2320
+ readonly: o.readonly,
2321
+ disabled: o.disabled,
2322
+ "data-loading": o.loading,
2075
2323
  autocomplete: "off",
2076
2324
  "aria-expanded": a.value,
2077
2325
  "aria-haspopup": "listbox",
2078
2326
  "aria-autocomplete": "list",
2079
2327
  "aria-activedescendant": Q.value,
2080
- size: l.size
2081
- }, c.$attrs, {
2082
- onClick: S,
2083
- onFocusout: Y,
2084
- onKeydown: ue(h, ["stop"])
2085
- }), ye({
2086
- "label.prepend": w(() => [
2087
- p(c.$slots, "label.prepend")
2328
+ size: o.size
2329
+ }, f.$attrs, {
2330
+ onClick: k,
2331
+ onFocusout: J,
2332
+ onKeydown: ne(u, ["stop"])
2333
+ }), pe({
2334
+ "label.prepend": _(() => [
2335
+ p(f.$slots, "label.prepend")
2088
2336
  ]),
2089
- "label.append": w(() => [
2090
- p(c.$slots, "label.append")
2337
+ "label.append": _(() => [
2338
+ p(f.$slots, "label.append")
2091
2339
  ]),
2092
- append: w(() => [
2093
- p(c.$slots, "append"),
2094
- P.value && d.value ? (i(), B(m(le), {
2340
+ append: _(() => [
2341
+ p(f.$slots, "append"),
2342
+ P.value && r.value ? (d(), C(y(wt), {
2095
2343
  key: 0,
2096
- class: "q-combobox__clear",
2097
- "aria-label": l.texts.clearValue,
2098
- "b-style": "plain",
2099
- borderless: "",
2100
- tabindex: "-1",
2101
- onClick: v
2102
- }, {
2103
- default: w(() => [
2104
- D(m(O), W(ne(l.icons.clear)), null, 16)
2105
- ]),
2106
- _: 1
2107
- }, 8, ["aria-label"])) : g("", !0),
2108
- l.readonly ? g("", !0) : (i(), B(m(le), {
2344
+ icons: o.icons,
2345
+ texts: o.texts,
2346
+ onClick: ce
2347
+ }, null, 8, ["icons", "texts"])) : w("", !0),
2348
+ o.readonly ? w("", !0) : (d(), C(y(re), {
2109
2349
  key: 1,
2110
2350
  ref_key: "toggleRef",
2111
- ref: x,
2351
+ ref: m,
2112
2352
  class: "q-combobox__chevron",
2113
- "aria-label": l.texts.showOptions,
2353
+ "aria-label": o.texts.showOptions,
2114
2354
  "b-style": "plain",
2115
2355
  borderless: "",
2116
2356
  tabindex: "-1",
2117
- disabled: l.disabled,
2118
- onMousedown: ue(ce, ["stop", "prevent"])
2357
+ disabled: o.disabled,
2358
+ onMousedown: ne(ae, ["stop", "prevent"])
2119
2359
  }, {
2120
- default: w(() => [
2121
- D(m(O), W(ne(l.icons.chevron)), null, 16)
2360
+ default: _(() => [
2361
+ U(y(xe), {
2362
+ "model-value": a.value,
2363
+ icons: o.icons
2364
+ }, null, 8, ["model-value", "icons"])
2122
2365
  ]),
2123
2366
  _: 1
2124
2367
  }, 8, ["aria-label", "disabled"]))
2125
2368
  ]),
2126
2369
  _: 2
2127
2370
  }, [
2128
- c.$slots.prepend ? {
2371
+ f.$slots.prepend ? {
2129
2372
  name: "prepend",
2130
- fn: w(() => [
2131
- p(c.$slots, "prepend")
2373
+ fn: _(() => [
2374
+ p(f.$slots, "prepend")
2132
2375
  ]),
2133
2376
  key: "0"
2134
2377
  } : void 0,
2135
- c.$slots.extras ? {
2378
+ f.$slots.extras ? {
2136
2379
  name: "extras",
2137
- fn: w(() => [
2138
- p(c.$slots, "extras")
2380
+ fn: _(() => [
2381
+ p(f.$slots, "extras")
2139
2382
  ]),
2140
2383
  key: "1"
2141
2384
  } : void 0
2142
2385
  ]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
2143
- D(m(ve), {
2386
+ U(y(me), {
2144
2387
  modelValue: a.value,
2145
- "onUpdate:modelValue": k[2] || (k[2] = (j) => a.value = j),
2388
+ "onUpdate:modelValue": v[2] || (v[2] = (M) => a.value = M),
2146
2389
  spy: "",
2147
2390
  "non-modal": "",
2148
2391
  trigger: "manual",
2149
2392
  placement: "bottom-start",
2150
2393
  width: "anchor",
2151
2394
  offset: 4,
2152
- anchor: (F = u.value) == null ? void 0 : F.$el,
2395
+ anchor: (F = c.value) == null ? void 0 : F.$el,
2153
2396
  onEnter: ke,
2154
- onLeave: we
2397
+ onLeave: Ve
2155
2398
  }, {
2156
- default: w(() => {
2157
- var j;
2399
+ default: _(() => {
2400
+ var M;
2158
2401
  return [
2159
- q("div", {
2402
+ x("div", {
2160
2403
  ref_key: "contentRef",
2161
- ref: R,
2404
+ ref: A,
2162
2405
  class: "q-select__body",
2163
2406
  "data-testid": "combobox-dropdown",
2164
- "data-key": l.id,
2165
- onFocusout: Y
2407
+ "data-key": o.id,
2408
+ onFocusout: J
2166
2409
  }, [
2167
- p(c.$slots, "body.prepend"),
2168
- l.loading ? (i(), f("div", kl, [
2169
- D(m(_e), { size: 24 })
2170
- ])) : z.value.length ? (i(), B(m(Ue), {
2410
+ p(f.$slots, "body.prepend"),
2411
+ o.loading ? (d(), h("div", Ro, [
2412
+ U(y($e), { size: 24 })
2413
+ ])) : N.value.length ? (d(), C(y(Be), {
2171
2414
  key: 1,
2172
2415
  ref_key: "listRef",
2173
2416
  ref: b,
2174
2417
  modelValue: s.value,
2175
2418
  "onUpdate:modelValue": [
2176
- k[1] || (k[1] = (pe) => s.value = pe),
2177
- ee
2419
+ v[1] || (v[1] = (he) => s.value = he),
2420
+ te
2178
2421
  ],
2179
2422
  class: "q-select__items",
2180
2423
  selectable: "",
2181
- highlighted: (j = M.value) == null ? void 0 : j[l.itemValue],
2182
- items: z.value,
2183
- groups: c.groups,
2184
- "item-label": l.itemLabel,
2185
- "item-value": l.itemValue,
2186
- onMouseup: Be
2424
+ highlighted: (M = D.value) == null ? void 0 : M[o.itemValue],
2425
+ items: N.value,
2426
+ groups: f.groups,
2427
+ "item-label": o.itemLabel,
2428
+ "item-value": o.itemValue,
2429
+ onMouseup: oe
2187
2430
  }, {
2188
- item: w(({ item: pe }) => [
2189
- p(c.$slots, "item", { item: pe })
2431
+ item: _(({ item: he }) => [
2432
+ p(f.$slots, "item", { item: he })
2190
2433
  ]),
2191
2434
  _: 3
2192
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (i(), f("div", wl, E(l.texts.noData), 1)),
2193
- p(c.$slots, "body.append")
2194
- ], 40, $l)
2435
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), h("div", Go, z(o.texts.noData), 1)),
2436
+ p(f.$slots, "body.append")
2437
+ ], 40, No)
2195
2438
  ];
2196
2439
  }),
2197
2440
  _: 3
@@ -2199,7 +2442,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2199
2442
  ], 64);
2200
2443
  };
2201
2444
  }
2202
- }), xl = I(ql), Sl = [
2445
+ }), Ko = L(Ho), Wo = [
2203
2446
  {
2204
2447
  id: "button",
2205
2448
  icon: {
@@ -2210,46 +2453,46 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2210
2453
  label: "Ok"
2211
2454
  }
2212
2455
  }
2213
- ], Ll = {
2456
+ ], jo = {
2214
2457
  icon: "check-circle-outline"
2215
- }, Bl = {
2458
+ }, Xo = {
2216
2459
  close: {
2217
2460
  icon: "close"
2218
2461
  }
2219
- }, Cl = { class: "q-dialog__header" }, Il = { class: "q-dialog__header-title" }, Tl = { class: "q-dialog__body" }, Vl = {
2462
+ }, Yo = { class: "q-dialog__header" }, Zo = { class: "q-dialog__header-title" }, Jo = { class: "q-dialog__body" }, el = {
2220
2463
  key: 0,
2221
2464
  class: "q-dialog__body-icon"
2222
- }, Al = { class: "q-dialog__body-text" }, El = ["innerHTML"], Ql = { key: 1 }, Dl = { class: "q-dialog__body-actions" }, zl = /* @__PURE__ */ C({
2465
+ }, tl = { class: "q-dialog__body-text" }, nl = ["innerHTML"], ol = { key: 1 }, ll = { class: "q-dialog__body-actions" }, sl = /* @__PURE__ */ I({
2223
2466
  __name: "QDialog",
2224
2467
  props: /* @__PURE__ */ G({
2225
- text: { default: "" },
2468
+ text: {},
2226
2469
  attach: { default: "body" },
2227
2470
  inline: { type: Boolean },
2228
2471
  backdropBlur: { type: Boolean, default: !0 },
2229
- buttons: { default: () => Sl },
2472
+ buttons: { default: () => Wo },
2230
2473
  dismissible: { type: Boolean },
2231
2474
  html: { type: Boolean, default: !0 },
2232
- icon: { default: () => Ll },
2233
- id: { default: void 0 },
2234
- title: { default: "" },
2235
- class: { default: void 0 },
2236
- icons: { default: () => Bl }
2475
+ icon: { default: () => jo },
2476
+ id: {},
2477
+ title: {},
2478
+ class: {},
2479
+ icons: { default: () => Xo }
2237
2480
  }, {
2238
2481
  modelValue: { type: Boolean },
2239
2482
  modelModifiers: {}
2240
2483
  }),
2241
2484
  emits: ["update:modelValue"],
2242
2485
  setup(n) {
2243
- const t = n, e = K(n, "modelValue"), l = ie(t.id), o = y(() => ["q-dialog", t.class]);
2486
+ const t = n, e = K(n, "modelValue"), o = de(t.id), l = g(() => ["q-dialog", t.class]);
2244
2487
  function s() {
2245
2488
  e.value = !1;
2246
2489
  }
2247
- function a(d) {
2248
- var r;
2249
- (r = d.action) == null || r.call(d), s();
2490
+ function a(r) {
2491
+ var i;
2492
+ (i = r.action) == null || i.call(r), s();
2250
2493
  }
2251
- return (d, r) => (i(), B(m(ve), {
2252
- id: m(l),
2494
+ return (r, i) => (d(), C(y(me), {
2495
+ id: y(o),
2253
2496
  "model-value": e.value,
2254
2497
  inline: t.inline,
2255
2498
  attach: t.attach,
@@ -2258,49 +2501,49 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2258
2501
  "scroll-lock": "",
2259
2502
  persistent: ""
2260
2503
  }, {
2261
- default: w(() => [
2262
- q("div", {
2263
- class: T(o.value)
2504
+ default: _(() => [
2505
+ x("div", {
2506
+ class: T(l.value)
2264
2507
  }, [
2265
- q("div", Cl, [
2266
- q("span", Il, E(t.title), 1),
2267
- t.dismissible ? (i(), B(m(le), {
2508
+ x("div", Yo, [
2509
+ x("span", Zo, z(t.title), 1),
2510
+ t.dismissible ? (d(), C(y(re), {
2268
2511
  key: 0,
2269
2512
  "b-style": "tertiary",
2270
2513
  onClick: s
2271
2514
  }, {
2272
- default: w(() => [
2273
- D(m(O), W(ne(t.icons.close)), null, 16)
2515
+ default: _(() => [
2516
+ U(y(X), se(fe(t.icons.close)), null, 16)
2274
2517
  ]),
2275
2518
  _: 1
2276
- })) : g("", !0)
2519
+ })) : w("", !0)
2277
2520
  ]),
2278
- p(d.$slots, "body.content", {}, () => [
2279
- q("div", Tl, [
2280
- p(d.$slots, "body.icon", {}, () => [
2281
- t.icon ? (i(), f("span", Vl, [
2282
- D(m(O), W(ne(t.icon)), null, 16)
2283
- ])) : g("", !0)
2521
+ p(r.$slots, "body.content", {}, () => [
2522
+ x("div", Jo, [
2523
+ p(r.$slots, "body.icon", {}, () => [
2524
+ t.icon ? (d(), h("span", el, [
2525
+ U(y(X), se(fe(t.icon)), null, 16)
2526
+ ])) : w("", !0)
2284
2527
  ]),
2285
- q("div", Al, [
2286
- t.html ? (i(), f("span", {
2528
+ x("div", tl, [
2529
+ t.html ? (d(), h("span", {
2287
2530
  key: 0,
2288
2531
  innerHTML: t.text
2289
- }, null, 8, El)) : (i(), f("span", Ql, E(t.text), 1))
2532
+ }, null, 8, nl)) : (d(), h("span", ol, z(t.text), 1))
2290
2533
  ]),
2291
- p(d.$slots, "body.append")
2534
+ p(r.$slots, "body.append")
2292
2535
  ])
2293
2536
  ]),
2294
- q("div", Dl, [
2295
- (i(!0), f(U, null, he(t.buttons, (u) => (i(), B(m(le), H({ ref_for: !0 }, u.props, {
2296
- key: u.id,
2297
- onClick: () => a(u)
2537
+ x("div", ll, [
2538
+ (d(!0), h(W, null, ye(t.buttons, (c) => (d(), C(y(re), Z({ ref_for: !0 }, c.props, {
2539
+ key: c.id,
2540
+ onClick: () => a(c)
2298
2541
  }), {
2299
- default: w(() => [
2300
- u.icon ? (i(), B(m(O), H({
2542
+ default: _(() => [
2543
+ c.icon ? (d(), C(y(X), Z({
2301
2544
  key: 0,
2302
2545
  ref_for: !0
2303
- }, u.icon), null, 16)) : g("", !0)
2546
+ }, c.icon), null, 16)) : w("", !0)
2304
2547
  ]),
2305
2548
  _: 2
2306
2549
  }, 1040, ["onClick"]))), 128))
@@ -2310,80 +2553,247 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2310
2553
  _: 3
2311
2554
  }, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
2312
2555
  }
2313
- }), Ml = I(zl), Fl = {
2556
+ }), al = L(sl), il = {
2557
+ expand: {
2558
+ icon: "chevron-right"
2559
+ }
2560
+ }, rl = {
2561
+ key: 0,
2562
+ class: "q-dropdown-menu__extra"
2563
+ }, dl = /* @__PURE__ */ I({
2564
+ __name: "QDropdownMenuContent",
2565
+ props: /* @__PURE__ */ G({
2566
+ activator: {},
2567
+ appearance: { default: "regular" },
2568
+ inline: { type: Boolean },
2569
+ delay: { default: 500 },
2570
+ placement: { default: "right-start" },
2571
+ transition: { default: "fade" },
2572
+ class: {},
2573
+ items: {},
2574
+ groups: { default: () => [] },
2575
+ itemValue: { default: "key" },
2576
+ itemLabel: { default: "label" },
2577
+ icons: { default: () => il },
2578
+ trigger: { default: "click" },
2579
+ offset: { default: 0 },
2580
+ crossOffset: { default: -5 },
2581
+ depth: { default: 0 }
2582
+ }, {
2583
+ modelValue: { type: Boolean },
2584
+ modelModifiers: {}
2585
+ }),
2586
+ emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
2587
+ setup(n, { emit: t }) {
2588
+ const e = n, o = t, l = K(n, "modelValue"), s = B(void 0), a = B([]), r = B(""), i = g(() => e.depth !== 0 ? e.offset : 4), c = g(() => e.depth !== 0 ? e.crossOffset : void 0);
2589
+ let b;
2590
+ const m = B(null), A = B(null);
2591
+ function P(S) {
2592
+ s.value = S;
2593
+ const E = e.items.find((R) => R[e.itemValue] === S);
2594
+ E && (a.value = (E == null ? void 0 : E.items) ?? []), a.value.length || (o("select", S), s.value = void 0, $());
2595
+ }
2596
+ function N() {
2597
+ l.value || (l.value = !0);
2598
+ }
2599
+ function $() {
2600
+ l.value && (l.value = !1);
2601
+ }
2602
+ function V() {
2603
+ l.value ? $() : N();
2604
+ }
2605
+ function D(S) {
2606
+ if (S.key) {
2607
+ if (window.clearTimeout(b), ["Escape", "Tab", "Delete"].includes(S.key)) {
2608
+ $();
2609
+ return;
2610
+ }
2611
+ if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(S.key) && (S.preventDefault(), S.stopPropagation()), /^[a-z]$/i.test(S.key)) {
2612
+ r.value += S.key.toLowerCase();
2613
+ for (let E = 0; E < e.items.length; E++) {
2614
+ const R = e.items[E];
2615
+ if (R[e.itemLabel] && R[e.itemLabel].toLowerCase().startsWith(r.value)) {
2616
+ te(E);
2617
+ break;
2618
+ }
2619
+ }
2620
+ }
2621
+ b = window.setTimeout(function() {
2622
+ r.value = "";
2623
+ }, 500);
2624
+ }
2625
+ }
2626
+ function Q(S) {
2627
+ var E;
2628
+ (E = A.value) != null && E.contains(S.relatedTarget) || $();
2629
+ }
2630
+ function j() {
2631
+ var S;
2632
+ (S = m.value) == null || S.$el.focus();
2633
+ }
2634
+ function te(S) {
2635
+ var E;
2636
+ (E = m.value) == null || E.focusItem(S);
2637
+ }
2638
+ return (S, E) => (d(), C(y(me), {
2639
+ "model-value": l.value,
2640
+ anchor: e.activator,
2641
+ appearance: e.appearance,
2642
+ inline: e.inline,
2643
+ delay: e.delay,
2644
+ offset: i.value,
2645
+ "cross-offset": c.value,
2646
+ placement: e.placement,
2647
+ transition: e.transition,
2648
+ class: T(e.class),
2649
+ trigger: e.trigger,
2650
+ "non-modal": "",
2651
+ "scroll-lock": "",
2652
+ persistent: "",
2653
+ "onUpdate:modelValue": V,
2654
+ onEnter: j
2655
+ }, {
2656
+ default: _(() => [
2657
+ x("div", {
2658
+ ref_key: "contentRef",
2659
+ ref: A,
2660
+ "data-testid": "dropdown-content",
2661
+ tabindex: "-1",
2662
+ onFocusout: Q,
2663
+ onKeydown: ne(D, ["stop"])
2664
+ }, [
2665
+ U(y(Be), {
2666
+ ref_key: "listRef",
2667
+ ref: m,
2668
+ class: "q-dropdown-menu__items",
2669
+ highlighted: s.value,
2670
+ items: e.items,
2671
+ groups: e.groups,
2672
+ "item-label": e.itemLabel,
2673
+ "item-value": e.itemValue,
2674
+ "onUpdate:modelValue": P
2675
+ }, {
2676
+ item: _(({ item: R }) => [
2677
+ p(S.$slots, "item", { item: R })
2678
+ ]),
2679
+ "item.append": _(({ item: R }) => [
2680
+ p(S.$slots, "item.append", { item: R }, () => [
2681
+ R.extraInfo ? (d(), h("span", rl, z(R.extraInfo), 1)) : w("", !0)
2682
+ ])
2683
+ ]),
2684
+ _: 3
2685
+ }, 8, ["highlighted", "items", "groups", "item-label", "item-value"])
2686
+ ], 544)
2687
+ ]),
2688
+ _: 3
2689
+ }, 8, ["model-value", "anchor", "appearance", "inline", "delay", "offset", "cross-offset", "placement", "transition", "class", "trigger"]));
2690
+ }
2691
+ }), cl = /* @__PURE__ */ I({
2692
+ inheritAttrs: !1,
2693
+ __name: "QDropdownMenu",
2694
+ props: /* @__PURE__ */ G({
2695
+ activator: {},
2696
+ appearance: {},
2697
+ inline: { type: Boolean },
2698
+ delay: {},
2699
+ placement: {},
2700
+ transition: {},
2701
+ class: {},
2702
+ items: {},
2703
+ groups: {},
2704
+ itemValue: {},
2705
+ itemLabel: {},
2706
+ icons: {}
2707
+ }, {
2708
+ modelValue: { type: Boolean },
2709
+ modelModifiers: {}
2710
+ }),
2711
+ emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
2712
+ setup(n, { emit: t }) {
2713
+ const e = n, o = t, l = K(n, "modelValue");
2714
+ function s(a) {
2715
+ o("select", a);
2716
+ }
2717
+ return (a, r) => (d(), C(dl, Z(e, {
2718
+ modelValue: l.value,
2719
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => l.value = i),
2720
+ onSelect: s
2721
+ }), null, 16, ["modelValue"]));
2722
+ }
2723
+ }), ul = L(cl), fl = {
2314
2724
  key: 0,
2315
2725
  class: "q-input-group__prepend"
2316
- }, Ol = { key: 0 }, Pl = {
2726
+ }, pl = { key: 0 }, ml = {
2317
2727
  key: 1,
2318
2728
  class: "q-input-group__append"
2319
- }, Ul = { key: 0 }, Nl = /* @__PURE__ */ C({
2729
+ }, hl = { key: 0 }, vl = /* @__PURE__ */ I({
2320
2730
  __name: "QInputGroup",
2321
2731
  props: {
2322
- id: { default: void 0 },
2323
- label: { default: "" },
2732
+ id: {},
2733
+ label: {},
2324
2734
  required: { type: Boolean },
2325
- prependIcon: { default: void 0 },
2326
- appendIcon: { default: void 0 },
2735
+ prependIcon: {},
2736
+ appendIcon: {},
2327
2737
  size: { default: "large" },
2328
- class: { default: void 0 }
2738
+ class: {}
2329
2739
  },
2330
2740
  setup(n) {
2331
2741
  const t = n;
2332
- return Pe({
2742
+ return Ne({
2333
2743
  QField: {
2334
2744
  size: "block"
2335
2745
  }
2336
- }), (e, l) => (i(), B(m(Le), {
2746
+ }), (e, o) => (d(), C(y(Se), {
2337
2747
  id: t.id,
2338
2748
  class: T(["q-input-group", t.class]),
2339
2749
  label: t.label,
2340
2750
  required: t.required,
2341
2751
  size: t.size
2342
- }, ye({
2343
- default: w(() => [
2344
- e.$slots.prepend || t.prependIcon ? (i(), f("div", Fl, [
2345
- t.prependIcon ? (i(), f("span", Ol, [
2346
- D(m(O), W(ne(t.prependIcon)), null, 16)
2347
- ])) : g("", !0),
2752
+ }, pe({
2753
+ default: _(() => [
2754
+ e.$slots.prepend || t.prependIcon ? (d(), h("div", fl, [
2755
+ t.prependIcon ? (d(), h("span", pl, [
2756
+ U(y(X), se(fe(t.prependIcon)), null, 16)
2757
+ ])) : w("", !0),
2348
2758
  p(e.$slots, "prepend")
2349
- ])) : g("", !0),
2759
+ ])) : w("", !0),
2350
2760
  p(e.$slots, "default"),
2351
- e.$slots.append || t.appendIcon ? (i(), f("div", Pl, [
2352
- t.appendIcon ? (i(), f("span", Ul, [
2353
- D(m(O), W(ne(t.appendIcon)), null, 16)
2354
- ])) : g("", !0),
2761
+ e.$slots.append || t.appendIcon ? (d(), h("div", ml, [
2762
+ t.appendIcon ? (d(), h("span", hl, [
2763
+ U(y(X), se(fe(t.appendIcon)), null, 16)
2764
+ ])) : w("", !0),
2355
2765
  p(e.$slots, "append")
2356
- ])) : g("", !0)
2766
+ ])) : w("", !0)
2357
2767
  ]),
2358
2768
  _: 2
2359
2769
  }, [
2360
2770
  e.$slots.extras ? {
2361
2771
  name: "extras",
2362
- fn: w(() => [
2772
+ fn: _(() => [
2363
2773
  p(e.$slots, "extras")
2364
2774
  ]),
2365
2775
  key: "0"
2366
2776
  } : void 0
2367
2777
  ]), 1032, ["id", "class", "label", "required", "size"]));
2368
2778
  }
2369
- }), Rl = I(Nl), Gl = /* @__PURE__ */ C({
2779
+ }), yl = L(vl), bl = /* @__PURE__ */ I({
2370
2780
  __name: "QLineLoader",
2371
2781
  props: {
2372
- class: { default: void 0 }
2782
+ class: {}
2373
2783
  },
2374
2784
  setup(n) {
2375
2785
  const t = n;
2376
- return (e, l) => (i(), f("div", {
2786
+ return (e, o) => (d(), h("div", {
2377
2787
  class: T(["q-line-loader", t.class])
2378
2788
  }, null, 2));
2379
2789
  }
2380
- }), Hl = I(Gl), jl = {
2790
+ }), gl = L(bl), _l = {
2381
2791
  key: 0,
2382
2792
  class: "q-popover__header"
2383
- }, Kl = {
2793
+ }, $l = {
2384
2794
  key: 1,
2385
2795
  class: "q-popover__body"
2386
- }, Wl = ["innerHTML"], Xl = { key: 1 }, Yl = /* @__PURE__ */ C({
2796
+ }, kl = ["innerHTML"], wl = { key: 1 }, ql = /* @__PURE__ */ I({
2387
2797
  inheritAttrs: !1,
2388
2798
  __name: "QPopover",
2389
2799
  props: /* @__PURE__ */ G({
@@ -2395,7 +2805,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2395
2805
  html: { type: Boolean, default: !0 },
2396
2806
  placement: { default: "right" },
2397
2807
  text: {},
2398
- title: { default: "" }
2808
+ title: {}
2399
2809
  }, {
2400
2810
  modelValue: { type: Boolean },
2401
2811
  modelModifiers: {}
@@ -2403,9 +2813,9 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2403
2813
  emits: ["update:modelValue"],
2404
2814
  setup(n) {
2405
2815
  const t = n, e = K(n, "modelValue");
2406
- return (l, o) => (i(), B(m(ve), {
2816
+ return (o, l) => (d(), C(y(me), {
2407
2817
  modelValue: e.value,
2408
- "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s),
2818
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
2409
2819
  class: "q-popover",
2410
2820
  trigger: "click",
2411
2821
  anchor: t.anchor,
@@ -2415,32 +2825,32 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2415
2825
  disabled: t.disabled,
2416
2826
  placement: t.placement
2417
2827
  }, {
2418
- default: w(() => [
2419
- t.title || l.$slots.header ? (i(), f("h3", jl, [
2420
- ae(E(t.title) + " ", 1),
2421
- p(l.$slots, "header")
2422
- ])) : g("", !0),
2423
- t.text || l.$slots.body ? (i(), f("div", Kl, [
2424
- t.html ? (i(), f("span", {
2828
+ default: _(() => [
2829
+ t.title || o.$slots.header ? (d(), h("h3", _l, [
2830
+ ie(z(t.title) + " ", 1),
2831
+ p(o.$slots, "header")
2832
+ ])) : w("", !0),
2833
+ t.text || o.$slots.body ? (d(), h("div", $l, [
2834
+ t.html ? (d(), h("span", {
2425
2835
  key: 0,
2426
2836
  innerHTML: t.text
2427
- }, null, 8, Wl)) : (i(), f("span", Xl, E(t.text), 1)),
2428
- p(l.$slots, "body")
2429
- ])) : g("", !0)
2837
+ }, null, 8, kl)) : (d(), h("span", wl, z(t.text), 1)),
2838
+ p(o.$slots, "body")
2839
+ ])) : w("", !0)
2430
2840
  ]),
2431
2841
  _: 3
2432
2842
  }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
2433
2843
  }
2434
- }), Zl = I(Yl), pt = {
2844
+ }), xl = L(ql), qt = {
2435
2845
  emptyMessage: "Select a field to view details."
2436
- }, mt = {
2846
+ }, xt = {
2437
2847
  open: {
2438
2848
  icon: "minus-box"
2439
2849
  },
2440
2850
  close: {
2441
2851
  icon: "plus-box"
2442
2852
  }
2443
- }, Jl = { class: "q-property-list__table" }, eo = /* @__PURE__ */ C({
2853
+ }, Cl = { class: "q-property-list__table" }, Il = /* @__PURE__ */ I({
2444
2854
  __name: "QPropertyList",
2445
2855
  props: {
2446
2856
  fields: { default: () => [] },
@@ -2449,246 +2859,254 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2449
2859
  panelPosition: { default: "bottom" },
2450
2860
  groups: { default: () => [] },
2451
2861
  readonly: { type: Boolean },
2452
- class: { default: void 0 },
2453
- icons: { default: () => mt },
2454
- texts: { default: () => pt }
2862
+ class: {},
2863
+ icons: { default: () => xt },
2864
+ texts: { default: () => qt }
2455
2865
  },
2456
- emits: ["field-change"],
2866
+ emits: ["field-change", "select-field"],
2457
2867
  setup(n, { emit: t }) {
2458
- const e = n, l = t, o = A(e.groups.map((_) => _.id)), s = A(void 0), a = A(null), d = y(() => e.groups.length ? e.groups.filter(
2459
- (_) => e.fields.some((V) => V.group === _.id)
2460
- ) : [{ id: "", title: "" }]), r = y(() => [
2868
+ const e = n, o = t, l = B(e.groups.map(($) => $.id)), s = B(void 0), a = B(null), r = g(() => e.groups.length ? e.groups.filter(
2869
+ ($) => e.fields.some((V) => V.group === $.id)
2870
+ ) : [{ id: "", title: "" }]), i = g(() => [
2461
2871
  e.class,
2462
2872
  {
2463
2873
  "q-property-list--side-panel": e.panelPosition === "right"
2464
2874
  }
2465
2875
  ]);
2466
- function u() {
2467
- var _;
2468
- (_ = a.value) != null && _.contains(document.activeElement) || (s.value = void 0);
2876
+ function c() {
2877
+ var $;
2878
+ ($ = a.value) != null && $.contains(document.activeElement) || (s.value = void 0);
2469
2879
  }
2470
- function b(_) {
2471
- return _ ? e.fields.filter((V) => V.group === _) : e.fields;
2880
+ function b($) {
2881
+ return $ ? e.fields.filter((V) => V.group === $) : e.fields;
2472
2882
  }
2473
- function x(_) {
2474
- const V = o.value.indexOf(_);
2475
- V === -1 ? o.value.push(_) : o.value.splice(V, 1);
2883
+ function m($) {
2884
+ const V = l.value.indexOf($);
2885
+ V === -1 ? l.value.push($) : l.value.splice(V, 1);
2476
2886
  }
2477
- function R(_) {
2887
+ function A($) {
2478
2888
  var Q;
2479
- const V = _.group && !o.value.includes(_.group), M = ((Q = s.value) == null ? void 0 : Q.id) === _.id;
2889
+ const V = $.group && !l.value.includes($.group), D = ((Q = s.value) == null ? void 0 : Q.id) === $.id;
2480
2890
  return [
2481
2891
  {
2482
2892
  "q-property-list__row--closed": V,
2483
- "q-property-list__row--selected": M
2893
+ "q-property-list__row--selected": D
2484
2894
  }
2485
2895
  ];
2486
2896
  }
2487
- function P(_) {
2488
- s.value = _;
2897
+ function P($) {
2898
+ s.value = $, o("select-field", s.value.id);
2489
2899
  }
2490
- function z(_, V) {
2491
- e.readonly || (_.props.readonly ?? !1) || (_.props.modelValue = V, l("field-change", _));
2900
+ function N($, V) {
2901
+ e.readonly || ($.props.readonly ?? !1) || o("field-change", $, V);
2492
2902
  }
2493
- return (_, V) => (i(), f("div", {
2903
+ return ($, V) => (d(), h("div", {
2494
2904
  ref_key: "componentRoot",
2495
2905
  ref: a,
2496
2906
  tabindex: "0",
2497
- class: T(["q-property-list", r.value]),
2498
- onFocusout: u
2907
+ class: T(["q-property-list", i.value]),
2908
+ onFocusout: c
2499
2909
  }, [
2500
- q("table", Jl, [
2501
- V[0] || (V[0] = q("thead", { class: "q-property-list__header" }, [
2502
- q("tr", null, [
2503
- q("th", { colspan: "2" })
2910
+ x("table", Cl, [
2911
+ V[0] || (V[0] = x("thead", { class: "q-property-list__header" }, [
2912
+ x("tr", null, [
2913
+ x("th", { colspan: "2" })
2504
2914
  ])
2505
2915
  ], -1)),
2506
- q("tbody", null, [
2507
- (i(!0), f(U, null, he(d.value, (M) => (i(), f(U, {
2508
- key: M.id
2916
+ x("tbody", null, [
2917
+ (d(!0), h(W, null, ye(r.value, (D) => (d(), h(W, {
2918
+ key: D.id
2509
2919
  }, [
2510
- M.title ? (i(), B(m(yt), {
2920
+ D.title ? (d(), C(y(It), {
2511
2921
  key: 0,
2512
- id: M.id,
2513
- title: M.title,
2922
+ id: D.id,
2923
+ title: D.title,
2514
2924
  icons: e.icons,
2515
2925
  "no-toggle": e.noToggle,
2516
- onToggleGroup: x
2517
- }, null, 8, ["id", "title", "icons", "no-toggle"])) : g("", !0),
2518
- (i(!0), f(U, null, he(b(M.id), (Q) => (i(), B(m(ht), {
2926
+ onToggleGroup: m
2927
+ }, null, 8, ["id", "title", "icons", "no-toggle"])) : w("", !0),
2928
+ (d(!0), h(W, null, ye(b(D.id), (Q) => (d(), C(y(Ct), {
2519
2929
  key: Q.id,
2520
- class: T(R(Q)),
2930
+ class: T(A(Q)),
2521
2931
  field: Q,
2932
+ "model-value": Q.props.modelValue,
2522
2933
  readonly: e.readonly,
2523
2934
  onFocus: P,
2524
- onFieldChange: z
2935
+ "onUpdate:modelValue": (j) => N(Q, j)
2525
2936
  }, {
2526
- default: w(() => [
2527
- p(_.$slots, Q.id, { field: Q })
2937
+ default: _(() => [
2938
+ p($.$slots, Q.id, { field: Q })
2528
2939
  ]),
2529
2940
  _: 2
2530
- }, 1032, ["class", "field", "readonly"]))), 128))
2941
+ }, 1032, ["class", "field", "model-value", "readonly", "onUpdate:modelValue"]))), 128))
2531
2942
  ], 64))), 128))
2532
2943
  ])
2533
2944
  ]),
2534
- e.noPanel ? g("", !0) : (i(), B(m(vt), {
2945
+ e.noPanel ? w("", !0) : (d(), C(y(Lt), {
2535
2946
  key: 0,
2536
2947
  field: s.value,
2537
2948
  texts: e.texts
2538
2949
  }, {
2539
- default: w(() => [
2540
- s.value ? p(_.$slots, "panel", {
2950
+ default: _(() => [
2951
+ s.value ? p($.$slots, "panel", {
2541
2952
  key: 0,
2542
2953
  field: s.value
2543
- }) : g("", !0)
2954
+ }) : w("", !0)
2544
2955
  ]),
2545
2956
  _: 3
2546
2957
  }, 8, ["field", "texts"]))
2547
2958
  ], 34));
2548
2959
  }
2549
- }), to = {
2960
+ }), Ll = ["data-group"], Sl = {
2550
2961
  key: 0,
2551
2962
  class: "q-property-list-field__container"
2552
- }, no = /* @__PURE__ */ C({
2963
+ }, Bl = /* @__PURE__ */ I({
2553
2964
  __name: "QPropertyListRow",
2554
- props: {
2965
+ props: /* @__PURE__ */ G({
2555
2966
  field: {},
2556
2967
  class: {},
2557
2968
  readonly: { type: Boolean }
2558
- },
2559
- emits: ["focus", "field-change"],
2969
+ }, {
2970
+ modelValue: {},
2971
+ modelModifiers: {}
2972
+ }),
2973
+ emits: /* @__PURE__ */ G(["focus"], ["update:modelValue"]),
2560
2974
  setup(n, { emit: t }) {
2561
- const e = n, l = t, o = y(() => ["q-property-list__row", e.class]), s = y(() => {
2562
- var x;
2563
- const b = ["q-property-list__cell", "q-property-list__cell--label"];
2564
- return (x = e.field.props) != null && x.required && b.push("q-property-list__cell--required"), b;
2565
- }), a = y(() => e.readonly || (e.field.props.readonly ?? !1));
2566
- function d() {
2567
- l("focus", e.field);
2568
- }
2569
- function r(b) {
2570
- l("field-change", e.field, b);
2571
- }
2572
- const u = y(() => ({
2975
+ const e = n, o = t, l = K(n, "modelValue"), s = g(() => ["q-property-list__row", e.class]), a = g(() => {
2976
+ var m;
2977
+ return [
2978
+ "q-property-list__cell",
2979
+ "q-property-list__cell-label",
2980
+ {
2981
+ "q-property-list__cell--required": (m = e.field.props) == null ? void 0 : m.required
2982
+ }
2983
+ ];
2984
+ }), r = g(() => e.readonly || (e.field.props.readonly ?? !1)), i = g(() => ({
2573
2985
  ...e.field.props,
2574
- readonly: a.value
2986
+ readonly: r.value
2575
2987
  }));
2576
- return (b, x) => (i(), f("tr", {
2577
- class: T(o.value),
2578
- onFocusin: d
2988
+ function c() {
2989
+ o("focus", e.field);
2990
+ }
2991
+ function b(m) {
2992
+ l.value = m;
2993
+ }
2994
+ return (m, A) => (d(), h("tr", {
2995
+ class: T(s.value),
2996
+ "data-group": e.field.group,
2997
+ onFocusin: c
2579
2998
  }, [
2580
- q("td", {
2581
- class: T(s.value),
2582
- onClick: d
2583
- }, E(e.field.label), 3),
2584
- q("td", {
2999
+ x("td", {
3000
+ class: T(a.value),
3001
+ onClick: ne(c, ["prevent", "stop"])
3002
+ }, z(e.field.label), 3),
3003
+ x("td", {
2585
3004
  class: "q-property-list__cell",
2586
- onClick: d
3005
+ onClick: ne(c, ["prevent", "stop"])
2587
3006
  }, [
2588
- p(b.$slots, "default", {}, () => [
2589
- e.field.component ? (i(), f("div", to, [
2590
- (i(), B(Se(e.field.component), H(u.value, {
2591
- "model-value": e.field.props.modelValue,
2592
- "onUpdate:modelValue": r
2593
- }), null, 16, ["model-value"]))
2594
- ])) : g("", !0)
3007
+ p(m.$slots, "default", {}, () => [
3008
+ e.field.component ? (d(), h("div", Sl, [
3009
+ (d(), C(Ie(e.field.component), Z(i.value, {
3010
+ modelValue: l.value,
3011
+ "onUpdate:modelValue": [
3012
+ A[0] || (A[0] = (P) => l.value = P),
3013
+ b
3014
+ ]
3015
+ }), null, 16, ["modelValue"]))
3016
+ ])) : w("", !0)
2595
3017
  ])
2596
3018
  ])
2597
- ], 34));
3019
+ ], 42, Ll));
2598
3020
  }
2599
- }), lo = ["data-key", "aria-labelledby"], oo = ["id"], so = { class: "q-property-list-group__content" }, ao = /* @__PURE__ */ C({
3021
+ }), Vl = ["data-key", "aria-labelledby"], Tl = ["id"], Al = { class: "q-property-list-group__content" }, El = /* @__PURE__ */ I({
2600
3022
  __name: "QPropertyListGroup",
2601
3023
  props: {
2602
3024
  id: {},
2603
3025
  title: {},
2604
- noToggle: { type: Boolean, default: !1 },
2605
- icons: { default: () => mt },
3026
+ noToggle: { type: Boolean },
3027
+ icons: { default: () => xt },
2606
3028
  texts: {}
2607
3029
  },
2608
3030
  emits: ["toggle-group"],
2609
3031
  setup(n, { emit: t }) {
2610
- const e = n, l = t, o = A(!0), s = ie(), a = y(() => o.value ? e.icons.open : e.icons.close), d = y(() => [
3032
+ const e = n, o = t, l = B(!0), s = de(), a = g(() => l.value ? e.icons.open : e.icons.close), r = g(() => [
2611
3033
  "q-property-list-group",
2612
3034
  {
2613
3035
  "q-property-list-group--no-toggle": e.noToggle
2614
3036
  }
2615
3037
  ]);
2616
- function r() {
2617
- e.noToggle || (o.value = !o.value, l("toggle-group", e.id));
3038
+ function i() {
3039
+ e.noToggle || (l.value = !l.value, o("toggle-group", e.id));
2618
3040
  }
2619
- return (u, b) => (i(), f("tr", {
2620
- class: T(d.value),
3041
+ return (c, b) => (d(), h("tr", {
3042
+ class: T(r.value),
2621
3043
  role: "group",
2622
3044
  "data-key": e.id,
2623
- "aria-labelledby": m(s),
2624
- onClick: r
3045
+ "aria-labelledby": y(s),
3046
+ onClick: i
2625
3047
  }, [
2626
- q("td", {
2627
- id: m(s),
3048
+ x("td", {
3049
+ id: y(s),
2628
3050
  colspan: "2"
2629
3051
  }, [
2630
- q("div", so, [
2631
- e.noToggle ? g("", !0) : (i(), B(m(le), {
3052
+ x("div", Al, [
3053
+ e.noToggle ? w("", !0) : (d(), C(y(re), {
2632
3054
  key: 0,
2633
3055
  "b-style": "tertiary",
2634
3056
  borderless: "",
2635
- onClick: r
3057
+ onClick: i
2636
3058
  }, {
2637
- default: w(() => [
2638
- D(m(O), W(ne(a.value)), null, 16)
3059
+ default: _(() => [
3060
+ U(y(X), se(fe(a.value)), null, 16)
2639
3061
  ]),
2640
3062
  _: 1
2641
3063
  })),
2642
- ae(" " + E(e.title), 1)
3064
+ ie(" " + z(e.title), 1)
2643
3065
  ])
2644
- ], 8, oo)
2645
- ], 10, lo));
3066
+ ], 8, Tl)
3067
+ ], 10, Vl));
2646
3068
  }
2647
- }), io = { class: "q-property-list-panel__container" }, ro = { class: "q-property-list-panel__label" }, uo = { class: "q-property-list-panel__description" }, co = {
3069
+ }), Dl = { class: "q-property-list-panel__container" }, Ql = { class: "q-property-list-panel__label" }, zl = { class: "q-property-list-panel__description" }, Fl = {
2648
3070
  key: 1,
2649
3071
  class: "q-property-list-panel__empty"
2650
- }, fo = /* @__PURE__ */ C({
3072
+ }, Ml = /* @__PURE__ */ I({
2651
3073
  __name: "QPropertyListPanel",
2652
3074
  props: {
2653
- field: { default: void 0 },
3075
+ field: {},
2654
3076
  icons: {},
2655
- texts: { default: () => pt }
3077
+ texts: { default: () => qt }
2656
3078
  },
2657
3079
  setup(n) {
2658
3080
  const t = n;
2659
- return (e, l) => (i(), f("div", io, [
3081
+ return (e, o) => (d(), h("div", Dl, [
2660
3082
  t.field ? p(e.$slots, "default", { key: 0 }, () => [
2661
- q("div", ro, E(t.field.label), 1),
2662
- q("div", uo, E(t.field.description), 1)
2663
- ]) : (i(), f("div", co, E(t.texts.emptyMessage), 1))
3083
+ x("div", Ql, z(t.field.label), 1),
3084
+ x("div", zl, z(t.field.description), 1)
3085
+ ]) : (d(), h("div", Fl, z(t.texts.emptyMessage), 1))
2664
3086
  ]));
2665
3087
  }
2666
- }), po = I(eo), ht = I(no), yt = I(ao), vt = I(fo), mo = {
3088
+ }), Ol = L(Il), Ct = L(Bl), It = L(El), Lt = L(Ml), Ul = {
3089
+ ...Ge,
2667
3090
  placeholder: "Choose...",
2668
- clearValue: "Clear value",
2669
3091
  showOptions: "Show options"
2670
- }, ho = {
2671
- chevron: {
2672
- icon: "chevron-down"
2673
- },
2674
- clear: {
2675
- icon: "close"
2676
- }
2677
- }, yo = {
3092
+ }, Pl = {
3093
+ ...Le,
3094
+ ...He
3095
+ }, Nl = {
2678
3096
  key: 0,
2679
3097
  class: "q-select__value"
2680
- }, vo = {
3098
+ }, Rl = {
2681
3099
  key: 1,
2682
3100
  class: "q-select__placeholder"
2683
- }, bo = ["data-key"], go = {
3101
+ }, Gl = ["data-key"], Hl = {
2684
3102
  key: 0,
2685
3103
  class: "q-select__loader"
2686
- }, _o = /* @__PURE__ */ C({
3104
+ }, Kl = /* @__PURE__ */ I({
2687
3105
  inheritAttrs: !1,
2688
3106
  __name: "QSelect",
2689
3107
  props: /* @__PURE__ */ G({
2690
- id: { default: void 0 },
2691
- label: { default: "" },
3108
+ id: {},
3109
+ label: {},
2692
3110
  clearable: { type: Boolean },
2693
3111
  readonly: { type: Boolean },
2694
3112
  disabled: { type: Boolean },
@@ -2698,11 +3116,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2698
3116
  groups: { default: () => [] },
2699
3117
  itemValue: { default: "key" },
2700
3118
  itemLabel: { default: "label" },
2701
- emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2702
- size: { default: void 0 },
2703
- class: { default: "" },
2704
- icons: { default: () => ho },
2705
- texts: { default: () => mo }
3119
+ emptyValue: { type: [String, Number, Boolean, Symbol] },
3120
+ size: {},
3121
+ class: {},
3122
+ icons: { default: () => Pl },
3123
+ texts: { default: () => Ul }
2706
3124
  }, {
2707
3125
  modelValue: {
2708
3126
  type: [String, Number, Boolean, Symbol]
@@ -2711,82 +3129,82 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2711
3129
  }),
2712
3130
  emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2713
3131
  setup(n, { emit: t }) {
2714
- const e = n, l = t, o = K(n, "modelValue"), s = A(!1), a = A(""), d = A(null), r = A(null), u = A(null), b = y(() => x.value === void 0), x = y(
3132
+ const e = n, o = t, l = K(n, "modelValue"), s = B(!1), a = B(""), r = B(null), i = B(null), c = B(null), b = g(() => m.value === void 0), m = g(
2715
3133
  () => {
2716
- var h;
2717
- return (h = e.items) == null ? void 0 : h.find(($) => $[e.itemValue] === o.value);
3134
+ var u;
3135
+ return (u = e.items) == null ? void 0 : u.find((q) => q[e.itemValue] === l.value);
2718
3136
  }
2719
- ), R = y(
2720
- () => x.value ? x.value[e.itemLabel] : ""
2721
- ), P = y(
3137
+ ), A = g(
3138
+ () => m.value ? m.value[e.itemLabel] : ""
3139
+ ), P = g(
2722
3140
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2723
3141
  );
2724
- function z(h) {
2725
- o.value = h, Q();
3142
+ function N(u) {
3143
+ l.value = u, Q();
2726
3144
  }
2727
- function _() {
2728
- P.value && (z(e.emptyValue), ce());
3145
+ function $() {
3146
+ P.value && (N(e.emptyValue), ae());
2729
3147
  }
2730
- function V(h) {
2731
- var $, J, re;
2732
- !(($ = u.value) != null && $.contains(h.relatedTarget)) && !((re = (J = d.value) == null ? void 0 : J.fieldRef) != null && re.contains(h.relatedTarget)) && Q();
3148
+ function V(u) {
3149
+ var q, O, H;
3150
+ !((q = c.value) != null && q.contains(u.relatedTarget)) && !((H = (O = r.value) == null ? void 0 : O.fieldRef) != null && H.contains(u.relatedTarget)) && Q();
2733
3151
  }
2734
- function M() {
2735
- s.value || (l("before-show"), s.value = !0);
3152
+ function D() {
3153
+ s.value || (o("before-show"), s.value = !0);
2736
3154
  }
2737
3155
  function Q() {
2738
- s.value && (l("before-hide"), s.value = !1);
2739
- }
2740
- function oe() {
2741
- e.readonly || e.disabled || (s.value ? Q() : M());
2742
- }
2743
- let ee;
2744
- function N(h) {
2745
- if (!(!h.key || e.readonly || e.disabled)) {
2746
- if (window.clearTimeout(ee), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(h.key) && (h.preventDefault(), h.stopPropagation()), ["Enter", " "].includes(h.key) && (s.value = !0), ["Escape", "Tab"].includes(h.key) && (s.value ? s.value = !1 : P.value && h.key === "Escape" && _()), h.key === "Delete" && e.clearable && _(), /^[a-z]$/i.test(h.key)) {
2747
- a.value += h.key.toLowerCase();
2748
- for (let $ = 0; $ < e.items.length; $++)
2749
- if (e.items[$][e.itemLabel].toLowerCase().startsWith(a.value)) {
2750
- S($);
3156
+ s.value && (o("before-hide"), s.value = !1);
3157
+ }
3158
+ function j() {
3159
+ e.readonly || e.disabled || (s.value ? Q() : D());
3160
+ }
3161
+ let te;
3162
+ function S(u) {
3163
+ if (!(!u.key || e.readonly || e.disabled)) {
3164
+ if (window.clearTimeout(te), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (s.value = !0), ["Escape", "Tab"].includes(u.key) && (s.value ? s.value = !1 : P.value && u.key === "Escape" && $()), u.key === "Delete" && e.clearable && $(), /^[a-z]$/i.test(u.key)) {
3165
+ a.value += u.key.toLowerCase();
3166
+ for (let q = 0; q < e.items.length; q++)
3167
+ if (e.items[q][e.itemLabel].toLowerCase().startsWith(a.value)) {
3168
+ k(q);
2751
3169
  break;
2752
3170
  }
2753
3171
  }
2754
- ee = window.setTimeout(function() {
3172
+ te = window.setTimeout(function() {
2755
3173
  a.value = "";
2756
3174
  }, 500);
2757
3175
  }
2758
3176
  }
2759
- function se() {
2760
- var h;
2761
- e.loading ? (h = u.value) == null || h.focus() : v(), l("show");
3177
+ function E() {
3178
+ var u;
3179
+ e.loading ? (u = c.value) == null || u.focus() : ce(), o("show");
2762
3180
  }
2763
- function X() {
2764
- ce(), l("hide");
3181
+ function R() {
3182
+ ae(), o("hide");
2765
3183
  }
2766
- function ce() {
2767
- var h, $;
2768
- ($ = (h = d.value) == null ? void 0 : h.fieldRef) == null || $.focus();
3184
+ function ae() {
3185
+ var u, q;
3186
+ (q = (u = r.value) == null ? void 0 : u.fieldRef) == null || q.focus();
2769
3187
  }
2770
- function v() {
2771
- var h;
2772
- (h = r.value) == null || h.$el.focus();
3188
+ function ce() {
3189
+ var u;
3190
+ (u = i.value) == null || u.$el.focus();
2773
3191
  }
2774
- function S(h) {
2775
- var $;
2776
- ($ = r.value) == null || $.focusItem(h);
3192
+ function k(u) {
3193
+ var q;
3194
+ (q = i.value) == null || q.focusItem(u);
2777
3195
  }
2778
- return Z(
3196
+ return Y(
2779
3197
  () => e.loading,
2780
- (h) => {
2781
- !h && s.value && te(v);
3198
+ (u) => {
3199
+ !u && s.value && le(ce);
2782
3200
  }
2783
- ), (h, $) => {
2784
- var J, re;
2785
- return i(), f(U, null, [
2786
- D(m(Le), H({
3201
+ ), (u, q) => {
3202
+ var O, H;
3203
+ return d(), h(W, null, [
3204
+ U(y(Se), Z({
2787
3205
  id: e.id,
2788
3206
  ref_key: "triggerEl",
2789
- ref: d,
3207
+ ref: r,
2790
3208
  label: e.label,
2791
3209
  required: e.required,
2792
3210
  role: "combobox",
@@ -2795,8 +3213,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2795
3213
  "q-select",
2796
3214
  {
2797
3215
  "q-select--readonly": e.readonly,
2798
- "q-select--disabled": e.disabled,
2799
- "q-select--expanded": s.value
3216
+ "q-select--disabled": e.disabled
2800
3217
  },
2801
3218
  e.class
2802
3219
  ],
@@ -2806,27 +3223,19 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2806
3223
  "aria-expanded": s.value,
2807
3224
  "aria-haspopup": "listbox",
2808
3225
  size: e.size
2809
- }, h.$attrs, {
2810
- onClick: oe,
2811
- onKeydown: ue(N, ["stop"])
2812
- }), ye({
2813
- append: w(() => [
2814
- p(h.$slots, "append"),
2815
- P.value && o.value ? (i(), B(m(le), {
3226
+ }, u.$attrs, {
3227
+ onClick: j,
3228
+ onKeydown: ne(S, ["stop"])
3229
+ }), pe({
3230
+ append: _(() => [
3231
+ p(u.$slots, "append"),
3232
+ P.value && l.value ? (d(), C(y(wt), {
2816
3233
  key: 0,
2817
- class: "q-select__clear",
2818
- "aria-label": e.texts.clearValue,
2819
- "b-style": "plain",
2820
- borderless: "",
2821
- tabindex: "-1",
2822
- onClick: _
2823
- }, {
2824
- default: w(() => [
2825
- D(m(O), W(ne(e.icons.clear)), null, 16)
2826
- ]),
2827
- _: 1
2828
- }, 8, ["aria-label"])) : g("", !0),
2829
- e.readonly ? g("", !0) : (i(), B(m(le), {
3234
+ icons: e.icons,
3235
+ texts: e.texts,
3236
+ onClick: $
3237
+ }, null, 8, ["icons", "texts"])) : w("", !0),
3238
+ e.readonly ? w("", !0) : (d(), C(y(re), {
2830
3239
  key: 1,
2831
3240
  class: "q-select__chevron",
2832
3241
  "aria-label": e.texts.showOptions,
@@ -2834,135 +3243,125 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2834
3243
  borderless: "",
2835
3244
  tabindex: "-1",
2836
3245
  disabled: e.disabled,
2837
- onClick: oe
3246
+ onClick: j
2838
3247
  }, {
2839
- default: w(() => [
2840
- D(m(O), W(ne(e.icons.chevron)), null, 16)
3248
+ default: _(() => [
3249
+ U(y(xe), {
3250
+ "model-value": s.value,
3251
+ icons: e.icons
3252
+ }, null, 8, ["model-value", "icons"])
2841
3253
  ]),
2842
3254
  _: 1
2843
3255
  }, 8, ["aria-label", "disabled"]))
2844
3256
  ]),
2845
- default: w(() => [
2846
- b.value ? (i(), f("span", vo, [
2847
- !e.readonly && !e.disabled ? (i(), f(U, { key: 0 }, [
2848
- ae(E(e.texts.placeholder), 1)
2849
- ], 64)) : g("", !0)
2850
- ])) : (i(), f("span", yo, E(R.value), 1))
3257
+ default: _(() => [
3258
+ b.value ? (d(), h("span", Rl, [
3259
+ !e.readonly && !e.disabled ? (d(), h(W, { key: 0 }, [
3260
+ ie(z(e.texts.placeholder), 1)
3261
+ ], 64)) : w("", !0)
3262
+ ])) : (d(), h("span", Nl, z(A.value), 1))
2851
3263
  ]),
2852
3264
  _: 2
2853
3265
  }, [
2854
- (J = x.value) != null && J.icon || h.$slots.prepend ? {
3266
+ (O = m.value) != null && O.icon || u.$slots.prepend ? {
2855
3267
  name: "prepend",
2856
- fn: w(() => {
2857
- var Y, de;
3268
+ fn: _(() => {
3269
+ var J, ee;
2858
3270
  return [
2859
- p(h.$slots, "prepend"),
2860
- (Y = x.value) != null && Y.icon ? (i(), B(m(O), W(H({ key: 0 }, (de = x.value) == null ? void 0 : de.icon)), null, 16)) : g("", !0)
3271
+ p(u.$slots, "prepend"),
3272
+ (J = m.value) != null && J.icon ? (d(), C(y(X), se(Z({ key: 0 }, (ee = m.value) == null ? void 0 : ee.icon)), null, 16)) : w("", !0)
2861
3273
  ];
2862
3274
  }),
2863
3275
  key: "0"
2864
3276
  } : void 0,
2865
- h.$slots.extras ? {
3277
+ u.$slots.extras ? {
2866
3278
  name: "extras",
2867
- fn: w(() => [
2868
- p(h.$slots, "extras")
3279
+ fn: _(() => [
3280
+ p(u.$slots, "extras")
2869
3281
  ]),
2870
3282
  key: "1"
2871
3283
  } : void 0
2872
3284
  ]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2873
- D(m(ve), {
3285
+ U(y(me), {
2874
3286
  modelValue: s.value,
2875
- "onUpdate:modelValue": $[0] || ($[0] = (Y) => s.value = Y),
3287
+ "onUpdate:modelValue": q[0] || (q[0] = (J) => s.value = J),
2876
3288
  spy: "",
2877
3289
  trigger: "manual",
2878
3290
  placement: "bottom-start",
2879
3291
  width: "anchor",
2880
3292
  "scroll-lock": "",
2881
- anchor: (re = d.value) == null ? void 0 : re.$el,
3293
+ anchor: (H = r.value) == null ? void 0 : H.$el,
2882
3294
  offset: 2,
2883
- onEnter: se,
2884
- onLeave: X
3295
+ onEnter: E,
3296
+ onLeave: R
2885
3297
  }, {
2886
- default: w(() => [
2887
- q("div", {
3298
+ default: _(() => [
3299
+ x("div", {
2888
3300
  ref_key: "contentRef",
2889
- ref: u,
3301
+ ref: c,
2890
3302
  "data-testid": "combobox-dropdown",
2891
3303
  "data-key": e.id,
2892
3304
  class: "q-select__body",
2893
3305
  tabindex: "-1",
2894
3306
  onFocusout: V,
2895
- onKeydown: ue(N, ["stop"])
3307
+ onKeydown: ne(S, ["stop"])
2896
3308
  }, [
2897
- p(h.$slots, "body.prepend"),
2898
- e.loading ? (i(), f("div", go, [
2899
- D(m(_e), { size: 24 })
2900
- ])) : (i(), B(m(Ue), {
3309
+ p(u.$slots, "body.prepend"),
3310
+ e.loading ? (d(), h("div", Hl, [
3311
+ U(y($e), { size: 24 })
3312
+ ])) : (d(), C(y(Be), {
2901
3313
  key: 1,
2902
3314
  ref_key: "listRef",
2903
- ref: r,
3315
+ ref: i,
2904
3316
  class: "q-select__items",
2905
3317
  selectable: "",
2906
- "model-value": o.value,
3318
+ "model-value": l.value,
2907
3319
  items: e.items,
2908
- groups: h.groups,
3320
+ groups: u.groups,
2909
3321
  "item-label": e.itemLabel,
2910
3322
  "item-value": e.itemValue,
2911
- "onUpdate:modelValue": z
3323
+ "onUpdate:modelValue": N
2912
3324
  }, {
2913
- item: w(({ item: Y }) => [
2914
- p(h.$slots, "item", { item: Y })
3325
+ item: _(({ item: J }) => [
3326
+ p(u.$slots, "item", { item: J })
2915
3327
  ]),
2916
3328
  _: 3
2917
3329
  }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
2918
- p(h.$slots, "body.append")
2919
- ], 40, bo)
3330
+ p(u.$slots, "body.append")
3331
+ ], 40, Gl)
2920
3332
  ]),
2921
3333
  _: 3
2922
3334
  }, 8, ["modelValue", "anchor"])
2923
3335
  ], 64);
2924
3336
  };
2925
3337
  }
2926
- }), $o = I(_o), ko = /* @__PURE__ */ C({
3338
+ }), Wl = L(Kl), jl = /* @__PURE__ */ I({
2927
3339
  __name: "QSkeletonLoader",
2928
3340
  props: {
2929
- type: { default: void 0 },
2930
- width: { default: void 0 },
2931
- height: { default: void 0 }
3341
+ type: {},
3342
+ width: {},
3343
+ height: {}
2932
3344
  },
2933
3345
  setup(n) {
2934
- const t = n, e = y(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), l = y(() => {
2935
- const o = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
3346
+ const t = n, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), o = g(() => {
3347
+ const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2936
3348
  return {
2937
- width: o,
3349
+ width: l,
2938
3350
  height: s
2939
3351
  };
2940
3352
  });
2941
- return (o, s) => (i(), f("div", {
3353
+ return (l, s) => (d(), h("div", {
2942
3354
  class: T(["q-skeleton-loader", e.value]),
2943
- style: fe(l.value)
3355
+ style: ue(o.value)
2944
3356
  }, s[0] || (s[0] = [
2945
- q("div", { class: "q-skeleton-loader__bone" }, null, -1)
3357
+ x("div", { class: "q-skeleton-loader__bone" }, null, -1)
2946
3358
  ]), 6));
2947
3359
  }
2948
- }), wo = I(ko), qo = /* @__PURE__ */ C({
2949
- __name: "QThemeProvider",
2950
- props: {
2951
- theme: {}
2952
- },
2953
- setup(n) {
2954
- const t = n;
2955
- return (e, l) => (i(), f("div", {
2956
- class: T(["q-theme-provider", `q-theme--${t.theme}`])
2957
- }, [
2958
- p(e.$slots, "default")
2959
- ], 2));
2960
- }
2961
- }), xo = I(qo), So = ["innerHTML"], Lo = /* @__PURE__ */ C({
3360
+ }), Xl = L(jl), Yl = ["innerHTML"], Zl = /* @__PURE__ */ I({
2962
3361
  __name: "QTooltip",
2963
3362
  props: /* @__PURE__ */ G({
2964
- id: { default: void 0 },
2965
- anchor: { default: void 0 },
3363
+ id: {},
3364
+ anchor: {},
2966
3365
  appearance: { default: "inverted" },
2967
3366
  arrow: { type: Boolean, default: !0 },
2968
3367
  attach: { default: "body" },
@@ -2972,22 +3371,22 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
2972
3371
  html: { type: Boolean, default: !0 },
2973
3372
  placement: { default: "right" },
2974
3373
  text: {},
2975
- icon: { default: void 0 },
3374
+ icon: {},
2976
3375
  trigger: { default: "hover" },
2977
- class: { default: void 0 }
3376
+ class: {}
2978
3377
  }, {
2979
3378
  modelValue: { type: Boolean },
2980
3379
  modelModifiers: {}
2981
3380
  }),
2982
3381
  emits: ["update:modelValue"],
2983
3382
  setup(n) {
2984
- const t = n, e = K(n, "modelValue"), l = ie(t.id);
2985
- return (o, s) => (i(), f(U, null, [
2986
- p(o.$slots, "anchor", {
2987
- props: { "aria-describedby": m(l) }
3383
+ const t = n, e = K(n, "modelValue"), o = de(t.id);
3384
+ return (l, s) => (d(), h(W, null, [
3385
+ p(l.$slots, "anchor", {
3386
+ props: { "aria-describedby": y(o) }
2988
3387
  }),
2989
- D(m(ve), {
2990
- id: m(l),
3388
+ U(y(me), {
3389
+ id: y(o),
2991
3390
  "model-value": e.value,
2992
3391
  anchor: t.anchor,
2993
3392
  role: "tooltip",
@@ -3002,14 +3401,14 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
3002
3401
  placement: t.placement,
3003
3402
  trigger: t.trigger
3004
3403
  }, {
3005
- default: w(() => [
3006
- p(o.$slots, "default", {}, () => [
3007
- t.icon ? (i(), B(m(O), W(H({ key: 0 }, t.icon)), null, 16)) : g("", !0),
3008
- t.html ? (i(), f("span", {
3404
+ default: _(() => [
3405
+ p(l.$slots, "default", {}, () => [
3406
+ t.icon ? (d(), C(y(X), se(Z({ key: 0 }, t.icon)), null, 16)) : w("", !0),
3407
+ t.html ? (d(), h("span", {
3009
3408
  key: 1,
3010
3409
  innerHTML: t.text
3011
- }, null, 8, So)) : (i(), f(U, { key: 2 }, [
3012
- ae(E(t.text), 1)
3410
+ }, null, 8, Yl)) : (d(), h(W, { key: 2 }, [
3411
+ ie(z(t.text), 1)
3013
3412
  ], 64))
3014
3413
  ])
3015
3414
  ]),
@@ -3017,130 +3416,84 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
3017
3416
  }, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
3018
3417
  ], 64));
3019
3418
  }
3020
- }), Bo = I(Lo), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3419
+ }), Jl = L(Zl), es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3021
3420
  __proto__: null,
3022
- QAccordion: Tt,
3023
- QBadge: Zt,
3024
- QButton: le,
3025
- QButtonGroup: rt,
3026
- QButtonToggle: tn,
3027
- QCard: dt,
3028
- QCheckbox: gn,
3029
- QCollapsible: Cn,
3030
- QCombobox: xl,
3031
- QDialog: Ml,
3032
- QField: Le,
3033
- QIcon: O,
3034
- QIconFont: ot,
3035
- QIconImg: st,
3036
- QIconSvg: at,
3037
- QInputGroup: Rl,
3038
- QLineLoader: Hl,
3039
- QList: Ue,
3040
- QListItem: ut,
3041
- QListItemGroup: ct,
3042
- QOverlay: ve,
3043
- QPopover: Zl,
3044
- QPropertyList: po,
3045
- QPropertyListGroup: yt,
3046
- QPropertyListPanel: vt,
3047
- QPropertyListRow: ht,
3048
- QSelect: $o,
3049
- QSkeletonLoader: wo,
3050
- QSpinnerLoader: _e,
3051
- QTextField: ft,
3052
- QThemeProvider: xo,
3053
- QTooltip: Bo
3054
- }, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
3055
- function Io() {
3056
- const n = ze(ge);
3057
- if (!n)
3058
- throw new Error("[Quidgest UI] Could not find theme instance");
3059
- return n;
3060
- }
3061
- function Mo(n) {
3062
- const t = Io(), e = {
3063
- activeTheme: A(n),
3064
- themes: t.themes
3065
- };
3066
- return De(ge, e), e;
3067
- }
3068
- function To() {
3069
- let n = document.getElementById(
3070
- ge
3071
- );
3072
- return n || (n = document.createElement("style"), n.id = ge, document.head.appendChild(n)), n;
3073
- }
3074
- function Vo(n) {
3075
- let t = "";
3076
- for (const l of n) {
3077
- t += `.q-theme--${l.name} {
3078
- `;
3079
- const o = l.scheme;
3080
- let s;
3081
- for (s in o) {
3082
- const a = o[s];
3083
- if (a) {
3084
- t += ` ${Ze(s)}: ${a};
3085
- `;
3086
- const d = it(a);
3087
- t += ` ${Ze(s)}-rgb: ${d.r} ${d.g} ${d.b};
3088
- `;
3089
- }
3090
- }
3091
- t += `}
3092
- `;
3093
- }
3094
- const e = To();
3095
- e.textContent = t;
3096
- }
3097
- function Ze(n) {
3098
- return n ? `--q-theme-${lt(n)}` : "";
3099
- }
3100
- function Ao(n = {}) {
3421
+ QAccordion: Pt,
3422
+ QBadge: dn,
3423
+ QButton: re,
3424
+ QButtonGroup: vt,
3425
+ QButtonToggle: fn,
3426
+ QCard: yt,
3427
+ QCheckbox: Sn,
3428
+ QCollapsible: On,
3429
+ QColorPicker: Jn,
3430
+ QCombobox: Ko,
3431
+ QDialog: al,
3432
+ QDropdownMenu: ul,
3433
+ QField: Se,
3434
+ QIcon: X,
3435
+ QIconFont: ut,
3436
+ QIconImg: ft,
3437
+ QIconSvg: pt,
3438
+ QInputGroup: yl,
3439
+ QLineLoader: gl,
3440
+ QList: Be,
3441
+ QListItem: bt,
3442
+ QListItemGroup: gt,
3443
+ QOverlay: me,
3444
+ QPopover: xl,
3445
+ QPropertyList: Ol,
3446
+ QPropertyListGroup: It,
3447
+ QPropertyListPanel: Lt,
3448
+ QPropertyListRow: Ct,
3449
+ QSelect: Wl,
3450
+ QSkeletonLoader: Xl,
3451
+ QSpinnerLoader: $e,
3452
+ QTextField: Re,
3453
+ QThemeProvider: kt,
3454
+ QTooltip: Jl
3455
+ }, Symbol.toStringTag, { value: "Module" }));
3456
+ function ts(n = {}) {
3101
3457
  return { install: (e) => {
3102
- const l = n.components || {};
3103
- for (const s in l)
3104
- e.component(s, l[s]);
3105
- const o = n.defaults || {};
3106
- e.provide(Oe, A(o)), Eo(e, n.themes);
3458
+ const o = n.components || {};
3459
+ for (const s in o)
3460
+ e.component(s, o[s]);
3461
+ const l = n.defaults || {};
3462
+ e.provide(Pe, B(l)), ns(e, n.themes);
3107
3463
  } };
3108
3464
  }
3109
- function Eo(n, t) {
3465
+ function ns(n, t) {
3110
3466
  const e = [];
3111
- let l;
3467
+ let o;
3112
3468
  if (!t)
3113
- l = "default", e.push({
3114
- name: l,
3469
+ o = "default", e.push({
3470
+ name: o,
3115
3471
  mode: "light",
3116
- scheme: Ee
3472
+ scheme: Qe
3117
3473
  });
3118
3474
  else
3119
- for (const o of t.themes) {
3120
- const a = { ...o.mode === "light" ? Ee : et, ...o.colors };
3475
+ for (const l of t.themes) {
3476
+ const a = { ...l.mode === "light" ? Qe : it, ...l.colors };
3121
3477
  e.push({
3122
- name: o.name,
3123
- mode: o.mode,
3478
+ name: l.name,
3479
+ mode: l.mode,
3124
3480
  scheme: a
3125
- }), o.name === t.defaultTheme && (l = o.name);
3481
+ }), l.name === t.defaultTheme && (o = l.name);
3126
3482
  }
3127
- if (l) {
3128
- const o = {
3129
- activeTheme: A(l),
3130
- themes: e
3131
- };
3132
- Vo(e), Z(o.activeTheme, Qo, { immediate: !0 }), n.provide(ge, o);
3483
+ if (o) {
3484
+ const l = B(o), s = _t(l, e);
3485
+ Co(e), Y(s.name, os, { immediate: !0 }), n.provide(Ke, s);
3133
3486
  }
3134
3487
  }
3135
- function Qo(n) {
3136
- const t = document.documentElement, l = Array.from(t.classList).filter((o) => !o.startsWith("q-theme"));
3137
- t.className = l.join(" "), t.classList.add(`q-theme--${n}`);
3488
+ function os(n) {
3489
+ const t = document.documentElement, o = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
3490
+ t.className = o.join(" "), t.classList.add(`q-theme--${n}`);
3138
3491
  }
3139
- const Fo = (n = {}) => Ao({ components: Co, ...n });
3492
+ const as = (n = {}) => ts({ components: es, ...n });
3140
3493
  export {
3141
- Co as components,
3142
- Fo as createFramework,
3143
- Mo as provideTheme,
3144
- zo as templates,
3145
- Io as useTheme
3494
+ es as components,
3495
+ as as createFramework,
3496
+ Io as provideTheme,
3497
+ ss as templates,
3498
+ $t as useTheme
3146
3499
  };