@astryx-vue/core 0.42.5 → 0.43.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 (267) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-JxwAj9d0.js → AlertDialog-r9VdV_oH.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/{Avatar-BQz-P6TD.js → Avatar-Dl2oiG7t.js} +1 -1
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/Banner/index.d.ts +1 -1
  8. package/dist/Banner/index.js +1 -1
  9. package/dist/{Banner-DiL8_fei.js → Banner-u7GJQV3O.js} +33 -16
  10. package/dist/BottomSheet/index.js +2 -2
  11. package/dist/{BottomSheet-DRimCV1O.js → BottomSheet-C65IqXMQ.js} +2 -2
  12. package/dist/{BottomSheet-q49-srZ5.js → BottomSheet-CY-dU3F5.js} +1 -1
  13. package/dist/Breadcrumbs/index.js +2 -2
  14. package/dist/{Breadcrumbs-DJU3Bz_u.js → Breadcrumbs-D_GhNvfK.js} +1 -1
  15. package/dist/Button/index.d.ts +1 -1
  16. package/dist/Button/index.js +1 -1
  17. package/dist/{Button-D993OBya.js → Button-D8vn_DnZ.js} +22 -3
  18. package/dist/ButtonGroup/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.js +1 -1
  20. package/dist/{ButtonGroup-CknFA9IA.js → ButtonGroup-Bt7UZF_U.js} +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Card/index.d.ts +1 -1
  23. package/dist/Carousel/index.d.ts +1 -1
  24. package/dist/Carousel/index.js +1 -1
  25. package/dist/{Carousel-Ch3n05iF.js → Carousel-BE-PqpOJ.js} +48 -14
  26. package/dist/Center/index.d.ts +1 -1
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-ZZNA436T.js → Chat-D_CxKvTw.js} +3 -3
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxInput/index.js +1 -1
  32. package/dist/{CheckboxInput-ChbqO3Hp.js → CheckboxInput-CiSb9VDk.js} +1 -1
  33. package/dist/CheckboxList/index.d.ts +1 -1
  34. package/dist/CheckboxList/index.js +1 -1
  35. package/dist/{CheckboxListItem-3y4ehVhz.js → CheckboxListItem-BwGzAz8V.js} +5 -5
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/Code/index.js +2 -2
  38. package/dist/{Code-N2hjeC8T.js → Code-Cnk4QmuK.js} +1 -1
  39. package/dist/{CodeBlock-osW2DJ_E.js → CodeBlock-PuLo1vOn.js} +1 -1
  40. package/dist/Collapsible/index.d.ts +1 -1
  41. package/dist/CommandPalette/index.d.ts +1 -1
  42. package/dist/CommandPalette/index.js +1 -1
  43. package/dist/{CommandPalette-CIpvefL3.js → CommandPalette-BdfvSd8U.js} +3 -3
  44. package/dist/ComplexSelector/index.d.ts +1 -1
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-BB4He_wN.js → ComplexSelector-QpUODnLj.js} +3 -3
  47. package/dist/ContextMenu/index.d.ts +1 -1
  48. package/dist/ContextMenu/index.js +2 -2
  49. package/dist/{ContextMenu-F315dVbZ.js → ContextMenu-BebiNEFX.js} +3 -3
  50. package/dist/DateInput/index.d.ts +1 -1
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-Cm8zmBUt.js → DateInput-B1C1bpAH.js} +5 -5
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-FiY0JZxV.js → DateRangeInput-ByHRQ-Is.js} +4 -4
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-DBBrIFnm.js → DateTimeInput-DkFcxpoJ.js} +6 -6
  59. package/dist/Dialog/index.d.ts +1 -1
  60. package/dist/Dialog/index.js +3 -3
  61. package/dist/{Dialog-6rKG9kce.js → Dialog-CgnIHMCI.js} +32 -5
  62. package/dist/{Dialog-CEbICn0m.js → Dialog-zqsAwjle.js} +1 -1
  63. package/dist/{DialogHeader-DEUH-s-L.js → DialogHeader-BpQQMQcb.js} +1 -1
  64. package/dist/Drawer/index.d.ts +1 -1
  65. package/dist/Drawer/index.js +1 -1
  66. package/dist/{Drawer-DiRhP2q-.js → Drawer-CWL0fCGw.js} +2 -2
  67. package/dist/DropdownMenu/index.js +2 -2
  68. package/dist/{DropdownMenu-CQ-ZROFm.js → DropdownMenu-Sb9A2F_S.js} +5 -5
  69. package/dist/EmptyState/index.js +1 -1
  70. package/dist/{EmptyState-DOMOEsvj.js → EmptyState-B57OV1V_.js} +3 -3
  71. package/dist/Field/index.js +3 -3
  72. package/dist/{Field-DJGFZuwh.js → Field-jM0Ithrd.js} +1 -1
  73. package/dist/{FieldInfoTip-DFlEh8tG.js → FieldInfoTip-BrxcbuTn.js} +1 -1
  74. package/dist/{FieldLabel-BZiHqHsQ.js → FieldLabel-BmjvZVOQ.js} +1 -1
  75. package/dist/FileInput/index.js +1 -1
  76. package/dist/{FileInput-D99uvmKg.js → FileInput-Bb6LdXY1.js} +4 -4
  77. package/dist/Heading/index.js +1 -1
  78. package/dist/{Heading-CsSZgiqn.js → Heading-Cymy5utP.js} +3 -3
  79. package/dist/HoverCard/index.d.ts +1 -1
  80. package/dist/IconButton/index.js +1 -1
  81. package/dist/{IconButton-DhEjewin.js → IconButton-BdXfxjCD.js} +1 -1
  82. package/dist/InfoTip/index.d.ts +1 -1
  83. package/dist/InfoTip/index.js +1 -1
  84. package/dist/{InfoTip-B_7kJX7x.js → InfoTip-BCOxwsJ4.js} +1 -1
  85. package/dist/{InputClearButton-BGtTipa-.js → InputClearButton-Dp87bq1c.js} +3 -2
  86. package/dist/InputGroup/index.js +1 -1
  87. package/dist/{InputGroup-DC2V0AYP.js → InputGroup-CsEB0Ufk.js} +1 -1
  88. package/dist/{Item-DznHXYbG.js → Item-DOATMVXE.js} +4 -4
  89. package/dist/Kbd/index.js +1 -1
  90. package/dist/Layout/index.d.ts +1 -1
  91. package/dist/Lightbox/index.js +1 -1
  92. package/dist/{Lightbox-CBS2EhuG.js → Lightbox-CQ0sOdK4.js} +40 -11
  93. package/dist/Link/index.d.ts +1 -1
  94. package/dist/Link/index.js +1 -1
  95. package/dist/{Link-5KuMIFYl.js → Link-CRNgZw--.js} +14 -4
  96. package/dist/List/index.d.ts +1 -1
  97. package/dist/List/index.js +4 -4
  98. package/dist/{List-BVpWTW6J.js → List-CsumsvTg.js} +2 -2
  99. package/dist/{ListItem-BzOD8HbS.js → ListItem-DHpWkhT9.js} +2 -2
  100. package/dist/{LongPressGestureRecognizer-C1JQQdg-.js → LongPressGestureRecognizer-V_iVvLNU.js} +2 -2
  101. package/dist/Markdown/index.d.ts +1 -1
  102. package/dist/Markdown/index.js +1 -1
  103. package/dist/{Markdown-B0VlS0CH.js → Markdown-DwCAq1ds.js} +3 -3
  104. package/dist/MoreMenu/index.d.ts +1 -1
  105. package/dist/MoreMenu/index.js +1 -1
  106. package/dist/{MoreMenu-DYa6tOl8.js → MoreMenu-BJqN4qQ6.js} +3 -3
  107. package/dist/MultiSelector/index.d.ts +1 -1
  108. package/dist/MultiSelector/index.js +1 -1
  109. package/dist/{MultiSelector-CnsBju0o.js → MultiSelector-BI_uF-yk.js} +5 -5
  110. package/dist/NumberInput/index.d.ts +1 -1
  111. package/dist/NumberInput/index.js +1 -1
  112. package/dist/{NumberInput-DADBh_WZ.js → NumberInput-DIgfEtYW.js} +3 -3
  113. package/dist/OverflowList/index.d.ts +1 -1
  114. package/dist/Overlay/index.d.ts +1 -1
  115. package/dist/Pagination/index.d.ts +1 -1
  116. package/dist/Pagination/index.js +1 -1
  117. package/dist/{Pagination-DeV3vsXr.js → Pagination-BPGgks2l.js} +2 -2
  118. package/dist/{PanGestureRecognizer-_yCWSqMD.js → PanGestureRecognizer-Crc0PhW0.js} +1 -1
  119. package/dist/{PickerWheel-DJqK1f2w.js → PickerWheel-WEFgBW8I.js} +4 -4
  120. package/dist/Popover/index.d.ts +3 -3
  121. package/dist/Popover/index.js +1 -1
  122. package/dist/{Popover-BVzTrVp-.js → Popover-OhEtacTy.js} +254 -34
  123. package/dist/PowerSearch/index.d.ts +1 -1
  124. package/dist/PowerSearch/index.js +1 -1
  125. package/dist/{PowerSearch-CdXq9Nma.js → PowerSearch-DPGknVx8.js} +24 -24
  126. package/dist/ProgressBar/index.d.ts +1 -1
  127. package/dist/ProgressBar/index.js +1 -1
  128. package/dist/{ProgressBar-Otv4DLQP.js → ProgressBar-IRNmWLg-.js} +1 -1
  129. package/dist/Radio/index.d.ts +1 -1
  130. package/dist/Radio/index.js +1 -1
  131. package/dist/{RadioGroup-BYZ9mspa.js → RadioGroup-DoI7wu5m.js} +2 -2
  132. package/dist/RadioList/index.d.ts +1 -1
  133. package/dist/RadioList/index.js +1 -1
  134. package/dist/{RadioListItem-BjiT8DAp.js → RadioListItem-Bb0ggwoG.js} +1 -1
  135. package/dist/Resizable/index.d.ts +1 -1
  136. package/dist/ScrollableArea/index.d.ts +1 -1
  137. package/dist/SegmentedControl/index.d.ts +1 -1
  138. package/dist/SegmentedControl/index.js +1 -1
  139. package/dist/{SegmentedControl-DgZ2y1ff.js → SegmentedControl-DjruBeFm.js} +2 -2
  140. package/dist/SelectableCard/index.d.ts +1 -1
  141. package/dist/Selector/index.d.ts +1 -1
  142. package/dist/Selector/index.js +1 -1
  143. package/dist/{Selector-DERRZ5Hh.js → Selector-D8BEYok_.js} +3 -3
  144. package/dist/SideNav/index.d.ts +1 -1
  145. package/dist/SideNav/index.js +1 -1
  146. package/dist/{SideNav-_MGkSxQG.js → SideNav-BYWNIIXT.js} +3 -3
  147. package/dist/Slider/index.js +1 -1
  148. package/dist/{Slider-BrZeUJJF.js → Slider-pnFJ6MfZ.js} +4 -4
  149. package/dist/Spinner/index.js +1 -1
  150. package/dist/{Spinner-lLOYfbOY.js → Spinner-D6U81W87.js} +1 -1
  151. package/dist/Stack/index.d.ts +1 -1
  152. package/dist/StatusDot/index.js +1 -1
  153. package/dist/{StatusDot-Ce31aeru.js → StatusDot-CdtauWfk.js} +1 -1
  154. package/dist/Stepper/index.d.ts +1 -1
  155. package/dist/Switch/index.d.ts +1 -1
  156. package/dist/Switch/index.js +1 -1
  157. package/dist/{Switch-MeieW4dP.js → Switch-BJ9skC9r.js} +2 -2
  158. package/dist/TabList/index.d.ts +1 -1
  159. package/dist/Table/index.d.ts +2 -2
  160. package/dist/Table/index.js +1 -1
  161. package/dist/{Table-wVIUIfKH.js → Table-DQazvJ4Q.js} +170 -31
  162. package/dist/{TapGestureRecognizer-CH88amVE.js → TapGestureRecognizer-Cv0y3c02.js} +2 -2
  163. package/dist/Text/index.js +1 -1
  164. package/dist/{Text-BLPg6wdX.js → Text-9twwURuI.js} +3 -3
  165. package/dist/TextArea/index.d.ts +1 -1
  166. package/dist/TextArea/index.js +1 -1
  167. package/dist/{TextArea-BPNEV23k.js → TextArea-C66zML5G.js} +4 -4
  168. package/dist/TextInput/index.d.ts +1 -1
  169. package/dist/TextInput/index.js +1 -1
  170. package/dist/{TextInput-D3XelSwo.js → TextInput-BGsRns-X.js} +4 -4
  171. package/dist/Thumbnail/index.js +1 -1
  172. package/dist/{Thumbnail-BoTOXxGq.js → Thumbnail-iJILNRPc.js} +3 -3
  173. package/dist/{TimeField-BdVLsMYr.js → TimeField-Ct2akfr9.js} +4 -4
  174. package/dist/TimeInput/index.d.ts +1 -1
  175. package/dist/TimeInput/index.js +1 -1
  176. package/dist/{TimeInput-D-i2TFnX.js → TimeInput-CBVMN37Z.js} +2 -2
  177. package/dist/Timer/index.d.ts +1 -1
  178. package/dist/Timer/index.js +1 -1
  179. package/dist/{Timer-i3ujG9pH.js → Timer-DBujcX_B.js} +1 -1
  180. package/dist/Timestamp/index.d.ts +1 -1
  181. package/dist/Timestamp/index.js +1 -1
  182. package/dist/{Timestamp-BqNCcvsK.js → Timestamp-Dv6_wb89.js} +2 -2
  183. package/dist/Toast/index.js +1 -1
  184. package/dist/{Toast-BGzbZs-G.js → Toast-C3khq9NA.js} +12 -3
  185. package/dist/ToggleButton/index.d.ts +1 -1
  186. package/dist/ToggleButton/index.js +1 -1
  187. package/dist/{ToggleButton-CqVXRm6U.js → ToggleButton-fvo3Mxmb.js} +2 -2
  188. package/dist/Token/index.d.ts +1 -1
  189. package/dist/Token/index.js +1 -1
  190. package/dist/{Token-B9pKIuXP.js → Token-B_jnJ700.js} +47 -7
  191. package/dist/Tokenizer/index.d.ts +1 -1
  192. package/dist/Tokenizer/index.js +1 -1
  193. package/dist/{Tokenizer-TB5Cd8Pz.js → Tokenizer-3nwPA8Az.js} +12 -12
  194. package/dist/Toolbar/index.d.ts +2 -2
  195. package/dist/Tooltip/index.d.ts +1 -1
  196. package/dist/Tooltip/index.js +2 -2
  197. package/dist/{Tooltip-CFQrHG0a.js → Tooltip-W32cHQH0.js} +1 -1
  198. package/dist/TopNav/index.d.ts +1 -1
  199. package/dist/TreeList/index.d.ts +1 -1
  200. package/dist/Typeahead/index.js +2 -2
  201. package/dist/{Typeahead-PNNYCcZn.js → Typeahead-KXBQ4jXf.js} +5 -5
  202. package/dist/{accessibleName-BVk1Rzrl.js → accessibleName-Dpzu2nL1.js} +1 -1
  203. package/dist/{announceRenderedText-CslZ0cev.js → announceRenderedText-pHs_kfQB.js} +3 -2
  204. package/dist/composables/index.d.ts +2 -2
  205. package/dist/composables/index.js +4 -4
  206. package/dist/{composables-DeNxbB0w.js → composables-cdO2fBF6.js} +7 -18
  207. package/dist/{context-Cgkyk-b7.js → context-Ds4l8NtJ.js} +6 -1
  208. package/dist/devWarnings-DI1R0rGp.js +14 -0
  209. package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
  210. package/dist/{index-PydsflFS.d.ts → index-ADSpm_Dq.d.ts} +8 -8
  211. package/dist/{index-J83fLEyo.d.ts → index-B7-c8UTz.d.ts} +3 -3
  212. package/dist/{index-B44fLswd.d.ts → index-B7Yl723I.d.ts} +1 -1
  213. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  214. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  215. package/dist/{index-B7vE2Dx8.d.ts → index-BK9UUbsu.d.ts} +2 -2
  216. package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
  217. package/dist/{index-COgrQZIL.d.ts → index-BaFphczL.d.ts} +1 -1
  218. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  219. package/dist/{index-CJT9kM7e.d.ts → index-BstD8W_P.d.ts} +19 -4
  220. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  221. package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
  222. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  223. package/dist/{index-CpLGbFCR.d.ts → index-C5aEstRY.d.ts} +3 -3
  224. package/dist/{index-C3JmGujU.d.ts → index-C9uW39Mj.d.ts} +2 -2
  225. package/dist/{index-Bwh8O-v8.d.ts → index-CC9ETLL4.d.ts} +2 -2
  226. package/dist/{index-hE8MBOld.d.ts → index-CLOppj9J.d.ts} +8 -8
  227. package/dist/{index-Dk50Zh3F.d.ts → index-D3UaSnbN.d.ts} +1 -1
  228. package/dist/{index-DAz4l6Jw.d.ts → index-DD3c1ZhS.d.ts} +1 -1
  229. package/dist/{index-CBOv5j3c.d.ts → index-DDrL_-hJ.d.ts} +2 -2
  230. package/dist/{index-CEdoNcHF.d.ts → index-K9yFjQxo.d.ts} +3 -3
  231. package/dist/{index-DCyYldjP.d.ts → index-T5bzxQ30.d.ts} +1 -1
  232. package/dist/{index-Ak1b0V24.d.ts → index-a6o69uPN.d.ts} +1 -1
  233. package/dist/{index-0RIgvtdm.d.ts → index-beOIC0Qk.d.ts} +1 -1
  234. package/dist/{index-CLbslOVk.d.ts → index-cxXrnuj3.d.ts} +1 -1
  235. package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
  236. package/dist/{index-CAC3Bhus.d.ts → index-vuxO2gyJ.d.ts} +83 -83
  237. package/dist/index.d.ts +32 -32
  238. package/dist/index.js +79 -79
  239. package/dist/internal/touch.js +6 -6
  240. package/dist/{itemSlots-CIQbrKkZ.js → itemSlots-D9aPTELK.js} +2 -2
  241. package/dist/{layerFocusReturn-uixUCSc8.js → layerFocusReturn-Bl6yja5A.js} +50 -2
  242. package/dist/{lazyBottomSheet-BfDsDl4w.js → lazyBottomSheet-CXBBo9Ao.js} +1 -1
  243. package/dist/rootFocusHandoff-CORyJeRP.js +25 -0
  244. package/dist/{snapPagingCatcher-DUb8YU3G.js → snapPagingCatcher-CQ34r-x-.js} +1 -1
  245. package/dist/{types-DTlpQo7j.d.ts → types-BsFCq23a.d.ts} +11 -2
  246. package/dist/{useFingerScroll-DO4LVzDf.js → useFingerScroll-CC19P9JS.js} +1 -1
  247. package/dist/{useGestureRecognizer-CozA1twZ.js → useGestureRecognizer-D5kNuQzG.js} +1 -1
  248. package/dist/{useInputStatusIcon-BvJML52B.js → useInputStatusIcon-BW70yd3c.js} +1 -1
  249. package/dist/{useResizable-CKDaU_se.d.ts → useResizable-CJFVvx_2.d.ts} +4 -0
  250. package/dist/{useTooltip-CdD6ivAv.js → useTooltip-D5kJD9ed.js} +1 -1
  251. package/dist/{useTruncationTooltip-C37kvtXu.js → useTruncationTooltip-Cx4R7Fyp.js} +12 -5
  252. package/dist/{useTypeaheadMenuConfig-DHX88vqs.js → useTypeaheadMenuConfig-TSkUldd9.js} +1 -1
  253. package/dist/utils/index.js +1 -1
  254. package/package.json +1 -1
  255. package/styles/button.css +7 -2
  256. package/styles/carousel.css +15 -0
  257. package/styles/citation.css +7 -2
  258. package/styles/dialog.css +5 -0
  259. package/styles/drawer.css +6 -0
  260. package/styles/popover.css +11 -3
  261. package/styles/table.css +31 -8
  262. package/styles/toast.css +6 -0
  263. package/styles/token.css +30 -0
  264. package/dist/{GestureHost-CRgadcBb.js → GestureHost-DXlDxyns.js} +1 -1
  265. package/dist/{Kbd-CbD993ig.js → Kbd-CwtGTUmB.js} +1 -1
  266. package/dist/{index-DKlE9Iqk.d.ts → index-7tsRPFfY.d.ts} +1 -1
  267. package/dist/{useResizable-mkUwYfmy.js → useResizable-Diq3vRVH.js} +1 -1
