primevue 2.4.2 → 2.7.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 (646) hide show
  1. package/accordion/Accordion.vue +8 -1
  2. package/accordion/accordion.common.js +9 -3
  3. package/accordion/accordion.umd.js +9 -3
  4. package/accordion/accordion.umd.min.js +1 -1
  5. package/accordiontab/AccordionTab.vue +2 -2
  6. package/accordiontab/accordiontab.common.js +9 -4
  7. package/accordiontab/accordiontab.umd.js +9 -4
  8. package/accordiontab/accordiontab.umd.min.js +1 -1
  9. package/autocomplete/AutoComplete.d.ts +1 -0
  10. package/autocomplete/AutoComplete.vue +8 -0
  11. package/autocomplete/autocomplete.common.js +21 -3
  12. package/autocomplete/autocomplete.umd.js +21 -3
  13. package/autocomplete/autocomplete.umd.min.js +1 -1
  14. package/avatar/avatar.common.js +1 -1
  15. package/avatar/avatar.umd.js +1 -1
  16. package/avatargroup/avatargroup.common.js +1 -1
  17. package/avatargroup/avatargroup.umd.js +1 -1
  18. package/badge/badge.common.js +1 -1
  19. package/badge/badge.umd.js +1 -1
  20. package/badgedirective/badgedirective.common.js +5 -0
  21. package/badgedirective/badgedirective.umd.js +5 -0
  22. package/badgedirective/badgedirective.umd.min.js +1 -1
  23. package/blockui/BlockUI.vue +6 -16
  24. package/blockui/blockui.common.js +16 -16
  25. package/blockui/blockui.umd.js +16 -16
  26. package/blockui/blockui.umd.min.js +1 -1
  27. package/breadcrumb/Breadcrumb.d.ts +1 -0
  28. package/breadcrumb/Breadcrumb.vue +11 -3
  29. package/breadcrumb/BreadcrumbItem.vue +30 -11
  30. package/breadcrumb/breadcrumb.common.js +45 -17
  31. package/breadcrumb/breadcrumb.umd.js +45 -17
  32. package/breadcrumb/breadcrumb.umd.min.js +1 -1
  33. package/breadcrumb/breadcrumbitem.common.js +34 -10
  34. package/breadcrumb/breadcrumbitem.umd.js +34 -10
  35. package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
  36. package/button/button.common.js +6 -1
  37. package/button/button.umd.js +6 -1
  38. package/button/button.umd.min.js +1 -1
  39. package/calendar/Calendar.d.ts +5 -0
  40. package/calendar/Calendar.vue +321 -69
  41. package/calendar/calendar.common.js +340 -42
  42. package/calendar/calendar.umd.js +340 -42
  43. package/calendar/calendar.umd.min.js +1 -1
  44. package/card/card.common.js +1 -1
  45. package/card/card.umd.js +1 -1
  46. package/carousel/Carousel.vue +2 -2
  47. package/carousel/carousel.common.js +8 -3
  48. package/carousel/carousel.umd.js +8 -3
  49. package/carousel/carousel.umd.min.js +1 -1
  50. package/cascadeselect/CascadeSelect.d.ts +6 -4
  51. package/cascadeselect/CascadeSelect.vue +3 -1
  52. package/cascadeselect/cascadeselect.common.js +15 -4
  53. package/cascadeselect/cascadeselect.umd.js +15 -4
  54. package/cascadeselect/cascadeselect.umd.min.js +1 -1
  55. package/cascadeselect/cascadeselectsub.common.js +10 -1
  56. package/cascadeselect/cascadeselectsub.umd.js +10 -1
  57. package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
  58. package/cascadeselect/demo.html +3 -4
  59. package/chart/Chart.vue +22 -13
  60. package/chart/chart.common.1.js +12825 -0
  61. package/chart/chart.common.js +1040 -37026
  62. package/chart/chart.umd.1.js +12825 -0
  63. package/chart/chart.umd.js +1040 -37026
  64. package/chart/chart.umd.min.1.js +7 -0
  65. package/chart/chart.umd.min.js +1 -278
  66. package/checkbox/Checkbox.css +1 -0
  67. package/checkbox/Checkbox.d.ts +2 -0
  68. package/checkbox/Checkbox.vue +11 -3
  69. package/checkbox/checkbox.common.js +17 -5
  70. package/checkbox/checkbox.umd.js +17 -5
  71. package/checkbox/checkbox.umd.min.js +1 -1
  72. package/chip/chip.common.js +1 -1
  73. package/chip/chip.umd.js +1 -1
  74. package/chips/chips.common.js +1 -1
  75. package/chips/chips.umd.js +1 -1
  76. package/colorpicker/colorpicker.common.js +6 -1
  77. package/colorpicker/colorpicker.umd.js +6 -1
  78. package/colorpicker/colorpicker.umd.min.js +1 -1
  79. package/columngroup/columngroup.common.js +1 -1
  80. package/columngroup/columngroup.umd.js +1 -1
  81. package/common/Common.css +13 -4
  82. package/config/primevue.common.js +4 -0
  83. package/config/primevue.umd.js +4 -0
  84. package/config/primevue.umd.min.js +1 -1
  85. package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
  86. package/confirmationeventbus/confirmationeventbus.common.js +1777 -0
  87. package/confirmationeventbus/confirmationeventbus.umd.js +1787 -0
  88. package/confirmationeventbus/confirmationeventbus.umd.min.js +1 -0
  89. package/confirmationeventbus/demo.html +8 -0
  90. package/confirmationeventbus/index.d.ts +1 -0
  91. package/confirmationeventbus/index.js +2 -0
  92. package/confirmationservice/ConfirmationService.js +1 -1
  93. package/confirmationservice/confirmationservice.common.js +1609 -6
  94. package/confirmationservice/confirmationservice.umd.js +1609 -6
  95. package/confirmationservice/confirmationservice.umd.min.js +1 -1
  96. package/confirmdialog/ConfirmDialog.vue +9 -3
  97. package/confirmdialog/confirmdialog.common.js +437 -38
  98. package/confirmdialog/confirmdialog.umd.js +437 -38
  99. package/confirmdialog/confirmdialog.umd.min.js +1 -1
  100. package/confirmpopup/ConfirmPopup.d.ts +4 -1
  101. package/confirmpopup/ConfirmPopup.vue +9 -6
  102. package/confirmpopup/confirmpopup.common.js +513 -13
  103. package/confirmpopup/confirmpopup.umd.js +513 -13
  104. package/confirmpopup/confirmpopup.umd.min.js +1 -1
  105. package/contextmenu/ContextMenu.d.ts +1 -0
  106. package/contextmenu/ContextMenu.vue +5 -1
  107. package/contextmenu/ContextMenuSub.vue +33 -13
  108. package/contextmenu/contextmenu.common.js +46 -14
  109. package/contextmenu/contextmenu.umd.js +46 -14
  110. package/contextmenu/contextmenu.umd.min.js +1 -1
  111. package/contextmenu/contextmenusub.common.js +36 -8
  112. package/contextmenu/contextmenusub.umd.js +36 -8
  113. package/contextmenu/contextmenusub.umd.min.js +1 -1
  114. package/contextmenu/demo.html +4 -3
  115. package/datatable/BodyCell.vue +9 -5
  116. package/datatable/DataTable.d.ts +10 -9
  117. package/datatable/DataTable.vue +27 -19
  118. package/datatable/TableBody.vue +18 -5
  119. package/datatable/bodycell.common.js +21 -9
  120. package/datatable/bodycell.umd.js +21 -9
  121. package/datatable/bodycell.umd.min.js +1 -1
  122. package/datatable/datatable.common.js +1993 -89
  123. package/datatable/datatable.umd.js +1993 -89
  124. package/datatable/datatable.umd.min.js +1 -1
  125. package/datatable/headercheckbox.common.js +1 -1
  126. package/datatable/headercheckbox.umd.js +1 -1
  127. package/datatable/rowcheckbox.common.js +1 -1
  128. package/datatable/rowcheckbox.umd.js +1 -1
  129. package/datatable/rowradiobutton.common.js +1 -1
  130. package/datatable/rowradiobutton.umd.js +1 -1
  131. package/datatable/scrollableview.common.js +7 -2
  132. package/datatable/scrollableview.umd.js +7 -2
  133. package/datatable/scrollableview.umd.min.js +1 -1
  134. package/datatable/tablebody.common.js +44 -15
  135. package/datatable/tablebody.umd.js +44 -15
  136. package/datatable/tablebody.umd.min.js +1 -1
  137. package/datatable/tablefooter.common.js +1 -1
  138. package/datatable/tablefooter.umd.js +1 -1
  139. package/datatable/tableheader.common.js +7 -2
  140. package/datatable/tableheader.umd.js +7 -2
  141. package/datatable/tableheader.umd.min.js +1 -1
  142. package/datatable/tableloadingbody.common.js +1 -1
  143. package/datatable/tableloadingbody.umd.js +1 -1
  144. package/dataview/DataView.d.ts +2 -2
  145. package/dataview/DataView.vue +10 -10
  146. package/dataview/dataview.common.js +1937 -65
  147. package/dataview/dataview.umd.js +1937 -65
  148. package/dataview/dataview.umd.min.js +1 -1
  149. package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +1 -1
  150. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +1 -1
  151. package/deferredcontent/DeferredContent.vue +1 -7
  152. package/deferredcontent/deferredcontent.common.js +2 -2
  153. package/deferredcontent/deferredcontent.umd.js +2 -2
  154. package/dialog/Dialog.vue +35 -21
  155. package/dialog/dialog.common.js +42 -18
  156. package/dialog/dialog.umd.js +42 -18
  157. package/dialog/dialog.umd.min.js +1 -1
  158. package/divider/divider.common.js +1 -1
  159. package/divider/divider.umd.js +1 -1
  160. package/dock/Dock.d.ts +15 -0
  161. package/dock/Dock.vue +173 -0
  162. package/dock/DockSub.vue +132 -0
  163. package/dock/demo.html +17 -0
  164. package/dock/dock.common.js +917 -0
  165. package/dock/dock.umd.js +927 -0
  166. package/dock/dock.umd.min.js +1 -0
  167. package/dock/docksub.common.js +428 -0
  168. package/dock/docksub.umd.js +438 -0
  169. package/dock/docksub.umd.min.js +1 -0
  170. package/dock/index.d.ts +1 -0
  171. package/dock/index.js +2 -0
  172. package/dock/plugin.js +4 -0
  173. package/dropdown/Dropdown.d.ts +5 -3
  174. package/dropdown/Dropdown.vue +31 -5
  175. package/dropdown/dropdown.common.js +44 -6
  176. package/dropdown/dropdown.umd.js +44 -6
  177. package/dropdown/dropdown.umd.min.js +1 -1
  178. package/editor/editor.common.js +1 -1
  179. package/editor/editor.umd.js +1 -1
  180. package/fieldset/fieldset.common.js +6 -1
  181. package/fieldset/fieldset.umd.js +6 -1
  182. package/fieldset/fieldset.umd.min.js +1 -1
  183. package/fileupload/FileUpload.d.ts +2 -0
  184. package/fileupload/FileUpload.vue +12 -7
  185. package/fileupload/fileupload.common.js +42 -23
  186. package/fileupload/fileupload.umd.js +42 -23
  187. package/fileupload/fileupload.umd.min.js +1 -1
  188. package/fullcalendar/fullcalendar.common.js +1573 -777
  189. package/fullcalendar/fullcalendar.umd.js +1573 -777
  190. package/fullcalendar/fullcalendar.umd.min.js +5 -5
  191. package/galleria/Galleria.vue +3 -8
  192. package/galleria/GalleriaContent.vue +9 -0
  193. package/galleria/galleria.common.js +31 -13
  194. package/galleria/galleria.umd.js +31 -13
  195. package/galleria/galleria.umd.min.js +1 -1
  196. package/galleria/galleriacontent.common.js +18 -4
  197. package/galleria/galleriacontent.umd.js +18 -4
  198. package/galleria/galleriacontent.umd.min.js +1 -1
  199. package/galleria/galleriaitem.common.js +6 -1
  200. package/galleria/galleriaitem.umd.js +6 -1
  201. package/galleria/galleriaitem.umd.min.js +1 -1
  202. package/galleria/galleriathumbnails.common.js +6 -1
  203. package/galleria/galleriathumbnails.umd.js +6 -1
  204. package/galleria/galleriathumbnails.umd.min.js +1 -1
  205. package/imagepreview/ImagePreview.d.ts +10 -0
  206. package/imagepreview/ImagePreview.vue +205 -0
  207. package/imagepreview/demo.html +17 -0
  208. package/imagepreview/imagepreview.common.js +4083 -0
  209. package/imagepreview/imagepreview.umd.js +4093 -0
  210. package/imagepreview/imagepreview.umd.min.js +1 -0
  211. package/imagepreview/index.d.ts +1 -0
  212. package/imagepreview/index.js +2 -0
  213. package/imagepreview/plugin.js +4 -0
  214. package/inlinemessage/inlinemessage.common.js +1 -1
  215. package/inlinemessage/inlinemessage.umd.js +1 -1
  216. package/inplace/inplace.common.js +7 -2
  217. package/inplace/inplace.umd.js +7 -2
  218. package/inplace/inplace.umd.min.js +1 -1
  219. package/inputmask/InputMask.vue +7 -5
  220. package/inputmask/inputmask.common.js +19 -6
  221. package/inputmask/inputmask.umd.js +19 -6
  222. package/inputmask/inputmask.umd.min.js +1 -1
  223. package/inputnumber/InputNumber.vue +183 -62
  224. package/inputnumber/inputnumber.common.js +228 -104
  225. package/inputnumber/inputnumber.umd.js +228 -104
  226. package/inputnumber/inputnumber.umd.min.js +1 -1
  227. package/inputswitch/InputSwitch.d.ts +2 -0
  228. package/inputswitch/InputSwitch.vue +15 -3
  229. package/inputswitch/inputswitch.common.js +17 -5
  230. package/inputswitch/inputswitch.umd.js +17 -5
  231. package/inputswitch/inputswitch.umd.min.js +1 -1
  232. package/inputtext/inputtext.common.js +5 -1
  233. package/inputtext/inputtext.umd.js +5 -1
  234. package/inputtext/inputtext.umd.min.js +1 -1
  235. package/knob/knob.common.js +1 -1
  236. package/knob/knob.umd.js +1 -1
  237. package/listbox/Listbox.d.ts +3 -3
  238. package/listbox/listbox.common.js +10 -1
  239. package/listbox/listbox.umd.js +10 -1
  240. package/listbox/listbox.umd.min.js +1 -1
  241. package/megamenu/MegaMenu.d.ts +6 -1
  242. package/megamenu/MegaMenu.vue +51 -22
  243. package/megamenu/megamenu.common.js +52 -10
  244. package/megamenu/megamenu.umd.js +52 -10
  245. package/megamenu/megamenu.umd.min.js +1 -1
  246. package/menu/Menu.d.ts +1 -0
  247. package/menu/Menu.vue +11 -4
  248. package/menu/Menuitem.vue +25 -11
  249. package/menu/menu.common.js +46 -17
  250. package/menu/menu.umd.js +46 -17
  251. package/menu/menu.umd.min.js +1 -1
  252. package/menu/menuitem.common.js +33 -11
  253. package/menu/menuitem.umd.js +33 -11
  254. package/menu/menuitem.umd.min.js +1 -1
  255. package/menubar/Menubar.d.ts +1 -0
  256. package/menubar/Menubar.vue +5 -1
  257. package/menubar/MenubarSub.vue +34 -14
  258. package/menubar/menubar.common.js +46 -14
  259. package/menubar/menubar.umd.js +46 -14
  260. package/menubar/menubar.umd.min.js +1 -1
  261. package/menubar/menubarsub.common.js +36 -8
  262. package/menubar/menubarsub.umd.js +36 -8
  263. package/menubar/menubarsub.umd.min.js +1 -1
  264. package/message/Message.d.ts +1 -0
  265. package/message/Message.vue +5 -1
  266. package/message/message.common.js +12 -3
  267. package/message/message.umd.js +12 -3
  268. package/message/message.umd.min.js +1 -1
  269. package/multiselect/MultiSelect.d.ts +4 -3
  270. package/multiselect/MultiSelect.vue +8 -1
  271. package/multiselect/multiselect.common.js +20 -5
  272. package/multiselect/multiselect.umd.js +20 -5
  273. package/multiselect/multiselect.umd.min.js +1 -1
  274. package/orderlist/OrderList.d.ts +2 -0
  275. package/orderlist/OrderList.vue +2 -0
  276. package/orderlist/orderlist.common.js +15 -4
  277. package/orderlist/orderlist.umd.js +15 -4
  278. package/orderlist/orderlist.umd.min.js +1 -1
  279. package/organizationchart/organizationchart.common.js +11 -2
  280. package/organizationchart/organizationchart.umd.js +11 -2
  281. package/organizationchart/organizationchart.umd.min.js +1 -1
  282. package/organizationchart/organizationchartnode.common.js +6 -1
  283. package/organizationchart/organizationchartnode.umd.js +6 -1
  284. package/organizationchart/organizationchartnode.umd.min.js +1 -1
  285. package/overlaypanel/overlaypanel.common.js +6 -1
  286. package/overlaypanel/overlaypanel.umd.js +6 -1
  287. package/overlaypanel/overlaypanel.umd.min.js +1 -1
  288. package/package.json +5 -1
  289. package/paginator/CurrentPageReport.vue +6 -2
  290. package/paginator/JumpToPageDropdown.vue +33 -0
  291. package/paginator/JumpToPageInput.vue +25 -0
  292. package/paginator/Paginator.d.ts +2 -2
  293. package/paginator/Paginator.vue +24 -11
  294. package/paginator/RowsPerPageDropdown.vue +3 -2
  295. package/paginator/currentpagereport.common.js +7 -3
  296. package/paginator/currentpagereport.umd.js +7 -3
  297. package/paginator/currentpagereport.umd.min.js +1 -1
  298. package/paginator/demo.html +3 -3
  299. package/paginator/firstpagelink.common.js +6 -1
  300. package/paginator/firstpagelink.umd.js +6 -1
  301. package/paginator/firstpagelink.umd.min.js +1 -1
  302. package/paginator/jumptopagedropdown.common.js +6476 -0
  303. package/paginator/jumptopagedropdown.umd.js +6486 -0
  304. package/paginator/jumptopagedropdown.umd.min.js +1 -0
  305. package/paginator/jumptopageinput.common.js +7421 -0
  306. package/paginator/jumptopageinput.umd.js +7431 -0
  307. package/paginator/jumptopageinput.umd.min.js +1 -0
  308. package/paginator/lastpagelink.common.js +6 -1
  309. package/paginator/lastpagelink.umd.js +6 -1
  310. package/paginator/lastpagelink.umd.min.js +1 -1
  311. package/paginator/nextpagelink.common.js +6 -1
  312. package/paginator/nextpagelink.umd.js +6 -1
  313. package/paginator/nextpagelink.umd.min.js +1 -1
  314. package/paginator/pagelinks.common.js +6 -1
  315. package/paginator/pagelinks.umd.js +6 -1
  316. package/paginator/pagelinks.umd.min.js +1 -1
  317. package/paginator/paginator.common.js +2264 -125
  318. package/paginator/paginator.umd.js +2264 -125
  319. package/paginator/paginator.umd.min.js +1 -1
  320. package/paginator/prevpagelink.common.js +6 -1
  321. package/paginator/prevpagelink.umd.js +6 -1
  322. package/paginator/prevpagelink.umd.min.js +1 -1
  323. package/paginator/rowsperpagedropdown.common.js +52 -13
  324. package/paginator/rowsperpagedropdown.umd.js +52 -13
  325. package/paginator/rowsperpagedropdown.umd.min.js +1 -1
  326. package/panel/Panel.d.ts +1 -0
  327. package/panel/Panel.vue +1 -1
  328. package/panel/panel.common.js +7 -2
  329. package/panel/panel.umd.js +7 -2
  330. package/panel/panel.umd.min.js +1 -1
  331. package/panelmenu/PanelMenu.d.ts +1 -0
  332. package/panelmenu/PanelMenu.vue +32 -6
  333. package/panelmenu/PanelMenuSub.vue +32 -13
  334. package/panelmenu/panelmenu.common.js +69 -16
  335. package/panelmenu/panelmenu.umd.js +69 -16
  336. package/panelmenu/panelmenu.umd.min.js +1 -1
  337. package/panelmenu/panelmenusub.common.js +29 -7
  338. package/panelmenu/panelmenusub.umd.js +29 -7
  339. package/panelmenu/panelmenusub.umd.min.js +1 -1
  340. package/password/password.common.js +11 -2
  341. package/password/password.umd.js +11 -2
  342. package/password/password.umd.min.js +1 -1
  343. package/picklist/PickList.d.ts +8 -0
  344. package/picklist/PickList.vue +13 -4
  345. package/picklist/picklist.common.js +22 -4
  346. package/picklist/picklist.umd.js +22 -4
  347. package/picklist/picklist.umd.min.js +1 -1
  348. package/progressbar/ProgressBar.vue +20 -13
  349. package/progressbar/progressbar.common.js +11 -6
  350. package/progressbar/progressbar.umd.js +11 -6
  351. package/progressbar/progressbar.umd.min.js +1 -1
  352. package/progressspinner/progressspinner.common.js +1 -1
  353. package/progressspinner/progressspinner.umd.js +1 -1
  354. package/radiobutton/radiobutton.common.js +5 -1
  355. package/radiobutton/radiobutton.umd.js +5 -1
  356. package/radiobutton/radiobutton.umd.min.js +1 -1
  357. package/rating/Rating.vue +1 -1
  358. package/rating/rating.common.js +3 -3
  359. package/rating/rating.umd.js +3 -3
  360. package/rating/rating.umd.min.js +1 -1
  361. package/resources/primevue.css +15 -4
  362. package/resources/primevue.min.css +1 -1
  363. package/resources/themes/arya-blue/theme.css +503 -83
  364. package/resources/themes/arya-green/theme.css +503 -83
  365. package/resources/themes/arya-orange/theme.css +503 -83
  366. package/resources/themes/arya-purple/theme.css +503 -83
  367. package/resources/themes/bootstrap4-dark-blue/theme.css +500 -87
  368. package/resources/themes/bootstrap4-dark-purple/theme.css +500 -87
  369. package/resources/themes/bootstrap4-light-blue/theme.css +490 -77
  370. package/resources/themes/bootstrap4-light-purple/theme.css +490 -77
  371. package/resources/themes/fluent-light/theme.css +497 -77
  372. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  373. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  374. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  375. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  376. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  377. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  378. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  379. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  380. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  381. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  382. package/resources/themes/lara-dark-blue/theme.css +5418 -0
  383. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  384. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  385. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  386. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  387. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  388. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  389. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  390. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  391. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  392. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  393. package/resources/themes/lara-dark-indigo/theme.css +5418 -0
  394. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  395. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  396. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  397. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  398. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  399. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  400. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  401. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  402. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  403. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  404. package/resources/themes/lara-dark-purple/theme.css +5418 -0
  405. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  406. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  407. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  408. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  409. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  410. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  411. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  412. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  413. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  414. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  415. package/resources/themes/lara-dark-teal/theme.css +5418 -0
  416. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  417. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  418. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  419. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  420. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  421. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  422. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  423. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  424. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  425. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  426. package/resources/themes/lara-light-blue/theme.css +5418 -0
  427. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  428. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  429. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  430. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  431. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  432. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  433. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  434. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  435. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  436. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  437. package/resources/themes/lara-light-indigo/theme.css +5418 -0
  438. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  439. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  440. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  441. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  442. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  443. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  444. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  445. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  446. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  447. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  448. package/resources/themes/lara-light-purple/theme.css +5418 -0
  449. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  450. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  451. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  452. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  453. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  454. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  455. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  456. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  457. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  458. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  459. package/resources/themes/lara-light-teal/theme.css +5418 -0
  460. package/resources/themes/luna-amber/theme.css +500 -87
  461. package/resources/themes/luna-blue/theme.css +500 -87
  462. package/resources/themes/luna-green/theme.css +500 -87
  463. package/resources/themes/luna-pink/theme.css +500 -87
  464. package/resources/themes/md-dark-deeppurple/theme.css +801 -128
  465. package/resources/themes/md-dark-indigo/theme.css +801 -128
  466. package/resources/themes/md-light-deeppurple/theme.css +791 -118
  467. package/resources/themes/md-light-indigo/theme.css +791 -118
  468. package/resources/themes/mdc-dark-deeppurple/theme.css +1087 -414
  469. package/resources/themes/mdc-dark-indigo/theme.css +1035 -362
  470. package/resources/themes/mdc-light-deeppurple/theme.css +791 -118
  471. package/resources/themes/mdc-light-indigo/theme.css +791 -118
  472. package/resources/themes/nova/theme.css +490 -77
  473. package/resources/themes/nova-accent/theme.css +490 -77
  474. package/resources/themes/nova-alt/theme.css +490 -77
  475. package/resources/themes/nova-vue/theme.css +490 -77
  476. package/resources/themes/rhea/theme.css +490 -77
  477. package/resources/themes/saga-blue/theme.css +493 -73
  478. package/resources/themes/saga-green/theme.css +493 -73
  479. package/resources/themes/saga-orange/theme.css +493 -73
  480. package/resources/themes/saga-purple/theme.css +493 -73
  481. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  482. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  483. package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  484. package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  485. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  486. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  487. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  488. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  489. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  490. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  491. package/resources/themes/tailwind-light/theme.css +5493 -0
  492. package/resources/themes/vela-blue/theme.css +503 -83
  493. package/resources/themes/vela-green/theme.css +503 -83
  494. package/resources/themes/vela-orange/theme.css +503 -83
  495. package/resources/themes/vela-purple/theme.css +503 -83
  496. package/ripple/ripple.common.js +5 -0
  497. package/ripple/ripple.umd.js +5 -0
  498. package/ripple/ripple.umd.min.js +1 -1
  499. package/row/row.common.js +1 -1
  500. package/row/row.umd.js +1 -1
  501. package/scrollpanel/scrollpanel.common.js +6 -1
  502. package/scrollpanel/scrollpanel.umd.js +6 -1
  503. package/scrollpanel/scrollpanel.umd.min.js +1 -1
  504. package/scrolltop/scrolltop.common.js +6 -1
  505. package/scrolltop/scrolltop.umd.js +6 -1
  506. package/scrolltop/scrolltop.umd.min.js +1 -1
  507. package/selectbutton/SelectButton.d.ts +3 -3
  508. package/selectbutton/SelectButton.vue +6 -1
  509. package/selectbutton/selectbutton.common.js +17 -3
  510. package/selectbutton/selectbutton.umd.js +17 -3
  511. package/selectbutton/selectbutton.umd.min.js +1 -1
  512. package/sidebar/Sidebar.vue +3 -16
  513. package/sidebar/sidebar.common.js +15 -15
  514. package/sidebar/sidebar.umd.js +15 -15
  515. package/sidebar/sidebar.umd.min.js +1 -1
  516. package/skeleton/skeleton.common.js +1 -1
  517. package/skeleton/skeleton.umd.js +1 -1
  518. package/slider/slider.common.js +6 -1
  519. package/slider/slider.umd.js +6 -1
  520. package/slider/slider.umd.min.js +1 -1
  521. package/speeddial/SpeedDial.d.ts +31 -0
  522. package/speeddial/SpeedDial.vue +341 -0
  523. package/speeddial/demo.html +17 -0
  524. package/speeddial/index.d.ts +1 -0
  525. package/speeddial/index.js +2 -0
  526. package/speeddial/plugin.js +4 -0
  527. package/speeddial/speeddial.common.js +4741 -0
  528. package/speeddial/speeddial.umd.js +4751 -0
  529. package/speeddial/speeddial.umd.min.js +1 -0
  530. package/splitbutton/splitbutton.common.js +51 -22
  531. package/splitbutton/splitbutton.umd.js +51 -22
  532. package/splitbutton/splitbutton.umd.min.js +1 -1
  533. package/splitter/splitter.common.js +5 -0
  534. package/splitter/splitter.umd.js +5 -0
  535. package/splitter/splitter.umd.min.js +1 -1
  536. package/steps/Steps.d.ts +1 -0
  537. package/steps/Steps.vue +30 -8
  538. package/steps/steps.common.js +33 -6
  539. package/steps/steps.umd.js +33 -6
  540. package/steps/steps.umd.min.js +1 -1
  541. package/styleclass/StyleClass.d.ts +5 -0
  542. package/styleclass/StyleClass.js +179 -0
  543. package/styleclass/demo.html +8 -0
  544. package/styleclass/index.d.ts +1 -0
  545. package/styleclass/index.js +2 -0
  546. package/styleclass/plugin.js +4 -0
  547. package/styleclass/styleclass.common.js +3576 -0
  548. package/styleclass/styleclass.umd.js +3586 -0
  549. package/styleclass/styleclass.umd.min.js +1 -0
  550. package/tabmenu/TabMenu.d.ts +1 -0
  551. package/tabmenu/TabMenu.vue +44 -11
  552. package/tabmenu/tabmenu.common.js +171 -9
  553. package/tabmenu/tabmenu.umd.js +171 -9
  554. package/tabmenu/tabmenu.umd.min.js +1 -1
  555. package/tabpanel/tabpanel.common.js +1 -1
  556. package/tabpanel/tabpanel.umd.js +1 -1
  557. package/tabview/TabView.d.ts +1 -0
  558. package/tabview/TabView.vue +111 -11
  559. package/tabview/tabview.common.js +86 -5
  560. package/tabview/tabview.umd.js +86 -5
  561. package/tabview/tabview.umd.min.js +1 -1
  562. package/tag/tag.common.js +1 -1
  563. package/tag/tag.umd.js +1 -1
  564. package/terminal/terminal.common.js +1 -1
  565. package/terminal/terminal.umd.js +1 -1
  566. package/textarea/textarea.common.js +5 -1
  567. package/textarea/textarea.umd.js +5 -1
  568. package/textarea/textarea.umd.min.js +1 -1
  569. package/tieredmenu/TieredMenu.d.ts +1 -0
  570. package/tieredmenu/TieredMenu.vue +5 -1
  571. package/tieredmenu/TieredMenuSub.vue +30 -14
  572. package/tieredmenu/demo.html +4 -3
  573. package/tieredmenu/tieredmenu.common.js +41 -13
  574. package/tieredmenu/tieredmenu.umd.js +41 -13
  575. package/tieredmenu/tieredmenu.umd.min.js +1 -1
  576. package/tieredmenu/tieredmenusub.common.js +31 -7
  577. package/tieredmenu/tieredmenusub.umd.js +31 -7
  578. package/tieredmenu/tieredmenusub.umd.min.js +1 -1
  579. package/timeline/timeline.common.js +5 -1
  580. package/timeline/timeline.umd.js +5 -1
  581. package/timeline/timeline.umd.min.js +1 -1
  582. package/toast/Toast.d.ts +7 -1
  583. package/toast/Toast.vue +51 -4
  584. package/toast/ToastMessage.vue +44 -10
  585. package/toast/toast.common.js +103 -14
  586. package/toast/toast.umd.js +103 -14
  587. package/toast/toast.umd.min.js +1 -1
  588. package/toast/toastmessage.common.js +44 -7
  589. package/toast/toastmessage.umd.js +44 -7
  590. package/toast/toastmessage.umd.min.js +1 -1
  591. package/togglebutton/togglebutton.common.js +6 -1
  592. package/togglebutton/togglebutton.umd.js +6 -1
  593. package/togglebutton/togglebutton.umd.min.js +1 -1
  594. package/toolbar/Toolbar.d.ts +1 -1
  595. package/toolbar/Toolbar.vue +2 -2
  596. package/toolbar/toolbar.common.js +3 -3
  597. package/toolbar/toolbar.umd.js +3 -3
  598. package/toolbar/toolbar.umd.min.js +1 -1
  599. package/tooltip/Tooltip.css +1 -0
  600. package/tooltip/Tooltip.js +59 -6
  601. package/tooltip/tooltip.common.js +1763 -70
  602. package/tooltip/tooltip.umd.js +1763 -70
  603. package/tooltip/tooltip.umd.min.js +1 -1
  604. package/tree/TreeNode.vue +5 -1
  605. package/tree/tree.common.js +23 -8
  606. package/tree/tree.umd.js +23 -8
  607. package/tree/tree.umd.min.js +1 -1
  608. package/tree/treenode.common.js +16 -3
  609. package/tree/treenode.umd.js +16 -3
  610. package/tree/treenode.umd.min.js +1 -1
  611. package/treetable/TreeTable.d.ts +2 -2
  612. package/treetable/TreeTable.vue +8 -8
  613. package/treetable/treetable.common.js +1900 -90
  614. package/treetable/treetable.umd.js +1900 -90
  615. package/treetable/treetable.umd.min.js +1 -1
  616. package/treetable/treetablerow.common.js +11 -1
  617. package/treetable/treetablerow.umd.js +11 -1
  618. package/treetable/treetablerow.umd.min.js +1 -1
  619. package/treetable/treetablerowloader.common.js +12 -1
  620. package/treetable/treetablerowloader.umd.js +12 -1
  621. package/treetable/treetablerowloader.umd.min.js +1 -1
  622. package/tristatecheckbox/tristatecheckbox.common.js +1 -1
  623. package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
  624. package/utils/DomHandler.js +5 -0
  625. package/utils/EventBus.js +33 -0
  626. package/utils/connectedoverlayscrollhandler.common.js +5 -0
  627. package/utils/connectedoverlayscrollhandler.umd.js +5 -0
  628. package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
  629. package/utils/domhandler.common.js +5 -0
  630. package/utils/domhandler.umd.js +5 -0
  631. package/utils/domhandler.umd.min.js +1 -1
  632. package/utils/eventbus.common.js +1774 -0
  633. package/utils/eventbus.umd.js +1784 -0
  634. package/utils/eventbus.umd.min.js +1 -0
  635. package/utils/filterutils.common.js +4 -0
  636. package/utils/filterutils.umd.js +4 -0
  637. package/utils/filterutils.umd.min.js +1 -1
  638. package/utils/objectutils.common.js +4 -0
  639. package/utils/objectutils.umd.js +4 -0
  640. package/utils/objectutils.umd.min.js +1 -1
  641. package/vetur-attributes.json +236 -16
  642. package/vetur-tags.json +88 -18
  643. package/web-types.json +2042 -1266
  644. package/confirmationservice/confirmationeventbus.common.js +0 -174
  645. package/confirmationservice/confirmationeventbus.umd.js +0 -184
  646. package/confirmationservice/confirmationeventbus.umd.min.js +0 -1
