primevue 3.8.2 → 3.9.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/README.md +2 -2
- package/api/Api.d.ts +70 -36
- package/api/api.cjs.js +66 -32
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +66 -32
- package/api/api.esm.min.js +1 -1
- package/api/api.js +66 -32
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.vue +16 -9
- package/autocomplete/autocomplete.cjs.js +19 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +19 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +19 -11
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/BreadcrumbItem.vue +5 -2
- package/breadcrumb/breadcrumb.cjs.js +5 -2
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +5 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +5 -2
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/Calendar.d.ts +6 -0
- package/calendar/Calendar.vue +362 -67
- package/calendar/calendar.cjs.js +459 -168
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +461 -170
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +459 -168
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.cjs.js +6 -6
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +6 -6
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +6 -6
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +8 -4
- package/chart/Chart.vue +9 -2
- package/chart/chart.cjs.js +9 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +9 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +9 -2
- package/chart/chart.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +3 -0
- package/colorpicker/ColorPicker.vue +6 -1
- package/colorpicker/colorpicker.cjs.js +6 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +6 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +8 -2
- package/confirmdialog/confirmdialog.cjs.js +11 -4
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +11 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +11 -4
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +7 -0
- package/confirmpopup/ConfirmPopup.vue +7 -4
- package/confirmpopup/confirmpopup.cjs.js +13 -5
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +14 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +13 -5
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenuSub.vue +7 -4
- package/contextmenu/contextmenu.cjs.js +7 -4
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +7 -4
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +7 -4
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +132 -65
- package/core/core.min.js +14 -11
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +17 -6
- package/datatable/DataTable.d.ts +5 -4
- package/datatable/DataTable.vue +34 -21
- package/datatable/TableBody.vue +5 -1
- package/datatable/TableFooter.vue +15 -1
- package/datatable/TableHeader.vue +15 -1
- package/datatable/datatable.cjs.js +175 -106
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +175 -106
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +175 -106
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +8 -8
- package/dataview/dataview.cjs.js +12 -12
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +12 -12
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +12 -12
- package/dataview/dataview.min.js +1 -1
- package/dropdown/Dropdown.d.ts +10 -5
- package/inputnumber/InputNumber.vue +19 -3
- package/inputnumber/inputnumber.cjs.js +19 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +19 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +19 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtext/InputText.vue +1 -1
- package/inputtext/inputtext.cjs.js +2 -2
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +3 -3
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -2
- package/inputtext/inputtext.min.js +1 -1
- package/listbox/Listbox.d.ts +10 -5
- package/megamenu/MegaMenu.vue +10 -7
- package/megamenu/megamenu.cjs.js +10 -7
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +10 -7
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +10 -7
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.vue +6 -3
- package/menu/Menuitem.vue +5 -2
- package/menu/menu.cjs.js +11 -5
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +11 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +11 -5
- package/menu/menu.min.js +1 -1
- package/menubar/MenubarSub.vue +7 -4
- package/menubar/menubar.cjs.js +7 -4
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +7 -4
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +7 -4
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +1 -0
- package/message/Message.vue +6 -2
- package/message/message.cjs.js +6 -2
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +6 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +6 -2
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +10 -5
- package/orderlist/OrderList.d.ts +2 -0
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.cjs.js +3 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -1
- package/orderlist/orderlist.min.js +1 -1
- package/package.json +5 -1
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +4 -4
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +4 -4
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +4 -4
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +1 -0
- package/panel/Panel.vue +1 -1
- package/panelmenu/PanelMenu.vue +6 -3
- package/panelmenu/PanelMenuSub.vue +8 -5
- package/panelmenu/panelmenu.cjs.js +14 -8
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +14 -8
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +14 -8
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/PickList.d.ts +8 -2
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.cjs.js +13 -7
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +13 -7
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +13 -7
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.vue +13 -12
- package/progressbar/progressbar.cjs.js +13 -12
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +14 -13
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +13 -12
- package/progressbar/progressbar.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +1 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +1 -1
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +5 -0
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +56 -15
- package/resources/themes/arya-green/theme.css +56 -15
- package/resources/themes/arya-orange/theme.css +56 -15
- package/resources/themes/arya-purple/theme.css +56 -15
- package/resources/themes/bootstrap4-dark-blue/theme.css +53 -19
- package/resources/themes/bootstrap4-dark-purple/theme.css +53 -19
- package/resources/themes/bootstrap4-light-blue/theme.css +53 -19
- package/resources/themes/bootstrap4-light-purple/theme.css +53 -19
- package/resources/themes/fluent-light/theme.css +56 -15
- 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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -0
- package/resources/themes/luna-amber/theme.css +53 -19
- package/resources/themes/luna-blue/theme.css +53 -19
- package/resources/themes/luna-green/theme.css +53 -19
- package/resources/themes/luna-pink/theme.css +53 -19
- package/resources/themes/md-dark-deeppurple/theme.css +244 -47
- package/resources/themes/md-dark-indigo/theme.css +244 -47
- package/resources/themes/md-light-deeppurple/theme.css +244 -47
- package/resources/themes/md-light-indigo/theme.css +244 -47
- package/resources/themes/mdc-dark-deeppurple/theme.css +244 -47
- package/resources/themes/mdc-dark-indigo/theme.css +244 -47
- package/resources/themes/mdc-light-deeppurple/theme.css +244 -47
- package/resources/themes/mdc-light-indigo/theme.css +244 -47
- package/resources/themes/nova/theme.css +53 -19
- package/resources/themes/nova-accent/theme.css +53 -19
- package/resources/themes/nova-alt/theme.css +53 -19
- package/resources/themes/nova-vue/theme.css +53 -19
- package/resources/themes/rhea/theme.css +53 -19
- package/resources/themes/saga-blue/theme.css +56 -15
- package/resources/themes/saga-green/theme.css +56 -15
- package/resources/themes/saga-orange/theme.css +56 -15
- package/resources/themes/saga-purple/theme.css +56 -15
- package/resources/themes/tailwind-light/theme.css +67 -18
- package/resources/themes/vela-blue/theme.css +56 -15
- package/resources/themes/vela-green/theme.css +56 -15
- package/resources/themes/vela-orange/theme.css +56 -15
- package/resources/themes/vela-purple/theme.css +56 -15
- package/selectbutton/SelectButton.d.ts +8 -3
- package/selectbutton/SelectButton.vue +8 -2
- package/selectbutton/selectbutton.cjs.js +14 -9
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +14 -9
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +14 -9
- package/selectbutton/selectbutton.min.js +1 -1
- package/steps/Steps.vue +5 -2
- package/steps/steps.cjs.js +5 -2
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +5 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +5 -2
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.vue +6 -3
- package/tabmenu/tabmenu.cjs.js +6 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +6 -3
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +6 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/terminalservice/TerminalService.d.ts +9 -6
- package/tieredmenu/TieredMenuSub.vue +7 -4
- package/tieredmenu/tieredmenu.cjs.js +7 -4
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +7 -4
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tree/TreeNode.vue +4 -1
- package/tree/tree.cjs.js +4 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +4 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +4 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.vue +9 -0
- package/treeselect/treeselect.cjs.js +9 -0
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +9 -0
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +9 -0
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +8 -8
- package/treetable/treetable.cjs.js +12 -12
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +12 -12
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +12 -12
- package/treetable/treetable.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +3 -1
- package/web-types.json +143 -9
package/calendar/calendar.js
CHANGED
|
@@ -47,6 +47,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
47
47
|
type: Number,
|
|
48
48
|
default: 1
|
|
49
49
|
},
|
|
50
|
+
responsiveOptions: Array,
|
|
50
51
|
view: {
|
|
51
52
|
type: String,
|
|
52
53
|
default: 'date'
|
|
@@ -169,6 +170,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
169
170
|
style: null
|
|
170
171
|
},
|
|
171
172
|
navigationState: null,
|
|
173
|
+
timePickerChange: false,
|
|
172
174
|
scrollHandler: null,
|
|
173
175
|
outsideClickListener: null,
|
|
174
176
|
maskClickListener: null,
|
|
@@ -176,13 +178,22 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
176
178
|
overlay: null,
|
|
177
179
|
mask: null,
|
|
178
180
|
timePickerTimer: null,
|
|
179
|
-
isKeydown: false,
|
|
180
181
|
created() {
|
|
181
182
|
this.updateCurrentMetaData();
|
|
182
183
|
},
|
|
183
184
|
mounted() {
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
this.createResponsiveStyle();
|
|
186
|
+
|
|
187
|
+
if (this.inline) {
|
|
188
|
+
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
189
|
+
|
|
190
|
+
if (!this.$attrs.disabled) {
|
|
191
|
+
this.initFocusableCell();
|
|
192
|
+
|
|
193
|
+
if (this.numberOfMonths === 1) {
|
|
194
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
195
|
+
}
|
|
196
|
+
}
|
|
186
197
|
}
|
|
187
198
|
},
|
|
188
199
|
updated() {
|
|
@@ -203,8 +214,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
if (this.mask) {
|
|
206
|
-
|
|
217
|
+
this.destroyMask();
|
|
207
218
|
}
|
|
219
|
+
this.destroyResponsiveStyleElement();
|
|
208
220
|
|
|
209
221
|
this.unbindOutsideClickListener();
|
|
210
222
|
this.unbindResizeListener();
|
|
@@ -228,7 +240,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
228
240
|
currentSecond: null,
|
|
229
241
|
pm: null,
|
|
230
242
|
focused: false,
|
|
231
|
-
overlayVisible: false
|
|
243
|
+
overlayVisible: false,
|
|
244
|
+
currentView: this.view
|
|
232
245
|
}
|
|
233
246
|
},
|
|
234
247
|
watch: {
|
|
@@ -242,6 +255,14 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
242
255
|
if (this.overlay) {
|
|
243
256
|
setTimeout(this.updateFocus, 0);
|
|
244
257
|
}
|
|
258
|
+
},
|
|
259
|
+
numberOfMonths() {
|
|
260
|
+
this.destroyResponsiveStyleElement();
|
|
261
|
+
this.createResponsiveStyle();
|
|
262
|
+
},
|
|
263
|
+
responsiveOptions() {
|
|
264
|
+
this.destroyResponsiveStyleElement();
|
|
265
|
+
this.createResponsiveStyle();
|
|
245
266
|
}
|
|
246
267
|
},
|
|
247
268
|
methods: {
|
|
@@ -283,6 +304,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
283
304
|
isMonthSelected(month) {
|
|
284
305
|
return this.isComparable() ? (this.modelValue.getMonth() === month && this.modelValue.getFullYear() === this.currentYear) : false;
|
|
285
306
|
},
|
|
307
|
+
isYearSelected(year) {
|
|
308
|
+
return this.isComparable() ? (this.modelValue.getFullYear() === year) : false;
|
|
309
|
+
},
|
|
286
310
|
isDateEquals(value, dateMeta) {
|
|
287
311
|
if (value)
|
|
288
312
|
return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
|
|
@@ -407,12 +431,15 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
407
431
|
return validMin && validMax && validDate && validDay;
|
|
408
432
|
},
|
|
409
433
|
onOverlayEnter(el) {
|
|
434
|
+
el.setAttribute(this.attributeSelector, '');
|
|
435
|
+
|
|
410
436
|
if (this.autoZIndex) {
|
|
411
437
|
if (this.touchUI)
|
|
412
438
|
utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
|
|
413
439
|
else
|
|
414
440
|
utils.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
|
|
415
441
|
}
|
|
442
|
+
|
|
416
443
|
this.alignOverlay();
|
|
417
444
|
this.$emit('show');
|
|
418
445
|
},
|
|
@@ -427,6 +454,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
427
454
|
}
|
|
428
455
|
},
|
|
429
456
|
onOverlayLeave() {
|
|
457
|
+
this.currentView = this.view;
|
|
430
458
|
this.unbindOutsideClickListener();
|
|
431
459
|
this.unbindScrollListener();
|
|
432
460
|
this.unbindResizeListener();
|
|
@@ -457,9 +485,12 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
457
485
|
return;
|
|
458
486
|
}
|
|
459
487
|
|
|
460
|
-
if (this.
|
|
488
|
+
if (this.currentView === 'month') {
|
|
461
489
|
this.decrementYear();
|
|
462
490
|
}
|
|
491
|
+
else if (this.currentView === 'year') {
|
|
492
|
+
this.decrementDecade();
|
|
493
|
+
}
|
|
463
494
|
else {
|
|
464
495
|
if (this.currentMonth === 0) {
|
|
465
496
|
this.currentMonth = 11;
|
|
@@ -479,9 +510,12 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
479
510
|
return;
|
|
480
511
|
}
|
|
481
512
|
|
|
482
|
-
if (this.
|
|
513
|
+
if (this.currentView === 'month') {
|
|
483
514
|
this.incrementYear();
|
|
484
515
|
}
|
|
516
|
+
else if (this.currentView === 'year') {
|
|
517
|
+
this.incrementDecade();
|
|
518
|
+
}
|
|
485
519
|
else {
|
|
486
520
|
if (this.currentMonth === 11) {
|
|
487
521
|
this.currentMonth = 0;
|
|
@@ -497,9 +531,25 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
497
531
|
decrementYear() {
|
|
498
532
|
this.currentYear--;
|
|
499
533
|
},
|
|
534
|
+
decrementDecade() {
|
|
535
|
+
this.currentYear = this.currentYear - 10;
|
|
536
|
+
},
|
|
500
537
|
incrementYear() {
|
|
501
538
|
this.currentYear++;
|
|
502
539
|
},
|
|
540
|
+
incrementDecade() {
|
|
541
|
+
this.currentYear = this.currentYear + 10;
|
|
542
|
+
},
|
|
543
|
+
switchToMonthView(event) {
|
|
544
|
+
this.currentView = 'month';
|
|
545
|
+
setTimeout(this.updateFocus, 0);
|
|
546
|
+
event.preventDefault();
|
|
547
|
+
},
|
|
548
|
+
switchToYearView(event) {
|
|
549
|
+
this.currentView = 'year';
|
|
550
|
+
setTimeout(this.updateFocus, 0);
|
|
551
|
+
event.preventDefault();
|
|
552
|
+
},
|
|
503
553
|
isEnabled() {
|
|
504
554
|
return !this.$attrs.disabled && !this.$attrs.readonly;
|
|
505
555
|
},
|
|
@@ -584,7 +634,14 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
584
634
|
utils.DomHandler.relativePosition(this.overlay, this.$el);
|
|
585
635
|
}
|
|
586
636
|
else {
|
|
587
|
-
|
|
637
|
+
if (this.view === 'date') {
|
|
638
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.overlay) + 'px';
|
|
639
|
+
this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
643
|
+
}
|
|
644
|
+
|
|
588
645
|
utils.DomHandler.absolutePosition(this.overlay, this.$el);
|
|
589
646
|
}
|
|
590
647
|
}
|
|
@@ -985,12 +1042,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
985
1042
|
}
|
|
986
1043
|
return hours;
|
|
987
1044
|
},
|
|
988
|
-
|
|
989
|
-
let value = this.modelValue;
|
|
1045
|
+
validateTime(hour, minute, second, pm) {
|
|
1046
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
990
1047
|
const convertedHour = this.convertTo24Hour(hour, pm);
|
|
991
|
-
|
|
992
|
-
return true;
|
|
993
|
-
}
|
|
1048
|
+
|
|
994
1049
|
if (this.isRangeSelection()) {
|
|
995
1050
|
value = this.modelValue[1] || this.modelValue[0];
|
|
996
1051
|
}
|
|
@@ -1036,7 +1091,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1036
1091
|
let newHour = this.currentHour + this.stepHour;
|
|
1037
1092
|
let newPM = this.pm;
|
|
1038
1093
|
|
|
1039
|
-
|
|
1040
1094
|
if (this.hourFormat == '24')
|
|
1041
1095
|
newHour = (newHour >= 24) ? (newHour - 24) : newHour;
|
|
1042
1096
|
else if (this.hourFormat == '12') {
|
|
@@ -1047,7 +1101,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1047
1101
|
newHour = (newHour >= 13) ? (newHour - 12) : newHour;
|
|
1048
1102
|
}
|
|
1049
1103
|
|
|
1050
|
-
|
|
1051
1104
|
if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
|
|
1052
1105
|
this.currentHour = newHour;
|
|
1053
1106
|
this.pm = newPM;
|
|
@@ -1107,7 +1160,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1107
1160
|
event.preventDefault();
|
|
1108
1161
|
},
|
|
1109
1162
|
updateModelTime() {
|
|
1110
|
-
|
|
1163
|
+
this.timePickerChange = true;
|
|
1164
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1111
1165
|
|
|
1112
1166
|
if (this.isRangeSelection()) {
|
|
1113
1167
|
value = this.modelValue[1] || this.modelValue[0];
|
|
@@ -1143,6 +1197,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1143
1197
|
|
|
1144
1198
|
this.updateModel(value);
|
|
1145
1199
|
this.$emit('date-select', value);
|
|
1200
|
+
setTimeout(() => this.timePickerChange = false, 0);
|
|
1146
1201
|
},
|
|
1147
1202
|
toggleAMPM(event) {
|
|
1148
1203
|
this.pm = !this.pm;
|
|
@@ -1155,7 +1210,28 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1155
1210
|
}
|
|
1156
1211
|
},
|
|
1157
1212
|
onMonthSelect(event, index) {
|
|
1158
|
-
this.
|
|
1213
|
+
if (this.view === 'month') {
|
|
1214
|
+
this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
this.currentMonth = index;
|
|
1218
|
+
this.currentView = 'date';
|
|
1219
|
+
this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
setTimeout(this.updateFocus, 0);
|
|
1223
|
+
},
|
|
1224
|
+
onYearSelect(event, year) {
|
|
1225
|
+
if (this.view === 'year') {
|
|
1226
|
+
this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
|
|
1227
|
+
}
|
|
1228
|
+
else {
|
|
1229
|
+
this.currentYear = year;
|
|
1230
|
+
this.currentView = 'month';
|
|
1231
|
+
this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
setTimeout(this.updateFocus, 0);
|
|
1159
1235
|
},
|
|
1160
1236
|
enableModality() {
|
|
1161
1237
|
if (!this.mask) {
|
|
@@ -1210,6 +1286,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1210
1286
|
}
|
|
1211
1287
|
},
|
|
1212
1288
|
isValidSelection(value) {
|
|
1289
|
+
if (value == null) {
|
|
1290
|
+
return true;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1213
1293
|
let isValid = true;
|
|
1214
1294
|
if (this.isSingleSelection()) {
|
|
1215
1295
|
if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
|
|
@@ -1378,7 +1458,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1378
1458
|
iValue++;
|
|
1379
1459
|
};
|
|
1380
1460
|
|
|
1381
|
-
if (this.
|
|
1461
|
+
if (this.currentView === 'month') {
|
|
1382
1462
|
day = 1;
|
|
1383
1463
|
}
|
|
1384
1464
|
|
|
@@ -1573,7 +1653,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1573
1653
|
}
|
|
1574
1654
|
|
|
1575
1655
|
//enter
|
|
1576
|
-
|
|
1656
|
+
//space
|
|
1657
|
+
case 13:
|
|
1658
|
+
case 32: {
|
|
1577
1659
|
this.onDateSelect(event, date);
|
|
1578
1660
|
event.preventDefault();
|
|
1579
1661
|
break;
|
|
@@ -1603,7 +1685,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1603
1685
|
}
|
|
1604
1686
|
else {
|
|
1605
1687
|
let prevMonthContainer = this.overlay.children[groupIndex - 1];
|
|
1606
|
-
let cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1688
|
+
let cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1607
1689
|
let focusCell = cells[cells.length - 1];
|
|
1608
1690
|
focusCell.tabIndex = '0';
|
|
1609
1691
|
focusCell.focus();
|
|
@@ -1616,7 +1698,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1616
1698
|
}
|
|
1617
1699
|
else {
|
|
1618
1700
|
let nextMonthContainer = this.overlay.children[groupIndex + 1];
|
|
1619
|
-
let focusCell = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1701
|
+
let focusCell = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1620
1702
|
focusCell.tabIndex = '0';
|
|
1621
1703
|
focusCell.focus();
|
|
1622
1704
|
}
|
|
@@ -1649,6 +1731,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1649
1731
|
prevCell.tabIndex = '0';
|
|
1650
1732
|
prevCell.focus();
|
|
1651
1733
|
}
|
|
1734
|
+
else {
|
|
1735
|
+
this.navigationState = {backward: true};
|
|
1736
|
+
this.navBackward(event);
|
|
1737
|
+
}
|
|
1652
1738
|
event.preventDefault();
|
|
1653
1739
|
break;
|
|
1654
1740
|
}
|
|
@@ -1661,12 +1747,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1661
1747
|
nextCell.tabIndex = '0';
|
|
1662
1748
|
nextCell.focus();
|
|
1663
1749
|
}
|
|
1750
|
+
else {
|
|
1751
|
+
this.navigationState = {backward: false};
|
|
1752
|
+
this.navForward(event);
|
|
1753
|
+
}
|
|
1664
1754
|
event.preventDefault();
|
|
1665
1755
|
break;
|
|
1666
1756
|
}
|
|
1667
1757
|
|
|
1668
1758
|
//enter
|
|
1669
|
-
|
|
1759
|
+
//space
|
|
1760
|
+
case 13:
|
|
1761
|
+
case 32: {
|
|
1670
1762
|
this.onMonthSelect(event, index);
|
|
1671
1763
|
event.preventDefault();
|
|
1672
1764
|
break;
|
|
@@ -1686,8 +1778,83 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1686
1778
|
}
|
|
1687
1779
|
}
|
|
1688
1780
|
},
|
|
1781
|
+
onYearCellKeydown(event, index) {
|
|
1782
|
+
const cell = event.currentTarget;
|
|
1783
|
+
|
|
1784
|
+
switch (event.which) {
|
|
1785
|
+
//arrows
|
|
1786
|
+
case 38:
|
|
1787
|
+
case 40: {
|
|
1788
|
+
cell.tabIndex = '-1';
|
|
1789
|
+
var cells = cell.parentElement.children;
|
|
1790
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1791
|
+
let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
|
|
1792
|
+
if (nextCell) {
|
|
1793
|
+
nextCell.tabIndex = '0';
|
|
1794
|
+
nextCell.focus();
|
|
1795
|
+
}
|
|
1796
|
+
event.preventDefault();
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
//left arrow
|
|
1801
|
+
case 37: {
|
|
1802
|
+
cell.tabIndex = '-1';
|
|
1803
|
+
let prevCell = cell.previousElementSibling;
|
|
1804
|
+
if (prevCell) {
|
|
1805
|
+
prevCell.tabIndex = '0';
|
|
1806
|
+
prevCell.focus();
|
|
1807
|
+
}
|
|
1808
|
+
else {
|
|
1809
|
+
this.navigationState = {backward: true};
|
|
1810
|
+
this.navBackward(event);
|
|
1811
|
+
}
|
|
1812
|
+
event.preventDefault();
|
|
1813
|
+
break;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
//right arrow
|
|
1817
|
+
case 39: {
|
|
1818
|
+
cell.tabIndex = '-1';
|
|
1819
|
+
let nextCell = cell.nextElementSibling;
|
|
1820
|
+
if (nextCell) {
|
|
1821
|
+
nextCell.tabIndex = '0';
|
|
1822
|
+
nextCell.focus();
|
|
1823
|
+
}
|
|
1824
|
+
else {
|
|
1825
|
+
this.navigationState = {backward: false};
|
|
1826
|
+
this.navForward(event);
|
|
1827
|
+
}
|
|
1828
|
+
event.preventDefault();
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
//enter
|
|
1833
|
+
//space
|
|
1834
|
+
case 13:
|
|
1835
|
+
case 32: {
|
|
1836
|
+
this.onYearSelect(event, index);
|
|
1837
|
+
event.preventDefault();
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
//escape
|
|
1842
|
+
case 27: {
|
|
1843
|
+
this.overlayVisible = false;
|
|
1844
|
+
event.preventDefault();
|
|
1845
|
+
break;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
//tab
|
|
1849
|
+
case 9: {
|
|
1850
|
+
this.trapFocus(event);
|
|
1851
|
+
break;
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
},
|
|
1689
1855
|
updateFocus() {
|
|
1690
1856
|
let cell;
|
|
1857
|
+
|
|
1691
1858
|
if (this.navigationState) {
|
|
1692
1859
|
if (this.navigationState.button) {
|
|
1693
1860
|
this.initFocusableCell();
|
|
@@ -1699,11 +1866,32 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1699
1866
|
}
|
|
1700
1867
|
else {
|
|
1701
1868
|
if (this.navigationState.backward) {
|
|
1702
|
-
let cells
|
|
1703
|
-
|
|
1869
|
+
let cells;
|
|
1870
|
+
|
|
1871
|
+
if (this.currentView === 'month') {
|
|
1872
|
+
cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
1873
|
+
}
|
|
1874
|
+
else if (this.currentView === 'year') {
|
|
1875
|
+
cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
1876
|
+
}
|
|
1877
|
+
else {
|
|
1878
|
+
cells = utils.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
if (cells && cells.length > 0) {
|
|
1882
|
+
cell = cells[cells.length - 1];
|
|
1883
|
+
}
|
|
1704
1884
|
}
|
|
1705
1885
|
else {
|
|
1706
|
-
|
|
1886
|
+
if (this.currentView === 'month') {
|
|
1887
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
1888
|
+
}
|
|
1889
|
+
else if (this.currentView === 'year') {
|
|
1890
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
1891
|
+
}
|
|
1892
|
+
else {
|
|
1893
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1894
|
+
}
|
|
1707
1895
|
}
|
|
1708
1896
|
|
|
1709
1897
|
if (cell) {
|
|
@@ -1721,25 +1909,35 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1721
1909
|
initFocusableCell() {
|
|
1722
1910
|
let cell;
|
|
1723
1911
|
|
|
1724
|
-
if (this.
|
|
1912
|
+
if (this.currentView === 'month') {
|
|
1725
1913
|
let cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
|
|
1726
1914
|
let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
|
|
1727
1915
|
cells.forEach(cell => cell.tabIndex = -1);
|
|
1728
1916
|
cell = selectedCell || cells[0];
|
|
1729
1917
|
}
|
|
1918
|
+
else if (this.currentView === 'year') {
|
|
1919
|
+
let cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
|
|
1920
|
+
let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
|
|
1921
|
+
cells.forEach(cell => cell.tabIndex = -1);
|
|
1922
|
+
cell = selectedCell || cells[0];
|
|
1923
|
+
}
|
|
1730
1924
|
else {
|
|
1731
1925
|
cell = utils.DomHandler.findSingle(this.overlay, 'span.p-highlight');
|
|
1732
1926
|
if (!cell) {
|
|
1733
|
-
let todayCell = utils.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled)');
|
|
1927
|
+
let todayCell = utils.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
|
|
1734
1928
|
if (todayCell)
|
|
1735
1929
|
cell = todayCell;
|
|
1736
1930
|
else
|
|
1737
|
-
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1931
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
|
|
1738
1932
|
}
|
|
1739
1933
|
}
|
|
1740
1934
|
|
|
1741
1935
|
if (cell) {
|
|
1742
1936
|
cell.tabIndex = '0';
|
|
1937
|
+
|
|
1938
|
+
if ((!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
|
|
1939
|
+
cell.focus();
|
|
1940
|
+
}
|
|
1743
1941
|
}
|
|
1744
1942
|
},
|
|
1745
1943
|
trapFocus(event) {
|
|
@@ -1783,12 +1981,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1783
1981
|
}
|
|
1784
1982
|
},
|
|
1785
1983
|
onInput(event) {
|
|
1786
|
-
// IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
|
|
1787
|
-
if (!this.isKeydown) {
|
|
1788
|
-
return;
|
|
1789
|
-
}
|
|
1790
|
-
this.isKeydown = false;
|
|
1791
|
-
|
|
1792
1984
|
try {
|
|
1793
1985
|
this.selectionStart = this.$refs.input.$el.selectionStart;
|
|
1794
1986
|
this.selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
@@ -1799,9 +1991,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1799
1991
|
}
|
|
1800
1992
|
}
|
|
1801
1993
|
catch(err) {
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1994
|
+
if (this.keepInvalid) {
|
|
1995
|
+
this.updateModel(event.target.value);
|
|
1996
|
+
}
|
|
1805
1997
|
}
|
|
1806
1998
|
},
|
|
1807
1999
|
onFocus() {
|
|
@@ -1813,8 +2005,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1813
2005
|
onBlur() {
|
|
1814
2006
|
this.focused = false;
|
|
1815
2007
|
},
|
|
1816
|
-
onKeyDown(
|
|
1817
|
-
this.isKeydown = true;
|
|
2008
|
+
onKeyDown() {
|
|
1818
2009
|
if (event.keyCode === 40 && this.overlay) {
|
|
1819
2010
|
this.trapFocus(event);
|
|
1820
2011
|
}
|
|
@@ -1847,23 +2038,81 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1847
2038
|
target: this.$el
|
|
1848
2039
|
});
|
|
1849
2040
|
}
|
|
2041
|
+
},
|
|
2042
|
+
onOverlayMouseUp(event) {
|
|
2043
|
+
this.onOverlayClick(event);
|
|
2044
|
+
},
|
|
2045
|
+
createResponsiveStyle() {
|
|
2046
|
+
if (this.numberOfMonths > 1 && this.responsiveOptions) {
|
|
2047
|
+
if (!this.responsiveStyleElement) {
|
|
2048
|
+
this.responsiveStyleElement = document.createElement('style');
|
|
2049
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
2050
|
+
document.body.appendChild(this.responsiveStyleElement);
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
let innerHTML = '';
|
|
2054
|
+
if (this.responsiveOptions) {
|
|
2055
|
+
let responsiveOptions = [...this.responsiveOptions]
|
|
2056
|
+
.filter(o => !!(o.breakpoint && o.numMonths))
|
|
2057
|
+
.sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
|
|
2058
|
+
|
|
2059
|
+
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2060
|
+
let { breakpoint, numMonths } = responsiveOptions[i];
|
|
2061
|
+
let styles = `
|
|
2062
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
|
|
2063
|
+
display: inline-flex !important;
|
|
2064
|
+
}
|
|
2065
|
+
`;
|
|
2066
|
+
|
|
2067
|
+
for (let j = numMonths; j < this.numberOfMonths; j++) {
|
|
2068
|
+
styles += `
|
|
2069
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
|
|
2070
|
+
display: none !important;
|
|
2071
|
+
}
|
|
2072
|
+
`;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
innerHTML += `
|
|
2076
|
+
@media screen and (max-width: ${breakpoint}) {
|
|
2077
|
+
${styles}
|
|
2078
|
+
}
|
|
2079
|
+
`;
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
destroyResponsiveStyleElement() {
|
|
2087
|
+
if (this.responsiveStyleElement) {
|
|
2088
|
+
this.responsiveStyleElement.remove();
|
|
2089
|
+
this.responsiveStyleElement = null;
|
|
2090
|
+
}
|
|
1850
2091
|
}
|
|
1851
2092
|
},
|
|
1852
2093
|
computed: {
|
|
1853
2094
|
viewDate() {
|
|
1854
2095
|
let propValue = this.modelValue;
|
|
1855
|
-
if (typeof propValue === 'string') {
|
|
1856
|
-
return new Date();
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
2096
|
if (propValue && Array.isArray(propValue)) {
|
|
1860
2097
|
propValue = propValue[0];
|
|
1861
2098
|
}
|
|
1862
2099
|
|
|
1863
|
-
|
|
2100
|
+
if (propValue && typeof propValue !== 'string') {
|
|
2101
|
+
return propValue;
|
|
2102
|
+
}
|
|
2103
|
+
else {
|
|
2104
|
+
let today = new Date();
|
|
2105
|
+
if (this.maxDate && this.maxDate < today) {
|
|
2106
|
+
return this.maxDate;
|
|
2107
|
+
}
|
|
2108
|
+
if (this.minDate && this.minDate > today) {
|
|
2109
|
+
return this.minDate;
|
|
2110
|
+
}
|
|
2111
|
+
return today;
|
|
2112
|
+
}
|
|
1864
2113
|
},
|
|
1865
2114
|
inputFieldValue() {
|
|
1866
|
-
return this.
|
|
2115
|
+
return this.formatValue(this.modelValue);
|
|
1867
2116
|
},
|
|
1868
2117
|
containerClass() {
|
|
1869
2118
|
return [
|
|
@@ -1882,7 +2131,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1882
2131
|
'p-disabled': this.$attrs.disabled,
|
|
1883
2132
|
'p-datepicker-timeonly': this.timeOnly,
|
|
1884
2133
|
'p-datepicker-multiple-month': this.numberOfMonths > 1,
|
|
1885
|
-
'p-datepicker-monthpicker': (this.
|
|
2134
|
+
'p-datepicker-monthpicker': (this.currentView === 'month'),
|
|
2135
|
+
'p-datepicker-yearpicker': (this.currentView === 'year'),
|
|
1886
2136
|
'p-datepicker-touch-ui': this.touchUI,
|
|
1887
2137
|
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
1888
2138
|
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
@@ -2010,6 +2260,15 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2010
2260
|
|
|
2011
2261
|
return monthPickerValues;
|
|
2012
2262
|
},
|
|
2263
|
+
yearPickerValues() {
|
|
2264
|
+
let yearPickerValues = [];
|
|
2265
|
+
let base = this.currentYear - (this.currentYear % 10);
|
|
2266
|
+
for (let i = 0; i < 10; i++) {
|
|
2267
|
+
yearPickerValues.push(base + i);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
return yearPickerValues;
|
|
2271
|
+
},
|
|
2013
2272
|
formattedCurrentHour() {
|
|
2014
2273
|
return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
|
|
2015
2274
|
},
|
|
@@ -2036,6 +2295,12 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2036
2295
|
},
|
|
2037
2296
|
appendTarget() {
|
|
2038
2297
|
return this.appendDisabled ? null : this.appendTo;
|
|
2298
|
+
},
|
|
2299
|
+
attributeSelector() {
|
|
2300
|
+
return utils.UniqueComponentId();
|
|
2301
|
+
},
|
|
2302
|
+
switchViewButtonDisabled() {
|
|
2303
|
+
return this.numberOfMonths > 1 || this.$attrs.disabled;
|
|
2039
2304
|
}
|
|
2040
2305
|
},
|
|
2041
2306
|
components: {
|
|
@@ -2052,37 +2317,37 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2052
2317
|
const _hoisted_3 = /*#__PURE__*/vue.createVNode("span", { class: "p-datepicker-prev-icon pi pi-chevron-left" }, null, -1);
|
|
2053
2318
|
const _hoisted_4 = { class: "p-datepicker-title" };
|
|
2054
2319
|
const _hoisted_5 = {
|
|
2055
|
-
key: 0,
|
|
2056
|
-
class: "p-datepicker-month"
|
|
2057
|
-
};
|
|
2058
|
-
const _hoisted_6 = {
|
|
2059
2320
|
key: 2,
|
|
2060
|
-
class: "p-datepicker-
|
|
2321
|
+
class: "p-datepicker-decade"
|
|
2061
2322
|
};
|
|
2062
|
-
const
|
|
2063
|
-
const
|
|
2323
|
+
const _hoisted_6 = /*#__PURE__*/vue.createVNode("span", { class: "p-datepicker-next-icon pi pi-chevron-right" }, null, -1);
|
|
2324
|
+
const _hoisted_7 = {
|
|
2064
2325
|
key: 0,
|
|
2065
2326
|
class: "p-datepicker-calendar-container"
|
|
2066
2327
|
};
|
|
2067
|
-
const
|
|
2068
|
-
const
|
|
2328
|
+
const _hoisted_8 = { class: "p-datepicker-calendar" };
|
|
2329
|
+
const _hoisted_9 = {
|
|
2069
2330
|
key: 0,
|
|
2070
2331
|
scope: "col",
|
|
2071
2332
|
class: "p-datepicker-weekheader p-disabled"
|
|
2072
2333
|
};
|
|
2073
|
-
const
|
|
2334
|
+
const _hoisted_10 = {
|
|
2074
2335
|
key: 0,
|
|
2075
2336
|
class: "p-datepicker-weeknumber"
|
|
2076
2337
|
};
|
|
2077
|
-
const
|
|
2078
|
-
const
|
|
2338
|
+
const _hoisted_11 = { class: "p-disabled" };
|
|
2339
|
+
const _hoisted_12 = {
|
|
2079
2340
|
key: 0,
|
|
2080
2341
|
style: {"visibility":"hidden"}
|
|
2081
2342
|
};
|
|
2082
|
-
const
|
|
2343
|
+
const _hoisted_13 = {
|
|
2083
2344
|
key: 0,
|
|
2084
2345
|
class: "p-monthpicker"
|
|
2085
2346
|
};
|
|
2347
|
+
const _hoisted_14 = {
|
|
2348
|
+
key: 1,
|
|
2349
|
+
class: "p-yearpicker"
|
|
2350
|
+
};
|
|
2086
2351
|
const _hoisted_15 = {
|
|
2087
2352
|
key: 1,
|
|
2088
2353
|
class: "p-timepicker"
|
|
@@ -2164,7 +2429,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2164
2429
|
}, [
|
|
2165
2430
|
vue.createVNode(vue.Transition, {
|
|
2166
2431
|
name: "p-connected-overlay",
|
|
2167
|
-
onEnter: _cache[
|
|
2432
|
+
onEnter: _cache[61] || (_cache[61] = $event => ($options.onOverlayEnter($event))),
|
|
2168
2433
|
onAfterEnter: $options.onOverlayEnterComplete,
|
|
2169
2434
|
onAfterLeave: $options.onOverlayAfterLeave,
|
|
2170
2435
|
onLeave: $options.onOverlayLeave
|
|
@@ -2176,7 +2441,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2176
2441
|
ref: $options.overlayRef,
|
|
2177
2442
|
class: $options.panelStyleClass,
|
|
2178
2443
|
role: $props.inline ? null : 'dialog',
|
|
2179
|
-
onClick: _cache[
|
|
2444
|
+
onClick: _cache[59] || (_cache[59] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
|
|
2445
|
+
onMouseup: _cache[60] || (_cache[60] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
|
|
2180
2446
|
}, [
|
|
2181
2447
|
(!$props.timeOnly)
|
|
2182
2448
|
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -2188,80 +2454,65 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2188
2454
|
}, [
|
|
2189
2455
|
vue.createVNode("div", _hoisted_2, [
|
|
2190
2456
|
vue.renderSlot(_ctx.$slots, "header"),
|
|
2191
|
-
(
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
])
|
|
2204
|
-
: vue.createCommentVNode("", true),
|
|
2457
|
+
vue.withDirectives(vue.createVNode("button", {
|
|
2458
|
+
class: "p-datepicker-prev p-link",
|
|
2459
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
|
|
2460
|
+
type: "button",
|
|
2461
|
+
onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2462
|
+
disabled: _ctx.$attrs.disabled
|
|
2463
|
+
}, [
|
|
2464
|
+
_hoisted_3
|
|
2465
|
+
], 40, ["disabled"]), [
|
|
2466
|
+
[vue.vShow, groupIndex === 0],
|
|
2467
|
+
[_directive_ripple]
|
|
2468
|
+
]),
|
|
2205
2469
|
vue.createVNode("div", _hoisted_4, [
|
|
2206
|
-
(
|
|
2207
|
-
? (vue.openBlock(), vue.createBlock("
|
|
2470
|
+
($data.currentView === 'date')
|
|
2471
|
+
? (vue.openBlock(), vue.createBlock("button", {
|
|
2472
|
+
key: 0,
|
|
2473
|
+
type: "button",
|
|
2474
|
+
onClick: _cache[3] || (_cache[3] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
|
|
2475
|
+
class: "p-datepicker-month p-link",
|
|
2476
|
+
disabled: $options.switchViewButtonDisabled
|
|
2477
|
+
}, vue.toDisplayString($options.getMonthName(month.month)), 9, ["disabled"]))
|
|
2208
2478
|
: vue.createCommentVNode("", true),
|
|
2209
|
-
($
|
|
2210
|
-
? (vue.openBlock(), vue.createBlock("
|
|
2479
|
+
($data.currentView !== 'year')
|
|
2480
|
+
? (vue.openBlock(), vue.createBlock("button", {
|
|
2211
2481
|
key: 1,
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
value: index,
|
|
2218
|
-
key: monthName,
|
|
2219
|
-
selected: index === month.month
|
|
2220
|
-
}, vue.toDisplayString(monthName), 9, ["value", "selected"]))
|
|
2221
|
-
}), 128))
|
|
2222
|
-
], 32))
|
|
2223
|
-
: vue.createCommentVNode("", true),
|
|
2224
|
-
(!$props.yearNavigator)
|
|
2225
|
-
? (vue.openBlock(), vue.createBlock("span", _hoisted_6, vue.toDisplayString($props.view === 'month' ? $data.currentYear : month.year), 1))
|
|
2482
|
+
type: "button",
|
|
2483
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
|
|
2484
|
+
class: "p-datepicker-year p-link",
|
|
2485
|
+
disabled: $options.switchViewButtonDisabled
|
|
2486
|
+
}, vue.toDisplayString($data.currentYear), 9, ["disabled"]))
|
|
2226
2487
|
: vue.createCommentVNode("", true),
|
|
2227
|
-
($
|
|
2228
|
-
? (vue.openBlock(), vue.createBlock("
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.yearOptions, (year) => {
|
|
2234
|
-
return (vue.openBlock(), vue.createBlock("option", {
|
|
2235
|
-
value: year,
|
|
2236
|
-
key: year,
|
|
2237
|
-
selected: year === $data.currentYear
|
|
2238
|
-
}, vue.toDisplayString(year), 9, ["value", "selected"]))
|
|
2239
|
-
}), 128))
|
|
2240
|
-
], 32))
|
|
2488
|
+
($data.currentView === 'year')
|
|
2489
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_5, [
|
|
2490
|
+
vue.renderSlot(_ctx.$slots, "decade", { years: $options.yearPickerValues }, () => [
|
|
2491
|
+
vue.createTextVNode(vue.toDisplayString($options.yearPickerValues[0]) + " - " + vue.toDisplayString($options.yearPickerValues[$options.yearPickerValues.length - 1]), 1)
|
|
2492
|
+
])
|
|
2493
|
+
]))
|
|
2241
2494
|
: vue.createCommentVNode("", true)
|
|
2242
2495
|
]),
|
|
2243
|
-
(
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
])
|
|
2256
|
-
: vue.createCommentVNode("", true)
|
|
2496
|
+
vue.withDirectives(vue.createVNode("button", {
|
|
2497
|
+
class: "p-datepicker-next p-link",
|
|
2498
|
+
onClick: _cache[5] || (_cache[5] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
|
|
2499
|
+
type: "button",
|
|
2500
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2501
|
+
disabled: _ctx.$attrs.disabled
|
|
2502
|
+
}, [
|
|
2503
|
+
_hoisted_6
|
|
2504
|
+
], 40, ["disabled"]), [
|
|
2505
|
+
[vue.vShow, $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1)],
|
|
2506
|
+
[_directive_ripple]
|
|
2507
|
+
])
|
|
2257
2508
|
]),
|
|
2258
|
-
($
|
|
2259
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
2260
|
-
vue.createVNode("table",
|
|
2509
|
+
($data.currentView ==='date')
|
|
2510
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_7, [
|
|
2511
|
+
vue.createVNode("table", _hoisted_8, [
|
|
2261
2512
|
vue.createVNode("thead", null, [
|
|
2262
2513
|
vue.createVNode("tr", null, [
|
|
2263
2514
|
($props.showWeek)
|
|
2264
|
-
? (vue.openBlock(), vue.createBlock("th",
|
|
2515
|
+
? (vue.openBlock(), vue.createBlock("th", _hoisted_9, [
|
|
2265
2516
|
vue.createVNode("span", null, vue.toDisplayString($options.weekHeaderLabel), 1)
|
|
2266
2517
|
]))
|
|
2267
2518
|
: vue.createCommentVNode("", true),
|
|
@@ -2281,10 +2532,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2281
2532
|
key: week[0].day + '' + week[0].month
|
|
2282
2533
|
}, [
|
|
2283
2534
|
($props.showWeek)
|
|
2284
|
-
? (vue.openBlock(), vue.createBlock("td",
|
|
2285
|
-
vue.createVNode("span",
|
|
2535
|
+
? (vue.openBlock(), vue.createBlock("td", _hoisted_10, [
|
|
2536
|
+
vue.createVNode("span", _hoisted_11, [
|
|
2286
2537
|
(month.weekNumbers[i] < 10)
|
|
2287
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
2538
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_12, "0"))
|
|
2288
2539
|
: vue.createCommentVNode("", true),
|
|
2289
2540
|
vue.createTextVNode(" " + vue.toDisplayString(month.weekNumbers[i]), 1)
|
|
2290
2541
|
])
|
|
@@ -2318,8 +2569,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2318
2569
|
]))
|
|
2319
2570
|
}), 128))
|
|
2320
2571
|
]),
|
|
2321
|
-
($
|
|
2322
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
2572
|
+
($data.currentView === 'month')
|
|
2573
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_13, [
|
|
2323
2574
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.monthPickerValues, (m, i) => {
|
|
2324
2575
|
return vue.withDirectives((vue.openBlock(), vue.createBlock("span", {
|
|
2325
2576
|
key: m,
|
|
@@ -2333,6 +2584,22 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2333
2584
|
])
|
|
2334
2585
|
}), 128))
|
|
2335
2586
|
]))
|
|
2587
|
+
: vue.createCommentVNode("", true),
|
|
2588
|
+
($data.currentView === 'year')
|
|
2589
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_14, [
|
|
2590
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.yearPickerValues, (y) => {
|
|
2591
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock("span", {
|
|
2592
|
+
key: y,
|
|
2593
|
+
onClick: $event => ($options.onYearSelect($event, y)),
|
|
2594
|
+
onKeydown: $event => ($options.onYearCellKeydown($event,y)),
|
|
2595
|
+
class: ["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}]
|
|
2596
|
+
}, [
|
|
2597
|
+
vue.createTextVNode(vue.toDisplayString(y), 1)
|
|
2598
|
+
], 42, ["onClick", "onKeydown"])), [
|
|
2599
|
+
[_directive_ripple]
|
|
2600
|
+
])
|
|
2601
|
+
}), 128))
|
|
2602
|
+
]))
|
|
2336
2603
|
: vue.createCommentVNode("", true)
|
|
2337
2604
|
], 64))
|
|
2338
2605
|
: vue.createCommentVNode("", true),
|
|
@@ -2345,10 +2612,14 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2345
2612
|
onMouseup: _cache[8] || (_cache[8] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2346
2613
|
onKeydown: [
|
|
2347
2614
|
_cache[9] || (_cache[9] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2348
|
-
_cache[11] || (_cache[11] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"]))
|
|
2615
|
+
_cache[11] || (_cache[11] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
|
|
2616
|
+
_cache[12] || (_cache[12] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
|
|
2349
2617
|
],
|
|
2350
2618
|
onMouseleave: _cache[10] || (_cache[10] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2351
|
-
onKeyup:
|
|
2619
|
+
onKeyup: [
|
|
2620
|
+
_cache[13] || (_cache[13] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2621
|
+
_cache[14] || (_cache[14] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2622
|
+
],
|
|
2352
2623
|
type: "button"
|
|
2353
2624
|
}, [
|
|
2354
2625
|
_hoisted_17
|
|
@@ -2358,14 +2629,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2358
2629
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentHour), 1),
|
|
2359
2630
|
vue.withDirectives(vue.createVNode("button", {
|
|
2360
2631
|
class: "p-link",
|
|
2361
|
-
onMousedown: _cache[
|
|
2362
|
-
onMouseup: _cache[
|
|
2632
|
+
onMousedown: _cache[15] || (_cache[15] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
|
|
2633
|
+
onMouseup: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2363
2634
|
onKeydown: [
|
|
2364
|
-
_cache[
|
|
2365
|
-
_cache[
|
|
2635
|
+
_cache[17] || (_cache[17] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2636
|
+
_cache[19] || (_cache[19] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
|
|
2637
|
+
_cache[20] || (_cache[20] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
|
|
2638
|
+
],
|
|
2639
|
+
onMouseleave: _cache[18] || (_cache[18] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2640
|
+
onKeyup: [
|
|
2641
|
+
_cache[21] || (_cache[21] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2642
|
+
_cache[22] || (_cache[22] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2366
2643
|
],
|
|
2367
|
-
onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2368
|
-
onKeyup: _cache[18] || (_cache[18] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2369
2644
|
type: "button"
|
|
2370
2645
|
}, [
|
|
2371
2646
|
_hoisted_18
|
|
@@ -2379,15 +2654,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2379
2654
|
vue.createVNode("div", _hoisted_20, [
|
|
2380
2655
|
vue.withDirectives(vue.createVNode("button", {
|
|
2381
2656
|
class: "p-link",
|
|
2382
|
-
onMousedown: _cache[
|
|
2383
|
-
onMouseup: _cache[
|
|
2657
|
+
onMousedown: _cache[23] || (_cache[23] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
|
|
2658
|
+
onMouseup: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2384
2659
|
onKeydown: [
|
|
2385
|
-
_cache[
|
|
2386
|
-
_cache[
|
|
2660
|
+
_cache[25] || (_cache[25] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2661
|
+
_cache[27] || (_cache[27] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
|
|
2662
|
+
_cache[28] || (_cache[28] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
|
|
2387
2663
|
],
|
|
2388
2664
|
disabled: _ctx.$attrs.disabled,
|
|
2389
|
-
onMouseleave: _cache[
|
|
2390
|
-
onKeyup:
|
|
2665
|
+
onMouseleave: _cache[26] || (_cache[26] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2666
|
+
onKeyup: [
|
|
2667
|
+
_cache[29] || (_cache[29] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2668
|
+
_cache[30] || (_cache[30] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2669
|
+
],
|
|
2391
2670
|
type: "button"
|
|
2392
2671
|
}, [
|
|
2393
2672
|
_hoisted_21
|
|
@@ -2397,15 +2676,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2397
2676
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentMinute), 1),
|
|
2398
2677
|
vue.withDirectives(vue.createVNode("button", {
|
|
2399
2678
|
class: "p-link",
|
|
2400
|
-
onMousedown: _cache[
|
|
2401
|
-
onMouseup: _cache[
|
|
2679
|
+
onMousedown: _cache[31] || (_cache[31] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
|
|
2680
|
+
onMouseup: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2402
2681
|
onKeydown: [
|
|
2403
|
-
_cache[
|
|
2404
|
-
_cache[
|
|
2682
|
+
_cache[33] || (_cache[33] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2683
|
+
_cache[35] || (_cache[35] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
|
|
2684
|
+
_cache[36] || (_cache[36] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
|
|
2405
2685
|
],
|
|
2406
2686
|
disabled: _ctx.$attrs.disabled,
|
|
2407
|
-
onMouseleave: _cache[
|
|
2408
|
-
onKeyup:
|
|
2687
|
+
onMouseleave: _cache[34] || (_cache[34] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2688
|
+
onKeyup: [
|
|
2689
|
+
_cache[37] || (_cache[37] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2690
|
+
_cache[38] || (_cache[38] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2691
|
+
],
|
|
2409
2692
|
type: "button"
|
|
2410
2693
|
}, [
|
|
2411
2694
|
_hoisted_22
|
|
@@ -2422,15 +2705,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2422
2705
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_24, [
|
|
2423
2706
|
vue.withDirectives(vue.createVNode("button", {
|
|
2424
2707
|
class: "p-link",
|
|
2425
|
-
onMousedown: _cache[
|
|
2426
|
-
onMouseup: _cache[
|
|
2708
|
+
onMousedown: _cache[39] || (_cache[39] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
|
|
2709
|
+
onMouseup: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2427
2710
|
onKeydown: [
|
|
2428
|
-
_cache[
|
|
2429
|
-
_cache[
|
|
2711
|
+
_cache[41] || (_cache[41] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2712
|
+
_cache[43] || (_cache[43] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
|
|
2713
|
+
_cache[44] || (_cache[44] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
|
|
2430
2714
|
],
|
|
2431
2715
|
disabled: _ctx.$attrs.disabled,
|
|
2432
|
-
onMouseleave: _cache[
|
|
2433
|
-
onKeyup:
|
|
2716
|
+
onMouseleave: _cache[42] || (_cache[42] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2717
|
+
onKeyup: [
|
|
2718
|
+
_cache[45] || (_cache[45] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2719
|
+
_cache[46] || (_cache[46] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2720
|
+
],
|
|
2434
2721
|
type: "button"
|
|
2435
2722
|
}, [
|
|
2436
2723
|
_hoisted_25
|
|
@@ -2440,15 +2727,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2440
2727
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentSecond), 1),
|
|
2441
2728
|
vue.withDirectives(vue.createVNode("button", {
|
|
2442
2729
|
class: "p-link",
|
|
2443
|
-
onMousedown: _cache[
|
|
2444
|
-
onMouseup: _cache[
|
|
2730
|
+
onMousedown: _cache[47] || (_cache[47] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
|
|
2731
|
+
onMouseup: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2445
2732
|
onKeydown: [
|
|
2446
|
-
_cache[
|
|
2447
|
-
_cache[
|
|
2733
|
+
_cache[49] || (_cache[49] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2734
|
+
_cache[51] || (_cache[51] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
|
|
2735
|
+
_cache[52] || (_cache[52] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
|
|
2448
2736
|
],
|
|
2449
2737
|
disabled: _ctx.$attrs.disabled,
|
|
2450
|
-
onMouseleave: _cache[
|
|
2451
|
-
onKeyup:
|
|
2738
|
+
onMouseleave: _cache[50] || (_cache[50] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2739
|
+
onKeyup: [
|
|
2740
|
+
_cache[53] || (_cache[53] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2741
|
+
_cache[54] || (_cache[54] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2742
|
+
],
|
|
2452
2743
|
type: "button"
|
|
2453
2744
|
}, [
|
|
2454
2745
|
_hoisted_26
|
|
@@ -2466,7 +2757,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2466
2757
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_28, [
|
|
2467
2758
|
vue.withDirectives(vue.createVNode("button", {
|
|
2468
2759
|
class: "p-link",
|
|
2469
|
-
onClick: _cache[
|
|
2760
|
+
onClick: _cache[55] || (_cache[55] = $event => ($options.toggleAMPM($event))),
|
|
2470
2761
|
type: "button",
|
|
2471
2762
|
disabled: _ctx.$attrs.disabled
|
|
2472
2763
|
}, [
|
|
@@ -2477,7 +2768,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2477
2768
|
vue.createVNode("span", null, vue.toDisplayString($data.pm ? 'PM' : 'AM'), 1),
|
|
2478
2769
|
vue.withDirectives(vue.createVNode("button", {
|
|
2479
2770
|
class: "p-link",
|
|
2480
|
-
onClick: _cache[
|
|
2771
|
+
onClick: _cache[56] || (_cache[56] = $event => ($options.toggleAMPM($event))),
|
|
2481
2772
|
type: "button",
|
|
2482
2773
|
disabled: _ctx.$attrs.disabled
|
|
2483
2774
|
}, [
|
|
@@ -2494,21 +2785,21 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2494
2785
|
vue.createVNode(_component_CalendarButton, {
|
|
2495
2786
|
type: "button",
|
|
2496
2787
|
label: $options.todayLabel,
|
|
2497
|
-
onClick: _cache[
|
|
2788
|
+
onClick: _cache[57] || (_cache[57] = $event => ($options.onTodayButtonClick($event))),
|
|
2498
2789
|
class: "p-button-text",
|
|
2499
2790
|
onKeydown: $options.onContainerButtonKeydown
|
|
2500
2791
|
}, null, 8, ["label", "onKeydown"]),
|
|
2501
2792
|
vue.createVNode(_component_CalendarButton, {
|
|
2502
2793
|
type: "button",
|
|
2503
2794
|
label: $options.clearLabel,
|
|
2504
|
-
onClick: _cache[
|
|
2795
|
+
onClick: _cache[58] || (_cache[58] = $event => ($options.onClearButtonClick($event))),
|
|
2505
2796
|
class: "p-button-text",
|
|
2506
2797
|
onKeydown: $options.onContainerButtonKeydown
|
|
2507
2798
|
}, null, 8, ["label", "onKeydown"])
|
|
2508
2799
|
]))
|
|
2509
2800
|
: vue.createCommentVNode("", true),
|
|
2510
2801
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
2511
|
-
],
|
|
2802
|
+
], 42, ["role"]))
|
|
2512
2803
|
: vue.createCommentVNode("", true)
|
|
2513
2804
|
]),
|
|
2514
2805
|
_: 3
|
|
@@ -2544,7 +2835,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2544
2835
|
}
|
|
2545
2836
|
}
|
|
2546
2837
|
|
|
2547
|
-
var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display:
|
|
2838
|
+
var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
|
|
2548
2839
|
styleInject(css_248z);
|
|
2549
2840
|
|
|
2550
2841
|
script.render = render;
|