@astryx-vue/core 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Cub9_aPC.js → AlertDialog-Sku86l_R.js} +191 -5
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-D62A7lqZ.js → AppShell-CJWvaqgZ.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-BKoSK75s.js → Avatar-C5KaulzE.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Badge/index.d.ts +1 -2
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/BottomSheet/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.js +2 -2
  12. package/dist/{BottomSheet-DGhRZLw4.js → BottomSheet-BtuF3uH6.js} +6 -3
  13. package/dist/{BottomSheet-CpLYy3vb.js → BottomSheet-DKrJyrhw.js} +1 -1
  14. package/dist/Breadcrumbs/index.js +2 -2
  15. package/dist/{Breadcrumbs-D-nHDHV8.js → Breadcrumbs-Cvzwy6sZ.js} +1 -1
  16. package/dist/Button/index.d.ts +1 -1
  17. package/dist/ButtonGroup/index.d.ts +1 -1
  18. package/dist/Calendar/index.d.ts +1 -1
  19. package/dist/Carousel/index.d.ts +1 -1
  20. package/dist/Chat/index.d.ts +1 -1
  21. package/dist/Chat/index.js +1 -1
  22. package/dist/{Chat-U1qq8gkF.js → Chat-BIHEfSec.js} +202 -40
  23. package/dist/CheckboxInput/index.d.ts +1 -1
  24. package/dist/CheckboxInput/index.js +1 -1
  25. package/dist/{CheckboxInput-qm6lkjAw.js → CheckboxInput-wmX3Ekj-.js} +5 -5
  26. package/dist/CheckboxList/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.js +1 -1
  28. package/dist/{CheckboxList-DuCKhJHJ.js → CheckboxList-JWXHHU-u.js} +4 -4
  29. package/dist/ClickableCard/index.d.ts +1 -1
  30. package/dist/Collapsible/index.js +1 -1
  31. package/dist/{Collapsible-BmUloCSR.js → Collapsible-BDCJRfFN.js} +2 -2
  32. package/dist/CommandPalette/index.js +1 -1
  33. package/dist/{CommandPalette-Cy7trpD3.js → CommandPalette-CJyQd7P-.js} +1 -1
  34. package/dist/ComplexSelector/index.d.ts +1 -1
  35. package/dist/ComplexSelector/index.js +1 -1
  36. package/dist/{ComplexSelector-DMBiVQWp.js → ComplexSelector-DIb8LjYJ.js} +4 -4
  37. package/dist/ContextMenu/index.d.ts +1 -1
  38. package/dist/ContextMenu/index.js +2 -2
  39. package/dist/{ContextMenu-63ay7EE-.js → ContextMenu-HLvsROcS.js} +4 -4
  40. package/dist/DateInput/index.d.ts +1 -1
  41. package/dist/DateInput/index.js +1 -1
  42. package/dist/{DateInput-B3Q91FDT.js → DateInput-D5YBijbb.js} +14 -33
  43. package/dist/DateRangeInput/index.d.ts +1 -1
  44. package/dist/DateRangeInput/index.js +1 -1
  45. package/dist/{DateRangeInput-B6Z66OsH.js → DateRangeInput-BlcHsqgx.js} +5 -5
  46. package/dist/DateTimeInput/index.d.ts +1 -1
  47. package/dist/DateTimeInput/index.js +1 -1
  48. package/dist/{DateTimeInput-B_7cn7ze.js → DateTimeInput-Bx3LWb9Y.js} +6 -6
  49. package/dist/Dialog/index.d.ts +1 -1
  50. package/dist/Dialog/index.js +3 -3
  51. package/dist/{Dialog-CBPD5b-S.js → Dialog-CNLEL4Mf.js} +1 -1
  52. package/dist/{Dialog-C4FZ7p7Q.js → Dialog-CxeXQTqH.js} +1 -1
  53. package/dist/{DialogHeader-CQ3pnLYi.js → DialogHeader-CjXS_wba.js} +1 -1
  54. package/dist/Divider/index.d.ts +1 -1
  55. package/dist/Drawer/index.d.ts +1 -1
  56. package/dist/Drawer/index.js +1 -1
  57. package/dist/{Drawer-BOwQLKm9.js → Drawer-B_4HN6v5.js} +2 -2
  58. package/dist/DropdownMenu/index.js +3 -3
  59. package/dist/{DropdownMenu-9CR9TiKG.js → DropdownMenu-CvdeExRQ.js} +3 -3
  60. package/dist/{DropdownMenu-DwIfoTnV.js → DropdownMenu-D_fBzKvf.js} +38 -9
  61. package/dist/EmptyState/index.js +1 -1
  62. package/dist/{EmptyState-BG5g2jwJ.js → EmptyState-DUaFClsX.js} +4 -50
  63. package/dist/Field/index.d.ts +3 -3
  64. package/dist/Field/index.js +2 -2
  65. package/dist/{Field-eAowUUMX.js → Field-Btyrw1hd.js} +2 -2
  66. package/dist/{FieldLabel-CgYk-ORu.js → FieldLabel-B4l3sS4O.js} +3 -3
  67. package/dist/FieldStatus/index.d.ts +1 -1
  68. package/dist/FileInput/index.d.ts +1 -1
  69. package/dist/FileInput/index.js +1 -1
  70. package/dist/{FileInput-B7zeePbM.js → FileInput-BUwV9fQa.js} +135 -85
  71. package/dist/FormLayout/index.js +1 -1
  72. package/dist/{FormLayout-CGJVeNsL.js → FormLayout-0_X9o-L4.js} +1 -1
  73. package/dist/Heading/index.js +1 -1
  74. package/dist/{Heading-B1dNZQtu.js → Heading-BuZaxfIK.js} +1 -1
  75. package/dist/HoverCard/index.d.ts +1 -1
  76. package/dist/Indicator/index.d.ts +2 -2
  77. package/dist/InfoTip/index.d.ts +1 -1
  78. package/dist/InfoTip/index.js +1 -1
  79. package/dist/{InfoTip-LJi9llxi.js → InfoTip-BDo2xI8h.js} +1 -1
  80. package/dist/InputGroup/index.d.ts +1 -1
  81. package/dist/InputGroup/index.js +1 -1
  82. package/dist/{InputGroup-B8PGJZKH.js → InputGroup-1Ukiu-dg.js} +6 -6
  83. package/dist/InternationalizationProvider/index.d.ts +1 -1
  84. package/dist/InternationalizationProvider/index.js +1 -1
  85. package/dist/{InternationalizationProvider-DaZS5Dch.js → InternationalizationProvider-B2Gv5yAm.js} +1 -1
  86. package/dist/Link/index.d.ts +1 -1
  87. package/dist/Link/index.js +1 -1
  88. package/dist/{Link-B75ygGzG.js → Link-ruNSnGtC.js} +1 -1
  89. package/dist/List/index.d.ts +1 -1
  90. package/dist/Markdown/index.d.ts +1 -1
  91. package/dist/Markdown/index.js +1 -1
  92. package/dist/{Markdown-Cqrcj-ct.js → Markdown-C-KT_riK.js} +2 -2
  93. package/dist/MobileNav/index.js +1 -1
  94. package/dist/{MobileNavToggle-DLpEONfs.js → MobileNavToggle-BGNYwwfI.js} +1 -1
  95. package/dist/MoreMenu/index.d.ts +1 -1
  96. package/dist/MoreMenu/index.js +1 -1
  97. package/dist/{MoreMenu-aR88r9xp.js → MoreMenu-DnwzVBEE.js} +2 -2
  98. package/dist/MultiSelector/index.d.ts +1 -1
  99. package/dist/MultiSelector/index.js +1 -1
  100. package/dist/{MultiSelector-UTaDe-YT.js → MultiSelector-Cl_HzKvn.js} +6 -6
  101. package/dist/NavItem/index.d.ts +1 -1
  102. package/dist/NavMenu/index.js +2 -2
  103. package/dist/{NavMenu-DS6y8ZAY.js → NavMenu-pCZjhMHe.js} +1 -1
  104. package/dist/{NavMenuItem-BqIi3o3D.js → NavMenuItem-BIqpJmH6.js} +1 -1
  105. package/dist/NumberInput/index.d.ts +2 -2
  106. package/dist/NumberInput/index.js +1 -1
  107. package/dist/{NumberInput-ClkOGF5j.js → NumberInput-Dz0H_XPw.js} +384 -97
  108. package/dist/OverflowList/index.d.ts +1 -1
  109. package/dist/OverflowList/index.js +1 -1
  110. package/dist/{OverflowList-UnVXBDIW.js → OverflowList-MCN1PhBB.js} +1 -1
  111. package/dist/Overlay/index.d.ts +1 -1
  112. package/dist/Pagination/index.d.ts +1 -1
  113. package/dist/Pagination/index.js +1 -1
  114. package/dist/{Pagination-CTCLE02h.js → Pagination-Cq9BIzPe.js} +59 -48
  115. package/dist/Popover/index.d.ts +3 -3
  116. package/dist/Popover/index.js +1 -1
  117. package/dist/Popover-BJAyg1Qh.js +1247 -0
  118. package/dist/PowerSearch/index.d.ts +1 -1
  119. package/dist/PowerSearch/index.js +1 -1
  120. package/dist/{PowerSearch-BBOum0TP.js → PowerSearch-wXnusKnz.js} +14 -14
  121. package/dist/ProgressBar/index.d.ts +1 -1
  122. package/dist/ProgressBar/index.js +1 -1
  123. package/dist/{ProgressBar-Bgg6zsKR.js → ProgressBar-C6x0E-BF.js} +1 -1
  124. package/dist/Radio/index.d.ts +1 -1
  125. package/dist/Radio/index.js +1 -1
  126. package/dist/{RadioGroup-DPy5JQhm.js → RadioGroup-LUDji_LA.js} +5 -5
  127. package/dist/RadioList/index.d.ts +1 -1
  128. package/dist/RadioList/index.js +1 -1
  129. package/dist/{RadioList-UN7IxQg8.js → RadioList-CmeUUgn-.js} +1 -1
  130. package/dist/Resizable/index.d.ts +1 -1
  131. package/dist/ScrollableArea/index.d.ts +1 -1
  132. package/dist/SelectableCard/index.d.ts +1 -1
  133. package/dist/Selector/index.d.ts +1 -1
  134. package/dist/Selector/index.js +1 -1
  135. package/dist/{Selector-CCtsUveZ.js → Selector-BL_JH51H.js} +6 -6
  136. package/dist/SideNav/index.d.ts +1 -1
  137. package/dist/SideNav/index.js +2 -2
  138. package/dist/{SideNav-COl5ApOz.js → SideNav-DtAQA-o-.js} +5 -5
  139. package/dist/Slider/index.d.ts +1 -1
  140. package/dist/Slider/index.js +1 -1
  141. package/dist/{Slider-CYie9hWm.js → Slider-DEMdW9An.js} +3 -3
  142. package/dist/StatusDot/index.js +1 -1
  143. package/dist/{StatusDot-CHfgSYmv.js → StatusDot-_rucEf3d.js} +1 -1
  144. package/dist/Stepper/index.d.ts +1 -1
  145. package/dist/Switch/index.d.ts +1 -1
  146. package/dist/Switch/index.js +1 -1
  147. package/dist/{Switch-D24CvhDS.js → Switch-BxRYZTQV.js} +5 -5
  148. package/dist/TabList/index.d.ts +1 -1
  149. package/dist/TabList/index.js +1 -1
  150. package/dist/{TabList-DToCh5JW.js → TabList-D8KzfcGB.js} +1 -1
  151. package/dist/Table/index.d.ts +1 -1
  152. package/dist/Table/index.js +1 -1
  153. package/dist/{Table-D3mzxBr0.js → Table-DYDBgr3y.js} +14 -14
  154. package/dist/Text/index.js +1 -1
  155. package/dist/{Text-5p-eZodt.js → Text-CHauN5So.js} +1 -1
  156. package/dist/TextArea/index.d.ts +1 -1
  157. package/dist/TextArea/index.js +1 -1
  158. package/dist/{TextArea-Bp6D-riO.js → TextArea-BJl6YH4p.js} +53 -19
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/TextInput/index.js +1 -1
  161. package/dist/{TextInput-BYslwBDZ.js → TextInput-CGOVY0Zk.js} +77 -33
  162. package/dist/Theme/index.d.ts +2 -2
  163. package/dist/Thumbnail/index.js +1 -1
  164. package/dist/{Thumbnail-B_a8tOS7.js → Thumbnail-C3MvJ67s.js} +1 -1
  165. package/dist/{TimeField-MDSJny9m.js → TimeField-C2of7Ok5.js} +12 -31
  166. package/dist/TimeInput/index.d.ts +1 -1
  167. package/dist/TimeInput/index.js +1 -1
  168. package/dist/{TimeInput-B19amuxi.js → TimeInput-B_YY-IHW.js} +3 -3
  169. package/dist/Timer/index.js +1 -1
  170. package/dist/{Timer-BD3tfzrF.js → Timer-OULaFQFf.js} +1 -1
  171. package/dist/Timestamp/index.d.ts +1 -1
  172. package/dist/Timestamp/index.js +1 -1
  173. package/dist/{Timestamp-CqWoZUKM.js → Timestamp-B6J0nfYH.js} +1 -1
  174. package/dist/ToggleButton/index.d.ts +1 -1
  175. package/dist/Token/index.d.ts +1 -1
  176. package/dist/Tokenizer/index.d.ts +1 -1
  177. package/dist/Tokenizer/index.js +1 -1
  178. package/dist/{Tokenizer-C-eorFsF.js → Tokenizer-CSmIMDc4.js} +2 -2
  179. package/dist/Toolbar/index.d.ts +1 -1
  180. package/dist/Tooltip/index.d.ts +1 -1
  181. package/dist/Tooltip/index.js +2 -2
  182. package/dist/{Tooltip-88zhGfzF.js → Tooltip-gT9_hIEv.js} +1 -1
  183. package/dist/TopNav/index.d.ts +1 -1
  184. package/dist/TopNav/index.js +1 -1
  185. package/dist/{TopNav-DMFIsFwy.js → TopNav-BsrhSbkn.js} +2 -2
  186. package/dist/TreeList/index.d.ts +1 -1
  187. package/dist/TreeList/index.js +1 -1
  188. package/dist/{TreeList-nU2gSmQm.js → TreeList-BEPHdVYu.js} +2 -2
  189. package/dist/Typeahead/index.d.ts +2 -2
  190. package/dist/Typeahead/index.js +1 -1
  191. package/dist/{Typeahead-DUQfmy_r.js → Typeahead-CdLc7S2v.js} +3 -3
  192. package/dist/{types-fRasDCe4.d.ts → adaptationTypes-Cn_pfrsw.d.ts} +155 -155
  193. package/dist/animator-BooLoGyI.js +3164 -0
  194. package/dist/announceRenderedText-CslZ0cev.js +50 -0
  195. package/dist/{assertOptions-DVRsfCk1.js → assertOptions-CFn7Gdcr.js} +1 -1
  196. package/dist/{batch-DR5SgbnX.js → batch-CM-vJhQg.js} +2 -278
  197. package/dist/{handle-ma1yF_B_.js → bezier-Cts7gENO.js} +1 -21
  198. package/dist/composables/index.d.ts +2 -2
  199. package/dist/composables/index.js +3 -3
  200. package/dist/{composables-Do86VAmM.js → composables-D9DVeNnL.js} +4 -3162
  201. package/dist/{context-DsNhYm5O.js → context-CrVCeUUK.js} +1 -1
  202. package/dist/context-DH8E-qjm.js +173 -0
  203. package/dist/{edge-qfeek_VV.js → edge-BYXwSggM.js} +1 -1
  204. package/dist/{edgeRide-iWUNdlxe.js → edgeRide-B5mlN2Q4.js} +3 -3
  205. package/dist/escape-DzSxSmez.js +10 -0
  206. package/dist/{field-CehUqCe0.js → field-BaUBjqf5.js} +4 -2
  207. package/dist/{fieldParts-CbWvZLhH.js → fieldParts-CuE5V12i.js} +1 -1
  208. package/dist/handle-BazRxHwq.js +22 -0
  209. package/dist/holdEntranceInput-DMCOeRqu.js +37 -0
  210. package/dist/{index-CuW4AQ7M.d.ts → index--kbwaSXW.d.ts} +1 -1
  211. package/dist/{index-CsYDrQ9R.d.ts → index-668zPVsH.d.ts} +1 -1
  212. package/dist/{index-_FjbcSgD.d.ts → index-7Q-wnbe7.d.ts} +1 -1
  213. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  214. package/dist/{index-Dcxqzk_d.d.ts → index-B3uBbehw.d.ts} +4 -4
  215. package/dist/{index-CnVjgLP5.d.ts → index-BCW6qCcS.d.ts} +1 -1
  216. package/dist/{index-QnlWyUxN.d.ts → index-BFGtLIp8.d.ts} +2 -2
  217. package/dist/{index-DDAcxZAP.d.ts → index-BZUVNr2c.d.ts} +1 -1
  218. package/dist/{index-BhdxP-OG.d.ts → index-BcRvRqWU.d.ts} +2 -2
  219. package/dist/{index-CEjvYAUZ.d.ts → index-BenG-F5d.d.ts} +1 -1
  220. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  221. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  222. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  223. package/dist/{index-BtgkNd0Q.d.ts → index-C2HVLdNb.d.ts} +2 -2
  224. package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
  225. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  226. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  227. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  228. package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
  229. package/dist/{index-BfoazhEu.d.ts → index-CTXG-KKT.d.ts} +1 -1
  230. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  231. package/dist/{index-lmd9LZKB.d.ts → index-ClJINYPl.d.ts} +5 -2
  232. package/dist/index-CuFLztiI.d.ts +49 -0
  233. package/dist/{index-BxWCX2pJ.d.ts → index-DFLPv9io.d.ts} +3 -3
  234. package/dist/index-DHUCHxn2.d.ts +69 -0
  235. package/dist/{index-B52PMrO7.d.ts → index-DHsYyqMP.d.ts} +3 -3
  236. package/dist/{index-GmoeIuhl.d.ts → index-DMZ5SKJJ.d.ts} +35 -3
  237. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  238. package/dist/{index-BjmMJ_4E.d.ts → index-DSEEgvak.d.ts} +1149 -211
  239. package/dist/{index-DxR6cZBf.d.ts → index-DZCpswvp.d.ts} +1 -1
  240. package/dist/{index-etx25Eq-.d.ts → index-NOxH5oYj.d.ts} +1 -1
  241. package/dist/{index-CH-xSiJz.d.ts → index-XY0rleGM.d.ts} +2 -2
  242. package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  243. package/dist/{index-DGXCnzOL.d.ts → index-aHC2C89h.d.ts} +1 -1
  244. package/dist/{index-0pBqcQXV.d.ts → index-tpkJfk6X.d.ts} +6 -1
  245. package/dist/index.d.ts +44 -45
  246. package/dist/index.js +74 -74
  247. package/dist/{holdEntranceInput-DjEzfGRU.js → inputHold-BmChuR9x.js} +87 -85
  248. package/dist/inputHoldState-pblUT4oh.js +39 -0
  249. package/dist/{landing-qVsYAZ-v.js → landing-B9Uvex6x.js} +3 -2
  250. package/dist/lazyBottomSheet-CL_PrTxb.js +16 -0
  251. package/dist/{loadCatalog-C8mRnC0E.d.ts → loadCatalog-2Hu-xisJ.d.ts} +2 -0
  252. package/dist/{loadCatalog-BeQt6Uq-.js → loadCatalog-umh_C97k.js} +2 -1
  253. package/dist/locale/index.d.ts +2 -2
  254. package/dist/locale/index.js +3 -3
  255. package/dist/{locale-B4FpGKpc.js → locale-BDPlcO62.js} +1 -1
  256. package/dist/{useHeldPresentation-fQsuYFhz.js → presentationHold-7IkbR4d8.js} +14 -22
  257. package/dist/progress-FQfSgLZC.js +38 -0
  258. package/dist/renderedText-BwJdmps3.js +32 -0
  259. package/dist/textEntryTraits-cb0LZSNl.js +11 -0
  260. package/dist/themeTiming-CWEvdh31.js +287 -0
  261. package/dist/{context-WY1ippwe.js → transientCopy-VAsg2a46.js} +1 -172
  262. package/dist/{types-OGMYGejX.d.ts → types-BA1veIoa.d.ts} +25 -2
  263. package/dist/{types-bAQk3F8G.d.ts → types-Cvh2VwQZ.d.ts} +4 -2
  264. package/dist/{types-C1ydeFiu.d.ts → types-DL-hRibg.d.ts} +1 -1
  265. package/dist/{useChatStreamScroll-BIMKffDA.js → useChatStreamScroll-Cv51kRT0.js} +91 -30
  266. package/dist/useEntryErrorReport-Wee3N8IA.js +51 -0
  267. package/dist/useHeldPresentation-7MH-RlSF.js +24 -0
  268. package/dist/{useInputStatusIcon-B6m_t8cK.d.ts → useInputStatusIcon-CFkOmDS4.d.ts} +1 -1
  269. package/dist/{useMenuDrillIn-CDn2na4X.js → useMenuDrillIn-CP0P49ej.js} +1 -1
  270. package/dist/{useMenuPress-CxUqSUZ9.js → useMenuPress-Di_3jhOx.js} +3 -1
  271. package/dist/{useTooltip-CJHbG8Pv.js → useTooltip-BpBMQ815.js} +2 -32
  272. package/dist/{useTruncationTooltip-BTcr1LCR.js → useTruncationTooltip-t5G978XB.js} +2 -2
  273. package/package.json +1 -1
  274. package/styles/alert-dialog.css +5 -0
  275. package/styles/chat.css +45 -17
  276. package/styles/dropdown-menu.css +47 -38
  277. package/styles/file-input.css +8 -1
  278. package/styles/input-group.css +0 -15
  279. package/styles/number-input.css +49 -4
  280. package/styles/pagination.css +0 -22
  281. package/styles/popover.css +13 -0
  282. package/styles/text-area.css +16 -1
  283. package/styles/text-input.css +26 -5
  284. package/dist/Popover-CZvRSqqD.js +0 -374
  285. package/dist/index-B63NOJRc.d.ts +0 -957
  286. package/dist/index-B9WzWqzk.d.ts +0 -18
  287. package/dist/types-DIYwbkpe.d.ts +0 -33
  288. package/dist/{index-CHx33xGa.d.ts → index-BqhgeAT4.d.ts} +2 -2
