@astryx-vue/core 0.25.0 → 0.26.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 (334) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Cub9_aPC.js → AlertDialog-CGGkPG4T.js} +192 -6
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-D62A7lqZ.js → AppShell-DGJgCvS6.js} +6 -6
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-BKoSK75s.js → Avatar-DpFHPRlE.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Badge/index.d.ts +1 -2
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-cg2nXT_4.js → Banner-DVU5-fWC.js} +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-DGhRZLw4.js → BottomSheet-Dn8gpT4m.js} +9 -6
  15. package/dist/{BottomSheet-CpLYy3vb.js → BottomSheet-gctYQ3sV.js} +2 -2
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-D-nHDHV8.js → Breadcrumbs-BZsjHn_5.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-D8AGK5oT.js → Button-yJiHoWps.js} +1 -1
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/Calendar/index.d.ts +1 -1
  23. package/dist/Card/index.d.ts +1 -1
  24. package/dist/Carousel/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-DrCG9wbP.js → Carousel-DPhwOTjx.js} +1 -1
  27. package/dist/Center/index.d.ts +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-U1qq8gkF.js → Chat-RE_6Ez79.js} +206 -44
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-qm6lkjAw.js → CheckboxInput-C-UseBJo.js} +5 -5
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxList-DuCKhJHJ.js → CheckboxList-CWHlG8Jq.js} +4 -4
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/Code/index.d.ts +1 -1
  39. package/dist/Code/index.js +1 -1
  40. package/dist/{CodeBlock-PMZd9dQ9.js → CodeBlock-3QLhu3jZ.js} +1 -1
  41. package/dist/Collapsible/index.d.ts +1 -1
  42. package/dist/Collapsible/index.js +1 -1
  43. package/dist/{Collapsible-BmUloCSR.js → Collapsible-BSRdsb6w.js} +3 -3
  44. package/dist/CommandPalette/index.d.ts +1 -1
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-Cy7trpD3.js → CommandPalette-CtY5ZCR7.js} +50 -20
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-DMBiVQWp.js → ComplexSelector-DI3J30Ho.js} +4 -4
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-63ay7EE-.js → ContextMenu-CVf4OqJP.js} +4 -4
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-B3Q91FDT.js → DateInput-DK-FI37x.js} +14 -33
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-B6Z66OsH.js → DateRangeInput-ClriBc4F.js} +6 -6
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-B_7cn7ze.js → DateTimeInput-BdXkBBYi.js} +7 -7
  62. package/dist/Dialog/index.d.ts +1 -1
  63. package/dist/Dialog/index.js +3 -3
  64. package/dist/{Dialog-CBPD5b-S.js → Dialog-CKDlXonX.js} +1 -1
  65. package/dist/{Dialog-C4FZ7p7Q.js → Dialog-DjhG_vpE.js} +3 -3
  66. package/dist/{DialogHeader-CQ3pnLYi.js → DialogHeader-C1Bz4Knk.js} +2 -2
  67. package/dist/Divider/index.d.ts +1 -1
  68. package/dist/Drawer/index.d.ts +1 -1
  69. package/dist/Drawer/index.js +1 -1
  70. package/dist/{Drawer-BOwQLKm9.js → Drawer-BqcPP0z7.js} +2 -2
  71. package/dist/DropdownMenu/index.js +3 -3
  72. package/dist/{DropdownMenu-9CR9TiKG.js → DropdownMenu-CdwEvDld.js} +3 -3
  73. package/dist/{DropdownMenu-DwIfoTnV.js → DropdownMenu-q5euMYv-.js} +40 -11
  74. package/dist/EmptyState/index.js +1 -1
  75. package/dist/{EmptyState-BG5g2jwJ.js → EmptyState-DNjqNAT3.js} +4 -50
  76. package/dist/Field/index.d.ts +3 -3
  77. package/dist/Field/index.js +3 -3
  78. package/dist/{Field-eAowUUMX.js → Field-DrUMz0oj.js} +2 -2
  79. package/dist/{FieldInfoTip-Dwl9HNp1.js → FieldInfoTip-DmDOcxU1.js} +1 -1
  80. package/dist/{FieldLabel-CgYk-ORu.js → FieldLabel-DsFZnW1l.js} +3 -3
  81. package/dist/FieldStatus/index.d.ts +1 -1
  82. package/dist/FileInput/index.d.ts +1 -1
  83. package/dist/FileInput/index.js +1 -1
  84. package/dist/{FileInput-B7zeePbM.js → FileInput-0u4zjJfx.js} +135 -85
  85. package/dist/FormLayout/index.js +1 -1
  86. package/dist/{FormLayout-CGJVeNsL.js → FormLayout-0_X9o-L4.js} +1 -1
  87. package/dist/Heading/index.js +1 -1
  88. package/dist/{Heading-B1dNZQtu.js → Heading-BG1PBVkf.js} +1 -1
  89. package/dist/HoverCard/index.d.ts +1 -1
  90. package/dist/HoverCard/index.js +1 -1
  91. package/dist/{HoverCard-CZhfsvP4.js → HoverCard-Fr6RLRR8.js} +2 -2
  92. package/dist/IconButton/index.js +1 -1
  93. package/dist/{IconButton-D9ZRJ7vD.js → IconButton-CEjiXpUg.js} +1 -1
  94. package/dist/Indicator/index.d.ts +2 -2
  95. package/dist/InfoTip/index.d.ts +1 -1
  96. package/dist/InfoTip/index.js +1 -1
  97. package/dist/{InfoTip-LJi9llxi.js → InfoTip-CKRaCO6I.js} +1 -1
  98. package/dist/{InputClearButton-C-j9Nf1s.js → InputClearButton-ByUJXRmY.js} +1 -1
  99. package/dist/InputGroup/index.d.ts +1 -1
  100. package/dist/InputGroup/index.js +1 -1
  101. package/dist/{InputGroup-B8PGJZKH.js → InputGroup-H8DP0TAG.js} +6 -6
  102. package/dist/InternationalizationProvider/index.d.ts +1 -1
  103. package/dist/InternationalizationProvider/index.js +1 -1
  104. package/dist/{InternationalizationProvider-DaZS5Dch.js → InternationalizationProvider-8qllKdVk.js} +1 -1
  105. package/dist/Layout/index.js +2 -2
  106. package/dist/{Layout-DOIeCgs4.js → Layout-094k14rN.js} +1 -1
  107. package/dist/{LayoutPanel-C7Wsid2W.js → LayoutPanel-BPboQAJj.js} +1 -1
  108. package/dist/Lightbox/index.js +1 -1
  109. package/dist/{Lightbox-BOWTHnTb.js → Lightbox-LI6h7LFn.js} +3 -3
  110. package/dist/Link/index.d.ts +1 -1
  111. package/dist/Link/index.js +1 -1
  112. package/dist/{Link-B75ygGzG.js → Link-Dx2ql41g.js} +1 -1
  113. package/dist/List/index.d.ts +1 -1
  114. package/dist/Markdown/index.d.ts +1 -1
  115. package/dist/Markdown/index.js +1 -1
  116. package/dist/{Markdown-Cqrcj-ct.js → Markdown-BHWf2IOO.js} +3 -3
  117. package/dist/MetadataList/index.d.ts +1 -1
  118. package/dist/MobileNav/index.js +1 -1
  119. package/dist/{MobileNavToggle-DLpEONfs.js → MobileNavToggle-Dx7rmb-V.js} +3 -3
  120. package/dist/MoreMenu/index.d.ts +1 -1
  121. package/dist/MoreMenu/index.js +1 -1
  122. package/dist/{MoreMenu-aR88r9xp.js → MoreMenu-DAq29azZ.js} +3 -3
  123. package/dist/MultiSelector/index.d.ts +1 -1
  124. package/dist/MultiSelector/index.js +1 -1
  125. package/dist/{MultiSelector-UTaDe-YT.js → MultiSelector-BUXFzIla.js} +8 -8
  126. package/dist/NavItem/index.d.ts +1 -1
  127. package/dist/NavMenu/index.js +2 -2
  128. package/dist/{NavMenu-DS6y8ZAY.js → NavMenu-BoKuJq-K.js} +1 -1
  129. package/dist/{NavMenuItem-BqIi3o3D.js → NavMenuItem-Ez3_K8iI.js} +1 -1
  130. package/dist/NumberInput/index.d.ts +2 -2
  131. package/dist/NumberInput/index.js +1 -1
  132. package/dist/{NumberInput-ClkOGF5j.js → NumberInput-lqUmTsqB.js} +386 -99
  133. package/dist/OverflowList/index.d.ts +1 -1
  134. package/dist/OverflowList/index.js +1 -1
  135. package/dist/{OverflowList-UnVXBDIW.js → OverflowList-B6En7wIj.js} +1 -1
  136. package/dist/Overlay/index.d.ts +1 -1
  137. package/dist/Pagination/index.d.ts +1 -1
  138. package/dist/Pagination/index.js +1 -1
  139. package/dist/{Pagination-CTCLE02h.js → Pagination-CRrou1P-.js} +60 -49
  140. package/dist/Popover/index.d.ts +3 -3
  141. package/dist/Popover/index.js +1 -1
  142. package/dist/Popover-sERt08TR.js +1247 -0
  143. package/dist/PowerSearch/index.d.ts +1 -1
  144. package/dist/PowerSearch/index.js +1 -1
  145. package/dist/{PowerSearch-BBOum0TP.js → PowerSearch-CiVIW13b.js} +230 -143
  146. package/dist/ProgressBar/index.d.ts +1 -1
  147. package/dist/ProgressBar/index.js +1 -1
  148. package/dist/{ProgressBar-Bgg6zsKR.js → ProgressBar-yw2BCtB_.js} +1 -1
  149. package/dist/Radio/index.d.ts +1 -1
  150. package/dist/Radio/index.js +1 -1
  151. package/dist/{RadioGroup-DPy5JQhm.js → RadioGroup-B8QoJyJu.js} +5 -5
  152. package/dist/RadioList/index.d.ts +1 -1
  153. package/dist/RadioList/index.js +1 -1
  154. package/dist/{RadioList-UN7IxQg8.js → RadioList-BEv82wbs.js} +1 -1
  155. package/dist/ScrollableArea/index.d.ts +1 -1
  156. package/dist/SelectableCard/index.d.ts +1 -1
  157. package/dist/Selector/index.d.ts +1 -1
  158. package/dist/Selector/index.js +1 -1
  159. package/dist/{Selector-CCtsUveZ.js → Selector-Bj4q6aT5.js} +6 -6
  160. package/dist/SideNav/index.d.ts +1 -1
  161. package/dist/SideNav/index.js +2 -2
  162. package/dist/{SideNav-COl5ApOz.js → SideNav-CHSwzwTt.js} +7 -7
  163. package/dist/Slider/index.d.ts +1 -1
  164. package/dist/Slider/index.js +1 -1
  165. package/dist/{Slider-CYie9hWm.js → Slider-Bmksx8ng.js} +4 -4
  166. package/dist/Stack/index.d.ts +1 -1
  167. package/dist/StatusDot/index.js +1 -1
  168. package/dist/{StatusDot-CHfgSYmv.js → StatusDot-Bz4l43St.js} +1 -1
  169. package/dist/Stepper/index.d.ts +1 -1
  170. package/dist/Switch/index.d.ts +1 -1
  171. package/dist/Switch/index.js +1 -1
  172. package/dist/{Switch-D24CvhDS.js → Switch-CeNEvvTn.js} +5 -5
  173. package/dist/TabList/index.d.ts +1 -1
  174. package/dist/TabList/index.js +1 -1
  175. package/dist/{TabList-DToCh5JW.js → TabList-BLLxHXwu.js} +1 -1
  176. package/dist/Table/index.d.ts +1 -1
  177. package/dist/Table/index.js +1 -1
  178. package/dist/{Table-D3mzxBr0.js → Table-DEqfIA3q.js} +16 -16
  179. package/dist/Text/index.js +1 -1
  180. package/dist/{Text-5p-eZodt.js → Text-DkSHitKh.js} +1 -1
  181. package/dist/TextArea/index.d.ts +1 -1
  182. package/dist/TextArea/index.js +1 -1
  183. package/dist/{TextArea-Bp6D-riO.js → TextArea-CAcjMvls.js} +56 -22
  184. package/dist/TextInput/index.d.ts +1 -1
  185. package/dist/TextInput/index.js +1 -1
  186. package/dist/{TextInput-BYslwBDZ.js → TextInput-BvQQTG75.js} +78 -34
  187. package/dist/Theme/index.d.ts +2 -2
  188. package/dist/Thumbnail/index.js +1 -1
  189. package/dist/{Thumbnail-B_a8tOS7.js → Thumbnail-Bv-M13fy.js} +2 -2
  190. package/dist/{TimeField-MDSJny9m.js → TimeField-hB88chlQ.js} +13 -32
  191. package/dist/TimeInput/index.d.ts +1 -1
  192. package/dist/TimeInput/index.js +1 -1
  193. package/dist/{TimeInput-B19amuxi.js → TimeInput-JrTs9r66.js} +3 -3
  194. package/dist/Timer/index.js +1 -1
  195. package/dist/{Timer-BD3tfzrF.js → Timer-qjI_QrCz.js} +1 -1
  196. package/dist/Timestamp/index.d.ts +1 -1
  197. package/dist/Timestamp/index.js +1 -1
  198. package/dist/{Timestamp-CqWoZUKM.js → Timestamp-CJ_HUcek.js} +3 -3
  199. package/dist/Toast/index.js +1 -1
  200. package/dist/{Toast-BKPl8iIr.js → Toast-CFpOSuAr.js} +1 -1
  201. package/dist/ToggleButton/index.d.ts +1 -1
  202. package/dist/ToggleButton/index.js +1 -1
  203. package/dist/{ToggleButton-DfpsuhMa.js → ToggleButton-BtXMvoOA.js} +1 -1
  204. package/dist/Token/index.d.ts +1 -1
  205. package/dist/Tokenizer/index.d.ts +1 -1
  206. package/dist/Tokenizer/index.js +1 -1
  207. package/dist/{Tokenizer-C-eorFsF.js → Tokenizer-2zj57yDt.js} +4 -4
  208. package/dist/Toolbar/index.d.ts +1 -1
  209. package/dist/Tooltip/index.d.ts +1 -1
  210. package/dist/Tooltip/index.js +2 -2
  211. package/dist/{Tooltip-88zhGfzF.js → Tooltip-ByLqPCP7.js} +1 -1
  212. package/dist/TopNav/index.d.ts +1 -1
  213. package/dist/TopNav/index.js +1 -1
  214. package/dist/{TopNav-DMFIsFwy.js → TopNav-Ce79A3zT.js} +3 -3
  215. package/dist/TreeList/index.d.ts +1 -1
  216. package/dist/TreeList/index.js +1 -1
  217. package/dist/{TreeList-nU2gSmQm.js → TreeList-BEPHdVYu.js} +2 -2
  218. package/dist/Typeahead/index.d.ts +2 -2
  219. package/dist/Typeahead/index.js +1 -1
  220. package/dist/{Typeahead-DUQfmy_r.js → Typeahead-CBrUdbHv.js} +4 -4
  221. package/dist/{types-fRasDCe4.d.ts → adaptationTypes-Cn_pfrsw.d.ts} +155 -155
  222. package/dist/animator-BooLoGyI.js +3164 -0
  223. package/dist/announceRenderedText-CslZ0cev.js +50 -0
  224. package/dist/{assertOptions-DVRsfCk1.js → assertOptions-CJgNig1l.js} +2 -2
  225. package/dist/{batch-DR5SgbnX.js → batch-CM-vJhQg.js} +2 -278
  226. package/dist/{handle-ma1yF_B_.js → bezier-Cts7gENO.js} +1 -21
  227. package/dist/composables/index.d.ts +2 -2
  228. package/dist/composables/index.js +7 -7
  229. package/dist/{composables-Do86VAmM.js → composables-BtqijTIO.js} +5 -3163
  230. package/dist/{context-DsNhYm5O.js → context-CrVCeUUK.js} +1 -1
  231. package/dist/context-DH8E-qjm.js +173 -0
  232. package/dist/{edge-qfeek_VV.js → edge-BYXwSggM.js} +1 -1
  233. package/dist/{edgeRide-iWUNdlxe.js → edgeRide-B5mlN2Q4.js} +3 -3
  234. package/dist/escape-DzSxSmez.js +10 -0
  235. package/dist/{field-CehUqCe0.js → field-BaUBjqf5.js} +4 -2
  236. package/dist/{fieldParts-CbWvZLhH.js → fieldParts-CuE5V12i.js} +1 -1
  237. package/dist/{focusLeaving-Dqm8Yj4T.js → focusLeaving-DMkbxFkF.js} +1 -1
  238. package/dist/{focusReturn-C1cFL3WM.js → focusReturn-DfZS7TCp.js} +1 -1
  239. package/dist/handle-BazRxHwq.js +22 -0
  240. package/dist/holdEntranceInput-DMCOeRqu.js +37 -0
  241. package/dist/{index-CsYDrQ9R.d.ts → index-668zPVsH.d.ts} +1 -1
  242. package/dist/{index-CnVjgLP5.d.ts → index-B5aHF0Ml.d.ts} +1 -2
  243. package/dist/{index-CuW4AQ7M.d.ts → index-BD-Pxni9.d.ts} +3 -3
  244. package/dist/{index-DDAcxZAP.d.ts → index-BZUVNr2c.d.ts} +1 -1
  245. package/dist/{index-B52PMrO7.d.ts → index-BdhQpERn.d.ts} +7 -7
  246. package/dist/{index-CEjvYAUZ.d.ts → index-BenG-F5d.d.ts} +1 -1
  247. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  248. package/dist/{index-Qdbssopn.d.ts → index-BjqoHLMq.d.ts} +4 -1
  249. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  250. package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
  251. package/dist/{index-0RIgvtdm.d.ts → index-C2zWUiJ1.d.ts} +2 -2
  252. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  253. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  254. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  255. package/dist/{index-ZKBj_1nu.d.ts → index-CB6VQETg.d.ts} +2 -2
  256. package/dist/{index-BfoazhEu.d.ts → index-CTXG-KKT.d.ts} +1 -1
  257. package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
  258. package/dist/{index-_FjbcSgD.d.ts → index-CnOH43-f.d.ts} +1 -2
  259. package/dist/index-CuFLztiI.d.ts +49 -0
  260. package/dist/{index-QnlWyUxN.d.ts → index-D14kSf-g.d.ts} +4 -4
  261. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  262. package/dist/index-DHUCHxn2.d.ts +69 -0
  263. package/dist/{index-GmoeIuhl.d.ts → index-DMZ5SKJJ.d.ts} +35 -3
  264. package/dist/{index-CO9GW-ik.d.ts → index-DPklTi3o.d.ts} +1 -1
  265. package/dist/{index-Dcxqzk_d.d.ts → index-DSMv6W8s.d.ts} +8 -8
  266. package/dist/{index-BjmMJ_4E.d.ts → index-DY1kpap1.d.ts} +1657 -275
  267. package/dist/{index-DxR6cZBf.d.ts → index-DZCpswvp.d.ts} +1 -1
  268. package/dist/{index-BhdxP-OG.d.ts → index-DeZ11MNP.d.ts} +2 -2
  269. package/dist/{index-lmd9LZKB.d.ts → index-DlKz3dB1.d.ts} +6 -3
  270. package/dist/{index-CbA8rR_b.d.ts → index-FeZXsFO-.d.ts} +2 -2
  271. package/dist/{index-CH-xSiJz.d.ts → index-LqFjvL4C.d.ts} +4 -4
  272. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  273. package/dist/{index-DofC9Rll.d.ts → index-Otl047R1.d.ts} +1 -1
  274. package/dist/{index-DCyYldjP.d.ts → index-T5bzxQ30.d.ts} +1 -1
  275. package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
  276. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  277. package/dist/{index-DGXCnzOL.d.ts → index-aHC2C89h.d.ts} +1 -1
  278. package/dist/{index-DYabo8TI.d.ts → index-eCp-ElSp.d.ts} +1 -1
  279. package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
  280. package/dist/{index-0pBqcQXV.d.ts → index-tpkJfk6X.d.ts} +6 -1
  281. package/dist/index.d.ts +49 -52
  282. package/dist/index.js +90 -90
  283. package/dist/{holdEntranceInput-DjEzfGRU.js → inputHold-BmChuR9x.js} +87 -85
  284. package/dist/inputHoldState-pblUT4oh.js +39 -0
  285. package/dist/{interactionModality-CedLz5PC.js → interactionModality-4Km2ibsq.js} +4 -3
  286. package/dist/{landing-qVsYAZ-v.js → landing-B9Uvex6x.js} +3 -2
  287. package/dist/{layerFocusReturn-KvH6DMFT.js → layerFocusReturn-CEvrMbxH.js} +1 -1
  288. package/dist/lazyBottomSheet-CxEu25bK.js +16 -0
  289. package/dist/{loadCatalog-BeQt6Uq-.js → loadCatalog-BRd5XCbW.js} +24 -1
  290. package/dist/{loadCatalog-C8mRnC0E.d.ts → loadCatalog-CLm4V7mm.d.ts} +100 -2
  291. package/dist/locale/index.d.ts +2 -3
  292. package/dist/locale/index.js +3 -3
  293. package/dist/{locale-B4FpGKpc.js → locale-BkAezFog.js} +1 -1
  294. package/dist/{useHeldPresentation-fQsuYFhz.js → presentationHold-7IkbR4d8.js} +14 -22
  295. package/dist/progress-FQfSgLZC.js +38 -0
  296. package/dist/renderedText-BwJdmps3.js +32 -0
  297. package/dist/textEntryTraits-cb0LZSNl.js +11 -0
  298. package/dist/themeTiming-CWEvdh31.js +287 -0
  299. package/dist/{tooltipFocusRules-CFNKWzYn.js → tooltipFocusRules-DvVDuqZI.js} +1 -1
  300. package/dist/{context-WY1ippwe.js → transientCopy-VAsg2a46.js} +1 -172
  301. package/dist/{types-OGMYGejX.d.ts → types-BA1veIoa.d.ts} +25 -2
  302. package/dist/{types-bAQk3F8G.d.ts → types-Cvh2VwQZ.d.ts} +4 -2
  303. package/dist/{types-C1ydeFiu.d.ts → types-DL-hRibg.d.ts} +1 -1
  304. package/dist/{useChatStreamScroll-BIMKffDA.js → useChatStreamScroll-Cv51kRT0.js} +91 -30
  305. package/dist/useEntryErrorReport-Wee3N8IA.js +51 -0
  306. package/dist/{useFocusTrap-DTz_d7IP.js → useFocusTrap-BD9POtMp.js} +2 -2
  307. package/dist/useHeldPresentation-7MH-RlSF.js +24 -0
  308. package/dist/{useInputStatusIcon-B6m_t8cK.d.ts → useInputStatusIcon-CFkOmDS4.d.ts} +1 -1
  309. package/dist/{useInputStatusIcon-BFw-EXjJ.js → useInputStatusIcon-CGj9gMj8.js} +1 -1
  310. package/dist/{useMenuDrillIn-CDn2na4X.js → useMenuDrillIn-CP0P49ej.js} +1 -1
  311. package/dist/{useMenuPress-CxUqSUZ9.js → useMenuPress-DU6pAIHy.js} +4 -2
  312. package/dist/{useRestoreFocus-BxooFhas.js → useRestoreFocus-AeZABFZN.js} +2 -2
  313. package/dist/{useTooltip-CJHbG8Pv.js → useTooltip-Bsm43vbi.js} +5 -35
  314. package/dist/{useTouchTriggerInternal-Bdm_M4aa.js → useTouchTriggerInternal-Bl602PtA.js} +1 -1
  315. package/dist/{useTruncationTooltip-BTcr1LCR.js → useTruncationTooltip-wc6Lzz34.js} +3 -3
  316. package/package.json +1 -1
  317. package/styles/alert-dialog.css +5 -0
  318. package/styles/chat.css +45 -17
  319. package/styles/command-palette.css +9 -6
  320. package/styles/dropdown-menu.css +47 -38
  321. package/styles/file-input.css +8 -1
  322. package/styles/input-group.css +0 -15
  323. package/styles/number-input.css +49 -4
  324. package/styles/pagination.css +0 -22
  325. package/styles/popover.css +13 -0
  326. package/styles/text-area.css +16 -1
  327. package/styles/text-input.css +26 -5
  328. package/dist/Popover-CZvRSqqD.js +0 -374
  329. package/dist/index-B63NOJRc.d.ts +0 -957
  330. package/dist/index-B9WzWqzk.d.ts +0 -18
  331. package/dist/index-BtgkNd0Q.d.ts +0 -446
  332. package/dist/power-search-CuMzfLwW.d.ts +0 -87
  333. package/dist/types-DIYwbkpe.d.ts +0 -33
  334. package/dist/{index-CHx33xGa.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -1,3 +1,4 @@
1
+ import { i as subscribeInput } from "./inputStream-LZdK8luP.js";
1
2
  import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
3
  import { onScopeDispose, ref, toValue, watch } from "vue";
3
4
  //#region src/composables/useChatNewMessages.ts
@@ -47,6 +48,65 @@ function useChatNewMessages(options) {
47
48
  };
48
49
  }
