@nuxt/ui 4.3.0 → 4.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 (414) hide show
  1. package/README.md +4 -4
  2. package/cli/package.json +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +4 -4
  5. package/dist/runtime/components/Accordion.d.vue.ts +15 -6
  6. package/dist/runtime/components/Accordion.vue +2 -1
  7. package/dist/runtime/components/Accordion.vue.d.ts +15 -6
  8. package/dist/runtime/components/Alert.d.vue.ts +5 -3
  9. package/dist/runtime/components/Alert.vue.d.ts +5 -3
  10. package/dist/runtime/components/App.d.vue.ts +8 -6
  11. package/dist/runtime/components/App.vue.d.ts +8 -6
  12. package/dist/runtime/components/AuthForm.d.vue.ts +87 -7
  13. package/dist/runtime/components/AuthForm.vue.d.ts +87 -7
  14. package/dist/runtime/components/Avatar.d.vue.ts +2 -2
  15. package/dist/runtime/components/Avatar.vue.d.ts +2 -2
  16. package/dist/runtime/components/AvatarGroup.d.vue.ts +1 -1
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  18. package/dist/runtime/components/Badge.d.vue.ts +3 -1
  19. package/dist/runtime/components/Badge.vue.d.ts +3 -1
  20. package/dist/runtime/components/Banner.d.vue.ts +3 -4
  21. package/dist/runtime/components/Banner.vue +49 -23
  22. package/dist/runtime/components/Banner.vue.d.ts +3 -4
  23. package/dist/runtime/components/BlogPost.d.vue.ts +4 -1
  24. package/dist/runtime/components/BlogPost.vue.d.ts +4 -1
  25. package/dist/runtime/components/BlogPosts.d.vue.ts +8 -6
  26. package/dist/runtime/components/BlogPosts.vue.d.ts +8 -6
  27. package/dist/runtime/components/Breadcrumb.d.vue.ts +8 -6
  28. package/dist/runtime/components/Breadcrumb.vue.d.ts +8 -6
  29. package/dist/runtime/components/Button.d.vue.ts +1 -1
  30. package/dist/runtime/components/Button.vue.d.ts +1 -1
  31. package/dist/runtime/components/Calendar.d.vue.ts +14 -6
  32. package/dist/runtime/components/Calendar.vue +13 -2
  33. package/dist/runtime/components/Calendar.vue.d.ts +14 -6
  34. package/dist/runtime/components/Card.d.vue.ts +1 -1
  35. package/dist/runtime/components/Card.vue.d.ts +1 -1
  36. package/dist/runtime/components/Carousel.d.vue.ts +10 -6
  37. package/dist/runtime/components/Carousel.vue.d.ts +10 -6
  38. package/dist/runtime/components/ChangelogVersion.d.vue.ts +4 -1
  39. package/dist/runtime/components/ChangelogVersion.vue.d.ts +4 -1
  40. package/dist/runtime/components/ChangelogVersions.d.vue.ts +12 -8
  41. package/dist/runtime/components/ChangelogVersions.vue +3 -2
  42. package/dist/runtime/components/ChangelogVersions.vue.d.ts +12 -8
  43. package/dist/runtime/components/ChatMessage.d.vue.ts +3 -1
  44. package/dist/runtime/components/ChatMessage.vue.d.ts +3 -1
  45. package/dist/runtime/components/ChatMessages.d.vue.ts +6 -1
  46. package/dist/runtime/components/ChatMessages.vue.d.ts +6 -1
  47. package/dist/runtime/components/ChatPalette.d.vue.ts +1 -1
  48. package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
  49. package/dist/runtime/components/ChatPrompt.d.vue.ts +9 -4
  50. package/dist/runtime/components/ChatPrompt.vue.d.ts +9 -4
  51. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +11 -3
  52. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +11 -3
  53. package/dist/runtime/components/Checkbox.d.vue.ts +2 -2
  54. package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
  55. package/dist/runtime/components/CheckboxGroup.d.vue.ts +12 -7
  56. package/dist/runtime/components/CheckboxGroup.vue.d.ts +12 -7
  57. package/dist/runtime/components/Chip.d.vue.ts +6 -3
  58. package/dist/runtime/components/Chip.vue.d.ts +6 -3
  59. package/dist/runtime/components/Collapsible.d.vue.ts +5 -3
  60. package/dist/runtime/components/Collapsible.vue.d.ts +5 -3
  61. package/dist/runtime/components/ColorPicker.d.vue.ts +7 -3
  62. package/dist/runtime/components/ColorPicker.vue.d.ts +7 -3
  63. package/dist/runtime/components/CommandPalette.d.vue.ts +36 -13
  64. package/dist/runtime/components/CommandPalette.vue +26 -18
  65. package/dist/runtime/components/CommandPalette.vue.d.ts +36 -13
  66. package/dist/runtime/components/Container.d.vue.ts +1 -1
  67. package/dist/runtime/components/Container.vue.d.ts +1 -1
  68. package/dist/runtime/components/ContextMenu.d.vue.ts +10 -6
  69. package/dist/runtime/components/ContextMenu.vue.d.ts +10 -6
  70. package/dist/runtime/components/ContextMenuContent.d.vue.ts +14 -6
  71. package/dist/runtime/components/ContextMenuContent.vue +10 -11
  72. package/dist/runtime/components/ContextMenuContent.vue.d.ts +14 -6
  73. package/dist/runtime/components/DashboardGroup.d.vue.ts +6 -1
  74. package/dist/runtime/components/DashboardGroup.vue.d.ts +6 -1
  75. package/dist/runtime/components/DashboardNavbar.d.vue.ts +4 -1
  76. package/dist/runtime/components/DashboardNavbar.vue.d.ts +4 -1
  77. package/dist/runtime/components/DashboardPanel.d.vue.ts +4 -1
  78. package/dist/runtime/components/DashboardPanel.vue.d.ts +4 -1
  79. package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +1 -1
  80. package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
  81. package/dist/runtime/components/DashboardSearch.d.vue.ts +13 -4
  82. package/dist/runtime/components/DashboardSearch.vue +3 -1
  83. package/dist/runtime/components/DashboardSearch.vue.d.ts +13 -4
  84. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +6 -1
  85. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +6 -1
  86. package/dist/runtime/components/DashboardSidebar.d.vue.ts +12 -7
  87. package/dist/runtime/components/DashboardSidebar.vue.d.ts +12 -7
  88. package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +5 -1
  89. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +5 -1
  90. package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +5 -1
  91. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +5 -1
  92. package/dist/runtime/components/DashboardToolbar.d.vue.ts +1 -1
  93. package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
  94. package/dist/runtime/components/Drawer.d.vue.ts +10 -3
  95. package/dist/runtime/components/Drawer.vue.d.ts +10 -3
  96. package/dist/runtime/components/DropdownMenu.d.vue.ts +10 -6
  97. package/dist/runtime/components/DropdownMenu.vue.d.ts +10 -6
  98. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +14 -6
  99. package/dist/runtime/components/DropdownMenuContent.vue +10 -11
  100. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +14 -6
  101. package/dist/runtime/components/Editor.d.vue.ts +29 -15
  102. package/dist/runtime/components/Editor.vue +30 -16
  103. package/dist/runtime/components/Editor.vue.d.ts +29 -15
  104. package/dist/runtime/components/EditorDragHandle.d.vue.ts +7 -3
  105. package/dist/runtime/components/EditorDragHandle.vue.d.ts +7 -3
  106. package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +12 -6
  107. package/dist/runtime/components/EditorEmojiMenu.vue +4 -1
  108. package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +12 -6
  109. package/dist/runtime/components/EditorMentionMenu.d.vue.ts +18 -8
  110. package/dist/runtime/components/EditorMentionMenu.vue +9 -2
  111. package/dist/runtime/components/EditorMentionMenu.vue.d.ts +18 -8
  112. package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +12 -6
  113. package/dist/runtime/components/EditorSuggestionMenu.vue +4 -1
  114. package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +12 -6
  115. package/dist/runtime/components/EditorToolbar.d.vue.ts +8 -6
  116. package/dist/runtime/components/EditorToolbar.vue +6 -6
  117. package/dist/runtime/components/EditorToolbar.vue.d.ts +8 -6
  118. package/dist/runtime/components/Empty.d.vue.ts +1 -1
  119. package/dist/runtime/components/Empty.vue.d.ts +1 -1
  120. package/dist/runtime/components/Error.d.vue.ts +6 -2
  121. package/dist/runtime/components/Error.vue +1 -1
  122. package/dist/runtime/components/Error.vue.d.ts +6 -2
  123. package/dist/runtime/components/FieldGroup.d.vue.ts +3 -1
  124. package/dist/runtime/components/FieldGroup.vue.d.ts +3 -1
  125. package/dist/runtime/components/FileUpload.d.vue.ts +12 -7
  126. package/dist/runtime/components/FileUpload.vue +2 -2
  127. package/dist/runtime/components/FileUpload.vue.d.ts +12 -7
  128. package/dist/runtime/components/Footer.d.vue.ts +3 -1
  129. package/dist/runtime/components/Footer.vue.d.ts +3 -1
  130. package/dist/runtime/components/FooterColumns.d.vue.ts +8 -6
  131. package/dist/runtime/components/FooterColumns.vue.d.ts +8 -6
  132. package/dist/runtime/components/Form.d.vue.ts +11 -6
  133. package/dist/runtime/components/Form.vue.d.ts +11 -6
  134. package/dist/runtime/components/FormField.d.vue.ts +3 -1
  135. package/dist/runtime/components/FormField.vue.d.ts +3 -1
  136. package/dist/runtime/components/Header.d.vue.ts +11 -7
  137. package/dist/runtime/components/Header.vue.d.ts +11 -7
  138. package/dist/runtime/components/Icon.d.vue.ts +1 -1
  139. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  140. package/dist/runtime/components/Input.d.vue.ts +13 -7
  141. package/dist/runtime/components/Input.vue.d.ts +13 -7
  142. package/dist/runtime/components/InputDate.d.vue.ts +14 -6
  143. package/dist/runtime/components/InputDate.vue.d.ts +14 -6
  144. package/dist/runtime/components/InputMenu.d.vue.ts +42 -15
  145. package/dist/runtime/components/InputMenu.vue +42 -10
  146. package/dist/runtime/components/InputMenu.vue.d.ts +42 -15
  147. package/dist/runtime/components/InputNumber.d.vue.ts +14 -8
  148. package/dist/runtime/components/InputNumber.vue +1 -1
  149. package/dist/runtime/components/InputNumber.vue.d.ts +14 -8
  150. package/dist/runtime/components/InputTags.d.vue.ts +17 -7
  151. package/dist/runtime/components/InputTags.vue.d.ts +17 -7
  152. package/dist/runtime/components/InputTime.d.vue.ts +5 -3
  153. package/dist/runtime/components/InputTime.vue.d.ts +5 -3
  154. package/dist/runtime/components/Kbd.d.vue.ts +3 -1
  155. package/dist/runtime/components/Kbd.vue.d.ts +3 -1
  156. package/dist/runtime/components/Link.d.vue.ts +6 -1
  157. package/dist/runtime/components/Link.vue.d.ts +6 -1
  158. package/dist/runtime/components/LinkBase.d.vue.ts +6 -3
  159. package/dist/runtime/components/LinkBase.vue.d.ts +6 -3
  160. package/dist/runtime/components/Main.d.vue.ts +4 -2
  161. package/dist/runtime/components/Main.vue +1 -1
  162. package/dist/runtime/components/Main.vue.d.ts +4 -2
  163. package/dist/runtime/components/Marquee.d.vue.ts +5 -1
  164. package/dist/runtime/components/Marquee.vue.d.ts +5 -1
  165. package/dist/runtime/components/Modal.d.vue.ts +10 -3
  166. package/dist/runtime/components/Modal.vue.d.ts +10 -3
  167. package/dist/runtime/components/NavigationMenu.d.vue.ts +16 -7
  168. package/dist/runtime/components/NavigationMenu.vue +3 -2
  169. package/dist/runtime/components/NavigationMenu.vue.d.ts +16 -7
  170. package/dist/runtime/components/Page.d.vue.ts +1 -1
  171. package/dist/runtime/components/Page.vue.d.ts +1 -1
  172. package/dist/runtime/components/PageAnchors.d.vue.ts +8 -6
  173. package/dist/runtime/components/PageAnchors.vue.d.ts +8 -6
  174. package/dist/runtime/components/PageAside.d.vue.ts +3 -1
  175. package/dist/runtime/components/PageAside.vue.d.ts +3 -1
  176. package/dist/runtime/components/PageBody.d.vue.ts +1 -1
  177. package/dist/runtime/components/PageBody.vue.d.ts +1 -1
  178. package/dist/runtime/components/PageCTA.d.vue.ts +4 -1
  179. package/dist/runtime/components/PageCTA.vue.d.ts +4 -1
  180. package/dist/runtime/components/PageCard.d.vue.ts +3 -1
  181. package/dist/runtime/components/PageCard.vue.d.ts +3 -1
  182. package/dist/runtime/components/PageColumns.d.vue.ts +1 -1
  183. package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
  184. package/dist/runtime/components/PageFeature.d.vue.ts +3 -1
  185. package/dist/runtime/components/PageFeature.vue.d.ts +3 -1
  186. package/dist/runtime/components/PageGrid.d.vue.ts +1 -1
  187. package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
  188. package/dist/runtime/components/PageHeader.d.vue.ts +1 -1
  189. package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
  190. package/dist/runtime/components/PageHero.d.vue.ts +3 -1
  191. package/dist/runtime/components/PageHero.vue.d.ts +3 -1
  192. package/dist/runtime/components/PageLinks.d.vue.ts +8 -6
  193. package/dist/runtime/components/PageLinks.vue.d.ts +8 -6
  194. package/dist/runtime/components/PageList.d.vue.ts +3 -1
  195. package/dist/runtime/components/PageList.vue.d.ts +3 -1
  196. package/dist/runtime/components/PageLogos.d.vue.ts +3 -1
  197. package/dist/runtime/components/PageLogos.vue.d.ts +3 -1
  198. package/dist/runtime/components/PageSection.d.vue.ts +4 -1
  199. package/dist/runtime/components/PageSection.vue.d.ts +4 -1
  200. package/dist/runtime/components/Pagination.d.vue.ts +13 -3
  201. package/dist/runtime/components/Pagination.vue.d.ts +13 -3
  202. package/dist/runtime/components/PinInput.d.vue.ts +13 -6
  203. package/dist/runtime/components/PinInput.vue.d.ts +13 -6
  204. package/dist/runtime/components/Popover.d.vue.ts +11 -6
  205. package/dist/runtime/components/Popover.vue.d.ts +11 -6
  206. package/dist/runtime/components/PricingPlan.d.vue.ts +3 -1
  207. package/dist/runtime/components/PricingPlan.vue.d.ts +3 -1
  208. package/dist/runtime/components/PricingPlans.d.vue.ts +8 -6
  209. package/dist/runtime/components/PricingPlans.vue.d.ts +8 -6
  210. package/dist/runtime/components/PricingTable.d.vue.ts +8 -6
  211. package/dist/runtime/components/PricingTable.vue.d.ts +8 -6
  212. package/dist/runtime/components/Progress.d.vue.ts +7 -3
  213. package/dist/runtime/components/Progress.vue.d.ts +7 -3
  214. package/dist/runtime/components/RadioGroup.d.vue.ts +12 -7
  215. package/dist/runtime/components/RadioGroup.vue.d.ts +12 -7
  216. package/dist/runtime/components/ScrollArea.d.vue.ts +10 -6
  217. package/dist/runtime/components/ScrollArea.vue.d.ts +10 -6
  218. package/dist/runtime/components/Select.d.vue.ts +20 -6
  219. package/dist/runtime/components/Select.vue +10 -5
  220. package/dist/runtime/components/Select.vue.d.ts +20 -6
  221. package/dist/runtime/components/SelectMenu.d.vue.ts +41 -15
  222. package/dist/runtime/components/SelectMenu.vue +44 -11
  223. package/dist/runtime/components/SelectMenu.vue.d.ts +41 -15
  224. package/dist/runtime/components/Separator.d.vue.ts +4 -2
  225. package/dist/runtime/components/Separator.vue.d.ts +4 -2
  226. package/dist/runtime/components/Skeleton.d.vue.ts +2 -2
  227. package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
  228. package/dist/runtime/components/Slideover.d.vue.ts +11 -3
  229. package/dist/runtime/components/Slideover.vue.d.ts +11 -3
  230. package/dist/runtime/components/Slider.d.vue.ts +13 -8
  231. package/dist/runtime/components/Slider.vue.d.ts +13 -8
  232. package/dist/runtime/components/Stepper.d.vue.ts +23 -9
  233. package/dist/runtime/components/Stepper.vue +20 -16
  234. package/dist/runtime/components/Stepper.vue.d.ts +23 -9
  235. package/dist/runtime/components/Switch.d.vue.ts +2 -2
  236. package/dist/runtime/components/Switch.vue.d.ts +2 -2
  237. package/dist/runtime/components/Table.d.vue.ts +24 -9
  238. package/dist/runtime/components/Table.vue.d.ts +24 -9
  239. package/dist/runtime/components/Tabs.d.vue.ts +16 -7
  240. package/dist/runtime/components/Tabs.vue +5 -4
  241. package/dist/runtime/components/Tabs.vue.d.ts +16 -7
  242. package/dist/runtime/components/Textarea.d.vue.ts +13 -7
  243. package/dist/runtime/components/Textarea.vue.d.ts +13 -7
  244. package/dist/runtime/components/Timeline.d.vue.ts +24 -10
  245. package/dist/runtime/components/Timeline.vue +26 -17
  246. package/dist/runtime/components/Timeline.vue.d.ts +24 -10
  247. package/dist/runtime/components/Toast.d.vue.ts +7 -3
  248. package/dist/runtime/components/Toast.vue.d.ts +7 -3
  249. package/dist/runtime/components/Toaster.d.vue.ts +7 -1
  250. package/dist/runtime/components/Toaster.vue.d.ts +7 -1
  251. package/dist/runtime/components/Tooltip.d.vue.ts +5 -3
  252. package/dist/runtime/components/Tooltip.vue.d.ts +5 -3
  253. package/dist/runtime/components/Tree.d.vue.ts +13 -8
  254. package/dist/runtime/components/Tree.vue.d.ts +13 -8
  255. package/dist/runtime/components/User.d.vue.ts +3 -1
  256. package/dist/runtime/components/User.vue.d.ts +3 -1
  257. package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +1 -1
  258. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
  259. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +4 -1
  260. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +4 -1
  261. package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +1 -1
  262. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
  263. package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +3 -1
  264. package/dist/runtime/components/color-mode/ColorModeSelect.vue +4 -0
  265. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +3 -1
  266. package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
  267. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  268. package/dist/runtime/components/content/ContentNavigation.d.vue.ts +10 -6
  269. package/dist/runtime/components/content/ContentNavigation.vue.d.ts +10 -6
  270. package/dist/runtime/components/content/ContentSearch.d.vue.ts +16 -8
  271. package/dist/runtime/components/content/ContentSearch.vue +3 -1
  272. package/dist/runtime/components/content/ContentSearch.vue.d.ts +16 -8
  273. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +6 -1
  274. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +6 -1
  275. package/dist/runtime/components/content/ContentSurround.d.vue.ts +8 -6
  276. package/dist/runtime/components/content/ContentSurround.vue +1 -1
  277. package/dist/runtime/components/content/ContentSurround.vue.d.ts +8 -6
  278. package/dist/runtime/components/content/ContentToc.d.vue.ts +11 -6
  279. package/dist/runtime/components/content/ContentToc.vue.d.ts +11 -6
  280. package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +7 -3
  281. package/dist/runtime/components/locale/LocaleSelect.vue +4 -0
  282. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +7 -3
  283. package/dist/runtime/components/prose/A.d.vue.ts +1 -1
  284. package/dist/runtime/components/prose/A.vue.d.ts +1 -1
  285. package/dist/runtime/components/prose/Accordion.d.vue.ts +3 -1
  286. package/dist/runtime/components/prose/Accordion.vue.d.ts +3 -1
  287. package/dist/runtime/components/prose/AccordionItem.d.vue.ts +1 -1
  288. package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
  289. package/dist/runtime/components/prose/Badge.d.vue.ts +1 -1
  290. package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
  291. package/dist/runtime/components/prose/Blockquote.d.vue.ts +1 -1
  292. package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
  293. package/dist/runtime/components/prose/Callout.d.vue.ts +1 -1
  294. package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
  295. package/dist/runtime/components/prose/Card.d.vue.ts +1 -1
  296. package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
  297. package/dist/runtime/components/prose/CardGroup.d.vue.ts +1 -1
  298. package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
  299. package/dist/runtime/components/prose/Code.d.vue.ts +1 -1
  300. package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
  301. package/dist/runtime/components/prose/CodeCollapse.d.vue.ts +2 -2
  302. package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +2 -2
  303. package/dist/runtime/components/prose/CodeGroup.d.vue.ts +5 -3
  304. package/dist/runtime/components/prose/CodeGroup.vue.d.ts +5 -3
  305. package/dist/runtime/components/prose/CodeIcon.d.vue.ts +1 -1
  306. package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
  307. package/dist/runtime/components/prose/CodePreview.d.vue.ts +1 -1
  308. package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
  309. package/dist/runtime/components/prose/CodeTree.d.vue.ts +2 -2
  310. package/dist/runtime/components/prose/CodeTree.vue +6 -3
  311. package/dist/runtime/components/prose/CodeTree.vue.d.ts +2 -2
  312. package/dist/runtime/components/prose/Collapsible.d.vue.ts +1 -1
  313. package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
  314. package/dist/runtime/components/prose/Em.d.vue.ts +1 -1
  315. package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
  316. package/dist/runtime/components/prose/Field.d.vue.ts +1 -1
  317. package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
  318. package/dist/runtime/components/prose/FieldGroup.d.vue.ts +1 -1
  319. package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
  320. package/dist/runtime/components/prose/H1.d.vue.ts +1 -1
  321. package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
  322. package/dist/runtime/components/prose/H2.d.vue.ts +1 -1
  323. package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
  324. package/dist/runtime/components/prose/H3.d.vue.ts +1 -1
  325. package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
  326. package/dist/runtime/components/prose/H4.d.vue.ts +1 -1
  327. package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
  328. package/dist/runtime/components/prose/Hr.d.vue.ts +1 -1
  329. package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
  330. package/dist/runtime/components/prose/Icon.d.vue.ts +1 -1
  331. package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
  332. package/dist/runtime/components/prose/Img.d.vue.ts +3 -1
  333. package/dist/runtime/components/prose/Img.vue.d.ts +3 -1
  334. package/dist/runtime/components/prose/Kbd.d.vue.ts +1 -1
  335. package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
  336. package/dist/runtime/components/prose/Li.d.vue.ts +1 -1
  337. package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
  338. package/dist/runtime/components/prose/Ol.d.vue.ts +1 -1
  339. package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
  340. package/dist/runtime/components/prose/P.d.vue.ts +1 -1
  341. package/dist/runtime/components/prose/P.vue.d.ts +1 -1
  342. package/dist/runtime/components/prose/Pre.d.vue.ts +1 -1
  343. package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
  344. package/dist/runtime/components/prose/Steps.d.vue.ts +1 -1
  345. package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
  346. package/dist/runtime/components/prose/Strong.d.vue.ts +1 -1
  347. package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
  348. package/dist/runtime/components/prose/Table.d.vue.ts +1 -1
  349. package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
  350. package/dist/runtime/components/prose/Tabs.d.vue.ts +5 -3
  351. package/dist/runtime/components/prose/Tabs.vue.d.ts +5 -3
  352. package/dist/runtime/components/prose/TabsItem.d.vue.ts +1 -1
  353. package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
  354. package/dist/runtime/components/prose/Tbody.d.vue.ts +1 -1
  355. package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
  356. package/dist/runtime/components/prose/Td.d.vue.ts +2 -1
  357. package/dist/runtime/components/prose/Td.vue +2 -1
  358. package/dist/runtime/components/prose/Td.vue.d.ts +2 -1
  359. package/dist/runtime/components/prose/Th.d.vue.ts +2 -1
  360. package/dist/runtime/components/prose/Th.vue +2 -1
  361. package/dist/runtime/components/prose/Th.vue.d.ts +2 -1
  362. package/dist/runtime/components/prose/Thead.d.vue.ts +1 -1
  363. package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
  364. package/dist/runtime/components/prose/Tr.d.vue.ts +1 -1
  365. package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
  366. package/dist/runtime/components/prose/Ul.d.vue.ts +1 -1
  367. package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
  368. package/dist/runtime/components/prose/callout/Caution.d.vue.ts +2 -2
  369. package/dist/runtime/components/prose/callout/Caution.vue.d.ts +2 -2
  370. package/dist/runtime/components/prose/callout/Note.d.vue.ts +2 -2
  371. package/dist/runtime/components/prose/callout/Note.vue.d.ts +2 -2
  372. package/dist/runtime/components/prose/callout/Tip.d.vue.ts +2 -2
  373. package/dist/runtime/components/prose/callout/Tip.vue.d.ts +2 -2
  374. package/dist/runtime/components/prose/callout/Warning.d.vue.ts +2 -2
  375. package/dist/runtime/components/prose/callout/Warning.vue.d.ts +2 -2
  376. package/dist/runtime/composables/defineShortcuts.js +1 -1
  377. package/dist/runtime/composables/useEditorMenu.d.ts +12 -1
  378. package/dist/runtime/composables/useEditorMenu.js +131 -144
  379. package/dist/runtime/composables/useOverlay.d.ts +3 -1
  380. package/dist/runtime/locale/cs.js +2 -2
  381. package/dist/runtime/locale/sk.js +2 -2
  382. package/dist/runtime/types/editor.d.ts +2 -1
  383. package/dist/runtime/utils/ai.d.ts +7 -0
  384. package/dist/runtime/utils/editor.d.ts +1 -1
  385. package/dist/runtime/utils/editor.js +28 -10
  386. package/dist/runtime/utils/fuse.js +22 -3
  387. package/dist/runtime/utils/index.d.ts +1 -0
  388. package/dist/runtime/utils/index.js +2 -2
  389. package/dist/runtime/utils/virtualizer.d.ts +1 -3
  390. package/dist/runtime/utils/virtualizer.js +15 -6
  391. package/dist/runtime/vue/components/Icon.d.vue.ts +1 -1
  392. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  393. package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +3 -1
  394. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +4 -0
  395. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +3 -1
  396. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
  397. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  398. package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +6 -1
  399. package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +6 -1
  400. package/dist/runtime/vue/overrides/inertia/LinkBase.d.vue.ts +6 -3
  401. package/dist/runtime/vue/overrides/inertia/LinkBase.vue.d.ts +6 -3
  402. package/dist/runtime/vue/overrides/none/Link.d.vue.ts +6 -1
  403. package/dist/runtime/vue/overrides/none/Link.vue +11 -3
  404. package/dist/runtime/vue/overrides/none/Link.vue.d.ts +6 -1
  405. package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +6 -1
  406. package/dist/runtime/vue/overrides/vue-router/Link.vue +2 -2
  407. package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +6 -1
  408. package/dist/runtime/vue/plugins/router.d.ts +4 -0
  409. package/dist/runtime/vue/plugins/router.js +7 -0
  410. package/dist/shared/{ui.DegC4tw1.mjs → ui.Ddb3hKxo.mjs} +238 -30
  411. package/dist/unplugin.mjs +5 -3
  412. package/dist/vite.d.mts +2 -3
  413. package/dist/vite.mjs +1 -1
  414. package/package.json +44 -28
