@quidgest/ui 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/json/api.json +487 -155
  3. package/dist/manifest/components.json +3 -0
  4. package/dist/ui.css +1017 -142
  5. package/dist/ui.esm.js +988 -939
  6. package/dist/ui.js +1229 -1183
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1229 -1183
  9. package/dist/ui.scss +1267 -158
  10. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  11. package/esm/components/QAccordion/QAccordion.vue.js +19 -18
  12. package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
  13. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  14. package/esm/components/QBadge/QBadge.vue.js +58 -55
  15. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  16. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
  17. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
  18. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
  19. package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
  20. package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
  21. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
  22. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
  23. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
  24. package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
  25. package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
  26. package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
  27. package/esm/components/QBreadcrumbs/constants.js +10 -0
  28. package/esm/components/QBreadcrumbs/context.d.ts +103 -0
  29. package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
  30. package/esm/components/QBreadcrumbs/context.js +4 -0
  31. package/esm/components/QBreadcrumbs/index.d.ts +108 -0
  32. package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
  33. package/esm/components/QBreadcrumbs/index.js +7 -0
  34. package/esm/components/QBreadcrumbs/types.d.ts +100 -0
  35. package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
  36. package/esm/components/QButton/QButton.d.ts.map +1 -1
  37. package/esm/components/QButton/QButton.vue.js +55 -52
  38. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  39. package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
  40. package/esm/components/QCard/QCard.d.ts.map +1 -1
  41. package/esm/components/QCard/QCard.vue.js +51 -52
  42. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  43. package/esm/components/QCarousel/QCarousel.vue.js +119 -115
  44. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  45. package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
  46. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  47. package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
  48. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  49. package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
  50. package/esm/components/QCombobox/QCombobox.d.ts +6 -4
  51. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  52. package/esm/components/QCombobox/QCombobox.vue.js +119 -116
  53. package/esm/components/QCombobox/index.d.ts +3 -2
  54. package/esm/components/QCombobox/index.d.ts.map +1 -1
  55. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  56. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
  57. package/esm/components/QDateTimePicker/constants.d.ts +5 -0
  58. package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
  59. package/esm/components/QDateTimePicker/constants.js +5 -0
  60. package/esm/components/QDialog/QDialog.d.ts +2 -1
  61. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  62. package/esm/components/QDialog/QDialog.vue.js +84 -65
  63. package/esm/components/QDialog/constants.d.ts +6 -1
  64. package/esm/components/QDialog/constants.d.ts.map +1 -1
  65. package/esm/components/QDialog/constants.js +6 -2
  66. package/esm/components/QDialog/index.d.ts +6 -0
  67. package/esm/components/QDialog/index.d.ts.map +1 -1
  68. package/esm/components/QDialog/types.d.ts +13 -1
  69. package/esm/components/QDialog/types.d.ts.map +1 -1
  70. package/esm/components/QDivider/QDivider.d.ts.map +1 -1
  71. package/esm/components/QDivider/QDivider.vue.js +22 -21
  72. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
  73. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  74. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
  75. package/esm/components/QField/QField.d.ts.map +1 -1
  76. package/esm/components/QField/QField.vue.js +36 -34
  77. package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
  78. package/esm/components/QGauge/QGauge.d.ts +1 -1
  79. package/esm/components/QGauge/QGauge.d.ts.map +1 -1
  80. package/esm/components/QGauge/QGauge.vue.js +9 -9
  81. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  82. package/esm/components/QIcon/QIcon.vue.js +20 -19
  83. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  84. package/esm/components/QIcon/QIconFont.vue.js +13 -12
  85. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  86. package/esm/components/QIcon/QIconImg.vue.js +12 -11
  87. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  88. package/esm/components/QIcon/QIconSvg.vue.js +19 -18
  89. package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
  90. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
  91. package/esm/components/QIcon/QSvgSymbol.vue.js +88 -0
  92. package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
  93. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  94. package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
  95. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  96. package/esm/components/QLabel/QLabel.vue.js +20 -19
  97. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  98. package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
  99. package/esm/components/QList/QList.d.ts +4 -4
  100. package/esm/components/QList/QList.d.ts.map +1 -1
  101. package/esm/components/QList/QList.vue.js +135 -135
  102. package/esm/components/QList/QListItem.d.ts.map +1 -1
  103. package/esm/components/QList/QListItem.vue.js +42 -40
  104. package/esm/components/QList/QListItemGroup.d.ts +1 -1
  105. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  106. package/esm/components/QList/index.d.ts +2 -2
  107. package/esm/components/QList/types.d.ts +6 -0
  108. package/esm/components/QList/types.d.ts.map +1 -1
  109. package/esm/components/QMeter/QMeter.d.ts.map +1 -1
  110. package/esm/components/QMeter/QMeter.vue.js +20 -19
  111. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  112. package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
  113. package/esm/components/QOverflow/QOverflow.d.ts +1 -1
  114. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  115. package/esm/components/QOverflow/QOverflow.vue.js +10 -10
  116. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  117. package/esm/components/QOverlay/QOverlay.vue.js +139 -138
  118. package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
  119. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  120. package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
  121. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
  122. package/esm/components/QPasswordField/constants.d.ts +4 -0
  123. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  124. package/esm/components/QPasswordField/constants.js +4 -1
  125. package/esm/components/QPasswordField/index.d.ts +6 -0
  126. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  127. package/esm/components/QPasswordField/types.d.ts +7 -1
  128. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  129. package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
  130. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  131. package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
  132. package/esm/components/QPhoneField/index.d.ts +3 -2
  133. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  134. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  135. package/esm/components/QPopover/QPopover.vue.js +51 -28
  136. package/esm/components/QProgress/QProgress.vue.js +3 -3
  137. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  138. package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
  139. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
  140. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  141. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
  142. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  143. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
  144. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  145. package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
  146. package/esm/components/QPropertyList/constants.d.ts +2 -0
  147. package/esm/components/QPropertyList/constants.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/constants.js +5 -1
  149. package/esm/components/QPropertyList/index.d.ts +16 -4
  150. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  151. package/esm/components/QSection/QSection.d.ts.map +1 -1
  152. package/esm/components/QSection/QSection.vue.js +19 -18
  153. package/esm/components/QSelect/QSelect.d.ts +6 -4
  154. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  155. package/esm/components/QSelect/QSelect.vue.js +129 -124
  156. package/esm/components/QSelect/index.d.ts +3 -2
  157. package/esm/components/QSelect/index.d.ts.map +1 -1
  158. package/esm/components/QSidebar/QSidebar.d.ts +1 -1
  159. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  160. package/esm/components/QSidebar/QSidebar.vue.js +68 -67
  161. package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
  162. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  163. package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
  164. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  165. package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
  166. package/esm/components/QSidebar/context.d.ts +1 -1
  167. package/esm/components/QSidebar/context.d.ts.map +1 -1
  168. package/esm/components/QSidebar/types.d.ts +8 -0
  169. package/esm/components/QSidebar/types.d.ts.map +1 -1
  170. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  171. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
  172. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  173. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
  174. package/esm/components/QSteps/QStepHeader.d.ts +58 -0
  175. package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
  176. package/esm/components/QSteps/QStepHeader.vue.js +49 -0
  177. package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
  178. package/esm/components/QSteps/QSteps.d.ts +269 -0
  179. package/esm/components/QSteps/QSteps.d.ts.map +1 -0
  180. package/esm/components/QSteps/QSteps.vue.js +260 -0
  181. package/esm/components/QSteps/QSteps2.vue.js +5 -0
  182. package/esm/components/QSteps/QStepsNav.d.ts +59 -0
  183. package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
  184. package/esm/components/QSteps/QStepsNav.vue.js +42 -0
  185. package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
  186. package/esm/components/QSteps/constants.d.ts +28 -0
  187. package/esm/components/QSteps/constants.d.ts.map +1 -0
  188. package/esm/components/QSteps/constants.js +16 -0
  189. package/esm/components/QSteps/index.d.ts +228 -0
  190. package/esm/components/QSteps/index.d.ts.map +1 -0
  191. package/esm/components/QSteps/index.js +6 -0
  192. package/esm/components/QSteps/types.d.ts +190 -0
  193. package/esm/components/QSteps/types.d.ts.map +1 -0
  194. package/esm/components/QSwitch/QSwitch.vue.js +3 -3
  195. package/esm/components/QTabs/QTab.d.ts +1 -1
  196. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  197. package/esm/components/QTabs/QTab.vue.js +10 -12
  198. package/esm/components/QTabs/QTabs.d.ts +1 -1
  199. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  200. package/esm/components/QTabs/QTabs.vue.js +108 -107
  201. package/esm/components/QTabs/context.d.ts +1 -1
  202. package/esm/components/QTabs/context.d.ts.map +1 -1
  203. package/esm/components/QTabs/types.d.ts +1 -1
  204. package/esm/components/QTextArea/QTextArea.d.ts +1 -1
  205. package/esm/components/QTextArea/index.d.ts +3 -3
  206. package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
  207. package/esm/components/QToast/QToast.d.ts +2 -1
  208. package/esm/components/QToast/QToast.d.ts.map +1 -1
  209. package/esm/components/QToast/QToast.vue.js +95 -78
  210. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  211. package/esm/components/QToast/QToaster.vue.js +20 -19
  212. package/esm/components/QToast/constants.d.ts +3 -0
  213. package/esm/components/QToast/constants.d.ts.map +1 -1
  214. package/esm/components/QToast/constants.js +2 -2
  215. package/esm/components/QToast/index.d.ts +6 -0
  216. package/esm/components/QToast/index.d.ts.map +1 -1
  217. package/esm/components/QToast/types.d.ts +7 -1
  218. package/esm/components/QToast/types.d.ts.map +1 -1
  219. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  220. package/esm/components/QToggle/QToggle.vue.js +52 -15
  221. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
  222. package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
  223. package/esm/components/QTooltip/QTooltip.vue.js +5 -5
  224. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  225. package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
  226. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  227. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
  228. package/esm/components/index.d.ts +2 -0
  229. package/esm/components/index.d.ts.map +1 -1
  230. package/esm/components/index.js +108 -103
  231. package/esm/composables/useColor/index.d.ts +2 -0
  232. package/esm/composables/useColor/index.d.ts.map +1 -1
  233. package/esm/composables/useColor/index.js +49 -39
  234. package/esm/composables/useColor/types.d.ts +15 -0
  235. package/esm/composables/useColor/types.d.ts.map +1 -1
  236. package/esm/index.d.ts +3 -0
  237. package/esm/utils/color/contrast.d.ts +20 -0
  238. package/esm/utils/color/contrast.d.ts.map +1 -1
  239. package/esm/utils/color/contrast.js +24 -13
  240. package/esm/utils/color/merge.js +8 -8
  241. package/esm/utils/index.js +56 -54
  242. package/package.json +12 -6
  243. package/esm/components/QIcon/InlineSvg.d.ts +0 -110
  244. package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
  245. package/esm/components/QIcon/InlineSvg.js +0 -95
  246. package/esm/utils/time.d.ts +0 -36
  247. package/esm/utils/time.d.ts.map +0 -1