@@ -1,7 +1,4 @@
1
1
  import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
2
- import { r as readArea, t as areaOf } from "./handle-ma1yF_B_.js";
3
- import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-DR5SgbnX.js";
4
- import { computed, inject, ref } from "vue";
5
2
  //#region src/motion/inertClone.ts
6
3
  /**
7
4
  * @file inertClone.ts
@@ -558,172 +555,4 @@ function wrapText(copy) {
558
555
  return [...faded];
559
556
  }
560
557
  //#endregion
561
- //#region src/motion/layout/swap.ts
562
- const NO_RIDE = {
563
- x: 0,
564
- y: 0
565
- };
566
- /**
567
- * Before a change commits: hold `element`'s old content as one transient copy
568
- * (`spec:AST-105` FR8). With `isVisiblePart`, the copy is the element's
569
- * visible part, its content scrolled as it was (a scroll container). Returns
570
- * null without a handle, outside its area, under an immediate change, or for
571
- * content too large to copy.
572
- */
573
- function holdLayoutSwap(handle, element, { isVisiblePart = false } = {}) {
574
- if (handle == null || typeof element.animate !== "function") return null;
575
- const area = areaOf(handle, element);
576
- if (area == null || layoutMotion(area).kind === "instant" || !isCopyable(element)) return null;
577
- beginChange(element.ownerDocument);
578
- const box = element.getBoundingClientRect();
579
- if (!isVisiblePart) {
580
- const copy = inertCopy(element);
581
- return copy == null ? null : {
582
- area,
583
- copy,
584
- rect: box
585
- };
586
- }
587
- const part = visiblePartCopy(element);
588
- return part == null ? null : {
589
- area,
590
- ...part
591
- };
592
- }
593
- /**
594
- * After the change commits, before paint: the copy leaves while the incoming
595
- * elements enter, on FR4's one motion, every part started on the same
596
- * timeline time. Under Reduce Motion with a coarse pointer, only opacity
597
- * changes (`design:reduced-motion` DR2). Returns what ends the swap at once;
598
- * it also ends when its motion does, and the copy is removed.
599
- */
600
- function playLayoutSwap(swap, how) {
601
- const motion = layoutMotion(swap.area);
602
- if (motion.kind === "instant") return () => {};
603
- const { copy } = swap;
604
- const change = changeStartIn(swap.area, copy.ownerDocument);
605
- placeOver(copy, how.host, swap.rect, how.copyBefore ?? null);
606
- if (how.isOpaque === true) {
607
- if (how.copyBefore == null) copy.style.zIndex = "1";
608
- copy.style.backgroundColor = paintedBackground(copy);
609
- }
610
- const animations = [];
611
- let isDone = false;
612
- const end = () => {
613
- if (isDone) return;
614
- isDone = true;
615
- animations.forEach((animation) => animation.cancel());
616
- copy.remove();
617
- how.onEnd?.();
618
- };
619
- const { copyText, rideWith } = how;
620
- const fadedText = copyText != null && motion.kind === "glide" ? wrapText(copy) : [];
621
- const parts = [];
622
- if (motion.kind === "glide") {
623
- const moves = rideWith != null && rideWith.isCopyMoved !== false;
624
- parts.push([copy, (p, ride) => ({
625
- ...how.copy(p, ride),
626
- ...moves ? { translate: `${ride.x}px ${ride.y}px` } : null
627
- })]);
628
- for (const span of fadedText) parts.push([span, (p) => ({ opacity: copyText?.(p) ?? 1 })]);
629
- for (const { element, frames } of how.incoming) parts.push([element, frames]);
630
- } else {
631
- parts.push([copy, (p) => ({ opacity: 1 - p })]);
632
- for (const { element } of how.incoming) parts.push([element, (p) => ({ opacity: p })]);
633
- }
634
- const playAll = (durationMs, progressAt, rideAt, options, sample) => {
635
- for (const [element, shape] of parts) {
636
- const animation = safeAnimate(element, sample((t) => shape(progressAt(t), rideAt(t))), {
637
- duration: durationMs,
638
- fill: "both",
639
- ...options
640
- }, change);
641
- if (animation != null) animations.push(animation);
642
- }
643
- if (animations.length === 0) end();
644
- else animations[0].addEventListener?.("finish", end);
645
- };
646
- if (motion.kind === "fade") {
647
- playAll(motion.durationMs, (t) => t <= 0 ? 0 : 1, () => NO_RIDE, { easing: motion.easing }, (shape) => [shape(0), shape(motion.durationMs)]);
648
- return end;
649
- }
650
- const { progress } = motion;
651
- const progressAt = (t) => 1 - progress.remaining(t);
652
- if (rideWith == null) {
653
- playAll(progress.durationMs, progressAt, () => NO_RIDE, { easing: "linear" }, (shape) => sampleOver(progress.durationMs, shape));
654
- return end;
655
- }
656
- queueMicrotask(() => {
657
- if (isDone) return;
658
- const glide = glides.get(rideWith.element);
659
- const durationMs = glide?.durationMs ?? progress.durationMs;
660
- const rideAt = (t) => {
661
- if (glide == null) return {
662
- x: -rideWith.travel.x,
663
- y: -rideWith.travel.y
664
- };
665
- const now = glide.offsetAt(t);
666
- const start = glide.shownBefore;
667
- return {
668
- x: now.x - start.x,
669
- y: now.y - start.y
670
- };
671
- };
672
- playAll(durationMs, progressAt, rideAt, { easing: "linear" }, (shape) => sampleOver(durationMs, shape));
673
- });
674
- return end;
675
- }
676
- /**
677
- * After a change commits, before paint: elements the page already renders
678
- * play frames over the change's progress on FR4's one motion, with no copy,
679
- * such as a surface reaching over a gap a glide opens. Under Reduce Motion
680
- * with a coarse pointer, only opacity changes; under an immediate change,
681
- * nothing plays. Returns what ends them at once.
682
- */
683
- function playLayoutFrames(handle, parts) {
684
- const area = handle == null ? null : readArea(handle);
685
- const motion = area == null ? null : layoutMotion(area);
686
- if (area == null || motion == null || motion.kind === "instant") return () => {};
687
- const change = changeStartIn(area, area.ownerDocument);
688
- const animations = [];
689
- for (const { element, frames: shape } of parts) {
690
- const animation = motion.kind === "glide" ? safeAnimate(element, sampleKeyframes(motion.progress, (remaining) => shape(1 - remaining, NO_RIDE)), {
691
- duration: motion.progress.durationMs,
692
- easing: "linear",
693
- fill: "both"
694
- }, change) : safeAnimate(element, [{ opacity: 0 }, { opacity: 1 }], {
695
- duration: motion.durationMs,
696
- easing: motion.easing
697
- }, change);
698
- if (animation != null) animations.push(animation);
699
- }
700
- const end = () => animations.forEach((animation) => animation.cancel());
701
- animations[0]?.addEventListener?.("finish", end);
702
- return end;
703
- }
704
- //#endregion
705
- //#region src/SideNav/context.ts
706
- const sideNavRenderModeKey = Symbol("astryx-side-nav-render-mode");
707
- const defaultRenderMode = computed(() => "default");
708
- function useSideNavRenderMode() {
709
- return inject(sideNavRenderModeKey, defaultRenderMode);
710
- }
711
- const sideNavCollapseKey = Symbol("astryx-side-nav-collapse");
712
- const fallbackCollapse = {
713
- isCollapsed: ref(false),
714
- isCollapsible: ref(false),
715
- navId: "",
716
- toggle: () => {}
717
- };
718
- function useSideNavCollapse() {
719
- return inject(sideNavCollapseKey, fallbackCollapse);
720
- }
721
- /** Internal nesting depth; zero for top-level rows and the first rail flyout level. */
722
- const sideNavDepthKey = Symbol("astryx-side-nav-depth");
723
- function useSideNavDepth() {
724
- return inject(sideNavDepthKey, ref(0));
725
- }
726
- /** AppShell 借给里面的 SideNav:让内容区跟着侧栏的收展一起动。 */
727
- const sideNavShellKey = Symbol("astryx-side-nav-shell");
728
- //#endregion
729
- export { useSideNavCollapse as a, holdLayoutSwap as c, sideNavShellKey as i, playLayoutFrames as l, sideNavDepthKey as n, useSideNavDepth as o, sideNavRenderModeKey as r, useSideNavRenderMode as s, sideNavCollapseKey as t, playLayoutSwap as u };
558
+ export { restoreScrollOffsets as a, paintedBackground as c, placeOver as i, isCopyable as n, visiblePartCopy as o, keepInherited as r, wrapText as s, inertCopy as t };
@@ -1,8 +1,18 @@
1
1
  import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
