@astryx-vue/core 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BO2LucRK.js → AlertDialog-igjA8kZr.js} +6 -6
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-kqwLt4ez.js → AppShell-DUHcLJWD.js} +2 -2
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-Bdnu3col.js → Avatar-KmdgVaAb.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-C-8DEWdJ.js → Banner-Bf_nMW3-.js} +1 -1
  12. package/dist/BottomSheet/index.d.ts +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-CgOzQHaA.js → BottomSheet-B57XUJV3.js} +3 -2
  15. package/dist/{BottomSheet-BECeWtEy.js → BottomSheet-BMqjymuf.js} +3 -3
  16. package/dist/Breadcrumbs/index.js +1 -1
  17. package/dist/{Breadcrumbs-Dxjz2Dxn.js → Breadcrumbs-aTPAdLdg.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-BeNp2zq_.js → Button-sUkQ0Ufo.js} +5 -4
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-CosYAili.js → ButtonGroup-CWra-KDj.js} +3 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Card/index.d.ts +1 -1
  26. package/dist/Carousel/index.d.ts +1 -1
  27. package/dist/Carousel/index.js +1 -1
  28. package/dist/{Carousel-BCcyDFRy.js → Carousel-DmXceU9h.js} +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-D3UDsL7W.js → Chat-CeibAkxn.js} +4 -4
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-iCg8FgRv.js → CheckboxInput-PvzPV1N1.js} +1 -1
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxList-Dr40y9ME.js → CheckboxList-DKtNzb0t.js} +3 -3
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/Code/index.d.ts +1 -1
  40. package/dist/Code/index.js +1 -1
  41. package/dist/{CodeBlock-B0LPcu-J.js → CodeBlock-CTPuBH_r.js} +1 -1
  42. package/dist/Collapsible/index.d.ts +1 -1
  43. package/dist/CommandPalette/index.js +1 -1
  44. package/dist/{CommandPalette-D_lf06eE.js → CommandPalette-DIoT_vZh.js} +1 -1
  45. package/dist/ComplexSelector/index.d.ts +1 -1
  46. package/dist/ComplexSelector/index.js +1 -1
  47. package/dist/{ComplexSelector-BzGKWYEv.js → ComplexSelector-B_5mzJjR.js} +2 -2
  48. package/dist/ContextMenu/index.d.ts +1 -1
  49. package/dist/ContextMenu/index.js +1 -1
  50. package/dist/{ContextMenu-6AnjpPJg.js → ContextMenu-DYnyk5rs.js} +4 -4
  51. package/dist/DateInput/index.d.ts +1 -1
  52. package/dist/DateInput/index.js +1 -1
  53. package/dist/{DateInput-OkjtSKwt.js → DateInput-DgPIsWPu.js} +4 -4
  54. package/dist/DateRangeInput/index.d.ts +1 -1
  55. package/dist/DateRangeInput/index.js +1 -1
  56. package/dist/{DateRangeInput-B4HT9NfM.js → DateRangeInput-oOfhUt1Q.js} +3 -3
  57. package/dist/DateTimeInput/index.d.ts +1 -1
  58. package/dist/DateTimeInput/index.js +1 -1
  59. package/dist/{DateTimeInput-B_tQlraA.js → DateTimeInput-DZfghF2h.js} +5 -5
  60. package/dist/Dialog/index.d.ts +1 -1
  61. package/dist/Dialog/index.js +3 -3
  62. package/dist/{Dialog-BtPktuiy.js → Dialog-Dkwt3mVt.js} +25 -8
  63. package/dist/{Dialog-3MKo31xn.js → Dialog-qIL4DUot.js} +1 -1
  64. package/dist/{DialogHeader-cr9rFLYM.js → DialogHeader-w4TCzYEj.js} +2 -2
  65. package/dist/Drawer/index.d.ts +1 -1
  66. package/dist/Drawer/index.js +1 -1
  67. package/dist/{Drawer-Ba-yG1rk.js → Drawer-DBHSNUAa.js} +2 -2
  68. package/dist/DropdownMenu/index.js +2 -2
  69. package/dist/{DropdownMenu-DJK_xIUd.js → DropdownMenu-Cncx4FbU.js} +3 -3
  70. package/dist/{DropdownMenu-B9eUWp_X.js → DropdownMenu-DHvAlqSj.js} +5 -5
  71. package/dist/EmptyState/index.js +1 -1
  72. package/dist/{EmptyState-v1cvHKav.js → EmptyState-uWyPaIR1.js} +2 -2
  73. package/dist/Field/index.js +3 -3
  74. package/dist/{Field-Dc15m78p.js → Field-CqDOsI3P.js} +1 -1
  75. package/dist/{FieldInfoTip-BouJddgS.js → FieldInfoTip-CUh2koNc.js} +1 -1
  76. package/dist/{FieldLabel-CfO3zaZ5.js → FieldLabel-BMHNRAG3.js} +1 -1
  77. package/dist/FileInput/index.d.ts +1 -1
  78. package/dist/FileInput/index.js +1 -1
  79. package/dist/{FileInput-hNPjfW1i.js → FileInput-C6dK2pvX.js} +2 -2
  80. package/dist/Heading/index.js +1 -1
  81. package/dist/{Heading-C10qO8wg.js → Heading-C0axugQa.js} +1 -1
  82. package/dist/HoverCard/index.d.ts +1 -1
  83. package/dist/HoverCard/index.js +1 -1
  84. package/dist/{HoverCard-3S3axq-o.js → HoverCard-C6Gxekg0.js} +3 -3
  85. package/dist/IconButton/index.js +1 -1
  86. package/dist/{IconButton-C91rhbvu.js → IconButton-Bv2eIsJy.js} +1 -1
  87. package/dist/InfoTip/index.d.ts +1 -1
  88. package/dist/InfoTip/index.js +1 -1
  89. package/dist/{InfoTip-iKOp_vUV.js → InfoTip-BKsbmGA6.js} +4 -2
  90. package/dist/{InputClearButton-BiF7qGMR.js → InputClearButton-CSS2Tjat.js} +2 -2
  91. package/dist/InputGroup/index.d.ts +1 -1
  92. package/dist/InputGroup/index.js +1 -1
  93. package/dist/{InputGroup-CIKleAu8.js → InputGroup-DTGh1ylC.js} +1 -1
  94. package/dist/{LayerContentBoundary-CvsKxwwm.js → LayerContentBoundary-DwTkbifx.js} +1 -1
  95. package/dist/Layout/index.js +2 -2
  96. package/dist/{Layout-OHKb6r7D.js → Layout-BeYYiLFm.js} +1 -1
  97. package/dist/{LayoutPanel-D-rpTtC-.js → LayoutPanel-DDLcJgzG.js} +3 -0
  98. package/dist/Lightbox/index.d.ts +1 -1
  99. package/dist/Lightbox/index.js +1 -1
  100. package/dist/{Lightbox-DZrWvhCQ.js → Lightbox-BZ-zBvly.js} +106 -28
  101. package/dist/Link/index.d.ts +1 -1
  102. package/dist/Link/index.js +1 -1
  103. package/dist/{Link-CnlFkwpY.js → Link-Ddu0KjPZ.js} +1 -1
  104. package/dist/List/index.d.ts +1 -1
  105. package/dist/Markdown/index.d.ts +1 -1
  106. package/dist/Markdown/index.js +1 -1
  107. package/dist/{Markdown-YVv-0uFI.js → Markdown-D7bQGV9u.js} +3 -3
  108. package/dist/MobileNav/index.js +1 -1
  109. package/dist/{MobileNavToggle-lgEHlilz.js → MobileNavToggle-Dfshmrdy.js} +3 -2
  110. package/dist/MoreMenu/index.d.ts +1 -1
  111. package/dist/MoreMenu/index.js +1 -1
  112. package/dist/{MoreMenu-DaLb4bgr.js → MoreMenu-Bie4B7Jr.js} +4 -4
  113. package/dist/MultiSelector/index.d.ts +1 -1
  114. package/dist/MultiSelector/index.js +1 -1
  115. package/dist/{MultiSelector-stzuffs3.js → MultiSelector-BdedjB6u.js} +5 -5
  116. package/dist/{NavDisclosure-DG4jls5z.js → NavDisclosure-1otbO71l.js} +1 -1
  117. package/dist/{NavHeadingSurface-9JQsxTxs.js → NavHeadingSurface-BkMR3V5m.js} +1 -1
  118. package/dist/NavItem/index.d.ts +1 -1
  119. package/dist/NavMenu/index.js +3 -3
  120. package/dist/{NavMenu-ChlWdHfi.js → NavMenu-dyGZS1yM.js} +2 -2
  121. package/dist/{NavMenuItem-DIMQohIa.js → NavMenuItem-CirgE73a.js} +1 -1
  122. package/dist/NumberInput/index.d.ts +1 -1
  123. package/dist/NumberInput/index.js +1 -1
  124. package/dist/{NumberInput-DH0Cb7L6.js → NumberInput-0KbcEF3_.js} +3 -3
  125. package/dist/OverflowList/index.d.ts +1 -1
  126. package/dist/OverflowList/index.js +1 -1
  127. package/dist/{OverflowList-BGzqG78e.js → OverflowList-BdcaX1bz.js} +2 -2
  128. package/dist/Pagination/index.d.ts +1 -1
  129. package/dist/Pagination/index.js +1 -1
  130. package/dist/{Pagination-DMG9KvKa.js → Pagination-uttop2ls.js} +1 -1
  131. package/dist/Popover/index.d.ts +1 -1
  132. package/dist/Popover/index.js +1 -1
  133. package/dist/{Popover-cnfHz2tm.js → Popover-BOQo9UPf.js} +78 -26
  134. package/dist/PowerSearch/index.d.ts +1 -1
  135. package/dist/PowerSearch/index.js +1 -1
  136. package/dist/{PowerSearch-GD52glLU.js → PowerSearch-DDuYfvNh.js} +15 -15
  137. package/dist/ProgressBar/index.d.ts +1 -1
  138. package/dist/ProgressBar/index.js +1 -1
  139. package/dist/{ProgressBar-gsm2A_cR.js → ProgressBar-BS3VSoE9.js} +1 -1
  140. package/dist/Radio/index.d.ts +1 -1
  141. package/dist/Radio/index.js +1 -1
  142. package/dist/{RadioGroup-D3TXgdwV.js → RadioGroup-DKaSstyl.js} +2 -2
  143. package/dist/RadioList/index.d.ts +1 -1
  144. package/dist/RadioList/index.js +1 -1
  145. package/dist/{RadioList-Boj8QfPe.js → RadioList-DtKm9spP.js} +1 -1
  146. package/dist/ScrollableArea/index.d.ts +1 -1
  147. package/dist/SelectableCard/index.d.ts +1 -1
  148. package/dist/Selector/index.d.ts +1 -1
  149. package/dist/Selector/index.js +1 -1
  150. package/dist/{Selector-CyY6vVUg.js → Selector-OpczmkqS.js} +4 -4
  151. package/dist/SideNav/index.d.ts +1 -1
  152. package/dist/SideNav/index.js +1 -1
  153. package/dist/{SideNav-s9yTmKX3.js → SideNav-L6CWk5fV.js} +5 -5
  154. package/dist/Slider/index.js +1 -1
  155. package/dist/{Slider-BQ4Dhxdx.js → Slider-DZS8mGZA.js} +1 -1
  156. package/dist/StatusDot/index.js +1 -1
  157. package/dist/{StatusDot-DF5wK42f.js → StatusDot-DaQGq8YN.js} +1 -1
  158. package/dist/Stepper/index.d.ts +1 -1
  159. package/dist/Switch/index.d.ts +1 -1
  160. package/dist/Switch/index.js +1 -1
  161. package/dist/{Switch-B0E8cZy7.js → Switch-BN_NnBuc.js} +1 -1
  162. package/dist/TabList/index.d.ts +1 -1
  163. package/dist/TabList/index.js +1 -1
  164. package/dist/{TabList-DBSXa5QT.js → TabList-Bmj4tGT-.js} +1 -1
  165. package/dist/Table/index.d.ts +1 -1
  166. package/dist/Table/index.js +1 -1
  167. package/dist/{Table-BxXYAtBy.js → Table-_pSoEiGP.js} +10 -10
  168. package/dist/Text/index.js +1 -1
  169. package/dist/{Text-WB-fpFne.js → Text-IijvZmW-.js} +1 -1
  170. package/dist/TextArea/index.d.ts +1 -1
  171. package/dist/TextArea/index.js +1 -1
  172. package/dist/{TextArea-CSoebCLx.js → TextArea-BDR179q1.js} +4 -4
  173. package/dist/TextInput/index.d.ts +1 -1
  174. package/dist/TextInput/index.js +1 -1
  175. package/dist/{TextInput-B3qNW95s.js → TextInput-kUzxl99M.js} +4 -4
  176. package/dist/Thumbnail/index.js +1 -1
  177. package/dist/{Thumbnail-CTkLFo-A.js → Thumbnail-Disi5yDb.js} +2 -2
  178. package/dist/{TimeField-CMZxZ6gI.js → TimeField-C0la1AtP.js} +4 -4
  179. package/dist/TimeInput/index.d.ts +1 -1
  180. package/dist/TimeInput/index.js +1 -1
  181. package/dist/{TimeInput-BFWgRaV-.js → TimeInput-C_jTijHh.js} +2 -2
  182. package/dist/Timer/index.js +1 -1
  183. package/dist/{Timer-BD2gSoQ3.js → Timer-DifGERP8.js} +1 -1
  184. package/dist/Timestamp/index.d.ts +1 -1
  185. package/dist/Timestamp/index.js +1 -1
  186. package/dist/{Timestamp-DWnbOvnI.js → Timestamp-BjXZGAvO.js} +3 -3
  187. package/dist/Toast/index.js +1 -1
  188. package/dist/{Toast-aI9QMW-L.js → Toast-DBo0WRAd.js} +1 -1
  189. package/dist/ToggleButton/index.d.ts +1 -1
  190. package/dist/ToggleButton/index.js +1 -1
  191. package/dist/{ToggleButton-DI9I-LBH.js → ToggleButton-B5HNykOh.js} +4 -3
  192. package/dist/Token/index.d.ts +1 -1
  193. package/dist/Tokenizer/index.d.ts +1 -1
  194. package/dist/Tokenizer/index.js +1 -1
  195. package/dist/{Tokenizer-Caqr8y0B.js → Tokenizer-BNazaZsP.js} +3 -3
  196. package/dist/Toolbar/index.d.ts +1 -1
  197. package/dist/Tooltip/index.d.ts +1 -1
  198. package/dist/Tooltip/index.js +2 -2
  199. package/dist/{Tooltip-CGHpFMnc.js → Tooltip-4APVAlN9.js} +1 -1
  200. package/dist/TopNav/index.d.ts +1 -1
  201. package/dist/TopNav/index.js +1 -1
  202. package/dist/{TopNav-Cm_Hn6Ub.js → TopNav-XSZWAR-7.js} +4 -4
  203. package/dist/Typeahead/index.d.ts +1 -1
  204. package/dist/Typeahead/index.js +1 -1
  205. package/dist/{Typeahead-tz2lm5qb.js → Typeahead-BgQVQw-0.js} +3 -3
  206. package/dist/composables/index.js +7 -6
  207. package/dist/context-Cgkyk-b7.js +10 -0
  208. package/dist/{index-C5bnMSjX.d.ts → index-9tZJgo0R.d.ts} +3 -3
  209. package/dist/{index-B-Jla56c.d.ts → index-B3FE7s7V.d.ts} +3 -3
  210. package/dist/{index-BzZC2Y7c.d.ts → index-B44fLswd.d.ts} +8 -7
  211. package/dist/{index-WA7z12bQ.d.ts → index-BmYnVNI-.d.ts} +2 -2
  212. package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
  213. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  214. package/dist/{index-FeZXsFO-.d.ts → index-CBOv5j3c.d.ts} +3 -3
  215. package/dist/{index-1AZ4KZhg.d.ts → index-CCpcerMA.d.ts} +2 -2
  216. package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
  217. package/dist/{index-CuNFD1Yq.d.ts → index-CGDmjlec.d.ts} +65 -65
  218. package/dist/{index-B0XIZGY0.d.ts → index-CKtrcglY.d.ts} +8 -8
  219. package/dist/{index-ul1hNxih.d.ts → index-CLHJybQY.d.ts} +1 -1
  220. package/dist/{index-DyALKpjX.d.ts → index-CM2L3SUw.d.ts} +4 -4
  221. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  222. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  223. package/dist/{index--tm6L1ot.d.ts → index-Cb-HJUhK.d.ts} +2 -2
  224. package/dist/{index-BhxqUt3y.d.ts → index-CuW4AQ7M.d.ts} +2 -2
  225. package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
  226. package/dist/{index-CP-fJFcJ.d.ts → index-DFLPv9io.d.ts} +1 -1
  227. package/dist/{index-C5e2rZML.d.ts → index-DhcjuwQq.d.ts} +3 -3
  228. package/dist/{index-CO9GW-ik.d.ts → index-Q1oG9yIT.d.ts} +1 -1
  229. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  230. package/dist/{index-CQwracWX.d.ts → index-_5purQow.d.ts} +7 -7
  231. package/dist/{index-BSlzqFzV.d.ts → index-a1jCiQP7.d.ts} +5 -5
  232. package/dist/{index-DaXzQxos.d.ts → index-lmd9LZKB.d.ts} +8 -5
  233. package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
  234. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  235. package/dist/index.d.ts +28 -28
  236. package/dist/index.js +83 -82
  237. package/dist/{layerDepth-CNDh-IHb.js → layerDepth-BF74Cctw.js} +38 -14
  238. package/dist/layerFocusReturn-DMJaFgcY.js +121 -0
  239. package/dist/{tooltipTriggerRules-Bg4tG8w2.js → tooltipTriggerRules-BY3LAtUl.js} +1 -1
  240. package/dist/{useActionGroupTracking-B4niQ_tR.js → useActionGroupTracking-BJMRaXil.js} +1 -1
  241. package/dist/{useAnchoredListbox-9Gn8asBR.js → useAnchoredListbox-CuRfVgKl.js} +1 -1
  242. package/dist/{useDismiss-0-Z-9D0A.js → useDismiss-BWd-sQ18.js} +26 -5
  243. package/dist/{useRestoreFocus-CEG0n2AK.js → useFocusTrap-FJt5QhEd.js} +2 -36
  244. package/dist/{useHoverLayerDismiss-kYJ_NqL4.js → useHoverLayerDismiss-uhfzmZyf.js} +1 -1
  245. package/dist/{useInputStatusIcon-Da2FiXwF.js → useInputStatusIcon-C3Q-q_wI.js} +1 -1
  246. package/dist/{useLayer-CED-g4Q2.js → useLayer-BGv_wRSG.js} +1 -1
  247. package/dist/{useResizable-I3BCiLSL.js → useResizable-DTDhsLip.js} +1 -1
  248. package/dist/useRestoreFocus-D2-pGoOk.js +38 -0
  249. package/dist/{useTooltip-D8Tq7-yd.js → useTooltip-md1tr6ef.js} +61 -29
  250. package/dist/{context-BJ9RkXYX.js → useTouchHitArea-1WtV3u6F.js} +1 -10
  251. package/dist/{useTruncationTooltip-BNk2xslw.js → useTruncationTooltip-BGsFITq5.js} +3 -3
  252. package/dist/{useTypeahead-DSMObTtg.js → useTypeahead-BrUwR-kv.js} +1 -1
  253. package/package.json +1 -1
  254. package/styles/dialog.css +0 -1
  255. package/styles/info-tip.css +0 -9
  256. package/styles/lightbox.css +7 -2
  257. package/styles/popover.css +2 -0
  258. package/dist/{index-D8lv2BiD.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -1,12 +1,14 @@
1
1
  import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
2
2
  import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
3
- import { t as useAnnounce } from "./announce-B210eJVf.js";
4
- import { t as _sfc_main$3 } from "./IconButton-C91rhbvu.js";
3
+ import { t as useFocusTrap } from "./useFocusTrap-FJt5QhEd.js";
4
+ import { t as _sfc_main$3 } from "./IconButton-Bv2eIsJy.js";
5
5
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
6
6
  import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
7
+ import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-DMJaFgcY.js";
7
8
  import { n as useTruncation } from "./useTruncation-C4pdlaXa.js";
8
9
  import { t as lightboxMessages } from "./lightbox-BbwxSHdB.js";
9
10
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
11
+ import "../styles/visually-hidden-utility.css";
10
12
  import "../styles/lightbox.css";
11
13
  //#region src/Lightbox/LightboxCaption.vue
12
14
  const _hoisted_1$1 = ["data-empty", "data-expanded"];
@@ -61,13 +63,45 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
61
63
  }