@@ -126,6 +126,10 @@ interface TableColumn<T extends Record<string, unknown> = Record<string, unknown
126
126
  headerHidden?: boolean;
127
127
  /** 为 false 时,列宽拖动不给这一列画把手。 */
128
128
  resizable?: boolean;
129
+ /**
130
+ * 自定义单元格内容。状态列用 StatusDot 配一段 Text;实心 Badge 只留给少数需要处理的状态,
131
+ * 不要每一行都放一个。不写时单元格显示 `row[key]` 的纯文字。
132
+ */
129
133
  renderCell?: (item: T, index: number) => VNodeChild;
130
134
  }
131
135
  /**
@@ -316,7 +316,7 @@ function useTooltip(options = {}) {
316
316
  element.addEventListener("focusin", onFocusIn);
317
317
  element.addEventListener("focusout", onFocusOut);
318
318
  describedByBefore = element.getAttribute("aria-describedby");
319
- element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
319
+ if (presentInterest == null) element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
320
320
  answerPresentInterest(presentInterest, element, {
321
321
  hover: scheduleShow,
322
322
  tap: (tapEvent) => {
@@ -1,7 +1,7 @@
1
1
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { n as tooltipPresentInterestKey } from "./useTooltip-CdD6ivAv.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-CFQrHG0a.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-D5kJD9ed.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-W32cHQH0.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
@@ -37,6 +37,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
37
37
  * 截断文字的提示不随文字一起挂载,等第一次悬停、轻点或键盘聚焦才挂。
38
38
  * 一长串表格单元格因此不会在加载时各挂一个关着的提示层。
39
39
  * 这次交互记在 `state` 里,提示挂上后按自己的规则回应:悬停照常等延迟,轻点立刻打开。
40
+ * 悬停从鼠标或笔在元素上的第一次移动算起:元素出现在、或移到一个没动的指针下面时浏览器也会发
41
+ * `pointerenter`,那不算悬停。
40
42
  */
