@astryx-vue/core 0.13.1 → 0.14.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 (285) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CsdgJDLK.js → AlertDialog-BOyx3Owt.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-CE5Up5SI.js → AppShell-CHN80IBy.js} +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-D5CFSkAG.js → Avatar-B-dg3imS.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-B4IEG4Fx.js → Banner-qEMqg2D8.js} +1 -1
  12. package/dist/BottomSheet/index.js +2 -2
  13. package/dist/{BottomSheet-D67lQ3Lo.js → BottomSheet-CFrcT1Lr.js} +3 -3
  14. package/dist/{BottomSheet-UctSPL-g.js → BottomSheet-qD8zeVYQ.js} +3 -3
  15. package/dist/Breadcrumbs/index.js +1 -1
  16. package/dist/{Breadcrumbs-By21sIml.js → Breadcrumbs-61TGNa4M.js} +1 -1
  17. package/dist/Button/index.d.ts +1 -1
  18. package/dist/Button/index.js +1 -1
  19. package/dist/{Button-CfbR2oPc.js → Button-47s3ZBYa.js} +2 -2
  20. package/dist/ButtonGroup/index.d.ts +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-DwFAzDky.js → Calendar-D029GXOJ.js} +1 -1
  24. package/dist/Card/index.d.ts +1 -1
  25. package/dist/Carousel/index.d.ts +1 -1
  26. package/dist/Carousel/index.js +1 -1
  27. package/dist/{Carousel-mL_KdBMw.js → Carousel-CYjVpChx.js} +1 -1
  28. package/dist/Center/index.d.ts +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-C10BQlIl.js → Chat-BfekV9OQ.js} +5 -5
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-BGqRMoEA.js → CheckboxInput-Cr0qhZpZ.js} +2 -2
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxList-DbMhC06M.js → CheckboxList-DOAdqkXD.js} +4 -4
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/Code/index.d.ts +1 -1
  40. package/dist/Code/index.js +1 -1
  41. package/dist/{CodeBlock-DAlWY51H.js → CodeBlock-CuNiGAhQ.js} +1 -1
  42. package/dist/Collapsible/index.d.ts +1 -1
  43. package/dist/CommandPalette/index.js +1 -1
  44. package/dist/{CommandPalette-DYk_FyFB.js → CommandPalette-DU4VBuWx.js} +1 -1
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-NDpRucQB.js → ComplexSelector-CdeoaX2o.js} +3 -3
  47. package/dist/ContextMenu/index.d.ts +1 -1
  48. package/dist/ContextMenu/index.js +1 -1
  49. package/dist/{ContextMenu-JDU4HDKm.js → ContextMenu-Cw34CTey.js} +5 -5
  50. package/dist/DateInput/index.d.ts +2 -2
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-DVEb1-fM.js → DateInput-vxaVpM2X.js} +562 -123
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-OuAz80nR.js → DateRangeInput-X5VDZkfk.js} +14 -11
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-J5CFTSSa.js → DateTimeInput-B8HeL3dk.js} +19 -11
  59. package/dist/Dialog/index.d.ts +1 -1
  60. package/dist/Dialog/index.js +3 -3
  61. package/dist/{Dialog-C0WuGDqP.js → Dialog-CprMsTku.js} +3 -3
  62. package/dist/{Dialog-Cm8CXGpI.js → Dialog-DCsuevxA.js} +1 -1
  63. package/dist/{DialogHeader-BD2Ezw4F.js → DialogHeader-DyMQBW1_.js} +2 -2
  64. package/dist/Divider/index.d.ts +1 -1
  65. package/dist/Drawer/index.d.ts +1 -1
  66. package/dist/Drawer/index.js +1 -1
  67. package/dist/{Drawer-CFpcRHt7.js → Drawer-BkFF7krL.js} +2 -2
  68. package/dist/DropdownMenu/index.js +2 -2
  69. package/dist/{DropdownMenu-2QRvY0aP.js → DropdownMenu-DEEcKIHY.js} +6 -6
  70. package/dist/{DropdownMenu-5Mn01A-5.js → DropdownMenu-Dt88fMAT.js} +3 -3
  71. package/dist/EmptyState/index.js +1 -1
  72. package/dist/{EmptyState-CqUTEnGg.js → EmptyState-BS8ESteS.js} +2 -2
  73. package/dist/Field/index.js +3 -3
  74. package/dist/{Field-Cw8J8ld7.js → Field-Dxacpe9d.js} +2 -2
  75. package/dist/{FieldInfoTip-D7UNDNje.js → FieldInfoTip-DS4OAl2Q.js} +1 -1
  76. package/dist/{FieldLabel-CJbiefUx.js → FieldLabel-DjzTYhCM.js} +2 -2
  77. package/dist/FileInput/index.d.ts +1 -1
  78. package/dist/FileInput/index.js +1 -1
  79. package/dist/{FileInput-CgfiwVfs.js → FileInput-Dak2gIXU.js} +3 -3
  80. package/dist/FormLayout/index.d.ts +2 -2
  81. package/dist/FormLayout/index.js +1 -1
  82. package/dist/{FormLayout-B9dUB6Ps.js → FormLayout-CGJVeNsL.js} +5 -3
  83. package/dist/Heading/index.d.ts +1 -1
  84. package/dist/Heading/index.js +1 -1
  85. package/dist/{Heading-BO9n2vLl.js → Heading-BYB7QXkT.js} +1 -1
  86. package/dist/HoverCard/index.d.ts +1 -1
  87. package/dist/HoverCard/index.js +1 -1
  88. package/dist/{HoverCard-47J_i9AH.js → HoverCard-CtDr234t.js} +4 -4
  89. package/dist/IconButton/index.js +1 -1
  90. package/dist/{IconButton-DiDHiGbo.js → IconButton-DvgueAEp.js} +1 -1
  91. package/dist/InfoTip/index.d.ts +1 -1
  92. package/dist/InfoTip/index.js +1 -1
  93. package/dist/{InfoTip-ClRC1Hh9.js → InfoTip-DshbO5eW.js} +1 -1
  94. package/dist/{InputClearButton-DL4RM5z1.js → InputClearButton-DEb-bGsY.js} +1 -1
  95. package/dist/InputGroup/index.js +1 -1
  96. package/dist/{InputGroup-JMOrdsmu.js → InputGroup-DLu11Lsd.js} +1 -1
  97. package/dist/InternationalizationProvider/index.d.ts +1 -1
  98. package/dist/InternationalizationProvider/index.js +1 -1
  99. package/dist/{InternationalizationProvider-BYU2MRtX.js → InternationalizationProvider-CqCxB9ku.js} +1 -1
  100. package/dist/{LayerContentBoundary-CeebKoPB.js → LayerContentBoundary-Cx5xXZzg.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-kKjxYZ05.js → Lightbox-f_0_73Zi.js} +3 -3
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-CkbAlJ3-.js → Link-CFxZ9W2X.js} +1 -1
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/Markdown/index.js +1 -1
  108. package/dist/{Markdown-DXRFVNJd.js → Markdown-DTqTIKbq.js} +3 -3
  109. package/dist/MobileNav/index.js +1 -1
  110. package/dist/{MobileNavToggle-DUtvvHc7.js → MobileNavToggle-D_J_uTW-.js} +3 -3
  111. package/dist/MoreMenu/index.d.ts +1 -1
  112. package/dist/MoreMenu/index.js +1 -1
  113. package/dist/{MoreMenu-CEJ9E2eD.js → MoreMenu-BY1t1_QA.js} +4 -4
  114. package/dist/MultiSelector/index.d.ts +1 -1
  115. package/dist/MultiSelector/index.js +1 -1
  116. package/dist/{MultiSelector-DgWCWpnM.js → MultiSelector-BmdODQAC.js} +8 -7
  117. package/dist/{NavDisclosure-Bf5OFtwv.js → NavDisclosure-mXBWmRDC.js} +1 -1
  118. package/dist/{NavHeadingSurface-D5MpO-gO.js → NavHeadingSurface-foJo5bLT.js} +1 -1
  119. package/dist/NavItem/index.d.ts +1 -1
  120. package/dist/NavMenu/index.js +3 -3
  121. package/dist/{NavMenu-BcmUfk7z.js → NavMenu-CG9Bthba.js} +2 -2
  122. package/dist/{NavMenuItem-C9xk9KZk.js → NavMenuItem-BiFZUPxC.js} +1 -1
  123. package/dist/NumberInput/index.d.ts +1 -1
  124. package/dist/NumberInput/index.js +1 -1
  125. package/dist/{NumberInput-DNcE_HLD.js → NumberInput-BDNiEgzf.js} +5 -5
  126. package/dist/OverflowList/index.d.ts +1 -1
  127. package/dist/OverflowList/index.js +1 -1
  128. package/dist/{OverflowList-CeQT7MBd.js → OverflowList-CR96Nr5t.js} +2 -2
  129. package/dist/Overlay/index.d.ts +1 -1
  130. package/dist/Pagination/index.d.ts +1 -1
  131. package/dist/Pagination/index.js +1 -1
  132. package/dist/{Pagination-DJGQe6wH.js → Pagination-CA3yJwyk.js} +1 -1
  133. package/dist/{PickerWheel-CSwUYfes.js → PickerWheel-DNX3yrUd.js} +21 -8
  134. package/dist/Popover/index.d.ts +1 -1
  135. package/dist/Popover/index.js +1 -1
  136. package/dist/{Popover-C68nCirC.js → Popover-Mj71LwjH.js} +6 -6
  137. package/dist/PowerSearch/index.js +1 -1
  138. package/dist/{PowerSearch-C6lkutch.js → PowerSearch-CajkGExd.js} +18 -18
  139. package/dist/ProgressBar/index.d.ts +1 -1
  140. package/dist/ProgressBar/index.js +1 -1
  141. package/dist/{ProgressBar-MaDhabCm.js → ProgressBar-sGSCEtHC.js} +1 -1
  142. package/dist/Radio/index.d.ts +1 -1
  143. package/dist/Radio/index.js +1 -1
  144. package/dist/{RadioGroup-CLQLK_V7.js → RadioGroup-D58Fy-bM.js} +3 -3
  145. package/dist/RadioList/index.d.ts +1 -1
  146. package/dist/RadioList/index.js +1 -1
  147. package/dist/{RadioList-DfHTyqIQ.js → RadioList-u9PoRBXY.js} +1 -1
  148. package/dist/Resizable/index.d.ts +1 -1
  149. package/dist/ScrollableArea/index.d.ts +1 -1
  150. package/dist/SelectableCard/index.d.ts +1 -1
  151. package/dist/Selector/index.d.ts +1 -1
  152. package/dist/Selector/index.js +1 -1
  153. package/dist/{Selector-CPCoJ7Sb.js → Selector-jA_SESFs.js} +7 -6
  154. package/dist/SideNav/index.d.ts +1 -1
  155. package/dist/SideNav/index.js +1 -1
  156. package/dist/{SideNav-CV8MKVL-.js → SideNav-BgmpUELq.js} +5 -5
  157. package/dist/Slider/index.js +1 -1
  158. package/dist/{Slider-CHJ1CESd.js → Slider-Depy9L-Y.js} +2 -2
  159. package/dist/Stack/index.d.ts +1 -1
  160. package/dist/StatusDot/index.js +1 -1
  161. package/dist/{StatusDot-CGaRrl39.js → StatusDot-D0Wy2ggp.js} +1 -1
  162. package/dist/Switch/index.d.ts +1 -1
  163. package/dist/Switch/index.js +1 -1
  164. package/dist/{Switch-Bx9ezhrN.js → Switch-dD4OQLkI.js} +2 -2
  165. package/dist/TabList/index.d.ts +1 -1
  166. package/dist/TabList/index.js +1 -1
  167. package/dist/{TabList-o4t9vWvl.js → TabList-CoiyQidC.js} +1 -1
  168. package/dist/Table/index.d.ts +1 -1
  169. package/dist/Table/index.js +1 -1
  170. package/dist/{Table-CO2cYE8r.js → Table-Cb0ec1PS.js} +12 -12
  171. package/dist/Text/index.d.ts +1 -1
  172. package/dist/Text/index.js +1 -1
  173. package/dist/{Text-C6SB2hHJ.js → Text-BWSmB93V.js} +1 -1
  174. package/dist/TextArea/index.d.ts +1 -1
  175. package/dist/TextArea/index.js +1 -1
  176. package/dist/{TextArea-DVaDS_1K.js → TextArea-CbY2w_ic.js} +6 -6
  177. package/dist/TextInput/index.d.ts +1 -1
  178. package/dist/TextInput/index.js +1 -1
  179. package/dist/{TextInput-Dylfzj33.js → TextInput-C8f89GV8.js} +6 -6
  180. package/dist/Thumbnail/index.js +1 -1
  181. package/dist/{Thumbnail-BTQAYnWi.js → Thumbnail-DENhXd9-.js} +2 -2
  182. package/dist/{TimeField-B3JGgLuf.js → TimeField-DcZ9wYGn.js} +8 -8
  183. package/dist/TimeInput/index.d.ts +1 -1
  184. package/dist/TimeInput/index.js +1 -1
  185. package/dist/{TimeInput-Dmy6PxaD.js → TimeInput-DyiU7_IA.js} +3 -3
  186. package/dist/Timer/index.js +1 -1
  187. package/dist/{Timer-CN5BmaFS.js → Timer-CgBSMr9E.js} +1 -1
  188. package/dist/Timestamp/index.d.ts +1 -1
  189. package/dist/Timestamp/index.js +1 -1
  190. package/dist/{Timestamp-B7UcCEo2.js → Timestamp-B-VgG6l8.js} +3 -3
  191. package/dist/Toast/index.js +1 -1
  192. package/dist/{Toast-DCipbbCW.js → Toast-CRSZV9K-.js} +1 -1
  193. package/dist/ToggleButton/index.d.ts +1 -1
  194. package/dist/ToggleButton/index.js +1 -1
  195. package/dist/{ToggleButton-C78lrcdr.js → ToggleButton-Bm5IQUy5.js} +1 -1
  196. package/dist/Token/index.d.ts +1 -1
  197. package/dist/Tokenizer/index.d.ts +1 -1
  198. package/dist/Tokenizer/index.js +1 -1
  199. package/dist/{Tokenizer-D7B1ff3O.js → Tokenizer-DmjNQLDl.js} +6 -6
  200. package/dist/Toolbar/index.d.ts +1 -1
  201. package/dist/Tooltip/index.d.ts +1 -1
  202. package/dist/Tooltip/index.js +2 -2
  203. package/dist/{Tooltip-kQPfj3SE.js → Tooltip-BwrJVZ8X.js} +1 -1
  204. package/dist/TopNav/index.d.ts +1 -1
  205. package/dist/TopNav/index.js +1 -1
  206. package/dist/{TopNav-AGY785QI.js → TopNav-C3gyHUVv.js} +4 -4
  207. package/dist/TreeList/index.d.ts +1 -1
  208. package/dist/Typeahead/index.d.ts +1 -1
  209. package/dist/Typeahead/index.js +2 -2
  210. package/dist/{Typeahead-QWYeVsel.js → Typeahead-LdmEDCOU.js} +6 -6
  211. package/dist/busyAnnouncement-D3eGqdsf.js +88 -0
  212. package/dist/composables/index.d.ts +1 -1
  213. package/dist/composables/index.js +11 -11
  214. package/dist/{composables-CyKB3F8u.js → composables-Bi0Rt0Uj.js} +2 -2
  215. package/dist/{context-Cfml4jaK.js → context-DsNhYm5O.js} +6 -1
  216. package/dist/{date-input-CiEBtStM.js → date-input-rUD8YAow.js} +4 -0
  217. package/dist/{utils-BOmFijPc.js → dateParser-DS_a8Ej8.js} +1 -329
  218. package/dist/{fieldParts-CDOlBdy6.js → fieldParts-CbWvZLhH.js} +1 -1
  219. package/dist/{format-CiN0Dt_H.js → format-CMHyAMn3.js} +28 -1
  220. package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
  221. package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
  222. package/dist/{index-bgjrSSaT.d.ts → index-B449gOMC.d.ts} +3 -3
  223. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  224. package/dist/{index-D7YRtteD.d.ts → index-BHYhTZzp.d.ts} +1 -1
  225. package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
  226. package/dist/{index-CVs4A2QU.d.ts → index-BPymttXR.d.ts} +1 -0
  227. package/dist/{index-Dep8pgnU.d.ts → index-BbXwtkv6.d.ts} +3 -3
  228. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  229. package/dist/{index-CREW8ZiL.d.ts → index-C5VJoanX.d.ts} +3 -3
  230. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  231. package/dist/{index-ul1hNxih.d.ts → index-CLHJybQY.d.ts} +1 -1
  232. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  233. package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
  234. package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
  235. package/dist/{index-BWaO4-T-.d.ts → index-Cr9uPUc5.d.ts} +101 -55
  236. package/dist/{index-BzViSe8D.d.ts → index-D1J81rYJ.d.ts} +4 -4
  237. package/dist/{index-9YGUb_Ht.d.ts → index-DG7FmGCE.d.ts} +2 -2
  238. package/dist/{index-C90l2rH1.d.ts → index-DcisK4t8.d.ts} +11 -1
  239. package/dist/{index-BpprL2SN.d.ts → index-DfdtDWSP.d.ts} +5 -1
  240. package/dist/{index-CfoExOY_.d.ts → index-Dg0JsBpI.d.ts} +1 -1
  241. package/dist/{index-DS9SzqqJ.d.ts → index-Djf0M7PH.d.ts} +2 -2
  242. package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
  243. package/dist/{index-Cun6cXGP.d.ts → index-DpYJBFJj.d.ts} +2 -2
  244. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  245. package/dist/{index-Dc9_kBrU.d.ts → index-YfMHAQ_D.d.ts} +2 -2
  246. package/dist/{index-Dlq0cFK-.d.ts → index-dWlCpnua.d.ts} +3 -3
  247. package/dist/{index-DPhQZXYw.d.ts → index-eCp-ElSp.d.ts} +2 -2
  248. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  249. package/dist/{index-Bl_K_cRv.d.ts → index-wTwhcFQx.d.ts} +1 -1
  250. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  251. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  252. package/dist/index.d.ts +36 -36
  253. package/dist/index.js +94 -92
  254. package/dist/{layerDepth-BU_55vPr.js → layerDepth-I6d28O4d.js} +5 -2
  255. package/dist/{layerFocusReturn-DWGkSHXj.js → layerFocusReturn-BrS5RTx6.js} +1 -1
  256. package/dist/{loadCatalog-Kp7aQZpL.d.ts → loadCatalog-Cvf-xgDD.d.ts} +34 -27
  257. package/dist/{loadCatalog-BtQRPyzj.js → loadCatalog-DYuZZRtf.js} +1 -1
  258. package/dist/locale/index.d.ts +2 -2
  259. package/dist/locale/index.js +4 -4
  260. package/dist/{locale-DET_YkFW.js → locale-B-DrJCMs.js} +1 -1
  261. package/dist/{selectorEscape-LkWoVYQN.js → selectorEscape-FjiU_5WC.js} +3 -16
  262. package/dist/{stillPointerGate-BZ7KMJOB.js → stillPointerGate-DlAU_J_M.js} +1 -1
  263. package/dist/timeParser-D9tCF_b3.js +203 -0
  264. package/dist/{useDismiss-74dLMi5S.js → useDismiss-21Gk7uWk.js} +1 -1
  265. package/dist/{useFocusTrap-CyooA0OC.js → useFocusTrap-BFQ7Goue.js} +1 -1
  266. package/dist/{useHoverLayerDismiss-B1W5qIBx.js → useHoverLayerDismiss-Chfty2wT.js} +1 -1
  267. package/dist/{useInputStatusIcon-ZqCxDNTj.js → useInputStatusIcon-Yd0hvw5K.js} +1 -1
  268. package/dist/{useLayer-BnjrJ85F.js → useLayer-vK4-yRk_.js} +1 -1
  269. package/dist/{useMenuPress-BWq7kwWm.js → useMenuPress-9vsHzbRX.js} +1 -1
  270. package/dist/{useResizable-De4Xp3TD.js → useResizable-DYlc06-H.js} +1 -1
  271. package/dist/{useRestoreFocus-CSrI8x7v.js → useRestoreFocus-BhcXCJwM.js} +1 -1
  272. package/dist/useTimeValue-_XW9g2V1.js +52 -0
  273. package/dist/{useTooltip-uc-VLZ8I.js → useTooltip-DIg3ZE9P.js} +4 -4
  274. package/dist/{useTouchTriggerInternal-b-txblws.js → useTouchTriggerInternal-CrLW-7kT.js} +1 -1
  275. package/dist/{useTruncationTooltip-BVMCoNno.js → useTruncationTooltip-D9_lzxpF.js} +2 -2
  276. package/dist/{useTypeahead-BWj3xhbR.js → useTypeahead-CiLt-yEg.js} +1 -1
  277. package/dist/{useTypeaheadAnnouncement-DVkdWTWy.js → useTypeaheadAnnouncement-C59m2nSx.js} +1 -1
  278. package/dist/utils/index.js +3 -1
  279. package/dist/utils-BW62BpDR.js +135 -0
  280. package/package.json +1 -1
  281. package/styles/date-input.css +45 -3
  282. package/styles/date-range-input.css +7 -0
  283. package/styles/time-input.css +7 -0
  284. package/dist/useTimeValue-BJd0xBhG.js +0 -95
  285. package/dist/{index-J6YRJ7Ul.d.ts → index-CHx33xGa.d.ts} +1 -1