@@ -1,6 +1,7 @@
1
1
  <template>
2
- <span :class="containerClass">
3
- <CalendarInputText ref="input" v-if="!inline" type="text" v-bind="$attrs" v-on="listeners" :value="inputFieldValue" :readonly="!manualInput" :aria-labelledby="ariaLabelledBy" inputmode="none" />
2
+ <span :class="containerClass" :style="styles">
3
+ <CalendarInputText ref="input" v-if="!inline" type="text" v-bind="$attrs" v-on="listeners" :value="inputFieldValue" :readonly="!manualInput" :aria-labelledby="ariaLabelledBy" inputmode="none"
4
+ :class="inputClass" :style="inputStyle" />
4
5
  <CalendarButton v-if="showIcon" :icon="icon" tabindex="-1" class="p-datepicker-trigger" :disabled="$attrs.disabled" @click="onButtonClick" type="button" :aria-label="inputFieldValue"/>
5
6
  <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayEnterComplete" @leave="onOverlayLeave">
6
7
  <div ref="overlay" :class="panelStyleClass" v-if="inline ? true : overlayVisible" :role="inline ? null : 'dialog'" :aria-labelledby="ariaLabelledBy">
@@ -9,25 +10,28 @@
9
10
  <div class="p-datepicker-group" v-for="(month,groupIndex) of months" :key="month.month + month.year">