+ import "./adaptationTypes-Cn_pfrsw.js";
3
+ import { ComputedRef, MaybeRefOrGetter } from "vue";
4
+ //#region src/composables/internal/presentation.d.ts
5
+ type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
6
+ //#endregion
2
7
  //#region src/Popover/types.d.ts
3
8
  type PopoverPlacement = LayerPlacement;
4
9
  type PopoverAlignment = LayerAlignment;
5
10
  type PopoverRole = 'dialog' | 'none';
11
+ /**
12
+ * 内容放在哪:锚定在触发器上、底部弹层,或自适应(紧凑触屏上用底部弹层,
13
+ * 其余用浮层)。
14
+ */
15
+ type PopoverPresentation = AdaptivePresentation;
6
16
  /** 内边距步进,对应 `--astryx-spacing-*` 令牌。 */
7
17
  type PopoverPadding = 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10;
8
18
  interface PopoverProps {
@@ -18,7 +28,7 @@ interface PopoverProps {
18
28
  width?: number | string;
19
29
  /** 浮层内边距步进。 */
20
30
  padding?: PopoverPadding;
21
- /** 对话框的无障碍名称。`role` 为 `dialog` 时应提供。 */
31
+ /** 对话框的无障碍名称。`role` 为 `dialog` 时应提供。没写时,底部弹层用触发器的文字命名。 */
22
32
  label?: string;
23
33
  /** `dialog` 为对话框,适用于包含交互内容的浮层;`none` 适用于内容自带角色的弹出列表或菜单。 */
24
34
  role?: PopoverRole;
@@ -39,6 +49,19 @@ interface PopoverProps {
39
49
  * 点击、`aria-haspopup` 等会直接挂到这个元素里的按钮上。
40
50
  */
41
51
  anchor?: HTMLElement | null;
52
+ /**
53
+ * 承载内容的界面。`'popover'` 锚定在触发器上;`'bottom-sheet'` 放进模态
54
+ * BottomSheet,由 `label` 命名;`'adaptive'` 在紧凑触屏(粗指针,并且屏幕按主题
55
+ * 算紧凑:窄于 `md` 宽度点或矮于 500px,横竖屏的手机都算)上用 BottomSheet,
56
+ * 其余用锚定浮层,和 iOS 在手机上呈现 popover 一样。
57
+ *
58
+ * 在底部弹层里,`placement`、`alignment`、`width`、`role`、`isModal`、
59
+ * `hasAutoFocus` 不生效,`padding` 是弹层内容的内边距;弹层总能轻点外面或向下
60
+ * 轻扫关闭(不管 `hasLightDismiss`),Escape 跟着 `hasEscapeDismiss`,后备关闭
61
+ * 按钮照样聚焦时才出现。界面在打开时选定,保持到关闭。
62
+ * @default 'popover'
63
+ */
64
+ presentation?: PopoverPresentation;
42
65
  }
43
66
  //#endregion
44
- export { PopoverRole as a, PopoverProps as i, PopoverPadding as n, PopoverPlacement as r, PopoverAlignment as t };
67
+ export { PopoverProps as a, PopoverPresentation as i, PopoverPadding as n, PopoverRole as o, PopoverPlacement as r, AdaptivePresentation as s, PopoverAlignment as t };
@@ -3,6 +3,8 @@ import { Component, VNode } from "vue";
3
3
  //#region src/Field/types.d.ts
4
4
  type FieldStatusType = 'error' | 'warning' | 'success';
5
5
  type FieldStatusVariant = 'attached' | 'detached';
6
+ /** 字段控件把状态说明放在哪:`attached`、`detached`,或 `tooltip`(不画说明框,由控件自己的状态图标按钮显示)。 */
7
+ type FieldStatusPlacement = FieldStatusVariant | 'tooltip';
6
8
  interface FieldStatusInput {
7
9
  type: FieldStatusType;
8
10
  message?: string;
@@ -33,7 +35,7 @@ interface FieldLabelProps {
33
35
  interface FieldProps extends FieldLabelProps {
34
36
  status?: FieldStatusInput;
35
37
  /** Tooltip leaves the message accessible but hides the inline status box. */
36
- statusVariant?: FieldStatusVariant | 'tooltip';
38
+ statusVariant?: FieldStatusPlacement;
37
39
  width?: number | string;
38
40
  }
39
41
  interface FieldStatusProps {
@@ -56,4 +58,4 @@ interface FieldSlots extends FieldLabelSlots {
56
58
  default: (props: FieldSlotProps) => VNode[];
57
59
  }
58
60
  //#endregion
59
- export { FieldSlots as a, FieldStatusType as c, FieldSlotProps as i, FieldStatusVariant as l, FieldLabelSlots as n, FieldStatusInput as o, FieldProps as r, FieldStatusProps as s, FieldLabelProps as t };
61
+ export { FieldSlots as a, FieldStatusProps as c, FieldSlotProps as i, FieldStatusType as l, FieldLabelSlots as n, FieldStatusInput as o, FieldProps as r, FieldStatusPlacement as s, FieldLabelProps as t, FieldStatusVariant as u };
@@ -1,6 +1,6 @@
1
1
  import { a as SearchSource, o as SearchableItem } from "./useAsyncSource-DbG2FSuI.js";
2
2
  import { t as FieldPartStylingProps } from "./fieldParts-LXpQMKE8.js";
3
- import { t as InputStatusVariant } from "./useInputStatusIcon-B6m_t8cK.js";
3
+ import { t as InputStatusVariant } from "./useInputStatusIcon-CFkOmDS4.js";
4
4
  import { Component, HTMLAttributes, StyleValue } from "vue";
5
5
  //#region src/Typeahead/types.d.ts
6
6
  type TypeaheadSize = 'sm' | 'md' | 'lg';
@@ -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 };
@@ -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
  /** 状态图标相对输入框的位置。 */
@@ -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";
@@ -2,6 +2,7 @@ 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
4
  import { t as focusForLastInput } from "./focusReturn-C1cFL3WM.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
  }
@@ -6,6 +6,7 @@ import { a as trackInteractionModality } from "./interactionModality-CedLz5PC.js
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
7
  import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bdm_M4aa.js";
8
8
  import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-CFNKWzYn.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,7 +1,7 @@
1
1
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-DyPyWOdP.js";
2
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";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-BpBMQ815.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-gT9_hIEv.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