@quidgest/ui 0.31.2 → 0.32.1

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 (507) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/json/api.json +1278 -324
  3. package/dist/manifest/components.json +1 -0
  4. package/dist/ui.css +1183 -428
  5. package/dist/ui.esm.js +1640 -1393
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.scss +1354 -386
  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 +87 -73
  18. package/lib/components/QAlert/index.d.ts +3 -3
  19. package/lib/components/QAlert/types.d.ts +32 -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 +72 -55
  26. package/lib/components/QBadge/index.d.ts +3 -3
  27. package/lib/components/QBadge/types.d.ts +13 -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 +894 -765
  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/QDefaultsProvider/QDefaultsProvider.vue.js +4 -2
  99. package/lib/components/QDefaultsProvider/types.d.ts +10 -0
  100. package/lib/components/QDefaultsProvider/types.d.ts.map +1 -1
  101. package/lib/components/QDialog/QDialog.d.ts +22 -10
  102. package/lib/components/QDialog/QDialog.d.ts.map +1 -1
  103. package/lib/components/QDialog/QDialog.vue.js +143 -108
  104. package/lib/components/QDialog/QDialogProvider.d.ts.map +1 -1
  105. package/lib/components/QDialog/QDialogProvider.vue.js +8 -3
  106. package/lib/components/QDialog/constants.d.ts +19 -1
  107. package/lib/components/QDialog/constants.d.ts.map +1 -1
  108. package/lib/components/QDialog/constants.js +16 -11
  109. package/lib/components/QDialog/index.d.ts +39 -23
  110. package/lib/components/QDialog/index.d.ts.map +1 -1
  111. package/lib/components/QDialog/types.d.ts +24 -13
  112. package/lib/components/QDialog/types.d.ts.map +1 -1
  113. package/lib/components/QDivider/QDivider.d.ts.map +1 -1
  114. package/lib/components/QDivider/QDivider.vue.js +23 -13
  115. package/lib/components/QDivider/types.d.ts +9 -0
  116. package/lib/components/QDivider/types.d.ts.map +1 -1
  117. package/lib/components/QDrawer/QDrawer.d.ts +71 -0
  118. package/lib/components/QDrawer/QDrawer.d.ts.map +1 -0
  119. package/lib/components/QDrawer/QDrawer.vue.js +461 -0
  120. package/lib/components/QDrawer/QDrawer2.vue.js +5 -0
  121. package/lib/components/QDrawer/constants.d.ts +22 -0
  122. package/lib/components/QDrawer/constants.d.ts.map +1 -0
  123. package/lib/components/QDrawer/constants.js +14 -0
  124. package/lib/components/QDrawer/index.d.ts +214 -0
  125. package/lib/components/QDrawer/index.d.ts.map +1 -0
  126. package/lib/components/QDrawer/index.js +6 -0
  127. package/lib/components/QDrawer/types.d.ts +221 -0
  128. package/lib/components/QDrawer/types.d.ts.map +1 -0
  129. package/lib/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
  130. package/lib/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  131. package/lib/components/QDropdownMenu/QDropdownMenu.vue.js +59 -52
  132. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts +118 -42
  133. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  134. package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +235 -195
  135. package/lib/components/QDropdownMenu/ids.d.ts +6 -0
  136. package/lib/components/QDropdownMenu/ids.d.ts.map +1 -1
  137. package/lib/components/QDropdownMenu/ids.js +4 -1
  138. package/lib/components/QDropdownMenu/index.d.ts +6 -6
  139. package/lib/components/QDropdownMenu/types.d.ts +6 -4
  140. package/lib/components/QDropdownMenu/types.d.ts.map +1 -1
  141. package/lib/components/QField/QField.d.ts +18 -17
  142. package/lib/components/QField/QField.d.ts.map +1 -1
  143. package/lib/components/QField/QField.vue.js +65 -50
  144. package/lib/components/QField/constants.d.ts +10 -3
  145. package/lib/components/QField/constants.d.ts.map +1 -1
  146. package/lib/components/QField/constants.js +4 -2
  147. package/lib/components/QField/index.d.ts +12 -11
  148. package/lib/components/QField/index.d.ts.map +1 -1
  149. package/lib/components/QField/types.d.ts +10 -9
  150. package/lib/components/QField/types.d.ts.map +1 -1
  151. package/lib/components/QFileUpload/QFileUpload.d.ts +28 -54
  152. package/lib/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  153. package/lib/components/QFileUpload/QFileUpload.vue.js +43 -39
  154. package/lib/components/QFileUpload/constants.d.ts +4 -0
  155. package/lib/components/QFileUpload/constants.d.ts.map +1 -1
  156. package/lib/components/QFileUpload/index.d.ts +25 -105
  157. package/lib/components/QFileUpload/index.d.ts.map +1 -1
  158. package/lib/components/QFileUpload/types.d.ts +2 -1
  159. package/lib/components/QFileUpload/types.d.ts.map +1 -1
  160. package/lib/components/QFocusWrap/QFocusWrap.d.ts +1 -0
  161. package/lib/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  162. package/lib/components/QFocusWrap/QFocusWrap.vue.js +60 -41
  163. package/lib/components/QFocusWrap/index.d.ts +3 -0
  164. package/lib/components/QFocusWrap/index.d.ts.map +1 -1
  165. package/lib/components/QFocusWrap/stack.d.ts +15 -0
  166. package/lib/components/QFocusWrap/stack.d.ts.map +1 -0
  167. package/lib/components/QFocusWrap/stack.js +11 -0
  168. package/lib/components/QFocusWrap/types.d.ts +8 -0
  169. package/lib/components/QFocusWrap/types.d.ts.map +1 -1
  170. package/lib/components/QGauge/QGauge.d.ts.map +1 -1
  171. package/lib/components/QGauge/QGauge.vue.js +153 -124
  172. package/lib/components/QGauge/types.d.ts +16 -1
  173. package/lib/components/QGauge/types.d.ts.map +1 -1
  174. package/lib/components/QGrid/QRow.d.ts +1 -1
  175. package/lib/components/QGrid/index.d.ts +3 -3
  176. package/lib/components/QIcon/QSvgSymbol.d.ts +1 -1
  177. package/lib/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  178. package/lib/components/QIcon/QSvgSymbol.vue.js +31 -31
  179. package/lib/components/QIcon/utils/svgSource.d.ts +2 -2
  180. package/lib/components/QIcon/utils/svgSource.d.ts.map +1 -1
  181. package/lib/components/QInputGroup/QInputGroup.d.ts +35 -31
  182. package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  183. package/lib/components/QInputGroup/QInputGroup.vue.js +96 -49
  184. package/lib/components/QInputGroup/index.d.ts +14 -12
  185. package/lib/components/QInputGroup/index.d.ts.map +1 -1
  186. package/lib/components/QLabel/QLabel.d.ts.map +1 -1
  187. package/lib/components/QLabel/QLabel.vue.js +2 -2
  188. package/lib/components/QList/QList.d.ts +46 -17
  189. package/lib/components/QList/QList.d.ts.map +1 -1
  190. package/lib/components/QList/QList.vue.js +470 -195
  191. package/lib/components/QList/QListItem.d.ts +1 -1
  192. package/lib/components/QList/QListItem.d.ts.map +1 -1
  193. package/lib/components/QList/QListItem.vue.js +51 -43
  194. package/lib/components/QList/QListItemGroup.vue.js +1 -1
  195. package/lib/components/QList/constants.d.ts +26 -0
  196. package/lib/components/QList/constants.d.ts.map +1 -1
  197. package/lib/components/QList/context.d.ts +12 -1
  198. package/lib/components/QList/context.d.ts.map +1 -1
  199. package/lib/components/QList/context.js +2 -2
  200. package/lib/components/QList/index.d.ts +79 -22
  201. package/lib/components/QList/index.d.ts.map +1 -1
  202. package/lib/components/QList/types.d.ts +11 -9
  203. package/lib/components/QList/types.d.ts.map +1 -1
  204. package/lib/components/QMeter/QMeter.d.ts.map +1 -1
  205. package/lib/components/QMeter/QMeter.vue.js +27 -26
  206. package/lib/components/QMeter/types.d.ts +3 -0
  207. package/lib/components/QMeter/types.d.ts.map +1 -1
  208. package/lib/components/QObfuscation/QObfuscation.d.ts +8 -26
  209. package/lib/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  210. package/lib/components/QObfuscation/QObfuscation.vue.js +137 -113
  211. package/lib/components/QObfuscation/constants.d.ts +4 -0
  212. package/lib/components/QObfuscation/constants.d.ts.map +1 -1
  213. package/lib/components/QObfuscation/index.d.ts +26 -81
  214. package/lib/components/QObfuscation/index.d.ts.map +1 -1
  215. package/lib/components/QObfuscation/types.d.ts +10 -1
  216. package/lib/components/QObfuscation/types.d.ts.map +1 -1
  217. package/lib/components/QOverflow/QOverflow.d.ts +7 -3
  218. package/lib/components/QOverflow/QOverflow.d.ts.map +1 -1
  219. package/lib/components/QOverflow/QOverflow.vue.js +131 -108
  220. package/lib/components/QOverflow/constants.d.ts +4 -1
  221. package/lib/components/QOverflow/constants.d.ts.map +1 -1
  222. package/lib/components/QOverflow/index.d.ts +3 -3
  223. package/lib/components/QOverflow/types.d.ts +7 -4
  224. package/lib/components/QOverflow/types.d.ts.map +1 -1
  225. package/lib/components/QOverlay/QOverlay.d.ts +14 -5
  226. package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
  227. package/lib/components/QOverlay/QOverlay.vue.js +194 -166
  228. package/lib/components/QOverlay/index.d.ts +105 -13
  229. package/lib/components/QOverlay/index.d.ts.map +1 -1
  230. package/lib/components/QOverlay/layers.d.ts +21 -0
  231. package/lib/components/QOverlay/layers.d.ts.map +1 -0
  232. package/lib/components/QOverlay/layers.js +11 -0
  233. package/lib/components/QOverlay/types.d.ts +0 -6
  234. package/lib/components/QOverlay/types.d.ts.map +1 -1
  235. package/lib/components/QPasswordField/QPasswordField.d.ts +52 -170
  236. package/lib/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  237. package/lib/components/QPasswordField/QPasswordField.vue.js +8 -3
  238. package/lib/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +2 -3
  239. package/lib/components/QPasswordField/constants.d.ts +4 -0
  240. package/lib/components/QPasswordField/constants.d.ts.map +1 -1
  241. package/lib/components/QPasswordField/index.d.ts +29 -170
  242. package/lib/components/QPasswordField/index.d.ts.map +1 -1
  243. package/lib/components/QPasswordField/types.d.ts +2 -1
  244. package/lib/components/QPasswordField/types.d.ts.map +1 -1
  245. package/lib/components/QPhoneField/QPhoneField.d.ts +491 -622
  246. package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  247. package/lib/components/QPhoneField/QPhoneField.vue.js +21 -14
  248. package/lib/components/QPhoneField/constants.d.ts +4 -0
  249. package/lib/components/QPhoneField/constants.d.ts.map +1 -1
  250. package/lib/components/QPhoneField/index.d.ts +260 -393
  251. package/lib/components/QPhoneField/index.d.ts.map +1 -1
  252. package/lib/components/QPhoneField/types.d.ts +5 -2
  253. package/lib/components/QPhoneField/types.d.ts.map +1 -1
  254. package/lib/components/QPopover/QPopover.d.ts +1 -1
  255. package/lib/components/QPopover/QPopover.d.ts.map +1 -1
  256. package/lib/components/QPopover/QPopover.vue.js +64 -42
  257. package/lib/components/QPopover/index.d.ts +3 -3
  258. package/lib/components/QPopover/types.d.ts +7 -2
  259. package/lib/components/QPopover/types.d.ts.map +1 -1
  260. package/lib/components/QProgress/QProgress.d.ts.map +1 -1
  261. package/lib/components/QProgress/QProgress.vue.js +66 -46
  262. package/lib/components/QProgress/types.d.ts +3 -0
  263. package/lib/components/QProgress/types.d.ts.map +1 -1
  264. package/lib/components/QPropertyList/QPropertyList.d.ts +1 -1
  265. package/lib/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  266. package/lib/components/QPropertyList/QPropertyList.vue.js +3 -3
  267. package/lib/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
  268. package/lib/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  269. package/lib/components/QPropertyList/QPropertyListRow.d.ts +1 -1
  270. package/lib/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  271. package/lib/components/QPropertyList/QPropertyListRow.vue.js +59 -44
  272. package/lib/components/QPropertyList/index.d.ts +8 -8
  273. package/lib/components/QPropertyList/index.d.ts.map +1 -1
  274. package/lib/components/QPropertyList/types.d.ts +3 -3
  275. package/lib/components/QPropertyList/types.d.ts.map +1 -1
  276. package/lib/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  277. package/lib/components/QRadioGroup/QRadioButton.vue.js +5 -2
  278. package/lib/components/QRadioGroup/QRadioGroup.d.ts +2 -2
  279. package/lib/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  280. package/lib/components/QRadioGroup/QRadioGroup.vue.js +19 -18
  281. package/lib/components/QRadioGroup/index.d.ts +4 -9
  282. package/lib/components/QRadioGroup/index.d.ts.map +1 -1
  283. package/lib/components/QRadioGroup/types.d.ts +0 -6
  284. package/lib/components/QRadioGroup/types.d.ts.map +1 -1
  285. package/lib/components/QSection/QSection.d.ts +3 -3
  286. package/lib/components/QSection/QSection.d.ts.map +1 -1
  287. package/lib/components/QSection/QSection.vue.js +52 -45
  288. package/lib/components/QSection/index.d.ts +4 -4
  289. package/lib/components/QSection/types.d.ts +10 -2
  290. package/lib/components/QSection/types.d.ts.map +1 -1
  291. package/lib/components/QSelect/QSelect.d.ts +312 -114
  292. package/lib/components/QSelect/QSelect.d.ts.map +1 -1
  293. package/lib/components/QSelect/QSelect.vue.js +274 -250
  294. package/lib/components/QSelect/constants.d.ts +4 -0
  295. package/lib/components/QSelect/constants.d.ts.map +1 -1
  296. package/lib/components/QSelect/index.d.ts +176 -144
  297. package/lib/components/QSelect/index.d.ts.map +1 -1
  298. package/lib/components/QSelect/types.d.ts +4 -2
  299. package/lib/components/QSelect/types.d.ts.map +1 -1
  300. package/lib/components/QSidebar/QSidebar.d.ts +9 -9
  301. package/lib/components/QSidebar/QSidebar.d.ts.map +1 -1
  302. package/lib/components/QSidebar/QSidebar.vue.js +2 -2
  303. package/lib/components/QSidebar/QSidebarAnchor.d.ts +1 -1
  304. package/lib/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  305. package/lib/components/QSidebar/QSidebarAnchor.vue.js +4 -4
  306. package/lib/components/QSidebar/QSidebarItem.d.ts +7 -7
  307. package/lib/components/QSidebar/QSidebarItem.vue.js +3 -3
  308. package/lib/components/QSidebar/QSidebarPanel.d.ts +3 -3
  309. package/lib/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  310. package/lib/components/QSidebar/QSidebarPanel.vue.js +81 -140
  311. package/lib/components/QSidebar/constants.d.ts.map +1 -1
  312. package/lib/components/QSidebar/constants.js +4 -5
  313. package/lib/components/QSidebar/index.d.ts +24 -24
  314. package/lib/components/QSidebar/types.d.ts +7 -6
  315. package/lib/components/QSidebar/types.d.ts.map +1 -1
  316. package/lib/components/QSteps/QStepHeader.d.ts +2 -1
  317. package/lib/components/QSteps/QStepHeader.d.ts.map +1 -1
  318. package/lib/components/QSteps/QStepHeader.vue.js +3 -4
  319. package/lib/components/QSteps/QSteps.d.ts +8 -8
  320. package/lib/components/QSteps/QSteps.d.ts.map +1 -1
  321. package/lib/components/QSteps/QSteps.vue.js +9 -6
  322. package/lib/components/QSteps/QStepsNav.d.ts +2 -1
  323. package/lib/components/QSteps/QStepsNav.d.ts.map +1 -1
  324. package/lib/components/QSteps/index.d.ts +12 -12
  325. package/lib/components/QSteps/types.d.ts +2 -2
  326. package/lib/components/QSteps/types.d.ts.map +1 -1
  327. package/lib/components/QSwitch/QSwitch.d.ts +39 -26
  328. package/lib/components/QSwitch/QSwitch.d.ts.map +1 -1
  329. package/lib/components/QSwitch/QSwitch.vue.js +64 -58
  330. package/lib/components/QSwitch/constants.d.ts +20 -0
  331. package/lib/components/QSwitch/constants.d.ts.map +1 -0
  332. package/lib/components/QSwitch/constants.js +9 -0
  333. package/lib/components/QSwitch/index.d.ts +56 -18
  334. package/lib/components/QSwitch/index.d.ts.map +1 -1
  335. package/lib/components/QSwitch/types.d.ts +21 -3
  336. package/lib/components/QSwitch/types.d.ts.map +1 -1
  337. package/lib/components/QTabs/QTab.d.ts +12 -12
  338. package/lib/components/QTabs/QTab.vue.js +3 -3
  339. package/lib/components/QTabs/QTabs.d.ts +9 -9
  340. package/lib/components/QTabs/QTabs.d.ts.map +1 -1
  341. package/lib/components/QTabs/QTabs.vue.js +92 -80
  342. package/lib/components/QTabs/index.d.ts +16 -16
  343. package/lib/components/QTabs/types.d.ts +2 -2
  344. package/lib/components/QTabs/types.d.ts.map +1 -1
  345. package/lib/components/QTextArea/QTextArea.d.ts +1 -0
  346. package/lib/components/QTextArea/QTextArea.d.ts.map +1 -1
  347. package/lib/components/QTextArea/QTextArea.vue.js +6 -1
  348. package/lib/components/QTextArea/index.d.ts +1 -0
  349. package/lib/components/QTextArea/index.d.ts.map +1 -1
  350. package/lib/components/QTextField/QTextField.d.ts +30 -42
  351. package/lib/components/QTextField/QTextField.d.ts.map +1 -1
  352. package/lib/components/QTextField/QTextField.vue.js +7 -2
  353. package/lib/components/QTextField/constants.d.ts +4 -0
  354. package/lib/components/QTextField/constants.d.ts.map +1 -1
  355. package/lib/components/QTextField/index.d.ts +26 -69
  356. package/lib/components/QTextField/index.d.ts.map +1 -1
  357. package/lib/components/QTextField/types.d.ts +2 -1
  358. package/lib/components/QTextField/types.d.ts.map +1 -1
  359. package/lib/components/QToast/QToast.d.ts +1 -1
  360. package/lib/components/QToast/QToast.d.ts.map +1 -1
  361. package/lib/components/QToast/QToast.vue.js +148 -134
  362. package/lib/components/QToast/QToaster.d.ts +3 -1
  363. package/lib/components/QToast/QToaster.d.ts.map +1 -1
  364. package/lib/components/QToast/QToaster.vue.js +78 -47
  365. package/lib/components/QToast/index.d.ts +9 -7
  366. package/lib/components/QToast/index.d.ts.map +1 -1
  367. package/lib/components/QToast/types.d.ts +2 -2
  368. package/lib/components/QToast/types.d.ts.map +1 -1
  369. package/lib/components/QToggle/QToggle.d.ts.map +1 -1
  370. package/lib/components/QToggle/QToggle.vue.js +2 -0
  371. package/lib/components/QToggle/index.d.ts +3 -3
  372. package/lib/components/QToggleGroup/QToggleGroupItem.d.ts +8 -1
  373. package/lib/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
  374. package/lib/components/QToggleGroup/QToggleGroupItem.vue.js +67 -16
  375. package/lib/components/QToggleGroup/index.d.ts +24 -3
  376. package/lib/components/QToggleGroup/index.d.ts.map +1 -1
  377. package/lib/components/QTooltip/QTooltip.d.ts +1 -1
  378. package/lib/components/QTooltip/QTooltip.vue.js +1 -1
  379. package/lib/components/QTooltip/index.d.ts +3 -3
  380. package/lib/components/__internal__/QChevron/QChevron.d.ts +1 -1
  381. package/lib/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
  382. package/lib/components/__internal__/QChevron/index.d.ts +3 -3
  383. package/lib/components/__internal__/QChevron/types.d.ts +2 -2
  384. package/lib/components/__internal__/QChevron/types.d.ts.map +1 -1
  385. package/lib/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
  386. package/lib/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
  387. package/lib/components/__internal__/QClearButton/index.d.ts +1 -1
  388. package/lib/components/__internal__/QClearButton/types.d.ts +2 -2
  389. package/lib/components/__internal__/QClearButton/types.d.ts.map +1 -1
  390. package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts +7 -7
  391. package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
  392. package/lib/components/__internal__/QHelpPopover/QHelpPopover.vue.js +3 -6
  393. package/lib/components/__internal__/QHelpPopover/index.d.ts +7 -7
  394. package/lib/components/__internal__/QHelpPopover/types.d.ts +2 -2
  395. package/lib/components/__internal__/QHelpPopover/types.d.ts.map +1 -1
  396. package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts +34 -0
  397. package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts.map +1 -0
  398. package/lib/components/__internal__/QListboxPanel/QListboxPanel.vue.js +76 -0
  399. package/lib/components/__internal__/QListboxPanel/QListboxPanel2.vue.js +5 -0
  400. package/lib/components/__internal__/QListboxPanel/constants.d.ts +17 -0
  401. package/lib/components/__internal__/QListboxPanel/constants.d.ts.map +1 -0
  402. package/lib/components/__internal__/QListboxPanel/constants.js +4 -0
  403. package/lib/components/__internal__/QListboxPanel/index.d.ts +52 -0
  404. package/lib/components/__internal__/QListboxPanel/index.d.ts.map +1 -0
  405. package/lib/components/__internal__/QListboxPanel/index.js +7 -0
  406. package/lib/components/__internal__/QListboxPanel/types.d.ts +50 -0
  407. package/lib/components/__internal__/QListboxPanel/types.d.ts.map +1 -0
  408. package/lib/components/__internal__/QListboxPanel/utils.d.ts +4 -0
  409. package/lib/components/__internal__/QListboxPanel/utils.d.ts.map +1 -0
  410. package/lib/components/__internal__/QListboxPanel/utils.js +6 -0
  411. package/lib/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +1 -1
  412. package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts +16 -0
  413. package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts.map +1 -0
  414. package/lib/components/__internal__/QResizeHandle/QResizeButtons.vue.js +72 -0
  415. package/lib/components/__internal__/QResizeHandle/QResizeButtons2.vue.js +5 -0
  416. package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts +15 -0
  417. package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts.map +1 -0
  418. package/lib/components/__internal__/QResizeHandle/QResizeHandle.vue.js +74 -0
  419. package/lib/components/__internal__/QResizeHandle/QResizeHandle2.vue.js +5 -0
  420. package/lib/components/__internal__/QResizeHandle/constants.d.ts +22 -0
  421. package/lib/components/__internal__/QResizeHandle/constants.d.ts.map +1 -0
  422. package/lib/components/__internal__/QResizeHandle/constants.js +10 -0
  423. package/lib/components/__internal__/QResizeHandle/index.d.ts +28 -0
  424. package/lib/components/__internal__/QResizeHandle/index.d.ts.map +1 -0
  425. package/lib/components/__internal__/QResizeHandle/index.js +7 -0
  426. package/lib/components/__internal__/QResizeHandle/types.d.ts +107 -0
  427. package/lib/components/__internal__/QResizeHandle/types.d.ts.map +1 -0
  428. package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts +42 -0
  429. package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts.map +1 -0
  430. package/lib/components/__internal__/QResizeHandle/useEdgeResize.js +36 -0
  431. package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts +39 -0
  432. package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts.map +1 -0
  433. package/lib/components/__internal__/QResizeHandle/useResizePane.js +22 -0
  434. package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
  435. package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +1 -1
  436. package/lib/components/__internal__/QSafeTriangle/index.d.ts +2 -2
  437. package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts +24 -0
  438. package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts.map +1 -0
  439. package/lib/components/__internal__/QSeverityContent/QSeverityContent.vue.js +58 -0
  440. package/lib/components/__internal__/QSeverityContent/QSeverityContent2.vue.js +5 -0
  441. package/lib/components/__internal__/QSeverityContent/index.d.ts +31 -0
  442. package/lib/components/__internal__/QSeverityContent/index.d.ts.map +1 -0
  443. package/lib/components/__internal__/QSeverityContent/index.js +6 -0
  444. package/lib/components/__internal__/QSeverityContent/types.d.ts +67 -0
  445. package/lib/components/__internal__/QSeverityContent/types.d.ts.map +1 -0
  446. package/lib/components/index.d.ts +1 -0
  447. package/lib/components/index.d.ts.map +1 -1
  448. package/lib/components/index.js +72 -70
  449. package/lib/composables/defaults.d.ts +25 -1
  450. package/lib/composables/defaults.d.ts.map +1 -1
  451. package/lib/composables/defaults.js +15 -7
  452. package/lib/composables/useColor/index.d.ts +9 -3
  453. package/lib/composables/useColor/index.d.ts.map +1 -1
  454. package/lib/composables/useColor/index.js +50 -42
  455. package/lib/composables/useColor/types.d.ts +17 -4
  456. package/lib/composables/useColor/types.d.ts.map +1 -1
  457. package/lib/composables/useDialog/_internal.js +1 -1
  458. package/lib/composables/useDialog/types.d.ts +6 -2
  459. package/lib/composables/useDialog/types.d.ts.map +1 -1
  460. package/lib/composables/useScrollTabStop/index.d.ts +17 -0
  461. package/lib/composables/useScrollTabStop/index.d.ts.map +1 -0
  462. package/lib/composables/useScrollTabStop/index.js +45 -0
  463. package/lib/composables/useVirtualList/index.d.ts +73 -0
  464. package/lib/composables/useVirtualList/index.d.ts.map +1 -0
  465. package/lib/composables/useVirtualList/index.js +83 -0
  466. package/lib/index.d.ts +2 -1
  467. package/lib/index.d.ts.map +1 -1
  468. package/lib/types/component.d.ts +12 -5
  469. package/lib/types/component.d.ts.map +1 -1
  470. package/lib/types/index.d.ts +1 -1
  471. package/lib/types/index.d.ts.map +1 -1
  472. package/lib/utils/bidi.d.ts +27 -0
  473. package/lib/utils/bidi.d.ts.map +1 -0
  474. package/lib/utils/bidi.js +15 -0
  475. package/lib/utils/boundedValue.d.ts +20 -0
  476. package/lib/utils/boundedValue.d.ts.map +1 -0
  477. package/lib/utils/boundedValue.js +9 -0
  478. package/lib/utils/color/blend.d.ts +13 -0
  479. package/lib/utils/color/blend.d.ts.map +1 -1
  480. package/lib/utils/color/blend.js +6 -3
  481. package/lib/utils/color/contrast.d.ts +19 -0
  482. package/lib/utils/color/contrast.d.ts.map +1 -1
  483. package/lib/utils/color/contrast.js +26 -11
  484. package/lib/utils/color/index.d.ts +1 -1
  485. package/lib/utils/color/index.d.ts.map +1 -1
  486. package/lib/utils/date.d.ts +18 -8
  487. package/lib/utils/date.d.ts.map +1 -1
  488. package/lib/utils/date.js +26 -14
  489. package/lib/utils/index.js +14 -13
  490. package/lib/utils/overlay.d.ts +6 -0
  491. package/lib/utils/overlay.d.ts.map +1 -1
  492. package/lib/utils/overlay.js +10 -10
  493. package/lib/utils/popupLabel.d.ts +15 -0
  494. package/lib/utils/popupLabel.d.ts.map +1 -0
  495. package/lib/utils/popupLabel.js +6 -0
  496. package/lib/utils/railWidth.d.ts +15 -0
  497. package/lib/utils/railWidth.d.ts.map +1 -0
  498. package/lib/utils/railWidth.js +4 -0
  499. package/lib/utils/safeTriangle.d.ts +4 -4
  500. package/lib/utils/safeTriangle.d.ts.map +1 -1
  501. package/lib/utils/slots.d.ts +11 -2
  502. package/lib/utils/slots.d.ts.map +1 -1
  503. package/lib/utils/slots.js +7 -4
  504. package/lib/utils/theme.d.ts +3 -3
  505. package/lib/utils/theme.d.ts.map +1 -1
  506. package/lib/utils/theme.js +31 -31
  507. package/package.json +1 -1
