@astryx-vue/core 0.41.0 → 0.42.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 (252) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-DxrO48Kg.js → AlertDialog-Cld8wc2u.js} +3 -3
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/AvatarGroup/index.js +1 -1
  5. package/dist/{AvatarGroup-BZ5iG7M-.js → AvatarGroup-CU1zqtTi.js} +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-0YtnbBU6.js → Banner-5KOS4fe8.js} +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/Breadcrumbs/index.d.ts +2 -2
  11. package/dist/Breadcrumbs/index.js +2 -2
  12. package/dist/{Breadcrumbs-9KMHiyXr.js → Breadcrumbs-Bcrk04nL.js} +1 -1
  13. package/dist/Button/index.js +1 -1
  14. package/dist/{Button-ClyetTf6.js → Button-tVILPfaj.js} +2 -2
  15. package/dist/ButtonGroup/index.d.ts +1 -1
  16. package/dist/ButtonGroup/index.js +1 -1
  17. package/dist/{ButtonGroup-tk0H2O8q.js → ButtonGroup-D7p8oEry.js} +2 -2
  18. package/dist/Calendar/index.d.ts +1 -1
  19. package/dist/Calendar/index.js +2 -2
  20. package/dist/{Calendar-CfhOlgQJ.js → Calendar-Brz2iDeZ.js} +1 -1
  21. package/dist/{Calendar-DbAQvHgy.js → Calendar-C1E1ZiaS.js} +1 -1
  22. package/dist/Carousel/index.d.ts +1 -1
  23. package/dist/Carousel/index.js +1 -1
  24. package/dist/{Carousel-utfvjW5p.js → Carousel-DlHeba5J.js} +1 -1
  25. package/dist/Chat/index.d.ts +1 -1
  26. package/dist/Chat/index.js +1 -1
  27. package/dist/{Chat-DL583Xle.js → Chat-B0jgkmWf.js} +1 -1
  28. package/dist/CheckboxInput/index.d.ts +1 -1
  29. package/dist/CheckboxInput/index.js +1 -1
  30. package/dist/{CheckboxInput-BQH87pfn.js → CheckboxInput-BhKf3JOh.js} +4 -4
  31. package/dist/CheckboxList/index.d.ts +1 -1
  32. package/dist/CheckboxList/index.js +1 -1
  33. package/dist/{CheckboxListItem-CZ1B81gI.js → CheckboxListItem-DFCDLwLP.js} +4 -4
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/ClickableCard/index.js +1 -1
  36. package/dist/{ClickableCard-CdByvXDr.js → ClickableCard-DyBa2X4I.js} +1 -1
  37. package/dist/Code/index.js +2 -2
  38. package/dist/{Code-KvqZ1ZES.js → Code-BtJV5J-h.js} +1 -1
  39. package/dist/{CodeBlock-e2rlXQWO.js → CodeBlock-D1i3lEK3.js} +1 -1
  40. package/dist/Collapsible/index.d.ts +1 -1
  41. package/dist/Collapsible/index.js +1 -1
  42. package/dist/{Collapsible-CTc7irlw.js → Collapsible-CXbcOn80.js} +1 -1
  43. package/dist/CommandPalette/index.d.ts +1 -1
  44. package/dist/CommandPalette/index.js +1 -1
  45. package/dist/{CommandPalette-PBYSDIpx.js → CommandPalette-DyjB9xE_.js} +1 -1
  46. package/dist/ComplexSelector/index.js +1 -1
  47. package/dist/{ComplexSelector-CPg5jcdL.js → ComplexSelector-MRuOupEd.js} +2 -2
  48. package/dist/ContextMenu/index.d.ts +2 -2
  49. package/dist/ContextMenu/index.js +2 -2
  50. package/dist/{ContextMenu-DcZEviKv.js → ContextMenu-JZUal7pu.js} +1 -1
  51. package/dist/DateInput/index.d.ts +1 -1
  52. package/dist/DateInput/index.js +1 -1
  53. package/dist/{DateInput-C4qtEFDW.js → DateInput-B76O2ceL.js} +579 -78
  54. package/dist/DateRangeInput/index.d.ts +1 -1
  55. package/dist/DateRangeInput/index.js +1 -1
  56. package/dist/{DateRangeInput-CGqCQAlT.js → DateRangeInput-B8ZWK6sm.js} +4 -4
  57. package/dist/DateTimeInput/index.d.ts +1 -1
  58. package/dist/DateTimeInput/index.js +1 -1
  59. package/dist/{DateTimeInput-CAirxttc.js → DateTimeInput-DOaPB2D4.js} +4 -4
  60. package/dist/Dialog/index.js +1 -1
  61. package/dist/{DialogHeader-BS8mjD8z.js → DialogHeader-B4cnOihd.js} +1 -1
  62. package/dist/Drawer/index.d.ts +1 -1
  63. package/dist/Drawer/index.js +1 -1
  64. package/dist/{Drawer-Cq1Y_1iJ.js → Drawer-dk9etcN3.js} +1 -1
  65. package/dist/DropdownMenu/index.d.ts +2 -2
  66. package/dist/DropdownMenu/index.js +2 -2
  67. package/dist/{DropdownMenu-CSn1OQ2D.js → DropdownMenu-Dqkyvelz.js} +3 -3
  68. package/dist/{DropdownMenuRadioItem.vue-BFCbIBfb.d.ts → DropdownMenuRadioItem.vue-BrcSzOfA.d.ts} +1 -1
  69. package/dist/Field/index.js +3 -3
  70. package/dist/{Field-BzGwGqwa.js → Field-B_GThk2X.js} +1 -1
  71. package/dist/{FieldInfoTip-DqsdZxo0.js → FieldInfoTip-jhm02XZs.js} +1 -1
  72. package/dist/{FieldLabel-DdMLaCP_.js → FieldLabel-C0XDwWCd.js} +1 -1
  73. package/dist/FileInput/index.js +1 -1
  74. package/dist/{FileInput-B_BXknEU.js → FileInput-CbXrw3RO.js} +3 -3
  75. package/dist/Heading/index.d.ts +1 -1
  76. package/dist/HoverCard/index.d.ts +1 -1
  77. package/dist/IconButton/index.js +1 -1
  78. package/dist/{IconButton-kj1M_L7a.js → IconButton-CU1kvO7X.js} +1 -1
  79. package/dist/InfoTip/index.d.ts +1 -1
  80. package/dist/InfoTip/index.js +1 -1
  81. package/dist/{InfoTip-DJIb8b29.js → InfoTip-BwxUx7Hk.js} +1 -1
  82. package/dist/{InputClearButton-wd0VoZja.js → InputClearButton-CN8J7JOl.js} +1 -1
  83. package/dist/InputGroup/index.js +1 -1
  84. package/dist/{InputGroup-DGiF9Xaz.js → InputGroup-Ca-SOzyp.js} +1 -1
  85. package/dist/InternationalizationProvider/index.d.ts +1 -1
  86. package/dist/InternationalizationProvider/index.js +2 -1
  87. package/dist/{InternationalizationProvider-BkJ8Z7ox.js → InternationalizationProvider-Ddr5L4mQ.js} +5 -61
  88. package/dist/Item-B6nYjAw3.js +1476 -0
  89. package/dist/Lightbox/index.js +1 -1
  90. package/dist/{Lightbox-Fu6RCX0k.js → Lightbox-DCI-S6Ln.js} +1 -1
  91. package/dist/Link/index.d.ts +1 -1
  92. package/dist/Link/index.js +1 -1
  93. package/dist/{Link-zPVCNAM6.js → Link-B5CJso43.js} +1 -1
  94. package/dist/List/index.d.ts +4 -3
  95. package/dist/List/index.js +5 -4
  96. package/dist/List-DuWNjAKk.js +69 -0
  97. package/dist/{ListItem-CrFLvZ6o.js → ListItem-BxQt4Emy.js} +9 -4
  98. package/dist/Markdown/index.d.ts +1 -1
  99. package/dist/Markdown/index.js +1 -1
  100. package/dist/{Markdown-BiXz75mz.js → Markdown-BFV7g8oa.js} +118 -59
  101. package/dist/MetadataList/index.d.ts +1 -1
  102. package/dist/MoreMenu/index.d.ts +1 -1
  103. package/dist/MoreMenu/index.js +1 -1
  104. package/dist/{MoreMenu-RbFK2t0J.js → MoreMenu-DOVbdDmP.js} +2 -2
  105. package/dist/MultiSelector/index.d.ts +1 -1
  106. package/dist/MultiSelector/index.js +1 -1
  107. package/dist/{MultiSelector-CaL3UDIc.js → MultiSelector-BLESAk-K.js} +3 -3
  108. package/dist/NavItem/index.js +1 -1
  109. package/dist/{NavItem-D_1ecPv_.js → NavItem-BR639emm.js} +1 -1
  110. package/dist/NavMenu/index.js +1 -1
  111. package/dist/{NavMenuItem-DqBCA1VP.js → NavMenuItem-C9e62bSc.js} +1 -1
  112. package/dist/NumberInput/index.d.ts +1 -1
  113. package/dist/NumberInput/index.js +1 -1
  114. package/dist/{NumberInput-0lTA5weY.js → NumberInput-C7cRBlQm.js} +3 -3
  115. package/dist/Outline/index.js +1 -1
  116. package/dist/{Outline-BoxN40Bd.js → Outline-BcZMmO9Y.js} +1 -1
  117. package/dist/OverflowList/index.d.ts +1 -1
  118. package/dist/OverflowList/index.js +1 -1
  119. package/dist/{OverflowList-7oui4oT5.js → OverflowList-cjl0AaEP.js} +1 -1
  120. package/dist/Pagination/index.js +1 -1
  121. package/dist/{Pagination-BrkX0lga.js → Pagination-BnA277o8.js} +2 -2
  122. package/dist/Popover/index.d.ts +1 -1
  123. package/dist/Popover/index.js +1 -1
  124. package/dist/{Popover-BZ4VWDtv.js → Popover-DfO-mkcm.js} +1 -1
  125. package/dist/PowerSearch/index.d.ts +1 -1
  126. package/dist/PowerSearch/index.js +1 -1
  127. package/dist/{PowerSearch-BEDWm7aj.js → PowerSearch-CvBTNf6L.js} +20 -20
  128. package/dist/Radio/index.d.ts +1 -1
  129. package/dist/Radio/index.js +1 -1
  130. package/dist/{RadioGroup-CrRm7H51.js → RadioGroup-CVOlUPbf.js} +4 -4
  131. package/dist/RadioList/index.d.ts +1 -1
  132. package/dist/RadioList/index.js +1 -1
  133. package/dist/{RadioListItem-iPD3y2Eo.js → RadioListItem-5y613Xrt.js} +1 -1
  134. package/dist/Resizable/index.d.ts +1 -1
  135. package/dist/ScrollableArea/index.d.ts +1 -1
  136. package/dist/SegmentedControl/index.js +1 -1
  137. package/dist/{SegmentedControl-D8A_jaFC.js → SegmentedControl-B6BQlTfN.js} +3 -3
  138. package/dist/SelectableCard/index.d.ts +1 -1
  139. package/dist/SelectableCard/index.js +1 -1
  140. package/dist/{SelectableCard-DIruuGBa.js → SelectableCard-C2hl7HBW.js} +1 -1
  141. package/dist/Selector/index.d.ts +1 -1
  142. package/dist/Selector/index.js +1 -1
  143. package/dist/{Selector-CFdM10Uc.js → Selector-Dw_0e0zY.js} +1 -1
  144. package/dist/SideNav/index.d.ts +1 -1
  145. package/dist/SideNav/index.js +1 -1
  146. package/dist/{SideNav-Cl1H-baW.js → SideNav-dsff7R2R.js} +2 -2
  147. package/dist/Slider/index.js +1 -1
  148. package/dist/{Slider-Bd3wpFo7.js → Slider-CN5NOM10.js} +3 -3
  149. package/dist/Stack/index.d.ts +1 -1
  150. package/dist/Stepper/index.d.ts +1 -1
  151. package/dist/Stepper/index.js +1 -1
  152. package/dist/{Stepper-CZU_Zvi5.js → Stepper-BYZasZK7.js} +1 -1
  153. package/dist/Swipe/index.d.ts +3 -0
  154. package/dist/Swipe/index.js +2 -0
  155. package/dist/Switch/index.d.ts +1 -1
  156. package/dist/Switch/index.js +1 -1
  157. package/dist/{Switch-BpkKyz98.js → Switch-DHr3_O1r.js} +4 -4
  158. package/dist/TabList/index.d.ts +1 -1
  159. package/dist/TabList/index.js +1 -1
  160. package/dist/{TabList-DZ2i0QIt.js → TabList-O34fxJlZ.js} +1 -1
  161. package/dist/Table/index.d.ts +1 -1
  162. package/dist/Table/index.js +1 -1
  163. package/dist/{Table-kq_-RxXg.js → Table-sTJtTqmi.js} +11 -11
  164. package/dist/Text/index.d.ts +1 -1
  165. package/dist/TextArea/index.d.ts +1 -1
  166. package/dist/TextArea/index.js +1 -1
  167. package/dist/{TextArea-D5aDDlgr.js → TextArea-TO_A1D_W.js} +4 -4
  168. package/dist/TextInput/index.d.ts +1 -1
  169. package/dist/TextInput/index.js +1 -1
  170. package/dist/{TextInput-CVRWRtoL.js → TextInput-jIBboBDS.js} +4 -4
  171. package/dist/Thumbnail/index.js +1 -1
  172. package/dist/{Thumbnail-zFN5p6dk.js → Thumbnail-CRltyNsq.js} +2 -2
  173. package/dist/{TimeField-B49DgkyR.js → TimeField-BG409_10.js} +1 -1
  174. package/dist/TimeInput/index.d.ts +1 -1
  175. package/dist/TimeInput/index.js +1 -1
  176. package/dist/{TimeInput-BoFij92p.js → TimeInput-CQzBs55U.js} +2 -2
  177. package/dist/Timestamp/index.d.ts +1 -1
  178. package/dist/Timestamp/index.js +1 -1
  179. package/dist/{Timestamp-DunFvQYG.js → Timestamp-s4Nksy5i.js} +1 -1
  180. package/dist/Toast/index.js +1 -1
  181. package/dist/{Toast-BnIq3gzw.js → Toast-DcKB9QHW.js} +1 -1
  182. package/dist/ToggleButton/index.d.ts +1 -1
  183. package/dist/ToggleButton/index.js +1 -1
  184. package/dist/{ToggleButton-CLgj6yLQ.js → ToggleButton-DZgHhJd7.js} +3 -3
  185. package/dist/Token/index.d.ts +1 -1
  186. package/dist/Token/index.js +1 -1
  187. package/dist/{Token-BPjnWrHl.js → Token-B6mV8hyk.js} +1 -1
  188. package/dist/Tokenizer/index.d.ts +1 -1
  189. package/dist/Tokenizer/index.js +1 -1
  190. package/dist/{Tokenizer-CMv-Bi0y.js → Tokenizer-BvCiuyhk.js} +5 -5
  191. package/dist/Toolbar/index.d.ts +1 -1
  192. package/dist/Tooltip/index.d.ts +1 -1
  193. package/dist/TopNav/index.d.ts +1 -1
  194. package/dist/TopNav/index.js +1 -1
  195. package/dist/{TopNav-DUkn4CMv.js → TopNav-xKD14HTR.js} +2 -2
  196. package/dist/TreeList/index.js +1 -1
  197. package/dist/{TreeList-o5MrA7rz.js → TreeList-BOr0GpJC.js} +1 -1
  198. package/dist/Typeahead/index.js +1 -1
  199. package/dist/{Typeahead-DXlsxjkQ.js → Typeahead-C18-lx2P.js} +3 -3
  200. package/dist/{accessibleName-9UI6HUaA.js → accessibleName-Chl0zwq_.js} +1 -1
  201. package/dist/{boxHold-DfsWCZLh.js → boxHold-BCbXt9_d.js} +1 -1
  202. package/dist/composables/index.js +4 -3
  203. package/dist/{composables-Dzpv7G2Z.js → composables-CKAzgdPD.js} +3 -473
  204. package/dist/context-BNCjTOCB.js +60 -0
  205. package/dist/createSwipe-DXObfkyb.js +77 -0
  206. package/dist/{index-CqvIpZ-t.d.ts → index-3vt1Ew4A.d.ts} +1 -1
  207. package/dist/{index-DQ5vPsr8.d.ts → index-B9LwZ19y.d.ts} +5 -5
  208. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  209. package/dist/{index-BIcmTipH.d.ts → index-BItxjc3w.d.ts} +1 -1
  210. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  211. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  212. package/dist/{index-DLPSlnXP.d.ts → index-C2dLjYoW.d.ts} +1 -1
  213. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  214. package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
  215. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  216. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  217. package/dist/index-DPsvfn2V.d.ts +25 -0
  218. package/dist/{index-DCH2D3wa.d.ts → index-Dn6iAyK4.d.ts} +4 -4
  219. package/dist/{index-m-fFGq2e.d.ts → index-Ds4dOCSy.d.ts} +1 -1
  220. package/dist/{index-B7-c8UTz.d.ts → index-J83fLEyo.d.ts} +3 -3
  221. package/dist/{index-COqeB2ug.d.ts → index-Nln6FiRr.d.ts} +1 -1
  222. package/dist/{index-4_uuTfaY.d.ts → index-VWHtgjGh.d.ts} +1 -1
  223. package/dist/{index-DrbxKOhR.d.ts → index-lNjYxF1K.d.ts} +41 -40
  224. package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
  225. package/dist/{index-a6o69uPN.d.ts → index-tdOyqA_U.d.ts} +2 -2
  226. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  227. package/dist/{index-BylgDU_m.d.ts → index-v27zktLu.d.ts} +49 -5
  228. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  229. package/dist/index.d.ts +29 -27
  230. package/dist/index.js +83 -80
  231. package/dist/itemSlots-Dl7Ipj5I.js +539 -0
  232. package/dist/{loadCatalog-S2AgQN51.d.ts → loadCatalog-DfwwR4ox.d.ts} +2 -0
  233. package/dist/{loadCatalog-baFZaTpj.js → loadCatalog-Dvlsgn71.js} +6 -0
  234. package/dist/locale/index.d.ts +2 -2
  235. package/dist/locale/index.js +2 -2
  236. package/dist/{locale-BIyfn-cf.js → locale-BgXR3tSm.js} +1 -1
  237. package/dist/{pressSlot-5Bp-B175.js → pressSlot-31XyOhUS.js} +20 -2
  238. package/dist/swipeHost-B2OlVVZt.d.ts +73 -0
  239. package/dist/{types-D9mwL8sz.d.ts → types-wKC-Ws-M.d.ts} +29 -10
  240. package/dist/{useActionGroupTracking-Cujjrmt3.js → useActionGroupTracking-CioHSqgG.js} +2 -2
  241. package/dist/{useCalendarGrid-0WvxbeFC.js → useCalendarGrid-BpBA8UZa.js} +1 -1
  242. package/dist/{useInputStatusIcon-2sRn-Nbf.js → useInputStatusIcon-D0xNp9jO.js} +1 -1
  243. package/dist/{usePressFeedback-Ber7MRiI.js → usePressFeedback-D4oohqP5.js} +1 -1
  244. package/dist/{useTouchHitArea-B6g7fhfF.js → useTouchHitArea-rwyNMxFb.js} +1 -1
  245. package/package.json +5 -1
  246. package/styles/date-input.css +36 -0
  247. package/styles/list-reorder.css +6 -3
  248. package/styles/list.css +125 -69
  249. package/styles/markdown.css +17 -0
  250. package/dist/Item-DC1v56yE.js +0 -723
  251. package/dist/itemSlots-BxUu7hje.js +0 -54
  252. package/dist/{index-BqhgeAT4.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -1,39 +1,40 @@
1
- import { n as _sfc_main$4 } from "./BottomSheet-B8frtWqm.js";
2
- import { t as _sfc_main$5 } from "./Icon-BUSj1-Th.js";
1
+ import { n as _sfc_main$5 } from "./BottomSheet-B8frtWqm.js";
2
+ import { t as _sfc_main$6 } from "./Icon-BUSj1-Th.js";
3
3
  import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
4
4
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
5
5
  import { a as noteOutsideDismissal, s as currentGesture } from "./layerDepth-D576XVps.js";
6
6
  import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
7
- import { t as _sfc_main$6 } from "./VisuallyHidden-cpmsV-0M.js";
8
- import { t as _sfc_main$7 } from "./ButtonTooltip-ZpQP-aQg.js";
7
+ import { t as _sfc_main$7 } from "./VisuallyHidden-cpmsV-0M.js";
8
+ import { t as _sfc_main$8 } from "./ButtonTooltip-ZpQP-aQg.js";
9
9
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
10
10
  import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
11
11
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
12
12
  import { n as resolveDateSurface, t as resolveDatePresentation } from "./useDatePresentation-C07PnOCw.js";
13
- import { t as _sfc_main$8 } from "./FieldIcon-C6A69-um.js";
13
+ import { t as _sfc_main$9 } from "./FieldIcon-C6A69-um.js";
14
14
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
15
15
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
16
16
  import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
17
17
  import { n as toAsciiDigits, t as INVISIBLE_CHARS } from "./unicodeDigits-_BYIJcAu.js";
18
+ import { n as reducedMotionFade, t as playReducedMotionDip } from "./reducedMotion-BcstlXZU.js";
18
19
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
19
- import { t as _sfc_main$9 } from "./Spinner-lLOYfbOY.js";
20
- import { C as plainDateIsAfter, F as plainDateToday, L as dateTimeFormatFor, M as plainDateToDate, d as getDaysInMonth, l as SHARED_DATE_FORMAT_OPTIONS, p as plainDateAddDays, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
20
+ import { t as _sfc_main$10 } from "./Spinner-lLOYfbOY.js";
21
+ import { C as plainDateIsAfter, F as plainDateToday, L as dateTimeFormatFor, M as plainDateToDate, N as plainDateToISO, T as plainDateIsEqual, _ as plainDateDiffDays, d as getDaysInMonth, l as SHARED_DATE_FORMAT_OPTIONS, p as plainDateAddDays, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
21
22
  import { _ as isCalendarSystemAvailable, a as calendarAddMonths, b as isInCalendarMonth, c as calendarDayOfMonth, d as calendarMonthLabelDay, f as calendarMonthOf, g as calendarYearMonthOf, h as calendarShiftYears, i as warnCalendarOnce, l as calendarMonthFromYearMonth, o as calendarDateFromFields, p as calendarMonthsInCalendarYear, r as useCalendarSystem, s as calendarDateFromMonthKey, u as calendarMonthKey, v as isGregorianAligned, y as isGregorianCalendar } from "./calendar-C7py_wtb.js";
22
23
  import { a as weekdayNames, i as standaloneShortWeekdayNames, n as formatDayNumber } from "./format-6G9QuGy1.js";
23
24
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
24
25
  import { a as formatCalendarMonthName, i as formatCalendarMonthLabel, o as formatCalendarYearLabel, t as calendarDisplayName } from "./calendarFormat-_CEZIMZG.js";
25
- import { a as formatWeekdayDate, f as weekStartIndex, l as sameCalendarDay, t as buildMonthWeeks, u as toCalendarDate, y as toCalendarDay } from "./useCalendarGrid-0WvxbeFC.js";
26
- import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$10 } from "./Calendar-CfhOlgQJ.js";
26
+ import { b as toCalendarDay, d as toCalendarDate, i as calendarISO, o as formatWeekdayDate, p as weekStartIndex, t as buildMonthWeeks, u as sameCalendarDay } from "./useCalendarGrid-BpBA8UZa.js";
27
+ import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$11 } from "./Calendar-Brz2iDeZ.js";
27
28
  import { a as useAriaRequired, o as useEntryErrorBehavior } from "./context-CrVCeUUK.js";
28
- import { t as _sfc_main$11 } from "./Field-BzGwGqwa.js";
29
+ import { t as _sfc_main$12 } from "./Field-B_GThk2X.js";
29
30
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
30
- import { t as _sfc_main$12 } from "./Popover-BZ4VWDtv.js";
31
+ import { t as _sfc_main$13 } from "./Popover-DfO-mkcm.js";
31
32
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
32
33
  import { t as formatInstant } from "./formatInstant-CjCwl6JS.js";
33
34
  import { n as calendarPickerPresentation, u as parseDateInput } from "./inputPresentation-DES0JwkL.js";
34
- import { t as _sfc_main$13 } from "./PickerWheel-CWT7l-9Q.js";
35
+ import { t as _sfc_main$14 } from "./PickerWheel-CWT7l-9Q.js";
35
36
  import { t as useEntryErrorReport } from "./useEntryErrorReport-Wee3N8IA.js";
36
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
37
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
37
38
  import "../styles/calendar.css";
38
39
  import "../styles/date-input.css";
39
40
  //#region src/DateInput/DateInputPassThrough.ts
@@ -1148,8 +1149,8 @@ function dateEntryMessage(result, bounds, format, locale, messages, calendar = "
1148
1149
  }
1149
1150
  //#endregion
1150
1151
  //#region src/DateInput/NativeDateField.vue
1151
- const _hoisted_1$3 = ["data-status"];
1152
- const _hoisted_2$3 = [
1152
+ const _hoisted_1$4 = ["data-status"];
1153
+ const _hoisted_2$4 = [
1153
1154
  "data-disabled",
1154
1155
  "data-busy",
1155
1156
  "data-size",
@@ -1181,7 +1182,7 @@ const _hoisted_8$2 = {
1181
1182
  class: "astryx-date-input-alert",
1182
1183
  role: "alert"
1183
1184
  };
1184
- const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1185
+ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
1185
1186
  inheritAttrs: false,
1186
1187
  __name: "NativeDateField",
1187
1188
  props: {
@@ -1414,7 +1415,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1414
1415
  });
1415
1416
  return (_ctx, _cache) => {
1416
1417
  return openBlock(), createElementBlock(Fragment, null, [
1417
- createVNode(_sfc_main$11, {
1418
+ createVNode(_sfc_main$12, {
1418
1419
  class: normalizeClass(__props.containerClass),
1419
1420
  style: normalizeStyle(__props.containerStyle),
1420
1421
  label: __props.label || unref(messages).dateInput.dialogLabel,
@@ -1457,7 +1458,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1457
1458
  "aria-label": unref(messages).dateInput.openCalendar,
1458
1459
  tabindex: "-1",
1459
1460
  onClick: openPicker
1460
- }, [createVNode(_sfc_main$5, {
1461
+ }, [createVNode(_sfc_main$6, {
1461
1462
  icon: "calendar",
1462
1463
  size: "sm"
1463
1464
  })], 8, _hoisted_3$3),
@@ -1497,19 +1498,19 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1497
1498
  "aria-label": __props.clearLabel || unref(messages).dateInput.clear(__props.label),
1498
1499
  tabindex: "-1",
1499
1500
  onClick: onClear
1500
- }, [createVNode(_sfc_main$5, {
1501
+ }, [createVNode(_sfc_main$6, {
1501
1502
  icon: "close",
1502
1503
  size: "sm"
1503
1504
  })], 8, _hoisted_7$2)) : createCommentVNode("v-if", true),
1504
- busy.value ? (openBlock(), createBlock(_sfc_main$9, {
1505
+ busy.value ? (openBlock(), createBlock(_sfc_main$10, {
1505
1506
  key: 1,
1506
1507
  size: "sm",
1507
1508
  "aria-hidden": "true"
1508
- })) : statusType.value && __props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$8, {
1509
+ })) : statusType.value && __props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$9, {
1509
1510
  key: 2,
1510
1511
  type: statusType.value
1511
1512
  }, null, 8, ["type"])) : createCommentVNode("v-if", true)
1512
- ], 8, _hoisted_2$3), createElementVNode("div", _hoisted_8$2, toDisplayString(alertMessage.value), 1)], 46, _hoisted_1$3)]),
1513
+ ], 8, _hoisted_2$4), createElementVNode("div", _hoisted_8$2, toDisplayString(alertMessage.value), 1)], 46, _hoisted_1$4)]),
1513
1514
  _: 1
