primevue 3.22.4 → 3.24.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 (338) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +13 -13
  3. package/accordion/Accordion.d.ts +53 -21
  4. package/accordiontab/AccordionTab.d.ts +33 -12
  5. package/autocomplete/AutoComplete.d.ts +111 -84
  6. package/avatar/Avatar.d.ts +38 -25
  7. package/avatar/Avatar.vue +1 -1
  8. package/avatar/avatar.cjs.js +2 -1
  9. package/avatar/avatar.cjs.min.js +1 -1
  10. package/avatar/avatar.esm.js +2 -1
  11. package/avatar/avatar.esm.min.js +1 -1
  12. package/avatar/avatar.js +2 -1
  13. package/avatar/avatar.min.js +1 -1
  14. package/avatargroup/AvatarGroup.d.ts +30 -14
  15. package/badge/Badge.d.ts +34 -20
  16. package/badge/Badge.vue +16 -5
  17. package/badge/badge.cjs.js +15 -5
  18. package/badge/badge.cjs.min.js +1 -1
  19. package/badge/badge.esm.js +15 -5
  20. package/badge/badge.esm.min.js +1 -1
  21. package/badge/badge.js +16 -7
  22. package/badge/badge.min.js +1 -1
  23. package/badgedirective/BadgeDirective.d.ts +60 -1
  24. package/blockui/BlockUI.d.ts +36 -16
  25. package/breadcrumb/Breadcrumb.d.ts +37 -20
  26. package/breadcrumb/Breadcrumb.vue +1 -1
  27. package/breadcrumb/breadcrumb.cjs.js +2 -1
  28. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  29. package/breadcrumb/breadcrumb.esm.js +2 -1
  30. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  31. package/breadcrumb/breadcrumb.js +2 -1
  32. package/breadcrumb/breadcrumb.min.js +1 -1
  33. package/button/Button.d.ts +74 -17
  34. package/button/Button.vue +51 -8
  35. package/button/button.cjs.js +51 -8
  36. package/button/button.cjs.min.js +1 -1
  37. package/button/button.esm.js +51 -8
  38. package/button/button.esm.min.js +1 -1
  39. package/button/button.js +51 -8
  40. package/button/button.min.js +1 -1
  41. package/calendar/Calendar.d.ts +112 -77
  42. package/calendar/Calendar.vue +4 -4
  43. package/calendar/calendar.cjs.js +4 -4
  44. package/calendar/calendar.cjs.min.js +1 -1
  45. package/calendar/calendar.esm.js +4 -4
  46. package/calendar/calendar.esm.min.js +1 -1
  47. package/calendar/calendar.js +4 -4
  48. package/calendar/calendar.min.js +1 -1
  49. package/card/Card.d.ts +35 -15
  50. package/carousel/Carousel.d.ts +47 -29
  51. package/cascadeselect/CascadeSelect.d.ts +70 -59
  52. package/chart/Chart.d.ts +41 -23
  53. package/checkbox/Checkbox.d.ts +39 -15
  54. package/checkbox/Checkbox.vue +1 -1
  55. package/checkbox/checkbox.cjs.js +1 -1
  56. package/checkbox/checkbox.cjs.min.js +1 -1
  57. package/checkbox/checkbox.esm.js +1 -1
  58. package/checkbox/checkbox.esm.min.js +1 -1
  59. package/checkbox/checkbox.js +1 -1
  60. package/checkbox/checkbox.min.js +1 -1
  61. package/chip/Chip.d.ts +35 -14
  62. package/chips/Chips.d.ts +45 -20
  63. package/colorpicker/ColorPicker.d.ts +46 -28
  64. package/column/Column.d.ts +81 -65
  65. package/columngroup/ColumnGroup.d.ts +29 -13
  66. package/config/PrimeVue.d.ts +1 -2
  67. package/config/config.cjs.js +20 -2
  68. package/config/config.cjs.min.js +1 -1
  69. package/config/config.esm.js +20 -2
  70. package/config/config.esm.min.js +1 -1
  71. package/config/config.js +20 -2
  72. package/config/config.min.js +1 -1
  73. package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
  74. package/confirmationservice/ConfirmationService.d.ts +11 -0
  75. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  76. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  77. package/contextmenu/ContextMenu.d.ts +51 -35
  78. package/core/core.js +368 -121
  79. package/core/core.min.js +8 -8
  80. package/datatable/DataTable.d.ts +248 -205
  81. package/datatable/DataTable.vue +78 -117
  82. package/datatable/TableBody.vue +3 -17
  83. package/datatable/datatable.cjs.js +73 -67
  84. package/datatable/datatable.cjs.min.js +1 -1
  85. package/datatable/datatable.esm.js +73 -67
  86. package/datatable/datatable.esm.min.js +1 -1
  87. package/datatable/datatable.js +73 -67
  88. package/datatable/datatable.min.js +1 -1
  89. package/dataview/DataView.d.ts +65 -47
  90. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  91. package/deferredcontent/DeferredContent.d.ts +30 -13
  92. package/dialog/Dialog.d.ts +67 -46
  93. package/dialog/Dialog.vue +1 -1
  94. package/dialog/dialog.cjs.js +1 -1
  95. package/dialog/dialog.cjs.min.js +1 -1
  96. package/dialog/dialog.esm.js +1 -1
  97. package/dialog/dialog.esm.min.js +1 -1
  98. package/dialog/dialog.js +1 -1
  99. package/dialog/dialog.min.js +1 -1
  100. package/dialogservice/DialogService.d.ts +13 -2
  101. package/divider/Divider.d.ts +35 -30
  102. package/dock/Dock.d.ts +49 -36
  103. package/dropdown/Dropdown.d.ts +90 -82
  104. package/dropdown/Dropdown.vue +1 -1
  105. package/dropdown/dropdown.cjs.js +1 -1
  106. package/dropdown/dropdown.cjs.min.js +1 -1
  107. package/dropdown/dropdown.esm.js +1 -1
  108. package/dropdown/dropdown.esm.min.js +1 -1
  109. package/dropdown/dropdown.js +1 -1
  110. package/dropdown/dropdown.min.js +1 -1
  111. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  112. package/dynamicdialog/DynamicDialog.vue +2 -2
  113. package/dynamicdialog/dynamicdialog.cjs.js +3 -3
  114. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  115. package/dynamicdialog/dynamicdialog.esm.js +2 -2
  116. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  117. package/dynamicdialog/dynamicdialog.js +3 -3
  118. package/dynamicdialog/dynamicdialog.min.js +1 -1
  119. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  120. package/editor/Editor.d.ts +48 -17
  121. package/fieldset/Fieldset.d.ts +43 -16
  122. package/fileupload/FileUpload.d.ts +101 -47
  123. package/focustrap/FocusTrap.d.ts +42 -3
  124. package/fullcalendar/FullCalendar.d.ts +1 -1
  125. package/galleria/Galleria.d.ts +64 -40
  126. package/image/Image.d.ts +33 -14
  127. package/inlinemessage/InlineMessage.d.ts +31 -17
  128. package/inplace/Inplace.d.ts +41 -18
  129. package/inputmask/InputMask.d.ts +41 -17
  130. package/inputnumber/InputNumber.d.ts +60 -41
  131. package/inputswitch/InputSwitch.d.ts +35 -15
  132. package/inputswitch/InputSwitch.vue +1 -0
  133. package/inputswitch/inputswitch.cjs.js +1 -1
  134. package/inputswitch/inputswitch.cjs.min.js +1 -1
  135. package/inputswitch/inputswitch.esm.js +1 -1
  136. package/inputswitch/inputswitch.esm.min.js +1 -1
  137. package/inputswitch/inputswitch.js +1 -1
  138. package/inputswitch/inputswitch.min.js +1 -1
  139. package/inputtext/InputText.d.ts +32 -12
  140. package/knob/Knob.d.ts +47 -21
  141. package/listbox/Listbox.d.ts +81 -60
  142. package/megamenu/MegaMenu.d.ts +42 -27
  143. package/megamenu/MegaMenu.vue +17 -0
  144. package/megamenu/megamenu.cjs.js +1 -1
  145. package/megamenu/megamenu.cjs.min.js +1 -1
  146. package/megamenu/megamenu.esm.js +1 -1
  147. package/megamenu/megamenu.esm.min.js +1 -1
  148. package/megamenu/megamenu.js +1 -1
  149. package/megamenu/megamenu.min.js +1 -1
  150. package/menu/Menu.d.ts +57 -28
  151. package/menu/Menu.vue +6 -0
  152. package/menu/menu.cjs.js +26 -8
  153. package/menu/menu.cjs.min.js +1 -1
  154. package/menu/menu.esm.js +27 -9
  155. package/menu/menu.esm.min.js +1 -1
  156. package/menu/menu.js +26 -8
  157. package/menu/menu.min.js +1 -1
  158. package/menubar/Menubar.d.ts +36 -19
  159. package/menuitem/MenuItem.d.ts +22 -10
  160. package/message/Message.d.ts +40 -21
  161. package/multiselect/MultiSelect.d.ts +111 -90
  162. package/orderlist/OrderList.d.ts +51 -23
  163. package/organizationchart/OrganizationChart.d.ts +43 -26
  164. package/overlaypanel/OverlayPanel.d.ts +46 -26
  165. package/package.json +2 -2
  166. package/paginator/Paginator.d.ts +49 -24
  167. package/panel/Panel.d.ts +39 -14
  168. package/panelmenu/PanelMenu.d.ts +49 -21
  169. package/password/Password.d.ts +47 -28
  170. package/picklist/PickList.d.ts +74 -33
  171. package/progressbar/ProgressBar.d.ts +34 -17
  172. package/progressspinner/ProgressSpinner.d.ts +32 -13
  173. package/radiobutton/RadioButton.d.ts +32 -14
  174. package/rating/Rating.d.ts +51 -25
  175. package/resources/themes/arya-blue/theme.css +34 -11
  176. package/resources/themes/arya-green/theme.css +34 -11
  177. package/resources/themes/arya-orange/theme.css +34 -11
  178. package/resources/themes/arya-purple/theme.css +34 -11
  179. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  180. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  181. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  182. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  183. package/resources/themes/fluent-light/theme.css +34 -11
  184. package/resources/themes/lara-dark-blue/theme.css +34 -11
  185. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  186. package/resources/themes/lara-dark-purple/theme.css +34 -11
  187. package/resources/themes/lara-dark-teal/theme.css +34 -11
  188. package/resources/themes/lara-light-blue/theme.css +34 -11
  189. package/resources/themes/lara-light-indigo/theme.css +34 -11
  190. package/resources/themes/lara-light-purple/theme.css +34 -11
  191. package/resources/themes/lara-light-teal/theme.css +34 -11
  192. package/resources/themes/luna-amber/theme.css +34 -11
  193. package/resources/themes/luna-blue/theme.css +34 -11
  194. package/resources/themes/luna-green/theme.css +34 -11
  195. package/resources/themes/luna-pink/theme.css +34 -11
  196. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  197. package/resources/themes/md-dark-indigo/theme.css +34 -11
  198. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  199. package/resources/themes/md-light-indigo/theme.css +34 -11
  200. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  201. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  202. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  203. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  204. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  205. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  206. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  207. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  208. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  209. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  210. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  211. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  212. package/resources/themes/mira/theme.css +6089 -0
  213. package/resources/themes/nano/theme.css +5861 -0
  214. package/resources/themes/nova/theme.css +34 -11
  215. package/resources/themes/nova-accent/theme.css +34 -11
  216. package/resources/themes/nova-alt/theme.css +34 -11
  217. package/resources/themes/nova-vue/theme.css +34 -11
  218. package/resources/themes/rhea/theme.css +34 -11
  219. package/resources/themes/saga-blue/theme.css +34 -11
  220. package/resources/themes/saga-green/theme.css +34 -11
  221. package/resources/themes/saga-orange/theme.css +34 -11
  222. package/resources/themes/saga-purple/theme.css +34 -11
  223. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  224. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  225. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  226. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  227. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  228. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  229. package/resources/themes/soho-dark/theme.css +5854 -0
  230. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  231. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  232. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  233. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  234. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  235. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  236. package/resources/themes/soho-light/theme.css +5908 -0
  237. package/resources/themes/tailwind-light/theme.css +34 -11
  238. package/resources/themes/vela-blue/theme.css +34 -11
  239. package/resources/themes/vela-green/theme.css +34 -11
  240. package/resources/themes/vela-orange/theme.css +34 -11
  241. package/resources/themes/vela-purple/theme.css +34 -11
  242. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  243. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  244. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  245. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  246. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  247. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  248. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  249. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  250. package/resources/themes/viva-dark/theme.css +6016 -0
  251. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  252. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  253. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  254. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  255. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  256. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  257. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  258. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  259. package/resources/themes/viva-light/theme.css +6016 -0
  260. package/ripple/Ripple.d.ts +24 -1
  261. package/row/Row.d.ts +28 -10
  262. package/scrollpanel/ScrollPanel.d.ts +29 -11
  263. package/scrolltop/ScrollTop.d.ts +35 -18
  264. package/selectbutton/SelectButton.d.ts +47 -27
  265. package/sidebar/Sidebar.d.ts +46 -27
  266. package/skeleton/Skeleton.d.ts +36 -22
  267. package/slider/Slider.d.ts +46 -23
  268. package/speeddial/SpeedDial.d.ts +64 -51
  269. package/splitbutton/SplitButton.d.ts +73 -24
  270. package/splitbutton/SplitButton.vue +41 -1
  271. package/splitbutton/splitbutton.cjs.js +43 -3
  272. package/splitbutton/splitbutton.cjs.min.js +1 -1
  273. package/splitbutton/splitbutton.esm.js +43 -3
  274. package/splitbutton/splitbutton.esm.min.js +1 -1
  275. package/splitbutton/splitbutton.js +43 -3
  276. package/splitbutton/splitbutton.min.js +1 -1
  277. package/splitter/Splitter.d.ts +49 -30
  278. package/splitterpanel/SplitterPanel.d.ts +28 -10
  279. package/steps/Steps.d.ts +36 -15
  280. package/styleclass/StyleClass.d.ts +72 -1
  281. package/tabmenu/TabMenu.d.ts +41 -16
  282. package/tabmenu/TabMenu.vue +1 -1
  283. package/tabmenu/tabmenu.cjs.js +1 -0
  284. package/tabmenu/tabmenu.cjs.min.js +1 -1
  285. package/tabmenu/tabmenu.esm.js +1 -0
  286. package/tabmenu/tabmenu.esm.min.js +1 -1
  287. package/tabmenu/tabmenu.js +1 -0
  288. package/tabmenu/tabmenu.min.js +1 -1
  289. package/tabpanel/TabPanel.d.ts +29 -11
  290. package/tabview/TabView.d.ts +47 -19
  291. package/tag/Tag.d.ts +33 -15
  292. package/tag/Tag.vue +1 -1
  293. package/tag/tag.cjs.js +4 -2
  294. package/tag/tag.cjs.min.js +1 -1
  295. package/tag/tag.esm.js +5 -3
  296. package/tag/tag.esm.min.js +1 -1
  297. package/tag/tag.js +4 -2
  298. package/tag/tag.min.js +1 -1
  299. package/terminal/Terminal.d.ts +30 -14
  300. package/terminalservice/TerminalService.d.ts +24 -5
  301. package/textarea/Textarea.d.ts +33 -11
  302. package/tieredmenu/TieredMenu.d.ts +45 -31
  303. package/timeline/Timeline.d.ts +41 -32
  304. package/toast/Toast.d.ts +63 -35
  305. package/toast/Toast.vue +4 -2
  306. package/toast/ToastMessage.vue +4 -4
  307. package/toast/toast.cjs.js +8 -6
  308. package/toast/toast.cjs.min.js +1 -1
  309. package/toast/toast.esm.js +8 -6
  310. package/toast/toast.esm.min.js +1 -1
  311. package/toast/toast.js +8 -6
  312. package/toast/toast.min.js +1 -1
  313. package/toastservice/ToastService.d.ts +16 -3
  314. package/togglebutton/ToggleButton.d.ts +42 -22
  315. package/toolbar/Toolbar.d.ts +34 -14
  316. package/tooltip/Tooltip.d.ts +99 -1
  317. package/tree/Tree.d.ts +55 -36
  318. package/treeselect/TreeSelect.d.ts +63 -55
  319. package/treetable/TreeTable.d.ts +121 -107
  320. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  321. package/ts-helpers.d.ts +2 -2
  322. package/utils/utils.cjs.js +20 -22
  323. package/utils/utils.cjs.min.js +1 -1
  324. package/utils/utils.esm.js +20 -22
  325. package/utils/utils.esm.min.js +1 -1
  326. package/utils/utils.js +20 -22
  327. package/utils/utils.min.js +1 -1
  328. package/vetur-attributes.json +62 -2
  329. package/vetur-tags.json +17 -2
  330. package/virtualscroller/VirtualScroller.d.ts +99 -43
  331. package/virtualscroller/VirtualScroller.vue +248 -72
  332. package/virtualscroller/virtualscroller.cjs.js +234 -72
  333. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  334. package/virtualscroller/virtualscroller.esm.js +234 -72
  335. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  336. package/virtualscroller/virtualscroller.js +235 -74
  337. package/virtualscroller/virtualscroller.min.js +1 -1
  338. package/web-types.json +1930 -1742
@@ -1,21 +1,20 @@
1
+ /**
2
+ *
3
+ * MultiSelect is used to select multiple items from a collection.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/multiselect/)
6
+ *
7
+ * @module multiselect
8
+ *
9
+ */
1
10
  import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
- import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
4
-
5
- type MultiSelectOptionLabelType = string | ((data: any) => string) | undefined;
6
-
7
- type MultiSelectOptionValueType = string | ((data: any) => any) | undefined;
8
-
9
- type MultiSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
10
-
11
- type MultiSelectOptionChildrenType = string | ((data: any) => any[]) | undefined;
12
-
13
- type MultiSelectFilterMatchModeType = 'contains' | 'startsWith' | 'endsWith' | undefined;
14
-
15
- type MultiSelectAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
16
-
17
- type MultiSelectDisplayType = 'comma' | 'chip' | undefined;
12
+ import { VirtualScrollerItemOptions, VirtualScrollerProps } from '../virtualscroller';
18
13
 
14
+ /**
15
+ * Custom change event.
16
+ * @see {@link MultiSelectEmits.change}
17
+ */
19
18
  export interface MultiSelectChangeEvent {
20
19
  /**
21
20
  * Browser event
@@ -27,6 +26,10 @@ export interface MultiSelectChangeEvent {
27
26
  value: any;
28
27
  }
29
28
 
29
+ /**
30
+ * Custom all change event.
31
+ * @see {@link MultiSelectEmits['selectall-change']}
32
+ */
30
33
  export interface MultiSelectAllChangeEvent {
31
34
  /**
32
35
  * Browser event
@@ -38,6 +41,10 @@ export interface MultiSelectAllChangeEvent {
38
41
  checked: boolean;
39
42
  }
40
43
 
44
+ /**
45
+ * Custom filter event
46
+ * @see {@link MultiSelectEmits.filter}
47
+ */
41
48
  export interface MultiSelectFilterEvent {
42
49
  /**
43
50
  * Original event
@@ -49,6 +56,9 @@ export interface MultiSelectFilterEvent {
49
56
  value: string;
50
57
  }
51
58
 
59
+ /**
60
+ * Defines valid properties in MultiSelect component.
61
+ */
52
62
  export interface MultiSelectProps {
53
63
  /**
54
64
  * Value of the component.
@@ -61,26 +71,26 @@ export interface MultiSelectProps {
61
71
  /**
62
72
  * Property name or getter function to use as the label of an option.
63
73
  */
64
- optionLabel?: MultiSelectOptionLabelType;
74
+ optionLabel?: string | ((data: any) => string) | undefined;
65
75
  /**
66
76
  * Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
67
77
  */
68
- optionValue?: MultiSelectOptionValueType;
78
+ optionValue?: string | ((data: any) => any) | undefined;
69
79
  /**
70
80
  * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
71
81
  */
72
- optionDisabled?: MultiSelectOptionDisabledType;
82
+ optionDisabled?: string | ((data: any) => boolean) | undefined;
73
83
  /**
74
84
  * Property name or getter function to use as the label of an option group.
75
85
  */
76
- optionGroupLabel?: MultiSelectOptionLabelType;
86
+ optionGroupLabel?: string | ((data: any) => string) | undefined;
77
87
  /**
78
88
  * Property name or getter function that refers to the children options of option group.
79
89
  */
80
- optionGroupChildren?: MultiSelectOptionChildrenType;
90
+ optionGroupChildren?: string | ((data: any) => any[]) | undefined;
81
91
  /**
82
92
  * Height of the viewport, a scrollbar is defined if height of list exceeds this value.
83
- * Default value is '200px'.
93
+ * @defaultValue 200px
84
94
  */
85
95
  scrollHeight?: string | undefined;
86
96
  /**
@@ -89,6 +99,7 @@ export interface MultiSelectProps {
89
99
  placeholder?: string | undefined;
90
100
  /**
91
101
  * When present, it specifies that the component should be disabled.
102
+ * @defaultValue false
92
103
  */
93
104
  disabled?: boolean | undefined;
94
105
  /**
@@ -125,6 +136,7 @@ export interface MultiSelectProps {
125
136
  dataKey?: string | undefined;
126
137
  /**
127
138
  * When specified, displays a filter input at header.
139
+ * @defaultValue false
128
140
  */
129
141
  filter?: boolean | undefined;
130
142
  /**
@@ -137,29 +149,26 @@ export interface MultiSelectProps {
137
149
  filterLocale?: string | undefined;
138
150
  /**
139
151
  * Defines the filtering algorithm to use when searching the options.
140
- * @see MultiSelectFilterMatchModeType
141
- * Default value is 'contains'.
152
+ * @defaultValue contains
142
153
  */
143
- filterMatchMode?: MultiSelectFilterMatchModeType;
154
+ filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | undefined;
144
155
  /**
145
156
  * Fields used when filtering the options, defaults to optionLabel.
146
157
  */
147
158
  filterFields?: string[] | undefined;
148
159
  /**
149
160
  * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
150
- * @see MultiSelectAppendToType
151
- * Default value is 'body'.
161
+ * @defaultValue body
152
162
  */
153
- appendTo?: MultiSelectAppendToType;
163
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
154
164
  /**
155
165
  * Defines how the selected items are displayed.
156
- * @see MultiSelectDisplayType
157
- * Default value is 'comma'.
166
+ * @defaultValue comma
158
167
  */
159
- display?: MultiSelectDisplayType;
168
+ display?: 'comma' | 'chip' | undefined;
160
169
  /**
161
170
  * Label to display after exceeding max selected labels.
162
- * Default value is '{0} items selected'.
171
+ * @defaultValue '{0} items selected'
163
172
  */
164
173
  selectedItemsLabel?: string | undefined;
165
174
  /**
@@ -172,89 +181,92 @@ export interface MultiSelectProps {
172
181
  selectionLimit?: number | undefined;
173
182
  /**
174
183
  * Whether to show the header checkbox to toggle the selection of all items at once.
175
- * Default value is true.
184
+ * @defaultValue true
176
185
  */
177
186
  showToggleAll?: boolean | undefined;
178
187
  /**
179
188
  * Whether the multiselect is in loading state.
189
+ * @defaultValue false
180
190
  */
181
191
  loading?: boolean | undefined;
182
192
  /**
183
193
  * Icon to display in the checkboxes.
184
- * Default value is 'pi pi-check'.
194
+ * @defaultValue pi pi-check
185
195
  */
186
196
  checkboxIcon?: string | undefined;
187
197
  /**
188
198
  * Icon to display in the dropdown close button.
189
- * Default value is 'pi pi-times'.
199
+ * @defaultValue pi pi-times
190
200
  */
191
201
  closeIcon?: string | undefined;
192
202
  /**
193
203
  * Icon to display in the dropdown.
194
- * Default value is 'pi pi-chevron-down'.
204
+ * @defaultValue pi pi-chevron-down
195
205
  */
196
206
  dropdownIcon?: string | undefined;
197
207
  /**
198
208
  * Icon to display in filter input.
199
- * Default value is 'pi pi-search'.
209
+ * @defaultValue pi pi-search
200
210
  */
201
211
  filterIcon?: string | undefined;
202
212
  /**
203
213
  * Icon to display in loading state.
204
- * Default value is 'pi pi-spinner pi-spin'.
214
+ * @defaultValue pi pi-spinner pi-spin
205
215
  */
206
216
  loadingIcon?: string | undefined;
207
217
  /**
208
218
  * Icon to display in chip remove action.
209
- * Default value is 'pi pi-times-circle'.
219
+ * @defaultValue pi pi-times-circle
210
220
  */
211
221
  removeTokenIcon?: string | undefined;
212
222
  /**
213
223
  * Whether all data is selected.
224
+ * @defaultValue false
214
225
  */
215
226
  selectAll?: boolean | undefined;
216
227
  /**
217
228
  * Clears the filter value when hiding the dropdown.
229
+ * @defaultValue false
218
230
  */
219
- resetFilterOnHide?: boolean;
231
+ resetFilterOnHide?: boolean | undefined;
220
232
  /**
221
233
  * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
222
- * @see VirtualScroller.VirtualScrollerProps
234
+ * @type {VirtualScrollerProps}
223
235
  */
224
236
  virtualScrollerOptions?: VirtualScrollerProps;
225
237
  /**
226
238
  * Whether to focus on the first visible or selected element when the overlay panel is shown.
227
- * Default value is true.
239
+ * @defaultValue true
228
240
  */
229
241
  autoOptionFocus?: boolean | undefined;
230
242
  /**
231
243
  * Whether to focus on the filter element when the overlay panel is shown.
232
- * Default value is false.
244
+ * @defaultValue false
233
245
  */
234
246
  autoFilterFocus?: boolean | undefined;
235
247
  /**
236
248
  * Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
237
- * Default value is '{0} results are available'.
249
+ * @defaultValue '{0} results are available'
238
250
  */
239
251
  filterMessage?: string | undefined;
240
252
  /**
241
253
  * Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
242
- * Default value is '{0} items selected'.
254
+ * @defaultValue '{0} items selected'
243
255
  */
244
256
  selectionMessage?: string | undefined;
245
257
  /**
246
258
  * Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
247
- * Default value is 'No selected item'.
259
+ * @defaultValue No selected item
248
260
  */
249
261
  emptySelectionMessage?: string | undefined;
250
262
  /**
251
263
  * Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
252
- * Default value is 'No results found'.
264
+ * @defaultValue No results found
253
265
  */
254
266
  emptyFilterMessage?: string | undefined;
255
267
  /**
256
268
  * Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
257
- * Default value is 'No results found'.
269
+ * @defaultValue No results found'
258
270
  */
259
271
  emptyMessage?: string | undefined;
260
272
  /**
@@ -271,12 +283,15 @@ export interface MultiSelectProps {
271
283
  'aria-labelledby'?: string | undefined;
272
284
  }
273
285
 
286
+ /**
287
+ * Defines valid slots in MultiSelect component.
288
+ */
274
289
  export interface MultiSelectSlots {
275
290
  /**
276
291
  * Custom value template.
277
292
  * @param {Object} scope - value slot's params.
278
293
  */
279
- value: (scope: {
294
+ value(scope: {
280
295
  /**
281
296
  * Value of the component
282
297
  */
@@ -285,26 +300,26 @@ export interface MultiSelectSlots {
285
300
  * Placeholder prop value
286
301
  */
287
302
  placeholder: string;
288
- }) => VNode[];
303
+ }): VNode[];
289
304
  /**
290
305
  * Custom chip template.
291
306
  * @param {Object} scope - chip slot's params.
292
307
  */
293
- chip: (scope: {
308
+ chip(scope: {
294
309
  /**
295
310
  * A value in the selection
296
311
  */
297
312
  value: any;
298
- }) => VNode[];
313
+ }): VNode[];
299
314
  /**
300
315
  * Custom indicator template.
301
316
  */
302
- indicator: () => VNode[];
317
+ indicator(): VNode[];
303
318
  /**
304
319
  * Custom header template.
305
320
  * @param {Object} scope - header slot's params.
306
321
  */
307
- header: (scope: {
322
+ header(scope: {
308
323
  /**
309
324
  * Value of the component
310
325
  */
@@ -313,12 +328,12 @@ export interface MultiSelectSlots {
313
328
  * Displayed options
314
329
  */
315
330
  options: any[];
316
- }) => VNode[];
331
+ }): VNode[];
317
332
  /**
318
333
  * Custom footer template.
319
334
  * @param {Object} scope - footer slot's params.
320
335
  */
321
- footer: (scope: {
336
+ footer(scope: {
322
337
  /**
323
338
  * Value of the component
324
339
  */
@@ -327,12 +342,12 @@ export interface MultiSelectSlots {
327
342
  * Displayed options
328
343
  */
329
344
  options: any[];
330
- }) => VNode[];
345
+ }): VNode[];
331
346
  /**
332
347
  * Custom option template.
333
348
  * @param {Object} scope - option slot's params.
334
349
  */
335
- option: (scope: {
350
+ option(scope: {
336
351
  /**
337
352
  * Option instance
338
353
  */
@@ -341,12 +356,12 @@ export interface MultiSelectSlots {
341
356
  * Index of the option
342
357
  */
343
358
  index: number;
344
- }) => VNode[];
359
+ }): VNode[];
345
360
  /**
346
361
  * Custom option group template.
347
362
  * @param {Object} scope - option group slot's params.
348
363
  */
349
- optiongroup: (scope: {
364
+ optiongroup(scope: {
350
365
  /**
351
366
  * Option instance
352
367
  */
@@ -355,20 +370,20 @@ export interface MultiSelectSlots {
355
370
  * Index of the option
356
371
  */
357
372
  index: number;
358
- }) => VNode[];
373
+ }): VNode[];
359
374
  /**
360
375
  * Custom emptyfilter template.
361
376
  */
362
- emptyfilter: () => VNode[];
377
+ emptyfilter(): VNode[];
363
378
  /**
364
379
  * Custom empty template.
365
380
  */
366
- empty: () => VNode[];
381
+ empty(): VNode[];
367
382
  /**
368
383
  * Custom content template.
369
384
  * @param {Object} scope - content slot's params.
370
385
  */
371
- content: (scope: {
386
+ content(scope: {
372
387
  /**
373
388
  * An array of objects to display for virtualscroller
374
389
  */
@@ -385,71 +400,86 @@ export interface MultiSelectSlots {
385
400
  /**
386
401
  * Options of the items
387
402
  * @param {number} index - Rendered index
388
- * @return {@link VirtualScroller.VirtualScrollerItemOptions}
403
+ * @return {VirtualScrollerItemOptions}
389
404
  */
390
405
  getItemOptions(index: number): VirtualScrollerItemOptions;
391
- }) => VNode[];
406
+ }): VNode[];
392
407
  /**
393
408
  * Custom loader template.
394
409
  * @param {Object} scope - loader slot's params.
395
410
  */
396
- loader: (scope: {
411
+ loader(scope: {
397
412
  /**
398
413
  * Options of the loader items for virtualscroller
399
414
  */
400
415
  options: any[];
401
- }) => VNode[];
416
+ }): VNode[];
402
417
  }
403
418
 
404
- export declare type MultiSelectEmits = {
419
+ /**
420
+ * Defines valid emits in MultiSelect component.
421
+ */
422
+ export interface MultiSelectEmits {
405
423
  /**
406
424
  * Emitted when the value changes.
407
425
  * @param {*} value - New value.
408
426
  */
409
- 'update:modelValue': (value: any) => void;
427
+ 'update:modelValue'(value: any): void;
410
428
  /**
411
429
  * Callback to invoke on value change.
412
430
  * @param {MultiSelectChangeEvent} event - Custom change event.
413
431
  */
414
- change: (event: MultiSelectChangeEvent) => void;
432
+ change(event: MultiSelectChangeEvent): void;
415
433
  /**
416
434
  * Callback to invoke when the component receives focus.
417
435
  * @param {Event} event - Browser event.
418
436
  */
419
- focus: (event: Event) => void;
437
+ focus(event: Event): void;
420
438
  /**
421
439
  * Callback to invoke when the component loses focus.
422
440
  * @param {Event} event - Browser event.
423
441
  */
424
- blur: (event: Event) => void;
442
+ blur(event: Event): void;
425
443
  /**
426
444
  * Callback to invoke before the overlay is shown.
427
445
  */
428
- 'before-show': () => void;
446
+ 'before-show'(): void;
429
447
  /**
430
448
  * Callback to invoke before the overlay is hidden.
431
449
  */
432
- 'before-hide': () => void;
450
+ 'before-hide'(): void;
433
451
  /**
434
452
  * Callback to invoke when the overlay is shown.
435
453
  */
436
- show: () => void;
454
+ show(): void;
437
455
  /**
438
456
  * Callback to invoke when the overlay is hidden.
439
457
  */
440
- hide: () => void;
458
+ hide(): void;
441
459
  /**
442
460
  * Callback to invoke on filter input.
443
461
  * @param {MultiSelectFilterEvent} event - Custom filter event.
444
462
  */
445
- filter: (event: MultiSelectFilterEvent) => void;
463
+ filter(event: MultiSelectFilterEvent): void;
446
464
  /**
447
465
  * Callback to invoke when all data is selected.
448
466
  * @param {MultiSelectAllChangeEvent} event - Custom select all change event.
449
467
  */
450
- 'selectall-change': (event: MultiSelectAllChangeEvent) => void;
451
- };
468
+ 'selectall-change'(event: MultiSelectAllChangeEvent): void;
469
+ }
452
470
 
471
+ /**
472
+ * **PrimeVue - MultiSelect**
473
+ *
474
+ * _MultiSelect is used to select multiple items from a collection._
475
+ *
476
+ * [Live Demo](https://www.primevue.org/multiselect/)
477
+ * --- ---
478
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
479
+ *
480
+ * @group Component
481
+ *
482
+ */
453
483
  declare class MultiSelect extends ClassComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits> {
454
484
  /**
455
485
  * Shows the overlay.
@@ -457,14 +487,14 @@ declare class MultiSelect extends ClassComponent<MultiSelectProps, MultiSelectSl
457
487
  *
458
488
  * @memberof MultiSelect
459
489
  */
460
- show: (isFocus?: boolean) => void;
490
+ show(isFocus?: boolean): void;
461
491
  /**
462
492
  * Hides the overlay.
463
493
  * @param {boolean} [isFocus] - Decides whether to focus on the component. Default value is false.
464
494
  *
465
495
  * @memberof MultiSelect
466
496
  */
467
- hide: (isFocus?: boolean) => void;
497
+ hide(isFocus?: boolean): void;
468
498
  }
469
499
 
470
500
  declare module '@vue/runtime-core' {
@@ -473,13 +503,4 @@ declare module '@vue/runtime-core' {
473
503
  }
474
504
  }
475
505
 
476
- /**
477
- *
478
- * MultiSelect is used to multiple values from a list of options.
479
- *
480
- * Demos:
481
- *
482
- * - [MultiSelect](https://www.primefaces.org/primevue/multiselect)
483
- *
484
- */
485
506
  export default MultiSelect;
@@ -1,6 +1,19 @@
1
+ /**
2
+ *
3
+ * OrderList is used to managed the order of a collection.
4
+ *
5
+ * [Live Demo](https://primevue.org/orderlist)
6
+ *
7
+ * @module orderlist
8
+ *
9
+ */
1
10
  import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Custom reorder event
15
+ * @see {@link OrderListEmits.reorder}
16
+ */
4
17
  export interface OrderListReorderEvent {
5
18
  /**
6
19
  * Browser event
@@ -16,6 +29,10 @@ export interface OrderListReorderEvent {
16
29
  direction: string;
17
30
  }
18
31
 
32
+ /**
33
+ * Custom selection change event
34
+ * @see {@link OrderListEmits['selection-change']}
35
+ */
19
36
  export interface OrderListSelectionChangeEvent {
20
37
  /**
21
38
  * Browser event
@@ -27,6 +44,9 @@ export interface OrderListSelectionChangeEvent {
27
44
  value: any[];
28
45
  }
29
46
 
47
+ /**
48
+ * Defines valid properties in OrderList component.
49
+ */
30
50
  export interface OrderListProps {
31
51
  /**
32
52
  * Value of the component.
@@ -44,7 +64,7 @@ export interface OrderListProps {
44
64
  * Defines whether metaKey is requred or not for the selection.
45
65
  * When true metaKey needs to be pressed to select or unselect an item and
46
66
  * when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
47
- * Default value is true.
67
+ * @defaultValue true
48
68
  */
49
69
  metaKeySelection?: boolean | undefined;
50
70
  /**
@@ -53,12 +73,12 @@ export interface OrderListProps {
53
73
  listStyle?: any;
54
74
  /**
55
75
  * Whether the list optimizes layout based on screen size.
56
- * Default value is true.
76
+ * @defaultValue true
57
77
  */
58
78
  responsive?: boolean | undefined;
59
79
  /**
60
80
  * The breakpoint to define the maximum width boundary when responsiveness is enabled.
61
- * Default value is '960px'.
81
+ * @defaultValue 960px
62
82
  */
63
83
  breakpoint?: string | undefined;
64
84
  /**
@@ -99,16 +119,19 @@ export interface OrderListProps {
99
119
  'aria-labelledby'?: string | undefined;
100
120
  }
101
121
 
122
+ /**
123
+ * Defines valid slots in OrderList component.
124
+ */
102
125
  export interface OrderListSlots {
103
126
  /**
104
127
  * Custom header template.
105
128
  */
106
- header: () => VNode[];
129
+ header(): VNode[];
107
130
  /**
108
131
  * Custom item template.
109
132
  * @param {Object} scope - item slot's params.
110
133
  */
111
- item: (scope: {
134
+ item(scope: {
112
135
  /**
113
136
  * Item of the component
114
137
  */
@@ -117,40 +140,54 @@ export interface OrderListSlots {
117
140
  * Index of the item.
118
141
  */
119
142
  index: number;
120
- }) => VNode[];
143
+ }): VNode[];
121
144
  /**
122
145
  * Custom controls start template.
123
146
  */
124
- controlsstart: () => VNode[];
147
+ controlsstart(): VNode[];
125
148
  /**
126
149
  * Custom controls end template.
127
150
  */
128
- controlsend: () => VNode[];
151
+ controlsend(): VNode[];
129
152
  }
130
153
 
131
- export declare type OrderListEmits = {
154
+ /**
155
+ * Defines valid slots in OrderList component.
156
+ */
157
+ export interface OrderListEmits {
132
158
  /**
133
159
  * Emitted when the value changes.
134
160
  * @param {*} value - New value.
135
161
  */
136
- 'update:modelValue': (value: any[]) => void;
162
+ 'update:modelValue'(value: any[]): void;
137
163
  /**
138
164
  * Emitted when the selection changes.
139
165
  * @param {*} value - New value.
140
166
  */
141
- 'update:selection': (value: any[]) => void;
167
+ 'update:selection'(value: any[]): void;
142
168
  /**
143
169
  * Callback to invoke when the list is reordered.
144
170
  * @param {OrderListReorderEvent} event - Custom reorder event.
145
171
  */
146
- reorder: (event: OrderListReorderEvent) => void;
172
+ reorder(event: OrderListReorderEvent): void;
147
173
  /**
148
174
  * Callback to invoke when selection changes.
149
175
  * @param {OrderListSelectionChangeEvent} event - Custom selection change event.
150
176
  */
151
- 'selection-change': (event: OrderListSelectionChangeEvent) => void;
152
- };
177
+ 'selection-change'(event: OrderListSelectionChangeEvent): void;
178
+ }
153
179
 
180
+ /**
181
+ * **PrimeVue - OrderList**
182
+ *
183
+ * _OrderList is used to sort a collection._
184
+ *
185
+ * [Live Demo](https://www.primevue.org/orderlist/)
186
+ * --- ---
187
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
188
+ *
189
+ * @group Component
190
+ */
154
191
  declare class OrderList extends ClassComponent<OrderListProps, OrderListSlots, OrderListEmits> {}
155
192
 
156
193
  declare module '@vue/runtime-core' {
@@ -159,13 +196,4 @@ declare module '@vue/runtime-core' {
159
196
  }
160
197
  }
161
198
 
162
- /**
163
- *
164
- * OrderList is used to managed the order of a collection.
165
- *
166
- * Demos:
167
- *
168
- * - [OrderList](https://www.primefaces.org/primevue/orderlist)
169
- *
170
- */
171
199
  export default OrderList;