@@ -65,8 +65,16 @@ export interface InputDateSlots {
65
65
  ui: InputDate['ui'];
66
66
  }): any;
67
67
  }
68
- declare const __VLS_export: <R extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
69
- props: __VLS_PrettifyLocal<InputDateProps<R> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:modelValue", date: InputDateModelValue<R>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
68
+ declare const _default: typeof __VLS_export;
69
+ export default _default;
70
+ declare const __VLS_export: <R extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
71
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<InputDateProps<R> & {
72
+ onBlur?: ((event: FocusEvent) => any) | undefined;
73
+ onChange?: ((event: Event) => any) | undefined;
74
+ onFocus?: ((event: FocusEvent) => any) | undefined;
75
+ "onUpdate:modelValue"?: ((date: InputDateModelValue<R>) => any) | undefined;
76
+ "onUpdate:placeholder"?: ((...args: DateValue[]) => any) | undefined;
77
+ }> & (typeof globalThis extends {
70
78
  __VLS_PROPS_FALLBACK: infer P;
71
79
  } ? P : {});
72
80
  expose: (exposed: import("vue").ShallowUnwrapRef<{
@@ -78,8 +86,8 @@ declare const __VLS_export: <R extends boolean>(__VLS_props: NonNullable<Awaited
78
86
  }>) => import("vue").VNode & {
79
87
  __ctx?: Awaited<typeof __VLS_setup>;
80
88
  };
81
- declare const _default: typeof __VLS_export;
82
- export default _default;
83
- type __VLS_PrettifyLocal<T> = {
89
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
90
+ [K in keyof T]: T[K];
91
+ } : {
84
92
  [K in keyof T as K]: T[K];
85
- } & {};
93
+ }) & {};
@@ -2,7 +2,7 @@ import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, Combob
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/ui/input-menu';
4
4
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
5
- import type { AvatarProps, ChipProps, IconProps } from '../types';
5
+ import type { AvatarProps, ButtonProps, ChipProps, IconProps, LinkPropsKeys } from '../types';
6
6
  import type { ModelModifiers } from '../types/input';
