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,8 +1,18 @@
1
+ /**
2
+ *
3
+ * OrganizationChart visualizes hierarchical organization data.
4
+ *
5
+ * [Live Demo](https://primevue.org/organizationchart)
6
+ *
7
+ * @module organizationchart
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type OrganizationChartSelectionModeType = 'single' | 'multiple' | undefined;
5
-
13
+ /**
14
+ * Defines valid properties in OrganizationChartNode.
15
+ */
6
16
  export interface OrganizationChartNode {
7
17
  /**
8
18
  * Unique identifier of the node. (required)
@@ -22,12 +32,12 @@ export interface OrganizationChartNode {
22
32
  data?: any;
23
33
  /**
24
34
  * Whether node is selectable when selection is enabled.
25
- * Default value is true.
35
+ * @defaultValue true
26
36
  */
27
37
  selectable?: boolean;
28
38
  /**
29
39
  * Whether node is collapsible when node expansion is enabled.
30
- * Default value is true.
40
+ * @defaultValue true
31
41
  */
32
42
  collapsible?: boolean;
33
43
  /**
@@ -54,6 +64,9 @@ export interface OrganizationChartCollapsedKeys {
54
64
  [key: string]: any;
55
65
  }
56
66
 
67
+ /**
68
+ * Defines valid properties in OrganizationChart component.
69
+ */
57
70
  export interface OrganizationChartProps {
58
71
  /**
59
72
  * Value of the component.
@@ -65,63 +78,81 @@ export interface OrganizationChartProps {
65
78
  selectionKeys?: OrganizationChartSelectionKeys;
66
79
  /**
67
80
  * Type of the selection.
68
- * @see OrganizationChartSelectionModeType
69
81
  */
70
- selectionMode?: OrganizationChartSelectionModeType;
82
+ selectionMode?: 'single' | 'multiple' | undefined;
71
83
  /**
72
84
  * A map instance of key-value pairs to represented the collapsed nodes.
73
85
  */
74
86
  collapsedKeys?: OrganizationChartCollapsedKeys;
75
87
  /**
76
88
  * Whether the nodes can be expanded or toggled.
89
+ * @defaultValue false
77
90
  */
78
91
  collapsible?: boolean;
79
92
  }
80
93
 
94
+ /**
95
+ * Defines valid slots in OrganizationChart component.
96
+ */
81
97
  export interface OrganizationChartSlots {
82
98
  /**
83
99
  * Custom content template.
84
100
  */
85
- default: (node: any) => VNode[];
101
+ default(node: any): VNode[];
86
102
  /**
87
103
  * Dynamic content template.
104
+ * @todo
88
105
  */
89
106
  [key: string]: (node: any) => VNode[];
90
107
  }
91
108
 
92
- type OrganizationChartEmits = {
109
+ /**
110
+ * Defines valid emits in OrganizationChart component.
111
+ */
112
+ export interface OrganizationChartEmits {
93
113
  /**
94
114
  * Emitted when the value changes.
95
115
  * @param {*} value - New value.
96
116
  */
97
- 'update:selectionKeys': (value: any) => void;
117
+ 'update:selectionKeys'(value: any): void;
98
118
  /**
99
119
  * Emitted when the value changes.
100
120
  * @param {boolean} value - New value.
101
121
  */
102
- 'update:collapsedKeys': (value: boolean) => void;
122
+ 'update:collapsedKeys'(value: boolean): void;
103
123
  /**
104
124
  * Callback to invoke when a suggestion is selected.
105
125
  * @param {OrganizationChartNode} node - Node instance.
106
126
  */
107
- 'node-select': (node: OrganizationChartNode) => void;
127
+ 'node-select'(node: OrganizationChartNode): void;
108
128
  /**
109
129
  * Callback to invoke when a node is unselected.
110
130
  * @param {OrganizationChartNode} node - Node instance.
111
131
  */
112
- 'node-unselect': (node: OrganizationChartNode) => void;
132
+ 'node-unselect'(node: OrganizationChartNode): void;
113
133
  /**
114
134
  * Callback to invoke when a node is expanded.
115
135
  * @param {OrganizationChartNode} node - Node instance.
116
136
  */
117
- 'node-expand': (node: OrganizationChartNode) => void;
137
+ 'node-expand'(node: OrganizationChartNode): void;
118
138
  /**
119
139
  * Callback to invoke when a node is collapsed.
120
140
  * @param {OrganizationChartNode} node - Node instance.
121
141
  */
122
- 'node-collapsed': (node: OrganizationChartNode) => void;
123
- };
142
+ 'node-collapsed'(node: OrganizationChartNode): void;
143
+ }
124
144
 
145
+ /**
146
+ * **PrimeVue - OrganizationChart**
147
+ *
148
+ * _OrganizationChart visualizes hierarchical organization data._
149
+ *
150
+ * [Live Demo](https://www.primevue.org/organizationchart/)
151
+ * --- ---
152
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
153
+ *
154
+ * @group Component
155
+ */
125
156
  declare class OrganizationChart extends ClassComponent<OrganizationChartProps, OrganizationChartSlots, OrganizationChartEmits> {}
126
157
 
127
158
  declare module '@vue/runtime-core' {
@@ -130,17 +161,4 @@ declare module '@vue/runtime-core' {
130
161
  }
131
162
  }
132
163
 
133
- /**
134
- *
135
- * OrganizationChart visualizes hierarchical organization data.
136
- *
137
- * Helper API:
138
- *
139
- * - OrganizationChartNode
140
- *
141
- * Demos:
142
- *
143
- * - [OrganizationChart](https://www.primefaces.org/primevue/organizationchart)
144
- *
145
- */
146
164
  export default OrganizationChart;
@@ -1,8 +1,18 @@
1
+ /**
2
+ *
3
+ * OverlayPanel is a container component positioned as connected to its target.
4
+ *
5
+ * [Live Demo](https://primevue.org/overlaypanel)
6
+ *
7
+ * @module overlaypanel
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type OverlayPanelAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
5
-
13
+ /**
14
+ * OverlayPanel breakpoint metadata.
15
+ */
6
16
  export interface OverlayPanelBreakpoints {
7
17
  /**
8
18
  * Breakpoint for responsive mode.
@@ -22,57 +32,76 @@ export interface OverlayPanelBreakpoints {
22
32
  [key: string]: string;
23
33
  }
24
34
 
35
+ /**
36
+ * Defines valid properties in OverlayPanel component.
37
+ */
25
38
  export interface OverlayPanelProps {
26
39
  /**
27
40
  * Enables to hide the overlay when outside is clicked.
28
- * Default value is true.
41
+ * @defaultValue true
29
42
  */
30
43
  dismissable?: boolean;
31
44
  /**
32
45
  * When enabled, displays a close icon at top right corner.
46
+ * @defaultValue false
33
47
  */
34
48
  showCloseIcon?: boolean;
35
49
  /**
36
50
  * A valid query selector or an HTMLElement to specify where the overlay gets attached.
37
- * @see OverlayPanelAppendToType
38
- * Default value is 'body'.
51
+ * @defaultValue body
39
52
  */
40
- appendTo?: OverlayPanelAppendToType;
53
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
41
54
  /**
42
55
  * Base zIndex value to use in layering.
43
- * Default value is 0.
56
+ * @defaultValue 0
44
57
  */
45
58
  baseZIndex?: number;
46
59
  /**
47
60
  * Whether to automatically manage layering.
48
- * Default value is true.
61
+ * @defaultValue true
49
62
  */
50
63
  autoZIndex?: boolean;
51
64
  /**
52
65
  * Object literal to define widths per screen size.
53
- * @see OverlayPanelBreakpoints
54
66
  */
55
67
  breakpoints?: OverlayPanelBreakpoints;
56
68
  }
57
69
 
70
+ /**
71
+ * Defines valid slots in OverlayPanel component.
72
+ */
58
73
  export interface OverlayPanelSlots {
59
74
  /**
60
75
  * Custom content template.
61
76
  */
62
- default: () => VNode[];
77
+ default(): VNode[];
63
78
  }
64
79
 
65
- export declare type OverlayPanelEmits = {
80
+ /**
81
+ * Defines valid emits in OverlayPanel component.
82
+ */
83
+ export interface OverlayPanelEmits {
66
84
  /**
67
85
  * Callback to invoke when the overlay is shown.
68
86
  */
69
- show: () => void;
87
+ show(): void;
70
88
  /**
71
89
  * Callback to invoke when the overlay is hidden.
72
90
  */
73
- hide: () => void;
74
- };
91
+ hide(): void;
92
+ }
75
93
 
94
+ /**
95
+ * **PrimeVue - OverlayPanel**
96
+ *
97
+ * _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
98
+ *
99
+ * [Live Demo](https://www.primevue.org/overlaypanel/)
100
+ * --- ---
101
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
102
+ *
103
+ * @group Component
104
+ */
76
105
  declare class OverlayPanel extends ClassComponent<OverlayPanelProps, OverlayPanelSlots, OverlayPanelEmits> {
77
106
  /**
78
107
  * Toggles the visibility of the overlay.
@@ -81,7 +110,7 @@ declare class OverlayPanel extends ClassComponent<OverlayPanelProps, OverlayPane
81
110
  *
82
111
  * @memberof OverlayPanel
83
112
  */
84
- toggle: (event: Event, target?: any) => void;
113
+ toggle(event: Event, target?: any): void;
85
114
  /**
86
115
  * Shows the overlay.
87
116
  * @param {Event} event - Browser event.
@@ -89,13 +118,13 @@ declare class OverlayPanel extends ClassComponent<OverlayPanelProps, OverlayPane
89
118
  *
90
119
  * @memberof OverlayPanel
91
120
  */
92
- show: (event: Event, target?: any) => void;
121
+ show(event: Event, target?: any): void;
93
122
  /**
94
123
  * Hides the overlay.
95
124
  *
96
125
  * @memberof OverlayPanel
97
126
  */
98
- hide: () => void;
127
+ hide(): void;
99
128
  }
100
129
 
101
130
  declare module '@vue/runtime-core' {
@@ -104,13 +133,4 @@ declare module '@vue/runtime-core' {
104
133
  }
105
134
  }
106
135
 
107
- /**
108
- *
109
- * OverlayPanel is a container component positioned as connected to its target.
110
- *
111
- * Demos:
112
- *
113
- * - [OverlayPanel](https://www.primefaces.org/primevue/overlaypanel)
114
- *
115
- */
116
136
  export default OverlayPanel;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "primevue",
3
- "version": "3.23.0",
4
- "homepage": "https://www.primefaces.org/primevue",
3
+ "version": "3.25.0",
4
+ "homepage": "https://primevue.org/",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/primefaces/primevue.git"
@@ -1,6 +1,18 @@
1
+ /**
2
+ *
3
+ * Paginator is a generic component to display content in paged format.
4
+ *
5
+ * - [Paginator](https://primevue.org/paginator)
6
+ *
7
+ * @module paginator
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Paginator page state metadata.
15
+ */
4
16
  export interface PageState {
5
17
  /**
6
18
  * Index of first record
@@ -20,25 +32,28 @@ export interface PageState {
20
32
  pageCount?: number;
21
33
  }
22
34
 
35
+ /**
36
+ * Defines valid properties in Paginator component.
37
+ */
23
38
  export interface PaginatorProps {
24
39
  /**
25
40
  * Number of total records.
26
- * Default value is 0.
41
+ * @defaultValue 0
27
42
  */
28
43
  totalRecords?: number | undefined;
29
44
  /**
30
45
  * Data count to display per page.
31
- * Default value is 0.
46
+ * @defaultValue 0
32
47
  */
33
48
  rows?: number | undefined;
34
49
  /**
35
50
  * Zero-relative number of the first row to be displayed.
36
- * Default value is 0.
51
+ * @defaultValue 0
37
52
  */
38
53
  first?: number | undefined;
39
54
  /**
40
55
  * Number of page links to display.
41
- * Default value is 5.
56
+ * @defaultValue 5
42
57
  */
43
58
  pageLinkSize?: number | undefined;
44
59
  /**
@@ -60,7 +75,7 @@ export interface PaginatorProps {
60
75
  */
61
76
  template?: any | string;
62
77
  /**
63
- * Template of the current page report element. It displays information about the pagination state. Default value is ({currentPage} of {totalPages}) whereas available placeholders are the following;
78
+ * Template of the current page report element. It displays information about the pagination state. Available placeholders are the following;
64
79
  *
65
80
  * - {currentPage}
66
81
  * - {totalPages}
@@ -68,58 +83,77 @@ export interface PaginatorProps {
68
83
  * - {first}
69
84
  * - {last}
70
85
  * - {totalRecords}
86
+ *
87
+ * @defaultValue '({currentPage} of {totalPages})'
71
88
  */
72
89
  currentPageReportTemplate?: string | undefined;
73
90
  /**
74
91
  * Whether to show the paginator even there is only one page.
75
- * Default value is true.
92
+ * @defaultValue true
76
93
  */
77
94
  alwaysShow?: boolean | undefined;
78
95
  }
79
96
 
97
+ /**
98
+ * Defines valid slots in Paginator component.
99
+ */
80
100
  export interface PaginatorSlots {
81
101
  /**
82
102
  * Custom start template.
83
103
  * @param {Object} scope - start slot's params.
84
104
  */
85
- start: (scope: {
105
+ start(scope: {
86
106
  /**
87
107
  * Current state
88
108
  * @see PageState
89
109
  */
90
110
  state: PageState;
91
- }) => VNode[];
111
+ }): VNode[];
92
112
  /**
93
113
  * Custom end template.
94
114
  * @param {Object} scope - end slot's params.
95
115
  */
96
- end: (scope: {
116
+ end(scope: {
97
117
  /**
98
118
  * Current state
99
119
  * @see PageState
100
120
  */
101
121
  state: PageState;
102
- }) => VNode[];
122
+ }): VNode[];
103
123
  }
104
124
 
105
- export declare type PaginatorEmits = {
125
+ /**
126
+ * Defines valid emits in Paginator component.
127
+ */
128
+ export interface PaginatorEmits {
106
129
  /**
107
130
  * Emitted when the first changes.
108
131
  * @param {number} value - New value.
109
132
  */
110
- 'update:first': (value: number) => void;
133
+ 'update:first'(value: number): void;
111
134
  /**
112
135
  * Emitted when the rows changes.
113
136
  * @param {number} value - New value.
114
137
  */
115
- 'update:rows': (value: number) => void;
138
+ 'update:rows'(value: number): void;
116
139
  /**
117
140
  * Callback to invoke when page changes, the event object contains information about the new state.
118
141
  * @param {PageState} event - New page state.
119
142
  */
120
- page: (event: PageState) => void;
121
- };
143
+ page(event: PageState): void;
144
+ }
122
145
 
146
+ /**
147
+ * **PrimeVue - Paginator**
148
+ *
149
+ * _Paginator is a generic widget to display content in paged format._
150
+ *
151
+ * [Live Demo](https://www.primevue.org/paginator/)
152
+ * --- ---
153
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
154
+ *
155
+ * @group Component
156
+ */
123
157
  declare class Paginator extends ClassComponent<PaginatorProps, PaginatorSlots, PaginatorEmits> {}
124
158
 
125
159
  declare module '@vue/runtime-core' {
@@ -128,13 +162,4 @@ declare module '@vue/runtime-core' {
128
162
  }
129
163
  }
130
164
 
131
- /**
132
- *
133
- * Paginator is a generic component to display content in paged format.
134
- *
135
- * Demos:
136
- *
137
- * - [Paginator](https://www.primefaces.org/primevue/paginator)
138
- *
139
- */
140
165
  export default Paginator;
package/panel/Panel.d.ts CHANGED
@@ -1,6 +1,19 @@
1
+ /**
2
+ *
3
+ * Panel is a container with the optional content toggle feature.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/panel/)
6
+ *
7
+ * @module panel
8
+ *
9
+ */
1
10
  import { ButtonHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Custom toggle event.
15
+ * @see {@link PanelEmits.toggle}
16
+ */
4
17
  export interface PanelToggleEvent {
5
18
  /**
6
19
  * Browser event.
@@ -12,6 +25,9 @@ export interface PanelToggleEvent {
12
25
  value: boolean;
13
26
  }
14
27
 
28
+ /**
29
+ * Defines valid properties in Panel component.
30
+ */
15
31
  export interface PanelProps {
16
32
  /**
17
33
  * Header text of the panel.
@@ -19,10 +35,12 @@ export interface PanelProps {
19
35
  header?: string;
20
36
  /**
21
37
  * Defines if content of panel can be expanded and collapsed.
38
+ * @defaultValue false
22
39
  */
23
40
  toggleable?: boolean;
24
41
  /**
25
42
  * Defines the initial state of panel content.
43
+ * @defaultValue false
26
44
  */
27
45
  collapsed?: boolean;
28
46
  /**
@@ -31,22 +49,28 @@ export interface PanelProps {
31
49
  toggleButtonProps?: ButtonHTMLAttributes | undefined;
32
50
  }
33
51
 
52
+ /**
53
+ * Defines valid slots in Panel slots.
54
+ */
34
55
  export interface PanelSlots {
35
56
  /**
36
57
  * Custom content template.
37
58
  */
38
- default: () => VNode[];
59
+ default(): VNode[];
39
60
  /**
40
61
  * Custom header template.
41
62
  */
42
- header: () => VNode[];
63
+ header(): VNode[];
43
64
  /**
44
65
  * Custom icons template.
45
66
  */
46
- icons: () => VNode[];
67
+ icons(): VNode[];
47
68
  }
48
69
 
49
- export declare type PanelEmits = {
70
+ /**
71
+ * Defines valid emits in Panel component.
72
+ */
73
+ export interface PanelEmits {
50
74
  /**
51
75
  * Emitted when the collapsed changes.
52
76
  * @param {boolean} value - New value.
@@ -57,8 +81,20 @@ export declare type PanelEmits = {
57
81
  * @param {PanelToggleEvent} event - Custom toggle event.
58
82
  */
59
83
  toggle: (event: PanelToggleEvent) => void;
60
- };
84
+ }
61
85
 
86
+ /**
87
+ * **PrimeVue - Panel**
88
+ *
89
+ * _Panel is a container with the optional content toggle feature._
90
+ *
91
+ * [Live Demo](https://www.primevue.org/panel/)
92
+ * --- ---
93
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
94
+ *
95
+ * @group Component
96
+ *
97
+ */
62
98
  declare class Panel extends ClassComponent<PanelProps, PanelSlots, PanelEmits> {}
63
99
 
64
100
  declare module '@vue/runtime-core' {
@@ -67,13 +103,4 @@ declare module '@vue/runtime-core' {
67
103
  }
68
104
  }
69
105
 
70
- /**
71
- *
72
- * Panel is a container with the optional content toggle feature.
73
- *
74
- * Demos:
75
- *
76
- * - [Panel](https://www.primefaces.org/primevue/panel)
77
- *
78
- */
79
106
  export default Panel;