@quidgest/ui 0.27.1 → 0.28.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 (399) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/json/api.json +1287 -297
  3. package/dist/manifest/components.json +1 -1
  4. package/dist/ui.css +594 -147
  5. package/dist/ui.esm.js +1561 -1526
  6. package/dist/ui.js +1127 -1092
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1127 -1092
  9. package/dist/ui.scss +401 -126
  10. package/esm/components/QAccordion/QAccordion.d.ts +5 -1
  11. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  12. package/esm/components/QAccordion/QAccordion.vue.js +28 -23
  13. package/esm/components/QAccordion/constants.d.ts +9 -0
  14. package/esm/components/QAccordion/constants.d.ts.map +1 -0
  15. package/esm/components/QAccordion/constants.js +5 -0
  16. package/esm/components/QAccordion/index.d.ts +18 -3
  17. package/esm/components/QAccordion/index.d.ts.map +1 -1
  18. package/esm/components/QAccordion/types.d.ts +17 -0
  19. package/esm/components/QAccordion/types.d.ts.map +1 -1
  20. package/esm/components/QAlert/QAlert.d.ts +68 -0
  21. package/esm/components/QAlert/QAlert.d.ts.map +1 -0
  22. package/esm/components/QAlert/QAlert.vue.js +113 -0
  23. package/esm/components/QAlert/QAlert2.vue.js +5 -0
  24. package/esm/components/QAlert/constants.d.ts +25 -0
  25. package/esm/components/QAlert/constants.d.ts.map +1 -0
  26. package/esm/components/QAlert/constants.js +11 -0
  27. package/esm/components/QAlert/index.d.ts +56 -0
  28. package/esm/components/QAlert/index.d.ts.map +1 -0
  29. package/esm/components/QAlert/index.js +6 -0
  30. package/esm/components/QAlert/types.d.ts +85 -0
  31. package/esm/components/QAlert/types.d.ts.map +1 -0
  32. package/esm/components/QAvatar/QAvatar.d.ts +1 -1
  33. package/esm/components/QAvatar/index.d.ts +3 -3
  34. package/esm/components/QAvatar/types.d.ts +1 -1
  35. package/esm/components/QAvatar/types.d.ts.map +1 -1
  36. package/esm/components/QBadge/QBadge.d.ts +1 -1
  37. package/esm/components/QBadge/QBadge.vue.js +10 -10
  38. package/esm/components/QBadge/constants.d.ts +1 -1
  39. package/esm/components/QBadge/constants.js +1 -1
  40. package/esm/components/QBadge/index.d.ts +3 -3
  41. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  42. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +14 -10
  43. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +17 -4
  44. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -1
  45. package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +12 -7
  46. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
  47. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +26 -32
  48. package/esm/components/QBreadcrumbs/constants.d.ts +11 -2
  49. package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -1
  50. package/esm/components/QBreadcrumbs/constants.js +5 -3
  51. package/esm/components/QBreadcrumbs/context.d.ts +5 -5
  52. package/esm/components/QBreadcrumbs/context.d.ts.map +1 -1
  53. package/esm/components/QBreadcrumbs/index.d.ts +17 -4
  54. package/esm/components/QBreadcrumbs/index.d.ts.map +1 -1
  55. package/esm/components/QBreadcrumbs/types.d.ts +2 -0
  56. package/esm/components/QBreadcrumbs/types.d.ts.map +1 -1
  57. package/esm/components/QButton/QButton.d.ts +12 -4
  58. package/esm/components/QButton/QButton.d.ts.map +1 -1
  59. package/esm/components/QButton/QButton.vue.js +118 -66
  60. package/esm/components/QButton/constants.d.ts +11 -0
  61. package/esm/components/QButton/constants.d.ts.map +1 -0
  62. package/esm/components/QButton/constants.js +5 -0
  63. package/esm/components/QButton/index.d.ts +15 -4
  64. package/esm/components/QButton/index.d.ts.map +1 -1
  65. package/esm/components/QButton/types.d.ts +52 -0
  66. package/esm/components/QButton/types.d.ts.map +1 -1
  67. package/esm/components/QCard/QCard.d.ts.map +1 -1
  68. package/esm/components/QCard/QCard.vue.js +51 -48
  69. package/esm/components/QCarousel/QCarousel.d.ts +1 -1
  70. package/esm/components/QCarousel/QCarousel.vue.js +8 -8
  71. package/esm/components/QCarousel/constants.d.ts +2 -2
  72. package/esm/components/QCarousel/constants.js +2 -2
  73. package/esm/components/QCarousel/index.d.ts +3 -3
  74. package/esm/components/QCheckbox/QCheckbox.d.ts +18 -4
  75. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  76. package/esm/components/QCheckbox/QCheckbox.vue.js +115 -94
  77. package/esm/components/QCheckbox/constants.d.ts +3 -0
  78. package/esm/components/QCheckbox/constants.d.ts.map +1 -1
  79. package/esm/components/QCheckbox/constants.js +4 -2
  80. package/esm/components/QCheckbox/index.d.ts +57 -46
  81. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  82. package/esm/components/QCheckbox/index.js +2 -3
  83. package/esm/components/QCheckbox/types.d.ts +10 -7
  84. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  85. package/esm/components/QCollapsible/QCollapsible.d.ts +1 -1
  86. package/esm/components/QCollapsible/QCollapsible.vue.js +23 -23
  87. package/esm/components/QCollapsible/index.d.ts +3 -3
  88. package/esm/components/QColorPicker/QColorPicker.d.ts +19 -2
  89. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  90. package/esm/components/QColorPicker/QColorPicker.vue.js +41 -30
  91. package/esm/components/QColorPicker/constants.d.ts +10 -0
  92. package/esm/components/QColorPicker/constants.d.ts.map +1 -1
  93. package/esm/components/QColorPicker/constants.js +6 -2
  94. package/esm/components/QColorPicker/index.d.ts +63 -6
  95. package/esm/components/QColorPicker/index.d.ts.map +1 -1
  96. package/esm/components/QColorPicker/types.d.ts +11 -3
  97. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  98. package/esm/components/QCombobox/QCombobox.d.ts +668 -256
  99. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  100. package/esm/components/QCombobox/QCombobox.vue.js +157 -145
  101. package/esm/components/QCombobox/constants.d.ts +10 -0
  102. package/esm/components/QCombobox/constants.d.ts.map +1 -1
  103. package/esm/components/QCombobox/constants.js +13 -5
  104. package/esm/components/QCombobox/index.d.ts +889 -635
  105. package/esm/components/QCombobox/index.d.ts.map +1 -1
  106. package/esm/components/QCombobox/types.d.ts +4 -2
  107. package/esm/components/QCombobox/types.d.ts.map +1 -1
  108. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +568 -49
  109. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  110. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +97 -72
  111. package/esm/components/QDateTimePicker/constants.d.ts +4 -0
  112. package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
  113. package/esm/components/QDateTimePicker/constants.js +12 -6
  114. package/esm/components/QDateTimePicker/index.d.ts +492 -32
  115. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  116. package/esm/components/QDateTimePicker/types.d.ts +4 -2
  117. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  118. package/esm/components/QDialog/QDialog.d.ts +1 -1
  119. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  120. package/esm/components/QDialog/QDialog.vue.js +28 -24
  121. package/esm/components/QDialog/constants.d.ts +8 -0
  122. package/esm/components/QDialog/constants.d.ts.map +1 -1
  123. package/esm/components/QDialog/constants.js +9 -4
  124. package/esm/components/QDialog/index.d.ts +3 -3
  125. package/esm/components/QDialog/types.d.ts +4 -2
  126. package/esm/components/QDialog/types.d.ts.map +1 -1
  127. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
  128. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +0 -1
  129. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +21 -15
  130. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  131. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +135 -132
  132. package/esm/components/QDropdownMenu/constants.d.ts +6 -0
  133. package/esm/components/QDropdownMenu/constants.d.ts.map +1 -1
  134. package/esm/components/QDropdownMenu/constants.js +6 -2
  135. package/esm/components/QDropdownMenu/index.d.ts +3 -6
  136. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  137. package/esm/components/QDropdownMenu/types.d.ts +9 -7
  138. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  139. package/esm/components/QField/QField.d.ts +228 -3
  140. package/esm/components/QField/QField.d.ts.map +1 -1
  141. package/esm/components/QField/QField.vue.js +99 -36
  142. package/esm/components/QField/constants.d.ts +11 -0
  143. package/esm/components/QField/constants.d.ts.map +1 -0
  144. package/esm/components/QField/constants.js +5 -0
  145. package/esm/components/QField/index.d.ts +129 -5
  146. package/esm/components/QField/index.d.ts.map +1 -1
  147. package/esm/components/QField/types.d.ts +37 -1
  148. package/esm/components/QField/types.d.ts.map +1 -1
  149. package/esm/components/QFileUpload/QFileUpload.d.ts +35 -3
  150. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  151. package/esm/components/QFileUpload/QFileUpload.vue.js +72 -53
  152. package/esm/components/QFileUpload/constants.d.ts +4 -0
  153. package/esm/components/QFileUpload/constants.d.ts.map +1 -1
  154. package/esm/components/QFileUpload/constants.js +6 -3
  155. package/esm/components/QFileUpload/index.d.ts +108 -9
  156. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  157. package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  158. package/esm/components/QFocusWrap/QFocusWrap.vue.js +38 -51
  159. package/esm/components/QIcon/QIconFont.d.ts +1 -3
  160. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  161. package/esm/components/QIcon/QIconFont.vue.js +2 -2
  162. package/esm/components/QIcon/QIconSvg.d.ts +1 -3
  163. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  164. package/esm/components/QIcon/QIconSvg.vue.js +1 -1
  165. package/esm/components/QIcon/QSvgSymbol.d.ts +3 -2
  166. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  167. package/esm/components/QIcon/QSvgSymbol.vue.js +23 -14
  168. package/esm/components/QIcon/index.d.ts +2 -6
  169. package/esm/components/QIcon/index.d.ts.map +1 -1
  170. package/esm/components/QIcon/index.js +6 -6
  171. package/esm/components/QIcon/types.d.ts +7 -3
  172. package/esm/components/QIcon/types.d.ts.map +1 -1
  173. package/esm/components/QInputGroup/QInputGroup.d.ts +263 -12
  174. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  175. package/esm/components/QInputGroup/QInputGroup.vue.js +20 -5
  176. package/esm/components/QInputGroup/index.d.ts +138 -9
  177. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  178. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  179. package/esm/components/QLabel/QLabel.vue.js +1 -0
  180. package/esm/components/QList/QList.d.ts +12 -10
  181. package/esm/components/QList/QList.d.ts.map +1 -1
  182. package/esm/components/QList/QList.vue.js +128 -125
  183. package/esm/components/QList/QListItem.d.ts.map +1 -1
  184. package/esm/components/QList/QListItem.vue.js +1 -1
  185. package/esm/components/QList/groupListItems.d.ts +25 -0
  186. package/esm/components/QList/groupListItems.d.ts.map +1 -0
  187. package/esm/components/QList/groupListItems.js +18 -0
  188. package/esm/components/QList/index.d.ts +8 -5
  189. package/esm/components/QList/index.d.ts.map +1 -1
  190. package/esm/components/QList/types.d.ts +7 -0
  191. package/esm/components/QList/types.d.ts.map +1 -1
  192. package/esm/components/QObfuscation/QObfuscation.d.ts +28 -3
  193. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  194. package/esm/components/QObfuscation/QObfuscation.vue.js +119 -89
  195. package/esm/components/QObfuscation/constants.d.ts +4 -0
  196. package/esm/components/QObfuscation/constants.d.ts.map +1 -1
  197. package/esm/components/QObfuscation/constants.js +6 -3
  198. package/esm/components/QObfuscation/index.d.ts +83 -9
  199. package/esm/components/QObfuscation/index.d.ts.map +1 -1
  200. package/esm/components/QOverflow/QOverflow.vue.js +8 -8
  201. package/esm/components/QOverflow/constants.d.ts +6 -3
  202. package/esm/components/QOverflow/constants.d.ts.map +1 -1
  203. package/esm/components/QOverflow/constants.js +2 -2
  204. package/esm/components/QOverlay/QOverlay.d.ts +2 -2
  205. package/esm/components/QOverlay/index.d.ts +6 -6
  206. package/esm/components/QPasswordField/QPasswordField.d.ts +411 -25
  207. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  208. package/esm/components/QPasswordField/QPasswordField.vue.js +46 -35
  209. package/esm/components/QPasswordField/constants.d.ts +8 -0
  210. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  211. package/esm/components/QPasswordField/constants.js +8 -3
  212. package/esm/components/QPasswordField/index.d.ts +268 -15
  213. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  214. package/esm/components/QPasswordField/types.d.ts +4 -2
  215. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  216. package/esm/components/QPhoneField/QPhoneField.d.ts +1588 -118
  217. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  218. package/esm/components/QPhoneField/QPhoneField.vue.js +194 -168
  219. package/esm/components/QPhoneField/constants.d.ts +24 -0
  220. package/esm/components/QPhoneField/constants.d.ts.map +1 -1
  221. package/esm/components/QPhoneField/constants.js +14 -3
  222. package/esm/components/QPhoneField/index.d.ts +900 -64
  223. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  224. package/esm/components/QPhoneField/types.d.ts +10 -2
  225. package/esm/components/QPhoneField/types.d.ts.map +1 -1
  226. package/esm/components/QPopover/QPopover.d.ts +1 -1
  227. package/esm/components/QPopover/index.d.ts +3 -3
  228. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  229. package/esm/components/QPropertyList/QPropertyList.vue.js +61 -59
  230. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +5 -6
  231. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +0 -1
  232. package/esm/components/QPropertyList/QPropertyListRow.d.ts +1 -1
  233. package/esm/components/QPropertyList/index.d.ts +2 -4
  234. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  235. package/esm/components/QPropertyList/types.d.ts +0 -12
  236. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  237. package/esm/components/QRadioGroup/QRadioButton.d.ts +1 -1
  238. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  239. package/esm/components/QRadioGroup/QRadioButton.vue.js +49 -45
  240. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  241. package/esm/components/QRadioGroup/QRadioGroup.vue.js +52 -37
  242. package/esm/components/QRadioGroup/index.d.ts +3 -3
  243. package/esm/components/QRadioGroup/types.d.ts +5 -4
  244. package/esm/components/QRadioGroup/types.d.ts.map +1 -1
  245. package/esm/components/QSection/QSection.d.ts +11 -3
  246. package/esm/components/QSection/QSection.d.ts.map +1 -1
  247. package/esm/components/QSection/QSection.vue.js +76 -21
  248. package/esm/components/QSection/constants.d.ts +11 -0
  249. package/esm/components/QSection/constants.d.ts.map +1 -0
  250. package/esm/components/QSection/constants.js +5 -0
  251. package/esm/components/QSection/index.d.ts +12 -1
  252. package/esm/components/QSection/index.d.ts.map +1 -1
  253. package/esm/components/QSection/types.d.ts +39 -0
  254. package/esm/components/QSection/types.d.ts.map +1 -1
  255. package/esm/components/QSelect/QSelect.d.ts +320 -36
  256. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  257. package/esm/components/QSelect/QSelect.vue.js +210 -177
  258. package/esm/components/QSelect/constants.d.ts +14 -1
  259. package/esm/components/QSelect/constants.d.ts.map +1 -1
  260. package/esm/components/QSelect/constants.js +14 -8
  261. package/esm/components/QSelect/index.d.ts +248 -28
  262. package/esm/components/QSelect/index.d.ts.map +1 -1
  263. package/esm/components/QSelect/types.d.ts +4 -2
  264. package/esm/components/QSelect/types.d.ts.map +1 -1
  265. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  266. package/esm/components/QSidebar/QSidebar.vue.js +68 -67
  267. package/esm/components/QSidebar/QSidebarItem.d.ts +32 -2
  268. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  269. package/esm/components/QSidebar/index.d.ts +16 -1
  270. package/esm/components/QSidebar/index.d.ts.map +1 -1
  271. package/esm/components/QSpinnerLoader/index.js +3 -3
  272. package/esm/components/QSteps/QStepHeader.d.ts.map +1 -1
  273. package/esm/components/QSteps/QStepHeader.vue.js +1 -0
  274. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  275. package/esm/components/QSteps/QSteps.vue.js +154 -126
  276. package/esm/components/QSteps/QStepsNav.vue.js +6 -6
  277. package/esm/components/QSteps/constants.d.ts +16 -1
  278. package/esm/components/QSteps/constants.d.ts.map +1 -1
  279. package/esm/components/QSteps/constants.js +6 -3
  280. package/esm/components/QSteps/types.d.ts +11 -3
  281. package/esm/components/QSteps/types.d.ts.map +1 -1
  282. package/esm/components/QSwitch/QSwitch.d.ts +195 -0
  283. package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
  284. package/esm/components/QSwitch/QSwitch.vue.js +96 -56
  285. package/esm/components/QSwitch/index.d.ts +197 -2
  286. package/esm/components/QSwitch/index.d.ts.map +1 -1
  287. package/esm/components/QSwitch/types.d.ts +2 -1
  288. package/esm/components/QSwitch/types.d.ts.map +1 -1
  289. package/esm/components/QTabs/QTab.d.ts +35 -12
  290. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  291. package/esm/components/QTabs/QTab.vue.js +77 -67
  292. package/esm/components/QTabs/QTabs.d.ts +3 -0
  293. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  294. package/esm/components/QTabs/QTabs.vue.js +64 -52
  295. package/esm/components/QTabs/constants.d.ts +24 -2
  296. package/esm/components/QTabs/constants.d.ts.map +1 -1
  297. package/esm/components/QTabs/constants.js +9 -0
  298. package/esm/components/QTabs/index.d.ts +32 -13
  299. package/esm/components/QTabs/index.d.ts.map +1 -1
  300. package/esm/components/QTabs/types.d.ts +26 -2
  301. package/esm/components/QTabs/types.d.ts.map +1 -1
  302. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  303. package/esm/components/QTextArea/QTextArea.vue.js +61 -47
  304. package/esm/components/QTextArea/index.d.ts +3 -3
  305. package/esm/components/QTextField/QTextField.d.ts +277 -11
  306. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  307. package/esm/components/QTextField/QTextField.vue.js +70 -55
  308. package/esm/components/QTextField/constants.d.ts +9 -0
  309. package/esm/components/QTextField/constants.d.ts.map +1 -1
  310. package/esm/components/QTextField/constants.js +10 -3
  311. package/esm/components/QTextField/index.d.ts +192 -11
  312. package/esm/components/QTextField/index.d.ts.map +1 -1
  313. package/esm/components/QTextField/index.js +4 -4
  314. package/esm/components/QTextField/types.d.ts +10 -2
  315. package/esm/components/QTextField/types.d.ts.map +1 -1
  316. package/esm/components/QToast/QToast.d.ts +4 -2
  317. package/esm/components/QToast/QToast.d.ts.map +1 -1
  318. package/esm/components/QToast/QToast.vue.js +153 -103
  319. package/esm/components/QToast/QToaster.d.ts +1 -1
  320. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  321. package/esm/components/QToast/QToaster.vue.js +59 -29
  322. package/esm/components/QToast/constants.d.ts +18 -0
  323. package/esm/components/QToast/constants.d.ts.map +1 -1
  324. package/esm/components/QToast/constants.js +9 -2
  325. package/esm/components/QToast/context.d.ts +24 -0
  326. package/esm/components/QToast/context.d.ts.map +1 -0
  327. package/esm/components/QToast/context.js +4 -0
  328. package/esm/components/QToast/index.d.ts +12 -7
  329. package/esm/components/QToast/index.d.ts.map +1 -1
  330. package/esm/components/QToast/types.d.ts +23 -3
  331. package/esm/components/QToast/types.d.ts.map +1 -1
  332. package/esm/components/QToggle/QToggle.d.ts +2 -2
  333. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  334. package/esm/components/QToggle/QToggle.vue.js +13 -0
  335. package/esm/components/QToggle/index.d.ts +16 -1
  336. package/esm/components/QToggle/index.d.ts.map +1 -1
  337. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +2 -2
  338. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
  339. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +20 -7
  340. package/esm/components/QToggleGroup/index.d.ts +1 -1
  341. package/esm/components/QToggleGroup/types.d.ts +8 -1
  342. package/esm/components/QToggleGroup/types.d.ts.map +1 -1
  343. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  344. package/esm/components/QTooltip/index.d.ts +3 -3
  345. package/esm/components/__internal__/QChevron/QChevron.vue.js +5 -5
  346. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
  347. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +4 -4
  348. package/esm/components/__internal__/QClearButton/index.d.ts +1 -1
  349. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -1
  350. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts +99 -0
  351. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -0
  352. package/esm/components/__internal__/QHelpPopover/QHelpPopover.vue.js +60 -0
  353. package/esm/components/__internal__/QHelpPopover/QHelpPopover2.vue.js +5 -0
  354. package/esm/components/__internal__/QHelpPopover/constants.d.ts +9 -0
  355. package/esm/components/__internal__/QHelpPopover/constants.d.ts.map +1 -0
  356. package/esm/components/__internal__/QHelpPopover/constants.js +4 -0
  357. package/esm/components/__internal__/QHelpPopover/index.d.ts +98 -0
  358. package/esm/components/__internal__/QHelpPopover/index.d.ts.map +1 -0
  359. package/esm/components/__internal__/QHelpPopover/index.js +6 -0
  360. package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts +50 -0
  361. package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts.map +1 -0
  362. package/esm/components/__internal__/QHelpPopover/resolveHelp.js +27 -0
  363. package/esm/components/__internal__/QHelpPopover/types.d.ts +32 -0
  364. package/esm/components/__internal__/QHelpPopover/types.d.ts.map +1 -0
  365. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
  366. package/esm/components/__internal__/QSafeTriangle/index.d.ts +2 -2
  367. package/esm/components/index.d.ts +1 -0
  368. package/esm/components/index.d.ts.map +1 -1
  369. package/esm/components/index.js +132 -131
  370. package/esm/composables/useColor/index.d.ts +31 -21
  371. package/esm/composables/useColor/index.d.ts.map +1 -1
  372. package/esm/composables/useColor/index.js +58 -49
  373. package/esm/composables/useColor/types.d.ts +19 -6
  374. package/esm/composables/useColor/types.d.ts.map +1 -1
  375. package/esm/composables/useDialog/types.d.ts +3 -3
  376. package/esm/composables/useDialog/types.d.ts.map +1 -1
  377. package/esm/composables/useToast/_internal.js +13 -8
  378. package/esm/composables/useToast/types.d.ts +3 -3
  379. package/esm/composables/useToast/types.d.ts.map +1 -1
  380. package/esm/index.d.ts +2 -2
  381. package/esm/index.d.ts.map +1 -1
  382. package/esm/types/component.d.ts +23 -0
  383. package/esm/types/component.d.ts.map +1 -1
  384. package/esm/types/index.d.ts +1 -1
  385. package/esm/types/index.d.ts.map +1 -1
  386. package/esm/utils/color/merge.d.ts.map +1 -1
  387. package/esm/utils/focus.d.ts +35 -0
  388. package/esm/utils/focus.d.ts.map +1 -0
  389. package/esm/utils/focus.js +27 -0
  390. package/esm/utils/overlay.js +2 -2
  391. package/esm/utils/severity.d.ts +40 -0
  392. package/esm/utils/severity.d.ts.map +1 -0
  393. package/esm/utils/severity.js +25 -0
  394. package/esm/utils/theme.js +12 -12
  395. package/package.json +1 -1
  396. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +0 -18
  397. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +0 -1
  398. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +0 -32
  399. package/esm/components/QCheckbox/QCheckboxLabel2.vue.js +0 -5
