@astryx-vue/core 0.48.1 → 0.48.3

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 (262) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-B1phVXj9.js → AlertDialog-CZv_5cjZ.js} +4 -4
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-BCOpv2wi.js → AppShell-BdpXOpJ0.js} +2 -2
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/AvatarGroup/index.js +1 -1
  7. package/dist/{AvatarGroup-Dui84EMQ.js → AvatarGroup-DPdGsmCQ.js} +1 -1
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js +1 -1
  10. package/dist/{Banner-BtD6bun6.js → Banner-rKRkWR6U.js} +1 -1
  11. package/dist/BottomSheet/index.d.ts +1 -1
  12. package/dist/Breadcrumbs/index.js +2 -2
  13. package/dist/{Breadcrumbs-D-nz570f.js → Breadcrumbs-CmTe311W.js} +1 -1
  14. package/dist/Button/index.d.ts +1 -1
  15. package/dist/Button/index.js +1 -1
  16. package/dist/{Button-_Wy_YD0w.js → Button-ByMwpaTC.js} +1 -1
  17. package/dist/ButtonGroup/index.d.ts +1 -1
  18. package/dist/ButtonGroup/index.js +1 -1
  19. package/dist/{ButtonGroup-CQKamSTm.js → ButtonGroup-DlzYnaXk.js} +1 -1
  20. package/dist/Calendar/index.d.ts +1 -1
  21. package/dist/Calendar/index.js +2 -2
  22. package/dist/{Calendar-DvbTMsIC.js → Calendar-Bu5tNFCy.js} +2 -2
  23. package/dist/{Calendar-Nh8eFh1z.js → Calendar-Cr3q-XUb.js} +1 -1
  24. package/dist/Carousel/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-CInT4bwV.js → Carousel-PAvDguJz.js} +1 -1
  27. package/dist/Center/index.d.ts +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-TU_tpExs.js → Chat-CYljOQ16.js} +1 -1
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-BXp8vIjt.js → CheckboxInput-B7LhVr3T.js} +2 -2
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxListItem-CevOAULo.js → CheckboxListItem-CC-9D_l_.js} +3 -3
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/ClickableCard/index.js +1 -1
  39. package/dist/{ClickableCard-VoDgBMvb.js → ClickableCard-BbvpZLNq.js} +1 -1
  40. package/dist/Code/index.js +2 -2
  41. package/dist/{Code-BFoxW_eI.js → Code-Aw-ZvPzl.js} +1 -1
  42. package/dist/{CodeBlock-CpcoW68P.js → CodeBlock-BZUBgEQK.js} +1 -1
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-glc_Y77Q.js → Collapsible-BOHljBHe.js} +1 -1
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-CEpOlFoY.js → CommandPalette-B5TShtZd.js} +2 -2
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-BX32ZAmU.js → ComplexSelector-BewrtpKV.js} +1 -1
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-gLnBJXh2.js → ContextMenu-CQlYu1dv.js} +2 -2
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-UvbTAr_0.js → DateInput-D78SOx0f.js} +36 -13
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-zGzYdcfZ.js → DateRangeInput-PnBK_G5d.js} +116 -184
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-BWqBtee7.js → DateTimeInput-DPoTqJ36.js} +4 -4
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-BYiOO5UP.js → Dialog-CPW0FBYo.js} +1 -1
  64. package/dist/{Dialog--SFgs-bT.js → Dialog-PyGSnp1J.js} +1 -1
  65. package/dist/{DialogHeader-CsuqB8Tf.js → DialogHeader-CT4gkqfm.js} +1 -1
  66. package/dist/Drawer/index.d.ts +1 -1
  67. package/dist/Drawer/index.js +1 -1
  68. package/dist/{Drawer-BQfvjMZQ.js → Drawer-BkU8kiAU.js} +2 -2
  69. package/dist/DropdownMenu/index.js +2 -2
  70. package/dist/{DropdownMenu-BwtO2fd3.js → DropdownMenu-WuoVaE3D.js} +5 -5
  71. package/dist/Field/index.js +1 -1
  72. package/dist/{FieldInfoTip-CxhS1Oei.js → FieldInfoTip-Dss2g3m-.js} +1 -1
  73. package/dist/FileInput/index.js +1 -1
  74. package/dist/{FileInput-DUuDBMrT.js → FileInput-B00g3NMy.js} +2 -2
  75. package/dist/{GestureHost-C0FstEs3.js → GestureHost-CnGqeHAJ.js} +1 -1
  76. package/dist/Heading/index.d.ts +1 -1
  77. package/dist/HoverCard/index.d.ts +1 -1
  78. package/dist/IconButton/index.js +1 -1
  79. package/dist/{IconButton-CXAXoL8g.js → IconButton-BilMzjDj.js} +1 -1
  80. package/dist/InfoTip/index.d.ts +1 -1
  81. package/dist/{InputClearButton-CRwLkUd4.js → InputClearButton-DEmIF1Dt.js} +1 -1
  82. package/dist/InternationalizationProvider/index.d.ts +1 -1
  83. package/dist/InternationalizationProvider/index.js +1 -1
  84. package/dist/{InternationalizationProvider-B6kMYO4h.js → InternationalizationProvider-B9wQM8hN.js} +1 -1
  85. package/dist/{Item-D4mWkTkn.js → Item-D6y1lkrO.js} +7 -5
  86. package/dist/Lightbox/index.js +1 -1
  87. package/dist/{Lightbox-0BL2xYy4.js → Lightbox-Di1n_Ghn.js} +7 -7
  88. package/dist/Link/index.d.ts +1 -1
  89. package/dist/Link/index.js +1 -1
  90. package/dist/{Link-DEVHdJ7S.js → Link-OTGW6ZdS.js} +1 -1
  91. package/dist/List/index.d.ts +1 -1
  92. package/dist/List/index.js +4 -4
  93. package/dist/{List-INZ3S-pZ.js → List-DkH8AKN1.js} +2 -2
  94. package/dist/{ListItem-Ds5nLB5D.js → ListItem-5d5B-FOb.js} +2 -2
  95. package/dist/{LongPressGestureRecognizer-C_DTqk3V.js → LongPressGestureRecognizer-BA7RijIc.js} +2 -2
  96. package/dist/Markdown/index.d.ts +1 -1
  97. package/dist/Markdown/index.js +1 -1
  98. package/dist/{Markdown-CnyEpkWI.js → Markdown-DvBtpprk.js} +2 -2
  99. package/dist/MetadataList/index.d.ts +1 -1
  100. package/dist/MetadataList/index.js +1 -1
  101. package/dist/{MetadataList-n3YXiP4a.js → MetadataList-BTMI6Ffm.js} +5 -1
  102. package/dist/MobileNav/index.js +2 -2
  103. package/dist/{MobileNav-VyNrmHHo.js → MobileNav-BFH7bZOn.js} +1 -1
  104. package/dist/{MobileNavDrawer-DswHZ82s.js → MobileNavDrawer-BtktK3CL.js} +1 -1
  105. package/dist/{MobileNavToggle-BLsbreUS.js → MobileNavToggle-BpAWd0-p.js} +1 -1
  106. package/dist/MoreMenu/index.d.ts +1 -1
  107. package/dist/MoreMenu/index.js +1 -1
  108. package/dist/{MoreMenu-D7l8D7sU.js → MoreMenu-bUsXdSxn.js} +4 -4
  109. package/dist/MultiSelector/index.d.ts +1 -1
  110. package/dist/MultiSelector/index.js +1 -1
  111. package/dist/{MultiSelector-BQLPD0NQ.js → MultiSelector-gLmtlWmJ.js} +3 -3
  112. package/dist/NavItem/index.js +1 -1
  113. package/dist/{NavItem-GFrkWRSJ.js → NavItem-BvO78bR8.js} +1 -1
  114. package/dist/NavMenu/index.js +2 -2
  115. package/dist/{NavMenu-B14_ovBG.js → NavMenu-DAukml6r.js} +1 -1
  116. package/dist/{NavMenuItem-DMXY_6AO.js → NavMenuItem-DVII3tzg.js} +2 -2
  117. package/dist/NumberInput/index.d.ts +1 -1
  118. package/dist/NumberInput/index.js +1 -1
  119. package/dist/{NumberInput-DNJqobg9.js → NumberInput-BBEONs4g.js} +2 -2
  120. package/dist/Outline/index.js +1 -1
  121. package/dist/{Outline-C4j3zWvV.js → Outline-ClmviJhz.js} +1 -1
  122. package/dist/OverflowList/index.d.ts +1 -1
  123. package/dist/OverflowList/index.js +1 -1
  124. package/dist/{OverflowList-wrh7FgSu.js → OverflowList-rE--IEGl.js} +1 -1
  125. package/dist/Overlay/index.d.ts +1 -1
  126. package/dist/Pagination/index.js +1 -1
  127. package/dist/{Pagination-CPzv-x-D.js → Pagination-Cu9RHoEu.js} +1 -1
  128. package/dist/{PanGestureRecognizer-WZ_rV6KY.js → PanGestureRecognizer-DZpS28MS.js} +1 -1
  129. package/dist/{PickerWheel-BN_Ad6FQ.js → PickerWheel-BWGMqoC0.js} +4 -4
  130. package/dist/Popover/index.d.ts +1 -1
  131. package/dist/Popover/index.js +1 -1
  132. package/dist/{Popover-DGVQ7Xiz.js → Popover-CgyIJd4u.js} +2 -2
  133. package/dist/PowerSearch/index.d.ts +1 -1
  134. package/dist/PowerSearch/index.js +1 -1
  135. package/dist/{PowerSearch-26idtyvm.js → PowerSearch-DB17gW3o.js} +18 -18
  136. package/dist/{PressTracker-CiaaoD3I.js → PressTracker-C7qJfE-H.js} +1 -1
  137. package/dist/Radio/index.d.ts +1 -1
  138. package/dist/Radio/index.js +1 -1
  139. package/dist/{RadioGroup-BTKuboQj.js → RadioGroup-WoFdfefT.js} +2 -2
  140. package/dist/RadioList/index.d.ts +1 -1
  141. package/dist/RadioList/index.js +1 -1
  142. package/dist/{RadioListItem-BBen7qdK.js → RadioListItem-CULhpyUB.js} +1 -1
  143. package/dist/RangeCalendar-pTEnYJqX.js +160 -0
  144. package/dist/ScrollableArea/index.d.ts +1 -1
  145. package/dist/SegmentedControl/index.js +1 -1
  146. package/dist/{SegmentedControl-0jm3K1vo.js → SegmentedControl-BDD1z8ow.js} +4 -4
  147. package/dist/SelectableCard/index.d.ts +1 -1
  148. package/dist/SelectableCard/index.js +1 -1
  149. package/dist/{SelectableCard-CiGBc6LT.js → SelectableCard-CDu58-PT.js} +1 -1
  150. package/dist/Selector/index.d.ts +1 -1
  151. package/dist/SideNav/index.d.ts +1 -1
  152. package/dist/SideNav/index.js +1 -1
  153. package/dist/{SideNav-BEhgJPPI.js → SideNav-BQbQ4vk6.js} +2 -2
  154. package/dist/Slider/index.js +1 -1
  155. package/dist/{Slider-DSJotaeW.js → Slider-IqPowFpR.js} +5 -5
  156. package/dist/Stack/index.d.ts +1 -1
  157. package/dist/Stepper/index.d.ts +1 -1
  158. package/dist/Stepper/index.js +1 -1
  159. package/dist/{Stepper-iDROGNwb.js → Stepper-B65oFMhT.js} +1 -1
  160. package/dist/Switch/index.d.ts +1 -1
  161. package/dist/Switch/index.js +1 -1
  162. package/dist/{Switch-DGS8pEOP.js → Switch-C3Z-eqrJ.js} +3 -3
  163. package/dist/TabList/index.js +1 -1
  164. package/dist/{TabList-BMlgDsmO.js → TabList-CQSr1JqR.js} +2 -2
  165. package/dist/Table/index.d.ts +1 -1
  166. package/dist/Table/index.js +1 -1
  167. package/dist/{Table-vkuJ-b7o.js → Table-B6EYjM3T.js} +19 -16
  168. package/dist/{TapGestureRecognizer-LcbkQFq0.js → TapGestureRecognizer-DWgoCDMm.js} +2 -2
  169. package/dist/Text/index.d.ts +1 -1
  170. package/dist/TextArea/index.d.ts +1 -1
  171. package/dist/TextArea/index.js +1 -1
  172. package/dist/{TextArea-DgwVNQv-.js → TextArea-vg40GTUn.js} +3 -3
  173. package/dist/TextInput/index.d.ts +1 -1
  174. package/dist/TextInput/index.js +1 -1
  175. package/dist/{TextInput-CYB4kvaK.js → TextInput-BT5SNPml.js} +3 -3
  176. package/dist/Thumbnail/index.js +1 -1
  177. package/dist/{Thumbnail-D_1X7wBJ.js → Thumbnail-DjTQfpBD.js} +2 -2
  178. package/dist/{TimeField-DNZroMry.js → TimeField-Ni4p7bg4.js} +3 -3
  179. package/dist/TimeInput/index.d.ts +1 -1
  180. package/dist/TimeInput/index.js +1 -1
  181. package/dist/{TimeInput-CLzoPxvj.js → TimeInput-x5uEONH9.js} +3 -2
  182. package/dist/Timer/index.d.ts +1 -1
  183. package/dist/Timestamp/index.d.ts +1 -1
  184. package/dist/Timestamp/index.js +2 -2
  185. package/dist/{Timestamp-BdqvbKZ5.js → Timestamp-CGhrqcmb.js} +29 -15
  186. package/dist/Toast/index.js +1 -1
  187. package/dist/{Toast-DQrgFtDs.js → Toast-DDOAUhO2.js} +3 -3
  188. package/dist/ToggleButton/index.d.ts +1 -1
  189. package/dist/ToggleButton/index.js +1 -1
  190. package/dist/{ToggleButton-DdBYgIyN.js → ToggleButton-BQrwvaI1.js} +2 -2
  191. package/dist/Token/index.js +1 -1
  192. package/dist/{Token-Dmz6vEMX.js → Token-CYpUplLh.js} +1 -1
  193. package/dist/Tokenizer/index.d.ts +1 -1
  194. package/dist/Tokenizer/index.js +1 -1
  195. package/dist/{Tokenizer-Drgs51C8.js → Tokenizer-CU2M1KhH.js} +5 -5
  196. package/dist/Toolbar/index.d.ts +1 -1
  197. package/dist/Tooltip/index.d.ts +1 -1
  198. package/dist/TopNav/index.d.ts +1 -1
  199. package/dist/TopNav/index.js +1 -1
  200. package/dist/{TopNav-Dm2TXvNQ.js → TopNav-orrt1pgV.js} +4 -4
  201. package/dist/TreeList/index.js +1 -1
  202. package/dist/{TreeList-Bj2qwKXr.js → TreeList-BNEnEOlP.js} +1 -1
  203. package/dist/Typeahead/index.js +1 -1
  204. package/dist/{Typeahead-CbZ3CWDI.js → Typeahead-_ijsXkA2.js} +2 -2
  205. package/dist/{accessibleName-Cr8Gc_jb.js → accessibleName-COG4Ik6i.js} +1 -1
  206. package/dist/{boxHold-JsQX9R5i.js → boxHold-DthWQaiw.js} +1 -1
  207. package/dist/composables/index.d.ts +1 -1
  208. package/dist/composables/index.js +7 -7
  209. package/dist/{composables-C-syBXby.js → composables-G10dqPNt.js} +6 -6
  210. package/dist/{date-range-input-WnkVv8HN.js → date-range-input-BjM7wgeD.js} +6 -2
  211. package/dist/{formatInstant-B-ukorXg.js → formatInstant-DmQhW6EL.js} +23 -8
  212. package/dist/{holdEntranceInput-Cs656CnM.js → holdEntranceInput-DK89Ky_U.js} +1 -1
  213. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  214. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  215. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  216. package/dist/{index-DPcZ_oAp.d.ts → index-CJB63c7Y.d.ts} +1 -1
  217. package/dist/{index-DsD5qKEe.d.ts → index-CjCJRK-z.d.ts} +2 -1
  218. package/dist/{index-BH9_uPqT.d.ts → index-DEeR90QP.d.ts} +4 -4
  219. package/dist/{index-C7uGs5Cl.d.ts → index-Dmr81uHZ.d.ts} +1 -1
  220. package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
  221. package/dist/{index-Cyzp19HQ.d.ts → index-DwG42flu.d.ts} +1 -1
  222. package/dist/{index-CA9D-3UG.d.ts → index-DyvHDvtx.d.ts} +2 -2
  223. package/dist/{index-BugRfA0z.d.ts → index-Er_LwyZ7.d.ts} +2 -2
  224. package/dist/{index-CFZSTi4J.d.ts → index-SdevVVTE.d.ts} +2 -2
  225. package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
  226. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  227. package/dist/{index-DPtUixr8.d.ts → index-bXbjUqwx.d.ts} +3 -3
  228. package/dist/{index-aBeGbS1N.d.ts → index-fUpVnYYy.d.ts} +1 -1
  229. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  230. package/dist/{index-Bsl8HqR9.d.ts → index-tNq2IJO8.d.ts} +1 -1
  231. package/dist/{index-a6o69uPN.d.ts → index-tdOyqA_U.d.ts} +2 -2
  232. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  233. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  234. package/dist/{index-BkjD7Pn0.d.ts → index-zHX0wDmq.d.ts} +47 -47
  235. package/dist/index.d.ts +23 -23
  236. package/dist/index.js +88 -88
  237. package/dist/{inputAge-C-SoLwpD.js → inputAge-Bc4vvqmK.js} +1 -1
  238. package/dist/{inputHold-C1LkNE02.js → inputHold-DJrwmWbJ.js} +156 -10
  239. package/dist/internal/touch.js +6 -6
  240. package/dist/{itemSlots-DQS1Q4hS.js → itemSlots-DtrAXXlG.js} +2 -2
  241. package/dist/{loadCatalog-BLR2kAhy.d.ts → loadCatalog-BY88s6vB.d.ts} +4 -0
  242. package/dist/{loadCatalog-DT1OyK-2.js → loadCatalog-crHU34Cs.js} +9 -1
  243. package/dist/locale/index.d.ts +2 -2
  244. package/dist/locale/index.js +3 -3
  245. package/dist/{locale-DhcPo0et.js → locale-R4jJ5VWu.js} +1 -1
  246. package/dist/{snapPagingCatcher-ivaaFuon.js → snapPagingCatcher-CJopa2KW.js} +1 -1
  247. package/dist/{useActionGroupTracking-CXIqZDh3.js → useActionGroupTracking-fTU4uvzA.js} +1 -1
  248. package/dist/{useCalendarGrid-Bz7NJmA3.js → useCalendarGrid-BGFIdfo7.js} +1 -1
  249. package/dist/{useDateRange-D1Szw54e.js → useDateRange-vYk0K9ML.js} +6 -2
  250. package/dist/{useFingerScroll-CAC6Pd3m.js → useFingerScroll-BOegur8G.js} +1 -1
  251. package/dist/{useGestureRecognizer-C7CXCbBp.js → useGestureRecognizer-BPFoGD43.js} +1 -1
  252. package/dist/{useInputStatusIcon-DBPW7-tw.js → useInputStatusIcon-DFx25PSi.js} +1 -1
  253. package/dist/{useMenuEntranceHold-Dkl03O-0.js → useMenuEntranceHold-Dewv7oTN.js} +1 -1
  254. package/dist/{useMenuPress-DKGeEWJw.js → useMenuPress-Cxn2iz5-.js} +1 -1
  255. package/dist/{useMonthGrid-Bzvlstgc.js → useMonthGrid-xkn79x_J.js} +1 -1
  256. package/dist/{usePressFeedback-X_9-5DMi.js → usePressFeedback-DjRpNo2t.js} +1 -1
  257. package/dist/utils/index.js +1 -1
  258. package/package.json +1 -1
  259. package/styles/date-input.css +40 -5
  260. package/styles/date-range-input.css +22 -0
  261. package/styles/overlay.css +36 -11
  262. package/styles/tree-list.css +11 -0