@@ -1,9 +1,10 @@
1
- import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, toDisplayString as l } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, toDisplayString as u, toRef as d, unref as f } from "vue";
2
3
  //#region src/components/QSection/QSection.vue?vue&type=script&setup=true&lang.ts
3
- var u = ["id"], d = {
4
+ var p = ["id"], m = {
4
5
  key: 0,
5
6
  class: "q-section__title"
6
- }, f = { class: "q-section__content" }, p = /*@__PURE__*/ a({
7
+ }, h = { class: "q-section__content" }, g = /*@__PURE__*/ o({
7
8
  __name: "QSection",
8
9
  props: {
9
10
  id: {},
@@ -13,25 +14,25 @@ var u = ["id"], d = {
13
14
  variant: { default: "default" },
14
15
  block: { type: Boolean }
15
16
  },
16
- setup(a) {
17
- let p = a, m = e(() => [
17
+ setup(o) {
18
+ let g = o, _ = e(d(g, "id")), v = t(() => [
18
19
  "q-section",
19
- p.variant === "default" ? void 0 : `q-section--${p.variant}`,
20
+ g.variant === "default" ? void 0 : `q-section--${g.variant}`,
20
21
  {
21
- "q-section--block": p.block,
22
- "q-section--borderless": p.borderless
22
+ "q-section--block": g.block,
23
+ "q-section--borderless": g.borderless
23
24
  },
24
- p.class
25
+ g.class
25
26
  ]);
26
- return (e, a) => (s(), n("div", {
27
- id: p.id,
28
- class: o(m.value)
29
- }, [p.title ? (s(), n("div", d, [
30
- c(e.$slots, "title.prepend"),
31
- i(" " + l(p.title) + " ", 1),
32
- c(e.$slots, "title.append")
33
- ])) : t("v-if", !0), r("div", f, [c(e.$slots, "default")])], 10, u));
27
+ return (e, t) => (c(), r("div", {
28
+ id: f(_),
29
+ class: s(v.value)
30
+ }, [g.title ? (c(), r("div", m, [
31
+ l(e.$slots, "title.prepend"),
32
+ a(" " + u(g.title) + " ", 1),
33
+ l(e.$slots, "title.append")
34
+ ])) : n("v-if", !0), i("div", h, [l(e.$slots, "default")])], 10, p));
34
35
  }
35
36
  });
36
37
  //#endregion
37
- export { p as default };
38
+ export { g as default };
@@ -255,6 +255,7 @@ declare function __VLS_template(): {
255
255
  $props: {
256
256
  readonly id?: string | undefined;
257
257
  readonly class?: string | unknown[] | undefined;
258
+ readonly label?: string | undefined;
258
259
  readonly modelValue?: any;
259
260
  readonly highlighted?: any;
260
261
  readonly items?: QListItemData[] | undefined;
@@ -274,7 +275,7 @@ declare function __VLS_template(): {
274
275
  $refs: {
275
276
  [x: string]: unknown;
276
277
  } & {
277
- listRef: unknown;
278
+ listRef: HTMLDivElement;
278
279
  listItemsRef: (({
279
280
  $: import('vue').ComponentInternalInstance;
280
281
  $data: {};
@@ -360,7 +361,7 @@ declare function __VLS_template(): {
360
361
  $parent: import('vue').ComponentPublicInstance | null;
361
362
  $host: Element | null;
362
363
  $emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
363
- $el: any;
364
+ $el: HTMLDivElement;
364
365
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
365
366
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
366
367
  onClick?: ((key: any) => any) | undefined;
@@ -683,6 +684,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
683
684
  $props: {
684
685
  readonly id?: string | undefined;
685
686
  readonly class?: string | unknown[] | undefined;
687
+ readonly label?: string | undefined;
686
688
  readonly modelValue?: any;
687
689
  readonly highlighted?: any;
688
690
  readonly items?: QListItemData[] | undefined;
@@ -702,7 +704,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
702
704
  $refs: {
703
705
  [x: string]: unknown;
704
706
  } & {
705
- listRef: unknown;
707
+ listRef: HTMLDivElement;
706
708
  listItemsRef: (({
707
709
  $: import('vue').ComponentInternalInstance;
708
710
  $data: {};
@@ -788,7 +790,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
788
790
  $parent: import('vue').ComponentPublicInstance | null;
789
791
  $host: Element | null;
790
792
  $emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
791
- $el: any;
793
+ $el: HTMLDivElement;
792
794
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
793
795
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
794
796
  onClick?: ((key: any) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"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,17 +1,17 @@
1
1
  import { useGroup as e } from "../../composables/useGroup/index.js";
2
- import { QSpinnerLoader as t } from "../QSpinnerLoader/index.js";
3
- import { QButton as n } from "../QButton/index.js";
4
- import { QIcon as r } from "../QIcon/index.js";
5
- import { QChevron as i } from "../__internal__/QChevron/index.js";
6
- import { useId as a } from "../../composables/useId/index.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
+ import { QSpinnerLoader as n } from "../QSpinnerLoader/index.js";
4
+ import { QButton as r } from "../QButton/index.js";
5
+ import { QIcon as i } from "../QIcon/index.js";
6
+ import { QChevron as a } from "../__internal__/QChevron/index.js";
7
7
  import { QBadge as o } from "../QBadge/index.js";
8
- import { QField as ee } from "../QField/index.js";
9
- import { QClearButton as te } from "../__internal__/QClearButton/index.js";
10
- import { QList as ne } from "../QList/index.js";
11
- import { QOverlay as re } from "../QOverlay/index.js";
12
- import { DEFAULT_ICONS as s, DEFAULT_TEXTS as ie } from "./constants.js";
13
- import { QPopover as ae } from "../QPopover/index.js";
14
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as oe, createSlots as se, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, onBeforeUnmount as ce, onMounted as le, openBlock as x, ref as ue, renderList as de, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useModel as fe, useTemplateRef as E, vModelText as pe, watch as D, withCtx as O, withDirectives as me, withModifiers as he } from "vue";
8
+ import { QList as ee } from "../QList/index.js";
9
+ import { QOverlay as te } from "../QOverlay/index.js";
10
+ import { QField as ne } from "../QField/index.js";
11
+ import { QClearButton as re } from "../__internal__/QClearButton/index.js";
12
+ import { DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
13
+ import { QPopover as ie } from "../QPopover/index.js";
14
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as ae, createSlots as oe, createTextVNode as m, createVNode as h, defineComponent as se, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, onBeforeUnmount as ce, onMounted as le, openBlock as x, ref as ue, renderList as de, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useModel as fe, useTemplateRef as E, vModelText as pe, watch as D, withCtx as O, withDirectives as me, withModifiers as he } from "vue";
15
15
  //#region src/components/QSelect/QSelect.vue?vue&type=script&setup=true&lang.ts
16
16
  var ge = {
17
17
  key: 0,
@@ -35,7 +35,7 @@ var ge = {
35
35
  ], xe = ["data-key"], Se = {
36
36
  key: 0,
37
37
  class: "q-select__loader"
38
- }, k = /*@__PURE__*/ h({
38
+ }, k = /*@__PURE__*/ se({
39
39
  inheritAttrs: !1,
40
40
  __name: "QSelect",
41
41
  props: /*@__PURE__*/ g({
@@ -65,7 +65,7 @@ var ge = {
65
65
  itemValue: { default: "key" },
66
66
  itemLabel: { default: "label" },
67
67
  icons: { default: () => s },
68
- texts: { default: () => ie }
68
+ texts: { default: () => c }
69
69
  }, {
70
70
  modelValue: {},
71
71
  modelModifiers: {},
@@ -81,67 +81,67 @@ var ge = {
81
81
  "show",
82
82
  "hide"
83
83
  ], ["update:modelValue", "update:open"]),
84
- setup(s, { expose: ie, emit: h }) {
85
- let g = s, k = h, A = fe(s, "modelValue"), j = a(w(g, "id")), M = l(() => `${j.value}_listbox`), { active: N } = e({
84
+ setup(s, { expose: c, emit: se }) {
85
+ let g = s, k = se, A = fe(s, "modelValue"), j = t(w(g, "id")), M = u(() => `${j.value}_input`), N = u(() => `${j.value}_listbox`), { active: P } = e({
86
86
  active: A,
87
87
  required: w(g, "required"),
88
88
  multiple: w(g, "multiple")
89
- }), P = fe(s, "open"), F = ue(0), I = !0, L = E("trigger"), Ce = E("input"), we = E("list"), R = E("content"), z = E("valueContainer"), B = E("allBadges"), Te = E("allPlainTexts"), Ee = E("hiddenItemsCountBadge"), V = null, H = null;
90
- function De() {
91
- H && clearTimeout(H), H = setTimeout(() => {
89
+ }), F = fe(s, "open"), I = ue(0), L = !0, R = E("trigger"), Ce = E("input"), we = E("list"), Te = E("content"), Ee = E("valueContainer"), De = E("allBadges"), Oe = E("allPlainTexts"), ke = E("hiddenItemsCountBadge"), z = null, B = null;
90
+ function Ae() {
91
+ B && clearTimeout(B), B = setTimeout(() => {
92
92
  $();
93
93
  }, 120);
94
94
  }
95
95
  le(() => {
96
96
  $();
97
- let e = L.value?.fieldRef;
98
- e && (V = new ResizeObserver(() => {
99
- De();
100
- }), V.observe(e));
97
+ let e = R.value?.fieldRef;
98
+ e && (z = new ResizeObserver(() => {
99
+ Ae();
100
+ }), z.observe(e));
101
101
  }), ce(() => {
102
- V?.disconnect(), H && clearTimeout(H);
102
+ z?.disconnect(), B && clearTimeout(B);
103
103
  });
104
- let U = l(() => W.value.length === 0), W = l(() => {
105
- if (g.multiple) return (A.value ?? []).map((e) => ke(e)).filter((e) => !!e);
106
- let e = A.value === void 0 ? void 0 : ke(A.value);
104
+ let V = u(() => H.value.length === 0), H = u(() => {
105
+ if (g.multiple) return (A.value ?? []).map((e) => Me(e)).filter((e) => !!e);
106
+ let e = A.value === void 0 ? void 0 : Me(A.value);
107
107
  return e ? [e] : [];
108
- }), Oe = l(() => {
108
+ }), je = u(() => {
109
109
  let e = /* @__PURE__ */ new Map();
110
110
  return g.items?.forEach((t, n) => {
111
111
  e.set(t.key, n);
112
112
  }), e;
113
- }), G = l(() => W.value?.map(q).filter(Boolean).join(", ")), K = l(() => g.clearable && !g.readonly && !g.disabled && !g.loading && !U.value);
114
- function ke(e) {
113
+ }), U = u(() => H.value?.map(G).filter(Boolean).join(", ")), W = u(() => g.clearable && !g.readonly && !g.disabled && !g.loading && !V.value);
114
+ function Me(e) {
115
115
  return g.items?.find((t) => t[g.itemValue] === e);
116
116
  }
117
- function Ae(e) {
118
- g.multiple && e < A.value.length && (!g.required || A.value.length > 1) ? N.value = A.value.toSpliced(e, 1) : Y();
117
+ function Ne(e) {
118
+ g.multiple && e < A.value.length && (!g.required || A.value.length > 1) ? P.value = A.value.toSpliced(e, 1) : q();
119
119
  }
120
- function q(e) {
120
+ function G(e) {
121
121
  return e?.[g.itemLabel] ?? "";
122
122
  }
123
- function je(e) {
124
- return e + 1 < W.value.length - F.value ? ", " : "";
123
+ function Pe(e) {
124
+ return e + 1 < H.value.length - I.value ? ", " : "";
125
125
  }
126
- function J(e) {
127
- Array.isArray(e) ? A.value = e.sort((e, t) => Oe.value.get(e) - Oe.value.get(t)) : (A.value = e, X());
126
+ function K(e) {
127
+ Array.isArray(e) ? A.value = e.sort((e, t) => je.value.get(e) - je.value.get(t)) : (A.value = e, Y());
128
128
  }
129
- function Y() {
130
- J(g.emptyValue), Re();
129
+ function q() {
130
+ K(g.emptyValue), Z();
131
131
  }
132
- function Me(e) {
133
- !R.value?.contains(e.relatedTarget) && !L.value?.fieldRef?.contains(e.relatedTarget) && X(!1);
132
+ function Fe(e) {
133
+ !Te.value?.contains(e.relatedTarget) && !R.value?.fieldRef?.contains(e.relatedTarget) && Y(!1);
134
134
  }
135
- function Ne() {
136
- P.value || g.readonly || g.disabled || (I = !0, k("before-show"), P.value = !0);
135
+ function J() {
136
+ F.value || g.readonly || g.disabled || (L = !0, k("before-show"), F.value = !0);
137
137
  }
138
- function X(e = !0) {
139
- P.value &&= (I = e, k("before-hide"), !1);
138
+ function Y(e = !0) {
139
+ F.value &&= (L = e, k("before-hide"), !1);
140
140
  }
141
- function Pe() {
142
- g.readonly || g.disabled || (P.value ? X() : Ne());
141
+ function Ie() {
142
+ g.readonly || g.disabled || (F.value ? Y() : J());
143
143
  }
144
- function Z(e) {
144
+ function X(e) {
145
145
  !e.key || g.readonly || g.disabled || ([
146
146
  "Enter",
147
147
  " ",
@@ -154,56 +154,57 @@ var ge = {
154
154
  "Enter",
155
155
  " ",
156
156
  "ArrowDown"
157
- ].includes(e.key) && Ne(), ["Escape", "Tab"].includes(e.key) && (P.value ? X(e.key !== "Tab") : K.value && e.key === "Escape" && Y()), K.value && e.key === "Delete" && Y());
157
+ ].includes(e.key) && J(), ["Escape", "Tab"].includes(e.key) && (F.value ? Y(e.key !== "Tab") : W.value && e.key === "Escape" && q()), W.value && e.key === "Delete" && q());
158
158
  }
159
- function Fe(e) {
160
- e.key.length === 1 && e.preventDefault(), Z(e);
159
+ function Le(e) {
160
+ e.key.length === 1 && e.preventDefault(), X(e);
161
161
  }
162
- async function Ie() {
163
- await v(), g.loading ? R.value?.focus() : Q(), k("show");
162
+ async function Re() {
163
+ await v(), g.loading ? Te.value?.focus() : Q(), k("show");
164
164
  }
165
- function Le() {
166
- I && Re(), I = !0, k("hide");
165
+ function ze() {
166
+ L && Z(), L = !0, k("hide");
167
167
  }
168
- function Re() {
168
+ function Z() {
169
169
  Ce.value?.focus();
170
170
  }
171
171
  function Q() {
172
172
  we.value?.$el.focus();
173
173
  }
174
174
  async function $() {
175
- if (await v(), await v(), !g.multiple || !z.value || U.value) {
176
- F.value = 0;
175
+ if (await v(), await v(), !g.multiple || !Ee.value || V.value) {
176
+ I.value = 0;
177
177
  return;
178
178
  }
179
- let e = z.value.offsetWidth, t = Ee.value?.$el.scrollWidth ?? 30, n = t, r = 0;
180
- if (g.badges) for (let i of B.value ?? []) {
179
+ let e = Ee.value.offsetWidth, t = ke.value?.$el.scrollWidth ?? 30, n = t, r = 0;
180
+ if (g.badges) for (let i of De.value ?? []) {
181
181
  let a = i.$el.scrollWidth + 4;
182
182
  if (n + t + a <= e) n += a, r++;
183
183
  else break;
184
184
  }
185
- else for (let i of Te.value ?? []) {
185
+ else for (let i of Oe.value ?? []) {
186
186
  let a = i.scrollWidth + 4;
187
187
  if (n + t + a <= e) n += a, r++;
188
188
  else break;
189
189
  }
190
- F.value = (g.badges ? B.value?.length ?? 0 : Te.value?.length ?? 0) - r;
190
+ I.value = (g.badges ? De.value?.length ?? 0 : Oe.value?.length ?? 0) - r;
191
191
  }
192
192
  return D(() => g.loading, (e) => {
193
- !e && P.value && v(Q);
194
- }), D(() => g.badges, $), D(W, $, { deep: !0 }), D(() => g.clearable, $), D([
195
- P,
193
+ !e && F.value && v(Q);
194
+ }), D(() => g.badges, $), D(H, $, { deep: !0 }), D(() => g.clearable, $), D([
195
+ F,
196
196
  () => g.readonly,
197
197
  () => g.disabled
198
198
  ], ([e, t, n]) => {
199
- e && (t || n) && X(!1);
199
+ e && (t || n) && Y(!1);
200
200
  }, {
201
201
  flush: "sync",
202
202
  immediate: !0
203
- }), D(N, J), ie({ focusList: Q }), (e, a) => (x(), f(c, null, [m(T(ee), {
203
+ }), D(P, K), c({ focusList: Q }), (e, t) => (x(), p(l, null, [h(T(ne), {
204
204
  id: T(j),
205
205
  ref: "trigger",
206
206
  label: g.label,
207
+ for: M.value,
207
208
  "label-position": g.labelPosition,
208
209
  required: g.required,
209
210
  class: y([
@@ -219,18 +220,18 @@ var ge = {
219
220
  "data-loading": g.loading,
220
221
  size: g.size,
221
222
  invalid: g.invalid,
222
- onClick: Pe,
223
- onKeydown: Z
224
- }, se({
223
+ onClick: Ie,
224
+ onKeydown: X
225
+ }, oe({
225
226
  append: O(() => [
226
227
  S(e.$slots, "append"),
227
- K.value ? (x(), u(T(te), {
228
+ W.value ? (x(), d(T(re), {
228
229
  key: 0,
229
230
  icons: g.icons,
230
231
  texts: g.texts,
231
- onClick: Y
232
- }, null, 8, ["icons", "texts"])) : d("v-if", !0),
233
- g.readonly ? d("v-if", !0) : (x(), u(T(n), {
232
+ onClick: q
233
+ }, null, 8, ["icons", "texts"])) : f("v-if", !0),
234
+ g.readonly ? f("v-if", !0) : (x(), d(T(r), {
234
235
  key: 1,
235
236
  class: "q-select__chevron",
236
237
  "aria-label": g.texts.showOptions,
@@ -239,35 +240,35 @@ var ge = {
239
240
  borderless: "",
240
241
  tabindex: -1,
241
242
  disabled: g.disabled,
242
- onClick: Pe
243
+ onClick: Ie
243
244
  }, {
244
- default: O(() => [m(T(i), {
245
- "model-value": P.value,
245
+ default: O(() => [h(T(a), {
246
+ "model-value": F.value,
246
247
  icons: g.icons
247
248
  }, null, 8, ["model-value", "icons"])]),
248
249
  _: 1
249
250
  }, 8, ["aria-label", "disabled"]))
250
251
  ]),
251
252
  default: O(() => [S(e.$slots, "value", {
252
- empty: U.value,
253
- items: W.value,
253
+ empty: V.value,
254
+ items: H.value,
254
255
  value: A.value
255
- }, () => [U.value ? (x(), f("span", ye, [!g.readonly && !g.disabled ? (x(), f(c, { key: 0 }, [p(C(g.texts.placeholder), 1)], 64)) : d("v-if", !0)])) : (x(), f(c, { key: 0 }, [g.badges || g.multiple ? (x(), f("span", ge, [g.multiple ? (x(), f(c, { key: 0 }, [
256
- (x(!0), f(c, null, de(W.value, (e, t) => (x(), f(c, { key: `visible-${t}` }, [t < W.value.length - F.value ? (x(), f(c, { key: 0 }, [g.badges ? (x(), u(T(o), {
256
+ }, () => [V.value ? (x(), p("span", ye, [!g.readonly && !g.disabled ? (x(), p(l, { key: 0 }, [m(C(g.texts.placeholder), 1)], 64)) : f("v-if", !0)])) : (x(), p(l, { key: 0 }, [g.badges || g.multiple ? (x(), p("span", ge, [g.multiple ? (x(), p(l, { key: 0 }, [
257
+ (x(!0), p(l, null, de(H.value, (e, t) => (x(), p(l, { key: `visible-${t}` }, [t < H.value.length - I.value ? (x(), p(l, { key: 0 }, [g.badges ? (x(), d(T(o), {
257
258
  key: 0,
258
259
  pill: "",
259
260
  size: "small",
260
261
  focusable: !1,
261
262
  color: g.readonly || g.disabled ? "neutral" : void 0,
262
263
  disabled: g.readonly || g.disabled,
263
- removable: !g.readonly && !g.disabled && (!g.required || W.value.length > 1),
264
+ removable: !g.readonly && !g.disabled && (!g.required || H.value.length > 1),
264
265
  texts: g.texts,
265
- "onClick:remove": () => Ae(t)
266
+ "onClick:remove": () => Ne(t)
266
267
  }, {
267
- default: O(() => [e?.icon ? (x(), u(T(r), _({
268
+ default: O(() => [e?.icon ? (x(), d(T(i), _({
268
269
  key: 0,
269
270
  ref_for: !0
270
- }, e.icon), null, 16)) : d("v-if", !0), p(" " + C(q(e)), 1)]),
271
+ }, e.icon), null, 16)) : f("v-if", !0), m(" " + C(G(e)), 1)]),
271
272
  _: 2
272
273
  }, 1032, [
273
274
  "color",
@@ -275,26 +276,26 @@ var ge = {
275
276
  "removable",
276
277
  "texts",
277
278
  "onClick:remove"
278
- ])) : g.multiple ? (x(), f("span", _e, C(q(e) + je(t)), 1)) : d("v-if", !0)], 64)) : d("v-if", !0)], 64))), 128)),
279
- F.value > 0 ? (x(), f(c, { key: 0 }, [m(T(o), {
279
+ ])) : g.multiple ? (x(), p("span", _e, C(G(e) + Pe(t)), 1)) : f("v-if", !0)], 64)) : f("v-if", !0)], 64))), 128)),
280
+ I.value > 0 ? (x(), p(l, { key: 0 }, [h(T(o), {
280
281
  ref: "hiddenItemsCountBadge",
281
282
  pill: "",
282
283
  size: "small",
283
284
  focusable: !1,
284
285
  class: y(["q-select__badge-count", { "q-select__badge-count--clickable": g.readonly || g.disabled }])
285
286
  }, {
286
- default: O(() => [p(" +" + C(F.value), 1)]),
287
+ default: O(() => [m(" +" + C(I.value), 1)]),
287
288
  _: 1
288
- }, 8, ["class"]), g.readonly || g.disabled ? (x(), u(T(ae), {
289
+ }, 8, ["class"]), g.readonly || g.disabled ? (x(), d(T(ie), {
289
290
  key: 0,
290
- anchor: Ee.value?.$el,
291
- text: G.value,
291
+ anchor: ke.value?.$el,
292
+ text: U.value,
292
293
  placement: "bottom-start"
293
294
  }, {
294
- default: O(() => [p(C(G.value), 1)]),
295
+ default: O(() => [m(C(U.value), 1)]),
295
296
  _: 1
296
- }, 8, ["anchor", "text"])) : d("v-if", !0)], 64)) : d("v-if", !0),
297
- (x(!0), f(c, null, de(W.value, (e, t) => (x(), f(c, { key: `measure-${t}` }, [g.badges ? (x(), u(T(o), {
297
+ }, 8, ["anchor", "text"])) : f("v-if", !0)], 64)) : f("v-if", !0),
298
+ (x(!0), p(l, null, de(H.value, (e, t) => (x(), p(l, { key: `measure-${t}` }, [g.badges ? (x(), d(T(o), {
298
299
  key: 0,
299
300
  ref_for: !0,
300
301
  ref: "allBadges",
@@ -304,20 +305,20 @@ var ge = {
304
305
  color: g.readonly || g.disabled ? "neutral" : void 0,
305
306
  disabled: "",
306
307
  class: "q-select__badge-hidden",
307
- removable: !g.readonly && !g.disabled && (!g.required || W.value.length > 1)
308
+ removable: !g.readonly && !g.disabled && (!g.required || H.value.length > 1)
308
309
  }, {
309
- default: O(() => [e?.icon ? (x(), u(T(r), _({
310
+ default: O(() => [e?.icon ? (x(), d(T(i), _({
310
311
  key: 0,
311
312
  ref_for: !0
312
- }, e.icon), null, 16)) : d("v-if", !0), p(" " + C(q(e)), 1)]),
313
+ }, e.icon), null, 16)) : f("v-if", !0), m(" " + C(G(e)), 1)]),
313
314
  _: 2
314
- }, 1032, ["color", "removable"])) : g.multiple ? (x(), f("span", {
315
+ }, 1032, ["color", "removable"])) : g.multiple ? (x(), p("span", {
315
316
  key: 1,
316
317
  ref_for: !0,
317
318
  ref: "allPlainTexts",
318
319
  class: "q-select__multi-value--hidden"
319
- }, C(q(e) + je(t)), 513)) : d("v-if", !0)], 64))), 128))
320
- ], 64)) : (x(), u(T(o), {
320
+ }, C(G(e) + Pe(t)), 513)) : f("v-if", !0)], 64))), 128))
321
+ ], 64)) : (x(), d(T(o), {
321
322
  key: 1,
322
323
  pill: "",
323
324
  size: "small",
@@ -325,35 +326,35 @@ var ge = {
325
326
  disabled: g.readonly || g.disabled,
326
327
  removable: !g.readonly && !g.disabled && !g.required,
327
328
  texts: g.texts,
328
- "onClick:remove": Y
329
+ "onClick:remove": q
329
330
  }, {
330
- default: O(() => [W.value[0]?.icon ? (x(), u(T(r), b(_({ key: 0 }, W.value[0].icon)), null, 16)) : d("v-if", !0), p(" " + C(q(W.value[0])), 1)]),
331
+ default: O(() => [H.value[0]?.icon ? (x(), d(T(i), b(_({ key: 0 }, H.value[0].icon)), null, 16)) : f("v-if", !0), m(" " + C(G(H.value[0])), 1)]),
331
332
  _: 1
332
333
  }, 8, [
333
334
  "disabled",
334
335
  "removable",
335
336
  "texts"
336
- ]))], 512)) : (x(), f("span", ve, C(G.value), 1))], 64))]), me(oe("input", _({
337
- id: `${T(j)}_input`,
337
+ ]))], 512)) : (x(), p("span", ve, C(U.value), 1))], 64))]), me(ae("input", _({
338
+ id: M.value,
338
339
  ref: "input"
339
340
  }, e.$attrs, {
340
- "onUpdate:modelValue": a[0] ||= (e) => G.value = e,
341
+ "onUpdate:modelValue": t[0] ||= (e) => U.value = e,
341
342
  class: "q-select__input",
342
343
  inputmode: "none",
343
344
  type: "text",
344
345
  autocomplete: "off",
345
346
  tabindex: g.disabled ? -1 : 0,
346
347
  role: "combobox",
347
- "aria-expanded": P.value,
348
- "aria-controls": P.value ? M.value : void 0,
348
+ "aria-expanded": F.value,
349
+ "aria-controls": F.value ? N.value : void 0,
349
350
  "aria-haspopup": "listbox",
350
- "aria-keyshortcuts": K.value ? "Delete" : void 0,
351
- onKeydown: Fe
352
- }), null, 16, be), [[pe, G.value]])]),
351
+ "aria-keyshortcuts": W.value ? "Delete" : void 0,
352
+ onKeydown: Le
353
+ }), null, 16, be), [[pe, U.value]])]),
353
354
  _: 2
354
- }, [W.value.length === 1 && W.value[0].icon && !g.badges || e.$slots.prepend ? {
355
+ }, [H.value.length === 1 && H.value[0].icon && !g.badges || e.$slots.prepend ? {
355
356
  name: "prepend",
356
- fn: O(() => [S(e.$slots, "prepend"), W.value.length === 1 && W.value[0].icon && !g.badges ? (x(), u(T(r), b(_({ key: 0 }, W.value[0].icon)), null, 16)) : d("v-if", !0)]),
357
+ fn: O(() => [S(e.$slots, "prepend"), H.value.length === 1 && H.value[0].icon && !g.badges ? (x(), d(T(i), b(_({ key: 0 }, H.value[0].icon)), null, 16)) : f("v-if", !0)]),
357
358
  key: "0"
358
359
  } : void 0, e.$slots.extras ? {
359
360
  name: "extras",
@@ -362,6 +363,7 @@ var ge = {
362
363
  } : void 0]), 1032, [
363
364
  "id",
364
365
  "label",
366
+ "for",
365
367
  "label-position",
366
368
  "required",
367
369
  "class",
@@ -370,35 +372,37 @@ var ge = {
370
372
  "data-loading",
371
373
  "size",
372
374
  "invalid"
373
- ]), m(T(re), {
374
- modelValue: P.value,
375
- "onUpdate:modelValue": a[1] ||= (e) => P.value = e,
375
+ ]), h(T(te), {
376
+ modelValue: F.value,
377
+ "onUpdate:modelValue": t[1] ||= (e) => F.value = e,
376
378
  spy: "",
379
+ "non-modal": "",
377
380
  trigger: "manual",
378
381
  placement: "bottom-start",
379
382
  width: "anchor",
380
383
  "scroll-lock": "",
381
384
  inline: g.inline,
382
- anchor: g.overlayAnchor ?? L.value?.fieldRef,
385
+ anchor: g.overlayAnchor ?? R.value?.fieldRef,
383
386
  offset: 2,
384
- onEnter: Ie,
385
- onLeave: Le
387
+ onEnter: Re,
388
+ onLeave: ze
386
389
  }, {
387
- default: O(() => [oe("div", {
390
+ default: O(() => [ae("div", {
388
391
  ref: "content",
389
392
  "data-testid": "combobox-dropdown",
390
393
  "data-key": T(j),
391
394
  class: "q-select__body",
392
395
  tabindex: "-1",
393
- onFocusout: Me,
394
- onKeydown: he(Z, ["stop"])
396
+ onFocusout: Fe,
397
+ onKeydown: he(X, ["stop"])
395
398
  }, [
396
399
  S(e.$slots, "body.prepend"),
397
- g.loading ? (x(), f("div", Se, [m(T(t), { size: 24 })])) : (x(), u(T(ne), {
400
+ g.loading ? (x(), p("div", Se, [h(T(n), { size: 24 })])) : (x(), d(T(ee), {
398
401
  key: 1,
399
- id: M.value,
402
+ id: N.value,
400
403
  ref: "list",
401
404
  class: "q-select__items",
405
+ label: g.label,
402
406
  selectable: "",
403
407
  required: g.required,
404
408
  multiple: g.multiple,
@@ -408,12 +412,13 @@ var ge = {
408
412
  "item-label": g.itemLabel,
409
413
  "item-value": g.itemValue,
410
414
  "select-on-tab": g.selectOnTab,
411
- "onUpdate:modelValue": J
415
+ "onUpdate:modelValue": K
412
416
  }, {
413
417
  item: O(({ item: t }) => [S(e.$slots, "item", { item: t })]),
414
418
  _: 3
415
419
  }, 8, [
416
420
  "id",
421
+ "label",
417
422
  "required",
418
423
  "multiple",
419
424
  "model-value",
@@ -279,6 +279,7 @@ declare const QSelect: {
279
279
  $props: {
280
280
  readonly id?: string | undefined;
281
281
  readonly class?: string | unknown[] | undefined;
282
+ readonly label?: string | undefined;
282
283
  readonly modelValue?: any;
283
284
  readonly highlighted?: any;
284
285
  readonly items?: import('..').QListItemData[] | undefined;
@@ -298,7 +299,7 @@ declare const QSelect: {
298
299
  $refs: {
299
300
  [x: string]: unknown;
300
301
  } & {
301
- listRef: unknown;
302
+ listRef: HTMLDivElement;
302
303
  listItemsRef: (({
303
304
  $: import('vue').ComponentInternalInstance;
304
305
  $data: {};
@@ -384,7 +385,7 @@ declare const QSelect: {
384
385
  $parent: import('vue').ComponentPublicInstance | null;
385
386
  $host: Element | null;
386
387
  $emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
387
- $el: any;
388
+ $el: HTMLDivElement;
388
389
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
389
390
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
390
391
  onClick?: ((key: any) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOq70B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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