@astryx-vue/core 0.12.0 → 0.13.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 (273) 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.js +1 -1
  4. package/dist/{AppShell-kqwLt4ez.js → AppShell-DUHcLJWD.js} +2 -2
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-Bdnu3col.js → Avatar-KmdgVaAb.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js +1 -1
  10. package/dist/{Banner-C-8DEWdJ.js → Banner-Bf_nMW3-.js} +1 -1
  11. package/dist/BottomSheet/index.js +2 -2
  12. package/dist/{BottomSheet-CgOzQHaA.js → BottomSheet-B57XUJV3.js} +3 -2
  13. package/dist/{BottomSheet-BECeWtEy.js → BottomSheet-BMqjymuf.js} +3 -3
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-Dxjz2Dxn.js → Breadcrumbs-aTPAdLdg.js} +1 -1
  16. package/dist/Button/index.js +1 -1
  17. package/dist/{Button-BeNp2zq_.js → Button-sUkQ0Ufo.js} +5 -4
  18. package/dist/ButtonGroup/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.js +1 -1
  20. package/dist/{ButtonGroup-CosYAili.js → ButtonGroup-CWra-KDj.js} +3 -2
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Carousel/index.d.ts +1 -1
  23. package/dist/Carousel/index.js +1 -1
  24. package/dist/{Carousel-BCcyDFRy.js → Carousel-DmXceU9h.js} +1 -1
  25. package/dist/Chat/index.d.ts +1 -1
  26. package/dist/Chat/index.js +1 -1
  27. package/dist/{Chat-D3UDsL7W.js → Chat-CeibAkxn.js} +4 -4
  28. package/dist/CheckboxInput/index.d.ts +1 -1
  29. package/dist/CheckboxInput/index.js +1 -1
  30. package/dist/{CheckboxInput-iCg8FgRv.js → CheckboxInput-PvzPV1N1.js} +1 -1
  31. package/dist/CheckboxList/index.d.ts +1 -1
  32. package/dist/CheckboxList/index.js +1 -1
  33. package/dist/{CheckboxList-Dr40y9ME.js → CheckboxList-DKtNzb0t.js} +3 -3
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/Code/index.js +1 -1
  36. package/dist/{CodeBlock-B0LPcu-J.js → CodeBlock-CTPuBH_r.js} +1 -1
  37. package/dist/CommandPalette/index.js +1 -1
  38. package/dist/{CommandPalette-D_lf06eE.js → CommandPalette-DIoT_vZh.js} +1 -1
  39. package/dist/ComplexSelector/index.d.ts +1 -1
  40. package/dist/ComplexSelector/index.js +1 -1
  41. package/dist/{ComplexSelector-BzGKWYEv.js → ComplexSelector-Dmbep7M7.js} +165 -49
  42. package/dist/ContextMenu/index.d.ts +1 -1
  43. package/dist/ContextMenu/index.js +1 -1
  44. package/dist/{ContextMenu-6AnjpPJg.js → ContextMenu-DYnyk5rs.js} +4 -4
  45. package/dist/DateInput/index.d.ts +1 -1
  46. package/dist/DateInput/index.js +1 -1
  47. package/dist/{DateInput-OkjtSKwt.js → DateInput-DgPIsWPu.js} +4 -4
  48. package/dist/DateRangeInput/index.d.ts +1 -1
  49. package/dist/DateRangeInput/index.js +1 -1
  50. package/dist/{DateRangeInput-B4HT9NfM.js → DateRangeInput-oOfhUt1Q.js} +3 -3
  51. package/dist/DateTimeInput/index.d.ts +1 -1
  52. package/dist/DateTimeInput/index.js +1 -1
  53. package/dist/{DateTimeInput-B_tQlraA.js → DateTimeInput-DZfghF2h.js} +5 -5
  54. package/dist/Dialog/index.d.ts +1 -1
  55. package/dist/Dialog/index.js +3 -3
  56. package/dist/{Dialog-BtPktuiy.js → Dialog-Dkwt3mVt.js} +25 -8
  57. package/dist/{Dialog-3MKo31xn.js → Dialog-qIL4DUot.js} +1 -1
  58. package/dist/{DialogHeader-cr9rFLYM.js → DialogHeader-w4TCzYEj.js} +2 -2
  59. package/dist/Divider/index.d.ts +1 -1
  60. package/dist/Drawer/index.d.ts +1 -1
  61. package/dist/Drawer/index.js +1 -1
  62. package/dist/{Drawer-Ba-yG1rk.js → Drawer-DBHSNUAa.js} +2 -2
  63. package/dist/DropdownMenu/index.js +2 -2
  64. package/dist/{DropdownMenu-DJK_xIUd.js → DropdownMenu-Cncx4FbU.js} +3 -3
  65. package/dist/{DropdownMenu-B9eUWp_X.js → DropdownMenu-DHvAlqSj.js} +5 -5
  66. package/dist/EmptyState/index.js +1 -1
  67. package/dist/{EmptyState-v1cvHKav.js → EmptyState-uWyPaIR1.js} +2 -2
  68. package/dist/Field/index.js +3 -3
  69. package/dist/{Field-Dc15m78p.js → Field-CqDOsI3P.js} +1 -1
  70. package/dist/{FieldInfoTip-BouJddgS.js → FieldInfoTip-CUh2koNc.js} +1 -1
  71. package/dist/{FieldLabel-CfO3zaZ5.js → FieldLabel-BMHNRAG3.js} +1 -1
  72. package/dist/FileInput/index.d.ts +1 -1
  73. package/dist/FileInput/index.js +1 -1
  74. package/dist/{FileInput-hNPjfW1i.js → FileInput-C6dK2pvX.js} +2 -2
  75. package/dist/Heading/index.js +1 -1
  76. package/dist/{Heading-C10qO8wg.js → Heading-C0axugQa.js} +1 -1
  77. package/dist/HoverCard/index.js +1 -1
  78. package/dist/{HoverCard-3S3axq-o.js → HoverCard-C6Gxekg0.js} +3 -3
  79. package/dist/IconButton/index.js +1 -1
  80. package/dist/{IconButton-C91rhbvu.js → IconButton-Bv2eIsJy.js} +1 -1
  81. package/dist/InfoTip/index.d.ts +1 -1
  82. package/dist/InfoTip/index.js +1 -1
  83. package/dist/{InfoTip-iKOp_vUV.js → InfoTip-BKsbmGA6.js} +4 -2
  84. package/dist/{InputClearButton-BiF7qGMR.js → InputClearButton-CSS2Tjat.js} +2 -2
  85. package/dist/InputGroup/index.d.ts +1 -1
  86. package/dist/InputGroup/index.js +1 -1
  87. package/dist/{InputGroup-CIKleAu8.js → InputGroup-DTGh1ylC.js} +1 -1
  88. package/dist/InternationalizationProvider/index.d.ts +1 -1
  89. package/dist/InternationalizationProvider/index.js +1 -1
  90. package/dist/{InternationalizationProvider-CyDjQn5Z.js → InternationalizationProvider-BYU2MRtX.js} +1 -1
  91. package/dist/{LayerContentBoundary-CvsKxwwm.js → LayerContentBoundary-DwTkbifx.js} +1 -1
  92. package/dist/Layout/index.js +2 -2
  93. package/dist/{Layout-OHKb6r7D.js → Layout-BeYYiLFm.js} +1 -1
  94. package/dist/{LayoutPanel-D-rpTtC-.js → LayoutPanel-DDLcJgzG.js} +3 -0
  95. package/dist/Lightbox/index.d.ts +1 -1
  96. package/dist/Lightbox/index.js +1 -1
  97. package/dist/{Lightbox-DZrWvhCQ.js → Lightbox-BZ-zBvly.js} +106 -28
  98. package/dist/Link/index.d.ts +1 -1
  99. package/dist/Link/index.js +1 -1
  100. package/dist/{Link-CnlFkwpY.js → Link-Ddu0KjPZ.js} +1 -1
  101. package/dist/List/index.d.ts +1 -1
  102. package/dist/Markdown/index.d.ts +1 -1
  103. package/dist/Markdown/index.js +1 -1
  104. package/dist/{Markdown-YVv-0uFI.js → Markdown-D7bQGV9u.js} +3 -3
  105. package/dist/MetadataList/index.d.ts +1 -1
  106. package/dist/MobileNav/index.js +1 -1
  107. package/dist/{MobileNavToggle-lgEHlilz.js → MobileNavToggle-Dfshmrdy.js} +3 -2
  108. package/dist/MoreMenu/index.d.ts +1 -1
  109. package/dist/MoreMenu/index.js +1 -1
  110. package/dist/{MoreMenu-DaLb4bgr.js → MoreMenu-Bie4B7Jr.js} +4 -4
  111. package/dist/MultiSelector/index.d.ts +1 -1
  112. package/dist/MultiSelector/index.js +1 -1
  113. package/dist/{MultiSelector-stzuffs3.js → MultiSelector-BXIpOmSU.js} +108 -53
  114. package/dist/{NavDisclosure-DG4jls5z.js → NavDisclosure-1otbO71l.js} +1 -1
  115. package/dist/{NavHeadingSurface-9JQsxTxs.js → NavHeadingSurface-BkMR3V5m.js} +1 -1
  116. package/dist/NavItem/index.d.ts +1 -1
  117. package/dist/NavMenu/index.js +3 -3
  118. package/dist/{NavMenu-ChlWdHfi.js → NavMenu-dyGZS1yM.js} +2 -2
  119. package/dist/{NavMenuItem-DIMQohIa.js → NavMenuItem-CirgE73a.js} +1 -1
  120. package/dist/NumberInput/index.d.ts +1 -1
  121. package/dist/NumberInput/index.js +1 -1
  122. package/dist/{NumberInput-DH0Cb7L6.js → NumberInput-0KbcEF3_.js} +3 -3
  123. package/dist/OverflowList/index.d.ts +1 -1
  124. package/dist/OverflowList/index.js +1 -1
  125. package/dist/{OverflowList-BGzqG78e.js → OverflowList-BdcaX1bz.js} +2 -2
  126. package/dist/Overlay/index.d.ts +1 -1
  127. package/dist/Pagination/index.d.ts +1 -1
  128. package/dist/Pagination/index.js +1 -1
  129. package/dist/{Pagination-DMG9KvKa.js → Pagination-eeM9SNsG.js} +1 -1
  130. package/dist/Popover/index.d.ts +1 -1
  131. package/dist/Popover/index.js +1 -1
  132. package/dist/{Popover-cnfHz2tm.js → Popover-BOQo9UPf.js} +78 -26
  133. package/dist/PowerSearch/index.d.ts +1 -1
  134. package/dist/PowerSearch/index.js +1 -1
  135. package/dist/{PowerSearch-GD52glLU.js → PowerSearch-CaqFxaFb.js} +17 -17
  136. package/dist/ProgressBar/index.js +1 -1
  137. package/dist/{ProgressBar-gsm2A_cR.js → ProgressBar-BS3VSoE9.js} +1 -1
  138. package/dist/Radio/index.d.ts +1 -1
  139. package/dist/Radio/index.js +1 -1
  140. package/dist/{RadioGroup-D3TXgdwV.js → RadioGroup-DKaSstyl.js} +2 -2
  141. package/dist/RadioList/index.d.ts +1 -1
  142. package/dist/RadioList/index.js +1 -1
  143. package/dist/{RadioList-Boj8QfPe.js → RadioList-DtKm9spP.js} +1 -1
  144. package/dist/ScrollableArea/index.d.ts +1 -1
  145. package/dist/SelectableCard/index.d.ts +1 -1
  146. package/dist/Selector/index.d.ts +1 -1
  147. package/dist/Selector/index.js +1 -1
  148. package/dist/{Selector-CyY6vVUg.js → Selector-DP012yul.js} +12 -47
  149. package/dist/SideNav/index.d.ts +1 -1
  150. package/dist/SideNav/index.js +1 -1
  151. package/dist/{SideNav-s9yTmKX3.js → SideNav-L6CWk5fV.js} +5 -5
  152. package/dist/Slider/index.js +1 -1
  153. package/dist/{Slider-BQ4Dhxdx.js → Slider-DZS8mGZA.js} +1 -1
  154. package/dist/StatusDot/index.js +1 -1
  155. package/dist/{StatusDot-DF5wK42f.js → StatusDot-DaQGq8YN.js} +1 -1
  156. package/dist/Stepper/index.d.ts +1 -1
  157. package/dist/Switch/index.d.ts +1 -1
  158. package/dist/Switch/index.js +1 -1
  159. package/dist/{Switch-B0E8cZy7.js → Switch-BN_NnBuc.js} +1 -1
  160. package/dist/TabList/index.js +1 -1
  161. package/dist/{TabList-DBSXa5QT.js → TabList-Bmj4tGT-.js} +1 -1
  162. package/dist/Table/index.d.ts +1 -1
  163. package/dist/Table/index.js +1 -1
  164. package/dist/{Table-BxXYAtBy.js → Table-YDS_Hj1L.js} +12 -12
  165. package/dist/Text/index.js +1 -1
  166. package/dist/{Text-WB-fpFne.js → Text-IijvZmW-.js} +1 -1
  167. package/dist/TextArea/index.d.ts +1 -1
  168. package/dist/TextArea/index.js +1 -1
  169. package/dist/{TextArea-CSoebCLx.js → TextArea-BDR179q1.js} +4 -4
  170. package/dist/TextInput/index.d.ts +1 -1
  171. package/dist/TextInput/index.js +1 -1
  172. package/dist/{TextInput-B3qNW95s.js → TextInput-kUzxl99M.js} +4 -4
  173. package/dist/Thumbnail/index.js +1 -1
  174. package/dist/{Thumbnail-CTkLFo-A.js → Thumbnail-Disi5yDb.js} +2 -2
  175. package/dist/{TimeField-CMZxZ6gI.js → TimeField-C0la1AtP.js} +4 -4
  176. package/dist/TimeInput/index.d.ts +1 -1
  177. package/dist/TimeInput/index.js +1 -1
  178. package/dist/{TimeInput-BFWgRaV-.js → TimeInput-C_jTijHh.js} +2 -2
  179. package/dist/Timer/index.js +1 -1
  180. package/dist/{Timer-BD2gSoQ3.js → Timer-DifGERP8.js} +1 -1
  181. package/dist/Timestamp/index.d.ts +1 -1
  182. package/dist/Timestamp/index.js +1 -1
  183. package/dist/{Timestamp-DWnbOvnI.js → Timestamp-BjXZGAvO.js} +3 -3
  184. package/dist/Toast/index.js +1 -1
  185. package/dist/{Toast-aI9QMW-L.js → Toast-DBo0WRAd.js} +1 -1
  186. package/dist/ToggleButton/index.d.ts +1 -1
  187. package/dist/ToggleButton/index.js +1 -1
  188. package/dist/{ToggleButton-DI9I-LBH.js → ToggleButton-B5HNykOh.js} +4 -3
  189. package/dist/Token/index.d.ts +1 -1
  190. package/dist/Tokenizer/index.d.ts +1 -1
  191. package/dist/Tokenizer/index.js +1 -1
  192. package/dist/{Tokenizer-Caqr8y0B.js → Tokenizer-CY0ymjYr.js} +109 -50
  193. package/dist/Toolbar/index.d.ts +1 -1
  194. package/dist/Tooltip/index.d.ts +1 -1
  195. package/dist/Tooltip/index.js +2 -2
  196. package/dist/{Tooltip-CGHpFMnc.js → Tooltip-4APVAlN9.js} +1 -1
  197. package/dist/TopNav/index.d.ts +1 -1
  198. package/dist/TopNav/index.js +1 -1
  199. package/dist/{TopNav-Cm_Hn6Ub.js → TopNav-XSZWAR-7.js} +4 -4
  200. package/dist/TreeList/index.d.ts +1 -1
  201. package/dist/Typeahead/index.d.ts +1 -1
  202. package/dist/Typeahead/index.js +2 -2
  203. package/dist/{Typeahead-tz2lm5qb.js → Typeahead-ByeXwX8E.js} +48 -13
  204. package/dist/composables/index.d.ts +2 -1
  205. package/dist/composables/index.js +8 -7
  206. package/dist/context-Cgkyk-b7.js +10 -0
  207. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  208. package/dist/{index-BSlzqFzV.d.ts → index-BcJzA5j_.d.ts} +3 -3
  209. package/dist/{index-Bmqz1lVz.d.ts → index-BpprL2SN.d.ts} +1 -1
  210. package/dist/{index-CuNFD1Yq.d.ts → index-Buxb8Onp.d.ts} +44 -44
  211. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  212. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  213. package/dist/{index-1AZ4KZhg.d.ts → index-CCpcerMA.d.ts} +2 -2
  214. package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
  215. package/dist/{index-CQwracWX.d.ts → index-CfHBwR3F.d.ts} +7 -5
  216. package/dist/{index-DyALKpjX.d.ts → index-D1J81rYJ.d.ts} +19 -4
  217. package/dist/{index-B0XIZGY0.d.ts → index-D1RIIzDd.d.ts} +7 -7
  218. package/dist/{index-DydQ5Ngj.d.ts → index-D7YRtteD.d.ts} +1 -1
  219. package/dist/{index-FeZXsFO-.d.ts → index-DDrL_-hJ.d.ts} +1 -1
  220. package/dist/{index-WA7z12bQ.d.ts → index-DE1genab.d.ts} +12 -0
  221. package/dist/{index-D-YoRrfP.d.ts → index-DKuoSloc.d.ts} +2 -44
  222. package/dist/{index-rnFsCdJ7.d.ts → index-DMcf0QeR.d.ts} +1 -1
  223. package/dist/{index-B-Jla56c.d.ts → index-DPH5yoAr.d.ts} +1 -1
  224. package/dist/{index-CO9GW-ik.d.ts → index-DPklTi3o.d.ts} +1 -1
  225. package/dist/{index-BzZC2Y7c.d.ts → index-DYabo8TI.d.ts} +6 -5
  226. package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
  227. package/dist/{index-CL8JvxHW.d.ts → index-KcCNhdAw.d.ts} +1 -1
  228. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  229. package/dist/{index-DaXzQxos.d.ts → index-PffxihMx.d.ts} +8 -5
  230. package/dist/{index-3t5RAfNP.d.ts → index-YfMHAQ_D.d.ts} +9 -2
  231. package/dist/{index-C5bnMSjX.d.ts → index-x0rjeitC.d.ts} +4 -4
  232. package/dist/index.d.ts +28 -27
  233. package/dist/index.js +90 -89
  234. package/dist/{layerDepth-CNDh-IHb.js → layerDepth-BF74Cctw.js} +38 -14
  235. package/dist/layerFocusReturn-DMJaFgcY.js +121 -0
  236. package/dist/{loadCatalog-XbgoqaRp.js → loadCatalog-BtQRPyzj.js} +6 -2
  237. package/dist/{loadCatalog-CQEYXGuI.d.ts → loadCatalog-Kp7aQZpL.d.ts} +3 -0
  238. package/dist/locale/index.d.ts +2 -2
  239. package/dist/locale/index.js +4 -4
  240. package/dist/{locale-BwnZeppK.js → locale-DET_YkFW.js} +1 -1
  241. package/dist/selectorEscape-BppRdqpc.js +52 -0
  242. package/dist/{useAnchoredListbox-9Gn8asBR.js → stillPointerGate-Bh02Mfnw.js} +20 -2
  243. package/dist/{tokenizer-DSka5PJD.js → tokenizer-ChiAuPN-.js} +5 -1
  244. package/dist/{tooltipTriggerRules-Bg4tG8w2.js → tooltipTriggerRules-BY3LAtUl.js} +1 -1
  245. package/dist/{searchResultMessage-BEqDlHdV.js → triggerVariant-BDVvyLtv.js} +18 -18
  246. package/dist/{useActionGroupTracking-B4niQ_tR.js → useActionGroupTracking-BJMRaXil.js} +1 -1
  247. package/dist/{useCombobox-CTo5C-gc.js → useCombobox-D374_pT8.js} +32 -8
  248. package/dist/{useDismiss-0-Z-9D0A.js → useDismiss-BWd-sQ18.js} +26 -5
  249. package/dist/{useRestoreFocus-CEG0n2AK.js → useFocusTrap-FJt5QhEd.js} +2 -36
  250. package/dist/{useHoverLayerDismiss-kYJ_NqL4.js → useHoverLayerDismiss-uhfzmZyf.js} +1 -1
  251. package/dist/useInputStatusIcon-B6m_t8cK.d.ts +45 -0
  252. package/dist/{useInputStatusIcon-Da2FiXwF.js → useInputStatusIcon-C3Q-q_wI.js} +1 -1
  253. package/dist/{useLayer-CED-g4Q2.js → useLayer-BGv_wRSG.js} +1 -1
  254. package/dist/{useOptionActionGrid-CkJcuvaU.js → useOptionActionGrid-C7ibYM_A.js} +15 -1
  255. package/dist/{useResizable-I3BCiLSL.js → useResizable-DTDhsLip.js} +1 -1
  256. package/dist/useRestoreFocus-D2-pGoOk.js +38 -0
  257. package/dist/{useTooltip-D8Tq7-yd.js → useTooltip-md1tr6ef.js} +61 -29
  258. package/dist/{context-BJ9RkXYX.js → useTouchHitArea-1WtV3u6F.js} +1 -10
  259. package/dist/{useTruncationTooltip-BNk2xslw.js → useTruncationTooltip-BGsFITq5.js} +3 -3
  260. package/dist/{useTypeahead-DSMObTtg.js → useTypeahead-BrUwR-kv.js} +1 -1
  261. package/dist/{TypeaheadMenu-BOzaCvSb.js → useTypeaheadAnnouncement-MbuZumTd.js} +75 -33
  262. package/package.json +1 -1
  263. package/styles/complex-selector.css +24 -1
  264. package/styles/dialog.css +0 -1
  265. package/styles/info-tip.css +0 -9
  266. package/styles/lightbox.css +7 -2
  267. package/styles/multi-selector.css +10 -0
  268. package/styles/popover.css +2 -0
  269. package/styles/selector.css +10 -0
  270. package/styles/tokenizer.css +64 -0
  271. package/styles/typeahead.css +28 -0
  272. package/dist/triggerVariant-BsL8jMHs.js +0 -16
  273. package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