10
11
  <div class="p-datepicker-header">
11
12
  <slot name="header"></slot>
12
- <button class="p-datepicker-prev p-link" v-if="groupIndex === 0" @click="onPrevButtonClick" type="button" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled">
13
+ <button class="p-datepicker-prev p-link" v-show="groupIndex === 0" @click="onPrevButtonClick" type="button" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled">
13
14
  <span class="p-datepicker-prev-icon pi pi-chevron-left"></span>
14
15
  </button>
15
16
  <div class="p-datepicker-title">
16
- <span class="p-datepicker-month" v-if="!monthNavigator && (view !== 'month')">{{getMonthName(month.month)}}</span>
17
- <select class="p-datepicker-month" v-if="monthNavigator && (view !== 'month') && numberOfMonths === 1" @change="onMonthDropdownChange($event.target.value)">
18
- <option :value="index" v-for="(monthName, index) of monthNames" :key="monthName" :selected="index === month.month">{{monthName}}</option>
19
- </select>
20
- <span class="p-datepicker-year" v-if="!yearNavigator">{{view === 'month' ? currentYear : month.year}}</span>
21
- <select class="p-datepicker-year" v-if="yearNavigator && numberOfMonths === 1" @change="onYearDropdownChange($event.target.value)">
22
- <option :value="year" v-for="year of yearOptions" :key="year" :selected="year === currentYear">{{year}}</option>
23
- </select>
17
+ <button type="button" @click="switchToMonthView" v-if="currentView === 'date'" class="p-datepicker-month p-link" :disabled="switchViewButtonDisabled">
18
+ {{getMonthName(month.month)}}
19
+ </button>
20
+ <button type="button" @click="switchToYearView" v-if="currentView !== 'year'" class="p-datepicker-year p-link" :disabled="switchViewButtonDisabled">
21
+ {{currentYear}}
22
+ </button>
23
+ <span class="p-datepicker-decade" v-if="currentView === 'year'">
24
+ <slot name="decade" :years="yearPickerValues">
25
+ {{yearPickerValues[0]}} - {{yearPickerValues[yearPickerValues.length - 1]}}
26
+ </slot>
27
+ </span>
24
28
  </div>