@@ -16,6 +16,7 @@ import { t as _sfc_main$9 } from "./FieldIcon-COfz-h_b.js";
16
16
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
17
17
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
18
18
  import { n as toAsciiDigits, t as INVISIBLE_CHARS } from "./unicodeDigits-_BYIJcAu.js";
19
+ import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
19
20
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
20
21
  import { t as _sfc_main$10 } from "./Spinner-dCnyObWk.js";
21
22
  import { n as dateTimeFormatFor } from "./dateTimeFormatCache-CSsvHOhO.js";
@@ -24,20 +25,36 @@ import { _ as isCalendarSystemAvailable, a as calendarAddMonths, b as isInCalend
24
25
  import { a as standaloneShortWeekdayNames, n as formatDayNumber, o as weekdayNames } from "./format--_j64_yo.js";
25
26
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
26
27
  import { a as formatCalendarMonthName, i as formatCalendarMonthLabel, o as formatCalendarYearLabel, t as calendarDisplayName } from "./calendarFormat-CbxpwgAe.js";
27
- import { b as toCalendarDay, d as toCalendarDate, i as calendarISO, o as formatWeekdayDate, p as weekStartIndex, t as buildMonthWeeks, u as sameCalendarDay } from "./useCalendarGrid-Bz7NJmA3.js";
28
- import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$11 } from "./Calendar-Nh8eFh1z.js";
28
+ import { b as toCalendarDay, d as toCalendarDate, i as calendarISO, o as formatWeekdayDate, p as weekStartIndex, t as buildMonthWeeks, u as sameCalendarDay } from "./useCalendarGrid-BGFIdfo7.js";
29
+ import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$11 } from "./Calendar-Cr3q-XUb.js";
29
30
  import { a as useAriaRequired, o as useEntryErrorBehavior } from "./context-CrVCeUUK.js";