@@ -1,18 +1,32 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { rgbToHex as t } from "../../utils/color/conversion.js";
3
3
  import { lighten as n } from "../../utils/color/manipulate.js";
4
- import { parseColor as r } from "../../utils/color/parse.js";
5
- import { ensureContrast as i } from "../../utils/color/contrast.js";
6
- import { useColor as a } from "../../composables/useColor/index.js";
4
+ import { parseColor as ee } from "../../utils/color/parse.js";
5
+ import { ensureContrast as r } from "../../utils/color/contrast.js";
6
+ import { useColor as i } from "../../composables/useColor/index.js";
7
+ import { QIcon as a } from "../QIcon/index.js";
7
8
  import { QButton as o } from "../QButton/index.js";
8
- import { QCard as s } from "../QCard/index.js";
9
- import { QIcon as c } from "../QIcon/index.js";
10
- import { QCol as l, QContainer as u, QRow as d } from "../QGrid/index.js";
11
- import { ToastSymbol as f } from "../../composables/useToast/_internal.js";
12
- import { DEFAULT_ICONS as p, DEFAULT_TEXTS as m } from "./constants.js";
13
- import { computed as h, createBlock as g, createCommentVNode as _, createElementVNode as v, createSlots as y, createVNode as b, defineComponent as x, guardReactiveProps as S, inject as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, renderSlot as A, toDisplayString as j, toRef as M, unref as N, watch as P, withCtx as F } from "vue";
9
+ import { QCard as te } from "../QCard/index.js";
10
+ import { getDefaultLive as ne, isSeverity as s } from "../../utils/severity.js";
11
+ import { QCol as c, QContainer as l, QRow as u } from "../QGrid/index.js";
12
+ import { ToastSymbol as re } from "../../composables/useToast/_internal.js";
13
+ import { DEFAULT_ICONS as d, DEFAULT_TEXTS as f } from "./constants.js";
14
+ import { ToasterSymbol as p } from "./context.js";
15
+ import { computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ie, createTextVNode as ae, createVNode as y, defineComponent as b, guardReactiveProps as x, inject as S, mergeProps as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, renderSlot as A, toDisplayString as j, toRef as M, unref as N, watch as oe, withCtx as P } from "vue";
14
16
  //#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