25
- <button class="p-datepicker-next p-link" v-if="numberOfMonths === 1 ? true : (groupIndex === numberOfMonths - 1)"
29
+ <button class="p-datepicker-next p-link" v-show="numberOfMonths === 1 ? true : (groupIndex === numberOfMonths - 1)"
26
30
  @click="onNextButtonClick" type="button" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled">
27
31
  <span class="p-datepicker-next-icon pi pi-chevron-right"></span>
28
32
  </button>
29
33
  </div>
30
- <div class="p-datepicker-calendar-container" v-if="view ==='date'">
34
+ <div class="p-datepicker-calendar-container" v-if="currentView ==='date'">
31
35
  <table class="p-datepicker-calendar">
32
36
  <thead>
33
37
  <tr>
@@ -59,12 +63,18 @@
59
63
  </div>
60
64
  </div>
61
65
  </div>
62
- <div class="p-monthpicker" v-if="view === 'month'">
66
+ <div class="p-monthpicker" v-if="currentView === 'month'">
63
67
  <span v-for="(m,i) of monthPickerValues" :key="m" @click="onMonthSelect($event, i)" @keydown="onMonthCellKeydown($event,i)"
64
68
  class="p-monthpicker-month" :class="{'p-highlight': isMonthSelected(i)}" v-ripple>