30
31
  import { t as _sfc_main$12 } from "./Field-2ypSh8vl.js";
31
32
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
32
- import { t as _sfc_main$13 } from "./Popover-DGVQ7Xiz.js";
33
+ import { t as _sfc_main$13 } from "./Popover-CgyIJd4u.js";
33
34
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
34
- import { t as formatInstant } from "./formatInstant-B-ukorXg.js";
35
+ import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
36
+ import { n as formatInstant } from "./formatInstant-DmQhW6EL.js";
35
37
  import { n as calendarPickerPresentation, u as parseDateInput } from "./inputPresentation-Br70N2eS.js";
36
- import { t as _sfc_main$14 } from "./PickerWheel-BN_Ad6FQ.js";
38
+ import { t as _sfc_main$14 } from "./PickerWheel-BWGMqoC0.js";
37
39
  import { t as useEntryErrorReport } from "./useEntryErrorReport-Wee3N8IA.js";
38
40
  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";
39
41
  import "../styles/calendar.css";
40
42
  import "../styles/date-input.css";
43
+ //#region src/DateInput/dateFieldAttrs.ts
44
+ /**
45
+ * 交给日期输入框的调用方属性。禁用的字段仍能聚焦,但除了聚焦和失焦不运行调用方的处理函数
46
+ * (spec:AST-085 FR2);忙碌时也不接点击。语言写出来的日期按这门语言的方向排,
47
+ * 调用方给的 `dir` 优先,对齐仍跟页面(date-input.css)。
48
+ */
49
+ function dateFieldAttrs(forwarded, state) {
50
+ const attrs = withholdCallerHandlers(forwarded, state.isDisabled);
51
+ if (state.isLocked) delete attrs.onClick;
52
+ return {
53
+ ...attrs,
54
+ dir: attrs.dir ?? getLocaleDirection(state.locale)
55
+ };
56
+ }
57
+ //#endregion
41
58
  //#region src/DateInput/DateInputPassThrough.ts