7
7
  import type { InputHTMLAttributes } from '../types/html';
8
8
  import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
@@ -29,7 +29,7 @@ export type InputMenuItem = InputMenuValue | {
29
29
  ui?: Pick<InputMenu['slots'], 'tagsItem' | 'tagsItemText' | 'tagsItemDelete' | 'tagsItemDeleteIcon' | 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChip' | 'itemLeadingChipSize' | 'itemWrapper' | 'itemLabel' | 'itemDescription' | 'itemTrailing' | 'itemTrailingIcon'>;
30
30
  [key: string]: any;
31
31
  };
32
- export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus'>, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'name' | 'type' | 'placeholder' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size' | 'min' | 'max' | 'step'> {
32
+ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'resetModelValueOnClear' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus' | 'by'>, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'name' | 'type' | 'placeholder' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size' | 'min' | 'max' | 'step'> {
33
33
  /**
34
34
  * The element or component this component should render as.
35
35
  * @defaultValue 'div'
@@ -73,6 +73,18 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
73
73
  * @IconifyIcon
74
74
  */
75
75
  deleteIcon?: IconProps['name'];
76
+ /**
77
+ * Display a clear button to reset the model value.
78
+ * Can be an object to pass additional props to the Button.
79
+ * @defaultValue false
80
+ */
81
+ clear?: boolean | Partial<Omit<ButtonProps, LinkPropsKeys>>;
82
+ /**
83
+ * The icon displayed in the clear button.
84
+ * @defaultValue appConfig.ui.icons.close
85
+ * @IconifyIcon
86
+ */
87
+ clearIcon?: IconProps['name'];
76
88
  /**
77
89
  * The content of the menu.
78
90
  * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
@@ -100,10 +112,10 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
100
112
  */
101
113
  overscan?: number;
102
114
  /**
103
- * Estimated size (in px) of each item
115
+ * Estimated size (in px) of each item, or a function that returns the size for a given index
104
116
  * @defaultValue 32
105
117
  */
106
- estimateSize?: number;
118
+ estimateSize?: number | ((index: number) => number);
107
119
  };
108
120
  /**
109
121
  * When `items` is an array of objects, select the field to use as the value instead of the object itself.
@@ -156,6 +168,7 @@ export type InputMenuEmits<A extends ArrayOrNested<InputMenuItem>, VK extends Ge
156
168
  'blur': [event: FocusEvent];
157
169
  'focus': [event: FocusEvent];
158
170
  'create': [item: string];
171
+ 'clear': [];
159
172
  /** Event handler when highlighted element changes. */
160
173
  'highlight': [
161
174
  payload: {
@@ -206,29 +219,43 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
206
219
  item: string;
207
220
  }): any;
208
221
  }
