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