@@ -1,15 +1,19 @@
1
1
  import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
2
+ import { i as useLayerGutter } from "./context-M-er0-Rk.js";
3
+ import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
4
+ import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
2
5
  import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
3
6
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
7
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
5
- import { t as _sfc_main$2 } from "./Spinner-DEVPDsD0.js";
6
- import { t as _sfc_main$3 } from "./Field-Dc15m78p.js";
8
+ import { t as _sfc_main$3 } from "./Spinner-DEVPDsD0.js";
9
+ import { t as _sfc_main$4 } from "./Field-CqDOsI3P.js";
7
10
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
8
11
  import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
9
- import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
12
+ import { n as fieldStatusPlacement, r as _sfc_main$5, t as normalizeTriggerVariant } from "./triggerVariant-BDVvyLtv.js";
10
13
  import { t as selectorMessages } from "./selector-BmGLjm94.js";
11
- import { t as _sfc_main$4 } from "./Popover-cnfHz2tm.js";
12
- import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
14
+ import { t as _sfc_main$6 } from "./Popover-BOQo9UPf.js";
15
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
16
+ import "../styles/visually-hidden-utility.css";
13
17
  import "../styles/complex-selector.css";
14
18
  //#region src/ComplexSelector/ComplexSelector.vue
15
19
  const _hoisted_1 = [
@@ -21,6 +25,9 @@ const _hoisted_1 = [
21
25
  "aria-expanded",
22
26
  "aria-invalid",
23
27
  "aria-disabled",
28
+ "aria-label",
29
+ "aria-labelledby",
30
+ "aria-describedby",
24
31
  "aria-required"
25
32
  ];
26
33
  const _hoisted_2 = { class: "astryx-complex-selector-value" };
@@ -50,6 +57,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
50
57
  type: Boolean,
51
58
  default: false
52
59
  },
