@quidgest/ui 0.31.1 → 0.32.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 (491) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/json/api.json +1032 -243
  3. package/dist/manifest/components.json +1 -0
  4. package/dist/ui.css +859 -285
  5. package/dist/ui.esm.js +1584 -1360
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.scss +949 -305
  8. package/lib/components/QAccordion/QAccordion.d.ts +1 -1
  9. package/lib/components/QAccordion/QAccordion.d.ts.map +1 -1
  10. package/lib/components/QAccordion/QAccordionItem.d.ts.map +1 -1
  11. package/lib/components/QAccordion/QAccordionItem.vue.js +5 -5
  12. package/lib/components/QAccordion/index.d.ts +6 -6
  13. package/lib/components/QAccordion/types.d.ts +2 -2
  14. package/lib/components/QAccordion/types.d.ts.map +1 -1
  15. package/lib/components/QAlert/QAlert.d.ts +1 -1
  16. package/lib/components/QAlert/QAlert.d.ts.map +1 -1
  17. package/lib/components/QAlert/QAlert.vue.js +78 -74
  18. package/lib/components/QAlert/index.d.ts +3 -3
  19. package/lib/components/QAlert/types.d.ts +20 -2
  20. package/lib/components/QAlert/types.d.ts.map +1 -1
  21. package/lib/components/QAvatar/QAvatar.d.ts +1 -1
  22. package/lib/components/QAvatar/index.d.ts +3 -3
  23. package/lib/components/QBadge/QBadge.d.ts +1 -1
  24. package/lib/components/QBadge/QBadge.d.ts.map +1 -1
  25. package/lib/components/QBadge/QBadge.vue.js +64 -55
  26. package/lib/components/QBadge/index.d.ts +3 -3
  27. package/lib/components/QBadge/types.d.ts +2 -2
  28. package/lib/components/QBadge/types.d.ts.map +1 -1
  29. package/lib/components/QBadgeIndicator/QBadgeIndicator.vue.js +2 -3
  30. package/lib/components/QBreadcrumbs/QBreadcrumb.d.ts +6 -6
  31. package/lib/components/QBreadcrumbs/QBreadcrumb.vue.js +3 -3
  32. package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts +1 -1
  33. package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
  34. package/lib/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
  35. package/lib/components/QBreadcrumbs/context.d.ts +2 -1
  36. package/lib/components/QBreadcrumbs/context.d.ts.map +1 -1
  37. package/lib/components/QBreadcrumbs/index.d.ts +9 -9
  38. package/lib/components/QBreadcrumbs/types.d.ts +2 -2
  39. package/lib/components/QBreadcrumbs/types.d.ts.map +1 -1
  40. package/lib/components/QButton/QButton.d.ts +2 -2
  41. package/lib/components/QButton/QButton.d.ts.map +1 -1
  42. package/lib/components/QButton/QButton.vue.js +53 -49
  43. package/lib/components/QButton/index.d.ts +6 -6
  44. package/lib/components/QButton/types.d.ts +2 -2
  45. package/lib/components/QButton/types.d.ts.map +1 -1
  46. package/lib/components/QCard/QCard.vue.js +9 -20
  47. package/lib/components/QCarousel/QCarousel.d.ts +4 -4
  48. package/lib/components/QCarousel/QCarousel.d.ts.map +1 -1
  49. package/lib/components/QCarousel/QCarousel.vue.js +10 -16
  50. package/lib/components/QCarousel/index.d.ts +14 -14
  51. package/lib/components/QCarousel/types.d.ts +2 -2
  52. package/lib/components/QCarousel/types.d.ts.map +1 -1
  53. package/lib/components/QCheckbox/QCheckbox.d.ts +3 -22
  54. package/lib/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  55. package/lib/components/QCheckbox/QCheckbox.vue.js +98 -100
  56. package/lib/components/QCheckbox/constants.d.ts +9 -0
  57. package/lib/components/QCheckbox/constants.d.ts.map +1 -1
  58. package/lib/components/QCheckbox/constants.js +4 -4
  59. package/lib/components/QCheckbox/index.d.ts +10 -72
  60. package/lib/components/QCheckbox/index.d.ts.map +1 -1
  61. package/lib/components/QCheckbox/types.d.ts +2 -8
  62. package/lib/components/QCheckbox/types.d.ts.map +1 -1
  63. package/lib/components/QCollapsible/QCollapsible.d.ts +1 -1
  64. package/lib/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  65. package/lib/components/QCollapsible/QCollapsible.vue.js +20 -27
  66. package/lib/components/QCollapsible/index.d.ts +6 -6
  67. package/lib/components/QCollapsible/types.d.ts +2 -2
  68. package/lib/components/QCollapsible/types.d.ts.map +1 -1
  69. package/lib/components/QColorPicker/QColorPicker.d.ts +4 -18
  70. package/lib/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  71. package/lib/components/QColorPicker/QColorPicker.vue.js +52 -35
  72. package/lib/components/QColorPicker/constants.d.ts +4 -0
  73. package/lib/components/QColorPicker/constants.d.ts.map +1 -1
  74. package/lib/components/QColorPicker/index.d.ts +13 -57
  75. package/lib/components/QColorPicker/index.d.ts.map +1 -1
  76. package/lib/components/QColorPicker/types.d.ts +2 -2
  77. package/lib/components/QColorPicker/types.d.ts.map +1 -1
  78. package/lib/components/QCombobox/QCombobox.d.ts +355 -299
  79. package/lib/components/QCombobox/QCombobox.d.ts.map +1 -1
  80. package/lib/components/QCombobox/QCombobox.vue.js +236 -190
  81. package/lib/components/QCombobox/constants.d.ts +5 -0
  82. package/lib/components/QCombobox/constants.d.ts.map +1 -1
  83. package/lib/components/QCombobox/constants.js +1 -0
  84. package/lib/components/QCombobox/index.d.ts +265 -424
  85. package/lib/components/QCombobox/index.d.ts.map +1 -1
  86. package/lib/components/QCombobox/types.d.ts +2 -2
  87. package/lib/components/QCombobox/types.d.ts.map +1 -1
  88. package/lib/components/QDateTimePicker/QDateTimePicker.d.ts +106 -229
  89. package/lib/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  90. package/lib/components/QDateTimePicker/QDateTimePicker.vue.js +829 -722
  91. package/lib/components/QDateTimePicker/constants.d.ts +6 -1
  92. package/lib/components/QDateTimePicker/constants.d.ts.map +1 -1
  93. package/lib/components/QDateTimePicker/constants.js +2 -1
  94. package/lib/components/QDateTimePicker/index.d.ts +73 -229
  95. package/lib/components/QDateTimePicker/index.d.ts.map +1 -1
  96. package/lib/components/QDateTimePicker/types.d.ts +2 -1
  97. package/lib/components/QDateTimePicker/types.d.ts.map +1 -1
  98. package/lib/components/QDialog/QDialog.d.ts +22 -10
  99. package/lib/components/QDialog/QDialog.d.ts.map +1 -1
  100. package/lib/components/QDialog/QDialog.vue.js +143 -108
  101. package/lib/components/QDialog/QDialogProvider.d.ts.map +1 -1
  102. package/lib/components/QDialog/QDialogProvider.vue.js +8 -3
  103. package/lib/components/QDialog/constants.d.ts +19 -1
  104. package/lib/components/QDialog/constants.d.ts.map +1 -1
  105. package/lib/components/QDialog/constants.js +16 -11
  106. package/lib/components/QDialog/index.d.ts +39 -23
  107. package/lib/components/QDialog/index.d.ts.map +1 -1
  108. package/lib/components/QDialog/types.d.ts +24 -13
  109. package/lib/components/QDialog/types.d.ts.map +1 -1
  110. package/lib/components/QDivider/QDivider.d.ts.map +1 -1
  111. package/lib/components/QDivider/QDivider.vue.js +23 -13
  112. package/lib/components/QDivider/types.d.ts +9 -0
  113. package/lib/components/QDivider/types.d.ts.map +1 -1
  114. package/lib/components/QDrawer/QDrawer.d.ts +71 -0
  115. package/lib/components/QDrawer/QDrawer.d.ts.map +1 -0
  116. package/lib/components/QDrawer/QDrawer.vue.js +458 -0
  117. package/lib/components/QDrawer/QDrawer2.vue.js +5 -0
  118. package/lib/components/QDrawer/constants.d.ts +22 -0
  119. package/lib/components/QDrawer/constants.d.ts.map +1 -0
  120. package/lib/components/QDrawer/constants.js +14 -0
  121. package/lib/components/QDrawer/index.d.ts +214 -0
  122. package/lib/components/QDrawer/index.d.ts.map +1 -0
  123. package/lib/components/QDrawer/index.js +6 -0
  124. package/lib/components/QDrawer/types.d.ts +221 -0
  125. package/lib/components/QDrawer/types.d.ts.map +1 -0
  126. package/lib/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
  127. package/lib/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  128. package/lib/components/QDropdownMenu/QDropdownMenu.vue.js +59 -52
  129. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts +118 -42
  130. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  131. package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +213 -185
  132. package/lib/components/QDropdownMenu/ids.d.ts +6 -0
  133. package/lib/components/QDropdownMenu/ids.d.ts.map +1 -1
  134. package/lib/components/QDropdownMenu/ids.js +4 -1
  135. package/lib/components/QDropdownMenu/index.d.ts +6 -6
  136. package/lib/components/QDropdownMenu/types.d.ts +6 -4
  137. package/lib/components/QDropdownMenu/types.d.ts.map +1 -1
  138. package/lib/components/QField/QField.d.ts +18 -17
  139. package/lib/components/QField/QField.d.ts.map +1 -1
  140. package/lib/components/QField/QField.vue.js +65 -50
  141. package/lib/components/QField/constants.d.ts +10 -3
  142. package/lib/components/QField/constants.d.ts.map +1 -1
  143. package/lib/components/QField/constants.js +4 -2
  144. package/lib/components/QField/index.d.ts +12 -11
  145. package/lib/components/QField/index.d.ts.map +1 -1
  146. package/lib/components/QField/types.d.ts +6 -5
  147. package/lib/components/QField/types.d.ts.map +1 -1
  148. package/lib/components/QFileUpload/QFileUpload.d.ts +28 -54
  149. package/lib/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  150. package/lib/components/QFileUpload/QFileUpload.vue.js +43 -39
  151. package/lib/components/QFileUpload/constants.d.ts +4 -0
  152. package/lib/components/QFileUpload/constants.d.ts.map +1 -1
  153. package/lib/components/QFileUpload/index.d.ts +25 -105
  154. package/lib/components/QFileUpload/index.d.ts.map +1 -1
  155. package/lib/components/QFileUpload/types.d.ts +2 -1
  156. package/lib/components/QFileUpload/types.d.ts.map +1 -1
  157. package/lib/components/QFocusWrap/QFocusWrap.d.ts +1 -0
  158. package/lib/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  159. package/lib/components/QFocusWrap/QFocusWrap.vue.js +60 -41
  160. package/lib/components/QFocusWrap/index.d.ts +3 -0
  161. package/lib/components/QFocusWrap/index.d.ts.map +1 -1
  162. package/lib/components/QFocusWrap/stack.d.ts +15 -0
  163. package/lib/components/QFocusWrap/stack.d.ts.map +1 -0
  164. package/lib/components/QFocusWrap/stack.js +11 -0
  165. package/lib/components/QFocusWrap/types.d.ts +8 -0
  166. package/lib/components/QFocusWrap/types.d.ts.map +1 -1
  167. package/lib/components/QGauge/QGauge.d.ts.map +1 -1
  168. package/lib/components/QGauge/QGauge.vue.js +87 -86
  169. package/lib/components/QGrid/QRow.d.ts +1 -1
  170. package/lib/components/QGrid/index.d.ts +3 -3
  171. package/lib/components/QIcon/QSvgSymbol.d.ts +1 -1
  172. package/lib/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  173. package/lib/components/QIcon/QSvgSymbol.vue.js +31 -31
  174. package/lib/components/QIcon/utils/svgSource.d.ts +2 -2
  175. package/lib/components/QIcon/utils/svgSource.d.ts.map +1 -1
  176. package/lib/components/QInputGroup/QInputGroup.d.ts +27 -24
  177. package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  178. package/lib/components/QInputGroup/QInputGroup.vue.js +19 -11
  179. package/lib/components/QInputGroup/index.d.ts +14 -12
  180. package/lib/components/QInputGroup/index.d.ts.map +1 -1
  181. package/lib/components/QLabel/QLabel.vue.js +1 -2
  182. package/lib/components/QList/QList.d.ts +46 -17
  183. package/lib/components/QList/QList.d.ts.map +1 -1
  184. package/lib/components/QList/QList.vue.js +470 -195
  185. package/lib/components/QList/QListItem.d.ts +1 -1
  186. package/lib/components/QList/QListItem.d.ts.map +1 -1
  187. package/lib/components/QList/QListItem.vue.js +33 -32
  188. package/lib/components/QList/QListItemGroup.vue.js +1 -1
  189. package/lib/components/QList/constants.d.ts +26 -0
  190. package/lib/components/QList/constants.d.ts.map +1 -1
  191. package/lib/components/QList/context.d.ts +12 -1
  192. package/lib/components/QList/context.d.ts.map +1 -1
  193. package/lib/components/QList/context.js +2 -2
  194. package/lib/components/QList/index.d.ts +79 -22
  195. package/lib/components/QList/index.d.ts.map +1 -1
  196. package/lib/components/QList/types.d.ts +11 -9
  197. package/lib/components/QList/types.d.ts.map +1 -1
  198. package/lib/components/QMeter/QMeter.d.ts.map +1 -1
  199. package/lib/components/QMeter/QMeter.vue.js +27 -26
  200. package/lib/components/QObfuscation/QObfuscation.d.ts +8 -26
  201. package/lib/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  202. package/lib/components/QObfuscation/QObfuscation.vue.js +137 -113
  203. package/lib/components/QObfuscation/constants.d.ts +4 -0
  204. package/lib/components/QObfuscation/constants.d.ts.map +1 -1
  205. package/lib/components/QObfuscation/index.d.ts +26 -81
  206. package/lib/components/QObfuscation/index.d.ts.map +1 -1
  207. package/lib/components/QObfuscation/types.d.ts +10 -1
  208. package/lib/components/QObfuscation/types.d.ts.map +1 -1
  209. package/lib/components/QOverflow/QOverflow.d.ts +7 -3
  210. package/lib/components/QOverflow/QOverflow.d.ts.map +1 -1
  211. package/lib/components/QOverflow/QOverflow.vue.js +131 -108
  212. package/lib/components/QOverflow/constants.d.ts +4 -1
  213. package/lib/components/QOverflow/constants.d.ts.map +1 -1
  214. package/lib/components/QOverflow/index.d.ts +3 -3
  215. package/lib/components/QOverflow/types.d.ts +7 -4
  216. package/lib/components/QOverflow/types.d.ts.map +1 -1
  217. package/lib/components/QOverlay/QOverlay.d.ts +14 -5
  218. package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
  219. package/lib/components/QOverlay/QOverlay.vue.js +183 -158
  220. package/lib/components/QOverlay/index.d.ts +105 -13
  221. package/lib/components/QOverlay/index.d.ts.map +1 -1
  222. package/lib/components/QOverlay/layers.d.ts +21 -0
  223. package/lib/components/QOverlay/layers.d.ts.map +1 -0
  224. package/lib/components/QOverlay/layers.js +11 -0
  225. package/lib/components/QOverlay/types.d.ts +0 -6
  226. package/lib/components/QOverlay/types.d.ts.map +1 -1
  227. package/lib/components/QPasswordField/QPasswordField.d.ts +52 -170
  228. package/lib/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  229. package/lib/components/QPasswordField/QPasswordField.vue.js +8 -3
  230. package/lib/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +2 -3
  231. package/lib/components/QPasswordField/constants.d.ts +4 -0
  232. package/lib/components/QPasswordField/constants.d.ts.map +1 -1
  233. package/lib/components/QPasswordField/index.d.ts +29 -170
  234. package/lib/components/QPasswordField/index.d.ts.map +1 -1
  235. package/lib/components/QPasswordField/types.d.ts +2 -1
  236. package/lib/components/QPasswordField/types.d.ts.map +1 -1
  237. package/lib/components/QPhoneField/QPhoneField.d.ts +485 -622
  238. package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  239. package/lib/components/QPhoneField/QPhoneField.vue.js +20 -13
  240. package/lib/components/QPhoneField/constants.d.ts +4 -0
  241. package/lib/components/QPhoneField/constants.d.ts.map +1 -1
  242. package/lib/components/QPhoneField/index.d.ts +257 -393
  243. package/lib/components/QPhoneField/index.d.ts.map +1 -1
  244. package/lib/components/QPhoneField/types.d.ts +5 -2
  245. package/lib/components/QPhoneField/types.d.ts.map +1 -1
  246. package/lib/components/QPopover/QPopover.d.ts +1 -1
  247. package/lib/components/QPopover/QPopover.d.ts.map +1 -1
  248. package/lib/components/QPopover/QPopover.vue.js +64 -42
  249. package/lib/components/QPopover/index.d.ts +3 -3
  250. package/lib/components/QPopover/types.d.ts +7 -2
  251. package/lib/components/QPopover/types.d.ts.map +1 -1
  252. package/lib/components/QProgress/QProgress.d.ts.map +1 -1
  253. package/lib/components/QProgress/QProgress.vue.js +47 -46
  254. package/lib/components/QPropertyList/QPropertyList.d.ts +1 -1
  255. package/lib/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  256. package/lib/components/QPropertyList/QPropertyList.vue.js +3 -3
  257. package/lib/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
  258. package/lib/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  259. package/lib/components/QPropertyList/QPropertyListRow.d.ts +1 -1
  260. package/lib/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  261. package/lib/components/QPropertyList/QPropertyListRow.vue.js +59 -44
  262. package/lib/components/QPropertyList/index.d.ts +8 -8
  263. package/lib/components/QPropertyList/index.d.ts.map +1 -1
  264. package/lib/components/QPropertyList/types.d.ts +3 -3
  265. package/lib/components/QPropertyList/types.d.ts.map +1 -1
  266. package/lib/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  267. package/lib/components/QRadioGroup/QRadioButton.vue.js +5 -2
  268. package/lib/components/QRadioGroup/QRadioGroup.d.ts +1 -1
  269. package/lib/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  270. package/lib/components/QRadioGroup/QRadioGroup.vue.js +19 -18
  271. package/lib/components/QRadioGroup/index.d.ts +1 -6
  272. package/lib/components/QRadioGroup/index.d.ts.map +1 -1
  273. package/lib/components/QRadioGroup/types.d.ts +0 -6
  274. package/lib/components/QRadioGroup/types.d.ts.map +1 -1
  275. package/lib/components/QSection/QSection.d.ts +3 -3
  276. package/lib/components/QSection/QSection.d.ts.map +1 -1
  277. package/lib/components/QSection/QSection.vue.js +52 -45
  278. package/lib/components/QSection/index.d.ts +4 -4
  279. package/lib/components/QSection/types.d.ts +10 -2
  280. package/lib/components/QSection/types.d.ts.map +1 -1
  281. package/lib/components/QSelect/QSelect.d.ts +306 -114
  282. package/lib/components/QSelect/QSelect.d.ts.map +1 -1
  283. package/lib/components/QSelect/QSelect.vue.js +274 -250
  284. package/lib/components/QSelect/constants.d.ts +4 -0
  285. package/lib/components/QSelect/constants.d.ts.map +1 -1
  286. package/lib/components/QSelect/index.d.ts +173 -144
  287. package/lib/components/QSelect/index.d.ts.map +1 -1
  288. package/lib/components/QSelect/types.d.ts +4 -2
  289. package/lib/components/QSelect/types.d.ts.map +1 -1
  290. package/lib/components/QSidebar/QSidebar.d.ts +9 -9
  291. package/lib/components/QSidebar/QSidebar.d.ts.map +1 -1
  292. package/lib/components/QSidebar/QSidebar.vue.js +2 -2
  293. package/lib/components/QSidebar/QSidebarAnchor.d.ts +1 -1
  294. package/lib/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  295. package/lib/components/QSidebar/QSidebarAnchor.vue.js +4 -4
  296. package/lib/components/QSidebar/QSidebarItem.d.ts +7 -7
  297. package/lib/components/QSidebar/QSidebarItem.vue.js +3 -3
  298. package/lib/components/QSidebar/QSidebarPanel.d.ts +3 -3
  299. package/lib/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  300. package/lib/components/QSidebar/QSidebarPanel.vue.js +81 -140
  301. package/lib/components/QSidebar/constants.d.ts.map +1 -1
  302. package/lib/components/QSidebar/constants.js +4 -5
  303. package/lib/components/QSidebar/index.d.ts +24 -24
  304. package/lib/components/QSidebar/types.d.ts +7 -6
  305. package/lib/components/QSidebar/types.d.ts.map +1 -1
  306. package/lib/components/QSteps/QStepHeader.d.ts +2 -1
  307. package/lib/components/QSteps/QStepHeader.d.ts.map +1 -1
  308. package/lib/components/QSteps/QStepHeader.vue.js +3 -4
  309. package/lib/components/QSteps/QSteps.d.ts +8 -8
  310. package/lib/components/QSteps/QSteps.d.ts.map +1 -1
  311. package/lib/components/QSteps/QSteps.vue.js +9 -6
  312. package/lib/components/QSteps/QStepsNav.d.ts +2 -1
  313. package/lib/components/QSteps/QStepsNav.d.ts.map +1 -1
  314. package/lib/components/QSteps/index.d.ts +12 -12
  315. package/lib/components/QSteps/types.d.ts +2 -2
  316. package/lib/components/QSteps/types.d.ts.map +1 -1
  317. package/lib/components/QSwitch/QSwitch.d.ts +39 -26
  318. package/lib/components/QSwitch/QSwitch.d.ts.map +1 -1
  319. package/lib/components/QSwitch/QSwitch.vue.js +64 -58
  320. package/lib/components/QSwitch/constants.d.ts +20 -0
  321. package/lib/components/QSwitch/constants.d.ts.map +1 -0
  322. package/lib/components/QSwitch/constants.js +9 -0
  323. package/lib/components/QSwitch/index.d.ts +56 -18
  324. package/lib/components/QSwitch/index.d.ts.map +1 -1
  325. package/lib/components/QSwitch/types.d.ts +21 -3
  326. package/lib/components/QSwitch/types.d.ts.map +1 -1
  327. package/lib/components/QTabs/QTab.d.ts +12 -12
  328. package/lib/components/QTabs/QTab.vue.js +3 -3
  329. package/lib/components/QTabs/QTabs.d.ts +9 -9
  330. package/lib/components/QTabs/QTabs.d.ts.map +1 -1
  331. package/lib/components/QTabs/QTabs.vue.js +92 -80
  332. package/lib/components/QTabs/index.d.ts +16 -16
  333. package/lib/components/QTabs/types.d.ts +2 -2
  334. package/lib/components/QTabs/types.d.ts.map +1 -1
  335. package/lib/components/QTextArea/QTextArea.d.ts +1 -0
  336. package/lib/components/QTextArea/QTextArea.d.ts.map +1 -1
  337. package/lib/components/QTextArea/QTextArea.vue.js +6 -1
  338. package/lib/components/QTextArea/index.d.ts +1 -0
  339. package/lib/components/QTextArea/index.d.ts.map +1 -1
  340. package/lib/components/QTextField/QTextField.d.ts +30 -42
  341. package/lib/components/QTextField/QTextField.d.ts.map +1 -1
  342. package/lib/components/QTextField/QTextField.vue.js +7 -2
  343. package/lib/components/QTextField/constants.d.ts +4 -0
  344. package/lib/components/QTextField/constants.d.ts.map +1 -1
  345. package/lib/components/QTextField/index.d.ts +26 -69
  346. package/lib/components/QTextField/index.d.ts.map +1 -1
  347. package/lib/components/QTextField/types.d.ts +2 -1
  348. package/lib/components/QTextField/types.d.ts.map +1 -1
  349. package/lib/components/QToast/QToast.d.ts +1 -1
  350. package/lib/components/QToast/QToast.d.ts.map +1 -1
  351. package/lib/components/QToast/QToast.vue.js +148 -134
  352. package/lib/components/QToast/QToaster.d.ts +3 -1
  353. package/lib/components/QToast/QToaster.d.ts.map +1 -1
  354. package/lib/components/QToast/QToaster.vue.js +74 -46
  355. package/lib/components/QToast/index.d.ts +9 -7
  356. package/lib/components/QToast/index.d.ts.map +1 -1
  357. package/lib/components/QToast/types.d.ts +2 -2
  358. package/lib/components/QToast/types.d.ts.map +1 -1
  359. package/lib/components/QToggle/QToggle.d.ts.map +1 -1
  360. package/lib/components/QToggle/QToggle.vue.js +2 -0
  361. package/lib/components/QToggle/index.d.ts +3 -3
  362. package/lib/components/QToggleGroup/QToggleGroupItem.d.ts +8 -1
  363. package/lib/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
  364. package/lib/components/QToggleGroup/QToggleGroupItem.vue.js +67 -16
  365. package/lib/components/QToggleGroup/index.d.ts +24 -3
  366. package/lib/components/QToggleGroup/index.d.ts.map +1 -1
  367. package/lib/components/QTooltip/QTooltip.d.ts +1 -1
  368. package/lib/components/QTooltip/QTooltip.vue.js +1 -1
  369. package/lib/components/QTooltip/index.d.ts +3 -3
  370. package/lib/components/__internal__/QChevron/QChevron.d.ts +1 -1
  371. package/lib/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  372. package/lib/components/__internal__/QChevron/index.d.ts +3 -3
  373. package/lib/components/__internal__/QChevron/types.d.ts +2 -2
  374. package/lib/components/__internal__/QChevron/types.d.ts.map +1 -1
  375. package/lib/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
  376. package/lib/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  377. package/lib/components/__internal__/QClearButton/index.d.ts +1 -1
  378. package/lib/components/__internal__/QClearButton/types.d.ts +2 -2
  379. package/lib/components/__internal__/QClearButton/types.d.ts.map +1 -1
  380. package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts +7 -7
  381. package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
  382. package/lib/components/__internal__/QHelpPopover/QHelpPopover.vue.js +3 -6
  383. package/lib/components/__internal__/QHelpPopover/index.d.ts +7 -7
  384. package/lib/components/__internal__/QHelpPopover/types.d.ts +2 -2
  385. package/lib/components/__internal__/QHelpPopover/types.d.ts.map +1 -1
  386. package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts +34 -0
  387. package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts.map +1 -0
  388. package/lib/components/__internal__/QListboxPanel/QListboxPanel.vue.js +76 -0
  389. package/lib/components/__internal__/QListboxPanel/QListboxPanel2.vue.js +5 -0
  390. package/lib/components/__internal__/QListboxPanel/constants.d.ts +17 -0
  391. package/lib/components/__internal__/QListboxPanel/constants.d.ts.map +1 -0
  392. package/lib/components/__internal__/QListboxPanel/constants.js +4 -0
  393. package/lib/components/__internal__/QListboxPanel/index.d.ts +52 -0
  394. package/lib/components/__internal__/QListboxPanel/index.d.ts.map +1 -0
  395. package/lib/components/__internal__/QListboxPanel/index.js +7 -0
  396. package/lib/components/__internal__/QListboxPanel/types.d.ts +50 -0
  397. package/lib/components/__internal__/QListboxPanel/types.d.ts.map +1 -0
  398. package/lib/components/__internal__/QListboxPanel/utils.d.ts +4 -0
  399. package/lib/components/__internal__/QListboxPanel/utils.d.ts.map +1 -0
  400. package/lib/components/__internal__/QListboxPanel/utils.js +6 -0
  401. package/lib/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +1 -1
  402. package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts +16 -0
  403. package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts.map +1 -0
  404. package/lib/components/__internal__/QResizeHandle/QResizeButtons.vue.js +72 -0
  405. package/lib/components/__internal__/QResizeHandle/QResizeButtons2.vue.js +5 -0
  406. package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts +15 -0
  407. package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts.map +1 -0
  408. package/lib/components/__internal__/QResizeHandle/QResizeHandle.vue.js +74 -0
  409. package/lib/components/__internal__/QResizeHandle/QResizeHandle2.vue.js +5 -0
  410. package/lib/components/__internal__/QResizeHandle/constants.d.ts +22 -0
  411. package/lib/components/__internal__/QResizeHandle/constants.d.ts.map +1 -0
  412. package/lib/components/__internal__/QResizeHandle/constants.js +10 -0
  413. package/lib/components/__internal__/QResizeHandle/index.d.ts +28 -0
  414. package/lib/components/__internal__/QResizeHandle/index.d.ts.map +1 -0
  415. package/lib/components/__internal__/QResizeHandle/index.js +7 -0
  416. package/lib/components/__internal__/QResizeHandle/types.d.ts +107 -0
  417. package/lib/components/__internal__/QResizeHandle/types.d.ts.map +1 -0
  418. package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts +42 -0
  419. package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts.map +1 -0
  420. package/lib/components/__internal__/QResizeHandle/useEdgeResize.js +36 -0
  421. package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts +39 -0
  422. package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts.map +1 -0
  423. package/lib/components/__internal__/QResizeHandle/useResizePane.js +22 -0
  424. package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
  425. package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +1 -1
  426. package/lib/components/__internal__/QSafeTriangle/index.d.ts +2 -2
  427. package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts +24 -0
  428. package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts.map +1 -0
  429. package/lib/components/__internal__/QSeverityContent/QSeverityContent.vue.js +58 -0
  430. package/lib/components/__internal__/QSeverityContent/QSeverityContent2.vue.js +5 -0
  431. package/lib/components/__internal__/QSeverityContent/index.d.ts +31 -0
  432. package/lib/components/__internal__/QSeverityContent/index.d.ts.map +1 -0
  433. package/lib/components/__internal__/QSeverityContent/index.js +6 -0
  434. package/lib/components/__internal__/QSeverityContent/types.d.ts +67 -0
  435. package/lib/components/__internal__/QSeverityContent/types.d.ts.map +1 -0
  436. package/lib/components/index.d.ts +1 -0
  437. package/lib/components/index.d.ts.map +1 -1
  438. package/lib/components/index.js +72 -70
  439. package/lib/composables/useColor/index.d.ts +7 -3
  440. package/lib/composables/useColor/index.d.ts.map +1 -1
  441. package/lib/composables/useColor/index.js +40 -38
  442. package/lib/composables/useColor/types.d.ts +5 -4
  443. package/lib/composables/useColor/types.d.ts.map +1 -1
  444. package/lib/composables/useDialog/_internal.js +1 -1
  445. package/lib/composables/useDialog/types.d.ts +6 -2
  446. package/lib/composables/useDialog/types.d.ts.map +1 -1
  447. package/lib/composables/useScrollTabStop/index.d.ts +17 -0
  448. package/lib/composables/useScrollTabStop/index.d.ts.map +1 -0
  449. package/lib/composables/useScrollTabStop/index.js +45 -0
  450. package/lib/composables/useVirtualList/index.d.ts +73 -0
  451. package/lib/composables/useVirtualList/index.d.ts.map +1 -0
  452. package/lib/composables/useVirtualList/index.js +83 -0
  453. package/lib/index.d.ts +2 -1
  454. package/lib/index.d.ts.map +1 -1
  455. package/lib/types/component.d.ts +12 -5
  456. package/lib/types/component.d.ts.map +1 -1
  457. package/lib/types/index.d.ts +1 -1
  458. package/lib/types/index.d.ts.map +1 -1
  459. package/lib/utils/boundedValue.d.ts +20 -0
  460. package/lib/utils/boundedValue.d.ts.map +1 -0
  461. package/lib/utils/boundedValue.js +9 -0
  462. package/lib/utils/color/blend.d.ts +13 -0
  463. package/lib/utils/color/blend.d.ts.map +1 -1
  464. package/lib/utils/color/blend.js +6 -3
  465. package/lib/utils/color/contrast.d.ts +19 -0
  466. package/lib/utils/color/contrast.d.ts.map +1 -1
  467. package/lib/utils/color/contrast.js +26 -11
  468. package/lib/utils/color/index.d.ts +1 -1
  469. package/lib/utils/color/index.d.ts.map +1 -1
  470. package/lib/utils/date.d.ts +18 -8
  471. package/lib/utils/date.d.ts.map +1 -1
  472. package/lib/utils/date.js +26 -14
  473. package/lib/utils/index.js +14 -13
  474. package/lib/utils/overlay.d.ts +6 -0
  475. package/lib/utils/overlay.d.ts.map +1 -1
  476. package/lib/utils/overlay.js +10 -10
  477. package/lib/utils/popupLabel.d.ts +15 -0
  478. package/lib/utils/popupLabel.d.ts.map +1 -0
  479. package/lib/utils/popupLabel.js +6 -0
  480. package/lib/utils/railWidth.d.ts +15 -0
  481. package/lib/utils/railWidth.d.ts.map +1 -0
  482. package/lib/utils/railWidth.js +4 -0
  483. package/lib/utils/safeTriangle.d.ts +4 -4
  484. package/lib/utils/safeTriangle.d.ts.map +1 -1
  485. package/lib/utils/slots.d.ts +11 -2
  486. package/lib/utils/slots.d.ts.map +1 -1
  487. package/lib/utils/slots.js +7 -4
  488. package/lib/utils/theme.d.ts +3 -3
  489. package/lib/utils/theme.d.ts.map +1 -1
  490. package/lib/utils/theme.js +31 -31
  491. package/package.json +1 -1