42
59
  /** 没有标签、说明和状态时代替 Field 的外壳:只渲染默认插槽,不加任何元素。 */
43
60
  var DateInputPassThrough_default = defineComponent({
@@ -1178,8 +1195,9 @@ const _hoisted_5$3 = [
1178
1195
  "aria-busy"
1179
1196
  ];
1180
1197
  const _hoisted_6$2 = ["data-placeholder"];
1181
- const _hoisted_7$2 = ["aria-label"];
1182
- const _hoisted_8$2 = {
1198
+ const _hoisted_7$2 = ["dir"];
1199
+ const _hoisted_8$2 = ["aria-label"];
1200
+ const _hoisted_9$1 = {
1183
1201
  class: "astryx-date-input-alert",
1184
1202
  role: "alert"
1185
1203
  };
@@ -1491,7 +1509,10 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
1491
1509
  class: "astryx-date-input-overlay",
1492
1510
  "data-placeholder": __props.modelValue ? void 0 : "true",
1493
1511
  "aria-hidden": "true"
1494
- }, toDisplayString(overlay.value), 9, _hoisted_6$2)]),
1512
+ }, [createCommentVNode(" 叠在原生框上的文字按语言的方向排,位置仍跟页面。 "), createElementVNode("span", {
1513
+ class: "astryx-date-input-overlay-text",
1514
+ dir: unref(getLocaleDirection)(unref(locale))
1515
+ }, toDisplayString(overlay.value), 9, _hoisted_7$2)], 8, _hoisted_6$2)]),
1495
1516
  showsClear.value ? (openBlock(), createElementBlock("button", {
1496
1517
  key: 0,
1497
1518
  type: "button",
@@ -1502,7 +1523,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
1502
1523
  }, [createVNode(_sfc_main$6, {
1503
1524
  icon: "close",
1504
1525
  size: "sm"
1505
- })], 8, _hoisted_7$2)) : createCommentVNode("v-if", true),
1526
+ })], 8, _hoisted_8$2)) : createCommentVNode("v-if", true),
1506
1527
  busy.value ? (openBlock(), createBlock(_sfc_main$10, {
1507
1528
  key: 1,
1508
1529
  size: "sm",
@@ -1511,7 +1532,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
1511
1532
  key: 2,
1512
1533
  type: statusType.value
1513
1534
  }, null, 8, ["type"])) : createCommentVNode("v-if", true)
1514
- ], 8, _hoisted_2$4), createElementVNode("div", _hoisted_8$2, toDisplayString(alertMessage.value), 1)], 46, _hoisted_1$4)]),
1535
+ ], 8, _hoisted_2$4), createElementVNode("div", _hoisted_9$1, toDisplayString(alertMessage.value), 1)], 46, _hoisted_1$4)]),
1515
1536
  _: 1