60
+ disabledMessage: {},
53
61
  isLoading: {
54
62
  type: Boolean,
55
63
  default: false
@@ -136,6 +144,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
136
144
  "role",
137
145
  "aria-label",
138
146
  "aria-labelledby",
147
+ "aria-describedby",
139
148
  "aria-expanded",
140
149
  "aria-controls",
141
150
  "aria-haspopup",
@@ -157,6 +166,49 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
157
166
  const triggerId = `astryx-complex-selector-${useId()}`;
158
167
  const labelId = `${triggerId}-label`;
159
168
  const contentId = `${triggerId}-content`;
169
+ const disabledId = `${triggerId}-disabled`;
170
+ const disabledTooltipId = `${triggerId}-disabled-tooltip`;
171
+ const triggerEl = useTemplateRef("triggerEl");
172
+ /** 自制触发器的元素:它第一次收到聚焦或指针事件时记下来,禁用说明的提示挂在它上面。 */
173
+ const customAnchor = shallowRef(null);
174
+ const tooltipAnchor = computed(() => customAnchor.value ?? triggerEl.value);
175
+ /** 有禁用原因时,悬停、键盘聚焦和点按都能读到它。 */
176
+ const resolvedDisabledMessage = computed(() => props.disabledMessage?.trim() || void 0);
177
+ const showsDisabledMessage = computed(() => props.isDisabled && resolvedDisabledMessage.value != null);
178
+ const disabledTooltip = useButtonTooltip(showsDisabledMessage);
179
+ /**
180
+ * 内置触发器的状态图标:attached 是普通图标,tooltip 是能聚焦的提示按钮,都顶替箭头的位置;
181
+ * detached 不画,箭头照旧。
182
+ */
183
+ const statusGlyph = computed(() => {
184
+ const type = props.status?.type;
185
+ if (type == null || effectiveStatusVariant.value === "detached") return void 0;
186
+ return type;
187
+ });
188
+ const isTooltipStatus = computed(() => statusGlyph.value != null && effectiveStatusVariant.value === "tooltip");
189
+ /**
190
+ * 内置触发器默认由字段标签命名;调用方给了 aria-label 或 aria-labelledby 就用调用方的。
191
+ */
192
+ const builtinLabelledBy = computed(() => {
193
+ const external = attrs["aria-labelledby"];
194
+ if (typeof external === "string" && external !== "") return external;
195
+ return typeof attrs["aria-label"] === "string" && attrs["aria-label"] !== "" ? void 0 : labelId;
196
+ });
197
+ const builtinLabel = computed(() => typeof attrs["aria-label"] === "string" && attrs["aria-label"] !== "" ? attrs["aria-label"] : void 0);
198
+ const describedBy = computed(() => {
199
+ return [
200
+ typeof attrs["aria-describedby"] === "string" ? attrs["aria-describedby"] : void 0,
201
+ props.description ? `${triggerId}-description` : void 0,
202
+ props.status?.message ? `${triggerId}-status` : void 0,
203
+ showsDisabledMessage.value ? disabledId : void 0
204
+ ].filter(Boolean).join(" ") || void 0;
205
+ });
206
+ /**
207
+ * 内容自己的高度上限:480px 和视口扣掉上下空隙之后的高度取小。LayerProvider 的 `inset`
208
+ * 给应用底栏留的空隙也在里面,最后几行不会滚到底栏下面。
209
+ */
210
+ const layerGutter = useLayerGutter();
211
+ const contentStyles = computed(() => [{ "--_complex-selector-max-block": `min(480px, calc(100dvh - ${layerGutter.value.blockStart + layerGutter.value.blockEnd}px))` }, props.contentStyle]);
160
212
  const placeholder = computed(() => props.placeholder ?? messages.value.selector.placeholder);
161
213
  const isBusy = computed(() => props.isLoading || isPending.value);
162
214
  const displayValue = computed(() => isPending.value && optimistic.value !== void 0 ? optimistic.value : model.value);
@@ -172,6 +224,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
172
224
  isOpen.value = next;
173
225
  }