@@ -1,30 +1,45 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
- import { QIcon as t } from "../QIcon/index.js";
3
- import { getNextTabbable as n, getTabbableElements as r } from "../../utils/focus.js";
4
- import { QOverlay as i } from "../QOverlay/index.js";
5
- import { QButton as a } from "../QButton/index.js";
6
- import { QTextField as o } from "../QTextField/index.js";
7
- import { useFieldError as s } from "../../composables/useFieldError/index.js";
8
- import { DEFAULT_ICONS as ee, DEFAULT_TEXTS as te, MONTH_NAMES as ne, WEEKDAY_NAMES as re } from "./constants.js";
9
- import { QSwitch as ie } from "../QSwitch/index.js";
10
- import { addDays as ae, clampNumericSegments as oe, convertDatePatternToMask as se, formatDate as c, formatUsesSeconds as ce, formatUsesTime as le, getDaysInMonth as ue, getFirstDayOfMonth as de, inputIncludesTimePortion as fe, isBetween as pe, isSameDay as me, isTimeOnlyFormat as he, padNumber as ge, parseDate as _e, parseDateWithCompletion as ve, parseIsoDate as ye, uses12HourFormat as be } from "../../utils/date.js";
11
- import { applyMask as xe } from "../../utils/mask.js";
12
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Se, createTextVNode as Ce, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeModels as we, mergeProps as v, nextTick as y, normalizeClass as Te, normalizeProps as b, onBeforeUnmount as Ee, openBlock as x, ref as S, renderList as De, renderSlot as Oe, toDisplayString as ke, toRef as Ae, unref as C, useModel as je, useSlots as Me, useTemplateRef as w, watch as Ne, withCtx as T } from "vue";
2
+ import { useColor as t } from "../../composables/useColor/index.js";
3
+ import { QIcon as n } from "../QIcon/index.js";
4
+ import { getNextTabbable as r, getTabbableElements as i } from "../../utils/focus.js";
5
+ import { QOverlay as a } from "../QOverlay/index.js";
6
+ import { QButton as o } from "../QButton/index.js";
7
+ import { QTextField as s } from "../QTextField/index.js";
8
+ import { useFieldError as ee } from "../../composables/useFieldError/index.js";
9
+ import { getPopupLabel as te } from "../../utils/popupLabel.js";
10
+ import { DEFAULT_ICONS as ne, DEFAULT_TEXTS as re, MONTH_NAMES as ie, WEEKDAY_NAMES as ae } from "./constants.js";
11
+ import { QSwitch as oe } from "../QSwitch/index.js";
12
+ import { addDays as c, convertDatePatternToMask as se, formatDate as ce, formatUsesSeconds as le, formatUsesTime as ue, getDaysInMonth as de, getFirstDayOfMonth as fe, inputIncludesTimePortion as pe, isBetween as me, isSameDay as l, isTimeOnlyFormat as he, padNumber as ge, padNumericSegments as _e, parseDate as ve, parseDateWithCompletion as ye, parseIsoDate as be, uses12HourFormat as xe } from "../../utils/date.js";
13
+ import { applyMask as Se } from "../../utils/mask.js";
14
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ce, createTextVNode as we, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeModels as Te, mergeProps as y, nextTick as b, normalizeClass as Ee, normalizeProps as x, normalizeStyle as De, onBeforeUnmount as Oe, openBlock as S, ref as C, renderList as ke, renderSlot as Ae, toDisplayString as je, toRef as Me, unref as w, useAttrs as Ne, useModel as Pe, useSlots as Fe, useTemplateRef as T, watch as Ie, withCtx as E } from "vue";
13
15
  //#region src/components/QDateTimePicker/QDateTimePicker.vue?vue&type=script&setup=true&lang.ts