209
- declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
210
- props: __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
222
+ declare const _default: typeof __VLS_export;
223
+ export default _default;
224
+ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
225
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
211
226
  searchTerm?: string;
212
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
213
- ref: HTMLElement;
214
- value: GetModelValue<T, VK, M>;
215
- } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void) & ((evt: "update:searchTerm", value: string) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
227
+ }) & {
228
+ onClear?: (() => any) | undefined;
229
+ onBlur?: ((event: FocusEvent) => any) | undefined;
230
+ onChange?: ((event: Event) => any) | undefined;
231
+ onFocus?: ((event: FocusEvent) => any) | undefined;
232
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
233
+ onCreate?: ((item: string) => any) | undefined;
234
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
235
+ onHighlight?: ((payload: {
236
+ ref: HTMLElement;
237
+ value: GetModelValue<T, VK, M>;
238
+ } | undefined) => any) | undefined;
239
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
240
+ "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
241
+ }> & (typeof globalThis extends {
216
242
  __VLS_PROPS_FALLBACK: infer P;
217
243
  } ? P : {});
218
244
  expose: (exposed: import("vue").ShallowUnwrapRef<{
219
245
  inputRef: Readonly<import("vue").Ref<HTMLInputElement, HTMLInputElement>>;
246
+ viewportRef: Readonly<import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>>;
220
247
  }>) => void;
