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.
- package/accordion/accordion.common.js +1 -1
- package/accordion/accordion.umd.js +1 -1
- package/accordiontab/accordiontab.common.js +1 -1
- package/accordiontab/accordiontab.umd.js +1 -1
- package/autocomplete/autocomplete.common.js +7 -2
- package/autocomplete/autocomplete.umd.js +7 -2
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +1 -1
- package/avatar/avatar.umd.js +1 -1
- package/avatargroup/avatargroup.common.js +1 -1
- package/avatargroup/avatargroup.umd.js +1 -1
- package/badge/badge.common.js +1 -1
- package/badge/badge.umd.js +1 -1
- package/blockui/blockui.common.js +1 -1
- package/blockui/blockui.umd.js +1 -1
- package/breadcrumb/BreadcrumbItem.vue +5 -2
- package/breadcrumb/breadcrumb.common.js +11 -8
- package/breadcrumb/breadcrumb.umd.js +11 -8
- package/breadcrumb/breadcrumb.umd.min.js +1 -1
- package/breadcrumb/breadcrumbitem.common.js +6 -3
- package/breadcrumb/breadcrumbitem.umd.js +6 -3
- package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
- package/button/button.common.js +1 -1
- package/button/button.umd.js +1 -1
- package/calendar/Calendar.d.ts +5 -0
- package/calendar/Calendar.vue +313 -54
- package/calendar/calendar.common.js +327 -36
- package/calendar/calendar.umd.js +327 -36
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +1 -1
- package/card/card.umd.js +1 -1
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.common.js +3 -3
- package/carousel/carousel.umd.js +3 -3
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +4 -4
- package/cascadeselect/cascadeselect.common.js +6 -2
- package/cascadeselect/cascadeselect.umd.js +6 -2
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +5 -1
- package/cascadeselect/cascadeselectsub.umd.js +5 -1
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/chart/Chart.vue +5 -2
- package/chart/chart.common.js +7 -4
- package/chart/chart.umd.js +7 -4
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/checkbox.common.js +5 -1
- package/checkbox/checkbox.umd.js +5 -1
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +1 -1
- package/chip/chip.umd.js +1 -1
- package/chips/chips.common.js +1 -1
- package/chips/chips.umd.js +1 -1
- package/colorpicker/colorpicker.common.js +1 -1
- package/colorpicker/colorpicker.umd.js +1 -1
- package/columngroup/columngroup.common.js +1 -1
- package/columngroup/columngroup.umd.js +1 -1
- package/common/Common.css +8 -4
- package/config/primevue.common.js +4 -0
- package/config/primevue.umd.js +4 -0
- package/config/primevue.umd.min.js +1 -1
- package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
- package/confirmationeventbus/confirmationeventbus.common.js +1777 -0
- package/confirmationeventbus/confirmationeventbus.umd.js +1787 -0
- package/confirmationeventbus/confirmationeventbus.umd.min.js +1 -0
- package/confirmationeventbus/demo.html +8 -0
- package/confirmationeventbus/index.d.ts +1 -0
- package/confirmationeventbus/index.js +2 -0
- package/confirmationservice/ConfirmationService.js +1 -1
- package/confirmationservice/confirmationservice.common.js +1609 -6
- package/confirmationservice/confirmationservice.umd.js +1609 -6
- package/confirmationservice/confirmationservice.umd.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +9 -3
- package/confirmdialog/confirmdialog.common.js +396 -17
- package/confirmdialog/confirmdialog.umd.js +396 -17
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +4 -1
- package/confirmpopup/ConfirmPopup.vue +9 -6
- package/confirmpopup/confirmpopup.common.js +508 -13
- package/confirmpopup/confirmpopup.umd.js +508 -13
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/ContextMenuSub.vue +8 -5
- package/contextmenu/contextmenu.common.js +11 -8
- package/contextmenu/contextmenu.umd.js +11 -8
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +7 -4
- package/contextmenu/contextmenusub.umd.js +7 -4
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/contextmenu/demo.html +4 -3
- package/datatable/BodyCell.vue +1 -0
- package/datatable/DataTable.d.ts +9 -9
- package/datatable/DataTable.vue +19 -15
- package/datatable/TableBody.vue +5 -1
- package/datatable/bodycell.common.js +10 -5
- package/datatable/bodycell.umd.js +10 -5
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/datatable.common.js +79 -48
- package/datatable/datatable.umd.js +79 -48
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/headercheckbox.common.js +1 -1
- package/datatable/headercheckbox.umd.js +1 -1
- package/datatable/rowcheckbox.common.js +1 -1
- package/datatable/rowcheckbox.umd.js +1 -1
- package/datatable/rowradiobutton.common.js +1 -1
- package/datatable/rowradiobutton.umd.js +1 -1
- package/datatable/scrollableview.common.js +2 -2
- package/datatable/scrollableview.umd.js +2 -2
- package/datatable/tablebody.common.js +20 -11
- package/datatable/tablebody.umd.js +20 -11
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +1 -1
- package/datatable/tablefooter.umd.js +1 -1
- package/datatable/tableheader.common.js +2 -2
- package/datatable/tableheader.umd.js +2 -2
- package/datatable/tableloadingbody.common.js +1 -1
- package/datatable/tableloadingbody.umd.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +8 -8
- package/dataview/dataview.common.js +50 -29
- package/dataview/dataview.umd.js +50 -29
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +1 -1
- package/deferredcontent/deferredcontent.common.js +1 -1
- package/deferredcontent/deferredcontent.umd.js +1 -1
- package/dialog/dialog.common.js +5 -1
- package/dialog/dialog.umd.js +5 -1
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +1 -1
- package/divider/divider.umd.js +1 -1
- package/dock/dock.common.js +2 -2
- package/dock/dock.umd.js +2 -2
- package/dock/docksub.common.js +1 -1
- package/dock/docksub.umd.js +1 -1
- package/dropdown/Dropdown.d.ts +3 -3
- package/dropdown/dropdown.common.js +5 -1
- package/dropdown/dropdown.umd.js +5 -1
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +1 -1
- package/editor/editor.umd.js +1 -1
- package/fieldset/fieldset.common.js +1 -1
- package/fieldset/fieldset.umd.js +1 -1
- package/fileupload/fileupload.common.js +23 -17
- package/fileupload/fileupload.umd.js +23 -17
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +343 -129
- package/fullcalendar/fullcalendar.umd.js +343 -129
- package/fullcalendar/fullcalendar.umd.min.js +4 -4
- package/galleria/galleria.common.js +8 -4
- package/galleria/galleria.umd.js +8 -4
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +3 -3
- package/galleria/galleriacontent.umd.js +3 -3
- package/galleria/galleriaitem.common.js +1 -1
- package/galleria/galleriaitem.umd.js +1 -1
- package/galleria/galleriathumbnails.common.js +1 -1
- package/galleria/galleriathumbnails.umd.js +1 -1
- package/imagepreview/imagepreview.common.js +1 -1
- package/imagepreview/imagepreview.umd.js +1 -1
- package/inlinemessage/inlinemessage.common.js +1 -1
- package/inlinemessage/inlinemessage.umd.js +1 -1
- package/inplace/inplace.common.js +2 -2
- package/inplace/inplace.umd.js +2 -2
- package/inputmask/inputmask.common.js +5 -1
- package/inputmask/inputmask.umd.js +5 -1
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +18 -3
- package/inputnumber/inputnumber.common.js +26 -6
- package/inputnumber/inputnumber.umd.js +26 -6
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +1 -1
- package/inputswitch/inputswitch.umd.js +1 -1
- package/inputtext/inputtext.common.js +5 -1
- package/inputtext/inputtext.umd.js +5 -1
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +1 -1
- package/knob/knob.umd.js +1 -1
- package/listbox/Listbox.d.ts +3 -3
- package/listbox/listbox.common.js +5 -1
- package/listbox/listbox.umd.js +5 -1
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/MegaMenu.vue +12 -9
- package/megamenu/megamenu.common.js +8 -5
- package/megamenu/megamenu.umd.js +8 -5
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/Menu.vue +7 -4
- package/menu/Menuitem.vue +5 -2
- package/menu/menu.common.js +16 -10
- package/menu/menu.umd.js +16 -10
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +6 -3
- package/menu/menuitem.umd.js +6 -3
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/MenubarSub.vue +8 -5
- package/menubar/menubar.common.js +11 -8
- package/menubar/menubar.umd.js +11 -8
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +7 -4
- package/menubar/menubarsub.umd.js +7 -4
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/Message.d.ts +1 -0
- package/message/Message.vue +5 -1
- package/message/message.common.js +7 -3
- package/message/message.umd.js +7 -3
- package/message/message.umd.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +3 -3
- package/multiselect/multiselect.common.js +5 -1
- package/multiselect/multiselect.umd.js +5 -1
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -0
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.common.js +10 -4
- package/orderlist/orderlist.umd.js +10 -4
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +6 -2
- package/organizationchart/organizationchart.umd.js +6 -2
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +1 -1
- package/organizationchart/organizationchartnode.umd.js +1 -1
- package/overlaypanel/overlaypanel.common.js +1 -1
- package/overlaypanel/overlaypanel.umd.js +1 -1
- package/package.json +5 -1
- package/paginator/Paginator.d.ts +2 -2
- package/paginator/Paginator.vue +4 -4
- package/paginator/currentpagereport.common.js +1 -1
- package/paginator/currentpagereport.umd.js +1 -1
- package/paginator/firstpagelink.common.js +1 -1
- package/paginator/firstpagelink.umd.js +1 -1
- package/paginator/jumptopagedropdown.common.js +6 -2
- package/paginator/jumptopagedropdown.umd.js +6 -2
- package/paginator/jumptopagedropdown.umd.min.js +1 -1
- package/paginator/jumptopageinput.common.js +31 -11
- package/paginator/jumptopageinput.umd.js +31 -11
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +1 -1
- package/paginator/lastpagelink.umd.js +1 -1
- package/paginator/nextpagelink.common.js +1 -1
- package/paginator/nextpagelink.umd.js +1 -1
- package/paginator/pagelinks.common.js +1 -1
- package/paginator/pagelinks.umd.js +1 -1
- package/paginator/paginator.common.js +44 -23
- package/paginator/paginator.umd.js +44 -23
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +1 -1
- package/paginator/prevpagelink.umd.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +6 -2
- package/paginator/rowsperpagedropdown.umd.js +6 -2
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/Panel.d.ts +1 -0
- package/panel/Panel.vue +1 -1
- package/panel/panel.common.js +2 -2
- package/panel/panel.umd.js +2 -2
- package/panelmenu/PanelMenu.vue +6 -3
- package/panelmenu/PanelMenuSub.vue +7 -4
- package/panelmenu/panelmenu.common.js +17 -11
- package/panelmenu/panelmenu.umd.js +17 -11
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +7 -4
- package/panelmenu/panelmenusub.umd.js +7 -4
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/password.common.js +6 -2
- package/password/password.umd.js +6 -2
- package/password/password.umd.min.js +1 -1
- package/picklist/PickList.d.ts +8 -0
- package/picklist/PickList.vue +13 -4
- package/picklist/picklist.common.js +17 -4
- package/picklist/picklist.umd.js +17 -4
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/ProgressBar.vue +18 -14
- package/progressbar/progressbar.common.js +7 -5
- package/progressbar/progressbar.umd.js +7 -5
- package/progressbar/progressbar.umd.min.js +1 -1
- package/progressspinner/progressspinner.common.js +1 -1
- package/progressspinner/progressspinner.umd.js +1 -1
- package/radiobutton/radiobutton.common.js +5 -1
- package/radiobutton/radiobutton.umd.js +5 -1
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.common.js +3 -3
- package/rating/rating.umd.js +3 -3
- package/rating/rating.umd.min.js +1 -1
- package/resources/primevue.css +8 -4
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +67 -23
- package/resources/themes/arya-green/theme.css +67 -23
- package/resources/themes/arya-orange/theme.css +67 -23
- package/resources/themes/arya-purple/theme.css +67 -23
- package/resources/themes/bootstrap4-dark-blue/theme.css +64 -27
- package/resources/themes/bootstrap4-dark-purple/theme.css +64 -27
- package/resources/themes/bootstrap4-light-blue/theme.css +64 -27
- package/resources/themes/bootstrap4-light-purple/theme.css +64 -27
- package/resources/themes/fluent-light/theme.css +71 -27
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5418 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5418 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5418 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5418 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +5418 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5418 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5418 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5418 -0
- package/resources/themes/luna-amber/theme.css +64 -27
- package/resources/themes/luna-blue/theme.css +64 -27
- package/resources/themes/luna-green/theme.css +64 -27
- package/resources/themes/luna-pink/theme.css +64 -27
- package/resources/themes/md-dark-deeppurple/theme.css +255 -55
- package/resources/themes/md-dark-indigo/theme.css +255 -55
- package/resources/themes/md-light-deeppurple/theme.css +255 -55
- package/resources/themes/md-light-indigo/theme.css +255 -55
- package/resources/themes/mdc-dark-deeppurple/theme.css +255 -55
- package/resources/themes/mdc-dark-indigo/theme.css +255 -55
- package/resources/themes/mdc-light-deeppurple/theme.css +255 -55
- package/resources/themes/mdc-light-indigo/theme.css +255 -55
- package/resources/themes/nova/theme.css +64 -27
- package/resources/themes/nova-accent/theme.css +64 -27
- package/resources/themes/nova-alt/theme.css +64 -27
- package/resources/themes/nova-vue/theme.css +64 -27
- package/resources/themes/rhea/theme.css +64 -27
- package/resources/themes/saga-blue/theme.css +67 -23
- package/resources/themes/saga-green/theme.css +67 -23
- package/resources/themes/saga-orange/theme.css +67 -23
- package/resources/themes/saga-purple/theme.css +67 -23
- package/resources/themes/tailwind-light/theme.css +78 -26
- package/resources/themes/vela-blue/theme.css +67 -23
- package/resources/themes/vela-green/theme.css +67 -23
- package/resources/themes/vela-orange/theme.css +67 -23
- package/resources/themes/vela-purple/theme.css +67 -23
- package/row/row.common.js +1 -1
- package/row/row.umd.js +1 -1
- package/scrollpanel/scrollpanel.common.js +1 -1
- package/scrollpanel/scrollpanel.umd.js +1 -1
- package/scrolltop/scrolltop.common.js +1 -1
- package/scrolltop/scrolltop.umd.js +1 -1
- package/selectbutton/SelectButton.d.ts +3 -3
- package/selectbutton/SelectButton.vue +6 -1
- package/selectbutton/selectbutton.common.js +12 -3
- package/selectbutton/selectbutton.umd.js +12 -3
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/sidebar.common.js +1 -1
- package/sidebar/sidebar.umd.js +1 -1
- package/skeleton/skeleton.common.js +1 -1
- package/skeleton/skeleton.umd.js +1 -1
- package/slider/slider.common.js +1 -1
- package/slider/slider.umd.js +1 -1
- package/speeddial/speeddial.common.js +6 -2
- package/speeddial/speeddial.umd.js +6 -2
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +21 -15
- package/splitbutton/splitbutton.umd.js +21 -15
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/steps/Steps.vue +5 -2
- package/steps/steps.common.js +6 -3
- package/steps/steps.umd.js +6 -3
- package/steps/steps.umd.min.js +1 -1
- package/tabmenu/TabMenu.vue +6 -3
- package/tabmenu/tabmenu.common.js +6 -3
- package/tabmenu/tabmenu.umd.js +6 -3
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +1 -1
- package/tabpanel/tabpanel.umd.js +1 -1
- package/tabview/tabview.common.js +5 -1
- package/tabview/tabview.umd.js +5 -1
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +1 -1
- package/tag/tag.umd.js +1 -1
- package/terminal/terminal.common.js +1 -1
- package/terminal/terminal.umd.js +1 -1
- package/textarea/textarea.common.js +5 -1
- package/textarea/textarea.umd.js +5 -1
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/TieredMenuSub.vue +7 -4
- package/tieredmenu/demo.html +4 -3
- package/tieredmenu/tieredmenu.common.js +11 -8
- package/tieredmenu/tieredmenu.umd.js +11 -8
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +7 -4
- package/tieredmenu/tieredmenusub.umd.js +7 -4
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +5 -1
- package/timeline/timeline.umd.js +5 -1
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/Toast.d.ts +4 -1
- package/toast/toast.common.js +2 -2
- package/toast/toast.umd.js +2 -2
- package/toast/toastmessage.common.js +1 -1
- package/toast/toastmessage.umd.js +1 -1
- package/togglebutton/togglebutton.common.js +1 -1
- package/togglebutton/togglebutton.umd.js +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.common.js +3 -3
- package/toolbar/toolbar.umd.js +3 -3
- package/toolbar/toolbar.umd.min.js +1 -1
- package/tooltip/tooltip.common.js +4 -0
- package/tooltip/tooltip.umd.js +4 -0
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/TreeNode.vue +5 -1
- package/tree/tree.common.js +18 -8
- package/tree/tree.umd.js +18 -8
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +11 -3
- package/tree/treenode.umd.js +11 -3
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +8 -8
- package/treetable/treetable.common.js +55 -31
- package/treetable/treetable.umd.js +55 -31
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +6 -1
- package/treetable/treetablerow.umd.js +6 -1
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +7 -1
- package/treetable/treetablerowloader.umd.js +7 -1
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +1 -1
- package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
- package/utils/EventBus.js +33 -0
- package/utils/eventbus.common.js +1774 -0
- package/utils/eventbus.umd.js +1784 -0
- package/utils/eventbus.umd.min.js +1 -0
- package/utils/filterutils.common.js +4 -0
- package/utils/filterutils.umd.js +4 -0
- package/utils/filterutils.umd.min.js +1 -1
- package/utils/objectutils.common.js +4 -0
- package/utils/objectutils.umd.js +4 -0
- package/utils/objectutils.umd.min.js +1 -1
- package/vetur-attributes.json +44 -16
- package/vetur-tags.json +9 -2
- package/web-types.json +153 -29
- package/confirmationservice/confirmationeventbus.common.js +0 -174
- package/confirmationservice/confirmationeventbus.umd.js +0 -184
- package/confirmationservice/confirmationeventbus.umd.min.js +0 -1
package/calendar/Calendar.vue
CHANGED
|
@@ -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-
|
|
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
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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-
|
|
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="
|
|
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="
|
|
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
|
-
|
|
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
|
-
|
|
306
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
1131
|
-
|
|
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,
|
|
1264
|
-
this.
|
|
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.
|
|
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
|
-
|
|
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
|
|
1821
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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;
|