@astryx-vue/core 0.2.6 → 0.4.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 (524) hide show
  1. package/THIRD_PARTY_NOTICES.md +9 -0
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-C2inDZWG.js} +13 -7
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-mrflO0Uy.js → AppShell-CumzH-8z.js} +3 -3
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/AvatarGroup/index.js +1 -1
  12. package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
  16. package/dist/Blockquote/index.js +1 -1
  17. package/dist/Blockquote-DRoKdcxZ.js +27 -0
  18. package/dist/BottomSheet/index.d.ts +1 -1
  19. package/dist/BottomSheet/index.js +2 -2
  20. package/dist/{BottomSheet-eJ3FzTBD.js → BottomSheet-B4sc3F1S.js} +288 -140
  21. package/dist/{BottomSheet-DIVwbGr3.js → BottomSheet-m54uCMJN.js} +20 -4
  22. package/dist/Breadcrumbs/index.d.ts +2 -2
  23. package/dist/Breadcrumbs/index.js +2 -2
  24. package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
  25. package/dist/Button/index.d.ts +1 -1
  26. package/dist/Button/index.js +1 -1
  27. package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
  28. package/dist/ButtonGroup/index.d.ts +1 -1
  29. package/dist/ButtonGroup/index.js +1 -1
  30. package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
  31. package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
  32. package/dist/Calendar/index.d.ts +1 -1
  33. package/dist/Calendar/index.js +1 -1
  34. package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
  35. package/dist/Card/index.d.ts +2 -2
  36. package/dist/Card/index.js +1 -1
  37. package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
  38. package/dist/Carousel/index.js +1 -1
  39. package/dist/{Carousel-DAkOa7KK.js → Carousel-DXC22UWq.js} +50 -33
  40. package/dist/Chat/index.d.ts +1 -1
  41. package/dist/Chat/index.js +1 -1
  42. package/dist/{Chat-DVoI6UOA.js → Chat-BdJW6IX5.js} +152 -83
  43. package/dist/CheckboxIndicator/index.js +1 -1
  44. package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
  45. package/dist/CheckboxInput/index.d.ts +1 -1
  46. package/dist/CheckboxInput/index.js +1 -1
  47. package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
  48. package/dist/CheckboxList/index.d.ts +1 -1
  49. package/dist/CheckboxList/index.js +1 -1
  50. package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
  51. package/dist/Citation/index.js +1 -1
  52. package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
  53. package/dist/ClickableCard/index.d.ts +1 -1
  54. package/dist/ClickableCard/index.js +1 -1
  55. package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-ChAfiw9T.js} +10 -7
  56. package/dist/Code/index.d.ts +1 -1
  57. package/dist/Code/index.js +3 -3
  58. package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
  59. package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-Caaflp7C.js} +7 -3
  60. package/dist/Collapsible/index.d.ts +1 -1
  61. package/dist/Collapsible/index.js +1 -1
  62. package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
  63. package/dist/CommandPalette/index.d.ts +1 -1
  64. package/dist/CommandPalette/index.js +1 -1
  65. package/dist/{CommandPalette-D6wYS30d.js → CommandPalette-C_MClfAg.js} +146 -62
  66. package/dist/ComplexSelector/index.d.ts +1 -1
  67. package/dist/ComplexSelector/index.js +1 -1
  68. package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-BeVQaqRf.js} +94 -22
  69. package/dist/ContextMenu/index.d.ts +2 -2
  70. package/dist/ContextMenu/index.js +2 -2
  71. package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-C6hPYvYz.js} +299 -179
  72. package/dist/DateInput/index.d.ts +1 -1
  73. package/dist/DateInput/index.js +1 -1
  74. package/dist/{DateInput-u2XKccpK.js → DateInput-BjLdmYor.js} +567 -76
  75. package/dist/DateRangeInput/index.d.ts +1 -1
  76. package/dist/DateRangeInput/index.js +1 -1
  77. package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Br3wVEfD.js} +99 -28
  78. package/dist/DateTimeInput/index.d.ts +1 -1
  79. package/dist/DateTimeInput/index.js +1 -1
  80. package/dist/DateTimeInput-CAZBwoRe.js +562 -0
  81. package/dist/Dialog/index.d.ts +1 -1
  82. package/dist/Dialog/index.js +2 -2
  83. package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
  84. package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
  85. package/dist/Divider/index.d.ts +1 -1
  86. package/dist/Divider/index.js +1 -1
  87. package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
  88. package/dist/DropdownMenu/index.d.ts +2 -2
  89. package/dist/DropdownMenu/index.js +3 -3
  90. package/dist/{DropdownMenu-SM_BEOgM.js → DropdownMenu-BdGmQVb1.js} +85 -57
  91. package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-BzQrNV9C.js} +481 -264
  92. package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
  93. package/dist/EmptyState/index.js +1 -1
  94. package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
  95. package/dist/Field/index.d.ts +4 -3
  96. package/dist/Field/index.js +4 -3
  97. package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
  98. package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
  99. package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
  100. package/dist/FieldStatus/index.d.ts +1 -1
  101. package/dist/FileInput/index.d.ts +1 -1
  102. package/dist/FileInput/index.js +1 -1
  103. package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
  104. package/dist/FormLayout/index.d.ts +1 -1
  105. package/dist/FormLayout/index.js +1 -1
  106. package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
  107. package/dist/Heading/index.d.ts +1 -1
  108. package/dist/Heading/index.js +1 -1
  109. package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
  110. package/dist/HoverCard/index.js +1 -1
  111. package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
  112. package/dist/Icon/index.d.ts +4 -4
  113. package/dist/Icon/index.js +1 -1
  114. package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
  115. package/dist/IconButton/index.js +1 -1
  116. package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
  117. package/dist/Indicator/index.d.ts +2 -2
  118. package/dist/Indicator/index.js +2 -1
  119. package/dist/InputClearButton-CwXPan8c.js +40 -0
  120. package/dist/InputGroup/index.d.ts +1 -1
  121. package/dist/InputGroup/index.js +2 -2
  122. package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
  123. package/dist/InternationalizationProvider/index.d.ts +1 -1
  124. package/dist/InternationalizationProvider/index.js +1 -1
  125. package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
  126. package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
  127. package/dist/Kbd/index.js +1 -1
  128. package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
  129. package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
  130. package/dist/LayerProvider/index.js +1 -1
  131. package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
  132. package/dist/Layout/index.d.ts +1 -1
  133. package/dist/Layout/index.js +2 -2
  134. package/dist/{Layout-9X6eCUoY.js → Layout-JJRCG7Mf.js} +1 -1
  135. package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-zM5vjrKS.js} +15 -8
  136. package/dist/Lightbox/index.js +1 -1
  137. package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
  138. package/dist/Link/index.d.ts +2 -2
  139. package/dist/Link/index.js +1 -1
  140. package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
  141. package/dist/List/index.d.ts +1 -1
  142. package/dist/List/index.js +2 -2
  143. package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
  144. package/dist/Markdown/index.d.ts +5 -2
  145. package/dist/Markdown/index.js +5 -2
  146. package/dist/Markdown/parser/index.d.ts +4 -0
  147. package/dist/Markdown/parser/index.js +3 -0
  148. package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
  149. package/dist/Markdown/plugin-protocol/index.js +107 -0
  150. package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
  151. package/dist/Markdown/plugin-renderer/index.js +42 -0
  152. package/dist/{Markdown-2CVyZDuB.js → Markdown-DhVfOvXk.js} +195 -484
  153. package/dist/MediaTheme-DlLqYhDy.js +433 -0
  154. package/dist/MetadataList/index.js +1 -1
  155. package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
  156. package/dist/MobileNav/index.js +1 -1
  157. package/dist/{MobileNavToggle-C3dkrM98.js → MobileNavToggle-pdoJFZHx.js} +60 -19
  158. package/dist/MoreMenu/index.d.ts +1 -1
  159. package/dist/MoreMenu/index.js +1 -1
  160. package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-CFNqSRev.js} +87 -67
  161. package/dist/MultiSelector/index.d.ts +1 -1
  162. package/dist/MultiSelector/index.js +1 -1
  163. package/dist/MultiSelector-DuVatmq5.js +1456 -0
  164. package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
  165. package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
  166. package/dist/NavItem/index.d.ts +1 -1
  167. package/dist/NavItem/index.js +2 -2
  168. package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
  169. package/dist/NavMenu/index.d.ts +1 -1
  170. package/dist/NavMenu/index.js +3 -3
  171. package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
  172. package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
  173. package/dist/NumberInput/index.d.ts +1 -1
  174. package/dist/NumberInput/index.js +1 -1
  175. package/dist/NumberInput-B0vzOg3N.js +727 -0
  176. package/dist/Outline/index.d.ts +2 -2
  177. package/dist/Outline/index.js +2 -2
  178. package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
  179. package/dist/OverflowList/index.d.ts +2 -2
  180. package/dist/OverflowList/index.js +1 -1
  181. package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
  182. package/dist/Pagination/index.d.ts +1 -1
  183. package/dist/Pagination/index.js +1 -1
  184. package/dist/{Pagination-Cc4BrjQg.js → Pagination-Bfe12018.js} +2 -2
  185. package/dist/PickerWheel-CSwUYfes.js +69 -0
  186. package/dist/Popover/index.d.ts +1 -1
  187. package/dist/Popover/index.js +1 -1
  188. package/dist/{Popover-CtoBfVlD.js → Popover-78dFjTb9.js} +28 -17
  189. package/dist/PowerSearch/index.d.ts +1 -1
  190. package/dist/PowerSearch/index.js +1 -1
  191. package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-BoAMdFaT.js} +776 -586
  192. package/dist/ProgressBar/index.d.ts +1 -1
  193. package/dist/ProgressBar/index.js +1 -1
  194. package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
  195. package/dist/Radio/index.d.ts +1 -1
  196. package/dist/Radio/index.js +1 -1
  197. package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
  198. package/dist/RadioList/index.d.ts +1 -1
  199. package/dist/RadioList/index.js +1 -1
  200. package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
  201. package/dist/Resizable/index.d.ts +1 -1
  202. package/dist/Resizable/index.js +1 -1
  203. package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
  204. package/dist/ScrollableArea/index.d.ts +1 -1
  205. package/dist/ScrollableArea/index.js +1 -1
  206. package/dist/{ScrollableArea-CJiaALHm.js → ScrollableArea-0u6RWtGG.js} +14 -3
  207. package/dist/Scrollbars/index.d.ts +2 -0
  208. package/dist/Scrollbars/index.js +3 -0
  209. package/dist/Scrollbars-D_93hJYK.js +75 -0
  210. package/dist/SegmentedControl/index.js +1 -1
  211. package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
  212. package/dist/SelectableCard/index.d.ts +1 -1
  213. package/dist/SelectableCard/index.js +1 -1
  214. package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-BEqnhPaX.js} +17 -12
  215. package/dist/Selector/index.d.ts +1 -1
  216. package/dist/Selector/index.js +1 -1
  217. package/dist/Selector-CPISLzp7.js +1049 -0
  218. package/dist/SideNav/index.d.ts +1 -1
  219. package/dist/SideNav/index.js +1 -1
  220. package/dist/{SideNav-Dtv8eA2j.js → SideNav-CN2QeAtY.js} +64 -41
  221. package/dist/Slider/index.d.ts +1 -1
  222. package/dist/Slider/index.js +1 -1
  223. package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
  224. package/dist/Spinner/index.js +1 -1
  225. package/dist/Spinner-DdVUadii.js +200 -0
  226. package/dist/Stack/index.d.ts +1 -1
  227. package/dist/Stack/index.js +2 -2
  228. package/dist/{Stack-CjQEavuq.js → Stack-Bb_h60t3.js} +10 -3
  229. package/dist/{Stack-D_Bhs-3r.js → Stack-Bp-XN9J4.js} +20 -9
  230. package/dist/StatusDot/index.d.ts +1 -1
  231. package/dist/StatusDot/index.js +1 -1
  232. package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
  233. package/dist/Stepper/index.d.ts +1 -1
  234. package/dist/Stepper/index.js +1 -1
  235. package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
  236. package/dist/Switch/index.d.ts +1 -1
  237. package/dist/Switch/index.js +1 -1
  238. package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
  239. package/dist/TabList/index.d.ts +2 -2
  240. package/dist/TabList/index.js +1 -1
  241. package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
  242. package/dist/Table/index.d.ts +3 -3
  243. package/dist/Table/index.js +1 -1
  244. package/dist/{Table-hqZMmzfU.js → Table-BcrrylMX.js} +727 -448
  245. package/dist/Text/index.d.ts +2 -2
  246. package/dist/Text/index.js +1 -1
  247. package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
  248. package/dist/TextArea/index.d.ts +1 -1
  249. package/dist/TextArea/index.js +1 -1
  250. package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
  251. package/dist/TextInput/index.d.ts +1 -1
  252. package/dist/TextInput/index.js +1 -1
  253. package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
  254. package/dist/Theme/index.d.ts +3 -3
  255. package/dist/Theme/index.js +3 -2
  256. package/dist/Theme-BbDT8B_C.js +2125 -0
  257. package/dist/Thumbnail/index.js +1 -1
  258. package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
  259. package/dist/{TimeField-ByiJKBRM.js → TimeField-CpAgja9D.js} +299 -40
  260. package/dist/TimeInput/index.d.ts +1 -1
  261. package/dist/TimeInput/index.js +1 -1
  262. package/dist/{TimeInput-S8n946tp.js → TimeInput-Bw_lHS4M.js} +78 -9
  263. package/dist/Timer/index.d.ts +1 -1
  264. package/dist/Timer/index.js +1 -1
  265. package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
  266. package/dist/Timestamp/index.d.ts +1 -1
  267. package/dist/Timestamp/index.js +1 -1
  268. package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
  269. package/dist/Toast/index.d.ts +1 -1
  270. package/dist/Toast/index.js +1 -1
  271. package/dist/Toast-DwnPjx6j.js +685 -0
  272. package/dist/ToggleButton/index.d.ts +1 -1
  273. package/dist/ToggleButton/index.js +1 -1
  274. package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
  275. package/dist/Token/index.d.ts +1 -1
  276. package/dist/Token/index.js +1 -1
  277. package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
  278. package/dist/Tokenizer/index.d.ts +1 -1
  279. package/dist/Tokenizer/index.js +1 -1
  280. package/dist/{Tokenizer-41p035dX.js → Tokenizer-Ci3E5bvP.js} +109 -23
  281. package/dist/Toolbar/index.d.ts +2 -2
  282. package/dist/Toolbar/index.js +1 -1
  283. package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
  284. package/dist/Tooltip/index.d.ts +1 -1
  285. package/dist/Tooltip/index.js +1 -1
  286. package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
  287. package/dist/TopNav/index.d.ts +1 -1
  288. package/dist/TopNav/index.js +1 -1
  289. package/dist/{TopNav-CeSeEMX3.js → TopNav-gW59zp1o.js} +16 -15
  290. package/dist/TreeList/index.d.ts +1 -1
  291. package/dist/TreeList/index.js +1 -1
  292. package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
  293. package/dist/Typeahead/index.d.ts +1 -1
  294. package/dist/Typeahead/index.js +2 -2
  295. package/dist/{Typeahead-k3xhFxkr.js → Typeahead-D4JjvjK4.js} +125 -26
  296. package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
  297. package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
  298. package/dist/characterReferences-BJ-jLhsR.js +65 -0
  299. package/dist/characters-rcDbGt71.d.ts +29 -0
  300. package/dist/characters-wTnzjkkR.js +58 -0
  301. package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
  302. package/dist/composables/index.d.ts +5 -4
  303. package/dist/composables/index.js +23 -18
  304. package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
  305. package/dist/context-B6UElI5X.js +5 -0
  306. package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
  307. package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
  308. package/dist/context-IvbU9c3T.js +8 -0
  309. package/dist/context-pjBxaMSh.js +28 -0
  310. package/dist/fieldParts--SyRZVQG.js +44 -0
  311. package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
  312. package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
  313. package/dist/hoverIntent-DMHGb85c.js +115 -0
  314. package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
  315. package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
  316. package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
  317. package/dist/{index-BJMJ09K-.d.ts → index-BEZ4ezJk.d.ts} +1 -1
  318. package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
  319. package/dist/{index-CQCTKjIO.d.ts → index-BO9TY87G.d.ts} +5 -4
  320. package/dist/{index-BJSxFVXH.d.ts → index-BQEJj72c.d.ts} +21 -8
  321. package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
  322. package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
  323. package/dist/{index-BPYzIIYn.d.ts → index-BZKgbyN9.d.ts} +2 -2
  324. package/dist/index-BkUkm6Al.d.ts +11 -0
  325. package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
  326. package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
  327. package/dist/index-Bo-ofFyg.d.ts +166 -0
  328. package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
  329. package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
  330. package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
  331. package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
  332. package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
  333. package/dist/{index-csA1lH_0.d.ts → index-CJ6ajsUC.d.ts} +2 -2
  334. package/dist/{index-CY-KvZ9B.d.ts → index-CK-Dbh0f.d.ts} +1 -1
  335. package/dist/index-CKUfpmFL.d.ts +375 -0
  336. package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
  337. package/dist/{index-EFqQF2Bx.d.ts → index-CPtDjmcX.d.ts} +4 -4
  338. package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
  339. package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
  340. package/dist/{index-BNy3SW4S.d.ts → index-CTjkJP4x.d.ts} +32 -3
  341. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  342. package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
  343. package/dist/{index-BUEPz7BL.d.ts → index-CikMzeab.d.ts} +3 -3
  344. package/dist/{index-CdtZjkmG.d.ts → index-CpNlPLBF.d.ts} +183 -129
  345. package/dist/{index-N7OVZ38M.d.ts → index-Cs1xsHKi.d.ts} +28 -16
  346. package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
  347. package/dist/{index-HV6W3xCx.d.ts → index-D05JGsT3.d.ts} +5 -2
  348. package/dist/{index-CsTbMVDS.d.ts → index-D0_HsuC3.d.ts} +4 -4
  349. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  350. package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
  351. package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
  352. package/dist/{index-DamRHh1i.d.ts → index-DLAG3m9W.d.ts} +11 -1
  353. package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
  354. package/dist/{index-WnUY4Kxu.d.ts → index-DRJZ-v1E.d.ts} +4 -4
  355. package/dist/{index-DYp2RWkM.d.ts → index-DY8Wph-A.d.ts} +3 -3
  356. package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
  357. package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
  358. package/dist/{index-jW-mP58D.d.ts → index-Dr4b_oji.d.ts} +22 -15
  359. package/dist/{index-uKnRGtzi.d.ts → index-Ds201-d2.d.ts} +18 -4
  360. package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
  361. package/dist/{index-DQmK3Lq_.d.ts → index-IfsSCj8J.d.ts} +19 -6
  362. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  363. package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
  364. package/dist/index-fAZaRruV.d.ts +125 -0
  365. package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
  366. package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
  367. package/dist/{index-DdGck82Y.d.ts → index-pNtfr-RW.d.ts} +2 -2
  368. package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
  369. package/dist/index.d.ts +84 -77
  370. package/dist/index.js +151 -134
  371. package/dist/inlineSize-BNe8wggI.js +66 -0
  372. package/dist/inputPresentation-BOyHkCDr.js +62 -0
  373. package/dist/interactionModality-ACpTMhak.js +44 -0
  374. package/dist/isApplePlatform-B1ju6F5B.js +27 -0
  375. package/dist/isRenderable-BnKHIqfd.js +21 -0
  376. package/dist/layerDepth-CNDh-IHb.js +181 -0
  377. package/dist/link-DuuA2eCL.js +30 -0
  378. package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
  379. package/dist/loadCatalog-eopw74qb.js +424 -0
  380. package/dist/locale/index.d.ts +2 -2
  381. package/dist/locale/index.js +4 -3
  382. package/dist/locale-CabGJlGp.js +343 -0
  383. package/dist/modalOutlet-CUOcrhIu.js +56 -0
  384. package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
  385. package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
  386. package/dist/protocol-DHxY0NI8.js +113 -0
  387. package/dist/protocol-RSeMzAN1.d.ts +238 -0
  388. package/dist/publicParser-B0MRoikr.d.ts +141 -0
  389. package/dist/publicParser-uHC_T0Fo.js +895 -0
  390. package/dist/resizableChannel-3vivrEcT.js +20 -0
  391. package/dist/safeUrl-CsvfcZ9m.js +54 -0
  392. package/dist/scopedProvide-C-Df7c15.js +30 -0
  393. package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
  394. package/dist/scrollLock-C3aT4-0z.js +102 -0
  395. package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
  396. package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
  397. package/dist/slug-C65CUsf9.js +32 -0
  398. package/dist/syntaxContext-DmIfNNtb.js +4 -0
  399. package/dist/triggerVariant-BsL8jMHs.js +16 -0
  400. package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
  401. package/dist/{types-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
  402. package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
  403. package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
  404. package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
  405. package/dist/upstreamMap-xr3gvREu.js +731 -0
  406. package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
  407. package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
  408. package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
  409. package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
  410. package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
  411. package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
  412. package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
  413. package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
  414. package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
  415. package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
  416. package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
  417. package/dist/useMenuHover-Djreu23i.js +170 -0
  418. package/dist/useMenuPress-8foxY8z4.js +764 -0
  419. package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
  420. package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
  421. package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
  422. package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
  423. package/dist/usePressFeedback-BJCpjEpv.js +319 -0
  424. package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
  425. package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
  426. package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
  427. package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
  428. package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
  429. package/dist/useScrollableArea-BE8b3qm7.js +222 -0
  430. package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
  431. package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
  432. package/dist/useTranslator-BmWt2BBt.js +35 -0
  433. package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
  434. package/dist/utils/index.d.ts +3 -0
  435. package/dist/utils/index.js +5 -0
  436. package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
  437. package/dist/utils-z3Q6BGIJ.js +819 -0
  438. package/locales/SOURCE.json +1 -1
  439. package/package.json +24 -3
  440. package/reset.css +364 -1
  441. package/styles/avatar-group.css +9 -1
  442. package/styles/badge.css +8 -5
  443. package/styles/banner.css +124 -26
  444. package/styles/blockquote.css +1 -0
  445. package/styles/bordered-control.css +1 -1
  446. package/styles/bottom-sheet.css +74 -6
  447. package/styles/breadcrumbs.css +16 -2
  448. package/styles/button-group.css +3 -1
  449. package/styles/button.css +53 -11
  450. package/styles/card.css +1 -1
  451. package/styles/chat.css +16 -6
  452. package/styles/checkbox-input.css +10 -0
  453. package/styles/clickable-card.css +10 -3
  454. package/styles/collapsible.css +12 -5
  455. package/styles/command-palette.css +29 -14
  456. package/styles/complex-selector.css +22 -5
  457. package/styles/context-menu.css +3 -3
  458. package/styles/date-input.css +111 -1
  459. package/styles/dialog-header.css +4 -1
  460. package/styles/dialog.css +7 -0
  461. package/styles/dropdown-menu.css +12 -3
  462. package/styles/field.css +5 -0
  463. package/styles/form-layout.css +1 -0
  464. package/styles/heading.css +18 -8
  465. package/styles/icon.css +4 -0
  466. package/styles/kbd.css +1 -1
  467. package/styles/layer.css +72 -0
  468. package/styles/list.css +9 -2
  469. package/styles/metadata-list.css +1 -0
  470. package/styles/mobile-nav.css +4 -1
  471. package/styles/multi-selector.css +48 -1
  472. package/styles/nav-item.css +9 -2
  473. package/styles/nav-menu.css +12 -2
  474. package/styles/number-input.css +9 -1
  475. package/styles/overflow-list.css +1 -1
  476. package/styles/popover.css +2 -1
  477. package/styles/power-search.css +5 -3
  478. package/styles/pressable.css +63 -22
  479. package/styles/progress-bar.css +15 -3
  480. package/styles/radio.css +16 -0
  481. package/styles/resize-handle.css +42 -0
  482. package/styles/scrollbars.css +28 -0
  483. package/styles/segmented-control.css +12 -4
  484. package/styles/selector.css +53 -1
  485. package/styles/side-nav.css +19 -0
  486. package/styles/slider.css +4 -3
  487. package/styles/spinner.css +48 -42
  488. package/styles/stepper.css +58 -4
  489. package/styles/switch.css +26 -0
  490. package/styles/tab-list.css +132 -3
  491. package/styles/table.css +88 -10
  492. package/styles/text-area.css +1 -1
  493. package/styles/text-input.css +1 -1
  494. package/styles/text.css +6 -6
  495. package/styles/thumbnail.css +11 -3
  496. package/styles/time-input.css +8 -0
  497. package/styles/toast.css +37 -3
  498. package/styles/token.css +2 -2
  499. package/styles/tokenizer.css +1 -1
  500. package/styles/toolbar.css +4 -1
  501. package/styles/tree-list.css +1 -1
  502. package/styles/typeahead.css +34 -1
  503. package/styles.css +1 -0
  504. package/dist/Blockquote-DFqBv_oJ.js +0 -18
  505. package/dist/Breadcrumbs-DPVaziH4.js +0 -141
  506. package/dist/ButtonGroup-ySQWanDP.js +0 -125
  507. package/dist/DateTimeInput-DHp683jZ.js +0 -268
  508. package/dist/MultiSelector-BeV98x7X.js +0 -988
  509. package/dist/NumberInput-AZ9x3oja.js +0 -473
  510. package/dist/Selector-DuVozKNq.js +0 -675
  511. package/dist/Spinner-9cYUCnDy.js +0 -84
  512. package/dist/Theme-CtaUWo4g.js +0 -1246
  513. package/dist/Toast-BuqIZV5z.js +0 -322
  514. package/dist/context-4PuqD1Ic.js +0 -4
  515. package/dist/context-D5-MwxnN.js +0 -4
  516. package/dist/index-BH9PzQ1F.d.ts +0 -87
  517. package/dist/link-C4_WogdF.js +0 -18
  518. package/dist/loadCatalog-CXKqEB9s.js +0 -877
  519. package/dist/locale-DgkZEMTn.js +0 -105
  520. package/dist/platform-B_9W_aHW.js +0 -33
  521. package/dist/scrollLock-BzIvIimL.js +0 -42
  522. package/dist/useMenuPress-D-FRNrBW.js +0 -573
  523. package/dist/useScrollableArea-DDk_CluT.js +0 -172
  524. /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
@@ -1,15 +1,19 @@
1
1
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
2
2
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
3
- import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
4
- import { o as useAstryxMessages } from "./context-iABt_ueM.js";
5
- import { a as useLongPress, i as useMenuNav, n as useMenuPress, r as isModifiedClick, t as resetMenuPress } from "./useMenuPress-D-FRNrBW.js";
3
+ import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
4
+ import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-B7cvG-_v.js";
5
+ import { s as useAstryxMessages } from "./context-DWfi56sq.js";
6
+ import { o as resetMenuPress, s as useLongPress, t as useMenuPress } from "./useMenuPress-8foxY8z4.js";
6
7
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
7
- import { t as _sfc_main$6 } from "./BottomSheet-eJ3FzTBD.js";
8
- import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
9
- import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$8, l as submenuAncestorOpenKey, n as _sfc_main$10, r as _sfc_main$9, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-DzKGkTho.js";
10
- import { t as _sfc_main$11 } from "./Divider-BtwnL18I.js";
11
- import { t as _sfc_main$12 } from "./Spinner-9cYUCnDy.js";
8
+ import { t as _sfc_main$6 } from "./LayerContentBoundary-CvsKxwwm.js";
9
+ import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
10
+ import { t as _sfc_main$7 } from "./BottomSheet-B4sc3F1S.js";
11
+ import { t as _sfc_main$8 } from "./Icon-KDnUyY7f.js";
12
+ import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$9, l as submenuAncestorOpenKey, n as _sfc_main$11, r as _sfc_main$10, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-DhUnPvKs.js";
13
+ import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
14
+ import { t as _sfc_main$13 } from "./Spinner-DdVUadii.js";
12
15
  import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
16
+ import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
13
17
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
14
18
  import "../styles/context-menu.css";
15
19
  //#region src/ContextMenu/ContextMenuDivider.vue
@@ -19,7 +23,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
19
23
  props: { variant: { default: "subtle" } },
20
24
  setup(__props) {
21
25
  return (_ctx, _cache) => {
22
- return openBlock(), createBlock(_sfc_main$11, {
26
+ return openBlock(), createBlock(_sfc_main$12, {
23
27
  class: "astryx-context-menu-divider",
24
28
  variant: __props.variant
25
29
  }, null, 8, ["variant"]);
@@ -51,6 +55,222 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
51
55
  }
52
56
  });
53
57
  //#endregion
58
+ //#region src/ContextMenu/menuNav.ts
59
+ /**
60
+ * Roles a menu row can carry. The selectable roles sit alongside the plain
61
+ * one so every row is reachable by arrow keys, typeahead, and Enter/Space.
62
+ */
63
+ const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
64
+ "menuitem",
65
+ "menuitemradio",
66
+ "menuitemcheckbox"
67
+ ]);
68
+ /** Selector for the activatable rows of one menu level. */
69
+ const MENU_ITEM_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]:not([aria-disabled="true"])`).join(",");
70
+ /** Selector for any menu level, used to scope a level's rows and key events. */
71
+ const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
72
+ /**
73
+ * Whether a click carries a modifier or a non-primary button. On a row that is
74
+ * a link the browser gives such a click a meaning of its own, which the row
75
+ * must leave alone.
76
+ */
77
+ function isModifiedClick(event) {
78
+ return event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || (event.button ?? 0) !== 0;
79
+ }
80
+ /**
81
+ * Activate a row from the keyboard: a synthesized click that carries the key's
82
+ * modifiers, so a modified Enter on a link row opens the way a modified click
83
+ * would. `detail` stays 0, the mark of a non-pointer activation.
84
+ */
85
+ function activateMenuItem(row, key) {
86
+ row.dispatchEvent(new MouseEvent("click", {
87
+ altKey: key.altKey,
88
+ bubbles: true,
89
+ cancelable: true,
90
+ composed: true,
91
+ ctrlKey: key.ctrlKey,
92
+ metaKey: key.metaKey,
93
+ shiftKey: key.shiftKey
94
+ }));
95
+ }
96
+ function isDisabledRow(row) {
97
+ return row.getAttribute("aria-disabled") === "true" || row.hasAttribute("disabled");
98
+ }
99
+ function isHiddenWithin(row, container) {
100
+ let current = row;
101
+ while (current != null && current !== container) {
102
+ if (current.hidden || current.getAttribute("aria-hidden") === "true") return true;
103
+ current = current.parentElement;
104
+ }
105
+ return false;
106
+ }
107
+ const TYPEAHEAD_RESET_MS = 750;
108
+ /**
109
+ * Roving focus, typeahead, and activation for one menu level.
110
+ *
111
+ * Both the menu panel and every submenu flyout own one of these, so a nested
112
+ * level keeps its own highlight, its own typeahead buffer, and its own keys
113
+ * without coordinating with its parent.
114
+ */
115
+ function useMenuNav(options) {
116
+ const { menuRef, onClose } = options;
117
+ let typeaheadBuffer = "";
118
+ let typeaheadTimer;
119
+ function resetTypeahead() {
120
+ typeaheadBuffer = "";
121
+ if (typeaheadTimer != null) {
122
+ clearTimeout(typeaheadTimer);
123
+ typeaheadTimer = void 0;
124
+ }
125
+ }
126
+ function getItems() {
127
+ const menu = menuRef.value;
128
+ if (menu == null) return [];
129
+ return Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)).filter((row) => !isHiddenWithin(row, menu)).filter((row) => row.closest(MENU_BOUNDARY_SELECTOR) === menu);
130
+ }
131
+ function ownsEvent(event) {
132
+ const menu = menuRef.value;
133
+ const target = event.target;
134
+ if (menu == null || !(target instanceof Element)) return true;
135
+ return target.closest(MENU_BOUNDARY_SELECTOR) === menu;
136
+ }
137
+ function getCurrentIndex(items) {
138
+ const active = menuRef.value?.ownerDocument.activeElement ?? null;
139
+ return items.findIndex((row) => row === active || row.contains(active));
140
+ }
141
+ function findEnabledIndex(items, start, step, wrap) {
142
+ const count = items.length;
143
+ if (count === 0) return -1;
144
+ let index = start;
145
+ for (let i = 0; i < count; i++) {
146
+ if (index < 0 || index >= count) {
147
+ if (!wrap) return -1;
148
+ index = (index + count) % count;
149
+ }
150
+ const row = items[index];
151
+ if (row != null && !isDisabledRow(row)) return index;
152
+ index += step;
153
+ }
154
+ return -1;
155
+ }
156
+ function focusIndex(items, index) {
157
+ const row = items[index];
158
+ if (row == null) return false;
159
+ row.focus();
160
+ return true;
161
+ }
162
+ function focusFirst() {
163
+ const items = getItems();
164
+ return focusIndex(items, findEnabledIndex(items, 0, 1, false));
165
+ }
166
+ function focusLast() {
167
+ const items = getItems();
168
+ return focusIndex(items, findEnabledIndex(items, items.length - 1, -1, false));
169
+ }
170
+ function moveBy(direction) {
171
+ const items = getItems();
172
+ if (items.length === 0) return false;
173
+ const current = getCurrentIndex(items);
174
+ return focusIndex(items, findEnabledIndex(items, current === -1 ? direction === 1 ? 0 : items.length - 1 : current + direction, direction, true));
175
+ }
176
+ /**
177
+ * PageDown / PageUp move by the rows a viewport shows, never wrapping; in a
178
+ * menu that does not scroll they act as End and Home.
179
+ */
180
+ function focusPage(direction) {
181
+ const menu = menuRef.value;
182
+ const all = getItems();
183
+ const active = all.map((row, index) => isDisabledRow(row) ? -1 : index).filter((index) => index !== -1);
184
+ if (menu == null || active.length === 0) return false;
185
+ if (menu.clientHeight === 0 || menu.scrollHeight <= menu.clientHeight) return direction === 1 ? focusLast() : focusFirst();
186
+ const rowHeight = all[active[0]]?.getBoundingClientRect().height ?? 0;
187
+ const perPage = rowHeight > 0 ? Math.max(1, Math.floor(menu.clientHeight / rowHeight)) : active.length;
188
+ const position = active.indexOf(getCurrentIndex(all));
189
+ const from = position === -1 ? direction === 1 ? -1 : active.length : position;
190
+ return focusIndex(all, active[Math.max(0, Math.min(active.length - 1, from + direction * perPage))]);
191
+ }
192
+ /**
193
+ * Typeahead over the rows' label elements. Repeated presses of the same
194
+ * character cycle through the matches instead of filtering deeper.
195
+ */
196
+ function handleTypeahead(event) {
197
+ const isSpaceMidType = event.key === " " && typeaheadBuffer.length > 0;
198
+ if (!(event.key.length === 1 && !event.ctrlKey && !event.metaKey && event.key !== " ") && !isSpaceMidType) return false;
199
+ const items = getItems();
200
+ const labels = items.map((row) => row.querySelector(`[data-menu-item-label]`)?.textContent ?? row.textContent);
201
+ if (labels.length === 0) return false;
202
+ const char = event.key.toLowerCase();
203
+ const nextBuffer = typeaheadBuffer.length > 0 && [...typeaheadBuffer].every((entry) => entry === char) ? char : typeaheadBuffer + char;
204
+ typeaheadBuffer = nextBuffer;
205
+ if (typeaheadTimer != null) clearTimeout(typeaheadTimer);
206
+ typeaheadTimer = setTimeout(resetTypeahead, TYPEAHEAD_RESET_MS);
207
+ const current = getCurrentIndex(items);
208
+ const hasCurrent = current >= 0;
209
+ const start = hasCurrent ? current : 0;
210
+ const offset = hasCurrent && nextBuffer.length === 1 ? 1 : 0;
211
+ for (let i = 0; i < labels.length; i++) {
212
+ const index = (start + offset + i + labels.length) % labels.length;
213
+ if (isDisabledRow(items[index])) continue;
214
+ const label = labels[index];
215
+ if (label != null && label.trim().toLowerCase().startsWith(nextBuffer)) {
216
+ focusIndex(items, index);
217
+ return true;
218
+ }
219
+ }
220
+ return true;
221
+ }
222
+ function handleKeyDown(event) {
223
+ if (event.defaultPrevented || isImeKeyEvent(event) || event.ctrlKey || event.metaKey || event.altKey) return;
224
+ if (!ownsEvent(event)) return;
225
+ if (event.key === "Enter" || event.key === " ") {
226
+ event.preventDefault();
227
+ if (event.repeat) return;
228
+ const active = menuRef.value?.ownerDocument.activeElement;
229
+ if (active instanceof HTMLElement && MENU_ITEM_ROLES.has(active.getAttribute("role") ?? "")) activateMenuItem(active, event);
230
+ return;
231
+ }
232
+ if (event.key === "Tab") {
233
+ onClose("tab");
234
+ return;
235
+ }
236
+ if (event.key === "Escape") {
237
+ event.preventDefault();
238
+ onClose("escape");
239
+ return;
240
+ }
241
+ if (handleTypeahead(event)) {
242
+ event.preventDefault();
243
+ return;
244
+ }
245
+ if (event.key === "ArrowDown" && moveBy(1)) {
246
+ event.preventDefault();
247
+ return;
248
+ }
249
+ if (event.key === "ArrowUp" && moveBy(-1)) {
250
+ event.preventDefault();
251
+ return;
252
+ }
253
+ if (event.key === "Home" && focusFirst()) {
254
+ event.preventDefault();
255
+ return;
256
+ }
257
+ if (event.key === "End" && focusLast()) {
258
+ event.preventDefault();
259
+ return;
260
+ }
261
+ if (event.key === "PageDown" && focusPage(1)) {
262
+ event.preventDefault();
263
+ return;
264
+ }
265
+ if (event.key === "PageUp" && focusPage(-1)) event.preventDefault();
266
+ }
267
+ return {
268
+ focusFirst,
269
+ handleKeyDown,
270
+ resetTypeahead
271
+ };
272
+ }
273
+ //#endregion
54
274
  //#region src/ContextMenu/ContextMenuItem.vue
55
275
  const _hoisted_1$2 = {
56
276
  key: 0,
@@ -144,7 +364,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
144
364
  onPointermove: handlePointerMove
145
365
  }, {
146
366
  default: withCtx(() => [
147
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
367
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$8, {
148
368
  color: iconColor.value,
149
369
  icon: __props.icon,
150
370
  size: "sm"
@@ -168,93 +388,22 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
168
388
  };
169
389
  }
170
390
  });
171
- function sign(p1, p2, p3) {
172
- return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);
173
- }
174
- function isPointInTriangle(p, a, b, c) {
175
- const d1 = sign(p, a, b);
176
- const d2 = sign(p, b, c);
177
- const d3 = sign(p, c, a);
178
- return !((d1 < 0 || d2 < 0 || d3 < 0) && (d1 > 0 || d2 > 0 || d3 > 0));
179
- }
180
- /**
181
- * Whether `point` lies inside the triangle from `origin` (where the pointer
182
- * left the row) to the flyout's near edge — the edge facing the origin.
183
- */
184
- function isPointInSafeTriangle(point, origin, flyout) {
185
- const pad = 8;
186
- let edgeStart;
187
- let edgeEnd;
188
- if (origin.x <= flyout.left) {
189
- edgeStart = {
190
- x: flyout.left,
191
- y: flyout.top - pad
192
- };
193
- edgeEnd = {
194
- x: flyout.left,
195
- y: flyout.bottom + pad
196
- };
197
- } else if (origin.x >= flyout.right) {
198
- edgeStart = {
199
- x: flyout.right,
200
- y: flyout.top - pad
201
- };
202
- edgeEnd = {
203
- x: flyout.right,
204
- y: flyout.bottom + pad
205
- };
206
- } else if (origin.y <= flyout.top) {
207
- edgeStart = {
208
- x: flyout.left - pad,
209
- y: flyout.top
210
- };
211
- edgeEnd = {
212
- x: flyout.right + pad,
213
- y: flyout.top
214
- };
215
- } else if (origin.y >= flyout.bottom) {
216
- edgeStart = {
217
- x: flyout.left - pad,
218
- y: flyout.bottom
219
- };
220
- edgeEnd = {
221
- x: flyout.right + pad,
222
- y: flyout.bottom
223
- };
224
- } else return false;
225
- return isPointInTriangle(point, origin, edgeStart, edgeEnd);
226
- }
227
391
  function useSubmenuHover(options) {
228
392
  const hasHover = useMediaQuery("(hover: hover)");
229
393
  let showTimer;
230
- let hideTimer;
231
- let stopTriangle = null;
232
394
  /** Hover opened this flyout, so leaving may close it. */
233
395
  let provenance = null;
234
396
  let hoverOpenedAt = 0;
235
397
  /** When the flyout last closed. A pointer enter inside the suppress window is ignored. */
236
398
  let closedAt = 0;
237
- /** While true, a point inside `isInsideTriangle` is still heading for the flyout. */
238
- let isTracking = false;
239
- let isInsideTriangle = () => false;
399
+ const hideTimer = createHideTimer(() => 200, closeNow);
240
400
  function clearShowTimer() {
241
401
  if (showTimer != null) clearTimeout(showTimer);
242
402
  showTimer = void 0;
243
403
  }
244
- function clearHideTimer() {
245
- if (hideTimer != null) clearTimeout(hideTimer);
246
- hideTimer = void 0;
247
- }
248
- function clearTriangle() {
249
- stopTriangle?.();
250
- stopTriangle = null;
251
- isTracking = false;
252
- isInsideTriangle = () => false;
253
- }
254
404
  function cancelTimers() {
255
405
  clearShowTimer();
256
- clearHideTimer();
257
- clearTriangle();
406
+ hideTimer.clear();
258
407
  }
259
408
  function markClosed() {
260
409
  const shouldStamp = options.isOpen() || provenance != null;
@@ -282,55 +431,16 @@ function useSubmenuHover(options) {
282
431
  }
283
432
  function scheduleHide(event) {
284
433
  if (provenance !== "hover") return;
285
- clearHideTimer();
286
- clearTriangle();
287
- let lastPoint = null;
288
- const arm = () => {
289
- clearHideTimer();
290
- hideTimer = setTimeout(() => {
291
- if (isTracking && lastPoint != null && isInsideTriangle(lastPoint)) {
292
- arm();
293
- return;
294
- }
295
- closeNow();
296
- }, 200);
297
- };
298
- arm();
299
- const menu = unref(options.flyout);
300
434
  const apex = event != null ? {
301
435
  x: event.clientX,
302
436
  y: event.clientY
303
437
  } : null;
304
- if (menu == null || apex == null || !options.isOpen()) return;
305
- const rect = menu.getBoundingClientRect();
306
- if (rect.width <= 0 || rect.height <= 0) return;
307
- const doc = menu.ownerDocument;
308
- isInsideTriangle = (point) => isPointInSafeTriangle(point, apex, rect);
309
- isTracking = true;
310
- lastPoint = apex;
311
- const onPointerMove = (move) => {
312
- const point = {
313
- x: move.clientX,
314
- y: move.clientY
315
- };
316
- lastPoint = point;
317
- if (isInsideTriangle(point)) {
318
- arm();
319
- return;
320
- }
321
- isTracking = false;
322
- clearTriangle();
323
- };
324
- doc.addEventListener("pointermove", onPointerMove, true);
325
- stopTriangle = () => {
326
- doc.removeEventListener("pointermove", onPointerMove, true);
327
- };
438
+ hideTimer.schedule(apex, unref(options.flyout), options.isOpen());
328
439
  }
329
440
  function onTriggerPointerEnter(event) {
330
441
  if (event.pointerType !== "mouse" || !hasHover.value) return;
331
442
  if (options.isOpen()) {
332
- clearHideTimer();
333
- clearTriangle();
443
+ hideTimer.clear();
334
444
  return;
335
445
  }
336
446
  if (closedAt > 0 && Date.now() - closedAt < 300) return;
@@ -350,9 +460,7 @@ function useSubmenuHover(options) {
350
460
  }
351
461
  function onFlyoutPointerEnter(event) {
352
462
  if (event.pointerType !== "mouse") return;
353
- clearShowTimer();
354
- clearHideTimer();
355
- clearTriangle();
463
+ cancelTimers();
356
464
  }
357
465
  function onFlyoutPointerLeave(event) {
358
466
  if (event.pointerType !== "mouse") return;
@@ -476,7 +584,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
476
584
  const ancestorOpen = inject(submenuAncestorOpenKey, computed(() => true));
477
585
  const showsFlyout = computed(() => isOpen.value && (menu?.isOpen.value ?? true) && ancestorOpen.value);
478
586
  provide(submenuAncestorOpenKey, showsFlyout);
479
- const { position } = usePositionedLayer({
587
+ const { position, teleportTarget } = usePositionedLayer({
480
588
  anchor: row,
481
589
  layer: flyout,
482
590
  isOpen: showsFlyout,
@@ -504,7 +612,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
504
612
  container: flyout,
505
613
  trigger: row,
506
614
  isEnabled: showsFlyout,
507
- enableEscape: computed(() => true),
615
+ dismissOnEscape: "close",
508
616
  onDismiss: () => close(true)
509
617
  });
510
618
  const hover = useSubmenuHover({
@@ -555,7 +663,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
555
663
  if (focusRow) row.value?.focus();
556
664
  }
557
665
  function onRowKeyDown(event) {
558
- if (props.isDisabled || event.isComposing) return;
666
+ if (props.isDisabled || isImeKeyEvent(event)) return;
559
667
  if (event.key === "Enter" || event.key === " " || event.key === "ArrowRight") {
560
668
  event.preventDefault();
561
669
  open(true);
@@ -581,7 +689,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
581
689
  element.focus({ preventScroll: true });
582
690
  }
583
691
  function onFlyoutKeyDown(event) {
584
- if (event.isComposing) return;
692
+ if (isImeKeyEvent(event)) return;
585
693
  if (event.key === "ArrowLeft") {
586
694
  event.preventDefault();
587
695
  close(true);
@@ -630,13 +738,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
630
738
  onPointerleave: _cache[0] || (_cache[0] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
631
739
  onPointermove: onRowPointerMove
632
740
  }), [
633
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
741
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$8, {
634
742
  icon: __props.icon,
635
743
  color: "secondary",
636
744
  size: "sm"
637
745
  }, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
638
746
  createElementVNode("span", _hoisted_3$1, [createElementVNode("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
639
- createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_sfc_main$12, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$7, {
747
+ createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_sfc_main$13, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$8, {
640
748
  key: 1,
641
749
  class: "astryx-context-menu-item__chevron",
642
750
  icon: "chevronRight",
@@ -656,23 +764,26 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
656
764
  hidden: unref(drillIsTop) ? void 0 : true,
657
765
  tabindex: "-1",
658
766
  onKeydown: onFlyoutKeyDown
659
- }, [createVNode(_sfc_main$3, {
660
- "has-close-on-select": false,
661
- label: backLabel.value,
662
- onClick: _cache[1] || (_cache[1] = ($event) => close(true))
663
- }, {
664
- icon: withCtx(() => [createVNode(_sfc_main$7, {
665
- color: "secondary",
666
- icon: "chevronLeft",
667
- size: "sm"
668
- })]),
669
- _: 1
670
- }, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
671
- items: __props.items ?? [],
672
- onSelect: onNestedSelect
673
- }, null, 8, ["items"])])], 40, _hoisted_8), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
767
+ }, [createVNode(_sfc_main$6, null, {
768
+ default: withCtx(() => [createVNode(_sfc_main$3, {
769
+ "has-close-on-select": false,
770
+ label: backLabel.value,
771
+ onClick: _cache[1] || (_cache[1] = ($event) => close(true))
772
+ }, {
773
+ icon: withCtx(() => [createVNode(_sfc_main$8, {
774
+ color: "secondary",
775
+ icon: "chevronLeft",
776
+ size: "sm"
777
+ })]),
778
+ _: 1
779
+ }, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
780
+ items: __props.items ?? [],
781
+ onSelect: onNestedSelect
782
+ }, null, 8, ["items"])])]),
783
+ _: 3
784
+ })], 40, _hoisted_8), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
674
785
  key: 1,
675
- to: "body"
786
+ to: unref(teleportTarget)
676
787
  }, [createVNode(Transition, {
677
788
  name: "astryx-context-menu-flyout",
678
789
  persisted: ""
@@ -693,12 +804,15 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
693
804
  onKeydown: onFlyoutKeyDown,
694
805
  onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(hover).onFlyoutPointerEnter && unref(hover).onFlyoutPointerEnter(...args)),
695
806
  onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(hover).onFlyoutPointerLeave && unref(hover).onFlyoutPointerLeave(...args))
696
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
697
- items: __props.items ?? [],
698
- onSelect: onNestedSelect
699
- }, null, 8, ["items"])])], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
807
+ }, [createVNode(_sfc_main$6, null, {
808
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
809
+ items: __props.items ?? [],
810
+ onSelect: onNestedSelect
811
+ }, null, 8, ["items"])])]),
812
+ _: 3
813
+ })], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
700
814
  _: 3
701
- })]))
815
+ })], 8, ["to"]))
702
816
  ], 64);
703
817
  };
704
818
  }
@@ -759,7 +873,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
759
873
  return (_ctx, _cache) => {
760
874
  const _component_ContextMenuItems = resolveComponent("ContextMenuItems", true);
761
875
  return openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (option, index) => {
762
- return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$8, {
876
+ return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$9, {
763
877
  key: 1,
764
878
  description: option.description,
765
879
  "has-close-on-select": option.hasCloseOnSelect,
@@ -776,7 +890,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
776
890
  "label",
777
891
  "model-value",
778
892
  "onUpdate:modelValue"
779
- ])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$9, {
893
+ ])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$10, {
780
894
  key: 2,
781
895
  "has-close-on-select": option.hasCloseOnSelect,
782
896
  label: option.label,
@@ -784,7 +898,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
784
898
  "onUpdate:modelValue": ($event) => onRadioModel(option, $event)
785
899
  }, {
786
900
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(option.items, (choice, choiceIndex) => {
787
- return openBlock(), createBlock(_sfc_main$10, {
901
+ return openBlock(), createBlock(_sfc_main$11, {
788
902
  key: choice.id ?? choiceIndex,
789
903
  description: choice.description,
790
904
  icon: choice.icon,
@@ -857,7 +971,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
857
971
  items: {},
858
972
  menuWidth: {},
859
973
  size: { default: "md" },
860
- label: { default: "Context menu" },
974
+ label: {},
861
975
  isDisabled: {
862
976
  type: Boolean,
863
977
  default: false
@@ -881,6 +995,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
881
995
  const props = __props;
882
996
  const emit = __emit;
883
997
  const attrs = useAttrs();
998
+ const messages = useAstryxMessages();
999
+ const menuName = computed(() => props.label ?? messages.value.contextMenu.label);
884
1000
  /**
885
1001
  * `class` and `style` describe the painted menu surface, the way upstream's
886
1002
  * `className`/`style` do; everything else describes the trigger area.
@@ -903,12 +1019,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
903
1019
  const trigger = useTemplateRef("trigger");
904
1020
  const cursorAnchor = useTemplateRef("cursorAnchor");
905
1021
  const panel = useTemplateRef("panel");
1022
+ useScrollbars(panel);
906
1023
  const cursorPoint = ref({
907
1024
  x: 0,
908
1025
  y: 0
909
1026
  });
910
1027
  let previouslyFocused = null;
911
- const { position, update: updatePosition } = usePositionedLayer({
1028
+ const { position, teleportTarget, update: updatePosition } = usePositionedLayer({
912
1029
  anchor: cursorAnchor,
913
1030
  layer: panel,
914
1031
  isOpen,
@@ -1028,7 +1145,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1028
1145
  closeMenu,
1029
1146
  drillIn,
1030
1147
  isOpen,
1031
- menuLabel: computed(() => props.label),
1148
+ menuLabel: menuName,
1032
1149
  menuSize: computed(() => props.size)
1033
1150
  });
1034
1151
  function applyOpenState(next) {
@@ -1094,7 +1211,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1094
1211
  "onPointercancel",
1095
1212
  "onPointerup"
1096
1213
  ])),
1097
- (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
1214
+ (openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(Transition, {
1098
1215
  name: "astryx-context-menu",
1099
1216
  persisted: ""
1100
1217
  }, {
@@ -1102,7 +1219,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1102
1219
  id: menuId,
1103
1220
  ref_key: "panel",
1104
1221
  ref: panel,
1105
- "aria-label": __props.label,
1222
+ "aria-label": menuName.value,
1106
1223
  class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
1107
1224
  "data-overflow": unref(hasOverflow) || void 0,
1108
1225
  "data-placement": unref(position).placement,
@@ -1115,31 +1232,34 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1115
1232
  onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
1116
1233
  onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
1117
1234
  onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
1118
- }, [createElementVNode("div", {
1119
- class: "astryx-dropdown-menu-tree",
1120
- hidden: unref(isDrilled) || void 0,
1121
- inert: unref(isDrilled) || void 0
1122
- }, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1123
- key: 0,
1124
- items: __props.items,
1125
- onSelect
1126
- }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 8, _hoisted_2), !isSheet.value ? (openBlock(), createElementBlock("div", {
1127
- key: 0,
1128
- ref: assignHost,
1129
- class: "astryx-dropdown-menu-tree"
1130
- }, null, 512)) : createCommentVNode("v-if", true)], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
1235
+ }, [createVNode(_sfc_main$6, null, {
1236
+ default: withCtx(() => [createElementVNode("div", {
1237
+ class: "astryx-dropdown-menu-tree",
1238
+ hidden: unref(isDrilled) || void 0,
1239
+ inert: unref(isDrilled) || void 0
1240
+ }, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1241
+ key: 0,
1242
+ items: __props.items,
1243
+ onSelect
1244
+ }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 8, _hoisted_2), !isSheet.value ? (openBlock(), createElementBlock("div", {
1245
+ key: 0,
1246
+ ref: assignHost,
1247
+ class: "astryx-dropdown-menu-tree"
1248
+ }, null, 512)) : createCommentVNode("v-if", true)]),
1249
+ _: 3
1250
+ })], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
1131
1251
  _: 3
1132
- })])),
1133
- isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
1252
+ })], 8, ["to"])),
1253
+ isSheet.value ? (openBlock(), createBlock(_sfc_main$7, {
1134
1254
  key: 0,
1135
1255
  "is-open": isOpen.value,
1136
- label: __props.label,
1256
+ label: menuName.value,
1137
1257
  "onUpdate:isOpen": onSheetOpen
1138
1258
  }, {
1139
1259
  default: withCtx(() => [createElementVNode("div", {
1140
1260
  class: "astryx-context-menu-sheet",
1141
1261
  role: "menu",
1142
- "aria-label": __props.label
1262
+ "aria-label": menuName.value
1143
1263
  }, [createElementVNode("div", {
1144
1264
  class: "astryx-dropdown-menu-tree",
1145
1265
  hidden: unref(isDrilled) || void 0,