221
248
  attrs: any;
222
249
  slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
223
- emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
250
+ emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
224
251
  ref: HTMLElement;
225
252
  value: GetModelValue<T, VK, M>;
226
253
  } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
227
254
  }>) => import("vue").VNode & {
228
255
  __ctx?: Awaited<typeof __VLS_setup>;
229
256
  };
230
- declare const _default: typeof __VLS_export;
231
- export default _default;
232
- type __VLS_PrettifyLocal<T> = {
257
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
258
+ [K in keyof T]: T[K];
259
+ } : {
233
260
  [K in keyof T as K]: T[K];
234
- } & {};
261
+ }) & {};
@@ -4,7 +4,7 @@ import theme from "#build/ui/input-menu";
4
4
 
5
5
  <script setup>
6
6
  import { computed, useTemplateRef, toRef, onMounted, toRaw, nextTick } from "vue";
7
- import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxVirtualizer, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, TagsInputRoot, TagsInputItem, TagsInputItemText, TagsInputItemDelete, TagsInputInput, useForwardPropsEmits, useFilter } from "reka-ui";
7
+ import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxCancel, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxVirtualizer, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, TagsInputRoot, TagsInputItem, TagsInputItemText, TagsInputItemDelete, TagsInputInput, useForwardPropsEmits, useFilter } from "reka-ui";
8
8
  import { defu } from "defu";
