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