1514
1515
  }, 8, [
1515
1516
  "class",
@@ -1526,14 +1527,14 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1526
1527
  "status",
1527
1528
  "status-variant"
1528
1529
  ]),
1529
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$6, {
1530
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$7, {
1530
1531
  key: 0,
1531
1532
  id: disabledMessageId
1532
1533
  }, {
1533
1534
  default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
1534
1535
  _: 1
1535
1536
  })) : createCommentVNode("v-if", true),
1536
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$7, {
1537
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$8, {
1537
1538
  key: 1,
1538
1539
  id: `${disabledMessageId}-tooltip`,
1539
1540
  anchor: containerRef.value,
@@ -1590,9 +1591,203 @@ function reachableMonths(calendar, min, max, today) {
1590
1591
  };
1591
1592
  }
1592
1593
  //#endregion
1594
+ //#region src/DateInput/monthRows.ts
1595
+ /** 一个历法月的平均天数,用来先估出排号,再逐月校正。 */
1596
+ const MEAN_MONTH_DAYS = 29.53;
1597
+ /** 月日和公历不同的历法:一个月一个月地数很慢,算过的月份记下来,找排号时从最近的已知排出发。 */
1598
+ function steppedRows(calendar, window) {
1599
+ const known = /* @__PURE__ */ new Map([[0, window.min]]);
1600
+ const monthAt = (row) => {
1601
+ const cached = known.get(row);
1602
+ if (cached != null) return cached;
1603
+ let nearest = 0;
1604
+ for (const key of known.keys()) if (Math.abs(key - row) < Math.abs(nearest - row)) nearest = key;
1605
+ const month = calendarAddMonths(calendar, known.get(nearest), row - nearest);
1606
+ known.set(row, month);
1607
+ return month;
1608
+ };
1609
+ const rowOf = (month) => {
1610
+ let row = Math.round(plainDateDiffDays(window.min.start, month.start) / MEAN_MONTH_DAYS);
1611
+ for (let guard = 0; guard < 24; guard += 1) {
1612
+ const candidate = monthAt(row);
1613
+ if (plainDateIsEqual(candidate.start, month.start)) return row;
1614
+ row += isMonthBefore(candidate, month) ? 1 : -1;
1615
+ }
1616
+ return row;
1617
+ };
1618
+ return {
1619
+ count: rowOf(window.max) + 1,
1620
+ monthAt,
1621
+ rowOf
1622
+ };
1623
+ }
1624
+ function createMonthRows(calendar, window) {
1625
+ if (!isGregorianAligned(calendar)) return steppedRows(calendar, window);
1626
+ const base = window.min.start.year * 12 + window.min.start.month;
1627
+ const rowOf = (month) => month.start.year * 12 + month.start.month - base;
1628
+ return {
1629
+ count: rowOf(window.max) + 1,
1630
+ monthAt: (row) => calendarAddMonths(calendar, window.min, row),
1631
+ rowOf
1632
+ };
1633
+ }
1634
+ /** 滚动偏移落在第几排。从右到左时 scrollLeft 从 0 往负数走。 */
1635
+ function rowAtScrollOffset(scrollOffset, paneSize, rowCount, rtl = false) {
1636
+ if (paneSize <= 0) return 0;
1637
+ const distance = rtl ? -scrollOffset : scrollOffset;
1638
+ return Math.min(Math.max(Math.round(distance / paneSize), 0), rowCount - 1);
1639
+ }
1640
+ /** 让第 `row` 排停在滚动区起点的偏移。 */
1641
+ function scrollOffsetForRow(row, paneSize, rtl = false) {
1642
+ const distance = row * paneSize;
1643
+ return rtl ? -distance : distance;
1644
+ }
1645
+ /** 中心排两边各挂 `overscan` 排,首尾都含。 */
1646
+ function paneRows(centerRow, rowCount, overscan) {
1647
+ const rows = [];
1648
+ for (let row = Math.max(0, centerRow - overscan); row <= Math.min(rowCount - 1, centerRow + overscan); row += 1) rows.push(row);
1649
+ return rows;
1650
+ }
1651
+ /** 所有监听都是被动的,共用一个选项对象。 */
1652
+ const PASSIVE = { passive: true };
1653
+ /**
1654
+ * 按键在捕获阶段结束引导:方向键先到格子自己的处理,那里会为键盘挪到的月份开一次新的引导,
1655
+ * 冒泡上来再结束就把它也结束了。
1656
+ */
1657
+ const PASSIVE_CAPTURE = {
1658
+ passive: true,
1659
+ capture: true
1660
+ };
1661
+ function createScrollSteer() {
1662
+ let row = null;
1663
+ return {
1664
+ start: (next) => {
1665
+ row = next;
1666
+ },
1667
+ current: () => row,
1668
+ end: () => {
1669
+ row = null;
1670
+ }
1671
+ };
1672
+ }
1673
+ /**
1674
+ * `element` 停止滚动(含惯性)后调用一次 `onSettle`。返回解除监听的函数;解除时引导也一并结束,
1675
+ * 再显示时滚动器重新摆放,不会被拉回旧的一排。
1676
+ */
1677
+ function attachScrollSettle(element, onSettle, steer) {
1678
+ let timer;
1679
+ let hasSettled = false;
1680
+ let isTouching = false;
1681
+ const settle = () => {
1682
+ if (hasSettled || isTouching) return;
1683
+ hasSettled = true;
1684
+ clearTimeout(timer);
1685
+ onSettle(element);
1686
+ };
1687
+ const arm = () => {
1688
+ clearTimeout(timer);
1689
+ timer = setTimeout(settle, 220);
1690
+ };
1691
+ const onScroll = () => {
1692
+ hasSettled = false;
1693
+ arm();
1694
+ };
1695
+ const onTouchStart = () => {
1696
+ isTouching = true;
1697
+ hasSettled = false;
1698
+ clearTimeout(timer);
1699
+ steer?.end();
1700
+ };
1701
+ const onTouchEnd = () => {
1702
+ isTouching = false;
1703
+ arm();
1704
+ };
1705
+ const endSteer = () => steer?.end();
1706
+ element.addEventListener("scroll", onScroll, PASSIVE);
1707
+ element.addEventListener("scrollend", settle, PASSIVE);
1708
+ element.addEventListener("touchstart", onTouchStart, PASSIVE);
1709
+ element.addEventListener("touchend", onTouchEnd, PASSIVE);
1710
+ element.addEventListener("touchcancel", onTouchEnd, PASSIVE);
1711
+ element.addEventListener("wheel", endSteer, PASSIVE);
1712
+ element.addEventListener("pointerdown", endSteer, PASSIVE);
1713
+ element.addEventListener("keydown", endSteer, PASSIVE_CAPTURE);
1714
+ return () => {
1715
+ clearTimeout(timer);
1716
+ steer?.end();
1717
+ element.removeEventListener("scroll", onScroll, PASSIVE);
1718
+ element.removeEventListener("scrollend", settle, PASSIVE);
1719
+ element.removeEventListener("touchstart", onTouchStart, PASSIVE);
1720
+ element.removeEventListener("touchend", onTouchEnd, PASSIVE);
1721
+ element.removeEventListener("touchcancel", onTouchEnd, PASSIVE);
1722
+ element.removeEventListener("wheel", endSteer, PASSIVE);
1723
+ element.removeEventListener("pointerdown", endSteer, PASSIVE);
1724
+ element.removeEventListener("keydown", endSteer, PASSIVE_CAPTURE);
1725
+ };
1726
+ }
1727
+ /** 小于这个位移是抖动,不定方向。 */
1728
+ const AXIS_LOCK_SLOP = 6;
1729
+ /**
1730
+ * 让横向滚动器自己留住横向手势,竖向的交给底部面板。
1731
+ *
1732
+ * 只靠 `touch-action: pan-x` 不够:面板的 `touchmove` 监听是脚本,它的 preventDefault()
1733
+ * 照样会取消滚动。这里锁定方向后对横向手势 stopPropagation,面板就收不到。
1734
+ * 浏览器自己不肯平移的斜向划动(`pan-x` 拒绝的那些),由 `onSwipe` 按页翻;
1735
+ * 浏览器已经平移过的手势不报,惯性和吸附不被二次干预。
1736
+ *
1737
+ * `onSwipe` 的参数是滚动偏移要加的符号,可以直接 `scrollBy({ left: direction * pageWidth })`,
1738
+ * 它是物理方向,两种书写方向下都对。
1739
+ */
1740
+ function attachInlineSwipe(element, onSwipe) {
1741
+ let claimed = null;
1742
+ let originX = 0;
1743
+ let originY = 0;
1744
+ let lastX = 0;
1745
+ let offsetAtStart = 0;
1746
+ let didPan = false;
1747
+ const onStart = (event) => {
1748
+ const touch = event.touches[0];
1749
+ originX = touch?.clientX ?? 0;
1750
+ originY = touch?.clientY ?? 0;
1751
+ lastX = originX;
1752
+ offsetAtStart = element.scrollLeft;
1753
+ didPan = false;
1754
+ claimed = null;
1755
+ };
1756
+ const onMove = (event) => {
1757
+ if (claimed === false) return;
1758
+ const touch = event.touches[0];
1759
+ if (touch == null) return;
1760
+ if (claimed == null) {
1761
+ const dx = Math.abs(touch.clientX - originX);
1762
+ const dy = Math.abs(touch.clientY - originY);
1763
+ if (Math.max(dx, dy) < AXIS_LOCK_SLOP) return;
1764
+ claimed = dy <= dx * 2;
1765
+ if (!claimed) return;
1766
+ }
1767
+ lastX = touch.clientX;
1768
+ didPan ||= Math.abs(element.scrollLeft - offsetAtStart) >= 1;
1769
+ event.stopPropagation();
1770
+ };
1771
+ const onEnd = () => {
1772
+ if (claimed === true && !didPan && Math.abs(lastX - originX) >= 32) onSwipe(lastX < originX ? 1 : -1);
1773
+ claimed = null;
1774
+ };
1775
+ element.addEventListener("touchstart", onStart, PASSIVE);
1776
+ element.addEventListener("touchmove", onMove, PASSIVE);
1777
+ element.addEventListener("touchend", onEnd, PASSIVE);
1778
+ element.addEventListener("touchcancel", onEnd, PASSIVE);
1779
+ return () => {
1780
+ element.removeEventListener("touchstart", onStart, PASSIVE);
1781
+ element.removeEventListener("touchmove", onMove, PASSIVE);
1782
+ element.removeEventListener("touchend", onEnd, PASSIVE);
1783
+ element.removeEventListener("touchcancel", onEnd, PASSIVE);
1784
+ };
1785
+ }
1786
+ //#endregion
1593
1787
  //#region src/DateInput/TouchMonthGrid.vue
1594
- const _hoisted_1$2 = ["aria-label"];
1595
- const _hoisted_2$2 = {
1788
+ const _hoisted_1$3 = ["aria-label"];
1789
+ const _hoisted_2$3 = {
1790
+ key: 0,
1596
1791
  class: "astryx-calendar-weekdays",
1597
1792
  role: "row"
1598
1793
  };
@@ -1606,7 +1801,7 @@ const _hoisted_4$2 = [
1606
1801
  "onClick"
1607
1802
  ];
1608
1803
  const _hoisted_5$2 = { class: "astryx-calendar-day" };
1609
- const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1804
+ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
1610
1805
  __name: "TouchMonthGrid",
1611
1806
  props: {
1612
1807
  calendar: {},
@@ -1614,10 +1809,15 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1614
1809
  selected: {},
1615
1810
  min: {},
1616
1811
  max: {},
1617
- isDateDisabled: { type: Function },
1812
+ isDateDisabled: {},
1618
1813
  dateConstraints: {},
1619
1814
  weekStartsOn: {},
1620
- today: {}
1815
+ today: {},
1816
+ weekdays: {
1817
+ type: Boolean,
1818
+ default: true
1819
+ },
1820
+ focusDate: { default: null }
1621
1821
  },
1622
1822
  emits: ["pick", "update:view"],
1623
1823
  setup(__props, { emit: __emit }) {
@@ -1627,6 +1827,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1627
1827
  const weekStart = computed(() => weekStartIndex(props.weekStartsOn));
1628
1828
  const selectedDate = computed(() => props.selected ? toCalendarDate(props.selected) : null);
1629
1829
  const todayDate = computed(() => toCalendarDate(props.today));
1830
+ const root = useTemplateRef("root");
1630
1831
  const focused = shallowRef(toCalendarDay(props.month.start));
1631
1832
  const headers = computed(() => {
1632
1833
  const shorts = standaloneShortWeekdayNames(locale.value);
@@ -1654,6 +1855,9 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1654
1855
  const day = Math.min(calendarDayOfMonth(props.calendar, focused.value), month.length);
1655
1856
  focused.value = toCalendarDay(month.start).add({ days: day - 1 });
1656
1857
  }, { immediate: true });
1858
+ watch(() => props.focusDate, (date) => {
1859
+ if (date != null && isInCalendarMonth(date, props.month)) focused.value = toCalendarDay(date);
1860
+ }, { immediate: true });
1657
1861
  function pick(date, outside) {
1658
1862
  if (outside || blocked(date)) return;
1659
1863
  focused.value = date;
@@ -1674,27 +1878,34 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1674
1878
  if (!move) return;
1675
1879
  event.preventDefault();
1676
1880
  focused.value = move.date;
1677
- if (!isInCalendarMonth(move.date, props.month)) emit("update:view", {
1678
- year: move.date.year,
1679
- month: move.date.month,
1680
- day: move.date.day
1681
- });
1881
+ if (!isInCalendarMonth(move.date, props.month)) {
1882
+ emit("update:view", {
1883
+ year: move.date.year,
1884
+ month: move.date.month,
1885
+ day: move.date.day
1886
+ });
1887
+ return;
1888
+ }
1889
+ const iso = calendarISO(move.date);
1890
+ nextTick(() => root.value?.querySelector(`[data-date="${iso}"]:not(.is-other-month)`)?.focus({ preventScroll: true }));
1682
1891
  }
1683
1892
  return (_ctx, _cache) => {
1684
1893
  return openBlock(), createElementBlock("div", {
1894
+ ref_key: "root",
1895
+ ref: root,
1685
1896
  class: "astryx-calendar-grid astryx-date-touch-grid",
1686
1897
  role: "grid",
1687
1898
  "aria-label": label.value,
1688
1899
  tabindex: "-1",
1689
1900
  onKeydown
1690
- }, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(headers.value, (day) => {
1901
+ }, [__props.weekdays ? (openBlock(), createElementBlock("div", _hoisted_2$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(headers.value, (day) => {
1691
1902
  return openBlock(), createElementBlock("div", {
1692
1903
  key: day.long,
1693
1904
  class: "astryx-calendar-weekday",
1694
1905
  role: "columnheader",
1695
1906
  "aria-label": day.long
1696
1907
  }, toDisplayString(day.short), 9, _hoisted_3$2);
1697
- }), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, rowIndex) => {
1908
+ }), 128))])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, rowIndex) => {
1698
1909
  return openBlock(), createElementBlock("div", {
1699
1910
  key: rowIndex,
1700
1911
  class: "astryx-calendar-row",
@@ -1720,7 +1931,299 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1720
1931
  onClick: ($event) => pick(day.date, day.outside)
1721
1932
  }, [createElementVNode("span", _hoisted_5$2, toDisplayString(unref(formatDayNumber)(day.day, unref(locale))), 1)], 10, _hoisted_4$2)]);
1722
1933
  }), 128))]);
