primevue 3.9.1 → 3.12.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 (598) hide show
  1. package/README.md +256 -2
  2. package/accordion/Accordion.d.ts +74 -11
  3. package/accordion/accordion.esm.js +1 -1
  4. package/accordion/accordion.esm.min.js +1 -1
  5. package/accordion/accordion.js +1 -1
  6. package/accordiontab/AccordionTab.d.ts +37 -8
  7. package/accordiontab/accordiontab.esm.js +1 -1
  8. package/accordiontab/accordiontab.esm.min.js +1 -1
  9. package/accordiontab/accordiontab.js +1 -1
  10. package/api/Api.d.ts +292 -285
  11. package/api/api.js +1 -1
  12. package/autocomplete/AutoComplete.d.ts +280 -63
  13. package/autocomplete/AutoComplete.vue +2 -2
  14. package/autocomplete/autocomplete.cjs.js +7 -6
  15. package/autocomplete/autocomplete.cjs.min.js +1 -1
  16. package/autocomplete/autocomplete.esm.js +4 -3
  17. package/autocomplete/autocomplete.esm.min.js +1 -1
  18. package/autocomplete/autocomplete.js +8 -7
  19. package/autocomplete/autocomplete.min.js +1 -1
  20. package/avatar/Avatar.d.ts +57 -8
  21. package/avatar/avatar.esm.js +1 -1
  22. package/avatar/avatar.esm.min.js +1 -1
  23. package/avatar/avatar.js +1 -1
  24. package/avatargroup/AvatarGroup.d.ts +29 -3
  25. package/avatargroup/avatargroup.esm.js +1 -1
  26. package/avatargroup/avatargroup.esm.min.js +1 -1
  27. package/avatargroup/avatargroup.js +1 -1
  28. package/badge/Badge.d.ts +46 -5
  29. package/badge/badge.esm.js +1 -1
  30. package/badge/badge.esm.min.js +1 -1
  31. package/badge/badge.js +1 -1
  32. package/badgedirective/badgedirective.esm.js +1 -1
  33. package/badgedirective/badgedirective.esm.min.js +1 -1
  34. package/badgedirective/badgedirective.js +1 -1
  35. package/blockui/BlockUI.d.ts +52 -11
  36. package/blockui/blockui.esm.js +1 -1
  37. package/blockui/blockui.esm.min.js +1 -1
  38. package/blockui/blockui.js +1 -1
  39. package/breadcrumb/Breadcrumb.d.ts +49 -9
  40. package/breadcrumb/breadcrumb.esm.js +1 -1
  41. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  42. package/breadcrumb/breadcrumb.js +1 -1
  43. package/button/Button.d.ts +68 -11
  44. package/button/button.cjs.js +1 -1
  45. package/button/button.esm.js +1 -1
  46. package/button/button.esm.min.js +1 -1
  47. package/button/button.js +2 -2
  48. package/calendar/Calendar.d.ts +333 -62
  49. package/calendar/Calendar.vue +67 -35
  50. package/calendar/calendar.cjs.js +141 -110
  51. package/calendar/calendar.cjs.min.js +1 -1
  52. package/calendar/calendar.esm.js +139 -107
  53. package/calendar/calendar.esm.min.js +1 -1
  54. package/calendar/calendar.js +143 -111
  55. package/calendar/calendar.min.js +1 -1
  56. package/card/Card.d.ts +43 -9
  57. package/card/card.esm.js +1 -1
  58. package/card/card.esm.min.js +1 -1
  59. package/card/card.js +1 -1
  60. package/carousel/Carousel.d.ts +121 -24
  61. package/carousel/carousel.cjs.js +1 -1
  62. package/carousel/carousel.esm.js +1 -1
  63. package/carousel/carousel.esm.min.js +1 -1
  64. package/carousel/carousel.js +2 -2
  65. package/cascadeselect/CascadeSelect.d.ts +164 -31
  66. package/cascadeselect/cascadeselect.cjs.js +2 -2
  67. package/cascadeselect/cascadeselect.esm.js +1 -1
  68. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  69. package/cascadeselect/cascadeselect.js +3 -3
  70. package/chart/Chart.d.ts +104 -12
  71. package/chart/Chart.vue +9 -2
  72. package/chart/chart.cjs.js +11 -6
  73. package/chart/chart.cjs.min.js +1 -1
  74. package/chart/chart.esm.js +10 -3
  75. package/chart/chart.esm.min.js +1 -1
  76. package/chart/chart.js +10 -3
  77. package/chart/chart.min.js +1 -1
  78. package/checkbox/Checkbox.d.ts +66 -8
  79. package/checkbox/checkbox.esm.js +1 -1
  80. package/checkbox/checkbox.esm.min.js +1 -1
  81. package/checkbox/checkbox.js +1 -1
  82. package/chip/Chip.d.ts +50 -4
  83. package/chip/chip.esm.js +1 -1
  84. package/chip/chip.esm.min.js +1 -1
  85. package/chip/chip.js +1 -1
  86. package/chips/Chips.d.ts +88 -15
  87. package/chips/chips.esm.js +1 -1
  88. package/chips/chips.esm.min.js +1 -1
  89. package/chips/chips.js +1 -1
  90. package/colorpicker/ColorPicker.d.ts +105 -16
  91. package/colorpicker/colorpicker.cjs.js +1 -1
  92. package/colorpicker/colorpicker.esm.js +1 -1
  93. package/colorpicker/colorpicker.esm.min.js +1 -1
  94. package/colorpicker/colorpicker.js +2 -2
  95. package/column/Column.d.ts +452 -78
  96. package/column/Column.vue +6 -2
  97. package/column/column.cjs.js +6 -2
  98. package/column/column.cjs.min.js +1 -1
  99. package/column/column.esm.js +7 -3
  100. package/column/column.esm.min.js +1 -1
  101. package/column/column.js +7 -3
  102. package/column/column.min.js +1 -1
  103. package/columngroup/ColumnGroup.d.ts +30 -4
  104. package/columngroup/columngroup.esm.js +1 -1
  105. package/columngroup/columngroup.esm.min.js +1 -1
  106. package/columngroup/columngroup.js +1 -1
  107. package/config/config.cjs.js +1 -1
  108. package/config/config.esm.js +1 -2
  109. package/config/config.esm.min.js +1 -1
  110. package/config/config.js +2 -2
  111. package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
  112. package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
  113. package/confirmationeventbus/confirmationeventbus.js +1 -1
  114. package/confirmationoptions/ConfirmationOptions.d.ts +62 -0
  115. package/confirmationoptions/package.json +3 -0
  116. package/confirmationservice/ConfirmationService.d.ts +2 -1
  117. package/confirmationservice/confirmationservice.cjs.js +2 -2
  118. package/confirmationservice/confirmationservice.esm.js +1 -1
  119. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  120. package/confirmationservice/confirmationservice.js +3 -3
  121. package/confirmdialog/ConfirmDialog.d.ts +57 -5
  122. package/confirmdialog/confirmdialog.cjs.js +6 -6
  123. package/confirmdialog/confirmdialog.esm.js +1 -1
  124. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  125. package/confirmdialog/confirmdialog.js +7 -7
  126. package/confirmpopup/ConfirmPopup.d.ts +38 -7
  127. package/confirmpopup/confirmpopup.cjs.js +6 -6
  128. package/confirmpopup/confirmpopup.esm.js +1 -1
  129. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  130. package/confirmpopup/confirmpopup.js +7 -7
  131. package/contextmenu/ContextMenu.d.ts +88 -16
  132. package/contextmenu/contextmenu.cjs.js +1 -1
  133. package/contextmenu/contextmenu.esm.js +1 -1
  134. package/contextmenu/contextmenu.esm.min.js +1 -1
  135. package/contextmenu/contextmenu.js +2 -2
  136. package/core/core.js +754 -327
  137. package/core/core.min.js +7 -5
  138. package/datatable/BodyCell.vue +26 -1
  139. package/datatable/DataTable.d.ts +1056 -131
  140. package/datatable/DataTable.vue +124 -118
  141. package/datatable/HeaderCheckbox.vue +5 -2
  142. package/datatable/RowCheckbox.vue +1 -1
  143. package/datatable/RowRadioButton.vue +1 -1
  144. package/datatable/TableBody.vue +53 -14
  145. package/datatable/TableFooter.vue +18 -1
  146. package/datatable/TableHeader.vue +18 -1
  147. package/datatable/datatable.cjs.js +488 -362
  148. package/datatable/datatable.cjs.min.js +1 -1
  149. package/datatable/datatable.esm.js +478 -353
  150. package/datatable/datatable.esm.min.js +1 -1
  151. package/datatable/datatable.js +489 -364
  152. package/datatable/datatable.min.js +1 -1
  153. package/dataview/DataView.d.ts +198 -32
  154. package/dataview/dataview.cjs.js +1 -1
  155. package/dataview/dataview.esm.js +1 -1
  156. package/dataview/dataview.esm.min.js +1 -1
  157. package/dataview/dataview.js +2 -2
  158. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
  159. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
  160. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  161. package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
  162. package/deferredcontent/DeferredContent.d.ts +31 -6
  163. package/deferredcontent/deferredcontent.esm.js +1 -1
  164. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  165. package/deferredcontent/deferredcontent.js +1 -1
  166. package/dialog/Dialog.d.ts +187 -34
  167. package/dialog/Dialog.vue +1 -1
  168. package/dialog/dialog.cjs.js +2 -3
  169. package/dialog/dialog.cjs.min.js +1 -1
  170. package/dialog/dialog.esm.js +2 -3
  171. package/dialog/dialog.esm.min.js +1 -1
  172. package/dialog/dialog.js +3 -4
  173. package/dialog/dialog.min.js +1 -1
  174. package/divider/Divider.d.ts +53 -8
  175. package/divider/divider.esm.js +1 -1
  176. package/divider/divider.esm.min.js +1 -1
  177. package/divider/divider.js +1 -1
  178. package/dock/Dock.d.ts +92 -15
  179. package/dock/DockSub.vue +3 -1
  180. package/dock/dock.cjs.js +4 -1
  181. package/dock/dock.cjs.min.js +1 -1
  182. package/dock/dock.esm.js +4 -2
  183. package/dock/dock.esm.min.js +1 -1
  184. package/dock/dock.js +5 -3
  185. package/dock/dock.min.js +1 -1
  186. package/dropdown/Dropdown.d.ts +335 -76
  187. package/dropdown/Dropdown.vue +16 -12
  188. package/dropdown/dropdown.cjs.js +21 -15
  189. package/dropdown/dropdown.cjs.min.js +1 -1
  190. package/dropdown/dropdown.esm.js +19 -13
  191. package/dropdown/dropdown.esm.min.js +1 -1
  192. package/dropdown/dropdown.js +22 -16
  193. package/dropdown/dropdown.min.js +1 -1
  194. package/editor/Editor.d.ts +78 -11
  195. package/editor/editor.cjs.js +1 -1
  196. package/editor/editor.esm.js +1 -1
  197. package/editor/editor.esm.min.js +1 -1
  198. package/editor/editor.js +2 -2
  199. package/fieldset/Fieldset.d.ts +63 -11
  200. package/fieldset/fieldset.cjs.js +1 -1
  201. package/fieldset/fieldset.esm.js +1 -1
  202. package/fieldset/fieldset.esm.min.js +1 -1
  203. package/fieldset/fieldset.js +2 -2
  204. package/fileupload/FileUpload.d.ts +255 -37
  205. package/fileupload/fileupload.cjs.js +4 -4
  206. package/fileupload/fileupload.esm.js +1 -1
  207. package/fileupload/fileupload.esm.min.js +1 -1
  208. package/fileupload/fileupload.js +5 -5
  209. package/fullcalendar/FullCalendar.d.ts +29 -3
  210. package/fullcalendar/fullcalendar.esm.js +1 -1
  211. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  212. package/fullcalendar/fullcalendar.js +1 -1
  213. package/galleria/Galleria.d.ts +196 -46
  214. package/galleria/galleria.cjs.js +3 -3
  215. package/galleria/galleria.esm.js +1 -1
  216. package/galleria/galleria.esm.min.js +1 -1
  217. package/galleria/galleria.js +4 -4
  218. package/image/Image.d.ts +51 -6
  219. package/image/image.esm.js +1 -1
  220. package/image/image.esm.min.js +1 -1
  221. package/image/image.js +1 -1
  222. package/inlinemessage/InlineMessage.d.ts +34 -6
  223. package/inlinemessage/inlinemessage.esm.js +1 -1
  224. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  225. package/inlinemessage/inlinemessage.js +1 -1
  226. package/inplace/Inplace.d.ts +57 -12
  227. package/inplace/inplace.cjs.js +1 -1
  228. package/inplace/inplace.esm.js +1 -1
  229. package/inplace/inplace.esm.min.js +1 -1
  230. package/inplace/inplace.js +2 -2
  231. package/inputmask/InputMask.d.ts +75 -15
  232. package/inputmask/inputmask.esm.js +1 -1
  233. package/inputmask/inputmask.esm.min.js +1 -1
  234. package/inputmask/inputmask.js +1 -1
  235. package/inputnumber/InputNumber.d.ts +180 -30
  236. package/inputnumber/inputnumber.cjs.js +2 -2
  237. package/inputnumber/inputnumber.esm.js +1 -1
  238. package/inputnumber/inputnumber.esm.min.js +1 -1
  239. package/inputnumber/inputnumber.js +3 -3
  240. package/inputswitch/InputSwitch.d.ts +61 -9
  241. package/inputswitch/inputswitch.esm.js +1 -1
  242. package/inputswitch/inputswitch.esm.min.js +1 -1
  243. package/inputswitch/inputswitch.js +1 -1
  244. package/inputtext/InputText.d.ts +34 -5
  245. package/inputtext/inputtext.esm.js +1 -1
  246. package/inputtext/inputtext.esm.min.js +1 -1
  247. package/inputtext/inputtext.js +1 -1
  248. package/knob/Knob.d.ts +92 -18
  249. package/knob/Knob.vue +1 -1
  250. package/knob/knob.cjs.js +1 -1
  251. package/knob/knob.cjs.min.js +1 -1
  252. package/knob/knob.esm.js +2 -2
  253. package/knob/knob.esm.min.js +1 -1
  254. package/knob/knob.js +2 -2
  255. package/knob/knob.min.js +1 -1
  256. package/listbox/Listbox.d.ts +240 -55
  257. package/listbox/Listbox.vue +2 -2
  258. package/listbox/listbox.cjs.js +5 -4
  259. package/listbox/listbox.cjs.min.js +1 -1
  260. package/listbox/listbox.esm.js +4 -3
  261. package/listbox/listbox.esm.min.js +1 -1
  262. package/listbox/listbox.js +6 -5
  263. package/listbox/listbox.min.js +1 -1
  264. package/megamenu/MegaMenu.d.ts +60 -12
  265. package/megamenu/megamenu.cjs.js +1 -1
  266. package/megamenu/megamenu.esm.js +1 -1
  267. package/megamenu/megamenu.esm.min.js +1 -1
  268. package/megamenu/megamenu.js +2 -2
  269. package/menu/Menu.d.ts +84 -15
  270. package/menu/menu.cjs.js +2 -2
  271. package/menu/menu.esm.js +1 -1
  272. package/menu/menu.esm.min.js +1 -1
  273. package/menu/menu.js +3 -3
  274. package/menubar/Menubar.d.ts +52 -11
  275. package/menubar/menubar.cjs.js +1 -1
  276. package/menubar/menubar.esm.js +1 -1
  277. package/menubar/menubar.esm.min.js +1 -1
  278. package/menubar/menubar.js +2 -2
  279. package/menuitem/MenuItem.d.ts +82 -0
  280. package/menuitem/package.json +3 -0
  281. package/message/Message.d.ts +57 -11
  282. package/message/message.cjs.js +1 -1
  283. package/message/message.esm.js +1 -1
  284. package/message/message.esm.min.js +1 -1
  285. package/message/message.js +2 -2
  286. package/multiselect/MultiSelect.d.ts +363 -83
  287. package/multiselect/MultiSelect.vue +17 -13
  288. package/multiselect/multiselect.cjs.js +20 -13
  289. package/multiselect/multiselect.cjs.min.js +1 -1
  290. package/multiselect/multiselect.esm.js +18 -11
  291. package/multiselect/multiselect.esm.min.js +1 -1
  292. package/multiselect/multiselect.js +21 -14
  293. package/multiselect/multiselect.min.js +1 -1
  294. package/orderlist/OrderList.d.ts +126 -19
  295. package/orderlist/OrderList.vue +10 -1
  296. package/orderlist/orderlist.cjs.js +19 -11
  297. package/orderlist/orderlist.cjs.min.js +1 -1
  298. package/orderlist/orderlist.esm.js +18 -10
  299. package/orderlist/orderlist.esm.min.js +1 -1
  300. package/orderlist/orderlist.js +20 -12
  301. package/orderlist/orderlist.min.js +1 -1
  302. package/organizationchart/OrganizationChart.d.ts +137 -15
  303. package/organizationchart/organizationchart.esm.js +1 -1
  304. package/organizationchart/organizationchart.esm.min.js +1 -1
  305. package/organizationchart/organizationchart.js +1 -1
  306. package/overlayeventbus/overlayeventbus.esm.js +1 -1
  307. package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
  308. package/overlayeventbus/overlayeventbus.js +1 -1
  309. package/overlaypanel/OverlayPanel.d.ts +107 -12
  310. package/overlaypanel/overlaypanel.cjs.js +5 -5
  311. package/overlaypanel/overlaypanel.esm.js +1 -1
  312. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  313. package/overlaypanel/overlaypanel.js +6 -6
  314. package/package.json +1 -1
  315. package/paginator/Paginator.d.ts +129 -27
  316. package/paginator/paginator.cjs.js +8 -8
  317. package/paginator/paginator.esm.js +1 -1
  318. package/paginator/paginator.esm.min.js +1 -1
  319. package/paginator/paginator.js +9 -9
  320. package/panel/Panel.d.ts +64 -9
  321. package/panel/panel.cjs.js +1 -1
  322. package/panel/panel.esm.js +1 -1
  323. package/panel/panel.esm.min.js +1 -1
  324. package/panel/panel.js +2 -2
  325. package/panelmenu/PanelMenu.d.ts +59 -11
  326. package/panelmenu/PanelMenu.vue +2 -2
  327. package/panelmenu/panelmenu.cjs.js +4 -4
  328. package/panelmenu/panelmenu.cjs.min.js +1 -1
  329. package/panelmenu/panelmenu.esm.js +5 -5
  330. package/panelmenu/panelmenu.esm.min.js +1 -1
  331. package/panelmenu/panelmenu.js +5 -5
  332. package/panelmenu/panelmenu.min.js +1 -1
  333. package/password/Password.d.ts +115 -24
  334. package/password/password.cjs.js +2 -2
  335. package/password/password.esm.js +1 -1
  336. package/password/password.esm.min.js +1 -1
  337. package/password/password.js +3 -3
  338. package/picklist/PickList.d.ts +203 -32
  339. package/picklist/PickList.vue +10 -1
  340. package/picklist/picklist.cjs.js +27 -19
  341. package/picklist/picklist.cjs.min.js +1 -1
  342. package/picklist/picklist.esm.js +26 -18
  343. package/picklist/picklist.esm.min.js +1 -1
  344. package/picklist/picklist.js +28 -20
  345. package/picklist/picklist.min.js +1 -1
  346. package/progressbar/ProgressBar.d.ts +43 -8
  347. package/progressbar/progressbar.esm.js +1 -1
  348. package/progressbar/progressbar.esm.min.js +1 -1
  349. package/progressbar/progressbar.js +1 -1
  350. package/progressspinner/ProgressSpinner.d.ts +39 -6
  351. package/progressspinner/progressspinner.esm.js +1 -1
  352. package/progressspinner/progressspinner.esm.min.js +1 -1
  353. package/progressspinner/progressspinner.js +1 -1
  354. package/radiobutton/RadioButton.d.ts +52 -7
  355. package/radiobutton/radiobutton.esm.js +1 -1
  356. package/radiobutton/radiobutton.esm.min.js +1 -1
  357. package/radiobutton/radiobutton.js +1 -1
  358. package/rating/Rating.d.ts +67 -10
  359. package/rating/rating.esm.js +1 -1
  360. package/rating/rating.esm.min.js +1 -1
  361. package/rating/rating.js +1 -1
  362. package/resources/themes/arya-blue/theme.css +41 -22
  363. package/resources/themes/arya-green/theme.css +41 -22
  364. package/resources/themes/arya-orange/theme.css +41 -22
  365. package/resources/themes/arya-purple/theme.css +41 -22
  366. package/resources/themes/bootstrap4-dark-blue/theme.css +29 -6
  367. package/resources/themes/bootstrap4-dark-purple/theme.css +29 -6
  368. package/resources/themes/bootstrap4-light-blue/theme.css +29 -6
  369. package/resources/themes/bootstrap4-light-purple/theme.css +29 -6
  370. package/resources/themes/fluent-light/theme.css +41 -22
  371. package/resources/themes/lara-dark-blue/theme.css +371 -361
  372. package/resources/themes/lara-dark-indigo/theme.css +371 -361
  373. package/resources/themes/lara-dark-purple/theme.css +371 -361
  374. package/resources/themes/lara-dark-teal/theme.css +371 -361
  375. package/resources/themes/lara-light-blue/theme.css +41 -31
  376. package/resources/themes/lara-light-indigo/theme.css +41 -31
  377. package/resources/themes/lara-light-purple/theme.css +41 -31
  378. package/resources/themes/lara-light-teal/theme.css +41 -31
  379. package/resources/themes/luna-amber/theme.css +41 -22
  380. package/resources/themes/luna-blue/theme.css +41 -22
  381. package/resources/themes/luna-green/theme.css +41 -22
  382. package/resources/themes/luna-pink/theme.css +41 -22
  383. package/resources/themes/md-dark-deeppurple/theme.css +24 -5
  384. package/resources/themes/md-dark-indigo/theme.css +24 -5
  385. package/resources/themes/md-light-deeppurple/theme.css +24 -5
  386. package/resources/themes/md-light-indigo/theme.css +24 -5
  387. package/resources/themes/mdc-dark-deeppurple/theme.css +24 -5
  388. package/resources/themes/mdc-dark-indigo/theme.css +24 -5
  389. package/resources/themes/mdc-light-deeppurple/theme.css +24 -5
  390. package/resources/themes/mdc-light-indigo/theme.css +24 -5
  391. package/resources/themes/nova/theme.css +41 -22
  392. package/resources/themes/nova-accent/theme.css +41 -22
  393. package/resources/themes/nova-alt/theme.css +41 -22
  394. package/resources/themes/nova-vue/theme.css +41 -22
  395. package/resources/themes/rhea/theme.css +41 -22
  396. package/resources/themes/saga-blue/theme.css +25 -6
  397. package/resources/themes/saga-green/theme.css +25 -6
  398. package/resources/themes/saga-orange/theme.css +25 -6
  399. package/resources/themes/saga-purple/theme.css +25 -6
  400. package/resources/themes/tailwind-light/theme.css +44 -25
  401. package/resources/themes/vela-blue/theme.css +41 -22
  402. package/resources/themes/vela-green/theme.css +41 -22
  403. package/resources/themes/vela-orange/theme.css +41 -22
  404. package/resources/themes/vela-purple/theme.css +41 -22
  405. package/ripple/ripple.esm.js +1 -1
  406. package/ripple/ripple.esm.min.js +1 -1
  407. package/ripple/ripple.js +1 -1
  408. package/row/Row.d.ts +25 -3
  409. package/row/row.esm.js +1 -1
  410. package/row/row.esm.min.js +1 -1
  411. package/row/row.js +1 -1
  412. package/scrollpanel/ScrollPanel.d.ts +27 -5
  413. package/scrollpanel/scrollpanel.esm.js +1 -1
  414. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  415. package/scrollpanel/scrollpanel.js +1 -1
  416. package/scrolltop/ScrollTop.d.ts +47 -7
  417. package/scrolltop/scrolltop.esm.js +1 -1
  418. package/scrolltop/scrolltop.esm.min.js +1 -1
  419. package/scrolltop/scrolltop.js +1 -1
  420. package/selectbutton/SelectButton.d.ts +101 -17
  421. package/selectbutton/selectbutton.cjs.js +1 -1
  422. package/selectbutton/selectbutton.esm.js +1 -1
  423. package/selectbutton/selectbutton.esm.min.js +1 -1
  424. package/selectbutton/selectbutton.js +2 -2
  425. package/sidebar/Sidebar.d.ts +81 -16
  426. package/sidebar/Sidebar.vue +2 -0
  427. package/sidebar/sidebar.cjs.js +2 -2
  428. package/sidebar/sidebar.cjs.min.js +1 -1
  429. package/sidebar/sidebar.esm.js +2 -2
  430. package/sidebar/sidebar.esm.min.js +1 -1
  431. package/sidebar/sidebar.js +3 -3
  432. package/sidebar/sidebar.min.js +1 -1
  433. package/skeleton/Skeleton.d.ts +58 -9
  434. package/skeleton/skeleton.esm.js +1 -1
  435. package/skeleton/skeleton.esm.min.js +1 -1
  436. package/skeleton/skeleton.js +1 -1
  437. package/slider/Slider.d.ts +90 -14
  438. package/slider/slider.esm.js +1 -1
  439. package/slider/slider.esm.min.js +1 -1
  440. package/slider/slider.js +1 -1
  441. package/speeddial/SpeedDial.d.ts +166 -29
  442. package/speeddial/SpeedDial.vue +3 -1
  443. package/speeddial/speeddial.cjs.js +5 -2
  444. package/speeddial/speeddial.cjs.min.js +1 -1
  445. package/speeddial/speeddial.esm.js +4 -2
  446. package/speeddial/speeddial.esm.min.js +1 -1
  447. package/speeddial/speeddial.js +6 -4
  448. package/speeddial/speeddial.min.js +1 -1
  449. package/splitbutton/SplitButton.d.ts +76 -11
  450. package/splitbutton/SplitButton.vue +3 -1
  451. package/splitbutton/splitbutton.cjs.js +15 -13
  452. package/splitbutton/splitbutton.cjs.min.js +1 -1
  453. package/splitbutton/splitbutton.esm.js +15 -13
  454. package/splitbutton/splitbutton.esm.min.js +1 -1
  455. package/splitbutton/splitbutton.js +16 -14
  456. package/splitbutton/splitbutton.min.js +1 -1
  457. package/splitter/Splitter.d.ts +74 -7
  458. package/splitter/Splitter.vue +5 -5
  459. package/splitter/splitter.cjs.js +1 -1
  460. package/splitter/splitter.cjs.min.js +1 -1
  461. package/splitter/splitter.esm.js +2 -2
  462. package/splitter/splitter.esm.min.js +1 -1
  463. package/splitter/splitter.js +2 -2
  464. package/splitter/splitter.min.js +1 -1
  465. package/splitterpanel/SplitterPanel.d.ts +34 -7
  466. package/splitterpanel/splitterpanel.esm.js +1 -1
  467. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  468. package/splitterpanel/splitterpanel.js +1 -1
  469. package/steps/Steps.d.ts +51 -11
  470. package/steps/steps.esm.js +1 -1
  471. package/steps/steps.esm.min.js +1 -1
  472. package/steps/steps.js +1 -1
  473. package/styleclass/styleclass.esm.js +1 -1
  474. package/styleclass/styleclass.esm.min.js +1 -1
  475. package/styleclass/styleclass.js +1 -1
  476. package/tabmenu/TabMenu.d.ts +63 -10
  477. package/tabmenu/tabmenu.cjs.js +1 -1
  478. package/tabmenu/tabmenu.esm.js +1 -1
  479. package/tabmenu/tabmenu.esm.min.js +1 -1
  480. package/tabmenu/tabmenu.js +2 -2
  481. package/tabpanel/TabPanel.d.ts +38 -7
  482. package/tabpanel/tabpanel.esm.js +1 -1
  483. package/tabpanel/tabpanel.esm.min.js +1 -1
  484. package/tabpanel/tabpanel.js +1 -1
  485. package/tabview/TabView.d.ts +73 -11
  486. package/tabview/TabView.vue +1 -1
  487. package/tabview/tabview.cjs.js +2 -2
  488. package/tabview/tabview.cjs.min.js +1 -1
  489. package/tabview/tabview.esm.js +2 -2
  490. package/tabview/tabview.esm.min.js +1 -1
  491. package/tabview/tabview.js +3 -3
  492. package/tabview/tabview.min.js +1 -1
  493. package/tag/Tag.d.ts +44 -8
  494. package/tag/Tag.vue +1 -1
  495. package/tag/tag.cjs.js +6 -6
  496. package/tag/tag.cjs.min.js +1 -1
  497. package/tag/tag.esm.js +8 -8
  498. package/tag/tag.esm.min.js +1 -1
  499. package/tag/tag.js +7 -7
  500. package/tag/tag.min.js +1 -1
  501. package/terminal/Terminal.d.ts +36 -5
  502. package/terminal/terminal.cjs.js +3 -3
  503. package/terminal/terminal.esm.js +1 -1
  504. package/terminal/terminal.esm.min.js +1 -1
  505. package/terminal/terminal.js +4 -4
  506. package/terminalservice/TerminalService.d.ts +1 -1
  507. package/terminalservice/terminalservice.esm.js +1 -1
  508. package/terminalservice/terminalservice.esm.min.js +1 -1
  509. package/terminalservice/terminalservice.js +1 -1
  510. package/textarea/Textarea.d.ts +38 -6
  511. package/textarea/textarea.esm.js +1 -1
  512. package/textarea/textarea.esm.min.js +1 -1
  513. package/textarea/textarea.js +1 -1
  514. package/tieredmenu/TieredMenu.d.ts +89 -15
  515. package/tieredmenu/tieredmenu.cjs.js +2 -2
  516. package/tieredmenu/tieredmenu.esm.js +1 -1
  517. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  518. package/tieredmenu/tieredmenu.js +3 -3
  519. package/timeline/Timeline.d.ts +94 -15
  520. package/timeline/timeline.esm.js +1 -1
  521. package/timeline/timeline.esm.min.js +1 -1
  522. package/timeline/timeline.js +1 -1
  523. package/toast/Toast.d.ts +118 -12
  524. package/toast/toast.cjs.js +7 -7
  525. package/toast/toast.esm.js +1 -1
  526. package/toast/toast.esm.min.js +1 -1
  527. package/toast/toast.js +8 -8
  528. package/toasteventbus/toasteventbus.esm.js +1 -1
  529. package/toasteventbus/toasteventbus.esm.min.js +1 -1
  530. package/toasteventbus/toasteventbus.js +1 -1
  531. package/toastservice/ToastService.d.ts +17 -5
  532. package/toastservice/toastservice.cjs.js +3 -3
  533. package/toastservice/toastservice.esm.js +1 -1
  534. package/toastservice/toastservice.esm.min.js +1 -1
  535. package/toastservice/toastservice.js +4 -4
  536. package/togglebutton/ToggleButton.d.ts +64 -11
  537. package/togglebutton/togglebutton.cjs.js +1 -1
  538. package/togglebutton/togglebutton.esm.js +1 -1
  539. package/togglebutton/togglebutton.esm.min.js +1 -1
  540. package/togglebutton/togglebutton.js +2 -2
  541. package/toolbar/Toolbar.d.ts +31 -6
  542. package/toolbar/toolbar.esm.js +1 -1
  543. package/toolbar/toolbar.esm.min.js +1 -1
  544. package/toolbar/toolbar.js +1 -1
  545. package/tooltip/tooltip.esm.js +1 -1
  546. package/tooltip/tooltip.esm.min.js +1 -1
  547. package/tooltip/tooltip.js +1 -1
  548. package/tree/Tree.d.ts +189 -26
  549. package/tree/Tree.vue +1 -0
  550. package/tree/tree.cjs.js +2 -2
  551. package/tree/tree.cjs.min.js +1 -1
  552. package/tree/tree.esm.js +2 -2
  553. package/tree/tree.esm.min.js +1 -1
  554. package/tree/tree.js +3 -3
  555. package/tree/tree.min.js +1 -1
  556. package/treeselect/TreeSelect.d.ts +201 -44
  557. package/treeselect/treeselect.cjs.js +3 -3
  558. package/treeselect/treeselect.esm.js +1 -1
  559. package/treeselect/treeselect.esm.min.js +1 -1
  560. package/treeselect/treeselect.js +4 -4
  561. package/treetable/BodyCell.vue +5 -5
  562. package/treetable/FooterCell.vue +3 -3
  563. package/treetable/HeaderCell.vue +2 -2
  564. package/treetable/TreeTable.d.ts +459 -63
  565. package/treetable/TreeTable.vue +6 -2
  566. package/treetable/treetable.cjs.js +13 -13
  567. package/treetable/treetable.cjs.min.js +1 -1
  568. package/treetable/treetable.esm.js +12 -12
  569. package/treetable/treetable.esm.min.js +1 -1
  570. package/treetable/treetable.js +14 -14
  571. package/treetable/treetable.min.js +1 -1
  572. package/tristatecheckbox/TriStateCheckbox.d.ts +40 -6
  573. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  574. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  575. package/tristatecheckbox/tristatecheckbox.js +1 -1
  576. package/ts-helpers.d.ts +28 -0
  577. package/useconfirm/UseConfirm.d.ts +5 -19
  578. package/useconfirm/useconfirm.js +1 -1
  579. package/usetoast/UseToast.d.ts +3 -5
  580. package/usetoast/usetoast.js +1 -1
  581. package/utils/Utils.d.ts +3 -0
  582. package/utils/utils.cjs.js +41 -4
  583. package/utils/utils.cjs.min.js +1 -1
  584. package/utils/utils.esm.js +41 -4
  585. package/utils/utils.esm.min.js +1 -1
  586. package/utils/utils.js +42 -5
  587. package/utils/utils.min.js +1 -1
  588. package/vetur-attributes.json +70 -30
  589. package/vetur-tags.json +18 -8
  590. package/virtualscroller/VirtualScroller.d.ts +294 -53
  591. package/virtualscroller/VirtualScroller.vue +304 -253
  592. package/virtualscroller/virtualscroller.cjs.js +333 -264
  593. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  594. package/virtualscroller/virtualscroller.esm.js +334 -265
  595. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  596. package/virtualscroller/virtualscroller.js +334 -265
  597. package/virtualscroller/virtualscroller.min.js +1 -1
  598. package/web-types.json +229 -45
@@ -1,17 +1,74 @@
1
- interface ButtonProps {
1
+ import { ButtonHTMLAttributes, VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+
4
+ type ButtonIconPosType = 'left' | 'right' | 'top' | 'bottom' | undefined;
5
+
6
+ export interface ButtonProps extends ButtonHTMLAttributes {
7
+ /**
8
+ * Inline style of the button.
9
+ */
2
10
  style?: any;
3
- class?: string;
4
- label?: string;
5
- icon?: string;
6
- iconPos?: string;
7
- badge?: string;
8
- badgeClass?: string;
9
- loading?: boolean;
10
- loadingIcon?: string;
11
+ /**
12
+ * Style class of the button.
13
+ */
14
+ class?: any;
15
+ /**
16
+ * Text of the button.
17
+ */
18
+ label?: string | undefined;
19
+ /**
20
+ * Name of the icon.
21
+ */
22
+ icon?: string | undefined;
23
+ /**
24
+ * Position of the icon, valid values are 'left', 'right', 'bottom' and 'top'.
25
+ * Default value is 'left'.
26
+ */
27
+ iconPos?: ButtonIconPosType;
28
+ /**
29
+ * Value of the badge.
30
+ */
31
+ badge?: string | undefined;
32
+ /**
33
+ * Style class of the badge.
34
+ */
35
+ badgeClass?: string | undefined;
36
+ /**
37
+ * Whether the button is in loading state.
38
+ */
39
+ loading?: boolean | undefined;
40
+ /**
41
+ * Icon to display in loading state.
42
+ * Default value is 'pi pi-spinner pi-spin'.
43
+ */
44
+ loadingIcon?: string | undefined;
45
+ }
46
+
47
+ export interface ButtonSlots {
48
+ /**
49
+ * Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.
50
+ */
51
+ default: () => VNode[];
11
52
  }
12
53
 
13
- declare class Button {
14
- $props: ButtonProps;
54
+ export declare type ButtonEmits = {
55
+ }
56
+
57
+ declare class Button extends ClassComponent<ButtonProps, ButtonSlots, ButtonEmits> { }
58
+
59
+ declare module '@vue/runtime-core' {
60
+ interface GlobalComponents {
61
+ Button: GlobalComponentConstructor<Button>
62
+ }
15
63
  }
16
64
 
65
+ /**
66
+ *
67
+ * Button is an extension to standard button element with icons and theming.
68
+ *
69
+ * Demos:
70
+ *
71
+ * - [Button](https://www.primefaces.org/primevue/showcase/#/button)
72
+ *
73
+ */
17
74
  export default Button;
@@ -70,7 +70,7 @@ var script = {
70
70
  }
71
71
  },
72
72
  directives: {
73
- 'ripple': Ripple__default['default']
73
+ 'ripple': Ripple__default["default"]
74
74
  }
75
75
  };
76
76
 
@@ -106,4 +106,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
106
106
 
107
107
  script.render = render;
108
108
 
109
- export default script;
109
+ export { script as default };
@@ -1 +1 @@
1
- import t from"primevue/ripple";import{resolveDirective as i,withDirectives as n,openBlock as o,createBlock as s,renderSlot as l,createCommentVNode as e,createVNode as a,toDisplayString as p}from"vue";var b={name:"Button",props:{label:{type:String},icon:{type:String},iconPos:{type:String,default:"left"},badge:{type:String},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"}},computed:{buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":this.icon&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-disabled":this.$attrs.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label}},iconClass(){return[this.loading?"p-button-loading-icon "+this.loadingIcon:this.icon,"p-button-icon",{"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}]},badgeStyleClass(){return["p-badge p-component",this.badgeClass,{"p-badge-no-gutter":this.badge&&1===String(this.badge).length}]},disabled(){return this.$attrs.disabled||this.loading}},directives:{ripple:t}};const d={class:"p-button-label"};b.render=function(t,b,c,r,u,g){const h=i("ripple");return n((o(),s("button",{class:g.buttonClass,type:"button",disabled:g.disabled},[l(t.$slots,"default",{},(()=>[c.loading&&!c.icon?(o(),s("span",{key:0,class:g.iconClass},null,2)):e("",!0),c.icon?(o(),s("span",{key:1,class:g.iconClass},null,2)):e("",!0),a("span",d,p(c.label||" "),1),c.badge?(o(),s("span",{key:2,class:g.badgeStyleClass},p(c.badge),3)):e("",!0)]))],10,["disabled"])),[[h]])};export default b;
1
+ import t from"primevue/ripple";import{resolveDirective as i,withDirectives as n,openBlock as o,createBlock as s,renderSlot as l,createCommentVNode as e,createVNode as a,toDisplayString as p}from"vue";var b={name:"Button",props:{label:{type:String},icon:{type:String},iconPos:{type:String,default:"left"},badge:{type:String},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"}},computed:{buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":this.icon&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-disabled":this.$attrs.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label}},iconClass(){return[this.loading?"p-button-loading-icon "+this.loadingIcon:this.icon,"p-button-icon",{"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}]},badgeStyleClass(){return["p-badge p-component",this.badgeClass,{"p-badge-no-gutter":this.badge&&1===String(this.badge).length}]},disabled(){return this.$attrs.disabled||this.loading}},directives:{ripple:t}};const d={class:"p-button-label"};b.render=function(t,b,c,r,u,g){const h=i("ripple");return n((o(),s("button",{class:g.buttonClass,type:"button",disabled:g.disabled},[l(t.$slots,"default",{},(()=>[c.loading&&!c.icon?(o(),s("span",{key:0,class:g.iconClass},null,2)):e("",!0),c.icon?(o(),s("span",{key:1,class:g.iconClass},null,2)):e("",!0),a("span",d,p(c.label||" "),1),c.badge?(o(),s("span",{key:2,class:g.badgeStyleClass},p(c.badge),3)):e("",!0)]))],10,["disabled"])),[[h]])};export{b as default};
package/button/button.js CHANGED
@@ -69,7 +69,7 @@ this.primevue.button = (function (Ripple, vue) {
69
69
  }
70
70
  },
71
71
  directives: {
72
- 'ripple': Ripple__default['default']
72
+ 'ripple': Ripple__default["default"]
73
73
  }
74
74
  };
75
75
 
@@ -113,4 +113,4 @@ this.primevue.button = (function (Ripple, vue) {
113
113
 
114
114
  return script;
115
115
 
116
- }(primevue.ripple, Vue));
116
+ })(primevue.ripple, Vue);
@@ -1,75 +1,346 @@
1
1
  import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
3
 
3
- interface CalendarProps {
4
- modelValue?: Date | Date[];
5
- selectionMode?: string;
6
- dateFormat?: string;
7
- inline?: boolean;
8
- showOtherMonths?: boolean;
9
- selectOtherMonths?: boolean;
10
- showIcon?: boolean;
11
- icon?: string;
12
- numberOfMonths?: number;
13
- responsiveOptions?: any[];
14
- view?: string;
15
- touchUI?: boolean;
16
- monthNavigator?: boolean;
17
- yearNavigator?: boolean;
18
- yearRange?: string;
19
- panelClass?: string;
20
- minDate?: Date;
21
- maxDate?: Date;
22
- disabledDates?: Date[];
23
- disabledDays?: number[];
24
- maxDateCount?: number;
25
- showOnFocus?: boolean;
26
- autoZIndex?: boolean;
27
- baseZIndex?: number;
28
- showButtonBar?: boolean;
29
- shortYearCutoff?: string;
30
- showTime?: boolean;
31
- timeOnly?: boolean;
32
- hourFormat?: string;
33
- stepHour?: number;
34
- stepMinute?: number;
35
- stepSecond?: number;
36
- showSeconds?: boolean;
37
- hideOnDateTimeSelect?: boolean;
38
- timeSeparator?: string;
39
- showWeek?: boolean;
40
- manualInput?: boolean;
41
- appendTo?: string;
4
+ type CalendarValueType = Date | Date[] | undefined;
5
+
6
+ type CalendarSelectionModeType = 'single' | 'multiple' | 'range' | undefined;
7
+
8
+ type CalendarViewType = 'date' | 'month' | 'year' | undefined;
9
+
10
+ type CalendarHourFormatType = '12' | '24' | undefined;
11
+
12
+ type CalendarAppendToType = 'body' | 'self' | string | undefined;
13
+
14
+ export interface CalendarResponsiveOptions {
15
+ /**
16
+ * Breakpoint for responsive mode. Exp; @media screen and (max-width: ${breakpoint}) {...}
17
+ */
18
+ breakpoint: string;
19
+ /**
20
+ * The number of visible months on breakpoint.
21
+ */
22
+ numMonths: number;
23
+ }
24
+
25
+ export interface CalendarMonthChangeEvent {
26
+ /**
27
+ * New month.
28
+ */
29
+ month: number;
30
+ /**
31
+ * New year.
32
+ */
33
+ year: number;
34
+ }
35
+
36
+ export interface CalendarYearChangeEvent {
37
+ /**
38
+ * New month.
39
+ */
40
+ month: number;
41
+ /**
42
+ * New year.
43
+ */
44
+ year: number;
45
+ }
46
+
47
+ export interface CalendarProps {
48
+ /**
49
+ * Value of the component.
50
+ */
51
+ modelValue?: CalendarValueType;
52
+ /**
53
+ * Defines the quantity of the selection, valid values are 'single', 'multiple' and 'range'.
54
+ * @see CalendarSelectionModeType
55
+ * Default value is 'single'.
56
+ */
57
+ selectionMode?: CalendarSelectionModeType;
58
+ /**
59
+ * Format of the date. Defaults to PrimeVue Locale configuration.
60
+ */
61
+ dateFormat?: string | undefined;
62
+ /**
63
+ * When enabled, displays the calendar as inline instead of an overlay.
64
+ */
65
+ inline?: boolean | undefined;
66
+ /**
67
+ * Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
68
+ * Default value is true.
69
+ */
70
+ showOtherMonths?: boolean | undefined;
71
+ /**
72
+ * Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
73
+ */
74
+ selectOtherMonths?: boolean | undefined;
75
+ /**
76
+ * When enabled, displays a button with icon next to input.
77
+ */
78
+ showIcon?: boolean | undefined;
79
+ /**
80
+ * Icon of the calendar button.
81
+ * Default value is 'pi pi-calendar'.
82
+ */
83
+ icon?: string | undefined;
84
+ /**
85
+ * Number of months to display.
86
+ * Default value is 1.
87
+ */
88
+ numberOfMonths?: number | undefined;
89
+ /**
90
+ * An array of options for responsive design.
91
+ * @see CalendarResponsiveOptions
92
+ */
93
+ responsiveOptions?: CalendarResponsiveOptions[];
94
+ /**
95
+ * Type of view to display, valid values are 'date', 'month' and 'year'.
96
+ * @see CalendarViewType
97
+ * Default value is 'date'.
98
+ */
99
+ view?: CalendarViewType;
100
+ /**
101
+ * When enabled, calendar overlay is displayed as optimized for touch devices.
102
+ */
103
+ touchUI?: boolean | undefined;
104
+ /**
105
+ * Whether the month should be rendered as a dropdown instead of text.
106
+ *
107
+ * @deprecated since version 3.9.0, Navigator is always on.
108
+ */
109
+ monthNavigator?: boolean | undefined;
110
+ /**
111
+ * Whether the year should be rendered as a dropdown instead of text.
112
+ *
113
+ * @deprecated since version 3.9.0, Navigator is always on.
114
+ */
115
+ yearNavigator?: boolean | undefined;
116
+ /**
117
+ * The range of years displayed in the year drop-down in (nnnn:nnnn) format such as (2000:2020).
118
+ *
119
+ * @deprecated since version 3.9.0, Years are based on decades by default.
120
+ */
121
+ yearRange?: string | undefined;
122
+ /**
123
+ * Style class of the datetimepicker panel.
124
+ */
125
+ panelClass?: any;
126
+ /**
127
+ * The minimum selectable date.
128
+ */
129
+ minDate?: Date | undefined;
130
+ /**
131
+ * The maximum selectable date.
132
+ */
133
+ maxDate?: Date | undefined;
134
+ /**
135
+ * Array with dates to disable.
136
+ */
137
+ disabledDates?: Date[] | undefined;
138
+ /**
139
+ * Array with disabled weekday numbers.
140
+ */
141
+ disabledDays?: number[] | undefined;
142
+ /**
143
+ * Maximum number of selectable dates in multiple mode.
144
+ */
145
+ maxDateCount?: number | undefined;
146
+ /**
147
+ * When disabled, datepicker will not be visible with input focus.
148
+ * Default value is true.
149
+ */
150
+ showOnFocus?: boolean | undefined;
151
+ /**
152
+ * Whether to automatically manage layering.
153
+ * Default value is true.
154
+ */
155
+ autoZIndex?: boolean | undefined;
156
+ /**
157
+ * Base zIndex value to use in layering.
158
+ * Default value is 0.
159
+ */
160
+ baseZIndex?: number | undefined;
161
+ /**
162
+ * Whether to display today and clear buttons at the footer.
163
+ */
164
+ showButtonBar?: boolean | undefined;
165
+ /**
166
+ * The cutoff year for determining the century for a date.
167
+ * Default value is +10.
168
+ */
169
+ shortYearCutoff?: string | undefined;
170
+ /**
171
+ * Whether to display timepicker.
172
+ */
173
+ showTime?: boolean | undefined;
174
+ /**
175
+ * Whether to display timepicker only.
176
+ */
177
+ timeOnly?: boolean | undefined;
178
+ /**
179
+ * Specifies 12 or 24 hour format.
180
+ */
181
+ hourFormat?: CalendarHourFormatType;
182
+ /**
183
+ * Hours to change per step.
184
+ * Default value is 1.
185
+ */
186
+ stepHour?: number | undefined;
187
+ /**
188
+ * Minutes to change per step.
189
+ * Default value is 1.
190
+ */
191
+ stepMinute?: number | undefined;
192
+ /**
193
+ * Seconds to change per step.
194
+ * Default value is 1.
195
+ */
196
+ stepSecond?: number | undefined;
197
+ /**
198
+ * Whether to show the seconds in time picker.
199
+ */
200
+ showSeconds?: boolean | undefined;
201
+ /**
202
+ * Whether to hide the overlay on date selection when showTime is enabled.
203
+ */
204
+ hideOnDateTimeSelect?: boolean | undefined;
205
+ /**
206
+ * Separator of time selector.
207
+ * Default value is ':'.
208
+ */
209
+ timeSeparator?: string | undefined;
210
+ /**
211
+ * When enabled, calendar will show week numbers.
212
+ */
213
+ showWeek?: boolean | undefined;
214
+ /**
215
+ * Wheter to allow prevents entering the date manually via typing.
216
+ * Default value is true.
217
+ */
218
+ manualInput?: boolean | undefined;
219
+ /**
220
+ * 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.
221
+ * Default value is 'body'.
222
+ */
223
+ appendTo?: CalendarAppendToType;
224
+ /**
225
+ * Inline style of the input field.
226
+ */
42
227
  inputStyle?: any;
43
- inputClass?: string;
228
+ /**
229
+ * Style class of the input field.
230
+ */
231
+ inputClass?: any;
232
+ /**
233
+ * Inline style of the component.
234
+ */
44
235
  style?: any;
45
- class?: string;
46
- keepInvalid?: boolean;
236
+ /**
237
+ * Style class of the component.
238
+ */
239
+ class?: any;
47
240
  }
48
241
 
49
- interface CalendarDateSlotInterface {
50
- date: any;
242
+ export interface CalendarSlots {
243
+ /**
244
+ * Custom header template of panel.
245
+ */
246
+ header: () => VNode[];
247
+ /**
248
+ * Custom footer template of panel.
249
+ */
250
+ footer: () => VNode[];
251
+ /**
252
+ * Custom date template.
253
+ * @param {Object} scope - date slot's params.
254
+ */
255
+ date: (scope: {
256
+ /**
257
+ * Value of the component.
258
+ */
259
+ date: CalendarValueType;
260
+ }) => VNode[];
261
+ /**
262
+ * Custom decade template.
263
+ * @param {CalendarDecadeSlot} scope - decade slot's params.
264
+ */
265
+ decade: (scope: {
266
+ /**
267
+ * An array containing the start and and year of a decade to display at header of the year picker.
268
+ */
269
+ years: string[] | undefined;
270
+ }) => VNode[];
51
271
  }
52
272
 
53
- interface CalendarDecadeSlotInterface {
54
- years: any;
273
+ export declare type CalendarEmits = {
274
+ /**
275
+ * Emitted when the value changes.
276
+ * @param {CalendarValueType} value - New value.
277
+ */
278
+ 'update:modelValue': (value: CalendarValueType) => void;
279
+ /**
280
+ * Callback to invoke when input field is being typed.
281
+ * @param {Event} event - Browser event
282
+ */
283
+ 'input': (event: Event) => void;
284
+ /**
285
+ * Callback to invoke when a date is selected.
286
+ * @param {Date} value - Selected value.
287
+ */
288
+ 'date-select': (value: Date) => void;
289
+ /**
290
+ * Callback to invoke when datepicker panel is shown.
291
+ */
292
+ 'show': () => void;
293
+ /**
294
+ * Callback to invoke when datepicker panel is hidden.
295
+ */
296
+ 'hide': () => void;
297
+ /**
298
+ * Callback to invoke when today button is clicked.
299
+ * @param {Date} date - Today as a date instance.
300
+ */
301
+ 'today-click': (date: Date) => void;
302
+ /**
303
+ * Callback to invoke when clear button is clicked.
304
+ * @param {Event} event - Browser event.
305
+ */
306
+ 'clear-click': (event: Event) => void;
307
+ /**
308
+ * Callback to invoke when a month is changed using the navigators.
309
+ * @param {CalendarMonthChangeEvent} event - Custom month change event.
310
+ */
311
+ 'month-change': (event: CalendarMonthChangeEvent) => void;
312
+ /**
313
+ * Callback to invoke when a year is changed using the navigators.
314
+ * @param {CalendarYearChangeEvent} event - Custom year change event.
315
+ */
316
+ 'year-change': (event: CalendarYearChangeEvent) => void;
317
+ /**
318
+ * Callback to invoke on focus of input field.
319
+ * @param {Event} event - Focus event
320
+ */
321
+ 'focus': (event: Event) => void;
322
+ /**
323
+ * Callback to invoke on blur of input field.
324
+ * @param {Event} event - Blur event
325
+ */
326
+ 'blur': (event: Event) => void;
55
327
  }
56
328
 
57
- declare class Calendar {
58
- $props: CalendarProps;
59
- $emit(eventName: 'update:modelValue', value: Date | Date[]): this;
60
- $emit(eventName: 'show'): this;
61
- $emit(eventName: 'hide'): this;
62
- $emit(eventName: 'month-change', e: { month: number, year: number }): this;
63
- $emit(eventName: 'year-change', e: { month: number, year: number }): this;
64
- $emit(eventName: 'date-select', value: Date): this;
65
- $emit(eventName: 'today-click', value: Date): this;
66
- $emit(eventName: 'clear-click', event: Event): this;
67
- $slots: {
68
- header: VNode[];
69
- date: CalendarDateSlotInterface;
70
- footer: VNode[];
71
- decade: CalendarDecadeSlotInterface;
72
- };
329
+ declare class Calendar extends ClassComponent<CalendarProps, CalendarSlots, CalendarEmits> { }
330
+
331
+ declare module '@vue/runtime-core' {
332
+ interface GlobalComponents {
333
+ Calendar: GlobalComponentConstructor<Calendar>
334
+ }
73
335
  }
74
336
 
337
+ /**
338
+ *
339
+ * Calendar is an input component to select a date.
340
+ *
341
+ * Demos:
342
+ *
343
+ * - [Calendar](https://www.primefaces.org/primevue/showcase/#/calendar)
344
+ *
345
+ */
75
346
  export default Calendar;