174
226
  async function commit(next) {
227
+ if (props.isDisabled) return;
175
228
  model.value = next;
176
229
  emit("change", next);
177
230
  if (props.changeAction == null) return;
@@ -209,6 +262,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
209
262
  return consumeWhileDisabled(event, props.isDisabled);
210
263
  }
211
264
  function onBuiltinClick(event) {
265
+ if (showsDisabledMessage.value) disabledTooltip.onTooltipPointerEnter();
212
266
  if (blockedWhileDisabled(event)) return;
213
267
  emit("click", event);
214
268
  if (event.defaultPrevented) event.stopImmediatePropagation();
@@ -232,12 +286,27 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
232
286
  if (!event.defaultPrevented) emit("keydown", event);
233
287
  }
234
288
  const hasCustomTrigger = computed(() => props.renderTrigger != null || slots.trigger != null);
289
+ useDevWarning("ComplexSelector", "needs a default slot that renders the picker, for example `<template #default=\"{ value, commit }\"><MyPicker :value=\"value\" @change=\"commit\" /></template>`.", () => slots.default == null);
235
290
  useDevWarning("ComplexSelector", "`containerClass`/`containerStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.containerClass != null || props.containerStyle != null));
236
291
  useDevWarning("ComplexSelector", "`controlClass`/`controlStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.controlClass != null || props.controlStyle != null));
292
+ function rememberCustomTrigger(event) {
293
+ if (event.currentTarget instanceof HTMLElement) customAnchor.value = event.currentTarget;
294
+ }
237
295
  const triggerProps = computed(() => ({
238
296
  "id": triggerId,
239
297
  "onClick": onCustomClick,
240
298
  "onKeydown": onCustomKeyDown,
299
+ "onFocus": (event) => {
300
+ rememberCustomTrigger(event);
301
+ disabledTooltip.onFocus(event);
302
+ },
303
+ "onBlur": disabledTooltip.onBlur,
304
+ "onPointerenter": (event) => {
305
+ rememberCustomTrigger(event);
306
+ disabledTooltip.onPointerEnter();
307
+ },
308
+ "onPointerleave": disabledTooltip.onPointerLeave,
309
+ "aria-describedby": showsDisabledMessage.value ? disabledId : void 0,
241
310
  "role": "combobox",
242
311
  "aria-disabled": props.isDisabled ? "true" : void 0,
243
312
  "aria-haspopup": "dialog",
@@ -278,7 +347,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
278
347
  onBeforeUnmount(() => publishHandle(null));
279
348
  __expose(handle);
280
349
  return (_ctx, _cache) => {
281
- return hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$4, mergeProps({ key: 0 }, unref(parts).forwardedAttrs(), {
350
+ return openBlock(), createElementBlock(Fragment, null, [hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$6, mergeProps({ key: 0 }, unref(parts).forwardedAttrs(), {
282
351
  class: unref(attrs).class,
283
352
  style: unref(attrs).style,
284
353
  alignment: __props.alignment,
@@ -298,14 +367,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
298
367
  ref_key: "contentEl",
299
368
  ref: contentEl,
300
369
  class: normalizeClass(["astryx-complex-selector-content", __props.contentClass]),
301
- style: normalizeStyle(__props.contentStyle)
370
+ style: normalizeStyle(contentStyles.value)
302
371
  }, [renderSlot(_ctx.$slots, "default", {
303
372
  close,
304
373
  commit,
305
374
  state: state.value,
306
375
  value: displayValue.value
307
376
  })], 6)]),
308
- default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))])]),
377
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))]), showsDisabledMessage.value ? (openBlock(), createElementBlock("span", {
378
+ key: 0,
379
+ id: disabledId,
380
+ class: "astryx-visually-hidden"
381
+ }, toDisplayString(resolvedDisabledMessage.value), 1)) : createCommentVNode("v-if", true)]),
309
382
  _: 3
