@astryx-vue/core 0.2.3 → 0.2.4

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 (303) hide show
  1. package/THIRD_PARTY_NOTICES.md +2 -0
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/BottomSheet/index.d.ts +2 -2
  13. package/dist/BottomSheet/index.js +3 -2
  14. package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
  15. package/dist/BottomSheet-o7xw-TOi.js +153 -0
  16. package/dist/Breadcrumbs/index.d.ts +2 -2
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.d.ts +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
  24. package/dist/Card/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.d.ts +1 -1
  32. package/dist/CheckboxList/index.js +1 -1
  33. package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
  34. package/dist/Citation/index.js +1 -1
  35. package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/Code/index.d.ts +3 -3
  38. package/dist/Code/index.js +4 -4
  39. package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
  40. package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
  41. package/dist/Collapsible/index.d.ts +1 -1
  42. package/dist/CommandPalette/index.js +1 -1
  43. package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
  44. package/dist/ComplexSelector/index.js +1 -1
  45. package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
  46. package/dist/ContextMenu/index.d.ts +2 -2
  47. package/dist/ContextMenu/index.js +2 -2
  48. package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
  49. package/dist/DateInput/index.d.ts +1 -1
  50. package/dist/DateInput/index.js +1 -1
  51. package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
  52. package/dist/DateRangeInput/index.d.ts +1 -1
  53. package/dist/DateRangeInput/index.js +1 -1
  54. package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
  55. package/dist/DateTimeInput/index.d.ts +1 -1
  56. package/dist/DateTimeInput/index.js +1 -1
  57. package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
  58. package/dist/Dialog/index.d.ts +1 -1
  59. package/dist/Divider/index.d.ts +1 -1
  60. package/dist/DropdownMenu/index.d.ts +2 -2
  61. package/dist/DropdownMenu/index.js +3 -3
  62. package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
  63. package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
  64. package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
  65. package/dist/EmptyState/index.js +1 -1
  66. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  67. package/dist/FileInput/index.d.ts +1 -1
  68. package/dist/FileInput/index.js +1 -1
  69. package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
  70. package/dist/Grid/index.d.ts +1 -1
  71. package/dist/Heading/index.d.ts +2 -2
  72. package/dist/Heading/index.js +1 -1
  73. package/dist/Heading-B9C3LZlS.js +94 -0
  74. package/dist/Indicator/index.d.ts +2 -2
  75. package/dist/InputGroup/index.d.ts +1 -1
  76. package/dist/Item-DrYJL1TG.js +590 -0
  77. package/dist/Lightbox/index.js +1 -1
  78. package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
  79. package/dist/Link/index.d.ts +3 -2
  80. package/dist/Link/index.js +1 -1
  81. package/dist/Link-DCZ6922-.js +196 -0
  82. package/dist/List/index.d.ts +3 -3
  83. package/dist/List/index.js +2 -2
  84. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  85. package/dist/Markdown/index.d.ts +2 -2
  86. package/dist/Markdown/index.js +2 -2
  87. package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
  88. package/dist/MetadataList/index.js +1 -1
  89. package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
  98. package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
  99. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  100. package/dist/NavItem/index.d.ts +1 -1
  101. package/dist/NavMenu/index.d.ts +2 -2
  102. package/dist/NavMenu/index.js +4 -3
  103. package/dist/NavMenu-ClIgMaxE.js +176 -0
  104. package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
  105. package/dist/NumberInput/index.d.ts +1 -1
  106. package/dist/NumberInput/index.js +1 -1
  107. package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
  108. package/dist/Outline/index.js +1 -1
  109. package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
  110. package/dist/OverflowList/index.d.ts +1 -1
  111. package/dist/OverflowList/index.js +1 -1
  112. package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
  113. package/dist/Pagination/index.d.ts +1 -1
  114. package/dist/Pagination/index.js +1 -1
  115. package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
  116. package/dist/Popover/index.d.ts +1 -1
  117. package/dist/PowerSearch/index.d.ts +1 -1
  118. package/dist/PowerSearch/index.js +1 -1
  119. package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
  120. package/dist/ProgressBar/index.d.ts +2 -2
  121. package/dist/ProgressBar/index.js +1 -1
  122. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  123. package/dist/Radio/index.d.ts +1 -1
  124. package/dist/RadioList/index.d.ts +1 -1
  125. package/dist/Resizable/index.js +1 -1
  126. package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
  127. package/dist/ScrollableArea/index.d.ts +1 -1
  128. package/dist/SegmentedControl/index.d.ts +1 -1
  129. package/dist/SelectableCard/index.d.ts +1 -1
  130. package/dist/Selector/index.d.ts +1 -1
  131. package/dist/Selector/index.js +1 -1
  132. package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
  133. package/dist/SideNav/index.d.ts +2 -2
  134. package/dist/SideNav/index.js +1 -1
  135. package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
  136. package/dist/Stack/index.d.ts +1 -1
  137. package/dist/Stepper/index.d.ts +1 -1
  138. package/dist/Stepper/index.js +1 -1
  139. package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
  140. package/dist/Switch/index.d.ts +1 -1
  141. package/dist/TabList/index.d.ts +1 -1
  142. package/dist/Table/index.js +1 -1
  143. package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
  144. package/dist/Text/index.d.ts +3 -3
  145. package/dist/Text/index.js +1 -1
  146. package/dist/Text-DIzZw6FA.js +86 -0
  147. package/dist/TextArea/index.d.ts +1 -1
  148. package/dist/TextInput/index.d.ts +1 -1
  149. package/dist/Theme/index.d.ts +3 -3
  150. package/dist/Theme/index.js +2 -2
  151. package/dist/Theme-CtaUWo4g.js +1246 -0
  152. package/dist/Thumbnail/index.js +1 -1
  153. package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
  154. package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
  155. package/dist/TimeInput/index.d.ts +1 -1
  156. package/dist/TimeInput/index.js +1 -1
  157. package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
  158. package/dist/Timer/index.d.ts +1 -1
  159. package/dist/Timer/index.js +1 -1
  160. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  161. package/dist/Timestamp/index.d.ts +1 -1
  162. package/dist/Timestamp/index.js +1 -1
  163. package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
  164. package/dist/ToggleButton/index.d.ts +1 -1
  165. package/dist/Token/index.d.ts +1 -1
  166. package/dist/Token/index.js +1 -1
  167. package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
  168. package/dist/Tokenizer/index.js +1 -1
  169. package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
  170. package/dist/Toolbar/index.d.ts +1 -1
  171. package/dist/Tooltip/index.d.ts +1 -1
  172. package/dist/Tooltip/index.js +1 -1
  173. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  174. package/dist/TopNav/index.d.ts +1 -1
  175. package/dist/TopNav/index.js +1 -1
  176. package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
  177. package/dist/TreeList/index.js +1 -1
  178. package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
  179. package/dist/Typeahead/index.d.ts +2 -2
  180. package/dist/Typeahead/index.js +3 -2
  181. package/dist/Typeahead-_V11btpv.js +499 -0
  182. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  183. package/dist/composables/index.d.ts +2 -2
  184. package/dist/composables/index.js +4 -4
  185. package/dist/composables-CWw6t-RJ.js +520 -0
  186. package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
  187. package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
  188. package/dist/{index-DMQG6kdM.d.ts → index-6yB8BtEu.d.ts} +2 -2
  189. package/dist/{index-f4NGT-e2.d.ts → index-B4OOtNP8.d.ts} +3 -3
  190. package/dist/index-BBtJt5_A.d.ts +26 -0
  191. package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
  192. package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
  193. package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
  194. package/dist/{index-D1Twv_fL.d.ts → index-BcZI402h.d.ts} +4 -4
  195. package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
  196. package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
  197. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  198. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  199. package/dist/{index-BMn9ghAX.d.ts → index-Bu0Zd1uw.d.ts} +3 -3
  200. package/dist/{index-Ctu32CLv.d.ts → index-BxhJqiZ7.d.ts} +2 -2
  201. package/dist/{index-CA6RbRWx.d.ts → index-By2mSzUA.d.ts} +1 -1
  202. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  203. package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
  204. package/dist/{index-DAiGhkNZ.d.ts → index-CFIXnk5D.d.ts} +1 -1
  205. package/dist/{index-ViSV0RBx.d.ts → index-CI9kyg74.d.ts} +12 -2
  206. package/dist/{index-C-QpeUlQ.d.ts → index-CNjbOgty.d.ts} +2 -2
  207. package/dist/{index-BB5yVIN-.d.ts → index-CUCcYKxl.d.ts} +3 -3
  208. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  209. package/dist/{index-xfkEuGLY.d.ts → index-CZeoAr0a.d.ts} +2 -2
  210. package/dist/{index-C2sfHfBw.d.ts → index-D-ezcKaY.d.ts} +3 -3
  211. package/dist/{index-BcJBLWJ0.d.ts → index-DA52oIdw.d.ts} +2 -2
  212. package/dist/{index-D7-WTV6I.d.ts → index-D_nYxnNv.d.ts} +1 -1
  213. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  214. package/dist/index-DxR1FChm.d.ts +158 -0
  215. package/dist/{index-BTAgQRP0.d.ts → index-EtZgovdH.d.ts} +169 -81
  216. package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
  217. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  218. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  219. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  220. package/dist/{index-D8o50qOE.d.ts → index-cL3q7O4R.d.ts} +32 -3
  221. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  222. package/dist/{index-DkVEBdWa.d.ts → index-fa72tWIU.d.ts} +2 -2
  223. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  224. package/dist/{index-foQMNKZO.d.ts → index-hCpxKePE.d.ts} +49 -3
  225. package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
  226. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  227. package/dist/index.d.ts +81 -80
  228. package/dist/index.js +118 -115
  229. package/dist/locale/index.d.ts +2 -2
  230. package/dist/locale/index.js +3 -3
  231. package/dist/locale-sLw5Caia.js +917 -0
  232. package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
  233. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  234. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  235. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  236. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  237. package/dist/types-D_J66aPN.d.ts +85 -0
  238. package/dist/types-gKsEkk2g.d.ts +320 -0
  239. package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
  240. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  241. package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
  242. package/dist/useTruncation-B5qXQzAP.js +53 -0
  243. package/locales/SOURCE.json +37 -0
  244. package/locales/af-ZA.json +1482 -0
  245. package/locales/ar-SA.json +1482 -0
  246. package/locales/ca-ES.json +1482 -0
  247. package/locales/cs-CZ.json +1482 -0
  248. package/locales/da-DK.json +1482 -0
  249. package/locales/de-DE.json +1482 -0
  250. package/locales/el-GR.json +1482 -0
  251. package/locales/en.json +1646 -0
  252. package/locales/es-ES.json +1482 -0
  253. package/locales/fi-FI.json +1482 -0
  254. package/locales/fr-FR.json +1482 -0
  255. package/locales/he-IL.json +1482 -0
  256. package/locales/hu-HU.json +1482 -0
  257. package/locales/it-IT.json +1482 -0
  258. package/locales/ja-JP.json +1482 -0
  259. package/locales/ko-KR.json +1482 -0
  260. package/locales/nl-NL.json +1482 -0
  261. package/locales/no-NO.json +1482 -0
  262. package/locales/pl-PL.json +1482 -0
  263. package/locales/pt-BR.json +1482 -0
  264. package/locales/pt-PT.json +1482 -0
  265. package/locales/ro-RO.json +1482 -0
  266. package/locales/ru-RU.json +1482 -0
  267. package/locales/sr-SP.json +1482 -0
  268. package/locales/sv-SE.json +1482 -0
  269. package/locales/tr-TR.json +1482 -0
  270. package/locales/uk-UA.json +1482 -0
  271. package/locales/vi-VN.json +1482 -0
  272. package/locales/zh-CN.json +1482 -0
  273. package/locales/zh-TW.json +1482 -0
  274. package/package.json +3 -1
  275. package/styles/bottom-sheet.css +27 -0
  276. package/styles/code.css +62 -0
  277. package/styles/container-reveal.css +104 -0
  278. package/styles/heading.css +47 -0
  279. package/styles/keyboard-hint.css +28 -0
  280. package/styles/link.css +34 -0
  281. package/styles/list.css +88 -1
  282. package/styles/markdown.css +12 -0
  283. package/styles/pagination.css +30 -0
  284. package/styles/progress-bar.css +49 -0
  285. package/styles/side-nav.css +36 -1
  286. package/styles/text.css +18 -0
  287. package/styles/top-nav.css +145 -6
  288. package/styles/typeahead.css +24 -0
  289. package/styles.css +2 -0
  290. package/dist/Heading-Dugosn6j.js +0 -43
  291. package/dist/Item-C1z6gXn8.js +0 -289
  292. package/dist/Link-DqdQZ37C.js +0 -141
  293. package/dist/Text-BHVghsWo.js +0 -53
  294. package/dist/Theme-CejS9MHm.js +0 -447
  295. package/dist/Typeahead-DQ3tmqYe.js +0 -375
  296. package/dist/index-Bqb_Fyju.d.ts +0 -80
  297. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  298. package/dist/locale-CCwVnyMZ.js +0 -42
  299. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  300. package/dist/types-jmqqnkKA.d.ts +0 -163
  301. package/dist/useHotkeys-dABSK1o9.js +0 -80
  302. package/dist/useLongPress-Cyxwa73s.js +0 -60
  303. package/dist/{index-BXkNZF3q.d.ts → index-IdK2g5B4.d.ts} +2 -2
