primevue 2.6.0 → 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 (511) hide show
  1. package/accordion/accordion.common.js +1 -1
  2. package/accordion/accordion.umd.js +1 -1
  3. package/accordiontab/accordiontab.common.js +1 -1
  4. package/accordiontab/accordiontab.umd.js +1 -1
  5. package/autocomplete/autocomplete.common.js +7 -2
  6. package/autocomplete/autocomplete.umd.js +7 -2
  7. package/autocomplete/autocomplete.umd.min.js +1 -1
  8. package/avatar/avatar.common.js +1 -1
  9. package/avatar/avatar.umd.js +1 -1
  10. package/avatargroup/avatargroup.common.js +1 -1
  11. package/avatargroup/avatargroup.umd.js +1 -1
  12. package/badge/badge.common.js +1 -1
  13. package/badge/badge.umd.js +1 -1
  14. package/blockui/blockui.common.js +1 -1
  15. package/blockui/blockui.umd.js +1 -1
  16. package/breadcrumb/BreadcrumbItem.vue +5 -2
  17. package/breadcrumb/breadcrumb.common.js +11 -8
  18. package/breadcrumb/breadcrumb.umd.js +11 -8
  19. package/breadcrumb/breadcrumb.umd.min.js +1 -1
  20. package/breadcrumb/breadcrumbitem.common.js +6 -3
  21. package/breadcrumb/breadcrumbitem.umd.js +6 -3
  22. package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
  23. package/button/button.common.js +1 -1
  24. package/button/button.umd.js +1 -1
  25. package/calendar/Calendar.d.ts +5 -0
  26. package/calendar/Calendar.vue +313 -54
  27. package/calendar/calendar.common.js +327 -36
  28. package/calendar/calendar.umd.js +327 -36
  29. package/calendar/calendar.umd.min.js +1 -1
  30. package/card/card.common.js +1 -1
  31. package/card/card.umd.js +1 -1
  32. package/carousel/Carousel.vue +2 -2
  33. package/carousel/carousel.common.js +3 -3
  34. package/carousel/carousel.umd.js +3 -3
  35. package/carousel/carousel.umd.min.js +1 -1
  36. package/cascadeselect/CascadeSelect.d.ts +4 -4
  37. package/cascadeselect/cascadeselect.common.js +6 -2
  38. package/cascadeselect/cascadeselect.umd.js +6 -2
  39. package/cascadeselect/cascadeselect.umd.min.js +1 -1
  40. package/cascadeselect/cascadeselectsub.common.js +5 -1
  41. package/cascadeselect/cascadeselectsub.umd.js +5 -1
  42. package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
  43. package/chart/Chart.vue +5 -2
  44. package/chart/chart.common.js +7 -4
  45. package/chart/chart.umd.js +7 -4
  46. package/chart/chart.umd.min.js +1 -1
  47. package/checkbox/checkbox.common.js +5 -1
  48. package/checkbox/checkbox.umd.js +5 -1
  49. package/checkbox/checkbox.umd.min.js +1 -1
  50. package/chip/chip.common.js +1 -1
  51. package/chip/chip.umd.js +1 -1
  52. package/chips/chips.common.js +1 -1
  53. package/chips/chips.umd.js +1 -1
  54. package/colorpicker/colorpicker.common.js +1 -1
  55. package/colorpicker/colorpicker.umd.js +1 -1
  56. package/columngroup/columngroup.common.js +1 -1
  57. package/columngroup/columngroup.umd.js +1 -1
  58. package/common/Common.css +8 -4
  59. package/config/primevue.common.js +4 -0
  60. package/config/primevue.umd.js +4 -0
  61. package/config/primevue.umd.min.js +1 -1
  62. package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
  63. package/confirmationeventbus/confirmationeventbus.common.js +1777 -0
  64. package/confirmationeventbus/confirmationeventbus.umd.js +1787 -0
  65. package/confirmationeventbus/confirmationeventbus.umd.min.js +1 -0
  66. package/confirmationeventbus/demo.html +8 -0
  67. package/confirmationeventbus/index.d.ts +1 -0
  68. package/confirmationeventbus/index.js +2 -0
  69. package/confirmationservice/ConfirmationService.js +1 -1
  70. package/confirmationservice/confirmationservice.common.js +1609 -6
  71. package/confirmationservice/confirmationservice.umd.js +1609 -6
  72. package/confirmationservice/confirmationservice.umd.min.js +1 -1
  73. package/confirmdialog/ConfirmDialog.vue +9 -3
  74. package/confirmdialog/confirmdialog.common.js +396 -17
  75. package/confirmdialog/confirmdialog.umd.js +396 -17
  76. package/confirmdialog/confirmdialog.umd.min.js +1 -1
  77. package/confirmpopup/ConfirmPopup.d.ts +4 -1
  78. package/confirmpopup/ConfirmPopup.vue +9 -6
  79. package/confirmpopup/confirmpopup.common.js +508 -13
  80. package/confirmpopup/confirmpopup.umd.js +508 -13
  81. package/confirmpopup/confirmpopup.umd.min.js +1 -1
  82. package/contextmenu/ContextMenuSub.vue +8 -5
  83. package/contextmenu/contextmenu.common.js +11 -8
  84. package/contextmenu/contextmenu.umd.js +11 -8
  85. package/contextmenu/contextmenu.umd.min.js +1 -1
  86. package/contextmenu/contextmenusub.common.js +7 -4
  87. package/contextmenu/contextmenusub.umd.js +7 -4
  88. package/contextmenu/contextmenusub.umd.min.js +1 -1
  89. package/contextmenu/demo.html +4 -3
  90. package/datatable/BodyCell.vue +1 -0
  91. package/datatable/DataTable.d.ts +9 -9
  92. package/datatable/DataTable.vue +19 -15
  93. package/datatable/TableBody.vue +5 -1
  94. package/datatable/bodycell.common.js +10 -5
  95. package/datatable/bodycell.umd.js +10 -5
  96. package/datatable/bodycell.umd.min.js +1 -1
  97. package/datatable/datatable.common.js +79 -48
  98. package/datatable/datatable.umd.js +79 -48
  99. package/datatable/datatable.umd.min.js +1 -1
  100. package/datatable/headercheckbox.common.js +1 -1
  101. package/datatable/headercheckbox.umd.js +1 -1
  102. package/datatable/rowcheckbox.common.js +1 -1
  103. package/datatable/rowcheckbox.umd.js +1 -1
  104. package/datatable/rowradiobutton.common.js +1 -1
  105. package/datatable/rowradiobutton.umd.js +1 -1
  106. package/datatable/scrollableview.common.js +2 -2
  107. package/datatable/scrollableview.umd.js +2 -2
  108. package/datatable/tablebody.common.js +20 -11
  109. package/datatable/tablebody.umd.js +20 -11
  110. package/datatable/tablebody.umd.min.js +1 -1
  111. package/datatable/tablefooter.common.js +1 -1
  112. package/datatable/tablefooter.umd.js +1 -1
  113. package/datatable/tableheader.common.js +2 -2
  114. package/datatable/tableheader.umd.js +2 -2
  115. package/datatable/tableloadingbody.common.js +1 -1
  116. package/datatable/tableloadingbody.umd.js +1 -1
  117. package/dataview/DataView.d.ts +2 -2
  118. package/dataview/DataView.vue +8 -8
  119. package/dataview/dataview.common.js +50 -29
  120. package/dataview/dataview.umd.js +50 -29
  121. package/dataview/dataview.umd.min.js +1 -1
  122. package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +1 -1
  123. package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +1 -1
  124. package/deferredcontent/deferredcontent.common.js +1 -1
  125. package/deferredcontent/deferredcontent.umd.js +1 -1
  126. package/dialog/dialog.common.js +5 -1
  127. package/dialog/dialog.umd.js +5 -1
  128. package/dialog/dialog.umd.min.js +1 -1
  129. package/divider/divider.common.js +1 -1
  130. package/divider/divider.umd.js +1 -1
  131. package/dock/dock.common.js +2 -2
  132. package/dock/dock.umd.js +2 -2
  133. package/dock/docksub.common.js +1 -1
  134. package/dock/docksub.umd.js +1 -1
  135. package/dropdown/Dropdown.d.ts +3 -3
  136. package/dropdown/dropdown.common.js +5 -1
  137. package/dropdown/dropdown.umd.js +5 -1
  138. package/dropdown/dropdown.umd.min.js +1 -1
  139. package/editor/editor.common.js +1 -1
  140. package/editor/editor.umd.js +1 -1
  141. package/fieldset/fieldset.common.js +1 -1
  142. package/fieldset/fieldset.umd.js +1 -1
  143. package/fileupload/fileupload.common.js +23 -17
  144. package/fileupload/fileupload.umd.js +23 -17
  145. package/fileupload/fileupload.umd.min.js +1 -1
  146. package/fullcalendar/fullcalendar.common.js +343 -129
  147. package/fullcalendar/fullcalendar.umd.js +343 -129
  148. package/fullcalendar/fullcalendar.umd.min.js +4 -4
  149. package/galleria/galleria.common.js +8 -4
  150. package/galleria/galleria.umd.js +8 -4
  151. package/galleria/galleria.umd.min.js +1 -1
  152. package/galleria/galleriacontent.common.js +3 -3
  153. package/galleria/galleriacontent.umd.js +3 -3
  154. package/galleria/galleriaitem.common.js +1 -1
  155. package/galleria/galleriaitem.umd.js +1 -1
  156. package/galleria/galleriathumbnails.common.js +1 -1
  157. package/galleria/galleriathumbnails.umd.js +1 -1
  158. package/imagepreview/imagepreview.common.js +1 -1
  159. package/imagepreview/imagepreview.umd.js +1 -1
  160. package/inlinemessage/inlinemessage.common.js +1 -1
  161. package/inlinemessage/inlinemessage.umd.js +1 -1
  162. package/inplace/inplace.common.js +2 -2
  163. package/inplace/inplace.umd.js +2 -2
  164. package/inputmask/inputmask.common.js +5 -1
  165. package/inputmask/inputmask.umd.js +5 -1
  166. package/inputmask/inputmask.umd.min.js +1 -1
  167. package/inputnumber/InputNumber.vue +18 -3
  168. package/inputnumber/inputnumber.common.js +26 -6
  169. package/inputnumber/inputnumber.umd.js +26 -6
  170. package/inputnumber/inputnumber.umd.min.js +1 -1
  171. package/inputswitch/inputswitch.common.js +1 -1
  172. package/inputswitch/inputswitch.umd.js +1 -1
  173. package/inputtext/inputtext.common.js +5 -1
  174. package/inputtext/inputtext.umd.js +5 -1
  175. package/inputtext/inputtext.umd.min.js +1 -1
  176. package/knob/knob.common.js +1 -1
  177. package/knob/knob.umd.js +1 -1
  178. package/listbox/Listbox.d.ts +3 -3
  179. package/listbox/listbox.common.js +5 -1
  180. package/listbox/listbox.umd.js +5 -1
  181. package/listbox/listbox.umd.min.js +1 -1
  182. package/megamenu/MegaMenu.vue +12 -9
  183. package/megamenu/megamenu.common.js +8 -5
  184. package/megamenu/megamenu.umd.js +8 -5
  185. package/megamenu/megamenu.umd.min.js +1 -1
  186. package/menu/Menu.vue +7 -4
  187. package/menu/Menuitem.vue +5 -2
  188. package/menu/menu.common.js +16 -10
  189. package/menu/menu.umd.js +16 -10
  190. package/menu/menu.umd.min.js +1 -1
  191. package/menu/menuitem.common.js +6 -3
  192. package/menu/menuitem.umd.js +6 -3
  193. package/menu/menuitem.umd.min.js +1 -1
  194. package/menubar/MenubarSub.vue +8 -5
  195. package/menubar/menubar.common.js +11 -8
  196. package/menubar/menubar.umd.js +11 -8
  197. package/menubar/menubar.umd.min.js +1 -1
  198. package/menubar/menubarsub.common.js +7 -4
  199. package/menubar/menubarsub.umd.js +7 -4
  200. package/menubar/menubarsub.umd.min.js +1 -1
  201. package/message/Message.d.ts +1 -0
  202. package/message/Message.vue +5 -1
  203. package/message/message.common.js +7 -3
  204. package/message/message.umd.js +7 -3
  205. package/message/message.umd.min.js +1 -1
  206. package/multiselect/MultiSelect.d.ts +3 -3
  207. package/multiselect/multiselect.common.js +5 -1
  208. package/multiselect/multiselect.umd.js +5 -1
  209. package/multiselect/multiselect.umd.min.js +1 -1
  210. package/orderlist/OrderList.d.ts +2 -0
  211. package/orderlist/OrderList.vue +2 -0
  212. package/orderlist/orderlist.common.js +10 -4
  213. package/orderlist/orderlist.umd.js +10 -4
  214. package/orderlist/orderlist.umd.min.js +1 -1
  215. package/organizationchart/organizationchart.common.js +6 -2
  216. package/organizationchart/organizationchart.umd.js +6 -2
  217. package/organizationchart/organizationchart.umd.min.js +1 -1
  218. package/organizationchart/organizationchartnode.common.js +1 -1
  219. package/organizationchart/organizationchartnode.umd.js +1 -1
  220. package/overlaypanel/overlaypanel.common.js +1 -1
  221. package/overlaypanel/overlaypanel.umd.js +1 -1
  222. package/package.json +5 -1
  223. package/paginator/Paginator.d.ts +2 -2
  224. package/paginator/Paginator.vue +4 -4
  225. package/paginator/currentpagereport.common.js +1 -1
  226. package/paginator/currentpagereport.umd.js +1 -1
  227. package/paginator/firstpagelink.common.js +1 -1
  228. package/paginator/firstpagelink.umd.js +1 -1
  229. package/paginator/jumptopagedropdown.common.js +6 -2
  230. package/paginator/jumptopagedropdown.umd.js +6 -2
  231. package/paginator/jumptopagedropdown.umd.min.js +1 -1
  232. package/paginator/jumptopageinput.common.js +31 -11
  233. package/paginator/jumptopageinput.umd.js +31 -11
  234. package/paginator/jumptopageinput.umd.min.js +1 -1
  235. package/paginator/lastpagelink.common.js +1 -1
  236. package/paginator/lastpagelink.umd.js +1 -1
  237. package/paginator/nextpagelink.common.js +1 -1
  238. package/paginator/nextpagelink.umd.js +1 -1
  239. package/paginator/pagelinks.common.js +1 -1
  240. package/paginator/pagelinks.umd.js +1 -1
  241. package/paginator/paginator.common.js +44 -23
  242. package/paginator/paginator.umd.js +44 -23
  243. package/paginator/paginator.umd.min.js +1 -1
  244. package/paginator/prevpagelink.common.js +1 -1
  245. package/paginator/prevpagelink.umd.js +1 -1
  246. package/paginator/rowsperpagedropdown.common.js +6 -2
  247. package/paginator/rowsperpagedropdown.umd.js +6 -2
  248. package/paginator/rowsperpagedropdown.umd.min.js +1 -1
  249. package/panel/Panel.d.ts +1 -0
  250. package/panel/Panel.vue +1 -1
  251. package/panel/panel.common.js +2 -2
  252. package/panel/panel.umd.js +2 -2
  253. package/panelmenu/PanelMenu.vue +6 -3
  254. package/panelmenu/PanelMenuSub.vue +7 -4
  255. package/panelmenu/panelmenu.common.js +17 -11
  256. package/panelmenu/panelmenu.umd.js +17 -11
  257. package/panelmenu/panelmenu.umd.min.js +1 -1
  258. package/panelmenu/panelmenusub.common.js +7 -4
  259. package/panelmenu/panelmenusub.umd.js +7 -4
  260. package/panelmenu/panelmenusub.umd.min.js +1 -1
  261. package/password/password.common.js +6 -2
  262. package/password/password.umd.js +6 -2
  263. package/password/password.umd.min.js +1 -1
  264. package/picklist/PickList.d.ts +8 -0
  265. package/picklist/PickList.vue +13 -4
  266. package/picklist/picklist.common.js +17 -4
  267. package/picklist/picklist.umd.js +17 -4
  268. package/picklist/picklist.umd.min.js +1 -1
  269. package/progressbar/ProgressBar.vue +18 -14
  270. package/progressbar/progressbar.common.js +7 -5
  271. package/progressbar/progressbar.umd.js +7 -5
  272. package/progressbar/progressbar.umd.min.js +1 -1
  273. package/progressspinner/progressspinner.common.js +1 -1
  274. package/progressspinner/progressspinner.umd.js +1 -1
  275. package/radiobutton/radiobutton.common.js +5 -1
  276. package/radiobutton/radiobutton.umd.js +5 -1
  277. package/radiobutton/radiobutton.umd.min.js +1 -1
  278. package/rating/Rating.vue +1 -1
  279. package/rating/rating.common.js +3 -3
  280. package/rating/rating.umd.js +3 -3
  281. package/rating/rating.umd.min.js +1 -1
  282. package/resources/primevue.css +8 -4
  283. package/resources/primevue.min.css +1 -1
  284. package/resources/themes/arya-blue/theme.css +67 -23
  285. package/resources/themes/arya-green/theme.css +67 -23
  286. package/resources/themes/arya-orange/theme.css +67 -23
  287. package/resources/themes/arya-purple/theme.css +67 -23
  288. package/resources/themes/bootstrap4-dark-blue/theme.css +64 -27
  289. package/resources/themes/bootstrap4-dark-purple/theme.css +64 -27
  290. package/resources/themes/bootstrap4-light-blue/theme.css +64 -27
  291. package/resources/themes/bootstrap4-light-purple/theme.css +64 -27
  292. package/resources/themes/fluent-light/theme.css +71 -27
  293. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  294. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  295. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  296. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  297. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  298. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  299. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  300. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  301. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  302. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  303. package/resources/themes/lara-dark-blue/theme.css +5418 -0
  304. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  305. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  306. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  307. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  308. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  309. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  310. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  311. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  312. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  313. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  314. package/resources/themes/lara-dark-indigo/theme.css +5418 -0
  315. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  316. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  317. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  318. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  319. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  320. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  321. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  322. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  323. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  324. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  325. package/resources/themes/lara-dark-purple/theme.css +5418 -0
  326. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  327. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  328. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  329. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  330. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  331. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  332. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  333. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  334. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  335. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  336. package/resources/themes/lara-dark-teal/theme.css +5418 -0
  337. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  338. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  339. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  340. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  341. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  342. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  343. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  344. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  345. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  346. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  347. package/resources/themes/lara-light-blue/theme.css +5418 -0
  348. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  349. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  350. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  351. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  352. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  353. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  354. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  355. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  356. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  357. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  358. package/resources/themes/lara-light-indigo/theme.css +5418 -0
  359. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  360. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  361. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  362. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  363. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  364. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  365. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  366. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  367. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  368. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  369. package/resources/themes/lara-light-purple/theme.css +5418 -0
  370. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  371. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  372. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  373. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  374. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  375. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  376. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  377. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  378. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  379. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  380. package/resources/themes/lara-light-teal/theme.css +5418 -0
  381. package/resources/themes/luna-amber/theme.css +64 -27
  382. package/resources/themes/luna-blue/theme.css +64 -27
  383. package/resources/themes/luna-green/theme.css +64 -27
  384. package/resources/themes/luna-pink/theme.css +64 -27
  385. package/resources/themes/md-dark-deeppurple/theme.css +255 -55
  386. package/resources/themes/md-dark-indigo/theme.css +255 -55
  387. package/resources/themes/md-light-deeppurple/theme.css +255 -55
  388. package/resources/themes/md-light-indigo/theme.css +255 -55
  389. package/resources/themes/mdc-dark-deeppurple/theme.css +255 -55
  390. package/resources/themes/mdc-dark-indigo/theme.css +255 -55
  391. package/resources/themes/mdc-light-deeppurple/theme.css +255 -55
  392. package/resources/themes/mdc-light-indigo/theme.css +255 -55
  393. package/resources/themes/nova/theme.css +64 -27
  394. package/resources/themes/nova-accent/theme.css +64 -27
  395. package/resources/themes/nova-alt/theme.css +64 -27
  396. package/resources/themes/nova-vue/theme.css +64 -27
  397. package/resources/themes/rhea/theme.css +64 -27
  398. package/resources/themes/saga-blue/theme.css +67 -23
  399. package/resources/themes/saga-green/theme.css +67 -23
  400. package/resources/themes/saga-orange/theme.css +67 -23
  401. package/resources/themes/saga-purple/theme.css +67 -23
  402. package/resources/themes/tailwind-light/theme.css +78 -26
  403. package/resources/themes/vela-blue/theme.css +67 -23
  404. package/resources/themes/vela-green/theme.css +67 -23
  405. package/resources/themes/vela-orange/theme.css +67 -23
  406. package/resources/themes/vela-purple/theme.css +67 -23
  407. package/row/row.common.js +1 -1
  408. package/row/row.umd.js +1 -1
  409. package/scrollpanel/scrollpanel.common.js +1 -1
  410. package/scrollpanel/scrollpanel.umd.js +1 -1
  411. package/scrolltop/scrolltop.common.js +1 -1
  412. package/scrolltop/scrolltop.umd.js +1 -1
  413. package/selectbutton/SelectButton.d.ts +3 -3
  414. package/selectbutton/SelectButton.vue +6 -1
  415. package/selectbutton/selectbutton.common.js +12 -3
  416. package/selectbutton/selectbutton.umd.js +12 -3
  417. package/selectbutton/selectbutton.umd.min.js +1 -1
  418. package/sidebar/sidebar.common.js +1 -1
  419. package/sidebar/sidebar.umd.js +1 -1
  420. package/skeleton/skeleton.common.js +1 -1
  421. package/skeleton/skeleton.umd.js +1 -1
  422. package/slider/slider.common.js +1 -1
  423. package/slider/slider.umd.js +1 -1
  424. package/speeddial/speeddial.common.js +6 -2
  425. package/speeddial/speeddial.umd.js +6 -2
  426. package/speeddial/speeddial.umd.min.js +1 -1
  427. package/splitbutton/splitbutton.common.js +21 -15
  428. package/splitbutton/splitbutton.umd.js +21 -15
  429. package/splitbutton/splitbutton.umd.min.js +1 -1
  430. package/steps/Steps.vue +5 -2
  431. package/steps/steps.common.js +6 -3
  432. package/steps/steps.umd.js +6 -3
  433. package/steps/steps.umd.min.js +1 -1
  434. package/tabmenu/TabMenu.vue +6 -3
  435. package/tabmenu/tabmenu.common.js +6 -3
  436. package/tabmenu/tabmenu.umd.js +6 -3
  437. package/tabmenu/tabmenu.umd.min.js +1 -1
  438. package/tabpanel/tabpanel.common.js +1 -1
  439. package/tabpanel/tabpanel.umd.js +1 -1
  440. package/tabview/tabview.common.js +5 -1
  441. package/tabview/tabview.umd.js +5 -1
  442. package/tabview/tabview.umd.min.js +1 -1
  443. package/tag/tag.common.js +1 -1
  444. package/tag/tag.umd.js +1 -1
  445. package/terminal/terminal.common.js +1 -1
  446. package/terminal/terminal.umd.js +1 -1
  447. package/textarea/textarea.common.js +5 -1
  448. package/textarea/textarea.umd.js +5 -1
  449. package/textarea/textarea.umd.min.js +1 -1
  450. package/tieredmenu/TieredMenuSub.vue +7 -4
  451. package/tieredmenu/demo.html +4 -3
  452. package/tieredmenu/tieredmenu.common.js +11 -8
  453. package/tieredmenu/tieredmenu.umd.js +11 -8
  454. package/tieredmenu/tieredmenu.umd.min.js +1 -1
  455. package/tieredmenu/tieredmenusub.common.js +7 -4
  456. package/tieredmenu/tieredmenusub.umd.js +7 -4
  457. package/tieredmenu/tieredmenusub.umd.min.js +1 -1
  458. package/timeline/timeline.common.js +5 -1
  459. package/timeline/timeline.umd.js +5 -1
  460. package/timeline/timeline.umd.min.js +1 -1
  461. package/toast/Toast.d.ts +4 -1
  462. package/toast/toast.common.js +2 -2
  463. package/toast/toast.umd.js +2 -2
  464. package/toast/toastmessage.common.js +1 -1
  465. package/toast/toastmessage.umd.js +1 -1
  466. package/togglebutton/togglebutton.common.js +1 -1
  467. package/togglebutton/togglebutton.umd.js +1 -1
  468. package/toolbar/Toolbar.d.ts +1 -1
  469. package/toolbar/Toolbar.vue +2 -2
  470. package/toolbar/toolbar.common.js +3 -3
  471. package/toolbar/toolbar.umd.js +3 -3
  472. package/toolbar/toolbar.umd.min.js +1 -1
  473. package/tooltip/tooltip.common.js +4 -0
  474. package/tooltip/tooltip.umd.js +4 -0
  475. package/tooltip/tooltip.umd.min.js +1 -1
  476. package/tree/TreeNode.vue +5 -1
  477. package/tree/tree.common.js +18 -8
  478. package/tree/tree.umd.js +18 -8
  479. package/tree/tree.umd.min.js +1 -1
  480. package/tree/treenode.common.js +11 -3
  481. package/tree/treenode.umd.js +11 -3
  482. package/tree/treenode.umd.min.js +1 -1
  483. package/treetable/TreeTable.d.ts +2 -2
  484. package/treetable/TreeTable.vue +8 -8
  485. package/treetable/treetable.common.js +55 -31
  486. package/treetable/treetable.umd.js +55 -31
  487. package/treetable/treetable.umd.min.js +1 -1
  488. package/treetable/treetablerow.common.js +6 -1
  489. package/treetable/treetablerow.umd.js +6 -1
  490. package/treetable/treetablerow.umd.min.js +1 -1
  491. package/treetable/treetablerowloader.common.js +7 -1
  492. package/treetable/treetablerowloader.umd.js +7 -1
  493. package/treetable/treetablerowloader.umd.min.js +1 -1
  494. package/tristatecheckbox/tristatecheckbox.common.js +1 -1
  495. package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
  496. package/utils/EventBus.js +33 -0
  497. package/utils/eventbus.common.js +1774 -0
  498. package/utils/eventbus.umd.js +1784 -0
  499. package/utils/eventbus.umd.min.js +1 -0
  500. package/utils/filterutils.common.js +4 -0
  501. package/utils/filterutils.umd.js +4 -0
  502. package/utils/filterutils.umd.min.js +1 -1
  503. package/utils/objectutils.common.js +4 -0
  504. package/utils/objectutils.umd.js +4 -0
  505. package/utils/objectutils.umd.min.js +1 -1
  506. package/vetur-attributes.json +44 -16
  507. package/vetur-tags.json +9 -2
  508. package/web-types.json +153 -29
  509. package/confirmationservice/confirmationeventbus.common.js +0 -174
  510. package/confirmationservice/confirmationeventbus.umd.js +0 -184
  511. 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,8 +366,9 @@ 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: {
@@ -356,7 +379,15 @@ export default {
356
379
  if (this.$refs.overlay) {
357
380
  setTimeout(this.updateFocus, 0);
358
381
  }
359
- }
382
+ },
383
+ numberOfMonths() {
384
+ this.destroyResponsiveStyleElement();
385
+ this.createResponsiveStyle();
386
+ },
387
+ responsiveOptions() {
388
+ this.destroyResponsiveStyleElement();
389
+ this.createResponsiveStyle();
390
+ },
360
391
  },