310
383
  }, 16, [
311
384
  "class",
@@ -316,7 +389,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
316
389
  "label",
317
390
  "placement",
318
391
  "width"
319
- ])) : (openBlock(), createBlock(_sfc_main$3, {
392
+ ])) : (openBlock(), createBlock(_sfc_main$4, {
320
393
  key: 1,
321
394
  class: normalizeClass(["astryx-complex-selector-field", [unref(attrs).class, unref(parts).containerClass.value]]),
322
395
  style: normalizeStyle([unref(attrs).style, unref(parts).containerStyle.value]),
@@ -334,7 +407,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
334
407
  "status-variant": effectiveStatusVariant.value,
335
408
  width: __props.width
336
409
  }, {
337
- default: withCtx(() => [createVNode(_sfc_main$4, {
410
+ default: withCtx(() => [createVNode(_sfc_main$6, {
338
411
  alignment: __props.alignment,
339
412
  "has-auto-focus": true,
340
413
  "has-close-button": false,
@@ -352,52 +425,81 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
352
425
  ref_key: "contentEl",
353
426
  ref: contentEl,
354
427
  class: normalizeClass(["astryx-complex-selector-content", __props.contentClass]),
355
- style: normalizeStyle(__props.contentStyle)
428
+ style: normalizeStyle(contentStyles.value)
356
429
  }, [renderSlot(_ctx.$slots, "default", {
357
430
  close,
358
431
  commit,
359
432
  state: state.value,
360
433
  value: displayValue.value
361
434
  })], 6)]),
362
- default: withCtx(() => [createElementVNode("button", mergeProps(unref(parts).forwardedAttrs(), {
363
- id: triggerId,
364
- class: ["astryx-complex-selector", __props.controlClass],
365
- style: __props.controlStyle,
366
- "data-placeholder": hasTriggerLabel.value ? void 0 : "",
367
- "data-size": __props.size,
368
- "data-status": triggerVariant.value === "input" ? __props.status?.type : void 0,
369
- "data-variant": triggerVariant.value,
370
- "aria-busy": isBusy.value || void 0,
371
- "aria-expanded": isOpen.value,
372
- "aria-invalid": __props.status?.type === "error" || void 0,
373
- "aria-disabled": __props.isDisabled || void 0,
374
- "aria-labelledby": labelId,
375
- "aria-required": __props.isRequired || void 0,
376
- role: "combobox",
377
- type: "button",
378
- onClick: onBuiltinClick,
379
- onKeydown: onBuiltinKeyDown
380
- }), [
381
- __props.startIcon ? (openBlock(), createBlock(_sfc_main$1, {
435
+ default: withCtx(() => [
436
+ createElementVNode("button", mergeProps(unref(parts).forwardedAttrs(), {
437
+ id: triggerId,
438
+ ref_key: "triggerEl",
439
+ ref: triggerEl,
440
+ class: ["astryx-complex-selector", __props.controlClass],
441
+ style: __props.controlStyle,
442
+ "data-placeholder": hasTriggerLabel.value ? void 0 : "",
443
+ "data-size": __props.size,
444
+ "data-status": triggerVariant.value === "input" ? __props.status?.type : void 0,
445
+ "data-variant": triggerVariant.value,
446
+ "aria-busy": isBusy.value || void 0,
447
+ "aria-expanded": isOpen.value,
448
+ "aria-invalid": __props.status?.type === "error" || void 0,
449
+ "aria-disabled": __props.isDisabled || void 0,
450
+ "aria-label": builtinLabel.value,
451
+ "aria-labelledby": builtinLabelledBy.value,
452
+ "aria-describedby": describedBy.value,
453
+ "aria-required": __props.isRequired || void 0,
454
+ role: "combobox",
455
+ type: "button",
456
+ onClick: onBuiltinClick,
457
+ onKeydown: onBuiltinKeyDown,
458
+ onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
459
+ onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
460
+ onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
461
+ onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
462
+ }), [
463
+ __props.startIcon ? (openBlock(), createBlock(_sfc_main$1, {
464
+ key: 0,
465
+ class: "astryx-complex-selector-start",
466
+ color: "secondary",
467
+ icon: __props.startIcon,
468
+ size: "sm"
469
+ }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
470
+ createElementVNode("span", _hoisted_2, toDisplayString(hasTriggerLabel.value ? __props.triggerLabel : placeholder.value), 1),
471
+ isBusy.value ? (openBlock(), createBlock(_sfc_main$3, {
472
+ key: 1,
473
+ size: "sm"
474
+ })) : createCommentVNode("v-if", true),
475
+ statusGlyph.value && !isTooltipStatus.value ? (openBlock(), createBlock(_sfc_main$5, {
476
+ key: 2,
477
+ type: statusGlyph.value
478
+ }, null, 8, ["type"])) : isTooltipStatus.value ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createCommentVNode(" 提示按钮不能套在按钮里,它浮在这块空位上。 "), _cache[4] || (_cache[4] = createElementVNode("span", {
479
+ class: "astryx-complex-selector-status-slot",
480
+ "aria-hidden": "true"
481
+ }, null, -1))], 2112)) : (openBlock(), createBlock(_sfc_main$1, {
482
+ key: 4,
483
+ class: "astryx-complex-selector-chevron",
484
+ "data-state": isOpen.value ? "expanded" : "collapsed",
485
+ color: "secondary",
486
+ icon: "chevronDown",
487
+ size: "sm"
488
+ }, null, 8, ["data-state"]))
489
+ ], 16, _hoisted_1),
490
+ isTooltipStatus.value && statusGlyph.value ? (openBlock(), createBlock(_sfc_main$5, {
382
491
  key: 0,
383
- class: "astryx-complex-selector-start",
384
- color: "secondary",
385
- icon: __props.startIcon,
386
- size: "sm"
387
- }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
388
- createElementVNode("span", _hoisted_2, toDisplayString(hasTriggerLabel.value ? __props.triggerLabel : placeholder.value), 1),
389
- isBusy.value ? (openBlock(), createBlock(_sfc_main$2, {
492
+ class: "astryx-complex-selector-status-tip",
493
+ type: statusGlyph.value,
494
+ message: __props.status?.message,
495
+ tooltip: ""
496
+ }, null, 8, ["type", "message"])) : createCommentVNode("v-if", true),
497
+ showsDisabledMessage.value ? (openBlock(), createElementBlock("span", {
390
498
  key: 1,
391
- size: "sm"
392
- })) : createCommentVNode("v-if", true),
393
- createVNode(_sfc_main$1, {
394
- class: "astryx-complex-selector-chevron",
395
- "data-state": isOpen.value ? "expanded" : "collapsed",
396
- color: "secondary",
397
- icon: "chevronDown",
398
- size: "sm"
399
- }, null, 8, ["data-state"])
400
- ], 16, _hoisted_1)]),
499
+ id: disabledId,
500
+ class: "astryx-visually-hidden"
501
+ }, toDisplayString(resolvedDisabledMessage.value), 1)) : createCommentVNode("v-if", true)
502
+ ]),
401
503
  _: 3
402
504
  }, 8, [
403
505
  "alignment",
@@ -422,7 +524,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
422
524
  "status",
423
525
  "status-variant",
424
526
  "width"
425
- ]));
527
+ ])), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
528
+ key: 2,
529
+ id: disabledTooltipId,
530
+ anchor: tooltipAnchor.value,
531
+ open: unref(disabledTooltip).isOpen.value,
532
+ text: resolvedDisabledMessage.value ?? "",
533
+ onPointerEnter: unref(disabledTooltip).onTooltipPointerEnter,
534
+ onPointerLeave: unref(disabledTooltip).onTooltipPointerLeave
535
+ }, null, 8, [
536
+ "anchor",
537
+ "open",
538
+ "text",
539
+ "onPointerEnter",
540
+ "onPointerLeave"
541
+ ])) : createCommentVNode("v-if", true)], 64);
426
542
  };