62
64
  });
63
65
  //#endregion
66
+ //#region src/Lightbox/lightboxViewer.ts
67
+ /** 序号取整:小数四舍五入到最近的一项,NaN 当作第一项。越界由调用方再夹紧。 */
68
+ function toWholeIndex(value) {
69
+ return Number.isNaN(value) ? 0 : Math.round(value);
70
+ }
71
+ /**
72
+ * 往灯箱自己的播报区域写一句话。模态 dialog 打开时外面的页面是 inert 的,
73
+ * 挂在 body 上的公共播报区域读屏听不到,所以灯箱在 dialog 里放一个自己的。
74
+ * 先清空再在下一帧写入,同一句话连着播两次也会被当成新内容。
75
+ */
76
+ function createModalAnnouncer(getRegion) {
77
+ let frame;
78
+ return (message) => {
79
+ const region = getRegion();
80
+ if (region == null) return;
81
+ region.textContent = "";
82
+ if (frame !== void 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
83
+ if (typeof requestAnimationFrame !== "function") {
84
+ region.textContent = message;
85
+ return;
86
+ }
87
+ frame = requestAnimationFrame(() => {
88
+ frame = void 0;
89
+ region.textContent = message;
90
+ });
91
+ };
92
+ }
93
+ //#endregion
64
94
  //#region src/Lightbox/Lightbox.vue
65
95
  const _hoisted_1 = [
66
96
  "aria-label",
67
97
  "aria-describedby",
68
- "data-gallery"
98
+ "data-gallery",
99
+ "data-caption-band"
69
100
  ];
70
- const _hoisted_2 = { class: "astryx-lightbox__media" };
101
+ const _hoisted_2 = {
102
+ ref: "mediaBox",
103
+ class: "astryx-lightbox__media"
104
+ };
71
105
  const _hoisted_3 = [
72
106
  "data-zoomable",
73
107
  "data-zoomed",
@@ -91,6 +125,12 @@ const _hoisted_6 = {
91
125
  key: 2,
92
126
  class: "astryx-lightbox__counter"
93
127
  };
128
+ const _hoisted_7 = {
129
+ ref: "liveRegion",
130
+ class: "astryx-lightbox__announcer astryx-visually-hidden",
131
+ "aria-live": "polite",
132
+ "aria-atomic": "true"
133
+ };
94
134
  const _sfc_main = /*@__PURE__*/ defineComponent({
95
135
  name: "AstryxLightbox",
96
136
  inheritAttrs: false,
@@ -114,10 +154,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
114
154
  const props = __props;
115
155
  const emit = __emit;
116
156
  const messages = useComponentMessages({ lightbox: lightboxMessages });
117
- const announce = useAnnounce();
157
+ const liveRegionRef = useTemplateRef("liveRegion");
158
+ const announce = createModalAnnouncer(() => liveRegionRef.value);
118
159
  resetLayerScopedContext();
119
160
  const dialogRef = useTemplateRef("dialog");
120
161
  const containerRef = ref(null);
162
+ const mediaRef = useTemplateRef("mediaBox");
121
163
  const frameRef = useTemplateRef("frame");
122
164
  const closeRef = useTemplateRef("close");
123
165
  const captionId = `astryx-lightbox-caption-${useId()}`;
@@ -126,12 +168,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
126
168
  const isGallery = computed(() => Array.isArray(props.media) && mediaList.value.length > 1);
127
169
  const internalIndex = ref(props.defaultIndex);
128
170
  const index = computed(() => {
129
- const raw = props.index ?? internalIndex.value;
130
171
  const last = Math.max(0, mediaList.value.length - 1);
131
- return Math.min(Math.max(0, raw), last);
172
+ return Math.min(Math.max(0, toWholeIndex(props.index ?? internalIndex.value)), last);
132
173
  });
133
174
  const current = computed(() => mediaList.value[index.value]);
134
175
  const isVideo = computed(() => current.value?.type === "video");
176
+ const hasCaptionBand = computed(() => isGallery.value || Boolean(current.value?.caption));
135
177
  const canPrev = computed(() => index.value > 0);
136
178
  const canNext = computed(() => index.value < mediaList.value.length - 1);
137
179
  const zoom = ref(1);
@@ -147,7 +189,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
147
189
  panX: 0,
148
190
  panY: 0
149
191
  };
150
- let restoreFocus = null;
192
+ let focusRecord = null;
151
193
  const zoomable = computed(() => props.hasZoom && !isVideo.value);
152
194
  const imageTransform = computed(() => zoom.value === 1 ? void 0 : `scale(${zoom.value}) translate(${pan.value.x / zoom.value}px, ${pan.value.y / zoom.value}px)`);
153
195
  function close() {
@@ -155,7 +197,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
155
197
  }
156
198
  function setIndex(next) {
157
199
  const last = Math.max(0, mediaList.value.length - 1);
158
- const clamped = Math.min(Math.max(0, next), last);
200
+ const clamped = Math.min(Math.max(0, toWholeIndex(next)), last);
159
201
  internalIndex.value = clamped;
160
202
  emit("update:index", clamped);
161
203
  }
@@ -188,7 +230,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
188
230
  didDrag.value = false;
189
231
  return;
190
232
  }
191
- if (event.target === event.currentTarget || event.target === containerRef.value) close();
233
+ const target = event.target;
234
+ if (target === event.currentTarget || target === containerRef.value || target === mediaRef.value) close();
192
235
  }
193
236
  function onKeyDown(event) {
194
237
  if (zoomable.value) {
@@ -202,6 +245,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
202
245
  applyZoom(1);
203
246
  return;
204
247
  }
248
+ if (event.key === "0" && !event.ctrlKey && !event.metaKey && !event.altKey) {
249
+ event.preventDefault();
250
+ applyZoom(1);
251
+ return;
252
+ }
205
253
  const step = 50;
206
254
  const offsets = {
207
255
  ArrowDown: [0, -50],
@@ -219,12 +267,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
219
267
  return;
220
268
  }
221
269
  }
222
- if (event.key === "ArrowLeft" && canPrev.value) {
223
- event.preventDefault();
224
- setIndex(index.value - 1);
225
- } else if (event.key === "ArrowRight" && canNext.value) {
270
+ if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
271
+ const dialog = dialogRef.value;
272
+ const isRtl = dialog != null && getComputedStyle(dialog).direction === "rtl";
273
+ const towardEnd = event.key === "ArrowRight" !== isRtl;
274
+ if (towardEnd && canNext.value) {
226
275
  event.preventDefault();
227
276
  setIndex(index.value + 1);
277
+ } else if (!towardEnd && canPrev.value) {
278
+ event.preventDefault();
279
+ setIndex(index.value - 1);
228
280
  }
229
281
  }
230
282
  function onImageKeyDown(event) {
@@ -253,18 +305,36 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
253
305
  function onPointerUp() {
254
306
  dragging.value = false;
255
307
  }
256
- watch(() => props.isOpen, (open) => {
308
+ useFocusTrap({
309
+ container: dialogRef,
310
+ isEnabled: () => props.isOpen && current.value != null
311
+ });
312
+ function pauseVideos() {
313
+ for (const video of dialogRef.value?.querySelectorAll("video") ?? []) if (!video.paused) video.pause();
314
+ }
315
+ watch([() => props.isOpen, () => current.value != null], ([open]) => {
257
316
  const dialog = dialogRef.value;
258
317
  if (dialog == null) return;
259
318
  if (open && !dialog.open) {
260
- const active = document.activeElement;
261
- restoreFocus = active instanceof HTMLElement ? active : null;
319
+ focusRecord?.stop();
320
+ focusRecord = trackLayerFocus({ getLayer: () => dialogRef.value });
262
321
  dialog.showModal();
322
+ const video = dialog.querySelector("video");
323
+ if (props.hasAutoPlay && video != null && video.paused) video.play()?.catch(() => {});
263
324
  } else if (!open && dialog.open) {
325
+ const record = focusRecord;
326
+ focusRecord = null;
327
+ const wasStranded = record != null && isLayerFocusStranded(record, dialog);
328
+ pauseVideos();
264
329
  dialog.close();
265
330
  resetZoom();
266
- restoreFocus?.focus();
267
- restoreFocus = null;
331
+ if (record != null) {
332
+ if (wasStranded) restoreLayerFocus(record, {
333
+ layer: dialog,
334
+ name: "Lightbox"
335
+ });
336
+ record.stop();
337
+ }
268
338
  }
269
339
  }, { flush: "post" });
270
340
  /**
@@ -296,6 +366,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
296
366
  onBeforeUnmount(() => {
297
367
  window.removeEventListener("pointermove", onPointerMove);
298
368
  window.removeEventListener("pointerup", onPointerUp);
369
+ const record = focusRecord;
370
+ focusRecord = null;
371
+ if (record == null) return;
372
+ const wasStranded = dialogRef.value?.open === true && isLayerFocusStranded(record, dialogRef.value);
373
+ queueMicrotask(() => {
374
+ if (wasStranded) restoreLayerFocus(record, {
375
+ layer: null,
376
+ name: "Lightbox"
377
+ });
378
+ record.stop();
379
+ });
299
380
  });
300
381
  watch(dragging, (isDragging, wasDragging) => {
301
382
  if (wasDragging && !isDragging) {
@@ -312,6 +393,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
312
393
  "aria-label": current.value.alt || unref(messages).lightbox.mediaViewer,
313
394
  "aria-describedby": current.value.caption ? captionId : void 0,
314
395
  "data-gallery": isGallery.value || void 0,
396
+ "data-caption-band": hasCaptionBand.value || void 0,
315
397
  "data-component": "lightbox",
316
398
  onCancel,
317
399
  onClick: onBackdropClick,
@@ -371,7 +453,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
371
453
  src: current.value.src,
372
454
  "aria-label": current.value.alt,
373
455
  controls: "",
374
- autoplay: __props.hasAutoPlay
456
+ autoplay: __props.hasAutoPlay && __props.isOpen
375
457
  }, null, 8, _hoisted_4)) : (openBlock(), createElementBlock("img", {
376
458
  key: 1,
377
459
  class: "astryx-lightbox__image",
@@ -381,16 +463,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
381
463
  style: normalizeStyle(imageTransform.value ? { transform: imageTransform.value } : void 0),
382
464
  "data-dragging": dragging.value || void 0
383
465
  }, null, 12, _hoisted_5))], 40, _hoisted_3),
384
- isGallery.value ? (openBlock(), createBlock(_sfc_main$1, {
466
+ hasCaptionBand.value ? (openBlock(), createBlock(_sfc_main$1, {
385
467
  id: captionId,
386
468
  key: index.value,
387
469
  text: current.value.caption
388
- }, null, 8, ["text"])) : current.value.caption ? (openBlock(), createElementBlock("p", {
389
- key: 1,
390
- id: captionId,
391
- class: "astryx-lightbox__caption"
392
- }, toDisplayString(current.value.caption), 1)) : createCommentVNode("v-if", true)
393
- ]),
470
+ }, null, 8, ["text"])) : createCommentVNode("v-if", true)
471
+ ], 512),
394
472
  isGallery.value ? (openBlock(), createBlock(_sfc_main$3, {
395
473
  key: 1,
396
474
  class: "astryx-lightbox__nav astryx-lightbox__nav--next",
@@ -407,7 +485,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
407
485
  _: 1
408
486
  }, 8, ["label", "is-disabled"])) : createCommentVNode("v-if", true),
409
487
  isGallery.value ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(index.value + 1) + " / " + toDisplayString(mediaList.value.length), 1)) : createCommentVNode("v-if", true)
410
- ], 512)], 46, _hoisted_1)) : createCommentVNode("v-if", true)], 2112);
488
+ ], 512), createElementVNode("div", _hoisted_7, null, 512)], 46, _hoisted_1)) : createCommentVNode("v-if", true)], 2112);
411
489
  };
412
490
  }
413
491
  });
@@ -1,3 +1,3 @@
1
1
  import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
2
- import { hi as _default } from "../index-CuNFD1Yq.js";
2
+ import { hi as _default } from "../index-CGDmjlec.js";
3
3
  export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Link-CnlFkwpY.js";
1
+ import { t as _sfc_main } from "../Link-Ddu0KjPZ.js";
2
2
  export { _sfc_main as Link };
@@ -5,7 +5,7 @@ import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
5
5
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
6
6
  import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
7
7
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
8
- import { t as _sfc_main$3 } from "./Tooltip-CGHpFMnc.js";
8
+ import { t as _sfc_main$3 } from "./Tooltip-4APVAlN9.js";
9
9
  import { t as TextClampContext } from "./textClampContext-o3-nLErq.js";
10
10
  import { t as navMessages } from "./nav-DpKQUHqR.js";
11
11
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useAttrs, withCtx } from "vue";
@@ -1,3 +1,3 @@
1
1
  import { _ as ListItemProps, a as ItemLayout, b as ListProps, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListEdgeCompensation, h as ListEdge, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListItemSlots, x as ListSlots, y as ListMarkerStyle } from "../types-Dxs5rf-2.js";
2
- import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-C5bnMSjX.js";
2
+ import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-9tZJgo0R.js";
3
3
  export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
@@ -1,5 +1,5 @@
1
1
  import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
2
- import { C as MarkdownPlugin, D as applyMarkdownPlugins, E as applyInlinePlugins, O as defineMarkdownPlugin, S as MarkdownInlinePlugin, T as MarkdownTransformContext, _ as MarkdownLinkProps, a as _default, b as MarkdownSlots, c as MarkdownCitationStyle, d as MarkdownDensity, f as MarkdownDisplay, g as MarkdownInlineCodeProps, h as MarkdownImageProps, i as parseMarkdown, k as isMarkdownExtensionNode, l as MarkdownCodeProps, m as MarkdownHeadingProps, n as uniqueSlug, o as MarkdownAlign, p as MarkdownHeadingLevel, r as ParseMarkdownOptions, s as MarkdownAutolink, t as slugify, u as MarkdownComponents, v as MarkdownListProps, w as MarkdownPluginRenderContext, x as MarkdownSource, y as MarkdownProps } from "../index-CiVrhGUJ.js";
2
+ import { C as MarkdownPlugin, D as applyMarkdownPlugins, E as applyInlinePlugins, O as defineMarkdownPlugin, S as MarkdownInlinePlugin, T as MarkdownTransformContext, _ as MarkdownLinkProps, a as _default, b as MarkdownSlots, c as MarkdownCitationStyle, d as MarkdownDensity, f as MarkdownDisplay, g as MarkdownInlineCodeProps, h as MarkdownImageProps, i as parseMarkdown, k as isMarkdownExtensionNode, l as MarkdownCodeProps, m as MarkdownHeadingProps, n as uniqueSlug, o as MarkdownAlign, p as MarkdownHeadingLevel, r as ParseMarkdownOptions, s as MarkdownAutolink, t as slugify, u as MarkdownComponents, v as MarkdownListProps, w as MarkdownPluginRenderContext, x as MarkdownSource, y as MarkdownProps } from "../index-C9ZssPUV.js";
3
3
  import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
4
4
  import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
5
5
  export { type BlockNode, type InlineNode, _default as Markdown, type MarkdownAlign, type MarkdownAstPhrasingContent, type MarkdownAstRoot, type MarkdownAutolink, type MarkdownCitationStyle, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownInlinePlugin, type MarkdownLinkProps, type MarkdownListProps, type MarkdownPlugin, type MarkdownPluginRenderContext, type MarkdownProps, type MarkdownSlots, type MarkdownSource, type MarkdownTransformContext, type ParseMarkdownOptions, type ParseOptions, type SourceRange, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
@@ -1,4 +1,4 @@
1
1
  import { a as parseMarkdownAst, c as decodeMarkdownCharacterReferences, d as parseMarkdown, g as isMarkdownExtensionNode, n as parseInline, o as parseMarkdownIncremental, r as parseInlineAst, t as createIncrementalState } from "../publicParser-C8RBKNLA.js";
2
- import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main } from "../Markdown-YVv-0uFI.js";
2
+ import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main } from "../Markdown-D7bQGV9u.js";
3
3
  import { n as uniqueSlug, t as slugify } from "../slug-D6ln5PTq.js";
4
4
  export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
@@ -1,13 +1,13 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
2
2
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
3
- import { t as _sfc_main$2 } from "./Heading-C10qO8wg.js";
3
+ import { t as _sfc_main$2 } from "./Heading-C0axugQa.js";
4
4
  import { t as _sfc_main$3 } from "./Blockquote-DRoKdcxZ.js";
5
5
  import { t as _sfc_main$4 } from "./CheckboxIndicator-fH4d-JE1.js";
6
6
  import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
7
7
  import { t as citationMessages } from "./citation-h6fyz-JH.js";
8
- import { f as _sfc_main$5, s as parseFenceLanguage, t as _sfc_main$6 } from "./CodeBlock-B0LPcu-J.js";
8
+ import { f as _sfc_main$5, s as parseFenceLanguage, t as _sfc_main$6 } from "./CodeBlock-CTPuBH_r.js";
9
9
  import { t as markdownMessages } from "./markdown-JcCeKquw.js";
10
- import { t as _sfc_main$7 } from "./Link-CnlFkwpY.js";
10
+ import { t as _sfc_main$7 } from "./Link-Ddu0KjPZ.js";
11
11
  import { _ as plainText, d as parseMarkdown, f as parseMarkdownIncremental, h as sanitizeMarkdownLinkUrl, l as applyProtocolTransforms, m as sanitizeMarkdownImageUrl, p as linkOpensInNewTab, s as applyMarkdownSyntax, u as createIncrementalMarkdownState } from "./publicParser-C8RBKNLA.js";
12
12
  import { l as isMarkdownPluginEntry, t as collectProtocolRenderers, u as isMarkdownSourceLinesPlugin } from "./protocol-DHxY0NI8.js";
13
13
  import { n as uniqueSlug, t as slugify } from "./slug-D6ln5PTq.js";
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-lgEHlilz.js";
1
+ import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-Dfshmrdy.js";
2
2
  export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
@@ -1,7 +1,8 @@
1
1
  import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
2
- import { i as pushLayer, n as useLayerDepth, r as isTopLayer, t as provideLayerDepth } from "./layerDepth-CNDh-IHb.js";
3
- import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-CEG0n2AK.js";
2
+ import { i as pushLayer, n as useLayerDepth, r as isTopLayer, t as provideLayerDepth } from "./layerDepth-BF74Cctw.js";
3
+ import { t as useFocusTrap } from "./useFocusTrap-FJt5QhEd.js";
4
4
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
5
+ import { t as useRestoreFocus } from "./useRestoreFocus-D2-pGoOk.js";
5
6
  import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
6
7
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
7
8
  import { t as navMessages } from "./nav-DpKQUHqR.js";
@@ -1,2 +1,2 @@
1
- import { ai as MoreMenuIcon, ci as MoreMenuItemVariant, di as MoreMenuProps, fi as MoreMenuResolvedPresentation, ii as MoreMenuEmits, li as MoreMenuOption, mi as MoreMenuSlots, ni as _default, oi as MoreMenuInitialFocus, pi as MoreMenuSection, ri as MoreMenuDivider, si as MoreMenuItem, ui as MoreMenuPresentation } from "../index-CuNFD1Yq.js";
1
+ import { ai as MoreMenuIcon, ci as MoreMenuItemVariant, di as MoreMenuProps, fi as MoreMenuResolvedPresentation, ii as MoreMenuEmits, li as MoreMenuOption, mi as MoreMenuSlots, ni as _default, oi as MoreMenuInitialFocus, pi as MoreMenuSection, ri as MoreMenuDivider, si as MoreMenuItem, ui as MoreMenuPresentation } from "../index-CGDmjlec.js";
2
2
  export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../MoreMenu-DaLb4bgr.js";
1
+ import { t as _sfc_main } from "../MoreMenu-Bie4B7Jr.js";
2
2
  export { _sfc_main as MoreMenu };
@@ -2,13 +2,13 @@ import { t as _sfc_main$5 } from "./Icon-BCHo7W0x.js";
2
2
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
3
3
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
4
4
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
5
- import { n as usePositionedLayer } from "./useDismiss-0-Z-9D0A.js";
6
- import { t as _sfc_main$6 } from "./LayerContentBoundary-CvsKxwwm.js";
5
+ import { n as usePositionedLayer } from "./useDismiss-BWd-sQ18.js";
6
+ import { t as _sfc_main$6 } from "./LayerContentBoundary-DwTkbifx.js";
7
7
  import { n as focusElement, r as getFocusables } from "./focus-l8jVTcqd.js";
8
- import { t as _sfc_main$7 } from "./IconButton-C91rhbvu.js";
8
+ import { t as _sfc_main$7 } from "./IconButton-Bv2eIsJy.js";
9
9
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
11
- import { t as _sfc_main$8 } from "./Heading-C10qO8wg.js";
11
+ import { t as _sfc_main$8 } from "./Heading-C0axugQa.js";
12
12
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
13
13
  import { t as _sfc_main$9 } from "./Divider-mOZ6vIQw.js";
14
14
  import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
@@ -1,2 +1,2 @@
1
- import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-CQwracWX.js";
1
+ import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-_5purQow.js";
2
2
  export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
@@ -1,2 +1,2 @@
1
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-stzuffs3.js";
1
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-BdedjB6u.js";
2
2
  export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
@@ -1,8 +1,8 @@
1
- import { n as _sfc_main$2 } from "./BottomSheet-CgOzQHaA.js";
1
+ import { n as _sfc_main$2 } from "./BottomSheet-B57XUJV3.js";
2
2
  import { t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
3
3
  import { n as useInputGroupContext, r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
4
4
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
5
- import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
5
+ import { a as isImeKeyEvent } from "./layerDepth-BF74Cctw.js";
6
6
  import { n as isKeyboardModality, r as trackInteractionModality } from "./interactionModality-ACpTMhak.js";
7
7
  import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
8
8
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
@@ -17,15 +17,15 @@ import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
17
17
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
18
18
  import { t as _sfc_main$5 } from "./Spinner-DEVPDsD0.js";
19
19
  import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
20
- import { t as _sfc_main$6 } from "./Field-Dc15m78p.js";
20
+ import { t as _sfc_main$6 } from "./Field-CqDOsI3P.js";
21
21
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
22
22
  import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
23
23
  import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
24
24
  import { t as multiSelectorMessages } from "./multi-selector-CpVI6bt5.js";
25
- import { t as _sfc_main$7 } from "./InputClearButton-BiF7qGMR.js";
25
+ import { t as _sfc_main$7 } from "./InputClearButton-CSS2Tjat.js";
26
26
  import { n as _sfc_main$8, t as searchResultMessage } from "./searchResultMessage-BEqDlHdV.js";
27
27
  import { t as _sfc_main$9 } from "./Token-CtG_XE6z.js";
28
- import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-9Gn8asBR.js";
28
+ import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-CuRfVgKl.js";
29
29
  import { n as OptionAction, r as isOptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-CkJcuvaU.js";
30
30
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
31
31
  import "../styles/layer.css";
@@ -1,5 +1,5 @@
1
1
  import { t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
2
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BWd-sQ18.js";
3
3
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, useId, useModel, watch } from "vue";
4
4
  import "../styles/layer.css";
5
5
  import "../styles/nav-menu.css";
@@ -3,7 +3,7 @@ import { n as useLinkComponent } from "./context-C_peZbXf.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
4
  import { t as navMessages } from "./nav-DpKQUHqR.js";
5
5
  import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
6
- import { t as _sfc_main$3 } from "./NavDisclosure-DG4jls5z.js";
6
+ import { t as _sfc_main$3 } from "./NavDisclosure-1otbO71l.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, useSlots, withCtx, withModifiers } from "vue";
8
8
  //#region src/NavMenu/navHeadingMode.ts
9
9
  /** 标题的点击边界:整段链接、整段打开菜单,或链接和箭头各管各的。 */
@@ -1,3 +1,3 @@
1
1
  import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-BG23kC3S.js";
2
- import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-CL8JvxHW.js";
2
+ import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-C1zwvxPH.js";
3
3
  export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main } from "../NavDisclosure-DG4jls5z.js";
2
- import { n as _sfc_main$1, t as _sfc_main$2 } from "../NavMenu-ChlWdHfi.js";
3
- import { n as _sfc_main$3, t as _sfc_main$4 } from "../NavMenuItem-DIMQohIa.js";
1
+ import { t as _sfc_main } from "../NavDisclosure-1otbO71l.js";
2
+ import { n as _sfc_main$1, t as _sfc_main$2 } from "../NavMenu-dyGZS1yM.js";
3
+ import { n as _sfc_main$3, t as _sfc_main$4 } from "../NavMenuItem-CirgE73a.js";
4
4
  export { _sfc_main as NavDisclosure, _sfc_main$1 as NavHeadingMenu, _sfc_main$2 as NavHeadingMenuItem, _sfc_main$3 as NavMenu, _sfc_main$4 as NavMenuItem };
@@ -1,9 +1,9 @@
1
1
  import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
2
2
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
3
3
  import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
4
- import { t as useTypeahead } from "./useTypeahead-DSMObTtg.js";
4
+ import { t as useTypeahead } from "./useTypeahead-BrUwR-kv.js";
5
5
  import { n as isNavigableHref } from "./link-DuuA2eCL.js";
6
- import { i as navMenuKey, n as navMenuCloseKey, r as navMenuFocusKey } from "./NavDisclosure-DG4jls5z.js";
6
+ import { i as navMenuKey, n as navMenuCloseKey, r as navMenuFocusKey } from "./NavDisclosure-1otbO71l.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useAttrs, watch, withCtx } from "vue";
8
8
  import "../styles/nav-menu.css";
9
9
  //#region src/NavMenu/NavHeadingMenu.vue
@@ -3,7 +3,7 @@ import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
3
3
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
4
4
  import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
5
5
  import { n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
6
- import { i as navMenuKey, n as navMenuCloseKey } from "./NavDisclosure-DG4jls5z.js";
6
+ import { i as navMenuKey, n as navMenuCloseKey } from "./NavDisclosure-1otbO71l.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, onMounted, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
8
8
  import "../styles/nav-menu.css";
9
9
  //#region src/NavMenu/NavMenu.vue
@@ -1,2 +1,2 @@
1
- import { $r as NumberInputEmits, Qr as _default, ei as NumberInputProps, ti as NumberInputStatus } from "../index-CuNFD1Yq.js";
1
+ import { $r as NumberInputEmits, Qr as _default, ei as NumberInputProps, ti as NumberInputStatus } from "../index-CGDmjlec.js";
2
2
  export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../NumberInput-DH0Cb7L6.js";
1
+ import { t as _sfc_main } from "../NumberInput-0KbcEF3_.js";
2
2
  export { _sfc_main as NumberInput };
@@ -5,15 +5,15 @@ import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
5
5
  import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
6
6
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
7
7
  import { t as _sfc_main$4 } from "./FieldIcon-DMtfe1Ne.js";
8
- import { t as _sfc_main$5 } from "./FieldInfoTip-BouJddgS.js";
8
+ import { t as _sfc_main$5 } from "./FieldInfoTip-CUh2koNc.js";
9
9
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { n as useNumberField, t as computeSteppedValue } from "./useNumberField-Dk1BE3-K.js";
11
11
  import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
12
12
  import { i as useAriaRequired } from "./context-Cfml4jaK.js";
13
- import { t as _sfc_main$6 } from "./Field-Dc15m78p.js";
13
+ import { t as _sfc_main$6 } from "./Field-CqDOsI3P.js";
14
14
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
15
15
  import { t as numberInputMessages } from "./number-input-DTjrRWmU.js";
16
- import { t as _sfc_main$7 } from "./InputClearButton-BiF7qGMR.js";
16
+ import { t as _sfc_main$7 } from "./InputClearButton-CSS2Tjat.js";
17
17
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useTemplateRef, withCtx, withModifiers } from "vue";
18
18
  import "../styles/number-input.css";
19
19
  //#region src/NumberInput/numberParser.ts
@@ -1,2 +1,2 @@
1
- import { Jr as OverflowListCollapsedItem, Xr as OverflowListItem, Yr as OverflowListEmits, Zr as OverflowListProps, qr as _default } from "../index-CuNFD1Yq.js";
1
+ import { Jr as OverflowListCollapsedItem, Xr as OverflowListItem, Yr as OverflowListEmits, Zr as OverflowListProps, qr as _default } from "../index-CGDmjlec.js";
2
2
  export { _default as OverflowList, type OverflowListCollapsedItem, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../OverflowList-BGzqG78e.js";
1
+ import { t as _sfc_main } from "../OverflowList-BdcaX1bz.js";
2
2
  export { _sfc_main as OverflowList };
@@ -3,8 +3,8 @@ import { o as useComponentMessages } from "./context-B8IEFCDR.js";
3
3
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
4
4
  import { t as navMessages } from "./nav-DpKQUHqR.js";
5
5
  import { r as resolveNavRoot } from "./link-DuuA2eCL.js";
6
- import { t as _sfc_main$2 } from "./NavDisclosure-DG4jls5z.js";
7
- import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-DIMQohIa.js";
6
+ import { t as _sfc_main$2 } from "./NavDisclosure-1otbO71l.js";
7
+ import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-CirgE73a.js";
8
8
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
9
9
  import "../styles/overflow-list.css";
10
10
  //#region src/OverflowList/OverflowMore.vue
@@ -1,2 +1,2 @@
1
- import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-rnFsCdJ7.js";
1
+ import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-Cy1rEWC-.js";
2
2
  export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Pagination-DMG9KvKa.js";
1
+ import { t as _sfc_main } from "../Pagination-uttop2ls.js";
2
2
  export { _sfc_main as Pagination };
@@ -3,7 +3,7 @@ import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
3
3
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
4
4
  import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
5
5
  import { t as paginationMessages } from "./pagination-CxZBYsPu.js";
6
- import { t as _sfc_main$1 } from "./Selector-CyY6vVUg.js";
6
+ import { t as _sfc_main$1 } from "./Selector-OpczmkqS.js";
7
7
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, vShow, watch, withDirectives, withKeys } from "vue";
8
8
  import "../styles/pagination.css";
9
9
  /**
@@ -1,3 +1,3 @@
1
1
  import { a as PopoverRole, i as PopoverProps, n as PopoverPadding, r as PopoverPlacement, t as PopoverAlignment } from "../types-OGMYGejX.js";
2
- import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-DaXzQxos.js";
2
+ import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-lmd9LZKB.js";
3
3
  export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverProps, type PopoverRole, type UsePopoverOptions, type UsePopoverReturn, usePopover };
@@ -1,2 +1,2 @@
1
- import { n as usePopover, t as _sfc_main } from "../Popover-cnfHz2tm.js";
1
+ import { n as usePopover, t as _sfc_main } from "../Popover-BOQo9UPf.js";
2
2
  export { _sfc_main as Popover, usePopover };