41
43
  function useTruncationTooltipInterest(isEnabled) {
42
44
  const isWanted = shallowRef(false);
@@ -46,6 +48,7 @@ function useTruncationTooltipInterest(isEnabled) {
46
48
  isRead: false
47
49
  };
48
50
  let isTouchPress = false;
51
+ let isHoverEnded = false;
49
52
  trackInteractionModality();
50
53
  function want(interest, tapEvent = null) {
51
54
  if (!isEnabled() || state.isRead) return;
@@ -59,16 +62,20 @@ function useTruncationTooltipInterest(isEnabled) {
59
62
  return {
60
63
  isWanted,
61
64
  state,
62
- onPointerenter(event) {
63
- if (event.pointerType !== "touch") want("hover");
65
+ onPointermove(event) {
66
+ if (event.pointerType !== "touch" && !isHoverEnded) want("hover");
67
+ },
68
+ onPointerleave() {
69
+ isHoverEnded = false;
70
+ forget("hover");
64
71
  },
65
- onPointerleave: () => forget("hover"),
66
72
  onPointerdown(event) {
67
73
  isTouchPress = event.pointerType === "touch" || event.pointerType === "pen";
68
74
  if (event.pointerType === "touch") {
69
75
  want("tap", event);
70
76
  return;
71
77
  }
78
+ isHoverEnded = true;
72
79
  forget("hover");
73
80
  },
74
81
  onFocusin(event) {
@@ -4,7 +4,7 @@ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
4
4
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
5
5
  import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
6
6
  import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
7
- import { t as _sfc_main$3 } from "./Spinner-lLOYfbOY.js";
7
+ import { t as _sfc_main$3 } from "./Spinner-D6U81W87.js";
8
8
  import { t as createStillPointerGate } from "./stillPointerGate-D15jGSjP.js";
9
9
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
10
10
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
@@ -5,6 +5,6 @@ import { n as observeResize, r as unobserveResize } from "../sharedResizeObserve
5
5
  import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
6
6
  import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "../plainDate-CaTDErKr.js";
7
7
  import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "../inputPresentation-DES0JwkL.js";
8
- import { t as useFingerScroll } from "../useFingerScroll-DO4LVzDf.js";
8
+ import { t as useFingerScroll } from "../useFingerScroll-CC19P9JS.js";
9
9
  import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-BW62BpDR.js";
10
10
  export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize, scrollEventTarget as unstable_scrollEventTarget, scrollportTop as unstable_scrollportTop, scrollsPage as unstable_scrollsPage, setScrollAnchoringOff as unstable_setScrollAnchoringOff, useFingerScroll as unstable_useFingerScroll };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.42.5",
4
+ "version": "0.43.0",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
package/styles/button.css CHANGED
@@ -50,6 +50,11 @@
50
50
 
51
51
  @layer astryx.components {
52
52
  .astryx-button {
53
+ /*
54
+ * 按下时的缩放倍数。打开的弹层把这个按钮当锚点时,在按钮上把它设成 1,按下不缩,弹层不跟着挪。
55
+ * 这里写 initial,外层控件上的值传不进来。
56
+ */
57
+ --_astryx-press-scale: initial;
53
58
  --button-focus-offset: 3px;
54
59
  --button-icon-only-aspect: 1 / 1;
55
60
  /* 悬停叠层和描边都先落到这两组内部变量,变体块只改内部变量。 */
@@ -184,13 +189,13 @@
184
189
  var(--astryx-button-pressed-overlay, #0000001a),
185
190
  var(--astryx-button-pressed-overlay, #0000001a)
186
191
  );
187
- transform: scale(0.98);
192
+ transform: scale(var(--_astryx-press-scale, 0.98));
188
193
  }
189
194
  }
190
195
 
191
196
  /* 和悬停、:active 同一权重,写在后面,按压盖过悬停。底色留给变体,按压只换上层图片。 */
192
197
  .astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press='on'] {
193
- transform: scale(0.98);
198
+ transform: scale(var(--_astryx-press-scale, 0.98));
194
199
  }
195
200
 
196
201
  .astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press] {
@@ -36,6 +36,11 @@
36
36
  }
37
37
  }
38
38
 
39
+ /* 主题设了 `reducedMotion: 'always'` 时同样不做平滑滚动。 */
40
+ [data-astryx-reduced-motion] .astryx-carousel__scroller {
41
+ scroll-behavior: auto;
42
+ }
43
+
39
44
  /* 滚动区是焦点的主人,但它的边缘渐隐遮罩会盖住自己画的焦点环;
40
45
  所以由外层在内容之上画一层同款焦点环,向内收一个环宽,完整落在轮播框内。 */
41
46
  .astryx-carousel__scroller:focus-visible {
@@ -122,6 +127,16 @@
122
127
  pointer-events: none;
123
128
  }
124
129
 
130
+ /* 挂载后第一次测量的那一帧,按钮直接到位:淡入会让第一帧画成没有按钮。 */
131
+ .astryx-carousel__pill[data-unfaded] {
132
+ transition-property: none;
133
+ }
134
+
135
+ /* 按钮也直接离开禁用态;悬停和按压照常过渡。 */
136
+ .astryx-carousel__pill[data-unfaded] .astryx-button {
137
+ transition-property: background-image, background-color, color, transform;
138
+ }
139
+
125
140
  [dir='rtl'] .astryx-carousel__pill .astryx-icon {
126
141
  transform: scaleX(-1);
127
142
  }
@@ -17,7 +17,8 @@
17
17
  flex-shrink: 0;
18
18
  width: max-content;
19
19
  max-width: none;
20
- height: var(--astryx-spacing-5, 20px);
20
+ /* 默认字号下一行不比芯片高,高度不变;字号变大时芯片跟着文字长高。用 min-height 会把边框算进行高。 */
21
+ height: max(var(--astryx-spacing-5, 20px), 1lh);
21
22
  margin-inline-start: var(--astryx-spacing-0-5, 2px);
22
23
  padding-inline: var(--astryx-spacing-2, 8px);
23
24
  overflow: visible;
@@ -44,7 +45,11 @@
44
45
  align-items: center;
45
46
  justify-content: center;
46
47
  min-width: var(--astryx-spacing-5, 20px);
47
- height: var(--astryx-spacing-5, 20px);
48
+ /*
49
+ * 默认字号下保持间距尺寸;字号变大时跟着长高,但最多 1.5em,足够装下常见界面字体的字框。
50
+ * 上标徽标和行一样高会把整行顶高。
51
+ */
52
+ height: max(var(--astryx-spacing-5, 20px), min(1lh, 1.5em));
48
53
  padding-inline: var(--astryx-spacing-1, 4px);
49
54
  vertical-align: super;
50
55
  border-radius: var(--astryx-radius-full, 9999px);
package/styles/dialog.css CHANGED
@@ -138,6 +138,11 @@
138
138
  }
139
139
  }
140
140
 
141
+ /* 主题对所有人减少动效(Theme 写在根上的标记):任何指针下对话框都直接出现。 */
142
+ :where([data-astryx-reduced-motion]) .astryx-dialog[open] {
143
+ animation: none;
144
+ }
145
+
141
146
  @media (forced-colors: active) {
142
147
  /* 强制配色会去掉阴影,遮罩颜色也由系统接管,对话框靠这圈边和页面分开。全屏对话框四周没有页面,不加。 */
143
148
  .astryx-dialog:not(.astryx-dialog--fullscreen) {
package/styles/drawer.css CHANGED
@@ -179,6 +179,12 @@
179
179
  }
180
180
  }
181
181
 
182
+ /* 主题对所有人减少动效时一样压到 0.01s。 */
183
+ :where([data-astryx-reduced-motion]) .astryx-drawer,
184
+ :where([data-astryx-reduced-motion]) .astryx-drawer--scrim::backdrop {
185
+ transition-duration: 0.01s;
186
+ }
187
+
182
188
  @media (forced-colors: active) {
183
189
  .astryx-drawer {
184
190
  border-inline: 1px solid CanvasText;
@@ -93,10 +93,18 @@
93
93
  }
94
94
  }
95
95
 
96
+ /* 浮层自己拿到键盘焦点时(内容里没有可聚焦的控件)画共用的焦点环。 */
97
+ .astryx-popover:focus-visible {
98
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
99
+ outline-offset: var(--astryx-focus-outline-offset, 0px);
100
+ }
101
+
96
102
  @media (forced-colors: active) {
97
- /* 强制配色会去掉阴影,阴影是这块浮层唯一的边,这里补一圈系统色边框。 */
98
- .astryx-popover {
99
- border: 1px solid CanvasText;
103
+ /* 强制配色会去掉阴影,阴影是这块浮层唯一的边。边画成盒子里面的 1px 轮廓,不加尺寸,
104
+ 贴着视口上限的浮层照样留出两边的空隙;键盘聚焦时焦点环换掉这条边。 */
105
+ .astryx-popover:not(:focus-visible) {
106
+ outline: 1px solid CanvasText;
107
+ outline-offset: -1px;
100
108
  }
101
109
  }
102
110
  }
package/styles/table.css CHANGED
@@ -229,6 +229,24 @@
229
229
  text-overflow: ellipsis;
230
230
  }
