primevue 3.8.1 → 3.10.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 (515) hide show
  1. package/README.md +2 -2
  2. package/accordion/Accordion.d.ts +74 -11
  3. package/accordion/Accordion.vue +1 -1
  4. package/accordion/accordion.cjs.js +1 -1
  5. package/accordion/accordion.cjs.min.js +1 -1
  6. package/accordion/accordion.esm.js +1 -1
  7. package/accordion/accordion.esm.min.js +1 -1
  8. package/accordion/accordion.js +1 -1
  9. package/accordion/accordion.min.js +1 -1
  10. package/accordiontab/AccordionTab.d.ts +37 -8
  11. package/api/Api.d.ts +293 -245
  12. package/api/api.cjs.js +66 -32
  13. package/api/api.cjs.min.js +1 -1
  14. package/api/api.esm.js +66 -32
  15. package/api/api.esm.min.js +1 -1
  16. package/api/api.js +66 -32
  17. package/api/api.min.js +1 -1
  18. package/autocomplete/AutoComplete.d.ts +283 -32
  19. package/autocomplete/AutoComplete.vue +16 -9
  20. package/autocomplete/autocomplete.cjs.js +19 -11
  21. package/autocomplete/autocomplete.cjs.min.js +1 -1
  22. package/autocomplete/autocomplete.esm.js +19 -11
  23. package/autocomplete/autocomplete.esm.min.js +1 -1
  24. package/autocomplete/autocomplete.js +19 -11
  25. package/autocomplete/autocomplete.min.js +1 -1
  26. package/avatar/Avatar.d.ts +57 -8
  27. package/avatargroup/AvatarGroup.d.ts +29 -3
  28. package/badge/Badge.d.ts +46 -5
  29. package/blockui/BlockUI.d.ts +52 -11
  30. package/blockui/BlockUI.vue +1 -1
  31. package/blockui/blockui.cjs.js +5 -7
  32. package/blockui/blockui.cjs.min.js +1 -1
  33. package/blockui/blockui.esm.js +6 -8
  34. package/blockui/blockui.esm.min.js +1 -1
  35. package/blockui/blockui.js +5 -7
  36. package/blockui/blockui.min.js +1 -1
  37. package/breadcrumb/Breadcrumb.d.ts +52 -5
  38. package/breadcrumb/BreadcrumbItem.vue +5 -2
  39. package/breadcrumb/breadcrumb.cjs.js +5 -2
  40. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  41. package/breadcrumb/breadcrumb.esm.js +5 -2
  42. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  43. package/breadcrumb/breadcrumb.js +5 -2
  44. package/breadcrumb/breadcrumb.min.js +1 -1
  45. package/button/Button.d.ts +68 -11
  46. package/calendar/Calendar.d.ts +326 -56
  47. package/calendar/Calendar.vue +403 -80
  48. package/calendar/calendar.cjs.js +515 -197
  49. package/calendar/calendar.cjs.min.js +1 -1
  50. package/calendar/calendar.esm.js +517 -198
  51. package/calendar/calendar.esm.min.js +1 -1
  52. package/calendar/calendar.js +517 -198
  53. package/calendar/calendar.min.js +1 -1
  54. package/card/Card.d.ts +43 -9
  55. package/carousel/Carousel.d.ts +123 -21
  56. package/carousel/Carousel.vue +2 -2
  57. package/carousel/carousel.cjs.js +6 -6
  58. package/carousel/carousel.cjs.min.js +1 -1
  59. package/carousel/carousel.esm.js +6 -6
  60. package/carousel/carousel.esm.min.js +1 -1
  61. package/carousel/carousel.js +6 -6
  62. package/carousel/carousel.min.js +1 -1
  63. package/cascadeselect/CascadeSelect.d.ts +176 -30
  64. package/chart/Chart.d.ts +104 -12
  65. package/chart/Chart.vue +18 -4
  66. package/chart/chart.cjs.js +18 -4
  67. package/chart/chart.cjs.min.js +1 -1
  68. package/chart/chart.esm.js +18 -4
  69. package/chart/chart.esm.min.js +1 -1
  70. package/chart/chart.js +18 -4
  71. package/chart/chart.min.js +1 -1
  72. package/checkbox/Checkbox.d.ts +65 -7
  73. package/chip/Chip.d.ts +50 -4
  74. package/chips/Chips.d.ts +90 -13
  75. package/colorpicker/ColorPicker.d.ts +105 -13
  76. package/colorpicker/ColorPicker.vue +6 -1
  77. package/colorpicker/colorpicker.cjs.js +6 -1
  78. package/colorpicker/colorpicker.cjs.min.js +1 -1
  79. package/colorpicker/colorpicker.esm.js +6 -1
  80. package/colorpicker/colorpicker.esm.min.js +1 -1
  81. package/colorpicker/colorpicker.js +6 -1
  82. package/colorpicker/colorpicker.min.js +1 -1
  83. package/column/Column.d.ts +456 -55
  84. package/columngroup/ColumnGroup.d.ts +30 -4
  85. package/confirmationoptions/ConfirmationOptions.d.ts +50 -0
  86. package/confirmationoptions/package.json +3 -0
  87. package/confirmationservice/ConfirmationService.d.ts +2 -1
  88. package/confirmdialog/ConfirmDialog.d.ts +57 -5
  89. package/confirmdialog/ConfirmDialog.vue +8 -2
  90. package/confirmdialog/confirmdialog.cjs.js +11 -4
  91. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  92. package/confirmdialog/confirmdialog.esm.js +11 -4
  93. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  94. package/confirmdialog/confirmdialog.js +11 -4
  95. package/confirmdialog/confirmdialog.min.js +1 -1
  96. package/confirmpopup/ConfirmPopup.d.ts +41 -3
  97. package/confirmpopup/ConfirmPopup.vue +7 -4
  98. package/confirmpopup/confirmpopup.cjs.js +13 -5
  99. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  100. package/confirmpopup/confirmpopup.esm.js +14 -6
  101. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  102. package/confirmpopup/confirmpopup.js +13 -5
  103. package/confirmpopup/confirmpopup.min.js +1 -1
  104. package/contextmenu/ContextMenu.d.ts +90 -14
  105. package/contextmenu/ContextMenuSub.vue +8 -5
  106. package/contextmenu/contextmenu.cjs.js +8 -5
  107. package/contextmenu/contextmenu.cjs.min.js +1 -1
  108. package/contextmenu/contextmenu.esm.js +8 -5
  109. package/contextmenu/contextmenu.esm.min.js +1 -1
  110. package/contextmenu/contextmenu.js +8 -5
  111. package/contextmenu/contextmenu.min.js +1 -1
  112. package/core/core.js +501 -335
  113. package/core/core.min.js +14 -17
  114. package/datatable/BodyCell.vue +27 -1
  115. package/datatable/ColumnFilter.vue +17 -6
  116. package/datatable/DataTable.d.ts +1068 -115
  117. package/datatable/DataTable.vue +141 -99
  118. package/datatable/HeaderCheckbox.vue +4 -1
  119. package/datatable/TableBody.vue +57 -14
  120. package/datatable/TableFooter.vue +15 -1
  121. package/datatable/TableHeader.vue +15 -1
  122. package/datatable/datatable.cjs.js +527 -343
  123. package/datatable/datatable.cjs.min.js +1 -1
  124. package/datatable/datatable.esm.js +527 -344
  125. package/datatable/datatable.esm.min.js +1 -1
  126. package/datatable/datatable.js +528 -345
  127. package/datatable/datatable.min.js +1 -1
  128. package/dataview/DataView.d.ts +200 -29
  129. package/dataview/DataView.vue +8 -8
  130. package/dataview/dataview.cjs.js +12 -12
  131. package/dataview/dataview.cjs.min.js +1 -1
  132. package/dataview/dataview.esm.js +12 -12
  133. package/dataview/dataview.esm.min.js +1 -1
  134. package/dataview/dataview.js +12 -12
  135. package/dataview/dataview.min.js +1 -1
  136. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
  137. package/deferredcontent/DeferredContent.d.ts +31 -6
  138. package/dialog/Dialog.d.ts +188 -35
  139. package/dialog/Dialog.vue +6 -1
  140. package/dialog/dialog.cjs.js +4 -2
  141. package/dialog/dialog.cjs.min.js +1 -1
  142. package/dialog/dialog.esm.js +4 -2
  143. package/dialog/dialog.esm.min.js +1 -1
  144. package/dialog/dialog.js +4 -2
  145. package/dialog/dialog.min.js +1 -1
  146. package/divider/Divider.d.ts +53 -8
  147. package/dock/Dock.d.ts +96 -11
  148. package/dropdown/Dropdown.d.ts +351 -49
  149. package/dropdown/Dropdown.vue +1 -0
  150. package/dropdown/dropdown.cjs.js +1 -0
  151. package/dropdown/dropdown.cjs.min.js +1 -1
  152. package/dropdown/dropdown.esm.js +1 -0
  153. package/dropdown/dropdown.esm.min.js +1 -1
  154. package/dropdown/dropdown.js +1 -0
  155. package/dropdown/dropdown.min.js +1 -1
  156. package/editor/Editor.d.ts +78 -11
  157. package/fieldset/Fieldset.d.ts +63 -11
  158. package/fileupload/FileUpload.d.ts +256 -33
  159. package/fullcalendar/FullCalendar.d.ts +29 -3
  160. package/galleria/Galleria.d.ts +203 -37
  161. package/image/Image.d.ts +51 -6
  162. package/inlinemessage/InlineMessage.d.ts +34 -6
  163. package/inplace/Inplace.d.ts +57 -12
  164. package/inputmask/InputMask.d.ts +75 -15
  165. package/inputnumber/InputNumber.d.ts +180 -30
  166. package/inputnumber/InputNumber.vue +19 -3
  167. package/inputnumber/inputnumber.cjs.js +19 -3
  168. package/inputnumber/inputnumber.cjs.min.js +1 -1
  169. package/inputnumber/inputnumber.esm.js +19 -3
  170. package/inputnumber/inputnumber.esm.min.js +1 -1
  171. package/inputnumber/inputnumber.js +19 -3
  172. package/inputnumber/inputnumber.min.js +1 -1
  173. package/inputswitch/InputSwitch.d.ts +61 -9
  174. package/inputtext/InputText.d.ts +34 -5
  175. package/inputtext/InputText.vue +1 -1
  176. package/inputtext/inputtext.cjs.js +2 -2
  177. package/inputtext/inputtext.cjs.min.js +1 -1
  178. package/inputtext/inputtext.esm.js +3 -3
  179. package/inputtext/inputtext.esm.min.js +1 -1
  180. package/inputtext/inputtext.js +2 -2
  181. package/inputtext/inputtext.min.js +1 -1
  182. package/knob/Knob.d.ts +92 -18
  183. package/listbox/Listbox.d.ts +255 -34
  184. package/megamenu/MegaMenu.d.ts +62 -10
  185. package/megamenu/MegaMenu.vue +11 -8
  186. package/megamenu/megamenu.cjs.js +11 -8
  187. package/megamenu/megamenu.cjs.min.js +1 -1
  188. package/megamenu/megamenu.esm.js +11 -8
  189. package/megamenu/megamenu.esm.min.js +1 -1
  190. package/megamenu/megamenu.js +11 -8
  191. package/megamenu/megamenu.min.js +1 -1
  192. package/menu/Menu.d.ts +86 -13
  193. package/menu/Menu.vue +6 -3
  194. package/menu/Menuitem.vue +5 -2
  195. package/menu/menu.cjs.js +11 -5
  196. package/menu/menu.cjs.min.js +1 -1
  197. package/menu/menu.esm.js +11 -5
  198. package/menu/menu.esm.min.js +1 -1
  199. package/menu/menu.js +11 -5
  200. package/menu/menu.min.js +1 -1
  201. package/menubar/Menubar.d.ts +54 -9
  202. package/menubar/Menubar.vue +1 -0
  203. package/menubar/MenubarSub.vue +8 -5
  204. package/menubar/menubar.cjs.js +9 -6
  205. package/menubar/menubar.cjs.min.js +1 -1
  206. package/menubar/menubar.esm.js +9 -6
  207. package/menubar/menubar.esm.min.js +1 -1
  208. package/menubar/menubar.js +9 -6
  209. package/menubar/menubar.min.js +1 -1
  210. package/menuitem/MenuItem.d.ts +80 -0
  211. package/menuitem/package.json +3 -0
  212. package/message/Message.d.ts +57 -10
  213. package/message/Message.vue +6 -2
  214. package/message/message.cjs.js +6 -2
  215. package/message/message.cjs.min.js +1 -1
  216. package/message/message.esm.js +6 -2
  217. package/message/message.esm.min.js +1 -1
  218. package/message/message.js +6 -2
  219. package/message/message.min.js +1 -1
  220. package/multiselect/MultiSelect.d.ts +381 -54
  221. package/orderlist/OrderList.d.ts +124 -14
  222. package/orderlist/OrderList.vue +2 -0
  223. package/orderlist/orderlist.cjs.js +3 -1
  224. package/orderlist/orderlist.cjs.min.js +1 -1
  225. package/orderlist/orderlist.esm.js +3 -1
  226. package/orderlist/orderlist.esm.min.js +1 -1
  227. package/orderlist/orderlist.js +3 -1
  228. package/orderlist/orderlist.min.js +1 -1
  229. package/organizationchart/OrganizationChart.d.ts +137 -15
  230. package/organizationchart/OrganizationChart.vue +1 -0
  231. package/organizationchart/organizationchart.cjs.js +1 -1
  232. package/organizationchart/organizationchart.cjs.min.js +1 -1
  233. package/organizationchart/organizationchart.esm.js +1 -1
  234. package/organizationchart/organizationchart.esm.min.js +1 -1
  235. package/organizationchart/organizationchart.js +1 -1
  236. package/organizationchart/organizationchart.min.js +1 -1
  237. package/overlaypanel/OverlayPanel.d.ts +107 -12
  238. package/package.json +5 -1
  239. package/paginator/Paginator.d.ts +129 -21
  240. package/paginator/Paginator.vue +4 -4
  241. package/paginator/paginator.cjs.js +4 -4
  242. package/paginator/paginator.cjs.min.js +1 -1
  243. package/paginator/paginator.esm.js +4 -4
  244. package/paginator/paginator.esm.min.js +1 -1
  245. package/paginator/paginator.js +4 -4
  246. package/paginator/paginator.min.js +1 -1
  247. package/panel/Panel.d.ts +64 -8
  248. package/panel/Panel.vue +1 -1
  249. package/panelmenu/PanelMenu.d.ts +59 -9
  250. package/panelmenu/PanelMenu.vue +8 -5
  251. package/panelmenu/PanelMenuSub.vue +8 -5
  252. package/panelmenu/panelmenu.cjs.js +18 -12
  253. package/panelmenu/panelmenu.cjs.min.js +1 -1
  254. package/panelmenu/panelmenu.esm.js +18 -12
  255. package/panelmenu/panelmenu.esm.min.js +1 -1
  256. package/panelmenu/panelmenu.js +18 -12
  257. package/panelmenu/panelmenu.min.js +1 -1
  258. package/password/Password.d.ts +115 -24
  259. package/picklist/PickList.d.ts +201 -23
  260. package/picklist/PickList.vue +10 -4
  261. package/picklist/picklist.cjs.js +13 -7
  262. package/picklist/picklist.cjs.min.js +1 -1
  263. package/picklist/picklist.esm.js +13 -7
  264. package/picklist/picklist.esm.min.js +1 -1
  265. package/picklist/picklist.js +13 -7
  266. package/picklist/picklist.min.js +1 -1
  267. package/progressbar/ProgressBar.d.ts +43 -8
  268. package/progressbar/ProgressBar.vue +13 -12
  269. package/progressbar/progressbar.cjs.js +13 -12
  270. package/progressbar/progressbar.cjs.min.js +1 -1
  271. package/progressbar/progressbar.esm.js +14 -13
  272. package/progressbar/progressbar.esm.min.js +1 -1
  273. package/progressbar/progressbar.js +13 -12
  274. package/progressbar/progressbar.min.js +1 -1
  275. package/progressspinner/ProgressSpinner.d.ts +39 -6
  276. package/radiobutton/RadioButton.d.ts +51 -6
  277. package/rating/Rating.d.ts +67 -10
  278. package/rating/Rating.vue +1 -1
  279. package/rating/rating.cjs.js +1 -1
  280. package/rating/rating.cjs.min.js +1 -1
  281. package/rating/rating.esm.js +1 -1
  282. package/rating/rating.esm.min.js +1 -1
  283. package/rating/rating.js +1 -1
  284. package/rating/rating.min.js +1 -1
  285. package/resources/primevue.css +5 -0
  286. package/resources/primevue.min.css +1 -1
  287. package/resources/themes/arya-blue/theme.css +61 -16
  288. package/resources/themes/arya-green/theme.css +61 -16
  289. package/resources/themes/arya-orange/theme.css +61 -16
  290. package/resources/themes/arya-purple/theme.css +61 -16
  291. package/resources/themes/bootstrap4-dark-blue/theme.css +58 -20
  292. package/resources/themes/bootstrap4-dark-purple/theme.css +58 -20
  293. package/resources/themes/bootstrap4-light-blue/theme.css +58 -20
  294. package/resources/themes/bootstrap4-light-purple/theme.css +58 -20
  295. package/resources/themes/fluent-light/theme.css +61 -16
  296. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  297. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  298. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  299. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  300. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  301. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  302. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  303. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  304. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  305. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  306. package/resources/themes/lara-dark-blue/theme.css +5418 -0
  307. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  308. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  309. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  310. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  311. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  312. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  313. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  314. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  315. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  316. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  317. package/resources/themes/lara-dark-indigo/theme.css +5418 -0
  318. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  319. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  320. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  321. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  322. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  323. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  324. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  325. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  326. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  327. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  328. package/resources/themes/lara-dark-purple/theme.css +5418 -0
  329. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  330. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  331. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  332. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  333. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  334. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  335. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  336. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  337. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  338. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  339. package/resources/themes/lara-dark-teal/theme.css +5418 -0
  340. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  341. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  342. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  343. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  344. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  345. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  346. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  347. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  348. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  349. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  350. package/resources/themes/lara-light-blue/theme.css +5418 -0
  351. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  352. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  353. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  354. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  355. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  356. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  357. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  358. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  359. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  360. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  361. package/resources/themes/lara-light-indigo/theme.css +5418 -0
  362. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  363. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  364. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  365. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  366. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  367. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  368. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  369. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  370. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  371. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  372. package/resources/themes/lara-light-purple/theme.css +5418 -0
  373. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  374. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  375. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  376. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  377. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  378. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  379. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  380. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  381. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  382. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  383. package/resources/themes/lara-light-teal/theme.css +5418 -0
  384. package/resources/themes/luna-amber/theme.css +58 -20
  385. package/resources/themes/luna-blue/theme.css +58 -20
  386. package/resources/themes/luna-green/theme.css +58 -20
  387. package/resources/themes/luna-pink/theme.css +58 -20
  388. package/resources/themes/md-dark-deeppurple/theme.css +249 -48
  389. package/resources/themes/md-dark-indigo/theme.css +249 -48
  390. package/resources/themes/md-light-deeppurple/theme.css +249 -48
  391. package/resources/themes/md-light-indigo/theme.css +249 -48
  392. package/resources/themes/mdc-dark-deeppurple/theme.css +249 -48
  393. package/resources/themes/mdc-dark-indigo/theme.css +249 -48
  394. package/resources/themes/mdc-light-deeppurple/theme.css +249 -48
  395. package/resources/themes/mdc-light-indigo/theme.css +249 -48
  396. package/resources/themes/nova/theme.css +58 -20
  397. package/resources/themes/nova-accent/theme.css +58 -20
  398. package/resources/themes/nova-alt/theme.css +58 -20
  399. package/resources/themes/nova-vue/theme.css +58 -20
  400. package/resources/themes/rhea/theme.css +58 -20
  401. package/resources/themes/saga-blue/theme.css +61 -16
  402. package/resources/themes/saga-green/theme.css +61 -16
  403. package/resources/themes/saga-orange/theme.css +61 -16
  404. package/resources/themes/saga-purple/theme.css +61 -16
  405. package/resources/themes/tailwind-light/theme.css +72 -19
  406. package/resources/themes/vela-blue/theme.css +61 -16
  407. package/resources/themes/vela-green/theme.css +61 -16
  408. package/resources/themes/vela-orange/theme.css +61 -16
  409. package/resources/themes/vela-purple/theme.css +61 -16
  410. package/row/Row.d.ts +25 -3
  411. package/scrollpanel/ScrollPanel.d.ts +27 -5
  412. package/scrolltop/ScrollTop.d.ts +47 -7
  413. package/selectbutton/SelectButton.d.ts +108 -16
  414. package/selectbutton/SelectButton.vue +8 -2
  415. package/selectbutton/selectbutton.cjs.js +14 -9
  416. package/selectbutton/selectbutton.cjs.min.js +1 -1
  417. package/selectbutton/selectbutton.esm.js +14 -9
  418. package/selectbutton/selectbutton.esm.min.js +1 -1
  419. package/selectbutton/selectbutton.js +14 -9
  420. package/selectbutton/selectbutton.min.js +1 -1
  421. package/sidebar/Sidebar.d.ts +81 -16
  422. package/skeleton/Skeleton.d.ts +58 -9
  423. package/slider/Slider.d.ts +90 -14
  424. package/speeddial/SpeedDial.d.ts +168 -27
  425. package/splitbutton/SplitButton.d.ts +71 -11
  426. package/splitter/Splitter.d.ts +74 -7
  427. package/splitterpanel/SplitterPanel.d.ts +34 -7
  428. package/steps/Steps.d.ts +51 -9
  429. package/steps/Steps.vue +5 -2
  430. package/steps/steps.cjs.js +5 -2
  431. package/steps/steps.cjs.min.js +1 -1
  432. package/steps/steps.esm.js +5 -2
  433. package/steps/steps.esm.min.js +1 -1
  434. package/steps/steps.js +5 -2
  435. package/steps/steps.min.js +1 -1
  436. package/tabmenu/TabMenu.d.ts +63 -8
  437. package/tabmenu/TabMenu.vue +6 -3
  438. package/tabmenu/tabmenu.cjs.js +6 -3
  439. package/tabmenu/tabmenu.cjs.min.js +1 -1
  440. package/tabmenu/tabmenu.esm.js +6 -3
  441. package/tabmenu/tabmenu.esm.min.js +1 -1
  442. package/tabmenu/tabmenu.js +6 -3
  443. package/tabmenu/tabmenu.min.js +1 -1
  444. package/tabpanel/TabPanel.d.ts +34 -7
  445. package/tabview/TabView.d.ts +73 -11
  446. package/tag/Tag.d.ts +44 -8
  447. package/terminal/Terminal.d.ts +36 -5
  448. package/terminalservice/TerminalService.d.ts +9 -6
  449. package/textarea/Textarea.d.ts +38 -6
  450. package/tieredmenu/TieredMenu.d.ts +89 -13
  451. package/tieredmenu/TieredMenuSub.vue +7 -4
  452. package/tieredmenu/tieredmenu.cjs.js +7 -4
  453. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  454. package/tieredmenu/tieredmenu.esm.js +7 -4
  455. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  456. package/tieredmenu/tieredmenu.js +7 -4
  457. package/tieredmenu/tieredmenu.min.js +1 -1
  458. package/timeline/Timeline.d.ts +96 -12
  459. package/toast/Toast.d.ts +113 -8
  460. package/toastservice/ToastService.d.ts +17 -5
  461. package/togglebutton/ToggleButton.d.ts +64 -11
  462. package/toolbar/Toolbar.d.ts +31 -6
  463. package/toolbar/Toolbar.vue +2 -2
  464. package/toolbar/toolbar.cjs.js +2 -2
  465. package/toolbar/toolbar.cjs.min.js +1 -1
  466. package/toolbar/toolbar.esm.js +2 -2
  467. package/toolbar/toolbar.esm.min.js +1 -1
  468. package/toolbar/toolbar.js +2 -2
  469. package/toolbar/toolbar.min.js +1 -1
  470. package/tree/Tree.d.ts +191 -24
  471. package/tree/TreeNode.vue +4 -1
  472. package/tree/tree.cjs.js +4 -1
  473. package/tree/tree.cjs.min.js +1 -1
  474. package/tree/tree.esm.js +4 -1
  475. package/tree/tree.esm.min.js +1 -1
  476. package/tree/tree.js +4 -1
  477. package/tree/tree.min.js +1 -1
  478. package/treeselect/TreeSelect.d.ts +207 -33
  479. package/treeselect/TreeSelect.vue +9 -0
  480. package/treeselect/treeselect.cjs.js +9 -0
  481. package/treeselect/treeselect.cjs.min.js +1 -1
  482. package/treeselect/treeselect.esm.js +9 -0
  483. package/treeselect/treeselect.esm.min.js +1 -1
  484. package/treeselect/treeselect.js +9 -0
  485. package/treeselect/treeselect.min.js +1 -1
  486. package/treetable/TreeTable.d.ts +459 -63
  487. package/treetable/TreeTable.vue +8 -8
  488. package/treetable/treetable.cjs.js +12 -12
  489. package/treetable/treetable.cjs.min.js +1 -1
  490. package/treetable/treetable.esm.js +12 -12
  491. package/treetable/treetable.esm.min.js +1 -1
  492. package/treetable/treetable.js +12 -12
  493. package/treetable/treetable.min.js +1 -1
  494. package/tristatecheckbox/TriStateCheckbox.d.ts +39 -5
  495. package/ts-helpers.d.ts +28 -0
  496. package/useconfirm/UseConfirm.d.ts +5 -19
  497. package/usetoast/UseToast.d.ts +3 -5
  498. package/utils/Utils.d.ts +3 -0
  499. package/utils/utils.cjs.js +39 -2
  500. package/utils/utils.cjs.min.js +1 -1
  501. package/utils/utils.esm.js +39 -2
  502. package/utils/utils.esm.min.js +1 -1
  503. package/utils/utils.js +39 -2
  504. package/utils/utils.min.js +1 -1
  505. package/vetur-attributes.json +73 -25
  506. package/vetur-tags.json +17 -5
  507. package/virtualscroller/VirtualScroller.d.ts +311 -24
  508. package/virtualscroller/VirtualScroller.vue +296 -255
  509. package/virtualscroller/virtualscroller.cjs.js +325 -266
  510. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  511. package/virtualscroller/virtualscroller.esm.js +325 -266
  512. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  513. package/virtualscroller/virtualscroller.js +325 -266
  514. package/virtualscroller/virtualscroller.min.js +1 -1
  515. package/web-types.json +316 -37