@@ -0,0 +1,499 @@
1
+ import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
2
+ import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
3
+ import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
4
+ import { t as _sfc_main$4 } from "./Token-D2GsI_Ei.js";
5
+ import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-BN9LQnon.js";
6
+ import { r as useTypeaheadMenu, t as _sfc_main$5 } from "./TypeaheadMenu-BEObzonz.js";
7
+ import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
8
+ import "../styles/visually-hidden-utility.css";
9
+ import "../styles/typeahead.css";
10
+ //#region src/Typeahead/BaseTypeahead.vue
11
+ const _hoisted_1 = {
12
+ key: 0,
13
+ class: "astryx-typeahead-icon",
14
+ "aria-hidden": "true"
15
+ };
16
+ const _hoisted_2 = [
17
+ "id",
18
+ "placeholder",
19
+ "value",
20
+ "disabled",
21
+ "readonly",
22
+ "aria-disabled",
23
+ "aria-expanded",
24
+ "aria-controls",
25
+ "aria-label",
26
+ "aria-activedescendant",
27
+ "aria-describedby",
28
+ "aria-required",
29
+ "title"
30
+ ];
31
+ const _hoisted_3 = ["aria-label"];
32
+ const _hoisted_4 = ["id"];
33
+ const _hoisted_5 = ["name", "value"];
34
+ const _hoisted_6 = [
35
+ "id",
36
+ "aria-label",
37
+ "data-placement"
38
+ ];
39
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
40
+ name: "AstryxBaseTypeahead",
41
+ inheritAttrs: false,
42
+ __name: "BaseTypeahead",
43
+ props: {
44
+ modelValue: { default: null },
45
+ searchSource: {},
46
+ label: {},
47
+ inputId: {},
48
+ describedBy: {},
49
+ placeholder: {},
50
+ disabled: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ disabledReason: {},
55
+ status: { default: "default" },
56
+ size: { default: "md" },
57
+ clearable: {
58
+ type: Boolean,
59
+ default: true
60
+ },
61
+ debounceMs: { default: 150 },
62
+ maxMenuItems: { default: 10 },
63
+ showOnFocus: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ emptyText: {},
68
+ required: {
69
+ type: Boolean,
70
+ default: false
71
+ },
72
+ name: {}
73
+ },
74
+ emits: [
75
+ "update:modelValue",
76
+ "change",
77
+ "search",
78
+ "openChange"
79
+ ],
80
+ setup(__props, { expose: __expose, emit: __emit }) {
81
+ const props = __props;
82
+ const emit = __emit;
83
+ const messages = useAstryxMessages();
84
+ const generatedId = `astryx-typeahead-${useId()}`;
85
+ const inputId = computed(() => props.inputId ?? generatedId);
86
+ const listboxId = computed(() => `${inputId.value}-listbox`);
87
+ const disabledId = computed(() => `${inputId.value}-disabled`);
88
+ const editing = ref(false);
89
+ let suppressFocusOpen = false;
90
+ const inputRef = useTemplateRef("inputRef");
91
+ const anchorRef = useTemplateRef("anchorRef");
92
+ const listboxRef = useTemplateRef("listboxRef");
93
+ const placeholder = computed(() => props.placeholder ?? messages.value.typeahead.placeholder);
94
+ const emptyText = computed(() => props.emptyText ?? messages.value.typeahead.empty);
95
+ const clearLabel = computed(() => messages.value.typeahead.clear);
96
+ const focusableDisabled = computed(() => props.disabled && Boolean(props.disabledReason?.trim()));
97
+ const menu = useTypeaheadMenu({
98
+ source: () => props.searchSource,
99
+ debounceMs: () => props.debounceMs,
100
+ showOnFocus: () => props.showOnFocus,
101
+ maxItems: () => props.maxMenuItems,
102
+ disabled: () => props.disabled,
103
+ onSelect: (entry) => {
104
+ commit(entry.item);
105
+ },
106
+ onEscape: () => {
107
+ restoreSelection();
108
+ },
109
+ onQueryChange: (query) => {
110
+ emit("search", query);
111
+ }
112
+ });
113
+ const anchored = useAnchoredListbox({
114
+ anchor: anchorRef,
115
+ layer: listboxRef,
116
+ isOpen: menu.combobox.isOpen,
117
+ onDismiss: () => {
118
+ menu.close();
119
+ restoreSelection();
120
+ }
121
+ });
122
+ const selected = computed(() => props.modelValue ?? null);
123
+ const showToken = computed(() => selected.value != null && !editing.value);
124
+ const describedBy = computed(() => {
125
+ return [props.describedBy, focusableDisabled.value ? disabledId.value : void 0].filter(Boolean).join(" ") || void 0;
126
+ });
127
+ watch(() => menu.combobox.isOpen.value, (isOpen) => {
128
+ emit("openChange", isOpen);
129
+ });
130
+ watch(() => menu.combobox.activeIndex.value, (index) => {
131
+ if (index < 0 || !menu.combobox.isOpen.value) return;
132
+ nextTick(() => {
133
+ scrollOptionIntoView(listboxRef.value, menu.entries.value[index]?.id);
134
+ });
135
+ });
136
+ function commit(item) {
137
+ editing.value = false;
138
+ menu.query.value = "";
139
+ menu.close();
140
+ emit("update:modelValue", item);
141
+ emit("change", item);
142
+ suppressFocusOpen = item != null;
143
+ nextTick(() => {
144
+ inputRef.value?.focus();
145
+ suppressFocusOpen = false;
146
+ });
147
+ }
148
+ function restoreSelection() {
149
+ if (selected.value == null) return;
150
+ editing.value = false;
151
+ menu.query.value = "";
152
+ }
153
+ function startEdit() {
154
+ if (props.disabled || selected.value == null || editing.value) return;
155
+ editing.value = true;
156
+ menu.setQuery(selected.value.label);
157
+ nextTick(() => {
158
+ inputRef.value?.focus();
159
+ inputRef.value?.select();
160
+ });
161
+ }
162
+ function highlight(index) {
163
+ const entry = menu.entries.value[index];
164
+ if (entry && !entry.disabled) menu.combobox.activeIndex.value = index;
165
+ }
166
+ function onInput(event) {
167
+ if (props.disabled) return;
168
+ menu.setQuery(event.target.value);
169
+ }
170
+ function onFocus() {
171
+ if (props.disabled || suppressFocusOpen) return;
172
+ if (showToken.value) {
173
+ startEdit();
174
+ return;
175
+ }
176
+ if (props.showOnFocus) menu.open();
177
+ }
178
+ function onBlur(event) {
179
+ const next = event.relatedTarget;
180
+ if (next instanceof Node && (anchorRef.value?.contains(next) || listboxRef.value?.contains(next))) return;
181
+ menu.close();
182
+ restoreSelection();
183
+ }
184
+ function onControlClick(event) {
185
+ if (props.disabled) return;
186
+ const target = event.target;
187
+ if (target instanceof Element && target.closest("button, a")) return;
188
+ if (showToken.value) startEdit();
189
+ else inputRef.value?.focus();
190
+ }
191
+ function onClear(event) {
192
+ event.stopPropagation();
193
+ commit(null);
194
+ }
195
+ function onMenuSelect(id) {
196
+ const entry = menu.entries.value.find((item) => item.id === id);
197
+ if (entry && !entry.disabled) commit(entry.item);
198
+ }
199
+ function optionSelected(id) {
200
+ return selected.value?.id === id;
201
+ }
202
+ __expose({
203
+ focus: () => inputRef.value?.focus(),
204
+ blur: () => inputRef.value?.blur()
205
+ });
206
+ return (_ctx, _cache) => {
207
+ return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", { class: normalizeClass(["astryx-typeahead astryx-typeahead--bare", [`size-${props.size}`]]) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 点空白处只是把焦点交给组合框;键盘用户直接 Tab 到输入框。 "), createElementVNode("div", {
208
+ ref_key: "anchorRef",
209
+ ref: anchorRef,
210
+ class: normalizeClass(["astryx-typeahead-control", [`status-${props.status}`, {
211
+ "is-open": unref(menu).combobox.isOpen.value,
212
+ "is-disabled": props.disabled
213
+ }]]),
214
+ onClick: onControlClick
215
+ }, [
216
+ _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
217
+ showToken.value && selected.value ? (openBlock(), createBlock(_sfc_main$4, {
218
+ key: 1,
219
+ class: "astryx-typeahead-value",
220
+ label: selected.value.label,
221
+ size: props.size,
222
+ disabled: props.disabled,
223
+ onClick: startEdit
224
+ }, null, 8, [
225
+ "label",
226
+ "size",
227
+ "disabled"
228
+ ])) : createCommentVNode("v-if", true),
229
+ createElementVNode("input", {
230
+ id: inputId.value,
231
+ ref_key: "inputRef",
232
+ ref: inputRef,
233
+ class: normalizeClass(["astryx-typeahead-input", { "is-hidden": showToken.value }]),
234
+ type: "text",
235
+ role: "combobox",
236
+ autocomplete: "off",
237
+ autocapitalize: "off",
238
+ placeholder: showToken.value ? void 0 : placeholder.value,
239
+ value: showToken.value ? "" : unref(menu).query.value,
240
+ disabled: props.disabled && !focusableDisabled.value,
241
+ readonly: focusableDisabled.value || void 0,
242
+ "aria-disabled": focusableDisabled.value ? "true" : void 0,
243
+ "aria-expanded": unref(menu).combobox.isOpen.value,
244
+ "aria-controls": listboxId.value,
245
+ "aria-label": props.label,
246
+ "aria-autocomplete": "list",
247
+ "aria-activedescendant": unref(menu).activeId.value ? `${listboxId.value}-option-${unref(menu).combobox.activeIndex.value}` : void 0,
248
+ "aria-describedby": describedBy.value,
249
+ "aria-required": props.required || void 0,
250
+ title: props.disabledReason,
251
+ onInput,
252
+ onFocus,
253
+ onBlur,
254
+ onKeydown: _cache[0] || (_cache[0] = (...args) => unref(menu).onKeyDown && unref(menu).onKeyDown(...args))
255
+ }, null, 42, _hoisted_2),
256
+ unref(menu).status.value === "loading" ? (openBlock(), createBlock(_sfc_main$2, {
257
+ key: 2,
258
+ class: "astryx-typeahead-spinner",
259
+ size: "sm",
260
+ "aria-label": unref(messages).typeahead.loading
261
+ }, null, 8, ["aria-label"])) : createCommentVNode("v-if", true),
262
+ props.clearable && selected.value && !props.disabled ? (openBlock(), createElementBlock("button", {
263
+ key: 3,
264
+ type: "button",
265
+ class: "astryx-typeahead-clear",
266
+ "aria-label": clearLabel.value,
267
+ onClick: onClear
268
+ }, [..._cache[1] || (_cache[1] = [createElementVNode("svg", {
269
+ width: "16",
270
+ height: "16",
271
+ viewBox: "0 0 16 16",
272
+ fill: "none",
273
+ "aria-hidden": "true"
274
+ }, [createElementVNode("path", {
275
+ d: "M12 4L4 12M4 4L12 12",
276
+ stroke: "currentColor",
277
+ "stroke-width": "1.5",
278
+ "stroke-linecap": "round"
279
+ })], -1)])], 8, _hoisted_3)) : createCommentVNode("v-if", true),
280
+ focusableDisabled.value ? (openBlock(), createElementBlock("span", {
281
+ key: 4,
282
+ id: disabledId.value,
283
+ class: "astryx-visually-hidden"
284
+ }, toDisplayString(props.disabledReason), 9, _hoisted_4)) : createCommentVNode("v-if", true),
285
+ props.name ? (openBlock(), createElementBlock("input", {
286
+ key: 5,
287
+ type: "hidden",
288
+ name: props.name,
289
+ value: selected.value?.id ?? ""
290
+ }, null, 8, _hoisted_5)) : createCommentVNode("v-if", true)
291
+ ], 2)], 2), (openBlock(), createBlock(Teleport, { to: "body" }, [withDirectives(createElementVNode("div", {
292
+ id: listboxId.value,
293
+ ref_key: "listboxRef",
294
+ ref: listboxRef,
295
+ class: "astryx-typeahead-listbox",
296
+ role: "listbox",
297
+ "aria-label": unref(messages).typeahead.results,
298
+ "data-placement": unref(anchored).position.value.placement,
299
+ style: normalizeStyle(unref(anchored).style.value),
300
+ tabindex: "-1"
301
+ }, [createVNode(_sfc_main$5, {
302
+ entries: unref(menu).entries.value.map((entry) => ({
303
+ id: entry.id,
304
+ label: entry.label,
305
+ description: entry.description,
306
+ disabled: entry.disabled,
307
+ selected: optionSelected(entry.item.id)
308
+ })),
309
+ "active-index": unref(menu).combobox.activeIndex.value,
310
+ status: unref(menu).status.value,
311
+ "listbox-id": listboxId.value,
312
+ "empty-text": emptyText.value,
313
+ "loading-text": unref(messages).typeahead.loading,
314
+ "error-text": unref(messages).typeahead.error,
315
+ onSelect: onMenuSelect,
316
+ onHighlight: highlight
317
+ }, createSlots({ _: 2 }, [_ctx.$slots.item ? {
318
+ name: "item",
319
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", {
320
+ item: unref(menu).entries.value.find((entry) => entry.id === slotProps.entry.id).item,
321
+ isActive: slotProps.isActive,
322
+ isSelected: slotProps.isSelected
323
+ })]),
324
+ key: "0"
325
+ } : void 0, _ctx.$slots.empty ? {
326
+ name: "empty",
327
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
328
+ key: "1"
329
+ } : void 0]), 1032, [
330
+ "entries",
331
+ "active-index",
332
+ "status",
333
+ "listbox-id",
334
+ "empty-text",
335
+ "loading-text",
336
+ "error-text"
337
+ ])], 12, _hoisted_6), [[vShow, unref(menu).combobox.isOpen.value]])]))], 64);
338
+ };
339
+ }
340
+ });
341
+ //#endregion
342
+ //#region src/Typeahead/Typeahead.vue
343
+ const _sfc_main = /*@__PURE__*/ defineComponent({
344
+ name: "AstryxTypeahead",
345
+ inheritAttrs: false,
346
+ __name: "Typeahead",
347
+ props: {
348
+ modelValue: { default: null },
349
+ searchSource: {},
350
+ label: {},
351
+ labelHidden: {
352
+ type: Boolean,
353
+ default: false
354
+ },
355
+ description: {},
356
+ placeholder: {},
357
+ disabled: {
358
+ type: Boolean,
359
+ default: false
360
+ },
361
+ disabledReason: {},
362
+ status: { default: "default" },
363
+ statusMessage: {},
364
+ size: { default: "md" },
365
+ clearable: {
366
+ type: Boolean,
367
+ default: true
368
+ },
369
+ debounceMs: { default: 150 },
370
+ maxMenuItems: { default: 10 },
371
+ showOnFocus: {
372
+ type: Boolean,
373
+ default: false
374
+ },
375
+ emptyText: {},
376
+ required: {
377
+ type: Boolean,
378
+ default: false
379
+ },
380
+ optional: {
381
+ type: Boolean,
382
+ default: false
383
+ },
384
+ name: {},
385
+ width: {}
386
+ },
387
+ emits: [
388
+ "update:modelValue",
389
+ "change",
390
+ "search",
391
+ "openChange"
392
+ ],
393
+ setup(__props, { expose: __expose, emit: __emit }) {
394
+ const props = __props;
395
+ const emit = __emit;
396
+ const inputId = `astryx-typeahead-${useId()}`;
397
+ const base = useTemplateRef("base");
398
+ const fieldStatus = computed(() => {
399
+ if (!props.statusMessage || props.status === "default") return void 0;
400
+ return {
401
+ type: props.status,
402
+ message: props.statusMessage
403
+ };
404
+ });
405
+ __expose({
406
+ focus: () => base.value?.focus(),
407
+ blur: () => base.value?.blur()
408
+ });
409
+ return (_ctx, _cache) => {
410
+ return openBlock(), createBlock(_sfc_main$3, {
411
+ class: normalizeClass(["astryx-typeahead", [`size-${props.size}`]]),
412
+ label: props.label,
413
+ "input-id": inputId,
414
+ description: props.description,
415
+ "is-label-hidden": props.labelHidden,
416
+ "is-disabled": props.disabled,
417
+ "is-required": props.required,
418
+ "is-optional": props.optional,
419
+ status: fieldStatus.value,
420
+ width: props.width
421
+ }, {
422
+ default: withCtx((field) => [createVNode(_sfc_main$1, {
423
+ ref_key: "base",
424
+ ref: base,
425
+ "model-value": props.modelValue,
426
+ "search-source": props.searchSource,
427
+ "input-id": field.inputId,
428
+ "described-by": field.describedBy,
429
+ placeholder: props.placeholder,
430
+ disabled: props.disabled,
431
+ "disabled-reason": props.disabledReason,
432
+ status: props.status,
433
+ size: props.size,
434
+ clearable: props.clearable,
435
+ "debounce-ms": props.debounceMs,
436
+ "max-menu-items": props.maxMenuItems,
437
+ "show-on-focus": props.showOnFocus,
438
+ "empty-text": props.emptyText,
439
+ required: props.required,
440
+ name: props.name,
441
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
442
+ onChange: _cache[1] || (_cache[1] = ($event) => emit("change", $event)),
443
+ onSearch: _cache[2] || (_cache[2] = ($event) => emit("search", $event)),
444
+ onOpenChange: _cache[3] || (_cache[3] = ($event) => emit("openChange", $event))
445
+ }, createSlots({ _: 2 }, [
446
+ _ctx.$slots.icon ? {
447
+ name: "icon",
448
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
449
+ key: "0"
450
+ } : void 0,
451
+ _ctx.$slots.item ? {
452
+ name: "item",
453
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", {
454
+ item: slotProps.item,
455
+ isActive: slotProps.isActive,
456
+ isSelected: slotProps.isSelected
457
+ })]),
458
+ key: "1"
459
+ } : void 0,
460
+ _ctx.$slots.empty ? {
461
+ name: "empty",
462
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
463
+ key: "2"
464
+ } : void 0
465
+ ]), 1032, [
466
+ "model-value",
467
+ "search-source",
468
+ "input-id",
469
+ "described-by",
470
+ "placeholder",
471
+ "disabled",
472
+ "disabled-reason",
473
+ "status",
474
+ "size",
475
+ "clearable",
476
+ "debounce-ms",
477
+ "max-menu-items",
478
+ "show-on-focus",
479
+ "empty-text",
480
+ "required",
481
+ "name"
482
+ ])]),
483
+ _: 3
484
+ }, 8, [
485
+ "class",
486
+ "label",
487
+ "description",
488
+ "is-label-hidden",
489
+ "is-disabled",
490
+ "is-required",
491
+ "is-optional",
492
+ "status",
493
+ "width"
494
+ ]);
495
+ };
496
+ }
497
+ });
498
+ //#endregion
499
+ export { _sfc_main$1 as n, _sfc_main as t };
@@ -1,7 +1,8 @@
1
1
  import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
