@quidgest/ui 0.28.0 → 0.30.0

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