49
50
  //#endregion
51
+ //#region src/utils/pageScroller.ts
52
+ /**
53
+ * @file pageScroller.ts
54
+ * @input 一个滚动容器元素
55
+ * @output scrollsPage、scrollportTop、scrollEventTarget:容器本身就是整页滚动者时的几条规则
56
+ * @position 页面滚动的判断只在这里写一遍,聊天的跟随滚动读它
57
+ */
58
+ /**
59
+ * 元素是不是整页的滚动者。页面滚动时根元素的盒子跟着一起移动,它的滚动事件触发在 document 上。
60
+ * 即便滚动元素是 body(怪异模式),documentElement 也算:它的盒子照样随页面移动。
61
+ */
62
+ function scrollsPage(el) {
63
+ const doc = el.ownerDocument;
64
+ return el === doc.scrollingElement || el === doc.documentElement;
65
+ }
66
+ /** 容器可见区域的顶边(客户端坐标)。整页滚动者的顶边是视口顶部,它自己的盒子比视口顶部高出整段滚动量。 */
67
+ function scrollportTop(el) {
68
+ return scrollsPage(el) ? 0 : el.getBoundingClientRect().top;
69
+ }
70
+ /** 容器的滚动事件触发在哪:整页滚动者触发在 document 上。 */
71
+ function scrollEventTarget(el) {
72
+ return scrollsPage(el) ? el.ownerDocument : el;
73
+ }
74
+ //#endregion
75
+ //#region src/composables/internal/scrollAnchoring.ts
76
+ /**
77
+ * @file scrollAnchoring.ts
78
+ * @input 一个由组件自己掌管位置的滚动容器
79
+ * @output setScrollAnchoringOff:在元素上关掉浏览器的滚动锚定,或还回去
80
+ * @position 私有滚动锚定属性的唯一属主:属性名和规则只在这个文件里写。聊天的跟随滚动在贴着末尾时调用它
81
+ */
82
+ const SCROLL_ANCHORING = "data-astryx-scroll-anchoring";
83
+ /** 写在滚动容器上:这里的浏览器锚定已关。 */
84
+ const OFF = "off";
85
+ /** 写在放这条规则的那一个 `<style>` 上。 */
86
+ const RULE = "rule";
87
+ /**
88
+ * 每个文档只加一次这条规则。规则挂在属性上而不是元素的行内样式,所以调用方自己的
89
+ * `overflow-anchor` 既不会被读、也不会被写或还原,属性去掉后它重新生效。
90
+ * 这条规则不抢优先级:调用方想在这个容器上自己决定锚定时,行内样式仍然优先。
91
+ */
92
+ function ensureRule(doc) {
93
+ if (doc.head.querySelector(`[${SCROLL_ANCHORING}="${RULE}"]`) != null) return;
94
+ const style = doc.createElement("style");
95
+ style.setAttribute(SCROLL_ANCHORING, RULE);
96
+ style.textContent = `[${SCROLL_ANCHORING}="${OFF}"]{overflow-anchor:none}`;
97
+ doc.head.appendChild(style);
98
+ }
99
+ /**
100
+ * `isOff` 为真时关掉 `element` 上浏览器的滚动锚定,为假时还回去。
101
+ * 组件独自移动容器位置期间调用,免得浏览器的原生锚定再移动一次。
102
+ */
103
+ function setScrollAnchoringOff(element, isOff) {
104
+ if (isOff) {
105
+ ensureRule(element.ownerDocument);
106
+ element.setAttribute(SCROLL_ANCHORING, OFF);
107
+ } else element.removeAttribute(SCROLL_ANCHORING);
108
+ }
109
+ //#endregion
50
110
  //#region src/composables/useChatStreamScroll.ts