1723
- }), 128))], 40, _hoisted_1$2);
1934
+ }), 128))], 40, _hoisted_1$3);
1935
+ };
1936
+ }
1937
+ });
1938
+ //#endregion
1939
+ //#region src/DateInput/TouchMonthScroller.vue
1940
+ const _hoisted_1$2 = { class: "astryx-date-touch-months" };
1941
+ const _hoisted_2$2 = {
1942
+ class: "astryx-calendar-weekdays astryx-date-touch-weekdays",
1943
+ "aria-hidden": "true"
1944
+ };
1945
+ /**
1946
+ * 横向连续、按月吸附的一排月份。每个月正好一屏宽,吸附在起点,所以面板高度不变,
1947
+ * 也没有停在两个月中间的位置。列表很长(默认前后各五十年),但只挂中心月两边几个月,
1948
+ * 一条占位轨道撑出整段滚动宽度。滚动途中不拼接也不回收,吸附位置恒定,惯性不被打断。
1949
+ */
1950
+ const OVERSCAN = 3;
1951
+ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1952
+ __name: "TouchMonthScroller",
1953
+ props: {
1954
+ calendar: {},
1955
+ rows: {},
1956
+ initialRow: {},
1957
+ selected: {},
1958
+ min: {},
1959
+ max: {},
1960
+ isDateDisabled: { type: Function },
1961
+ dateConstraints: {},
1962
+ weekStartsOn: {},
1963
+ today: {}
1964
+ },
1965
+ emits: ["pick", "visible"],
1966
+ setup(__props, { expose: __expose, emit: __emit }) {
1967
+ const props = __props;
1968
+ const emit = __emit;
1969
+ /**
1970
+ * 可见月份两边各挂几个月。按快速甩动估算:窗口每帧最多跟一次,只要一帧走不出三个月就够;
1971
+ * 在 `scroll-snap-type: mandatory` 下落到没挂的月份,不只是露出空白,还会被吸回最近挂着的那个。
1972
+ */
1973
+ const locale = useAstryxLocale();
1974
+ const scroller = useTemplateRef("scroller");
1975
+ const paneSize = shallowRef(0);
1976
+ const centerRow = shallowRef(props.initialRow);
1977
+ const focusDate = shallowRef(null);
1978
+ /** 量到宽度之前(含服务端渲染)只挂当前这个月,量到之后再铺开虚拟轨道。 */
1979
+ const visibleRows = computed(() => paneSize.value > 0 ? paneRows(centerRow.value, props.rows.count, OVERSCAN) : [centerRow.value]);
1980
+ const weekdays = computed(() => {
1981
+ const names = standaloneShortWeekdayNames(locale.value);
1982
+ const start = weekStartIndex(props.weekStartsOn);
1983
+ return Array.from({ length: 7 }, (_, index) => names[(index + start) % 7] ?? "");
1984
+ });
1985
+ let rtl = false;
1986
+ /** 可见的排,同步记一份,滚动处理不用等渲染就能分清变没变。 */
1987
+ let centerNow = props.initialRow;
1988
+ /** 首次摆放要停的排;量到宽度之前的跳转改写它。 */
1989
+ let initialTarget = props.initialRow;
1990
+ let positioned = false;
1991
+ /** 挂好那一排的月份之后要滚过去的排,见 scrollToMonth。 */
1992
+ let pendingScroll = null;
1993
+ /** 从手指按下到它引起的滚动停稳,滚动归手指;这期间重新居中不关吸附。 */
1994
+ let fingerScroll = false;
1995
+ let snapFrame = 0;
1996
+ let scrollFrame = 0;
1997
+ let settleFrame = 0;
1998
+ let dip = null;
1999
+ const steer = createScrollSteer();
2000
+ const detachers = [];
2001
+ const offsetFor = (row) => scrollOffsetForRow(row, paneSize.value, rtl);
2002
+ const clampRow = (row) => Math.min(props.rows.count - 1, Math.max(0, row));
2003
+ /**
2004
+ * 重新居中时,到提交后的下一帧之前关掉吸附。WebKit 把吸附到的位置记成吸附点列表里的序号,
2005
+ * 布局一变就按序号重新吸附:卸掉吸附点前面的月份会让序号错位,重新吸附落到下一个月,
2006
+ * 那次滚动又触发重新居中,日历就自己一个月一个月往前翻。提交时关着吸附就没有重新吸附,
2007
+ * 下一帧再打开,吸附到原地那一屏。手指驱动的滚动不关:iOS 为手势记着一个吸附目标,关掉会丢。
2008
+ */
2009
+ function recenter(element, row) {
2010
+ if (!fingerScroll) {
2011
+ element.style.scrollSnapType = "none";
2012
+ cancelAnimationFrame(snapFrame);
2013
+ nextTick(() => {
2014
+ snapFrame = requestAnimationFrame(() => {
2015
+ element.style.scrollSnapType = "";
2016
+ });
2017
+ });
2018
+ }
2019
+ centerRow.value = row;
2020
+ }
2021
+ function stopDip() {
2022
+ dip?.cancel();
2023
+ dip = null;
2024
+ }
2025
+ /** 让第 `row` 排停在滚动区起点。 */
2026
+ function scrollToMonth(target, behavior = "smooth") {
2027
+ stopDip();
2028
+ const element = scroller.value;
2029
+ const row = clampRow(target);
2030
+ if (element == null || paneSize.value === 0) {
2031
+ initialTarget = row;
2032
+ centerNow = row;
2033
+ centerRow.value = row;
2034
+ return;
2035
+ }
2036
+ if (Math.abs(row - centerNow) > OVERSCAN) {
2037
+ pendingScroll = row;
2038
+ centerNow = row;
2039
+ steer.start(row);
2040
+ recenter(element, row);
2041
+ return;
2042
+ }
2043
+ const left = offsetFor(row);
2044
+ const fade = behavior === "smooth" ? reducedMotionFade(element) : null;
2045
+ if (fade != null) {
2046
+ const land = () => {
2047
+ steer.end();
2048
+ if (row === centerNow) {
2049
+ element.scrollTo({
2050
+ left,
2051
+ behavior: "auto"
2052
+ });
2053
+ return;
2054
+ }
2055
+ pendingScroll = row;
2056
+ centerNow = row;
2057
+ centerRow.value = row;
2058
+ };
2059
+ if (fade.duration === 0) {
2060
+ land();
2061
+ return;
2062
+ }
2063
+ dip = playReducedMotionDip(element, fade, () => {
2064
+ dip = null;
2065
+ land();
2066
+ });
2067
+ return;
2068
+ }
2069
+ steer.start(row);
2070
+ element.scrollTo({
2071
+ left,
2072
+ behavior
2073
+ });
2074
+ }
2075
+ onUpdated(() => {
2076
+ const element = scroller.value;
2077
+ if (pendingScroll == null || element == null || paneSize.value === 0) return;
2078
+ const row = pendingScroll;
2079
+ pendingScroll = null;
2080
+ element.scrollTo({
2081
+ left: offsetFor(row),
2082
+ behavior: "auto"
2083
+ });
2084
+ });
2085
+ /**
2086
+ * 手势结束后把滚动器放回月份边界上。列表是虚拟的,吸附点就是挂着的那几屏,手指每划过一个月就挂一屏卸一屏;
2087
+ * iOS 在主线程外滚动,按当时知道的吸附点选落点,之后的重新渲染挪走了它,滚动器就停在没有吸附点的地方。
2088
+ * 所以停稳后要核对:先隔一帧取两次偏移,还在动就不管(那是 iOS 自己没放完的吸附动画,
2089
+ * 从半路四舍五入会把这一划拉回去);真的停了才校正。人自己滚的去最近的边界,
2090
+ * 被浏览器提前截断的引导送到引导的那个月。
2091
+ */
2092
+ function settleOnRest(element) {
2093
+ fingerScroll = false;
2094
+ if (paneSize.value === 0) return;
2095
+ const before = element.scrollLeft;
2096
+ cancelAnimationFrame(settleFrame);
2097
+ settleFrame = requestAnimationFrame(() => {
2098
+ settleFrame = 0;
2099
+ if (Math.abs(element.scrollLeft - before) >= .5) return;
2100
+ const row = steer.current() ?? rowAtScrollOffset(element.scrollLeft, paneSize.value, props.rows.count, rtl);
2101
+ const target = offsetFor(row);
2102
+ if (Math.abs(element.scrollLeft - target) < 1) {
2103
+ steer.end();
2104
+ return;
2105
+ }
2106
+ element.scrollTo({
2107
+ left: target,
2108
+ behavior: "smooth"
2109
+ });
2110
+ });
2111
+ }
2112
+ function onScroll() {
2113
+ const element = scroller.value;
2114
+ if (scrollFrame !== 0 || element == null || paneSize.value === 0) return;
2115
+ scrollFrame = requestAnimationFrame(() => {
2116
+ scrollFrame = 0;
2117
+ const row = rowAtScrollOffset(element.scrollLeft, paneSize.value, props.rows.count, rtl);
2118
+ if (row === centerNow) return;
2119
+ centerNow = row;
2120
+ recenter(element, row);
2121
+ const steered = steer.current();
2122
+ if (steered != null) {
2123
+ if (steered === row) steer.end();
2124
+ return;
2125
+ }
2126
+ emit("visible", row);
2127
+ });
2128
+ }
2129
+ function onTouchStart() {
2130
+ fingerScroll = true;
2131
+ }
2132
+ function measure() {
2133
+ const element = scroller.value;
2134
+ if (element == null || element.clientWidth <= 0) return;
2135
+ rtl = getComputedStyle(element).direction === "rtl";
2136
+ paneSize.value = element.clientWidth;
2137
+ if (positioned) return;
2138
+ positioned = true;
2139
+ nextTick(() => {
2140
+ element.scrollLeft = offsetFor(initialTarget);
2141
+ });
2142
+ }
2143
+ onMounted(() => {
2144
+ const element = scroller.value;
2145
+ if (element == null) return;
2146
+ measure();
2147
+ if (typeof ResizeObserver !== "undefined") {
2148
+ const observer = new ResizeObserver(measure);
2149
+ observer.observe(element);
2150
+ detachers.push(() => observer.disconnect());
2151
+ }
2152
+ element.addEventListener("scroll", onScroll, PASSIVE);
2153
+ element.addEventListener("touchstart", onTouchStart, PASSIVE);
2154
+ detachers.push(() => {
2155
+ element.removeEventListener("scroll", onScroll, PASSIVE);
2156
+ element.removeEventListener("touchstart", onTouchStart, PASSIVE);
2157
+ });
2158
+ detachers.push(attachScrollSettle(element, settleOnRest, steer));
2159
+ detachers.push(attachInlineSwipe(element, (direction) => {
2160
+ if (paneSize.value > 0) element.scrollBy({
2161
+ left: direction * paneSize.value,
2162
+ behavior: "smooth"
2163
+ });
2164
+ }));
2165
+ });
2166
+ onBeforeUnmount(() => {
2167
+ stopDip();
2168
+ cancelAnimationFrame(snapFrame);
2169
+ cancelAnimationFrame(scrollFrame);
2170
+ cancelAnimationFrame(settleFrame);
2171
+ for (const detach of detachers.splice(0)) detach();
2172
+ });
2173
+ /** 键盘把焦点挪出了一个月:滚到那个月,等那一天挂好再把焦点交给它。 */
2174
+ function onView(date) {
2175
+ focusDate.value = date;
2176
+ scrollToMonth(props.rows.rowOf(calendarMonthOf(props.calendar, date)), "smooth");
2177
+ const iso = plainDateToISO(date);
2178
+ nextTick(() => scroller.value?.querySelector(`[data-date="${iso}"]:not(.is-other-month)`)?.focus({ preventScroll: true }));
2179
+ }
2180
+ __expose({ scrollToMonth });
2181
+ return (_ctx, _cache) => {
2182
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekdays.value, (name, index) => {
2183
+ return openBlock(), createElementBlock("div", {
2184
+ key: index,
2185
+ class: "astryx-calendar-weekday"
2186
+ }, toDisplayString(name), 1);
2187
+ }), 128))]), createElementVNode("div", {
2188
+ ref_key: "scroller",
2189
+ ref: scroller,
2190
+ class: "astryx-date-touch-scroller",
2191
+ "data-scroller": "months"
2192
+ }, [createElementVNode("div", {
2193
+ class: "astryx-date-touch-track",
2194
+ style: normalizeStyle(paneSize.value > 0 ? { gridTemplateColumns: `repeat(${__props.rows.count}, ${paneSize.value}px)` } : void 0)
2195
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleRows.value, (row) => {
2196
+ return openBlock(), createElementBlock("div", {
2197
+ key: row,
2198
+ class: "astryx-date-touch-pane",
2199
+ style: normalizeStyle(paneSize.value > 0 ? { gridColumn: String(row + 1) } : void 0)
2200
+ }, [createVNode(_sfc_main$3, {
2201
+ calendar: __props.calendar,
2202
+ month: __props.rows.monthAt(row),
2203
+ selected: __props.selected,
2204
+ min: __props.min,
2205
+ max: __props.max,
2206
+ "is-date-disabled": __props.isDateDisabled,
2207
+ "date-constraints": __props.dateConstraints,
2208
+ "week-starts-on": __props.weekStartsOn,
2209
+ today: __props.today,
2210
+ weekdays: false,
2211
+ "focus-date": focusDate.value,
2212
+ onPick: _cache[0] || (_cache[0] = ($event) => emit("pick", $event)),
2213
+ "onUpdate:view": onView
2214
+ }, null, 8, [
2215
+ "calendar",
2216
+ "month",
2217
+ "selected",
2218
+ "min",
2219
+ "max",
2220
+ "is-date-disabled",
2221
+ "date-constraints",
2222
+ "week-starts-on",
2223
+ "today",
2224
+ "focus-date"
2225
+ ])], 4);
2226
+ }), 128))], 4)], 512)]);
1724
2227
  };