427
543
  }
428
544
  });
@@ -1,3 +1,3 @@
1
- import { Aa as ContextMenuSubMenuSlots, Ca as ContextMenuRadioData, Da as ContextMenuSlots, Ea as ContextMenuSize, Ma as ContextMenuVariant, Na as ContextMenuWidth, Oa as ContextMenuSubMenuEmits, Sa as ContextMenuProps, Ta as ContextMenuSection, _a as ContextMenuItemProps, aa as useContextMenu, ba as ContextMenuOption, ca as ContextMenuDividerData, da as ContextMenuEntry, ea as _default$7, fa as ContextMenuGroupProps, ga as ContextMenuItemIcon, ha as ContextMenuItemEmits, ia as _default, ja as ContextMenuTriggerElement, ka as ContextMenuSubMenuProps, la as ContextMenuDividerProps, ma as ContextMenuItemData, na as _default$3, oa as useContextMenuSize, pa as ContextMenuGroupSlots, ra as _default$2, sa as ContextMenuCheckboxData, ta as _default$4, ua as ContextMenuEmits, va as ContextMenuItemSlots, wa as ContextMenuRadioOptionData, xa as ContextMenuPresentation, ya as ContextMenuItemTarget } from "../index-CuNFD1Yq.js";
1
+ import { Aa as ContextMenuSubMenuSlots, Ca as ContextMenuRadioData, Da as ContextMenuSlots, Ea as ContextMenuSize, Ma as ContextMenuVariant, Na as ContextMenuWidth, Oa as ContextMenuSubMenuEmits, Sa as ContextMenuProps, Ta as ContextMenuSection, _a as ContextMenuItemProps, aa as useContextMenu, ba as ContextMenuOption, ca as ContextMenuDividerData, da as ContextMenuEntry, ea as _default$7, fa as ContextMenuGroupProps, ga as ContextMenuItemIcon, ha as ContextMenuItemEmits, ia as _default, ja as ContextMenuTriggerElement, ka as ContextMenuSubMenuProps, la as ContextMenuDividerProps, ma as ContextMenuItemData, na as _default$3, oa as useContextMenuSize, pa as ContextMenuGroupSlots, ra as _default$2, sa as ContextMenuCheckboxData, ta as _default$4, ua as ContextMenuEmits, va as ContextMenuItemSlots, wa as ContextMenuRadioOptionData, xa as ContextMenuPresentation, ya as ContextMenuItemTarget } from "../index-Buxb8Onp.js";
2
2
  import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