51
111
  const SIXTY_FPS_MS = 1e3 / 60;
52
112
  const CHAT_MESSAGE_CLASS = "astryx-chat-message";
@@ -58,6 +118,11 @@ const CHAT_MESSAGE_CLASS = "astryx-chat-message";
58
118
  * a spring, unless reduced motion is requested. Scrolling up — wheel, touch,
59
119
  * keyboard, or the scrollbar — unlocks immediately. Settling within
60
120
  * `lockThreshold` of the bottom locks again.
121
+ *
122
+ * While locked the hook is the only thing that moves the container, so the
123
+ * browser's scroll anchoring is off on it. `scrollRef` may be the page's own
124
+ * scroller (`document.scrollingElement`): the hook then listens to the
125
+ * document's scroll events and measures the visible height from the viewport.
61
126
  */
62
127
  function useChatStreamScroll(options) {
63
128
  const { scrollRef, enabled = true, lockThreshold = 10, buttonThreshold = 100, damping = .7, stiffness = .05, mass = 1.25 } = options;
@@ -76,11 +141,9 @@ function useChatStreamScroll(options) {
76
141
  function setLocked(next) {
77
142
  locked = next;
78
143
  isLocked.value = next;
79
- if (!next) {
80
- cancelFrame();
81
- const el = scrollRef.value;
82
- if (el) markScrolling(el, false);
83
- }
144
+ const el = scrollRef.value;
145
+ if (el) setScrollAnchoringOff(el, next);
146
+ if (!next) cancelFrame();
84
147
  }
85
148
  function cancelFrame() {
86
149
  if (frame) {
@@ -91,27 +154,20 @@ function useChatStreamScroll(options) {
91
154
  velocity = 0;
92
155
  lastTick = void 0;
93
156
  }
94
- function markScrolling(el, active) {
95
- if (active) el.setAttribute("data-astryx-scrolling", "");
96
- else el.removeAttribute("data-astryx-scrolling");
97
- }
98
157
  function jumpToBottom() {
99
158
  const el = scrollRef.value;
100
159
  if (!el) return;
101
160
  cancelFrame();
102
161
  el.scrollTop = el.scrollHeight - el.clientHeight;
103
162
  lastScrollTop = el.scrollTop;
104
- markScrolling(el, false);
105
163
  }
106
164
  function animate() {
107
165
  const el = scrollRef.value;
108
166
  if (!el || !locked) {
109
- if (el) markScrolling(el, false);
110
167
  cancelFrame();
111
168
  return;
112
169
  }
113
170
  if (el.scrollHeight <= el.clientHeight) {
114
- markScrolling(el, false);
115
171
  cancelFrame();
116
172
  return;
117
173
  }
@@ -120,7 +176,6 @@ function useChatStreamScroll(options) {
120
176
  if (Math.abs(diff) < .5 && Math.abs(velocity) < .1) {
121
177
  el.scrollTop = target;
122
178
  lastScrollTop = el.scrollTop;
123
- markScrolling(el, false);
124
179
  cancelFrame();
125
180
  return;
126
181
  }
@@ -130,10 +185,7 @@ function useChatStreamScroll(options) {
130
185
  velocity = (damping * velocity + stiffness * diff) / mass;
131
186
  el.scrollTop += velocity * tickDelta;
132
187
  lastScrollTop = el.scrollTop;
133
- if (!locked) {
134
- markScrolling(el, false);
135
- return;
136
- }
188
+ if (!locked) return;
137
189
  frame = requestAnimationFrame(animate);
138
190
  }
139
191
  function startAnimation() {
@@ -142,8 +194,6 @@ function useChatStreamScroll(options) {
142
194
  jumpToBottom();
143
195
  return;
144
196
  }
145
- const el = scrollRef.value;
146
- if (el) markScrolling(el, true);
147
197
  if (!animating) {
148
198
  animating = true;
149
199
  lastTick = void 0;
@@ -163,8 +213,7 @@ function useChatStreamScroll(options) {
163
213
  function scrollToMessage(el) {
164
214
  const container = scrollRef.value;
165
215
  if (!container) return;
166
- const containerRect = container.getBoundingClientRect();
167
- const offset = el.getBoundingClientRect().top - containerRect.top + container.scrollTop;
216
+ const offset = el.getBoundingClientRect().top - scrollportTop(container) + container.scrollTop;
168
217
  container.scrollTo({
169
218
  top: offset,
170
219
  behavior: "instant"
@@ -198,11 +247,15 @@ function useChatStreamScroll(options) {
198
247
  }
199
248
  watch(() => [scrollRef.value, toValue(enabled)], ([el, isEnabled], _, onCleanup) => {
200
249
  if (!el || !isEnabled) return;
250
+ const isPage = scrollsPage(el);
251
+ const shownHeight = () => isPage ? el.clientHeight : el.offsetHeight;
201
252
  lastScrollTop = el.scrollTop;
202
253
  lastScrollHeight = el.scrollHeight;
203
- lastOffsetHeight = el.offsetHeight;
254
+ lastOffsetHeight = shownHeight();
255
+ setScrollAnchoringOff(el, locked);
204
256
  const onScroll = () => {
205
- const { scrollTop, scrollHeight, offsetHeight } = el;
257
+ const { scrollTop, scrollHeight } = el;
258
+ const offsetHeight = shownHeight();
206
259
  const distance = scrollHeight - scrollTop - offsetHeight;
207
260
  isScrolledUp.value = distance > buttonThreshold;
208
261
  const scrollHeightChanged = scrollHeight !== lastScrollHeight;
@@ -218,10 +271,7 @@ function useChatStreamScroll(options) {
218
271
  if (isScrollingUp && locked) setLocked(false);
219
272
  };
220
273
  const onScrollEnd = () => {
221
- if (el.scrollHeight - el.scrollTop - el.offsetHeight <= lockThreshold) {
222
- locked = true;
223
- isLocked.value = true;
224
- }
274
+ if (el.scrollHeight - el.scrollTop - shownHeight() <= lockThreshold) setLocked(true);
225
275
  };
226
276
  const onWheel = (event) => {
227
277
  if (event.deltaY < 0 && animating) setLocked(false);
@@ -229,8 +279,18 @@ function useChatStreamScroll(options) {
229
279
  const onTouchMove = () => {
230
280
  if (animating) setLocked(false);
231
281
  };
232
- el.addEventListener("scroll", onScroll, { passive: true });
233
- el.addEventListener("scrollend", onScrollEnd);
282
+ const eventTarget = scrollEventTarget(el);
283
+ const view = eventTarget === el.ownerDocument ? el.ownerDocument.defaultView : null;
284
+ const stopPageListeners = [];
285
+ if (view != null) {
286
+ const atDocument = (listener) => (event) => {
287
+ if (event.target === eventTarget) listener();
288
+ };
289
+ stopPageListeners.push(subscribeInput(view, "scroll", atDocument(onScroll)), subscribeInput(view, "scrollend", atDocument(onScrollEnd)));
290
+ } else {
291
+ el.addEventListener("scroll", onScroll, { passive: true });
292
+ el.addEventListener("scrollend", onScrollEnd);
293
+ }
234
294
  el.addEventListener("wheel", onWheel, { passive: true });
235
295
  el.addEventListener("touchmove", onTouchMove, { passive: true });
236
296
  const initialFrame = requestAnimationFrame(() => {
@@ -243,11 +303,12 @@ function useChatStreamScroll(options) {
243
303
  onCleanup(() => {
244
304
  cancelAnimationFrame(initialFrame);
245
305
  cancelFrame();
306
+ for (const stop of stopPageListeners) stop();
246
307
  el.removeEventListener("scroll", onScroll);
247
308
  el.removeEventListener("scrollend", onScrollEnd);
248
309
  el.removeEventListener("wheel", onWheel);
249
310
  el.removeEventListener("touchmove", onTouchMove);
250
- markScrolling(el, false);
311
+ setScrollAnchoringOff(el, false);
251
312
  });
252
313
  }, { immediate: true });
253
314
  return {
@@ -0,0 +1,51 @@
1
+ import { computed, onScopeDispose, shallowRef, watch } from "vue";
2
+ //#region src/Field/useEntryErrorReport.ts
3
+ /** 两个拒绝的每个字段都相同。 */
4
+ function isSameEntryError(a, b) {
5
+ if (a === b) return true;
6
+ if (a == null || b == null) return false;
7
+ const keys = /* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)]);
8
+ for (const key of keys) if (!Object.is(a[key], b[key])) return false;
9
+ return true;
10
+ }
11
+ /**
12
+ * 会拒绝打进来的文字的字段(DateInput、TimeInput、NumberInput)共用的状态、alert 和汇报。
13
+ * 每个成员自己决定什么时候拒绝、说明怎么写;这里管亮着的拒绝如何顶替调用方状态、
14
+ * 怎么只念一次,以及把每次变化报给调用方。
15
+ */
16
+ function useEntryErrorReport(options) {
17
+ const callerError = computed(() => {
18
+ const status = options.status();
19
+ return (options.callerErrorPrecedence === "always" || options.hasListener()) && status?.type === "error" && status.message ? status.message : null;
20
+ });
21
+ const fieldStatus = computed(() => {
22
+ const message = options.rejectionMessage();
23
+ return message != null && callerError.value == null ? {
24
+ type: "error",
25
+ message
26
+ } : options.status();
27
+ });
28
+ const repeat = shallowRef(null);
29
+ watch(() => options.rejectionMessage() != null, (rejected) => {
30
+ repeat.value = rejected ? callerError.value : null;
31
+ });
32
+ watch(callerError, (next) => {
33
+ if (repeat.value !== null && repeat.value !== next) repeat.value = null;
34
+ });
35
+ const alertMessage = computed(() => options.rejectionMessage() != null && repeat.value != null && repeat.value === callerError.value ? repeat.value : "");
36
+ let lastReport = null;
37
+ watch(options.entryError, (next) => {
38
+ if (isSameEntryError(next, lastReport)) return;
39
+ lastReport = next;
40
+ options.report(next);
41
+ });
42
+ onScopeDispose(() => {
43
+ if (lastReport != null) options.report(null);
44
+ });
45
+ return {
46
+ fieldStatus,
47
+ alertMessage
48
+ };
49
+ }
50
+ //#endregion
51
+ export { useEntryErrorReport as t };
@@ -1,7 +1,7 @@
1
1
  import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
2
- import { a as trackInteractionModality } from "./interactionModality-CedLz5PC.js";
2
+ import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
3
  import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
4
- import { t as focusForLastInput } from "./focusReturn-C1cFL3WM.js";
4
+ import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
5
5
  import { onScopeDispose, ref, toValue, watch } from "vue";
6
6
  //#region src/composables/useFocusTrap.ts
7
7
  /**
@@ -0,0 +1,24 @@
1
+ import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-7IkbR4d8.js";
2
+ import { computed, toValue, watch } from "vue";
3
+ //#region src/layer/useHeldPresentation.ts
4
+ function useHeldPresentation(presentation, isOpen) {
5
+ const live = useAdaptivePresentation(presentation);
6
+ const hold = usePresentationHold({
7
+ isOpen,
8
+ presentation: live
9
+ });
10
+ const surface = computed(() => hold.presentation.value ?? live.value);
11
+ watch(() => toValue(isOpen), (open) => {
12
+ if (!open && hold.presentation.value === "popover") hold.release();
13
+ });
14
+ function settle() {
15
+ if (!toValue(isOpen)) hold.release();
16
+ }
17
+ return {
18
+ surface,
19
+ isSheet: computed(() => surface.value === "bottom-sheet"),
20
+ settle
21
+ };
22
+ }
23
+ //#endregion
24
+ export { useHeldPresentation as t };
@@ -1,4 +1,4 @@
1
- import { o as FieldStatusInput } from "./types-bAQk3F8G.js";
1
+ import { o as FieldStatusInput } from "./types-Cvh2VwQZ.js";
2
2
  import { Component, ComputedRef, MaybeRefOrGetter } from "vue";
3
3
  //#region src/composables/useInputStatusIcon.d.ts
4
4
  /** 状态图标相对输入框的位置。 */
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-Dwl9HNp1.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DmDOcxU1.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -3,7 +3,7 @@ import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
4
  import { t as _sfc_main$5 } from "./Item-DUI1Qnnd.js";
5
5
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
6
- import { n as readCompactTouch, r as useCompactDefinition } from "./useHeldPresentation-fQsuYFhz.js";
6
+ import { a as useCompactDefinition, r as readCompactTouch } from "./presentationHold-7IkbR4d8.js";
7
7
  import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
8
8
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
9
9
  import "../styles/dropdown-menu.css";
@@ -1,7 +1,8 @@
1
1
  import { m as msSinceInput } from "./pressFeedback-DVR5V1b6.js";
2
2
  import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-FrlnECMp.js";
3
3
  import { c as currentGesture } from "./layerDepth-D3Rh8T5C.js";
4
- import { t as focusForLastInput } from "./focusReturn-C1cFL3WM.js";
4
+ import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
5
+ import { r as isInputShield } from "./inputHoldState-pblUT4oh.js";
5
6
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
6
7
  //#region src/composables/useLongPress.ts
7
8
  const DEFAULT_DELAY_MS = 500;
@@ -263,7 +264,8 @@ function getOutermostRoot(menu) {
263
264
  function elementUnder(event, doc, menu, hitTest) {
264
265
  const tree = menu?.getRootNode();
265
266
  const scope = tree != null && typeof tree.elementFromPoint === "function" ? tree : doc;
266
- const hit = hitTest != null ? hitTest(event.clientX, event.clientY) : typeof scope.elementFromPoint === "function" ? scope.elementFromPoint(event.clientX, event.clientY) : null;
267
+ let hit = hitTest != null ? hitTest(event.clientX, event.clientY) : typeof scope.elementFromPoint === "function" ? scope.elementFromPoint(event.clientX, event.clientY) : null;
268
+ if (hitTest == null && isInputShield(hit) && typeof scope.elementsFromPoint === "function") hit = scope.elementsFromPoint(event.clientX, event.clientY).find((candidate) => !isInputShield(candidate)) ?? null;
267
269
  if (hit != null) return hit;
268
270
  return event.target instanceof Element ? event.target : null;
269
271
  }
@@ -1,5 +1,5 @@
1
- import { a as trackInteractionModality } from "./interactionModality-CedLz5PC.js";
2
- import { t as focusForLastInput } from "./focusReturn-C1cFL3WM.js";
1
+ import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
2
+ import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
3
3
  import { onScopeDispose, watch } from "vue";
4
4
  //#region src/composables/useRestoreFocus.ts
5
5
  /**
@@ -2,10 +2,11 @@ import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
3
  import { n as useLayer } from "./tooltipTriggerRules-DyPyWOdP.js";
4
4
  import { t as _sfc_main$1 } from "./LayerContentBoundary-LCQLyxBT.js";
5
- import { a as trackInteractionModality } from "./interactionModality-CedLz5PC.js";
5
+ import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bdm_M4aa.js";
8
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-CFNKWzYn.js";
7
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bl602PtA.js";
8
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-DvVDuqZI.js";
9
+ import { t as renderedText } from "./renderedText-BwJdmps3.js";
9
10
  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";
10
11
  import "../styles/tooltip.css";
11
12
  //#region src/Tooltip/TooltipSurface.vue
@@ -76,37 +77,6 @@ function listenPressEnd(onEnd) {
76
77
  return stop;
77
78
  }
78
79
  //#endregion
79
- //#region src/Tooltip/renderedText.ts
80
- const HIDDEN = "[aria-hidden=\"true\"], [hidden]";
81
- const BLOCKS = "p, div, li, br, h1, h2, h3, h4, h5, h6";
82
- /**
83
- * 对应原版 `hooks/useAnnounceRenderedText` 里的 `renderedText`:
84
- * 读屏会念到的文字。块级元素之间隔开,`aria-hidden` 和 `hidden` 的部分跳过。
85
- * 读的是真实 DOM,所以计算后的 display 也算数。
86
- */
87
- function renderedText(element) {
88
- const view = element.ownerDocument.defaultView;
89
- const displayOf = (node) => view?.getComputedStyle(node).display ?? "";
90
- const parts = [];
91
- const walk = (node, parentDisplay) => {
92
- if (node.nodeType === Node.TEXT_NODE) {
93
- parts.push(node.textContent ?? "");
94
- return;
95
- }
96
- if (node.nodeType !== Node.ELEMENT_NODE) return;
97
- const part = node;
98
- if (part.matches(HIDDEN)) return;
99
- const display = displayOf(part);
100
- const isBlock = part.matches(BLOCKS) || display !== "" && display !== "contents" && !display.startsWith("inline") || /\b(?:flex|grid)\b/.test(parentDisplay);
101
- if (isBlock) parts.push(" ");
102
- part.childNodes.forEach((child) => walk(child, display));
103
- if (isBlock) parts.push(" ");
104
- };
105
- const ownDisplay = displayOf(element);
106
- element.childNodes.forEach((child) => walk(child, ownDisplay));
107
- return parts.join("").replace(/\s+/g, " ").trim();
108
- }
109
- //#endregion
110
80
  //#region src/Tooltip/tooltipPresentInterest.ts
111
81
  /** 仅库内部使用,不从 Tooltip 入口导出。 */
112
82
  const tooltipPresentInterestKey = Symbol("astryx-tooltip-present-interest");
@@ -421,4 +391,4 @@ function useTooltip(options = {}) {
421
391
  };
422
392
  }
423
393
  //#endregion
424
- export { _sfc_main as i, tooltipPresentInterestKey as n, renderedText as r, useTooltip as t };
394
+ export { tooltipPresentInterestKey as n, _sfc_main as r, useTooltip as t };
@@ -1,6 +1,6 @@
1
1
  import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { c as currentGesture } from "./layerDepth-D3Rh8T5C.js";
3
- import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-CedLz5PC.js";
3
+ import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/tapRecognizer.ts
6
6
  /** 「按下去」算作点击的指针类型。笔只在落笔时算:悬停的笔和鼠标一样是悬停。 */
@@ -1,7 +1,7 @@
1
1
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-DyPyWOdP.js";
2
- import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-CedLz5PC.js";
3
- import { n as tooltipPresentInterestKey } from "./useTooltip-CJHbG8Pv.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-88zhGfzF.js";
2
+ import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-Bsm43vbi.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-ByLqPCP7.js";
5
5
  import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.25.0",
4
+ "version": "0.26.1",
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",
@@ -63,4 +63,9 @@
63
63
  .astryx-alert-dialog[data-layout='stacked'] .astryx-alert-dialog__footer[data-press-tracking] {
64
64
  touch-action: pan-x pinch-zoom;
65
65
  }
66
+
67
+ /* 手指下弹窗的缩放和淡入由脚本动效驱动,主题的 CSS 进场让位。 */
68
+ .astryx-alert-dialog[data-touch-motion][open] {
69
+ animation: none;
70
+ }
66
71
  }
package/styles/chat.css CHANGED
@@ -17,10 +17,6 @@
17
17
  overflow-y: auto;
18
18
  }
19
19
 
20
- .astryx-chat-layout[data-astryx-scrolling] {
21
- scrollbar-width: none;
22
- }
23
-
24
20
  .astryx-chat-layout__messages {
25
21
  display: flex;
26
22
  flex-direction: column;
@@ -173,9 +169,10 @@
173
169
  outline: none;
174
170
  }
175
171
 
172
+ /* 列表撑满滚动它的区域,边缘会被裁掉,所以键盘焦点环画在自己的盒子里面。 */
176
173
  .astryx-chat-message-list:focus-visible {
177
- outline: 2px solid var(--astryx-chat-focus, var(--astryx-focus-outline-color));
178
- outline-offset: 2px;
174
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-chat-focus, var(--astryx-focus-outline-color, currentcolor));
175
+ outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
179
176
  }
180
177
 
181
178
  .astryx-chat-message-list__inner {
@@ -261,12 +258,21 @@
261
258
  .astryx-chat-message:has(.astryx-chat-message__avatar)[data-density='balanced'] { gap: var(--astryx-spacing-2, 8px); }
262
259
  .astryx-chat-message:has(.astryx-chat-message__avatar)[data-density='spacious'] { gap: var(--astryx-spacing-3, 12px); }
263
260
 
264
- .astryx-chat-message__avatar {
265
- flex-shrink: 0;
261
+ /*
262
+ * 头像顶部的偏移由每条消息自己根据自己的内容设定(只看自己,不看兄弟),
263
+ * 嵌套的消息各设各的,不会继承外层那条的值。
264
+ */
265
+ .astryx-chat-message {
266
+ --_chat-avatar-offset: 0px;
266
267
  }
267
268
 
268
- .astryx-chat-message:has([data-chat-name]) .astryx-chat-message__avatar {
269
- margin-block-start: var(--astryx-spacing-5, 20px);
269
+ .astryx-chat-message:has([data-chat-name]) {
270
+ --_chat-avatar-offset: var(--astryx-spacing-5, 20px);
271
+ }
272
+
273
+ .astryx-chat-message__avatar {
274
+ flex-shrink: 0;
275
+ margin-block-start: var(--_chat-avatar-offset);
270
276
  }
271
277
 
272
278
  .astryx-chat-message__column {
@@ -482,8 +488,7 @@
482
488
  padding-block: var(--astryx-spacing-1, 4px);
483
489
  color: var(--astryx-chat-foreground-secondary, var(--astryx-color-text-secondary));
484
490
  font-size: var(--astryx-text-supporting-size, 0.75rem);
485
- /* Original default system rows measure 18px, not the 20px supporting leading. */
486
- line-height: 1.5;
491
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
487
492
  text-align: center;
488
493
  }
489
494
 
@@ -896,6 +901,13 @@
896
901
  border-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
897
902
  }
898
903
 
904
+ /* 点一下输入区就会升起键盘,聚焦外观淡入会在升起的每一帧重绘,所以粗指针下立刻显示。 */
905
+ @media (pointer: coarse) {
906
+ .astryx-chat-composer__body {
907
+ transition-duration: 0s;
908
+ }
909
+ }
910
+
899
911
  .astryx-chat-composer__body:is(:disabled, [aria-disabled='true']) {
900
912
  cursor: default;
901
913
  }
@@ -970,6 +982,17 @@
970
982
  gap: var(--astryx-spacing-1, 4px);
971
983
  }
972
984
 
985
+ /* 调用方的操作在页脚里换行,发送操作始终留在输入区里;比页脚还宽的操作仍然截断。 */
986
+ .astryx-chat-composer__footer-start {
987
+ flex-wrap: wrap;
988
+ min-width: 0;
989
+ }
990
+
991
+ /* 主操作从不为调用方的操作让出宽度。 */
992
+ .astryx-chat-composer__footer-end {
993
+ flex-shrink: 0;
994
+ }
995
+
973
996
  .astryx-chat-composer__header-end {
974
997
  display: flex;
975
998
  align-items: center;
@@ -1064,6 +1087,8 @@
1064
1087
  }
1065
1088
 
1066
1089
  .astryx-chat-composer-input__editable {
1090
+ /* 编辑区是会滚动的 flex 子项,自动最小高度为 0:重新排版后空的编辑区可能塌成 0px,点击就落不到它身上。 */
1091
+ min-height: 22px;
1067
1092
  outline: none;
1068
1093
  white-space: pre-wrap;
1069
1094
  word-break: break-word;
@@ -1110,8 +1135,10 @@
1110
1135
  }
1111
1136
 
1112
1137
  .astryx-chat-send {
1138
+ /* 发送键自己声明按钮圆角:输入区的同心圆角靠继承传给别的按钮,发送键在里面仍保持圆形。 */
1139
+ --astryx-button-radius: var(--astryx-radius-full, 9999px);
1113
1140
  flex-shrink: 0;
1114
- border-radius: var(--astryx-button-radius, var(--astryx-radius-full, 9999px));
1141
+ border-radius: var(--astryx-button-radius);
1115
1142
  }
1116
1143
 
1117
1144
  .astryx-chat-drawer {
@@ -1123,12 +1150,13 @@
1123
1150
  box-sizing: border-box;
1124
1151
  padding-inline: var(--astryx-spacing-4, 16px);
1125
1152
  padding-block-start: var(--astryx-spacing-3, 12px);
1126
- padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--astryx-radius-chat, 28px));
1127
- margin-block-end: calc(-1 * var(--astryx-radius-chat, 28px));
1153
+ /* 抽屉塞在输入区正文后面一个圆角的高度,顶部圆角和这段塞入量都跟着输入区自己的圆角;单独使用时取聊天圆角。 */
1154
+ padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1155
+ margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1128
1156
  background-color: var(--astryx-color-background-surface);
1129
1157
  background-image: linear-gradient(var(--astryx-color-background-muted), var(--astryx-color-background-muted));
1130
- border-start-start-radius: var(--astryx-radius-chat, 28px);
1131
- border-start-end-radius: var(--astryx-radius-chat, 28px);
1158
+ border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1159
+ border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1132
1160
  }
1133
1161
 
1134
1162
  .astryx-chat-drawer__toggle {
@@ -118,7 +118,7 @@
118
118
  background: transparent;
119
119
  color: var(--astryx-color-text-primary, #171717);
120
120
  font-size: var(--astryx-text-label-size, 0.875rem);
121
- line-height: var(--astryx-text-body-leading, 1.4286);
121
+ line-height: var(--astryx-text-label-leading, 1.4286);
122
122
  text-align: start;
123
123
  cursor: pointer;
124
124
  }
@@ -129,11 +129,11 @@
129
129
  }
130
130
  }
131
131
 
132
- .astryx-command-palette-item[data-highlighted='true'] {
132
+ .astryx-command-palette-item[data-highlighted='highlighted'] {
133
133
  background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
134
134
  }
135
135
 
136
- .astryx-command-palette-item[data-selected='true'] {
136
+ .astryx-command-palette-item[data-selected='selected'] {
137
137
  background: var(--astryx-color-accent-muted, light-dark(#0082fb33, #0082fb3f));
138
138
  }
139
139
 
@@ -147,11 +147,11 @@
147
147
  background: transparent;
148
148
  }
149
149
 
150
- .astryx-command-palette-item[data-highlighted='true']:active:not([data-disabled]) {
150
+ .astryx-command-palette-item[data-highlighted='highlighted']:active:not([data-disabled]) {
151
151
  background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
152
152
  }
153
153
 
154
- .astryx-command-palette-item[data-selected='true']:active:not([data-disabled]) {
154
+ .astryx-command-palette-item[data-selected='selected']:active:not([data-disabled]) {
155
155
  background: var(--astryx-color-accent-muted, light-dark(#0082fb33, #0082fb3f));
156
156
  }
157
157
 
@@ -160,7 +160,7 @@
160
160
  }
161
161
  }
162
162
 
163
- .astryx-command-palette-item[data-disabled='true'] {
163
+ .astryx-command-palette-item[data-disabled='disabled'] {
164
164
  opacity: 0.5;
165
165
  cursor: default;
166
166
  }
@@ -175,6 +175,9 @@
175
175
  font-size: var(--astryx-text-supporting-size, 0.75rem);
176
176
  line-height: var(--astryx-text-supporting-leading, 1.6667);
177
177
  text-align: center;
178
+ /* 回显进消息里的路径、网址这类长串要能折行,不然会把居中的行撑宽,两头都滚不到。 */
179
+ overflow-wrap: anywhere;
180
+ --_astryx-text-overflow-wrap: anywhere;
178
181
  }
179
182
 
180
183
  .astryx-command-palette-footer {