2
2
  import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
3
- import { t as _sfc_main$1 } from "./Spinner-9cYUCnDy.js";
3
+ import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
4
4
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, watch, withModifiers } from "vue";
5
+ import "../styles/typeahead.css";
5
6
  //#region src/Typeahead/useTypeaheadMenu.ts
6
7
  function isEditableTarget(event) {
7
8
  const target = event.target;
@@ -167,6 +168,38 @@ function useTypeaheadMenu(options) {
167
168
  };
168
169
  }
169
170
  //#endregion
171
+ //#region src/Typeahead/TypeaheadItem.vue
172
+ const _hoisted_1$1 = ["data-disabled"];
173
+ const _hoisted_2$1 = {
174
+ key: 0,
175
+ class: "astryx-typeahead-item-icon",
176
+ "aria-hidden": "true"
177
+ };
178
+ const _hoisted_3$1 = { class: "astryx-typeahead-item-copy" };
179
+ const _hoisted_4$1 = { class: "astryx-typeahead-option-label" };
180
+ const _hoisted_5$1 = {
181
+ key: 0,
182
+ class: "astryx-typeahead-option-description"
183
+ };
184
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
185
+ name: "AstryxTypeaheadItem",
186
+ __name: "TypeaheadItem",
187
+ props: {
188
+ item: {},
189
+ description: {},
190
+ isDisabled: { type: Boolean }
191
+ },
192
+ setup(__props) {
193
+ const props = __props;
194
+ return (_ctx, _cache) => {
195
+ return openBlock(), createElementBlock("span", {
196
+ class: "astryx-typeahead-item",
197
+ "data-disabled": props.isDisabled || props.item.disabled || void 0
198
+ }, [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_3$1, [createElementVNode("span", _hoisted_4$1, toDisplayString(props.item.label), 1), props.description ?? props.item.description ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(props.description ?? props.item.description), 1)) : createCommentVNode("v-if", true)])], 8, _hoisted_1$1);
199
+ };
200
+ }
201
+ });
202
+ //#endregion
170
203
  //#region src/Typeahead/TypeaheadMenu.vue
