@quidgest/ui 0.31.2 → 0.32.0

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