1725
2228
  }
1726
2229
  });
@@ -1778,15 +2281,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1778
2281
  const locale = useAstryxLocale();
1779
2282
  const calendar = useCalendarSystem(() => props.calendar, "DateInput");
1780
2283
  const wheelsOpen = ref(false);
1781
- const dragX = ref(null);
1782
2284
  const coarse = useMediaQuery("(pointer: coarse)");
1783
2285
  const titleRef = useTemplateRef("title");
1784
2286
  const prevRef = useTemplateRef("prev");
1785
2287
  const nextRef = useTemplateRef("next");
2288
+ const monthsRef = useTemplateRef("months");
1786
2289
  const today = shallowRef(null);
1787
2290
  const range = computed(() => reachableMonths(calendar.value, props.min, props.max, today.value ?? /* @__PURE__ */ new Date()));
1788
2291
  /** 面板显示的历法月,挂载后才有。 */
1789
2292
  const view = shallowRef(null);
2293
+ /** 月份滚动器的一排排月份;能翻到的范围一变,滚动器按新的排号重新挂载。 */
2294
+ const rows = computed(() => createMonthRows(calendar.value, range.value));
2295
+ const rowsKey = computed(() => `${calendar.value}|${plainDateToISO(range.value.min.start)}|${plainDateToISO(range.value.max.start)}`);
1790
2296
  function monthContaining(date) {
1791
2297
  return clampMonth(calendarMonthOf(calendar.value, date instanceof Date ? plainDateFromDate(date) : date), range.value);
1792
2298
  }