1516
1537
  }, 8, [
1517
1538
  "class",
@@ -3029,9 +3050,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
3029
3050
  ].filter(Boolean).join(" ") || void 0;
3030
3051
  }
3031
3052
  function inputAttrs() {
3032
- const forwarded = parts.forwardedAttrs();
3033
- if (locked.value) delete forwarded.onClick;
3034
- return forwarded;
3053
+ return dateFieldAttrs(parts.forwardedAttrs(), {
3054
+ isDisabled: isDisabled.value,
3055
+ isLocked: locked.value,
3056
+ locale: locale.value
3057
+ });
3035
3058
  }
3036
3059
  function onInput(event) {
3037
3060
  if (useSheet.value || locked.value || event instanceof InputEvent && event.isComposing) return;
@@ -1,2 +1,2 @@
1
- import { $a as _default, eo as DateRange, no as DateRangeInputProps, ro as DateRangePreset, to as DateRangeInputEmits } from "../index-BkjD7Pn0.js";
1
+ import { $a as _default, eo as DateRange, no as DateRangeInputProps, ro as DateRangePreset, to as DateRangeInputEmits } from "../index-zHX0wDmq.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-zGzYdcfZ.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-PnBK_G5d.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -1,181 +1,63 @@
1
- import { t as _sfc_main$2 } from "./Icon-B7x-V572.js";
1
+ import { t as _sfc_main$1 } from "./Icon-B7x-V572.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { t as _sfc_main$3 } from "./VisuallyHidden-cpmsV-0M.js";
4
- import { t as _sfc_main$4 } from "./ButtonTooltip-ZpQP-aQg.js";
3
+ import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
4
+ import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
5
5
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
6
6
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
7
+ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
8
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
8
- import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-D1Szw54e.js";
9
- import { t as _sfc_main$5 } from "./FieldIcon-COfz-h_b.js";
10
- import { t as _sfc_main$6 } from "./IconButton-CXAXoL8g.js";
11
- import { a as todayISODate } from "./useMonthGrid-Bzvlstgc.js";
9
+ import { a as isRangeWithinSpan, r as formatDateRange, t as applyRangeClick } from "./useDateRange-vYk0K9ML.js";
10
+ import { t as _sfc_main$4 } from "./FieldIcon-COfz-h_b.js";
11
+ import { t as _sfc_main$5 } from "./IconButton-BilMzjDj.js";
12
12
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
13
13
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
14
14
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
15
15
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
16
- import { t as _sfc_main$7 } from "./Spinner-dCnyObWk.js";
16
+ import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
17
17
  import { F as plainDateToday, h as plainDateCreate, i as DATE_FORMAT_SHORT, o as DATE_FORMAT_SHORT_WITH_YEAR, y as plainDateFromDate } from "./plainDate-By2VjeSI.js";
18
18
  import { a as calendarAddMonths, f as calendarMonthOf, g as calendarYearMonthOf, r as useCalendarSystem, y as isGregorianCalendar } from "./calendar-B1G5O29s.js";
19
- import { a as standaloneShortWeekdayNames, n as formatDayNumber, o as weekdayNames } from "./format--_j64_yo.js";
20
- import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
21
- import { i as formatCalendarMonthLabel, n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
22
- import { t as buildMonthWeeks } from "./useCalendarGrid-Bz7NJmA3.js";
19
+ import { n as formatCalendarDate } from "./calendarFormat-CbxpwgAe.js";
23
20
  import { a as useAriaRequired } from "./context-CrVCeUUK.js";
24
- import { t as _sfc_main$8 } from "./Field-2ypSh8vl.js";
21
+ import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
25
22
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
26
- import { t as _sfc_main$9 } from "./Popover-DGVQ7Xiz.js";
23
+ import { t as _sfc_main$8 } from "./Popover-CgyIJd4u.js";
27
24
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
28
- import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
29
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
30
- import "../styles/calendar.css";
31
- import "../styles/date-range-input.css";
25
+ import { t as dateRangeInputMessages } from "./date-range-input-BjM7wgeD.js";
26
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderList, resolveDynamicComponent, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
32
27
  import "../styles/bordered-control.css";
33
- //#region src/DateRangeInput/RangeCalendar.vue
34
- const _hoisted_1$1 = { class: "astryx-calendar astryx-date-range-calendar" };
35
- const _hoisted_2$1 = { class: "astryx-calendar-header" };
36
- const _hoisted_3$1 = ["aria-label"];
37
- const _hoisted_4$1 = { class: "astryx-calendar-month-year" };
38
- const _hoisted_5$1 = ["aria-label"];
39
- const _hoisted_6$1 = { class: "astryx-date-range-months" };
40
- const _hoisted_7 = { class: "astryx-calendar-weekdays" };
41
- const _hoisted_8 = ["aria-label"];
42
- const _hoisted_9 = [
43
- "aria-disabled",
44
- "aria-pressed",
45
- "aria-current",
46
- "onClick",
47
- "onMouseenter",
48
- "onFocus"
49
- ];
50
- const _hoisted_10 = { class: "astryx-calendar-day" };
51
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
52
- __name: "RangeCalendar",
53
- props: /*@__PURE__*/ mergeModels({
54
- cursor: {},
55
- calendar: {},
56
- monthCount: { default: 2 },
57
- range: { default: null },
58
- pending: { default: null },
59
- min: {},
60
- max: {},
61
- minRangeSpan: { default: 1 },
62
- maxRangeSpan: {},
63
- weekStartsOn: {},
64
- dateConstraints: {}
65
- }, {
66
- "hover": { default: null },
67
- "hoverModifiers": {}
68
- }),
69
- emits: /*@__PURE__*/ mergeModels(["select", "shift"], ["update:hover"]),
70
- setup(__props, { emit: __emit }) {
71
- const props = __props;
72
- const emit = __emit;
73
- const locale = useAstryxLocale();
74
- const messages = useComponentMessages({ calendar: calendarMessages });
75
- const hover = useModel(__props, "hover");
76
- const today = todayISODate();
77
- const weekStart = computed(() => resolveWeekStart(props.weekStartsOn ?? (locale.value === "zh-CN" ? 1 : 0)));
78
- const weekDays = computed(() => {
79
- const names = standaloneShortWeekdayNames(locale.value);
80
- const labels = weekdayNames(locale.value, "long");
81
- const start = weekStart.value;
82
- return Array.from({ length: 7 }, (_, index) => ({
83
- name: names[(index + start) % 7],
84
- label: labels[(index + start) % 7]
85
- }));
86
- });
87
- const months = computed(() => {
88
- const first = calendarMonthOf(props.calendar, props.cursor);
89
- return Array.from({ length: props.monthCount }, (_, index) => {
90
- const month = calendarAddMonths(props.calendar, first, index);
91
- return {
92
- key: `${month.start.year}-${month.start.month}-${month.start.day}`,
93
- label: formatCalendarMonthLabel(props.calendar, month, locale.value),
94
- weeks: buildMonthWeeks(props.calendar, month, weekStart.value)
95
- };
96
- });
97
- });
98
- const headerLabel = computed(() => months.value.map((month) => month.label).join(" – "));
99
- const preview = computed(() => {
100
- if (props.pending && hover.value && hover.value !== props.pending) return orderRange(props.pending, hover.value);
101
- return props.range;
102
- });
103
- function inSpan(day, range) {
104
- return range != null && day >= range.start && day <= range.end;
105
- }
106
- function dayDate(day) {
107
- const [year, month, date] = day.split("-").map(Number);
108
- return new Date(year, month - 1, date);
109
- }
110
- function isDisabled(day) {
111
- if (props.min && day < props.min) return true;
112
- if (props.max && day > props.max) return true;
113
- if (props.dateConstraints?.some((constraint) => !constraint(dayDate(day)))) return true;
114
- return isDayOutsideSpan(props.pending, day, props.minRangeSpan, props.maxRangeSpan);
28
+ import "../styles/date-range-input.css";
29
+ //#region src/DateRangeInput/rangeCalendarLoader.ts
30
+ /**
31
+ * 日期范围弹层里的月历按需加载:字段第一次有了打开的意图(鼠标或笔移进来、聚焦、按下)才请求,
32
+ * 只放着字段的页面不加载月历。加载好以后 `rangeCalendar` 就是月历组件。
33
+ */
34
+ const rangeCalendar = shallowRef(null);
35
+ let loading = null;
36
+ let hasWarned = false;
37
+ /**
38
+ * 加载月历,返回是否加载成功。失败时开发期警告一次,并且不记住这次失败,
39
+ * 下一次意图或打开会重新请求。
40
+ */
41
+ function loadRangeCalendar() {
42
+ if (rangeCalendar.value != null) return Promise.resolve(true);
43
+ loading ??= import("./RangeCalendar-pTEnYJqX.js").then((module) => {
44
+ rangeCalendar.value = module.default;
45
+ return true;
46
+ }, () => {
47
+ if (!hasWarned) {
48
+ hasWarned = true;
49
+ devWarn("DateRangeInput", "The calendar could not load. Reload the page if it doesn't come back.");
115
50
  }
116
- return (_ctx, _cache) => {
117
- return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [
118
- createElementVNode("button", {
119
- type: "button",
120
- class: "astryx-calendar-nav-button",
121
- "aria-label": unref(messages).calendar.previousMonth,
122
- onClick: _cache[0] || (_cache[0] = ($event) => emit("shift", -1))
123
- }, [createVNode(_sfc_main$2, {
124
- icon: "chevronLeft",
125
- size: "sm"
126
- })], 8, _hoisted_3$1),
127
- createElementVNode("span", _hoisted_4$1, toDisplayString(headerLabel.value), 1),
128
- createElementVNode("button", {
129
- type: "button",
130
- class: "astryx-calendar-nav-button",
131
- "aria-label": unref(messages).calendar.nextMonth,
132
- onClick: _cache[1] || (_cache[1] = ($event) => emit("shift", 1))
133
- }, [createVNode(_sfc_main$2, {
134
- icon: "chevronRight",
135
- size: "sm"
136
- })], 8, _hoisted_5$1)
137
- ]), createElementVNode("div", _hoisted_6$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
138
- return openBlock(), createElementBlock("div", {
139
- key: month.key,
140
- class: "astryx-date-range-month"
141
- }, [createElementVNode("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
142
- return openBlock(), createElementBlock("div", {
143
- key: day.label,
144
- class: "astryx-calendar-weekday",
145
- "aria-label": day.label
146
- }, toDisplayString(day.name), 9, _hoisted_8);
147
- }), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(month.weeks, (week, weekIndex) => {
148
- return openBlock(), createElementBlock("div", {
149
- key: weekIndex,
150
- class: "astryx-calendar-row"
151
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (cell) => {
152
- return openBlock(), createElementBlock("button", {
153
- key: cell.iso,
154
- type: "button",
155
- class: normalizeClass(["astryx-calendar-cell", {
156
- "is-other-month": cell.outside,
157
- "is-today": cell.iso === unref(today),
158
- "is-selected": cell.iso === preview.value?.start || cell.iso === preview.value?.end || cell.iso === __props.pending,
159
- "is-in-range": inSpan(cell.iso, preview.value),
160
- "is-range-start": cell.iso === preview.value?.start,
161
- "is-range-end": cell.iso === preview.value?.end,
162
- "is-disabled": isDisabled(cell.iso)
163
- }]),
164
- "aria-disabled": isDisabled(cell.iso) || void 0,
165
- "aria-pressed": cell.iso === preview.value?.start || cell.iso === preview.value?.end || void 0,
166
- "aria-current": cell.iso === unref(today) ? "date" : void 0,
167
- onClick: ($event) => isDisabled(cell.iso) ? void 0 : emit("select", cell.iso),
168
- onMouseenter: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
169
- onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
170
- onFocus: ($event) => hover.value = isDisabled(cell.iso) ? null : cell.iso,
171
- onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null)
172
- }, [createElementVNode("span", _hoisted_10, toDisplayString(unref(formatDayNumber)(cell.day, unref(locale))), 1)], 42, _hoisted_9);
173
- }), 128))]);
174
- }), 128))]);
175
- }), 128))])]);
176
- };
177
- }
178
- });
51
+ return false;
52
+ }).finally(() => {
53
+ loading = null;
54
+ });
55
+ return loading;
56
+ }
57
+ /** 月历已经加载好。 */
58
+ function isRangeCalendarLoaded() {
59
+ return rangeCalendar.value != null;
60
+ }
179
61
  //#endregion