9
9
  import { isEqual } from "ohash/utils";
10
10
  import { reactivePick, createReusableTemplate } from "@vueuse/core";
@@ -19,6 +19,7 @@ import { getEstimateSize } from "../utils/virtualizer";
19
19
  import { tv } from "../utils/tv";
20
20
  import UIcon from "./Icon.vue";
21
21
  import UAvatar from "./Avatar.vue";
22
+ import UButton from "./Button.vue";
22
23
  import UChip from "./Chip.vue";
23
24
  defineOptions({ inheritAttrs: false });
24
25
  const props = defineProps({
@@ -35,6 +36,8 @@ const props = defineProps({
35
36
  trailingIcon: { type: null, required: false },
36
37
  selectedIcon: { type: null, required: false },
37
38
  deleteIcon: { type: null, required: false },
39
+ clear: { type: [Boolean, Object], required: false },
40
+ clearIcon: { type: null, required: false },
38
41
  content: { type: Object, required: false },
39
42
  arrow: { type: [Boolean, Object], required: false },
40
43
  portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
@@ -59,9 +62,11 @@ const props = defineProps({
59
62
  name: { type: String, required: false },
60
63
  resetSearchTermOnBlur: { type: Boolean, required: false, default: true },
61
64
  resetSearchTermOnSelect: { type: Boolean, required: false, default: true },
65
+ resetModelValueOnClear: { type: Boolean, required: false, default: true },
62
66
  highlightOnHover: { type: Boolean, required: false },
63
67
  openOnClick: { type: Boolean, required: false },
64
68
  openOnFocus: { type: Boolean, required: false },
69
+ by: { type: [String, Function], required: false },
65
70
  icon: { type: null, required: false },
66
71
  avatar: { type: Object, required: false },
67
72
  leading: { type: Boolean, required: false },
@@ -70,20 +75,21 @@ const props = defineProps({
70
75
  loading: { type: Boolean, required: false },
71
76
  loadingIcon: { type: null, required: false }
72
77
  });
73
- const emits = defineEmits(["update:open", "change", "blur", "focus", "create", "highlight", "remove-tag", "update:modelValue"]);
78
+ const emits = defineEmits(["update:open", "change", "blur", "focus", "create", "clear", "highlight", "remove-tag", "update:modelValue"]);
74
79
  const slots = defineSlots();
75
80
  const searchTerm = defineModel("searchTerm", { type: String, ...{ default: "" } });
76
81
  const { t } = useLocale();
77
82
  const appConfig = useAppConfig();
78
83
  const { contains } = useFilter({ sensitivity: "base" });
79
- const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "highlightOnHover", "openOnClick", "openOnFocus"), emits);
84
+ const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "by"), emits);
80
85
  const portalProps = usePortal(toRef(() => props.portal));
81
86
  const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8, position: "popper" }));
82
87
  const arrowProps = toRef(() => props.arrow);
88
+ const clearProps = computed(() => typeof props.clear === "object" ? props.clear : {});
83
89
  const virtualizerProps = toRef(() => {
84
90
  if (!props.virtualize) return false;
85
91
  return defu(typeof props.virtualize === "boolean" ? {} : props.virtualize, {
86
- estimateSize: getEstimateSize(items.value, inputSize.value || "md", props.descriptionKey)
92
+ estimateSize: getEstimateSize(filteredItems.value, inputSize.value || "md", props.descriptionKey, !!slots["item-description"])
87
93
  });
88
94
  });
89
95
  const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, size: formGroupSize, color, id, name, highlight, disabled, ariaAttrs } = useFormField(props);
@@ -119,7 +125,8 @@ const items = computed(() => groups.value.flatMap((group) => group));
119
125
  function displayValue(value) {
120
126
  return getDisplayValue(items.value, value, {
121
127
  labelKey: props.labelKey,
122
- valueKey: props.valueKey
128
+ valueKey: props.valueKey,
129
+ by: props.by
123
130
  }) ?? "";
124
131
  }
125
132
  const groups = computed(
@@ -155,7 +162,7 @@ const createItem = computed(() => {
155
162
  }
156
163
  const newItem = props.valueKey ? { [props.valueKey]: searchTerm.value } : searchTerm.value;
157
164
  if (typeof props.createItem === "object" && props.createItem.when === "always" || props.createItem === "always") {
158
- return !filteredItems.value.find((item) => compare(item, newItem, props.valueKey));
165
+ return !filteredItems.value.find((item) => compare(item, newItem, props.by ?? props.valueKey));
159
166
  }
160
167
  return !filteredItems.value.length;
161
168
  });