@@ -1,19 +1,6 @@
1
- import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
2
- import { t as useAnnounce } from "./announce-B210eJVf.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
3
2
  import { n as focusElement } from "./focus-x7mxEqjR.js";
4
- import { nextTick, onScopeDispose, toValue, watch } from "vue";
5
- //#region src/composables/internal/busyAnnouncement.ts
6
- /**
7
- * 控件里的忙碌 Spinner 只是装饰(不对读屏暴露),忙碌状态由控件自己播报:
8
- * 每次进入忙碌只念一次,重新渲染不重复,忙完之后再次忙碌会再念。
9
- */
10
- function useBusyAnnouncement(isBusy, message) {
11
- const announce = useAnnounce();
12
- watch(() => toValue(isBusy), (busy) => {
13
- if (busy) announce(toValue(message));
14
- }, { immediate: true });
15
- }
16
- //#endregion
3
+ import { nextTick, onScopeDispose, watch } from "vue";
17
4
  //#region src/Selector/selectorEscape.ts
18
5
  /** 弹出层关掉后,焦点回到触发按钮,而不是掉到 body。 */
19
6
  function focusSelectorTrigger(field) {
@@ -49,4 +36,4 @@ function bindListboxEscape(layer, onKeyDown) {
49
36
  onScopeDispose(() => layer.value?.removeEventListener("keydown", onKeyDown));
50
37
  }
51
38
  //#endregion
52
- export { useBusyAnnouncement as a, onSelectorListboxEscape as i, dismissSelectorEscape as n, focusSelectorTrigger as r, bindListboxEscape as t };
39
+ export { onSelectorListboxEscape as i, dismissSelectorEscape as n, focusSelectorTrigger as r, bindListboxEscape as t };
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-21Gk7uWk.js";
2
2
  import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
3
3
  import { computed, onMounted, ref, toValue, watch } from "vue";
4
4
  //#region src/Typeahead/useAnchoredListbox.ts
@@ -0,0 +1,203 @@
1
+ //#region src/utils/timeParser.ts
2
+ /**
3
+ * Validates and creates an ISOTimeString from a string.
4
+ * Returns null if the string is not a valid time format.
5
+ */
6
+ function createISOTimeString(value) {
7
+ const parsed = parseISOTime(value);
8
+ if (!parsed) return null;
9
+ return formatISOTime(parsed, value.split(":").length === 3);
10
+ }
11
+ /**
12
+ * Parses an ISO time string into a ParsedTime object.
13
+ * Accepts HH:MM or HH:MM:SS format.
14
+ */
15
+ function parseISOTime(time) {
16
+ if (!time) return null;
17
+ const parts = time.split(":");
18
+ if (parts.length < 2 || parts.length > 3) return null;
19
+ const hour = parseInt(parts[0], 10);
20
+ const minute = parseInt(parts[1], 10);
21
+ const second = parts.length === 3 ? parseInt(parts[2], 10) : 0;
22
+ if (Number.isNaN(hour) || Number.isNaN(minute) || Number.isNaN(second) || hour < 0 || hour > 23 || minute < 0 || minute > 59 || second < 0 || second > 59) return null;
23
+ return {
24
+ hour,
25
+ minute,
26
+ second
27
+ };
28
+ }
29
+ /**
30
+ * Formats a ParsedTime object into an ISOTimeString.
31
+ */
32
+ function formatISOTime(time, includeSeconds = false) {
33
+ const hh = time.hour.toString().padStart(2, "0");
34
+ const mm = time.minute.toString().padStart(2, "0");
35
+ if (includeSeconds) return `${hh}:${mm}:${time.second.toString().padStart(2, "0")}`;
36
+ return `${hh}:${mm}`;
37
+ }
38
+ /**
39
+ * Formats a time for display in 12-hour format.
40
+ * Example: "14:30" -> "2:30 PM"
41
+ */
42
+ function formatDisplayTime12h(time, includeSeconds = false) {
43
+ if (!time) return "";
44
+ const parsed = parseISOTime(time);
45
+ if (!parsed) return "";
46
+ const hour12 = parsed.hour === 0 ? 12 : parsed.hour > 12 ? parsed.hour - 12 : parsed.hour;
47
+ const meridiem = parsed.hour < 12 ? "AM" : "PM";
48
+ const mm = parsed.minute.toString().padStart(2, "0");
49
+ if (includeSeconds) return `${hour12}:${mm}:${parsed.second.toString().padStart(2, "0")} ${meridiem}`;
50
+ return `${hour12}:${mm} ${meridiem}`;
51
+ }
52
+ /**
53
+ * Formats a time for display in 24-hour format.
54
+ * Example: "14:30" -> "14:30"
55
+ */
56
+ function formatDisplayTime24h(time, includeSeconds = false) {
57
+ if (!time) return "";
58
+ const parsed = parseISOTime(time);
59
+ if (!parsed) return "";
60
+ const hh = parsed.hour.toString().padStart(2, "0");
61
+ const mm = parsed.minute.toString().padStart(2, "0");
62
+ if (includeSeconds) return `${hh}:${mm}:${parsed.second.toString().padStart(2, "0")}`;
63
+ return `${hh}:${mm}`;
64
+ }
65
+ /**
66
+ * Parses user input into an ISOTimeString.
67
+ * Accepts various formats:
68
+ * - "2:30 PM", "2:30pm", "2:30 pm"
69
+ * - "14:30", "1430"
70
+ * - "2pm", "2 PM"
71
+ */
72
+ function parseTimeInput(input, includeSeconds = false) {
73
+ if (!input) return null;
74
+ const trimmed = input.trim().toLowerCase();
75
+ const isPM = /p\.?m?\.?\s*$/i.test(trimmed);
76
+ const isAM = /a\.?m?\.?\s*$/i.test(trimmed);
77
+ const hasMeridiem = isPM || isAM;
78
+ const timeStr = trimmed.replace(/\s*[ap]\.?m?\.?\s*$/i, "").trim();
79
+ const convertHourTo24Hour = (hour) => {
80
+ if (!hasMeridiem) return hour;
81
+ if (hour < 1 || hour > 12) return null;
82
+ if (isPM && hour !== 12) return hour + 12;
83
+ if (isAM && hour === 12) return 0;
84
+ return hour;
85
+ };
86
+ if (/^\d{1,2}$/.test(timeStr)) {
87
+ const hour = parseInt(timeStr, 10);
88
+ if (hasMeridiem) {
89
+ const hour24 = convertHourTo24Hour(hour);
90
+ if (hour24 === null) return null;
91
+ return formatISOTime({
92
+ hour: hour24,
93
+ minute: 0,
94
+ second: 0
95
+ }, includeSeconds);
96
+ }
97
+ if (hour >= 0 && hour <= 23 && !hasMeridiem) return formatISOTime({
98
+ hour,
99
+ minute: 0,
100
+ second: 0
101
+ }, includeSeconds);
102
+ return null;
103
+ }
104
+ if (/^\d{4}$/.test(timeStr)) {
105
+ const hour = parseInt(timeStr.slice(0, 2), 10);
106
+ const minute = parseInt(timeStr.slice(2, 4), 10);
107
+ const hour24 = convertHourTo24Hour(hour);
108
+ if (hour24 !== null && hour24 >= 0 && hour24 <= 23 && minute >= 0 && minute <= 59) return formatISOTime({
109
+ hour: hour24,
110
+ minute,
111
+ second: 0
112
+ }, includeSeconds);
113
+ return null;
114
+ }
115
+ if (/^\d{6}$/.test(timeStr)) {
116
+ const hour = parseInt(timeStr.slice(0, 2), 10);
117
+ const minute = parseInt(timeStr.slice(2, 4), 10);
118
+ const second = parseInt(timeStr.slice(4, 6), 10);
119
+ const hour24 = convertHourTo24Hour(hour);
120
+ if (hour24 !== null && hour24 >= 0 && hour24 <= 23 && minute >= 0 && minute <= 59 && second >= 0 && second <= 59) return formatISOTime({
121
+ hour: hour24,
122
+ minute,
123
+ second
124
+ }, includeSeconds);
125
+ return null;
126
+ }
127
+ const colonParts = timeStr.split(":");
128
+ if (colonParts.length >= 2 && colonParts.length <= 3) {
129
+ let hour = parseInt(colonParts[0], 10);
130
+ const minute = parseInt(colonParts[1], 10);
131
+ const second = colonParts.length === 3 ? parseInt(colonParts[2], 10) : 0;
132
+ if (Number.isNaN(hour) || Number.isNaN(minute) || Number.isNaN(second)) return null;
133
+ if (minute < 0 || minute > 59 || second < 0 || second > 59) return null;
134
+ if (hasMeridiem) {
135
+ if (hour < 1 || hour > 12) return null;
136
+ if (isPM && hour !== 12) hour += 12;
137
+ if (isAM && hour === 12) hour = 0;
138
+ } else if (hour < 0 || hour > 23) return null;
139
+ return formatISOTime({
140
+ hour,
141
+ minute,
142
+ second
143
+ }, includeSeconds);
144
+ }
145
+ return null;
146
+ }
147
+ /**
148
+ * Compares two times. Returns:
149
+ * - negative if a < b
150
+ * - 0 if a === b
151
+ * - positive if a > b
152
+ */
153
+ function compareTime(a, b) {
154
+ if (!a && !b) return 0;
155
+ if (!a) return -1;
156
+ if (!b) return 1;
157
+ const parsedA = parseISOTime(a);
158
+ const parsedB = parseISOTime(b);
159
+ if (!parsedA && !parsedB) return 0;
160
+ if (!parsedA) return -1;
161
+ if (!parsedB) return 1;
162
+ return parsedA.hour * 3600 + parsedA.minute * 60 + parsedA.second - (parsedB.hour * 3600 + parsedB.minute * 60 + parsedB.second);
163
+ }
164
+ /**
165
+ * Checks if a time is within a min/max range (inclusive).
166
+ */
167
+ function isTimeInRange(time, min, max) {
168
+ if (min && compareTime(time, min) < 0) return false;
169
+ if (max && compareTime(time, max) > 0) return false;
170
+ return true;
171
+ }
172
+ /**
173
+ * Clamps a time to a min/max range.
174
+ */
175
+ function clampTime(time, min, max, includeSeconds = false) {
176
+ if (!parseISOTime(time)) return time;
177
+ if (min && compareTime(time, min) < 0) {
178
+ const parsedMin = parseISOTime(min);
179
+ if (parsedMin) return formatISOTime(parsedMin, includeSeconds);
180
+ }
181
+ if (max && compareTime(time, max) > 0) {
182
+ const parsedMax = parseISOTime(max);
183
+ if (parsedMax) return formatISOTime(parsedMax, includeSeconds);
184
+ }
185
+ return time;
186
+ }
187
+ /**
188
+ * Adjusts a time by adding/subtracting minutes.
189
+ */
190
+ function adjustTime(time, deltaMinutes, includeSeconds = false) {
191
+ const parsed = parseISOTime(time);
192
+ if (!parsed) return time;
193
+ if (!Number.isInteger(deltaMinutes)) return time;
194
+ let totalMinutes = parsed.hour * 60 + parsed.minute + deltaMinutes;
195
+ totalMinutes = (totalMinutes % 1440 + 1440) % 1440;
196
+ return formatISOTime({
197
+ hour: Math.floor(totalMinutes / 60),
198
+ minute: totalMinutes % 60,
199
+ second: parsed.second
200
+ }, includeSeconds);
201
+ }
202
+ //#endregion
203
+ export { formatDisplayTime12h as a, isTimeInRange as c, createISOTimeString as i, parseISOTime as l, clampTime as n, formatDisplayTime24h as o, compareTime as r, formatISOTime as s, adjustTime as t, parseTimeInput as u };
@@ -1,6 +1,6 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { a as pushLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
3
+ import { n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/layer/anchorClear.ts
6
6
  function overlapsAnchor(anchor, top, left, layer) {
@@ -1,4 +1,4 @@
1
- import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
2
2
  import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
3
3
  import { r as getFocusables } from "./focus-x7mxEqjR.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
@@ -1,4 +1,4 @@
1
- import { a as pushLayer, i as isTopLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
1
+ import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
2
2
  import { onScopeDispose } from "vue";
3
3
  //#region src/layer/useHoverLayerDismiss.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-D7UNDNje.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DS4OAl2Q.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-21Gk7uWk.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
2
- import { s as currentGesture } from "./layerDepth-BU_55vPr.js";
2
+ import { c as currentGesture } from "./layerDepth-I6d28O4d.js";
3
3
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
4
4
  //#region src/composables/useLongPress.ts
5
5
  const DEFAULT_DELAY_MS = 500;
@@ -1,4 +1,4 @@
1
- import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
2
2
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
3
3
  import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
4
4
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { i as trackInteractionModality } from "./interactionModality-BPvyShJT.js";
2
- import { n as focusForLastInput } from "./useFocusTrap-CyooA0OC.js";
2
+ import { n as focusForLastInput } from "./useFocusTrap-BFQ7Goue.js";
3
3
  import { onScopeDispose, watch } from "vue";
4
4
  //#region src/composables/useRestoreFocus.ts
5
5
  /**
@@ -0,0 +1,52 @@
1
+ import { a as formatDisplayTime12h, c as isTimeInRange$1, l as parseISOTime$1, o as formatDisplayTime24h, s as formatISOTime$1, t as adjustTime, u as parseTimeInput } from "./timeParser-D9tCF_b3.js";
2
+ //#region src/composables/useTimeValue.ts
3
+ /** 字段接受的 ISO 时间写法:两位时、两位分,可带两位秒。 */
4
+ const STRICT_ISO_TIME = /^\d{2}:\d{2}(?::\d{2})?$/;
5
+ /** 手打文本的写法:带上下午的 12 小时制、四位或六位紧凑写法,或严格的 ISO 时间。 */
6
+ const TYPED_TIME = /^(?:\d{1,2}(?::\d{2}){0,2}\s*[ap]\.?m\.?|\d{4}(?:\d{2})?|\d{2}:\d{2}(?::\d{2})?)$/i;
7
+ /** 时间的解析、格式化、比较和步进都在 `utils/timeParser`;这里只做字段用的严格写法和 `hours` 形状。 */
8
+ function parseISOTime(value) {
9
+ const text = value.trim();
10
+ if (!STRICT_ISO_TIME.test(text)) return null;
11
+ const parts = parseISOTime$1(text);
12
+ return parts && {
13
+ hours: parts.hour,
14
+ minutes: parts.minute,
15
+ seconds: parts.second
16
+ };
17
+ }
18
+ function formatISOTime(time, hasSeconds) {
19
+ return formatISOTime$1({
20
+ hour: time.hours,
21
+ minute: time.minutes,
22
+ second: time.seconds
23
+ }, hasSeconds);
24
+ }
25
+ function formatDisplayTime(value, hourFormat, hasSeconds) {
26
+ const time = parseISOTime(value) ? value.trim() : null;
27
+ if (time == null) return value;
28
+ return hourFormat === "24h" ? formatDisplayTime24h(time, hasSeconds) : formatDisplayTime12h(time, hasSeconds);
29
+ }
30
+ function parseDisplayTime(text, hasSeconds) {
31
+ const trimmed = text.trim();
32
+ return TYPED_TIME.test(trimmed) ? parseTimeInput(trimmed, hasSeconds) : null;
33
+ }
34
+ function shiftTime(value, minuteDelta, hasSeconds) {
35
+ const base = parseISOTime(value) ? value.trim() : "00:00";
36
+ return adjustTime(base, minuteDelta, hasSeconds);
37
+ }
38
+ function isTimeInRange(value, min, max) {
39
+ return isTimeInRange$1(value, min, max);
40
+ }
41
+ function resolveTimeSurface(options) {
42
+ const presentation = options.presentation ?? (options.nativePicker === "always" ? "native" : options.nativePicker === "never" ? "text-input" : "adaptive-native");
43
+ const needsTypedField = options.hasSeconds || options.increment !== 1 || options.needsTypedField === true;
44
+ if (presentation === "text-input" || presentation === "popover") return "text";
45
+ if (presentation === "bottom-sheet") return "sheet";
46
+ if (presentation === "adaptive-bottom-sheet") return options.coarse ? "sheet" : "text";
47
+ if (needsTypedField) return "text";
48
+ if (presentation === "native") return "native";
49
+ return options.coarse ? "native" : "text";
50
+ }
51
+ //#endregion
52
+ export { parseISOTime as a, parseDisplayTime as i, formatISOTime as n, resolveTimeSurface as o, isTimeInRange as r, shiftTime as s, formatDisplayTime as t };
@@ -1,13 +1,13 @@
1
1
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
- import { t as useLayer } from "./useLayer-BnjrJ85F.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-CeebKoPB.js";
3
+ import { t as useLayer } from "./useLayer-vK4-yRk_.js";
4
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-Cx5xXZzg.js";
5
5
  import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
6
6
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
7
7
  import { t as useAnnounce } from "./announce-B210eJVf.js";
8
8
  import { i as isFocusable } from "./focus-x7mxEqjR.js";
9
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-b-txblws.js";
10
- import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-B1W5qIBx.js";
9
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CrLW-7kT.js";
10
+ import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-Chfty2wT.js";
11
11
  import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
12
12
  import "../styles/tooltip.css";
13
13
  //#region src/Tooltip/TooltipSurface.vue
@@ -1,5 +1,5 @@
1
1
  import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
2
- import { s as currentGesture } from "./layerDepth-BU_55vPr.js";
2
+ import { c as currentGesture } from "./layerDepth-I6d28O4d.js";
3
3
  import { a as isDisabledControl, i as trackInteractionModality, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-BPvyShJT.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/tapRecognizer.ts
@@ -1,7 +1,7 @@
1
1
  import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
2
2
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
3
- import { n as tooltipPresentInterestKey } from "./useTooltip-uc-VLZ8I.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-kQPfj3SE.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-DIg3ZE9P.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-BwrJVZ8X.js";
5
5
  import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C4pdlaXa.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
@@ -1,4 +1,4 @@
1
- import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
2
2
  import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
3
3
  import { onScopeDispose, ref } from "vue";
4
4
  //#region src/composables/useTypeahead.ts
@@ -4,7 +4,7 @@ import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
4
4
  import { t as useCombobox } from "./useCombobox-D374_pT8.js";
5
5
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
6
6
  import { t as _sfc_main$2 } from "./Spinner-DEVPDsD0.js";
7
- import { t as createStillPointerGate } from "./stillPointerGate-BZ7KMJOB.js";
7
+ import { t as createStillPointerGate } from "./stillPointerGate-DlAU_J_M.js";
8
8
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withModifiers } from "vue";
10
10
  import "../styles/typeahead.css";
@@ -1,6 +1,8 @@
1
1
  import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
2
2
  import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
3
+ import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-D9tCF_b3.js";
3
4
  import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
5
+ import { A as plainDateMin, C as plainDateFromInstant, D as plainDateIsEqual, E as plainDateIsBefore, F as plainDateToISO, I as plainDateToInstant, L as plainDateToday, M as plainDateSetFirstOfMonth, N as plainDateSetStartOfWeek, O as plainDateIsInRange, P as plainDateToDate, R as plainDateWeekFieldName, S as plainDateFromISO, T as plainDateIsAfter, _ as plainDateCreate, a as DATE_FORMAT_MONTH_YEAR, b as plainDateFormat, c as DATE_FORMAT_SHORT_WITH_YEAR, d as SHARED_DATE_FORMAT_OPTIONS, f as formatSharedDate, g as plainDateAddMonths, h as plainDateAddDays, i as DATE_FORMAT_MONTH_ONLY, j as plainDateSetEndOfWeekExclusive, k as plainDateMax, l as DATE_FORMAT_WEEKDAY_ONLY, m as getTimeZoneParts, n as parseDateInput, o as DATE_FORMAT_SHORT, p as getDaysInMonth, r as DATE_FORMAT_LONG, s as DATE_FORMAT_SHORT_WITH_WEEKDAY, t as isLocaleDayFirst, u as DATE_FORMAT_WITH_WEEKDAY, v as plainDateDayOfWeek, w as plainDateGetWeekNumber, x as plainDateFromDate, y as plainDateDiffDays } from "../dateParser-DS_a8Ej8.js";
4
6
  import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "../inputPresentation-BOyHkCDr.js";
5
- import { A as plainDateCreate, B as plainDateIsEqual, C as DATE_FORMAT_WITH_WEEKDAY, D as getTimeZoneParts, E as getDaysInMonth, F as plainDateFromISO, G as plainDateSetFirstOfMonth, H as plainDateMax, I as plainDateFromInstant, J as plainDateToISO, K as plainDateSetStartOfWeek, L as plainDateGetWeekNumber, M as plainDateDiffDays, N as plainDateFormat, O as plainDateAddDays, P as plainDateFromDate, Q as chainEventHandlers, R as plainDateIsAfter, S as DATE_FORMAT_WEEKDAY_ONLY, T as formatSharedDate, U as plainDateMin, V as plainDateIsInRange, W as plainDateSetEndOfWeekExclusive, X as plainDateToday, Y as plainDateToInstant, Z as plainDateWeekFieldName, _ as DATE_FORMAT_MONTH_ONLY, a as formatDisplayTime12h, b as DATE_FORMAT_SHORT_WITH_WEEKDAY, c as parseStyleKey, d as getItemGroup, f as groupItems, g as DATE_FORMAT_LONG, h as parseDateInput, i as createISOTimeString, j as plainDateDayOfWeek, k as plainDateAddMonths, l as getInputARIA, m as isLocaleDayFirst, n as clampTime, o as formatDisplayTime24h, p as normalizeDayOfWeek, q as plainDateToDate, r as compareTime, s as parseTimeInput, t as adjustTime, u as joinAriaIDs, v as DATE_FORMAT_MONTH_YEAR, w as SHARED_DATE_FORMAT_OPTIONS, x as DATE_FORMAT_SHORT_WITH_YEAR, y as DATE_FORMAT_SHORT, z as plainDateIsBefore } from "../utils-BOmFijPc.js";
7
+ import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-BW62BpDR.js";
6
8
  export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
@@ -0,0 +1,135 @@
1
+ //#region src/utils/chainEventHandlers.ts
2
+ /**
3
+ * 把多个事件处理函数串成一个。每个函数都会按参数顺序执行。
4
+ *
5
+ * 和「前一个调用了 preventDefault 就跳过后面」不同:组件自己的处理函数
6
+ * 不能把事件藏起来,调用方也不能用 preventDefault 取消组件的行为。
7
+ */
8
+ function chainEventHandlers(...handlers) {
9
+ return (event) => {
10
+ for (const handler of handlers) handler?.(event);
11
+ };
12
+ }
13
+ //#endregion
14
+ //#region src/utils/dateTypes.ts
15
+ /** Weekday names indexed by {@link DayOfWeek} (0 = Sunday). */
16
+ const WEEKDAY_NAMES = [
17
+ "sun",
18
+ "mon",
19
+ "tue",
20
+ "wed",
21
+ "thu",
22
+ "fri",
23
+ "sat"
24
+ ];
25
+ /**
26
+ * Normalize a weekday to its numeric {@link DayOfWeek}. Accepts either a
27
+ * number (0–6) or a three-letter day name ('sun'–'sat', case-insensitive),
28
+ * so APIs like `weekStartsOn` can take whichever is more readable at the
29
+ * call site. Unrecognized values fall back to 0 (Sunday).
30
+ */
31
+ function normalizeDayOfWeek(value) {
32
+ if (typeof value === "number") return value;
33
+ const index = WEEKDAY_NAMES.indexOf(value.toLowerCase());
34
+ return index === -1 ? 0 : index;
35
+ }
36
+ //#endregion
37
+ //#region src/utils/groupItems.ts
38
+ /** 读出条目上的组名。不是字符串就不算分组。空字符串仍算一个组名。 */
39
+ function getItemGroup(item) {
40
+ const aux = item.auxiliaryData;
41
+ if (aux == null || typeof aux !== "object") return void 0;
42
+ const group = aux.group;
43
+ return typeof group === "string" ? group : void 0;
44
+ }
45
+ /**
46
+ * 按 `auxiliaryData.group` 分组,组的先后跟它们第一次出现的顺序。
47
+ * 没有任何组名时,返回一组 `heading: null`。
48
+ */
49
+ function groupItems(items, { ungroupedFirst = false } = {}) {
50
+ if (!items.some((item) => getItemGroup(item) != null)) return [{
51
+ heading: null,
52
+ items: [...items]
53
+ }];
54
+ const groupOrder = [];
55
+ const groups = /* @__PURE__ */ new Map();
56
+ const ungrouped = [];
57
+ for (const item of items) {
58
+ const group = getItemGroup(item);
59
+ if (group != null) {
60
+ const list = groups.get(group);
61
+ if (list) list.push(item);
62
+ else {
63
+ groupOrder.push(group);
64
+ groups.set(group, [item]);
65
+ }
66
+ } else ungrouped.push(item);
67
+ }
68
+ const namedGroups = groupOrder.map((heading) => ({
69
+ heading,
70
+ items: groups.get(heading) ?? []
71
+ }));
72
+ const ungroupedGroup = ungrouped.length > 0 ? [{
73
+ heading: null,
74
+ items: ungrouped
75
+ }] : [];
76
+ return ungroupedFirst ? [...ungroupedGroup, ...namedGroups] : [...namedGroups, ...ungroupedGroup];
77
+ }
78
+ //#endregion
79
+ //#region src/utils/inputAria.ts
80
+ function joinAriaIDs(...values) {
81
+ const ids = values.flatMap((value) => typeof value === "string" ? value.trim().split(/\s+/) : []).filter(Boolean);
82
+ if (ids.length === 0) return;
83
+ return Array.from(new Set(ids)).join(" ");
84
+ }
85
+ /**
86
+ * Builds ARIA label/description wiring for an input.
87
+ *
88
+ * Standalone inputs keep their normal native label association. Grouped inputs
89
+ * are named by the visible InputGroup label plus their own input label, and
90
+ * inherit group description/status text in addition to input-local text.
91
+ */
92
+ function getInputARIA(labelID, describedByIDs = [], inputGroup) {
93
+ return {
94
+ ariaLabelledBy: inputGroup ? joinAriaIDs(inputGroup.labelID, labelID) : void 0,
95
+ ariaDescribedBy: joinAriaIDs(inputGroup?.describedByIDs, ...describedByIDs)
96
+ };
97
+ }
98
+ //#endregion
99
+ //#region src/utils/parseStyleKey.ts
100
+ /** 把驼峰属性名变成主题用的 data 属性名,例如 listStyle → data-list-style。 */
101
+ function themeDataAttributeName(prop) {
102
+ return `data-${prop.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
103
+ }
104
+ /** 双引号 CSS 属性选择器里的值转义。 */
105
+ function escapeAttributeValue(value) {
106
+ let escaped = "";
107
+ for (const char of value) {
108
+ const codePoint = char.codePointAt(0) ?? 0;
109
+ if (char === "\"" || char === "\\" || codePoint < 32 || codePoint === 127) escaped += `\\${(codePoint === 0 ? 65533 : codePoint).toString(16)} `;
110
+ else escaped += char;
111
+ }
112
+ return escaped;
113
+ }
114
+ /**
115
+ * 把组件样式键编成 data 属性选择器后缀。
116
+ *
117
+ * `prop:value` 选择 `[data-prop="value"]`。裸状态选择 `[data-state="state"]`。
118
+ * `+` 把多个条件接在同一个组件目标上。轴名留在选择器里,避免不同属性的相同值撞在一起。
119
+ *
120
+ * @example
121
+ * parseStyleKey('base') // ''
122
+ * parseStyleKey('variant:secondary') // '[data-variant="secondary"]'
123
+ * parseStyleKey('checked+disabled') // '[data-checked="checked"][data-disabled="disabled"]'
124
+ */
125
+ function parseStyleKey(key) {
126
+ if (key === "base") return "";
127
+ return key.split("+").map((part) => {
128
+ const separator = part.indexOf(":");
129
+ const prop = separator === -1 ? part : part.slice(0, separator);
130
+ const value = separator === -1 ? part : part.slice(separator + 1);
131
+ return `[${themeDataAttributeName(prop)}="${escapeAttributeValue(value)}"]`;
132
+ }).join("");
133
+ }
134
+ //#endregion
135
+ export { groupItems as a, getItemGroup as i, getInputARIA as n, normalizeDayOfWeek as o, joinAriaIDs as r, chainEventHandlers as s, parseStyleKey as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.13.1",
4
+ "version": "0.14.0",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",