@astryx-vue/core 0.12.1 → 0.13.1

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 (317) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-igjA8kZr.js → AlertDialog-CsdgJDLK.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-CE5Up5SI.js} +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-KmdgVaAb.js → Avatar-D5CFSkAG.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-B4IEG4Fx.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-D67lQ3Lo.js} +12 -6
  17. package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-UctSPL-g.js} +3 -3
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-By21sIml.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-CfbR2oPc.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/Card/index.d.ts +1 -1
  28. package/dist/Carousel/index.d.ts +1 -1
  29. package/dist/Carousel/index.js +1 -1
  30. package/dist/{Carousel-DmXceU9h.js → Carousel-mL_KdBMw.js} +1 -1
  31. package/dist/Center/index.d.ts +1 -1
  32. package/dist/Chat/index.d.ts +1 -1
  33. package/dist/Chat/index.js +1 -1
  34. package/dist/{Chat-CeibAkxn.js → Chat-C10BQlIl.js} +40 -7
  35. package/dist/CheckboxInput/index.d.ts +1 -1
  36. package/dist/CheckboxInput/index.js +1 -1
  37. package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-BGqRMoEA.js} +2 -2
  38. package/dist/CheckboxList/index.d.ts +1 -1
  39. package/dist/CheckboxList/index.js +1 -1
  40. package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DbMhC06M.js} +5 -5
  41. package/dist/ClickableCard/index.d.ts +1 -1
  42. package/dist/ClickableCard/index.js +1 -1
  43. package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
  44. package/dist/Code/index.d.ts +1 -1
  45. package/dist/Code/index.js +1 -1
  46. package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-DAlWY51H.js} +1 -1
  47. package/dist/Collapsible/index.d.ts +1 -1
  48. package/dist/Collapsible/index.js +1 -1
  49. package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
  50. package/dist/CommandPalette/index.js +1 -1
  51. package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DYk_FyFB.js} +3 -3
  52. package/dist/ComplexSelector/index.d.ts +1 -1
  53. package/dist/ComplexSelector/index.js +1 -1
  54. package/dist/{ComplexSelector-B_5mzJjR.js → ComplexSelector-NDpRucQB.js} +165 -49
  55. package/dist/ContextMenu/index.d.ts +1 -1
  56. package/dist/ContextMenu/index.js +2 -2
  57. package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-JDU4HDKm.js} +6 -6
  58. package/dist/DateInput/index.d.ts +1 -1
  59. package/dist/DateInput/index.js +1 -1
  60. package/dist/{DateInput-DgPIsWPu.js → DateInput-DVEb1-fM.js} +4 -4
  61. package/dist/DateRangeInput/index.d.ts +1 -1
  62. package/dist/DateRangeInput/index.js +1 -1
  63. package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-OuAz80nR.js} +3 -3
  64. package/dist/DateTimeInput/index.d.ts +1 -1
  65. package/dist/DateTimeInput/index.js +1 -1
  66. package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-J5CFTSSa.js} +5 -5
  67. package/dist/Dialog/index.d.ts +1 -1
  68. package/dist/Dialog/index.js +3 -3
  69. package/dist/{Dialog-Dkwt3mVt.js → Dialog-C0WuGDqP.js} +48 -22
  70. package/dist/{Dialog-qIL4DUot.js → Dialog-Cm8CXGpI.js} +1 -1
  71. package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-BD2Ezw4F.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-CFpcRHt7.js} +2 -2
  75. package/dist/DropdownMenu/index.js +3 -3
  76. package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-2QRvY0aP.js} +10 -10
  77. package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-5Mn01A-5.js} +5 -5
  78. package/dist/EmptyState/index.js +1 -1
  79. package/dist/{EmptyState-uWyPaIR1.js → EmptyState-CqUTEnGg.js} +2 -2
  80. package/dist/Field/index.js +3 -3
  81. package/dist/{Field-CqDOsI3P.js → Field-Cw8J8ld7.js} +1 -1
  82. package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-D7UNDNje.js} +1 -1
  83. package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-CJbiefUx.js} +1 -1
  84. package/dist/FileInput/index.d.ts +1 -1
  85. package/dist/FileInput/index.js +1 -1
  86. package/dist/{FileInput-C6dK2pvX.js → FileInput-CgfiwVfs.js} +2 -2
  87. package/dist/Heading/index.js +1 -1
  88. package/dist/{Heading-C0axugQa.js → Heading-BO9n2vLl.js} +1 -1
  89. package/dist/HoverCard/index.d.ts +1 -1
  90. package/dist/HoverCard/index.js +1 -1
  91. package/dist/{HoverCard-C6Gxekg0.js → HoverCard-47J_i9AH.js} +28 -64
  92. package/dist/IconButton/index.js +1 -1
  93. package/dist/{IconButton-Bv2eIsJy.js → IconButton-DiDHiGbo.js} +1 -1
  94. package/dist/InfoTip/index.d.ts +1 -1
  95. package/dist/InfoTip/index.js +1 -1
  96. package/dist/{InfoTip-BKsbmGA6.js → InfoTip-ClRC1Hh9.js} +2 -2
  97. package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DL4RM5z1.js} +1 -1
  98. package/dist/InputGroup/index.js +1 -1
  99. package/dist/{InputGroup-DTGh1ylC.js → InputGroup-JMOrdsmu.js} +1 -1
  100. package/dist/InternationalizationProvider/index.d.ts +1 -1
  101. package/dist/InternationalizationProvider/index.js +1 -1
  102. package/dist/{InternationalizationProvider-CyDjQn5Z.js → InternationalizationProvider-BYU2MRtX.js} +1 -1
  103. package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
  104. package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-CeebKoPB.js} +1 -1
  105. package/dist/Lightbox/index.js +1 -1
  106. package/dist/{Lightbox-BZ-zBvly.js → Lightbox-kKjxYZ05.js} +3 -3
  107. package/dist/Link/index.d.ts +1 -1
  108. package/dist/Link/index.js +1 -1
  109. package/dist/{Link-Ddu0KjPZ.js → Link-CkbAlJ3-.js} +2 -2
  110. package/dist/List/index.d.ts +1 -1
  111. package/dist/List/index.js +2 -2
  112. package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
  113. package/dist/Markdown/index.js +1 -1
  114. package/dist/{Markdown-D7bQGV9u.js → Markdown-DXRFVNJd.js} +3 -3
  115. package/dist/MobileNav/index.js +1 -1
  116. package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-DUtvvHc7.js} +3 -3
  117. package/dist/MoreMenu/index.d.ts +1 -1
  118. package/dist/MoreMenu/index.js +1 -1
  119. package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-CEJ9E2eD.js} +6 -6
  120. package/dist/MultiSelector/index.d.ts +1 -1
  121. package/dist/MultiSelector/index.js +1 -1
  122. package/dist/{MultiSelector-BdedjB6u.js → MultiSelector-DgWCWpnM.js} +111 -56
  123. package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-Bf5OFtwv.js} +1 -1
  124. package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-D5MpO-gO.js} +1 -1
  125. package/dist/NavItem/index.d.ts +1 -1
  126. package/dist/NavItem/index.js +1 -1
  127. package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
  128. package/dist/NavMenu/index.js +3 -3
  129. package/dist/{NavMenu-dyGZS1yM.js → NavMenu-BcmUfk7z.js} +2 -2
  130. package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-C9xk9KZk.js} +2 -2
  131. package/dist/NumberInput/index.d.ts +1 -1
  132. package/dist/NumberInput/index.js +1 -1
  133. package/dist/{NumberInput-0KbcEF3_.js → NumberInput-DNcE_HLD.js} +3 -3
  134. package/dist/Outline/index.js +1 -1
  135. package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
  136. package/dist/OverflowList/index.d.ts +1 -1
  137. package/dist/OverflowList/index.js +1 -1
  138. package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CeQT7MBd.js} +2 -2
  139. package/dist/Pagination/index.d.ts +1 -1
  140. package/dist/Pagination/index.js +1 -1
  141. package/dist/{Pagination-uttop2ls.js → Pagination-DJGQe6wH.js} +1 -1
  142. package/dist/Popover/index.d.ts +1 -1
  143. package/dist/Popover/index.js +1 -1
  144. package/dist/{Popover-BOQo9UPf.js → Popover-C68nCirC.js} +8 -7
  145. package/dist/PowerSearch/index.d.ts +1 -1
  146. package/dist/PowerSearch/index.js +1 -1
  147. package/dist/{PowerSearch-DDuYfvNh.js → PowerSearch-C6lkutch.js} +18 -18
  148. package/dist/ProgressBar/index.d.ts +1 -1
  149. package/dist/ProgressBar/index.js +1 -1
  150. package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-MaDhabCm.js} +1 -1
  151. package/dist/Radio/index.d.ts +1 -1
  152. package/dist/Radio/index.js +1 -1
  153. package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-CLQLK_V7.js} +3 -3
  154. package/dist/RadioList/index.d.ts +1 -1
  155. package/dist/RadioList/index.js +1 -1
  156. package/dist/{RadioList-DtKm9spP.js → RadioList-DfHTyqIQ.js} +1 -1
  157. package/dist/Resizable/index.d.ts +1 -1
  158. package/dist/ScrollableArea/index.d.ts +1 -1
  159. package/dist/ScrollableArea/index.js +1 -1
  160. package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
  161. package/dist/SegmentedControl/index.js +1 -1
  162. package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
  163. package/dist/SelectableCard/index.d.ts +1 -1
  164. package/dist/SelectableCard/index.js +1 -1
  165. package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
  166. package/dist/Selector/index.d.ts +1 -1
  167. package/dist/Selector/index.js +1 -1
  168. package/dist/{Selector-OpczmkqS.js → Selector-CPCoJ7Sb.js} +13 -47
  169. package/dist/SideNav/index.d.ts +1 -1
  170. package/dist/SideNav/index.js +1 -1
  171. package/dist/{SideNav-L6CWk5fV.js → SideNav-CV8MKVL-.js} +6 -6
  172. package/dist/Slider/index.js +1 -1
  173. package/dist/{Slider-DZS8mGZA.js → Slider-CHJ1CESd.js} +3 -3
  174. package/dist/Stack/index.d.ts +1 -1
  175. package/dist/StatusDot/index.js +1 -1
  176. package/dist/{StatusDot-DaQGq8YN.js → StatusDot-CGaRrl39.js} +1 -1
  177. package/dist/Stepper/index.d.ts +1 -1
  178. package/dist/Stepper/index.js +1 -1
  179. package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
  180. package/dist/Switch/index.d.ts +1 -1
  181. package/dist/Switch/index.js +1 -1
  182. package/dist/{Switch-BN_NnBuc.js → Switch-Bx9ezhrN.js} +2 -2
  183. package/dist/TabList/index.d.ts +1 -1
  184. package/dist/TabList/index.js +1 -1
  185. package/dist/{TabList-Bmj4tGT-.js → TabList-o4t9vWvl.js} +2 -2
  186. package/dist/Table/index.d.ts +1 -1
  187. package/dist/Table/index.js +1 -1
  188. package/dist/{Table-_pSoEiGP.js → Table-CO2cYE8r.js} +13 -13
  189. package/dist/Text/index.js +1 -1
  190. package/dist/{Text-IijvZmW-.js → Text-C6SB2hHJ.js} +1 -1
  191. package/dist/TextArea/index.d.ts +1 -1
  192. package/dist/TextArea/index.js +1 -1
  193. package/dist/{TextArea-BDR179q1.js → TextArea-DVaDS_1K.js} +5 -5
  194. package/dist/TextInput/index.d.ts +1 -1
  195. package/dist/TextInput/index.js +1 -1
  196. package/dist/{TextInput-kUzxl99M.js → TextInput-Dylfzj33.js} +5 -5
  197. package/dist/Thumbnail/index.js +1 -1
  198. package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-BTQAYnWi.js} +3 -3
  199. package/dist/{TimeField-C0la1AtP.js → TimeField-B3JGgLuf.js} +4 -4
  200. package/dist/TimeInput/index.d.ts +1 -1
  201. package/dist/TimeInput/index.js +1 -1
  202. package/dist/{TimeInput-C_jTijHh.js → TimeInput-Dmy6PxaD.js} +2 -2
  203. package/dist/Timer/index.js +1 -1
  204. package/dist/{Timer-DifGERP8.js → Timer-CN5BmaFS.js} +1 -1
  205. package/dist/Timestamp/index.d.ts +1 -1
  206. package/dist/Timestamp/index.js +1 -1
  207. package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B7UcCEo2.js} +3 -3
  208. package/dist/Toast/index.js +1 -1
  209. package/dist/{Toast-DBo0WRAd.js → Toast-DCipbbCW.js} +3 -3
  210. package/dist/ToggleButton/index.d.ts +1 -1
  211. package/dist/ToggleButton/index.js +1 -1
  212. package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-C78lrcdr.js} +3 -3
  213. package/dist/Token/index.js +1 -1
  214. package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
  215. package/dist/Tokenizer/index.d.ts +1 -1
  216. package/dist/Tokenizer/index.js +1 -1
  217. package/dist/{Tokenizer-BNazaZsP.js → Tokenizer-D7B1ff3O.js} +111 -52
  218. package/dist/Toolbar/index.d.ts +1 -1
  219. package/dist/Tooltip/index.d.ts +1 -1
  220. package/dist/Tooltip/index.js +2 -2
  221. package/dist/{Tooltip-4APVAlN9.js → Tooltip-kQPfj3SE.js} +1 -1
  222. package/dist/TopNav/index.d.ts +1 -1
  223. package/dist/TopNav/index.js +1 -1
  224. package/dist/{TopNav-XSZWAR-7.js → TopNav-AGY785QI.js} +5 -5
  225. package/dist/TreeList/index.js +1 -1
  226. package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
  227. package/dist/Typeahead/index.d.ts +1 -1
  228. package/dist/Typeahead/index.js +2 -2
  229. package/dist/{Typeahead-BgQVQw-0.js → Typeahead-QWYeVsel.js} +49 -14
  230. package/dist/composables/index.d.ts +2 -1
  231. package/dist/composables/index.js +15 -15
  232. package/dist/{composables-WUkSRUCj.js → composables-CyKB3F8u.js} +53 -5
  233. package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
  234. package/dist/{index-a1jCiQP7.d.ts → index-9YGUb_Ht.d.ts} +4 -4
  235. package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
  236. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  237. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  238. package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
  239. package/dist/{index-DFLPv9io.d.ts → index-BOCb89V9.d.ts} +2 -2
  240. package/dist/{index-CGDmjlec.d.ts → index-BWaO4-T-.d.ts} +56 -56
  241. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  242. package/dist/{index-CuW4AQ7M.d.ts → index-BhxqUt3y.d.ts} +2 -2
  243. package/dist/{index-wTwhcFQx.d.ts → index-Bl_K_cRv.d.ts} +1 -1
  244. package/dist/{index-Bmqz1lVz.d.ts → index-BpprL2SN.d.ts} +1 -1
  245. package/dist/{index-CM2L3SUw.d.ts → index-BzViSe8D.d.ts} +19 -4
  246. package/dist/{index-C1zwvxPH.d.ts → index-CL8JvxHW.d.ts} +2 -2
  247. package/dist/{index-CKtrcglY.d.ts → index-CREW8ZiL.d.ts} +6 -6
  248. package/dist/{index-D-YoRrfP.d.ts → index-CVs4A2QU.d.ts} +47 -58
  249. package/dist/{index-9tZJgo0R.d.ts → index-CfoExOY_.d.ts} +2 -2
  250. package/dist/{index-Cb-HJUhK.d.ts → index-Cun6cXGP.d.ts} +1 -1
  251. package/dist/{index-DydQ5Ngj.d.ts → index-D7YRtteD.d.ts} +1 -1
  252. package/dist/{index-BmYnVNI-.d.ts → index-DE1genab.d.ts} +14 -2
  253. package/dist/{index-B44fLswd.d.ts → index-DPhQZXYw.d.ts} +1 -1
  254. package/dist/{index-lmd9LZKB.d.ts → index-DS9SzqqJ.d.ts} +2 -2
  255. package/dist/{index-mkbGYz8f.d.ts → index-Dc9_kBrU.d.ts} +9 -2
  256. package/dist/{index-_5purQow.d.ts → index-Dep8pgnU.d.ts} +8 -6
  257. package/dist/{index-DhcjuwQq.d.ts → index-Dlq0cFK-.d.ts} +2 -2
  258. package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
  259. package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
  260. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  261. package/dist/{index-Cy1rEWC-.d.ts → index-bgjrSSaT.d.ts} +2 -2
  262. package/dist/{index-B3FE7s7V.d.ts → index-s0Ezq3U-.d.ts} +4 -4
  263. package/dist/{index-CLHJybQY.d.ts → index-ul1hNxih.d.ts} +1 -1
  264. package/dist/index.d.ts +32 -31
  265. package/dist/index.js +109 -109
  266. package/dist/interactionModality-BPvyShJT.js +125 -0
  267. package/dist/layerDepth-BU_55vPr.js +294 -0
  268. package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-DWGkSHXj.js} +2 -2
  269. package/dist/{loadCatalog-XbgoqaRp.js → loadCatalog-BtQRPyzj.js} +6 -2
  270. package/dist/{loadCatalog-CQEYXGuI.d.ts → loadCatalog-Kp7aQZpL.d.ts} +3 -0
  271. package/dist/locale/index.d.ts +2 -2
  272. package/dist/locale/index.js +4 -4
  273. package/dist/{locale-BwnZeppK.js → locale-DET_YkFW.js} +1 -1
  274. package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
  275. package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
  276. package/dist/pressGesture-B3z3W3Za.js +78 -0
  277. package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
  278. package/dist/selectorEscape-LkWoVYQN.js +52 -0
  279. package/dist/{useAnchoredListbox-CuRfVgKl.js → stillPointerGate-BZ7KMJOB.js} +20 -2
  280. package/dist/{tokenizer-DSka5PJD.js → tokenizer-ChiAuPN-.js} +5 -1
  281. package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
  282. package/dist/{searchResultMessage-BEqDlHdV.js → triggerVariant-BDVvyLtv.js} +18 -18
  283. package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
  284. package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
  285. package/dist/{useCombobox-CTo5C-gc.js → useCombobox-D374_pT8.js} +32 -8
  286. package/dist/{useDismiss-BWd-sQ18.js → useDismiss-74dLMi5S.js} +58 -5
  287. package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-CyooA0OC.js} +32 -17
  288. package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-B1W5qIBx.js} +1 -1
  289. package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
  290. package/dist/useInputStatusIcon-B6m_t8cK.d.ts +45 -0
  291. package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-ZqCxDNTj.js} +1 -1
  292. package/dist/{useLayer-BGv_wRSG.js → useLayer-BnjrJ85F.js} +13 -5
  293. package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
  294. package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-BWq7kwWm.js} +1 -29
  295. package/dist/{useOptionActionGrid-CkJcuvaU.js → useOptionActionGrid-C7ibYM_A.js} +15 -1
  296. package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
  297. package/dist/{useResizable-DTDhsLip.js → useResizable-De4Xp3TD.js} +1 -1
  298. package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-CSrI8x7v.js} +2 -2
  299. package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
  300. package/dist/{useTooltip-md1tr6ef.js → useTooltip-uc-VLZ8I.js} +25 -27
  301. package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
  302. package/dist/useTouchTriggerInternal-b-txblws.js +257 -0
  303. package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-BVMCoNno.js} +4 -4
  304. package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-BWj3xhbR.js} +1 -1
  305. package/dist/{TypeaheadMenu-BOzaCvSb.js → useTypeaheadAnnouncement-DVkdWTWy.js} +75 -33
  306. package/package.json +1 -1
  307. package/styles/complex-selector.css +24 -1
  308. package/styles/multi-selector.css +10 -0
  309. package/styles/selector.css +10 -0
  310. package/styles/tokenizer.css +64 -0
  311. package/styles/typeahead.css +28 -0
  312. package/dist/interactionModality-ACpTMhak.js +0 -44
  313. package/dist/layerDepth-BF74Cctw.js +0 -205
  314. package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
  315. package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
  316. package/dist/triggerVariant-BsL8jMHs.js +0 -16
  317. package/dist/useTouchTrigger-GGd85Obb.js +0 -146