@@ -251,8 +258,19 @@ function onSelect(e, item) {
251
258
  function isInputItem(item) {
252
259
  return typeof item === "object" && item !== null;
253
260
  }
261
+ function isModelValueEmpty(modelValue) {
262
+ if (props.multiple && Array.isArray(modelValue)) {
263
+ return modelValue.length === 0;
264
+ }
265
+ return modelValue === void 0 || modelValue === null || modelValue === "";
266
+ }
267
+ function onClear() {
268
+ emits("clear");
269
+ }
270
+ const viewportRef = useTemplateRef("viewportRef");
254
271
  defineExpose({
255
- inputRef: toRef(() => inputRef.value?.$el)
272
+ inputRef: toRef(() => inputRef.value?.$el),
273
+ viewportRef: toRef(() => viewportRef.value)
256
274
  });
257
275
  </script>
258
276
 
@@ -401,9 +419,23 @@ defineExpose({
401
419
  </slot>
402
420
  </span>
403
421
 
404
- <ComboboxTrigger v-if="isTrailing || !!slots.trailing" data-slot="trailing" :class="ui.trailing({ class: props.ui?.trailing })">
422
+ <ComboboxTrigger v-if="isTrailing || !!slots.trailing || !!clear" data-slot="trailing" :class="ui.trailing({ class: props.ui?.trailing })">
405
423
  <slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
406
- <UIcon v-if="trailingIconName" :name="trailingIconName" data-slot="trailingIcon" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
424
+ <ComboboxCancel v-if="!!clear && !isModelValueEmpty(modelValue)" as-child>
425
+ <UButton
426
+ as="span"
427
+ :icon="clearIcon || appConfig.ui.icons.close"
428
+ variant="link"
429
+ color="neutral"
430
+ tabindex="-1"
431
+ v-bind="clearProps"
432
+ data-slot="trailingClear"
433
+ :class="ui.trailingClear({ class: props.ui?.trailingClear })"
434
+ @click.stop="onClear"
435
+ />
436
+ </ComboboxCancel>
437
+
438
+ <UIcon v-else-if="trailingIconName" :name="trailingIconName" data-slot="trailingIcon" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
407
439
  </slot>
408
440
  </ComboboxTrigger>
409
441
  </ComboboxAnchor>
@@ -418,7 +450,7 @@ defineExpose({
418
450
  </slot>
419
451
  </ComboboxEmpty>
420
452
 
421
- <div role="presentation" data-slot="viewport" :class="ui.viewport({ class: props.ui?.viewport })">
453
+ <div ref="viewportRef" role="presentation" data-slot="viewport" :class="ui.viewport({ class: props.ui?.viewport })">
422
454
  <template v-if="!!virtualize">
423
455
  <ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'top'" />
424
456
 
@@ -2,7 +2,7 @@ import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, Combob
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/ui/input-menu';
4
4
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
5
- import type { AvatarProps, ChipProps, IconProps } from '../types';
5
+ import type { AvatarProps, ButtonProps, ChipProps, IconProps, LinkPropsKeys } from '../types';
6
6
  import type { ModelModifiers } from '../types/input';
7
7
  import type { InputHTMLAttributes } from '../types/html';
8
8
  import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
@@ -29,7 +29,7 @@ export type InputMenuItem = InputMenuValue | {
29
29
  ui?: Pick<InputMenu['slots'], 'tagsItem' | 'tagsItemText' | 'tagsItemDelete' | 'tagsItemDeleteIcon' | 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChip' | 'itemLeadingChipSize' | 'itemWrapper' | 'itemLabel' | 'itemDescription' | 'itemTrailing' | 'itemTrailingIcon'>;
30
30
  [key: string]: any;
31
31
  };
32
- export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus'>, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'name' | 'type' | 'placeholder' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size' | 'min' | 'max' | 'step'> {
32
+ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'resetModelValueOnClear' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus' | 'by'>, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'name' | 'type' | 'placeholder' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size' | 'min' | 'max' | 'step'> {
33
33
  /**
34
34
  * The element or component this component should render as.
35
35
  * @defaultValue 'div'
@@ -73,6 +73,18 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
73
73
  * @IconifyIcon
74
74
  */
75
75
  deleteIcon?: IconProps['name'];
76
+ /**
77
+ * Display a clear button to reset the model value.
78
+ * Can be an object to pass additional props to the Button.
79
+ * @defaultValue false
80
+ */
81
+ clear?: boolean | Partial<Omit<ButtonProps, LinkPropsKeys>>;
82
+ /**
83
+ * The icon displayed in the clear button.
84
+ * @defaultValue appConfig.ui.icons.close
85
+ * @IconifyIcon
86
+ */
87
+ clearIcon?: IconProps['name'];
76
88
  /**
77
89
  * The content of the menu.
78
90
  * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
@@ -100,10 +112,10 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
100
112
  */
101
113
  overscan?: number;
102
114
  /**
103
- * Estimated size (in px) of each item
115
+ * Estimated size (in px) of each item, or a function that returns the size for a given index
104
116
  * @defaultValue 32
105
117
  */
106
- estimateSize?: number;
118
+ estimateSize?: number | ((index: number) => number);
107
119
  };
108
120
  /**
109
121
  * When `items` is an array of objects, select the field to use as the value instead of the object itself.
@@ -156,6 +168,7 @@ export type InputMenuEmits<A extends ArrayOrNested<InputMenuItem>, VK extends Ge
156
168
  'blur': [event: FocusEvent];
157
169
  'focus': [event: FocusEvent];
158
170
  'create': [item: string];
171
+ 'clear': [];
159
172
  /** Event handler when highlighted element changes. */
160
173
  'highlight': [
161
174
  payload: {
@@ -206,29 +219,43 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
206
219
  item: string;
207
220
  }): any;
208
221
  }
209
- declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
210
- props: __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
222
+ declare const _default: typeof __VLS_export;
223
+ export default _default;
224
+ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
225
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
211
226
  searchTerm?: string;
212
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
213
- ref: HTMLElement;
214
- value: GetModelValue<T, VK, M>;
215
- } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void) & ((evt: "update:searchTerm", value: string) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
227
+ }) & {
228
+ onClear?: (() => any) | undefined;
229
+ onBlur?: ((event: FocusEvent) => any) | undefined;
230
+ onChange?: ((event: Event) => any) | undefined;
231
+ onFocus?: ((event: FocusEvent) => any) | undefined;
232
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
233
+ onCreate?: ((item: string) => any) | undefined;
234
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
235
+ onHighlight?: ((payload: {
236
+ ref: HTMLElement;
237
+ value: GetModelValue<T, VK, M>;
238
+ } | undefined) => any) | undefined;
239
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
240
+ "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
241
+ }> & (typeof globalThis extends {
216
242
  __VLS_PROPS_FALLBACK: infer P;
217
243
  } ? P : {});
218
244
  expose: (exposed: import("vue").ShallowUnwrapRef<{
219
245
  inputRef: Readonly<import("vue").Ref<HTMLInputElement, HTMLInputElement>>;
246
+ viewportRef: Readonly<import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>>;
220
247
  }>) => void;
221
248
  attrs: any;
222
249
  slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
223
- emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
250
+ emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
224
251
  ref: HTMLElement;
225
252
  value: GetModelValue<T, VK, M>;
226
253
  } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
227
254
  }>) => import("vue").VNode & {
228
255
  __ctx?: Awaited<typeof __VLS_setup>;
229
256
  };
230
- declare const _default: typeof __VLS_export;
231
- export default _default;
232
- type __VLS_PrettifyLocal<T> = {
257
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
258
+ [K in keyof T]: T[K];
259
+ } : {
233
260
  [K in keyof T as K]: T[K];
234
- } & {};
261
+ }) & {};
@@ -21,10 +21,10 @@ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue>
21
21
  /** Highlight the ring color like a focus state. */
22
22
  highlight?: boolean;
23
23
  /**
24
- * The orientation of the input menu.
24
+ * The orientation of the input number.
25
25
  * @defaultValue 'horizontal'
26
26
  */
27
- orientation?: 'vertical' | 'horizontal';
27
+ orientation?: InputNumber['variants']['orientation'];
28
28
  /**
29
29
  * Configure the increment button. The `color` and `size` are inherited.
30
30
  * @defaultValue { variant: 'link' }
@@ -66,8 +66,14 @@ export interface InputNumberSlots {
66
66
  increment(props?: {}): any;
67
67
  decrement(props?: {}): any;
68
68
  }
69
- declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
70
- props: __VLS_PrettifyLocal<InputNumberProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;
71
+ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
72
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<InputNumberProps<T> & {
73
+ onBlur?: ((event: FocusEvent) => any) | undefined;
74
+ onChange?: ((event: Event) => any) | undefined;
75
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
76
+ }> & (typeof globalThis extends {
71
77
  __VLS_PROPS_FALLBACK: infer P;
72
78
  } ? P : {});
73
79
  expose: (exposed: import("vue").ShallowUnwrapRef<{
@@ -79,8 +85,8 @@ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VL
79
85
  }>) => import("vue").VNode & {
80
86
  __ctx?: Awaited<typeof __VLS_setup>;
81
87
  };
82
- declare const _default: typeof __VLS_export;
83
- export default _default;
84
- type __VLS_PrettifyLocal<T> = {
88
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
89
+ [K in keyof T]: T[K];
90
+ } : {
85
91
  [K in keyof T as K]: T[K];
86
- } & {};
92
+ }) & {};
@@ -20,7 +20,7 @@ const props = defineProps({
20
20
  variant: { type: null, required: false },
21
21
  size: { type: null, required: false },
22
22
  highlight: { type: Boolean, required: false },
23
- orientation: { type: String, required: false, default: "horizontal" },
23
+ orientation: { type: null, required: false, default: "horizontal" },
24
24
  increment: { type: [Boolean, Object], required: false, default: true },
25
25
  incrementIcon: { type: null, required: false },
26
26
  incrementDisabled: { type: Boolean, required: false },
@@ -21,10 +21,10 @@ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue>
21
21
  /** Highlight the ring color like a focus state. */
