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.vue
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span ref="container" :class="containerClass" :style="style">
|
|
3
|
-
<
|
|
4
|
-
|
|
3
|
+
<input :ref="inputRef" v-if="!inline" type="text" :class="['p-inputtext p-component', inputClass]" :style="inputStyle" @input="onInput" v-bind="$attrs"
|
|
4
|
+
@focus="onFocus" @blur="onBlur" @keydown="onKeyDown" :readonly="!manualInput" inputmode="none">
|
|
5
5
|
<CalendarButton v-if="showIcon" :icon="icon" tabindex="-1" class="p-datepicker-trigger" :disabled="$attrs.disabled" @click="onButtonClick" type="button" :aria-label="inputFieldValue"/>
|
|
6
6
|
<Teleport :to="appendTarget" :disabled="appendDisabled">
|
|
7
7
|
<transition name="p-connected-overlay" @enter="onOverlayEnter($event)" @after-enter="onOverlayEnterComplete" @after-leave="onOverlayAfterLeave" @leave="onOverlayLeave">
|
|
8
|
-
<div :ref="overlayRef" :class="panelStyleClass" v-if="inline ? true : overlayVisible" :role="inline ? null : 'dialog'" @click="onOverlayClick">
|
|
8
|
+
<div :ref="overlayRef" :class="panelStyleClass" v-if="inline ? true : overlayVisible" :role="inline ? null : 'dialog'" @click="onOverlayClick" @mouseup="onOverlayMouseUp">
|
|
9
9
|
<template v-if="!timeOnly">
|
|
10
10
|
<div class="p-datepicker-group-container">
|
|
11
11
|
<div class="p-datepicker-group" v-for="(month,groupIndex) of months" :key="month.month + month.year">
|
|
12
12
|
<div class="p-datepicker-header">
|
|
13
13
|
<slot name="header"></slot>
|
|
14
|
-
<button class="p-datepicker-prev p-link" v-
|
|
14
|
+
<button class="p-datepicker-prev p-link" v-show="groupIndex === 0" @click="onPrevButtonClick" type="button" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled">
|
|
15
15
|
<span class="p-datepicker-prev-icon pi pi-chevron-left"></span>
|
|
16
16
|
</button>
|
|
17
17
|
<div class="p-datepicker-title">
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
<button type="button" @click="switchToMonthView" @keydown="onContainerButtonKeydown" v-if="currentView === 'date'" class="p-datepicker-month p-link" :disabled="switchViewButtonDisabled">
|
|
19
|
+
{{getMonthName(month.month)}}
|
|
20
|
+
</button>
|
|
21
|
+
<button type="button" @click="switchToYearView" @keydown="onContainerButtonKeydown" v-if="currentView !== 'year'" class="p-datepicker-year p-link" :disabled="switchViewButtonDisabled">
|
|
22
|
+
{{getYear(month)}}
|
|
23
|
+
</button>
|
|
24
|
+
<span class="p-datepicker-decade" v-if="currentView === 'year'">
|
|
25
|
+
<slot name="decade" :years="yearPickerValues">
|
|
26
|
+
{{yearPickerValues[0]}} - {{yearPickerValues[yearPickerValues.length - 1]}}
|
|
27
|
+
</slot>
|
|
28
|
+
</span>
|
|
26
29
|
</div>
|
|
27
|
-
<button class="p-datepicker-next p-link" v-
|
|
30
|
+
<button class="p-datepicker-next p-link" v-show="numberOfMonths === 1 ? true : (groupIndex === numberOfMonths - 1)"
|
|
28
31
|
@click="onNextButtonClick" type="button" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled">
|
|
29
32
|
<span class="p-datepicker-next-icon pi pi-chevron-right"></span>
|
|
30
33
|
</button>
|
|
31
34
|
</div>
|
|
32
|
-
<div class="p-datepicker-calendar-container" v-if="
|
|
35
|
+
<div class="p-datepicker-calendar-container" v-if="currentView ==='date'">
|
|
33
36
|
<table class="p-datepicker-calendar">
|
|
34
37
|
<thead>
|
|
35
38
|
<tr>
|
|
@@ -61,22 +64,28 @@
|
|
|
61
64
|
</div>
|
|
62
65
|
</div>
|
|
63
66
|
</div>
|
|
64
|
-
<div class="p-monthpicker" v-if="
|
|
67
|
+
<div class="p-monthpicker" v-if="currentView === 'month'">
|
|
65
68
|
<span v-for="(m,i) of monthPickerValues" :key="m" @click="onMonthSelect($event, i)" @keydown="onMonthCellKeydown($event,i)"
|
|
66
69
|
class="p-monthpicker-month" :class="{'p-highlight': isMonthSelected(i)}" v-ripple>
|
|
67
70
|
{{m}}
|
|
68
71
|
</span>
|
|
69
72
|
</div>
|
|
73
|
+
<div class="p-yearpicker" v-if="currentView === 'year'">
|
|
74
|
+
<span v-for="y of yearPickerValues" :key="y" @click="onYearSelect($event, y)" @keydown="onYearCellKeydown($event,y)"
|
|
75
|
+
class="p-yearpicker-year" :class="{'p-highlight': isYearSelected(y)}" v-ripple>
|
|
76
|
+
{{y}}
|
|
77
|
+
</span>
|
|
78
|
+
</div>
|
|
70
79
|
</template>
|
|
71
80
|
<div class="p-timepicker" v-if="showTime||timeOnly">
|
|
72
81
|
<div class="p-hour-picker">
|
|
73
82
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 0, 1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple
|
|
74
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 0, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
83
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 0, 1)" @keydown.space="onTimePickerElementMouseDown($event, 0, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
75
84
|
<span class="pi pi-chevron-up"></span>
|
|
76
85
|
</button>
|
|
77
86
|
<span>{{formattedCurrentHour}}</span>
|
|
78
87
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 0, -1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple
|
|
79
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 0, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
88
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 0, -1)" @keydown.space="onTimePickerElementMouseDown($event, 0, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
80
89
|
<span class="pi pi-chevron-down"></span>
|
|
81
90
|
</button>
|
|
82
91
|
</div>
|
|
@@ -85,12 +94,12 @@
|
|
|
85
94
|
</div>
|
|
86
95
|
<div class="p-minute-picker">
|
|
87
96
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 1, 1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled"
|
|
88
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
97
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, 1)" @keydown.space="onTimePickerElementMouseDown($event, 1, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
89
98
|
<span class="pi pi-chevron-up"></span>
|
|
90
99
|
</button>
|
|
91
100
|
<span>{{formattedCurrentMinute}}</span>
|
|
92
101
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 1, -1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled"
|
|
93
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
102
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 1, -1)" @keydown.space="onTimePickerElementMouseDown($event, 1, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
94
103
|
<span class="pi pi-chevron-down"></span>
|
|
95
104
|
</button>
|
|
96
105
|
</div>
|
|
@@ -99,12 +108,12 @@
|
|
|
99
108
|
</div>
|
|
100
109
|
<div class="p-second-picker" v-if="showSeconds">
|
|
101
110
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 2, 1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled"
|
|
102
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 2, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
111
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 2, 1)" @keydown.space="onTimePickerElementMouseDown($event, 2, 1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
103
112
|
<span class="pi pi-chevron-up"></span>
|
|
104
113
|
</button>
|
|
105
114
|
<span>{{formattedCurrentSecond}}</span>
|
|
106
115
|
<button class="p-link" @mousedown="onTimePickerElementMouseDown($event, 2, -1)" @mouseup="onTimePickerElementMouseUp($event)" @keydown="onContainerButtonKeydown" v-ripple :disabled="$attrs.disabled"
|
|
107
|
-
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 2, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" type="button">
|
|
116
|
+
@mouseleave="onTimePickerElementMouseLeave()" @keydown.enter="onTimePickerElementMouseDown($event, 2, -1)" @keydown.space="onTimePickerElementMouseDown($event, 2, -1)" @keyup.enter="onTimePickerElementMouseUp($event)" @keyup.space="onTimePickerElementMouseUp($event)" type="button">
|
|
108
117
|
<span class="pi pi-chevron-down"></span>
|
|
109
118
|
</button>
|
|
110
119
|
</div>
|
|
@@ -133,9 +142,8 @@
|
|
|
133
142
|
</template>
|
|
134
143
|
|
|
135
144
|
<script>
|
|
136
|
-
import {ConnectedOverlayScrollHandler,DomHandler,ZIndexUtils} from 'primevue/utils';
|
|
145
|
+
import {ConnectedOverlayScrollHandler,DomHandler,ZIndexUtils,UniqueComponentId} from 'primevue/utils';
|
|
137
146
|
import OverlayEventBus from 'primevue/overlayeventbus';
|
|
138
|
-
import InputText from 'primevue/inputtext';
|
|
139
147
|
import Button from 'primevue/button';
|
|
140
148
|
import Ripple from 'primevue/ripple';
|
|
141
149
|
|
|
@@ -177,6 +185,7 @@ export default {
|
|
|
177
185
|
type: Number,
|
|
178
186
|
default: 1
|
|
179
187
|
},
|
|
188
|
+
responsiveOptions: Array,
|
|
180
189
|
view: {
|
|
181
190
|
type: String,
|
|
182
191
|
default: 'date'
|
|
@@ -289,40 +298,53 @@ export default {
|
|
|
289
298
|
type: String,
|
|
290
299
|
default: 'body'
|
|
291
300
|
},
|
|
292
|
-
keepInvalid: {
|
|
293
|
-
type: Boolean,
|
|
294
|
-
default: false
|
|
295
|
-
},
|
|
296
301
|
inputClass: null,
|
|
297
302
|
inputStyle: null,
|
|
298
303
|
class: null,
|
|
299
304
|
style: null
|
|
300
305
|
},
|
|
301
306
|
navigationState: null,
|
|
307
|
+
timePickerChange: false,
|
|
302
308
|
scrollHandler: null,
|
|
303
309
|
outsideClickListener: null,
|
|
304
310
|
maskClickListener: null,
|
|
305
311
|
resizeListener: null,
|
|
306
312
|
overlay: null,
|
|
313
|
+
input: null,
|
|
307
314
|
mask: null,
|
|
308
315
|
timePickerTimer: null,
|
|
309
|
-
|
|
316
|
+
preventFocus: false,
|
|
317
|
+
typeUpdate: false,
|
|
310
318
|
created() {
|
|
311
319
|
this.updateCurrentMetaData();
|
|
312
320
|
},
|
|
313
321
|
mounted() {
|
|
314
|
-
|
|
315
|
-
|
|
322
|
+
this.createResponsiveStyle();
|
|
323
|
+
|
|
324
|
+
if (this.inline) {
|
|
325
|
+
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
326
|
+
|
|
327
|
+
if (!this.$attrs.disabled) {
|
|
328
|
+
this.initFocusableCell();
|
|
329
|
+
|
|
330
|
+
if (this.numberOfMonths === 1) {
|
|
331
|
+
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
this.input.value = this.formatValue(this.modelValue);
|
|
316
337
|
}
|
|
317
338
|
},
|
|
318
339
|
updated() {
|
|
319
340
|
if (this.overlay) {
|
|
341
|
+
this.preventFocus = true;
|
|
320
342
|
this.updateFocus();
|
|
321
343
|
}
|
|
322
344
|
|
|
323
|
-
if (this
|
|
324
|
-
this
|
|
325
|
-
this
|
|
345
|
+
if (this.input && this.selectionStart != null && this.selectionEnd != null) {
|
|
346
|
+
this.input.selectionStart = this.selectionStart;
|
|
347
|
+
this.input.selectionEnd = this.selectionEnd;
|
|
326
348
|
this.selectionStart = null;
|
|
327
349
|
this.selectionEnd = null;
|
|
328
350
|
}
|
|
@@ -333,8 +355,9 @@ export default {
|
|
|
333
355
|
}
|
|
334
356
|
|
|
335
357
|
if (this.mask) {
|
|
336
|
-
|
|
358
|
+
this.destroyMask();
|
|
337
359
|
}
|
|
360
|
+
this.destroyResponsiveStyleElement();
|
|
338
361
|
|
|
339
362
|
this.unbindOutsideClickListener();
|
|
340
363
|
this.unbindResizeListener();
|
|
@@ -358,20 +381,35 @@ export default {
|
|
|
358
381
|
currentSecond: null,
|
|
359
382
|
pm: null,
|
|
360
383
|
focused: false,
|
|
361
|
-
overlayVisible: false
|
|
384
|
+
overlayVisible: false,
|
|
385
|
+
currentView: this.view
|
|
362
386
|
}
|
|
363
387
|
},
|
|
364
388
|
watch: {
|
|
365
|
-
modelValue() {
|
|
389
|
+
modelValue(newValue) {
|
|
366
390
|
this.updateCurrentMetaData();
|
|
391
|
+
if (!this.typeUpdate && !this.inline && this.input) {
|
|
392
|
+
this.input.value = this.formatValue(newValue);
|
|
393
|
+
}
|
|
394
|
+
this.typeUpdate = false;
|
|
367
395
|
},
|
|
368
396
|
showTime() {
|
|
369
397
|
this.updateCurrentMetaData();
|
|
370
398
|
},
|
|
371
399
|
months() {
|
|
372
400
|
if (this.overlay) {
|
|
373
|
-
|
|
401
|
+
if (!this.focused) {
|
|
402
|
+
setTimeout(this.updateFocus, 0);
|
|
403
|
+
}
|
|
374
404
|
}
|
|
405
|
+
},
|
|
406
|
+
numberOfMonths() {
|
|
407
|
+
this.destroyResponsiveStyleElement();
|
|
408
|
+
this.createResponsiveStyle();
|
|
409
|
+
},
|
|
410
|
+
responsiveOptions() {
|
|
411
|
+
this.destroyResponsiveStyleElement();
|
|
412
|
+
this.createResponsiveStyle();
|
|
375
413
|
}
|
|
376
414
|
},
|
|
377
415
|
methods: {
|
|
@@ -411,7 +449,22 @@ export default {
|
|
|
411
449
|
return false;
|
|
412
450
|
},
|
|
413
451
|
isMonthSelected(month) {
|
|
414
|
-
|
|
452
|
+
if (this.isComparable()) {
|
|
453
|
+
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
454
|
+
|
|
455
|
+
return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return false;
|
|
459
|
+
},
|
|
460
|
+
isYearSelected(year) {
|
|
461
|
+
if (this.isComparable()) {
|
|
462
|
+
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
463
|
+
|
|
464
|
+
return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
return false;
|
|
415
468
|
},
|
|
416
469
|
isDateEquals(value, dateMeta) {
|
|
417
470
|
if (value)
|
|
@@ -537,12 +590,15 @@ export default {
|
|
|
537
590
|
return validMin && validMax && validDate && validDay;
|
|
538
591
|
},
|
|
539
592
|
onOverlayEnter(el) {
|
|
593
|
+
el.setAttribute(this.attributeSelector, '');
|
|
594
|
+
|
|
540
595
|
if (this.autoZIndex) {
|
|
541
596
|
if (this.touchUI)
|
|
542
597
|
ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
|
|
543
598
|
else
|
|
544
599
|
ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
|
|
545
600
|
}
|
|
601
|
+
|
|
546
602
|
this.alignOverlay();
|
|
547
603
|
this.$emit('show');
|
|
548
604
|
},
|
|
@@ -557,6 +613,7 @@ export default {
|
|
|
557
613
|
}
|
|
558
614
|
},
|
|
559
615
|
onOverlayLeave() {
|
|
616
|
+
this.currentView = this.view;
|
|
560
617
|
this.unbindOutsideClickListener();
|
|
561
618
|
this.unbindScrollListener();
|
|
562
619
|
this.unbindResizeListener();
|
|
@@ -587,9 +644,12 @@ export default {
|
|
|
587
644
|
return;
|
|
588
645
|
}
|
|
589
646
|
|
|
590
|
-
if (this.
|
|
647
|
+
if (this.currentView === 'month') {
|
|
591
648
|
this.decrementYear();
|
|
592
649
|
}
|
|
650
|
+
else if (this.currentView === 'year') {
|
|
651
|
+
this.decrementDecade();
|
|
652
|
+
}
|
|
593
653
|
else {
|
|
594
654
|
if (this.currentMonth === 0) {
|
|
595
655
|
this.currentMonth = 11;
|
|
@@ -609,9 +669,12 @@ export default {
|
|
|
609
669
|
return;
|
|
610
670
|
}
|
|
611
671
|
|
|
612
|
-
if (this.
|
|
672
|
+
if (this.currentView === 'month') {
|
|
613
673
|
this.incrementYear();
|
|
614
674
|
}
|
|
675
|
+
else if (this.currentView === 'year') {
|
|
676
|
+
this.incrementDecade();
|
|
677
|
+
}
|
|
615
678
|
else {
|
|
616
679
|
if (this.currentMonth === 11) {
|
|
617
680
|
this.currentMonth = 0;
|
|
@@ -627,9 +690,25 @@ export default {
|
|
|
627
690
|
decrementYear() {
|
|
628
691
|
this.currentYear--;
|
|
629
692
|
},
|
|
693
|
+
decrementDecade() {
|
|
694
|
+
this.currentYear = this.currentYear - 10;
|
|
695
|
+
},
|
|
630
696
|
incrementYear() {
|
|
631
697
|
this.currentYear++;
|
|
632
698
|
},
|
|
699
|
+
incrementDecade() {
|
|
700
|
+
this.currentYear = this.currentYear + 10;
|
|
701
|
+
},
|
|
702
|
+
switchToMonthView(event) {
|
|
703
|
+
this.currentView = 'month';
|
|
704
|
+
setTimeout(this.updateFocus, 0);
|
|
705
|
+
event.preventDefault();
|
|
706
|
+
},
|
|
707
|
+
switchToYearView(event) {
|
|
708
|
+
this.currentView = 'year';
|
|
709
|
+
setTimeout(this.updateFocus, 0);
|
|
710
|
+
event.preventDefault();
|
|
711
|
+
},
|
|
633
712
|
isEnabled() {
|
|
634
713
|
return !this.$attrs.disabled && !this.$attrs.readonly;
|
|
635
714
|
},
|
|
@@ -714,7 +793,14 @@ export default {
|
|
|
714
793
|
DomHandler.relativePosition(this.overlay, this.$el);
|
|
715
794
|
}
|
|
716
795
|
else {
|
|
717
|
-
|
|
796
|
+
if (this.view === 'date') {
|
|
797
|
+
this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
|
|
798
|
+
this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
|
|
802
|
+
}
|
|
803
|
+
|
|
718
804
|
DomHandler.absolutePosition(this.overlay, this.$el);
|
|
719
805
|
}
|
|
720
806
|
}
|
|
@@ -722,7 +808,7 @@ export default {
|
|
|
722
808
|
onButtonClick() {
|
|
723
809
|
if (this.isEnabled()) {
|
|
724
810
|
if (!this.overlayVisible) {
|
|
725
|
-
this
|
|
811
|
+
this.input.focus();
|
|
726
812
|
this.overlayVisible = true;
|
|
727
813
|
}
|
|
728
814
|
else {
|
|
@@ -1115,12 +1201,10 @@ export default {
|
|
|
1115
1201
|
}
|
|
1116
1202
|
return hours;
|
|
1117
1203
|
},
|
|
1118
|
-
|
|
1119
|
-
let value = this.modelValue;
|
|
1204
|
+
validateTime(hour, minute, second, pm) {
|
|
1205
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1120
1206
|
const convertedHour = this.convertTo24Hour(hour, pm);
|
|
1121
|
-
|
|
1122
|
-
return true;
|
|
1123
|
-
}
|
|
1207
|
+
|
|
1124
1208
|
if (this.isRangeSelection()) {
|
|
1125
1209
|
value = this.modelValue[1] || this.modelValue[0];
|
|
1126
1210
|
}
|
|
@@ -1166,7 +1250,6 @@ export default {
|
|
|
1166
1250
|
let newHour = this.currentHour + this.stepHour;
|
|
1167
1251
|
let newPM = this.pm;
|
|
1168
1252
|
|
|
1169
|
-
|
|
1170
1253
|
if (this.hourFormat == '24')
|
|
1171
1254
|
newHour = (newHour >= 24) ? (newHour - 24) : newHour;
|
|
1172
1255
|
else if (this.hourFormat == '12') {
|
|
@@ -1177,7 +1260,6 @@ export default {
|
|
|
1177
1260
|
newHour = (newHour >= 13) ? (newHour - 12) : newHour;
|
|
1178
1261
|
}
|
|
1179
1262
|
|
|
1180
|
-
|
|
1181
1263
|
if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
|
|
1182
1264
|
this.currentHour = newHour;
|
|
1183
1265
|
this.pm = newPM;
|
|
@@ -1237,7 +1319,8 @@ export default {
|
|
|
1237
1319
|
event.preventDefault();
|
|
1238
1320
|
},
|
|
1239
1321
|
updateModelTime() {
|
|
1240
|
-
|
|
1322
|
+
this.timePickerChange = true;
|
|
1323
|
+
let value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1241
1324
|
|
|
1242
1325
|
if (this.isRangeSelection()) {
|
|
1243
1326
|
value = this.modelValue[1] || this.modelValue[0];
|
|
@@ -1273,6 +1356,7 @@ export default {
|
|
|
1273
1356
|
|
|
1274
1357
|
this.updateModel(value);
|
|
1275
1358
|
this.$emit('date-select', value);
|
|
1359
|
+
setTimeout(() => this.timePickerChange = false, 0);
|
|
1276
1360
|
},
|
|
1277
1361
|
toggleAMPM(event) {
|
|
1278
1362
|
this.pm = !this.pm;
|
|
@@ -1285,7 +1369,28 @@ export default {
|
|
|
1285
1369
|
}
|
|
1286
1370
|
},
|
|
1287
1371
|
onMonthSelect(event, index) {
|
|
1288
|
-
this.
|
|
1372
|
+
if (this.view === 'month') {
|
|
1373
|
+
this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
|
|
1374
|
+
}
|
|
1375
|
+
else {
|
|
1376
|
+
this.currentMonth = index;
|
|
1377
|
+
this.currentView = 'date';
|
|
1378
|
+
this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
setTimeout(this.updateFocus, 0);
|
|
1382
|
+
},
|
|
1383
|
+
onYearSelect(event, year) {
|
|
1384
|
+
if (this.view === 'year') {
|
|
1385
|
+
this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
|
|
1386
|
+
}
|
|
1387
|
+
else {
|
|
1388
|
+
this.currentYear = year;
|
|
1389
|
+
this.currentView = 'month';
|
|
1390
|
+
this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
setTimeout(this.updateFocus, 0);
|
|
1289
1394
|
},
|
|
1290
1395
|
enableModality() {
|
|
1291
1396
|
if (!this.mask) {
|
|
@@ -1340,6 +1445,10 @@ export default {
|
|
|
1340
1445
|
}
|
|
1341
1446
|
},
|
|
1342
1447
|
isValidSelection(value) {
|
|
1448
|
+
if (value == null) {
|
|
1449
|
+
return true;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1343
1452
|
let isValid = true;
|
|
1344
1453
|
if (this.isSingleSelection()) {
|
|
1345
1454
|
if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
|
|
@@ -1508,7 +1617,7 @@ export default {
|
|
|
1508
1617
|
iValue++;
|
|
1509
1618
|
};
|
|
1510
1619
|
|
|
1511
|
-
if (this.
|
|
1620
|
+
if (this.currentView === 'month') {
|
|
1512
1621
|
day = 1;
|
|
1513
1622
|
}
|
|
1514
1623
|
|
|
@@ -1703,7 +1812,9 @@ export default {
|
|
|
1703
1812
|
}
|
|
1704
1813
|
|
|
1705
1814
|
//enter
|
|
1706
|
-
|
|
1815
|
+
//space
|
|
1816
|
+
case 13:
|
|
1817
|
+
case 32: {
|
|
1707
1818
|
this.onDateSelect(event, date);
|
|
1708
1819
|
event.preventDefault();
|
|
1709
1820
|
break;
|
|
@@ -1737,7 +1848,7 @@ export default {
|
|
|
1737
1848
|
}
|
|
1738
1849
|
else {
|
|
1739
1850
|
let prevMonthContainer = this.overlay.children[groupIndex - 1];
|
|
1740
|
-
let cells = DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1851
|
+
let cells = DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1741
1852
|
let focusCell = cells[cells.length - 1];
|
|
1742
1853
|
focusCell.tabIndex = '0';
|
|
1743
1854
|
focusCell.focus();
|
|
@@ -1750,7 +1861,7 @@ export default {
|
|
|
1750
1861
|
}
|
|
1751
1862
|
else {
|
|
1752
1863
|
let nextMonthContainer = this.overlay.children[groupIndex + 1];
|
|
1753
|
-
let focusCell = DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1864
|
+
let focusCell = DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
1754
1865
|
focusCell.tabIndex = '0';
|
|
1755
1866
|
focusCell.focus();
|
|
1756
1867
|
}
|
|
@@ -1783,6 +1894,10 @@ export default {
|
|
|
1783
1894
|
prevCell.tabIndex = '0';
|
|
1784
1895
|
prevCell.focus();
|
|
1785
1896
|
}
|
|
1897
|
+
else {
|
|
1898
|
+
this.navigationState = {backward: true};
|
|
1899
|
+
this.navBackward(event);
|
|
1900
|
+
}
|
|
1786
1901
|
event.preventDefault();
|
|
1787
1902
|
break;
|
|
1788
1903
|
}
|
|
@@ -1795,12 +1910,18 @@ export default {
|
|
|
1795
1910
|
nextCell.tabIndex = '0';
|
|
1796
1911
|
nextCell.focus();
|
|
1797
1912
|
}
|
|
1913
|
+
else {
|
|
1914
|
+
this.navigationState = {backward: false};
|
|
1915
|
+
this.navForward(event);
|
|
1916
|
+
}
|
|
1798
1917
|
event.preventDefault();
|
|
1799
1918
|
break;
|
|
1800
1919
|
}
|
|
1801
1920
|
|
|
1802
1921
|
//enter
|
|
1803
|
-
|
|
1922
|
+
//space
|
|
1923
|
+
case 13:
|
|
1924
|
+
case 32: {
|
|
1804
1925
|
this.onMonthSelect(event, index);
|
|
1805
1926
|
event.preventDefault();
|
|
1806
1927
|
break;
|
|
@@ -1824,8 +1945,87 @@ export default {
|
|
|
1824
1945
|
break;
|
|
1825
1946
|
}
|
|
1826
1947
|
},
|
|
1948
|
+
onYearCellKeydown(event, index) {
|
|
1949
|
+
const cell = event.currentTarget;
|
|
1950
|
+
|
|
1951
|
+
switch (event.which) {
|
|
1952
|
+
//arrows
|
|
1953
|
+
case 38:
|
|
1954
|
+
case 40: {
|
|
1955
|
+
cell.tabIndex = '-1';
|
|
1956
|
+
var cells = cell.parentElement.children;
|
|
1957
|
+
var cellIndex = DomHandler.index(cell);
|
|
1958
|
+
let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
|
|
1959
|
+
if (nextCell) {
|
|
1960
|
+
nextCell.tabIndex = '0';
|
|
1961
|
+
nextCell.focus();
|
|
1962
|
+
}
|
|
1963
|
+
event.preventDefault();
|
|
1964
|
+
break;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
//left arrow
|
|
1968
|
+
case 37: {
|
|
1969
|
+
cell.tabIndex = '-1';
|
|
1970
|
+
let prevCell = cell.previousElementSibling;
|
|
1971
|
+
if (prevCell) {
|
|
1972
|
+
prevCell.tabIndex = '0';
|
|
1973
|
+
prevCell.focus();
|
|
1974
|
+
}
|
|
1975
|
+
else {
|
|
1976
|
+
this.navigationState = {backward: true};
|
|
1977
|
+
this.navBackward(event);
|
|
1978
|
+
}
|
|
1979
|
+
event.preventDefault();
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
//right arrow
|
|
1984
|
+
case 39: {
|
|
1985
|
+
cell.tabIndex = '-1';
|
|
1986
|
+
let nextCell = cell.nextElementSibling;
|
|
1987
|
+
if (nextCell) {
|
|
1988
|
+
nextCell.tabIndex = '0';
|
|
1989
|
+
nextCell.focus();
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
this.navigationState = {backward: false};
|
|
1993
|
+
this.navForward(event);
|
|
1994
|
+
}
|
|
1995
|
+
event.preventDefault();
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
//enter
|
|
2000
|
+
//space
|
|
2001
|
+
case 13:
|
|
2002
|
+
case 32: {
|
|
2003
|
+
this.onYearSelect(event, index);
|
|
2004
|
+
event.preventDefault();
|
|
2005
|
+
break;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
//escape
|
|
2009
|
+
case 27: {
|
|
2010
|
+
this.overlayVisible = false;
|
|
2011
|
+
event.preventDefault();
|
|
2012
|
+
break;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
//tab
|
|
2016
|
+
case 9: {
|
|
2017
|
+
this.trapFocus(event);
|
|
2018
|
+
break;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
default:
|
|
2022
|
+
//no op
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
1827
2026
|
updateFocus() {
|
|
1828
2027
|
let cell;
|
|
2028
|
+
|
|
1829
2029
|
if (this.navigationState) {
|
|
1830
2030
|
if (this.navigationState.button) {
|
|
1831
2031
|
this.initFocusableCell();
|
|
@@ -1837,11 +2037,32 @@ export default {
|
|
|
1837
2037
|
}
|
|
1838
2038
|
else {
|
|
1839
2039
|
if (this.navigationState.backward) {
|
|
1840
|
-
let cells
|
|
1841
|
-
|
|
2040
|
+
let cells;
|
|
2041
|
+
|
|
2042
|
+
if (this.currentView === 'month') {
|
|
2043
|
+
cells = DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
2044
|
+
}
|
|
2045
|
+
else if (this.currentView === 'year') {
|
|
2046
|
+
cells = DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
2047
|
+
}
|
|
2048
|
+
else {
|
|
2049
|
+
cells = DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
if (cells && cells.length > 0) {
|
|
2053
|
+
cell = cells[cells.length - 1];
|
|
2054
|
+
}
|
|
1842
2055
|
}
|
|
1843
2056
|
else {
|
|
1844
|
-
|
|
2057
|
+
if (this.currentView === 'month') {
|
|
2058
|
+
cell = DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
|
|
2059
|
+
}
|
|
2060
|
+
else if (this.currentView === 'year') {
|
|
2061
|
+
cell = DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
|
|
2062
|
+
}
|
|
2063
|
+
else {
|
|
2064
|
+
cell = DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
|
2065
|
+
}
|
|
1845
2066
|
}
|
|
1846
2067
|
|
|
1847
2068
|
if (cell) {
|
|
@@ -1859,25 +2080,37 @@ export default {
|
|
|
1859
2080
|
initFocusableCell() {
|
|
1860
2081
|
let cell;
|
|
1861
2082
|
|
|
1862
|
-
if (this.
|
|
2083
|
+
if (this.currentView === 'month') {
|
|
1863
2084
|
let cells = DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
|
|
1864
2085
|
let selectedCell= DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
|
|
1865
2086
|
cells.forEach(cell => cell.tabIndex = -1);
|
|
1866
2087
|
cell = selectedCell || cells[0];
|
|
1867
2088
|
}
|
|
2089
|
+
else if (this.currentView === 'year') {
|
|
2090
|
+
let cells = DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
|
|
2091
|
+
let selectedCell= DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
|
|
2092
|
+
cells.forEach(cell => cell.tabIndex = -1);
|
|
2093
|
+
cell = selectedCell || cells[0];
|
|
2094
|
+
}
|
|
1868
2095
|
else {
|
|
1869
2096
|
cell = DomHandler.findSingle(this.overlay, 'span.p-highlight');
|
|
1870
2097
|
if (!cell) {
|
|
1871
|
-
let todayCell = DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled)');
|
|
2098
|
+
let todayCell = DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
|
|
1872
2099
|
if (todayCell)
|
|
1873
2100
|
cell = todayCell;
|
|
1874
2101
|
else
|
|
1875
|
-
cell = DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
2102
|
+
cell = DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
|
|
1876
2103
|
}
|
|
1877
2104
|
}
|
|
1878
2105
|
|
|
1879
2106
|
if (cell) {
|
|
1880
2107
|
cell.tabIndex = '0';
|
|
2108
|
+
|
|
2109
|
+
if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
|
|
2110
|
+
cell.focus();
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
this.preventFocus = false;
|
|
1881
2114
|
}
|
|
1882
2115
|
},
|
|
1883
2116
|
trapFocus(event) {
|
|
@@ -1925,25 +2158,18 @@ export default {
|
|
|
1925
2158
|
}
|
|
1926
2159
|
},
|
|
1927
2160
|
onInput(event) {
|
|
1928
|
-
// IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
|
|
1929
|
-
if (!this.isKeydown) {
|
|
1930
|
-
return;
|
|
1931
|
-
}
|
|
1932
|
-
this.isKeydown = false;
|
|
1933
|
-
|
|
1934
2161
|
try {
|
|
1935
|
-
this.selectionStart = this
|
|
1936
|
-
this.selectionEnd = this
|
|
2162
|
+
this.selectionStart = this.input.selectionStart;
|
|
2163
|
+
this.selectionEnd = this.input.selectionEnd;
|
|
1937
2164
|
|
|
1938
2165
|
let value = this.parseValue(event.target.value);
|
|
1939
2166
|
if (this.isValidSelection(value)) {
|
|
2167
|
+
this.typeUpdate = true;
|
|
1940
2168
|
this.updateModel(value);
|
|
1941
2169
|
}
|
|
1942
2170
|
}
|
|
1943
2171
|
catch(err) {
|
|
1944
|
-
|
|
1945
|
-
let value = this.keepInvalid ? event.target.value : null;
|
|
1946
|
-
this.updateModel(value);
|
|
2172
|
+
/* NoOp */
|
|
1947
2173
|
}
|
|
1948
2174
|
},
|
|
1949
2175
|
onFocus() {
|
|
@@ -1954,9 +2180,9 @@ export default {
|
|
|
1954
2180
|
},
|
|
1955
2181
|
onBlur() {
|
|
1956
2182
|
this.focused = false;
|
|
2183
|
+
this.input.value = this.formatValue(this.modelValue);
|
|
1957
2184
|
},
|
|
1958
|
-
onKeyDown(
|
|
1959
|
-
this.isKeydown = true;
|
|
2185
|
+
onKeyDown() {
|
|
1960
2186
|
if (event.keyCode === 40 && this.overlay) {
|
|
1961
2187
|
this.trapFocus(event);
|
|
1962
2188
|
}
|
|
@@ -1979,9 +2205,15 @@ export default {
|
|
|
1979
2205
|
overlayRef(el) {
|
|
1980
2206
|
this.overlay = el;
|
|
1981
2207
|
},
|
|
2208
|
+
inputRef(el) {
|
|
2209
|
+
this.input = el;
|
|
2210
|
+
},
|
|
1982
2211
|
getMonthName(index) {
|
|
1983
2212
|
return this.$primevue.config.locale.monthNames[index];
|
|
1984
2213
|
},
|
|
2214
|
+
getYear(month) {
|
|
2215
|
+
return this.currentView === 'month' ? this.currentYear : month.year;
|
|
2216
|
+
},
|
|
1985
2217
|
onOverlayClick(event) {
|
|
1986
2218
|
if (!this.inline) {
|
|
1987
2219
|
OverlayEventBus.emit('overlay-click', {
|
|
@@ -1989,23 +2221,81 @@ export default {
|
|
|
1989
2221
|
target: this.$el
|
|
1990
2222
|
});
|
|
1991
2223
|
}
|
|
2224
|
+
},
|
|
2225
|
+
onOverlayMouseUp(event) {
|
|
2226
|
+
this.onOverlayClick(event);
|
|
2227
|
+
},
|
|
2228
|
+
createResponsiveStyle() {
|
|
2229
|
+
if (this.numberOfMonths > 1 && this.responsiveOptions) {
|
|
2230
|
+
if (!this.responsiveStyleElement) {
|
|
2231
|
+
this.responsiveStyleElement = document.createElement('style');
|
|
2232
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
2233
|
+
document.body.appendChild(this.responsiveStyleElement);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
let innerHTML = '';
|
|
2237
|
+
if (this.responsiveOptions) {
|
|
2238
|
+
let responsiveOptions = [...this.responsiveOptions]
|
|
2239
|
+
.filter(o => !!(o.breakpoint && o.numMonths))
|
|
2240
|
+
.sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
|
|
2241
|
+
|
|
2242
|
+
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2243
|
+
let { breakpoint, numMonths } = responsiveOptions[i];
|
|
2244
|
+
let styles = `
|
|
2245
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
|
|
2246
|
+
display: inline-flex !important;
|
|
2247
|
+
}
|
|
2248
|
+
`;
|
|
2249
|
+
|
|
2250
|
+
for (let j = numMonths; j < this.numberOfMonths; j++) {
|
|
2251
|
+
styles += `
|
|
2252
|
+
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
|
|
2253
|
+
display: none !important;
|
|
2254
|
+
}
|
|
2255
|
+
`
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
innerHTML += `
|
|
2259
|
+
@media screen and (max-width: ${breakpoint}) {
|
|
2260
|
+
${styles}
|
|
2261
|
+
}
|
|
2262
|
+
`
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
destroyResponsiveStyleElement() {
|
|
2270
|
+
if (this.responsiveStyleElement) {
|
|
2271
|
+
this.responsiveStyleElement.remove();
|
|
2272
|
+
this.responsiveStyleElement = null;
|
|
2273
|
+
}
|
|
1992
2274
|
}
|
|
1993
2275
|
},
|
|
1994
2276
|
computed: {
|
|
1995
2277
|
viewDate() {
|
|
1996
2278
|
let propValue = this.modelValue;
|
|
1997
|
-
if (typeof propValue === 'string') {
|
|
1998
|
-
return new Date();
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
2279
|
if (propValue && Array.isArray(propValue)) {
|
|
2002
2280
|
propValue = propValue[0];
|
|
2003
2281
|
}
|
|
2004
2282
|
|
|
2005
|
-
|
|
2283
|
+
if (propValue && typeof propValue !== 'string') {
|
|
2284
|
+
return propValue;
|
|
2285
|
+
}
|
|
2286
|
+
else {
|
|
2287
|
+
let today = new Date();
|
|
2288
|
+
if (this.maxDate && this.maxDate < today) {
|
|
2289
|
+
return this.maxDate;
|
|
2290
|
+
}
|
|
2291
|
+
if (this.minDate && this.minDate > today) {
|
|
2292
|
+
return this.minDate;
|
|
2293
|
+
}
|
|
2294
|
+
return today;
|
|
2295
|
+
}
|
|
2006
2296
|
},
|
|
2007
2297
|
inputFieldValue() {
|
|
2008
|
-
return this.
|
|
2298
|
+
return this.formatValue(this.modelValue);
|
|
2009
2299
|
},
|
|
2010
2300
|
containerClass() {
|
|
2011
2301
|
return [
|
|
@@ -2024,7 +2314,8 @@ export default {
|
|
|
2024
2314
|
'p-disabled': this.$attrs.disabled,
|
|
2025
2315
|
'p-datepicker-timeonly': this.timeOnly,
|
|
2026
2316
|
'p-datepicker-multiple-month': this.numberOfMonths > 1,
|
|
2027
|
-
'p-datepicker-monthpicker': (this.
|
|
2317
|
+
'p-datepicker-monthpicker': (this.currentView === 'month'),
|
|
2318
|
+
'p-datepicker-yearpicker': (this.currentView === 'year'),
|
|
2028
2319
|
'p-datepicker-touch-ui': this.touchUI,
|
|
2029
2320
|
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
2030
2321
|
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
@@ -2152,6 +2443,15 @@ export default {
|
|
|
2152
2443
|
|
|
2153
2444
|
return monthPickerValues;
|
|
2154
2445
|
},
|
|
2446
|
+
yearPickerValues() {
|
|
2447
|
+
let yearPickerValues = [];
|
|
2448
|
+
let base = this.currentYear - (this.currentYear % 10);
|
|
2449
|
+
for (let i = 0; i < 10; i++) {
|
|
2450
|
+
yearPickerValues.push(base + i);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
return yearPickerValues;
|
|
2454
|
+
},
|
|
2155
2455
|
formattedCurrentHour() {
|
|
2156
2456
|
return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
|
|
2157
2457
|
},
|
|
@@ -2178,10 +2478,15 @@ export default {
|
|
|
2178
2478
|
},
|
|
2179
2479
|
appendTarget() {
|
|
2180
2480
|
return this.appendDisabled ? null : this.appendTo;
|
|
2481
|
+
},
|
|
2482
|
+
attributeSelector() {
|
|
2483
|
+
return UniqueComponentId();
|
|
2484
|
+
},
|
|
2485
|
+
switchViewButtonDisabled() {
|
|
2486
|
+
return this.numberOfMonths > 1 || this.$attrs.disabled;
|
|
2181
2487
|
}
|
|
2182
2488
|
},
|
|
2183
2489
|
components: {
|
|
2184
|
-
'CalendarInputText': InputText,
|
|
2185
2490
|
'CalendarButton': Button
|
|
2186
2491
|
},
|
|
2187
2492
|
directives: {
|
|
@@ -2194,6 +2499,7 @@ export default {
|
|
|
2194
2499
|
.p-calendar {
|
|
2195
2500
|
position: relative;
|
|
2196
2501
|
display: inline-flex;
|
|
2502
|
+
max-width: 100%;
|
|
2197
2503
|
}
|
|
2198
2504
|
|
|
2199
2505
|
.p-calendar .p-inputtext {
|
|
@@ -2233,8 +2539,9 @@ export default {
|
|
|
2233
2539
|
}
|
|
2234
2540
|
|
|
2235
2541
|
.p-datepicker-inline {
|
|
2236
|
-
display: inline-
|
|
2542
|
+
display: inline-block;
|
|
2237
2543
|
position: static;
|
|
2544
|
+
overflow-x: auto;
|
|
2238
2545
|
}
|
|
2239
2546
|
|
|
2240
2547
|
/* Header */
|
|
@@ -2263,6 +2570,10 @@ export default {
|
|
|
2263
2570
|
display: flex;
|
|
2264
2571
|
}
|
|
2265
2572
|
|
|
2573
|
+
.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {
|
|
2574
|
+
flex: 1 1 auto;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2266
2577
|
/* DatePicker Table */
|
|
2267
2578
|
.p-datepicker table {
|
|
2268
2579
|
width: 100%;
|
|
@@ -2290,6 +2601,17 @@ export default {
|
|
|
2290
2601
|
position: relative;
|
|
2291
2602
|
}
|
|
2292
2603
|
|
|
2604
|
+
/* Year Picker */
|
|
2605
|
+
.p-yearpicker-year {
|
|
2606
|
+
width: 50%;
|
|
2607
|
+
display: inline-flex;
|
|
2608
|
+
align-items: center;
|
|
2609
|
+
justify-content: center;
|
|
2610
|
+
cursor: pointer;
|
|
2611
|
+
overflow: hidden;
|
|
2612
|
+
position: relative;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2293
2615
|
/* Button Bar */
|
|
2294
2616
|
.p-datepicker-buttonbar {
|
|
2295
2617
|
display: flex;
|