65
69
  {{m}}
66
70
  </span>
67
71
  </div>
72
+ <div class="p-yearpicker" v-if="currentView === 'year'">
73
+ <span v-for="y of yearPickerValues" :key="y" @click="onYearSelect($event, y)" @keydown="onYearCellKeydown($event,y)"
74
+ class="p-yearpicker-year" :class="{'p-highlight': isYearSelected(y)}" v-ripple>
75
+ {{y}}
76
+ </span>
77
+ </div>
68
78
  </template>
69
79
  <div class="p-timepicker" v-if="showTime||timeOnly">
70
80
  <div class="p-hour-picker">
@@ -86,7 +96,7 @@
86
96
  @mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
87
97
  <span class="pi pi-chevron-up"></span>
88
98
  </button>
89
- <span>{{formattedCurrentMinute}}</span>
99
+ <span>{{formattedCurrentMinute}}</span>
90
100
  <button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 1, -1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled"
91
101
  @mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
92
102
  <span class="pi pi-chevron-down"></span>
@@ -131,6 +141,7 @@
131
141
 
132
142
  <script>
133
143
  import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler';
144
+ import UniqueComponentId from '../utils/UniqueComponentId';
134
145
  import InputText from '../inputtext/InputText';
135
146
  import Button from '../button/Button';
