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
package/tree/Tree.d.ts CHANGED
@@ -1,6 +1,18 @@
1
+ /**
2
+ *
3
+ * Tree is used to display hierarchical data.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/tree/)
6
+ *
7
+ * @module tree
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Custom TreeNode metadata.
15
+ */
4
16
  export interface TreeNode {
5
17
  /**
6
18
  * Mandatory unique key of the node.
@@ -56,12 +68,9 @@ export interface TreeNode {
56
68
  collapsedIcon?: string;
57
69
  }
58
70
 
59
- type TreeSelectionModeType = 'single' | 'multiple' | 'checkbox' | undefined;
60
-
61
- type TreeFilterModeType = 'lenient' | 'strict' | undefined;
62
-
63
- type TreeScrollHeightType = 'flex' | string | undefined;
64
-
71
+ /**
72
+ * Custom expanded keys metadata.
73
+ */
65
74
  export interface TreeExpandedKeys {
66
75
  /**
67
76
  * Optional
@@ -69,6 +78,9 @@ export interface TreeExpandedKeys {
69
78
  [key: string]: any;
70
79
  }
71
80
 
81
+ /**
82
+ * Custom selection keys metadata.
83
+ */
72
84
  export interface TreeSelectionKeys {
73
85
  /**
74
86
  * Optional
@@ -76,6 +88,9 @@ export interface TreeSelectionKeys {
76
88
  [key: string]: any;
77
89
  }
78
90
 
91
+ /**
92
+ * Defines valid properties in Tree component.
93
+ */
79
94
  export interface TreeProps {
80
95
  /**
81
96
  * An array of treenodes.
@@ -92,20 +107,21 @@ export interface TreeProps {
92
107
  /**
93
108
  * Defines the selection mode.
94
109
  */
95
- selectionMode?: TreeSelectionModeType;
110
+ selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
96
111
  /**
97
112
  * Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
98
113
  * On touch enabled devices, metaKeySelection is turned off automatically.
99
- * Default value is true.
114
+ * @defaultValue true
100
115
  */
101
116
  metaKeySelection?: boolean | undefined;
102
117
  /**
103
118
  * Whether to display loading indicator.
119
+ * @defaultValue false
104
120
  */
105
121
  loading?: boolean | undefined;
106
122
  /**
107
123
  * Icon to display when tree is loading.
108
- * Default value is 'pi pi-spin'.
124
+ * @defaultValue pi pi-spin
109
125
  */
110
126
  loadingIcon?: string | undefined;
111
127
  /**
@@ -114,15 +130,14 @@ export interface TreeProps {
114
130
  filter?: boolean | undefined;
115
131
  /**
116
132
  * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
117
- * Default valye is 'label'.
133
+ * @defaultValue label
118
134
  */
119
135
  filterBy?: string | undefined;
120
136
  /**
121
137
  * Mode for filtering.
122
- * @see TreeFilterModeType
123
- * Default value is 'lenient'.
138
+ * @defaultValue lenient
124
139
  */
125
- filterMode?: TreeFilterModeType;
140
+ filterMode?: 'lenient' | 'strict' | undefined;
126
141
  /**
127
142
  * Placeholder text to show when filter input is empty.
128
143
  */
@@ -133,9 +148,8 @@ export interface TreeProps {
133
148
  filterLocale?: string | undefined;
134
149
  /**
135
150
  * Height of the scroll viewport in fixed units or the 'flex' keyword for a dynamic size.
136
- * @see TreeScrollHeightType
137
151
  */
138
- scrollHeight?: TreeScrollHeightType;
152
+ scrollHeight?: 'flex' | string | undefined;
139
153
  /**
140
154
  * Defines a string value that labels an interactive element.
141
155
  */
@@ -146,9 +160,13 @@ export interface TreeProps {
146
160
  'aria-labelledby'?: string | undefined;
147
161
  }
148
162
 
163
+ /**
164
+ * Defines valid slots in Tree component.
165
+ */
149
166
  export interface TreeSlots {
150
167
  /**
151
168
  * Optional slots.
169
+ * @todo
152
170
  */
153
171
  [key: string]: (scope: {
154
172
  /**
@@ -158,39 +176,53 @@ export interface TreeSlots {
158
176
  }) => VNode[];
159
177
  }
160
178
 
161
- export declare type TreeEmits = {
179
+ /**
180
+ * Defines valid slots in Tree component.
181
+ */
182
+ export interface TreeEmits {
162
183
  /**
163
184
  * Emitted when the expanded keys change.
164
185
  * @param {TreeNode} value - New expanded keys.
165
186
  */
166
- 'update:expandedKeys': (value: TreeExpandedKeys) => void;
187
+ 'update:expandedKeys'(value: TreeExpandedKeys): void;
167
188
  /**
168
189
  * Emitted when the selection keys change.
169
190
  * @param {TreeSelectionKeys} value - New selection keys.
170
191
  */
171
- 'update:selectionKeys': (event: TreeSelectionKeys) => void;
192
+ 'update:selectionKeys'(event: TreeSelectionKeys): void;
172
193
  /**
173
194
  * Callback to invoke when a node is selected.
174
195
  * @param {TreeNode} node - Node instance.
175
196
  */
176
- 'node-select': (node: TreeNode) => void;
197
+ 'node-select'(node: TreeNode): void;
177
198
  /**
178
199
  * Callback to invoke when a node is unselected.
179
200
  * @param {TreeNode} node - Node instance.
180
201
  */
181
- 'node-unselect': (node: TreeNode) => void;
202
+ 'node-unselect'(node: TreeNode): void;
182
203
  /**
183
204
  * Callback to invoke when a node is expanded.
184
205
  * @param {TreeNode} node - Node instance.
185
206
  */
186
- 'node-expand': (node: TreeNode) => void;
207
+ 'node-expand'(node: TreeNode): void;
187
208
  /**
188
209
  * Callback to invoke when a node is collapsed.
189
210
  * @param {TreeNode} node - Node instance.
190
211
  */
191
- 'node-collapse': (node: TreeNode) => void;
192
- };
212
+ 'node-collapse'(node: TreeNode): void;
213
+ }
193
214
 
215
+ /**
216
+ * **PrimeVue - Tree**
217
+ *
218
+ * _Tree is used to display hierarchical data._
219
+ *
220
+ * [Live Demo](https://www.primevue.org/tree/)
221
+ * --- ---
222
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
223
+ *
224
+ * @group Component
225
+ */
194
226
  declare class Tree extends ClassComponent<TreeProps, TreeSlots, TreeEmits> {}
195
227
 
196
228
  declare module '@vue/runtime-core' {
@@ -199,17 +231,4 @@ declare module '@vue/runtime-core' {
199
231
  }
200
232
  }
201
233
 
202
- /**
203
- *
204
- * Tree is used to display hierarchical data.
205
- *
206
- * Helper API:
207
- *
208
- * - TreeNode
209
- *
210
- * Demos:
211
- *
212
- * - [Tree](https://www.primefaces.org/primevue/tree)
213
- *
214
- */
215
234
  export default Tree;
@@ -1,13 +1,19 @@
1
- import { VNode } from 'vue';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
1
+ /**
2
+ *
3
+ * TreeSelect is a form component to choose from hierarchical data.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/treeselect/)
6
+ *
7
+ * @module treeselect
8
+ *
9
+ */
10
+ import { InputHTMLAttributes, VNode } from 'vue';
3
11
  import { TreeNode } from '../tree';
12
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
13
 
5
- type TreeSelectSelectionModeType = 'single' | 'multiple' | 'checkbox' | undefined;
6
-
7
- type TreeSelectAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
8
-
9
- type TreeSelectDisplayType = 'comma' | 'chip' | undefined;
10
-
14
+ /**
15
+ * Defines valid properties in TreeSelect component.
16
+ */
11
17
  export interface TreeSelectProps {
12
18
  /**
13
19
  * Value of the component.
@@ -19,7 +25,7 @@ export interface TreeSelectProps {
19
25
  options?: TreeNode[] | undefined;
20
26
  /**
21
27
  * Height of the viewport, a scrollbar is defined if height of list exceeds this value.
22
- * Default value is '200px'.
28
+ * @defaultValue 200px
23
29
  */
24
30
  scrollHeight?: string | undefined;
25
31
  /**
@@ -28,6 +34,7 @@ export interface TreeSelectProps {
28
34
  placeholder?: string | undefined;
29
35
  /**
30
36
  * When present, it specifies that the component should be disabled.
37
+ * @defaultValue false
31
38
  */
32
39
  disabled?: boolean | undefined;
33
40
  /**
@@ -36,34 +43,31 @@ export interface TreeSelectProps {
36
43
  tabindex?: string | undefined;
37
44
  /**
38
45
  * Defines the selection mode.
39
- * @see TreeSelectSelectionModeType
40
46
  */
41
- selectionMode?: TreeSelectSelectionModeType;
47
+ selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
42
48
  /**
43
49
  * Style class of the overlay panel.
44
50
  */
45
51
  panelClass?: any;
46
52
  /**
47
- * 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.
48
- * @see TreeSelectAppendToType
49
- * Default value is 'body'.
53
+ * A valid query selector or an HTMLElement to specify where the overlay gets attached.
54
+ * @defaultValue body
50
55
  */
51
- appendTo?: TreeSelectAppendToType;
56
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
52
57
  /**
53
58
  * Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
54
- * Default value is 'No results found'.
59
+ * @defaultValue No results found
55
60
  */
56
61
  emptyMessage?: string | undefined;
57
62
  /**
58
63
  * Defines how the selected items are displayed.
59
- * @see TreeSelectDisplayType
60
- * Default value is 'comma'.
64
+ * @defaultValue comma
61
65
  */
62
- display?: TreeSelectDisplayType;
66
+ display?: 'comma' | 'chip' | undefined;
63
67
  /**
64
68
  * Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
65
69
  * On touch enabled devices, metaKeySelection is turned off automatically.
66
- * Default value is true.
70
+ * @defaultValue true
67
71
  */
68
72
  metaKeySelection?: boolean | undefined;
69
73
  /**
@@ -79,9 +83,9 @@ export interface TreeSelectProps {
79
83
  */
80
84
  inputStyle?: any | undefined;
81
85
  /**
82
- *
86
+ * Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
83
87
  */
84
- inputProps?: object | undefined;
88
+ inputProps?: InputHTMLAttributes | undefined;
85
89
  /**
86
90
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
87
91
  */
@@ -92,12 +96,15 @@ export interface TreeSelectProps {
92
96
  'aria-label'?: string | undefined;
93
97
  }
94
98
 
99
+ /**
100
+ * Defines valid slots in TreeSelect component.
101
+ */
95
102
  export interface TreeSelectSlots {
96
103
  /**
97
104
  * Custom value template.
98
105
  * @param {Object} scope - value slot's params.
99
106
  */
100
- value: (scope: {
107
+ value(scope: {
101
108
  /**
102
109
  * Selected value
103
110
  */
@@ -106,12 +113,12 @@ export interface TreeSelectSlots {
106
113
  * Placeholder
107
114
  */
108
115
  placeholder: string;
109
- }) => VNode[];
116
+ }): VNode[];
110
117
  /**
111
118
  * Custom header template.
112
119
  * @param {Object} scope - header slot's params.
113
120
  */
114
- header: (scope: {
121
+ header(scope: {
115
122
  /**
116
123
  * Selected value
117
124
  */
@@ -120,12 +127,12 @@ export interface TreeSelectSlots {
120
127
  * An array of treenodes.
121
128
  */
122
129
  options: TreeNode[];
123
- }) => VNode[];
130
+ }): VNode[];
124
131
  /**
125
132
  * Custom footer template.
126
133
  * @param {Object} scope - footer slot's params.
127
134
  */
128
- footer: (scope: {
135
+ footer(scope: {
129
136
  /**
130
137
  * Selected value
131
138
  */
@@ -134,66 +141,80 @@ export interface TreeSelectSlots {
134
141
  * An array of treenodes.
135
142
  */
136
143
  options: TreeNode[];
137
- }) => VNode[];
144
+ }): VNode[];
138
145
  /**
139
146
  * Custom empty template.
140
147
  */
141
- empty: () => VNode[];
148
+ empty(): VNode[];
142
149
  /**
143
150
  * Custom indicator template.
144
151
  */
145
- indicator: () => VNode[];
152
+ indicator(): VNode[];
146
153
  }
147
154
 
148
- export declare type TreeSelectEmits = {
155
+ /**
156
+ * Defines valid emits in TreeSelect component.
157
+ */
158
+ export interface TreeSelectEmits {
149
159
  /**
150
160
  * Emitted when the value changes.
151
161
  * @param {*} value - New value.
152
162
  */
153
- 'update:modelValue': (value: any) => void;
163
+ 'update:modelValue'(value: any): void;
154
164
  /**
155
165
  * Callback to invoke on value change.
156
166
  * @param {*} value - Selected node keys
157
167
  */
158
- change: (value: string[]) => void;
168
+ change(value: string[]): void;
159
169
  /**
160
170
  * Callback to invoke before the overlay is shown.
161
171
  */
162
- 'before-show': () => void;
172
+ 'before-show'(): void;
163
173
  /**
164
174
  * Callback to invoke before the overlay is hidden.
165
175
  */
166
- 'before-hide': () => void;
176
+ 'before-hide'(): void;
167
177
  /**
168
178
  * Callback to invoke when the overlay is shown.
169
179
  */
170
- show: () => void;
180
+ show(): void;
171
181
  /**
172
182
  * Callback to invoke when the overlay is hidden.
173
183
  */
174
- hide: () => void;
184
+ hide(): void;
175
185
  /**
176
186
  * Callback to invoke when a node is selected.
177
187
  * @param {TreeNode} node - Node instance.
178
188
  */
179
- 'node-select': (node: TreeNode) => void;
189
+ 'node-select'(node: TreeNode): void;
180
190
  /**
181
191
  * Callback to invoke when a node is unselected.
182
192
  * @param {TreeNode} node - Node instance.
183
193
  */
184
- 'node-unselect': (node: TreeNode) => void;
194
+ 'node-unselect'(node: TreeNode): void;
185
195
  /**
186
196
  * Callback to invoke when a node is expanded.
187
197
  * @param {TreeNode} node - Node instance.
188
198
  */
189
- 'node-expand': (node: TreeNode) => void;
199
+ 'node-expand'(node: TreeNode): void;
190
200
  /**
191
201
  * Callback to invoke when a node is collapsed.
192
202
  * @param {TreeNode} node - Node instance.
193
203
  */
194
- 'node-collapse': (node: TreeNode) => void;
195
- };
204
+ 'node-collapse'(node: TreeNode): void;
205
+ }
196
206
 
207
+ /**
208
+ * **PrimeVue - TreeSelect**
209
+ *
210
+ * _TreeSelect is a form component to choose from hierarchical data._
211
+ *
212
+ * [Live Demo](https://www.primevue.org/treeselect/)
213
+ * --- ---
214
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
215
+ *
216
+ * @group Component
217
+ */
197
218
  declare class TreeSelect extends ClassComponent<TreeSelectProps, TreeSelectSlots, TreeSelectEmits> {
198
219
  /**
199
220
  * Shows the overlay.
@@ -215,17 +236,4 @@ declare module '@vue/runtime-core' {
215
236
  }
216
237
  }
217
238
 
218
- /**
219
- *
220
- * TreeSelect is a form component to choose from hierarchical data.
221
- *
222
- * Helper API:
223
- *
224
- * - TreeNode
225
- *
226
- * Demos:
227
- *
228
- * - [TreeSelect](https://www.primefaces.org/primevue/treeselect)
229
- *
230
- */
231
239
  export default TreeSelect;