3
3
  export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$1, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$5, r as _sfc_main$6 } from "../useMenuDrillIn-uQtOSny6.js";
2
- import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-6AnjpPJg.js";
2
+ import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-DYnyk5rs.js";
3
3
  export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
@@ -1,10 +1,10 @@
1
- import { n as _sfc_main$6 } from "./BottomSheet-CgOzQHaA.js";
1
+ import { n as _sfc_main$6 } from "./BottomSheet-B57XUJV3.js";
2
2
  import { r as resetMenuPress } from "./strayClick-CY-_ImKv.js";
3
3
  import { t as _sfc_main$7 } from "./Icon-BCHo7W0x.js";
4
4
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
5
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
6
- import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
7
- import { t as _sfc_main$8 } from "./LayerContentBoundary-CvsKxwwm.js";
5
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BWd-sQ18.js";
6
+ import { a as isImeKeyEvent } from "./layerDepth-BF74Cctw.js";
7
+ import { t as _sfc_main$8 } from "./LayerContentBoundary-DwTkbifx.js";
8
8
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
9
9
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { a as useLongPress, t as useMenuPress } from "./useMenuPress-BLPwY_m1.js";
@@ -1,2 +1,2 @@
1
- import { $i as DateInputStatusType, Gi as DateInputEmits, Ji as DateInputNativePicker, Ki as DateInputFormat, Qi as DateInputStatus, Wi as _default, Xi as DateInputProps, Yi as DateInputPresentation, Zi as DateInputSlots, qi as DateInputFormatName } from "../index-CuNFD1Yq.js";
1
+ import { $i as DateInputStatusType, Gi as DateInputEmits, Ji as DateInputNativePicker, Ki as DateInputFormat, Qi as DateInputStatus, Wi as _default, Xi as DateInputProps, Yi as DateInputPresentation, Zi as DateInputSlots, qi as DateInputFormatName } from "../index-Buxb8Onp.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-OkjtSKwt.js";
1
+ import { t as _sfc_main } from "../DateInput-DgPIsWPu.js";
2
2
  export { _sfc_main as DateInput };
@@ -1,8 +1,8 @@
1
- import { n as _sfc_main$4 } from "./BottomSheet-CgOzQHaA.js";
1
+ import { n as _sfc_main$4 } from "./BottomSheet-B57XUJV3.js";
2
2
  import { t as _sfc_main$5 } from "./Icon-BCHo7W0x.js";
3
3
  import { 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 { t as _sfc_main$6 } from "./VisuallyHidden-cpmsV-0M.js";
7
7
  import { t as _sfc_main$7 } from "./ButtonTooltip-CNKOQHYR.js";
8
8
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
@@ -17,9 +17,9 @@ import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
17
17
  import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-DwFAzDky.js";
18
18
  import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
19
19
  import { i as useAriaRequired } from "./context-Cfml4jaK.js";
20
- import { t as _sfc_main$11 } from "./Field-Dc15m78p.js";
20
+ import { t as _sfc_main$11 } from "./Field-CqDOsI3P.js";
21
21
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
22
- import { t as _sfc_main$12 } from "./Popover-cnfHz2tm.js";
22
+ import { t as _sfc_main$12 } from "./Popover-BOQo9UPf.js";
23
23
  import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
24
24
  import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
25
25
  import { t as _sfc_main$13 } from "./PickerWheel-CSwUYfes.js";
@@ -1,2 +1,2 @@
1
- import { Bi as DateRange, Hi as DateRangeInputProps, Ui as DateRangePreset, Vi as DateRangeInputEmits, zi as _default } from "../index-CuNFD1Yq.js";
1
+ import { Bi as DateRange, Hi as DateRangeInputProps, Ui as DateRangePreset, Vi as DateRangeInputEmits, zi as _default } from "../index-Buxb8Onp.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-B4HT9NfM.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-oOfhUt1Q.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -5,7 +5,7 @@ import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
5
5
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
6
6
  import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-CIXoE_8k.js";
7
7
  import { t as _sfc_main$5 } from "./FieldIcon-DMtfe1Ne.js";
8
- import { t as _sfc_main$6 } from "./IconButton-C91rhbvu.js";
8
+ import { t as _sfc_main$6 } from "./IconButton-Bv2eIsJy.js";
9
9
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { a as todayISODate, n as buildMonthGrid, t as addMonths } from "./useMonthGrid-fGHSSrFc.js";
11
11
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
@@ -15,9 +15,9 @@ import { n as standaloneShortWeekdayNames, r as weekdayNames, t as formatCalenda
15
15
  import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
16
16
  import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
17
17
  import { i as useAriaRequired } from "./context-Cfml4jaK.js";
18
- import { t as _sfc_main$8 } from "./Field-Dc15m78p.js";
18
+ import { t as _sfc_main$8 } from "./Field-CqDOsI3P.js";
19
19
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
20
- import { t as _sfc_main$9 } from "./Popover-cnfHz2tm.js";
20
+ import { t as _sfc_main$9 } from "./Popover-BOQo9UPf.js";
21
21
  import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
22
22
  import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
23
23
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
@@ -1,2 +1,2 @@
1
- import { Fi as _default, Ii as DateTimeInputEmits, Li as DateTimeInputProps, Ri as DateTimeInputSize } from "../index-CuNFD1Yq.js";
1
+ import { Fi as _default, Ii as DateTimeInputEmits, Li as DateTimeInputProps, Ri as DateTimeInputSize } from "../index-Buxb8Onp.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-B_tQlraA.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-DZfghF2h.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -1,21 +1,21 @@
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 { i as useSize } from "./SizeContext-BbaF-SEx.js";
4
4
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
5
5
  import { t as _sfc_main$4 } from "./FieldIcon-DMtfe1Ne.js";
6
- import { t as _sfc_main$5 } from "./IconButton-C91rhbvu.js";
6
+ import { t as _sfc_main$5 } from "./IconButton-Bv2eIsJy.js";
7
7
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
8
8
  import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
9
9
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
10
10
  import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
11
11
  import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
12
- import { t as _sfc_main$7 } from "./Field-Dc15m78p.js";
12
+ import { t as _sfc_main$7 } from "./Field-CqDOsI3P.js";
13
13
  import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
14
14
  import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
15
15
  import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
16
- import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-OkjtSKwt.js";
16
+ import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-DgPIsWPu.js";
17
17
  import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
18
- import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-CMZxZ6gI.js";
18
+ import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-C0la1AtP.js";
19
19
  import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
20
20
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
21
21
  import "../styles/date-time-input.css";
@@ -1,2 +1,2 @@
1
- import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-FeZXsFO-.js";
1
+ import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-DDrL_-hJ.js";
2
2
  export { _default as Dialog, type DialogBlockPosition, type DialogContext, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useDialogContext, useImperativeDialog };
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main } from "../Dialog-BtPktuiy.js";
2
- import { t as _sfc_main$1 } from "../DialogHeader-cr9rFLYM.js";
3
- import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-3MKo31xn.js";
1
+ import { t as _sfc_main } from "../Dialog-Dkwt3mVt.js";
2
+ import { t as _sfc_main$1 } from "../DialogHeader-w4TCzYEj.js";
3
+ import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-qIL4DUot.js";
4
4
  export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useDialogContext, useImperativeDialog };