136
147
  import DomHandler from '../utils/DomHandler';
@@ -169,6 +180,7 @@ export default {
169
180
  type: Number,
170
181
  default: 1
171
182
  },
183
+ responsiveOptions: Array,
172
184
  view: {
173
185
  type: String,
174
186
  default: 'date'
@@ -288,7 +300,11 @@ export default {
288
300
  appendTo: {
289
301
  type: String,
290
302
  default: null
291
- }
303
+ },
304
+ inputClass: null,
305
+ inputStyle: null,
306
+ className: null,
307
+ styles: null
292
308
  },
293
309
  navigationState: null,
294
310
  scrollHandler: null,
@@ -302,8 +318,13 @@ export default {
302
318
  this.updateCurrentMetaData();
303
319
  },
304
320
  mounted() {
305
- if (this.inline && !this.$attrs.disabled) {
306
- this.initFocusableCell();
321
+ this.createResponsiveStyle();
322
+ if (this.inline) {
323
+ this.$refs.overlay && this.$refs.overlay.setAttribute(this.attributeSelector, '');
324
+ if (!this.$attrs.disabled) {
325
+ this.initFocusableCell();
326
+ this.$refs.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
327
+ }
307
328
  }
308
329
  },
309
330
  updated() {
@@ -327,6 +348,7 @@ export default {
327
348
  this.destroyMask();
328
349
  }
329
350
 
351
+ this.destroyResponsiveStyleElement();
330
352
  this.restoreAppend();
331
353
  this.unbindOutsideClickListener();
332
354
  this.unbindResizeListener();
@@ -344,14 +366,28 @@ export default {
344
366
  currentMinute: null,
345
367
  currentSecond: null,
346
368
  pm: null,
347
- focused: false,
348
- overlayVisible: false
369
+ focused: false,
370
+ overlayVisible: false,
371
+ currentView: this.view
349
372
  }
350
373
  },
351
374
  watch: {
352
375
  value() {
353
376
  this.updateCurrentMetaData();
354
- }
377
+ },
378
+ months() {
379
+ if (this.$refs.overlay) {
380
+ setTimeout(this.updateFocus, 0);
381
+ }
382
+ },
383
+ numberOfMonths() {
384
+ this.destroyResponsiveStyleElement();
385
+ this.createResponsiveStyle();
386
+ },
387
+ responsiveOptions() {
388
+ this.destroyResponsiveStyleElement();
389
+ this.createResponsiveStyle();
390
+ },
355
391
  },