171
204
  const _hoisted_1 = {
172
205
  class: "astryx-typeahead-menu",
@@ -200,12 +233,7 @@ const _hoisted_6 = [
200
233
  "onClick"
201
234
  ];
202
235
  const _hoisted_7 = { class: "astryx-typeahead-option-copy" };
203
- const _hoisted_8 = { class: "astryx-typeahead-option-label" };
204
- const _hoisted_9 = {
205
- key: 0,
206
- class: "astryx-typeahead-option-description"
207
- };
208
- const _hoisted_10 = {
236
+ const _hoisted_8 = {
209
237
  key: 0,
210
238
  class: "astryx-typeahead-check",
211
239
  width: "16",
@@ -237,7 +265,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
237
265
  if (!disabled) emit("select", id);
238
266
  }
239
267
  return (_ctx, _cache) => {
240
- return openBlock(), createElementBlock("div", _hoisted_1, [props.status === "loading" && props.entries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_sfc_main$1, {
268
+ return openBlock(), createElementBlock("div", _hoisted_1, [props.status === "loading" && props.entries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_sfc_main$2, {
241
269
  size: "sm",
242
270
  label: props.loadingText
243
271
  }, null, 8, ["label"])])) : props.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(props.errorText), 1)) : props.entries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(props.emptyText), 1)])])) : (openBlock(), createElementBlock("div", _hoisted_5, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/mouse-events-have-key-events -- 选项不进 Tab 序,方向键和 Enter 由组合框输入处理。 "), (openBlock(true), createElementBlock(Fragment, null, renderList(props.entries, (entry, index) => {
@@ -261,7 +289,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
261
289
  entry,
262
290
  isActive: index === props.activeIndex,
263
291
  isSelected: Boolean(entry.selected)
264
- }, () => [createElementVNode("span", _hoisted_8, toDisplayString(entry.label), 1), entry.description ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(entry.description), 1)) : createCommentVNode("v-if", true)])]), entry.selected ? (openBlock(), createElementBlock("svg", _hoisted_10, [..._cache[1] || (_cache[1] = [createElementVNode("path", {
292
+ }, () => [createVNode(_sfc_main$1, {
293
+ item: {
294
+ id: entry.id,
295
+ label: entry.label,
296
+ description: entry.description,
297
+ disabled: entry.disabled
298
+ },
299
+ "is-disabled": entry.disabled
300
+ }, null, 8, ["item", "is-disabled"])])]), entry.selected ? (openBlock(), createElementBlock("svg", _hoisted_8, [..._cache[1] || (_cache[1] = [createElementVNode("path", {
265
301
  d: "M3.5 8.5L6.5 11.5L12.5 4.5",
266
302
  stroke: "currentColor",
267
303
  "stroke-width": "1.5",
@@ -273,4 +309,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
273
309
  }
274
310
  });
275
311
  //#endregion
276
- export { useTypeaheadMenu as n, _sfc_main as t };
312
+ export { _sfc_main$1 as n, useTypeaheadMenu as r, _sfc_main as t };
@@ -1,5 +1,5 @@
1
- import { $ as UseGridRovingFocusOptions, $t as AppShellMobile, A as computeOverflow, At as parseISOTime, B as useMediaQuery, Bt as useCoarsePointer, C as useRestoreFocus, Ct as NativePicker, D as ComputeOverflowResult, Dt as formatISOTime, E as ComputeOverflowInput, Et as formatDisplayTime, F as addMonths, Ft as useControllableState, G as ListFocusOrientation, Gt as ChatScrollToBottomOptions, H as LongPressOptions, Ht as INTERACTIVE_SELECTORS, I as buildMonthGrid, It as Combobox, J as Hotkey, Jt as useChatStreamScroll, K as UseListFocusOptions, Kt as UseChatStreamScrollOptions, L as parseISODate, Lt as ComboboxOption, M as NumberField, Mt as shiftTime, N as UseNumberFieldOptions, Nt as ControllableState, O as UseOverflowOptions, Ot as isTimeInRange, P as useNumberField, Pt as UseControllableStateOptions, Q as GridRovingFocus, Qt as useChatNewMessages, R as toISODate, Rt as UseComboboxOptions, S as UseRestoreFocusOptions, St as ISOTimeString, T as usePendingChange, Tt as TimePresentation, U as useLongPress, Ut as UseClickableContainerOptions, V as LongPressHandlers, Vt as ClickableContainerHandlers, W as ListFocus, Wt as useClickableContainer, X as HandleRef, Xt as UseChatNewMessagesOptions, Y as useHotkeys, Yt as CHAT_MESSAGE_CLASS, Z as useHandleRef, Zt as UseChatNewMessagesReturn, _ as ScrollableAreaState, _t as DatePresentation, a as UseStreamingTextOptions, an as ISODateRange, at as FileSelectionOptions, b as useScrollableArea, bt as resolveDateSurface, c as ScrollOverflowState, cn as applyRangeClick, ct as selectFiles, d as useScrollLock, dn as isDayOutsideSpan, dt as useFieldControlState, en as appShellMobileKey, et as useGridRovingFocus, f as ScrollAxis, fn as isRangeWithinSpan, ft as UseDismissOptions, g as ScrollStickyContainment, gn as spanDays, gt as useDisclosureHandle, h as ScrollRole, hn as resolveWeekStart, ht as DisclosureHandleRef, i as StreamingTextSpeed, in as useAnnounce, it as FileRejection, j as useOverflow, jt as resolveTimeSurface, k as UseOverflowReturn, kt as parseDisplayTime, l as UseScrollOverflowResult, ln as compareISODate, lt as FieldControlState, m as ScrollOverscroll, mn as orderRange, mt as DisclosureHandle, n as UseTypeaheadReturn, nn as AnnounceFn, nt as UseFocusTrapOptions, o as snapToGraphemeBoundary, on as RangeClickResult, ot as FileSelectionResult, p as ScrollAxisState, pn as isSameRange, pt as useDismiss, q as useListFocus, qt as UseChatStreamScrollReturn, r as useTypeahead, rn as AnnouncePoliteness, rt as useFocusTrap, s as useStreamingText, sn as WeekStartsOn, st as formatFileSize, t as UseTypeaheadOptions, tn as useAppShellMobile, tt as FocusTrap, u as useScrollOverflow, un as formatDateRange, ut as FieldControlStateInput, v as UseScrollableAreaOptions, vt as DateSurface, w as PendingChange, wt as ParsedTime, x as RestoreFocus, xt as HourFormat, y as UseScrollableAreaResult, yt as resolveDatePresentation, z as todayISODate, zt as useCombobox } from "../index-DxsKyAxq.js";
1
+ import { $ as UseKeyboardHint, $t as useContainerReveal, A as computeOverflow, An as isRangeWithinSpan, At as DatePresentation, B as MenuPress, Bt as formatISOTime, C as useRestoreFocus, Cn as ISODateRange, Ct as FieldControlStateInput, D as ComputeOverflowResult, Dn as compareISODate, Dt as DisclosureHandle, E as ComputeOverflowInput, En as applyRangeClick, Et as useDismiss, F as addMonths, Ft as ISOTimeString, G as LongPressHandlers, Gt as shiftTime, H as resetMenuPress, Ht as parseDisplayTime, I as buildMonthGrid, It as NativePicker, J as ListFocus, Jt as useControllableState, K as LongPressOptions, Kt as ControllableState, L as parseISODate, Lt as ParsedTime, M as NumberField, Mn as orderRange, Mt as resolveDatePresentation, N as UseNumberFieldOptions, Nn as resolveWeekStart, Nt as resolveDateSurface, O as UseOverflowOptions, On as formatDateRange, Ot as DisclosureHandleRef, P as useNumberField, Pn as spanDays, Pt as HourFormat, Q as KeyboardHintOrientation, Qt as UseContainerRevealOptions, R as toISODate, Rt as TimePresentation, S as UseRestoreFocusOptions, Sn as useAnnounce, St as FieldControlState, T as usePendingChange, Tn as WeekStartsOn, Tt as UseDismissOptions, U as useMenuPress, Ut as parseISOTime, V as MenuPressOptions, Vt as isTimeInRange, W as useMediaQuery, Wt as resolveTimeSurface, X as UseListFocusOptions, Xt as ContentRevealOptions, Y as ListFocusOrientation, Yt as ContainerRevealOptions, Z as useListFocus, Zt as UseContainerReveal, _ as ScrollableAreaState, _n as AppShellMobile, _t as FileRejection, a as UseStreamingTextOptions, an as ClickableContainerHandlers, at as perceptualLightness, b as useScrollableArea, bn as AnnounceFn, bt as formatFileSize, c as ScrollOverflowState, cn as useClickableContainer, ct as useHotkeys, d as useScrollLock, dn as UseChatStreamScrollReturn, dt as GridRovingFocus, en as Combobox, et as UseKeyboardHintOptions, f as ScrollAxis, fn as useChatStreamScroll, ft as UseGridRovingFocusOptions, g as ScrollStickyContainment, gn as useChatNewMessages, gt as useFocusTrap, h as ScrollRole, hn as UseChatNewMessagesReturn, ht as UseFocusTrapOptions, i as StreamingTextSpeed, in as useCoarsePointer, it as imageModeFromPixels, j as useOverflow, jn as isSameRange, jt as DateSurface, k as UseOverflowReturn, kn as isDayOutsideSpan, kt as useDisclosureHandle, l as UseScrollOverflowResult, ln as ChatScrollToBottomOptions, lt as HandleRef, m as ScrollOverscroll, mn as UseChatNewMessagesOptions, mt as FocusTrap, n as UseTypeaheadReturn, nn as UseComboboxOptions, nt as ImageSampleRegion, o as snapToGraphemeBoundary, on as INTERACTIVE_SELECTORS, ot as useImageMode, p as ScrollAxisState, pn as CHAT_MESSAGE_CLASS, pt as useGridRovingFocus, q as useLongPress, qt as UseControllableStateOptions, r as useTypeahead, rn as useCombobox, rt as UseImageModeOptions, s as useStreamingText, sn as UseClickableContainerOptions, st as Hotkey, t as UseTypeaheadOptions, tn as ComboboxOption, tt as useKeyboardHint, u as useScrollOverflow, un as UseChatStreamScrollOptions, ut as useHandleRef, v as UseScrollableAreaOptions, vn as appShellMobileKey, vt as FileSelectionOptions, w as PendingChange, wn as RangeClickResult, wt as useFieldControlState, x as RestoreFocus, xn as AnnouncePoliteness, xt as selectFiles, y as UseScrollableAreaResult, yn as useAppShellMobile, yt as FileSelectionResult, z as todayISODate, zt as formatDisplayTime } from "../index-vizlhXVs.js";
2
2
  import { a as SearchableItem, c as useAsyncSource, i as SearchSource, n as AsyncSourceStatus, o as UseAsyncSourceOptions, r as CreateStaticSourceOptions, s as createStaticSource, t as AsyncSource } from "../useAsyncSource-xpQovjV_.js";
3
3
  import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
4
4
  import { a as ResizableRegionConfig, c as UseResizableMultiConfig, d as percent, f as useResizable, i as ResizableRegion, l as UseResizableOptions, n as ResizablePercentSize, o as ResizableSize, r as ResizableProps, s as ResizableState, t as ResizableDirection, u as UseResizableSingleOptions } from "../useResizable-CUoNPmUw.js";
5
- export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, type NativePicker, type NumberField, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type StreamingTextSpeed, type TimePresentation, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseControllableStateOptions, type UseDismissOptions, type UseFocusTrapOptions, type UseGridRovingFocusOptions, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, createStaticSource, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, isDayOutsideSpan, isRangeWithinSpan, isSameRange, isTimeInRange, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useControllableState, useDisclosureHandle, useDismiss, useFieldControlState, useFocusTrap, useGridRovingFocus, useHandleRef, useHotkeys, useListFocus, useLongPress, useMediaQuery, useNumberField, useOverflow, usePendingChange, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTypeahead };
5
+ export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type KeyboardHintOrientation, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, type MenuPress, type MenuPressOptions, type NativePicker, type NumberField, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type StreamingTextSpeed, type TimePresentation, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseFocusTrapOptions, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseKeyboardHint, type UseKeyboardHintOptions, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, createStaticSource, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, imageModeFromPixels, isDayOutsideSpan, isRangeWithinSpan, isSameRange, isTimeInRange, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDisclosureHandle, useDismiss, useFieldControlState, useFocusTrap, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useKeyboardHint, useListFocus, useLongPress, useMediaQuery, useMenuPress, useNumberField, useOverflow, usePendingChange, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTypeahead };
@@ -7,7 +7,7 @@ import { n as useClickableContainer, t as INTERACTIVE_SELECTORS } from "../useCl
7
7
  import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
8
8
  import { a as parseISOTime, c as useCoarsePointer, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "../useTimeValue-DWk6oTAZ.js";
9
9
  import { t as useCombobox } from "../useCombobox-CTo5C-gc.js";
10
- import { a as useResizable, i as percent, n as useStreamingText, o as useGridRovingFocus, r as useScrollOverflow, s as useControllableState, t as snapToGraphemeBoundary } from "../composables-DDI08XFF.js";
10
+ import { a as imageModeFromPixels, c as useGridRovingFocus, i as useKeyboardHint, l as useControllableState, n as useStreamingText, o as perceptualLightness, r as useScrollOverflow, s as useImageMode, t as snapToGraphemeBoundary, u as useContainerReveal } from "../composables-CWw6t-RJ.js";
11
11
  import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
12
12
  import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-CIXoE_8k.js";
13
13
  import { t as useDisclosureHandle } from "../useDisclosureHandle-Df3HhAfC.js";
@@ -16,9 +16,9 @@ import { t as useFieldControlState } from "../useFieldControlState-voICDrys.js";
16
16
  import { n as selectFiles, t as formatFileSize } from "../useFileSelection-BPtaegqK.js";
17
17
  import { n as useFocusTrap, t as useRestoreFocus } from "../useRestoreFocus-BvMdXVX9.js";
18
18
  import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
19
- import { t as useHotkeys } from "../useHotkeys-dABSK1o9.js";
19
+ import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-B3ahKLoZ.js";
20
20
  import { t as useListFocus } from "../useListFocus-D0iOJl39.js";
21
- import { t as useLongPress } from "../useLongPress-Cyxwa73s.js";
21
+ import { a as useLongPress, n as useMenuPress, t as resetMenuPress } from "../useMenuPress-DUmEy4TB.js";
22
22
  import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-fGHSSrFc.js";
23
23
  import { t as useNumberField } from "../useNumberField-DL-Radsp.js";
24
24
  import { n as useOverflow, t as computeOverflow } from "../useOverflow-VrwF5oek.js";
@@ -26,4 +26,4 @@ import { t as usePendingChange } from "../usePendingChange-ib-h8FZK.js";
26
26
  import { t as useScrollableArea } from "../useScrollableArea-DDk_CluT.js";
27
27
  import { t as useScrollLock } from "../scrollLock-BzIvIimL.js";
28
28
  import { t as useTypeahead } from "../useTypeahead-PAK8lMYz.js";
29
- export { CHAT_MESSAGE_CLASS, INTERACTIVE_SELECTORS, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, createStaticSource, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, isDayOutsideSpan, isRangeWithinSpan, isSameRange, isTimeInRange, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useControllableState, useDisclosureHandle, useDismiss, useFieldControlState, useFocusTrap, useGridRovingFocus, useHandleRef, useHotkeys, useListFocus, useLongPress, useMediaQuery, useNumberField, useOverflow, usePendingChange, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTypeahead };
29
+ export { CHAT_MESSAGE_CLASS, INTERACTIVE_SELECTORS, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, createStaticSource, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, imageModeFromPixels, isDayOutsideSpan, isRangeWithinSpan, isSameRange, isTimeInRange, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDisclosureHandle, useDismiss, useFieldControlState, useFocusTrap, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useKeyboardHint, useListFocus, useLongPress, useMediaQuery, useMenuPress, useNumberField, useOverflow, usePendingChange, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTypeahead };