primevue 3.23.0 → 3.25.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 (366) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +18 -12
  3. package/accordion/Accordion.d.ts +53 -21
  4. package/accordiontab/AccordionTab.d.ts +33 -12
  5. package/api/Api.d.ts +284 -284
  6. package/autocomplete/AutoComplete.d.ts +116 -89
  7. package/autocomplete/AutoComplete.vue +5 -5
  8. package/autocomplete/autocomplete.cjs.js +5 -5
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.esm.js +5 -5
  11. package/autocomplete/autocomplete.esm.min.js +1 -1
  12. package/autocomplete/autocomplete.js +5 -5
  13. package/autocomplete/autocomplete.min.js +1 -1
  14. package/avatar/Avatar.d.ts +38 -25
  15. package/avatar/Avatar.vue +1 -1
  16. package/avatar/avatar.cjs.js +2 -1
  17. package/avatar/avatar.cjs.min.js +1 -1
  18. package/avatar/avatar.esm.js +2 -1
  19. package/avatar/avatar.esm.min.js +1 -1
  20. package/avatar/avatar.js +2 -1
  21. package/avatar/avatar.min.js +1 -1
  22. package/avatargroup/AvatarGroup.d.ts +30 -14
  23. package/badge/Badge.d.ts +34 -20
  24. package/badge/Badge.vue +16 -5
  25. package/badge/badge.cjs.js +15 -5
  26. package/badge/badge.cjs.min.js +1 -1
  27. package/badge/badge.esm.js +15 -5
  28. package/badge/badge.esm.min.js +1 -1
  29. package/badge/badge.js +16 -7
  30. package/badge/badge.min.js +1 -1
  31. package/badgedirective/BadgeDirective.d.ts +60 -1
  32. package/blockui/BlockUI.d.ts +38 -16
  33. package/breadcrumb/Breadcrumb.d.ts +37 -20
  34. package/button/Button.d.ts +74 -17
  35. package/button/Button.vue +51 -8
  36. package/button/button.cjs.js +51 -8
  37. package/button/button.cjs.min.js +1 -1
  38. package/button/button.esm.js +51 -8
  39. package/button/button.esm.min.js +1 -1
  40. package/button/button.js +51 -8
  41. package/button/button.min.js +1 -1
  42. package/calendar/Calendar.d.ts +116 -81
  43. package/calendar/Calendar.vue +71 -17
  44. package/calendar/calendar.cjs.js +58 -20
  45. package/calendar/calendar.cjs.min.js +1 -1
  46. package/calendar/calendar.esm.js +58 -20
  47. package/calendar/calendar.esm.min.js +1 -1
  48. package/calendar/calendar.js +58 -20
  49. package/calendar/calendar.min.js +1 -1
  50. package/card/Card.d.ts +35 -15
  51. package/carousel/Carousel.d.ts +47 -29
  52. package/cascadeselect/CascadeSelect.d.ts +74 -63
  53. package/cascadeselect/CascadeSelect.vue +4 -4
  54. package/cascadeselect/cascadeselect.cjs.js +4 -4
  55. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  56. package/cascadeselect/cascadeselect.esm.js +4 -4
  57. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  58. package/cascadeselect/cascadeselect.js +4 -4
  59. package/cascadeselect/cascadeselect.min.js +1 -1
  60. package/chart/Chart.d.ts +41 -23
  61. package/checkbox/Checkbox.d.ts +41 -17
  62. package/checkbox/Checkbox.vue +3 -3
  63. package/checkbox/checkbox.cjs.js +3 -3
  64. package/checkbox/checkbox.cjs.min.js +1 -1
  65. package/checkbox/checkbox.esm.js +3 -3
  66. package/checkbox/checkbox.esm.min.js +1 -1
  67. package/checkbox/checkbox.js +3 -3
  68. package/checkbox/checkbox.min.js +1 -1
  69. package/chip/Chip.d.ts +35 -14
  70. package/chips/Chips.d.ts +48 -22
  71. package/chips/Chips.vue +2 -2
  72. package/chips/chips.cjs.js +2 -2
  73. package/chips/chips.cjs.min.js +1 -1
  74. package/chips/chips.esm.js +2 -2
  75. package/chips/chips.esm.min.js +1 -1
  76. package/chips/chips.js +2 -2
  77. package/chips/chips.min.js +1 -1
  78. package/colorpicker/ColorPicker.d.ts +46 -28
  79. package/column/Column.d.ts +90 -65
  80. package/columngroup/ColumnGroup.d.ts +29 -13
  81. package/config/config.cjs.js +20 -1
  82. package/config/config.cjs.min.js +1 -1
  83. package/config/config.esm.js +20 -1
  84. package/config/config.esm.min.js +1 -1
  85. package/config/config.js +20 -1
  86. package/config/config.min.js +1 -1
  87. package/confirmationoptions/ConfirmationOptions.d.ts +16 -6
  88. package/confirmationservice/ConfirmationService.d.ts +11 -0
  89. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  90. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  91. package/confirmpopup/ConfirmPopup.vue +3 -0
  92. package/confirmpopup/confirmpopup.cjs.js +3 -0
  93. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  94. package/confirmpopup/confirmpopup.esm.js +3 -0
  95. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  96. package/confirmpopup/confirmpopup.js +3 -0
  97. package/confirmpopup/confirmpopup.min.js +1 -1
  98. package/contextmenu/ContextMenu.d.ts +51 -35
  99. package/core/core.js +360 -118
  100. package/core/core.min.js +9 -9
  101. package/datatable/DataTable.d.ts +249 -206
  102. package/datatable/DataTable.vue +72 -111
  103. package/datatable/FooterCell.vue +2 -2
  104. package/datatable/TableBody.vue +9 -18
  105. package/datatable/datatable.cjs.js +71 -60
  106. package/datatable/datatable.cjs.min.js +1 -1
  107. package/datatable/datatable.esm.js +71 -60
  108. package/datatable/datatable.esm.min.js +1 -1
  109. package/datatable/datatable.js +71 -60
  110. package/datatable/datatable.min.js +1 -1
  111. package/dataview/DataView.d.ts +65 -47
  112. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  113. package/deferredcontent/DeferredContent.d.ts +30 -13
  114. package/dialog/Dialog.d.ts +67 -46
  115. package/dialog/Dialog.vue +24 -7
  116. package/dialog/dialog.cjs.js +14 -7
  117. package/dialog/dialog.cjs.min.js +1 -1
  118. package/dialog/dialog.esm.js +14 -7
  119. package/dialog/dialog.esm.min.js +1 -1
  120. package/dialog/dialog.js +14 -7
  121. package/dialog/dialog.min.js +1 -1
  122. package/dialogservice/DialogService.d.ts +13 -2
  123. package/divider/Divider.d.ts +35 -30
  124. package/dock/Dock.d.ts +49 -36
  125. package/dropdown/Dropdown.d.ts +100 -86
  126. package/dropdown/Dropdown.vue +5 -5
  127. package/dropdown/dropdown.cjs.js +5 -5
  128. package/dropdown/dropdown.cjs.min.js +1 -1
  129. package/dropdown/dropdown.esm.js +5 -5
  130. package/dropdown/dropdown.esm.min.js +1 -1
  131. package/dropdown/dropdown.js +5 -5
  132. package/dropdown/dropdown.min.js +1 -1
  133. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  134. package/dynamicdialog/DynamicDialog.vue +3 -3
  135. package/dynamicdialog/dynamicdialog.cjs.js +4 -4
  136. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  137. package/dynamicdialog/dynamicdialog.esm.js +4 -4
  138. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  139. package/dynamicdialog/dynamicdialog.js +4 -4
  140. package/dynamicdialog/dynamicdialog.min.js +1 -1
  141. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  142. package/editor/Editor.d.ts +49 -17
  143. package/fieldset/Fieldset.d.ts +43 -16
  144. package/fileupload/FileUpload.d.ts +101 -47
  145. package/focustrap/FocusTrap.d.ts +42 -3
  146. package/fullcalendar/FullCalendar.d.ts +1 -1
  147. package/galleria/Galleria.d.ts +64 -40
  148. package/image/Image.d.ts +33 -14
  149. package/inlinemessage/InlineMessage.d.ts +31 -17
  150. package/inplace/Inplace.d.ts +41 -18
  151. package/inputmask/InputMask.d.ts +41 -17
  152. package/inputmask/InputMask.vue +59 -49
  153. package/inputmask/inputmask.cjs.js +59 -49
  154. package/inputmask/inputmask.cjs.min.js +1 -1
  155. package/inputmask/inputmask.esm.js +59 -49
  156. package/inputmask/inputmask.esm.min.js +1 -1
  157. package/inputmask/inputmask.js +59 -49
  158. package/inputmask/inputmask.min.js +1 -1
  159. package/inputnumber/InputNumber.d.ts +62 -43
  160. package/inputnumber/InputNumber.vue +2 -2
  161. package/inputnumber/inputnumber.cjs.js +2 -2
  162. package/inputnumber/inputnumber.cjs.min.js +1 -1
  163. package/inputnumber/inputnumber.esm.js +2 -2
  164. package/inputnumber/inputnumber.esm.min.js +1 -1
  165. package/inputnumber/inputnumber.js +2 -2
  166. package/inputnumber/inputnumber.min.js +1 -1
  167. package/inputswitch/InputSwitch.d.ts +38 -17
  168. package/inputswitch/InputSwitch.vue +3 -2
  169. package/inputswitch/inputswitch.cjs.js +3 -3
  170. package/inputswitch/inputswitch.cjs.min.js +1 -1
  171. package/inputswitch/inputswitch.esm.js +3 -3
  172. package/inputswitch/inputswitch.esm.min.js +1 -1
  173. package/inputswitch/inputswitch.js +3 -3
  174. package/inputswitch/inputswitch.min.js +1 -1
  175. package/inputtext/InputText.d.ts +32 -12
  176. package/knob/Knob.d.ts +47 -21
  177. package/listbox/Listbox.d.ts +81 -60
  178. package/megamenu/MegaMenu.d.ts +42 -27
  179. package/megamenu/MegaMenu.vue +17 -0
  180. package/megamenu/megamenu.cjs.js +1 -1
  181. package/megamenu/megamenu.cjs.min.js +1 -1
  182. package/megamenu/megamenu.esm.js +1 -1
  183. package/megamenu/megamenu.esm.min.js +1 -1
  184. package/megamenu/megamenu.js +1 -1
  185. package/megamenu/megamenu.min.js +1 -1
  186. package/menu/Menu.d.ts +51 -30
  187. package/menubar/Menubar.d.ts +36 -19
  188. package/menuitem/MenuItem.d.ts +22 -10
  189. package/message/Message.d.ts +40 -21
  190. package/multiselect/MultiSelect.d.ts +111 -90
  191. package/orderlist/OrderList.d.ts +51 -23
  192. package/organizationchart/OrganizationChart.d.ts +46 -28
  193. package/overlaypanel/OverlayPanel.d.ts +46 -26
  194. package/package.json +2 -2
  195. package/paginator/Paginator.d.ts +49 -24
  196. package/panel/Panel.d.ts +41 -14
  197. package/panelmenu/PanelMenu.d.ts +49 -21
  198. package/password/Password.d.ts +51 -32
  199. package/password/Password.vue +4 -4
  200. package/password/password.cjs.js +4 -4
  201. package/password/password.cjs.min.js +1 -1
  202. package/password/password.esm.js +4 -4
  203. package/password/password.esm.min.js +1 -1
  204. package/password/password.js +4 -4
  205. package/password/password.min.js +1 -1
  206. package/picklist/PickList.d.ts +74 -33
  207. package/portal/Portal.d.ts +1 -0
  208. package/progressbar/ProgressBar.d.ts +34 -17
  209. package/progressspinner/ProgressSpinner.d.ts +32 -13
  210. package/radiobutton/RadioButton.d.ts +35 -16
  211. package/radiobutton/RadioButton.vue +2 -2
  212. package/radiobutton/radiobutton.cjs.js +2 -2
  213. package/radiobutton/radiobutton.cjs.min.js +1 -1
  214. package/radiobutton/radiobutton.esm.js +2 -2
  215. package/radiobutton/radiobutton.esm.min.js +1 -1
  216. package/radiobutton/radiobutton.js +2 -2
  217. package/radiobutton/radiobutton.min.js +1 -1
  218. package/rating/Rating.d.ts +51 -25
  219. package/resources/themes/arya-blue/theme.css +34 -11
  220. package/resources/themes/arya-green/theme.css +34 -11
  221. package/resources/themes/arya-orange/theme.css +34 -11
  222. package/resources/themes/arya-purple/theme.css +34 -11
  223. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  224. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  225. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  226. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  227. package/resources/themes/fluent-light/theme.css +34 -11
  228. package/resources/themes/lara-dark-blue/theme.css +34 -11
  229. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  230. package/resources/themes/lara-dark-purple/theme.css +34 -11
  231. package/resources/themes/lara-dark-teal/theme.css +34 -11
  232. package/resources/themes/lara-light-blue/theme.css +34 -11
  233. package/resources/themes/lara-light-indigo/theme.css +34 -11
  234. package/resources/themes/lara-light-purple/theme.css +34 -11
  235. package/resources/themes/lara-light-teal/theme.css +34 -11
  236. package/resources/themes/luna-amber/theme.css +34 -11
  237. package/resources/themes/luna-blue/theme.css +34 -11
  238. package/resources/themes/luna-green/theme.css +34 -11
  239. package/resources/themes/luna-pink/theme.css +34 -11
  240. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  241. package/resources/themes/md-dark-indigo/theme.css +34 -11
  242. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  243. package/resources/themes/md-light-indigo/theme.css +34 -11
  244. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  245. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  246. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  247. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  248. package/resources/themes/mira/theme.css +34 -11
  249. package/resources/themes/nano/theme.css +34 -11
  250. package/resources/themes/nova/theme.css +34 -11
  251. package/resources/themes/nova-accent/theme.css +34 -11
  252. package/resources/themes/nova-alt/theme.css +34 -11
  253. package/resources/themes/nova-vue/theme.css +34 -11
  254. package/resources/themes/rhea/theme.css +34 -11
  255. package/resources/themes/saga-blue/theme.css +34 -11
  256. package/resources/themes/saga-green/theme.css +34 -11
  257. package/resources/themes/saga-orange/theme.css +34 -11
  258. package/resources/themes/saga-purple/theme.css +34 -11
  259. package/resources/themes/soho-dark/theme.css +34 -11
  260. package/resources/themes/soho-light/theme.css +34 -11
  261. package/resources/themes/tailwind-light/theme.css +34 -11
  262. package/resources/themes/vela-blue/theme.css +34 -11
  263. package/resources/themes/vela-green/theme.css +34 -11
  264. package/resources/themes/vela-orange/theme.css +34 -11
  265. package/resources/themes/vela-purple/theme.css +34 -11
  266. package/resources/themes/viva-dark/theme.css +34 -11
  267. package/resources/themes/viva-light/theme.css +34 -11
  268. package/ripple/Ripple.d.ts +24 -1
  269. package/row/Row.d.ts +28 -10
  270. package/scrollpanel/ScrollPanel.d.ts +29 -11
  271. package/scrolltop/ScrollTop.d.ts +35 -18
  272. package/selectbutton/SelectButton.d.ts +47 -27
  273. package/selectbutton/SelectButton.vue +2 -2
  274. package/selectbutton/selectbutton.cjs.js +2 -2
  275. package/selectbutton/selectbutton.cjs.min.js +1 -1
  276. package/selectbutton/selectbutton.esm.js +2 -2
  277. package/selectbutton/selectbutton.esm.min.js +1 -1
  278. package/selectbutton/selectbutton.js +2 -2
  279. package/selectbutton/selectbutton.min.js +1 -1
  280. package/sidebar/Sidebar.d.ts +46 -27
  281. package/skeleton/Skeleton.d.ts +36 -22
  282. package/slider/Slider.d.ts +46 -23
  283. package/speeddial/SpeedDial.d.ts +64 -51
  284. package/splitbutton/SplitButton.d.ts +73 -24
  285. package/splitbutton/SplitButton.vue +41 -1
  286. package/splitbutton/splitbutton.cjs.js +43 -3
  287. package/splitbutton/splitbutton.cjs.min.js +1 -1
  288. package/splitbutton/splitbutton.esm.js +43 -3
  289. package/splitbutton/splitbutton.esm.min.js +1 -1
  290. package/splitbutton/splitbutton.js +43 -3
  291. package/splitbutton/splitbutton.min.js +1 -1
  292. package/splitter/Splitter.d.ts +49 -30
  293. package/splitterpanel/SplitterPanel.d.ts +28 -10
  294. package/steps/Steps.d.ts +36 -15
  295. package/styleclass/StyleClass.d.ts +72 -1
  296. package/tabmenu/TabMenu.d.ts +41 -16
  297. package/tabmenu/TabMenu.vue +1 -1
  298. package/tabmenu/tabmenu.cjs.js +1 -0
  299. package/tabmenu/tabmenu.cjs.min.js +1 -1
  300. package/tabmenu/tabmenu.esm.js +1 -0
  301. package/tabmenu/tabmenu.esm.min.js +1 -1
  302. package/tabmenu/tabmenu.js +1 -0
  303. package/tabmenu/tabmenu.min.js +1 -1
  304. package/tabpanel/TabPanel.d.ts +29 -11
  305. package/tabview/TabView.d.ts +47 -19
  306. package/tag/Tag.d.ts +33 -15
  307. package/terminal/Terminal.d.ts +30 -14
  308. package/terminalservice/TerminalService.d.ts +24 -5
  309. package/textarea/Textarea.d.ts +34 -11
  310. package/tieredmenu/TieredMenu.d.ts +47 -31
  311. package/timeline/Timeline.d.ts +41 -32
  312. package/toast/Toast.d.ts +63 -35
  313. package/toast/Toast.vue +4 -2
  314. package/toast/ToastMessage.vue +4 -4
  315. package/toast/toast.cjs.js +8 -6
  316. package/toast/toast.cjs.min.js +1 -1
  317. package/toast/toast.esm.js +8 -6
  318. package/toast/toast.esm.min.js +1 -1
  319. package/toast/toast.js +8 -6
  320. package/toast/toast.min.js +1 -1
  321. package/toastservice/ToastService.d.ts +16 -3
  322. package/togglebutton/ToggleButton.d.ts +44 -24
  323. package/togglebutton/ToggleButton.vue +2 -2
  324. package/togglebutton/togglebutton.cjs.js +2 -2
  325. package/togglebutton/togglebutton.cjs.min.js +1 -1
  326. package/togglebutton/togglebutton.esm.js +2 -2
  327. package/togglebutton/togglebutton.esm.min.js +1 -1
  328. package/togglebutton/togglebutton.js +2 -2
  329. package/togglebutton/togglebutton.min.js +1 -1
  330. package/toolbar/Toolbar.d.ts +34 -14
  331. package/tooltip/Tooltip.d.ts +99 -1
  332. package/tooltip/tooltip.cjs.js +1 -1
  333. package/tooltip/tooltip.cjs.min.js +1 -1
  334. package/tooltip/tooltip.esm.js +1 -1
  335. package/tooltip/tooltip.esm.min.js +1 -1
  336. package/tooltip/tooltip.js +1 -1
  337. package/tooltip/tooltip.min.js +1 -1
  338. package/tree/Tree.d.ts +58 -36
  339. package/treeselect/TreeSelect.d.ts +65 -57
  340. package/treeselect/TreeSelect.vue +3 -3
  341. package/treeselect/treeselect.cjs.js +3 -3
  342. package/treeselect/treeselect.cjs.min.js +1 -1
  343. package/treeselect/treeselect.esm.js +3 -3
  344. package/treeselect/treeselect.esm.min.js +1 -1
  345. package/treeselect/treeselect.js +3 -3
  346. package/treeselect/treeselect.min.js +1 -1
  347. package/treetable/TreeTable.d.ts +123 -107
  348. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  349. package/ts-helpers.d.ts +2 -2
  350. package/utils/utils.cjs.js +18 -15
  351. package/utils/utils.cjs.min.js +1 -1
  352. package/utils/utils.esm.js +18 -15
  353. package/utils/utils.esm.min.js +1 -1
  354. package/utils/utils.js +18 -15
  355. package/utils/utils.min.js +1 -1
  356. package/vetur-attributes.json +90 -30
  357. package/vetur-tags.json +17 -2
  358. package/virtualscroller/VirtualScroller.d.ts +99 -43
  359. package/virtualscroller/VirtualScroller.vue +248 -72
  360. package/virtualscroller/virtualscroller.cjs.js +234 -72
  361. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  362. package/virtualscroller/virtualscroller.esm.js +234 -72
  363. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  364. package/virtualscroller/virtualscroller.js +235 -74
  365. package/virtualscroller/virtualscroller.min.js +1 -1
  366. package/web-types.json +1951 -1773
