@quidgest/ui 0.29.0 → 0.30.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 (245) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +2 -20
  3. package/dist/json/api.json +1059 -803
  4. package/dist/ui.css +77 -29
  5. package/dist/ui.esm.js +1093 -994
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.scss +75 -24
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QAccordion/QAccordion.vue.js +2 -0
  10. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
  11. package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
  12. package/esm/components/QAccordion/index.d.ts +3 -0
  13. package/esm/components/QAccordion/index.d.ts.map +1 -1
  14. package/esm/components/QAccordion/types.d.ts +8 -0
  15. package/esm/components/QAccordion/types.d.ts.map +1 -1
  16. package/esm/components/QAlert/QAlert.d.ts +1 -1
  17. package/esm/components/QAlert/index.d.ts +3 -3
  18. package/esm/components/QAvatar/QAvatar.d.ts +1 -1
  19. package/esm/components/QAvatar/index.d.ts +3 -3
  20. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  21. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
  22. package/esm/components/QBadgeIndicator/types.d.ts +13 -0
  23. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  24. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
  25. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
  26. package/esm/components/QButton/QButton.d.ts.map +1 -1
  27. package/esm/components/QButton/QButton.vue.js +54 -48
  28. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  29. package/esm/components/QCard/QCard.d.ts.map +1 -1
  30. package/esm/components/QCard/QCard.vue.js +48 -32
  31. package/esm/components/QCard/types.d.ts +9 -0
  32. package/esm/components/QCard/types.d.ts.map +1 -1
  33. package/esm/components/QCarousel/QCarousel.d.ts +1 -0
  34. package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
  35. package/esm/components/QCarousel/QCarousel.vue.js +84 -80
  36. package/esm/components/QCarousel/index.d.ts +6 -0
  37. package/esm/components/QCarousel/index.d.ts.map +1 -1
  38. package/esm/components/QCarousel/types.d.ts +9 -1
  39. package/esm/components/QCarousel/types.d.ts.map +1 -1
  40. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  41. package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
  42. package/esm/components/QCheckbox/index.d.ts +3 -0
  43. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  44. package/esm/components/QCheckbox/types.d.ts +8 -0
  45. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  46. package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
  47. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  48. package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
  49. package/esm/components/QCollapsible/index.d.ts +6 -0
  50. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  51. package/esm/components/QCollapsible/types.d.ts +9 -0
  52. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  53. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  54. package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
  55. package/esm/components/QColorPicker/index.d.ts +3 -0
  56. package/esm/components/QColorPicker/index.d.ts.map +1 -1
  57. package/esm/components/QColorPicker/types.d.ts +7 -0
  58. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  59. package/esm/components/QCombobox/QCombobox.d.ts +7 -0
  60. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  61. package/esm/components/QCombobox/QCombobox.vue.js +258 -235
  62. package/esm/components/QCombobox/constants.d.ts +1 -0
  63. package/esm/components/QCombobox/constants.d.ts.map +1 -1
  64. package/esm/components/QCombobox/constants.js +1 -0
  65. package/esm/components/QCombobox/index.d.ts +11 -0
  66. package/esm/components/QCombobox/index.d.ts.map +1 -1
  67. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
  68. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  69. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
  70. package/esm/components/QDateTimePicker/index.d.ts +90 -0
  71. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  72. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  73. package/esm/components/QDialog/QDialog.vue.js +2 -0
  74. package/esm/components/QDialog/types.d.ts +3 -1
  75. package/esm/components/QDialog/types.d.ts.map +1 -1
  76. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
  77. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  78. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
  79. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
  80. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  81. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
  82. package/esm/components/QDropdownMenu/ids.d.ts +8 -0
  83. package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
  84. package/esm/components/QDropdownMenu/ids.js +6 -0
  85. package/esm/components/QDropdownMenu/index.d.ts +9 -3
  86. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  87. package/esm/components/QDropdownMenu/types.d.ts +3 -1
  88. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  89. package/esm/components/QField/QField.d.ts +2 -0
  90. package/esm/components/QField/QField.d.ts.map +1 -1
  91. package/esm/components/QField/QField.vue.js +68 -61
  92. package/esm/components/QField/ids.d.ts +15 -0
  93. package/esm/components/QField/ids.d.ts.map +1 -0
  94. package/esm/components/QField/ids.js +10 -0
  95. package/esm/components/QField/index.d.ts +2 -0
  96. package/esm/components/QField/index.d.ts.map +1 -1
  97. package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
  98. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  99. package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
  100. package/esm/components/QFileUpload/constants.d.ts +2 -0
  101. package/esm/components/QFileUpload/constants.d.ts.map +1 -1
  102. package/esm/components/QFileUpload/constants.js +3 -1
  103. package/esm/components/QFileUpload/index.d.ts +182 -0
  104. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  105. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  106. package/esm/components/QIcon/QIconFont.vue.js +2 -1
  107. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  108. package/esm/components/QIcon/QIconImg.vue.js +1 -0
  109. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  110. package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
  111. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  112. package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
  113. package/esm/components/QInputGroup/index.d.ts +3 -0
  114. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  115. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  116. package/esm/components/QLabel/QLabel.vue.js +21 -19
  117. package/esm/components/QLabel/ids.d.ts +9 -0
  118. package/esm/components/QLabel/ids.d.ts.map +1 -0
  119. package/esm/components/QLabel/ids.js +6 -0
  120. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  121. package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
  122. package/esm/components/QList/QList.d.ts +3 -3
  123. package/esm/components/QList/QList.d.ts.map +1 -1
  124. package/esm/components/QList/QList.vue.js +135 -117
  125. package/esm/components/QList/QListItem.d.ts.map +1 -1
  126. package/esm/components/QList/QListItem.vue.js +54 -50
  127. package/esm/components/QList/context.d.ts +8 -0
  128. package/esm/components/QList/context.d.ts.map +1 -0
  129. package/esm/components/QList/context.js +4 -0
  130. package/esm/components/QMeter/QMeter.d.ts.map +1 -1
  131. package/esm/components/QMeter/QMeter.vue.js +38 -19
  132. package/esm/components/QMeter/index.d.ts +2 -10
  133. package/esm/components/QMeter/index.d.ts.map +1 -1
  134. package/esm/components/QMeter/types.d.ts +9 -1
  135. package/esm/components/QMeter/types.d.ts.map +1 -1
  136. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  137. package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
  138. package/esm/components/QObfuscation/index.d.ts.map +1 -1
  139. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  140. package/esm/components/QOverflow/QOverflow.vue.js +94 -73
  141. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  142. package/esm/components/QOverlay/QOverlay.vue.js +162 -132
  143. package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
  144. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  145. package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
  146. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
  147. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
  148. package/esm/components/QPasswordField/index.d.ts +2 -0
  149. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  150. package/esm/components/QPasswordField/types.d.ts +4 -0
  151. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  152. package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
  153. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  154. package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
  155. package/esm/components/QPhoneField/constants.d.ts +2 -1
  156. package/esm/components/QPhoneField/constants.d.ts.map +1 -1
  157. package/esm/components/QPhoneField/constants.js +1 -1
  158. package/esm/components/QPhoneField/index.d.ts +26 -8
  159. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  160. package/esm/components/QPhoneField/types.d.ts +5 -2
  161. package/esm/components/QPhoneField/types.d.ts.map +1 -1
  162. package/esm/components/QPopover/QPopover.d.ts +1 -1
  163. package/esm/components/QPopover/index.d.ts +3 -3
  164. package/esm/components/QProgress/QProgress.d.ts.map +1 -1
  165. package/esm/components/QProgress/QProgress.vue.js +1 -1
  166. package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
  167. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  168. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  169. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  170. package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
  171. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  172. package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
  173. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
  174. package/esm/components/QSection/QSection.d.ts.map +1 -1
  175. package/esm/components/QSection/QSection.vue.js +3 -2
  176. package/esm/components/QSection/types.d.ts +3 -4
  177. package/esm/components/QSection/types.d.ts.map +1 -1
  178. package/esm/components/QSelect/QSelect.d.ts +6 -0
  179. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  180. package/esm/components/QSelect/QSelect.vue.js +405 -355
  181. package/esm/components/QSelect/constants.d.ts +2 -0
  182. package/esm/components/QSelect/constants.d.ts.map +1 -1
  183. package/esm/components/QSelect/constants.js +3 -1
  184. package/esm/components/QSelect/index.d.ts +8 -0
  185. package/esm/components/QSelect/index.d.ts.map +1 -1
  186. package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
  187. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  188. package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
  189. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  190. package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
  191. package/esm/components/QSidebar/index.d.ts +3 -0
  192. package/esm/components/QSidebar/index.d.ts.map +1 -1
  193. package/esm/components/QSidebar/types.d.ts +20 -1
  194. package/esm/components/QSidebar/types.d.ts.map +1 -1
  195. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  196. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +16 -15
  197. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  198. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
  199. package/esm/components/QSteps/QSteps.d.ts +3 -2
  200. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  201. package/esm/components/QSteps/QSteps.vue.js +171 -152
  202. package/esm/components/QSteps/QStepsNav.d.ts +7 -0
  203. package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
  204. package/esm/components/QSteps/QStepsNav.vue.js +29 -15
  205. package/esm/components/QSteps/constants.d.ts +4 -2
  206. package/esm/components/QSteps/constants.d.ts.map +1 -1
  207. package/esm/components/QSteps/constants.js +2 -0
  208. package/esm/components/QSwitch/QSwitch.d.ts +2 -0
  209. package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
  210. package/esm/components/QSwitch/QSwitch.vue.js +12 -2
  211. package/esm/components/QSwitch/index.d.ts +4 -0
  212. package/esm/components/QSwitch/index.d.ts.map +1 -1
  213. package/esm/components/QSwitch/types.d.ts +8 -0
  214. package/esm/components/QSwitch/types.d.ts.map +1 -1
  215. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  216. package/esm/components/QTabs/QTab.vue.js +1 -0
  217. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  218. package/esm/components/QTextArea/QTextArea.vue.js +6 -2
  219. package/esm/components/QTextField/QTextField.d.ts +4 -0
  220. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  221. package/esm/components/QTextField/QTextField.vue.js +5 -3
  222. package/esm/components/QTextField/index.d.ts +2 -0
  223. package/esm/components/QTextField/index.d.ts.map +1 -1
  224. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  225. package/esm/components/QToast/QToast.d.ts +1 -0
  226. package/esm/components/QToast/QToast.d.ts.map +1 -1
  227. package/esm/components/QToast/QToast.vue.js +89 -85
  228. package/esm/components/QToast/index.d.ts +6 -0
  229. package/esm/components/QToast/index.d.ts.map +1 -1
  230. package/esm/components/QToast/types.d.ts +8 -0
  231. package/esm/components/QToast/types.d.ts.map +1 -1
  232. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  233. package/esm/components/QTooltip/QTooltip.vue.js +19 -11
  234. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  235. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
  236. package/esm/index.d.ts.map +1 -1
  237. package/esm/utils/focus.d.ts +10 -0
  238. package/esm/utils/focus.d.ts.map +1 -1
  239. package/esm/utils/focus.js +5 -2
  240. package/esm/utils/loader.d.ts +19 -0
  241. package/esm/utils/loader.d.ts.map +1 -0
  242. package/esm/utils/loader.js +6 -0
  243. package/package.json +24 -23
  244. package/dist/ui.js +0 -1846
  245. package/dist/ui.min.js +0 -1846