@@ -14,23 +14,38 @@ function o(e, t) {
14
14
  let n = Math.max(e, t), r = Math.min(e, t);
15
15
  return (n + .05) / (r + .05);
16
16
  }
17
- function s(i, s, l = 4.5) {
18
- let u = r(i), d = r(s), f = a(d), p = (e) => o(a(e), f);
19
- if (p(u) >= l) return i;
20
- let m = c(d) === "#000", h = (e) => m ? t(u, e) : n(u, e), g = 0, _ = 100, v = h(100);
21
- for (let e = 0; e < 16; e++) {
22
- let e = (g + _) / 2, t = h(e);
23
- p(t) >= l ? (v = t, _ = e) : g = e;
17
+ var s = 16, c = {
18
+ r: 0,
19
+ g: 0,
20
+ b: 0
21
+ }, l = {
22
+ r: 255,
23
+ g: 255,
24
+ b: 255
25
+ };
26
+ function u(e, t, n = 4.5) {
27
+ return d(e, [r(t)], n);
28
+ }
29
+ function d(i, u, d = 4.5) {
30
+ let f = u.map(a), p = (e) => {
31
+ let t = a(e);
32
+ return Math.min(...f.map((e) => o(t, e)));
33
+ }, m = r(i);
34
+ if (p(m) >= d) return i;
35
+ let h = p(c) > p(l), g = (e) => h ? t(m, e) : n(m, e), _ = 0, v = 100, y = g(100);
36
+ for (let e = 0; e < s; e++) {
37
+ let e = (_ + v) / 2, t = g(e);
38
+ p(t) >= d ? (y = t, v = e) : _ = e;
24
39
  }
25
- return e(v);
40
+ return e(y);
26
41
  }
27
- function c(e) {
42
+ function f(e) {
28
43
  let t = a(e), n = o(t, 0);
29
44
  return o(t, 1) >= n ? "#fff" : "#000";
30
45
  }
31
- function l(t) {
46
+ function p(t) {
32
47
  let n = r(t);
33
48
  return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, e(n);
34
49
  }
35
50
  //#endregion
36
- export { s as ensureContrast, l as getComplementaryColor, o as getContrastRatio, c as getContrastingColor, a as getRelativeLuminance };
51
+ export { u as ensureContrast, d as ensureContrastOnAll, p as getComplementaryColor, o as getContrastRatio, f as getContrastingColor, a as getRelativeLuminance };
@@ -1,4 +1,4 @@
1
- export * from './contrast';
1
+ export { getRelativeLuminance, getContrastRatio, ensureContrast, getContrastingColor, getComplementaryColor } from './contrast';
2
2
  export * from './conversion';
3
3
  export * from './manipulate';
4
4
  export * from './merge';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/color/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/color/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,YAAY,CAAA;AACnB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA"}
@@ -55,7 +55,7 @@ export declare function parseIsoDate(dateStr: string): Date | null;
55
55
  * @example
56
56
  * completePartialDateInput('11/11/1987 1', 'dd/MM/yyyy HH:mm:ss') => '11/11/1987 10:00:00'
57
57
  */
58
- export declare function completePartialDateInput(dateStr: string, format: string, labels?: DateParserLabels): string | null;
58
+ export declare function completePartialDateInput(dateStr: string, format: string, labels?: QDateParserLabels): string | null;
59
59
  /**
60
60
  * Whether user input includes digits in the time portion of the format.
61
61
  * @param dateStr Raw user input.
@@ -70,7 +70,7 @@ export declare function inputIncludesTimePortion(dateStr: string, format: string
70
70
  * @param options Passed to `parseDate`.
71
71
  * @returns Parsed `Date` instance or `null` when parsing fails.
72
72
  */
73
- export declare function parseDateWithCompletion(dateStr: string, format: string, labels?: DateParserLabels, options?: {
73
+ export declare function parseDateWithCompletion(dateStr: string, format: string, labels?: QDateParserLabels, options?: {
74
74
  ignoreWeekday?: boolean;
75
75
  }): Date | null;
76
76
  /**
@@ -110,7 +110,7 @@ export declare function isBetween(date: Date, startDate: Date, endDate: Date): b
110
110
  /**
111
111
  * Formats a date according to a format string.
112
112
  */
113
- export type DateFormatterLabels = {
113
+ export type QDateFormatterLabels = {
114
114
  /**
115
115
  * Returns month label for zero-based month index.
116
116
  * @param month Zero-based month index (`0` = January).
@@ -129,15 +129,15 @@ export type DateFormatterLabels = {
129
129
  /**
130
130
  * Optional parsing label resolvers used by `parseDate`. English names are always read too.
131
131
  */
132
- export type DateParserLabels = {
132
+ export type QDateParserLabels = {
133
133
  /**
134
- * Returns the localized month name to read, as `DateFormatterLabels` does.
134
+ * Returns the localized month name to read, as `QDateFormatterLabels` does.
135
135
  * @param month Zero-based month index (`0` = January).
136
136
  * @param short Whether the short name (`MMM`) is wanted.
137
137
  */
138
138
  getMonthName?: (month: number, short: boolean) => string;
139
139
  /**
140
- * Returns the localized weekday name to read, as `DateFormatterLabels` does.
140
+ * Returns the localized weekday name to read, as `QDateFormatterLabels` does.
141
141
  * @param weekday Sunday-based weekday index (`0` = Sunday).
142
142
  * @param short Whether the short name (`EEE`) is wanted.
143
143
  */
@@ -161,7 +161,7 @@ export type DateParserLabels = {
161
161
  * @param labels Optional localized text resolvers for month/weekday names.
162
162
  * @returns Formatted date string.
163
163
  */
164
- export declare function formatDate(date: Date, format: string, labels?: DateFormatterLabels): string;
164
+ export declare function formatDate(date: Date, format: string, labels?: QDateFormatterLabels): string;
165
165
  /**
166
166
  * Parses a date string according to a format string.
167
167
  * Supports quoted literals, milliseconds, meridiem, and textual month/weekday tokens. A weekday
@@ -173,7 +173,7 @@ export declare function formatDate(date: Date, format: string, labels?: DateForm
173
173
  * text a user edits: changing the day leaves the old weekday in place until it is written again.
174
174
  * @returns Parsed `Date` instance or `null` when parsing fails.
175
175
  */
176
- export declare function parseDate(dateStr: string, format: string, labels?: DateParserLabels, options?: {
176
+ export declare function parseDate(dateStr: string, format: string, labels?: QDateParserLabels, options?: {
177
177
  ignoreWeekday?: boolean;
178
178
  }): Date | null;
179
179
  /**
@@ -250,4 +250,14 @@ export declare function clampDayByMonthYear(value: string, tokens: string[]): st
250
250
  export declare function clampNumericSegments(value: string, format: string, options?: {
251
251
  padMaxDigits: boolean;
252
252
  }): string;
253
+ /**
254
+ * Pads fully-typed numeric segments to their width for the provided format, such as
255
+ * `5/4/2026 9:05` to `05/04/2026 09:05` in `dd/MM/yyyy HH:mm`. Unlike
256
+ * {@link clampNumericSegments}, it never changes a value: a date or time that does not exist,
257
+ * such as `31/02/2026`, stays as it is, for a parser to reject.
258
+ * @param value Masked user input.
259
+ * @param format Date/time format pattern.
260
+ * @returns Input with its numeric segments padded.
261
+ */
262
+ export declare function padNumericSegments(value: string, format: string): string;
253
263
  //# sourceMappingURL=date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAmE/D;AAYD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAE1E;AAKD;;;;GAIG;AACH,wBAAgB,YAAY,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AE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAItD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACX,MAAM,GAAG,IAAI,CAiBf;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAwE3E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GACjC,MAAM,CAKR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAExE"}
package/lib/utils/date.js CHANGED
@@ -588,12 +588,24 @@ function I(e, t) {
588
588
  return i;
589
589
  }
590
590
  function L(e, t, n) {
591
- let r = t.match(d) ?? [], i = e, a = 0;
592
- for (let e of r) {
591
+ return z(e, t, {
592
+ padMaxDigits: n?.padMaxDigits ?? !1,
593
+ clamp: !0
594
+ });
595
+ }
596
+ function R(e, t) {
597
+ return z(e, t, {
598
+ padMaxDigits: !0,
599
+ clamp: !1
600
+ });
601
+ }
602
+ function z(e, t, n) {
603
+ let { clamp: r } = n, i = t.match(d) ?? [], a = e, s = 0;
604
+ for (let e of i) {
593
605
  if (e.startsWith("'")) {
594
- let t = P(i, a, e);
606
+ let t = P(a, s, e);
595
607
  if (t === null) break;
596
- a = t;
608
+ s = t;
597
609
  continue;
598
610
  }
599
611
  let t = e === "yyyy" ? 4 : e === "yy" ? 2 : e === "SSS" ? 3 : e === "S" ? 1 : [
@@ -611,19 +623,19 @@ function L(e, t, n) {
611
623
  "s"
612
624
  ].includes(e) ? 2 : 0;
613
625
  if (t === 0) {
614
- let t = P(i, a, e);
626
+ let t = P(a, s, e);
615
627
  if (t === null) break;
616
- a = t;
628
+ s = t;
617
629
  continue;
618
630
  }
619
- let r = i.slice(a).match(/^\d+/)?.[0]?.slice(0, t) ?? "";
620
- if (!r) continue;
621
- let s = a + r.length;
622
- if (!(r.length === t || s < i.length && !/\d/.test(i[s]))) continue;
623
- let c = Number.parseInt(r, 10), l = F(e, n?.padMaxDigits ? o(r, t) : r, c);
624
- i = `${i.slice(0, a)}${l}${i.slice(s)}`, a += l.length;
631
+ let i = a.slice(s).match(/^\d+/)?.[0]?.slice(0, t) ?? "";
632
+ if (!i) continue;
633
+ let c = s + i.length;
634
+ if (!(i.length === t || c < a.length && !/\d/.test(a[c]))) continue;
635
+ let l = Number.parseInt(i, 10), u = n.padMaxDigits ? o(i, t) : i, d = r ? F(e, u, l) : u;
636
+ a = `${a.slice(0, s)}${d}${a.slice(c)}`, s += d.length;
625
637
  }
626
- return I(i, r);
638
+ return r ? I(a, i) : a;
627
639
  }
628
640
  //#endregion
629
- export { A as addDays, j as addMonths, P as advancePastFormatLiteral, I as clampDayByMonthYear, L as clampNumericSegments, v as completePartialDateInput, e as convertDatePatternToMask, E as formatDate, r as formatUsesSeconds, n as formatUsesTime, S as getDaysInMonth, k as getEndOfDay, M as getFirstDayOfMonth, C as getFirstDayOfWeek, N as getLastDayOfMonth, O as getStartOfDay, y as inputIncludesTimePortion, T as isBetween, x as isLeapYear, w as isSameDay, a as isTimeOnlyFormat, F as normalizeNumericToken, o as padNumber, D as parseDate, b as parseDateWithCompletion, c as parseIsoDate, i as uses12HourFormat };
641
+ export { A as addDays, j as addMonths, P as advancePastFormatLiteral, I as clampDayByMonthYear, L as clampNumericSegments, v as completePartialDateInput, e as convertDatePatternToMask, E as formatDate, r as formatUsesSeconds, n as formatUsesTime, S as getDaysInMonth, k as getEndOfDay, M as getFirstDayOfMonth, C as getFirstDayOfWeek, N as getLastDayOfMonth, O as getStartOfDay, y as inputIncludesTimePortion, T as isBetween, x as isLeapYear, w as isSameDay, a as isTimeOnlyFormat, F as normalizeNumericToken, o as padNumber, R as padNumericSegments, D as parseDate, b as parseDateWithCompletion, c as parseIsoDate, i as uses12HourFormat };
@@ -6,19 +6,19 @@ import { ensureContrast as f, getComplementaryColor as p, getContrastRatio as m,
6
6
  import { mergeColorSchemes as _ } from "./color/merge.js";
7
7
  import { THEME_COLOR_KEYS as v, isThemeColor as y, isUnsupportedColor as b } from "./color/theme-colors.js";
8
8
  import { hasSlotContent as x } from "./slots.js";
9
- import { addDays as S, addMonths as C, advancePastFormatLiteral as w, clampDayByMonthYear as T, clampNumericSegments as E, completePartialDateInput as D, convertDatePatternToMask as O, formatDate as k, formatUsesSeconds as A, formatUsesTime as j, getDaysInMonth as M, getEndOfDay as N, getFirstDayOfMonth as P, getFirstDayOfWeek as F, getLastDayOfMonth as I, getStartOfDay as L, inputIncludesTimePortion as R, isBetween as z, isLeapYear as B, isSameDay as V, isTimeOnlyFormat as H, normalizeNumericToken as U, padNumber as W, parseDate as G, parseDateWithCompletion as K, parseIsoDate as q, uses12HourFormat as J } from "./date.js";
10
- import { applyMask as Y } from "./mask.js";
11
- import { DENSITIES as X, getGlobalDensity as Z, setGlobalDensity as Q } from "./density.js";
9
+ import { addDays as S, addMonths as C, advancePastFormatLiteral as w, clampDayByMonthYear as T, clampNumericSegments as E, completePartialDateInput as D, convertDatePatternToMask as O, formatDate as k, formatUsesSeconds as A, formatUsesTime as j, getDaysInMonth as M, getEndOfDay as N, getFirstDayOfMonth as P, getFirstDayOfWeek as F, getLastDayOfMonth as I, getStartOfDay as L, inputIncludesTimePortion as R, isBetween as z, isLeapYear as B, isSameDay as V, isTimeOnlyFormat as H, normalizeNumericToken as U, padNumber as W, padNumericSegments as G, parseDate as K, parseDateWithCompletion as q, parseIsoDate as J, uses12HourFormat as Y } from "./date.js";
10
+ import { applyMask as X } from "./mask.js";
11
+ import { DENSITIES as Z, getGlobalDensity as Q, setGlobalDensity as $ } from "./density.js";
12
12
  //#region src/utils/index.ts
13
- var $ = /* @__PURE__ */ e({
13
+ var ee = /* @__PURE__ */ e({
14
14
  COLOR_SCHEME_DARKEN_AMOUNT: () => 40,
15
15
  COLOR_SCHEME_LIGHTEN_AMOUNT: () => 75,
16
- DENSITIES: () => X,
16
+ DENSITIES: () => Z,
17
17
  THEME_COLOR_KEYS: () => v,
18
18
  addDays: () => S,
19
19
  addMonths: () => C,
20
20
  advancePastFormatLiteral: () => w,
21
- applyMask: () => Y,
21
+ applyMask: () => X,
22
22
  clampDayByMonthYear: () => T,
23
23
  clampNumericSegments: () => E,
24
24
  completePartialDateInput: () => D,
@@ -35,7 +35,7 @@ var $ = /* @__PURE__ */ e({
35
35
  getEndOfDay: () => N,
36
36
  getFirstDayOfMonth: () => P,
37
37
  getFirstDayOfWeek: () => F,
38
- getGlobalDensity: () => Z,
38
+ getGlobalDensity: () => Q,
39
39
  getLastDayOfMonth: () => I,
40
40
  getRelativeLuminance: () => g,
41
41
  getStartOfDay: () => L,
@@ -54,17 +54,18 @@ var $ = /* @__PURE__ */ e({
54
54
  mergeColorSchemes: () => _,
55
55
  normalizeNumericToken: () => U,
56
56
  padNumber: () => W,
57
+ padNumericSegments: () => G,
57
58
  parseColor: () => l,
58
- parseDate: () => G,
59
- parseDateWithCompletion: () => K,
60
- parseIsoDate: () => q,
59
+ parseDate: () => K,
60
+ parseDateWithCompletion: () => q,
61
+ parseIsoDate: () => J,
61
62
  rgbToHex: () => r,
62
63
  rgbToHsl: () => i,
63
64
  rgbToVariableString: () => a,
64
- setGlobalDensity: () => Q,
65
+ setGlobalDensity: () => $,
65
66
  tryParseColor: () => u,
66
67
  tryParseRgb: () => d,
67
- uses12HourFormat: () => J
68
+ uses12HourFormat: () => Y
68
69
  });
69
70
  //#endregion
70
- export { X as DENSITIES, v as THEME_COLOR_KEYS, S as addDays, C as addMonths, w as advancePastFormatLiteral, Y as applyMask, T as clampDayByMonthYear, E as clampNumericSegments, D as completePartialDateInput, O as convertDatePatternToMask, o as darken, f as ensureContrast, k as formatDate, A as formatUsesSeconds, j as formatUsesTime, p as getComplementaryColor, m as getContrastRatio, h as getContrastingColor, M as getDaysInMonth, N as getEndOfDay, P as getFirstDayOfMonth, F as getFirstDayOfWeek, Z as getGlobalDensity, I as getLastDayOfMonth, g as getRelativeLuminance, L as getStartOfDay, x as hasSlotContent, t as hslToRgb, n as hueToRgb, R as inputIncludesTimePortion, z as isBetween, B as isLeapYear, V as isSameDay, y as isThemeColor, H as isTimeOnlyFormat, b as isUnsupportedColor, c as isValidHex, s as lighten, _ as mergeColorSchemes, U as normalizeNumericToken, W as padNumber, l as parseColor, G as parseDate, K as parseDateWithCompletion, q as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, Q as setGlobalDensity, u as tryParseColor, d as tryParseRgb, J as uses12HourFormat, $ as utils_exports };
71
+ export { Z as DENSITIES, v as THEME_COLOR_KEYS, S as addDays, C as addMonths, w as advancePastFormatLiteral, X as applyMask, T as clampDayByMonthYear, E as clampNumericSegments, D as completePartialDateInput, O as convertDatePatternToMask, o as darken, f as ensureContrast, k as formatDate, A as formatUsesSeconds, j as formatUsesTime, p as getComplementaryColor, m as getContrastRatio, h as getContrastingColor, M as getDaysInMonth, N as getEndOfDay, P as getFirstDayOfMonth, F as getFirstDayOfWeek, Q as getGlobalDensity, I as getLastDayOfMonth, g as getRelativeLuminance, L as getStartOfDay, x as hasSlotContent, t as hslToRgb, n as hueToRgb, R as inputIncludesTimePortion, z as isBetween, B as isLeapYear, V as isSameDay, y as isThemeColor, H as isTimeOnlyFormat, b as isUnsupportedColor, c as isValidHex, s as lighten, _ as mergeColorSchemes, U as normalizeNumericToken, W as padNumber, G as padNumericSegments, l as parseColor, K as parseDate, q as parseDateWithCompletion, J as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, $ as setGlobalDensity, u as tryParseColor, d as tryParseRgb, Y as uses12HourFormat, ee as utils_exports };
@@ -58,6 +58,12 @@ export type ComputePositionOptions = {
58
58
  * Whether to compute the position of the overlay arrow.
59
59
  */
60
60
  arrow?: boolean;
61
+ /**
62
+ * The narrowest the overlay can be without scrolling sideways, such as the minimum width of a
63
+ * menu. Beside its anchor (`left` or `right`), an overlay with less room than that goes over
64
+ * the anchor instead of shrinking to scroll sideways. Defaults to 0.
65
+ */
66
+ minWidth?: number;
61
67
  };
62
68
  /**
63
69
  * Result of computing the position of the overlay.
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/utils/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM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@ -1,21 +1,21 @@
1
1
  //#region src/utils/overlay.ts
2
2
  var e = 8;
3
3
  function t(t, u, p, m) {
4
- let g = m?.offset ?? 0, _ = m?.crossOffset ?? 0, v = m?.placement ?? "bottom", y = t.getBoundingClientRect(), b = u.getBoundingClientRect(), x = p?.getBoundingClientRect(), S = n(y, b, v, g), C = d(S) === "y" ? "height" : "width", w = l(y, b, S, g), T = b[C] + w - e, E = h(w) && T <= 0, D;
5
- h(w) ? E || (D = T) : D = b[C];
6
- let O = i(b, S, D), k = O ? {
7
- width: Math.min(b.width, O.width),
8
- height: Math.min(b.height, O.height)
9
- } : b, A = r(o(a(c(y, k, S), S, g), S, _), k, E ? ["x", "y"] : [f(S)]), j;
4
+ let g = m?.offset ?? 0, _ = m?.crossOffset ?? 0, v = m?.placement ?? "bottom", y = t.getBoundingClientRect(), b = u.getBoundingClientRect(), x = p?.getBoundingClientRect(), S = n(y, b, v, g), C = d(S) === "y" ? "height" : "width", w = l(y, b, S, g), T = b[C] + w - e, E = C === "width" ? m?.minWidth ?? 0 : 0, D = h(w) && (T <= 0 || T < E), O;
5
+ h(w) ? D || (O = T) : O = b[C];
6
+ let k = i(b, S, O), A = k ? {
7
+ width: Math.min(b.width, k.width),
8
+ height: Math.min(b.height, k.height)
9
+ } : b, j = r(o(a(c(y, A, S), S, g), S, _), A, D ? ["x", "y"] : [f(S)]), M;
10
10
  if (m?.arrow) {
11
11
  if (!x) throw Error("[Quidgest UI] The arrow element must exist to compute its position");
12
- E || (j = s(A, y, k, x, S));
12
+ D || (M = s(j, y, A, x, S));
13
13
  }
14
14
  return {
15
- overlayCoords: A,
16
- arrowCoords: j,
15
+ overlayCoords: j,
16
+ arrowCoords: M,
17
17
  placement: S,
18
- maxSize: O
18
+ maxSize: k
19
19
  };
20
20
  }
21
21
  function n(e, t, n, r) {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The accessible name of a combobox's popup, which takes the combobox's name: the `aria-label`
3
+ * the app gives the component, or else the text of the `<label>` elements that point at its
4
+ * input. That is the field's own label, or one outside it, such as a `QPropertyList` row label.
5
+ * An `aria-labelledby` on the component names both the combobox and the popup, so the component
6
+ * passes it to the popup as it is. A popup with no name fails WCAG 4.1.2.
7
+ *
8
+ * Call it in the render that opening the popup causes, so the labels are those on the page then.
9
+ *
10
+ * @param ariaLabel - The `aria-label` the app gave the component, from its attrs.
11
+ * @param input - The input of the combobox.
12
+ * @returns The name, or `undefined` when the combobox has none.
13
+ */
14
+ export declare function getPopupLabel(ariaLabel: unknown, input: HTMLInputElement | null | undefined): string | undefined;
15
+ //# sourceMappingURL=popupLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popupLabel.d.ts","sourceRoot":"","sources":["../../src/utils/popupLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC5B,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACxC,MAAM,GAAG,SAAS,CAMpB"}
@@ -0,0 +1,6 @@
1
+ //#region src/utils/popupLabel.ts
2
+ function e(e, t) {
3
+ return typeof e == "string" ? e : Array.from(t?.labels ?? []).map((e) => e.textContent?.trim()).filter(Boolean).join(" ") || void 0;
4
+ }
5
+ //#endregion
6
+ export { e as getPopupLabel };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Default rail (mini) width as a CSS length.
3
+ *
4
+ * Reads `--q-rail-width` when the app sets it, otherwise the spacing-scale
5
+ * expression. Shared by `QDrawer` (`railWidth` default) and `.q-sidebar-anchor`
6
+ * so both stay aligned when the token changes.
7
+ */
8
+ export declare const DEFAULT_RAIL_WIDTH = "var(--q-rail-width, calc(var(--q-space-1) * 12.5))";
9
+ /**
10
+ * Regular-density CSS-pixel equivalent of the fallback inside
11
+ * {@link DEFAULT_RAIL_WIDTH} at a 16px root (`0.25rem × 12.5` → 50). For clamp
12
+ * math such as `QDrawer`'s `minWidth` (does not read a live CSS variable).
13
+ */
14
+ export declare const DEFAULT_RAIL_WIDTH_PX = 50;
15
+ //# sourceMappingURL=railWidth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"railWidth.d.ts","sourceRoot":"","sources":["../../src/utils/railWidth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,uDAAuD,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
@@ -0,0 +1,4 @@
1
+ //#region src/utils/railWidth.ts
2
+ var e = "var(--q-rail-width, calc(var(--q-space-1) * 12.5))";
3
+ //#endregion
4
+ export { e as DEFAULT_RAIL_WIDTH };
@@ -1,12 +1,12 @@
1
1
  import { Placement } from './overlay';
2
- export type SafeTriangleGeometry = {
2
+ export type QSafeTriangleGeometry = {
3
3
  left: number;
4
4
  top: number;
5
5
  width: number;
6
6
  height: number;
7
7
  path: string;
8
8
  };
9
- export type SafeTriangleVertices = {
9
+ export type QSafeTriangleVertices = {
10
10
  a: {
11
11
  x: number;
12
12
  y: number;
@@ -49,11 +49,11 @@ export declare function resolveSafeTrianglePlacement(preferred: Placement, paren
49
49
  /**
50
50
  * Builds safe triangle vertices for a submenu placement.
51
51
  */
52
- export declare function getSafeTriangleVertices(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): SafeTriangleVertices | null;
52
+ export declare function getSafeTriangleVertices(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): QSafeTriangleVertices | null;
53
53
  /**
54
54
  * Builds SVG geometry for the safe triangle overlay.
55
55
  */
56
- export declare function getSafeTriangleGeometry(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): SafeTriangleGeometry | null;
56
+ export declare function getSafeTriangleGeometry(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): QSafeTriangleGeometry | null;
57
57
  /**
58
58
  * Returns whether the pointer is inside any submenu body nested under a menu panel.
59
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"safeTriangle.d.ts","source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B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACb,qBAAqB,GAAG,IAAI,CA4C9B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,WAAW,GAAG,IAAI,GAC7B,OAAO,CAMT;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,OAAO,GAAG,IAAI,EAC1B,WAAW,EAAE,OAAO,GAAG,IAAI,EAC3B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,KAAK,GAAG,IAAI,EAClB,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,GAC9B,OAAO,CAYT"}
@@ -15,6 +15,14 @@ export type QHasSlotContentOptions = {
15
15
  * that content in place of an empty slot, or the check and the page disagree.
16
16
  */
17
17
  ignoreBlankText?: boolean;
18
+ /**
19
+ * Whether only text counts as content: text that is not blank, on its own or inside an
20
+ * element or a fragment. What a component renders, such as a `QIcon`, is not looked into, so
21
+ * a slot with only an icon has no text. Use it where text in a slot is another way to set a
22
+ * label, such as `<q-button><q-icon icon="content-copy" /> Copy</q-button>`. Blank text never
23
+ * counts, whatever `ignoreBlankText` says. Defaults to `false`.
24
+ */
25
+ textOnly?: boolean;
18
26
  };
19
27
  /**
20
28
  * Whether a slot renders anything: a node that is not a comment, looking inside fragments.
@@ -23,7 +31,7 @@ export type QHasSlotContentOptions = {
23
31
  * false `v-if`, which Vue renders as a comment. `$slots.name` is set all the same, so a wrapper
24
32
  * shown on it would render empty. By default this is exactly the rule Vue uses to show a slot's
25
33
  * fallback content (`ensureValidVNode`), so a check and a fallback never disagree. Only
26
- * `ignoreBlankText` departs from it.
34
+ * `ignoreBlankText` and `textOnly` depart from it.
27
35
  *
28
36
  * Call it while rendering, in the template or a function the template calls, never in a
29
37
  * `computed`: the slots object is not reactive, so a computed keeps its first answer.
@@ -36,7 +44,8 @@ export type QHasSlotContentOptions = {
36
44
  * ```
37
45
  *
38
46
  * @param slot - The slot, from `$slots` or `useSlots()`. Its props type does not matter.
39
- * @param options - The props to pass to a scoped slot, and whether blank text counts.
47
+ * @param options - The props to pass to a scoped slot, whether blank text counts, and whether
48
+ * only text does.
40
49
  * @returns Whether the slot renders content.
41
50
  */
42
51
  export declare function hasSlotContent(slot: ((props: never) => unknown) | undefined, options?: QHasSlotContentOptions): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAAG;IACpC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE/B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,SAAS,EAC7C,OAAO,GAAE,sBAA2B,GAClC,OAAO,CAQT"}
1
+ {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAAG;IACpC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE/B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,SAAS,EAC7C,OAAO,GAAE,sBAA2B,GAClC,OAAO,CAST"}
@@ -3,12 +3,15 @@ import { Comment as e, Fragment as t, Text as n, isVNode as r } from "vue";
3
3
  function i(e, t = {}) {
4
4
  if (e === void 0) return !1;
5
5
  let n = e(t.props ?? {});
6
- return a(Array.isArray(n) ? n : [n], t.ignoreBlankText ?? !1);
6
+ return t.textOnly ? o(n) : a(Array.isArray(n) ? n : [n], t.ignoreBlankText ?? !1);
7
7
  }
8
- function a(i, s) {
9
- return i.some((i) => r(i) ? i.type === e ? !1 : i.type === t ? Array.isArray(i.children) && a(i.children, s) : i.type === n ? !(s && o(i.children)) : !0 : !(s && o(i)));
8
+ function a(i, o) {
9
+ return i.some((i) => r(i) ? i.type === e ? !1 : i.type === t ? Array.isArray(i.children) && a(i.children, o) : i.type === n ? !(o && s(i.children)) : !0 : !(o && s(i)));
10
10
  }
11
- function o(e) {
11
+ function o(i) {
12
+ return typeof i == "string" ? !s(i) : typeof i == "number" ? !0 : Array.isArray(i) ? i.some(o) : !r(i) || i.type === e ? !1 : (typeof i.type == "string" || i.type === n || i.type === t) && o(i.children);
13
+ }
14
+ function s(e) {
12
15
  return typeof e == "string" && e.trim() === "";
13
16
  }
14
17
  //#endregion
@@ -13,9 +13,9 @@ declare const TINTED_COLORS: readonly ["primary", "info", "success", "warning",
13
13
  * Derives the focus ring color of a scheme: `primary`, darkened or lightened on the same
14
14
  * hue until it clears {@link FOCUS_RING_MINIMUM_RATIO} against the surfaces focusable
15
15
  * elements sit on: `background`, `container`, and the 12% tonal tints of `primary`, `info`,
16
- * `success`, `warning` and `danger` over the background (the darkest of them on a light
17
- * theme). A `primary` that already passes is used as is, so the ring keeps the brand color
18
- * wherever the theme allows it.
16
+ * `success`, `warning` and `danger` over the background, as the browser paints them (the
17
+ * darkest of them on a light theme). A `primary` that already passes is used as is, so the
18
+ * ring keeps the brand color wherever the theme allows it.
19
19
  *
20
20
  * The surfaces are expected to sit on the same side of the scale (all light or all dark),
21
21
  * as in every built-in theme; a 12% tint stays on the background's side. A light background
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ3C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAA;AAEzC,iGAAiG;AACjG,QAAA,MAAM,aAAa,8DAA+D,CAAA;AAElF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAC1D,MAAM,CAcR;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,gBAAgB,CAY/C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,UAwBvD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAM3D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,GAC3C,cAAc,CAmBhB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,M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bToHex as e } from "./color/conversion.js";
2
2
  import { parseColor as t } from "./color/parse.js";
3
3
  import { ensureContrast as n } from "./color/contrast.js";
4
- import { TONAL_SURFACE_ALPHA as r, blendOver as i } from "./color/blend.js";
5
- import { toKebabCase as a } from "./string.js";
6
- import { computed as o } from "vue";
4
+ import { TONAL_SURFACE_ALPHA as r, blendOver as i, paintedAlpha as a } from "./color/blend.js";
5
+ import { toKebabCase as o } from "./string.js";
6
+ import { computed as s } from "vue";
7
7
  //#region src/utils/theme.ts
8
- var s = "q-theme", c = [
8
+ var c = "q-theme", l = [
9
9
  "primary",
10
10
  "info",
11
11
  "success",
12
12
  "warning",
13
13
  "danger"
14
14
  ];
15
- function l(a) {
16
- let o = t(a.background), s = c.flatMap((n) => {
17
- let s = a[n];
18
- return s ? [e(i(t(s), o, r))] : [];
15
+ function u(o) {
16
+ let s = t(o.background), c = l.flatMap((n) => {
17
+ let c = o[n];
18
+ return c ? [e(i(t(c), s, a(r)))] : [];
19
19
  });
20
20
  return [
21
- a.background,
22
- a.container,
23
- ...s
24
- ].reduce((e, t) => n(e, t, 3), a.primary);
21
+ o.background,
22
+ o.container,
23
+ ...c
24
+ ].reduce((e, t) => n(e, t, 3), o.primary);
25
25
  }
26
- function u() {
27
- let e = document.getElementById(s);
28
- return e || (e = document.createElement("style"), e.id = s, document.head.appendChild(e)), e;
26
+ function d() {
27
+ let e = document.getElementById(c);
28
+ return e || (e = document.createElement("style"), e.id = c, document.head.appendChild(e)), e;
29
29
  }
30
- function d(e) {
31
- let n = `.${h(e.name)} {\n`, r = e.scheme, i;
30
+ function f(e) {
31
+ let n = `.${g(e.name)} {\n`, r = e.scheme, i;
32
32
  for (i in r) {
33
33
  let e = r[i];
34
34
  if (e) {
35
- n += ` ${p(i)}: ${e};\n`;
35
+ n += ` ${m(i)}: ${e};\n`;
36
36
  let r = t(e);
37
- n += ` ${p(i)}-rgb: ${r.r} ${r.g} ${r.b};\n`;
37
+ n += ` ${m(i)}-rgb: ${r.r} ${r.g} ${r.b};\n`;
38
38
  }
39
39
  }
40
- return r.primary && r.background && r.container && (n += ` ${p("focusRing")}: ${l(r)};\n`), n += "}\n", n;
40
+ return r.primary && r.background && r.container && (n += ` ${m("focusRing")}: ${u(r)};\n`), n += "}\n", n;
41
41
  }
42
- function f(e) {
43
- let t = e.map(d).join("\n"), n = u();
42
+ function p(e) {
43
+ let t = e.map(f).join("\n"), n = d();
44
44
  n.textContent = t;
45
45
  }
46
- function p(e) {
47
- return e ? `--q-theme-${a(e)}` : "";
46
+ function m(e) {
47
+ return e ? `--q-theme-${o(e)}` : "";
48
48
  }
49
- function m(e, t) {
50
- let n = o(() => {
49
+ function h(e, t) {
50
+ let n = s(() => {
51
51
  let n = t.value.find((t) => t.name === e.value);
52
52
  if (!n) throw Error(`[Quidgest UI] Theme "${e.value}" not found`);
53
53
  return n;
@@ -56,12 +56,12 @@ function m(e, t) {
56
56
  name: e,
57
57
  current: n,
58
58
  themes: t,
59
- class: o(() => h(n.value.name)),
60
- css: o(() => d(n.value))
59
+ class: s(() => g(n.value.name)),
60
+ css: s(() => f(n.value))
61
61
  };
62
62
  }
63
- function h(e) {
64
- return `q-theme--${a(e)}`;
63
+ function g(e) {
64
+ return `q-theme--${o(e)}`;
65
65
  }
66
66
  //#endregion
67
- export { s as THEME_NODE_ID, m as createThemeInstance, f as generateRootStyle, d as generateThemeCss, l as getFocusRingColor, h as getThemeClass, u as getThemeNode, p as toProperty };
67
+ export { c as THEME_NODE_ID, h as createThemeInstance, p as generateRootStyle, f as generateThemeCss, u as getFocusRingColor, g as getThemeClass, d as getThemeNode, m as toProperty };