@@ -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,
@@ -0,0 +1,52 @@
1
+ import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
2
+ import { t as useAnnounce } from "./announce-B210eJVf.js";
3
+ 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
17
+ //#region src/Selector/selectorEscape.ts
18
+ /** 弹出层关掉后,焦点回到触发按钮,而不是掉到 body。 */
19
+ function focusSelectorTrigger(field) {
20
+ const trigger = field?.querySelector(".astryx-selector-trigger");
21
+ if (trigger) nextTick(() => focusElement(trigger));
22
+ }
23
+ function focusInside(layer) {
24
+ const active = document.activeElement;
25
+ return layer != null && active instanceof Node && layer.contains(active);
26
+ }
27
+ /**
28
+ * 搜索框已经处理过的 Escape 会带 preventDefault,这里接选项和操作按钮。
29
+ * 焦点在弹出层里才送回触发器,免得抢走外面已经拿到焦点的控件。
30
+ */
31
+ function onSelectorListboxEscape(event, options) {
32
+ if (event.key !== "Escape" || event.defaultPrevented || isImeKeyEvent(event) || !options.isOpen) return;
33
+ if (!focusInside(options.layer)) return;
34
+ event.preventDefault();
35
+ options.close();
36
+ options.focusTrigger();
37
+ }
38
+ /** 文档级 Escape。焦点还在层里才送回触发器,点外面关掉时不动焦点。 */
39
+ function dismissSelectorEscape(layer, close, focusTrigger) {
40
+ const inside = focusInside(layer);
41
+ close();
42
+ if (inside) focusTrigger();
43
+ }
44
+ function bindListboxEscape(layer, onKeyDown) {
45
+ watch(layer, (el, prev) => {
46
+ prev?.removeEventListener("keydown", onKeyDown);
47
+ el?.addEventListener("keydown", onKeyDown);
48
+ }, { flush: "sync" });
49
+ onScopeDispose(() => layer.value?.removeEventListener("keydown", onKeyDown));
50
+ }
51
+ //#endregion
52
+ export { useBusyAnnouncement as a, 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-74dLMi5S.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
@@ -57,4 +57,22 @@ function scrollOptionIntoView(layer, id) {
57
57
  else if (optionRect.bottom > layerRect.bottom) layer.scrollTop += optionRect.bottom - layerRect.bottom;
58
58
  }
59
59
  //#endregion
60
- export { useAnchoredListbox as n, scrollOptionIntoView as t };
60
+ //#region src/selectors/stillPointerGate.ts
61
+ function createStillPointerGate() {
62
+ let lastX = NaN;
63
+ let lastY = NaN;
64
+ return {
65
+ track(event) {
66
+ lastX = event.clientX;
67
+ lastY = event.clientY;
68
+ },
69
+ moved(event) {
70
+ const changed = event.clientX !== lastX || event.clientY !== lastY;
71
+ lastX = event.clientX;
72
+ lastY = event.clientY;
73
+ return changed;
74
+ }
75
+ };
76
+ }
77
+ //#endregion
78
+ export { scrollOptionIntoView as n, useAnchoredListbox as r, createStillPointerGate as t };
@@ -1,4 +1,4 @@
1
- import { r as formatCount } from "./shared-CTFb3-QO.js";
1
+ import { n as englishPlural, r as formatCount } from "./shared-CTFb3-QO.js";
2
2
  //#region src/locale/messages/tokenizer.ts
3
3
  const tokenizerMessages = {
4
4
  "en": {
@@ -11,6 +11,8 @@ const tokenizerMessages = {
11
11
  more: (count) => `+${formatCount(count, "en")} more`,
12
12
  added: (label) => `Added ${label}`,
13
13
  removed: (label) => `Removed ${label}`,
14
+ allRemoved: "All items removed",
15
+ resultCount: (count) => `${formatCount(count, "en")} ${englishPlural(count, "result", "results")}`,
14
16
  create: (query) => `Create "${query}"`
15
17
  },
16
18
  "zh-CN": {
@@ -23,6 +25,8 @@ const tokenizerMessages = {
23
25
  more: (count) => `另外 ${formatCount(count, "zh-CN")} 个`,
24
26
  added: (label) => `已添加${label}`,
25
27
  removed: (label) => `已移除${label}`,
28
+ allRemoved: "已移除全部",
29
+ resultCount: (count) => `找到 ${formatCount(count, "zh-CN")} 个结果`,
26
30
  create: (query) => `创建「${query}」`
27
31
  }
28
32
  };
@@ -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 };
@@ -3,10 +3,11 @@ import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
3
3
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
4
4
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
5
5
  import { t as inputMessages } from "./input-DUSvqqG_.js";
6
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, openBlock, unref, useId, useTemplateRef, withModifiers } from "vue";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, unref, useId, useTemplateRef, withModifiers } from "vue";
7
7
  //#region src/Field/StatusGlyph.vue