231
231
 
232
+ /*
233
+ * 截短的纯文字标题带着自己文字的方向(dir),省略号截在结尾、开头留着;
234
+ * 对齐仍按页面方向走。Chromium 只认带前缀的写法。
235
+ */
236
+ .astryx-table__header-label[dir],
237
+ .astryx-table__cut-heading[dir] {
238
+ text-align: -webkit-match-parent;
239
+ text-align: match-parent;
240
+ }
241
+
242
+ /* 手写行列模式里截短的纯文字标题由自己的盒子截,方向放在这个盒子上,不动格子的内边距和分隔线。 */
243
+ .astryx-table__cut-heading {
244
+ display: block;
245
+ overflow: hidden;
246
+ text-overflow: ellipsis;
247
+ white-space: nowrap;
248
+ }
249
+
232
250
  .astryx-table[data-dividers='rows'] tbody tr:not(:last-child) > td,
233
251
  .astryx-table[data-dividers='grid'] tbody tr:not(:last-child) > td {
234
252
  --_table-row-divider-width: var(--astryx-border-width, 1px);
@@ -688,21 +706,26 @@
688
706
 
689
707
  /*
690
708
  * The row-expansion toggle holds whatever the theme's table-row-expand slot
691
- * resolves in a box the size of the default glyph, centred out of flow. A
692
- * larger glyph or a hidden one keeps the toggle's baseline and the row height.
693
- * The box carries the turn, so any glyph turns with it.
709
+ * resolves in a box the size of the default glyph, centred out of the line. A
710
+ * larger glyph or a hidden one keeps the toggle's baseline (the box's bottom
711
+ * edge) and the row height. The box carries the turn, so any glyph turns with it.
712
+ * Safari 在行滑动的每一帧都要处理表格里每个定位或变换过的盒子,所以这个盒子静止时
713
+ * 不定位:浮动的 flex 盒把图标居中,又不占行内位置;收起的箭头也没有 transform。
694
714
  */
695
715
  .astryx-table__chevron-icon--slot {
696
- position: relative;
716
+ display: inline-block;
697
717
  inline-size: 0.75rem;
698
718
  block-size: 0.75rem;
699
719
  flex-shrink: 0;
700
720
  }
701
721
 
702
- .astryx-table__chevron-icon--slot > .astryx-icon {
703
- position: absolute;
704
- inset: 0;
705
- margin: auto;
722
+ .astryx-table__chevron-glyph {
723
+ float: inline-start;
724
+ display: flex;
725
+ align-items: center;
726
+ justify-content: center;
727
+ inline-size: 100%;
728
+ block-size: 100%;
706
729
  }
707
730
 
708
731
  .astryx-table__chevron-icon.is-expanded {
package/styles/toast.css CHANGED
@@ -233,4 +233,10 @@
233
233
  transition-duration: 0.01ms;
234
234
  }
235
235
  }
236
+
237
+ /* 主题对所有人减少动效(Theme 写在根上的标记):和系统设置一样,滑动直接落位,过渡仍会结束。 */
238
+ :where([data-astryx-reduced-motion]) .astryx-toast-viewport__row,
239
+ :where([data-astryx-reduced-motion]) .astryx-toast {
240
+ transition-duration: 0.01ms;
241
+ }
236
242
  }