22
22
  highlight?: boolean;
23
23
  /**
24
- * The orientation of the input menu.
24
+ * The orientation of the input number.
25
25
  * @defaultValue 'horizontal'
26
26
  */
27
- orientation?: 'vertical' | 'horizontal';
27
+ orientation?: InputNumber['variants']['orientation'];
28
28
  /**
29
29
  * Configure the increment button. The `color` and `size` are inherited.
30
30
  * @defaultValue { variant: 'link' }
@@ -66,8 +66,14 @@ export interface InputNumberSlots {
66
66
  increment(props?: {}): any;
67
67
  decrement(props?: {}): any;
68
68
  }
69
- declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
70
- props: __VLS_PrettifyLocal<InputNumberProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;
71
+ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
72
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<InputNumberProps<T> & {
73
+ onBlur?: ((event: FocusEvent) => any) | undefined;
74
+ onChange?: ((event: Event) => any) | undefined;
75
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
76
+ }> & (typeof globalThis extends {
71
77
  __VLS_PROPS_FALLBACK: infer P;
72
78
  } ? P : {});
73
79
  expose: (exposed: import("vue").ShallowUnwrapRef<{
@@ -79,8 +85,8 @@ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VL
79
85
  }>) => import("vue").VNode & {
80
86
  __ctx?: Awaited<typeof __VLS_setup>;
81
87
  };
82
- declare const _default: typeof __VLS_export;
83
- export default _default;
84
- type __VLS_PrettifyLocal<T> = {
88
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
89
+ [K in keyof T]: T[K];
90
+ } : {
85
91
  [K in keyof T as K]: T[K];
86
- } & {};
92
+ }) & {};
@@ -65,8 +65,18 @@ export interface InputTagsSlots<T extends InputTagItem = InputTagItem> {
65
65
  'item-text': SlotProps<T>;
66
66
  'item-delete': SlotProps<T>;
67
67
  }
68
- declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
69
- props: __VLS_PrettifyLocal<InputTagsProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "removeTag", payload: T) => void) & ((evt: "addTag", payload: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
68
+ declare const _default: typeof __VLS_export;
69
+ export default _default;
70
+ declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
71
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<InputTagsProps<T> & {
72
+ onBlur?: ((event: FocusEvent) => any) | undefined;
73
+ onChange?: ((event: Event) => any) | undefined;
74
+ onFocus?: ((event: FocusEvent) => any) | undefined;
75
+ onInvalid?: ((payload: T) => any) | undefined;
76
+ "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
77
+ onAddTag?: ((payload: T) => any) | undefined;
78
+ onRemoveTag?: ((payload: T) => any) | undefined;
79
+ }> & (typeof globalThis extends {
70
80
  __VLS_PROPS_FALLBACK: infer P;
71
81
  } ? P : {});
72
82
  expose: (exposed: import("vue").ShallowUnwrapRef<{
@@ -74,12 +84,12 @@ declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Aw
74
84
  }>) => void;
75
85
  attrs: any;
76
86
  slots: InputTagsSlots<T>;
77
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "removeTag", payload: T) => void) & ((evt: "addTag", payload: T) => void);
87
+ emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "addTag", payload: T) => void) & ((evt: "removeTag", payload: T) => void);
78
88
  }>) => import("vue").VNode & {
79
89
  __ctx?: Awaited<typeof __VLS_setup>;
80
90
  };
81
- declare const _default: typeof __VLS_export;
82
- export default _default;
83
- type __VLS_PrettifyLocal<T> = {
91
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
92
+ [K in keyof T]: T[K];
93
+ } : {
84
94
  [K in keyof T as K]: T[K];
85
- } & {};
95
+ }) & {};
@@ -65,8 +65,18 @@ export interface InputTagsSlots<T extends InputTagItem = InputTagItem> {
65
65
  'item-text': SlotProps<T>;
66
66
  'item-delete': SlotProps<T>;
67
67
  }
68
- declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
69
- props: __VLS_PrettifyLocal<InputTagsProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "removeTag", payload: T) => void) & ((evt: "addTag", payload: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
68
+ declare const _default: typeof __VLS_export;
69
+ export default _default;
70
+ declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
71
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<InputTagsProps<T> & {
72
+ onBlur?: ((event: FocusEvent) => any) | undefined;
73
+ onChange?: ((event: Event) => any) | undefined;
74
+ onFocus?: ((event: FocusEvent) => any) | undefined;
75
+ onInvalid?: ((payload: T) => any) | undefined;
76
+ "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
77
+ onAddTag?: ((payload: T) => any) | undefined;
78
+ onRemoveTag?: ((payload: T) => any) | undefined;
79
+ }> & (typeof globalThis extends {
70
80
  __VLS_PROPS_FALLBACK: infer P;
71
81
  } ? P : {});
72
82
  expose: (exposed: import("vue").ShallowUnwrapRef<{
@@ -74,12 +84,12 @@ declare const __VLS_export: <T extends InputTagItem>(__VLS_props: NonNullable<Aw
74
84
  }>) => void;
75
85
  attrs: any;
76
86
  slots: InputTagsSlots<T>;
77
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "removeTag", payload: T) => void) & ((evt: "addTag", payload: T) => void);
87
+ emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "addTag", payload: T) => void) & ((evt: "removeTag", payload: T) => void);
78
88
  }>) => import("vue").VNode & {
79
89
  __ctx?: Awaited<typeof __VLS_setup>;
80
90
  };
81
- declare const _default: typeof __VLS_export;
82
- export default _default;
83
- type __VLS_PrettifyLocal<T> = {
91
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
92
+ [K in keyof T]: T[K];
93
+ } : {
84
94
  [K in keyof T as K]: T[K];
85
- } & {};
95
+ }) & {};
@@ -46,6 +46,8 @@ export interface InputTimeSlots {
46
46
  ui: InputTime['ui'];
47
47
  }): any;
48
48
  }
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
49
51
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputTimeProps, {
50
52
  inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
51
53
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -60,9 +62,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputT
60
62
  onFocus?: ((event: FocusEvent) => any) | undefined;
61
63
  "onUpdate:modelValue"?: ((date: (import("@internationalized/date").CalendarDateTime | import("@internationalized/date").ZonedDateTime | import("@internationalized/date").Time) | undefined) => any) | undefined;
62
64
  "onUpdate:placeholder"?: ((date: import("@internationalized/date").CalendarDateTime | import("@internationalized/date").ZonedDateTime | import("@internationalized/date").Time) => any) | undefined;
63
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputTimeSlots>;
64
- declare const _default: typeof __VLS_export;
65
- export default _default;
65
+ }>, {
66
+ autofocusDelay: number;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputTimeSlots>;
66
68
  type __VLS_WithSlots<T, S> = T & {
67
69
  new (): {
68
70
  $slots: S;