180
62
  //#region src/DateRangeInput/rangeDisplay.ts
181
63
  /** 范围里的 `YYYY-MM-DD` 读成公历日期。 */
@@ -185,16 +67,16 @@ function rangeDay(iso) {
185
67
  }
186
68
  /**
187
69
  * 按钮上的范围文字。两端和今天在同一个历法年时省掉年份;今天还不知道(服务端渲染、水合)时写出年份。
188
- * 公历沿用 `formatDateRange` 的写法。
70
+ * 公历沿用 `formatDateRange` 的写法。`join` 是内置文案里把两端写成一句的那条(rangeValue)。
189
71
  */
190
- function formatRangeDisplay(range, locale, calendar, today) {
191
- if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null);
72
+ function formatRangeDisplay(range, locale, calendar, today, join) {
73
+ if (isGregorianCalendar(calendar)) return formatDateRange(range, locale, today?.getFullYear() ?? null, join);
192
74
  if (range == null) return "";
193
75
  const start = rangeDay(range.start);
194
76
  const end = rangeDay(range.end);
195
77
  const yearOf = (pd) => calendarYearMonthOf(calendar, calendarMonthOf(calendar, pd)).year;
196
78
  const options = today != null && yearOf(start) === yearOf(end) && yearOf(start) === yearOf(plainDateFromDate(today)) ? DATE_FORMAT_SHORT : DATE_FORMAT_SHORT_WITH_YEAR;
197
- return `${formatCalendarDate(calendar, start, options, locale)} – ${formatCalendarDate(calendar, end, options, locale)}`;
79
+ return join(formatCalendarDate(calendar, start, options, locale), formatCalendarDate(calendar, end, options, locale));
198
80
  }
