@astryx-vue/core 0.43.4 → 0.43.6

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 (271) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CcQuJKn6.js → AlertDialog-DMnMkws1.js} +4 -4
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-BZrs85ca.js → AppShell-D7Q66weN.js} +11 -4
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-DBj4G2ln.js → Banner-DBiGObs1.js} +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/BottomSheet/index.js +2 -2
  11. package/dist/{BottomSheet-B_c2Qm7B.js → BottomSheet-Cp6j099l.js} +1 -1
  12. package/dist/{BottomSheet-CN2GXFrM.js → BottomSheet-YMCZQnE7.js} +1 -1
  13. package/dist/Breadcrumbs/index.js +1 -1
  14. package/dist/{Breadcrumbs-Drv_deCP.js → Breadcrumbs-BnG7qEcJ.js} +1 -1
  15. package/dist/Button/index.d.ts +1 -1
  16. package/dist/Button/index.js +1 -1
  17. package/dist/{Button-cAa9AeKm.js → Button-DQ6RfigZ.js} +1 -1
  18. package/dist/ButtonGroup/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.js +1 -1
  20. package/dist/{ButtonGroup-CVEW53-t.js → ButtonGroup-CQKamSTm.js} +2 -2
  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-Bz2GuVdq.js → Carousel-Cs7X1lep.js} +1 -1
  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-D0eyxcQ5.js → Chat-CF_SX671.js} +2 -2
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxInput/index.js +1 -1
  32. package/dist/{CheckboxInput-Bxkwj-UA.js → CheckboxInput-BkCF8GIt.js} +2 -2
  33. package/dist/CheckboxList/index.d.ts +1 -1
  34. package/dist/CheckboxList/index.js +1 -1
  35. package/dist/{CheckboxListItem-dQ1xloAV.js → CheckboxListItem-DirFLYZN.js} +3 -3
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/ClickableCard/index.js +1 -1
  38. package/dist/{ClickableCard-Q9v7cY07.js → ClickableCard-VoDgBMvb.js} +24 -4
  39. package/dist/Code/index.js +2 -2
  40. package/dist/{Code-Buhb8IAF.js → Code-D7gYFNXC.js} +1 -1
  41. package/dist/{CodeBlock-BGaLnVrQ.js → CodeBlock-BA8Y_MF2.js} +1 -1
  42. package/dist/Collapsible/index.d.ts +1 -1
  43. package/dist/CommandPalette/index.d.ts +1 -1
  44. package/dist/ComplexSelector/index.d.ts +1 -1
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-BdX1TRrW.js → ComplexSelector-WXfnvLcn.js} +2 -2
  47. package/dist/ContextMenu/index.d.ts +1 -1
  48. package/dist/ContextMenu/index.js +1 -1
  49. package/dist/{ContextMenu-CzeZmLy8.js → ContextMenu-C941I0rG.js} +1 -1
  50. package/dist/DateInput/index.d.ts +1 -1
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-Ck4gAiFL.js → DateInput-CAV1SmkA.js} +3 -3
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-ChrXW-_5.js → DateRangeInput-C4cWtxCS.js} +3 -3
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-D5X_NyMg.js → DateTimeInput-D3xOuNs6.js} +5 -5
  59. package/dist/Dialog/index.d.ts +1 -1
  60. package/dist/Dialog/index.js +1 -1
  61. package/dist/{DialogHeader-XUjy9Mxx.js → DialogHeader-BYaCZLsF.js} +1 -1
  62. package/dist/Divider/index.d.ts +1 -1
  63. package/dist/Drawer/index.d.ts +1 -1
  64. package/dist/Drawer/index.js +1 -1
  65. package/dist/{Drawer-BkF0RsKw.js → Drawer-DsAG3ZLp.js} +1 -1
  66. package/dist/DropdownMenu/index.js +1 -1
  67. package/dist/{DropdownMenu-a54pw41L.js → DropdownMenu-CRd17odo.js} +2 -2
  68. package/dist/EmptyState/index.js +1 -1
  69. package/dist/{EmptyState-OncHh-9P.js → EmptyState-BU4RhwEo.js} +2 -2
  70. package/dist/Field/index.js +3 -3
  71. package/dist/{Field-DIjIgiMo.js → Field-BVb_ZtR4.js} +1 -1
  72. package/dist/{FieldInfoTip-D93Kcdo-.js → FieldInfoTip-BfOrntpA.js} +1 -1
  73. package/dist/{FieldLabel-B-jJ2ETs.js → FieldLabel-BGCnyRrA.js} +1 -1
  74. package/dist/FileInput/index.js +1 -1
  75. package/dist/{FileInput-n0pEzUQR.js → FileInput-BiAXRgPS.js} +3 -3
  76. package/dist/Heading/index.d.ts +1 -1
  77. package/dist/Heading/index.js +1 -1
  78. package/dist/{Heading-BfoFn1o5.js → Heading-BBcdemCU.js} +1 -1
  79. package/dist/HoverCard/index.d.ts +1 -1
  80. package/dist/IconButton/index.js +1 -1
  81. package/dist/{IconButton-CxVxw2hc.js → IconButton-CxTDkKrB.js} +1 -1
  82. package/dist/InfoTip/index.d.ts +1 -1
  83. package/dist/InfoTip/index.js +1 -1
  84. package/dist/{InfoTip-BgcWXI1k.js → InfoTip-C1alu-zO.js} +1 -1
  85. package/dist/{InputClearButton-Bn29CBnZ.js → InputClearButton-C9TYgl0O.js} +1 -1
  86. package/dist/InputGroup/index.d.ts +1 -1
  87. package/dist/InputGroup/index.js +1 -1
  88. package/dist/{InputGroup-B3kkylCQ.js → InputGroup-DF43Dd5j.js} +1 -1
  89. package/dist/Layout/index.d.ts +1 -1
  90. package/dist/Layout/index.js +2 -2
  91. package/dist/{Layout-OQ1qfgFZ.js → Layout-CwBC_vhy.js} +1 -1
  92. package/dist/{LayoutPanel-C7meqbdC.js → LayoutPanel-CNQxpDF3.js} +1 -1
  93. package/dist/Lightbox/index.js +1 -1
  94. package/dist/{Lightbox-CVrDI3Df.js → Lightbox-CpsxXfXR.js} +3 -3
  95. package/dist/Link/index.d.ts +1 -1
  96. package/dist/List/index.d.ts +1 -1
  97. package/dist/List/index.js +2 -2
  98. package/dist/{List-C6Zj2WCv.js → List-DJ24b8z9.js} +1 -1
  99. package/dist/{ListItem-CXsgM4xN.js → ListItem-C-ojoRaq.js} +1 -1
  100. package/dist/Markdown/index.d.ts +1 -1
  101. package/dist/Markdown/index.js +1 -1
  102. package/dist/{Markdown-CH1HEQ5H.js → Markdown-ef1Pusj2.js} +2 -2
  103. package/dist/MobileNav/index.js +1 -1
  104. package/dist/{MobileNavToggle-BjBPWy34.js → MobileNavToggle-6te1baa6.js} +6 -4
  105. package/dist/MoreMenu/index.d.ts +1 -1
  106. package/dist/MoreMenu/index.js +1 -1
  107. package/dist/{MoreMenu-BV0ilgia.js → MoreMenu-C9eTY46e.js} +3 -3
  108. package/dist/MultiSelector/index.d.ts +1 -1
  109. package/dist/MultiSelector/index.js +1 -1
  110. package/dist/{MultiSelector-BWOqNKUw.js → MultiSelector-BXOl_3RE.js} +4 -4
  111. package/dist/NavItem/index.d.ts +1 -1
  112. package/dist/NumberInput/index.d.ts +1 -1
  113. package/dist/NumberInput/index.js +1 -1
  114. package/dist/{NumberInput-DDSIBcXu.js → NumberInput-CFmYhZFF.js} +4 -4
  115. package/dist/OverflowList/index.d.ts +1 -1
  116. package/dist/Overlay/index.d.ts +1 -1
  117. package/dist/Pagination/index.d.ts +1 -1
  118. package/dist/Pagination/index.js +1 -1
  119. package/dist/{Pagination-D5NEGm3v.js → Pagination-CCekd2TY.js} +23 -10
  120. package/dist/Popover/index.d.ts +1 -1
  121. package/dist/Popover/index.js +1 -1
  122. package/dist/{Popover-CD9zRZCN.js → Popover-4pKMLazF.js} +2 -2
  123. package/dist/PowerSearch/index.d.ts +1 -1
  124. package/dist/PowerSearch/index.js +1 -1
  125. package/dist/{PowerSearch-CgyDqwVA.js → PowerSearch-BdSHxJh3.js} +21 -21
  126. package/dist/ProgressBar/index.d.ts +1 -1
  127. package/dist/Radio/index.d.ts +1 -1
  128. package/dist/Radio/index.js +1 -1
  129. package/dist/{RadioGroup-BpOtsMJw.js → RadioGroup-DqSko1KI.js} +2 -2
  130. package/dist/RadioList/index.d.ts +1 -1
  131. package/dist/RadioList/index.js +1 -1
  132. package/dist/{RadioListItem-D_vekWsm.js → RadioListItem-D35fc-jY.js} +1 -1
  133. package/dist/Resizable/index.d.ts +1 -1
  134. package/dist/ScrollableArea/index.d.ts +1 -1
  135. package/dist/Section/index.d.ts +2 -2
  136. package/dist/Section/index.js +1 -1
  137. package/dist/{Section-Km_FjJ-i.js → Section-B_zTnJut.js} +6 -1
  138. package/dist/SegmentedControl/index.js +1 -1
  139. package/dist/{SegmentedControl-C4cyOw3z.js → SegmentedControl-C5I9xTij.js} +2 -2
  140. package/dist/SelectableCard/index.d.ts +1 -1
  141. package/dist/SelectableCard/index.js +1 -1
  142. package/dist/{SelectableCard-DNQqIEyw.js → SelectableCard-CiGBc6LT.js} +3 -2
  143. package/dist/Selector/index.d.ts +1 -1
  144. package/dist/Selector/index.js +1 -1
  145. package/dist/{Selector-DIQgqqjp.js → Selector-dcBkjGSi.js} +4 -4
  146. package/dist/SideNav/index.d.ts +1 -1
  147. package/dist/SideNav/index.js +1 -1
  148. package/dist/{SideNav-DJTPCwwg.js → SideNav-WezCXr6n.js} +2 -2
  149. package/dist/Slider/index.js +1 -1
  150. package/dist/{Slider-D_IQQkrP.js → Slider-BhVOgFx8.js} +2 -2
  151. package/dist/Stack/index.d.ts +1 -1
  152. package/dist/Stack/index.js +1 -1
  153. package/dist/{Stack-Bj3MyHVh.js → Stack-Cr68kCrs.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-kRxVa5oQ.js → Switch-BphfPxFb.js} +2 -2
  158. package/dist/TabList/index.d.ts +1 -1
  159. package/dist/TabList/index.js +1 -1
  160. package/dist/{TabList-B2dfG_rt.js → TabList-fQSnifLV.js} +9 -2
  161. package/dist/Table/index.d.ts +2 -2
  162. package/dist/Table/index.js +1 -1
  163. package/dist/{Table-C2oRVE_7.js → Table-BSIKPIu3.js} +11 -11
  164. package/dist/Text/index.d.ts +1 -1
  165. package/dist/Text/index.js +2 -2
  166. package/dist/{Text-DcTbvkLq.js → Text-Czw1L8Zc.js} +1 -1
  167. package/dist/TextArea/index.d.ts +1 -1
  168. package/dist/TextArea/index.js +1 -1
  169. package/dist/{TextArea-CsfwwuIa.js → TextArea-CpxsbEzg.js} +5 -5
  170. package/dist/TextInput/index.d.ts +1 -1
  171. package/dist/TextInput/index.js +1 -1
  172. package/dist/{TextInput-CstQuPUe.js → TextInput-BTJx9Fs8.js} +5 -5
  173. package/dist/Theme/index.js +1 -1
  174. package/dist/{Theme-B_kAJHy2.js → Theme-fCN_zUNt.js} +1 -1
  175. package/dist/Thumbnail/index.js +1 -1
  176. package/dist/{Thumbnail-C7Hi97ND.js → Thumbnail-BUkieAGN.js} +1 -1
  177. package/dist/{TimeField-Bno6mkOA.js → TimeField-8_uSSXNS.js} +2 -2
  178. package/dist/TimeInput/index.d.ts +1 -1
  179. package/dist/TimeInput/index.js +1 -1
  180. package/dist/{TimeInput-CJFEeyET.js → TimeInput-Cw37RqHp.js} +2 -2
  181. package/dist/Timer/index.js +1 -1
  182. package/dist/{Timer-vj0M-kQs.js → Timer-DUWtr4HW.js} +1 -1
  183. package/dist/Timestamp/index.d.ts +1 -1
  184. package/dist/Timestamp/index.js +1 -1
  185. package/dist/{Timestamp-ANLjz4lW.js → Timestamp-BG1Qr6TA.js} +2 -2
  186. package/dist/Toast/index.js +1 -1
  187. package/dist/{Toast-CUKO9z_S.js → Toast-B_CVMyrG.js} +1 -1
  188. package/dist/ToggleButton/index.d.ts +1 -1
  189. package/dist/ToggleButton/index.js +1 -1
  190. package/dist/{ToggleButton-C7D_xmkT.js → ToggleButton-C5SkGHLw.js} +3 -3
  191. package/dist/Token/index.d.ts +1 -1
  192. package/dist/Tokenizer/index.d.ts +1 -1
  193. package/dist/Tokenizer/index.js +1 -1
  194. package/dist/{Tokenizer-eOB86IoD.js → Tokenizer-DinjuxoR.js} +8 -8
  195. package/dist/Toolbar/index.d.ts +2 -2
  196. package/dist/Toolbar/index.js +1 -1
  197. package/dist/{Toolbar-BHkPxDxA.js → Toolbar-J0Q0-NZB.js} +7 -4
  198. package/dist/Tooltip/index.d.ts +1 -1
  199. package/dist/TopNav/index.d.ts +1 -1
  200. package/dist/TopNav/index.js +1 -1
  201. package/dist/{TopNav-D79FiL4s.js → TopNav-BGbiAK0H.js} +28 -16
  202. package/dist/TreeList/index.d.ts +1 -1
  203. package/dist/Typeahead/index.js +1 -1
  204. package/dist/{Typeahead-DgBTcIoM.js → Typeahead-QSjVKAEh.js} +2 -2
  205. package/dist/{assertOptions-Cl5NciZF.js → assertOptions--NMPt4op.js} +1 -1
  206. package/dist/composables/index.d.ts +2 -2
  207. package/dist/composables/index.js +3 -3
  208. package/dist/{composables-DqIVxGbe.js → composables-BN74Vfvk.js} +2 -2
  209. package/dist/{index-J83fLEyo.d.ts → index-B7-c8UTz.d.ts} +3 -3
  210. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  211. package/dist/{index-CC9ETLL4.d.ts → index-BMoR8Uoh.d.ts} +3 -3
  212. package/dist/{index-CBOv5j3c.d.ts → index-BQ3cm7mP.d.ts} +2 -2
  213. package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
  214. package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
  215. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  216. package/dist/{index-iGHM85Y1.d.ts → index-Bu3B-rU1.d.ts} +4 -4
  217. package/dist/{index-zMNvYijA.d.ts → index-C0mW_Tba.d.ts} +1 -1
  218. package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
  219. package/dist/{index-D1IOCfUe.d.ts → index-C3hmT5ze.d.ts} +10 -10
  220. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  221. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  222. package/dist/{index-Ds4dOCSy.d.ts → index-CCa_dvoF.d.ts} +3 -3
  223. package/dist/{index-BaFphczL.d.ts → index-CZnmYqeo.d.ts} +1 -1
  224. package/dist/{index-D3UaSnbN.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  225. package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
  226. package/dist/{index-CD1-Hqm0.d.ts → index-CmqD5Ya9.d.ts} +2 -2
  227. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  228. package/dist/{index-Csn58myZ.d.ts → index-D-cuURNK.d.ts} +1 -1
  229. package/dist/{index-BI1QLuYB.d.ts → index-D-zl_Rle.d.ts} +4 -4
  230. package/dist/{index-CEv_AvOg.d.ts → index-D2nMIyHd.d.ts} +1 -1
  231. package/dist/{index-CTjkJP4x.d.ts → index-D46MxxOl.d.ts} +4 -1
  232. package/dist/{index-DpiL3YlX.d.ts → index-D6pCg_uS.d.ts} +10 -10
  233. package/dist/{index-C8hyLvk2.d.ts → index-DZUoC8aR.d.ts} +1 -1
  234. package/dist/{index-DD3c1ZhS.d.ts → index-DuuH0y8h.d.ts} +2 -2
  235. package/dist/{index-D1aUS4mJ.d.ts → index-N3ACQISJ.d.ts} +90 -84
  236. package/dist/{index-vCRf5fyK.d.ts → index-ZKBj_1nu.d.ts} +1 -1
  237. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  238. package/dist/{index-K9yFjQxo.d.ts → index-dgfLDqBm.d.ts} +2 -2
  239. package/dist/{index-DyKu6YTp.d.ts → index-s2PK7op9.d.ts} +3 -3
  240. package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
  241. package/dist/index.d.ts +35 -35
  242. package/dist/index.js +76 -76
  243. package/dist/internal/touch.js +2 -2
  244. package/dist/{lazyBottomSheet-Cgu6B2R1.js → lazyBottomSheet-BHzk8JsS.js} +1 -1
  245. package/dist/{sharedResizeObserver-BekhnB3E.js → sharedResizeObserver-BnRTJaNh.js} +54 -1
  246. package/dist/{types-uFMH9NaM.d.ts → types-ByudyXHy.d.ts} +1 -1
  247. package/dist/{useActionGroupTracking-BxTKiVux.js → useActionGroupTracking-CXIqZDh3.js} +1 -1
  248. package/dist/{useInputStatusIcon-C1zyUxXl.js → useInputStatusIcon-CaU9lBe4.js} +1 -1
  249. package/dist/{useMobileKeyboard-xkLI3Sc0.js → useMobileKeyboard-DxddrPiU.js} +1 -1
  250. package/dist/{useResizable-ZYDRiLfL.js → useResizable-C7McXqlY.js} +28 -2
  251. package/dist/{useResizable-CJFVvx_2.d.ts → useResizable-if_cP4fs.d.ts} +1 -1
  252. package/dist/{useScrollRegionProps-D5fMvdfn.js → useScrollRegionProps-YzH-PyAg.js} +21 -7
  253. package/dist/{useTouchHitArea-gP3O_wIA.js → useTouchHitArea-Cs4K31MA.js} +38 -3
  254. package/dist/{useTruncation-D_T-ezdp.js → useTruncation-Cn8Ohj_1.js} +1 -1
  255. package/dist/{useTruncationTooltip-B0_h3sf9.js → useTruncationTooltip-D8trOJ_a.js} +1 -1
  256. package/dist/utils/index.js +1 -1
  257. package/package.json +1 -1
  258. package/styles/app-shell.css +5 -1
  259. package/styles/clickable-card.css +16 -5
  260. package/styles/collapsible.css +5 -0
  261. package/styles/layer.css +5 -1
  262. package/styles/mobile-nav.css +5 -0
  263. package/styles/nav-item.css +2 -1
  264. package/styles/nav-menu.css +9 -0
  265. package/styles/pagination.css +14 -0
  266. package/styles/resize-handle.css +11 -0
  267. package/styles/section.css +15 -0
  268. package/styles/side-nav.css +8 -0
  269. package/styles/tab-menu.css +5 -0
  270. package/styles/top-nav.css +11 -0
  271. package/dist/{index-7tsRPFfY.d.ts → index-DrIxH3YE.d.ts} +2 -2
@@ -1,19 +1,24 @@
1
1
  import { a as isMeasurable, i as getLogicalAxisMapping, u as measureScrollAxis } from "./scrollGeometry-ajfQQRJt.js";
2
- import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
2
+ import { i as splitFirstResizeDelivery, r as observeResizeAfterLayout } from "./sharedResizeObserver-BnRTJaNh.js";
3
3
  import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
4
4
  //#region src/composables/internal/mainOverflow.ts
5
5
  /**
6
6
  * 内容直接放在滚动容器里、没有内层盒子的区域(AppShell 的主区域,可滚动的 LayoutContent、
7
7
  * LayoutPanel、StackItem)是不是溢出。内容变长时容器自己的大小不变,所以盯的是它的直接子元素。
8
8
  *
9
- * 先量一次,之后只在答案变化时调 `onChange`。多个信号合并成每帧一次测量。
9
+ * 浏览器第一次排好版后量一次,之后只在答案变化时调 `onChange`。多个信号合并成每帧一次测量。
10
10
  * 藏起来、没连在文档上、尺寸为 0 的区域答「不知道」:保留上一次的答案,等下一次有效的信号。
11
11
  * 返回停止观察的函数。
12
+ *
13
+ * 区域在挂载时绑上,那时读布局会逼浏览器提前排一遍版。所以第一次测量等尺寸观察器的第一次通知,
14
+ * 那时浏览器刚排好区域或它的子元素,立即量不会多排一遍;同一轮通知里区域和子元素一起到,也只量一次。
15
+ * 没有 ResizeObserver 的环境里绑上就量。
12
16
  */
13
17
  function observeMainOverflow(main, onChange) {
14
18
  let isActive = true;
15
19
  let frame = null;
16
20
  let overflows = null;
21
+ let isLaidOut = false;
17
22
  function measure() {
18
23
  frame = null;
19
24
  if (!isActive) return;
@@ -27,13 +32,17 @@ function observeMainOverflow(main, onChange) {
27
32
  }
28
33
  }
29
34
  function scheduleMeasure() {
30
- if (!isActive || frame != null) return;
35
+ if (!isActive || !isLaidOut || frame != null) return;
31
36
  if (typeof requestAnimationFrame !== "function") {
32
37
  measure();
33
38
  return;
34
39
  }
35
40
  frame = requestAnimationFrame(measure);
36
41
  }
42
+ const onResize = splitFirstResizeDelivery(() => {
43
+ isLaidOut = true;
44
+ measure();
45
+ }, scheduleMeasure);
37
46
  const childObservers = /* @__PURE__ */ new Map();
38
47
  function syncChildObservers() {
39
48
  const children = new Set(Array.from(main.children));
@@ -41,11 +50,16 @@ function observeMainOverflow(main, onChange) {
41
50
  stop();
42
51
  childObservers.delete(child);
43
52
  }
44
- for (const child of children) if (!childObservers.has(child)) childObservers.set(child, observeResize(child, scheduleMeasure));
53
+ for (const child of children) if (!childObservers.has(child)) {
54
+ const stop = observeResizeAfterLayout(child, (entry) => {
55
+ if (entry != null) onResize();
56
+ });
57
+ childObservers.set(child, stop ?? (() => {}));
58
+ }
45
59
  }
46
- measure();
47
60
  syncChildObservers();
48
- const stopObservingMain = observeResize(main, scheduleMeasure);
61
+ const stopObservingMain = observeResizeAfterLayout(main, onResize);
62
+ if (stopObservingMain == null) onResize();
49
63
  const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
50
64
  syncChildObservers();
51
65
  scheduleMeasure();
@@ -71,7 +85,7 @@ function observeMainOverflow(main, onChange) {
71
85
  isActive = false;
72
86
  if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
73
87
  frame = null;
74
- stopObservingMain();
88
+ stopObservingMain?.();
75
89
  mutations?.disconnect();
76
90
  for (const stop of childObservers.values()) stop();
77
91
  childObservers.clear();
@@ -1,6 +1,6 @@
1
1
  import { c as pressFadeMs, f as isTrackedByGroup, t as PRESSED_ATTRIBUTE, y as PRESS_GROUP_ITEM_ATTRIBUTE } from "./pressSlot-WuaTVSU4.js";
2
2
  import { t as armClickGuard } from "./clickGuard-DOe-7mpi.js";
3
- import { toValue, watch } from "vue";
3
+ import { onScopeDispose, toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
5
5
  /** 不长:热区就是目标本身。 */
6
6
  const NO_HIT_INSETS = {
@@ -883,7 +883,8 @@ function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
883
883
  * @file useTouchHitArea.ts
884
884
  * @input 一个元素、它此刻是否接受点按,以及(可选)它怎么长
885
885
  * @output `useTouchHitArea`:粗指针下把元素的热区写成 `--astryx-hit-inset-*`,
886
- * 给 touch-hit-area.css 的热区伪元素读;`GROUP_HIT_AREA`:组的长法
886
+ * 给 touch-hit-area.css 的热区伪元素读;`useTouchHitAreas`:同样看着一组元素;
887
+ * `GROUP_HIT_AREA`:组的长法
887
888
  * @position 内部组合式函数。Button 的热区画在内容包裹层的 `::after` 上,
888
889
  * ButtonGroup 和 ToggleButtonGroup 的热区画在组根的 `::before` 上(压在成员下面)。
889
890
  */
@@ -916,5 +917,39 @@ function useTouchHitArea(element, enabled, options) {
916
917
  flush: "post"
917
918
  });
918
919
  }
920
+ /**
921
+ * 同时看着一组元素(例如 Pagination 的每个圆点)。每个元素各自往 44px 长,碰到邻居时收在一半间距处。
922
+ * 元素离开这一组、`enabled` 变假或卸载时,停下它并清掉写过的值。
923
+ */
924
+ function useTouchHitAreas(elements, enabled, options) {
925
+ const watched = /* @__PURE__ */ new Map();
926
+ function sync() {
927
+ const next = new Set(toValue(enabled) ? toValue(elements) ?? [] : []);
928
+ for (const [element, stop] of watched) if (!next.has(element)) {
929
+ stop();
930
+ watched.delete(element);
931
+ }
932
+ for (const element of next) {
933
+ if (watched.has(element)) continue;
934
+ let hasWritten = false;
935
+ const stop = watchHitArea(element, (insets) => {
936
+ hasWritten = true;
937
+ writeHitInsets(element, insets);
938
+ }, options);
939
+ watched.set(element, () => {
940
+ stop();
941
+ if (hasWritten) clearHitInsets(element);
942
+ });
943
+ }
944
+ }
945
+ watch(() => [toValue(enabled), ...toValue(elements) ?? []], sync, {
946
+ immediate: true,
947
+ flush: "post"
948
+ });
949
+ onScopeDispose(() => {
950
+ for (const stop of watched.values()) stop();
951
+ watched.clear();
952
+ });
953
+ }
919
954
  //#endregion
920
- export { resolveGroupTouch as i, useTouchHitArea as n, createActionGroupTracker as r, GROUP_HIT_AREA as t };
955
+ export { resolveGroupTouch as a, createActionGroupTracker as i, useTouchHitArea as n, useTouchHitAreas as r, GROUP_HIT_AREA as t };
@@ -1,4 +1,4 @@
1
- import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BekhnB3E.js";
1
+ import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BnRTJaNh.js";
2
2
  import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
3
3
  import { onScopeDispose, ref, toValue, watch } from "vue";
4
4
  //#region src/Text/useTruncation.ts
@@ -2,7 +2,7 @@ import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
3
  import { r as tooltipPresentInterestKey } from "./useTooltip-DSB9njlb.js";
4
4
  import { t as _sfc_main$1 } from "./Tooltip-BYXFoOwa.js";
5
- import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
5
+ import { n as useTruncation, t as truncatePlacement } from "./useTruncation-Cn8Ohj_1.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
8
8
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
2
2
  import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-DmSa8HSB.js";
3
3
  import { i as scrollsPage, n as scrollEventTarget, r as scrollportTop, t as setScrollAnchoringOff } from "../scrollAnchoring-CNplZXRt.js";
4
- import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
4
+ import { a as unobserveResize, n as observeResize } from "../sharedResizeObserver-BnRTJaNh.js";
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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.43.4",
4
+ "version": "0.43.6",
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",
@@ -20,7 +20,11 @@
20
20
  --layout-padding-inner-y: initial;
21
21
  --layout-content-width: initial;
22
22
  --layout-alignment-width: initial;
23
- --_section-padding-propagated: initial;
23
+ /* 外层 Section 显式给的内边距靠继承传给里面没给 padding 的 Section,也停在这里。 */
24
+ --_section-inline-start: initial;
25
+ --_section-inline-end: initial;
26
+ --_section-block-start: initial;
27
+ --_section-block-end: initial;
24
28
  }
25
29
 
26
30
  .astryx-app-shell[data-variant='wash'],
@@ -45,19 +45,20 @@
45
45
  transition-property: none;
46
46
  }
47
47
 
48
- .astryx-clickable-card:focus-within {
48
+ /* 只为卡片自己的链接、按钮或复选框画焦点环;子内容里的控件自己画,卡片不再套一圈。 */
49
+ .astryx-clickable-card:has(> [data-astryx-focus-owner]:focus-visible) {
49
50
  outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
50
51
  outline-offset: var(--astryx-focus-outline-offset, 2px);
51
52
  }
52
53
 
53
- .astryx-clickable-card[data-disabled='true'] {
54
+ .astryx-clickable-card[data-disabled] {
54
55
  cursor: default;
55
56
  opacity: 0.5;
56
57
  }
57
58
 
58
- .astryx-clickable-card[data-disabled='true']::after,
59
- .astryx-clickable-card[data-disabled='true']:hover::after,
60
- .astryx-clickable-card[data-disabled='true']:active::after {
59
+ .astryx-clickable-card[data-disabled]::after,
60
+ .astryx-clickable-card[data-disabled]:hover::after,
61
+ .astryx-clickable-card[data-disabled]:active::after {
61
62
  background-color: transparent;
62
63
  }
63
64
 
@@ -112,6 +113,16 @@
112
113
  --astryx-selectable-card-accent: var(--astryx-color-yellow, #ca8a04);
113
114
  }
114
115
 
116
+ /*
117
+ * 强制颜色模式去掉选中环的阴影、重画边框,选中需要自己的环:画在不占地方的 ::after 上,切换选中时什么都不挪动。
118
+ * 主题给卡片设的边框色到不了这一层;内容会滚动的定高卡片上,这一层跟着内容滚。
119
+ */
120
+ @media (forced-colors: active) {
121
+ .astryx-selectable-card[data-selected='true']::after {
122
+ border: 2px solid Highlight;
123
+ }
124
+ }
125
+
115
126
  /* 减少动态效果时,悬停、按下、选中的颜色和边框都立即切换,不做过渡。 */
116
127
  @media (prefers-reduced-motion: reduce) {
117
128
  .astryx-clickable-card::after,
@@ -197,4 +197,9 @@
197
197
  transition: none;
198
198
  }
199
199
  }
200
+
201
+ /* 主题对所有人减少动效时箭头的旋转同样立刻落定。 */
202
+ :where([data-astryx-reduced-motion]) .astryx-collapsible-chevron {
203
+ transition: none;
204
+ }
200
205
  }
package/styles/layer.css CHANGED
@@ -65,7 +65,11 @@
65
65
  --layout-padding-own-outer-y: initial;
66
66
  --layout-padding-inner-x: initial;
67
67
  --layout-padding-inner-y: initial;
68
- --_section-padding-propagated: initial;
68
+ /* 外层 Section 显式给的内边距靠继承传给里面没给 padding 的 Section,也停在这里。 */
69
+ --_section-inline-start: initial;
70
+ --_section-inline-end: initial;
71
+ --_section-block-start: initial;
72
+ --_section-block-end: initial;
69
73
  /* 步骤条的连接线空隙只属于外面那条轨道。浮层里的步骤条回到自己的 0。 */
70
74
  --astryx-step-connector-gap: initial;
71
75
  /* 外面容器传给 Text 的 anywhere 换行也停在这里,浮层里的 Text 回到自己的 break-word。 */
@@ -156,4 +156,9 @@
156
156
  animation-duration: 0.01ms;
157
157
  }
158
158
  }