8
8
  const _hoisted_1 = ["data-status", "aria-label"];
9
9
  const _sfc_main = /*@__PURE__*/ defineComponent({
10
+ inheritAttrs: false,
10
11
  __name: "StatusGlyph",
11
12
  props: {
12
13
  type: {},
@@ -27,8 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
27
28
  return messages.value.input.statusError;
28
29
  });
29
30
  return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock(Fragment, null, [showsTooltip.value ? (openBlock(), createElementBlock("button", {
31
- key: 0,
31
+ return openBlock(), createElementBlock(Fragment, null, [showsTooltip.value ? (openBlock(), createElementBlock("button", mergeProps({ key: 0 }, _ctx.$attrs, {
32
32
  ref_key: "button",
33
33
  ref: button,
34
34
  type: "button",
@@ -41,16 +41,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
41
41
  onBlur: _cache[2] || (_cache[2] = (...args) => unref(tooltip).hideImmediately && unref(tooltip).hideImmediately(...args)),
42
42
  onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
43
43
  onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args))
44
- }, [createVNode(_sfc_main$1, {
44
+ }), [createVNode(_sfc_main$1, {
45
45
  icon: __props.type,
46
46
  size: "sm"
47
- }, null, 8, ["icon"])], 40, _hoisted_1)) : (openBlock(), createBlock(_sfc_main$1, {
48
- key: 1,
47
+ }, null, 8, ["icon"])], 16, _hoisted_1)) : (openBlock(), createBlock(_sfc_main$1, mergeProps({ key: 1 }, _ctx.$attrs, {
49
48
  class: "astryx-field-status-glyph",
50
49
  icon: __props.type,
51
50
  size: "sm",
52
51
  "data-status": __props.type
53
- }, null, 8, ["icon", "data-status"])), showsTooltip.value ? (openBlock(), createBlock(_sfc_main$2, {
52
+ }), null, 16, ["icon", "data-status"])), showsTooltip.value ? (openBlock(), createBlock(_sfc_main$2, {
54
53
  key: 2,
55
54
  id: tooltipId,
56
55
  anchor: anchor.value,
@@ -69,18 +68,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
69
68
  }
70
69
  });
71
70
  //#endregion
72
- //#region src/Selector/searchResultMessage.ts
71
+ //#region src/Field/statusPlacement.ts
73
72
  /**
74
- * 面板打开时要说的那句话。
75
- * 加载中什么都不说,因为选项还没到,不能断言「没有选项」或「没有结果」。
76
- * 创建行本身算一条结果,所以这时不报空。
73
+ * 次要和幽灵触发器把贴在控件下的状态说明挪开,避免把工具栏撑高。
74
+ * tooltip 和已经写明的 detached 保持原样。
77
75
  */
78
- function searchResultMessage(input) {
79
- if (!input.isOpen || input.isLoading) return "";
80
- const searching = input.query.trim() !== "";
81
- if (input.matchCount === 0 && !input.hasCreateRow) return searching ? input.emptySearchText : input.emptyText;
82
- if (!searching) return "";
83
- return input.resultCount(input.matchCount + (input.hasCreateRow ? 1 : 0));
76
+ function fieldStatusPlacement(variant, statusVariant) {
77
+ return (variant === "ghost" || variant === "secondary") && statusVariant === "attached" ? "detached" : statusVariant;
84
78
  }
85
79
  //#endregion
86
- export { _sfc_main as n, searchResultMessage as t };
80
+ //#region src/selectors/triggerVariant.ts
81
+ function normalizeTriggerVariant(value) {
82
+ if (value === "secondary" || value === "ghost") return value;
83
+ return "input";
84
+ }
85
+ //#endregion
86
+ export { fieldStatusPlacement as n, _sfc_main as r, normalizeTriggerVariant 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 };
@@ -1,4 +1,27 @@
1
1
  import { computed, onScopeDispose, ref, watch } from "vue";
2
+ //#region src/composables/internal/typeaheadText.ts
3
+ /**
4
+ * 类型跳转(type-to-select)用的文字折叠:忽略大小写、组合符号(U+0300–U+036F)、
5
+ * 带斜杠的字母(đ ł ø ħ ŧ ƀ)以及土耳其语带点和不带点的 i。
6
+ * 类型跳转是导航不是排序,所以所有语言都按同一套规则。
7
+ */
8
+ const STROKED_LETTERS = {
9
+ đ: "d",
10
+ ł: "l",
11
+ ø: "o",
12
+ ħ: "h",
13
+ ŧ: "t",
14
+ ƀ: "b",
15
+ ı: "i"
16
+ };
17
+ function foldTypeaheadText(text) {
18
+ return text.normalize("NFD").replace(/[\u0300-\u036F]/g, "").toLowerCase().replace(/[đłøħŧƀı]/g, (char) => STROKED_LETTERS[char] ?? char);
19
+ }
20
+ /** `label` 折叠之后是否以折叠后的 `prefix` 开头。 */
21
+ function startsWithTypeahead(label, prefix) {
22
+ return foldTypeaheadText(label).startsWith(prefix);
23
+ }
24
+ //#endregion
2
25
  //#region src/composables/useCombobox.ts
3
26
  const TYPEAHEAD_RESET_MS = 750;
4
27
  /**
@@ -27,10 +50,9 @@ function useCombobox(options) {
27
50
  isOpen.value = true;
28
51
  onOpenChange?.(true);
29
52
  const currentValue = modelValue.value;
30
- if (currentValue != null) {
31
- const index = filteredOptions.value.findIndex((opt) => opt.value === currentValue);
32
- activeIndex.value = index >= 0 ? index : 0;
33
- } else activeIndex.value = 0;
53
+ const index = currentValue != null ? filteredOptions.value.findIndex((opt) => opt.value === currentValue) : -1;
54
+ if (index >= 0 && !filteredOptions.value[index]?.disabled) activeIndex.value = index;
55
+ else activeIndex.value = Math.max(0, filteredOptions.value.findIndex((opt) => !opt.disabled));
34
56
  }
35
57
  function close() {
36
58
  isOpen.value = false;
@@ -88,7 +110,7 @@ function useCombobox(options) {
88
110
  }
89
111
  function jumpToMatch(char) {
90
112
  if (typeaheadTimer !== void 0) clearTimeout(typeaheadTimer);
91
- const lower = char.toLowerCase();
113
+ const lower = foldTypeaheadText(char);
92
114
  typeaheadBuffer = typeaheadBuffer.length > 0 && [...typeaheadBuffer].every((c) => c === lower) ? lower : typeaheadBuffer + lower;
93
115
  typeaheadTimer = setTimeout(() => {
94
116
  typeaheadBuffer = "";
@@ -96,12 +118,14 @@ function useCombobox(options) {
96
118
  const options = filteredOptions.value;
97
119
  const start = activeIndex.value >= 0 ? activeIndex.value : 0;
98
120
  const offset = typeaheadBuffer.length === 1 ? 1 : 0;
99
- for (let i = 0; i < options.length; i++) {
121
+ const exact = typeaheadBuffer.length === 1 && char.toLowerCase() !== lower ? char.toLowerCase() : null;
122
+ for (const exactOnly of exact != null ? [true, false] : [false]) for (let i = 0; i < options.length; i++) {
100
123
  const index = (start + offset + i) % options.length;
101
124
  const option = options[index];
102
- if (option && !option.disabled && option.label.toLowerCase().startsWith(typeaheadBuffer)) {
125
+ if (!option || option.disabled) continue;
126
+ if (exactOnly ? option.label.toLowerCase().startsWith(exact) : startsWithTypeahead(option.label, typeaheadBuffer)) {
103
127
  activeIndex.value = index;
104
- break;
128
+ return;
105
129
  }
106
130
  }
107
131
  }
@@ -1,7 +1,54 @@
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 { i as pushLayer, n as useLayerDepth } from "./layerDepth-BF74Cctw.js";
3
+ import { a as pushLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
+ //#region src/layer/anchorClear.ts
6
+ function overlapsAnchor(anchor, top, left, layer) {
7
+ return left < anchor.right && left + layer.width > anchor.left && top < anchor.bottom && top + layer.height > anchor.top;
8
+ }
9
+ function clamp$1(value, min, max) {
10
+ return Math.max(min, Math.min(value, max));
11
+ }
12
+ /**
13
+ * 浮层比触发器四周的空地都高时,普通落点会被夹进视口,盖在触发器上。
14
+ * 要「不盖住触发器」的浮层(Tooltip)改按这个顺序找落点:
15
+ * 1. 触发器的右侧、再是左侧,宽度不变,纵向夹进视口;
16
+ * 2. 触发器上下两侧里空地更大的一侧,高度限制在那块空地里,超出的内容在浮层里滚动。
17
+ *
18
+ * `placed` 没盖住触发器时原样返回,装得下的浮层不受影响。
19
+ */
20
+ function keepClearOfAnchor(placed, anchor, layer, viewport, gap, gutter) {
21
+ if (!overlapsAnchor(anchor, placed.top, placed.left, layer)) return placed;
22
+ const minTop = gutter.blockStart;
23
+ const maxTop = Math.max(minTop, viewport.height - layer.height - gutter.blockEnd);
24
+ const sideTop = clamp$1(anchor.top + (anchor.height - layer.height) / 2, minTop, maxTop);
25
+ const rightLeft = anchor.right + gap;
26
+ const leftLeft = anchor.left - gap - layer.width;
27
+ const canBeSide = layer.height <= viewport.height - gutter.blockStart - gutter.blockEnd;
28
+ if (canBeSide && rightLeft + layer.width <= viewport.width - gutter.inlineEnd) return {
29
+ top: sideTop,
30
+ left: rightLeft,
31
+ placement: "end"
32
+ };
33
+ if (canBeSide && leftLeft >= gutter.inlineStart) return {
34
+ top: sideTop,
35
+ left: leftLeft,
36
+ placement: "start"
37
+ };
38
+ const roomAbove = anchor.top - gap - gutter.blockStart;
39
+ const roomBelow = viewport.height - anchor.bottom - gap - gutter.blockEnd;
40
+ const above = roomAbove >= roomBelow;
41
+ const room = Math.max(0, above ? roomAbove : roomBelow);
42
+ const height = Math.min(layer.height, room);
43
+ const left = clamp$1(placed.left, gutter.inlineStart, Math.max(gutter.inlineStart, viewport.width - layer.width - gutter.inlineEnd));
44
+ return {
45
+ top: above ? anchor.top - gap - height : anchor.bottom + gap,
46
+ left,
47
+ placement: above ? "above" : "below",
48
+ maxHeight: room < layer.height ? room : void 0
49
+ };
50
+ }
51
+ //#endregion
5
52
  //#region src/layer/position.ts
6
53
  function alignOnAxis(start, size, own, alignment) {
7
54
  if (alignment === "start") return start;
@@ -93,10 +140,14 @@ function usePositionedLayer(options) {
93
140
  const anchorEl = anchor.value;
94
141
  const layerEl = layer.value;
95
142
  if (!anchorEl || !layerEl || !isOpen.value) return;
96
- position.value = computeLayerPosition(anchorEl.getBoundingClientRect(), {
143
+ const anchorRect = anchorEl.getBoundingClientRect();
144
+ const viewport = getLayerViewport();
145
+ const box = {
97
146
  width: layerEl.offsetWidth,
98
- height: layerEl.offsetHeight
99
- }, getLayerViewport(), placement.value, alignment.value, gap, gutter.value);
147
+ height: options.keepAnchorClear === true ? Math.max(layerEl.offsetHeight, layerEl.scrollHeight) : layerEl.offsetHeight
148
+ };
149
+ const placed = computeLayerPosition(anchorRect, box, viewport, placement.value, alignment.value, gap, gutter.value);
150
+ position.value = options.keepAnchorClear === true ? keepClearOfAnchor(placed, anchorRect, box, viewport, gap, gutter.value) : placed;
100
151
  }
101
152
  let pollId;
102
153
  function geometryKey() {
@@ -178,6 +229,7 @@ function useDismiss(options) {
178
229
  getContainer: () => container.value,
179
230
  getTrigger: () => trigger?.value ?? null,
180
231
  dismissOnPointerOutside: toValue(options.dismissOnPointerOutside) ?? true,
232
+ dismissOnOutsidePan: toValue(options.dismissOnOutsidePan) ?? true,
181
233
  dismissOnEscape: escapeMode(),
182
234
  onEscape: options.onEscape,
183
235
  onDismiss
@@ -199,7 +251,8 @@ function useDismiss(options) {
199
251
  watch([
200
252
  isEnabled,
201
253
  () => escapeMode(),
202
- () => toValue(options.dismissOnPointerOutside) ?? true
254
+ () => toValue(options.dismissOnPointerOutside) ?? true,
255
+ () => toValue(options.dismissOnOutsidePan) ?? true
203
256
  ], ([enabled]) => sync(enabled), { immediate: true });
204
257
  onScopeDispose(teardown);
205
258
  }