@@ -1,7 +1,8 @@
1
1
  import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
2
2
  import { i as provideLayerMountTarget } from "./useLayerMountTarget-BmZyeKWE.js";
3
- import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-CEG0n2AK.js";
3
+ import { t as useFocusTrap } from "./useFocusTrap-FJt5QhEd.js";
4
4
  import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
5
+ import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-DMJaFgcY.js";
5
6
  import { n as removeModalOutlet, t as addModalOutlet } from "./modalOutlet-CUOcrhIu.js";
6
7
  import { i as provideLayoutContainer } from "./context-CjX2RSDn.js";
7
8
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, useAttrs, useId, useTemplateRef, watch } from "vue";
@@ -147,7 +148,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
147
148
  if (props.isInline) return false;
148
149
  return dialogRef.value?.open ?? false;
149
150
  });
150
- const shouldRestoreFocus = computed(() => isDialogOpen.value);
151
151
  let modalOutlet = null;
152
152
  function attachModalOutlet(dialog) {
153
153
  if (modalOutlet === dialog) return;
@@ -172,16 +172,24 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
172
172
  isEnabled: isDialogOpen,
173
173
  initialFocus: initialFocusTarget
174
174
  });
175
- const { save: saveFocus, restore: restoreFocus } = useRestoreFocus({
176
- isEnabled: ref(true),
177
- shouldRestore: shouldRestoreFocus
178
- });
175
+ let focusRecord = null;
176
+ function returnFocus(record, dialog, wasStranded) {
177
+ if (wasStranded) restoreLayerFocus(record, {
178
+ layer: dialog,
179
+ name: "Dialog"
180
+ });
181
+ record.stop();
182
+ }
179
183
  function openDialog() {
180
184
  if (props.isInline) return;
181
185
  const dialog = dialogRef.value;
182
186
  if (!dialog || dialog.open) return;
183
187
  triggerElement = document.activeElement;
184
- saveFocus();
188
+ focusRecord?.stop();
189
+ focusRecord = trackLayerFocus({
190
+ getLayer: () => dialogRef.value,
191
+ opener: triggerElement instanceof HTMLElement ? triggerElement : null
192
+ });
185
193
  applyEntryDirection(dialog);
186
194
  dialog.showModal();
187
195
  initialFocusTarget()?.focus({ preventScroll: true });
@@ -191,8 +199,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
191
199
  function closeDialog() {
192
200
  if (props.isInline) return;
193
201
  const dialog = dialogRef.value;
202
+ const record = focusRecord;
203
+ focusRecord = null;
204
+ const wasStranded = record != null && isLayerFocusStranded(record, dialog);
194
205
  if (dialog?.open) dialog.close();
195
- restoreFocus();
206
+ if (record != null) returnFocus(record, dialog, wasStranded);
196
207
  detachModalOutlet();
197
208
  unlockScroll();
198
209
  }
@@ -214,6 +225,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
214
225
  onBeforeUnmount(() => {
215
226
  detachModalOutlet();
216
227
  unlockScroll();
228
+ const record = focusRecord;
229
+ focusRecord = null;
230
+ if (record == null) return;
231
+ const dialog = dialogRef.value;
232
+ const wasStranded = isLayerFocusStranded(record, dialog);
233
+ queueMicrotask(() => returnFocus(record, null, wasStranded));
217
234
  });
218
235
  return (_ctx, _cache) => {
219
236
  return __props.isInline ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.isOpen ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, rootAttrs(), {
@@ -1,4 +1,4 @@
1
- import { n as DIALOG_CONTEXT_KEY, t as _sfc_main } from "./Dialog-BtPktuiy.js";
1
+ import { n as DIALOG_CONTEXT_KEY, t as _sfc_main } from "./Dialog-Dkwt3mVt.js";
2
2
  import { defineComponent, h, inject, readonly, ref, shallowRef } from "vue";
3
3
  //#region src/Dialog/useDialogContext.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
- import { t as _sfc_main$1 } from "./IconButton-C91rhbvu.js";
1
+ import { t as _sfc_main$1 } from "./IconButton-Bv2eIsJy.js";
2
2
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
3
3
  import { a as useLayoutArea } from "./context-CjX2RSDn.js";
4
- import { n as DIALOG_CONTEXT_KEY } from "./Dialog-BtPktuiy.js";
4
+ import { n as DIALOG_CONTEXT_KEY } from "./Dialog-Dkwt3mVt.js";
5
5
  import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
6
6
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
7
7
  import "../styles/dialog-header.css";
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-D05JGsT3.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-C8wfe0Mr.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,2 @@
1
- import { Ai as DrawerHeaderProps, Di as _default, Ei as _default$1, Mi as DrawerPlacement, Ni as DrawerProps, Oi as DrawerEmits, Pi as DrawerSlots, ji as DrawerHeaderSlots, ki as DrawerHeaderEmits } from "../index-CuNFD1Yq.js";
1
+ import { Ai as DrawerHeaderProps, Di as _default, Ei as _default$1, Mi as DrawerPlacement, Ni as DrawerProps, Oi as DrawerEmits, Pi as DrawerSlots, ji as DrawerHeaderSlots, ki as DrawerHeaderEmits } from "../index-Buxb8Onp.js";
2
2
  export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-Ba-yG1rk.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-DBHSNUAa.js";
2
2
  export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };
@@ -1,5 +1,5 @@
1
- import { t as _sfc_main$2 } from "./Dialog-BtPktuiy.js";
2
- import { t as _sfc_main$3 } from "./DialogHeader-cr9rFLYM.js";
1
+ import { t as _sfc_main$2 } from "./Dialog-Dkwt3mVt.js";
2
+ import { t as _sfc_main$3 } from "./DialogHeader-w4TCzYEj.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, withCtx } from "vue";
4
4
  import "../styles/drawer.css";
5
5
  //#region src/Drawer/Drawer.vue
@@ -1,4 +1,4 @@
1
1
  import { a as _sfc_main$1, c as useDropdownMenuRadioGroup, i as _sfc_main$5, r as _sfc_main$6, s as useDropdownMenuContext } from "../useMenuDrillIn-uQtOSny6.js";
2
- import { a as _sfc_main$4, o as _sfc_main$3, s as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-B9eUWp_X.js";
3
- import { t as _sfc_main$7 } from "../DropdownMenu-DJK_xIUd.js";
2
+ import { a as _sfc_main$4, o as _sfc_main$3, s as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-DHvAlqSj.js";
3
+ import { t as _sfc_main$7 } from "../DropdownMenu-Cncx4FbU.js";
4
4
  export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuCheckboxItem, _sfc_main$2 as DropdownMenuDivider, _sfc_main$3 as DropdownMenuGroup, _sfc_main$4 as DropdownMenuItem, _sfc_main$5 as DropdownMenuRadioGroup, _sfc_main$6 as DropdownMenuRadioItem, _sfc_main$7 as DropdownMenuSubMenu, useDropdownMenuContext, useDropdownMenuRadioGroup };