159
+
160
+ /* 主题对所有人减少动效时一样压到 0.01ms。 */
161
+ :where([data-astryx-reduced-motion]) .astryx-mobile-nav__drawer {
162
+ animation-duration: 0.01ms;
163
+ }
159
164
  }
@@ -128,7 +128,8 @@
128
128
  flex: none;
129
129
  align-items: center;
130
130
  justify-content: center;
131
- border-radius: var(--astryx-radius-full, 9999px);
131
+ /* 和单选框的圆点一样,在任何主题下都是圆的,不跟圆角令牌走。 */
132
+ border-radius: 50%;
132
133
  background: var(--astryx-color-accent);
133
134
  color: var(--astryx-color-on-accent);
134
135
  }
@@ -75,6 +75,15 @@
75
75
  outline: none;
76
76
  }
77
77
 
78
+ /*
79
+ * 标题菜单里,悬停底色和菜单的对比不到 3:1:键盘聚焦的项另画共用的焦点环,
80
+ * 往里收一个环宽,画在行内。指针聚焦只有底色。
81
+ */
82
+ .astryx-nav-heading-menu-item:focus-visible {
83
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, currentcolor);
84
+ outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
85
+ }
86
+
78
87
  @media not all and (pointer: coarse) {
79
88
  .astryx-nav-menu-item:active:not(:disabled, .astryx-nav-menu-item--disabled) {
80
89
  background: var(--astryx-color-overlay-pressed);
@@ -69,7 +69,9 @@
69
69
  gap: var(--astryx-spacing-2, 8px);
70
70
  }
71
71
 
72
+ /* 定位元素:粗指针下的热区伪元素以圆点为包含块。 */
72
73
  .astryx-pagination-dot {
74
+ position: relative;
73
75
  width: 8px;
74
76
  height: 8px;
75
77
  padding: 0;
@@ -77,6 +79,18 @@
77
79
  border-radius: var(--astryx-radius-full, 999px);
78
80
  background: var(--astryx-color-border, #d4d4d4);
79
81
  cursor: pointer;
82
+ transition: background-color var(--astryx-duration-fast, 130ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
83
+ }
84
+
85
+ /* 减少动效时换页的圆点不渐变:系统设置,或主题对所有人减少动效。 */
86
+ @media (prefers-reduced-motion: reduce) {
87
+ .astryx-pagination-dot {
88
+ transition-duration: 0s;
89
+ }
90
+ }
91
+
92
+ :where([data-astryx-reduced-motion]) .astryx-pagination-dot {
93
+ transition-duration: 0s;
80
94
  }
81
95
 
82
96
  .astryx-pagination-dot.is-active {
@@ -198,4 +198,15 @@
198
198
  opacity: 1;
199
199
  background-color: var(--astryx-color-border-emphasized, #d4d4d4);
200
200
  }
201
+
202
+ /* 减少动效(系统设置或主题对所有人减少)时握把的显隐、变色和位移立刻落定。 */
203
+ @media (prefers-reduced-motion: reduce) {
204
+ .astryx-resize-handle-pill {
205
+ transition-duration: 0s;
206
+ }
207
+ }
208
+
209
+ :where([data-astryx-reduced-motion]) .astryx-resize-handle-pill {
210
+ transition-duration: 0s;
211
+ }
201
212
  }
@@ -60,4 +60,19 @@
60
60
  .astryx-section__inner[data-divider-end] {
61
61
  border-inline-end: 1px solid var(--astryx-color-border, #ebebeb);
62
62
  }
63
+
64
+ /*
65
+ * 有 minHeight 时,height: 100% 解析成内容高度,所以外层变成纵向弹性容器,上色的内层长到外层达到的高度。
66
+ * 只在这时这样做:作为弹性项目,内层会包住子元素的外边距和浮动。
67
+ */
68
+ .astryx-section--fills-min-height {
69
+ display: flex;
70
+ flex-direction: column;
71
+ }
72
+
73
+ .astryx-section--fills-min-height > .astryx-section__inner {
74
+ flex-grow: 1;
75
+ /* 外层被设了 height 而内容更高时,内容照常溢出上色的内层,不把它撑高。 */
76
+ min-height: 0;
77
+ }
63
78
  }
@@ -520,4 +520,12 @@
520
520
  transition-delay: 0s;
521
521
  }
522
522
  }
523
+
524
+ /* 主题对所有人减少动效时同样直接落位。 */
525
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-item__children,
526
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-item__chevron,
527
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-collapse__chevron {
528
+ transition-duration: 0.01ms;
529
+ transition-delay: 0s;
530
+ }
523
531
  }