package/styles/token.css CHANGED
@@ -107,6 +107,19 @@
107
107
  border: 0;
108
108
  }
109
109
 
110
+ /*
111
+ * 尾部内容和标签一起被截短,长值不会把删除按钮挤出 token。
112
+ * 裁切框四周留出焦点环的宽度,里面的控件聚焦时环不被裁掉;同样大的负外边距保持布局不变。
113
+ */
114
+ .astryx-token-end {
115
+ display: inline-flex;
116
+ align-items: center;
117
+ min-width: 0;
118
+ overflow: hidden;
119
+ padding: calc(var(--astryx-focus-outline-width, 2px) + var(--astryx-focus-outline-offset, 3px));
120
+ margin: calc(-1 * (var(--astryx-focus-outline-width, 2px) + var(--astryx-focus-outline-offset, 3px)));
121
+ }
122
+
110
123
  .astryx-token-action {
111
124
  display: inline-flex;
112
125
  align-items: center;
@@ -152,6 +165,23 @@
152
165
  }
153
166
  }
154
167
 
168
+ /* 删除按钮在自己的圆形底上画悬停和按压,和别的图标按钮同一层色。 */
169
+ @media (hover: hover) {
170
+ .astryx-token-remove:not([aria-disabled='true']):hover {
171
+ background-image: linear-gradient(var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c)), var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c)));
172
+ }
173
+ }
174
+
175
+ @media not all and (pointer: coarse) {
176
+ .astryx-token-remove:not([aria-disabled='true']):active {
177
+ background-image: linear-gradient(var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19)), var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19)));
178
+ }
179
+ }
180
+
181
+ .astryx-token-remove:not([aria-disabled='true'])[data-astryx-press] {
182
+ background-image: var(--_press-paint-image);
183
+ }
184
+
155
185
  .astryx-token.is-disabled {
156
186
  cursor: default;
157
187
  opacity: 0.5;
@@ -5,8 +5,8 @@ import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } fro
5
5
  import { n as sharedKey, t as realmValue } from "./sharedRealm-BYHklCVM.js";