@@ -1839,16 +2345,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1839
2345
  return options;
1840
2346
  });
1841
2347
  /**
1842
- * 翻到 `target` 月。到了可选范围的头,那一头的箭头会消失,消失的元素会丢掉焦点:
2348
+ * 翻到 `target` 月,`scroll` 时让月份滚动器平滑滚过去(滚动器自己滚到的月份不用再滚)。
2349
+ * 到了可选范围的头,那一头的箭头会消失,消失的元素会丢掉焦点:
1843
2350
  * 焦点在它上面时,先等另一个箭头画出来,再把焦点交给它;两个箭头都消失就交给月份标题。
1844
2351
  */
1845
- function showMonth(target) {
2352
+ function showMonth(target, scroll = true) {
1846
2353
  const prevHides = !isMonthAfter(target, range.value.min);
1847
2354
  const nextHides = !isMonthBefore(target, range.value.max);
1848
2355
  const active = typeof document === "undefined" ? null : document.activeElement;
1849
2356
  const onPrev = prevHides && active != null && active === prevRef.value;
1850
2357
  const onNext = nextHides && active != null && active === nextRef.value;
1851
2358
  view.value = target;
2359
+ if (scroll) monthsRef.value?.scrollToMonth(rows.value.rowOf(target), "smooth");
1852
2360
  if (!onPrev && !onNext) return;
1853
2361
  const otherHides = onPrev ? nextHides : prevHides;
1854
2362
  nextTick(() => {
@@ -1899,22 +2407,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1899
2407
  }
1900
2408
  function onReset() {
1901
2409
  if (props.isDisabled) return;
1902
- view.value = monthContaining(/* @__PURE__ */ new Date());
2410
+ const target = monthContaining(/* @__PURE__ */ new Date());
2411
+ if (wheelsOpen.value) view.value = target;
2412
+ else showMonth(target);
1903
2413
  wheelsOpen.value = false;
1904
2414
  emit("reset");
1905
2415
  }
1906
- function onPointerDown(event) {
1907
- dragX.value = event.clientX;
1908
- }
1909
- function onPointerUp(event) {
1910
- if (dragX.value == null) return;
1911
- const delta = event.clientX - dragX.value;
1912
- dragX.value = null;
1913
- if (Math.abs(delta) < 48) return;
1914
- move((rtl.value ? delta > 0 : delta < 0) ? 1 : -1);
1915
- }
1916
- function onView(date) {
1917
- showMonth(monthContaining(date));
2416
+ /** 手指或惯性把日历滚到了别的月。滚轮开着时滚轮说了算,滚动器只是被它引导。 */
2417
+ function onVisible(row) {
2418
+ if (!wheelsOpen.value) showMonth(rows.value.monthAt(row), false);
1918
2419
  }
1919
2420
  return (_ctx, _cache) => {
1920
2421
  return today.value && view.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
@@ -1933,7 +2434,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1933
2434
  class: "astryx-date-touch-arrow",
1934
2435
  "aria-label": unref(messages).calendar.previousMonth,
1935
2436
  onClick: _cache[1] || (_cache[1] = ($event) => move(-1))
1936
- }, [createVNode(_sfc_main$5, {
2437
+ }, [createVNode(_sfc_main$6, {
1937
2438
  icon: prevIcon.value,
1938
2439
  size: "sm"
1939
2440
  }, null, 8, ["icon"])], 8, _hoisted_5$1)) : createCommentVNode("v-if", true),
@@ -1944,7 +2445,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1944
2445
  class: "astryx-date-touch-arrow",
1945
2446
  "aria-label": unref(messages).calendar.nextMonth,
1946
2447
  onClick: _cache[2] || (_cache[2] = ($event) => move(1))
1947
- }, [createVNode(_sfc_main$5, {
2448
+ }, [createVNode(_sfc_main$6, {
1948
2449
  icon: nextIcon.value,
1949
2450
  size: "sm"
1950
2451
  }, null, 8, ["icon"])], 8, _hoisted_6$1)) : createCommentVNode("v-if", true),
@@ -1954,7 +2455,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1954
2455
  onClick: onReset
1955
2456
  }, toDisplayString(unref(messages).dateInput.resetPicking), 1)
1956
2457
  ])) : createCommentVNode("v-if", true)]),