@@ -3,7 +3,15 @@ import { QLabelProps } from '../QLabel';
3
3
  * Props interface for QMeter component.
4
4
  * @extends {QLabelProps}
5
5
  */
6
- export type QMeterProps = QLabelProps & {
6
+ export type QMeterProps = Omit<QLabelProps, 'label'> & {
7
+ /**
8
+ * The label shown above the meter, which also names it for assistive technology. A meter
9
+ * without a visible label needs a name another way: pass `aria-label`, which lands on the
10
+ * `role="meter"` element.
11
+ *
12
+ * @category Content
13
+ */
14
+ label?: string;
7
15
  /**
8
16
  * Label to display next to the meter value.
9
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE9D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE9D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QObfuscation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/QObfuscation.vue"],"names":[],"mappings":"AA4FA;AA8VC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAgBpC,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAoOtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+LT,OAAO,IAA6B;;kBApZtC,CAAC,KAAK,EAAE;YACjB,sBAAsB,EAAE,SAAS,CAAA;YACjC,MAAM,EAAE,MAAM,IAAI,CAAA;YAClB,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,OAAO,CAAA;YAChB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,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
- import { QHelpPopover as n } from "../__internal__/QHelpPopover/index.js";
4
- import { resolveHelp as r } from "../__internal__/QHelpPopover/resolveHelp.js";
5
- import { QButton as i } from "../QButton/index.js";
6
- import { QField as a } from "../QField/index.js";
7
- import { DEFAULT_ICONS as o, DEFAULT_TEXTS as s } from "./constants.js";
8
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, defineComponent as _, h as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, onBeforeMount as C, onBeforeUnmount as w, openBlock as T, ref as E, renderSlot as D, toDisplayString as O, toRef as k, unref as A, useModel as j, watch as M, withCtx as N } from "vue";
3
+ import { getTabbableElements as n } from "../../utils/focus.js";
4
+ import { QHelpPopover as r } from "../__internal__/QHelpPopover/index.js";
5
+ import { resolveHelp as i } from "../__internal__/QHelpPopover/resolveHelp.js";
6
+ import { QButton as a } from "../QButton/index.js";
7
+ import { QField as o } from "../QField/index.js";
8
+ import { DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
9
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as ee, createVNode as g, defineComponent as _, h as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, onBeforeMount as C, onBeforeUnmount as w, openBlock as T, ref as E, renderSlot as D, toDisplayString as O, toRef as k, unref as A, useModel as j, watch as M, withCtx as N } from "vue";
9
10
  //#region src/components/QObfuscation/QObfuscation.vue?vue&type=script&setup=true&lang.ts
10
11
  var P = ["id"], F = ["id"], I = {
11
12
  key: 1,
@@ -24,8 +25,8 @@ var P = ["id"], F = ["id"], I = {
24
25
  labelPosition: { default: "topleft" },
25
26
  help: {},
26
27
  helpDisplay: {},
27
- icons: { default: () => o },
28
- texts: { default: () => s },
28
+ icons: { default: () => s },
29
+ texts: { default: () => c },
29
30
  size: { default: "medium" },
30
31
  readonly: { type: Boolean },
31
32
  disabled: { type: Boolean },
@@ -48,16 +49,16 @@ var P = ["id"], F = ["id"], I = {
48
49
  revealedModifiers: {}
49
50
  }),
50
51
  emits: /*@__PURE__*/ y(["reveal", "hide"], ["update:revealed"]),
51
- setup(o, { emit: s }) {
52
- let y = o, L = s, R = j(o, "revealed"), z = e(k(y, "id")), B = e(), V = E(0), H = E(!1), U = l(() => y.revealable && R.value && !y.loading), W = l(() => V.value > 0), G = l(() => {
52
+ setup(s, { emit: c }) {
53
+ let y = s, L = c, R = j(s, "revealed"), z = e(k(y, "id")), B = e(), V = E(0), H = E(!1), U = u(() => y.revealable && R.value && !y.loading), W = u(() => V.value > 0), G = u(() => {
53
54
  if (!(U.value && (!H.value || W.value))) return y.label;
54
- }), K = l(() => U.value && H.value && !W.value), q = l(() => r({
55
+ }), K = u(() => U.value && H.value && !W.value), q = u(() => i({
55
56
  help: y.help,
56
57
  helpDisplay: y.helpDisplay
57
- })), J = l(() => U.value && (!H.value || W.value) && !!q.value.popoverText), Y = l(() => ({
58
+ })), J = u(() => U.value && (!H.value || W.value) && !!q.value.popoverText), Y = u(() => ({
58
59
  help: J.value ? void 0 : y.help,
59
60
  helpDisplay: J.value ? void 0 : y.helpDisplay
60
- })), X = l(() => y.mask === "bullets" ? "•".repeat(y.bulletCount) : y.texts.restricted), Z = l(() => [
61
+ })), X = u(() => y.mask === "bullets" ? "•".repeat(y.bulletCount) : y.texts.restricted), Z = u(() => [
61
62
  "q-obfuscation",
62
63
  {
63
64
  "q-obfuscation--revealable": y.revealable,
@@ -85,7 +86,7 @@ var P = ["id"], F = ["id"], I = {
85
86
  }), w(() => {
86
87
  V.value--;
87
88
  })), () => {
88
- let r = v(i, {
89
+ let n = v(a, {
89
90
  variant: "ghost",
90
91
  borderless: !0,
91
92
  size: "small",
@@ -101,7 +102,7 @@ var P = ["id"], F = ["id"], I = {
101
102
  ...y.icons.hide,
102
103
  class: "q-obfuscation__icon"
103
104
  }));
104
- return !e.track || !J.value || !q.value.popoverText ? r : [r, v(n, {
105
+ return !e.track || !J.value || !q.value.popoverText ? n : [n, v(r, {
105
106
  label: y.label,
106
107
  text: q.value.popoverText,
107
108
  icons: y.icons,
@@ -110,10 +111,25 @@ var P = ["id"], F = ["id"], I = {
110
111
  };
111
112
  }
112
113
  });
114
+ function te() {
115
+ return new Promise((e) => {
116
+ let t = M(H, (n) => {
117
+ n && (t(), e());
118
+ }, { flush: "post" });
119
+ });
120
+ }
121
+ M(U, async (e) => {
122
+ let t = document.activeElement;
123
+ if (e ? await te() : await x(), !t || t.isConnected || document.activeElement && document.activeElement !== document.body) return;
124
+ let r = document.getElementById(z.value)?.querySelector(".q-obfuscation__label-action, .q-obfuscation__action"), i = document.getElementById(B.value);
125
+ (r ?? (i && n(i)[0]))?.focus();
126
+ });
113
127
  function $() {
114
- !y.revealable || y.loading || (R.value = !R.value, R.value ? L("reveal") : L("hide"));
128
+ if (!y.revealable || y.loading) return;
129
+ let e = !R.value;
130
+ R.value = e, L(e ? "reveal" : "hide");
115
131
  }
116
- return (e, n) => (T(), u(A(a), {
132
+ return (e, n) => (T(), d(A(o), {
117
133
  id: A(z),
118
134
  class: S(Z.value),
119
135
  for: y.for ?? A(B),
@@ -128,17 +144,17 @@ var P = ["id"], F = ["id"], I = {
128
144
  "help-display": Y.value.helpDisplay,
129
145
  icons: y.icons,
130
146
  texts: y.texts
131
- }, m({
147
+ }, h({
132
148
  "label.prepend": N(() => [D(e.$slots, "label.prepend")]),
133
149
  "label.append": N(() => [
134
150
  D(e.$slots, "label.append"),
135
- d(" Own padlock only when the consumer did not place QObfuscationHideAction "),
136
- K.value ? (T(), u(A(Q), {
151
+ f(" Own padlock only when the consumer did not place QObfuscationHideAction "),
152
+ K.value ? (T(), d(A(Q), {
137
153
  key: 0,
138
154
  track: !1
139
- })) : d("v-if", !0)
155
+ })) : f("v-if", !0)
140
156
  ]),
141
- control: N(({ describedBy: n }) => [d(" Revealed: slot content; place QObfuscationHideAction on the field label to own it "), U.value ? (T(), f("div", {
157
+ control: N(({ describedBy: n }) => [f(" Revealed: slot content; place QObfuscationHideAction on the field label to own it "), U.value ? (T(), p("div", {
142
158
  key: 0,
143
159
  id: A(B),
144
160
  class: "q-obfuscation__content"
@@ -148,7 +164,7 @@ var P = ["id"], F = ["id"], I = {
148
164
  toggle: $,
149
165
  revealed: R.value,
150
166
  loading: y.loading
151
- })], 8, P)) : (T(), f(c, { key: 1 }, [d(" Masked / loading: QObfuscation label + control surface "), p("div", {
167
+ })], 8, P)) : (T(), p(l, { key: 1 }, [f(" Masked / loading: QObfuscation label + control surface "), m("div", {
152
168
  id: A(B),
153
169
  class: "q-field__control q-obfuscation__value"
154
170
  }, [y.revealable ? D(e.$slots, "reveal", {
@@ -156,7 +172,7 @@ var P = ["id"], F = ["id"], I = {
156
172
  revealed: R.value,
157
173
  toggle: $,
158
174
  loading: y.loading
159
- }, () => [g(A(i), {
175
+ }, () => [g(A(a), {
160
176
  variant: "text",
161
177
  borderless: "",
162
178
  block: "",
@@ -178,10 +194,10 @@ var P = ["id"], F = ["id"], I = {
178
194
  "label",
179
195
  "aria-controls",
180
196
  "aria-describedby"
181
- ])]) : (T(), f("span", I, [g(A(t), b(y.icons.restricted, {
197
+ ])]) : (T(), p("span", I, [g(A(t), b(y.icons.restricted, {
182
198
  class: "q-obfuscation__icon",
183
199
  "aria-hidden": "true"
184
- }), null, 16), D(e.$slots, "mask", {}, () => [h(O(X.value), 1)])]))], 8, F)], 2112))]),
200
+ }), null, 16), D(e.$slots, "mask", {}, () => [ee(O(X.value), 1)])]))], 8, F)], 2112))]),
185
201
  _: 2
186
202
  }, [e.$slots.extras ? {
187
203
  name: "extras",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAOshS,CAAC;;;;;;;;;;;;;;;;;uBAAD,CAAC;;;;;;;;;;;;EAPt/R,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAO0nW,CAAC;;;;;;;;;;;;;;;;;uBAAD,CAAC;;;;;;;;;;;;EAP1lW,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,cAAc,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QOverflow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverflow/QOverflow.vue"],"names":[],"mappings":"AA6DA;AA+nBC,OAAO,EAAE,aAAa,EAAiB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,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,20 +1,21 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
- import { QButton as n } from "../QButton/index.js";
4
- import { DEFAULT_ICONS as r, DEFAULT_TEXTS as i } from "./constants.js";
5
- import { computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, onBeforeUnmount as g, onMounted as ee, openBlock as _, ref as v, renderSlot as y, toRef as b, unref as x, watch as S, withCtx as C } from "vue";
3
+ import { getAdjacentTabbable as n, getTabbableElements as r } from "../../utils/focus.js";
4
+ import { QButton as i } from "../QButton/index.js";
5
+ import { DEFAULT_ICONS as a, DEFAULT_TEXTS as o } from "./constants.js";
6
+ import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, onBeforeUnmount as ee, onMounted as te, openBlock as v, ref as y, renderSlot as b, toRef as ne, unref as x, watch as S, withCtx as C } from "vue";
6
7
  //#region src/components/QOverflow/QOverflow.vue?vue&type=script&setup=true&lang.ts
7
- var te = [
8
+ var w = [
8
9
  "id",
9
10
  "role",
10
11
  "aria-label"
11
- ], ne = {
12
+ ], re = {
12
13
  key: 0,
13
14
  class: "q-overflow__control q-overflow__control--prev"
14
- }, re = ["tabindex"], w = {
15
+ }, ie = ["tabindex"], ae = {
15
16
  key: 1,
16
17
  class: "q-overflow__control q-overflow__control--next"
17
- }, T = 1, E = /*@__PURE__*/ u({
18
+ }, T = 1, E = /*@__PURE__*/ f({
18
19
  __name: "QOverflow",
19
20
  props: {
20
21
  id: {},
@@ -29,28 +30,41 @@ var te = [
29
30
  default: !1
30
31
  },
31
32
  contentClass: {},
32
- icons: { default: () => r },
33
- texts: { default: () => i }
33
+ icons: { default: () => a },
34
+ texts: { default: () => o }
34
35
  },
35
- setup(r, { expose: i }) {
36
- let u = r, E = e(b(u, "id")), D = v(null), O = v(null), k = v(!1), A = v(!1), j = null, M = 0, N = null, P = !1, F = a(() => u.direction === "horizontal"), I = a(() => k.value || A.value), L = a(() => F.value ? u.icons.back : u.icons.up), R = a(() => F.value ? u.icons.forward : u.icons.down), z = a(() => u.texts.regionLabel || void 0), B = a(() => z.value ? "region" : void 0), ie = a(() => [
36
+ setup(a, { expose: o }) {
37
+ let f = a, E = e(ne(f, "id")), D = y(null), O = y(null), k = y(!1), A = y(!1), j = null, M = 0, N = null, P = !1, F = s(() => f.direction === "horizontal"), I = s(() => k.value || A.value), L = s(() => F.value ? f.icons.back : f.icons.up), oe = s(() => F.value ? f.icons.forward : f.icons.down), R = s(() => f.texts.regionLabel || void 0), se = s(() => R.value ? "region" : void 0), ce = s(() => [
37
38
  "q-overflow",
38
- `q-overflow--${u.direction}`,
39
- `q-overflow--arrows-${u.arrowPlacement}`,
40
- `q-overflow--arrows-${u.arrowVisibility}`,
39
+ `q-overflow--${f.direction}`,
40
+ `q-overflow--arrows-${f.arrowPlacement}`,
41
+ `q-overflow--arrows-${f.arrowVisibility}`,
41
42
  {
42
43
  "q-overflow--overflowing": I.value,
43
44
  "q-overflow--can-scroll-start": k.value,
44
45
  "q-overflow--can-scroll-end": A.value
45
46
  },
46
- u.class
47
- ]), ae = a(() => ["q-overflow__content", u.contentClass]), V = a(() => ({
47
+ f.class
48
+ ]), le = s(() => ["q-overflow__content", f.contentClass]), z = s(() => ({
48
49
  disabled: !k.value,
49
50
  onClick: Y
50
- })), H = a(() => ({
51
+ })), B = s(() => ({
51
52
  disabled: !A.value,
52
53
  onClick: X
53
- }));
54
+ })), V = y(null);
55
+ function H(e) {
56
+ e.disabled || e.onClick();
57
+ }
58
+ S(I, async (e) => {
59
+ let t = document.activeElement, i = t?.closest(".q-overflow__control");
60
+ if (e || !t || !i) return;
61
+ let a = i.classList.contains("q-overflow__control--prev");
62
+ if (await h(), t.isConnected) return;
63
+ let o = document.getElementById(E.value);
64
+ if (!o) return;
65
+ let s = r(o);
66
+ ((a ? s[0] : s.at(-1)) ?? n(o))?.focus();
67
+ });
54
68
  function U(e) {
55
69
  return F.value ? {
56
70
  position: e.scrollLeft,
@@ -68,13 +82,13 @@ var te = [
68
82
  let { position: t, size: n, scrollSize: r } = U(e), i = Math.max(0, r - n);
69
83
  k.value = t > T, A.value = t < i - T;
70
84
  }
71
- function oe() {
85
+ function ue() {
72
86
  return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
73
87
  }
74
88
  function G(e) {
75
89
  let t = D.value;
76
90
  if (!t) return;
77
- let n = oe();
91
+ let n = ue();
78
92
  F.value ? t.scrollTo({
79
93
  left: e,
80
94
  behavior: n
@@ -83,11 +97,11 @@ var te = [
83
97
  behavior: n
84
98
  });
85
99
  }
86
- function se(e) {
100
+ function de(e) {
87
101
  return F.value ? e.clientWidth : e.clientHeight;
88
102
  }
89
- function ce() {
90
- return Math.max(0, u.scrollStep);
103
+ function fe() {
104
+ return Math.max(0, f.scrollStep);
91
105
  }
92
106
  function K() {
93
107
  let e = O.value;
@@ -97,7 +111,7 @@ var te = [
97
111
  let i = Math.max(0, r - n), a = e + t / 2 - n / 2;
98
112
  return Math.min(i, Math.max(0, a));
99
113
  }
100
- function le(e) {
114
+ function pe(e) {
101
115
  let t = D.value;
102
116
  if (!t) return null;
103
117
  let n = K(), { position: r, size: i, scrollSize: a } = U(t), o = r, s = r + i, c = Math.max(0, a - i);
@@ -124,13 +138,13 @@ var te = [
124
138
  let t = D.value;
125
139
  if (!t) return;
126
140
  let { position: n } = U(t);
127
- if (u.scrollMode === "item") {
128
- let t = le(e);
141
+ if (f.scrollMode === "item") {
142
+ let t = pe(e);
129
143
  if (t === null) return;
130
144
  G(t);
131
145
  return;
132
146
  }
133
- G(n + e * (u.scrollMode === "page" ? se(t) : ce()));
147
+ G(n + e * (f.scrollMode === "page" ? de(t) : fe()));
134
148
  }
135
149
  function Y() {
136
150
  J(-1);
@@ -138,17 +152,17 @@ var te = [
138
152
  function X() {
139
153
  J(1);
140
154
  }
141
- function ue() {
155
+ function me() {
142
156
  G(0);
143
157
  }
144
- function de() {
158
+ function he() {
145
159
  let e = D.value;
146
160
  if (!e) return;
147
161
  let { size: t, scrollSize: n } = U(e);
148
162
  G(Math.max(0, n - t));
149
163
  }
150
- async function fe(e) {
151
- W(), await p();
164
+ async function ge(e) {
165
+ W(), await h();
152
166
  let t = D.value, n = O.value;
153
167
  if (!t || !n || !n.contains(e)) return;
154
168
  let { position: r, size: i, scrollSize: a } = U(t), o = F.value ? e.offsetLeft : e.offsetTop, s = o + (F.value ? e.offsetWidth : e.offsetHeight), c = r, l = r + i, u = Math.max(0, a - i), d = r;
@@ -157,8 +171,8 @@ var te = [
157
171
  else return;
158
172
  G(Math.min(u, Math.max(0, d)));
159
173
  }
160
- function pe(e) {
161
- if (e.target !== e.currentTarget || !I.value) return;
174
+ function _e(e) {
175
+ if (e.target !== e.currentTarget || e.altKey || e.ctrlKey || e.metaKey || !I.value) return;
162
176
  let t = F.value;
163
177
  switch (e.key) {
164
178
  case "ArrowLeft":
@@ -178,10 +192,10 @@ var te = [
178
192
  e.preventDefault(), X();
179
193
  break;
180
194
  case "Home":
181
- e.preventDefault(), ue();
195
+ e.preventDefault(), me();
182
196
  break;
183
197
  case "End":
184
- e.preventDefault(), de();
198
+ e.preventDefault(), he();
185
199
  break;
186
200
  }
187
201
  }
@@ -194,7 +208,7 @@ var te = [
194
208
  function Q() {
195
209
  let e = D.value;
196
210
  if (!e) return;
197
- let t = u.remapWheel && F.value;
211
+ let t = f.remapWheel && F.value;
198
212
  if (t && !P) {
199
213
  e.addEventListener("wheel", Z, { passive: !1 }), P = !0;
200
214
  return;
@@ -211,78 +225,85 @@ var te = [
211
225
  for (let e of K()) j.observe(e);
212
226
  }
213
227
  }
214
- function me() {
228
+ function ve() {
215
229
  let e = O.value;
216
230
  e && (N = new MutationObserver(() => {
217
231
  $(), W();
218
232
  }), N.observe(e, { childList: !0 }));
219
233
  }
220
- return ee(() => {
221
- Q(), $(), me(), W();
222
- }), g(() => {
234
+ return te(() => {
235
+ Q(), $(), ve(), W();
236
+ }), ee(() => {
223
237
  let e = D.value;
224
238
  P && e && (e.removeEventListener("wheel", Z), P = !1), j?.disconnect(), j = null, cancelAnimationFrame(M), N?.disconnect(), N = null;
225
239
  }), S(() => [
226
- u.direction,
227
- u.scrollMode,
228
- u.scrollStep
240
+ f.direction,
241
+ f.scrollMode,
242
+ f.scrollStep
229
243
  ], async () => {
230
- await p(), $(), W();
231
- }), S(() => [u.remapWheel, u.direction], () => {
244
+ await h(), $(), W();
245
+ }), S(() => [f.remapWheel, f.direction], () => {
232
246
  Q();
233
- }), i({
247
+ }), o({
234
248
  contentEl: O,
235
- scrollElementIntoView: fe
236
- }), (e, r) => (_(), s("div", {
249
+ scrollElementIntoView: ge
250
+ }), (e, n) => (v(), l("div", {
237
251
  id: x(E),
238
- class: m(ie.value),
239
- role: B.value,
240
- "aria-label": z.value
252
+ class: g(ce.value),
253
+ role: se.value,
254
+ "aria-label": R.value
241
255
  }, [
242
- I.value ? (_(), s("div", ne, [y(e.$slots, "prev", h(d(V.value)), () => [l(x(n), {
256
+ I.value ? (v(), l("div", re, [b(e.$slots, "prev", _(p(z.value)), () => [d(x(i), {
243
257
  class: "q-overflow__button",
244
258
  variant: "ghost",
245
259
  "data-testid": "q-overflow-prev",
246
- disabled: V.value.disabled,
247
- "aria-label": u.texts.back,
248
- onClick: V.value.onClick
260
+ disabled: z.value.disabled && V.value !== "back",
261
+ "aria-disabled": z.value.disabled || void 0,
262
+ "aria-label": f.texts.back,
263
+ onFocus: n[0] ||= (e) => V.value = "back",
264
+ onBlur: n[1] ||= (e) => V.value = null,
265
+ onClick: n[2] ||= (e) => H(z.value)
249
266
  }, {
250
- default: C(() => [l(x(t), f({ class: "q-overflow__icon" }, L.value), null, 16)]),
267
+ default: C(() => [d(x(t), m({ class: "q-overflow__icon" }, L.value), null, 16)]),
251
268
  _: 1
252
269
  }, 8, [
253
270
  "disabled",
254
- "aria-label",
255
- "onClick"
256
- ])])])) : o("v-if", !0),
257
- c("div", {
271
+ "aria-disabled",
272
+ "aria-label"
273
+ ])])])) : c("v-if", !0),
274
+ c(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- A scroll region: focusable while it overflows, and its keys scroll it "),
275
+ u("div", {
258
276
  ref_key: "viewportRef",
259
277
  ref: D,
260
278
  class: "q-overflow__viewport",
261
279
  "data-testid": "q-overflow-viewport",
262
280
  tabindex: I.value ? 0 : void 0,
263
281
  onScroll: W,
264
- onKeydown: pe
265
- }, [c("div", {
282
+ onKeydown: _e
283
+ }, [u("div", {
266
284
  ref_key: "contentRef",
267
285
  ref: O,
268
- class: m(ae.value)
269
- }, [y(e.$slots, "default")], 2)], 40, re),
270
- I.value ? (_(), s("div", w, [y(e.$slots, "next", h(d(H.value)), () => [l(x(n), {
286
+ class: g(le.value)
287
+ }, [b(e.$slots, "default")], 2)], 40, ie),
288
+ I.value ? (v(), l("div", ae, [b(e.$slots, "next", _(p(B.value)), () => [d(x(i), {
271
289
  class: "q-overflow__button",
272
290
  variant: "ghost",
273
291
  "data-testid": "q-overflow-next",
274
- disabled: H.value.disabled,
275
- "aria-label": u.texts.forward,
276
- onClick: H.value.onClick
292
+ disabled: B.value.disabled && V.value !== "forward",
293
+ "aria-disabled": B.value.disabled || void 0,
294
+ "aria-label": f.texts.forward,
295
+ onFocus: n[3] ||= (e) => V.value = "forward",
296
+ onBlur: n[4] ||= (e) => V.value = null,
297
+ onClick: n[5] ||= (e) => H(B.value)
277
298
  }, {
278
- default: C(() => [l(x(t), f({ class: "q-overflow__icon" }, R.value), null, 16)]),
299
+ default: C(() => [d(x(t), m({ class: "q-overflow__icon" }, oe.value), null, 16)]),
279
300
  _: 1
280
301
  }, 8, [
281
302
  "disabled",
282
- "aria-label",
283
- "onClick"
284
- ])])])) : o("v-if", !0)
285
- ], 10, te));
303
+ "aria-disabled",
304
+ "aria-label"
305
+ ])])])) : c("v-if", !0)
306
+ ], 10, w));
286
307
  }
287
308
  });
288
309
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAgEA;AAikBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAqfvC,iBAAS,cAAc;WA4KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAqEA;AAqqBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAolBvC,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}