15
- var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
17
+ var se = {
18
+ class: "q-toast__icon",
19
+ "aria-hidden": "true"
20
+ }, ce = { class: "q-toast__title" }, le = {
21
+ key: 0,
22
+ class: "q-sr-only"
23
+ }, F = {
24
+ class: "q-toast__icon",
25
+ "aria-hidden": "true"
26
+ }, I = {
27
+ key: 0,
28
+ class: "q-sr-only"
29
+ }, L = /*@__PURE__*/ b({
16
30
  __name: "QToast",
17
31
  props: {
18
32
  id: {},
@@ -24,135 +38,170 @@ var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
24
38
  elevation: { default: "medium" },
25
39
  variant: { default: "tonal" },
26
40
  timeout: { default: 5e3 },
27
- icons: { default: () => p },
28
- texts: { default: () => m },
41
+ live: {},
42
+ icons: { default: () => d },
43
+ texts: { default: () => f },
29
44
  entryKey: { default: void 0 }
30
45
  },
31
46
  emits: ["dismiss"],
32
- setup(p, { emit: m }) {
33
- let x = p, L = m, R = e(M(x, "id")), z = x.entryKey ? C(f, null) : null;
34
- x.entryKey && (z?.registerToastEntry(x.entryKey, R.value), P(R, (e, t) => {
35
- e === t || !x.entryKey || z?.updateToastEntryId(x.entryKey, e);
47
+ setup(d, { emit: f }) {
48
+ let b = d, L = f, R = e(M(b, "id")), z = b.entryKey ? S(re, null) : null;
49
+ b.entryKey && (z?.registerToastEntry(b.entryKey, R.value), oe(R, (e, t) => {
50
+ e === t || !b.entryKey || z?.updateToastEntryId(b.entryKey, e);
36
51
  }));
37
- let { style: B } = a(M(x, "color")), V = h(() => {
38
- let e = x.block ? "q-toast--block" : void 0, t = x.title ? "q-toast--vertical" : void 0;
52
+ let B = S(p, null), { style: V } = i(M(b, "color")), H = m(() => s(b.color) ? b.color : void 0), U = m(() => H.value ? b.icons[H.value] : void 0), W = m(() => b.live ?? ne(b.color)), ue = m(() => {
53
+ if (!(B || W.value === "off")) return W.value === "assertive" ? "alert" : "status";
54
+ }), G = m(() => [
55
+ H.value ? b.texts[H.value] : void 0,
56
+ b.title,
57
+ b.text
58
+ ].filter(Boolean).join(" "));
59
+ function de() {
60
+ let e = W.value;
61
+ !B || e === "off" || !G.value || b.entryKey && z && !z.markAnnounced(b.entryKey) || B.announce(G.value, e);
62
+ }
63
+ let fe = m(() => {
64
+ let e = b.block ? "q-toast--block" : void 0, t = b.title ? "q-toast--vertical" : void 0;
39
65
  return [
40
66
  "q-toast",
41
- `q-toast--${x.variant}`,
67
+ `q-toast--${b.variant}`,
42
68
  e,
43
69
  t,
44
- x.class
70
+ b.class
45
71
  ];
46
- }), H = h(() => {
47
- let e = B.value?.mainColor;
48
- if (e) return t(n(r(e), 88));
49
- }), U = h(() => {
50
- let e = B.value?.mainColor;
51
- if (!(!e || !H.value)) return i(e, H.value);
52
- }), W = h(() => B.value ? {
53
- "--q-toast-main-color": B.value.mainColor,
54
- "--q-toast-on-main-color": B.value.onMainColor,
55
- "--q-toast-hover-color": B.value.hoverColor,
56
- "--q-toast-text-color": B.value.textColor,
57
- "--q-toast-tonal-text-color": U.value,
58
- "--q-toast-tonal-color": H.value
59
- } : { "--q-toast-tonal-color": H.value }), G = h(() => x.variant === "bold" ? "bold" : "ghost"), K = h(() => x.variant === "tonal" && B.value?.hoverColor ? B.value.hoverColor : x.color), q, J, Y;
60
- function X() {
61
- q !== void 0 && (window.clearTimeout(q), q = void 0), J = void 0, Y = void 0, L("dismiss");
72
+ }), K = m(() => {
73
+ let e = V.value?.mainColor;
74
+ if (e) return t(n(ee(e), 88));
75
+ }), pe = m(() => {
76
+ let e = V.value?.mainColor;
77
+ if (!(!e || !K.value)) return r(e, K.value);
78
+ }), me = m(() => V.value ? {
79
+ "--q-toast-main-color": V.value.mainColor,
80
+ "--q-toast-on-main-color": V.value.onMainColor,
81
+ "--q-toast-hover-color": V.value.hoverColor,
82
+ "--q-toast-text-color": V.value.textColor,
83
+ "--q-toast-tonal-text-color": pe.value,
84
+ "--q-toast-tonal-color": K.value
85
+ } : { "--q-toast-tonal-color": K.value }), q = m(() => b.variant === "bold" ? "bold" : "ghost"), J = m(() => b.variant === "tonal" && V.value?.hoverColor ? V.value.hoverColor : b.color), Y, X, Z;
86
+ function Q() {
87
+ Y !== void 0 && (window.clearTimeout(Y), Y = void 0), X = void 0, Z = void 0, L("dismiss");
62
88
  }
63
- function Z(e) {
64
- Y = e, J = Date.now(), q = window.setTimeout(X, e);
89
+ function $(e) {
90
+ Z = e, X = Date.now(), Y = window.setTimeout(Q, e);
65
91
  }
66
92
  return D(() => {
67
- if (!x.entryKey) {
68
- x.timeout > 0 && Z(x.timeout);
93
+ if (de(), !b.entryKey) {
94
+ b.timeout > 0 && $(b.timeout);
69
95
  return;
70
96
  }
71
- let e = z?.consumeRemainingTimeout(x.entryKey);
97
+ let e = z?.consumeRemainingTimeout(b.entryKey);
72
98
  if (e !== void 0) {
73
- e > 0 ? Z(e) : X();
99
+ e > 0 ? $(e) : Q();
74
100
  return;
75
101
  }
76
- x.timeout > 0 && Z(x.timeout);
102
+ b.timeout > 0 && $(b.timeout);
77
103
  }), O(() => {
78
- if (q !== void 0 && (window.clearTimeout(q), x.entryKey && z && J !== void 0 && Y !== void 0)) {
79
- let e = Date.now() - J, t = Math.max(0, Y - e);
80
- z.setRemainingTimeout(x.entryKey, t);
104
+ if (Y !== void 0 && (window.clearTimeout(Y), b.entryKey && z && X !== void 0 && Z !== void 0)) {
105
+ let e = Date.now() - X, t = Math.max(0, Z - e);
106
+ z.setRemainingTimeout(b.entryKey, t);
81
107
  }
82
- }), (e, t) => (k(), g(N(s), {
108
+ }), (e, t) => (k(), h(N(te), {
83
109
  id: N(R),
84
- elevation: x.elevation,
85
- width: x.block ? "block" : void 0,
86
- class: w(V.value),
87
- style: E(W.value)
88
- }, y({
89
- default: F(() => [b(N(u), {
110
+ elevation: b.elevation,
111
+ width: b.block ? "block" : void 0,
112
+ class: w(fe.value),
113
+ style: E(me.value),
114
+ role: ue.value
115
+ }, ie({
116
+ default: P(() => [y(N(l), {
90
117
  fluid: "",
91
118
  class: "q-toast__body"
92
119
  }, {
93
- default: F(() => [b(N(d), {
120
+ default: P(() => [y(N(u), {
94
121
  align: "center",
95
122
  justify: "between"
96
123
  }, {
97
- default: F(() => [b(N(l), null, {
98
- default: F(() => [A(e.$slots, "default", {}, () => [v("span", null, j(x.text), 1)])]),
99
- _: 3
100
- }), x.title ? _("v-if", !0) : (k(), g(N(l), {
101
- key: 0,
102
- cols: "auto"
103
- }, {
104
- default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
105
- class: "q-toast__dismiss",
106
- variant: G.value,
107
- color: K.value,
108
- "aria-label": x.texts.dismiss,
109
- onClick: X
124
+ default: P(() => [
125
+ !b.title && (e.$slots.icon || U.value) ? (k(), h(N(c), {
126
+ key: 0,
127
+ cols: "auto"
128
+ }, {
129
+ default: P(() => [v("span", F, [A(e.$slots, "icon", {}, () => [U.value ? (k(), h(N(a), T(C({ key: 0 }, U.value)), null, 16)) : g("v-if", !0)])])]),
130
+ _: 3
131
+ })) : g("v-if", !0),
132
+ y(N(c), null, {
133
+ default: P(() => [H.value && !b.title ? (k(), _("span", I, j(b.texts[H.value]), 1)) : g("v-if", !0), A(e.$slots, "default", {}, () => [v("span", null, j(b.text), 1)])]),
134
+ _: 3
135
+ }),
136
+ b.title ? g("v-if", !0) : (k(), h(N(c), {
137
+ key: 1,
138
+ cols: "auto"
110
139
  }, {
111
- default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
112
- _: 1
113
- }, 8, [
114
- "variant",
115
- "color",
116
- "aria-label"
117
- ])])]),
118
- _: 3
119
- }))]),
140
+ default: P(() => [A(e.$slots, "dismiss", {}, () => [y(N(o), {
141
+ class: "q-toast__dismiss",
142
+ variant: q.value,
143
+ color: J.value,
144
+ "aria-label": b.texts.dismiss,
145
+ onClick: Q
146
+ }, {
147
+ default: P(() => [y(N(a), T(x(b.icons.close)), null, 16)]),
148
+ _: 1
149
+ }, 8, [
150
+ "variant",
151
+ "color",
152
+ "aria-label"
153
+ ])])]),
154
+ _: 3
155
+ }))
156
+ ]),
120
157
  _: 3
121
158
  })]),
122
159
  _: 3
123
160
  })]),
124
161
  _: 2
125
- }, [x.title ? {
162
+ }, [b.title ? {
126
163
  name: "header",
127
- fn: F(() => [b(N(u), { fluid: "" }, {
128
- default: F(() => [b(N(d), {
164
+ fn: P(() => [y(N(l), { fluid: "" }, {
165
+ default: P(() => [y(N(u), {
129
166
  align: "center",
130
167
  justify: "between"
131
168
  }, {
132
- default: F(() => [b(N(l), null, {
133
- default: F(() => [v("div", I, [
134
- e.$slots["title.prepend"] ? A(e.$slots, "title.prepend", { key: 0 }) : _("v-if", !0),
135
- v("h4", null, j(x.title), 1),
136
- e.$slots["title.append"] ? A(e.$slots, "title.append", { key: 1 }) : _("v-if", !0)
137
- ])]),
138
- _: 3
139
- }), b(N(l), { cols: "auto" }, {
140
- default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
141
- class: "q-toast__dismiss",
142
- variant: G.value,
143
- color: K.value,
144
- "aria-label": x.texts.dismiss,
145
- onClick: X
169
+ default: P(() => [
170
+ g(" With a title, the icon sits next to it. Otherwise it sits next to the text. "),
171
+ e.$slots.icon || U.value ? (k(), h(N(c), {
172
+ key: 0,
173
+ cols: "auto"
146
174
  }, {
147
- default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
148
- _: 1
149
- }, 8, [
150
- "variant",
151
- "color",
152
- "aria-label"
153
- ])])]),
154
- _: 3
155
- })]),
175
+ default: P(() => [v("span", se, [A(e.$slots, "icon", {}, () => [U.value ? (k(), h(N(a), T(C({ key: 0 }, U.value)), null, 16)) : g("v-if", !0)])])]),
176
+ _: 3
177
+ })) : g("v-if", !0),
178
+ y(N(c), null, {
179
+ default: P(() => [v("div", ce, [
180
+ e.$slots["title.prepend"] ? A(e.$slots, "title.prepend", { key: 0 }) : g("v-if", !0),
181
+ g(" With a title, the severity text goes inside the heading, so it is also read when navigating by headings "),
182
+ v("h4", null, [H.value ? (k(), _("span", le, j(b.texts[H.value]), 1)) : g("v-if", !0), ae(" " + j(b.title), 1)]),
183
+ e.$slots["title.append"] ? A(e.$slots, "title.append", { key: 1 }) : g("v-if", !0)
184
+ ])]),
185
+ _: 3
186
+ }),
187
+ y(N(c), { cols: "auto" }, {
188
+ default: P(() => [A(e.$slots, "dismiss", {}, () => [y(N(o), {
189
+ class: "q-toast__dismiss",
190
+ variant: q.value,
191
+ color: J.value,
192
+ "aria-label": b.texts.dismiss,
193
+ onClick: Q
194
+ }, {
195
+ default: P(() => [y(N(a), T(x(b.icons.close)), null, 16)]),
196
+ _: 1
197
+ }, 8, [
198
+ "variant",
199
+ "color",
200
+ "aria-label"
201
+ ])])]),
202
+ _: 3
203
+ })
204
+ ]),
156
205
  _: 3
157
206
  })]),
158
207
  _: 3
@@ -163,7 +212,8 @@ var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
163
212
  "elevation",
164
213
  "width",
165
214
  "class",
166
- "style"
215
+ "style",
216
+ "role"
167
217
  ]));
168
218
  }
169
219
  });
@@ -1,6 +1,6 @@
1
1
  import { QToasterProps } from '.';
2
2
  declare const _default: import('vue').DefineComponent<QToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QToasterProps> & Readonly<{}>, {
3
3
  placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
4
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=QToaster.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;AAoFC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AA+HvC,wBAQG"}
1
+ {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AA6CA;AAiLC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AAgNvC,wBAQG"}
@@ -1,9 +1,19 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { injectToastInstance as t, removeToastByEntryKey as n } from "../../composables/useToast/_internal.js";
3
- import { QToast as r } from "./index.js";
4
- import { Fragment as i, TransitionGroup as a, computed as o, createBlock as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, onUnmounted as p, openBlock as m, renderList as h, toRef as g, unref as _, watch as v, withCtx as y } from "vue";
3
+ import { ANNOUNCEMENT_LIFETIME as r } from "./constants.js";
4
+ import { ToasterSymbol as i } from "./context.js";
5
+ import { QToast as a } from "./index.js";
6
+ import { Fragment as o, TransitionGroup as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, normalizeClass as h, onUnmounted as g, openBlock as _, provide as v, ref as y, renderList as b, toDisplayString as x, toRef as S, unref as C, watch as w, withCtx as T } from "vue";
5
7
  //#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
6
- var b = /*@__PURE__*/ u({
8
+ var E = ["id", "data-placement"], D = {
9
+ class: "q-sr-only",
10
+ role: "status",
11
+ "aria-atomic": "false"
12
+ }, O = {
13
+ class: "q-sr-only",
14
+ role: "alert",
15
+ "aria-atomic": "false"
16
+ }, k = /*@__PURE__*/ p({
7
17
  __name: "QToaster",
8
18
  props: {
9
19
  id: {},
@@ -12,34 +22,54 @@ var b = /*@__PURE__*/ u({
12
22
  maxToasts: {},
13
23
  reverseOrder: { type: Boolean }
14
24
  },
15
- setup(u) {
16
- let b = u, x = e(g(b, "id")), S = t(), { toasts: C } = S;
17
- S.registerToaster(), p(() => S.unregisterToaster()), v(() => b.maxToasts, (e) => S.setMaxToasts(e), { immediate: !0 });
18
- let w = o(() => {
19
- let e = [...C.value];
20
- return b.reverseOrder ? e.reverse() : e;
25
+ setup(p) {
26
+ let k = p, A = e(S(k, "id")), j = t(), { toasts: M } = j;
27
+ j.registerToaster(), g(() => j.unregisterToaster()), w(() => k.maxToasts, (e) => j.setMaxToasts(e), { immediate: !0 });
28
+ let N = c(() => {
29
+ let e = [...M.value];
30
+ return k.reverseOrder ? e.reverse() : e;
21
31
  });
22
- function T(e) {
23
- n(S, e.entryKey);
32
+ function P(e) {
33
+ n(j, e.entryKey);
24
34
  }
25
- return (e, t) => (m(), s(a, {
26
- id: _(x),
27
- name: "q-toast-stack",
28
- tag: "div",
29
- class: f(["q-toaster", b.class]),
30
- "data-placement": b.placement
31
- }, {
32
- default: y(() => [(m(!0), c(i, null, h(w.value, (e) => (m(), c("div", {
33
- key: e.entryKey,
34
- class: "q-toast__container"
35
- }, [l(_(r), d({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => T(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
36
- _: 1
37
- }, 8, [
38
- "id",
39
- "class",
40
- "data-placement"
41
- ]));
35
+ let F = y([]), I = y([]), L = /* @__PURE__ */ new Set(), R = 0;
36
+ function z(e, t) {
37
+ let n = window.setTimeout(() => {
38
+ L.delete(n), e();
39
+ }, t);
40
+ L.add(n);
41
+ }
42
+ function B(e, t) {
43
+ let n = t === "assertive" ? I : F, i = ++R;
44
+ z(() => {
45
+ n.value.push({
46
+ key: i,
47
+ text: e
48
+ }), z(() => {
49
+ n.value = n.value.filter((e) => e.key !== i);
50
+ }, r);
51
+ }, 100);
52
+ }
53
+ return v(i, { announce: B }), g(() => {
54
+ for (let e of L) window.clearTimeout(e);
55
+ L.clear();
56
+ }), (e, t) => (_(), u("div", {
57
+ id: C(A),
58
+ class: h(["q-toaster", k.class]),
59
+ "data-placement": k.placement
60
+ }, [
61
+ f(s, { name: "q-toast-stack" }, {
62
+ default: T(() => [(_(!0), u(o, null, b(N.value, (e) => (_(), u("div", {
63
+ key: e.entryKey,
64
+ class: "q-toast__container"
65
+ }, [f(C(a), m({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => P(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
66
+ _: 1
67
+ }),
68
+ l("\n The toasts announce themselves here. These regions are on the page before any toast\n appears, so screen readers pick up each message added to them. `aria-atomic=\"false\"`\n reads only the new message, not the ones still in the region.\n "),
69
+ d("div", D, [(_(!0), u(o, null, b(F.value, (e) => (_(), u("div", { key: e.key }, x(e.text), 1))), 128))]),
70
+ d("div", O, [(_(!0), u(o, null, b(I.value, (e) => (_(), u("div", { key: e.key }, x(e.text), 1))), 128))])
71
+ ], 10, E));
42
72
  }
43
73
  });
44
74
  //#endregion
45
- export { b as default };
75
+ export { k as default };
@@ -1,9 +1,27 @@
1
1
  export declare const DEFAULT_TEXTS: {
2
2
  dismiss: string;
3
+ info: string;
4
+ success: string;
5
+ warning: string;
6
+ danger: string;
3
7
  };
4
8
  export declare const DEFAULT_ICONS: {
5
9
  close: {
6
10
  icon: string;
7
11
  };
12
+ info: {
13
+ icon: string;
14
+ };
15
+ success: {
16
+ icon: string;
17
+ };
18
+ warning: {
19
+ icon: string;
20
+ };
21
+ danger: {
22
+ icon: string;
23
+ };
8
24
  };
25
+ export declare const ANNOUNCEMENT_DELAY = 100;
26
+ export declare const ANNOUNCEMENT_LIFETIME = 7000;
9
27
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;CAGQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAKY,CAAA;AAItC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,qBAAqB,OAAO,CAAA"}
@@ -1,4 +1,11 @@
1
+ import { SEVERITY_ICONS as e, SEVERITY_TEXTS as t } from "../../utils/severity.js";
1
2
  //#region src/components/QToast/constants.ts
2
- var e = { dismiss: "Dismiss" }, t = { close: { icon: "close" } };
3
+ var n = {
4
+ ...t,
5
+ dismiss: "Dismiss"
6
+ }, r = {
7
+ ...e,
8
+ close: { icon: "close" }
9
+ }, i = 7e3;
3
10
  //#endregion
4
- export { t as DEFAULT_ICONS, e as DEFAULT_TEXTS };
11
+ export { i as ANNOUNCEMENT_LIFETIME, r as DEFAULT_ICONS, n as DEFAULT_TEXTS };
@@ -0,0 +1,24 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { QLive } from '../../types/component';
3
+ /**
4
+ * Provide/inject context that {@link QToaster} gives the toasts it renders.
5
+ *
6
+ * The toaster owns live regions that are on the page before any toast appears.
7
+ * Screen readers often skip a live region inserted together with its message, so the
8
+ * toasts announce themselves through these regions instead of their own role.
9
+ */
10
+ export type QToasterContext = {
11
+ /**
12
+ * Announces a message to screen readers.
13
+ *
14
+ * @param message - The text to announce.
15
+ * @param live - `assertive` interrupts the user (`role="alert"`), `polite` waits until
16
+ * they are idle (`role="status"`).
17
+ */
18
+ announce: (message: string, live: Exclude<QLive, 'off'>) => void;
19
+ };
20
+ /**
21
+ * Injection key for the {@link QToasterContext} provided by `QToaster`.
22
+ */
23
+ export declare const ToasterSymbol: InjectionKey<QToasterContext>;
24
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,CAAA;CAChE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,eAAe,CAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ //#region src/components/QToast/context.ts
2
+ var e = Symbol("q-toaster");
3
+ //#endregion
4
+ export { e as ToasterSymbol };
@@ -7,6 +7,7 @@ declare const QToast: {
7
7
  elevation?: import('..').QCardElevation;
8
8
  variant?: import('./types').QToastVariant;
9
9
  timeout?: number;
10
+ live?: import('../..').QLive;
10
11
  icons?: typeof import('./constants').DEFAULT_ICONS;
11
12
  texts?: typeof import('./constants').DEFAULT_TEXTS;
12
13
  } & {
@@ -16,11 +17,11 @@ declare const QToast: {
16
17
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
18
  dismiss: () => any;
18
19
  }, import('vue').PublicProps, {
19
- variant: import('./types').QToastVariant;
20
20
  color: string;
21
- elevation: import('..').QCardElevation;
21
+ variant: import('./types').QToastVariant;
22
22
  icons: typeof import('./constants').DEFAULT_ICONS;
23
23
  texts: typeof import('./constants').DEFAULT_TEXTS;
24
+ elevation: import('..').QCardElevation;
24
25
  entryKey: string;
25
26
  timeout: number;
26
27
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -38,6 +39,7 @@ declare const QToast: {
38
39
  elevation?: import('..').QCardElevation;
39
40
  variant?: import('./types').QToastVariant;
40
41
  timeout?: number;
42
+ live?: import('../..').QLive;
41
43
  icons?: typeof import('./constants').DEFAULT_ICONS;
42
44
  texts?: typeof import('./constants').DEFAULT_TEXTS;
43
45
  } & {
@@ -45,11 +47,11 @@ declare const QToast: {
45
47
  }> & Readonly<{
46
48
  onDismiss?: (() => any) | undefined;
47
49
  }>, {}, {}, {}, {}, {
48
- variant: import('./types').QToastVariant;
49
50
  color: string;
50
- elevation: import('..').QCardElevation;
51
+ variant: import('./types').QToastVariant;
51
52
  icons: typeof import('./constants').DEFAULT_ICONS;
52
53
  texts: typeof import('./constants').DEFAULT_TEXTS;
54
+ elevation: import('..').QCardElevation;
53
55
  entryKey: string;
54
56
  timeout: number;
55
57
  }>;
@@ -64,6 +66,7 @@ declare const QToast: {
64
66
  elevation?: import('..').QCardElevation;
65
67
  variant?: import('./types').QToastVariant;
66
68
  timeout?: number;
69
+ live?: import('../..').QLive;
67
70
  icons?: typeof import('./constants').DEFAULT_ICONS;
68
71
  texts?: typeof import('./constants').DEFAULT_TEXTS;
69
72
  } & {
@@ -73,15 +76,17 @@ declare const QToast: {
73
76
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
74
77
  dismiss: () => any;
75
78
  }, string, {
76
- variant: import('./types').QToastVariant;
77
79
  color: string;
78
- elevation: import('..').QCardElevation;
80
+ variant: import('./types').QToastVariant;
79
81
  icons: typeof import('./constants').DEFAULT_ICONS;
80
82
  texts: typeof import('./constants').DEFAULT_TEXTS;
83
+ elevation: import('..').QCardElevation;
81
84
  entryKey: string;
82
85
  timeout: number;
83
86
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
84
87
  $slots: {
88
+ icon?(_: {}): any;
89
+ icon?(_: {}): any;
85
90
  'title.prepend'?(_: {}): any;
86
91
  'title.append'?(_: {}): any;
87
92
  dismiss?(_: {}): any;
@@ -91,7 +96,7 @@ declare const QToast: {
91
96
  });
92
97
  declare const QToaster: import('vue').DefineComponent<import('./types').QToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QToasterProps> & Readonly<{}>, {
93
98
  placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
94
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
99
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
95
100
  export { QToast, QToaster };
96
101
  export * from './types';
97
102
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;wFAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}