1957
- wheelsOpen.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [createVNode(_sfc_main$13, {
2458
+ wheelsOpen.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [createVNode(_sfc_main$14, {
1958
2459
  label: unref(messages).dateInput.monthWheel,
1959
2460
  options: monthOptions.value,
1960
2461
  "model-value": String(cursor.value.month),
@@ -1963,7 +2464,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1963
2464
  "label",
1964
2465
  "options",
1965
2466
  "model-value"
1966
- ]), createVNode(_sfc_main$13, {
2467
+ ]), createVNode(_sfc_main$14, {
1967
2468
  label: unref(messages).dateInput.yearWheel,
1968
2469
  options: yearOptions.value,
1969
2470
  "model-value": String(cursor.value.year),
@@ -1972,13 +2473,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1972
2473
  "label",
1973
2474
  "options",
1974
2475
  "model-value"
1975
- ])])) : (openBlock(), createElementBlock("div", {
1976
- key: 1,
1977
- onPointerdown: onPointerDown,
1978
- onPointerup: onPointerUp
1979
- }, [createVNode(_sfc_main$2, {
2476
+ ])])) : (openBlock(), createBlock(_sfc_main$2, {
2477
+ ref: "months",
2478
+ key: rowsKey.value,
1980
2479
  calendar: unref(calendar),
1981
- month: view.value,
2480
+ rows: rows.value,
2481
+ "initial-row": rows.value.rowOf(view.value),
1982
2482
  selected: __props.selected,
1983
2483
  min: __props.min,
1984
2484
  max: __props.max,
@@ -1987,10 +2487,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1987
2487
  "week-starts-on": __props.weekStartsOn,
1988
2488
  today: today.value,
1989
2489
  onPick: _cache[3] || (_cache[3] = ($event) => emit("pick", $event)),
1990
- "onUpdate:view": onView
2490
+ onVisible
1991
2491
  }, null, 8, [
1992
2492
  "calendar",
1993
- "month",
2493
+ "rows",
2494
+ "initial-row",
1994
2495
  "selected",
1995
2496
  "min",
1996
2497
  "max",
@@ -1998,7 +2499,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
1998
2499
  "date-constraints",
1999
2500
  "week-starts-on",
2000
2501
  "today"
2001
- ])], 32)),
2502
+ ])),
2002
2503
  createElementVNode("button", {
2003
2504
  type: "button",
2004
2505
  class: "astryx-date-touch-save",
@@ -2501,7 +3002,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2501
3002
  const statusValue = entry.fieldStatus;
2502
3003
  const statusType = computed(() => statusValue.value?.type);
2503
3004
  const showsField = computed(() => Boolean(props.label || props.description || statusValue.value?.message));
2504
- const shell = computed(() => showsField.value ? _sfc_main$11 : DateInputPassThrough_default);
3005
+ const shell = computed(() => showsField.value ? _sfc_main$12 : DateInputPassThrough_default);
2505
3006
  const fieldBindings = computed(() => showsField.value ? {
2506
3007
  label: props.label ?? "",
2507
3008
  inputId: inputId.value,
@@ -2605,7 +3106,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2605
3106
  });
2606
3107
  return (_ctx, _cache) => {
2607
3108
  return openBlock(), createElementBlock(Fragment, null, [
2608
- surface.value === "native" ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
3109
+ surface.value === "native" ? (openBlock(), createBlock(_sfc_main$4, mergeProps({
2609
3110
  key: 0,
2610
3111
  "input-id": inputId.value,
2611
3112
  "model-value": __props.modelValue,
@@ -2689,7 +3190,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2689
3190
  onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
2690
3191
  onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
2691
3192
  }, [
2692
- createVNode(_sfc_main$12, {
3193
+ createVNode(_sfc_main$13, {
2693
3194
  "is-open": useSheet.value ? false : isOpen.value,
2694
3195
  "is-enabled": !useSheet.value && !locked.value,
2695
3196
  placement: "below",
@@ -2707,7 +3208,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2707
3208
  content: withCtx(() => [popoverOpen.value ? (openBlock(), createElementBlock("div", {
2708
3209
  key: 0,
2709
3210
  id: popupId.value
2710
- }, [createVNode(_sfc_main$10, {
3211
+ }, [createVNode(_sfc_main$11, {
2711
3212
  "model-value": props.modelValue,
2712
3213
  min: props.min,
2713
3214
  max: props.max,
@@ -2743,7 +3244,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2743
3244
  "aria-label": toggleLabel.value,
2744
3245
  onClick: onToggleClick,
2745
3246
  onKeydown: onToggleKeyDown
2746
- }, [createVNode(_sfc_main$5, {
3247
+ }, [createVNode(_sfc_main$6, {
2747
3248
  icon: "calendar",
2748
3249
  size: "sm"
2749
3250
  })], 40, _hoisted_4),
@@ -2782,16 +3283,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2782
3283
  "aria-label": resolvedClearLabel.value,
2783
3284
  tabindex: "-1",
2784
3285
  onClick: onClear
2785
- }, [createVNode(_sfc_main$5, {
3286
+ }, [createVNode(_sfc_main$6, {
2786
3287
  icon: "close",
2787
3288
  size: "sm"
2788
3289
  })], 8, _hoisted_6)) : _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
2789
- busy.value ? (openBlock(), createBlock(_sfc_main$9, {
3290
+ busy.value ? (openBlock(), createBlock(_sfc_main$10, {
2790
3291
  key: 3,
2791
3292
  class: "astryx-date-input-spinner",
2792
3293
  size: "sm",
2793
3294
  "aria-hidden": "true"
2794
- })) : statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$8, {
3295
+ })) : statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$9, {
2795
3296
  key: 4,
2796
3297
  type: statusType.value
2797
3298
  }, null, 8, ["type"])) : createCommentVNode("v-if", true)
@@ -2803,7 +3304,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2803
3304
  "width",
2804
3305
  "label"
2805
3306
  ]),
2806
- useSheet.value ? (openBlock(), createBlock(_sfc_main$4, {
3307
+ useSheet.value ? (openBlock(), createBlock(_sfc_main$5, {
2807
3308
  key: 0,
2808
3309
  "is-open": isOpen.value,
2809
3310
  "onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
@@ -2845,21 +3346,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2845
3346
  ], 46, _hoisted_1)]),
2846
3347
  _: 3
2847
3348
  }, 16, ["class", "style"])),
2848
- unref(calendarText).calendarDescription.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$6, {
3349
+ unref(calendarText).calendarDescription.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$7, {
2849
3350
  key: 2,
2850
3351
  id: calendarDescriptionId
2851
3352
  }, {
2852
3353
  default: withCtx(() => [createTextVNode(toDisplayString(unref(calendarText).calendarDescription.value), 1)]),
2853
3354
  _: 1
2854
3355
  })) : createCommentVNode("v-if", true),
2855
- showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$6, {
3356
+ showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$7, {
2856
3357
  key: 3,
2857
3358
  id: disabledMessageId
2858
3359
  }, {
2859
3360
  default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
2860
3361
  _: 1
2861
3362
  })) : createCommentVNode("v-if", true),
2862
- showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$7, {
3363
+ showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$8, {
2863
3364
  key: 4,
2864
3365
  id: `${disabledMessageId}-tooltip`,
2865
3366
  anchor: containerRef.value,