@@ -1,19 +1,20 @@
1
+ /**
2
+ *
3
+ * AutoComplete is an input component that provides real-time suggestions while being typed.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/autocomplete/)
6
+ *
7
+ * @module autocomplete
8
+ *
9
+ */
1
10
  import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
  import { VirtualScrollerItemOptions, VirtualScrollerProps } from '../virtualscroller';
4
13
 
5
- type AutoCompleteFieldType = string | ((data: any) => string) | undefined;
6
-
7
- type AutoCompleteOptionLabelType = string | ((data: any) => string) | undefined;
8
-
9
- type AutoCompleteOptionDisabledType = string | ((data: any) => boolean) | undefined;
10
-
11
- type AutoCompleteOptionChildrenType = string | ((data: any) => any[]) | undefined;
12
-
13
- type AutoCompleteDropdownMode = 'blank' | 'current' | undefined;
14
-
15
- type AutoCompleteAppendTo = 'body' | 'self' | string | undefined | HTMLElement;
16
-
14
+ /**
15
+ * Custom change event.
16
+ * @see {@link AutoCompleteEmits.change}
17
+ */
17
18
  export interface AutoCompleteChangeEvent {
18
19
  /**
19
20
  * Browser event.
@@ -25,6 +26,10 @@ export interface AutoCompleteChangeEvent {
25
26
  value: any;
26
27
  }
27
28
 
29
+ /**
30
+ * Custom item select event.
31
+ * @see {@link AutoCompleteEmits['item-select']}
32
+ */
28
33
  export interface AutoCompleteItemSelectEvent {
29
34
  /**
30
35
  * Browser event
@@ -37,10 +42,16 @@ export interface AutoCompleteItemSelectEvent {
37
42
  }
38
43
 
39
44
  /**
45
+ * Custom item unselect event.
46
+ * @see {@link AutoCompleteEmits['item-unselect']}
40
47
  * @extends AutoCompleteItemSelectEvent
41
48
  */
42
49
  export interface AutoCompleteItemUnselectEvent extends AutoCompleteItemSelectEvent {}
43
50
 
51
+ /**
52
+ * Custom dropdown click event.
53
+ * @see {@link AutoCompleteEmits['dropdown-click']}
54
+ */
44
55
  export interface AutoCompleteDropdownClickEvent {
45
56
  /**
46
57
  * Browser mouse event
@@ -52,6 +63,10 @@ export interface AutoCompleteDropdownClickEvent {
52
63
  query: string;
53
64
  }
54
65
 
66
+ /**
67
+ * Custom complete event.
68
+ * @see {@link AutoCompleteEmits.complete}
69
+ */
55
70
  export interface AutoCompleteCompleteEvent {
56
71
  /**
57
72
  * Browser event
@@ -63,6 +78,9 @@ export interface AutoCompleteCompleteEvent {
63
78
  query: string;
64
79
  }
65
80
 
81
+ /**
82
+ * Defines valid properties in AutoComplete component.
83
+ */
66
84
  export interface AutoCompleteProps {
67
85
  /**
68
86
  * Value of the component.
@@ -75,51 +93,48 @@ export interface AutoCompleteProps {
75
93
  /**
76
94
  * @deprecated since v3.16.0. Use 'optionLabel' property instead.
77
95
  * Property name or getter function of a suggested object to resolve and display.
78
- * @type {AutoCompleteFieldType}
79
96
  */
80
- field?: AutoCompleteFieldType;
97
+ field?: string | ((data: any) => string) | undefined;
81
98
  /**
82
99
  * Property name or getter function to use as the label of an option.
83
- * @see AutoCompleteOptionLabelType
84
100
  */
85
- optionLabel?: AutoCompleteOptionLabelType;
101
+ optionLabel?: string | ((data: any) => string) | undefined;
86
102
  /**
87
103
  * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
88
- * @see AutoCompleteOptionDisabledType
89
104
  */
90
- optionDisabled?: AutoCompleteOptionDisabledType;
105
+ optionDisabled?: string | ((data: any) => boolean) | undefined;
91
106
  /**
92
107
  * Property name or getter function to use as the label of an option group.
93
- * @see AutoCompleteOptionLabelType
94
108
  */
95
- optionGroupLabel?: AutoCompleteOptionLabelType;
109
+ optionGroupLabel?: string | ((data: any) => string) | undefined;
96
110
  /**
97
111
  * Property name or getter function that refers to the children options of option group.
98
- * @see AutoCompleteOptionChildrenType
99
112
  */
100
- optionGroupChildren?: AutoCompleteOptionChildrenType;
113
+ optionGroupChildren?: string | ((data: any) => any[]) | undefined;
101
114
  /**
102
115
  * Maximum height of the suggestions panel.
103
- * Default value is '200px'.
116
+ * @defaultValue 200px
104
117
  */
105
118
  scrollHeight?: string | undefined;
106
119
  /**
107
120
  * Displays a button next to the input field when enabled.
121
+ * @defaultValue false
108
122
  */
109
123
  dropdown?: boolean | undefined;
110
124
  /**
111
125
  * Specifies the behavior dropdown button. Default 'blank' mode sends an empty string and 'current' mode sends the input value.
112
- * @see AutoCompleteDropdownMode
113
- * Default value is 'blank'.
126
+ * @defaultValue blank
114
127
  */
115
- dropdownMode?: AutoCompleteDropdownMode;
128
+ dropdownMode?: 'blank' | 'current' | undefined;
116
129
  /**
117
130
  * @deprecated since v3.16.0
118
131
  * Highlights automatically the first item of the dropdown to be selected.
132
+ * @defaultValue false
119
133
  */
120
134
  autoHighlight?: boolean | undefined;
121
135
  /**
122
136
  * Specifies if multiple values can be selected.
137
+ * @defaultValue false
123
138
  */
124
139
  multiple?: boolean | undefined;
125
140
  /**
@@ -128,6 +143,7 @@ export interface AutoCompleteProps {
128
143
  placeholder?: string | undefined;
129
144
  /**
130
145
  * When present, it specifies that the component should be disabled.
146
+ * @defaultValue false
131
147
  */
132
148
  disabled?: boolean | undefined;
133
149
  /**
@@ -136,27 +152,28 @@ export interface AutoCompleteProps {
136
152
  dataKey?: string | undefined;
137
153
  /**
138
154
  * Minimum number of characters to initiate a search.
139
- * Default value is 1.
155
+ * @defaultValue 1
140
156
  */
141
157
  minLength?: number | undefined;
142
158
  /**
143
159
  * Delay between keystrokes to wait before sending a query.
144
- * Default value is 300.
160
+ * @defaultValue 300
145
161
  */
146
162
  delay?: number | undefined;
147
163
  /**
148
164
  * A valid query selector or an HTMLElement to specify where the overlay gets attached.
149
165
  * Special keywords are 'body' for document body and 'self' for the element itself.
150
- * @see AutoCompleteAppendTo
151
- * Default value is body.
166
+ * @defaultValue body
152
167
  */
153
- appendTo?: AutoCompleteAppendTo;
168
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
154
169
  /**
155
170
  * When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions.
171
+ * @defaultValue false
156
172
  */
157
- forceSelection?: boolean;
173
+ forceSelection?: boolean | undefined;
158
174
  /**
159
175
  * Whether to run a query when input receives focus.
176
+ * @defaultValue false
160
177
  */
161
178
  completeOnFocus?: boolean | undefined;
162
179
  /**
@@ -166,11 +183,11 @@ export interface AutoCompleteProps {
166
183
  /**
167
184
  * Inline style of the input field.
168
185
  */
169
- inputStyle?: any;
186
+ inputStyle?: object | undefined;
170
187
  /**
171
188
  * Style class of the input field.
172
189
  */
173
- inputClass?: any;
190
+ inputClass?: string | object | undefined;
174
191
  /**
175
192
  * Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
176
193
  */
@@ -178,47 +195,47 @@ export interface AutoCompleteProps {
178
195
  /**
179
196
  * Inline style of the overlay panel.
180
197
  */
181
- panelStyle?: any;
198
+ panelStyle?: object | undefined;
182
199
  /**
183
200
  * Style class of the overlay panel.
184
201
  */
185
- panelClass?: any;
202
+ panelClass?: string | object | undefined;
186
203
  /**
187
204
  * Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
188
205
  */
189
206
  panelProps?: HTMLAttributes | undefined;
190
207
  /**
191
208
  * Icon to display in the dropdown.
192
- * Default value is 'pi pi-chevron-down'.
209
+ * @defaultValue pi pi-chevron-down
193
210
  */
194
211
  dropdownIcon?: string | undefined;
195
212
  /**
196
213
  * Style class of the dropdown button.
197
214
  */
198
- dropdownClass?: string | undefined;
215
+ dropdownClass?: string | object | undefined;
199
216
  /**
200
217
  * Icon to display in loading state.
201
- * Default value is 'pi pi-spinner pi-spin'.
218
+ * @defaultValue pi pi-spinner pi-spin
202
219
  */
203
220
  loadingIcon?: string | undefined;
204
221
  /**
205
222
  * Icon to display in chip remove action.
206
- * Default value is 'pi pi-times-circle'.
223
+ * @defaultValue pi pi-times-circle
207
224
  */
208
225
  removeTokenIcon?: string | undefined;
209
226
  /**
210
227
  * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
211
- * @see VirtualScroller.VirtualScrollerProps
228
+ * @type {VirtualScrollerProps}
212
229
  */
213
230
  virtualScrollerOptions?: VirtualScrollerProps;
214
231
  /**
215
232
  * Whether to focus on the first visible or selected element when the overlay panel is shown.
216
- * Default value is true.
233
+ * @defaultValue true
217
234
  */
218
235
  autoOptionFocus?: boolean | undefined;
219
236
  /**
220
237
  * When enabled, the focused option is selected.
221
- * Default value is false.
238
+ * @defaultValue false
222
239
  */
223
240
  selectOnFocus?: boolean | undefined;
224
241
  /**
@@ -227,22 +244,22 @@ export interface AutoCompleteProps {
227
244
  searchLocale?: string | undefined;
228
245
  /**
229
246
  * Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
230
- * Default value is '{0} results are available'.
247
+ * @defaultValue '{0} results are available'
231
248
  */
232
249
  searchMessage?: string | undefined;
233
250
  /**
234
251
  * Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
235
- * Default value is '{0} items selected'.
252
+ * @defaultValue '{0} items selected'
236
253
  */
237
254
  selectionMessage?: string | undefined;
238
255
  /**
239
256
  * Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
240
- * Default value is 'No selected item'.
257
+ * @defaultValue No selected item
241
258
  */
242
259
  emptySelectionMessage?: string | undefined;
243
260
  /**
244
261
  * Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
245
- * Default value is 'No results found'.
262
+ * @defaultValue No results found
246
263
  */
247
264
  emptySearchMessage?: string | undefined;
248
265
  /**
@@ -259,22 +276,26 @@ export interface AutoCompleteProps {
259
276
  'aria-labelledby'?: string | undefined;
260
277
  }
261
278
 
279
+ /**
280
+ * Defines valid slots in AutoComplete component.
281
+ * @todo Next release we should complete types for all slots
282
+ */
262
283
  export interface AutoCompleteSlots {
263
284
  /**
264
285
  * Custom chip template.
265
286
  * @param {Object} scope - chip slot's params.
266
287
  */
267
- chip: (scope: {
288
+ chip(scope: {
268
289
  /**
269
290
  * A value in the selection
270
291
  */
271
292
  value: any;
272
- }) => VNode[];
293
+ }): VNode[];
273
294
  /**
274
295
  * Custom header template of panel.
275
296
  * @param {Object} scope - header slot's params.
276
297
  */
277
- header: (scope: {
298
+ header(scope: {
278
299
  /**
279
300
  * Value of the component
280
301
  */
@@ -283,12 +304,12 @@ export interface AutoCompleteSlots {
283
304
  * Displayed options
284
305
  */
285
306
  suggestions: any[];
286
- }) => VNode[];
307
+ }): VNode[];
287
308
  /**
288
309
  * Custom footer template of panel.
289
310
  * @param {Object} scope - footer slot's params.
290
311
  */
291
- footer: (scope: {
312
+ footer(scope: {
292
313
  /**
293
314
  * Value of the component
294
315
  */
@@ -297,13 +318,13 @@ export interface AutoCompleteSlots {
297
318
  * Displayed options
298
319
  */
299
320
  suggestions: any[];
300
- }) => VNode[];
321
+ }): VNode[];
301
322
  /**
302
323
  * @deprecated since v3.16.0
303
324
  * Custom content for each item.
304
325
  * @param {Object} scope - item slot's params.
305
326
  */
306
- item: (scope: {
327
+ item(scope: {
307
328
  /**
308
329
  * Option instance
309
330
  */
@@ -312,12 +333,12 @@ export interface AutoCompleteSlots {
312
333
  * Index of the option
313
334
  */
314
335
  index: number;
315
- }) => VNode[];
336
+ }): VNode[];
316
337
  /**
317
338
  * Custom option template.
318
339
  * @param {Object} scope - option slot's params.
319
340
  */
320
- option: (scope: {
341
+ option(scope: {
321
342
  /**
322
343
  * Option instance
323
344
  */
@@ -326,12 +347,12 @@ export interface AutoCompleteSlots {
326
347
  * Index of the option
327
348
  */
328
349
  index: number;
329
- }) => VNode[];
350
+ }): VNode[];
330
351
  /**
331
352
  * Custom option group template.
332
353
  * @param {Object} scope - option group slot's params.
333
354
  */
334
- optiongroup: (scope: {
355
+ optiongroup(scope: {
335
356
  /**
336
357
  * @deprecated since v3.16.0. Use the 'option' instead.
337
358
  * Option instance
@@ -345,12 +366,12 @@ export interface AutoCompleteSlots {
345
366
  * Index of the option
346
367
  */
347
368
  index: number;
348
- }) => VNode[];
369
+ }): VNode[];
349
370
  /**
350
371
  * Custom panel template.
351
372
  * @param {Object} scope - content slot's params.
352
373
  */
353
- content: (scope: {
374
+ content(scope: {
354
375
  /**
355
376
  * An array of objects to display for virtualscroller
356
377
  */
@@ -367,89 +388,104 @@ export interface AutoCompleteSlots {
367
388
  /**
368
389
  * Options of the items
369
390
  * @param {number} index - Rendered index
370
- * @return {@link VirtualScroller.VirtualScrollerItemOptions}
391
+ * @return {VirtualScrollerItemOptions}
371
392
  */
372
393
  getItemOptions(index: number): VirtualScrollerItemOptions;
373
- }) => VNode[];
394
+ }): VNode[];
374
395
  /**
375
396
  * Custom loader template.
376
397
  * @param {Object} scope - loader slot's params.
377
398
  */
378
- loader: (scope: {
399
+ loader(scope: {
379
400
  /**
380
401
  * Options of the loader items for virtualscroller
381
402
  */
382
403
  options: any[];
383
- }) => VNode[];
404
+ }): VNode[];
384
405
  /**
385
406
  * Custom empty template when there is no data to display.
386
407
  */
387
- empty: () => VNode[];
408
+ empty(): VNode[];
388
409
  }
389
410
 
390
- export declare type AutoCompleteEmits = {
411
+ /**
412
+ * Defines valid emits in AutoComplete component.
413
+ */
414
+ export interface AutoCompleteEmits {
391
415
  /**
392
416
  * Emitted when the value changes.
393
417
  * @param {*} value - New value.
394
418
  */
395
- 'update:modelValue': (value: any) => void;
419
+ 'update:modelValue'(value: any): void;
396
420
  /**
397
421
  * Callback to invoke on value change.
398
422
  * @param {AutoCompleteChangeEvent} event - Custom change event.
399
423
  */
400
- change: (event: AutoCompleteChangeEvent) => void;
424
+ change(event: AutoCompleteChangeEvent): void;
401
425
  /**
402
426
  * Callback to invoke when the component receives focus.
403
427
  * @param {Event} event - Browser event.
404
428
  */
405
- focus: (event: Event) => void;
429
+ focus(event: Event): void;
406
430
  /**
407
431
  * Callback to invoke when the component loses focus.
408
432
  * @param {Event} event - Browser event.
409
433
  */
410
- blur: (event: Event) => void;
434
+ blur(event: Event): void;
411
435
  /**
412
436
  * Callback to invoke when a suggestion is selected.
413
437
  * @param {AutoCompleteItemSelectEvent} event - Custom item select event.
414
438
  */
415
- 'item-select': (event: AutoCompleteItemSelectEvent) => void;
439
+ 'item-select'(event: AutoCompleteItemSelectEvent): void;
416
440
  /**
417
441
  * Callback to invoke when a selected value is removed.
418
442
  * @param {AutoCompleteItemUnselectEvent} event - Custom item unselect event.
419
443
  */
420
- 'item-unselect': (event: AutoCompleteItemUnselectEvent) => void;
444
+ 'item-unselect'(event: AutoCompleteItemUnselectEvent): void;
421
445
  /**
422
446
  * Callback to invoke to when dropdown button is clicked.
423
447
  * @param {AutoCompleteDropdownClickEvent} event - Custom dropdown click event.
424
448
  */
425
- 'dropdown-click': (event: AutoCompleteDropdownClickEvent) => void;
449
+ 'dropdown-click'(event: AutoCompleteDropdownClickEvent): void;
426
450
  /**
427
451
  * Callback to invoke when input is cleared by the user.
428
452
  */
429
- clear: () => void;
453
+ clear(): void;
430
454
  /**
431
455
  * Callback to invoke to search for suggestions.
432
456
  * @param {AutoCompleteCompleteEvent} event - Custom complete event.
433
457
  */
434
- complete: (event: AutoCompleteCompleteEvent) => void;
458
+ complete(event: AutoCompleteCompleteEvent): void;
435
459
  /**
436
460
  * Callback to invoke before the overlay is shown.
437
461
  */
438
- 'before-show': () => void;
462
+ 'before-show'(): void;
439
463
  /**
440
464
  * Callback to invoke before the overlay is hidden.
441
465
  */
442
- 'before-hide': () => void;
466
+ 'before-hide'(): void;
443
467
  /**
444
468
  * Callback to invoke when the overlay is shown.
445
469
  */
446
- show: () => void;
470
+ show(): void;
447
471
  /**
448
472
  * Callback to invoke when the overlay is hidden.
449
473
  */
450
- hide: () => void;
451
- };
474
+ hide(): void;
475
+ }
452
476
 
477
+ /**
478
+ * **PrimeVue - AutoComplete**
479
+ *
480
+ * _AutoComplete is an input component that provides real-time suggestions while being typed._
481
+ *
482
+ * [Live Demo](https://www.primevue.org/autocomplete/)
483
+ * --- ---
484
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
485
+ *
486
+ * @group Component
487
+ *
488
+ */
453
489
  declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> {}
454
490
 
455
491
  declare module '@vue/runtime-core' {
@@ -458,13 +494,4 @@ declare module '@vue/runtime-core' {
458
494
  }
459
495
  }
460
496
 
461
- /**
462
- *
463
- * AutoComplete is an input component that provides real-time suggestions when being typed.
464
- *
465
- * Demos:
466
- *
467
- * - [AutoComplete](https://www.primefaces.org/primevue/autocomplete)
468
- *
469
- */
470
497
  export default AutoComplete;
@@ -222,11 +222,11 @@ export default {
222
222
  default: null
223
223
  },
224
224
  inputStyle: {
225
- type: null,
225
+ type: Object,
226
226
  default: null
227
227
  },
228
228
  inputClass: {
229
- type: String,
229
+ type: [String, Object],
230
230
  default: null
231
231
  },
232
232
  inputProps: {
@@ -234,11 +234,11 @@ export default {
234
234
  default: null
235
235
  },
236
236
  panelStyle: {
237
- type: null,
237
+ type: Object,
238
238
  default: null
239
239
  },
240
240
  panelClass: {
241
- type: String,
241
+ type: [String, Object],
242
242
  default: null
243
243
  },
244
244
  panelProps: {
@@ -250,7 +250,7 @@ export default {
250
250
  default: 'pi pi-chevron-down'
251
251
  },
252
252
  dropdownClass: {
253
- type: String,
253
+ type: [String, Object],
254
254
  default: null
255
255
  },
256
256
  loadingIcon: {
@@ -92,11 +92,11 @@ var script = {
92
92
  default: null
93
93
  },
94
94
  inputStyle: {
95
- type: null,
95
+ type: Object,
96
96
  default: null
97
97
  },
98
98
  inputClass: {
99
- type: String,
99
+ type: [String, Object],
100
100
  default: null
101
101
  },
102
102
  inputProps: {
@@ -104,11 +104,11 @@ var script = {
104
104
  default: null
105
105
  },
106
106
  panelStyle: {
107
- type: null,
107
+ type: Object,
108
108
  default: null
109
109
  },
110
110
  panelClass: {
111
- type: String,
111
+ type: [String, Object],
112
112
  default: null
113
113
  },
114
114
  panelProps: {
@@ -120,7 +120,7 @@ var script = {
120
120
  default: 'pi pi-chevron-down'
121
121
  },
122
122
  dropdownClass: {
123
- type: String,
123
+ type: [String, Object],
124
124
  default: null
125
125
  },
126
126
  loadingIcon: {