356
392
  methods: {
357
393
  isComparable() {
@@ -392,6 +428,9 @@ export default {
392
428
  isMonthSelected(month) {
393
429
  return this.isComparable() ? (this.value.getMonth() === month && this.value.getFullYear() === this.currentYear) : false;
394
430
  },
431
+ isYearSelected(year) {
432
+ return this.isComparable() ? (this.value.getFullYear() === year) : false;
433
+ },
395
434
  isDateEquals(value, dateMeta) {
396
435
  if (value)
397
436
  return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
@@ -515,7 +554,9 @@ export default {
515
554
 
516
555
  return validMin && validMax && validDate && validDay;
517
556
  },
518
- onOverlayEnter() {
557
+ onOverlayEnter(el) {
558
+ el.setAttribute(this.attributeSelector, '');
559
+
519
560
  if (this.autoZIndex) {
520
561
  this.$refs.overlay.style.zIndex = String(this.baseZIndex + DomHandler.generateZIndex());
521
562
  }
@@ -529,6 +570,7 @@ export default {
529
570
  this.bindResizeListener();
530
571
  },
531
572
  onOverlayLeave() {
573
+ this.currentView = this.view;
532
574
  this.unbindOutsideClickListener();
533
575
  this.unbindScrollListener();
534
576
  this.unbindResizeListener();
@@ -557,9 +599,12 @@ export default {
557
599
  return;
558
600
  }
559
601
 
560
- if (this.view === 'month') {
602
+ if (this.currentView === 'month') {
561
603
  this.decrementYear();
562
604
  }
605
+ else if (this.currentView === 'year') {
606
+ this.decrementDecade();
607
+ }
563
608
  else {
564
609
  if (this.currentMonth === 0) {
565
610
  this.currentMonth = 11;
@@ -579,9 +624,12 @@ export default {
579
624
  return;
580
625
  }
581
626
 
582
- if (this.view === 'month') {
627
+ if (this.currentView === 'month') {
583
628
  this.incrementYear();
584
629
  }
630
+ else if (this.currentView === 'year') {
631
+ this.incrementDecade();
632
+ }
585
633
  else {
586
634
  if (this.currentMonth === 11) {
587
635
  this.currentMonth = 0;
@@ -597,9 +645,25 @@ export default {
597
645
  decrementYear() {
598
646
  this.currentYear--;
599
647
  },
648
+ decrementDecade() {
649
+ this.currentYear = this.currentYear - 10;
650
+ },
600
651
  incrementYear() {
601
652
  this.currentYear++;
602
653
  },
654
+ incrementDecade() {
655
+ this.currentYear = this.currentYear + 10;
656
+ },
657
+ switchToMonthView(event) {
658
+ this.currentView = 'month';
659
+ setTimeout(this.updateFocus, 0);
660
+ event.preventDefault();
661
+ },
662
+ switchToYearView(event) {
663
+ this.currentView = 'year';
664
+ setTimeout(this.updateFocus, 0);
665
+ event.preventDefault();
666
+ },
603
667
  isEnabled() {
604
668
  return !this.$attrs.disabled && !this.$attrs.readonly;
605
669
  },
@@ -1085,11 +1149,9 @@ export default {
1085
1149
  return hours;
1086
1150
  },
1087
1151
  validateTime(hour, minute, second, pm) {
1088
- let value = this.value;
1152
+ let value = this.isComparable() ? this.value : this.viewDate;
1089
1153
  const convertedHour = this.convertTo24Hour(hour, pm);
1090
- if (!this.isComparable()) {
1091
- return true;
1092
- }
1154
+
1093
1155
  if (this.isRangeSelection()) {
1094
1156
  value = this.value[1] || this.value[0];
1095
1157
  }
@@ -1122,9 +1184,9 @@ export default {
1122
1184
  return false;
1123
1185
  }
1124
1186
  if (this.maxDate.getMinutes() === minute) {
1125
- if (this.maxDate.getSeconds() < second) {
1126
- return false;
1127
- }
1187
+ if (this.maxDate.getSeconds() < second) {
1188
+ return false;
1189
+ }
1128
1190
  }
1129
1191
  }
1130
1192
  }
@@ -1255,14 +1317,35 @@ export default {
1255
1317
  clearInterval(this.timePickerTimer);
1256
1318
  }
1257
1319
  },
1258
- onMonthSelect(event, index) {
1259
- this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
1320
+ onMonthSelect(event, month) {
1321
+ if (this.view === 'month') {
1322
+ this.onDateSelect(event, {year: this.currentYear, month: month, day: 1, selectable: true});
1323
+ }
1324
+ else {
1325
+ this.currentMonth = month;
1326
+ this.currentView = 'date';
1327
+ this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
1328
+ }
1329
+
1330
+ setTimeout(this.updateFocus, 0);
1331
+ },
1332
+ onYearSelect(event, year) {
1333
+ if (this.view === 'year') {
1334
+ this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
1335
+ }
1336
+ else {
1337
+ this.currentYear = year;
1338
+ this.currentView = 'month';
1339
+ this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
1340
+ }
1341
+
1342
+ setTimeout(this.updateFocus, 0);
1260
1343
  },
1261
1344
  enableModality() {
1262
1345
  if (!this.mask) {
1263
1346
  this.mask = document.createElement('div');
1264
1347
  this.mask.style.zIndex = String(parseInt(this.$refs.overlay.style.zIndex, 10) - 1);
1265
- DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker');
1348
+ DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1266
1349
 
1267
1350
  this.maskClickListener = () => {
1268
1351
  this.overlayVisible = false;
@@ -1271,18 +1354,14 @@ export default {
1271
1354
 
1272
1355
  document.body.appendChild(this.mask);
1273
1356
  DomHandler.addClass(document.body, 'p-overflow-hidden');
1274
-
1275
- setTimeout(() => {
1276
- DomHandler.addClass(this.mask, 'p-component-overlay');
1277
- }, 1);
1278
1357
  }
1279
1358
  },
1280
1359
  disableModality() {
1281
1360
  if (this.mask) {
1282
1361
  this.overlayVisible = false;
1283
1362
 
1284
- DomHandler.addClass(this.mask, 'p-datepicker-mask-leave');
1285
- this.mask.addEventListener('transitionend', () => {
1363
+ DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1364
+ this.mask.addEventListener('animationend', () => {
1286
1365
  this.destroyMask();
1287
1366
  });
1288
1367
  }
@@ -1485,7 +1564,7 @@ export default {
1485
1564
  iValue++;
1486
1565
  };
1487
1566
 
1488
- if (this.view === 'month') {
1567
+ if (this.currentView === 'month') {
1489
1568
  day = 1;
1490
1569
  }
1491
1570
 
@@ -1680,7 +1759,8 @@ export default {
1680
1759
  }
1681
1760
 
1682
1761
  //enter
1683
- case 13: {
1762
+ case 13:
1763
+ case 32: {
1684
1764
  this.onDateSelect(event, date);
1685
1765
  event.preventDefault();
1686
1766
  break;
@@ -1714,7 +1794,7 @@ export default {
1714
1794
  }
1715
1795
  else {
1716
1796
  let prevMonthContainer = this.$refs.overlay.children[groupIndex - 1];
1717
- let cells = DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
1797
+ let cells = DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
1718
1798
  let focusCell = cells[cells.length - 1];
1719
1799
  focusCell.tabIndex = '0';
1720
1800
  focusCell.focus();
@@ -1727,7 +1807,7 @@ export default {
1727
1807
  }
1728
1808
  else {
1729
1809
  let nextMonthContainer = this.$refs.overlay.children[groupIndex + 1];
1730
- let focusCell = DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
1810
+ let focusCell = DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
1731
1811
  focusCell.tabIndex = '0';
1732
1812
  focusCell.focus();
1733
1813
  }
@@ -1760,6 +1840,10 @@ export default {
1760
1840
  prevCell.tabIndex = '0';
1761
1841
  prevCell.focus();
1762
1842
  }
1843
+ else {
1844
+ this.navigationState = {backward: true};
1845
+ this.navBackward(event);
1846
+ }
1763
1847
  event.preventDefault();
1764
1848
  break;
1765
1849
  }
@@ -1772,12 +1856,17 @@ export default {
1772
1856
  nextCell.tabIndex = '0';
1773
1857
  nextCell.focus();
1774
1858
  }
1859
+ else {
1860
+ this.navigationState = {backward: false};
1861
+ this.navForward(event);
1862
+ }
1775
1863
  event.preventDefault();
1776
1864
  break;
1777
1865
  }
1778
1866
 
1779
1867
  //enter
1780
- case 13: {
1868
+ case 13:
1869
+ case 32: {
1781
1870
  this.onMonthSelect(event, index);
1782
1871
  event.preventDefault();
1783
1872
  break;
@@ -1793,7 +1882,7 @@ export default {
1793
1882
  //tab
1794
1883
  case 9: {
1795
1884
  if (!this.inline) {
1796
- this.trapFocus(event);
1885
+ this.trapFocus(event);
1797
1886
  }
1798
1887
  break;
1799
1888
  }
@@ -1803,12 +1892,81 @@ export default {
1803
1892
  break;
1804
1893
  }
1805
1894
  },
1895
+ onYearCellKeydown(event, index) {
1896
+ const cell = event.currentTarget;
1897
+ switch (event.which) {
1898
+ //arrows
1899
+ case 38:
1900
+ case 40: {
1901
+ cell.tabIndex = '-1';
1902
+ var cells = cell.parentElement.children;
1903
+ var cellIndex = DomHandler.index(cell);
1904
+ let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
1905
+ if (nextCell) {
1906
+ nextCell.tabIndex = '0';
1907
+ nextCell.focus();
1908
+ }
1909
+ event.preventDefault();
1910
+ break;
1911
+ }
1912
+ //left arrow
1913
+ case 37: {
1914
+ cell.tabIndex = '-1';
1915
+ let prevCell = cell.previousElementSibling;
1916
+ if (prevCell) {
1917
+ prevCell.tabIndex = '0';
1918
+ prevCell.focus();
1919
+ }
1920
+ else {
1921
+ this.navigationState = {backward: true};
1922
+ this.navBackward(event);
1923
+ }
1924
+ event.preventDefault();
1925
+ break;
1926
+ }
1927
+ //right arrow
1928
+ case 39: {
1929
+ cell.tabIndex = '-1';
1930
+ let nextCell = cell.nextElementSibling;
1931
+ if (nextCell) {
1932
+ nextCell.tabIndex = '0';
1933
+ nextCell.focus();
1934
+ }
1935
+ else {
1936
+ this.navigationState = {backward: false};
1937
+ this.navForward(event);
1938
+ }
1939
+ event.preventDefault();
1940
+ break;
1941
+ }
1942
+ //enter
1943
+ case 13:
1944
+ case 32: {
1945
+ this.onMonthSelect(event, index);
1946
+ event.preventDefault();
1947
+ break;
1948
+ }
1949
+ //escape
1950
+ case 27: {
1951
+ this.overlayVisible = false;
1952
+ event.preventDefault();
1953
+ break;
1954
+ }
1955
+ //tab
1956
+ case 9: {
1957
+ this.trapFocus(event);
1958
+ break;
1959
+ }
1960
+ default:
1961
+ //no op
1962
+ break;
1963
+ }
1964
+ },
1806
1965
  updateFocus() {
1807
1966
  let cell;
1808
1967
  if (this.navigationState) {
1809
1968
  if (this.navigationState.button) {
1810
1969
  this.initFocusableCell();
1811
-
1812
1970
  if (this.navigationState.backward)
1813
1971
  DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-prev').focus();
1814
1972
  else
@@ -1816,13 +1974,31 @@ export default {
1816
1974
  }
1817
1975
  else {
1818
1976
  if (this.navigationState.backward) {
1819
- let cells = DomHandler.find(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
1820
- cell = cells[cells.length - 1];
1977
+ let cells;
1978
+ if (this.currentView === 'month') {
1979
+ cells = DomHandler.find(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
1980
+ }
1981
+ else if (this.currentView === 'year') {
1982
+ cells = DomHandler.find(this.$refs.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
1983
+ }
1984
+ else {
1985
+ cells = DomHandler.find(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
1986
+ }
1987
+ if (cells && cells.length > 0) {
1988
+ cell = cells[cells.length - 1];
1989
+ }
1821
1990
  }
1822
1991
  else {
1823
- cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
1992
+ if (this.currentView === 'month') {
1993
+ cell = DomHandler.findSingle(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
1994
+ }
1995
+ else if (this.currentView === 'year') {
1996
+ cell = DomHandler.findSingle(this.$refs.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
1997
+ }
1998
+ else {
1999
+ cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2000
+ }
1824
2001
  }
1825
-
1826
2002
  if (cell) {
1827
2003
  cell.tabIndex = '0';
1828
2004
  cell.focus();
@@ -1837,25 +2013,35 @@ export default {
1837
2013
  },
1838
2014
  initFocusableCell() {
1839
2015
  let cell;
1840
- if (this.view === 'month') {
2016
+ if (this.currentView === 'month') {
1841
2017
  let cells = DomHandler.find(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month');
1842
2018
  let selectedCell= DomHandler.findSingle(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
1843
2019
  cells.forEach(cell => cell.tabIndex = -1);
1844
2020
  cell = selectedCell || cells[0];
1845
2021
  }
2022
+ else if (this.currentView === 'year') {
2023
+ let cells = DomHandler.find(this.$refs.overlay, '.p-yearpicker .p-yearpicker-year');
2024
+ let selectedCell= DomHandler.findSingle(this.$refs.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
2025
+ cells.forEach(cell => cell.tabIndex = -1);
2026
+ cell = selectedCell || cells[0];
2027
+ }
1846
2028
  else {
1847
2029
  cell = DomHandler.findSingle(this.$refs.overlay, 'span.p-highlight');
1848
2030
  if (!cell) {
1849
- let todayCell = DomHandler.findSingle(this.$refs.overlay, 'td.p-datepicker-today span:not(.p-disabled)');
2031
+ let todayCell = DomHandler.findSingle(this.$refs.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink)');
1850
2032
  if (todayCell)
1851
2033
  cell = todayCell;
1852
2034
  else
1853
- cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
2035
+ cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
1854
2036
  }
1855
2037
  }
1856
2038
 
1857
2039
  if (cell) {
1858
2040
  cell.tabIndex = '0';
2041
+
2042
+ if (!this.navigationState || !this.navigationState.button) {
2043
+ cell.focus();
2044
+ }
1859
2045
  }
1860
2046
  },
1861
2047
  trapFocus(event) {
@@ -1885,7 +2071,7 @@ export default {
1885
2071
  }
1886
2072
  },
1887
2073
  onContainerButtonKeydown(event) {
1888
- switch (event.which) {
2074
+ switch (event.which) {
1889
2075
  //tab
1890
2076
  case 9:
1891
2077
  if (!this.inline) {
@@ -1902,7 +2088,7 @@ export default {
1902
2088
  default:
1903
2089
  //Noop
1904
2090
  break;
1905
- }
2091
+ }
1906
2092
  },
1907
2093
  onInput(val) {
1908
2094
  // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
@@ -1942,6 +2128,48 @@ export default {
1942
2128
  },
1943
2129
  getMonthName(index) {
1944
2130
  return this.$primevue.config.locale.monthNames[index];
2131
+ },
2132
+ createResponsiveStyle() {
2133
+ if (this.numberOfMonths > 1 && this.responsiveOptions) {
2134
+ if (!this.responsiveStyleElement) {
2135
+ this.responsiveStyleElement = document.createElement('style');
2136
+ this.responsiveStyleElement.type = 'text/css';
2137
+ document.body.appendChild(this.responsiveStyleElement);
2138
+ }
2139
+ let innerHTML = '';
2140
+ if (this.responsiveOptions) {
2141
+ let responsiveOptions = [...this.responsiveOptions]
2142
+ .filter(o => !!(o.breakpoint && o.numMonths))
2143
+ .sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
2144
+ for (let i = 0; i < responsiveOptions.length; i++) {
2145
+ let { breakpoint, numMonths } = responsiveOptions[i];
2146
+ let styles = `
2147
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
2148
+ display: inline-flex !important;
2149
+ }
2150
+ `;
2151
+ for (let j = numMonths; j < this.numberOfMonths; j++) {
2152
+ styles += `
2153
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
2154
+ display: none !important;
2155
+ }
2156
+ `
2157
+ }
2158
+ innerHTML += `
2159
+ @media screen and (max-width: ${breakpoint}) {
2160
+ ${styles}
2161
+ }
2162
+ `
2163
+ }
2164
+ }
2165
+ this.responsiveStyleElement.innerHTML = innerHTML;
2166
+ }
2167
+ },
2168
+ destroyResponsiveStyleElement() {
2169
+ if (this.responsiveStyleElement) {
2170
+ this.responsiveStyleElement.remove();
2171
+ this.responsiveStyleElement = null;
2172
+ }
1945
2173
  }
1946
2174
  },
1947
2175
  computed: {
@@ -1951,8 +2179,8 @@ export default {
1951
2179
  return {
1952
2180
  ...$vm.$listeners,
1953
2181
  input: val => {
1954
- this.onInput(val);
1955
- },
2182
+ this.onInput(val);
2183
+ },
1956
2184
  focus: event => {
1957
2185
  $vm.focus = true;
1958
2186
  if ($vm.showOnFocus && $vm.isEnabled()) {
@@ -2005,7 +2233,7 @@ export default {
2005
2233
  },
2006
2234
  containerClass() {
2007
2235
  return [
2008
- 'p-calendar p-component p-inputwrapper',
2236
+ 'p-calendar p-component p-inputwrapper', this.className,
2009
2237
  {
2010
2238
  'p-calendar-w-btn': this.showIcon,
2011
2239
  'p-calendar-timeonly': this.timeOnly,
@@ -2022,7 +2250,8 @@ export default {
2022
2250
  'p-disabled': this.$attrs.disabled,
2023
2251
  'p-datepicker-timeonly': this.timeOnly,
2024
2252
  'p-datepicker-multiple-month': this.numberOfMonths > 1,
2025
- 'p-datepicker-monthpicker': (this.view === 'month'),
2253
+ 'p-datepicker-monthpicker': (this.currentView === 'month'),
2254
+ 'p-datepicker-yearpicker': (this.currentView === 'year'),
2026
2255
  'p-datepicker-touch-ui': this.touchUI
2027
2256
  }
2028
2257
  ];
@@ -2149,6 +2378,14 @@ export default {
2149
2378
 
2150
2379
  return monthPickerValues;
2151
2380
  },
2381
+ yearPickerValues() {
2382
+ let yearPickerValues = [];
2383
+ let base = this.currentYear - (this.currentYear % 10);
2384
+ for (let i = 0; i < 10; i++) {
2385
+ yearPickerValues.push(base + i);
2386
+ }
2387
+ return yearPickerValues;
2388
+ },
2152
2389
  formattedCurrentHour() {
2153
2390
  return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
2154
2391
  },
@@ -2169,6 +2406,12 @@ export default {
2169
2406
  },
2170
2407
  monthNames() {
2171
2408
  return this.$primevue.config.locale.monthNames;
2409
+ },
2410
+ attributeSelector() {
2411
+ return UniqueComponentId();
2412
+ },
2413
+ switchViewButtonDisabled() {
2414
+ return this.numberOfMonths > 1 || this.$attrs.disabled;
2172
2415
  }
2173
2416
  },
2174
2417
  components: {
@@ -2185,6 +2428,7 @@ export default {
2185
2428
  .p-calendar {
2186
2429
  position: relative;
2187
2430
  display: inline-flex;
2431
+ max-width: 100%;
2188
2432
  }
2189
2433
 
2190
2434
  .p-calendar .p-inputtext {
@@ -2222,8 +2466,9 @@ export default {
2222
2466
  }
2223
2467
 
2224
2468
  .p-datepicker-inline {
2225
- display: inline-flex;
2469
+ display: inline-block;
2226
2470
  position: static;
2471
+ overflow-x: auto;
2227
2472
  }
2228
2473
 
2229
2474
  /* Header */
@@ -2252,6 +2497,10 @@ export default {
2252
2497
  display: flex;
2253
2498
  }
2254
2499
 
2500
+ .p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {
2501
+ flex: 1 1 auto;
2502
+ }
2503
+
2255
2504
  /* DatePicker Table */
2256
2505
  .p-datepicker table {
2257
2506
  width: 100%;
@@ -2279,6 +2528,17 @@ export default {
2279
2528
  position: relative;
2280
2529
  }
2281
2530
 
2531
+ /* Year Picker */
2532
+ .p-yearpicker-year {
2533
+ width: 50%;
2534
+ display: inline-flex;
2535
+ align-items: center;
2536
+ justify-content: center;
2537
+ cursor: pointer;
2538
+ overflow: hidden;
2539
+ position: relative;
2540
+ }
2541
+
2282
2542
  /* Button Bar */
2283
2543
  .p-datepicker-buttonbar {
2284
2544
  display: flex;
@@ -2318,12 +2578,4 @@ export default {
2318
2578
  transform: translate(-50%, -50%);
2319
2579
  }
2320
2580
 
2321
- .p-datepicker-mask {
2322
- background-color: transparent;
2323
- transition-property: background-color;
2324
- }
2325
-
2326
- .p-datepicker-mask.p-datepicker-mask-leave.p-component-overlay {
2327
- background-color: transparent;
2328
- }
2329
2581
  </style>