14
- var Pe = {
16
+ var Le = [
17
+ "id",
18
+ "aria-label",
19
+ "aria-labelledby"
20
+ ], Re = {
15
21
  key: 0,
16
22
  ref: "calendar",
17
23
  class: "q-date-time-picker__calendar"
18
- }, Fe = { class: "q-date-time-picker__header" }, Ie = ["aria-label"], Le = {
24
+ }, ze = { class: "q-date-time-picker__header" }, Be = ["aria-label", "aria-multiselectable"], Ve = {
19
25
  role: "row",
20
26
  class: "q-date-time-picker__weekdays"
21
- }, Re = ["aria-label"], ze = { class: "q-date-time-picker__time" }, Be = ["role", "aria-label"], Ve = {
27
+ }, He = ["aria-label"], Ue = {
28
+ key: 1,
29
+ class: "q-date-time-picker__time"
30
+ }, We = ["role", "aria-label"], Ge = {
22
31
  key: 0,
23
32
  class: "q-date-time-picker__time-period"
24
- }, He = { class: "q-date-time-picker__time-inputs" }, Ue = { class: "q-date-time-picker__time-input-group" }, We = { class: "q-date-time-picker__time-input-group" }, Ge = { class: "q-date-time-picker__time-input-group" }, Ke = { class: "q-date-time-picker__month-grid" }, qe = { class: "q-date-time-picker__year" }, Je = { class: "q-date-time-picker__year-change" }, Ye = { class: "q-date-time-picker__year-interval" }, Xe = { class: "q-date-time-picker__year-grid" }, Ze = { class: "q-date-time-picker__bottom-bar" }, E = 1001, D = 9999, O = 26, Qe = /*@__PURE__*/ g({
33
+ }, Ke = { class: "q-date-time-picker__time-inputs" }, qe = { class: "q-date-time-picker__time-input-group" }, Je = { class: "q-date-time-picker__time-input-group" }, Ye = { class: "q-date-time-picker__time-input-group" }, Xe = {
34
+ key: 2,
35
+ class: "q-date-time-picker__month-grid"
36
+ }, Ze = {
37
+ key: 3,
38
+ class: "q-date-time-picker__year"
39
+ }, Qe = { class: "q-date-time-picker__year-change" }, $e = { class: "q-date-time-picker__year-interval" }, et = { class: "q-date-time-picker__year-grid" }, tt = { class: "q-date-time-picker__bottom-bar" }, D = 1001, O = 9999, nt = 26, rt = /*@__PURE__*/ _({
25
40
  inheritAttrs: !1,
26
41
  __name: "QDateTimePicker",
27
- props: /*@__PURE__*/ we({
42
+ props: /*@__PURE__*/ Te({
28
43
  id: {},
29
44
  class: {},
30
45
  label: {},
@@ -33,8 +48,8 @@ var Pe = {
33
48
  labelPosition: {},
34
49
  help: {},
35
50
  helpDisplay: {},
36
- icons: { default: () => ee },
37
- texts: { default: () => te },
51
+ icons: { default: () => ne },
52
+ texts: { default: () => re },
38
53
  size: {},
39
54
  readonly: { type: Boolean },
40
55
  disabled: { type: Boolean },
@@ -51,22 +66,22 @@ var Pe = {
51
66
  modelValue: {},
52
67
  modelModifiers: {}
53
68
  }),
54
- emits: /*@__PURE__*/ we(["open", "close"], ["update:modelValue"]),
55
- setup(ee, { emit: te }) {
56
- let g = ee, we = te, Qe = { ignoreWeekday: !0 }, $e = e(Ae(g, "id")), et = je(ee, "modelValue"), k = u({
57
- get: () => et.value,
58
- set: (e) => et.value = e || void 0
59
- }), tt = u(() => g.readonly || g.disabled ? void 0 : g.placeholder), A = u(() => le(g.format)), nt = u(() => ce(g.format)), j = u(() => be(g.format)), M = u(() => he(g.format)), rt = u(() => L.value === (/* @__PURE__ */ new Date()).getMonth() && R.value === (/* @__PURE__ */ new Date()).getFullYear()), N = S(!1), it = S(!1), P = S(""), F = S(null), I = S("date"), L = S((/* @__PURE__ */ new Date()).getMonth()), R = S((/* @__PURE__ */ new Date()).getFullYear()), z = S((/* @__PURE__ */ new Date()).getFullYear()), at = null, B = !1, ot = !1, st = !1, V = null;
60
- function ct() {
69
+ emits: /*@__PURE__*/ Te(["open", "close"], ["update:modelValue"]),
70
+ setup(ne, { emit: re }) {
71
+ let _ = ne, Te = re, rt = { ignoreWeekday: !0 }, it = e(Me(_, "id")), at = Ne(), ot = d(() => `${it.value}_menu`), st = d(() => !_.readonly && !_.disabled), ct = Pe(ne, "modelValue"), k = d({
72
+ get: () => ct.value,
73
+ set: (e) => ct.value = e || void 0
74
+ }), lt = d(() => _.readonly || _.disabled ? void 0 : _.placeholder), ut = d(() => ue(_.format)), dt = d(() => le(_.format)), A = d(() => xe(_.format)), j = d(() => he(_.format)), ft = d(() => I.value === (/* @__PURE__ */ new Date()).getMonth() && L.value === (/* @__PURE__ */ new Date()).getFullYear()), M = C(!1), pt = C(!1), N = C(""), P = C(null), F = C("date"), I = C((/* @__PURE__ */ new Date()).getMonth()), L = C((/* @__PURE__ */ new Date()).getFullYear()), R = C((/* @__PURE__ */ new Date()).getFullYear()), mt = null, z = !1, ht = !1, gt = !1, B = null;
75
+ function _t() {
61
76
  queueMicrotask(() => {
62
77
  requestAnimationFrame(() => {
63
- let e = gr(), t = document.activeElement;
64
- e && (t === e || t instanceof Node && H.value?.contains(t)) && (B = !0);
78
+ let e = zr(), t = document.activeElement;
79
+ e && (t === e || t instanceof Node && V.value?.contains(t)) && (z = !0);
65
80
  });
66
81
  });
67
82
  }
68
- let lt = w("field"), H = w("menu"), ut = w("calendar"), dt = w("monthHeader"), ft = w("yearHeader"), pt = w("toggleTime"), mt = w("toggleDate"), ht = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map();
69
- function _t(e) {
83
+ let vt = T("field"), V = T("menu"), yt = T("calendar"), bt = T("monthHeader"), xt = T("yearHeader"), St = T("toggleTime"), Ct = T("toggleDate"), wt = /* @__PURE__ */ new Map(), Tt = /* @__PURE__ */ new Map();
84
+ function Et(e) {
70
85
  if (!e) return null;
71
86
  if (e instanceof HTMLElement) return e;
72
87
  if (typeof e == "object" && "$el" in e) {
@@ -75,405 +90,468 @@ var Pe = {
75
90
  }
76
91
  return null;
77
92
  }
78
- function vt(e, t) {
79
- let n = _t(e);
80
- n ? ht.set(t, n) : ht.delete(t);
93
+ function Dt(e, t) {
94
+ let n = Et(e);
95
+ n ? wt.set(t, n) : wt.delete(t);
81
96
  }
82
- function yt(e, t) {
83
- let n = _t(e);
84
- n ? gt.set(t, n) : gt.delete(t);
97
+ function Ot(e, t) {
98
+ let n = Et(e);
99
+ n ? Tt.set(t, n) : Tt.delete(t);
85
100
  }
86
- function bt(e) {
87
- _t(e)?.focus();
101
+ function kt(e) {
102
+ Et(e)?.focus();
88
103
  }
89
- let U = u(() => {
104
+ function At() {
105
+ return !!V.value?.contains(document.activeElement);
106
+ }
107
+ let H = C(null);
108
+ function jt(e, t) {
109
+ return !t && H.value !== e;
110
+ }
111
+ function Mt() {
112
+ At() && V.value?.focus();
113
+ }
114
+ let U = d(() => {
90
115
  let e = k.value;
91
- return e ? e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? e[0] : typeof e == "string" ? qn(e) : null : null;
92
- }), xt = u(() => {
116
+ return e ? e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? e[0] : typeof e == "string" ? gr(e) : null : null;
117
+ }), Nt = d(() => {
93
118
  let e = k.value;
94
119
  return Array.isArray(e) && e.length > 1 ? e[1] : null;
95
- }), W = S(null), G = S(null), K = S(null), q = S(!1), St = u(() => !q.value || !W.value ? U.value : K.value && K.value < W.value ? K.value : W.value), Ct = u(() => {
96
- if (!g.range) return U.value;
97
- if (!q.value || !W.value) return xt.value;
120
+ }), W = C(null), G = C(null), K = C(null), q = C(!1), Pt = d(() => !q.value || !W.value ? U.value : K.value && K.value < W.value ? K.value : W.value), Ft = d(() => {
121
+ if (!_.range) return U.value;
122
+ if (!q.value || !W.value) return Nt.value;
98
123
  let e = K.value ?? G.value;
99
124
  return e ? e < W.value ? W.value : e : null;
100
- }), J = u(() => ({
125
+ }), J = d(() => ({
101
126
  getMonthName: (e, t) => {
102
- let n = Gt(e);
127
+ let n = un(e);
103
128
  return t ? n.substring(0, 3) : n;
104
129
  },
105
130
  getWeekdayName: (e, t) => {
106
- let n = re[(e + 6) % 7], r = g.texts[n] ?? n;
131
+ let n = ae[(e + 6) % 7], r = _.texts[n] ?? n;
107
132
  return t ? r.substring(0, 3) : r;
108
133
  }
109
- })), wt = u(() => J.value), Tt = u(() => {
134
+ })), It = d(() => J.value), Lt = d(() => {
110
135
  let e = k.value;
111
136
  if (!e) return "";
112
- if (Array.isArray(e)) return e.map((e) => e instanceof Date ? c(e, g.format, J.value) : e).join(" - ");
113
- if (e instanceof Date) return c(e, g.format, J.value);
137
+ if (Array.isArray(e)) return e.map((e) => e instanceof Date ? ce(e, _.format, J.value) : e).join(" - ");
138
+ if (e instanceof Date) return ce(e, _.format, J.value);
114
139
  if (typeof e == "string") {
115
- let t = qn(e);
116
- return t ? c(t, g.format, J.value) : String(e);
140
+ let t = gr(e);
141
+ return t ? ce(t, _.format, J.value) : String(e);
117
142
  }
118
143
  return String(e);
119
- }), Et = u(() => F.value ?? Tt.value), Dt = S(!1), Ot = u(() => {
120
- if (!Dt.value) return;
121
- let e = c(/* @__PURE__ */ new Date(), g.format, J.value), t = g.range ? `${e} - ${e}` : e;
122
- return g.texts.invalidValue.replace("{0}", t);
123
- }), { isInvalid: kt, showsAppErrors: At } = s({
124
- invalid: () => g.invalid,
125
- error: Ot,
126
- slots: Me()
144
+ }), Rt = d(() => P.value ?? Lt.value), zt = C(!1), Bt = d(() => {
145
+ if (!zt.value) return;
146
+ let e = ce(/* @__PURE__ */ new Date(), _.format, J.value), t = _.range ? `${e} - ${e}` : e;
147
+ return _.texts.invalidValue.replace("{0}", t);
148
+ }), { isInvalid: Vt, showsAppErrors: Ht } = ee({
149
+ invalid: () => _.invalid,
150
+ error: Bt,
151
+ slots: Fe()
127
152
  });
128
- function jt() {
129
- P.value = Et.value;
153
+ function Ut() {
154
+ N.value = Rt.value;
130
155
  }
131
- Ne(Et, () => {
132
- it.value || jt();
156
+ Ie(Rt, () => {
157
+ pt.value || Ut();
133
158
  }, { immediate: !0 });
134
- let Mt = u(() => {
135
- let e = de(new Date(R.value, L.value, 1)), t = ue(L.value, R.value), n = (e.getDay() + 6) % 7, r = [], i = L.value === 0 ? 11 : L.value - 1, a = L.value === 0 ? R.value - 1 : R.value, o = ue(i, a);
136
- for (let e = n - 1; e >= 0; e--) Nt(r, new Date(a, i, o - e), !1);
137
- for (let e = 1; e <= t; e++) Nt(r, new Date(R.value, L.value, e), !0);
138
- let s = 7 - r.length % 7, ee = s === 7 ? 0 : s;
139
- for (let e = 1; e <= ee; e++) Nt(r, new Date(R.value, L.value + 1, e), !1);
140
- return r;
159
+ let Wt = d(() => {
160
+ let e = fe(new Date(L.value, I.value, 1)), t = de(I.value, L.value), n = (e.getDay() + 6) % 7, r = 6 - Math.ceil((n + t) / 7), i = n + Math.floor(r / 2) * 7, a = [], o = I.value === 0 ? 11 : I.value - 1, s = I.value === 0 ? L.value - 1 : L.value, ee = de(o, s);
161
+ for (let e = i - 1; e >= 0; e--) Gt(a, new Date(s, o, ee - e), !1);
162
+ for (let e = 1; e <= t; e++) Gt(a, new Date(L.value, I.value, e), !0);
163
+ let te = 42 - a.length;
164
+ for (let e = 1; e <= te; e++) Gt(a, new Date(L.value, I.value + 1, e), !1);
165
+ return a;
141
166
  });
142
- function Nt(e, t, n) {
143
- let r = St.value, i = Ct.value, a = t.getFullYear(), o = a < E || a > D;
167
+ function Gt(e, t, n) {
168
+ let r = Pt.value, i = Ft.value, a = t.getFullYear(), o = a < D || a > O;
144
169
  e.push({
145
170
  date: t,
146
171
  isCurrentMonth: n,
147
- isToday: me(t, /* @__PURE__ */ new Date()),
148
- isSelected: r ? me(t, r) : !1,
149
- isRangeStart: !!r && me(t, r),
150
- isRangeEnd: !!i && me(t, i),
151
- isInRange: r && i ? pe(t, r, i) : !1,
172
+ isToday: l(t, /* @__PURE__ */ new Date()),
173
+ isSelected: r ? l(t, r) : !1,
174
+ isRangeStart: !!r && l(t, r),
175
+ isRangeEnd: !!i && l(t, i),
176
+ isInRange: r && i ? me(t, r, i) : !1,
152
177
  isDisabled: o
153
178
  });
154
179
  }
155
- let Pt = u(() => re.map((e) => {
180
+ let Kt = d(() => ae.map((e) => {
156
181
  let t = e;
157
- return g.texts[t]?.substring(0, 2) ?? e;
158
- })), Ft = u(() => {
182
+ return _.texts[t]?.substring(0, 2) ?? e;
183
+ })), { style: qt } = t("primary"), Jt = d(() => qt.value ? {
184
+ "--q-date-band-color-rgb": qt.value.mainColorRgb,
185
+ "--q-date-band-edge-color": qt.value.textColor
186
+ } : void 0), Yt = d(() => {
159
187
  let e = [];
160
- return Mt.value.forEach((t, n) => {
188
+ return Wt.value.forEach((t, n) => {
161
189
  n % 7 == 0 && e.push([]), e[e.length - 1].push({
162
190
  day: t,
163
191
  index: n
164
192
  });
165
- }), e;
193
+ }), e.map((e) => ({
194
+ days: e,
195
+ band: Xt(e.map(({ day: e }) => e))
196
+ }));
166
197
  });
167
- function It(e) {
168
- let t = re[e];
169
- return g.texts[t] ?? t;
170
- }
171
- let Lt = u(() => `${Gt(L.value)} ${R.value}`);
172
- function Rt(e) {
173
- return `${It((e.getDay() + 6) % 7)}, ${e.getDate()} ${Gt(e.getMonth())} ${e.getFullYear()}`;
174
- }
175
- let zt = S(null), Bt = u(() => {
176
- let e = Mt.value;
198
+ function Xt(e) {
199
+ if (!Ft.value) return;
200
+ let t = e.map((e) => e.isRangeStart || e.isInRange || e.isRangeEnd), n = t.indexOf(!0);
201
+ if (n < 0) return;
202
+ let r = t.lastIndexOf(!0), i = e[n].isRangeStart ? n + .5 : n, a = e[r].isRangeEnd ? r + .5 : r + 1;
203
+ return a > i ? {
204
+ start: i,
205
+ end: a
206
+ } : void 0;
207
+ }
208
+ function Zt(e) {
209
+ let t = ae[e];
210
+ return _.texts[t] ?? t;
211
+ }
212
+ function Qt(e) {
213
+ if (_.range && q.value && W.value) return l(e, W.value);
214
+ let t = U.value;
215
+ if (!t) return !1;
216
+ let n = _.range ? Nt.value : null;
217
+ return n ? l(e, t) || l(e, n) || me(e, t, n) : l(e, t);
218
+ }
219
+ function $t() {
220
+ return te(at["aria-label"], vt.value?.inputRef);
221
+ }
222
+ let en = d(() => typeof at["aria-labelledby"] == "string" ? at["aria-labelledby"] : void 0), tn = d(() => `${un(I.value)} ${L.value}`);
223
+ function nn(e) {
224
+ return `${Zt((e.getDay() + 6) % 7)}, ${e.getDate()} ${un(e.getMonth())} ${e.getFullYear()}`;
225
+ }
226
+ let rn = C(null), an = d(() => {
227
+ let e = Wt.value;
177
228
  for (let t of [
178
- zt.value,
179
- St.value,
229
+ rn.value,
230
+ Pt.value,
180
231
  /* @__PURE__ */ new Date()
181
232
  ]) {
182
233
  if (!t) continue;
183
- let n = e.findIndex((e) => e.isCurrentMonth && !e.isDisabled && me(e.date, t));
234
+ let n = e.findIndex((e) => e.isCurrentMonth && !e.isDisabled && l(e.date, t));
184
235
  if (n >= 0) return n;
185
236
  }
186
237
  return e.findIndex((e) => e.isCurrentMonth && !e.isDisabled);
187
238
  });
188
- function Vt(e, t) {
189
- let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = ue(n.getMonth(), n.getFullYear());
239
+ function on(e, t) {
240
+ let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = de(n.getMonth(), n.getFullYear());
190
241
  return new Date(n.getFullYear(), n.getMonth(), Math.min(e.getDate(), r));
191
242
  }
192
- function Ht(e) {
243
+ function sn(e) {
193
244
  if (e.ctrlKey || e.altKey || e.metaKey) return;
194
- let t = e.target.closest("[data-day-index]"), n = Mt.value[Number(t?.getAttribute("data-day-index"))];
245
+ let t = e.target.closest("[data-day-index]"), n = Wt.value[Number(t?.getAttribute("data-day-index"))];
195
246
  if (!n) return;
196
247
  let { date: r } = n, i = (r.getDay() + 6) % 7, a = e.shiftKey ? 12 : 1, o = {
197
- ArrowLeft: () => ae(r, -1),
198
- ArrowRight: () => ae(r, 1),
199
- ArrowUp: () => ae(r, -7),
200
- ArrowDown: () => ae(r, 7),
201
- Home: () => ae(r, -i),
202
- End: () => ae(r, 6 - i),
203
- PageUp: () => Vt(r, -a),
204
- PageDown: () => Vt(r, a)
248
+ ArrowLeft: () => c(r, -1),
249
+ ArrowRight: () => c(r, 1),
250
+ ArrowUp: () => c(r, -7),
251
+ ArrowDown: () => c(r, 7),
252
+ Home: () => c(r, -i),
253
+ End: () => c(r, 6 - i),
254
+ PageUp: () => on(r, -a),
255
+ PageDown: () => on(r, a)
205
256
  }[e.key];
206
- o && (e.preventDefault(), Ut(o()));
257
+ o && (e.preventDefault(), cn(o()));
207
258
  }
208
- async function Ut(e) {
259
+ async function cn(e) {
209
260
  let t = e.getFullYear();
210
- t < E || t > D || (zt.value = e, (e.getMonth() !== L.value || t !== R.value) && (X(e.getMonth()), Y(t)), await y(), H.value?.querySelector(`[data-day-index="${Bt.value}"]`)?.focus());
261
+ t < D || t > O || (rn.value = e, (e.getMonth() !== I.value || t !== L.value) && (X(e.getMonth()), Y(t)), await b(), V.value?.querySelector(`[data-day-index="${an.value}"]`)?.focus());
211
262
  }
212
- let Wt = u(() => Array.from({ length: 12 }, (e, t) => Gt(t, 3)));
213
- function Gt(e, t = 0) {
214
- let n = ne[e], r = g.texts[n] ?? ne[e];
263
+ let ln = d(() => Array.from({ length: 12 }, (e, t) => un(t, 3)));
264
+ function un(e, t = 0) {
265
+ let n = ie[e], r = _.texts[n] ?? ie[e];
215
266
  return t <= 0 ? r : r.substring(0, t);
216
267
  }
217
- function Kt(e) {
218
- let t = e - Math.floor(O / 2), n = t + O;
219
- return t < E && (t = E, n = Math.min(t + O, D)), n > D && (n = D, t = Math.max(E, n - O)), {
268
+ function dn(e) {
269
+ let t = e - Math.floor(nt / 2), n = t + nt;
270
+ return t < D && (t = D, n = Math.min(t + nt, O)), n > O && (n = O, t = Math.max(D, n - nt)), {
220
271
  startYear: t,
221
272
  endYear: n
222
273
  };
223
274
  }
224
- function qt(e) {
225
- let { startYear: t, endYear: n } = Kt(e);
275
+ function fn(e) {
276
+ let { startYear: t, endYear: n } = dn(e);
226
277
  return Array.from({ length: n - t + 1 }, (e, n) => t + n);
227
278
  }
228
- function Jt() {
229
- z.value -= O;
279
+ function pn() {
280
+ gn.value && (R.value -= nt);
230
281
  }
231
- function Yt() {
232
- z.value += O;
282
+ function mn() {
283
+ _n.value && (R.value += nt);
233
284
  }
234
- let Xt = u(() => Kt(z.value)), Zt = u(() => Xt.value.startYear > E), Qt = u(() => Xt.value.endYear < D), $t = u(() => L.value === 0 ? R.value - 1 : R.value), en = u(() => L.value === 11 ? R.value + 1 : R.value), tn = u(() => $t.value >= E), nn = u(() => en.value <= D), rn = u(() => qt(z.value)), an = u(() => M.value ? g.icons.clock : g.icons.calendar), on = u(() => `${g.format} - ${g.format}`), sn = u(() => se(g.format)), cn = u(() => `${sn.value} - ${sn.value}`);
235
- Ne(() => lt?.value?.inputRef, (e, t, n) => {
236
- let r = hr(e);
237
- V = r, r && (r.addEventListener("click", fr), n(() => {
238
- V = null, r.removeEventListener("click", fr);
285
+ let hn = d(() => dn(R.value)), gn = d(() => hn.value.startYear > D), _n = d(() => hn.value.endYear < O), vn = d(() => I.value === 0 ? L.value - 1 : L.value), yn = d(() => I.value === 11 ? L.value + 1 : L.value), bn = d(() => vn.value >= D), xn = d(() => yn.value <= O), Sn = d(() => fn(R.value)), Cn = d(() => j.value ? _.icons.clock : _.icons.calendar), wn = d(() => `${_.format} - ${_.format}`), Tn = d(() => se(_.format)), En = d(() => `${Tn.value} - ${Tn.value}`);
286
+ Ie(() => vt?.value?.inputRef, (e, t, n) => {
287
+ let r = Rr(e);
288
+ B = r, r && (r.addEventListener("click", Fr), n(() => {
289
+ B = null, r.removeEventListener("click", Fr);
239
290
  }));
240
- }, { flush: "post" }), Ne(k, () => {
241
- F.value = null, Dt.value = !1, jt();
291
+ }, { flush: "post" }), Ie(k, () => {
292
+ P.value = null, zt.value = !1, Ut();
242
293
  });
243
- function ln(e) {
294
+ function Dn(e) {
244
295
  return e === void 0 ? !1 : typeof e == "string" ? e.trim().length > 0 : e instanceof Date ? !0 : Array.isArray(e) ? e.length > 0 : !1;
245
296
  }
246
- let un = u(() => g.clearable && !g.readonly && !g.disabled && ln(k.value));
247
- function dn() {
248
- un.value && (wn(), k.value = void 0, P.value = "", Ar());
297
+ let On = d(() => _.clearable && !_.readonly && !_.disabled && Dn(k.value));
298
+ function kn() {
299
+ On.value && (Un(), k.value = void 0, N.value = "", $r());
249
300
  }
250
- function fn(e) {
251
- !g.range || !q.value || !W.value || e.getFullYear() < E || e.getFullYear() > D || (K.value = new Date(e));
301
+ function An(e) {
302
+ !_.range || !q.value || !W.value || e.getFullYear() < D || e.getFullYear() > O || (K.value = new Date(e));
252
303
  }
253
- function pn() {
304
+ function jn() {
254
305
  K.value = null;
255
306
  }
256
- function mn(e) {
307
+ function Mn(e) {
257
308
  let t = e.currentTarget, n = e.relatedTarget;
258
- !t || n && t.contains(n) || pn();
309
+ !t || n && t.contains(n) || jn();
259
310
  }
260
- function hn(e) {
261
- if (!g.range || !q.value || !W.value) return;
311
+ function Nn(e) {
312
+ if (!_.range || !q.value || !W.value) return;
262
313
  let t = e.touches.item(0);
263
314
  if (!t) return;
264
315
  let n = document.elementFromPoint(t.clientX, t.clientY)?.closest("[data-day-index]");
265
316
  if (!n) return;
266
317
  let r = Number(n.dataset.dayIndex);
267
318
  if (Number.isNaN(r)) return;
268
- let i = Mt.value[r];
269
- i && fn(i.date);
319
+ let i = Wt.value[r];
320
+ i && An(i.date);
270
321
  }
271
- function gn(e) {
272
- if (!(g.readonly || g.disabled) && !(e.getFullYear() < E || e.getFullYear() > D)) if (g.range) if (!q.value) W.value = new Date(e), G.value = null, K.value = null, q.value = !0;
322
+ async function Pn(e) {
323
+ let t = At();
324
+ if (Fn(e), !t || (rn.value = e, await b(), !M.value)) return;
325
+ let n = Wt.value.findIndex((t) => l(t.date, e));
326
+ V.value?.querySelector(`[data-day-index="${n >= 0 ? n : an.value}"]`)?.focus();
327
+ }
328
+ function Fn(e) {
329
+ if (!(_.readonly || _.disabled) && !(e.getFullYear() < D || e.getFullYear() > O)) if (_.range) if (!q.value) W.value = new Date(e), G.value = null, K.value = null, q.value = !0;
273
330
  else {
274
331
  let t = W.value, n = new Date(e), [r, i] = n < t ? [n, t] : [t, n];
275
- A.value && i.setHours(23, 59, nt.value ? 59 : 0, 0), k.value = [r, i], W.value = null, G.value = null, K.value = null, q.value = !1;
332
+ ut.value && i.setHours(23, 59, dt.value ? 59 : 0, 0), k.value = [r, i], W.value = null, G.value = null, K.value = null, q.value = !1;
276
333
  }
277
334
  else {
278
335
  let t = new Date(e);
279
- U.value && !tr(U.value) ? t.setHours(U.value.getHours(), U.value.getMinutes(), U.value.getSeconds()) : A.value && nr(t), k.value = t;
336
+ U.value && !wr(U.value) ? t.setHours(U.value.getHours(), U.value.getMinutes(), U.value.getSeconds()) : ut.value && Tr(t), k.value = t;
280
337
  }
281
338
  }
282
- function _n(e) {
283
- e !== L.value && X(e, !0);
339
+ function In(e) {
340
+ X(e, !0);
284
341
  }
285
- function vn(e) {
286
- e !== R.value && Y(e, !0);
342
+ function Ln(e) {
343
+ Y(e, !0);
287
344
  }
288
345
  function Y(e, t) {
289
- R.value = e, t && wr("year");
346
+ L.value = e, t && qr("year");
290
347
  }
291
348
  function X(e, t) {
292
- L.value = e, t && wr("month");
349
+ I.value = e, t && qr("month");
293
350
  }
294
- function yn() {
295
- L.value === 0 ? (X(11), Y(R.value - 1)) : X(L.value - 1);
351
+ function Rn() {
352
+ bn.value && (I.value === 0 ? (X(11), Y(L.value - 1)) : X(I.value - 1));
296
353
  }
297
- function bn() {
298
- L.value === 11 ? (X(0), Y(R.value + 1)) : X(L.value + 1);
354
+ function zn() {
355
+ xn.value && (I.value === 11 ? (X(0), Y(L.value + 1)) : X(I.value + 1));
299
356
  }
300
- function xn() {
301
- X((/* @__PURE__ */ new Date()).getMonth()), Y((/* @__PURE__ */ new Date()).getFullYear()), Cr();
357
+ function Bn() {
358
+ ft.value || (X((/* @__PURE__ */ new Date()).getMonth()), Y((/* @__PURE__ */ new Date()).getFullYear()), Kr());
302
359
  }
303
- function Sn() {
360
+ function Vn() {
304
361
  let e = U.value ?? /* @__PURE__ */ new Date();
305
- X(e.getMonth()), Y(e.getFullYear()), Cr();
362
+ X(e.getMonth()), Y(e.getFullYear()), Kr();
306
363
  }
307
- function Cn(e) {
308
- return g.range ? q.value ? e === 1 ? G.value : W.value : e === 1 ? xt.value ?? G.value : U.value ?? W.value : U.value;
364
+ function Hn(e) {
365
+ return _.range ? q.value ? e === 1 ? G.value : W.value : e === 1 ? Nt.value ?? G.value : U.value ?? W.value : U.value;
309
366
  }
310
- function wn() {
367
+ function Un() {
311
368
  W.value = null, G.value = null, K.value = null, q.value = !1;
312
369
  }
313
- function Tn() {
314
- if (!g.range || !M.value) return;
370
+ function Wn() {
371
+ if (!_.range || !j.value) return;
315
372
  let e = k.value;
316
373
  if (!Array.isArray(e) || e.length < 2) return;
317
374
  let t = e[0], n = e[1];
318
375
  !(t instanceof Date) || !(n instanceof Date) || n >= t || (k.value = [new Date(n), new Date(t)]);
319
376
  }
320
- function En(e, t) {
321
- if (!g.range) {
377
+ function Gn(e, t) {
378
+ if (!_.range) {
322
379
  k.value = t;
323
380
  return;
324
381
  }
325
- if (M.value) {
382
+ if (j.value) {
326
383
  e === 0 ? W.value = t : G.value = t;
327
- let n = e === 0 ? t : U.value ?? W.value, r = e === 1 ? t : xt.value;
384
+ let n = e === 0 ? t : U.value ?? W.value, r = e === 1 ? t : Nt.value;
328
385
  if (!n || !r) return;
329
- k.value = [new Date(n), new Date(r)], wn();
386
+ k.value = [new Date(n), new Date(r)], Un();
330
387
  return;
331
388
  }
332
389
  if (q.value) {
333
390
  e === 0 && (W.value = t);
334
391
  return;
335
392
  }
336
- let n = U.value, r = xt.value;
393
+ let n = U.value, r = Nt.value;
337
394
  !n || !r || (k.value = e === 1 ? [n, t] : [t, r]);
338
395
  }
339
396
  function Z(e, t) {
340
- let n = Cn(e) ?? (() => {
397
+ let n = Hn(e) ?? (() => {
341
398
  let e = /* @__PURE__ */ new Date();
342
399
  return e.setHours(0, 0, 0, 0), e;
343
400
  })(), r = new Date(n);
344
- t(r), En(e, r);
401
+ t(r), Gn(e, r);
345
402
  }
346
- function Dn(e) {
347
- let t = Cn(e);
348
- if (!t) return j.value ? 12 : 0;
403
+ function Kn(e) {
404
+ let t = Hn(e);
405
+ if (!t) return A.value ? 12 : 0;
349
406
  let n = t.getHours();
350
- return j.value ? n % 12 || 12 : n;
407
+ return A.value ? n % 12 || 12 : n;
351
408
  }
352
- function On(e) {
353
- return Cn(e)?.getMinutes() ?? 0;
409
+ function qn(e) {
410
+ return Hn(e)?.getMinutes() ?? 0;
354
411
  }
355
- function kn(e) {
356
- return Cn(e)?.getSeconds() ?? 0;
412
+ function Jn(e) {
413
+ return Hn(e)?.getSeconds() ?? 0;
357
414
  }
358
- function An(e) {
359
- let t = Cn(e);
415
+ function Yn(e) {
416
+ let t = Hn(e);
360
417
  return t ? t.getHours() >= 12 : !1;
361
418
  }
362
419
  function Q(e, t) {
363
420
  return t ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e;
364
421
  }
365
- function jn(e, t) {
422
+ function Xn(e, t) {
366
423
  let n = e >= 12, r = e % 12 || 12;
367
424
  return t === 1 ? r >= 12 ? Q(1, n) : r === 11 ? Q(12, !n) : Q(r + 1, n) : r <= 1 ? Q(12, n) : r === 12 ? Q(11, !n) : Q(r - 1, n);
368
425
  }
369
- function Mn(e) {
426
+ function Zn(e) {
370
427
  Z(e, (e) => {
371
- j.value ? e.setHours(jn(e.getHours(), 1)) : e.setHours(e.getHours() >= 23 ? 0 : e.getHours() + 1);
428
+ A.value ? e.setHours(Xn(e.getHours(), 1)) : e.setHours(e.getHours() >= 23 ? 0 : e.getHours() + 1);
372
429
  });
373
430
  }
374
- function Nn(e) {
431
+ function Qn(e) {
375
432
  Z(e, (e) => {
376
- j.value ? e.setHours(jn(e.getHours(), -1)) : e.setHours(e.getHours() <= 0 ? 23 : e.getHours() - 1);
433
+ A.value ? e.setHours(Xn(e.getHours(), -1)) : e.setHours(e.getHours() <= 0 ? 23 : e.getHours() - 1);
377
434
  });
378
435
  }
379
- function Pn(e) {
436
+ function $n(e) {
380
437
  Z(e, (e) => {
381
438
  e.setMinutes(e.getMinutes() >= 59 ? 0 : e.getMinutes() + 1);
382
439
  });
383
440
  }
384
- function Fn(e) {
441
+ function er(e) {
385
442
  Z(e, (e) => {
386
443
  e.setMinutes(e.getMinutes() <= 0 ? 59 : e.getMinutes() - 1);
387
444
  });
388
445
  }
389
- function In(e) {
446
+ function tr(e) {
390
447
  Z(e, (e) => {
391
448
  e.setSeconds(e.getSeconds() >= 59 ? 0 : e.getSeconds() + 1);
392
449
  });
393
450
  }
394
- function Ln(e) {
451
+ function nr(e) {
395
452
  Z(e, (e) => {
396
453
  e.setSeconds(e.getSeconds() <= 0 ? 59 : e.getSeconds() - 1);
397
454
  });
398
455
  }
399
- function Rn(e) {
456
+ function rr(e) {
400
457
  return (e ?? "").replace(/\D/g, "");
401
458
  }
402
- function zn(e) {
459
+ function ir(e) {
403
460
  return Math.min(23, Math.max(0, e));
404
461
  }
405
- function Bn(e) {
462
+ function ar(e) {
406
463
  return Math.min(12, Math.max(1, e));
407
464
  }
408
- function Vn(e) {
465
+ function or(e) {
409
466
  return Math.min(59, Math.max(0, e));
410
467
  }
411
- function Hn(e, t) {
412
- let n = Rn(e).slice(0, 2);
468
+ function sr(e, t) {
469
+ let n = rr(e).slice(0, 2);
413
470
  if (n === "") return;
414
- let r = Number.parseInt(n, 10), i = j.value ? Bn(r) : zn(r);
415
- Z(t, (e) => {
416
- j.value ? e.setHours(Q(i, e.getHours() >= 12)) : e.setHours(i);
417
- });
471
+ let r = Number.parseInt(n, 10), i = A.value ? ar(r) : ir(r);
472
+ return Z(t, (e) => {
473
+ A.value ? e.setHours(Q(i, e.getHours() >= 12)) : e.setHours(i);
474
+ }), i;
418
475
  }
419
- function Un(e, t) {
420
- let n = Rn(e).slice(0, 2);
476
+ function cr(e, t) {
477
+ let n = rr(e).slice(0, 2);
421
478
  if (n === "") return;
422
- let r = Vn(Number.parseInt(n, 10));
423
- Z(t, (e) => {
479
+ let r = or(Number.parseInt(n, 10));
480
+ return Z(t, (e) => {
424
481
  e.setMinutes(r);
425
- });
482
+ }), r;
426
483
  }
427
- function Wn(e, t) {
428
- let n = Rn(e).slice(0, 2);
484
+ function lr(e, t) {
485
+ let n = rr(e).slice(0, 2);
429
486
  if (n === "") return;
430
- let r = Vn(Number.parseInt(n, 10));
431
- Z(t, (e) => {
487
+ let r = or(Number.parseInt(n, 10));
488
+ return Z(t, (e) => {
432
489
  e.setSeconds(r);
433
- });
434
- }
435
- async function Gn(e, t, n) {
490
+ }), r;
491
+ }
492
+ let ur = C(null);
493
+ function dr(e, t) {
494
+ let n = ur.value;
495
+ return n?.field === e && n.index === t ? n.text : ge(e === "hours" ? Kn(t) : e === "minutes" ? qn(t) : Jn(t));
496
+ }
497
+ function fr(e, t, n) {
498
+ let r;
499
+ r = t === "hours" ? sr(e, n) : t === "minutes" ? cr(e, n) : lr(e, n);
500
+ let i = rr(e).slice(0, 2);
501
+ ur.value = r === void 0 || Number.parseInt(i, 10) === r ? {
502
+ field: t,
503
+ index: n,
504
+ text: e ?? ""
505
+ } : null;
506
+ }
507
+ function pr(e, t, n) {
508
+ let r = e.relatedTarget ?? document.activeElement;
509
+ if (r && e.currentTarget.contains(r)) return;
510
+ let i = ur.value;
511
+ i?.field === t && i.index === n && (ur.value = null);
512
+ }
513
+ async function mr(e, t, n) {
436
514
  if (e.ctrlKey || e.altKey || e.metaKey || !/^\d$/.test(e.key)) return;
437
515
  let r = e.target, i = r.selectionStart, a = r.selectionEnd;
438
- if (i === null || a === null || i !== a || r.maxLength <= 0 || r.value.length < r.maxLength || i >= r.value.length) return;
516
+ if (i === null || a === null || i !== a || r.maxLength <= 0 || r.value.length < r.maxLength) return;
439
517
  e.preventDefault();
440
- let o = `${r.value.slice(0, i)}${e.key}${r.value.slice(i + 1)}`;
441
- t === "hours" ? Hn(o, n) : t === "minutes" ? Un(o, n) : Wn(o, n);
442
- let s = Math.min(i + 1, r.maxLength);
443
- await y(), r.setSelectionRange(s, s);
518
+ let o = i >= r.value.length;
519
+ fr(o ? e.key : `${r.value.slice(0, i)}${e.key}${r.value.slice(i + 1)}`, t, n);
520
+ let s = o ? 1 : Math.min(i + 1, r.maxLength);
521
+ await b(), r.setSelectionRange(s, s);
444
522
  }
445
- function Kn(e, t) {
523
+ function hr(e, t) {
446
524
  Z(t, (t) => {
447
525
  let n = t.getHours() % 12 || 12;
448
526
  t.setHours(Q(n, e));
449
527
  });
450
528
  }
451
- function qn(e, t) {
529
+ function gr(e, t) {
452
530
  let n = e.trim();
453
531
  if (!n) return null;
454
- let r = _e(n, g.format, wt.value, Qe);
532
+ let r = ve(n, _.format, It.value, rt);
455
533
  if (r) return r;
456
- let i = ye(n);
534
+ let i = be(n);
457
535
  if (i) return i;
458
536
  if (t?.complete) {
459
- let e = ve(n, g.format, wt.value, Qe);
537
+ let e = ye(n, _.format, It.value, rt);
460
538
  if (e) return e;
461
539
  }
462
- return mr(n);
540
+ return Lr(n);
463
541
  }
464
- function Jn(e) {
465
- if (g.readonly || g.disabled) {
466
- jt();
542
+ function _r(e) {
543
+ if (_.readonly || _.disabled) {
544
+ Ut();
467
545
  return;
468
546
  }
469
547
  let t = e ?? "";
470
- F.value = t, P.value = t;
548
+ P.value = t, N.value = t;
471
549
  }
472
- function Yn(e, t) {
550
+ function vr(e, t) {
473
551
  let n = e.split(" - ");
474
552
  if (n.length !== 2) return null;
475
- let r = n[0]?.trim() ?? "", i = n[1]?.trim() ?? "", a = qn(r, t), o = qn(i, t);
476
- return !a || !o ? null : (Qn(r) && Qn(i) ? o < a : Date.UTC(o.getFullYear(), o.getMonth(), o.getDate()) < Date.UTC(a.getFullYear(), a.getMonth(), a.getDate())) ? {
553
+ let r = n[0]?.trim() ?? "", i = n[1]?.trim() ?? "", a = gr(r, t), o = gr(i, t);
554
+ return !a || !o ? null : (xr(r) && xr(i) ? o < a : Date.UTC(o.getFullYear(), o.getMonth(), o.getDate()) < Date.UTC(a.getFullYear(), a.getMonth(), a.getDate())) ? {
477
555
  range: [o, a],
478
556
  startSource: i,
479
557
  endSource: r
@@ -483,286 +561,299 @@ var Pe = {
483
561
  endSource: i
484
562
  };
485
563
  }
486
- function Xn() {
487
- if (g.readonly || g.disabled) return !1;
488
- let e = oe(F.value ?? P.value, g.range ? on.value : g.format, { padMaxDigits: !0 });
489
- if (!e) return F.value = null, Dt.value = !1, ln(k.value) && (k.value = void 0), P.value = "", !1;
490
- if (g.range) {
491
- let t = xe(e, cn.value), n = Yn(e, { complete: !0 }) ?? Yn(t, { complete: !0 });
564
+ function yr() {
565
+ if (_.readonly || _.disabled) return !1;
566
+ let e = _e(P.value ?? N.value, _.range ? wn.value : _.format);
567
+ if (!e) return P.value = null, zt.value = !1, Dn(k.value) && (k.value = void 0), N.value = "", !1;
568
+ if (_.range) {
569
+ let t = Se(e, En.value), n = vr(e, { complete: !0 }) ?? vr(t, { complete: !0 });
492
570
  if (n) {
493
- let e = er(n.range, n.startSource, n.endSource);
494
- return k.value = e, F.value = null, Dt.value = !1, P.value = e.map((e) => c(e, g.format, J.value)).join(" - "), !0;
571
+ let e = Cr(n.range, n.startSource, n.endSource);
572
+ return k.value = e, P.value = null, zt.value = !1, N.value = e.map((e) => ce(e, _.format, J.value)).join(" - "), !0;
495
573
  }
496
- return Zn();
574
+ return br();
497
575
  }
498
- let t = oe(xe(e, sn.value), g.format), n = qn(e, { complete: !0 }) ?? ve(t, g.format, wt.value, Qe);
499
- if (!n) return Zn();
500
- let r = $n(n, e, t);
501
- return k.value = r, F.value = null, Dt.value = !1, P.value = c(r, g.format, J.value), !0;
576
+ let t = Se(e, Tn.value), n = gr(e, { complete: !0 }) ?? ye(t, _.format, It.value, rt);
577
+ if (!n) return br();
578
+ let r = Sr(n, e, t);
579
+ return k.value = r, P.value = null, zt.value = !1, N.value = ce(r, _.format, J.value), !0;
502
580
  }
503
- function Zn() {
504
- return Dt.value = F.value !== null, !1;
581
+ function br() {
582
+ return zt.value = P.value !== null, !1;
505
583
  }
506
- function Qn(e) {
507
- return !A.value || fe(e, g.format) ? !0 : /\dT\d/i.test(e) || /\d{1,2}:\d{2}/.test(e);
584
+ function xr(e) {
585
+ return !ut.value || pe(e, _.format) ? !0 : /\dT\d/i.test(e) || /\d{1,2}:\d{2}/.test(e);
508
586
  }
509
- function $n(e, ...t) {
510
- if (!A.value || g.range || t.some((e) => Qn(e))) return e;
587
+ function Sr(e, ...t) {
588
+ if (!ut.value || _.range || t.some((e) => xr(e))) return e;
511
589
  let n = new Date(e);
512
- return nr(n), n;
590
+ return Tr(n), n;
513
591
  }
514
- function er(e, t, n) {
515
- if (!A.value) return e;
592
+ function Cr(e, t, n) {
593
+ if (!ut.value) return e;
516
594
  let [r, i] = e, a = new Date(r), o = new Date(i);
517
- return Qn(t) || a.setHours(0, 0, 0, 0), Qn(n) || o.setHours(23, 59, nt.value ? 59 : 0, 0), [a, o];
595
+ return xr(t) || a.setHours(0, 0, 0, 0), xr(n) || o.setHours(23, 59, dt.value ? 59 : 0, 0), [a, o];
518
596
  }
519
- function tr(e) {
597
+ function wr(e) {
520
598
  return e.getHours() === 0 && e.getMinutes() === 0 && e.getSeconds() === 0 && e.getMilliseconds() === 0;
521
599
  }
522
- function nr(e) {
600
+ function Tr(e) {
523
601
  let t = /* @__PURE__ */ new Date();
524
- e.setHours(t.getHours(), t.getMinutes(), nt.value ? t.getSeconds() : 0, nt.value ? t.getMilliseconds() : 0);
602
+ e.setHours(t.getHours(), t.getMinutes(), dt.value ? t.getSeconds() : 0, dt.value ? t.getMilliseconds() : 0);
525
603
  }
526
- function rr(e) {
604
+ function Er(e) {
527
605
  let t = e.target;
528
- if (!(t instanceof Element) || !H.value) return null;
606
+ if (!(t instanceof Element) || !V.value) return null;
529
607
  let n = t.closest("button, input, select, textarea, a[href], [tabindex], [contenteditable]");
530
- return n && H.value.contains(n) ? n : null;
608
+ return n && V.value.contains(n) ? n : null;
531
609
  }
532
- function ir(e) {
610
+ function Dr(e) {
533
611
  return !(e.matches(":disabled") || e.getAttribute("aria-disabled") === "true" || e.getAttribute("tabindex") === "-1");
534
612
  }
535
- function ar(e) {
536
- if (!(e.target instanceof Node) || !H.value?.contains(e.target)) return;
537
- ot = !0;
538
- let t = rr(e);
539
- t && !ir(t) && e.preventDefault();
613
+ function Or(e) {
614
+ if (!(e.target instanceof Node) || !V.value?.contains(e.target)) return;
615
+ ht = !0;
616
+ let t = Er(e);
617
+ t && !Dr(t) && e.preventDefault();
540
618
  }
541
- function or() {
542
- return H.value ? r(H.value).filter((e) => !(Number(e.getAttribute("tabindex")) < 0)) : [];
619
+ function kr() {
620
+ return V.value ? i(V.value).filter((e) => !(Number(e.getAttribute("tabindex")) < 0)) : [];
543
621
  }
544
- async function sr(e) {
545
- if (!(g.readonly || g.disabled)) {
622
+ async function Ar(e) {
623
+ if (!(_.readonly || _.disabled)) {
546
624
  if (e.key === "Enter") {
547
- e.preventDefault(), Xn();
625
+ e.preventDefault(), yr();
548
626
  return;
549
- } else if (e.key === "Tab") H.value?.setAttribute("inert", ""), st = !0, N.value = !1;
627
+ } else if (e.key === "Tab") V.value?.setAttribute("inert", ""), gt = !0, M.value = !1;
550
628
  else if (e.key === "ArrowDown") {
551
- N.value = !0, await y();
552
- let [t] = or();
629
+ M.value = !0, await b();
630
+ let [t] = kr();
553
631
  if (!t) return;
554
- e.preventDefault(), ot = !0, t.focus();
632
+ e.preventDefault(), ht = !0, t.focus();
555
633
  }
556
634
  }
557
635
  }
558
- function cr() {
559
- Ar();
636
+ function jr() {
637
+ $r();
560
638
  }
561
- function lr(e) {
639
+ function Mr(e) {
562
640
  if (e.key !== "Tab") return;
563
- let t = or();
641
+ let t = kr();
564
642
  if (!t.length) return;
565
- let r = t[0], i = t[t.length - 1], a = document.activeElement;
643
+ let n = t[0], i = t[t.length - 1], a = document.activeElement;
566
644
  if (e.shiftKey) {
567
- if (a !== r) return;
568
- e.preventDefault(), ot = !1, Ar();
645
+ if (a !== n) return;
646
+ e.preventDefault(), ht = !1, $r();
569
647
  return;
570
648
  }
571
649
  if (a !== i) return;
572
- e.preventDefault(), st = !1, N.value = !1;
573
- let o = lt.value?.$el, s = o ? n(o, H.value) : void 0;
574
- s ? s.focus() : Ar();
650
+ e.preventDefault(), gt = !1, M.value = !1;
651
+ let o = vt.value?.$el, s = o ? r(o, V.value) : void 0;
652
+ s ? s.focus() : $r();
575
653
  }
576
- async function ur(e) {
577
- if (Xn(), ot) {
578
- ot = !1;
654
+ async function Nr(e) {
655
+ if (yr(), ht) {
656
+ ht = !1;
579
657
  return;
580
658
  }
581
659
  let t = e?.relatedTarget;
582
- if (t instanceof Node && H.value?.contains(t)) return;
583
- await y();
584
- let n = gr(), r = document.activeElement;
585
- n !== r && (r instanceof Node && H.value?.contains(r) || (B = !1, N.value = !1, it.value = !1));
586
- }
587
- function dr() {
588
- if (!(g.readonly || g.disabled)) {
589
- if (it.value = !0, B) {
590
- B = !1;
660
+ if (t instanceof Node && V.value?.contains(t)) return;
661
+ await b();
662
+ let n = zr(), r = document.activeElement;
663
+ n !== r && (r instanceof Node && V.value?.contains(r) || (z = !1, M.value = !1, pt.value = !1));
664
+ }
665
+ function Pr() {
666
+ if (!(_.readonly || _.disabled)) {
667
+ if (pt.value = !0, z) {
668
+ z = !1;
591
669
  return;
592
670
  }
593
- N.value ||= !0;
671
+ M.value ||= !0;
594
672
  }
595
673
  }
596
- function fr() {
597
- g.readonly || g.disabled || (B = !1, N.value = !0);
674
+ function Fr() {
675
+ _.readonly || _.disabled || (z = !1, M.value = !0);
598
676
  }
599
- function pr(e) {
600
- e || ct(), N.value = e;
677
+ function Ir(e) {
678
+ e || _t(), M.value = e ?? !1;
601
679
  }
602
- function mr(e) {
603
- let t = ye(e);
680
+ function Lr(e) {
681
+ let t = be(e);
604
682
  if (t) return t;
605
683
  let n = /[A-Za-z]/.test(e), r = e.match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?$/);
606
684
  if (!n && !r) return null;
607
685
  if (r) {
608
686
  let [, e, t, n] = r.map(Number);
609
- if (n > ue(t - 1, e)) return null;
687
+ if (n > de(t - 1, e)) return null;
610
688
  }
611
689
  let i = new Date(e);
612
- return Number.isNaN(i.getTime()) ? null : i;
690
+ if (Number.isNaN(i.getTime())) return null;
691
+ if (!r) {
692
+ let t = e.replace(/\d{1,2}:\d{2}(?::\d{2})?/g, " ").match(/\b\d{1,2}\b/g);
693
+ if (t?.length === 1 && Number(t[0]) !== i.getDate()) return null;
694
+ }
695
+ return i;
613
696
  }
614
- function hr(e) {
697
+ function Rr(e) {
615
698
  return e instanceof HTMLInputElement ? e : typeof e == "object" && e && "value" in e && e.value instanceof HTMLInputElement ? e.value : null;
616
699
  }
617
- function gr() {
618
- if (V) return V;
619
- let e = hr(lt.value?.inputRef);
620
- if (e) return V = e, e;
621
- let t = _t(lt.value?.fieldRef)?.querySelector(".q-text-field__input") ?? null;
622
- return t ? (V = t, t) : null;
700
+ function zr() {
701
+ if (B) return B;
702
+ let e = Rr(vt.value?.inputRef);
703
+ if (e) return B = e, e;
704
+ let t = Et(vt.value?.fieldRef)?.querySelector(".q-text-field__input") ?? null;
705
+ return t ? (B = t, t) : null;
623
706
  }
624
- function _r(e) {
707
+ function Br(e) {
625
708
  return e.isSelected || e.isRangeStart || e.isRangeEnd ? "bold" : e.isInRange ? "tonal" : "ghost";
626
709
  }
627
- function vr(e) {
628
- H.value?.style.setProperty("--q-date-view-height", `${Math.max(0, e)}px`);
710
+ function Vr(e) {
711
+ V.value?.style.setProperty("--q-date-view-height", `${Math.max(0, e)}px`);
629
712
  }
630
- async function yr() {
631
- if (!N.value || M.value) {
632
- vr(0);
713
+ async function Hr() {
714
+ if (!M.value || j.value) {
715
+ Vr(0);
633
716
  return;
634
717
  }
635
- I.value === "date" && (await y(), vr(ut.value?.getBoundingClientRect().height ?? 0));
718
+ F.value === "date" && (await b(), Vr(yt.value?.getBoundingClientRect().height ?? 0));
636
719
  }
637
720
  function $() {
638
- at?.disconnect(), at = null;
721
+ mt?.disconnect(), mt = null;
639
722
  }
640
- async function br() {
641
- !N.value || M.value || I.value !== "date" || (await y(), ut.value && ($(), at = new MutationObserver(() => {
642
- yr();
643
- }), at.observe(ut.value, {
723
+ async function Ur() {
724
+ !M.value || j.value || F.value !== "date" || (await b(), yt.value && ($(), mt = new MutationObserver(() => {
725
+ Hr();
726
+ }), mt.observe(yt.value, {
644
727
  childList: !0,
645
728
  subtree: !0,
646
729
  attributes: !0,
647
730
  characterData: !0
648
- }), yr()));
731
+ }), Hr()));
649
732
  }
650
- function xr() {
651
- I.value = "time", $();
733
+ function Wr() {
734
+ F.value = "time", $();
652
735
  }
653
- async function Sr() {
654
- xr(), await y(), bt(mt.value);
736
+ async function Gr() {
737
+ Mt(), Wr(), await b(), kt(Ct.value);
655
738
  }
656
- function Cr() {
657
- I.value = "date", br();
739
+ function Kr() {
740
+ F.value = "date", Ur();
658
741
  }
659
- async function wr(e) {
660
- H.value?.focus(), Cr(), await y(), bt(e === "year" ? ft.value : e === "month" ? dt.value : e === "time" ? pt.value : null);
742
+ async function qr(e) {
743
+ V.value?.focus(), Kr(), await b(), kt(e === "year" ? xt.value : e === "month" ? bt.value : e === "time" ? St.value : null);
661
744
  }
662
- function Tr() {
663
- let e = I.value;
664
- e !== "date" && wr(e);
745
+ function Jr() {
746
+ let e = F.value;
747
+ e !== "date" && qr(e);
665
748
  }
666
- async function Er() {
667
- $(), I.value = "month", await y();
668
- let e = ht.get(L.value);
749
+ async function Yr() {
750
+ Mt(), $(), F.value = "month", await b();
751
+ let e = wt.get(I.value);
669
752
  e?.scrollIntoView({ block: "center" }), e?.focus();
670
753
  }
671
- async function Dr() {
672
- $(), z.value = R.value, I.value = "year", await y();
673
- let e = gt.get(z.value);
754
+ async function Xr() {
755
+ Mt(), $(), R.value = L.value, F.value = "year", await b();
756
+ let e = Tt.get(R.value);
674
757
  e?.scrollIntoView({ block: "center" }), e?.focus();
675
758
  }
676
- async function Or(e) {
759
+ async function Zr(e) {
677
760
  if (e.key !== "Escape") return;
678
- if (B = !0, I.value === "date" || M.value) {
679
- e.preventDefault(), N.value = !1, await y(), Fr();
761
+ if (z = !0, F.value === "date" || j.value) {
762
+ e.preventDefault(), At() && $r(), M.value = !1, await b(), ii();
680
763
  return;
681
764
  }
682
765
  e.preventDefault();
683
- let t = I.value;
684
- await wr(t);
766
+ let t = F.value;
767
+ await qr(t);
685
768
  }
686
- function kr(e) {
687
- Or(e);
769
+ function Qr(e) {
770
+ Zr(e);
688
771
  }
689
- function Ar() {
690
- gr()?.focus();
772
+ function $r() {
773
+ zr()?.focus();
691
774
  }
692
- function jr(e) {
775
+ function ei(e) {
693
776
  return !e || e === document.body || e === document.documentElement;
694
777
  }
695
- function Mr(e, t) {
778
+ function ti(e, t) {
696
779
  return e.closest(".q-date-time-picker__menu") || t.closest(".q-date-time-picker")?.contains(e) || !(e instanceof HTMLElement) ? !1 : e.tabIndex >= 0 || e.matches("input, select, textarea, button, a[href], [tabindex]:not([tabindex=\"-1\"])");
697
780
  }
698
- function Nr(e) {
699
- let t = gr();
700
- return t ? e === t || !e || !e.isConnected || jr(e) || H.value?.contains(e) ? !0 : !Mr(e, t) : !1;
781
+ function ni(e) {
782
+ let t = zr();
783
+ return t ? e === t || !e || !e.isConnected || ei(e) || V.value?.contains(e) ? !0 : !ti(e, t) : !1;
701
784
  }
702
- function Pr() {
703
- if (st) return;
704
- let e = gr();
705
- !e || !Nr(document.activeElement) || (B = !0, e.focus());
785
+ function ri() {
786
+ if (gt) return;
787
+ let e = zr();
788
+ !e || !ni(document.activeElement) || (z = !0, e.focus());
706
789
  }
707
- function Fr() {
708
- y().then(() => {
790
+ function ii() {
791
+ b().then(() => {
709
792
  requestAnimationFrame(() => {
710
793
  requestAnimationFrame(() => {
711
- Pr();
794
+ ri();
712
795
  });
713
796
  });
714
797
  });
715
798
  }
716
- function Ir() {
717
- ct();
718
- let e = st;
719
- st = !1, !e && (B = !0, Fr());
799
+ function ai() {
800
+ _t();
801
+ let e = gt;
802
+ gt = !1, !e && (z = !0, ii());
720
803
  }
721
- return Ne(k, () => {
804
+ return Ie(k, () => {
722
805
  U.value && (X(U.value.getMonth()), Y(U.value.getFullYear()));
723
- }), Ne(N, (e, t) => {
724
- if (e && t === !1 ? we("open") : !e && t === !0 && we("close"), e || (zt.value = null), M.value) {
725
- $(), vr(0), e ? (document.addEventListener("keydown", kr, { capture: !0 }), xr()) : (t && (Tn(), Ir()), document.removeEventListener("keydown", kr, { capture: !0 }));
806
+ }), Ie(M, (e, t) => {
807
+ if (e && t === !1 ? Te("open") : !e && t === !0 && Te("close"), e || (rn.value = null), j.value) {
808
+ $(), Vr(0), e ? (document.addEventListener("keydown", Qr, { capture: !0 }), Wr()) : (t && (Wn(), ai()), document.removeEventListener("keydown", Qr, { capture: !0 }));
726
809
  return;
727
810
  }
728
- wn(), e ? (document.addEventListener("keydown", kr, { capture: !0 }), Sn(), br()) : (t && Ir(), document.removeEventListener("keydown", kr, { capture: !0 }), $(), vr(0));
729
- }), Ne(M, (e) => {
730
- e && $(), N.value = !1, e && vr(0), e ? xr() : Cr();
731
- }, { immediate: !0 }), Ee(() => {
732
- $(), document.removeEventListener("keydown", kr, { capture: !0 });
733
- }), (e, n) => (x(), p(l, null, [h(C(o), v({
734
- id: C($e),
811
+ Un(), e ? (document.addEventListener("keydown", Qr, { capture: !0 }), Vn(), Ur()) : (t && ai(), document.removeEventListener("keydown", Qr, { capture: !0 }), $(), Vr(0));
812
+ }), Ie(j, (e) => {
813
+ e && $(), M.value = !1, e && Vr(0), e ? Wr() : Kr();
814
+ }, { immediate: !0 }), Oe(() => {
815
+ $(), document.removeEventListener("keydown", Qr, { capture: !0 });
816
+ }), (e, t) => (S(), m(u, null, [g(w(s), y({
817
+ id: w(it),
735
818
  ref: "field",
736
- "model-value": P.value,
737
- class: ["q-date-time-picker", g.class],
738
- clearable: un.value,
739
- label: g.label,
740
- "label-position": g.labelPosition,
741
- readonly: g.readonly,
742
- disabled: g.disabled,
743
- placeholder: tt.value,
744
- required: g.required,
745
- size: g.size,
746
- invalid: C(kt),
747
- help: g.help,
748
- "help-display": g.helpDisplay,
749
- icons: g.icons,
750
- texts: g.texts
819
+ "model-value": N.value,
820
+ class: ["q-date-time-picker", _.class],
821
+ clearable: On.value,
822
+ label: _.label,
823
+ "label-position": _.labelPosition,
824
+ readonly: _.readonly,
825
+ disabled: _.disabled,
826
+ placeholder: lt.value,
827
+ required: _.required,
828
+ size: _.size,
829
+ invalid: w(Vt),
830
+ help: _.help,
831
+ "help-display": _.helpDisplay,
832
+ icons: _.icons,
833
+ texts: _.texts,
834
+ role: st.value ? "combobox" : void 0,
835
+ "aria-haspopup": st.value ? "dialog" : void 0,
836
+ "aria-expanded": st.value ? M.value : void 0,
837
+ "aria-controls": st.value && M.value ? ot.value : void 0
751
838
  }, e.$attrs, {
752
- onBlur: ur,
753
- "onClick:clear": dn,
754
- onDrop: cr,
755
- onFocusin: dr,
756
- onKeydown: sr,
757
- "onUpdate:modelValue": Jn
758
- }), Se({
759
- prepend: T(() => [h(C(t), v({ class: "q-date-time-picker__input-icon" }, an.value), null, 16)]),
760
- errors: T(() => [C(At)() ? Oe(e.$slots, "errors", { key: 0 }) : Ot.value ? (x(), p(l, { key: 1 }, [Ce(ke(Ot.value), 1)], 64)) : f("v-if", !0)]),
839
+ onBlur: Nr,
840
+ "onClick:clear": kn,
841
+ onDrop: jr,
842
+ onFocusin: Pr,
843
+ onKeydown: Ar,
844
+ "onUpdate:modelValue": _r
845
+ }), Ce({
846
+ prepend: E(() => [g(w(n), y({ class: "q-date-time-picker__input-icon" }, Cn.value), null, 16)]),
847
+ errors: E(() => [w(Ht)() ? Ae(e.$slots, "errors", { key: 0 }) : Bt.value ? (S(), m(u, { key: 1 }, [we(je(Bt.value), 1)], 64)) : p("", !0)]),
761
848
  _: 2
762
- }, [e.$slots.extras ? {
763
- name: "extras",
764
- fn: T(() => [Oe(e.$slots, "extras")]),
849
+ }, [e.$slots.warnings ? {
850
+ name: "warnings",
851
+ fn: E(() => [Ae(e.$slots, "warnings")]),
765
852
  key: "0"
853
+ } : void 0, e.$slots.extras ? {
854
+ name: "extras",
855
+ fn: E(() => [Ae(e.$slots, "extras")]),
856
+ key: "1"
766
857
  } : void 0]), 1040, [
767
858
  "id",
768
859
  "model-value",
@@ -779,400 +870,438 @@ var Pe = {
779
870
  "help",
780
871
  "help-display",
781
872
  "icons",
782
- "texts"
783
- ]), !g.readonly && !g.disabled ? (x(), d(C(i), {
873
+ "texts",
874
+ "role",
875
+ "aria-haspopup",
876
+ "aria-expanded",
877
+ "aria-controls"
878
+ ]), st.value ? (S(), f(w(a), {
784
879
  key: 0,
785
- "model-value": N.value,
786
- anchor: lt.value?.fieldRef,
787
- inline: g.inline,
880
+ "model-value": M.value,
881
+ anchor: vt.value?.fieldRef,
882
+ inline: _.inline,
788
883
  offset: 8,
789
884
  placement: "bottom",
790
885
  trigger: "manual",
791
886
  arrow: "",
792
887
  "non-modal": "",
793
888
  spy: "",
794
- "onUpdate:modelValue": pr
889
+ "onUpdate:modelValue": Ir
795
890
  }, {
796
- default: T(() => [f(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- Tracks where a pointer press starts; the controls inside take the keyboard "), m("div", {
891
+ default: E(() => [h("div", {
892
+ id: ot.value,
797
893
  ref: "menu",
798
- class: Te(["q-date-time-picker__menu", { "q-date-time-picker__menu--time-only": M.value }]),
894
+ role: "dialog",
895
+ class: Ee(["q-date-time-picker__menu", { "q-date-time-picker__menu--time-only": j.value }]),
896
+ "aria-label": $t(),
897
+ "aria-labelledby": en.value,
799
898
  tabindex: "-1",
800
- onPointerdownCapture: ar,
801
- onKeydown: lr
802
- }, [
803
- f(" Calendar View "),
804
- I.value === "date" ? (x(), p("div", Pe, [
805
- f(" Header "),
806
- m("div", Fe, [
807
- h(C(a), {
808
- variant: "ghost",
809
- disabled: !tn.value,
810
- title: g.texts.previousMonth,
811
- onClick: yn
812
- }, {
813
- default: T(() => [h(C(t), b(_(g.icons.back)), null, 16)]),
814
- _: 1
815
- }, 8, ["disabled", "title"]),
816
- h(C(a), {
817
- ref: "monthHeader",
818
- "data-testid": "q-date-time-picker-month-header",
819
- variant: "ghost",
820
- label: Gt(L.value, 3),
821
- title: g.texts.pickMonth,
822
- onClick: Er
823
- }, null, 8, ["label", "title"]),
824
- h(C(a), {
825
- ref: "yearHeader",
826
- "data-testid": "q-date-time-picker-year-header",
827
- variant: "ghost",
828
- label: R.value.toString(),
829
- title: g.texts.pickYear,
830
- onClick: Dr
831
- }, null, 8, ["label", "title"]),
832
- h(C(a), {
833
- variant: "ghost",
834
- disabled: !nn.value,
835
- title: g.texts.nextMonth,
836
- onClick: bn
837
- }, {
838
- default: T(() => [h(C(t), b(_(g.icons.forward)), null, 16)]),
839
- _: 1
840
- }, 8, ["disabled", "title"])
841
- ]),
842
- f(" Days Grid: one Tab stop, and the arrow keys move through the days "),
843
- m("div", {
844
- role: "grid",
845
- class: "q-date-time-picker__grid",
846
- "aria-label": Lt.value
847
- }, [
848
- m("div", Le, [(x(!0), p(l, null, De(Pt.value, (e, t) => (x(), p("div", {
849
- key: e,
850
- role: "columnheader",
851
- class: "q-date-time-picker__weekday",
852
- "aria-label": It(t)
853
- }, ke(e), 9, Re))), 128))]),
854
- f(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- Hover and touch preview of a range; the day buttons inside take the keyboard "),
855
- m("div", {
856
- class: "q-date-time-picker__days",
857
- onMouseleave: pn,
858
- onFocusout: mn,
859
- onKeydown: Ht,
860
- onTouchstartPassive: hn,
861
- onTouchmovePassive: hn
862
- }, [(x(!0), p(l, null, De(Ft.value, (e, t) => (x(), p("div", {
863
- key: t,
864
- role: "row",
865
- class: "q-date-time-picker__week"
866
- }, [(x(!0), p(l, null, De(e, ({ day: e, index: t }) => (x(), d(C(a), {
867
- key: t,
868
- role: "gridcell",
869
- "data-day-index": t,
870
- class: Te(["q-date-time-picker__day", {
871
- "q-date-time-picker__day--other-month": !e.isCurrentMonth,
872
- "q-date-time-picker__day--today": e.isToday,
873
- "q-date-time-picker__day--selected": e.isSelected,
874
- "q-date-time-picker__day--in-range": e.isInRange,
875
- "q-date-time-picker__day--range-start": e.isRangeStart,
876
- "q-date-time-picker__day--range-end": e.isRangeEnd
877
- }]),
878
- label: e.date.getDate().toString(),
879
- "aria-label": Rt(e.date),
880
- "aria-selected": e.isSelected || e.isInRange || e.isRangeEnd,
881
- "aria-current": e.isToday ? "date" : void 0,
882
- tabindex: t === Bt.value ? 0 : -1,
883
- variant: _r(e),
884
- disabled: e.isDisabled,
885
- onMouseenter: () => fn(e.date),
886
- onFocus: () => fn(e.date),
887
- onClick: () => gn(e.date)
888
- }, null, 8, [
889
- "data-day-index",
890
- "class",
891
- "label",
892
- "aria-label",
893
- "aria-selected",
894
- "aria-current",
895
- "tabindex",
896
- "variant",
897
- "disabled",
898
- "onMouseenter",
899
- "onFocus",
900
- "onClick"
901
- ]))), 128))]))), 128))], 32)
902
- ], 8, Ie)
903
- ], 512)) : I.value === "time" ? (x(), p(l, { key: 1 }, [f(" Time View "), m("div", ze, [(x(!0), p(l, null, De(g.range ? 2 : 1, (e) => (x(), p("div", {
904
- key: e,
905
- class: "q-date-time-picker__time-group",
906
- role: g.range ? "group" : void 0,
907
- "aria-label": g.range ? e === 1 ? g.texts.startTime : g.texts.endTime : void 0
908
- }, [
909
- j.value ? (x(), p("div", Ve, [h(C(ie), {
910
- "model-value": An(e - 1),
911
- "show-state-labels": "",
912
- size: "small",
913
- "aria-label": g.texts.pm,
914
- "false-label": g.texts.am,
915
- "true-label": g.texts.pm,
916
- "onUpdate:modelValue": (t) => Kn(t ?? !1, e - 1)
917
- }, null, 8, [
918
- "model-value",
919
- "aria-label",
920
- "false-label",
921
- "true-label",
922
- "onUpdate:modelValue"
923
- ])])) : f("v-if", !0),
924
- f(" Time Inputs "),
925
- m("div", He, [
926
- m("div", Ue, [
927
- h(C(a), {
928
- variant: "ghost",
929
- title: g.texts.increaseHour,
930
- "aria-label": g.texts.increaseHour,
931
- onClick: (t) => Mn(e - 1)
932
- }, {
933
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
934
- _: 1
935
- }, 8, [
936
- "title",
937
- "aria-label",
938
- "onClick"
939
- ]),
940
- h(C(o), {
941
- class: "q-date-time-picker__time-number",
942
- size: "small",
943
- inputmode: "numeric",
944
- icons: g.icons,
945
- texts: g.texts,
946
- "max-length": 2,
947
- "aria-label": g.texts.hours,
948
- "model-value": C(ge)(Dn(e - 1)),
949
- onKeydown: (t) => Gn(t, "hours", e - 1),
950
- "onUpdate:modelValue": (t) => Hn(t, e - 1)
951
- }, null, 8, [
952
- "icons",
953
- "texts",
954
- "aria-label",
955
- "model-value",
956
- "onKeydown",
957
- "onUpdate:modelValue"
958
- ]),
959
- h(C(a), {
960
- variant: "ghost",
961
- title: g.texts.decreaseHour,
962
- "aria-label": g.texts.decreaseHour,
963
- onClick: (t) => Nn(e - 1)
964
- }, {
965
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
966
- _: 1
967
- }, 8, [
968
- "title",
969
- "aria-label",
970
- "onClick"
971
- ])
972
- ]),
973
- n[1] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1),
974
- m("div", We, [
975
- h(C(a), {
976
- variant: "ghost",
977
- title: g.texts.increaseMinute,
978
- "aria-label": g.texts.increaseMinute,
979
- onClick: (t) => Pn(e - 1)
980
- }, {
981
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
982
- _: 1
983
- }, 8, [
984
- "title",
985
- "aria-label",
986
- "onClick"
987
- ]),
988
- h(C(o), {
989
- class: "q-date-time-picker__time-number",
990
- size: "small",
991
- inputmode: "numeric",
992
- icons: g.icons,
993
- texts: g.texts,
994
- "max-length": 2,
995
- "aria-label": g.texts.minutes,
996
- "model-value": C(ge)(On(e - 1)),
997
- onKeydown: (t) => Gn(t, "minutes", e - 1),
998
- "onUpdate:modelValue": (t) => Un(t, e - 1)
999
- }, null, 8, [
1000
- "icons",
1001
- "texts",
1002
- "aria-label",
1003
- "model-value",
1004
- "onKeydown",
1005
- "onUpdate:modelValue"
1006
- ]),
1007
- h(C(a), {
1008
- variant: "ghost",
1009
- title: g.texts.decreaseMinute,
1010
- "aria-label": g.texts.decreaseMinute,
1011
- onClick: (t) => Fn(e - 1)
1012
- }, {
1013
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
1014
- _: 1
1015
- }, 8, [
1016
- "title",
1017
- "aria-label",
1018
- "onClick"
1019
- ])
1020
- ]),
1021
- nt.value ? (x(), p(l, { key: 0 }, [n[0] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1), m("div", Ge, [
1022
- h(C(a), {
1023
- variant: "ghost",
1024
- title: g.texts.increaseSecond,
1025
- "aria-label": g.texts.increaseSecond,
1026
- onClick: (t) => In(e - 1)
1027
- }, {
1028
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
1029
- _: 1
1030
- }, 8, [
1031
- "title",
1032
- "aria-label",
1033
- "onClick"
1034
- ]),
1035
- h(C(o), {
1036
- class: "q-date-time-picker__time-number",
1037
- size: "small",
1038
- inputmode: "numeric",
1039
- icons: g.icons,
1040
- texts: g.texts,
1041
- "max-length": 2,
1042
- "aria-label": g.texts.seconds,
1043
- "model-value": C(ge)(kn(e - 1)),
1044
- onKeydown: (t) => Gn(t, "seconds", e - 1),
1045
- "onUpdate:modelValue": (t) => Wn(t, e - 1)
1046
- }, null, 8, [
1047
- "icons",
1048
- "texts",
1049
- "aria-label",
1050
- "model-value",
1051
- "onKeydown",
1052
- "onUpdate:modelValue"
1053
- ]),
1054
- h(C(a), {
1055
- variant: "ghost",
1056
- title: g.texts.decreaseSecond,
1057
- "aria-label": g.texts.decreaseSecond,
1058
- onClick: (t) => Ln(e - 1)
1059
- }, {
1060
- default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
1061
- _: 1
1062
- }, 8, [
1063
- "title",
1064
- "aria-label",
1065
- "onClick"
1066
- ])
1067
- ])], 64)) : f("v-if", !0)
1068
- ])
1069
- ], 8, Be))), 128))])], 2112)) : I.value === "month" ? (x(), p(l, { key: 2 }, [f(" Month View "), m("div", Ke, [(x(!0), p(l, null, De(Wt.value, (e, t) => (x(), d(C(a), {
1070
- key: t,
1071
- ref_for: !0,
1072
- ref: (e) => vt(e, t),
1073
- "data-testid": "q-date-time-picker-month-option",
1074
- "data-month-index": t,
1075
- "aria-disabled": L.value === t || void 0,
1076
- label: e,
1077
- title: Gt(t),
899
+ onPointerdownCapture: Or,
900
+ onKeydown: Mr
901
+ }, [F.value === "date" ? (S(), m("div", Re, [h("div", ze, [
902
+ g(w(o), {
1078
903
  variant: "ghost",
1079
- onClick: () => _n(t)
1080
- }, null, 8, [
1081
- "data-month-index",
904
+ disabled: jt("previousMonth", bn.value),
905
+ "aria-disabled": !bn.value || void 0,
906
+ title: _.texts.previousMonth,
907
+ onFocus: t[0] ||= (e) => H.value = "previousMonth",
908
+ onBlur: t[1] ||= (e) => H.value = null,
909
+ onClick: Rn
910
+ }, {
911
+ default: E(() => [g(w(n), x(v(_.icons.back)), null, 16)]),
912
+ _: 1
913
+ }, 8, [
914
+ "disabled",
1082
915
  "aria-disabled",
1083
- "label",
1084
- "title",
1085
- "onClick"
1086
- ]))), 128))])], 2112)) : I.value === "year" ? (x(), p(l, { key: 3 }, [f(" Year View "), m("div", qe, [m("div", Je, [
1087
- h(C(a), {
916
+ "title"
917
+ ]),
918
+ g(w(o), {
919
+ ref: "monthHeader",
920
+ "data-testid": "q-date-time-picker-month-header",
921
+ variant: "ghost",
922
+ label: un(I.value, 3),
923
+ title: _.texts.pickMonth,
924
+ onClick: Yr
925
+ }, null, 8, ["label", "title"]),
926
+ g(w(o), {
927
+ ref: "yearHeader",
928
+ "data-testid": "q-date-time-picker-year-header",
929
+ variant: "ghost",
930
+ label: L.value.toString(),
931
+ title: _.texts.pickYear,
932
+ onClick: Xr
933
+ }, null, 8, ["label", "title"]),
934
+ g(w(o), {
935
+ variant: "ghost",
936
+ disabled: jt("nextMonth", xn.value),
937
+ "aria-disabled": !xn.value || void 0,
938
+ title: _.texts.nextMonth,
939
+ onFocus: t[2] ||= (e) => H.value = "nextMonth",
940
+ onBlur: t[3] ||= (e) => H.value = null,
941
+ onClick: zn
942
+ }, {
943
+ default: E(() => [g(w(n), x(v(_.icons.forward)), null, 16)]),
944
+ _: 1
945
+ }, 8, [
946
+ "disabled",
947
+ "aria-disabled",
948
+ "title"
949
+ ])
950
+ ]), h("div", {
951
+ role: "grid",
952
+ class: "q-date-time-picker__grid",
953
+ "aria-label": tn.value,
954
+ "aria-multiselectable": _.range || void 0
955
+ }, [h("div", Ve, [(S(!0), m(u, null, ke(Kt.value, (e, t) => (S(), m("div", {
956
+ key: e,
957
+ role: "columnheader",
958
+ class: "q-date-time-picker__weekday",
959
+ "aria-label": Zt(t)
960
+ }, je(e), 9, He))), 128))]), h("div", {
961
+ class: "q-date-time-picker__days",
962
+ style: De(Jt.value),
963
+ onMouseleave: jn,
964
+ onFocusout: Mn,
965
+ onKeydown: sn,
966
+ onTouchstartPassive: Nn,
967
+ onTouchmovePassive: Nn
968
+ }, [(S(!0), m(u, null, ke(Yt.value, (e, t) => (S(), m("div", {
969
+ key: t,
970
+ role: "row",
971
+ class: Ee(["q-date-time-picker__week", { "q-date-time-picker__week--band": e.band }]),
972
+ style: De(e.band && {
973
+ "--q-date-band-start": e.band.start,
974
+ "--q-date-band-end": e.band.end
975
+ })
976
+ }, [(S(!0), m(u, null, ke(e.days, ({ day: e, index: t }) => (S(), f(w(o), {
977
+ key: t,
978
+ role: "gridcell",
979
+ "data-day-index": t,
980
+ class: Ee(["q-date-time-picker__day", {
981
+ "q-date-time-picker__day--other-month": !e.isCurrentMonth,
982
+ "q-date-time-picker__day--today": e.isToday,
983
+ "q-date-time-picker__day--selected": e.isSelected,
984
+ "q-date-time-picker__day--in-range": e.isInRange,
985
+ "q-date-time-picker__day--range-start": e.isRangeStart,
986
+ "q-date-time-picker__day--range-end": e.isRangeEnd
987
+ }]),
988
+ label: e.date.getDate().toString(),
989
+ "aria-label": nn(e.date),
990
+ "aria-selected": Qt(e.date),
991
+ "aria-current": e.isToday ? "date" : void 0,
992
+ tabindex: t === an.value ? 0 : -1,
993
+ variant: Br(e),
994
+ disabled: e.isDisabled,
995
+ onMouseenter: () => An(e.date),
996
+ onFocus: () => An(e.date),
997
+ onClick: () => Pn(e.date)
998
+ }, null, 8, [
999
+ "data-day-index",
1000
+ "class",
1001
+ "label",
1002
+ "aria-label",
1003
+ "aria-selected",
1004
+ "aria-current",
1005
+ "tabindex",
1006
+ "variant",
1007
+ "disabled",
1008
+ "onMouseenter",
1009
+ "onFocus",
1010
+ "onClick"
1011
+ ]))), 128))], 6))), 128))], 36)], 8, Be)], 512)) : F.value === "time" ? (S(), m("div", Ue, [(S(!0), m(u, null, ke(_.range ? 2 : 1, (e) => (S(), m("div", {
1012
+ key: e,
1013
+ class: "q-date-time-picker__time-group",
1014
+ role: _.range ? "group" : void 0,
1015
+ "aria-label": _.range ? e === 1 ? _.texts.startTime : _.texts.endTime : void 0
1016
+ }, [A.value ? (S(), m("div", Ge, [g(w(oe), {
1017
+ "model-value": Yn(e - 1),
1018
+ "show-state-labels": "",
1019
+ size: "small",
1020
+ "aria-label": _.texts.pm,
1021
+ "false-label": _.texts.am,
1022
+ "true-label": _.texts.pm,
1023
+ "onUpdate:modelValue": (t) => hr(t ?? !1, e - 1)
1024
+ }, null, 8, [
1025
+ "model-value",
1026
+ "aria-label",
1027
+ "false-label",
1028
+ "true-label",
1029
+ "onUpdate:modelValue"
1030
+ ])])) : p("", !0), h("div", Ke, [
1031
+ h("div", qe, [
1032
+ g(w(o), {
1088
1033
  variant: "ghost",
1089
- disabled: !Zt.value,
1090
- title: g.texts.previousYears,
1091
- onClick: Jt
1034
+ title: _.texts.increaseHour,
1035
+ "aria-label": _.texts.increaseHour,
1036
+ onClick: (t) => Zn(e - 1)
1092
1037
  }, {
1093
- default: T(() => [h(C(t), b(_(g.icons.back)), null, 16)]),
1038
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.up), null, 16)]),
1094
1039
  _: 1
1095
- }, 8, ["disabled", "title"]),
1096
- m("div", Ye, ke(Xt.value.startYear) + " - " + ke(Xt.value.endYear), 1),
1097
- h(C(a), {
1040
+ }, 8, [
1041
+ "title",
1042
+ "aria-label",
1043
+ "onClick"
1044
+ ]),
1045
+ g(w(s), {
1046
+ class: "q-date-time-picker__time-number",
1047
+ size: "small",
1048
+ inputmode: "numeric",
1049
+ icons: _.icons,
1050
+ texts: _.texts,
1051
+ "max-length": 2,
1052
+ "aria-label": _.texts.hours,
1053
+ "model-value": dr("hours", e - 1),
1054
+ onKeydown: (t) => mr(t, "hours", e - 1),
1055
+ onFocusout: (t) => pr(t, "hours", e - 1),
1056
+ "onUpdate:modelValue": (t) => fr(t, "hours", e - 1)
1057
+ }, null, 8, [
1058
+ "icons",
1059
+ "texts",
1060
+ "aria-label",
1061
+ "model-value",
1062
+ "onKeydown",
1063
+ "onFocusout",
1064
+ "onUpdate:modelValue"
1065
+ ]),
1066
+ g(w(o), {
1098
1067
  variant: "ghost",
1099
- disabled: !Qt.value,
1100
- title: g.texts.nextYears,
1101
- onClick: Yt
1068
+ title: _.texts.decreaseHour,
1069
+ "aria-label": _.texts.decreaseHour,
1070
+ onClick: (t) => Qn(e - 1)
1102
1071
  }, {
1103
- default: T(() => [h(C(t), b(_(g.icons.forward)), null, 16)]),
1072
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.down), null, 16)]),
1104
1073
  _: 1
1105
- }, 8, ["disabled", "title"])
1106
- ]), m("div", Xe, [(x(!0), p(l, null, De(rn.value, (e, t) => (x(), d(C(a), {
1107
- key: t,
1108
- ref_for: !0,
1109
- ref: (t) => yt(t, e),
1110
- "data-testid": "q-date-time-picker-year-option",
1111
- "data-year": e,
1112
- "aria-disabled": R.value === e || void 0,
1113
- label: e.toString(),
1114
- title: e,
1115
- variant: "ghost",
1116
- onClick: () => vn(e)
1117
- }, null, 8, [
1118
- "data-year",
1119
- "aria-disabled",
1120
- "label",
1121
- "title",
1122
- "onClick"
1123
- ]))), 128))])])], 2112)) : f("v-if", !0),
1124
- m("div", Ze, [
1125
- M.value ? f("v-if", !0) : (x(), d(C(a), {
1126
- key: 0,
1074
+ }, 8, [
1075
+ "title",
1076
+ "aria-label",
1077
+ "onClick"
1078
+ ])
1079
+ ]),
1080
+ t[11] ||= h("div", { class: "q-date-time-picker__time-separator" }, ":", -1),
1081
+ h("div", Je, [
1082
+ g(w(o), {
1127
1083
  variant: "ghost",
1128
- disabled: rt.value,
1129
- title: g.texts.today,
1130
- onClick: xn
1084
+ title: _.texts.increaseMinute,
1085
+ "aria-label": _.texts.increaseMinute,
1086
+ onClick: (t) => $n(e - 1)
1131
1087
  }, {
1132
- default: T(() => [h(C(t), b(_(g.icons.today)), null, 16)]),
1088
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.up), null, 16)]),
1133
1089
  _: 1
1134
- }, 8, ["disabled", "title"])),
1135
- A.value && I.value === "date" ? (x(), d(C(a), {
1136
- key: 1,
1137
- ref: "toggleTime",
1138
- "data-testid": "q-date-time-picker-toggle-time",
1090
+ }, 8, [
1091
+ "title",
1092
+ "aria-label",
1093
+ "onClick"
1094
+ ]),
1095
+ g(w(s), {
1096
+ class: "q-date-time-picker__time-number",
1097
+ size: "small",
1098
+ inputmode: "numeric",
1099
+ icons: _.icons,
1100
+ texts: _.texts,
1101
+ "max-length": 2,
1102
+ "aria-label": _.texts.minutes,
1103
+ "model-value": dr("minutes", e - 1),
1104
+ onKeydown: (t) => mr(t, "minutes", e - 1),
1105
+ onFocusout: (t) => pr(t, "minutes", e - 1),
1106
+ "onUpdate:modelValue": (t) => fr(t, "minutes", e - 1)
1107
+ }, null, 8, [
1108
+ "icons",
1109
+ "texts",
1110
+ "aria-label",
1111
+ "model-value",
1112
+ "onKeydown",
1113
+ "onFocusout",
1114
+ "onUpdate:modelValue"
1115
+ ]),
1116
+ g(w(o), {
1139
1117
  variant: "ghost",
1140
- title: g.texts.toggleMode,
1141
- onClick: Sr
1118
+ title: _.texts.decreaseMinute,
1119
+ "aria-label": _.texts.decreaseMinute,
1120
+ onClick: (t) => er(e - 1)
1142
1121
  }, {
1143
- default: T(() => [h(C(t), b(_(g.icons.clock)), null, 16)]),
1122
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.down), null, 16)]),
1144
1123
  _: 1
1145
- }, 8, ["title"])) : I.value !== "date" && !M.value ? (x(), d(C(a), {
1146
- key: 2,
1147
- ref: "toggleDate",
1148
- "data-testid": "q-date-time-picker-toggle-date",
1124
+ }, 8, [
1125
+ "title",
1126
+ "aria-label",
1127
+ "onClick"
1128
+ ])
1129
+ ]),
1130
+ dt.value ? (S(), m(u, { key: 0 }, [t[10] ||= h("div", { class: "q-date-time-picker__time-separator" }, ":", -1), h("div", Ye, [
1131
+ g(w(o), {
1149
1132
  variant: "ghost",
1150
- title: g.texts.toggleMode,
1151
- onClick: Tr
1133
+ title: _.texts.increaseSecond,
1134
+ "aria-label": _.texts.increaseSecond,
1135
+ onClick: (t) => tr(e - 1)
1152
1136
  }, {
1153
- default: T(() => [h(C(t), b(_(g.icons.calendar)), null, 16)]),
1137
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.up), null, 16)]),
1154
1138
  _: 1
1155
- }, 8, ["title"])) : f("v-if", !0),
1156
- g.clearable ? (x(), d(C(a), {
1157
- key: 3,
1158
- "data-testid": "q-date-time-picker-clear",
1139
+ }, 8, [
1140
+ "title",
1141
+ "aria-label",
1142
+ "onClick"
1143
+ ]),
1144
+ g(w(s), {
1145
+ class: "q-date-time-picker__time-number",
1146
+ size: "small",
1147
+ inputmode: "numeric",
1148
+ icons: _.icons,
1149
+ texts: _.texts,
1150
+ "max-length": 2,
1151
+ "aria-label": _.texts.seconds,
1152
+ "model-value": dr("seconds", e - 1),
1153
+ onKeydown: (t) => mr(t, "seconds", e - 1),
1154
+ onFocusout: (t) => pr(t, "seconds", e - 1),
1155
+ "onUpdate:modelValue": (t) => fr(t, "seconds", e - 1)
1156
+ }, null, 8, [
1157
+ "icons",
1158
+ "texts",
1159
+ "aria-label",
1160
+ "model-value",
1161
+ "onKeydown",
1162
+ "onFocusout",
1163
+ "onUpdate:modelValue"
1164
+ ]),
1165
+ g(w(o), {
1159
1166
  variant: "ghost",
1160
- disabled: !un.value,
1161
- title: g.texts.clearValue,
1162
- onClick: dn
1167
+ title: _.texts.decreaseSecond,
1168
+ "aria-label": _.texts.decreaseSecond,
1169
+ onClick: (t) => nr(e - 1)
1163
1170
  }, {
1164
- default: T(() => [h(C(t), b(_(g.icons.delete)), null, 16)]),
1171
+ default: E(() => [g(w(n), y({ ref_for: !0 }, _.icons.down), null, 16)]),
1165
1172
  _: 1
1166
- }, 8, ["disabled", "title"])) : f("v-if", !0)
1173
+ }, 8, [
1174
+ "title",
1175
+ "aria-label",
1176
+ "onClick"
1177
+ ])
1178
+ ])], 64)) : p("", !0)
1179
+ ])], 8, We))), 128))])) : F.value === "month" ? (S(), m("div", Xe, [(S(!0), m(u, null, ke(ln.value, (e, t) => (S(), f(w(o), {
1180
+ key: t,
1181
+ ref_for: !0,
1182
+ ref: (e) => Dt(e, t),
1183
+ "data-testid": "q-date-time-picker-month-option",
1184
+ "data-month-index": t,
1185
+ "aria-current": I.value === t || void 0,
1186
+ label: e,
1187
+ title: un(t),
1188
+ variant: "ghost",
1189
+ onClick: () => In(t)
1190
+ }, null, 8, [
1191
+ "data-month-index",
1192
+ "aria-current",
1193
+ "label",
1194
+ "title",
1195
+ "onClick"
1196
+ ]))), 128))])) : F.value === "year" ? (S(), m("div", Ze, [h("div", Qe, [
1197
+ g(w(o), {
1198
+ variant: "ghost",
1199
+ disabled: jt("previousYears", gn.value),
1200
+ "aria-disabled": !gn.value || void 0,
1201
+ title: _.texts.previousYears,
1202
+ onFocus: t[4] ||= (e) => H.value = "previousYears",
1203
+ onBlur: t[5] ||= (e) => H.value = null,
1204
+ onClick: pn
1205
+ }, {
1206
+ default: E(() => [g(w(n), x(v(_.icons.back)), null, 16)]),
1207
+ _: 1
1208
+ }, 8, [
1209
+ "disabled",
1210
+ "aria-disabled",
1211
+ "title"
1212
+ ]),
1213
+ h("div", $e, je(hn.value.startYear) + " - " + je(hn.value.endYear), 1),
1214
+ g(w(o), {
1215
+ variant: "ghost",
1216
+ disabled: jt("nextYears", _n.value),
1217
+ "aria-disabled": !_n.value || void 0,
1218
+ title: _.texts.nextYears,
1219
+ onFocus: t[6] ||= (e) => H.value = "nextYears",
1220
+ onBlur: t[7] ||= (e) => H.value = null,
1221
+ onClick: mn
1222
+ }, {
1223
+ default: E(() => [g(w(n), x(v(_.icons.forward)), null, 16)]),
1224
+ _: 1
1225
+ }, 8, [
1226
+ "disabled",
1227
+ "aria-disabled",
1228
+ "title"
1167
1229
  ])
1168
- ], 34)]),
1230
+ ]), h("div", et, [(S(!0), m(u, null, ke(Sn.value, (e, t) => (S(), f(w(o), {
1231
+ key: t,
1232
+ ref_for: !0,
1233
+ ref: (t) => Ot(t, e),
1234
+ "data-testid": "q-date-time-picker-year-option",
1235
+ "data-year": e,
1236
+ "aria-current": L.value === e || void 0,
1237
+ label: e.toString(),
1238
+ title: e,
1239
+ variant: "ghost",
1240
+ onClick: () => Ln(e)
1241
+ }, null, 8, [
1242
+ "data-year",
1243
+ "aria-current",
1244
+ "label",
1245
+ "title",
1246
+ "onClick"
1247
+ ]))), 128))])])) : p("", !0), h("div", tt, [
1248
+ j.value ? p("", !0) : (S(), f(w(o), {
1249
+ key: 0,
1250
+ variant: "ghost",
1251
+ disabled: jt("today", !ft.value),
1252
+ "aria-disabled": ft.value || void 0,
1253
+ title: _.texts.today,
1254
+ onFocus: t[8] ||= (e) => H.value = "today",
1255
+ onBlur: t[9] ||= (e) => H.value = null,
1256
+ onClick: Bn
1257
+ }, {
1258
+ default: E(() => [g(w(n), x(v(_.icons.today)), null, 16)]),
1259
+ _: 1
1260
+ }, 8, [
1261
+ "disabled",
1262
+ "aria-disabled",
1263
+ "title"
1264
+ ])),
1265
+ ut.value && F.value === "date" ? (S(), f(w(o), {
1266
+ key: 1,
1267
+ ref: "toggleTime",
1268
+ "data-testid": "q-date-time-picker-toggle-time",
1269
+ variant: "ghost",
1270
+ title: _.texts.pickTime,
1271
+ onClick: Gr
1272
+ }, {
1273
+ default: E(() => [g(w(n), x(v(_.icons.clock)), null, 16)]),
1274
+ _: 1
1275
+ }, 8, ["title"])) : F.value !== "date" && !j.value ? (S(), f(w(o), {
1276
+ key: 2,
1277
+ ref: "toggleDate",
1278
+ "data-testid": "q-date-time-picker-toggle-date",
1279
+ variant: "ghost",
1280
+ title: _.texts.pickDate,
1281
+ onClick: Jr
1282
+ }, {
1283
+ default: E(() => [g(w(n), x(v(_.icons.calendar)), null, 16)]),
1284
+ _: 1
1285
+ }, 8, ["title"])) : p("", !0),
1286
+ _.clearable ? (S(), f(w(o), {
1287
+ key: 3,
1288
+ "data-testid": "q-date-time-picker-clear",
1289
+ variant: "ghost",
1290
+ disabled: !On.value,
1291
+ title: _.texts.clearValue,
1292
+ onClick: kn
1293
+ }, {
1294
+ default: E(() => [g(w(n), x(v(_.icons.delete)), null, 16)]),
1295
+ _: 1
1296
+ }, 8, ["disabled", "title"])) : p("", !0)
1297
+ ])], 42, Le)]),
1169
1298
  _: 1
1170
1299
  }, 8, [
1171
1300
  "model-value",
1172
1301
  "anchor",
1173
1302
  "inline"
1174
- ])) : f("v-if", !0)], 64));
1303
+ ])) : p("", !0)], 64));
1175
1304
  }
1176
1305
  });
1177
1306
  //#endregion
1178
- export { Qe as default };
1307
+ export { rt as default };