primevue 3.8.2 → 3.11.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/accordion/Accordion.d.ts +74 -11
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordiontab/AccordionTab.d.ts +37 -8
- package/accordiontab/accordiontab.esm.js +1 -1
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +1 -1
- package/api/Api.d.ts +292 -251
- 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 +67 -33
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +280 -63
- package/autocomplete/AutoComplete.vue +16 -9
- package/autocomplete/autocomplete.cjs.js +23 -15
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +20 -12
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +24 -16
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +57 -8
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +29 -3
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -1
- package/badge/Badge.d.ts +46 -5
- package/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/blockui/BlockUI.d.ts +52 -11
- package/blockui/blockui.esm.js +1 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +49 -9
- 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 +6 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +6 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +68 -11
- package/button/button.cjs.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/calendar/Calendar.d.ts +320 -58
- package/calendar/Calendar.vue +406 -84
- package/calendar/calendar.cjs.js +521 -204
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +521 -203
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +523 -205
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +43 -9
- package/card/card.esm.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +1 -1
- package/carousel/Carousel.d.ts +121 -24
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.cjs.js +7 -7
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +7 -7
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +8 -8
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +172 -35
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/chart/Chart.d.ts +104 -12
- package/chart/Chart.vue +18 -4
- package/chart/chart.cjs.js +20 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +19 -5
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +19 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +66 -8
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/chip/Chip.d.ts +50 -4
- package/chip/chip.esm.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chips/Chips.d.ts +88 -15
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/colorpicker/ColorPicker.d.ts +105 -13
- package/colorpicker/ColorPicker.vue +6 -1
- package/colorpicker/colorpicker.cjs.js +7 -2
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +7 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +8 -3
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +448 -78
- package/column/column.esm.js +1 -1
- package/column/column.esm.min.js +1 -1
- package/column/column.js +1 -1
- package/columngroup/ColumnGroup.d.ts +30 -4
- package/columngroup/columngroup.esm.js +1 -1
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -1
- package/config/config.cjs.js +1 -1
- package/config/config.esm.js +1 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +2 -2
- package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
- package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
- package/confirmationeventbus/confirmationeventbus.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +58 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +2 -1
- package/confirmationservice/confirmationservice.cjs.js +2 -2
- package/confirmationservice/confirmationservice.esm.js +1 -1
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +3 -3
- package/confirmdialog/ConfirmDialog.d.ts +57 -5
- package/confirmdialog/ConfirmDialog.vue +8 -2
- package/confirmdialog/confirmdialog.cjs.js +17 -10
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +12 -5
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +18 -11
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +41 -3
- package/confirmpopup/ConfirmPopup.vue +7 -4
- package/confirmpopup/confirmpopup.cjs.js +19 -11
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +15 -7
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +20 -12
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +88 -16
- package/contextmenu/ContextMenuSub.vue +7 -4
- package/contextmenu/contextmenu.cjs.js +8 -5
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +8 -5
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +9 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +861 -383
- package/core/core.min.js +15 -13
- package/datatable/BodyCell.vue +27 -1
- package/datatable/ColumnFilter.vue +17 -6
- package/datatable/DataTable.d.ts +1056 -130
- package/datatable/DataTable.vue +150 -131
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/RowRadioButton.vue +1 -1
- package/datatable/TableBody.vue +57 -14
- package/datatable/TableFooter.vue +15 -1
- package/datatable/TableHeader.vue +15 -1
- package/datatable/datatable.cjs.js +542 -381
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +533 -373
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +543 -383
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +198 -32
- package/dataview/DataView.vue +8 -8
- package/dataview/dataview.cjs.js +13 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +13 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +14 -14
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +31 -6
- package/deferredcontent/deferredcontent.esm.js +1 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +1 -1
- package/dialog/Dialog.d.ts +187 -34
- package/dialog/Dialog.vue +1 -1
- package/dialog/dialog.cjs.js +2 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +3 -4
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +53 -8
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/dock/Dock.d.ts +92 -15
- package/dock/DockSub.vue +3 -1
- package/dock/dock.cjs.js +4 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +4 -2
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +5 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +340 -76
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +4 -4
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +5 -5
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +78 -11
- package/editor/editor.cjs.js +1 -1
- package/editor/editor.esm.js +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/fieldset/Fieldset.d.ts +63 -11
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -2
- package/fileupload/FileUpload.d.ts +255 -37
- package/fileupload/fileupload.cjs.js +4 -4
- package/fileupload/fileupload.esm.js +1 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +5 -5
- package/fullcalendar/FullCalendar.d.ts +29 -3
- package/fullcalendar/fullcalendar.esm.js +1 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +1 -1
- package/galleria/Galleria.d.ts +196 -46
- package/galleria/galleria.cjs.js +3 -3
- package/galleria/galleria.esm.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +4 -4
- package/image/Image.d.ts +51 -6
- package/image/image.esm.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +34 -6
- package/inlinemessage/inlinemessage.esm.js +1 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +1 -1
- package/inplace/Inplace.d.ts +57 -12
- package/inplace/inplace.cjs.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inputmask/InputMask.d.ts +75 -15
- package/inputmask/inputmask.esm.js +1 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +1 -1
- package/inputnumber/InputNumber.d.ts +180 -30
- package/inputnumber/InputNumber.vue +19 -3
- package/inputnumber/inputnumber.cjs.js +21 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +20 -4
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +22 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +61 -9
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputtext/InputText.d.ts +34 -5
- 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 +4 -4
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +3 -3
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +92 -18
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/listbox/Listbox.d.ts +246 -56
- package/listbox/listbox.cjs.js +2 -2
- package/listbox/listbox.esm.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -3
- package/megamenu/MegaMenu.d.ts +60 -12
- package/megamenu/MegaMenu.vue +10 -7
- package/megamenu/megamenu.cjs.js +11 -8
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +11 -8
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +12 -9
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +84 -15
- package/menu/Menu.vue +6 -3
- package/menu/Menuitem.vue +5 -2
- package/menu/menu.cjs.js +13 -7
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +12 -6
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +14 -8
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +52 -11
- package/menubar/Menubar.vue +1 -0
- package/menubar/MenubarSub.vue +7 -4
- package/menubar/menubar.cjs.js +9 -6
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +9 -6
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +10 -7
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +82 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +57 -10
- package/message/Message.vue +6 -2
- package/message/message.cjs.js +7 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +7 -3
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -4
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +368 -83
- package/multiselect/multiselect.cjs.js +3 -3
- package/multiselect/multiselect.esm.js +1 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -4
- package/orderlist/OrderList.d.ts +122 -17
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.cjs.js +5 -3
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +6 -4
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +137 -15
- package/organizationchart/OrganizationChart.vue +1 -0
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +2 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +2 -2
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
- package/overlayeventbus/overlayeventbus.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +107 -12
- package/overlaypanel/overlaypanel.cjs.js +5 -5
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +6 -6
- package/package.json +5 -1
- package/paginator/Paginator.d.ts +129 -27
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +12 -12
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +5 -5
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +13 -13
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +64 -8
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -2
- package/panelmenu/PanelMenu.d.ts +59 -11
- package/panelmenu/PanelMenu.vue +8 -5
- package/panelmenu/PanelMenuSub.vue +8 -5
- package/panelmenu/panelmenu.cjs.js +18 -12
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +19 -13
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +19 -13
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +115 -24
- package/password/password.cjs.js +2 -2
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +3 -3
- package/picklist/PickList.d.ts +199 -26
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.cjs.js +15 -9
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +14 -8
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +16 -10
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +43 -8
- 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 +15 -14
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +14 -13
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +39 -6
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/radiobutton/RadioButton.d.ts +52 -7
- package/radiobutton/radiobutton.esm.js +1 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -1
- package/rating/Rating.d.ts +67 -10
- 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 +2 -2
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +2 -2
- 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 +81 -33
- package/resources/themes/arya-green/theme.css +81 -33
- package/resources/themes/arya-orange/theme.css +81 -33
- package/resources/themes/arya-purple/theme.css +81 -33
- package/resources/themes/bootstrap4-dark-blue/theme.css +62 -21
- package/resources/themes/bootstrap4-dark-purple/theme.css +62 -21
- package/resources/themes/bootstrap4-light-blue/theme.css +62 -21
- package/resources/themes/bootstrap4-light-purple/theme.css +62 -21
- package/resources/themes/fluent-light/theme.css +81 -33
- 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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -0
- package/resources/themes/luna-amber/theme.css +78 -37
- package/resources/themes/luna-blue/theme.css +78 -37
- package/resources/themes/luna-green/theme.css +78 -37
- package/resources/themes/luna-pink/theme.css +78 -37
- package/resources/themes/md-dark-deeppurple/theme.css +252 -48
- package/resources/themes/md-dark-indigo/theme.css +252 -48
- package/resources/themes/md-light-deeppurple/theme.css +252 -48
- package/resources/themes/md-light-indigo/theme.css +252 -48
- package/resources/themes/mdc-dark-deeppurple/theme.css +252 -48
- package/resources/themes/mdc-dark-indigo/theme.css +252 -48
- package/resources/themes/mdc-light-deeppurple/theme.css +252 -48
- package/resources/themes/mdc-light-indigo/theme.css +252 -48
- package/resources/themes/nova/theme.css +78 -37
- package/resources/themes/nova-accent/theme.css +78 -37
- package/resources/themes/nova-alt/theme.css +78 -37
- package/resources/themes/nova-vue/theme.css +78 -37
- package/resources/themes/rhea/theme.css +78 -37
- package/resources/themes/saga-blue/theme.css +65 -17
- package/resources/themes/saga-green/theme.css +65 -17
- package/resources/themes/saga-orange/theme.css +65 -17
- package/resources/themes/saga-purple/theme.css +65 -17
- package/resources/themes/tailwind-light/theme.css +92 -36
- package/resources/themes/vela-blue/theme.css +81 -33
- package/resources/themes/vela-green/theme.css +81 -33
- package/resources/themes/vela-orange/theme.css +81 -33
- package/resources/themes/vela-purple/theme.css +81 -33
- package/ripple/ripple.esm.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -1
- package/row/Row.d.ts +25 -3
- package/row/row.esm.js +1 -1
- package/row/row.esm.min.js +1 -1
- package/row/row.js +1 -1
- package/scrollpanel/ScrollPanel.d.ts +27 -5
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -1
- package/scrolltop/ScrollTop.d.ts +47 -7
- package/scrolltop/scrolltop.esm.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/selectbutton/SelectButton.d.ts +108 -19
- package/selectbutton/SelectButton.vue +8 -2
- package/selectbutton/selectbutton.cjs.js +15 -10
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +15 -10
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +16 -11
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +81 -16
- package/sidebar/sidebar.cjs.js +1 -1
- package/sidebar/sidebar.esm.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -2
- package/skeleton/Skeleton.d.ts +58 -9
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/slider/Slider.d.ts +90 -14
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/speeddial/SpeedDial.d.ts +166 -29
- package/speeddial/SpeedDial.vue +3 -1
- package/speeddial/speeddial.cjs.js +5 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +4 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +6 -4
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +76 -11
- package/splitbutton/SplitButton.vue +3 -1
- package/splitbutton/splitbutton.cjs.js +15 -13
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +15 -13
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +16 -14
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +74 -7
- package/splitter/Splitter.vue +5 -5
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +2 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +2 -2
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +34 -7
- package/splitterpanel/splitterpanel.esm.js +1 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +1 -1
- package/steps/Steps.d.ts +51 -11
- 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 +6 -3
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +6 -3
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.esm.js +1 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +1 -1
- package/tabmenu/TabMenu.d.ts +63 -10
- package/tabmenu/TabMenu.vue +6 -3
- package/tabmenu/tabmenu.cjs.js +7 -4
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +7 -4
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +8 -5
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +38 -7
- package/tabpanel/tabpanel.esm.js +1 -1
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +1 -1
- package/tabview/TabView.d.ts +73 -11
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -2
- package/tag/Tag.d.ts +44 -8
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +6 -6
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +8 -8
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +7 -7
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +36 -5
- package/terminal/terminal.cjs.js +3 -3
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -4
- package/terminalservice/TerminalService.d.ts +9 -6
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +1 -1
- package/textarea/Textarea.d.ts +38 -6
- package/textarea/textarea.esm.js +1 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +89 -15
- package/tieredmenu/TieredMenuSub.vue +7 -4
- package/tieredmenu/tieredmenu.cjs.js +9 -6
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +8 -5
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +10 -7
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +94 -15
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -1
- package/toast/Toast.d.ts +118 -12
- package/toast/toast.cjs.js +7 -7
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -8
- package/toasteventbus/toasteventbus.esm.js +1 -1
- package/toasteventbus/toasteventbus.esm.min.js +1 -1
- package/toasteventbus/toasteventbus.js +1 -1
- package/toastservice/ToastService.d.ts +17 -5
- package/toastservice/toastservice.cjs.js +3 -3
- package/toastservice/toastservice.esm.js +1 -1
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +4 -4
- package/togglebutton/ToggleButton.d.ts +64 -11
- package/togglebutton/togglebutton.cjs.js +1 -1
- package/togglebutton/togglebutton.esm.js +1 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/toolbar/Toolbar.d.ts +31 -6
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.cjs.js +2 -2
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -3
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +3 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.esm.js +1 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +1 -1
- package/tree/Tree.d.ts +189 -26
- package/tree/Tree.vue +1 -0
- package/tree/TreeNode.vue +4 -1
- package/tree/tree.cjs.js +6 -3
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +6 -3
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +7 -4
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +201 -44
- package/treeselect/TreeSelect.vue +9 -0
- package/treeselect/treeselect.cjs.js +12 -3
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +10 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +13 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +3 -3
- package/treetable/TreeTable.d.ts +459 -63
- package/treetable/TreeTable.vue +9 -9
- package/treetable/treetable.cjs.js +17 -17
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +16 -16
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +18 -18
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +40 -6
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +5 -19
- package/useconfirm/useconfirm.js +1 -1
- package/usetoast/UseToast.d.ts +3 -5
- package/usetoast/usetoast.js +1 -1
- package/utils/Utils.d.ts +3 -0
- package/utils/utils.cjs.js +41 -4
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +41 -4
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +42 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +66 -30
- package/vetur-tags.json +16 -7
- package/virtualscroller/VirtualScroller.d.ts +294 -53
- package/virtualscroller/VirtualScroller.vue +296 -255
- package/virtualscroller/virtualscroller.cjs.js +325 -266
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +326 -267
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +326 -267
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +296 -47
package/calendar/calendar.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.calendar = (function (utils, OverlayEventBus,
|
|
2
|
+
this.primevue.calendar = (function (utils, OverlayEventBus, Button, Ripple, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
7
|
var OverlayEventBus__default = /*#__PURE__*/_interopDefaultLegacy(OverlayEventBus);
|
|
8
|
-
var InputText__default = /*#__PURE__*/_interopDefaultLegacy(InputText);
|
|
9
8
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
10
9
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
11
10
|
|
|
@@ -47,6 +46,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
47
46
|
type: Number,
|
|
48
47
|
default: 1
|
|
49
48
|
},
|
|
49
|
+
responsiveOptions: Array,
|
|
50
50
|
view: {
|
|
51
51
|
type: String,
|
|
52
52
|
default: 'date'
|
|
@@ -159,40 +159,53 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
159
159
|
type: String,
|
|
160
160
|
default: 'body'
|
|
161
161
|
},
|
|
162
|
-
keepInvalid: {
|
|
163
|
-
type: Boolean,
|
|
164
|
-
default: false
|
|
165
|
-
},
|
|
166
162
|
inputClass: null,
|
|
167
163
|
inputStyle: null,
|
|
168
164
|
class: null,
|
|
169
165
|
style: null
|
|
170
166
|
},
|
|
171
167
|
navigationState: null,
|
|
168
|
+
timePickerChange: false,
|
|
172
169
|
scrollHandler: null,
|
|
173
170
|
outsideClickListener: null,
|
|
174
171
|
maskClickListener: null,
|
|
175
172
|
resizeListener: null,
|
|
176
173
|
overlay: null,
|
|
174
|
+
input: null,
|
|
177
175
|
mask: null,
|
|
178
176
|
timePickerTimer: null,
|
|
179
|
-
|
|
177
|
+
preventFocus: false,
|
|
178
|
+
typeUpdate: false,
|
|
180
179
|
created() {
|
|
181
180
|
this.updateCurrentMetaData();
|
|
182
181
|
},
|
|
183
182
|
mounted() {
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
this.createResponsiveStyle();
|
|
184
|
+
|
|
185
|
+
if (this.inline) {
|
|
186
|
+
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
187
|
+
|
|
188
|
+
if (!this.$attrs.disabled) {
|
|
189
|
+
this.initFocusableCell();
|
|
190
|
+
|
|
191
|
+
if (this.numberOfMonths === 1) {
|
|
192
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
this.input.value = this.formatValue(this.modelValue);
|
|
186
198
|
}
|
|
187
199
|
},
|
|
188
200
|
updated() {
|
|
189
201
|
if (this.overlay) {
|
|
202
|
+
this.preventFocus = true;
|
|
190
203
|
this.updateFocus();
|
|
191
204
|
}
|
|
192
205
|
|
|
193
|
-
if (this
|
|
194
|
-
this
|
|
195
|
-
this
|
|
206
|
+
if (this.input && this.selectionStart != null && this.selectionEnd != null) {
|
|
207
|
+
this.input.selectionStart = this.selectionStart;
|
|
208
|
+
this.input.selectionEnd = this.selectionEnd;
|
|
196
209
|
this.selectionStart = null;
|
|
197
210
|
this.selectionEnd = null;
|
|
198
211
|
}
|
|
@@ -203,8 +216,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
203
216
|
}
|
|
204
217
|
|
|
205
218
|
if (this.mask) {
|
|
206
|
-
|
|
219
|
+
this.destroyMask();
|
|
207
220
|
}
|
|
221
|
+
this.destroyResponsiveStyleElement();
|
|
208
222
|
|
|
209
223
|
this.unbindOutsideClickListener();
|
|
210
224
|
this.unbindResizeListener();
|
|
@@ -228,20 +242,35 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
228
242
|
currentSecond: null,
|
|
229
243
|
pm: null,
|
|
230
244
|
focused: false,
|
|
231
|
-
overlayVisible: false
|
|
245
|
+
overlayVisible: false,
|
|
246
|
+
currentView: this.view
|
|
232
247
|
}
|
|
233
248
|
},
|
|
234
249
|
watch: {
|
|
235
|
-
modelValue() {
|
|
250
|
+
modelValue(newValue) {
|
|
236
251
|
this.updateCurrentMetaData();
|
|
252
|
+
if (!this.typeUpdate && !this.inline && this.input) {
|
|
253
|
+
this.input.value = this.formatValue(newValue);
|
|
254
|
+
}
|
|
255
|
+
this.typeUpdate = false;
|
|
237
256
|
},
|
|
238
257
|
showTime() {
|
|
239
258
|
this.updateCurrentMetaData();
|
|
240
259
|
},
|
|
241
260
|
months() {
|
|
242
261
|
if (this.overlay) {
|
|
243
|
-
|
|
262
|
+
if (!this.focused) {
|
|
263
|
+
setTimeout(this.updateFocus, 0);
|
|
264
|
+
}
|
|
244
265
|
}
|
|
266
|
+
},
|
|
267
|
+
numberOfMonths() {
|
|
268
|
+
this.destroyResponsiveStyleElement();
|
|
269
|
+
this.createResponsiveStyle();
|
|
270
|
+
},
|
|
271
|
+
responsiveOptions() {
|
|
272
|
+
this.destroyResponsiveStyleElement();
|
|
273
|
+
this.createResponsiveStyle();
|
|
245
274
|
}
|
|
246
275
|
},
|
|
247
276
|
methods: {
|
|
@@ -281,7 +310,22 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
281
310
|
return false;
|
|
282
311
|
},
|
|
283
312
|
isMonthSelected(month) {
|
|
284
|
-
|
|
313
|
+
if (this.isComparable()) {
|
|
314
|
+
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
315
|
+
|
|
316
|
+
return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return false;
|
|
320
|
+
},
|
|
321
|
+
isYearSelected(year) {
|
|
322
|
+
if (this.isComparable()) {
|
|
323
|
+
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
324
|
+
|
|
325
|
+
return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
return false;
|
|
285
329
|
},
|
|
286
330
|
isDateEquals(value, dateMeta) {
|
|
287
331
|
if (value)
|
|
@@ -407,12 +451,15 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
407
451
|
return validMin && validMax && validDate && validDay;
|
|
408
452
|
},
|
|
409
453
|
onOverlayEnter(el) {
|
|
454
|
+
el.setAttribute(this.attributeSelector, '');
|
|
455
|
+
|
|
410
456
|
if (this.autoZIndex) {
|
|
411
457
|
if (this.touchUI)
|
|
412
458
|
utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
|
|
413
459
|
else
|
|
414
460
|
utils.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
|
|
415
461
|
}
|
|
462
|
+
|
|
416
463
|
this.alignOverlay();
|
|
417
464
|
this.$emit('show');
|
|
418
465
|
},
|
|
@@ -427,6 +474,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
427
474
|
}
|
|
428
475
|
},
|
|
429
476
|
onOverlayLeave() {
|
|
477
|
+
this.currentView = this.view;
|
|
430
478
|
this.unbindOutsideClickListener();
|
|
431
479
|
this.unbindScrollListener();
|
|
432
480
|
this.unbindResizeListener();
|
|
@@ -457,9 +505,12 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
457
505
|
return;
|
|
458
506
|
}
|
|
459
507
|
|
|
460
|
-
if (this.
|
|
508
|
+
if (this.currentView === 'month') {
|
|
461
509
|
this.decrementYear();
|
|
462
510
|
}
|
|
511
|
+
else if (this.currentView === 'year') {
|
|
512
|
+
this.decrementDecade();
|
|
513
|
+
}
|
|
463
514
|
else {
|
|
464
515
|
if (this.currentMonth === 0) {
|
|
465
516
|
this.currentMonth = 11;
|
|
@@ -479,9 +530,12 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
479
530
|
return;
|
|
480
531
|
}
|
|
481
532
|
|
|
482
|
-
if (this.
|
|
533
|
+
if (this.currentView === 'month') {
|
|
483
534
|
this.incrementYear();
|
|
484
535
|
}
|
|
536
|
+
else if (this.currentView === 'year') {
|
|
537
|
+
this.incrementDecade();
|
|
538
|
+
}
|
|
485
539
|
else {
|
|
486
540
|
if (this.currentMonth === 11) {
|
|
487
541
|
this.currentMonth = 0;
|
|
@@ -497,9 +551,25 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
497
551
|
decrementYear() {
|
|
498
552
|
this.currentYear--;
|
|
499
553
|
},
|
|
554
|
+
decrementDecade() {
|
|
555
|
+
this.currentYear = this.currentYear - 10;
|
|
556
|
+
},
|
|
500
557
|
incrementYear() {
|
|
501
558
|
this.currentYear++;
|
|
502
559
|
},
|
|
560
|
+
incrementDecade() {
|
|
561
|
+
this.currentYear = this.currentYear + 10;
|
|
562
|
+
},
|
|
563
|
+
switchToMonthView(event) {
|
|
564
|
+
this.currentView = 'month';
|
|
565
|
+
setTimeout(this.updateFocus, 0);
|
|
566
|
+
event.preventDefault();
|
|
567
|
+
},
|
|
568
|
+
switchToYearView(event) {
|
|
569
|
+
this.currentView = 'year';
|
|
570
|
+
setTimeout(this.updateFocus, 0);
|
|
571
|
+
event.preventDefault();
|
|
572
|
+
},
|
|
503
573
|
isEnabled() {
|
|
504
574
|
return !this.$attrs.disabled && !this.$attrs.readonly;
|
|
505
575
|
},
|
|
@@ -584,7 +654,14 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
584
654
|
utils.DomHandler.relativePosition(this.overlay, this.$el);
|
|
585
655
|
}
|
|
586
656
|
else {
|
|
587
|
-
|
|
657
|
+
if (this.view === 'date') {
|
|
658
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.overlay) + 'px';
|
|
659
|
+
this.overlay.style.minWidth = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
this.overlay.style.width = utils.DomHandler.getOuterWidth(this.$el) + 'px';
|
|
663
|
+
}
|
|
664
|
+
|
|
588
665
|
utils.DomHandler.absolutePosition(this.overlay, this.$el);
|
|
589
666
|
}
|
|
590
667
|
}
|
|
@@ -592,7 +669,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
592
669
|
onButtonClick() {
|
|
593
670
|
if (this.isEnabled()) {
|
|
594
671
|
if (!this.overlayVisible) {
|
|
595
|
-
this
|
|
672
|
+
this.input.focus();
|
|
596
673
|
this.overlayVisible = true;
|
|
597
674
|
}
|
|
598
675
|
else {
|
|
@@ -985,12 +1062,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
985
1062
|
}
|
|
986
1063
|
return hours;
|
|
987
1064
|
},
|
|
988
|
-
|
|
989
|
-
let value = this.modelValue;
|
|
1065
|
+
validateTime(hour, minute, second, pm) {
|
|
1066
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
990
1067
|
const convertedHour = this.convertTo24Hour(hour, pm);
|
|
991
|
-
|
|
992
|
-
return true;
|
|
993
|
-
}
|
|
1068
|
+
|
|
994
1069
|
if (this.isRangeSelection()) {
|
|
995
1070
|
value = this.modelValue[1] || this.modelValue[0];
|
|
996
1071
|
}
|
|
@@ -1036,7 +1111,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1036
1111
|
let newHour = this.currentHour + this.stepHour;
|
|
1037
1112
|
let newPM = this.pm;
|
|
1038
1113
|
|
|
1039
|
-
|
|
1040
1114
|
if (this.hourFormat == '24')
|
|
1041
1115
|
newHour = (newHour >= 24) ? (newHour - 24) : newHour;
|
|
1042
1116
|
else if (this.hourFormat == '12') {
|
|
@@ -1047,7 +1121,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1047
1121
|
newHour = (newHour >= 13) ? (newHour - 12) : newHour;
|
|
1048
1122
|
}
|
|
1049
1123
|
|
|
1050
|
-
|
|
1051
1124
|
if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
|
|
1052
1125
|
this.currentHour = newHour;
|
|
1053
1126
|
this.pm = newPM;
|
|
@@ -1107,7 +1180,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1107
1180
|
event.preventDefault();
|
|
1108
1181
|
},
|
|
1109
1182
|
updateModelTime() {
|
|
1110
|
-
|
|
1183
|
+
this.timePickerChange = true;
|
|
1184
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1111
1185
|
|
|
1112
1186
|
if (this.isRangeSelection()) {
|
|
1113
1187
|
value = this.modelValue[1] || this.modelValue[0];
|
|
@@ -1143,6 +1217,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1143
1217
|
|
|
1144
1218
|
this.updateModel(value);
|
|
1145
1219
|
this.$emit('date-select', value);
|
|
1220
|
+
setTimeout(() => this.timePickerChange = false, 0);
|
|
1146
1221
|
},
|
|
1147
1222
|
toggleAMPM(event) {
|
|
1148
1223
|
this.pm = !this.pm;
|
|
@@ -1155,7 +1230,28 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1155
1230
|
}
|
|
1156
1231
|
},
|
|
1157
1232
|
onMonthSelect(event, index) {
|
|
1158
|
-
this.
|
|
1233
|
+
if (this.view === 'month') {
|
|
1234
|
+
this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
this.currentMonth = index;
|
|
1238
|
+
this.currentView = 'date';
|
|
1239
|
+
this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
setTimeout(this.updateFocus, 0);
|
|
1243
|
+
},
|
|
1244
|
+
onYearSelect(event, year) {
|
|
1245
|
+
if (this.view === 'year') {
|
|
1246
|
+
this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
|
|
1247
|
+
}
|
|
1248
|
+
else {
|
|
1249
|
+
this.currentYear = year;
|
|
1250
|
+
this.currentView = 'month';
|
|
1251
|
+
this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
setTimeout(this.updateFocus, 0);
|
|
1159
1255
|
},
|
|
1160
1256
|
enableModality() {
|
|
1161
1257
|
if (!this.mask) {
|
|
@@ -1210,6 +1306,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1210
1306
|
}
|
|
1211
1307
|
},
|
|
1212
1308
|
isValidSelection(value) {
|
|
1309
|
+
if (value == null) {
|
|
1310
|
+
return true;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1213
1313
|
let isValid = true;
|
|
1214
1314
|
if (this.isSingleSelection()) {
|
|
1215
1315
|
if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
|
|
@@ -1378,7 +1478,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1378
1478
|
iValue++;
|
|
1379
1479
|
};
|
|
1380
1480
|
|
|
1381
|
-
if (this.
|
|
1481
|
+
if (this.currentView === 'month') {
|
|
1382
1482
|
day = 1;
|
|
1383
1483
|
}
|
|
1384
1484
|
|
|
@@ -1573,7 +1673,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1573
1673
|
}
|
|
1574
1674
|
|
|
1575
1675
|
//enter
|
|
1576
|
-
|
|
1676
|
+
//space
|
|
1677
|
+
case 13:
|
|
1678
|
+
case 32: {
|
|
1577
1679
|
this.onDateSelect(event, date);
|
|
1578
1680
|
event.preventDefault();
|
|
1579
1681
|
break;
|
|
@@ -1603,7 +1705,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1603
1705
|
}
|
|
1604
1706
|
else {
|
|
1605
1707
|
let prevMonthContainer = this.overlay.children[groupIndex - 1];
|
|
1606
|
-
let cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1708
|
+
let cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1607
1709
|
let focusCell = cells[cells.length - 1];
|
|
1608
1710
|
focusCell.tabIndex = '0';
|
|
1609
1711
|
focusCell.focus();
|
|
@@ -1616,7 +1718,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1616
1718
|
}
|
|
1617
1719
|
else {
|
|
1618
1720
|
let nextMonthContainer = this.overlay.children[groupIndex + 1];
|
|
1619
|
-
let focusCell = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1721
|
+
let focusCell = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1620
1722
|
focusCell.tabIndex = '0';
|
|
1621
1723
|
focusCell.focus();
|
|
1622
1724
|
}
|
|
@@ -1649,6 +1751,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1649
1751
|
prevCell.tabIndex = '0';
|
|
1650
1752
|
prevCell.focus();
|
|
1651
1753
|
}
|
|
1754
|
+
else {
|
|
1755
|
+
this.navigationState = {backward: true};
|
|
1756
|
+
this.navBackward(event);
|
|
1757
|
+
}
|
|
1652
1758
|
event.preventDefault();
|
|
1653
1759
|
break;
|
|
1654
1760
|
}
|
|
@@ -1661,12 +1767,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1661
1767
|
nextCell.tabIndex = '0';
|
|
1662
1768
|
nextCell.focus();
|
|
1663
1769
|
}
|
|
1770
|
+
else {
|
|
1771
|
+
this.navigationState = {backward: false};
|
|
1772
|
+
this.navForward(event);
|
|
1773
|
+
}
|
|
1664
1774
|
event.preventDefault();
|
|
1665
1775
|
break;
|
|
1666
1776
|
}
|
|
1667
1777
|
|
|
1668
1778
|
//enter
|
|
1669
|
-
|
|
1779
|
+
//space
|
|
1780
|
+
case 13:
|
|
1781
|
+
case 32: {
|
|
1670
1782
|
this.onMonthSelect(event, index);
|
|
1671
1783
|
event.preventDefault();
|
|
1672
1784
|
break;
|
|
@@ -1686,8 +1798,83 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1686
1798
|
}
|
|
1687
1799
|
}
|
|
1688
1800
|
},
|
|
1801
|
+
onYearCellKeydown(event, index) {
|
|
1802
|
+
const cell = event.currentTarget;
|
|
1803
|
+
|
|
1804
|
+
switch (event.which) {
|
|
1805
|
+
//arrows
|
|
1806
|
+
case 38:
|
|
1807
|
+
case 40: {
|
|
1808
|
+
cell.tabIndex = '-1';
|
|
1809
|
+
var cells = cell.parentElement.children;
|
|
1810
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1811
|
+
let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
|
|
1812
|
+
if (nextCell) {
|
|
1813
|
+
nextCell.tabIndex = '0';
|
|
1814
|
+
nextCell.focus();
|
|
1815
|
+
}
|
|
1816
|
+
event.preventDefault();
|
|
1817
|
+
break;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
//left arrow
|
|
1821
|
+
case 37: {
|
|
1822
|
+
cell.tabIndex = '-1';
|
|
1823
|
+
let prevCell = cell.previousElementSibling;
|
|
1824
|
+
if (prevCell) {
|
|
1825
|
+
prevCell.tabIndex = '0';
|
|
1826
|
+
prevCell.focus();
|
|
1827
|
+
}
|
|
1828
|
+
else {
|
|
1829
|
+
this.navigationState = {backward: true};
|
|
1830
|
+
this.navBackward(event);
|
|
1831
|
+
}
|
|
1832
|
+
event.preventDefault();
|
|
1833
|
+
break;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
//right arrow
|
|
1837
|
+
case 39: {
|
|
1838
|
+
cell.tabIndex = '-1';
|
|
1839
|
+
let nextCell = cell.nextElementSibling;
|
|
1840
|
+
if (nextCell) {
|
|
1841
|
+
nextCell.tabIndex = '0';
|
|
1842
|
+
nextCell.focus();
|
|
1843
|
+
}
|
|
1844
|
+
else {
|
|
1845
|
+
this.navigationState = {backward: false};
|
|
1846
|
+
this.navForward(event);
|
|
1847
|
+
}
|
|
1848
|
+
event.preventDefault();
|
|
1849
|
+
break;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
//enter
|
|
1853
|
+
//space
|
|
1854
|
+
case 13:
|
|
1855
|
+
case 32: {
|
|
1856
|
+
this.onYearSelect(event, index);
|
|
1857
|
+
event.preventDefault();
|
|
1858
|
+
break;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
//escape
|
|
1862
|
+
case 27: {
|
|
1863
|
+
this.overlayVisible = false;
|
|
1864
|
+
event.preventDefault();
|
|
1865
|
+
break;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
//tab
|
|
1869
|
+
case 9: {
|
|
1870
|
+
this.trapFocus(event);
|
|
1871
|
+
break;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1689
1875
|
updateFocus() {
|
|
1690
1876
|
let cell;
|
|
1877
|
+
|
|
1691
1878
|
if (this.navigationState) {
|
|
1692
1879
|
if (this.navigationState.button) {
|
|
1693
1880
|
this.initFocusableCell();
|
|
@@ -1699,11 +1886,32 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1699
1886
|
}
|
|
1700
1887
|
else {
|
|
1701
1888
|
if (this.navigationState.backward) {
|
|
1702
|
-
let cells
|
|
1703
|
-
|
|
1889
|
+
let cells;
|
|
1890
|
+
|
|
1891
|
+
if (this.currentView === 'month') {
|
|
1892
|
+
cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
1893
|
+
}
|
|
1894
|
+
else if (this.currentView === 'year') {
|
|
1895
|
+
cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
1896
|
+
}
|
|
1897
|
+
else {
|
|
1898
|
+
cells = utils.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
if (cells && cells.length > 0) {
|
|
1902
|
+
cell = cells[cells.length - 1];
|
|
1903
|
+
}
|
|
1704
1904
|
}
|
|
1705
1905
|
else {
|
|
1706
|
-
|
|
1906
|
+
if (this.currentView === 'month') {
|
|
1907
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
1908
|
+
}
|
|
1909
|
+
else if (this.currentView === 'year') {
|
|
1910
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
1911
|
+
}
|
|
1912
|
+
else {
|
|
1913
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1914
|
+
}
|
|
1707
1915
|
}
|
|
1708
1916
|
|
|
1709
1917
|
if (cell) {
|
|
@@ -1721,25 +1929,37 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1721
1929
|
initFocusableCell() {
|
|
1722
1930
|
let cell;
|
|
1723
1931
|
|
|
1724
|
-
if (this.
|
|
1932
|
+
if (this.currentView === 'month') {
|
|
1725
1933
|
let cells = utils.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
|
|
1726
1934
|
let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
|
|
1727
1935
|
cells.forEach(cell => cell.tabIndex = -1);
|
|
1728
1936
|
cell = selectedCell || cells[0];
|
|
1729
1937
|
}
|
|
1938
|
+
else if (this.currentView === 'year') {
|
|
1939
|
+
let cells = utils.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
|
|
1940
|
+
let selectedCell= utils.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
|
|
1941
|
+
cells.forEach(cell => cell.tabIndex = -1);
|
|
1942
|
+
cell = selectedCell || cells[0];
|
|
1943
|
+
}
|
|
1730
1944
|
else {
|
|
1731
1945
|
cell = utils.DomHandler.findSingle(this.overlay, 'span.p-highlight');
|
|
1732
1946
|
if (!cell) {
|
|
1733
|
-
let todayCell = utils.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled)');
|
|
1947
|
+
let todayCell = utils.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
|
|
1734
1948
|
if (todayCell)
|
|
1735
1949
|
cell = todayCell;
|
|
1736
1950
|
else
|
|
1737
|
-
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1951
|
+
cell = utils.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
|
|
1738
1952
|
}
|
|
1739
1953
|
}
|
|
1740
1954
|
|
|
1741
1955
|
if (cell) {
|
|
1742
1956
|
cell.tabIndex = '0';
|
|
1957
|
+
|
|
1958
|
+
if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
|
|
1959
|
+
cell.focus();
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
this.preventFocus = false;
|
|
1743
1963
|
}
|
|
1744
1964
|
},
|
|
1745
1965
|
trapFocus(event) {
|
|
@@ -1783,25 +2003,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1783
2003
|
}
|
|
1784
2004
|
},
|
|
1785
2005
|
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
2006
|
try {
|
|
1793
|
-
this.selectionStart = this
|
|
1794
|
-
this.selectionEnd = this
|
|
2007
|
+
this.selectionStart = this.input.selectionStart;
|
|
2008
|
+
this.selectionEnd = this.input.selectionEnd;
|
|
1795
2009
|
|
|
1796
2010
|
let value = this.parseValue(event.target.value);
|
|
1797
2011
|
if (this.isValidSelection(value)) {
|
|
2012
|
+
this.typeUpdate = true;
|
|
1798
2013
|
this.updateModel(value);
|
|
1799
2014
|
}
|
|
1800
2015
|
}
|
|
1801
2016
|
catch(err) {
|
|
1802
|
-
|
|
1803
|
-
let value = this.keepInvalid ? event.target.value : null;
|
|
1804
|
-
this.updateModel(value);
|
|
2017
|
+
/* NoOp */
|
|
1805
2018
|
}
|
|
1806
2019
|
},
|
|
1807
2020
|
onFocus() {
|
|
@@ -1812,9 +2025,9 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1812
2025
|
},
|
|
1813
2026
|
onBlur() {
|
|
1814
2027
|
this.focused = false;
|
|
2028
|
+
this.input.value = this.formatValue(this.modelValue);
|
|
1815
2029
|
},
|
|
1816
|
-
onKeyDown(
|
|
1817
|
-
this.isKeydown = true;
|
|
2030
|
+
onKeyDown() {
|
|
1818
2031
|
if (event.keyCode === 40 && this.overlay) {
|
|
1819
2032
|
this.trapFocus(event);
|
|
1820
2033
|
}
|
|
@@ -1837,33 +2050,97 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1837
2050
|
overlayRef(el) {
|
|
1838
2051
|
this.overlay = el;
|
|
1839
2052
|
},
|
|
2053
|
+
inputRef(el) {
|
|
2054
|
+
this.input = el;
|
|
2055
|
+
},
|
|
1840
2056
|
getMonthName(index) {
|
|
1841
2057
|
return this.$primevue.config.locale.monthNames[index];
|
|
1842
2058
|
},
|
|
2059
|
+
getYear(month) {
|
|
2060
|
+
return this.currentView === 'month' ? this.currentYear : month.year;
|
|
2061
|
+
},
|
|
1843
2062
|
onOverlayClick(event) {
|
|
1844
2063
|
if (!this.inline) {
|
|
1845
|
-
OverlayEventBus__default[
|
|
2064
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
1846
2065
|
originalEvent: event,
|
|
1847
2066
|
target: this.$el
|
|
1848
2067
|
});
|
|
1849
2068
|
}
|
|
2069
|
+
},
|
|
2070
|
+
onOverlayMouseUp(event) {
|
|
2071
|
+
this.onOverlayClick(event);
|
|
2072
|
+
},
|
|
2073
|
+
createResponsiveStyle() {
|
|
2074
|
+
if (this.numberOfMonths > 1 && this.responsiveOptions) {
|
|
2075
|
+
if (!this.responsiveStyleElement) {
|
|
2076
|
+
this.responsiveStyleElement = document.createElement('style');
|
|
2077
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
2078
|
+
document.body.appendChild(this.responsiveStyleElement);
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
let innerHTML = '';
|
|
2082
|
+
if (this.responsiveOptions) {
|
|
2083
|
+
let responsiveOptions = [...this.responsiveOptions]
|
|
2084
|
+
.filter(o => !!(o.breakpoint && o.numMonths))
|
|
2085
|
+
.sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
|
|
2086
|
+
|
|
2087
|
+
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2088
|
+
let { breakpoint, numMonths } = responsiveOptions[i];
|
|
2089
|
+
let styles = `
|
|
2090
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
|
|
2091
|
+
display: inline-flex !important;
|
|
2092
|
+
}
|
|
2093
|
+
`;
|
|
2094
|
+
|
|
2095
|
+
for (let j = numMonths; j < this.numberOfMonths; j++) {
|
|
2096
|
+
styles += `
|
|
2097
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
|
|
2098
|
+
display: none !important;
|
|
2099
|
+
}
|
|
2100
|
+
`;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
innerHTML += `
|
|
2104
|
+
@media screen and (max-width: ${breakpoint}) {
|
|
2105
|
+
${styles}
|
|
2106
|
+
}
|
|
2107
|
+
`;
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
destroyResponsiveStyleElement() {
|
|
2115
|
+
if (this.responsiveStyleElement) {
|
|
2116
|
+
this.responsiveStyleElement.remove();
|
|
2117
|
+
this.responsiveStyleElement = null;
|
|
2118
|
+
}
|
|
1850
2119
|
}
|
|
1851
2120
|
},
|
|
1852
2121
|
computed: {
|
|
1853
2122
|
viewDate() {
|
|
1854
2123
|
let propValue = this.modelValue;
|
|
1855
|
-
if (typeof propValue === 'string') {
|
|
1856
|
-
return new Date();
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
2124
|
if (propValue && Array.isArray(propValue)) {
|
|
1860
2125
|
propValue = propValue[0];
|
|
1861
2126
|
}
|
|
1862
2127
|
|
|
1863
|
-
|
|
2128
|
+
if (propValue && typeof propValue !== 'string') {
|
|
2129
|
+
return propValue;
|
|
2130
|
+
}
|
|
2131
|
+
else {
|
|
2132
|
+
let today = new Date();
|
|
2133
|
+
if (this.maxDate && this.maxDate < today) {
|
|
2134
|
+
return this.maxDate;
|
|
2135
|
+
}
|
|
2136
|
+
if (this.minDate && this.minDate > today) {
|
|
2137
|
+
return this.minDate;
|
|
2138
|
+
}
|
|
2139
|
+
return today;
|
|
2140
|
+
}
|
|
1864
2141
|
},
|
|
1865
2142
|
inputFieldValue() {
|
|
1866
|
-
return this.
|
|
2143
|
+
return this.formatValue(this.modelValue);
|
|
1867
2144
|
},
|
|
1868
2145
|
containerClass() {
|
|
1869
2146
|
return [
|
|
@@ -1882,7 +2159,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
1882
2159
|
'p-disabled': this.$attrs.disabled,
|
|
1883
2160
|
'p-datepicker-timeonly': this.timeOnly,
|
|
1884
2161
|
'p-datepicker-multiple-month': this.numberOfMonths > 1,
|
|
1885
|
-
'p-datepicker-monthpicker': (this.
|
|
2162
|
+
'p-datepicker-monthpicker': (this.currentView === 'month'),
|
|
2163
|
+
'p-datepicker-yearpicker': (this.currentView === 'year'),
|
|
1886
2164
|
'p-datepicker-touch-ui': this.touchUI,
|
|
1887
2165
|
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
1888
2166
|
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
@@ -2010,6 +2288,15 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2010
2288
|
|
|
2011
2289
|
return monthPickerValues;
|
|
2012
2290
|
},
|
|
2291
|
+
yearPickerValues() {
|
|
2292
|
+
let yearPickerValues = [];
|
|
2293
|
+
let base = this.currentYear - (this.currentYear % 10);
|
|
2294
|
+
for (let i = 0; i < 10; i++) {
|
|
2295
|
+
yearPickerValues.push(base + i);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
return yearPickerValues;
|
|
2299
|
+
},
|
|
2013
2300
|
formattedCurrentHour() {
|
|
2014
2301
|
return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
|
|
2015
2302
|
},
|
|
@@ -2036,14 +2323,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2036
2323
|
},
|
|
2037
2324
|
appendTarget() {
|
|
2038
2325
|
return this.appendDisabled ? null : this.appendTo;
|
|
2326
|
+
},
|
|
2327
|
+
attributeSelector() {
|
|
2328
|
+
return utils.UniqueComponentId();
|
|
2329
|
+
},
|
|
2330
|
+
switchViewButtonDisabled() {
|
|
2331
|
+
return this.numberOfMonths > 1 || this.$attrs.disabled;
|
|
2039
2332
|
}
|
|
2040
2333
|
},
|
|
2041
2334
|
components: {
|
|
2042
|
-
'
|
|
2043
|
-
'CalendarButton': Button__default['default']
|
|
2335
|
+
'CalendarButton': Button__default["default"]
|
|
2044
2336
|
},
|
|
2045
2337
|
directives: {
|
|
2046
|
-
'ripple': Ripple__default[
|
|
2338
|
+
'ripple': Ripple__default["default"]
|
|
2047
2339
|
}
|
|
2048
2340
|
};
|
|
2049
2341
|
|
|
@@ -2052,37 +2344,37 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2052
2344
|
const _hoisted_3 = /*#__PURE__*/vue.createVNode("span", { class: "p-datepicker-prev-icon pi pi-chevron-left" }, null, -1);
|
|
2053
2345
|
const _hoisted_4 = { class: "p-datepicker-title" };
|
|
2054
2346
|
const _hoisted_5 = {
|
|
2055
|
-
key: 0,
|
|
2056
|
-
class: "p-datepicker-month"
|
|
2057
|
-
};
|
|
2058
|
-
const _hoisted_6 = {
|
|
2059
2347
|
key: 2,
|
|
2060
|
-
class: "p-datepicker-
|
|
2348
|
+
class: "p-datepicker-decade"
|
|
2061
2349
|
};
|
|
2062
|
-
const
|
|
2063
|
-
const
|
|
2350
|
+
const _hoisted_6 = /*#__PURE__*/vue.createVNode("span", { class: "p-datepicker-next-icon pi pi-chevron-right" }, null, -1);
|
|
2351
|
+
const _hoisted_7 = {
|
|
2064
2352
|
key: 0,
|
|
2065
2353
|
class: "p-datepicker-calendar-container"
|
|
2066
2354
|
};
|
|
2067
|
-
const
|
|
2068
|
-
const
|
|
2355
|
+
const _hoisted_8 = { class: "p-datepicker-calendar" };
|
|
2356
|
+
const _hoisted_9 = {
|
|
2069
2357
|
key: 0,
|
|
2070
2358
|
scope: "col",
|
|
2071
2359
|
class: "p-datepicker-weekheader p-disabled"
|
|
2072
2360
|
};
|
|
2073
|
-
const
|
|
2361
|
+
const _hoisted_10 = {
|
|
2074
2362
|
key: 0,
|
|
2075
2363
|
class: "p-datepicker-weeknumber"
|
|
2076
2364
|
};
|
|
2077
|
-
const
|
|
2078
|
-
const
|
|
2365
|
+
const _hoisted_11 = { class: "p-disabled" };
|
|
2366
|
+
const _hoisted_12 = {
|
|
2079
2367
|
key: 0,
|
|
2080
2368
|
style: {"visibility":"hidden"}
|
|
2081
2369
|
};
|
|
2082
|
-
const
|
|
2370
|
+
const _hoisted_13 = {
|
|
2083
2371
|
key: 0,
|
|
2084
2372
|
class: "p-monthpicker"
|
|
2085
2373
|
};
|
|
2374
|
+
const _hoisted_14 = {
|
|
2375
|
+
key: 1,
|
|
2376
|
+
class: "p-yearpicker"
|
|
2377
|
+
};
|
|
2086
2378
|
const _hoisted_15 = {
|
|
2087
2379
|
key: 1,
|
|
2088
2380
|
class: "p-timepicker"
|
|
@@ -2120,7 +2412,6 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2120
2412
|
};
|
|
2121
2413
|
|
|
2122
2414
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2123
|
-
const _component_CalendarInputText = vue.resolveComponent("CalendarInputText");
|
|
2124
2415
|
const _component_CalendarButton = vue.resolveComponent("CalendarButton");
|
|
2125
2416
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
2126
2417
|
|
|
@@ -2130,21 +2421,20 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2130
2421
|
style: $props.style
|
|
2131
2422
|
}, [
|
|
2132
2423
|
(!$props.inline)
|
|
2133
|
-
? (vue.openBlock(), vue.createBlock(
|
|
2424
|
+
? (vue.openBlock(), vue.createBlock("input", vue.mergeProps({
|
|
2134
2425
|
key: 0,
|
|
2135
|
-
ref:
|
|
2136
|
-
type: "text"
|
|
2426
|
+
ref: $options.inputRef,
|
|
2427
|
+
type: "text",
|
|
2428
|
+
class: ['p-inputtext p-component', $props.inputClass],
|
|
2429
|
+
style: $props.inputStyle,
|
|
2430
|
+
onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
|
|
2137
2431
|
}, _ctx.$attrs, {
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
onBlur: $options.onBlur,
|
|
2142
|
-
onKeydown: $options.onKeyDown,
|
|
2432
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
|
|
2433
|
+
onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
|
|
2434
|
+
onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
|
|
2143
2435
|
readonly: !$props.manualInput,
|
|
2144
|
-
inputmode: "none"
|
|
2145
|
-
|
|
2146
|
-
style: $props.inputStyle
|
|
2147
|
-
}), null, 16, ["value", "onInput", "onFocus", "onBlur", "onKeydown", "readonly", "class", "style"]))
|
|
2436
|
+
inputmode: "none"
|
|
2437
|
+
}), null, 16, ["readonly"]))
|
|
2148
2438
|
: vue.createCommentVNode("", true),
|
|
2149
2439
|
($props.showIcon)
|
|
2150
2440
|
? (vue.openBlock(), vue.createBlock(_component_CalendarButton, {
|
|
@@ -2164,7 +2454,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2164
2454
|
}, [
|
|
2165
2455
|
vue.createVNode(vue.Transition, {
|
|
2166
2456
|
name: "p-connected-overlay",
|
|
2167
|
-
onEnter: _cache[
|
|
2457
|
+
onEnter: _cache[67] || (_cache[67] = $event => ($options.onOverlayEnter($event))),
|
|
2168
2458
|
onAfterEnter: $options.onOverlayEnterComplete,
|
|
2169
2459
|
onAfterLeave: $options.onOverlayAfterLeave,
|
|
2170
2460
|
onLeave: $options.onOverlayLeave
|
|
@@ -2176,7 +2466,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2176
2466
|
ref: $options.overlayRef,
|
|
2177
2467
|
class: $options.panelStyleClass,
|
|
2178
2468
|
role: $props.inline ? null : 'dialog',
|
|
2179
|
-
onClick: _cache[
|
|
2469
|
+
onClick: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
|
|
2470
|
+
onMouseup: _cache[66] || (_cache[66] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
|
|
2180
2471
|
}, [
|
|
2181
2472
|
(!$props.timeOnly)
|
|
2182
2473
|
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -2188,80 +2479,67 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2188
2479
|
}, [
|
|
2189
2480
|
vue.createVNode("div", _hoisted_2, [
|
|
2190
2481
|
vue.renderSlot(_ctx.$slots, "header"),
|
|
2191
|
-
(
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
])
|
|
2204
|
-
: vue.createCommentVNode("", true),
|
|
2482
|
+
vue.withDirectives(vue.createVNode("button", {
|
|
2483
|
+
class: "p-datepicker-prev p-link",
|
|
2484
|
+
onClick: _cache[5] || (_cache[5] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
|
|
2485
|
+
type: "button",
|
|
2486
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2487
|
+
disabled: _ctx.$attrs.disabled
|
|
2488
|
+
}, [
|
|
2489
|
+
_hoisted_3
|
|
2490
|
+
], 40, ["disabled"]), [
|
|
2491
|
+
[vue.vShow, groupIndex === 0],
|
|
2492
|
+
[_directive_ripple]
|
|
2493
|
+
]),
|
|
2205
2494
|
vue.createVNode("div", _hoisted_4, [
|
|
2206
|
-
(
|
|
2207
|
-
? (vue.openBlock(), vue.createBlock("
|
|
2495
|
+
($data.currentView === 'date')
|
|
2496
|
+
? (vue.openBlock(), vue.createBlock("button", {
|
|
2497
|
+
key: 0,
|
|
2498
|
+
type: "button",
|
|
2499
|
+
onClick: _cache[7] || (_cache[7] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
|
|
2500
|
+
onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2501
|
+
class: "p-datepicker-month p-link",
|
|
2502
|
+
disabled: $options.switchViewButtonDisabled
|
|
2503
|
+
}, vue.toDisplayString($options.getMonthName(month.month)), 41, ["disabled"]))
|
|
2208
2504
|
: vue.createCommentVNode("", true),
|
|
2209
|
-
($
|
|
2210
|
-
? (vue.openBlock(), vue.createBlock("
|
|
2505
|
+
($data.currentView !== 'year')
|
|
2506
|
+
? (vue.openBlock(), vue.createBlock("button", {
|
|
2211
2507
|
key: 1,
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
key: monthName,
|
|
2219
|
-
selected: index === month.month
|
|
2220
|
-
}, vue.toDisplayString(monthName), 9, ["value", "selected"]))
|
|
2221
|
-
}), 128))
|
|
2222
|
-
], 32))
|
|
2508
|
+
type: "button",
|
|
2509
|
+
onClick: _cache[9] || (_cache[9] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
|
|
2510
|
+
onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2511
|
+
class: "p-datepicker-year p-link",
|
|
2512
|
+
disabled: $options.switchViewButtonDisabled
|
|
2513
|
+
}, vue.toDisplayString($options.getYear(month)), 41, ["disabled"]))
|
|
2223
2514
|
: vue.createCommentVNode("", true),
|
|
2224
|
-
(
|
|
2225
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
class: "p-datepicker-year",
|
|
2231
|
-
onChange: _cache[4] || (_cache[4] = $event => ($options.onYearDropdownChange($event.target.value)))
|
|
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))
|
|
2515
|
+
($data.currentView === 'year')
|
|
2516
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_5, [
|
|
2517
|
+
vue.renderSlot(_ctx.$slots, "decade", { years: $options.yearPickerValues }, () => [
|
|
2518
|
+
vue.createTextVNode(vue.toDisplayString($options.yearPickerValues[0]) + " - " + vue.toDisplayString($options.yearPickerValues[$options.yearPickerValues.length - 1]), 1)
|
|
2519
|
+
])
|
|
2520
|
+
]))
|
|
2241
2521
|
: vue.createCommentVNode("", true)
|
|
2242
2522
|
]),
|
|
2243
|
-
(
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
])
|
|
2256
|
-
: vue.createCommentVNode("", true)
|
|
2523
|
+
vue.withDirectives(vue.createVNode("button", {
|
|
2524
|
+
class: "p-datepicker-next p-link",
|
|
2525
|
+
onClick: _cache[11] || (_cache[11] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
|
|
2526
|
+
type: "button",
|
|
2527
|
+
onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2528
|
+
disabled: _ctx.$attrs.disabled
|
|
2529
|
+
}, [
|
|
2530
|
+
_hoisted_6
|
|
2531
|
+
], 40, ["disabled"]), [
|
|
2532
|
+
[vue.vShow, $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1)],
|
|
2533
|
+
[_directive_ripple]
|
|
2534
|
+
])
|
|
2257
2535
|
]),
|
|
2258
|
-
($
|
|
2259
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
2260
|
-
vue.createVNode("table",
|
|
2536
|
+
($data.currentView ==='date')
|
|
2537
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_7, [
|
|
2538
|
+
vue.createVNode("table", _hoisted_8, [
|
|
2261
2539
|
vue.createVNode("thead", null, [
|
|
2262
2540
|
vue.createVNode("tr", null, [
|
|
2263
2541
|
($props.showWeek)
|
|
2264
|
-
? (vue.openBlock(), vue.createBlock("th",
|
|
2542
|
+
? (vue.openBlock(), vue.createBlock("th", _hoisted_9, [
|
|
2265
2543
|
vue.createVNode("span", null, vue.toDisplayString($options.weekHeaderLabel), 1)
|
|
2266
2544
|
]))
|
|
2267
2545
|
: vue.createCommentVNode("", true),
|
|
@@ -2281,10 +2559,10 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2281
2559
|
key: week[0].day + '' + week[0].month
|
|
2282
2560
|
}, [
|
|
2283
2561
|
($props.showWeek)
|
|
2284
|
-
? (vue.openBlock(), vue.createBlock("td",
|
|
2285
|
-
vue.createVNode("span",
|
|
2562
|
+
? (vue.openBlock(), vue.createBlock("td", _hoisted_10, [
|
|
2563
|
+
vue.createVNode("span", _hoisted_11, [
|
|
2286
2564
|
(month.weekNumbers[i] < 10)
|
|
2287
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
2565
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_12, "0"))
|
|
2288
2566
|
: vue.createCommentVNode("", true),
|
|
2289
2567
|
vue.createTextVNode(" " + vue.toDisplayString(month.weekNumbers[i]), 1)
|
|
2290
2568
|
])
|
|
@@ -2318,8 +2596,8 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2318
2596
|
]))
|
|
2319
2597
|
}), 128))
|
|
2320
2598
|
]),
|
|
2321
|
-
($
|
|
2322
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
2599
|
+
($data.currentView === 'month')
|
|
2600
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_13, [
|
|
2323
2601
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.monthPickerValues, (m, i) => {
|
|
2324
2602
|
return vue.withDirectives((vue.openBlock(), vue.createBlock("span", {
|
|
2325
2603
|
key: m,
|
|
@@ -2333,6 +2611,22 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2333
2611
|
])
|
|
2334
2612
|
}), 128))
|
|
2335
2613
|
]))
|
|
2614
|
+
: vue.createCommentVNode("", true),
|
|
2615
|
+
($data.currentView === 'year')
|
|
2616
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_14, [
|
|
2617
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.yearPickerValues, (y) => {
|
|
2618
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock("span", {
|
|
2619
|
+
key: y,
|
|
2620
|
+
onClick: $event => ($options.onYearSelect($event, y)),
|
|
2621
|
+
onKeydown: $event => ($options.onYearCellKeydown($event,y)),
|
|
2622
|
+
class: ["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}]
|
|
2623
|
+
}, [
|
|
2624
|
+
vue.createTextVNode(vue.toDisplayString(y), 1)
|
|
2625
|
+
], 42, ["onClick", "onKeydown"])), [
|
|
2626
|
+
[_directive_ripple]
|
|
2627
|
+
])
|
|
2628
|
+
}), 128))
|
|
2629
|
+
]))
|
|
2336
2630
|
: vue.createCommentVNode("", true)
|
|
2337
2631
|
], 64))
|
|
2338
2632
|
: vue.createCommentVNode("", true),
|
|
@@ -2341,14 +2635,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2341
2635
|
vue.createVNode("div", _hoisted_16, [
|
|
2342
2636
|
vue.withDirectives(vue.createVNode("button", {
|
|
2343
2637
|
class: "p-link",
|
|
2344
|
-
onMousedown: _cache[
|
|
2345
|
-
onMouseup: _cache[
|
|
2638
|
+
onMousedown: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
|
|
2639
|
+
onMouseup: _cache[14] || (_cache[14] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2346
2640
|
onKeydown: [
|
|
2347
|
-
_cache[
|
|
2348
|
-
_cache[
|
|
2641
|
+
_cache[15] || (_cache[15] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2642
|
+
_cache[17] || (_cache[17] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
|
|
2643
|
+
_cache[18] || (_cache[18] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
|
|
2644
|
+
],
|
|
2645
|
+
onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2646
|
+
onKeyup: [
|
|
2647
|
+
_cache[19] || (_cache[19] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2648
|
+
_cache[20] || (_cache[20] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2349
2649
|
],
|
|
2350
|
-
onMouseleave: _cache[10] || (_cache[10] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2351
|
-
onKeyup: _cache[12] || (_cache[12] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2352
2650
|
type: "button"
|
|
2353
2651
|
}, [
|
|
2354
2652
|
_hoisted_17
|
|
@@ -2358,14 +2656,18 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2358
2656
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentHour), 1),
|
|
2359
2657
|
vue.withDirectives(vue.createVNode("button", {
|
|
2360
2658
|
class: "p-link",
|
|
2361
|
-
onMousedown: _cache[
|
|
2362
|
-
onMouseup: _cache[
|
|
2659
|
+
onMousedown: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
|
|
2660
|
+
onMouseup: _cache[22] || (_cache[22] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2363
2661
|
onKeydown: [
|
|
2364
|
-
_cache[
|
|
2365
|
-
_cache[
|
|
2662
|
+
_cache[23] || (_cache[23] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2663
|
+
_cache[25] || (_cache[25] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
|
|
2664
|
+
_cache[26] || (_cache[26] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
|
|
2665
|
+
],
|
|
2666
|
+
onMouseleave: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2667
|
+
onKeyup: [
|
|
2668
|
+
_cache[27] || (_cache[27] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2669
|
+
_cache[28] || (_cache[28] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2366
2670
|
],
|
|
2367
|
-
onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2368
|
-
onKeyup: _cache[18] || (_cache[18] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2369
2671
|
type: "button"
|
|
2370
2672
|
}, [
|
|
2371
2673
|
_hoisted_18
|
|
@@ -2379,15 +2681,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2379
2681
|
vue.createVNode("div", _hoisted_20, [
|
|
2380
2682
|
vue.withDirectives(vue.createVNode("button", {
|
|
2381
2683
|
class: "p-link",
|
|
2382
|
-
onMousedown: _cache[
|
|
2383
|
-
onMouseup: _cache[
|
|
2684
|
+
onMousedown: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
|
|
2685
|
+
onMouseup: _cache[30] || (_cache[30] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2384
2686
|
onKeydown: [
|
|
2385
|
-
_cache[
|
|
2386
|
-
_cache[
|
|
2687
|
+
_cache[31] || (_cache[31] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2688
|
+
_cache[33] || (_cache[33] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
|
|
2689
|
+
_cache[34] || (_cache[34] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
|
|
2387
2690
|
],
|
|
2388
2691
|
disabled: _ctx.$attrs.disabled,
|
|
2389
|
-
onMouseleave: _cache[
|
|
2390
|
-
onKeyup:
|
|
2692
|
+
onMouseleave: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2693
|
+
onKeyup: [
|
|
2694
|
+
_cache[35] || (_cache[35] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2695
|
+
_cache[36] || (_cache[36] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2696
|
+
],
|
|
2391
2697
|
type: "button"
|
|
2392
2698
|
}, [
|
|
2393
2699
|
_hoisted_21
|
|
@@ -2397,15 +2703,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2397
2703
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentMinute), 1),
|
|
2398
2704
|
vue.withDirectives(vue.createVNode("button", {
|
|
2399
2705
|
class: "p-link",
|
|
2400
|
-
onMousedown: _cache[
|
|
2401
|
-
onMouseup: _cache[
|
|
2706
|
+
onMousedown: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
|
|
2707
|
+
onMouseup: _cache[38] || (_cache[38] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2402
2708
|
onKeydown: [
|
|
2403
|
-
_cache[
|
|
2404
|
-
_cache[
|
|
2709
|
+
_cache[39] || (_cache[39] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2710
|
+
_cache[41] || (_cache[41] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
|
|
2711
|
+
_cache[42] || (_cache[42] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
|
|
2405
2712
|
],
|
|
2406
2713
|
disabled: _ctx.$attrs.disabled,
|
|
2407
|
-
onMouseleave: _cache[
|
|
2408
|
-
onKeyup:
|
|
2714
|
+
onMouseleave: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2715
|
+
onKeyup: [
|
|
2716
|
+
_cache[43] || (_cache[43] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2717
|
+
_cache[44] || (_cache[44] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2718
|
+
],
|
|
2409
2719
|
type: "button"
|
|
2410
2720
|
}, [
|
|
2411
2721
|
_hoisted_22
|
|
@@ -2422,15 +2732,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2422
2732
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_24, [
|
|
2423
2733
|
vue.withDirectives(vue.createVNode("button", {
|
|
2424
2734
|
class: "p-link",
|
|
2425
|
-
onMousedown: _cache[
|
|
2426
|
-
onMouseup: _cache[
|
|
2735
|
+
onMousedown: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
|
|
2736
|
+
onMouseup: _cache[46] || (_cache[46] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2427
2737
|
onKeydown: [
|
|
2428
|
-
_cache[
|
|
2429
|
-
_cache[
|
|
2738
|
+
_cache[47] || (_cache[47] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2739
|
+
_cache[49] || (_cache[49] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
|
|
2740
|
+
_cache[50] || (_cache[50] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
|
|
2430
2741
|
],
|
|
2431
2742
|
disabled: _ctx.$attrs.disabled,
|
|
2432
|
-
onMouseleave: _cache[
|
|
2433
|
-
onKeyup:
|
|
2743
|
+
onMouseleave: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2744
|
+
onKeyup: [
|
|
2745
|
+
_cache[51] || (_cache[51] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2746
|
+
_cache[52] || (_cache[52] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2747
|
+
],
|
|
2434
2748
|
type: "button"
|
|
2435
2749
|
}, [
|
|
2436
2750
|
_hoisted_25
|
|
@@ -2440,15 +2754,19 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2440
2754
|
vue.createVNode("span", null, vue.toDisplayString($options.formattedCurrentSecond), 1),
|
|
2441
2755
|
vue.withDirectives(vue.createVNode("button", {
|
|
2442
2756
|
class: "p-link",
|
|
2443
|
-
onMousedown: _cache[
|
|
2444
|
-
onMouseup: _cache[
|
|
2757
|
+
onMousedown: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
|
|
2758
|
+
onMouseup: _cache[54] || (_cache[54] = $event => ($options.onTimePickerElementMouseUp($event))),
|
|
2445
2759
|
onKeydown: [
|
|
2446
|
-
_cache[
|
|
2447
|
-
_cache[
|
|
2760
|
+
_cache[55] || (_cache[55] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
|
|
2761
|
+
_cache[57] || (_cache[57] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
|
|
2762
|
+
_cache[58] || (_cache[58] = vue.withKeys($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
|
|
2448
2763
|
],
|
|
2449
2764
|
disabled: _ctx.$attrs.disabled,
|
|
2450
|
-
onMouseleave: _cache[
|
|
2451
|
-
onKeyup:
|
|
2765
|
+
onMouseleave: _cache[56] || (_cache[56] = $event => ($options.onTimePickerElementMouseLeave())),
|
|
2766
|
+
onKeyup: [
|
|
2767
|
+
_cache[59] || (_cache[59] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
|
|
2768
|
+
_cache[60] || (_cache[60] = vue.withKeys($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
|
|
2769
|
+
],
|
|
2452
2770
|
type: "button"
|
|
2453
2771
|
}, [
|
|
2454
2772
|
_hoisted_26
|
|
@@ -2466,7 +2784,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2466
2784
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_28, [
|
|
2467
2785
|
vue.withDirectives(vue.createVNode("button", {
|
|
2468
2786
|
class: "p-link",
|
|
2469
|
-
onClick: _cache[
|
|
2787
|
+
onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
|
|
2470
2788
|
type: "button",
|
|
2471
2789
|
disabled: _ctx.$attrs.disabled
|
|
2472
2790
|
}, [
|
|
@@ -2477,7 +2795,7 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2477
2795
|
vue.createVNode("span", null, vue.toDisplayString($data.pm ? 'PM' : 'AM'), 1),
|
|
2478
2796
|
vue.withDirectives(vue.createVNode("button", {
|
|
2479
2797
|
class: "p-link",
|
|
2480
|
-
onClick: _cache[
|
|
2798
|
+
onClick: _cache[62] || (_cache[62] = $event => ($options.toggleAMPM($event))),
|
|
2481
2799
|
type: "button",
|
|
2482
2800
|
disabled: _ctx.$attrs.disabled
|
|
2483
2801
|
}, [
|
|
@@ -2494,21 +2812,21 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2494
2812
|
vue.createVNode(_component_CalendarButton, {
|
|
2495
2813
|
type: "button",
|
|
2496
2814
|
label: $options.todayLabel,
|
|
2497
|
-
onClick: _cache[
|
|
2815
|
+
onClick: _cache[63] || (_cache[63] = $event => ($options.onTodayButtonClick($event))),
|
|
2498
2816
|
class: "p-button-text",
|
|
2499
2817
|
onKeydown: $options.onContainerButtonKeydown
|
|
2500
2818
|
}, null, 8, ["label", "onKeydown"]),
|
|
2501
2819
|
vue.createVNode(_component_CalendarButton, {
|
|
2502
2820
|
type: "button",
|
|
2503
2821
|
label: $options.clearLabel,
|
|
2504
|
-
onClick: _cache[
|
|
2822
|
+
onClick: _cache[64] || (_cache[64] = $event => ($options.onClearButtonClick($event))),
|
|
2505
2823
|
class: "p-button-text",
|
|
2506
2824
|
onKeydown: $options.onContainerButtonKeydown
|
|
2507
2825
|
}, null, 8, ["label", "onKeydown"])
|
|
2508
2826
|
]))
|
|
2509
2827
|
: vue.createCommentVNode("", true),
|
|
2510
2828
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
2511
|
-
],
|
|
2829
|
+
], 42, ["role"]))
|
|
2512
2830
|
: vue.createCommentVNode("", true)
|
|
2513
2831
|
]),
|
|
2514
2832
|
_: 3
|
|
@@ -2544,11 +2862,11 @@ this.primevue.calendar = (function (utils, OverlayEventBus, InputText, Button, R
|
|
|
2544
2862
|
}
|
|
2545
2863
|
}
|
|
2546
2864
|
|
|
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:
|
|
2865
|
+
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
2866
|
styleInject(css_248z);
|
|
2549
2867
|
|
|
2550
2868
|
script.render = render;
|
|
2551
2869
|
|
|
2552
2870
|
return script;
|
|
2553
2871
|
|
|
2554
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.
|
|
2872
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.button, primevue.ripple, Vue);
|