199
81
  //#endregion
200
82
  //#region src/DateRangeInput/DateRangeInput.vue
@@ -345,9 +227,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
345
227
  onMounted(() => {
346
228
  today.value ??= /* @__PURE__ */ new Date();
347
229
  });
348
- const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value));
230
+ const display = computed(() => formatRangeDisplay(model.value, locale.value, calendar.value, today.value, messages.value.dateRangeInput.rangeValue));
349
231
  const placeholder = computed(() => props.placeholder ?? messages.value.dateRangeInput.placeholder);
350
232
  const clearLabel = computed(() => props.clearLabel ?? messages.value.dateRangeInput.clear(props.label));
233
+ const triggerLabel = computed(() => messages.value.dateRangeInput.triggerLabel(props.label, display.value || placeholder.value));
351
234
  function commit(value) {
352
235
  if (locked.value) return;
353
236
  model.value = value;
@@ -366,6 +249,45 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
366
249
  function onShift(amount) {
367
250
  cursor.value = calendarAddMonths(calendar.value, calendarMonthOf(calendar.value, cursor.value), amount).start;
368
251
  }
252
+ let isOpenHeld = false;
253
+ function onHeldOutsidePress(event) {
254
+ const field = containerRef.value;
255
+ if (field != null && event.target instanceof Node && !field.contains(event.target)) dropHeldOpen();
256
+ }
257
+ function dropHeldOpen() {
258
+ isOpenHeld = false;
259
+ document.removeEventListener("pointerdown", onHeldOutsidePress, true);
260
+ }
261
+ function holdOpenUntilLoaded() {
262
+ if (isOpenHeld) return;
263
+ isOpenHeld = true;
264
+ document.addEventListener("pointerdown", onHeldOutsidePress, true);
265
+ loadRangeCalendar().then((isLoaded) => {
266
+ if (!isOpenHeld) return;
267
+ dropHeldOpen();
268
+ if (isLoaded && !locked.value && containerRef.value?.isConnected === true) onOpenChange(true);
269
+ });
270
+ }
271
+ onBeforeUnmount(dropHeldOpen);
272
+ function onFieldFocusOut(event) {
273
+ const next = event.relatedTarget;
274
+ if (isOpenHeld && next instanceof Node && !event.currentTarget.contains(next)) dropHeldOpen();
275
+ }
276
+ function onFieldKeydown(event) {
277
+ if (event.key === "Escape" && isOpenHeld) dropHeldOpen();
278
+ else if ((event.key === "Enter" || event.key === " ") && event.target?.classList.contains("astryx-date-range-trigger")) requestOpenBeforeLoad();
279
+ }
280
+ function preloadCalendar() {
281
+ loadRangeCalendar();
282
+ }
283
+ function onFieldPointerEnter(event) {
284
+ disabledTooltip.onPointerEnter();
285
+ if (event.pointerType !== "touch") preloadCalendar();
286
+ }
287
+ const isCalendarReady = computed(() => rangeCalendar.value != null);
288
+ function requestOpenBeforeLoad() {
289
+ if (!locked.value && !open.value && !isRangeCalendarLoaded()) holdOpenUntilLoaded();
290
+ }
369
291
  function onOpenChange(next) {
370
292
  open.value = next;
371
293
  if (next && model.value) {
@@ -394,16 +316,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
394
316
  function triggerAttrs() {
395
317
  const forwarded = parts.forwardedAttrs();
396
318
  if (locked.value) delete forwarded.onClick;
397
- return forwarded;
319
+ return {
320
+ "aria-label": triggerLabel.value,
321
+ ...forwarded
322
+ };
398
323
  }
399
324
  function onTriggerClick(event) {
400
- if (!locked.value) return;
325
+ if (!locked.value) {
326
+ requestOpenBeforeLoad();
327
+ return;
328
+ }
401
329
  event.preventDefault();
402
330
  event.stopImmediatePropagation();
403
331
  }
404
332
  return (_ctx, _cache) => {
405
333
  return openBlock(), createElementBlock(Fragment, null, [
406
- createVNode(_sfc_main$8, {
334
+ createVNode(_sfc_main$7, {
407
335
  class: normalizeClass(unref(parts).containerClass.value),
408
336
  style: normalizeStyle(unref(parts).containerStyle.value),
409
337
  label: __props.label,
@@ -418,9 +346,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
418
346
  status: __props.status,
419
347
  "status-variant": __props.statusVariant
420
348
  }, {
421
- default: withCtx((field) => [createVNode(_sfc_main$9, {
349
+ default: withCtx((field) => [createVNode(_sfc_main$8, {
422
350
  "is-open": open.value,
423
- "is-enabled": !locked.value,
351
+ "is-enabled": !locked.value && isCalendarReady.value,
424
352
  placement: "below",
425
353
  alignment: "start",
426
354
  padding: 0,
@@ -443,7 +371,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
443
371
  "aria-disabled": presetDisabled(preset) || void 0,
444
372
  onClick: ($event) => applyPreset(preset)
445
373
  }, toDisplayString(preset.label), 9, _hoisted_6);
446
- }), 128))])) : createCommentVNode("v-if", true), open.value ? (openBlock(), createBlock(_sfc_main$1, {
374
+ }), 128))])) : createCommentVNode("v-if", true), open.value && unref(rangeCalendar) ? (openBlock(), createBlock(resolveDynamicComponent(unref(rangeCalendar)), {
447
375
  key: 1,
448
376
  cursor: cursor.value,
449
377
  calendar: unref(calendar),
@@ -458,7 +386,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
458
386
  "week-starts-on": __props.weekStartsOn,
459
387
  onSelect,
460
388
  onShift
461
- }, null, 8, [
389
+ }, null, 40, [
462
390
  "cursor",
463
391
  "calendar",
464
392
  "month-count",
@@ -479,8 +407,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
479
407
  "data-size": unref(size),
480
408
  "data-status": __props.status?.type,
481
409
  "data-disabled": locked.value || void 0,
482
- onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
483
- onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
410
+ onPointerenter: onFieldPointerEnter,
411
+ onPointerdown: preloadCalendar,
412
+ onFocusin: preloadCalendar,
413
+ onFocusout: onFieldFocusOut,
414
+ onKeydown: onFieldKeydown,
415
+ onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
484
416
  }, [
485
417
  createElementVNode("button", mergeProps(triggerAttrs(), {
486
418
  id: inputId.value,
@@ -498,7 +430,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
498
430
  onClick: onTriggerClick,
499
431
  onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
500
432
  onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args))
501
- }), [createVNode(_sfc_main$2, {
433
+ }), [createVNode(_sfc_main$1, {
502
434
  class: "astryx-date-range-icon",
503
435
  icon: "calendar",
504
436
  size: "sm"
@@ -506,7 +438,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
506
438
  class: "astryx-date-range-value",
507
439
  "data-placeholder": !display.value || void 0
508
440
  }, toDisplayString(display.value || placeholder.value), 9, _hoisted_3)], 16, _hoisted_2),
509
- __props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$6, {
441
+ __props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$5, {
510
442
  key: 0,
511
443
  class: "astryx-input-clear-button",
512
444
  variant: "ghost",
@@ -514,14 +446,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
514
446
  label: clearLabel.value,
515
447
  onClick: clear
516
448
  }, {
517
- default: withCtx(() => [createVNode(_sfc_main$5, { type: "clear" })]),
449
+ default: withCtx(() => [createVNode(_sfc_main$4, { type: "clear" })]),
518
450
  _: 1
519
451
  }, 8, ["label"])) : createCommentVNode("v-if", true),
520
- busy.value ? (openBlock(), createBlock(_sfc_main$7, {
452
+ busy.value ? (openBlock(), createBlock(_sfc_main$6, {
521
453
  key: 1,
522
454
  size: "sm",
523
455
  "aria-hidden": "true"
524
- })) : __props.status ? (openBlock(), createBlock(_sfc_main$5, {
456
+ })) : __props.status ? (openBlock(), createBlock(_sfc_main$4, {
525
457
  key: 2,
526
458
  type: __props.status.type
527
459
  }, null, 8, ["type"])) : createCommentVNode("v-if", true)
@@ -548,14 +480,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
548
480
  "status",
549
481
  "status-variant"
550
482
  ]),
551
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
483
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
552
484
  key: 0,
553
485
  id: disabledMessageId
554
486
  }, {
555
487
  default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
556
488
  _: 1
557
489
  })) : createCommentVNode("v-if", true),
558
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$4, {
490
+ showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
559
491
  key: 1,
560
492
  id: `${disabledMessageId}-tooltip`,
561
493
  anchor: containerRef.value,
@@ -1,2 +1,2 @@
1
- import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-BkjD7Pn0.js";
1
+ import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-zHX0wDmq.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-BWqBtee7.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-DPoTqJ36.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -5,7 +5,7 @@ import { t as CUT_TEXT_PAGE_ALIGN_CLASS } from "./textDirection-C_CScrt5.js";
5
5
  import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
6
6
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
7
7
  import { t as _sfc_main$4 } from "./FieldIcon-COfz-h_b.js";
8
- import { t as _sfc_main$5 } from "./IconButton-CXAXoL8g.js";
8
+ import { t as _sfc_main$5 } from "./IconButton-BilMzjDj.js";
9
9
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
10
10
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
11
11
  import { a as resolveHourFormat } from "./timeFormat-Cnd5vu5t.js";
@@ -15,11 +15,11 @@ import { t as _sfc_main$6 } from "./Spinner-dCnyObWk.js";
15
15
  import { t as _sfc_main$7 } from "./Field-2ypSh8vl.js";
16
16
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
17
17
  import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
18
- import { i as formatCommittedDate, n as useCalendarPresentation, r as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-UvbTAr_0.js";
18
+ import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
19
+ import { i as formatCommittedDate, n as useCalendarPresentation, r as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-D78SOx0f.js";
19
20
  import { c as resolvePickerPresentation } from "./inputPresentation-Br70N2eS.js";
20
21
  import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
21
- import { t as getLocaleDirection } from "./direction-nWTDB0Ko.js";
22
- import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-DNZroMry.js";
22
+ import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-Ni4p7bg4.js";
23
23
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
24
24
  import "../styles/date-time-input.css";
25
25
  //#region src/DateTimeInput/TouchDateTimeField.vue
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main } from "../Dialog--SFgs-bT.js";
2
- import { t as _sfc_main$1 } from "../DialogHeader-CsuqB8Tf.js";
3
- import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-BYiOO5UP.js";
1
+ import { t as _sfc_main } from "../Dialog-PyGSnp1J.js";
2
+ import { t as _sfc_main$1 } from "../DialogHeader-CT4gkqfm.js";
3
+ import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-CPW0FBYo.js";
4
4
  export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useDialogContext, useImperativeDialog };
@@ -1,5 +1,5 @@
1
1
  import { i as DIALOG_CONTEXT_KEY } from "./position-BHOceBaS.js";
2
- import { t as _sfc_main } from "./Dialog--SFgs-bT.js";
2
+ import { t as _sfc_main } from "./Dialog-PyGSnp1J.js";
3
3
  import { defineComponent, h, inject, readonly, ref, shallowRef } from "vue";
4
4
  //#region src/Dialog/useDialogContext.ts
5
5
  /**
@@ -3,7 +3,7 @@ import { n as provideLayerMountTarget } from "./mount-7R_s-bHB.js";
3
3
  import { r as themeReducesMotion } from "./reducedMotionMark-D3dxwdiR.js";
4
4
  import { t as useFocusTrap } from "./useFocusTrap-DhhwiBEF.js";
5
5
  import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
6
- import { t as holdEntranceInput } from "./holdEntranceInput-Cs656CnM.js";
6
+ import { t as holdEntranceInput } from "./holdEntranceInput-DK89Ky_U.js";
7
7
  import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-BAx26jXH.js";
8
8
  import { n as createModalOutletHandle } from "./modalOutlet-C2nqIYUt.js";
9
9
  import { t as useBackdropPress } from "./useBackdropPress-DmQKlVSk.js";
@@ -1,5 +1,5 @@
1
1
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
2
- import { t as _sfc_main$1 } from "./IconButton-CXAXoL8g.js";
2
+ import { t as _sfc_main$1 } from "./IconButton-BilMzjDj.js";
3
3
  import { s as useLayoutArea } from "./context-D-Hwh-Jf.js";
4
4
  import { i as DIALOG_CONTEXT_KEY } from "./position-BHOceBaS.js";
5
5
  import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
@@ -1,2 +1,2 @@
1
- import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-BkjD7Pn0.js";
1
+ import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-zHX0wDmq.js";
2
2
  export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-BQfvjMZQ.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-BkU8kiAU.js";
2
2
  export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };