@astryx-vue/core 0.13.0 → 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 (323) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-igjA8kZr.js → AlertDialog-BOyx3Owt.js} +6 -6
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-DUHcLJWD.js → AppShell-CHN80IBy.js} +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-KmdgVaAb.js → Avatar-B-dg3imS.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-KBzD0jeF.js → AvatarGroup-CKHxYNVh.js} +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/Banner/index.js +1 -1
  13. package/dist/{Banner-Bf_nMW3-.js → Banner-qEMqg2D8.js} +1 -1
  14. package/dist/BottomSheet/index.d.ts +1 -1
  15. package/dist/BottomSheet/index.js +2 -2
  16. package/dist/{BottomSheet-B57XUJV3.js → BottomSheet-CFrcT1Lr.js} +12 -6
  17. package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-qD8zeVYQ.js} +3 -3
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-61TGNa4M.js} +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/{Button-sUkQ0Ufo.js → Button-47s3ZBYa.js} +6 -6
  23. package/dist/ButtonGroup/index.d.ts +1 -1
  24. package/dist/ButtonGroup/index.js +1 -1
  25. package/dist/{ButtonGroup-CWra-KDj.js → ButtonGroup-BFl-0uOp.js} +2 -2
  26. package/dist/Calendar/index.d.ts +1 -1
  27. package/dist/Calendar/index.js +1 -1
  28. package/dist/{Calendar-DwFAzDky.js → Calendar-D029GXOJ.js} +1 -1
  29. package/dist/Card/index.d.ts +1 -1
  30. package/dist/Carousel/index.d.ts +1 -1
  31. package/dist/Carousel/index.js +1 -1
  32. package/dist/{Carousel-DmXceU9h.js → Carousel-CYjVpChx.js} +1 -1
  33. package/dist/Chat/index.d.ts +1 -1
  34. package/dist/Chat/index.js +1 -1
  35. package/dist/{Chat-CeibAkxn.js → Chat-BfekV9OQ.js} +40 -7
  36. package/dist/CheckboxInput/index.d.ts +1 -1
  37. package/dist/CheckboxInput/index.js +1 -1
  38. package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-Cr0qhZpZ.js} +3 -3
  39. package/dist/CheckboxList/index.d.ts +1 -1
  40. package/dist/CheckboxList/index.js +1 -1
  41. package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DOAdqkXD.js} +6 -6
  42. package/dist/ClickableCard/index.d.ts +1 -1
  43. package/dist/ClickableCard/index.js +1 -1
  44. package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
  45. package/dist/Code/index.d.ts +1 -1
  46. package/dist/Code/index.js +1 -1
  47. package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-CuNiGAhQ.js} +1 -1
  48. package/dist/Collapsible/index.d.ts +1 -1
  49. package/dist/Collapsible/index.js +1 -1
  50. package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
  51. package/dist/CommandPalette/index.js +1 -1
  52. package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DU4VBuWx.js} +3 -3
  53. package/dist/ComplexSelector/index.js +1 -1
  54. package/dist/{ComplexSelector-Dmbep7M7.js → ComplexSelector-CdeoaX2o.js} +3 -3
  55. package/dist/ContextMenu/index.d.ts +1 -1
  56. package/dist/ContextMenu/index.js +2 -2
  57. package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-Cw34CTey.js} +6 -6
  58. package/dist/DateInput/index.d.ts +2 -2
  59. package/dist/DateInput/index.js +1 -1
  60. package/dist/{DateInput-DgPIsWPu.js → DateInput-vxaVpM2X.js} +562 -123
  61. package/dist/DateRangeInput/index.d.ts +1 -1
  62. package/dist/DateRangeInput/index.js +1 -1
  63. package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-X5VDZkfk.js} +14 -11
  64. package/dist/DateTimeInput/index.d.ts +1 -1
  65. package/dist/DateTimeInput/index.js +1 -1
  66. package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-B8HeL3dk.js} +19 -11
  67. package/dist/Dialog/index.d.ts +1 -1
  68. package/dist/Dialog/index.js +3 -3
  69. package/dist/{Dialog-Dkwt3mVt.js → Dialog-CprMsTku.js} +48 -22
  70. package/dist/{Dialog-qIL4DUot.js → Dialog-DCsuevxA.js} +1 -1
  71. package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-DyMQBW1_.js} +2 -2
  72. package/dist/Drawer/index.d.ts +1 -1
  73. package/dist/Drawer/index.js +1 -1
  74. package/dist/{Drawer-DBHSNUAa.js → Drawer-BkFF7krL.js} +2 -2
  75. package/dist/DropdownMenu/index.js +3 -3
  76. package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-DEEcKIHY.js} +10 -10
  77. package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-Dt88fMAT.js} +5 -5
  78. package/dist/EmptyState/index.js +1 -1
  79. package/dist/{EmptyState-uWyPaIR1.js → EmptyState-BS8ESteS.js} +2 -2
  80. package/dist/Field/index.js +3 -3
  81. package/dist/{Field-CqDOsI3P.js → Field-Dxacpe9d.js} +2 -2
  82. package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-DS4OAl2Q.js} +1 -1
  83. package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-DjzTYhCM.js} +2 -2
  84. package/dist/FileInput/index.d.ts +1 -1
  85. package/dist/FileInput/index.js +1 -1
  86. package/dist/{FileInput-C6dK2pvX.js → FileInput-Dak2gIXU.js} +3 -3
  87. package/dist/FormLayout/index.d.ts +2 -2
  88. package/dist/FormLayout/index.js +1 -1
  89. package/dist/{FormLayout-B9dUB6Ps.js → FormLayout-CGJVeNsL.js} +5 -3
  90. package/dist/Heading/index.d.ts +1 -1
  91. package/dist/Heading/index.js +1 -1
  92. package/dist/{Heading-C0axugQa.js → Heading-BYB7QXkT.js} +1 -1
  93. package/dist/HoverCard/index.d.ts +1 -1
  94. package/dist/HoverCard/index.js +1 -1
  95. package/dist/{HoverCard-C6Gxekg0.js → HoverCard-CtDr234t.js} +28 -64
  96. package/dist/IconButton/index.js +1 -1
  97. package/dist/{IconButton-Bv2eIsJy.js → IconButton-DvgueAEp.js} +1 -1
  98. package/dist/InfoTip/index.d.ts +1 -1
  99. package/dist/InfoTip/index.js +1 -1
  100. package/dist/{InfoTip-BKsbmGA6.js → InfoTip-DshbO5eW.js} +2 -2
  101. package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DEb-bGsY.js} +1 -1
  102. package/dist/InputGroup/index.js +1 -1
  103. package/dist/{InputGroup-DTGh1ylC.js → InputGroup-DLu11Lsd.js} +1 -1
  104. package/dist/InternationalizationProvider/index.d.ts +1 -1
  105. package/dist/InternationalizationProvider/index.js +1 -1
  106. package/dist/{InternationalizationProvider-BYU2MRtX.js → InternationalizationProvider-CqCxB9ku.js} +1 -1
  107. package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
  108. package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-Cx5xXZzg.js} +1 -1
  109. package/dist/Lightbox/index.js +1 -1
  110. package/dist/{Lightbox-BZ-zBvly.js → Lightbox-f_0_73Zi.js} +3 -3
  111. package/dist/Link/index.d.ts +1 -1
  112. package/dist/Link/index.js +1 -1
  113. package/dist/{Link-Ddu0KjPZ.js → Link-CFxZ9W2X.js} +2 -2
  114. package/dist/List/index.d.ts +1 -1
  115. package/dist/List/index.js +2 -2
  116. package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
  117. package/dist/Markdown/index.js +1 -1
  118. package/dist/{Markdown-D7bQGV9u.js → Markdown-DTqTIKbq.js} +3 -3
  119. package/dist/MetadataList/index.d.ts +1 -1
  120. package/dist/MobileNav/index.js +1 -1
  121. package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-D_J_uTW-.js} +3 -3
  122. package/dist/MoreMenu/index.d.ts +1 -1
  123. package/dist/MoreMenu/index.js +1 -1
  124. package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-BY1t1_QA.js} +6 -6
  125. package/dist/MultiSelector/index.d.ts +1 -1
  126. package/dist/MultiSelector/index.js +1 -1
  127. package/dist/{MultiSelector-BXIpOmSU.js → MultiSelector-BmdODQAC.js} +11 -10
  128. package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-mXBWmRDC.js} +1 -1
  129. package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-foJo5bLT.js} +1 -1
  130. package/dist/NavItem/index.d.ts +1 -1
  131. package/dist/NavItem/index.js +1 -1
  132. package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
  133. package/dist/NavMenu/index.js +3 -3
  134. package/dist/{NavMenu-dyGZS1yM.js → NavMenu-CG9Bthba.js} +2 -2
  135. package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-BiFZUPxC.js} +2 -2
  136. package/dist/NumberInput/index.d.ts +1 -1
  137. package/dist/NumberInput/index.js +1 -1
  138. package/dist/{NumberInput-0KbcEF3_.js → NumberInput-BDNiEgzf.js} +5 -5
  139. package/dist/Outline/index.js +1 -1
  140. package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
  141. package/dist/OverflowList/index.d.ts +1 -1
  142. package/dist/OverflowList/index.js +1 -1
  143. package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CR96Nr5t.js} +2 -2
  144. package/dist/Pagination/index.d.ts +1 -1
  145. package/dist/Pagination/index.js +1 -1
  146. package/dist/{Pagination-eeM9SNsG.js → Pagination-CA3yJwyk.js} +1 -1
  147. package/dist/{PickerWheel-CSwUYfes.js → PickerWheel-DNX3yrUd.js} +21 -8
  148. package/dist/Popover/index.d.ts +1 -1
  149. package/dist/Popover/index.js +1 -1
  150. package/dist/{Popover-BOQo9UPf.js → Popover-Mj71LwjH.js} +8 -7
  151. package/dist/PowerSearch/index.d.ts +1 -1
  152. package/dist/PowerSearch/index.js +1 -1
  153. package/dist/{PowerSearch-CaqFxaFb.js → PowerSearch-CajkGExd.js} +19 -19
  154. package/dist/ProgressBar/index.d.ts +1 -1
  155. package/dist/ProgressBar/index.js +1 -1
  156. package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-sGSCEtHC.js} +1 -1
  157. package/dist/Radio/index.d.ts +1 -1
  158. package/dist/Radio/index.js +1 -1
  159. package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-D58Fy-bM.js} +4 -4
  160. package/dist/RadioList/index.d.ts +1 -1
  161. package/dist/RadioList/index.js +1 -1
  162. package/dist/{RadioList-DtKm9spP.js → RadioList-u9PoRBXY.js} +1 -1
  163. package/dist/ScrollableArea/index.d.ts +1 -1
  164. package/dist/ScrollableArea/index.js +1 -1
  165. package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
  166. package/dist/SegmentedControl/index.js +1 -1
  167. package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
  168. package/dist/SelectableCard/index.d.ts +1 -1
  169. package/dist/SelectableCard/index.js +1 -1
  170. package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
  171. package/dist/Selector/index.d.ts +1 -1
  172. package/dist/Selector/index.js +1 -1
  173. package/dist/{Selector-DP012yul.js → Selector-jA_SESFs.js} +8 -6
  174. package/dist/SideNav/index.d.ts +1 -1
  175. package/dist/SideNav/index.js +1 -1
  176. package/dist/{SideNav-L6CWk5fV.js → SideNav-BgmpUELq.js} +6 -6
  177. package/dist/Slider/index.js +1 -1
  178. package/dist/{Slider-DZS8mGZA.js → Slider-Depy9L-Y.js} +4 -4
  179. package/dist/StatusDot/index.js +1 -1
  180. package/dist/{StatusDot-DaQGq8YN.js → StatusDot-D0Wy2ggp.js} +1 -1
  181. package/dist/Stepper/index.d.ts +1 -1
  182. package/dist/Stepper/index.js +1 -1
  183. package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
  184. package/dist/Switch/index.d.ts +1 -1
  185. package/dist/Switch/index.js +1 -1
  186. package/dist/{Switch-BN_NnBuc.js → Switch-dD4OQLkI.js} +3 -3
  187. package/dist/TabList/index.d.ts +1 -1
  188. package/dist/TabList/index.js +1 -1
  189. package/dist/{TabList-Bmj4tGT-.js → TabList-CoiyQidC.js} +2 -2
  190. package/dist/Table/index.d.ts +1 -1
  191. package/dist/Table/index.js +1 -1
  192. package/dist/{Table-YDS_Hj1L.js → Table-Cb0ec1PS.js} +13 -13
  193. package/dist/Text/index.d.ts +1 -1
  194. package/dist/Text/index.js +1 -1
  195. package/dist/{Text-IijvZmW-.js → Text-BWSmB93V.js} +1 -1
  196. package/dist/TextArea/index.d.ts +1 -1
  197. package/dist/TextArea/index.js +1 -1
  198. package/dist/{TextArea-BDR179q1.js → TextArea-CbY2w_ic.js} +7 -7
  199. package/dist/TextInput/index.d.ts +1 -1
  200. package/dist/TextInput/index.js +1 -1
  201. package/dist/{TextInput-kUzxl99M.js → TextInput-C8f89GV8.js} +7 -7
  202. package/dist/Thumbnail/index.js +1 -1
  203. package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-DENhXd9-.js} +3 -3
  204. package/dist/{TimeField-C0la1AtP.js → TimeField-DcZ9wYGn.js} +8 -8
  205. package/dist/TimeInput/index.d.ts +1 -1
  206. package/dist/TimeInput/index.js +1 -1
  207. package/dist/{TimeInput-C_jTijHh.js → TimeInput-DyiU7_IA.js} +3 -3
  208. package/dist/Timer/index.js +1 -1
  209. package/dist/{Timer-DifGERP8.js → Timer-CgBSMr9E.js} +1 -1
  210. package/dist/Timestamp/index.d.ts +1 -1
  211. package/dist/Timestamp/index.js +1 -1
  212. package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B-VgG6l8.js} +3 -3
  213. package/dist/Toast/index.js +1 -1
  214. package/dist/{Toast-DBo0WRAd.js → Toast-CRSZV9K-.js} +3 -3
  215. package/dist/ToggleButton/index.d.ts +1 -1
  216. package/dist/ToggleButton/index.js +1 -1
  217. package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-Bm5IQUy5.js} +3 -3
  218. package/dist/Token/index.d.ts +1 -1
  219. package/dist/Token/index.js +1 -1
  220. package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
  221. package/dist/Tokenizer/index.js +1 -1
  222. package/dist/{Tokenizer-CY0ymjYr.js → Tokenizer-DmjNQLDl.js} +8 -8
  223. package/dist/Toolbar/index.d.ts +1 -1
  224. package/dist/Tooltip/index.d.ts +1 -1
  225. package/dist/Tooltip/index.js +2 -2
  226. package/dist/{Tooltip-4APVAlN9.js → Tooltip-BwrJVZ8X.js} +1 -1
  227. package/dist/TopNav/index.d.ts +1 -1
  228. package/dist/TopNav/index.js +1 -1
  229. package/dist/{TopNav-XSZWAR-7.js → TopNav-C3gyHUVv.js} +5 -5
  230. package/dist/TreeList/index.js +1 -1
  231. package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
  232. package/dist/Typeahead/index.js +2 -2
  233. package/dist/{Typeahead-ByeXwX8E.js → Typeahead-LdmEDCOU.js} +7 -7
  234. package/dist/busyAnnouncement-D3eGqdsf.js +88 -0
  235. package/dist/composables/index.d.ts +1 -1
  236. package/dist/composables/index.js +15 -15
  237. package/dist/{composables-WUkSRUCj.js → composables-Bi0Rt0Uj.js} +53 -5
  238. package/dist/{context-Cfml4jaK.js → context-DsNhYm5O.js} +6 -1
  239. package/dist/{date-input-CiEBtStM.js → date-input-rUD8YAow.js} +4 -0
  240. package/dist/{utils-BOmFijPc.js → dateParser-DS_a8Ej8.js} +1 -329
  241. package/dist/{fieldParts-CDOlBdy6.js → fieldParts-CbWvZLhH.js} +1 -1
  242. package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
  243. package/dist/{format-CiN0Dt_H.js → format-CMHyAMn3.js} +28 -1
  244. package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
  245. package/dist/{index-DPklTi3o.d.ts → index-B-3EGjfQ.d.ts} +2 -2
  246. package/dist/{index-KcCNhdAw.d.ts → index-B3yTdknp.d.ts} +1 -1
  247. package/dist/{index-DMcf0QeR.d.ts → index-B449gOMC.d.ts} +1 -1
  248. package/dist/{index-D7YRtteD.d.ts → index-BHYhTZzp.d.ts} +1 -1
  249. package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
  250. package/dist/{index-DKuoSloc.d.ts → index-BPymttXR.d.ts} +47 -15
  251. package/dist/{index-CfHBwR3F.d.ts → index-BbXwtkv6.d.ts} +4 -4
  252. package/dist/{index-D1RIIzDd.d.ts → index-C5VJoanX.d.ts} +3 -3
  253. package/dist/{index-ul1hNxih.d.ts → index-CLHJybQY.d.ts} +1 -1
  254. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  255. package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
  256. package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
  257. package/dist/{index-Buxb8Onp.d.ts → index-Cr9uPUc5.d.ts} +98 -52
  258. package/dist/{index-BcJzA5j_.d.ts → index-DG7FmGCE.d.ts} +2 -2
  259. package/dist/{index-C90l2rH1.d.ts → index-DcisK4t8.d.ts} +11 -1
  260. package/dist/{index-BpprL2SN.d.ts → index-DfdtDWSP.d.ts} +5 -1
  261. package/dist/{index-x0rjeitC.d.ts → index-Dg0JsBpI.d.ts} +2 -2
  262. package/dist/{index-PffxihMx.d.ts → index-Djf0M7PH.d.ts} +1 -1
  263. package/dist/{index--tm6L1ot.d.ts → index-DpYJBFJj.d.ts} +1 -1
  264. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  265. package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
  266. package/dist/{index-DYabo8TI.d.ts → index-eCp-ElSp.d.ts} +1 -1
  267. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  268. package/dist/{index-DPH5yoAr.d.ts → index-s0Ezq3U-.d.ts} +2 -2
  269. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  270. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  271. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  272. package/dist/index.d.ts +32 -32
  273. package/dist/index.js +113 -111
  274. package/dist/interactionModality-BPvyShJT.js +125 -0
  275. package/dist/layerDepth-I6d28O4d.js +297 -0
  276. package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-BrS5RTx6.js} +2 -2
  277. package/dist/{loadCatalog-Kp7aQZpL.d.ts → loadCatalog-Cvf-xgDD.d.ts} +34 -27
  278. package/dist/{loadCatalog-BtQRPyzj.js → loadCatalog-DYuZZRtf.js} +1 -1
  279. package/dist/locale/index.d.ts +2 -2
  280. package/dist/locale/index.js +4 -4
  281. package/dist/{locale-DET_YkFW.js → locale-B-DrJCMs.js} +1 -1
  282. package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
  283. package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
  284. package/dist/pressGesture-B3z3W3Za.js +78 -0
  285. package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
  286. package/dist/{selectorEscape-BppRdqpc.js → selectorEscape-FjiU_5WC.js} +4 -17
  287. package/dist/{stillPointerGate-Bh02Mfnw.js → stillPointerGate-DlAU_J_M.js} +1 -1
  288. package/dist/timeParser-D9tCF_b3.js +203 -0
  289. package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
  290. package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
  291. package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
  292. package/dist/{useDismiss-BWd-sQ18.js → useDismiss-21Gk7uWk.js} +58 -5
  293. package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-BFQ7Goue.js} +32 -17
  294. package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-Chfty2wT.js} +1 -1
  295. package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
  296. package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-Yd0hvw5K.js} +1 -1
  297. package/dist/{useLayer-BGv_wRSG.js → useLayer-vK4-yRk_.js} +13 -5
  298. package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
  299. package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-9vsHzbRX.js} +1 -29
  300. package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
  301. package/dist/{useResizable-DTDhsLip.js → useResizable-DYlc06-H.js} +1 -1
  302. package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-BhcXCJwM.js} +2 -2
  303. package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
  304. package/dist/useTimeValue-_XW9g2V1.js +52 -0
  305. package/dist/{useTooltip-md1tr6ef.js → useTooltip-DIg3ZE9P.js} +25 -27
  306. package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
  307. package/dist/useTouchTriggerInternal-CrLW-7kT.js +257 -0
  308. package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-D9_lzxpF.js} +4 -4
  309. package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-CiLt-yEg.js} +1 -1
  310. package/dist/{useTypeaheadAnnouncement-MbuZumTd.js → useTypeaheadAnnouncement-C59m2nSx.js} +1 -1
  311. package/dist/utils/index.js +3 -1
  312. package/dist/utils-BW62BpDR.js +135 -0
  313. package/package.json +1 -1
  314. package/styles/date-input.css +45 -3
  315. package/styles/date-range-input.css +7 -0
  316. package/styles/time-input.css +7 -0
  317. package/dist/interactionModality-ACpTMhak.js +0 -44
  318. package/dist/layerDepth-BF74Cctw.js +0 -205
  319. package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
  320. package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
  321. package/dist/useTimeValue-BJd0xBhG.js +0 -95
  322. package/dist/useTouchTrigger-GGd85Obb.js +0 -146
  323. package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