361
392
  methods: {
362
393
  isComparable() {
@@ -397,6 +428,9 @@ export default {
397
428
  isMonthSelected(month) {
398
429
  return this.isComparable() ? (this.value.getMonth() === month && this.value.getFullYear() === this.currentYear) : false;
399
430
  },
431
+ isYearSelected(year) {
432
+ return this.isComparable() ? (this.value.getFullYear() === year) : false;
433
+ },
400
434
  isDateEquals(value, dateMeta) {
401
435
  if (value)
402
436
  return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
@@ -520,7 +554,9 @@ export default {
520
554
 
521
555
  return validMin && validMax && validDate && validDay;
522
556
  },
523
- onOverlayEnter() {
557
+ onOverlayEnter(el) {
558
+ el.setAttribute(this.attributeSelector, '');
559
+
524
560
  if (this.autoZIndex) {
525
561
  this.$refs.overlay.style.zIndex = String(this.baseZIndex + DomHandler.generateZIndex());
526
562
  }
@@ -534,6 +570,7 @@ export default {
534
570
  this.bindResizeListener();
535
571
  },
536
572
  onOverlayLeave() {
573
+ this.currentView = this.view;
537
574
  this.unbindOutsideClickListener();
538
575
  this.unbindScrollListener();
539
576
  this.unbindResizeListener();
@@ -562,9 +599,12 @@ export default {
562
599
  return;
563
600
  }
564
601
 
565
- if (this.view === 'month') {
602
+ if (this.currentView === 'month') {
566
603
  this.decrementYear();
567
604
  }
605
+ else if (this.currentView === 'year') {
606
+ this.decrementDecade();
607
+ }
568
608
  else {
569
609
  if (this.currentMonth === 0) {
570
610
  this.currentMonth = 11;
@@ -584,9 +624,12 @@ export default {
584
624
  return;
585
625
  }
586
626
 
587
- if (this.view === 'month') {
627
+ if (this.currentView === 'month') {
588
628
  this.incrementYear();
589
629
  }
630
+ else if (this.currentView === 'year') {
631
+ this.incrementDecade();
632
+ }
590
633
  else {
591
634
  if (this.currentMonth === 11) {
592
635
  this.currentMonth = 0;
@@ -602,9 +645,25 @@ export default {
602
645
  decrementYear() {
603
646
  this.currentYear--;
604
647
  },
648
+ decrementDecade() {
649
+ this.currentYear = this.currentYear - 10;
650
+ },
605
651
  incrementYear() {
606
652
  this.currentYear++;
607
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
+ },
608
667
  isEnabled() {
609
668
  return !this.$attrs.disabled && !this.$attrs.readonly;
610
669
  },
@@ -1090,11 +1149,9 @@ export default {
1090
1149
  return hours;
1091
1150
  },
1092
1151
  validateTime(hour, minute, second, pm) {
1093
- let value = this.value;
1152
+ let value = this.isComparable() ? this.value : this.viewDate;
1094
1153
  const convertedHour = this.convertTo24Hour(hour, pm);
1095
- if (!this.isComparable()) {
1096
- return true;
1097
- }
1154
+
1098
1155
  if (this.isRangeSelection()) {
1099
1156
  value = this.value[1] || this.value[0];
1100
1157
  }
@@ -1127,9 +1184,9 @@ export default {
1127
1184
  return false;
1128
1185
  }
1129
1186
  if (this.maxDate.getMinutes() === minute) {
1130
- if (this.maxDate.getSeconds() < second) {
1131
- return false;
1132
- }
1187
+ if (this.maxDate.getSeconds() < second) {
1188
+ return false;
1189
+ }
1133
1190
  }
1134
1191
  }
1135
1192
  }
@@ -1260,8 +1317,29 @@ export default {
1260
1317
  clearInterval(this.timePickerTimer);
1261
1318
  }
1262
1319
  },
1263
- onMonthSelect(event, index) {
1264
- 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);
1265
1343
  },
1266
1344
  enableModality() {
1267
1345
  if (!this.mask) {
@@ -1486,7 +1564,7 @@ export default {
1486
1564
  iValue++;
1487
1565
  };
1488
1566
 
1489
- if (this.view === 'month') {
1567
+ if (this.currentView === 'month') {
1490
1568
  day = 1;
1491
1569
  }
1492
1570
 
@@ -1681,7 +1759,8 @@ export default {
1681
1759
  }
1682
1760
 
1683
1761
  //enter
1684
- case 13: {
1762
+ case 13:
1763
+ case 32: {
1685
1764
  this.onDateSelect(event, date);
1686
1765
  event.preventDefault();
1687
1766
  break;
@@ -1715,7 +1794,7 @@ export default {
1715
1794
  }
1716
1795
  else {
1717
1796
  let prevMonthContainer = this.$refs.overlay.children[groupIndex - 1];
1718
- 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)');
1719
1798
  let focusCell = cells[cells.length - 1];
1720
1799
  focusCell.tabIndex = '0';
1721
1800
  focusCell.focus();
@@ -1728,7 +1807,7 @@ export default {
1728
1807
  }
1729
1808
  else {
1730
1809
  let nextMonthContainer = this.$refs.overlay.children[groupIndex + 1];
1731
- 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)');
1732
1811
  focusCell.tabIndex = '0';
1733
1812
  focusCell.focus();
1734
1813
  }
@@ -1761,6 +1840,10 @@ export default {
1761
1840
  prevCell.tabIndex = '0';
1762
1841
  prevCell.focus();
1763
1842
  }
1843
+ else {
1844
+ this.navigationState = {backward: true};
1845
+ this.navBackward(event);
1846
+ }
1764
1847
  event.preventDefault();
1765
1848
  break;
1766
1849
  }
@@ -1773,12 +1856,17 @@ export default {
1773
1856
  nextCell.tabIndex = '0';
1774
1857
  nextCell.focus();
1775
1858
  }
1859
+ else {
1860
+ this.navigationState = {backward: false};
1861
+ this.navForward(event);
1862
+ }
1776
1863
  event.preventDefault();
1777
1864
  break;
1778
1865
  }
1779
1866
 
1780
1867
  //enter
1781
- case 13: {
1868
+ case 13:
1869
+ case 32: {
1782
1870
  this.onMonthSelect(event, index);
1783
1871
  event.preventDefault();
1784
1872
  break;
@@ -1794,7 +1882,7 @@ export default {
1794
1882
  //tab
1795
1883
  case 9: {
1796
1884
  if (!this.inline) {
1797
- this.trapFocus(event);
1885
+ this.trapFocus(event);
1798
1886
  }
1799
1887
  break;
1800
1888
  }
@@ -1804,12 +1892,81 @@ export default {
1804
1892
  break;
1805
1893
  }
1806
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
+ },
1807
1965
  updateFocus() {
1808
1966
  let cell;
1809
1967
  if (this.navigationState) {
1810
1968
  if (this.navigationState.button) {
1811
1969
  this.initFocusableCell();
1812
-
1813
1970
  if (this.navigationState.backward)
1814
1971
  DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-prev').focus();
1815
1972
  else
@@ -1817,13 +1974,31 @@ export default {
1817
1974
  }
1818
1975
  else {
1819
1976
  if (this.navigationState.backward) {
1820
- let cells = DomHandler.find(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
1821
- 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
+ }
1822
1990
  }
1823
1991
  else {
1824
- 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
+ }
1825
2001
  }
1826
-
1827
2002
  if (cell) {
1828
2003
  cell.tabIndex = '0';
1829
2004
  cell.focus();
@@ -1838,25 +2013,35 @@ export default {
1838
2013
  },
1839
2014
  initFocusableCell() {
1840
2015
  let cell;
1841
- if (this.view === 'month') {
2016
+ if (this.currentView === 'month') {
1842
2017
  let cells = DomHandler.find(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month');
1843
2018
  let selectedCell= DomHandler.findSingle(this.$refs.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
1844
2019
  cells.forEach(cell => cell.tabIndex = -1);
1845
2020
  cell = selectedCell || cells[0];
1846
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
+ }
1847
2028
  else {
1848
2029
  cell = DomHandler.findSingle(this.$refs.overlay, 'span.p-highlight');
1849
2030
  if (!cell) {
1850
- 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)');
1851
2032
  if (todayCell)
1852
2033
  cell = todayCell;
1853
2034
  else
1854
- 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');
1855
2036
  }
1856
2037
  }
1857
2038
 
1858
2039
  if (cell) {
1859
2040
  cell.tabIndex = '0';
2041
+
2042
+ if (!this.navigationState || !this.navigationState.button) {
2043
+ cell.focus();
2044
+ }
1860
2045
  }
1861
2046
  },
1862
2047
  trapFocus(event) {
@@ -1886,7 +2071,7 @@ export default {
1886
2071
  }
1887
2072
  },
1888
2073
  onContainerButtonKeydown(event) {
1889
- switch (event.which) {
2074
+ switch (event.which) {
1890
2075
  //tab
1891
2076
  case 9:
1892
2077
  if (!this.inline) {
@@ -1903,7 +2088,7 @@ export default {
1903
2088
  default:
1904
2089
  //Noop
1905
2090
  break;
1906
- }
2091
+ }
1907
2092
  },
1908
2093
  onInput(val) {
1909
2094
  // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
@@ -1943,6 +2128,48 @@ export default {
1943
2128
  },
1944
2129
  getMonthName(index) {
1945
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
+ }
1946
2173
  }
1947
2174
  },
1948
2175
  computed: {
@@ -1952,8 +2179,8 @@ export default {
1952
2179
  return {
1953
2180
  ...$vm.$listeners,
1954
2181
  input: val => {
1955
- this.onInput(val);
1956
- },
2182
+ this.onInput(val);
2183
+ },
1957
2184
  focus: event => {
1958
2185
  $vm.focus = true;
1959
2186
  if ($vm.showOnFocus && $vm.isEnabled()) {
@@ -2006,7 +2233,7 @@ export default {
2006
2233
  },
2007
2234
  containerClass() {
2008
2235
  return [
2009
- 'p-calendar p-component p-inputwrapper',
2236
+ 'p-calendar p-component p-inputwrapper', this.className,
2010
2237
  {
2011
2238
  'p-calendar-w-btn': this.showIcon,
2012
2239
  'p-calendar-timeonly': this.timeOnly,
@@ -2023,7 +2250,8 @@ export default {
2023
2250
  'p-disabled': this.$attrs.disabled,
2024
2251
  'p-datepicker-timeonly': this.timeOnly,
2025
2252
  'p-datepicker-multiple-month': this.numberOfMonths > 1,
2026
- 'p-datepicker-monthpicker': (this.view === 'month'),
2253
+ 'p-datepicker-monthpicker': (this.currentView === 'month'),
2254
+ 'p-datepicker-yearpicker': (this.currentView === 'year'),
2027
2255
  'p-datepicker-touch-ui': this.touchUI
2028
2256
  }
2029
2257
  ];
@@ -2150,6 +2378,14 @@ export default {
2150
2378
 
2151
2379
  return monthPickerValues;
2152
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
+ },
2153
2389
  formattedCurrentHour() {
2154
2390
  return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
2155
2391
  },
@@ -2170,6 +2406,12 @@ export default {
2170
2406
  },
2171
2407
  monthNames() {
2172
2408
  return this.$primevue.config.locale.monthNames;
2409
+ },
2410
+ attributeSelector() {
2411
+ return UniqueComponentId();
2412
+ },
2413
+ switchViewButtonDisabled() {
2414
+ return this.numberOfMonths > 1 || this.$attrs.disabled;
2173
2415
  }
2174
2416
  },
2175
2417
  components: {
@@ -2186,6 +2428,7 @@ export default {
2186
2428
  .p-calendar {
2187
2429
  position: relative;
2188
2430
  display: inline-flex;
2431
+ max-width: 100%;
2189
2432
  }
2190
2433
 
2191
2434
  .p-calendar .p-inputtext {
@@ -2223,8 +2466,9 @@ export default {
2223
2466
  }
2224
2467
 
2225
2468
  .p-datepicker-inline {
2226
- display: inline-flex;
2469
+ display: inline-block;
2227
2470
  position: static;
2471
+ overflow-x: auto;
2228
2472
  }
2229
2473
 
2230
2474
  /* Header */
@@ -2253,6 +2497,10 @@ export default {
2253
2497
  display: flex;
2254
2498
  }
2255
2499
 
2500
+ .p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {
2501
+ flex: 1 1 auto;
2502
+ }
2503
+
2256
2504
  /* DatePicker Table */
2257
2505
  .p-datepicker table {
2258
2506
  width: 100%;
@@ -2280,6 +2528,17 @@ export default {
2280
2528
  position: relative;
2281
2529
  }
2282
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
+
2283
2542
  /* Button Bar */
2284
2543
  .p-datepicker-buttonbar {
2285
2544
  display: flex;