6
6
  import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
7
7
  import { i as UIKIT_LONG_PRESS, l as UIKIT_TAP, s as UIKIT_PRESS } from "./gestures-BpGkqgpV.js";
8
- import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-Cl58tYA6.js";
9
8
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
9
+ import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-Cl58tYA6.js";
10
10
  import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
11
11
  import { i as locksSelectionFor, r as lockStyles, t as isTextEntry } from "./selectionLock-BM8XEZQD.js";
12
12
  import { a as selectRanges, c as startsOnSelectableText, i as sameRanges, n as heldRanges, o as selectionRangesOf, r as isValidRange, s as shadowRootsOfRanges } from "./selectionRanges-DB5jesLz.js";
@@ -1,5 +1,5 @@
1
- import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
2
1
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
2
+ import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
4
  import { t as kbdMessages } from "./kbd-eX_twmH9.js";
5
5
  import { Fragment, computed, createElementBlock, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, toDisplayString, unref, useAttrs } from "vue";
@@ -43,8 +43,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
43
43
  onRemove?: ((event: Event) => any) | undefined;
44
44
  }>, {
45
45
  size: TokenSize;
46
- disabled: boolean;
47
46
  labelHidden: boolean;
47
+ disabled: boolean;
48
48
  color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
49
49
  removable: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,8 +1,8 @@
1
1
  import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
2
+ import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
2
3
  import { t as animatorFor } from "./animator-D6Buqmbt.js";
3
4
  import { t as resolveMotion } from "./resolveMotion-BHR1cz0Q.js";
4
5
  import { d as springs } from "./springs-BqW2WrS-.js";
5
- import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
6
6
  import { t as project } from "./projection-BafBD5NP.js";
7
7
  import { c as createRegionPaneSlot, f as registerPropsRegion, h as slideNextOnRelease, i as registerResizableChannel, l as edgeAxis, m as slideMotionsOf, o as resizeHandleBeside, p as shownSizeReader, s as createPaneReveal, u as isScriptMotion } from "./resizableChannel-C9UA4vam.js";
8
8
  import { i as rubberBandSlope, r as rubberBandInverse, t as rubberBand } from "./rubberBand-CE3LYEUx.js";