@astryx-vue/core 0.14.0 → 0.16.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 (319) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BOyx3Owt.js → AlertDialog-B6EU-qoC.js} +7 -7
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CHN80IBy.js → AppShell-NvIT99xw.js} +49 -6
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-B-dg3imS.js → Avatar-BECb_pnL.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js +1 -1
  10. package/dist/{Banner-qEMqg2D8.js → Banner-BL7ztCU4.js} +1 -1
  11. package/dist/BottomSheet/index.js +2 -2
  12. package/dist/{BottomSheet-qD8zeVYQ.js → BottomSheet-CCW58Kl3.js} +4 -4
  13. package/dist/{BottomSheet-CFrcT1Lr.js → BottomSheet-HQpcSkPH.js} +6 -5
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-61TGNa4M.js → Breadcrumbs-BpgUZDh3.js} +1 -1
  16. package/dist/Button/index.d.ts +1 -1
  17. package/dist/Button/index.js +1 -1
  18. package/dist/{Button-47s3ZBYa.js → Button-Bi1evguV.js} +16 -8
  19. package/dist/ButtonGroup/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.js +1 -1
  21. package/dist/{ButtonGroup-BFl-0uOp.js → ButtonGroup-IIN-hAJl.js} +2 -2
  22. package/dist/Calendar/index.d.ts +1 -1
  23. package/dist/Calendar/index.js +1 -1
  24. package/dist/{Calendar-D029GXOJ.js → Calendar-Bk2nGoT-.js} +69 -20
  25. package/dist/Carousel/index.d.ts +1 -1
  26. package/dist/Carousel/index.js +1 -1
  27. package/dist/{Carousel-CYjVpChx.js → Carousel-r6KuUnE1.js} +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-BfekV9OQ.js → Chat-JwOWSmvy.js} +7 -8
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-Cr0qhZpZ.js → CheckboxInput-3yFIGqYj.js} +1 -1
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxList-DOAdqkXD.js → CheckboxList-2GMj8LSo.js} +3 -3
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/Code/index.d.ts +2 -2
  39. package/dist/Code/index.js +3 -3
  40. package/dist/{Code-6GS0nAkR.js → Code-rmiC0XfO.js} +1 -1
  41. package/dist/{CodeBlock-CuNiGAhQ.js → CodeBlock-AeyHA3sX.js} +21 -9
  42. package/dist/CommandPalette/index.js +1 -1
  43. package/dist/{CommandPalette-DU4VBuWx.js → CommandPalette-CccNmfH_.js} +4 -4
  44. package/dist/ComplexSelector/index.d.ts +1 -1
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-CdeoaX2o.js → ComplexSelector-BQNwK1Rx.js} +2 -2
  47. package/dist/ContextMenu/index.d.ts +1 -1
  48. package/dist/ContextMenu/index.js +1 -1
  49. package/dist/{ContextMenu-Cw34CTey.js → ContextMenu-DlkuMtXc.js} +8 -8
  50. package/dist/DateInput/index.d.ts +1 -1
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-vxaVpM2X.js → DateInput-BAEJLiKU.js} +7 -7
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-X5VDZkfk.js → DateRangeInput-BM1__kku.js} +4 -4
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-B8HeL3dk.js → DateTimeInput-CqPuS2Wb.js} +6 -6
  59. package/dist/Dialog/index.js +3 -3
  60. package/dist/{Dialog-CprMsTku.js → Dialog-BoV6-sZg.js} +4 -4
  61. package/dist/{Dialog-DCsuevxA.js → Dialog-CvRMUDsx.js} +1 -1
  62. package/dist/{DialogHeader-DyMQBW1_.js → DialogHeader-DywC9gTH.js} +2 -2
  63. package/dist/Divider/index.d.ts +1 -1
  64. package/dist/Drawer/index.d.ts +1 -1
  65. package/dist/Drawer/index.js +1 -1
  66. package/dist/{Drawer-BkFF7krL.js → Drawer-BYXbMeXz.js} +2 -2
  67. package/dist/DropdownMenu/index.js +2 -2
  68. package/dist/{DropdownMenu-Dt88fMAT.js → DropdownMenu-1qD5NjRZ.js} +6 -6
  69. package/dist/{DropdownMenu-DEEcKIHY.js → DropdownMenu-DFD4_snt.js} +10 -10
  70. package/dist/EmptyState/index.js +1 -1
  71. package/dist/{EmptyState-BS8ESteS.js → EmptyState-DHogz6sS.js} +60 -9
  72. package/dist/Field/index.js +3 -3
  73. package/dist/{Field-Dxacpe9d.js → Field-CqIDpjny.js} +1 -1
  74. package/dist/{FieldInfoTip-DS4OAl2Q.js → FieldInfoTip-tETk5JH_.js} +1 -1
  75. package/dist/{FieldLabel-DjzTYhCM.js → FieldLabel-DL8r5Jzc.js} +1 -1
  76. package/dist/FileInput/index.d.ts +1 -1
  77. package/dist/FileInput/index.js +1 -1
  78. package/dist/{FileInput-Dak2gIXU.js → FileInput-Bwvb-tQk.js} +3 -3
  79. package/dist/Heading/index.d.ts +1 -1
  80. package/dist/Heading/index.js +1 -1
  81. package/dist/{Heading-BYB7QXkT.js → Heading-CkHUa3bI.js} +1 -1
  82. package/dist/HoverCard/index.d.ts +1 -1
  83. package/dist/HoverCard/index.js +1 -1
  84. package/dist/{HoverCard-CtDr234t.js → HoverCard-Ddcu9mBO.js} +4 -4
  85. package/dist/IconButton/index.js +1 -1
  86. package/dist/{IconButton-DvgueAEp.js → IconButton-eGsozJhK.js} +1 -1
  87. package/dist/InfoTip/index.d.ts +1 -1
  88. package/dist/InfoTip/index.js +1 -1
  89. package/dist/{InfoTip-DshbO5eW.js → InfoTip-DH9gvEPg.js} +2 -2
  90. package/dist/{InputClearButton-DEb-bGsY.js → InputClearButton-tztlFeqp.js} +1 -1
  91. package/dist/InputGroup/index.js +1 -1
  92. package/dist/{InputGroup-DLu11Lsd.js → InputGroup-ew0kllZw.js} +1 -1
  93. package/dist/InternationalizationProvider/index.d.ts +1 -1
  94. package/dist/InternationalizationProvider/index.js +1 -1
  95. package/dist/{InternationalizationProvider-CqCxB9ku.js → InternationalizationProvider-7rA65NO7.js} +1 -1
  96. package/dist/{LayerContentBoundary-Cx5xXZzg.js → LayerContentBoundary-CpqXMTyU.js} +1 -1
  97. package/dist/Layout/index.d.ts +1 -1
  98. package/dist/Layout/index.js +2 -2
  99. package/dist/{Layout-BeYYiLFm.js → Layout-DP2vrvTv.js} +1 -1
  100. package/dist/{LayoutPanel-DDLcJgzG.js → LayoutPanel-DuroKU_A.js} +23 -4
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-f_0_73Zi.js → Lightbox-CwRSUkkH.js} +4 -4
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-CFxZ9W2X.js → Link-DKeXWgvF.js} +1 -1
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/Markdown/index.d.ts +1 -1
  108. package/dist/Markdown/index.js +1 -1
  109. package/dist/{Markdown-DTqTIKbq.js → Markdown-umUpz0Pf.js} +3 -3
  110. package/dist/{MediaTheme-BVKUsMfC.js → MediaTheme-Bkj-_DFN.js} +1 -1
  111. package/dist/MobileNav/index.js +1 -1
  112. package/dist/{MobileNavToggle-D_J_uTW-.js → MobileNavToggle-DlQmYaBx.js} +4 -4
  113. package/dist/MoreMenu/index.d.ts +1 -1
  114. package/dist/MoreMenu/index.js +1 -1
  115. package/dist/{MoreMenu-BY1t1_QA.js → MoreMenu-YTZfzTM_.js} +5 -5
  116. package/dist/MultiSelector/index.d.ts +1 -1
  117. package/dist/MultiSelector/index.js +1 -1
  118. package/dist/{MultiSelector-BmdODQAC.js → MultiSelector-wNUnwrLr.js} +24 -13
  119. package/dist/{NavDisclosure-mXBWmRDC.js → NavDisclosure-Dg6U7pc7.js} +1 -1
  120. package/dist/{NavHeadingSurface-foJo5bLT.js → NavHeadingSurface-C17cbKn9.js} +1 -1
  121. package/dist/NavItem/index.d.ts +1 -1
  122. package/dist/NavMenu/index.js +3 -3
  123. package/dist/{NavMenu-CG9Bthba.js → NavMenu-CTbvZnO2.js} +26 -6
  124. package/dist/{NavMenuItem-BiFZUPxC.js → NavMenuItem-BbT97LNz.js} +14 -7
  125. package/dist/NumberInput/index.d.ts +1 -1
  126. package/dist/NumberInput/index.js +1 -1
  127. package/dist/{NumberInput-BDNiEgzf.js → NumberInput-C8ymESEK.js} +3 -3
  128. package/dist/OverflowList/index.d.ts +1 -1
  129. package/dist/OverflowList/index.js +1 -1
  130. package/dist/{OverflowList-CR96Nr5t.js → OverflowList-Buzyq2be.js} +25 -10
  131. package/dist/Pagination/index.d.ts +1 -1
  132. package/dist/Pagination/index.js +1 -1
  133. package/dist/{Pagination-CA3yJwyk.js → Pagination-BREwZINI.js} +1 -1
  134. package/dist/Popover/index.d.ts +1 -1
  135. package/dist/Popover/index.js +1 -1
  136. package/dist/{Popover-Mj71LwjH.js → Popover-CBXTOdtZ.js} +7 -7
  137. package/dist/PowerSearch/index.d.ts +1 -1
  138. package/dist/PowerSearch/index.js +1 -1
  139. package/dist/{PowerSearch-CajkGExd.js → PowerSearch-8ali3Cze.js} +19 -19
  140. package/dist/ProgressBar/index.d.ts +1 -1
  141. package/dist/ProgressBar/index.js +1 -1
  142. package/dist/{ProgressBar-sGSCEtHC.js → ProgressBar-B0IjJKEy.js} +1 -1
  143. package/dist/Radio/index.d.ts +1 -1
  144. package/dist/Radio/index.js +1 -1
  145. package/dist/{RadioGroup-D58Fy-bM.js → RadioGroup-fNJoHMK0.js} +2 -2
  146. package/dist/RadioList/index.d.ts +1 -1
  147. package/dist/RadioList/index.js +1 -1
  148. package/dist/{RadioList-u9PoRBXY.js → RadioList-Dt301fwV.js} +1 -1
  149. package/dist/Resizable/index.d.ts +1 -1
  150. package/dist/Resizable/index.js +1 -1
  151. package/dist/{ResizeHandle-Bon51yNV.js → ResizeHandle-4-krI-cQ.js} +1 -1
  152. package/dist/ScrollableArea/index.d.ts +1 -1
  153. package/dist/ScrollableArea/index.js +1 -1
  154. package/dist/{ScrollableArea-C2GBp55Z.js → ScrollableArea-Cflez3d4.js} +1 -1
  155. package/dist/SegmentedControl/index.d.ts +1 -1
  156. package/dist/SegmentedControl/index.js +1 -1
  157. package/dist/{SegmentedControl-COVOdCq2.js → SegmentedControl-DoTaOwPI.js} +16 -9
  158. package/dist/SelectableCard/index.d.ts +1 -1
  159. package/dist/Selector/index.d.ts +1 -1
  160. package/dist/Selector/index.js +1 -1
  161. package/dist/{Selector-jA_SESFs.js → Selector-DJiziplk.js} +15 -10
  162. package/dist/SideNav/index.d.ts +1 -1
  163. package/dist/SideNav/index.js +1 -1
  164. package/dist/{SideNav-BgmpUELq.js → SideNav-CcgrhUXF.js} +6 -6
  165. package/dist/Slider/index.js +1 -1
  166. package/dist/{Slider-Depy9L-Y.js → Slider-W9T8GaFW.js} +2 -2
  167. package/dist/Stack/index.js +1 -1
  168. package/dist/{Stack-Tw4I_dt-.js → Stack-Byxur1jV.js} +19 -2
  169. package/dist/StatusDot/index.js +1 -1
  170. package/dist/{StatusDot-D0Wy2ggp.js → StatusDot-EQ8y4vq2.js} +1 -1
  171. package/dist/Stepper/index.d.ts +1 -1
  172. package/dist/Switch/index.d.ts +1 -1
  173. package/dist/Switch/index.js +1 -1
  174. package/dist/{Switch-dD4OQLkI.js → Switch-YXDRo4ei.js} +2 -2
  175. package/dist/TabList/index.js +1 -1
  176. package/dist/{TabList-CoiyQidC.js → TabList-QBE7ojy4.js} +20 -8
  177. package/dist/Table/index.d.ts +3 -3
  178. package/dist/Table/index.js +2 -2
  179. package/dist/{Table-Cb0ec1PS.js → Table-uPs9O7-T.js} +1336 -220
  180. package/dist/Text/index.d.ts +1 -1
  181. package/dist/Text/index.js +1 -1
  182. package/dist/{Text-BWSmB93V.js → Text-vw2_AIxf.js} +1 -1
  183. package/dist/TextArea/index.d.ts +1 -1
  184. package/dist/TextArea/index.js +1 -1
  185. package/dist/{TextArea-CbY2w_ic.js → TextArea-BNiJxKXr.js} +9 -6
  186. package/dist/TextInput/index.d.ts +1 -1
  187. package/dist/TextInput/index.js +1 -1
  188. package/dist/{TextInput-C8f89GV8.js → TextInput-CiKL_mGp.js} +8 -5
  189. package/dist/Theme/index.js +2 -2
  190. package/dist/{Theme-PyAl8nM0.js → Theme-8bDq2nud.js} +1 -1
  191. package/dist/Thumbnail/index.js +1 -1
  192. package/dist/{Thumbnail-DENhXd9-.js → Thumbnail-BJSDUhEI.js} +3 -3
  193. package/dist/{TimeField-DcZ9wYGn.js → TimeField-Cc6LnM1G.js} +5 -5
  194. package/dist/TimeInput/index.d.ts +1 -1
  195. package/dist/TimeInput/index.js +1 -1
  196. package/dist/{TimeInput-DyiU7_IA.js → TimeInput-DAd4fwAj.js} +2 -2
  197. package/dist/Timer/index.js +1 -1
  198. package/dist/{Timer-CgBSMr9E.js → Timer-DWdMqvhQ.js} +1 -1
  199. package/dist/Timestamp/index.d.ts +1 -1
  200. package/dist/Timestamp/index.js +1 -1
  201. package/dist/{Timestamp-B-VgG6l8.js → Timestamp-HUDZSHZO.js} +27 -8
  202. package/dist/Toast/index.js +1 -1
  203. package/dist/{Toast-CRSZV9K-.js → Toast-y_XAIj6o.js} +2 -2
  204. package/dist/ToggleButton/index.d.ts +1 -1
  205. package/dist/ToggleButton/index.js +1 -1
  206. package/dist/{ToggleButton-Bm5IQUy5.js → ToggleButton-Bo3FU3Fw.js} +3 -3
  207. package/dist/Token/index.d.ts +1 -1
  208. package/dist/Tokenizer/index.d.ts +1 -1
  209. package/dist/Tokenizer/index.js +1 -1
  210. package/dist/{Tokenizer-DmjNQLDl.js → Tokenizer-IlXAt3yW.js} +7 -8
  211. package/dist/Toolbar/index.d.ts +2 -2
  212. package/dist/Tooltip/index.d.ts +1 -1
  213. package/dist/Tooltip/index.js +2 -2
  214. package/dist/{Tooltip-BwrJVZ8X.js → Tooltip-nEgotJlb.js} +1 -1
  215. package/dist/TopNav/index.d.ts +1 -1
  216. package/dist/TopNav/index.js +1 -1
  217. package/dist/{TopNav-C3gyHUVv.js → TopNav-CzTYtsm4.js} +5 -5
  218. package/dist/TreeList/index.d.ts +1 -1
  219. package/dist/TreeList/index.js +1 -1
  220. package/dist/{TreeList-Dc3A72iY.js → TreeList-TEh2PChT.js} +15 -2
  221. package/dist/Typeahead/index.js +2 -2
  222. package/dist/{Typeahead-LdmEDCOU.js → Typeahead-Ck5wA5fs.js} +5 -5
  223. package/dist/announce-GU01Oix2.js +179 -0
  224. package/dist/busyAnnouncement-CExubuYm.js +55 -0
  225. package/dist/clipboardWrite-Ds6fxmZc.js +58 -0
  226. package/dist/composables/index.d.ts +4 -4
  227. package/dist/composables/index.js +18 -18
  228. package/dist/{composables-Bi0Rt0Uj.js → composables-CCsHfpCS.js} +25 -5
  229. package/dist/focusReturn-D7Y7Pwwb.js +41 -0
  230. package/dist/{index-6kd7pher.d.ts → index-51CkIKnI.d.ts} +4 -6
  231. package/dist/{index-BbXwtkv6.d.ts → index-B99LFtEg.d.ts} +6 -6
  232. package/dist/{index-Cr9uPUc5.d.ts → index-BYEcUSBq.d.ts} +102 -55
  233. package/dist/{index-CdvmnNMH.d.ts → index-BaFphczL.d.ts} +1 -1
  234. package/dist/{index-YfMHAQ_D.d.ts → index-Bc-ChXDo.d.ts} +2 -2
  235. package/dist/{index-B3yTdknp.d.ts → index-C1zwvxPH.d.ts} +1 -1
  236. package/dist/{index-BHYhTZzp.d.ts → index-C2cH8OLC.d.ts} +1 -1
  237. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  238. package/dist/{index-DneQgJfI.d.ts → index-CMLnSg3T.d.ts} +3 -1
  239. package/dist/{index-DfdtDWSP.d.ts → index-CQ1bsxLC.d.ts} +1 -1
  240. package/dist/{index-CLHJybQY.d.ts → index-ChqMaV6N.d.ts} +12 -1
  241. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  242. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  243. package/dist/{index-BPymttXR.d.ts → index-Cv0FsOgj.d.ts} +51 -17
  244. package/dist/{index-B449gOMC.d.ts → index-Cy1rEWC-.d.ts} +2 -2
  245. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  246. package/dist/{index-Dg0JsBpI.d.ts → index-D2p8EVVV.d.ts} +2 -2
  247. package/dist/{index-wTwhcFQx.d.ts → index-DMN_JVEt.d.ts} +2 -2
  248. package/dist/{index-s0Ezq3U-.d.ts → index-DTvnURvQ.d.ts} +4 -4
  249. package/dist/{index--kbwaSXW.d.ts → index-Dpz-JUMl.d.ts} +2 -2
  250. package/dist/{index-DG7FmGCE.d.ts → index-FzAAjCFZ.d.ts} +5 -5
  251. package/dist/{index-eCp-ElSp.d.ts → index-MvrDMqnQ.d.ts} +1 -1
  252. package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
  253. package/dist/{index-DpYJBFJj.d.ts → index-QRzXr6ME.d.ts} +1 -1
  254. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  255. package/dist/{index-CcYSAva-.d.ts → index-fd--aE4B.d.ts} +1 -1
  256. package/dist/{index-Djf0M7PH.d.ts → index-lmd9LZKB.d.ts} +1 -1
  257. package/dist/{index-C5VJoanX.d.ts → index-r1zpDegp.d.ts} +6 -6
  258. package/dist/index.d.ts +33 -33
  259. package/dist/index.js +110 -110
  260. package/dist/{layerDepth-I6d28O4d.js → interactionModality-B5dR7nnb.js} +125 -1
  261. package/dist/{layerFocusReturn-BrS5RTx6.js → layerFocusReturn-13azEIdn.js} +1 -1
  262. package/dist/{layout-DzxSsBe8.js → layout-DhX4-SyE.js} +4 -2
  263. package/dist/{loadCatalog-DYuZZRtf.js → loadCatalog-C3MSknfx.js} +10 -2
  264. package/dist/{loadCatalog-Cvf-xgDD.d.ts → loadCatalog-DFyDz_4e.d.ts} +5 -0
  265. package/dist/locale/index.d.ts +2 -2
  266. package/dist/locale/index.js +4 -4
  267. package/dist/{locale-B-DrJCMs.js → locale-OCGw4bi6.js} +1 -1
  268. package/dist/scrollGeometry-ivD7aoBo.js +104 -0
  269. package/dist/{scrollKeyboardDelegation-BSpUCTlO.js → scrollKeyboardDelegation-DZ4t5PvC.js} +2 -82
  270. package/dist/scrollLock-CoVg9lLU.js +212 -0
  271. package/dist/{stillPointerGate-DlAU_J_M.js → stillPointerGate-0vdn-hSa.js} +1 -1
  272. package/dist/strayClick-_QKRT5aH.js +99 -0
  273. package/dist/{timestamp-CFBVCsHF.js → timestamp-BMYQsFDj.js} +2 -0
  274. package/dist/{useActionGroupTracking-CDclbV3Y.js → useActionGroupTracking-CbE8fwYb.js} +1 -1
  275. package/dist/{useChatStreamScroll-oDfybEos.js → useChatStreamScroll-BIMKffDA.js} +1 -1
  276. package/dist/{useClipboard-i4a_x_Io.js → useClipboard-CTY3GwFz.js} +24 -10
  277. package/dist/{useClipboard-ZdT7wKBL.d.ts → useClipboard-DeO8fCW_.d.ts} +12 -3
  278. package/dist/{useDismiss-21Gk7uWk.js → useDismiss-Dfb0Ky7T.js} +1 -1
  279. package/dist/useFocusTrap-BUd-fvUH.js +238 -0
  280. package/dist/{useHoverLayerDismiss-Chfty2wT.js → useHoverLayerDismiss-CFGjvYi4.js} +1 -1
  281. package/dist/{useInputStatusIcon-Yd0hvw5K.js → useInputStatusIcon-lln4Pl9h.js} +1 -1
  282. package/dist/{selectorEscape-FjiU_5WC.js → useKeyboardHighlight-CGCf1O57.js} +24 -3
  283. package/dist/{useLayer-vK4-yRk_.js → useLayer-D34yqEqr.js} +1 -1
  284. package/dist/useMediaQuery-BzXGT1Aw.js +64 -0
  285. package/dist/{useMenuHover-CbjjfzAd.js → useMenuHover-CQYo0XCC.js} +4 -2
  286. package/dist/{useMenuPress-9vsHzbRX.js → useMenuPress-9dOj2hvC.js} +71 -26
  287. package/dist/{useOverflow-VrwF5oek.js → useOverflow-GU0pxGaU.js} +43 -3
  288. package/dist/{useResizable-DYlc06-H.js → useResizable-BMlG1oxA.js} +1 -1
  289. package/dist/{useResizable-DziUYD5W.d.ts → useResizable-CJd4JkbJ.d.ts} +30 -1
  290. package/dist/{useResolvedColorMode-CHOh3Yz-.js → useResolvedColorMode-Df97_9w_.js} +1 -1
  291. package/dist/{useRestoreFocus-BhcXCJwM.js → useRestoreFocus-Cz_jM_nW.js} +2 -2
  292. package/dist/useScrollRegionProps-DwkPUb-O.js +119 -0
  293. package/dist/{useScrollableArea-Bwn75HDg.js → useScrollableArea-BaHkGWbX.js} +73 -10
  294. package/dist/{useTooltip-DIg3ZE9P.js → useTooltip-CCPg2zcB.js} +7 -7
  295. package/dist/{useTouchHitArea-B3jx01C3.js → useTouchHitArea-CzCtdSt9.js} +1 -1
  296. package/dist/{useTouchTriggerInternal-CrLW-7kT.js → useTouchTriggerInternal-Bs7obOrb.js} +1 -2
  297. package/dist/{useTruncationTooltip-D9_lzxpF.js → useTruncationTooltip-BLNzBuiG.js} +3 -3
  298. package/dist/{useTypeahead-CiLt-yEg.js → useTypeahead-BrWvmOu9.js} +1 -1
  299. package/dist/{useTypeaheadAnnouncement-C59m2nSx.js → useTypeaheadAnnouncement-CSikDlpK.js} +2 -2
  300. package/package.json +1 -1
  301. package/styles/app-shell.css +13 -0
  302. package/styles/calendar.css +6 -0
  303. package/styles/card.css +3 -0
  304. package/styles/dropdown-menu.css +16 -0
  305. package/styles/multi-selector.css +6 -0
  306. package/styles/nav-menu.css +6 -0
  307. package/styles/segmented-control.css +3 -8
  308. package/styles/selector.css +6 -0
  309. package/styles/tab-menu.css +6 -0
  310. package/styles/table.css +44 -1
  311. package/styles/toolbar.css +12 -0
  312. package/dist/announce-B210eJVf.js +0 -104
  313. package/dist/busyAnnouncement-D3eGqdsf.js +0 -88
  314. package/dist/interactionModality-BPvyShJT.js +0 -125
  315. package/dist/scrollLock-C3aT4-0z.js +0 -102
  316. package/dist/strayClick-CY-_ImKv.js +0 -60
  317. package/dist/useFocusTrap-BFQ7Goue.js +0 -176
  318. package/dist/useMediaQuery-GMmgp28-.js +0 -32
  319. package/dist/{index-CHx33xGa.d.ts → index-BqhgeAT4.d.ts} +2 -2