@@ -94,4 +94,9 @@
94
94
  transition: none;
95
95
  }
96
96
  }
97
+
98
+ /* 主题对所有人减少动效时,箭头同样直接转到位。 */
99
+ :where([data-astryx-reduced-motion]) .astryx-tab-menu-chevron {
100
+ transition: none;
101
+ }
97
102
  }
@@ -300,6 +300,17 @@
300
300
  transition: transform var(--astryx-duration-fast-max) var(--astryx-ease-standard);
301
301
  }
302
302
 
303
+ /* 减少动效时箭头直接转到位:系统设置,或主题对所有人减少动效。 */
304
+ @media (prefers-reduced-motion: reduce) {
305
+ .astryx-top-nav-menu__chevron {
306
+ transition-duration: 0s;
307
+ }
308
+ }
309
+
310
+ :where([data-astryx-reduced-motion]) .astryx-top-nav-menu__chevron {
311
+ transition-duration: 0s;
312
+ }
313
+
303
314
  .astryx-top-nav-menu__chevron--open { transform: rotate(180deg); }
304
315
 
305
316
  .astryx-top-nav-menu--drawer,
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
43
43
  onRemove?: ((event: Event) => any) | undefined;
44
44
  }>, {
45
45
  size: TokenSize;
46
- labelHidden: boolean;
47
- disabled: boolean;
48
46
  color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
47
+ disabled: boolean;
48
+ labelHidden: boolean;
49
49
  removable: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;