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