package/knob/Knob.d.ts CHANGED
@@ -1,23 +1,97 @@
1
- interface KnobProps {
2
- modelValue?: number;
3
- size?: number;
4
- disabled?: boolean;
5
- readonly?: boolean;
6
- step?: number;
7
- min?: number;
8
- max?: number;
9
- valueColor?: string;
10
- rangeColor?: string;
11
- textColor?: string;
12
- strokeWidth?: number;
13
- showValue?: boolean;
14
- valueTemplate?: string;
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+
3
+ export interface KnobProps {
4
+ /**
5
+ * Value of the component.
6
+ */
7
+ modelValue?: number | undefined;
8
+ /**
9
+ * Size of the component in pixels.
10
+ * Default value is 100.
11
+ */
12
+ size?: number | undefined;
13
+ /**
14
+ * When present, it specifies that the component should be disabled.
15
+ */
16
+ disabled?: boolean | undefined;
17
+ /**
18
+ * When present, it specifies that the component value cannot be edited.
19
+ */
20
+ readonly?: boolean | undefined;
21
+ /**
22
+ * Step factor to increment/decrement the value.
23
+ */
24
+ step?: number | undefined;
25
+ /**
26
+ * Mininum boundary value.
27
+ * Default value is 0.
28
+ */
29
+ min?: number | undefined;
30
+ /**
31
+ * Maximum boundary value.
32
+ * Default value is 100.
33
+ */
34
+ max?: number | undefined;
35
+ /**
36
+ * Background of the value.
37
+ */
38
+ valueColor?: string | undefined;
39
+ /**
40
+ * Background color of the range.
41
+ */
42
+ rangeColor?: string | undefined;
43
+ /**
44
+ * Color of the value text.
45
+ */
46
+ textColor?: string | undefined;
47
+ /**
48
+ * Width of the knob stroke.
49
+ * Default value is 14.
50
+ */
51
+ strokeWidth?: number | undefined;
52
+ /**
53
+ * Whether the show the value inside the knob.
54
+ * Default value is true.
55
+ */
56
+ showValue?: boolean | undefined;
57
+ /**
58
+ * Template string of the value.
59
+ * Default value is '{value}'.
60
+ */
61
+ valueTemplate?: string | undefined;
62
+ }
63
+
64
+ export interface KnobSlots {
15
65
  }
16
66
 
17
- declare class Knob {
18
- $props: KnobProps;
19
- $emit(eventName: 'update:modelValue', value: number): this;
20
- $emit(eventName: 'change', value: any): this;
67
+ export declare type KnobEmits = {
68
+ /**
69
+ * Emitted when the value changes.
70
+ * @param {number} value - New value.
71
+ */
72
+ 'update:modelValue': (value: number) => void;
73
+ /**
74
+ * Callback to invoke when the value changes.
75
+ * @param {number} value - New value
76
+ */
77
+ 'change': (value: number) => void;
78
+ }
79
+
80
+ declare class Knob extends ClassComponent<KnobProps, KnobSlots, KnobEmits> { }
81
+
82
+ declare module '@vue/runtime-core' {
83
+ interface GlobalComponents {
84
+ Knob: GlobalComponentConstructor<Knob>
85
+ }
21
86
  }
22
87
 
88
+ /**
89
+ *
90
+ * Knob is a form component to define number inputs with a dial.
91
+ *
92
+ * Demos:
93
+ *
94
+ * - [Knob](https://www.primefaces.org/primevue/showcase/#/knob)
95
+ *
96
+ */
23
97
  export default Knob;
@@ -1,44 +1,265 @@
1
1
  import { VNode } from 'vue';
2
- import { VirtualScrollerProps } from '../virtualscroller';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+ import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
3
4
 
4
- interface ListboxProps {
5
+
6
+ type ListboxOptionLabelType = string | ((data: any) => string) | undefined;
7
+
8
+ type ListboxOptionValueType = string | ((data: any) => any) | undefined;
9
+
10
+ type ListboxOptionDisabledType = string | ((data: any) => boolean) | undefined;
11
+
12
+ type ListboxOptionChildrenType = string | ((data: any) => any[]) | undefined;
13
+
14
+ type ListboxFilterMatchModeType = 'contains' | 'startsWith' | 'endsWith' | undefined;
15
+
16
+ export interface ListboxChangeEvent {
17
+ /**
18
+ * Original event
19
+ */
20
+ originalEvent: Event;
21
+ /**
22
+ * Selected option value
23
+ */
24
+ value: any;
25
+ }
26
+
27
+ export interface ListboxFilterEvent {
28
+ /**
29
+ * Original event
30
+ */
31
+ originalEvent: Event;
32
+ /**
33
+ * Filter value
34
+ */
35
+ value: string;
36
+ }
37
+
38
+ export interface ListboxProps {
39
+ /**
40
+ * Value of the component.
41
+ */
5
42
  modelValue?: any;
6
- options?: any[];
7
- optionLabel?: string;
8
- optionValue?: any;
9
- optionDisabled?: boolean;
10
- optionGroupLabel?: string;
11
- optionGroupChildren?: string;
12
- listStyle?: string;
13
- disabled?: boolean;
14
- dataKey?: string;
15
- multiple?: boolean;
16
- metaKeySelection?: boolean;
17
- filter?: boolean;
18
- filterPlaceholder?: string;
19
- filterLocale?: string;
20
- filterMatchMode?: string;
21
- filterFields?: string[];
22
- emptyFilterMessage?: string;
23
- emptyMessage?: string;
43
+ /**
44
+ * An array of selectitems to display as the available options.
45
+ */
46
+ options?: any[] | undefined;
47
+ /**
48
+ * Property name or getter function to use as the label of an option.
49
+ */
50
+ optionLabel?: ListboxOptionLabelType;
51
+ /**
52
+ * Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
53
+ */
54
+ optionValue?: ListboxOptionValueType;
55
+ /**
56
+ * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
57
+ */
58
+ optionDisabled?: ListboxOptionDisabledType;
59
+ /**
60
+ * Property name or getter function to use as the label of an option group.
61
+ */
62
+ optionGroupLabel?: ListboxOptionLabelType;
63
+ /**
64
+ * Property name or getter function that refers to the children options of option group.
65
+ */
66
+ optionGroupChildren?: ListboxOptionChildrenType;
67
+ /**
68
+ * Inline style of inner list element.
69
+ */
70
+ listStyle?: string | undefined;
71
+ /**
72
+ * When specified, disables the component.
73
+ */
74
+ disabled?: boolean | undefined;
75
+ /**
76
+ * A property to uniquely identify an option.
77
+ */
78
+ dataKey?: string | undefined;
79
+ /**
80
+ * When specified, allows selecting multiple values.
81
+ */
82
+ multiple?: boolean | undefined;
83
+ /**
84
+ * 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.
85
+ * On touch enabled devices, metaKeySelection is turned off automatically.
86
+ * Default value is true.
87
+ */
88
+ metaKeySelection?: boolean | undefined;
89
+ /**
90
+ * When specified, displays a filter input at header.
91
+ */
92
+ filter?: boolean | undefined;
93
+ /**
94
+ * Placeholder text to show when filter input is empty.
95
+ */
96
+ filterPlaceholder?: string | undefined;
97
+ /**
98
+ * Locale to use in filtering. The default locale is the host environment's current locale.
99
+ */
100
+ filterLocale?: string | undefined;
101
+ /**
102
+ * Defines the filtering algorithm to use when searching the options.
103
+ * @see ListboxFilterMatchModeType
104
+ * Default value is 'contains'.
105
+ */
106
+ filterMatchMode?: ListboxFilterMatchModeType;
107
+ /**
108
+ * Fields used when filtering the options, defaults to optionLabel.
109
+ */
110
+ filterFields?: string[] | undefined;
111
+ /**
112
+ * Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
113
+ * Default value is 'No results found'.
114
+ */
115
+ emptyFilterMessage?: string | undefined;
116
+ /**
117
+ * Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
118
+ * Default value is 'No results found'.
119
+ */
120
+ emptyMessage?: string | undefined;
121
+ /**
122
+ * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
123
+ * @see VirtualScroller.VirtualScrollerProps
124
+ */
24
125
  virtualScrollerOptions?: VirtualScrollerProps;
25
126
  }
26
127
 
27
- declare class Listbox {
28
- $props: ListboxProps;
29
- $emit(eventName: 'update:modelValue', value: any): this;
30
- $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
31
- $emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this;
32
- $slots: {
33
- header: VNode[];
34
- footer: VNode[];
35
- option: VNode[];
36
- optiongroup: VNode[];
37
- emptyfilter: VNode[];
38
- empty: VNode[];
39
- content: VNode[];
40
- loader: VNode[];
128
+ export interface ListboxSlots {
129
+ /**
130
+ * Custom header template.
131
+ * @param {Object} scope - header slot's params.
132
+ */
133
+ header: (scope: {
134
+ /**
135
+ * Value of the component
136
+ */
137
+ value: any;
138
+ /**
139
+ * Displayed options
140
+ */
141
+ options: any[];
142
+ }) => VNode[];
143
+ /**
144
+ * Custom footer template.
145
+ * @param {Object} scope - footer slot's params.
146
+ */
147
+ footer: (scope: {
148
+ /**
149
+ * Value of the component
150
+ */
151
+ value: any;
152
+ /**
153
+ * Displayed options
154
+ */
155
+ options: any[];
156
+ }) => VNode[];
157
+ /**
158
+ * Custom option template.
159
+ * @param {Object} scope - option slot's params.
160
+ */
161
+ option: (scope: {
162
+ /**
163
+ * Option instance
164
+ */
165
+ option: any;
166
+ /**
167
+ * Index of the option
168
+ */
169
+ index: number;
170
+ }) => VNode[];
171
+ /**
172
+ * Custom optiongroup template.
173
+ * @param {Object} scope - optiongroup slot's params.
174
+ */
175
+ optiongroup: (scope: {
176
+ /**
177
+ * Option instance
178
+ */
179
+ option: any;
180
+ /**
181
+ * Index of the option
182
+ */
183
+ index: number;
184
+ }) => VNode[];
185
+ /**
186
+ * Custom emptyfilter template.
187
+ */
188
+ emptyfilter: () => VNode[];
189
+ /**
190
+ * Custom empty template.
191
+ */
192
+ empty: () => VNode[];
193
+ /**
194
+ * Custom content template.
195
+ * @param {Object} scope - content slot's params.
196
+ */
197
+ content: (scope: {
198
+ /**
199
+ * An array of objects to display for virtualscroller
200
+ */
201
+ items: any;
202
+ /**
203
+ * Style class of the component
204
+ */
205
+ styleClass: string;
206
+ /**
207
+ * Referance of the content
208
+ * @param {HTMLElement} el - Element of 'ref' property
209
+ */
210
+ contentRef(el: any): void;
211
+ /**
212
+ * Options of the items
213
+ * @param {number} index - Rendered index
214
+ * @return {@link VirtualScroller.VirtualScrollerItemOptions}
215
+ */
216
+ getItemOptions(index: number): VirtualScrollerItemOptions;
217
+ }) => VNode[];
218
+ /**
219
+ * Custom loader template.
220
+ * @param {Object} scope - loader slot's params.
221
+ */
222
+ loader: (scope: {
223
+ /**
224
+ * Options of the loader items for virtualscroller
225
+ */
226
+ options: any[];
227
+ }) => VNode[];
228
+ }
229
+
230
+ export declare type ListboxEmits = {
231
+ /**
232
+ * Emitted when the value changes.
233
+ * @param {*} value - New value.
234
+ */
235
+ 'update:modelValue': (value: any) => void;
236
+ /**
237
+ * Callback to invoke on value change.
238
+ * @param {ListboxChangeEvent} event - Custom change event.
239
+ */
240
+ 'change': (event: ListboxChangeEvent) => void;
241
+ /**
242
+ * Callback to invoke on filter input.
243
+ * @param {ListboxFilterEvent} event - Custom filter event.
244
+ */
245
+ 'filter': (event: ListboxFilterEvent) => void;
246
+ }
247
+
248
+ declare class Listbox extends ClassComponent<ListboxProps, ListboxSlots, ListboxEmits> { }
249
+
250
+ declare module '@vue/runtime-core' {
251
+ interface GlobalComponents {
252
+ Listbox: GlobalComponentConstructor<Listbox>
41
253
  }
42
254
  }
43
255
 
256
+ /**
257
+ *
258
+ * Listbox is used to select one or more values from a list of items.
259
+ *
260
+ * Demos:
261
+ *
262
+ * - [Listbox](https://www.primefaces.org/primevue/showcase/#/listbox)
263
+ *
264
+ */
44
265
  export default Listbox;
@@ -1,18 +1,70 @@
1
1
  import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+ import { MenuItem } from '../menuitem';
2
4
 
3
- interface MegaMenuProps {
4
- model?: any[];
5
- orientation?: string;
6
- exact?: boolean;
5
+ type MegaMenuOrientationType = 'horizontal' | 'vertical' | undefined;
6
+
7
+ export interface MegaMenuProps {
8
+ /**
9
+ * An array of menuitems.
10
+ */
11
+ model?: MenuItem[] | undefined;
12
+ /**
13
+ * Defines the orientation.
14
+ * @see MegaMenuOrientationType
15
+ * Default value is 'horizontal'.
16
+ */
17
+ orientation?: MegaMenuOrientationType;
18
+ /**
19
+ * Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
20
+ * Default value is true.
21
+ */
22
+ exact?: boolean | undefined;
23
+ }
24
+
25
+ export interface MegaMenuSlots {
26
+ /**
27
+ * Custom start template.
28
+ */
29
+ start: () => VNode[];
30
+ /**
31
+ * Custom end template.
32
+ */
33
+ end: () => VNode[];
34
+ /**
35
+ * Custom item template.
36
+ * @param {Object} scope - item slot's params.
37
+ */
38
+ item: (scope: {
39
+ /**
40
+ * Menuitem instance
41
+ */
42
+ item: MenuItem;
43
+ }) => VNode[];
7
44
  }
8
45
 
9
- declare class MegaMenu {
10
- $props: MegaMenuProps;
11
- $slots: {
12
- start: VNode[];
13
- end: VNode[];
14
- item: VNode[];
46
+ export declare type MegaMenuEmits = {
47
+ }
48
+
49
+ declare class MegaMenu extends ClassComponent<MegaMenuProps, MegaMenuSlots, MegaMenuEmits> { }
50
+
51
+ declare module '@vue/runtime-core' {
52
+ interface GlobalComponents {
53
+ MegaMenu: GlobalComponentConstructor<MegaMenu>
15
54
  }
16
55
  }
17
56
 
57
+ /**
58
+ *
59
+ * MegaMenu is navigation component that displays submenus together.
60
+ *
61
+ * Helper API:
62
+ *
63
+ * - [MenuItem](https://www.primefaces.org/primevue/showcase/#/menumodel)
64
+ *
65
+ * Demos:
66
+ *
67
+ * - [MegaMenu](https://www.primefaces.org/primevue/showcase/#/megamenu)
68
+ *
69
+ */
18
70
  export default MegaMenu;
@@ -4,41 +4,41 @@
4
4
  <slot name="start"></slot>
5
5
  </div>
6
6
  <ul class="p-megamenu-root-list" role="menubar">
7
- <template v-for="(category,index) of model" :key="category.label + '_' + index">
7
+ <template v-for="(category,index) of model" :key="label(category) + '_' + index">
8
8
  <li v-if="visible(category)" :class="getCategoryClass(category)" :style="category.style"
9
9
  @mouseenter="onCategoryMouseEnter($event, category)" role="none">
10
10
  <template v-if="!$slots.item">
11
11
  <router-link v-if="category.to && !disabled(category)" :to="category.to" custom v-slot="{navigate, href, isActive, isExactActive}">
12
12
  <a :href="href" :class="linkClass(category, {isActive, isExactActive})" @click="onCategoryClick($event, category, navigate)" @keydown="onCategoryKeydown($event, category)" role="menuitem" v-ripple>
13
13
  <span v-if="category.icon" :class="getCategoryIcon(category)"></span>
14
- <span class="p-menuitem-text">{{category.label}}</span>
14
+ <span class="p-menuitem-text">{{label(category)}}</span>
15
15
  </a>
16
16
  </router-link>
17
17
  <a v-else :href="category.url" :class="linkClass(category)" :target="category.target" @click="onCategoryClick($event, category)" @keydown="onCategoryKeydown($event, category)"
18
18
  role="menuitem" :aria-haspopup="category.items != null" :aria-expanded="category === activeItem" :tabindex="disabled(category) ? null : '0'" v-ripple>
19
19
  <span v-if="category.icon" :class="getCategoryIcon(category)"></span>
20
- <span class="p-menuitem-text">{{category.label}}</span>
20
+ <span class="p-menuitem-text">{{label(category)}}</span>
21
21
  <span v-if="category.items" :class="getCategorySubMenuIcon()"></span>
22
22
  </a>
23
23
  </template>
24
- <component v-else :is="$slots.item" :item="item"></component>
24
+ <component v-else :is="$slots.item" :item="category"></component>
25
25
  <div class="p-megamenu-panel" v-if="category.items">
26
26
  <div class="p-megamenu-grid">
27
- <div v-for="(column,columnIndex) of category.items" :key="category.label + '_column_' + columnIndex" :class="getColumnClassName(category)">
27
+ <div v-for="(column,columnIndex) of category.items" :key="label(category) + '_column_' + columnIndex" :class="getColumnClassName(category)">
28
28
  <ul v-for="(submenu,submenuIndex) of column" class="p-megamenu-submenu" :key="submenu.label + '_submenu_' + submenuIndex" role="menu">
29
29
  <li :class="getSubmenuHeaderClass(submenu)" :style="submenu.style" role="presentation">{{submenu.label}}</li>
30
- <template v-for="(item, i) of submenu.items" :key="item.label + i.toString()">
30
+ <template v-for="(item, i) of submenu.items" :key="label(item) + i.toString()">
31
31
  <li role="none" :class="getSubmenuItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator">
32
32
  <template v-if="!$slots.item">
33
33
  <router-link v-if="item.to && !disabled(item)" :to="item.to" custom v-slot="{navigate, href, isActive, isExactActive}">
34
34
  <a :href="href" :class="linkClass(item, {isActive, isExactActive})" @click="onLeafClick($event, item, navigate)" role="menuitem" v-ripple>
35
35
  <span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
36
- <span class="p-menuitem-text">{{item.label}}</span>
36
+ <span class="p-menuitem-text">{{label(item)}}</span>
37
37
  </a>
38
38
  </router-link>
39
39
  <a v-else :href="item.url" :class="linkClass(item)" :target="item.target" @click="onLeafClick($event, item)" role="menuitem" :tabindex="disabled(item) ? null : '0'" v-ripple>
40
40
  <span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
41
- <span class="p-menuitem-text">{{item.label}}</span>
41
+ <span class="p-menuitem-text">{{label(item)}}</span>
42
42
  <span :class="getSubmenuIcon()" v-if="item.items"></span>
43
43
  </a>
44
44
  </template>
@@ -308,6 +308,9 @@ export default {
308
308
  },
309
309
  disabled(item) {
310
310
  return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
311
+ },
312
+ label(item) {
313
+ return (typeof item.disabled === 'function' ? item.label() : item.label);
311
314
  }
312
315
  },
313
316
  computed: {
@@ -250,6 +250,9 @@ var script = {
250
250
  },
251
251
  disabled(item) {
252
252
  return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
253
+ },
254
+ label(item) {
255
+ return (typeof item.disabled === 'function' ? item.label() : item.label);
253
256
  }
254
257
  },
255
258
  computed: {
@@ -306,7 +309,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
306
309
  vue.createVNode("ul", _hoisted_2, [
307
310
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.model, (category, index) => {
308
311
  return (vue.openBlock(), vue.createBlock(vue.Fragment, {
309
- key: category.label + '_' + index
312
+ key: $options.label(category) + '_' + index
310
313
  }, [
311
314
  ($options.visible(category))
312
315
  ? (vue.openBlock(), vue.createBlock("li", {
@@ -338,7 +341,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
338
341
  class: $options.getCategoryIcon(category)
339
342
  }, null, 2))
340
343
  : vue.createCommentVNode("", true),
341
- vue.createVNode("span", _hoisted_3, vue.toDisplayString(category.label), 1)
344
+ vue.createVNode("span", _hoisted_3, vue.toDisplayString($options.label(category)), 1)
342
345
  ], 42, ["href", "onClick", "onKeydown"]), [
343
346
  [_directive_ripple]
344
347
  ])
@@ -363,7 +366,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
363
366
  class: $options.getCategoryIcon(category)
364
367
  }, null, 2))
365
368
  : vue.createCommentVNode("", true),
366
- vue.createVNode("span", _hoisted_4, vue.toDisplayString(category.label), 1),
369
+ vue.createVNode("span", _hoisted_4, vue.toDisplayString($options.label(category)), 1),
367
370
  (category.items)
368
371
  ? (vue.openBlock(), vue.createBlock("span", {
369
372
  key: 1,
@@ -376,14 +379,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
376
379
  ], 64))
377
380
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
378
381
  key: 1,
379
- item: _ctx.item
382
+ item: category
380
383
  }, null, 8, ["item"])),
381
384
  (category.items)
382
385
  ? (vue.openBlock(), vue.createBlock("div", _hoisted_5, [
383
386
  vue.createVNode("div", _hoisted_6, [
384
387
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(category.items, (column, columnIndex) => {
385
388
  return (vue.openBlock(), vue.createBlock("div", {
386
- key: category.label + '_column_' + columnIndex,
389
+ key: $options.label(category) + '_column_' + columnIndex,
387
390
  class: $options.getColumnClassName(category)
388
391
  }, [
389
392
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(column, (submenu, submenuIndex) => {
@@ -399,7 +402,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
399
402
  }, vue.toDisplayString(submenu.label), 7),
400
403
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(submenu.items, (item, i) => {
401
404
  return (vue.openBlock(), vue.createBlock(vue.Fragment, {
402
- key: item.label + i.toString()
405
+ key: $options.label(item) + i.toString()
403
406
  }, [
404
407
  ($options.visible(item) && !item.separator)
405
408
  ? (vue.openBlock(), vue.createBlock("li", {
@@ -429,7 +432,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
429
432
  class: ['p-menuitem-icon', item.icon]
430
433
  }, null, 2))
431
434
  : vue.createCommentVNode("", true),
432
- vue.createVNode("span", _hoisted_7, vue.toDisplayString(item.label), 1)
435
+ vue.createVNode("span", _hoisted_7, vue.toDisplayString($options.label(item)), 1)
433
436
  ], 10, ["href", "onClick"]), [
434
437
  [_directive_ripple]
435
438
  ])
@@ -451,7 +454,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
451
454
  class: ['p-menuitem-icon', item.icon]
452
455
  }, null, 2))
453
456
  : vue.createCommentVNode("", true),
454
- vue.createVNode("span", _hoisted_8, vue.toDisplayString(item.label), 1),
457
+ vue.createVNode("span", _hoisted_8, vue.toDisplayString($options.label(item)), 1),
455
458
  (item.items)
456
459
  ? (vue.openBlock(), vue.createBlock("span", {
457
460
  key: 1,