@@ -1,4 +1,5 @@
1
- import { n as isLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
1
+ import { n as pressGestureStep, t as idlePressGesture } from "./pressGesture-B3z3W3Za.js";
2
+ import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js";
2
3
  //#region src/composables/internal/inputAge.ts
3
4
  /** 盖下时间戳的窗口的时钟:事件的 `view`,或者落点节点所在窗口。同源 iframe 的时钟起点比主页面晚。 */
4
5
  function clockOf(source) {
@@ -22,194 +23,6 @@ function msSinceInput(time, source) {
22
23
  const at = timeOn(clock, time);
23
24
  return clock == null || at == null ? 0 : Math.max(0, clock.now() - at);
24
25
  }
25
- const IDLE = {
26
- originX: 0,
27
- originY: 0,
28
- phase: "idle"
29
- };
30
- function travelled(gesture, x, y) {
31
- return Math.hypot(x - gesture.originX, y - gesture.originY) > 10;
32
- }
33
- function to(gesture, phase, paint, timer) {
34
- return {
35
- gesture: {
36
- ...gesture,
37
- phase
38
- },
39
- paint,
40
- timer
41
- };
42
- }
43
- function stay(gesture, paint) {
44
- return {
45
- gesture,
46
- paint,
47
- timer: null
48
- };
49
- }
50
- function stepArmed(gesture, event) {
51
- switch (event.kind) {
52
- case "move": return travelled(gesture, event.x, event.y) ? to(gesture, "dead", "none", null) : stay(gesture, "none");
53
- case "cancel": return to(gesture, "dead", "none", null);
54
- case "onset": return to(gesture, "pressed", "on", null);
55
- case "up": return to(gesture, "flash", "on", "flash");
56
- default: return stay(gesture, "none");
57
- }
58
- }
59
- function stepPressed(gesture, event) {
60
- if (event.kind === "move" && !travelled(gesture, event.x, event.y)) return stay(gesture, "on");
61
- if (event.kind === "move" || event.kind === "cancel") return to(gesture, "dead", "none", null);
62
- if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
63
- return stay(gesture, "on");
64
- }
65
- /**
66
- * 一个事件,一个答案。
67
- */
68
- function pressGestureStep(gesture, event) {
69
- if (event.kind === "down") {
70
- if (event.delayed === false) return {
71
- gesture: {
72
- originX: event.x,
73
- originY: event.y,
74
- phase: "pressed"
75
- },
76
- paint: "on",
77
- timer: null
78
- };
79
- return {
80
- gesture: {
81
- originX: event.x,
82
- originY: event.y,
83
- phase: "armed"
84
- },
85
- paint: "none",
86
- timer: "onset"
87
- };
88
- }
89
- switch (gesture.phase) {
90
- case "armed": return stepArmed(gesture, event);
91
- case "pressed": return stepPressed(gesture, event);
92
- case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
93
- case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
94
- case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
95
- case "idle": return stay(IDLE, "none");
96
- }
97
- }
98
- function idlePressGesture() {
99
- return IDLE;
100
- }
101
- //#endregion
102
- //#region src/composables/useClickableContainer.ts
103
- /**
104
- * 对应原版 Astryx 的 `hooks/useClickableContainer`。
105
- *
106
- * 让整块容器可点,同时把点在嵌套按钮、链接、输入框上的点击留给那些控件自己。
107
- * ClickableCard 和 SelectableCard 都走这里,避免两套“点到谁算谁”的判断。
108
- */
109
- const INTERACTIVE_SELECTORS = [
110
- "button",
111
- "a",
112
- "input",
113
- "select",
114
- "textarea",
115
- "[role=\"button\"]",
116
- "[role=\"link\"]",
117
- "[role=\"checkbox\"]",
118
- "[role=\"radio\"]",
119
- "[role=\"switch\"]",
120
- "[role=\"tab\"]",
121
- "[role=\"menuitem\"]",
122
- "[role=\"option\"]",
123
- "[role=\"combobox\"]",
124
- "[role=\"listbox\"]",
125
- "[role=\"slider\"]",
126
- "[role=\"spinbutton\"]",
127
- "[data-pressable-container]"
128
- ].join(",");
129
- const NON_INTERACTIVE_SELECTORS = "[aria-readonly=\"true\"]";
130
- function hasInteractiveAncestor(element, root) {
131
- let current = element;
132
- while (current != null && current !== root && current !== document.body) {
133
- if (current.matches(INTERACTIVE_SELECTORS) && !current.matches(NON_INTERACTIVE_SELECTORS)) return true;
134
- if (isLayerSurface(current)) return true;
135
- current = current.parentElement;
136
- }
137
- return false;
138
- }
139
- function hasTextSelection(node) {
140
- if (typeof document === "undefined" || document.getSelection == null) return false;
141
- const selection = document.getSelection();
142
- if (selection == null || selection.isCollapsed) return false;
143
- return node.contains(selection.anchorNode);
144
- }
145
- function openInNewTab(href) {
146
- window.open(href, "_blank", "noopener");
147
- }
148
- /**
149
- * 把容器的 click / mouseup 交给调用方绑到根元素上。
150
- * 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
151
- */
152
- function useClickableContainer(options) {
153
- function markContainer() {
154
- const container = options.containerRef.value;
155
- if (container != null) container.dataset.pressableContainer = "true";
156
- }
157
- function onClick(event) {
158
- markContainer();
159
- if (options.disabled) return;
160
- const container = options.containerRef.value;
161
- if (container == null) return;
162
- if (hasTextSelection(container)) return;
163
- const target = event.target;
164
- if (!(target instanceof Element)) return;
165
- if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
166
- options.onClick?.(event);
167
- if (event.defaultPrevented) return;
168
- const href = options.href;
169
- if (href != null && href !== "") {
170
- if (options.target === "_blank" || event.metaKey || event.ctrlKey) {
171
- openInNewTab(href);
172
- return;
173
- }
174
- const interactive = options.interactiveRef?.value;
175
- if (interactive != null) {
176
- interactive.click();
177
- return;
178
- }
179
- window.location.assign(href);
180
- return;
181
- }
182
- if (options.onClick == null) {
183
- const interactive = options.interactiveRef?.value;
184
- if (interactive != null) {
185
- interactive.dispatchEvent(new MouseEvent("click", {
186
- bubbles: true,
187
- cancelable: true,
188
- button: event.button,
189
- ctrlKey: event.ctrlKey,
190
- metaKey: event.metaKey,
191
- shiftKey: event.shiftKey,
192
- altKey: event.altKey
193
- }));
194
- event.stopPropagation();
195
- }
196
- }
197
- }
198
- function onMouseUp(event) {
199
- if (options.disabled) return;
200
- const href = options.href;
201
- if (href == null || href === "" || event.button !== 1) return;
202
- const container = options.containerRef.value;
203
- const target = event.target;
204
- if (container == null || !(target instanceof Element)) return;
205
- if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
206
- openInNewTab(href);
207
- }
208
- return {
209
- onClick,
210
- onMouseUp
211
- };
212
- }
213
26
  //#endregion
214
27
  //#region src/composables/internal/pressSurface.ts
215
28
  /**
@@ -575,4 +388,4 @@ function installPressFeedback() {
575
388
  };
576
389
  }
577
390
  //#endregion
578
- export { PRESSABLE_ATTRIBUTE as a, PRESS_GROUP_ITEM_ATTRIBUTE as c, hasInteractiveAncestor as d, hasTextSelection as f, isInsideScrollView as i, isTrackedByGroup as l, msSinceInput as m, installPressFeedback as n, PRESS_ACTION_ATTRIBUTE as o, useClickableContainer as p, pressFadeMs as r, PRESS_CONTAINER_ATTRIBUTE as s, PRESSED_ATTRIBUTE as t, INTERACTIVE_SELECTORS as u };
391
+ export { PRESSABLE_ATTRIBUTE as a, PRESS_GROUP_ITEM_ATTRIBUTE as c, isInsideScrollView as i, isTrackedByGroup as l, installPressFeedback as n, PRESS_ACTION_ATTRIBUTE as o, pressFadeMs as r, PRESS_CONTAINER_ATTRIBUTE as s, PRESSED_ATTRIBUTE as t, msSinceInput as u };
@@ -0,0 +1,78 @@
1
+ const IDLE = {
2
+ originX: 0,
3
+ originY: 0,
4
+ phase: "idle"
5
+ };
6
+ function travelled(gesture, x, y) {
7
+ return Math.hypot(x - gesture.originX, y - gesture.originY) > 10;
8
+ }
9
+ function to(gesture, phase, paint, timer) {
10
+ return {
11
+ gesture: {
12
+ ...gesture,
13
+ phase
14
+ },
15
+ paint,
16
+ timer
17
+ };
18
+ }
19
+ function stay(gesture, paint) {
20
+ return {
21
+ gesture,
22
+ paint,
23
+ timer: null
24
+ };
25
+ }
26
+ function stepArmed(gesture, event) {
27
+ switch (event.kind) {
28
+ case "move": return travelled(gesture, event.x, event.y) ? to(gesture, "dead", "none", null) : stay(gesture, "none");
29
+ case "cancel": return to(gesture, "dead", "none", null);
30
+ case "onset": return to(gesture, "pressed", "on", null);
31
+ case "up": return to(gesture, "flash", "on", "flash");
32
+ default: return stay(gesture, "none");
33
+ }
34
+ }
35
+ function stepPressed(gesture, event) {
36
+ if (event.kind === "move" && !travelled(gesture, event.x, event.y)) return stay(gesture, "on");
37
+ if (event.kind === "move" || event.kind === "cancel") return to(gesture, "dead", "none", null);
38
+ if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
39
+ return stay(gesture, "on");
40
+ }
41
+ /**
42
+ * 一个事件,一个答案。
43
+ */
44
+ function pressGestureStep(gesture, event) {
45
+ if (event.kind === "down") {
46
+ if (event.delayed === false) return {
47
+ gesture: {
48
+ originX: event.x,
49
+ originY: event.y,
50
+ phase: "pressed"
51
+ },
52
+ paint: "on",
53
+ timer: null
54
+ };
55
+ return {
56
+ gesture: {
57
+ originX: event.x,
58
+ originY: event.y,
59
+ phase: "armed"
60
+ },
61
+ paint: "none",
62
+ timer: "onset"
63
+ };
64
+ }
65
+ switch (gesture.phase) {
66
+ case "armed": return stepArmed(gesture, event);
67
+ case "pressed": return stepPressed(gesture, event);
68
+ case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
69
+ case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
70
+ case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
71
+ case "idle": return stay(IDLE, "none");
72
+ }
73
+ }
74
+ function idlePressGesture() {
75
+ return IDLE;
76
+ }
77
+ //#endregion
78
+ export { pressGestureStep as n, idlePressGesture as t };
@@ -1,4 +1,4 @@
1
- import { t as FOCUSABLE_SELECTOR } from "./focus-l8jVTcqd.js";
1
+ import { t as FOCUSABLE_SELECTOR } from "./focus-x7mxEqjR.js";
2
2
  const INACTIVE_AXIS_STATE = Object.freeze({
3
3
  isScrollable: false,
4
4
  atStart: true,
@@ -1,19 +1,6 @@
1
- import { a as isImeKeyEvent } from "./layerDepth-BF74Cctw.js";
2
- import { t as useAnnounce } from "./announce-B210eJVf.js";
3
- import { n as focusElement } from "./focus-l8jVTcqd.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
1
+ import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
2
+ import { n as focusElement } from "./focus-x7mxEqjR.js";
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-BWd-sQ18.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 };
@@ -0,0 +1,10 @@
1
+ //#region src/Tooltip/tooltipTriggerRules.ts
2
+ function matchesFocusVisible(element) {
3
+ try {
4
+ return element.matches(":focus-visible");
5
+ } catch {
6
+ return false;
7
+ }
8
+ }
9
+ //#endregion
10
+ export { matchesFocusVisible as t };
@@ -1,5 +1,5 @@
1
- import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-1WtV3u6F.js";
2
- import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as isInsideScrollView, l as isTrackedByGroup, m as msSinceInput } from "./pressFeedback-Bwwpex9q.js";
1
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-B3jx01C3.js";
2
+ import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as isInsideScrollView, l as isTrackedByGroup, u as msSinceInput } from "./pressFeedback-Co3ugCsm.js";
3
3
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
4
4
  //#region src/composables/internal/useActionGroupTracking.ts
5
5
  const DISABLED = ":disabled, [aria-disabled=\"true\"]";
@@ -0,0 +1,141 @@
1
+ //#region src/layer/layerSurfacePress.ts
2
+ /**
3
+ * 打开着的 Tooltip、HoverCard 气泡登记在这里。
4
+ *
5
+ * 气泡挂载时会尽量靠近触发元素(见 `layer/mount.ts`),可能落在一个可点容器
6
+ * (可点卡片、列表行、文件选择区)的 DOM 里面,于是在气泡里点一下会冒泡到容器,
7
+ * 把容器的动作也触发了。容器判断「这一下是不是点在别的东西上」时,把登记过的气泡
8
+ * 当作别的东西,就不再响应。事件本身照常冒泡,页面级的监听仍然收得到。不从包里导出。
9
+ */
10
+ const surfaces = /* @__PURE__ */ new WeakSet();
11
+ /** 给气泡内容元素用的 ref 回调。 */
12
+ function registerLayerSurface(element) {
13
+ if (element != null) surfaces.add(element);
14
+ }
15
+ /** 这个元素是不是登记过的气泡。 */
16
+ function isLayerSurface(element) {
17
+ return surfaces.has(element);
18
+ }
19
+ /** 从 `target` 往上走到 `root`(不含)之间,有没有登记过的气泡。 */
20
+ function isInLayerSurface(target, root) {
21
+ let current = target;
22
+ while (current != null && current !== root) {
23
+ if (surfaces.has(current)) return true;
24
+ current = current.parentElement;
25
+ }
26
+ return false;
27
+ }
28
+ //#endregion
29
+ //#region src/composables/useClickableContainer.ts
30
+ /**
31
+ * 对应原版 Astryx 的 `hooks/useClickableContainer`。
32
+ *
33
+ * 让整块容器可点,同时把点在嵌套按钮、链接、输入框上的点击留给那些控件自己。
34
+ * ClickableCard 和 SelectableCard 都走这里,避免两套“点到谁算谁”的判断。
35
+ */
36
+ const INTERACTIVE_SELECTORS = [
37
+ "button",
38
+ "a",
39
+ "input",
40
+ "select",
41
+ "textarea",
42
+ "[role=\"button\"]",
43
+ "[role=\"link\"]",
44
+ "[role=\"checkbox\"]",
45
+ "[role=\"radio\"]",
46
+ "[role=\"switch\"]",
47
+ "[role=\"tab\"]",
48
+ "[role=\"menuitem\"]",
49
+ "[role=\"option\"]",
50
+ "[role=\"combobox\"]",
51
+ "[role=\"listbox\"]",
52
+ "[role=\"slider\"]",
53
+ "[role=\"spinbutton\"]",
54
+ "[data-pressable-container]"
55
+ ].join(",");
56
+ const NON_INTERACTIVE_SELECTORS = "[aria-readonly=\"true\"]";
57
+ function hasInteractiveAncestor(element, root) {
58
+ let current = element;
59
+ while (current != null && current !== root && current !== document.body) {
60
+ if (current.matches(INTERACTIVE_SELECTORS) && !current.matches(NON_INTERACTIVE_SELECTORS)) return true;
61
+ if (isLayerSurface(current)) return true;
62
+ current = current.parentElement;
63
+ }
64
+ return false;
65
+ }
66
+ function hasTextSelection(node) {
67
+ if (typeof document === "undefined" || document.getSelection == null) return false;
68
+ const selection = document.getSelection();
69
+ if (selection == null || selection.isCollapsed) return false;
70
+ return node.contains(selection.anchorNode);
71
+ }
72
+ function openInNewTab(href) {
73
+ window.open(href, "_blank", "noopener");
74
+ }
75
+ /**
76
+ * 把容器的 click / mouseup 交给调用方绑到根元素上。
77
+ * 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
78
+ */
79
+ function useClickableContainer(options) {
80
+ function markContainer() {
81
+ const container = options.containerRef.value;
82
+ if (container != null) container.dataset.pressableContainer = "true";
83
+ }
84
+ function onClick(event) {
85
+ markContainer();
86
+ if (options.disabled) return;
87
+ const container = options.containerRef.value;
88
+ if (container == null) return;
89
+ if (hasTextSelection(container)) return;
90
+ const target = event.target;
91
+ if (!(target instanceof Element)) return;
92
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
93
+ options.onClick?.(event);
94
+ if (event.defaultPrevented) return;
95
+ const href = options.href;
96
+ if (href != null && href !== "") {
97
+ if (options.target === "_blank" || event.metaKey || event.ctrlKey) {
98
+ openInNewTab(href);
99
+ return;
100
+ }
101
+ const interactive = options.interactiveRef?.value;
102
+ if (interactive != null) {
103
+ interactive.click();
104
+ return;
105
+ }
106
+ window.location.assign(href);
107
+ return;
108
+ }
109
+ if (options.onClick == null) {
110
+ const interactive = options.interactiveRef?.value;
111
+ if (interactive != null) {
112
+ interactive.dispatchEvent(new MouseEvent("click", {
113
+ bubbles: true,
114
+ cancelable: true,
115
+ button: event.button,
116
+ ctrlKey: event.ctrlKey,
117
+ metaKey: event.metaKey,
118
+ shiftKey: event.shiftKey,
119
+ altKey: event.altKey
120
+ }));
121
+ event.stopPropagation();
122
+ }
123
+ }
124
+ }
125
+ function onMouseUp(event) {
126
+ if (options.disabled) return;
127
+ const href = options.href;
128
+ if (href == null || href === "" || event.button !== 1) return;
129
+ const container = options.containerRef.value;
130
+ const target = event.target;
131
+ if (container == null || !(target instanceof Element)) return;
132
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
133
+ openInNewTab(href);
134
+ }
135
+ return {
136
+ onClick,
137
+ onMouseUp
138
+ };
139
+ }
140
+ //#endregion
141
+ export { isInLayerSurface as a, useClickableContainer as i, hasInteractiveAncestor as n, isLayerSurface as o, hasTextSelection as r, registerLayerSurface as s, INTERACTIVE_SELECTORS as t };