@@ -1,9 +1,18 @@
1
- import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
2
- import { c as currentGesture } from "./layerDepth-I6d28O4d.js";
1
+ import { a as trackTouchOfPointer, i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-_QKRT5aH.js";
2
+ import { m as currentGesture } from "./interactionModality-B5dR7nnb.js";
3
+ import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
3
4
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
4
5
  //#region src/composables/useLongPress.ts
5
6
  const DEFAULT_DELAY_MS = 500;
6
7
  const DEFAULT_MOVE_CANCEL_PX = 10;
8
+ /** 大于这个数的时间戳是 epoch 毫秒(测试环境常见),不是页面时钟上的毫秒。 */
9
+ const EPOCH_STAMP_FLOOR = 1e11;
10
+ /** 把触摸事件的时间戳换成现在这一刻之前多久(毫秒)。读不出来按 0 算。 */
11
+ function ageOf(stamp) {
12
+ if (stamp == null || !Number.isFinite(stamp)) return 0;
13
+ const now = stamp > EPOCH_STAMP_FLOOR ? Date.now() : typeof performance === "undefined" ? 0 : performance.now();
14
+ return Math.max(0, now - stamp);
15
+ }
7
16
  function touchPoint(event) {
8
17
  const touch = event.touches?.[0] ?? event.changedTouches?.[0];
9
18
  return touch == null ? null : {
@@ -30,6 +39,8 @@ function useLongPress(options) {
30
39
  const moveCancelPx = options.moveCancelPx ?? DEFAULT_MOVE_CANCEL_PX;
31
40
  let timer = null;
32
41
  let origin = null;
42
+ /** 触摸事件自己的时钟上,这次按住到期的时刻。页面忙的时候事件晚到,时刻不会晚。 */
43
+ let deadline = null;
33
44
  function isDisabled() {
34
45
  return toValue(options.isDisabled) === true || toValue(options.disabled) === true;
35
46
  }
@@ -39,23 +50,33 @@ function useLongPress(options) {
39
50
  timer = null;
40
51
  }
41
52
  origin = null;
53
+ deadline = null;
54
+ }
55
+ function fire() {
56
+ const from = origin;
57
+ timer = null;
58
+ deadline = null;
59
+ if (from == null) return;
60
+ options.onLongPress({
61
+ x: from.x,
62
+ y: from.y
63
+ });
64
+ }
65
+ /** 事件的时间戳到了按住的时刻:先把这次长按报出去,再处理这个事件(移动、抬起、第二根手指)。 */
66
+ function reportIfDue(event) {
67
+ if (timer == null || deadline == null || !(event.timeStamp >= deadline)) return;
68
+ clearTimeout(timer);
69
+ fire();
42
70
  }
43
- function start(point) {
71
+ /** `age` 是起手事件已经晚到了多久:计时器只等剩下的那一段,晚到的触摸不会把按住的时间拉长。 */
72
+ function start(point, age = 0) {
44
73
  if (isDisabled()) return;
45
74
  cancel();
46
75
  origin = {
47
76
  x: point.x,
48
77
  y: point.y
49
78
  };
50
- timer = setTimeout(() => {
51
- const from = origin;
52
- timer = null;
53
- if (from == null) return;
54
- options.onLongPress({
55
- x: from.x,
56
- y: from.y
57
- });
58
- }, delayMs);
79
+ timer = setTimeout(fire, Math.max(0, delayMs - age));
59
80
  }
60
81
  function moveTo(point) {
61
82
  if (origin == null) return false;
@@ -71,14 +92,18 @@ function useLongPress(options) {
71
92
  */
72
93
  function onTouchStart(event) {
73
94
  if ((event.touches?.length ?? 0) !== 1) {
95
+ reportIfDue(event);
74
96
  cancel();
75
97
  return;
76
98
  }
77
99
  const point = touchPoint(event);
78
- if (point != null) start(point);
100
+ if (point == null) return;
101
+ start(point, ageOf(event.timeStamp));
102
+ if (timer != null && Number.isFinite(event.timeStamp)) deadline = event.timeStamp + delayMs;
79
103
  }
80
104
  function onTouchMove(event) {
81
105
  if (origin == null) return;
106
+ reportIfDue(event);
82
107
  if ((event.touches?.length ?? 0) > 1) {
83
108
  cancel();
84
109
  return;
@@ -86,7 +111,8 @@ function useLongPress(options) {
86
111
  const point = touchPoint(event);
87
112
  if (point != null) moveTo(point);
88
113
  }
89
- function onTouchEnd() {
114
+ function onTouchEnd(event) {
115
+ reportIfDue(event);
90
116
  cancel();
91
117
  }
92
118
  function onTouchCancel() {
@@ -187,14 +213,16 @@ function getOutermostRoot(menu) {
187
213
  * 手指的指针事件一直发给它落下的那个元素,所以要按坐标找当前在它下面的是谁。
188
214
  * 测试环境的 `elementFromPoint` 没有布局,答不出来时退回事件目标。
189
215
  */
190
- function elementUnder(event, doc, hitTest) {
191
- const hit = hitTest != null ? hitTest(event.clientX, event.clientY) : typeof doc.elementFromPoint === "function" ? doc.elementFromPoint(event.clientX, event.clientY) : null;
216
+ function elementUnder(event, doc, menu, hitTest) {
217
+ const tree = menu?.getRootNode();
218
+ const scope = tree != null && typeof tree.elementFromPoint === "function" ? tree : doc;
219
+ const hit = hitTest != null ? hitTest(event.clientX, event.clientY) : typeof scope.elementFromPoint === "function" ? scope.elementFromPoint(event.clientX, event.clientY) : null;
192
220
  if (hit != null) return hit;
193
221
  return event.target instanceof Element ? event.target : null;
194
222
  }
195
223
  /** 指针下面是哪一行、在不在菜单里、在不在触发器上。 */
196
224
  function resolvePoint(event, doc, input) {
197
- const element = elementUnder(event, doc, input.hitTest);
225
+ const element = elementUnder(event, doc, input.menu, input.hitTest);
198
226
  const root = input.menu == null ? null : getOutermostRoot(input.menu);
199
227
  const isInMenu = root != null && element != null && root.contains(element);
200
228
  const isOnTrigger = input.trigger != null && element != null && input.trigger.contains(element);
@@ -210,12 +238,12 @@ function resolvePoint(event, doc, input) {
210
238
  };
211
239
  }
212
240
  /**
213
- * 默认的高亮:菜单里高亮就是 DOM 焦点(`preventScroll`)。
241
+ * 默认的高亮:菜单里高亮就是 DOM 焦点(`preventScroll`)。指针按下之后的这次聚焦不画键盘焦点环。
214
242
  * 行本身不可聚焦时聚焦里面的控件;指针下没有行时把焦点放在菜单根上,这样没有一行亮着。
215
243
  */
216
244
  function focusHighlight(row, menu, doc) {
217
245
  const target = row == null ? menu : row.matches(FOCUSABLE_ROW_SELECTOR) ? row : row.querySelector(INNER_CONTROL_SELECTOR);
218
- if (target != null && target !== doc.activeElement) target.focus({ preventScroll: true });
246
+ if (target != null && target !== doc.activeElement) focusForLastInput(target, { preventScroll: true });
219
247
  }
220
248
  /**
221
249
  * 默认的执行:像这一行自己被点了一样,派发一次 click,带上松开时的按键和修饰键。
@@ -475,7 +503,18 @@ function useMenuPress(options) {
475
503
  delayMs: options.longPressDelayMs ?? MENU_PRESS_LONG_PRESS_MS,
476
504
  onLongPress: fireLongPress
477
505
  });
506
+ let touchTracker = null;
507
+ /** 手指松开时挑选的那根手指的 touchend 要取消;鼠标和笔没有 touchend。 */
508
+ function armAfterRelease(doc, native, touchIdentifier) {
509
+ const isTouch = native?.pointerType === "touch";
510
+ armStrayClick(doc, {
511
+ cancelsTouchEnd: isTouch,
512
+ touchIdentifier
513
+ });
514
+ }
478
515
  function endGesture() {
516
+ touchTracker?.stop();
517
+ touchTracker = null;
479
518
  longPress.cancel();
480
519
  stopTouchPrevent?.();
481
520
  stopTouchPrevent = null;
@@ -510,15 +549,19 @@ function useMenuPress(options) {
510
549
  case "clear":
511
550
  highlight(null);
512
551
  return;
513
- case "act":
552
+ case "act": {
553
+ const touchIdentifier = touchTracker?.identifier() ?? null;
514
554
  endGesture();
515
- armStrayClick(doc);
555
+ armAfterRelease(doc, native, touchIdentifier);
516
556
  if (native != null) activate(effect.row, native);
517
557
  return;
518
- case "settle":
558
+ }
559
+ case "settle": {
560
+ const touchIdentifier = touchTracker?.identifier() ?? null;
519
561
  endGesture();
520
- if (effect.stray) armStrayClick(doc);
562
+ if (effect.stray) armAfterRelease(doc, native, touchIdentifier);
521
563
  if (effect.dismiss) options.onDismiss?.();
564
+ }
522
565
  }
523
566
  }
524
567
  function step(event, native) {
@@ -572,11 +615,13 @@ function useMenuPress(options) {
572
615
  function onWindowBlur() {
573
616
  step({ type: "cancel" });
574
617
  }
575
- function attach(id) {
618
+ function attach(id, pointerType) {
576
619
  detach?.();
577
620
  const doc = getDocument();
578
621
  const view = doc.defaultView;
579
622
  pointerId = id;
623
+ touchTracker?.stop();
624
+ touchTracker = pointerType === "touch" && view != null ? trackTouchOfPointer(view, id) : null;
580
625
  doc.addEventListener("pointermove", onDocumentMove, true);
581
626
  doc.addEventListener("pointerup", onDocumentUp, true);
582
627
  doc.addEventListener("pointercancel", onDocumentCancel, true);
@@ -619,7 +664,7 @@ function useMenuPress(options) {
619
664
  if (pointerType == null || pointerType === "mouse" && (event.button ?? 0) !== 0) return;
620
665
  if ((event.target instanceof Element ? event.target : null)?.closest(MENU_PRESS_ROOT_SELECTOR) !== menu) return;
621
666
  if (pointerType !== "mouse") event.preventDefault();
622
- attach(event.pointerId);
667
+ attach(event.pointerId, pointerType);
623
668
  lastPointerEvent = event;
624
669
  step({
625
670
  type: "down",
@@ -634,7 +679,7 @@ function useMenuPress(options) {
634
679
  const pointerType = normalizePointerType(event.pointerType);
635
680
  if (pointerType == null || (event.button ?? 0) !== 0) return;
636
681
  if (pointerType === "mouse" && event.ctrlKey) return;
637
- attach(event.pointerId);
682
+ attach(event.pointerId, pointerType);
638
683
  lastPointerEvent = event;
639
684
  if (pointerType !== "mouse") longPress.start({
640
685
  x: event.clientX,
@@ -1,5 +1,5 @@
1
1
  import { computed, nextTick, onBeforeUnmount, onMounted, ref, toValue, watch } from "vue";
2
- //#region src/composables/useOverflow.ts
2
+ //#region src/composables/internal/computeOverflow.ts
3
3
  function clamp(value, min, max) {
4
4
  return Math.max(Math.min(value, max), min);
5
5
  }
@@ -10,6 +10,8 @@ function resolveBounds(itemCount, minVisibleItems, maxVisibleItems) {
10
10
  };
11
11
  }
12
12
  function computeSingleLineFit(orderedWidths, gap, availableWidth, indicatorWidth, floor, ceiling) {
13
+ const allWidth = orderedWidths.reduce((sum, width) => sum + width, 0) + gap * Math.max(0, orderedWidths.length - 1);
14
+ if (orderedWidths.length <= ceiling && allWidth <= availableWidth) return orderedWidths.length;
13
15
  let totalWidth = 0;
14
16
  let count = 0;
15
17
  for (let i = 0; i < orderedWidths.length; i++) {
@@ -116,6 +118,18 @@ function computeOverflow(input) {
116
118
  rows: visibleCount > 0 ? Math.max(1, resolvedRows) : 0
117
119
  };
118
120
  }
121
+ //#endregion
122
+ //#region src/composables/useOverflow.ts
123
+ const NO_INLINE_BOUNDS = {
124
+ collapsed: 0,
125
+ rendered: 0,
126
+ inFlexRow: false
127
+ };
128
+ function isFlexRow(parent) {
129
+ if (parent == null) return false;
130
+ const style = getComputedStyle(parent);
131
+ return (style.display === "flex" || style.display === "inline-flex") && style.flexDirection.startsWith("row");
132
+ }
119
133
  function isActiveRef(value) {
120
134
  return typeof value === "object" && value != null && "value" in value && typeof value.value === "boolean";
121
135
  }
@@ -176,6 +190,8 @@ function useItemOverflow(itemCount, options = {}) {
176
190
  const rows = ref(count.value > 0 ? 1 : 0);
177
191
  const rowHeight = ref(0);
178
192
  const hasOverflow = computed(() => visibleCount.value < count.value);
193
+ const renderedGap = ref(gap);
194
+ const inlineBounds = ref(NO_INLINE_BOUNDS);
179
195
  let unobserveContainer = null;
180
196
  let unobserveMeasure = null;
181
197
  function availableWidthOf(container) {
@@ -191,6 +207,11 @@ function useItemOverflow(itemCount, options = {}) {
191
207
  const measure = measureRef.value;
192
208
  const total = count.value;
193
209
  if (container == null || measure == null) return;
210
+ if (toValue(options.gapToken) != null) {
211
+ const rendered = Number.parseFloat(getComputedStyle(measure).columnGap);
212
+ renderedGap.value = Number.isFinite(rendered) ? rendered : gap;
213
+ }
214
+ const gapWidth = renderedGap.value;
194
215
  const availableWidth = availableWidthOf(container);
195
216
  const allChildren = Array.from(measure.children);
196
217
  const hasIndicator = allChildren.length > total;
@@ -210,11 +231,25 @@ function useItemOverflow(itemCount, options = {}) {
210
231
  return;
211
232
  }
212
233
  const widths = children.map((child) => child.offsetWidth);
234
+ if (!(maxRows != null && maxRows > 1)) {
235
+ const { floor } = resolveBounds(total, minVisibleItems, maxVisibleItems);
236
+ const kept = collapseFrom === "end" ? widths.slice(0, floor) : widths.slice(widths.length - floor);
237
+ const keptWidth = kept.reduce((sum, width) => sum + width, 0) + gapWidth * Math.max(0, kept.length - 1);
238
+ const collapsed = Math.ceil(keptWidth + indicatorWidth + (kept.length > 0 && indicatorWidth > 0 ? gapWidth : 0));
239
+ const rendered = widths.reduce((sum, width) => sum + width, 0) + gapWidth * Math.max(0, widths.length - 1);
240
+ const inFlexRow = isFlexRow(container.parentElement);
241
+ const current = inlineBounds.value;
242
+ if (current.collapsed !== collapsed || current.rendered !== rendered || current.inFlexRow !== inFlexRow) inlineBounds.value = {
243
+ collapsed,
244
+ rendered,
245
+ inFlexRow
246
+ };
247
+ }
213
248
  const measuredRowHeight = children.reduce((max, child) => Math.max(max, child.offsetHeight || 0), 0);
214
249
  const next = computeOverflow({
215
250
  availableWidth,
216
251
  collapseFrom,
217
- gap,
252
+ gap: gapWidth,
218
253
  indicatorWidth,
219
254
  maxRows,
220
255
  maxVisibleItems,
@@ -243,6 +278,9 @@ function useItemOverflow(itemCount, options = {}) {
243
278
  unobserveMeasure = observeResize(measureRef.value, calculate);
244
279
  calculate();
245
280
  }, { immediate: true });
281
+ watch(() => toValue(options.gapToken), () => {
282
+ nextTick(calculate);
283
+ });
246
284
  onBeforeUnmount(() => {
247
285
  unobserveContainer?.();
248
286
  unobserveMeasure?.();
@@ -251,7 +289,9 @@ function useItemOverflow(itemCount, options = {}) {
251
289
  containerRef,
252
290
  hasOverflow,
253
291
  measureRef,
292
+ inlineBounds,
254
293
  remeasure: calculate,
294
+ renderedGap,
255
295
  rowHeight,
256
296
  rows,
257
297
  visibleCount
@@ -262,4 +302,4 @@ function useOverflow(elementOrCount, activeOrOptions) {
262
302
  return useItemOverflow(elementOrCount, activeOrOptions);
263
303
  }
264
304
  //#endregion
265
- export { useOverflow as n, computeOverflow as t };
305
+ export { computeOverflow as n, useOverflow as t };
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
1
+ import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
2
2
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
3
3
  import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
4
4
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
@@ -269,7 +269,33 @@ interface TableColumnResizeContribution {
269
269
  /** 是否画把手。最后一列按比例伸缩时不画。 */
270
270
  hasHandle: boolean;
271
271
  }
272
+ /**
273
+ * 插件改变行结构的方式。`flat` 表示每条数据仍然正好一行;树、分组、展开面板会多出或藏起行。
274
+ * 给了 `rowPatch` 或单元格补丁的插件不声明 `flat` 时按 `custom` 算,行窗口化退回全部渲染。
275
+ */
276
+ type TableRowModel = 'flat' | 'tree' | 'grouped' | 'detail' | 'custom';
277
+ /** 窗口化插件交给表格的几何意图,数据、列和渲染仍由表格负责。 */
278
+ interface TableVirtualizationContribution {
279
+ /** 行窗口化:行高和首帧视口高度,CSS 像素。 */
280
+ rows?: () => {
281
+ rowHeight: number;
282
+ initialViewportHeight: number;
283
+ };
284
+ /** 列窗口化:首帧视口宽度,CSS 像素。 */
285
+ columns?: () => {
286
+ initialViewportWidth: number;
287
+ };
288
+ }
272
289
  interface TablePlugin<T extends Record<string, unknown> = Record<string, unknown>> {
290
+ /** 见 `TableRowModel`。 */
291
+ rowModel?: TableRowModel;
292
+ /** 行、列窗口化插件用。 */
293
+ virtualization?: TableVirtualizationContribution;
294
+ /** 固定在两端的列,列窗口化让它们一直挂着。 */
295
+ pinnedColumns?: () => {
296
+ startKeys: readonly string[];
297
+ endKeys: readonly string[];
298
+ };
273
299
  transformColumns?: (columns: TableColumn<T>[]) => TableColumn<T>[];
274
300
  sortFor?: (column: TableColumn<T>) => TableSortContribution | null;
275
301
  filterFor?: (column: TableColumn<T>) => TableFilterContribution | null;
@@ -315,6 +341,9 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
315
341
  isStriped?: boolean;
316
342
  hasHover?: boolean;
317
343
  verticalAlign?: TableVerticalAlign;
344
+ /**
345
+ * 单元格放不下时的处理。不传时按 `wrap`;用了行或列窗口化插件时按 `truncate`,行高保持一致。
346
+ */
318
347
  textOverflow?: TableTextOverflow;
319
348
  plugins?: Record<string, TablePlugin<T> | undefined>;
320
349
  label?: string;
@@ -442,4 +471,4 @@ declare function useResizable(options: UseResizableSingleOptions): ResizableRegi
442
471
  type UseResizableOptions = UseResizableSingleOptions | UseResizableMultiConfig;
443
472
  type ResizableState = ResizableRegion;
444
473
  //#endregion
445
- export { ToolbarProps as $, TableLoadingState as A, TableSlots as B, TableFilterField as C, TableFilterVariant as D, TableFilterValue as E, TableRowMenuItem as F, TableVerticalAlign as G, TableSortEntry as H, TableRowPatch as I, UseTableSelectionConfig as J, TableSelectedKeysSetter as K, TableRowProps as L, TablePlugin as M, TableProps as N, TableGroupPatch as O, TableRowListeners as P, ToolbarOrientation as Q, TableSelectionToolbarProps as R, TableDividers as S, TableFilterState as T, TableSortState as U, TableSortDirection as V, TableTextOverflow as W, useTableSelection as X, UseTableSelectionStateConfig as Y, useTableSelectionState as Z, TableCellProps as _, ResizableRegionConfig as a, TableColumnResizeContribution as b, UseResizableMultiConfig as c, percent as d, ToolbarSize as et, useResizable as f, TableCellPatch as g, ProportionalWidth as h, ResizableRegion as i, TablePanelPatch as j, TableHeaderPatch as k, UseResizableOptions as l, PixelWidth as m, ResizablePercentSize as n, ToolbarVariant as nt, ResizableSize as o, ColumnWidth as p, TableSelectionState as q, ResizableProps as r, ResizableState as s, ResizableDirection as t, ToolbarSlots as tt, UseResizableSingleOptions as u, TableColumn as v, TableFilterFieldType as w, TableDensity as x, TableColumnAlign as y, TableSelectionToolbarSlots as z };
474
+ export { useTableSelectionState as $, TableLoadingState as A, TableSelectionToolbarSlots as B, TableFilterField as C, TableFilterVariant as D, TableFilterValue as E, TableRowMenuItem as F, TableTextOverflow as G, TableSortDirection as H, TableRowModel as I, TableSelectedKeysSetter as J, TableVerticalAlign as K, TableRowPatch as L, TablePlugin as M, TableProps as N, TableGroupPatch as O, TableRowListeners as P, useTableSelection as Q, TableRowProps as R, TableDividers as S, TableFilterState as T, TableSortEntry as U, TableSlots as V, TableSortState as W, UseTableSelectionConfig as X, TableSelectionState as Y, UseTableSelectionStateConfig as Z, TableCellProps as _, ResizableRegionConfig as a, TableColumnResizeContribution as b, UseResizableMultiConfig as c, percent as d, ToolbarOrientation as et, useResizable as f, TableCellPatch as g, ProportionalWidth as h, ResizableRegion as i, ToolbarVariant as it, TablePanelPatch as j, TableHeaderPatch as k, UseResizableOptions as l, PixelWidth as m, ResizablePercentSize as n, ToolbarSize as nt, ResizableSize as o, ColumnWidth as p, TableVirtualizationContribution as q, ResizableProps as r, ToolbarSlots as rt, ResizableState as s, ResizableDirection as t, ToolbarProps as tt, UseResizableSingleOptions as u, TableColumn as v, TableFilterFieldType as w, TableDensity as x, TableColumnAlign as y, TableSelectionToolbarProps as z };
@@ -1,4 +1,4 @@
1
- import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
1
+ import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
2
  import { computed, getCurrentInstance, onMounted, ref } from "vue";
3
3
  //#region src/Theme/colorMode.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { i as trackInteractionModality } from "./interactionModality-BPvyShJT.js";
2
- import { n as focusForLastInput } from "./useFocusTrap-BFQ7Goue.js";
1
+ import { i as trackInteractionModality } from "./interactionModality-B5dR7nnb.js";
2
+ import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
3
3
  import { onScopeDispose, watch } from "vue";
4
4
  //#region src/composables/useRestoreFocus.ts
5
5
  /**
@@ -0,0 +1,119 @@
1
+ import { a as isMeasurable, i as getLogicalAxisMapping, l as measureScrollAxis } from "./scrollGeometry-ivD7aoBo.js";
2
+ import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
3
+ import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
4
+ //#region src/composables/internal/mainOverflow.ts
5
+ /**
6
+ * 内容直接放在滚动容器里、没有内层盒子的区域(AppShell 的主区域,可滚动的 LayoutContent、
7
+ * LayoutPanel、StackItem)是不是溢出。内容变长时容器自己的大小不变,所以盯的是它的直接子元素。
8
+ *
9
+ * 先量一次,之后只在答案变化时调 `onChange`。多个信号合并成每帧一次测量。
10
+ * 藏起来、没连在文档上、尺寸为 0 的区域答「不知道」:保留上一次的答案,等下一次有效的信号。
11
+ * 返回停止观察的函数。
12
+ */
13
+ function observeMainOverflow(main, onChange) {
14
+ let isActive = true;
15
+ let frame = null;
16
+ let overflows = null;
17
+ function measure() {
18
+ frame = null;
19
+ if (!isActive) return;
20
+ const style = getComputedStyle(main);
21
+ if (!isMeasurable(main, style)) return;
22
+ const mapping = getLogicalAxisMapping(style.writingMode, style.direction);
23
+ const next = measureScrollAxis(main, "inline", mapping, true, style).isScrollable || measureScrollAxis(main, "block", mapping, true, style).isScrollable;
24
+ if (next !== overflows) {
25
+ overflows = next;
26
+ onChange(next);
27
+ }
28
+ }
29
+ function scheduleMeasure() {
30
+ if (!isActive || frame != null) return;
31
+ if (typeof requestAnimationFrame !== "function") {
32
+ measure();
33
+ return;
34
+ }
35
+ frame = requestAnimationFrame(measure);
36
+ }
37
+ const childObservers = /* @__PURE__ */ new Map();
38
+ function syncChildObservers() {
39
+ const children = new Set(Array.from(main.children));
40
+ for (const [child, stop] of childObservers) if (!children.has(child)) {
41
+ stop();
42
+ childObservers.delete(child);
43
+ }
44
+ for (const child of children) if (!childObservers.has(child)) childObservers.set(child, observeResize(child, scheduleMeasure));
45
+ }
46
+ measure();
47
+ syncChildObservers();
48
+ const stopObservingMain = observeResize(main, scheduleMeasure);
49
+ const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
50
+ syncChildObservers();
51
+ scheduleMeasure();
52
+ });
53
+ mutations?.observe(main, {
54
+ attributes: true,
55
+ attributeFilter: [
56
+ "class",
57
+ "dir",
58
+ "hidden",
59
+ "style"
60
+ ],
61
+ characterData: true,
62
+ childList: true,
63
+ subtree: true
64
+ });
65
+ const view = main.ownerDocument.defaultView;
66
+ view?.addEventListener("resize", scheduleMeasure);
67
+ main.addEventListener("load", scheduleMeasure, true);
68
+ main.addEventListener("transitionend", scheduleMeasure);
69
+ main.addEventListener("animationend", scheduleMeasure);
70
+ return () => {
71
+ isActive = false;
72
+ if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
73
+ frame = null;
74
+ stopObservingMain();
75
+ mutations?.disconnect();
76
+ for (const stop of childObservers.values()) stop();
77
+ childObservers.clear();
78
+ view?.removeEventListener("resize", scheduleMeasure);
79
+ main.removeEventListener("load", scheduleMeasure, true);
80
+ main.removeEventListener("transitionend", scheduleMeasure);
81
+ main.removeEventListener("animationend", scheduleMeasure);
82
+ };
83
+ }
84
+ //#endregion
85
+ //#region src/composables/internal/useScrollRegionProps.ts
86
+ /**
87
+ * 可滚动区域的角色和名字。区域能滚而且内容真的溢出时,它是一个 `group`,
88
+ * 名字取调用方的 `label`,没有就取翻译过的「内容」:读屏到达它(包括浏览器给它的 Tab 停靠点)时能读出来。
89
+ * 调用方自己给了 `role` 就只带调用方的 `label`,单个 `main` 地标只靠角色。
90
+ * 区域不滚时,调用方的 `role` 和 `label` 原样交出去。
91
+ */
92
+ function useScrollRegionProps(options) {
93
+ const overflows = shallowRef(false);
94
+ const hasRole = computed(() => toValue(options.role) != null);
95
+ watch([
96
+ options.target,
97
+ () => toValue(options.isScrollable),
98
+ hasRole
99
+ ], ([node, scrollable, roleGiven], _previous, onCleanup) => {
100
+ overflows.value = false;
101
+ if (node == null || !scrollable || roleGiven) return;
102
+ onCleanup(observeMainOverflow(node, (next) => {
103
+ overflows.value = next;
104
+ }));
105
+ }, {
106
+ flush: "post",
107
+ immediate: true
108
+ });
109
+ onScopeDispose(() => {
110
+ overflows.value = false;
111
+ });
112
+ const isGroup = computed(() => !hasRole.value && toValue(options.isScrollable) && overflows.value);
113
+ return {
114
+ ariaLabel: computed(() => toValue(options.label) ?? (isGroup.value ? toValue(options.defaultLabel) : void 0)),
115
+ role: computed(() => toValue(options.role) ?? (isGroup.value ? "group" : void 0))
116
+ };
117
+ }
118
+ //#endregion
119
+ export { observeMainOverflow as n, useScrollRegionProps as t };
@@ -1,6 +1,22 @@
1
- import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-BSpUCTlO.js";
1
+ import { a as isMeasurable, c as measureOverflow, i as getLogicalAxisMapping, l as measureScrollAxis, n as INACTIVE_AXIS_STATE, r as axisStatesEqual, s as mappingsEqual, t as DEFAULT_AXIS_MAPPING, u as measureScrollPosition } from "./scrollGeometry-ivD7aoBo.js";
2
+ import { n as registerScrollOwner, r as unregisterScrollOwner, t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-DZ4t5PvC.js";
2
3
  import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
3
4
  //#region src/composables/internal/scrollInvalidation.ts
5
+ const MEASURE_PROPERTIES = [
6
+ "direction",
7
+ "writing-mode",
8
+ "display",
9
+ "visibility",
10
+ "content-visibility"
11
+ ];
12
+ function declarationsOf(text) {
13
+ if (text == null) return "";
14
+ return text.split(";").map((part) => part.trim().toLowerCase()).filter((part) => MEASURE_PROPERTIES.some((name) => part.startsWith(`${name}:`) || part.startsWith(`${name} :`))).sort().join(";");
15
+ }
16
+ /** 行内样式前后的差别里有没有会影响量出结果的声明。 */
17
+ function styleAffectsMeasure(before, after) {
18
+ return declarationsOf(before) !== declarationsOf(after);
19
+ }
4
20
  /**
5
21
  * 什么时候要重新量一块滚动区域。
6
22
  *
@@ -8,17 +24,17 @@ import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
8
24
  * 内容和祖先的属性变化(class、dir、hidden、style 会改书写方向和可见性)、字体加载完成。
9
25
  * 这些信号只负责「该量了」,量本身由调用方合并到一次里做。
10
26
  */
11
- function watchScrollInvalidation(viewport, content, schedule) {
27
+ function watchScrollInvalidation(viewport, content, schedule, onScroll = schedule) {
12
28
  const doc = viewport.ownerDocument;
13
29
  const view = doc.defaultView;
14
30
  const cleanups = [];
15
- function on(target, type, capture = false) {
31
+ function on(target, type, capture = false, handler = schedule) {
16
32
  if (target == null) return;
17
- target.addEventListener(type, schedule, {
33
+ target.addEventListener(type, handler, {
18
34
  capture,
19
35
  passive: true
20
36
  });
21
- cleanups.push(() => target.removeEventListener(type, schedule, capture));
37
+ cleanups.push(() => target.removeEventListener(type, handler, capture));
22
38
  }
23
39
  if (typeof ResizeObserver !== "undefined") {
24
40
  const observer = new ResizeObserver(schedule);
@@ -26,7 +42,7 @@ function watchScrollInvalidation(viewport, content, schedule) {
26
42
  observer.observe(content);
27
43
  cleanups.push(() => observer.disconnect());
28
44
  }
29
- on(viewport, "scroll");
45
+ on(viewport, "scroll", false, onScroll);
30
46
  on(view, "resize");
31
47
  on(view?.visualViewport, "resize");
32
48
  on(content, "load", true);
@@ -53,11 +69,24 @@ function watchScrollInvalidation(viewport, content, schedule) {
53
69
  childList: true,
54
70
  subtree: true
55
71
  });
56
- for (let ancestor = viewport.parentElement; ancestor != null; ancestor = ancestor.parentElement) observer.observe(ancestor, {
72
+ cleanups.push(() => observer.disconnect());
73
+ const ancestors = new MutationObserver((records) => {
74
+ for (const record of records) if (record.attributeName !== "style" || !(record.target instanceof Element) || styleAffectsMeasure(record.oldValue, record.target.getAttribute("style"))) {
75
+ schedule();
76
+ return;
77
+ }
78
+ });
79
+ for (let ancestor = viewport.parentElement; ancestor != null; ancestor = ancestor.parentElement) ancestors.observe(ancestor, {
57
80
  attributes: true,
58
- attributeFilter
81
+ attributeFilter: [
82
+ "class",
83
+ "dir",
84
+ "hidden",
85
+ "style"
86
+ ],
87
+ attributeOldValue: true
59
88
  });
60
- cleanups.push(() => observer.disconnect());
89
+ cleanups.push(() => ancestors.disconnect());
61
90
  }
62
91
  const fonts = doc.fonts;
63
92
  if (fonts != null) {
@@ -130,6 +159,40 @@ function useScrollableArea(options) {
130
159
  measure();
131
160
  });
132
161
  }
162
+ /**
163
+ * 滚动只挪偏移量,所以只靠盒子几何重算两头的位置:不读计算样式,也不排队等下一次测量。
164
+ * 滚动解释不了的变化(请求的轴上溢出出现或消失、偏移量的正负号和书写方向矛盾)仍然走完整测量。
165
+ */
166
+ function onScroll() {
167
+ const element = viewport.value;
168
+ if (element == null || queued) return;
169
+ const current = measured.value;
170
+ let next = current;
171
+ for (const name of ["inline", "block"]) {
172
+ if (!requested(name)) continue;
173
+ const position = measureScrollPosition(element, name, mapping.value);
174
+ if (position == null) return;
175
+ const overflowed = name === "inline" ? overflowInline.value : overflowBlock.value;
176
+ if (position.overflows !== overflowed || position.contradictsMapping) {
177
+ queueMeasure();
178
+ return;
179
+ }
180
+ const axisState = current[name];
181
+ if (!axisState.isScrollable || axisState.atStart === position.atStart && axisState.atEnd === position.atEnd) continue;
182
+ next = {
183
+ ...next,
184
+ [name]: {
185
+ isScrollable: true,
186
+ atStart: position.atStart,
187
+ atEnd: position.atEnd
188
+ }
189
+ };
190
+ }
191
+ if (next !== current) {
192
+ measured.value = next;
193
+ registerScrollOwner(element, next);
194
+ }
195
+ }
133
196
  function onViewportFocusIn(event) {
134
197
  viewportHasFocus.value = event.target === viewport.value;
135
198
  }
@@ -153,7 +216,7 @@ function useScrollableArea(options) {
153
216
  }
154
217
  watch([viewport, content], ([element, inner], _previous, onCleanup) => {
155
218
  if (element == null || inner == null) return;
156
- onCleanup(watchScrollInvalidation(element, inner, queueMeasure));
219
+ onCleanup(watchScrollInvalidation(element, inner, queueMeasure, onScroll));
157
220
  queueMeasure();
158
221
  }, { immediate: true });
159
222
  watch(axis, queueMeasure);
@@ -1,13 +1,13 @@
1
1
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
- import { t as useLayer } from "./useLayer-vK4-yRk_.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-Cx5xXZzg.js";
5
- import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
3
+ import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-B5dR7nnb.js";
4
+ import { t as useLayer } from "./useLayer-D34yqEqr.js";
5
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-CpqXMTyU.js";
6
6
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
7
- import { t as useAnnounce } from "./announce-B210eJVf.js";
7
+ import { t as useAnnounce } from "./announce-GU01Oix2.js";
8
8
  import { i as isFocusable } from "./focus-x7mxEqjR.js";
9
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CrLW-7kT.js";
10
- import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-Chfty2wT.js";
9
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bs7obOrb.js";
10
+ import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-CFGjvYi4.js";
11
11
  import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
12
12
  import "../styles/tooltip.css";
13
13
  //#region src/Tooltip/TooltipSurface.vue
@@ -456,4 +456,4 @@ function useTooltip(options = {}) {
456
456
  };
457
457
  }
458
458
  //#endregion
459
- export { tooltipPresentInterestKey as n, _sfc_main as r, useTooltip as t };
459
+ export { _sfc_main as i, tooltipPresentInterestKey as n, renderedText as r, useTooltip as t };