primereact 6.6.0 → 7.0.1
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 +34 -9
- package/accordion/accordion.cjs.js +32 -23
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +3 -2
- package/accordion/accordion.esm.js +17 -8
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +32 -24
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +374 -42
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +126 -32
- package/api/api.esm.js +371 -43
- package/api/api.esm.min.js +1 -1
- package/api/api.js +374 -44
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +79 -69
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +3 -1
- package/autocomplete/autocomplete.esm.js +15 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +75 -70
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +12 -9
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -1
- package/avatar/avatar.esm.js +7 -4
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +13 -10
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +5 -3
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +6 -4
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +5 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +6 -4
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +19 -13
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +7 -2
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +18 -14
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +18 -16
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +3 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +19 -17
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +44 -53
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +33 -42
- package/button/button.esm.min.js +1 -1
- package/button/button.js +43 -54
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +183 -153
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -1
- package/calendar/calendar.esm.js +57 -27
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +179 -154
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +3 -1
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.js +2 -0
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +4 -2
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +15 -13
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +16 -14
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +39 -36
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +4 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -37
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +53 -47
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +8 -2
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +50 -48
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +8 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +7 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +22 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -1
- package/checkbox/checkbox.esm.js +15 -8
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +22 -16
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +18 -14
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +3 -4
- package/chip/chip.esm.js +13 -9
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +19 -15
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +48 -20
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +10 -0
- package/chips/chips.esm.js +39 -11
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +48 -21
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -31
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +8 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +34 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +34 -9
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +168 -13
- package/column/column.esm.js +34 -9
- package/column/column.esm.min.js +1 -1
- package/column/column.js +35 -10
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.js +2 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +2 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +3 -1
- package/columngroup/columngroup.min.js +1 -1
- package/common/common.min.css +1 -1
- package/confirmdialog/confirmdialog.cjs.js +24 -20
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +4 -3
- package/confirmdialog/confirmdialog.esm.js +8 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +24 -21
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +47 -40
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +4 -3
- package/confirmpopup/confirmpopup.esm.js +12 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +44 -40
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +70 -63
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -31
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +67 -64
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +11745 -1573
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +3 -1
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +2 -0
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -2
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +14 -11
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +6 -3
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +14 -12
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +4784 -3277
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +100 -29
- package/datatable/datatable.esm.js +4859 -3353
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +4777 -3278
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +34 -29
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +8 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +33 -30
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +2 -0
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -2
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +68 -51
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -0
- package/dialog/dialog.esm.js +22 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +65 -52
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +6 -4
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +7 -5
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +53 -17
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +13 -0
- package/dock/dock.esm.js +41 -5
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +53 -18
- package/dock/dock.min.css +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +90 -76
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +28 -14
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +86 -77
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +40 -40
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +4 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +39 -37
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +19 -15
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +5 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +18 -16
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +65 -56
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +2 -1
- package/fileupload/fileupload.esm.js +26 -17
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +65 -57
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +8 -8
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +3 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +7 -5
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +72 -65
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +8 -2
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +69 -66
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +3 -1
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.js +2 -0
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +4 -2
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +33 -27
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +5 -5
- package/image/image.esm.js +7 -2
- package/image/image.esm.min.js +1 -1
- package/image/image.js +31 -28
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +10 -8
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +11 -9
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +11 -8
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +4 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +11 -9
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +50 -29
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +33 -12
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +49 -30
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +17 -12
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +10 -5
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +17 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +14 -10
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +5 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +13 -11
- package/inputtext/inputtext.min.css +1 -1
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +12 -9
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +4 -1
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +12 -10
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +5 -5
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +1 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +6 -6
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +9 -7
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +3 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +10 -8
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +44 -39
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +9 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +42 -40
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +38 -35
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +4 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +38 -36
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +55 -46
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +10 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +50 -47
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +35 -28
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -0
- package/menu/menu.esm.js +8 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +32 -29
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +40 -35
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +6 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +39 -36
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +11 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +3 -1
- package/message/message.esm.js +5 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +12 -9
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +21 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +5 -1
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +20 -18
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +132 -118
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -2
- package/multiselect/multiselect.esm.js +47 -33
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +128 -119
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +16 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +16 -14
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +37 -34
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +37 -35
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +28 -26
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +3 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +29 -27
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +33 -24
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +10 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -25
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.cjs.js +2 -2
- package/overlayservice/overlayservice.cjs.min.js +1 -1
- package/overlayservice/overlayservice.esm.js +1 -1
- package/overlayservice/overlayservice.esm.min.js +1 -1
- package/overlayservice/overlayservice.js +3 -3
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +10 -4
- package/paginator/paginator.cjs.js +51 -48
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +5 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +51 -49
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +21 -17
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +5 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -18
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +42 -39
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +4 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +42 -40
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +35 -29
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +8 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +32 -30
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +60 -54
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +16 -10
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +60 -55
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +7 -3
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +6 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +8 -4
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +8041 -5835
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6905 -4701
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +8040 -5832
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +11 -9
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +12 -10
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +7 -5
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +8 -6
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +12 -9
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +4 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +12 -10
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +12 -9
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +6 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +12 -10
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +430 -238
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +158 -27
- package/resources/themes/arya-green/theme.css +158 -27
- package/resources/themes/arya-orange/theme.css +158 -27
- package/resources/themes/arya-purple/theme.css +158 -27
- package/resources/themes/bootstrap4-dark-blue/theme.css +162 -31
- package/resources/themes/bootstrap4-dark-purple/theme.css +162 -31
- package/resources/themes/bootstrap4-light-blue/theme.css +162 -31
- package/resources/themes/bootstrap4-light-purple/theme.css +162 -31
- package/resources/themes/fluent-light/theme.css +158 -27
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5671 -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 +5671 -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 +5671 -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 +5671 -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 +5671 -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 +5671 -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 +5671 -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 +5671 -0
- package/resources/themes/luna-amber/theme.css +162 -31
- package/resources/themes/luna-blue/theme.css +162 -31
- package/resources/themes/luna-green/theme.css +162 -31
- package/resources/themes/luna-pink/theme.css +162 -31
- package/resources/themes/md-dark-deeppurple/theme.css +347 -56
- package/resources/themes/md-dark-indigo/theme.css +347 -56
- package/resources/themes/md-light-deeppurple/theme.css +347 -56
- package/resources/themes/md-light-indigo/theme.css +347 -56
- package/resources/themes/mdc-dark-deeppurple/theme.css +347 -56
- package/resources/themes/mdc-dark-indigo/theme.css +347 -56
- package/resources/themes/mdc-light-deeppurple/theme.css +347 -56
- package/resources/themes/mdc-light-indigo/theme.css +347 -56
- package/resources/themes/nova/theme.css +162 -31
- package/resources/themes/nova-accent/theme.css +162 -31
- package/resources/themes/nova-alt/theme.css +162 -31
- package/resources/themes/rhea/theme.css +162 -31
- package/resources/themes/saga-blue/theme.css +158 -27
- package/resources/themes/saga-green/theme.css +158 -27
- package/resources/themes/saga-orange/theme.css +158 -27
- package/resources/themes/saga-purple/theme.css +158 -27
- package/resources/themes/tailwind-light/theme.css +162 -31
- package/resources/themes/vela-blue/theme.css +158 -27
- package/resources/themes/vela-green/theme.css +158 -27
- package/resources/themes/vela-orange/theme.css +158 -27
- package/resources/themes/vela-purple/theme.css +158 -27
- package/ripple/ripple.cjs.js +13 -11
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +5 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +14 -12
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +3 -1
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +2 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +4 -2
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +21 -19
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +22 -20
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +20 -13
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +2 -1
- package/scrolltop/scrolltop.esm.js +11 -5
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +18 -14
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +19 -15
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +5 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +18 -16
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +3 -1
- package/sidebar/sidebar.cjs.js +144 -116
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +2 -0
- package/sidebar/sidebar.esm.js +135 -108
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +141 -117
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +5 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +3 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +6 -4
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +39 -32
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +8 -2
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +36 -33
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +40 -23
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +32 -15
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +41 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +22 -19
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +3 -2
- package/speeddial/speeddial.esm.js +4 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +22 -20
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +39 -33
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +4 -5
- package/splitbutton/splitbutton.esm.js +8 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +36 -34
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +21 -19
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +4 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +22 -20
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +12 -10
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +13 -11
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +35 -39
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +20 -24
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +36 -40
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +18 -15
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +4 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +18 -16
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +177 -54
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +4 -1
- package/tabview/tabview.esm.js +146 -23
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +177 -55
- package/tabview/tabview.min.css +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +11 -8
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -1
- package/tag/tag.esm.js +7 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +12 -9
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +14 -12
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +15 -13
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.cjs.js +2 -2
- package/terminalservice/terminalservice.cjs.min.js +1 -1
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +3 -3
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +44 -36
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +9 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +40 -37
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +14 -12
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +3 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +15 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +48 -40
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +22 -15
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +46 -41
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +16 -9
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +3 -2
- package/togglebutton/togglebutton.esm.js +10 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +15 -10
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +9 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +10 -8
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +36 -31
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +6 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +35 -32
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +54 -51
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +9 -2
- package/tree/tree.esm.js +4 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +54 -52
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +3 -1
- package/treeselect/treeselect.cjs.js +52 -46
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +9 -2
- package/treeselect/treeselect.esm.js +11 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +49 -47
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1290 -272
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +9 -2
- package/treetable/treetable.esm.js +1213 -195
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1288 -273
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +13 -10
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +13 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +502 -525
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +29 -20
- package/utils/utils.esm.js +501 -524
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +503 -526
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +285 -168
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +21 -9
- package/virtualscroller/virtualscroller.esm.js +278 -161
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +286 -169
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +17 -27
- package/core/core.cjs.js +0 -3080
- package/core/core.cjs.min.js +0 -1
- package/core/core.esm.js +0 -3055
- package/core/core.esm.min.js +0 -1
- package/core/package.json +0 -5
package/calendar/calendar.cjs.js
CHANGED
|
@@ -5,8 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var inputtext = require('primereact/inputtext');
|
|
7
7
|
var button = require('primereact/button');
|
|
8
|
-
var
|
|
8
|
+
var csstransition = require('primereact/csstransition');
|
|
9
|
+
var portal = require('primereact/portal');
|
|
10
|
+
var utils = require('primereact/utils');
|
|
11
|
+
var tooltip = require('primereact/tooltip');
|
|
12
|
+
var ripple = require('primereact/ripple');
|
|
9
13
|
var PrimeReact = require('primereact/api');
|
|
14
|
+
var overlayservice = require('primereact/overlayservice');
|
|
10
15
|
|
|
11
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
17
|
|
|
@@ -139,6 +144,8 @@ function _inherits(subClass, superClass) {
|
|
|
139
144
|
function _possibleConstructorReturn(self, call) {
|
|
140
145
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
141
146
|
return call;
|
|
147
|
+
} else if (call !== void 0) {
|
|
148
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
return _assertThisInitialized(self);
|
|
@@ -184,7 +191,7 @@ var CalendarPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
184
191
|
_createClass(CalendarPanelComponent, [{
|
|
185
192
|
key: "renderElement",
|
|
186
193
|
value: function renderElement() {
|
|
187
|
-
return /*#__PURE__*/React__default[
|
|
194
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
188
195
|
nodeRef: this.props.forwardRef,
|
|
189
196
|
classNames: "p-connected-overlay",
|
|
190
197
|
in: this.props.in,
|
|
@@ -198,18 +205,19 @@ var CalendarPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
198
205
|
onEntered: this.props.onEntered,
|
|
199
206
|
onExit: this.props.onExit,
|
|
200
207
|
onExited: this.props.onExited
|
|
201
|
-
}, /*#__PURE__*/React__default[
|
|
208
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
202
209
|
ref: this.props.forwardRef,
|
|
203
210
|
className: this.props.className,
|
|
204
211
|
style: this.props.style,
|
|
205
|
-
onClick: this.props.onClick
|
|
212
|
+
onClick: this.props.onClick,
|
|
213
|
+
onMouseUp: this.props.onMouseUp
|
|
206
214
|
}, this.props.children));
|
|
207
215
|
}
|
|
208
216
|
}, {
|
|
209
217
|
key: "render",
|
|
210
218
|
value: function render() {
|
|
211
219
|
var element = this.renderElement();
|
|
212
|
-
return this.props.inline ? element : /*#__PURE__*/React__default[
|
|
220
|
+
return this.props.inline ? element : /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
213
221
|
element: element,
|
|
214
222
|
appendTo: this.props.appendTo
|
|
215
223
|
});
|
|
@@ -225,8 +233,8 @@ _defineProperty(CalendarPanelComponent, "defaultProps", {
|
|
|
225
233
|
className: null
|
|
226
234
|
});
|
|
227
235
|
|
|
228
|
-
var CalendarPanel = /*#__PURE__*/React__default[
|
|
229
|
-
return /*#__PURE__*/React__default[
|
|
236
|
+
var CalendarPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
237
|
+
return /*#__PURE__*/React__default["default"].createElement(CalendarPanelComponent, _extends({
|
|
230
238
|
forwardRef: ref
|
|
231
239
|
}, props));
|
|
232
240
|
});
|
|
@@ -261,13 +269,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
261
269
|
};
|
|
262
270
|
|
|
263
271
|
if (!_this.props.onViewDateChange) {
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
if (Array.isArray(propValue)) {
|
|
267
|
-
propValue = propValue[0];
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
var viewDate = _this.props.viewDate && _this.isValidDate(_this.props.viewDate) ? _this.props.viewDate : propValue && _this.isValidDate(propValue) ? propValue : new Date();
|
|
272
|
+
var viewDate = _this.getViewDate(_this.props.viewDate);
|
|
271
273
|
|
|
272
274
|
_this.validateDate(viewDate);
|
|
273
275
|
|
|
@@ -289,6 +291,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
289
291
|
_this.onTodayButtonClick = _this.onTodayButtonClick.bind(_assertThisInitialized(_this));
|
|
290
292
|
_this.onClearButtonClick = _this.onClearButtonClick.bind(_assertThisInitialized(_this));
|
|
291
293
|
_this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));
|
|
294
|
+
_this.onPanelMouseUp = _this.onPanelMouseUp.bind(_assertThisInitialized(_this));
|
|
292
295
|
_this.incrementHour = _this.incrementHour.bind(_assertThisInitialized(_this));
|
|
293
296
|
_this.decrementHour = _this.decrementHour.bind(_assertThisInitialized(_this));
|
|
294
297
|
_this.incrementMinute = _this.incrementMinute.bind(_assertThisInitialized(_this));
|
|
@@ -336,7 +339,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
336
339
|
if (this.props.inline) {
|
|
337
340
|
this.initFocusableCell();
|
|
338
341
|
} else if (this.props.mask) {
|
|
339
|
-
|
|
342
|
+
utils.mask(this.inputRef.current, {
|
|
340
343
|
mask: this.props.mask,
|
|
341
344
|
readOnly: this.props.readOnlyInput || this.props.disabled,
|
|
342
345
|
onChange: function onChange(e) {
|
|
@@ -417,12 +420,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
417
420
|
this.scrollHandler = null;
|
|
418
421
|
}
|
|
419
422
|
|
|
420
|
-
|
|
423
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
421
424
|
}
|
|
422
425
|
}, {
|
|
423
426
|
key: "renderTooltip",
|
|
424
427
|
value: function renderTooltip() {
|
|
425
|
-
this.tooltip =
|
|
428
|
+
this.tooltip = tooltip.tip({
|
|
426
429
|
target: this.inputRef.current,
|
|
427
430
|
content: this.props.tooltip,
|
|
428
431
|
options: this.props.tooltipOptions
|
|
@@ -573,7 +576,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
573
576
|
isValid = false;
|
|
574
577
|
}
|
|
575
578
|
} else if (value.every(function (v) {
|
|
576
|
-
return _this7.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && _this7.isSelectableTime(
|
|
579
|
+
return _this7.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && _this7.isSelectableTime(v);
|
|
577
580
|
})) {
|
|
578
581
|
if (this.isRangeSelection()) {
|
|
579
582
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -629,7 +632,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
629
632
|
key: "trapFocus",
|
|
630
633
|
value: function trapFocus(event) {
|
|
631
634
|
event.preventDefault();
|
|
632
|
-
var focusableElements =
|
|
635
|
+
var focusableElements = utils.DomHandler.getFocusableElements(this.overlayRef.current);
|
|
633
636
|
|
|
634
637
|
if (focusableElements && focusableElements.length > 0) {
|
|
635
638
|
if (!document.activeElement) {
|
|
@@ -653,13 +656,13 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
653
656
|
if (this.navigation) {
|
|
654
657
|
if (this.navigation.button) {
|
|
655
658
|
this.initFocusableCell();
|
|
656
|
-
if (this.navigation.backward)
|
|
659
|
+
if (this.navigation.backward) utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-prev').focus();else utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-next').focus();
|
|
657
660
|
} else {
|
|
658
661
|
if (this.navigation.backward) {
|
|
659
|
-
var cells =
|
|
662
|
+
var cells = utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
660
663
|
cell = cells[cells.length - 1];
|
|
661
664
|
} else {
|
|
662
|
-
cell =
|
|
665
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
663
666
|
}
|
|
664
667
|
|
|
665
668
|
if (cell) {
|
|
@@ -679,18 +682,18 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
679
682
|
var cell;
|
|
680
683
|
|
|
681
684
|
if (this.view === 'month') {
|
|
682
|
-
var cells =
|
|
683
|
-
var selectedCell =
|
|
685
|
+
var cells = utils.DomHandler.find(this.overlayRef.current, '.p-monthpicker .p-monthpicker-month');
|
|
686
|
+
var selectedCell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-monthpicker .p-monthpicker-month.p-highlight');
|
|
684
687
|
cells.forEach(function (cell) {
|
|
685
688
|
return cell.tabIndex = -1;
|
|
686
689
|
});
|
|
687
690
|
cell = selectedCell || cells[0];
|
|
688
691
|
} else {
|
|
689
|
-
cell =
|
|
692
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, 'span.p-highlight');
|
|
690
693
|
|
|
691
694
|
if (!cell) {
|
|
692
|
-
var todayCell =
|
|
693
|
-
if (todayCell) cell = todayCell;else cell =
|
|
695
|
+
var todayCell = utils.DomHandler.findSingle(this.overlayRef.current, 'td.p-datepicker-today span:not(.p-disabled)');
|
|
696
|
+
if (todayCell) cell = todayCell;else cell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
694
697
|
}
|
|
695
698
|
}
|
|
696
699
|
|
|
@@ -825,12 +828,17 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
825
828
|
key: "onPanelClick",
|
|
826
829
|
value: function onPanelClick(event) {
|
|
827
830
|
if (!this.props.inline) {
|
|
828
|
-
|
|
831
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
829
832
|
originalEvent: event,
|
|
830
833
|
target: this.container
|
|
831
834
|
});
|
|
832
835
|
}
|
|
833
836
|
}
|
|
837
|
+
}, {
|
|
838
|
+
key: "onPanelMouseUp",
|
|
839
|
+
value: function onPanelMouseUp(event) {
|
|
840
|
+
this.onPanelClick(event);
|
|
841
|
+
}
|
|
834
842
|
}, {
|
|
835
843
|
key: "onTimePickerElementMouseDown",
|
|
836
844
|
value: function onTimePickerElementMouseDown(event, type, direction) {
|
|
@@ -1105,8 +1113,15 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1105
1113
|
}
|
|
1106
1114
|
}, {
|
|
1107
1115
|
key: "getViewDate",
|
|
1108
|
-
value: function getViewDate() {
|
|
1109
|
-
|
|
1116
|
+
value: function getViewDate(date) {
|
|
1117
|
+
var propValue = this.props.value;
|
|
1118
|
+
var viewDate = date || (this.props.onViewDateChange ? this.props.viewDate : this.state.viewDate);
|
|
1119
|
+
|
|
1120
|
+
if (Array.isArray(propValue)) {
|
|
1121
|
+
propValue = propValue[0];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
return viewDate && this.isValidDate(viewDate) ? viewDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
|
|
1110
1125
|
}
|
|
1111
1126
|
}, {
|
|
1112
1127
|
key: "getCurrentDateTime",
|
|
@@ -1318,13 +1333,13 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1318
1333
|
case 40:
|
|
1319
1334
|
{
|
|
1320
1335
|
cellContent.tabIndex = '-1';
|
|
1321
|
-
var cellIndex =
|
|
1336
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1322
1337
|
var nextRow = cell.parentElement.nextElementSibling;
|
|
1323
1338
|
|
|
1324
1339
|
if (nextRow) {
|
|
1325
1340
|
var focusCell = nextRow.children[cellIndex].children[0];
|
|
1326
1341
|
|
|
1327
|
-
if (
|
|
1342
|
+
if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
|
|
1328
1343
|
this.navigation = {
|
|
1329
1344
|
backward: false
|
|
1330
1345
|
};
|
|
@@ -1349,14 +1364,14 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1349
1364
|
{
|
|
1350
1365
|
cellContent.tabIndex = '-1';
|
|
1351
1366
|
|
|
1352
|
-
var _cellIndex =
|
|
1367
|
+
var _cellIndex = utils.DomHandler.index(cell);
|
|
1353
1368
|
|
|
1354
1369
|
var prevRow = cell.parentElement.previousElementSibling;
|
|
1355
1370
|
|
|
1356
1371
|
if (prevRow) {
|
|
1357
1372
|
var _focusCell = prevRow.children[_cellIndex].children[0];
|
|
1358
1373
|
|
|
1359
|
-
if (
|
|
1374
|
+
if (utils.DomHandler.hasClass(_focusCell, 'p-disabled')) {
|
|
1360
1375
|
this.navigation = {
|
|
1361
1376
|
backward: true
|
|
1362
1377
|
};
|
|
@@ -1386,7 +1401,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1386
1401
|
if (prevCell) {
|
|
1387
1402
|
var _focusCell2 = prevCell.children[0];
|
|
1388
1403
|
|
|
1389
|
-
if (
|
|
1404
|
+
if (utils.DomHandler.hasClass(_focusCell2, 'p-disabled')) {
|
|
1390
1405
|
this.navigateToMonth(true, groupIndex, event);
|
|
1391
1406
|
} else {
|
|
1392
1407
|
_focusCell2.tabIndex = '0';
|
|
@@ -1410,7 +1425,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1410
1425
|
if (nextCell) {
|
|
1411
1426
|
var _focusCell3 = nextCell.children[0];
|
|
1412
1427
|
|
|
1413
|
-
if (
|
|
1428
|
+
if (utils.DomHandler.hasClass(_focusCell3, 'p-disabled')) {
|
|
1414
1429
|
this.navigateToMonth(false, groupIndex, event);
|
|
1415
1430
|
} else {
|
|
1416
1431
|
_focusCell3.tabIndex = '0';
|
|
@@ -1460,7 +1475,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1460
1475
|
this.navBackward(event);
|
|
1461
1476
|
} else {
|
|
1462
1477
|
var prevMonthContainer = this.overlayRef.current.children[groupIndex - 1];
|
|
1463
|
-
var cells =
|
|
1478
|
+
var cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1464
1479
|
var focusCell = cells[cells.length - 1];
|
|
1465
1480
|
focusCell.tabIndex = '0';
|
|
1466
1481
|
focusCell.focus();
|
|
@@ -1474,7 +1489,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1474
1489
|
} else {
|
|
1475
1490
|
var nextMonthContainer = this.overlayRef.current.children[groupIndex + 1];
|
|
1476
1491
|
|
|
1477
|
-
var _focusCell4 =
|
|
1492
|
+
var _focusCell4 = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1478
1493
|
|
|
1479
1494
|
_focusCell4.tabIndex = '0';
|
|
1480
1495
|
|
|
@@ -1494,7 +1509,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1494
1509
|
{
|
|
1495
1510
|
cell.tabIndex = '-1';
|
|
1496
1511
|
var cells = cell.parentElement.children;
|
|
1497
|
-
var cellIndex =
|
|
1512
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1498
1513
|
var nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
|
|
1499
1514
|
|
|
1500
1515
|
if (nextCell) {
|
|
@@ -1571,7 +1586,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1571
1586
|
return;
|
|
1572
1587
|
}
|
|
1573
1588
|
|
|
1574
|
-
|
|
1589
|
+
utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(function (cell) {
|
|
1575
1590
|
return cell.tabIndex = -1;
|
|
1576
1591
|
});
|
|
1577
1592
|
event.currentTarget.focus();
|
|
@@ -1654,8 +1669,13 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1654
1669
|
var startDate = this.props.value[0];
|
|
1655
1670
|
var endDate = this.props.value[1];
|
|
1656
1671
|
|
|
1657
|
-
if (!endDate
|
|
1658
|
-
|
|
1672
|
+
if (!endDate) {
|
|
1673
|
+
if (date.getTime() >= startDate.getTime()) {
|
|
1674
|
+
endDate = date;
|
|
1675
|
+
} else {
|
|
1676
|
+
endDate = startDate;
|
|
1677
|
+
startDate = date;
|
|
1678
|
+
}
|
|
1659
1679
|
} else {
|
|
1660
1680
|
startDate = date;
|
|
1661
1681
|
endDate = null;
|
|
@@ -1728,7 +1748,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1728
1748
|
}
|
|
1729
1749
|
};
|
|
1730
1750
|
|
|
1731
|
-
|
|
1751
|
+
overlayservice.OverlayService.on('overlay-click', _this10.overlayEventListener);
|
|
1732
1752
|
});
|
|
1733
1753
|
}
|
|
1734
1754
|
}
|
|
@@ -1746,7 +1766,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1746
1766
|
callback();
|
|
1747
1767
|
}
|
|
1748
1768
|
|
|
1749
|
-
|
|
1769
|
+
overlayservice.OverlayService.off('overlay-click', _this11.overlayEventListener);
|
|
1750
1770
|
_this11.overlayEventListener = null;
|
|
1751
1771
|
};
|
|
1752
1772
|
|
|
@@ -1762,7 +1782,8 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1762
1782
|
key: "onOverlayEnter",
|
|
1763
1783
|
value: function onOverlayEnter() {
|
|
1764
1784
|
if (this.props.autoZIndex) {
|
|
1765
|
-
|
|
1785
|
+
var key = this.props.touchUI ? 'modal' : 'overlay';
|
|
1786
|
+
utils.ZIndexUtils.set(key, this.overlayRef.current, PrimeReact__default["default"].autoZIndex, this.props.baseZIndex || PrimeReact__default["default"].zIndex[key]);
|
|
1766
1787
|
}
|
|
1767
1788
|
|
|
1768
1789
|
this.alignOverlay();
|
|
@@ -1785,7 +1806,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1785
1806
|
}, {
|
|
1786
1807
|
key: "onOverlayExited",
|
|
1787
1808
|
value: function onOverlayExited() {
|
|
1788
|
-
|
|
1809
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1789
1810
|
this.props.onHide && this.props.onHide();
|
|
1790
1811
|
}
|
|
1791
1812
|
}, {
|
|
@@ -1835,7 +1856,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1835
1856
|
var _this13 = this;
|
|
1836
1857
|
|
|
1837
1858
|
if (!this.scrollHandler) {
|
|
1838
|
-
this.scrollHandler = new
|
|
1859
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1839
1860
|
if (_this13.isVisible()) {
|
|
1840
1861
|
_this13.hideOverlay();
|
|
1841
1862
|
}
|
|
@@ -1859,12 +1880,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1859
1880
|
}, {
|
|
1860
1881
|
key: "isNavIconClicked",
|
|
1861
1882
|
value: function isNavIconClicked(target) {
|
|
1862
|
-
return
|
|
1883
|
+
return utils.DomHandler.hasClass(target, 'p-datepicker-prev') || utils.DomHandler.hasClass(target, 'p-datepicker-prev-icon') || utils.DomHandler.hasClass(target, 'p-datepicker-next') || utils.DomHandler.hasClass(target, 'p-datepicker-next-icon');
|
|
1863
1884
|
}
|
|
1864
1885
|
}, {
|
|
1865
1886
|
key: "onWindowResize",
|
|
1866
1887
|
value: function onWindowResize() {
|
|
1867
|
-
if (this.isVisible() && !
|
|
1888
|
+
if (this.isVisible() && !utils.DomHandler.isAndroid()) {
|
|
1868
1889
|
this.hideOverlay();
|
|
1869
1890
|
}
|
|
1870
1891
|
}
|
|
@@ -1874,7 +1895,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1874
1895
|
if (this.props.touchUI) {
|
|
1875
1896
|
this.enableModality();
|
|
1876
1897
|
} else {
|
|
1877
|
-
|
|
1898
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1878
1899
|
}
|
|
1879
1900
|
}
|
|
1880
1901
|
}, {
|
|
@@ -1884,8 +1905,8 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1884
1905
|
|
|
1885
1906
|
if (!this.touchUIMask) {
|
|
1886
1907
|
this.touchUIMask = document.createElement('div');
|
|
1887
|
-
this.touchUIMask.style.zIndex = String(
|
|
1888
|
-
|
|
1908
|
+
this.touchUIMask.style.zIndex = String(utils.ZIndexUtils.get(this.overlayRef.current) - 1);
|
|
1909
|
+
utils.DomHandler.addMultipleClasses(this.touchUIMask, 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay-enter');
|
|
1889
1910
|
|
|
1890
1911
|
this.touchUIMaskClickListener = function () {
|
|
1891
1912
|
_this14.disableModality();
|
|
@@ -1893,7 +1914,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1893
1914
|
|
|
1894
1915
|
this.touchUIMask.addEventListener('click', this.touchUIMaskClickListener);
|
|
1895
1916
|
document.body.appendChild(this.touchUIMask);
|
|
1896
|
-
|
|
1917
|
+
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
1897
1918
|
}
|
|
1898
1919
|
}
|
|
1899
1920
|
}, {
|
|
@@ -1902,7 +1923,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1902
1923
|
var _this15 = this;
|
|
1903
1924
|
|
|
1904
1925
|
if (this.touchUIMask) {
|
|
1905
|
-
|
|
1926
|
+
utils.DomHandler.addClass(this.touchUIMask, 'p-component-overlay-leave');
|
|
1906
1927
|
this.touchUIMask.addEventListener('animationend', function () {
|
|
1907
1928
|
_this15.destroyMask();
|
|
1908
1929
|
});
|
|
@@ -1921,14 +1942,14 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
1921
1942
|
for (var i = 0; i < bodyChildren.length; i++) {
|
|
1922
1943
|
var bodyChild = bodyChildren[i];
|
|
1923
1944
|
|
|
1924
|
-
if (
|
|
1945
|
+
if (utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
|
|
1925
1946
|
hasBlockerMasks = true;
|
|
1926
1947
|
break;
|
|
1927
1948
|
}
|
|
1928
1949
|
}
|
|
1929
1950
|
|
|
1930
1951
|
if (!hasBlockerMasks) {
|
|
1931
|
-
|
|
1952
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
1932
1953
|
}
|
|
1933
1954
|
}
|
|
1934
1955
|
}, {
|
|
@@ -2849,12 +2870,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2849
2870
|
visibility: 'hidden'
|
|
2850
2871
|
}
|
|
2851
2872
|
};
|
|
2852
|
-
return /*#__PURE__*/React__default[
|
|
2873
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2853
2874
|
type: "button",
|
|
2854
2875
|
className: "p-datepicker-prev p-link"
|
|
2855
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2876
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2856
2877
|
className: "p-datepicker-prev-icon pi pi-chevron-left"
|
|
2857
|
-
}), /*#__PURE__*/React__default[
|
|
2878
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2858
2879
|
}
|
|
2859
2880
|
}, {
|
|
2860
2881
|
key: "renderForwardNavigator",
|
|
@@ -2871,12 +2892,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2871
2892
|
visibility: 'hidden'
|
|
2872
2893
|
}
|
|
2873
2894
|
};
|
|
2874
|
-
return /*#__PURE__*/React__default[
|
|
2895
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2875
2896
|
type: "button",
|
|
2876
2897
|
className: "p-datepicker-next p-link"
|
|
2877
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2898
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2878
2899
|
className: "p-datepicker-next-icon pi pi-chevron-right"
|
|
2879
|
-
}), /*#__PURE__*/React__default[
|
|
2900
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2880
2901
|
}
|
|
2881
2902
|
}, {
|
|
2882
2903
|
key: "isInMinYear",
|
|
@@ -2910,14 +2931,14 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2910
2931
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2911
2932
|
return option.label;
|
|
2912
2933
|
});
|
|
2913
|
-
var content = /*#__PURE__*/React__default[
|
|
2934
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2914
2935
|
className: "p-datepicker-month",
|
|
2915
2936
|
onChange: function onChange(e) {
|
|
2916
2937
|
return _this18.onMonthDropdownChange(e, e.target.value);
|
|
2917
2938
|
},
|
|
2918
2939
|
value: viewMonth
|
|
2919
2940
|
}, displayedMonthOptions.map(function (option) {
|
|
2920
|
-
return /*#__PURE__*/React__default[
|
|
2941
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2921
2942
|
key: option.label,
|
|
2922
2943
|
value: option.value
|
|
2923
2944
|
}, option.label);
|
|
@@ -2933,12 +2954,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2933
2954
|
element: content,
|
|
2934
2955
|
props: this.props
|
|
2935
2956
|
};
|
|
2936
|
-
return
|
|
2957
|
+
return utils.ObjectUtils.getJSXElement(this.props.monthNavigatorTemplate, defaultContentOptions);
|
|
2937
2958
|
}
|
|
2938
2959
|
|
|
2939
2960
|
return content;
|
|
2940
2961
|
} else {
|
|
2941
|
-
return /*#__PURE__*/React__default[
|
|
2962
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2942
2963
|
className: "p-datepicker-month"
|
|
2943
2964
|
}, monthNames[month]);
|
|
2944
2965
|
}
|
|
@@ -2963,14 +2984,14 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2963
2984
|
var displayedYearNames = yearOptions.filter(function (year) {
|
|
2964
2985
|
return !(_this19.props.minDate && _this19.props.minDate.getFullYear() > year) && !(_this19.props.maxDate && _this19.props.maxDate.getFullYear() < year);
|
|
2965
2986
|
});
|
|
2966
|
-
var content = /*#__PURE__*/React__default[
|
|
2987
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2967
2988
|
className: "p-datepicker-year",
|
|
2968
2989
|
onChange: function onChange(e) {
|
|
2969
2990
|
return _this19.onYearDropdownChange(e, e.target.value);
|
|
2970
2991
|
},
|
|
2971
2992
|
value: viewYear
|
|
2972
2993
|
}, displayedYearNames.map(function (year) {
|
|
2973
|
-
return /*#__PURE__*/React__default[
|
|
2994
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2974
2995
|
key: year,
|
|
2975
2996
|
value: year
|
|
2976
2997
|
}, year);
|
|
@@ -2993,12 +3014,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
2993
3014
|
element: content,
|
|
2994
3015
|
props: this.props
|
|
2995
3016
|
};
|
|
2996
|
-
return
|
|
3017
|
+
return utils.ObjectUtils.getJSXElement(this.props.yearNavigatorTemplate, defaultContentOptions);
|
|
2997
3018
|
}
|
|
2998
3019
|
|
|
2999
3020
|
return content;
|
|
3000
3021
|
} else {
|
|
3001
|
-
return /*#__PURE__*/React__default[
|
|
3022
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3002
3023
|
className: "p-datepicker-year"
|
|
3003
3024
|
}, year);
|
|
3004
3025
|
}
|
|
@@ -3008,7 +3029,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3008
3029
|
value: function renderTitle(monthMetaData) {
|
|
3009
3030
|
var month = this.renderTitleMonthElement(monthMetaData.month);
|
|
3010
3031
|
var year = this.renderTitleYearElement(monthMetaData.year);
|
|
3011
|
-
return /*#__PURE__*/React__default[
|
|
3032
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3012
3033
|
className: "p-datepicker-title"
|
|
3013
3034
|
}, month, year);
|
|
3014
3035
|
}
|
|
@@ -3016,18 +3037,18 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3016
3037
|
key: "renderDayNames",
|
|
3017
3038
|
value: function renderDayNames(weekDays) {
|
|
3018
3039
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
3019
|
-
return /*#__PURE__*/React__default[
|
|
3040
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3020
3041
|
key: "".concat(weekDay, "-").concat(index),
|
|
3021
3042
|
scope: "col"
|
|
3022
|
-
}, /*#__PURE__*/React__default[
|
|
3043
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, weekDay));
|
|
3023
3044
|
});
|
|
3024
3045
|
|
|
3025
3046
|
if (this.props.showWeek) {
|
|
3026
|
-
var weekHeader = /*#__PURE__*/React__default[
|
|
3047
|
+
var weekHeader = /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3027
3048
|
scope: "col",
|
|
3028
3049
|
key: 'wn',
|
|
3029
3050
|
className: "p-datepicker-weekheader p-disabled"
|
|
3030
|
-
}, /*#__PURE__*/React__default[
|
|
3051
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, PrimeReact.localeOption('weekHeader', this.props.locale)));
|
|
3031
3052
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
3032
3053
|
} else {
|
|
3033
3054
|
return dayNames;
|
|
@@ -3039,7 +3060,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3039
3060
|
var _this20 = this;
|
|
3040
3061
|
|
|
3041
3062
|
var content = this.props.dateTemplate ? this.props.dateTemplate(date) : date.day;
|
|
3042
|
-
return /*#__PURE__*/React__default[
|
|
3063
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3043
3064
|
className: className,
|
|
3044
3065
|
onClick: function onClick(e) {
|
|
3045
3066
|
return _this20.onDateSelect(e, date);
|
|
@@ -3047,7 +3068,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3047
3068
|
onKeyDown: function onKeyDown(e) {
|
|
3048
3069
|
return _this20.onDateCellKeydown(e, date, groupIndex);
|
|
3049
3070
|
}
|
|
3050
|
-
}, content, /*#__PURE__*/React__default[
|
|
3071
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3051
3072
|
}
|
|
3052
3073
|
}, {
|
|
3053
3074
|
key: "renderWeek",
|
|
@@ -3057,26 +3078,26 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3057
3078
|
var week = weekDates.map(function (date) {
|
|
3058
3079
|
var selected = _this21.isSelected(date);
|
|
3059
3080
|
|
|
3060
|
-
var cellClassName =
|
|
3081
|
+
var cellClassName = utils.classNames({
|
|
3061
3082
|
'p-datepicker-other-month': date.otherMonth,
|
|
3062
3083
|
'p-datepicker-today': date.today
|
|
3063
3084
|
});
|
|
3064
|
-
var dateClassName =
|
|
3085
|
+
var dateClassName = utils.classNames({
|
|
3065
3086
|
'p-highlight': selected,
|
|
3066
3087
|
'p-disabled': !date.selectable
|
|
3067
3088
|
});
|
|
3068
3089
|
var content = date.otherMonth && !_this21.props.showOtherMonths ? null : _this21.renderDateCellContent(date, dateClassName, groupIndex);
|
|
3069
|
-
return /*#__PURE__*/React__default[
|
|
3090
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3070
3091
|
key: date.day,
|
|
3071
3092
|
className: cellClassName
|
|
3072
3093
|
}, content);
|
|
3073
3094
|
});
|
|
3074
3095
|
|
|
3075
3096
|
if (this.props.showWeek) {
|
|
3076
|
-
var weekNumberCell = /*#__PURE__*/React__default[
|
|
3097
|
+
var weekNumberCell = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3077
3098
|
key: 'wn' + weekNumber,
|
|
3078
3099
|
className: "p-datepicker-weeknumber"
|
|
3079
|
-
}, /*#__PURE__*/React__default[
|
|
3100
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3080
3101
|
className: "p-disabled"
|
|
3081
3102
|
}, weekNumber));
|
|
3082
3103
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
@@ -3090,7 +3111,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3090
3111
|
var _this22 = this;
|
|
3091
3112
|
|
|
3092
3113
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
3093
|
-
return /*#__PURE__*/React__default[
|
|
3114
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
3094
3115
|
key: index
|
|
3095
3116
|
}, _this22.renderWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
3096
3117
|
});
|
|
@@ -3100,11 +3121,11 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3100
3121
|
value: function renderDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
3101
3122
|
var dayNames = this.renderDayNames(weekDays);
|
|
3102
3123
|
var dates = this.renderDates(monthMetaData, groupIndex);
|
|
3103
|
-
return /*#__PURE__*/React__default[
|
|
3124
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3104
3125
|
className: "p-datepicker-calendar-container"
|
|
3105
|
-
}, /*#__PURE__*/React__default[
|
|
3126
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3106
3127
|
className: "p-datepicker-calendar"
|
|
3107
|
-
}, /*#__PURE__*/React__default[
|
|
3128
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, dayNames)), /*#__PURE__*/React__default["default"].createElement("tbody", null, dates)));
|
|
3108
3129
|
}
|
|
3109
3130
|
}, {
|
|
3110
3131
|
key: "renderMonth",
|
|
@@ -3115,10 +3136,10 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3115
3136
|
var title = this.renderTitle(monthMetaData);
|
|
3116
3137
|
var dateViewGrid = this.renderDateViewGrid(monthMetaData, weekDays, index);
|
|
3117
3138
|
var header = this.props.headerTemplate ? this.props.headerTemplate() : null;
|
|
3118
|
-
return /*#__PURE__*/React__default[
|
|
3139
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3119
3140
|
key: monthMetaData.month,
|
|
3120
3141
|
className: "p-datepicker-group"
|
|
3121
|
-
}, /*#__PURE__*/React__default[
|
|
3142
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3122
3143
|
className: "p-datepicker-header"
|
|
3123
3144
|
}, header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
3124
3145
|
}
|
|
@@ -3130,7 +3151,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3130
3151
|
var groups = monthsMetaData.map(function (monthMetaData, index) {
|
|
3131
3152
|
return _this23.renderMonth(monthMetaData, index);
|
|
3132
3153
|
});
|
|
3133
|
-
return /*#__PURE__*/React__default[
|
|
3154
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3134
3155
|
className: "p-datepicker-group-container"
|
|
3135
3156
|
}, groups);
|
|
3136
3157
|
}
|
|
@@ -3140,19 +3161,19 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3140
3161
|
var viewDate = this.getViewDate();
|
|
3141
3162
|
var monthsMetaData = this.createMonths(viewDate.getMonth(), viewDate.getFullYear());
|
|
3142
3163
|
var months = this.renderMonths(monthsMetaData);
|
|
3143
|
-
return /*#__PURE__*/React__default[
|
|
3164
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, months);
|
|
3144
3165
|
}
|
|
3145
3166
|
}, {
|
|
3146
3167
|
key: "renderMonthViewMonth",
|
|
3147
3168
|
value: function renderMonthViewMonth(index) {
|
|
3148
3169
|
var _this24 = this;
|
|
3149
3170
|
|
|
3150
|
-
var className =
|
|
3171
|
+
var className = utils.classNames('p-monthpicker-month', {
|
|
3151
3172
|
'p-highlight': this.isMonthSelected(index)
|
|
3152
3173
|
});
|
|
3153
3174
|
var monthNamesShort = PrimeReact.localeOption('monthNamesShort', this.props.locale);
|
|
3154
3175
|
var monthName = monthNamesShort[index];
|
|
3155
|
-
return /*#__PURE__*/React__default[
|
|
3176
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3156
3177
|
key: monthName,
|
|
3157
3178
|
className: className,
|
|
3158
3179
|
onClick: function onClick(event) {
|
|
@@ -3161,7 +3182,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3161
3182
|
onKeyDown: function onKeyDown(event) {
|
|
3162
3183
|
return _this24.onMonthCellKeydown(event, index);
|
|
3163
3184
|
}
|
|
3164
|
-
}, monthName, /*#__PURE__*/React__default[
|
|
3185
|
+
}, monthName, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3165
3186
|
}
|
|
3166
3187
|
}, {
|
|
3167
3188
|
key: "renderMonthViewMonths",
|
|
@@ -3181,15 +3202,15 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3181
3202
|
var forwardNavigator = this.renderForwardNavigator(true);
|
|
3182
3203
|
var yearElement = this.renderTitleYearElement(this.getViewDate().getFullYear());
|
|
3183
3204
|
var months = this.renderMonthViewMonths();
|
|
3184
|
-
return /*#__PURE__*/React__default[
|
|
3205
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3185
3206
|
className: "p-datepicker-group-container"
|
|
3186
|
-
}, /*#__PURE__*/React__default[
|
|
3207
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3187
3208
|
className: "p-datepicker-group"
|
|
3188
|
-
}, /*#__PURE__*/React__default[
|
|
3209
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3189
3210
|
className: "p-datepicker-header"
|
|
3190
|
-
}, backwardNavigator, /*#__PURE__*/React__default[
|
|
3211
|
+
}, backwardNavigator, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3191
3212
|
className: "p-datepicker-title"
|
|
3192
|
-
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default[
|
|
3213
|
+
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3193
3214
|
className: "p-monthpicker"
|
|
3194
3215
|
}, months));
|
|
3195
3216
|
}
|
|
@@ -3219,9 +3240,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3219
3240
|
}
|
|
3220
3241
|
|
|
3221
3242
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
3222
|
-
return /*#__PURE__*/React__default[
|
|
3243
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3223
3244
|
className: "p-hour-picker"
|
|
3224
|
-
}, /*#__PURE__*/React__default[
|
|
3245
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3225
3246
|
type: "button",
|
|
3226
3247
|
className: "p-link",
|
|
3227
3248
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3232,9 +3253,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3232
3253
|
onKeyDown: function onKeyDown(e) {
|
|
3233
3254
|
return _this25.onContainerButtonKeydown(e);
|
|
3234
3255
|
}
|
|
3235
|
-
}, /*#__PURE__*/React__default[
|
|
3256
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3236
3257
|
className: "pi pi-chevron-up"
|
|
3237
|
-
}), /*#__PURE__*/React__default[
|
|
3258
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, hourDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3238
3259
|
type: "button",
|
|
3239
3260
|
className: "p-link",
|
|
3240
3261
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3245,9 +3266,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3245
3266
|
onKeyDown: function onKeyDown(e) {
|
|
3246
3267
|
return _this25.onContainerButtonKeydown(e);
|
|
3247
3268
|
}
|
|
3248
|
-
}, /*#__PURE__*/React__default[
|
|
3269
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3249
3270
|
className: "pi pi-chevron-down"
|
|
3250
|
-
}), /*#__PURE__*/React__default[
|
|
3271
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3251
3272
|
}
|
|
3252
3273
|
}, {
|
|
3253
3274
|
key: "renderMinutePicker",
|
|
@@ -3257,9 +3278,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3257
3278
|
var currentTime = this.getCurrentDateTime();
|
|
3258
3279
|
var minute = currentTime.getMinutes();
|
|
3259
3280
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
3260
|
-
return /*#__PURE__*/React__default[
|
|
3281
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3261
3282
|
className: "p-minute-picker"
|
|
3262
|
-
}, /*#__PURE__*/React__default[
|
|
3283
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3263
3284
|
type: "button",
|
|
3264
3285
|
className: "p-link",
|
|
3265
3286
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3270,9 +3291,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3270
3291
|
onKeyDown: function onKeyDown(e) {
|
|
3271
3292
|
return _this26.onContainerButtonKeydown(e);
|
|
3272
3293
|
}
|
|
3273
|
-
}, /*#__PURE__*/React__default[
|
|
3294
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3274
3295
|
className: "pi pi-chevron-up"
|
|
3275
|
-
}), /*#__PURE__*/React__default[
|
|
3296
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, minuteDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3276
3297
|
type: "button",
|
|
3277
3298
|
className: "p-link",
|
|
3278
3299
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3283,9 +3304,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3283
3304
|
onKeyDown: function onKeyDown(e) {
|
|
3284
3305
|
return _this26.onContainerButtonKeydown(e);
|
|
3285
3306
|
}
|
|
3286
|
-
}, /*#__PURE__*/React__default[
|
|
3307
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3287
3308
|
className: "pi pi-chevron-down"
|
|
3288
|
-
}), /*#__PURE__*/React__default[
|
|
3309
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3289
3310
|
}
|
|
3290
3311
|
}, {
|
|
3291
3312
|
key: "renderSecondPicker",
|
|
@@ -3296,9 +3317,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3296
3317
|
var currentTime = this.getCurrentDateTime();
|
|
3297
3318
|
var second = currentTime.getSeconds();
|
|
3298
3319
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
3299
|
-
return /*#__PURE__*/React__default[
|
|
3320
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3300
3321
|
className: "p-second-picker"
|
|
3301
|
-
}, /*#__PURE__*/React__default[
|
|
3322
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3302
3323
|
type: "button",
|
|
3303
3324
|
className: "p-link",
|
|
3304
3325
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3309,9 +3330,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3309
3330
|
onKeyDown: function onKeyDown(e) {
|
|
3310
3331
|
return _this27.onContainerButtonKeydown(e);
|
|
3311
3332
|
}
|
|
3312
|
-
}, /*#__PURE__*/React__default[
|
|
3333
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3313
3334
|
className: "pi pi-chevron-up"
|
|
3314
|
-
}), /*#__PURE__*/React__default[
|
|
3335
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, secondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3315
3336
|
type: "button",
|
|
3316
3337
|
className: "p-link",
|
|
3317
3338
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3322,9 +3343,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3322
3343
|
onKeyDown: function onKeyDown(e) {
|
|
3323
3344
|
return _this27.onContainerButtonKeydown(e);
|
|
3324
3345
|
}
|
|
3325
|
-
}, /*#__PURE__*/React__default[
|
|
3346
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3326
3347
|
className: "pi pi-chevron-down"
|
|
3327
|
-
}), /*#__PURE__*/React__default[
|
|
3348
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3328
3349
|
}
|
|
3329
3350
|
|
|
3330
3351
|
return null;
|
|
@@ -3338,9 +3359,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3338
3359
|
var currentTime = this.getCurrentDateTime();
|
|
3339
3360
|
var millisecond = currentTime.getMilliseconds();
|
|
3340
3361
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
3341
|
-
return /*#__PURE__*/React__default[
|
|
3362
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3342
3363
|
className: "p-millisecond-picker"
|
|
3343
|
-
}, /*#__PURE__*/React__default[
|
|
3364
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3344
3365
|
type: "button",
|
|
3345
3366
|
className: "p-link",
|
|
3346
3367
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3351,9 +3372,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3351
3372
|
onKeyDown: function onKeyDown(e) {
|
|
3352
3373
|
return _this28.onContainerButtonKeydown(e);
|
|
3353
3374
|
}
|
|
3354
|
-
}, /*#__PURE__*/React__default[
|
|
3375
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3355
3376
|
className: "pi pi-chevron-up"
|
|
3356
|
-
}), /*#__PURE__*/React__default[
|
|
3377
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, millisecondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3357
3378
|
type: "button",
|
|
3358
3379
|
className: "p-link",
|
|
3359
3380
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3364,9 +3385,9 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3364
3385
|
onKeyDown: function onKeyDown(e) {
|
|
3365
3386
|
return _this28.onContainerButtonKeydown(e);
|
|
3366
3387
|
}
|
|
3367
|
-
}, /*#__PURE__*/React__default[
|
|
3388
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3368
3389
|
className: "pi pi-chevron-down"
|
|
3369
|
-
}), /*#__PURE__*/React__default[
|
|
3390
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3370
3391
|
}
|
|
3371
3392
|
|
|
3372
3393
|
return null;
|
|
@@ -3378,21 +3399,21 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3378
3399
|
var currentTime = this.getCurrentDateTime();
|
|
3379
3400
|
var hour = currentTime.getHours();
|
|
3380
3401
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
3381
|
-
return /*#__PURE__*/React__default[
|
|
3402
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3382
3403
|
className: "p-ampm-picker"
|
|
3383
|
-
}, /*#__PURE__*/React__default[
|
|
3404
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3384
3405
|
type: "button",
|
|
3385
3406
|
className: "p-link",
|
|
3386
3407
|
onClick: this.toggleAmPm
|
|
3387
|
-
}, /*#__PURE__*/React__default[
|
|
3408
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3388
3409
|
className: "pi pi-chevron-up"
|
|
3389
|
-
}), /*#__PURE__*/React__default[
|
|
3410
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, display), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3390
3411
|
type: "button",
|
|
3391
3412
|
className: "p-link",
|
|
3392
3413
|
onClick: this.toggleAmPm
|
|
3393
|
-
}, /*#__PURE__*/React__default[
|
|
3414
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3394
3415
|
className: "pi pi-chevron-down"
|
|
3395
|
-
}), /*#__PURE__*/React__default[
|
|
3416
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3396
3417
|
}
|
|
3397
3418
|
|
|
3398
3419
|
return null;
|
|
@@ -3400,15 +3421,15 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3400
3421
|
}, {
|
|
3401
3422
|
key: "renderSeparator",
|
|
3402
3423
|
value: function renderSeparator(separator) {
|
|
3403
|
-
return /*#__PURE__*/React__default[
|
|
3424
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3404
3425
|
className: "p-separator"
|
|
3405
|
-
}, /*#__PURE__*/React__default[
|
|
3426
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, separator));
|
|
3406
3427
|
}
|
|
3407
3428
|
}, {
|
|
3408
3429
|
key: "renderTimePicker",
|
|
3409
3430
|
value: function renderTimePicker() {
|
|
3410
3431
|
if (this.props.showTime || this.props.timeOnly) {
|
|
3411
|
-
return /*#__PURE__*/React__default[
|
|
3432
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3412
3433
|
className: "p-timepicker"
|
|
3413
3434
|
}, this.renderHourPicker(), this.renderSeparator(':'), this.renderMinutePicker(), this.props.showSeconds && this.renderSeparator(':'), this.renderSecondPicker(), this.props.showMillisec && this.renderSeparator('.'), this.renderMiliSecondPicker(), this.props.hourFormat === '12' && this.renderSeparator(':'), this.renderAmPmPicker());
|
|
3414
3435
|
}
|
|
@@ -3419,7 +3440,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3419
3440
|
key: "renderInputElement",
|
|
3420
3441
|
value: function renderInputElement() {
|
|
3421
3442
|
if (!this.props.inline) {
|
|
3422
|
-
return /*#__PURE__*/React__default[
|
|
3443
|
+
return /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
3423
3444
|
ref: this.inputRef,
|
|
3424
3445
|
id: this.props.inputId,
|
|
3425
3446
|
name: this.props.name,
|
|
@@ -3431,6 +3452,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3431
3452
|
required: this.props.required,
|
|
3432
3453
|
autoComplete: "off",
|
|
3433
3454
|
placeholder: this.props.placeholder,
|
|
3455
|
+
tabIndex: this.props.tabIndex,
|
|
3434
3456
|
onInput: this.onUserInput,
|
|
3435
3457
|
onFocus: this.onInputFocus,
|
|
3436
3458
|
onBlur: this.onInputBlur,
|
|
@@ -3446,7 +3468,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3446
3468
|
key: "renderButton",
|
|
3447
3469
|
value: function renderButton() {
|
|
3448
3470
|
if (this.props.showIcon) {
|
|
3449
|
-
return /*#__PURE__*/React__default[
|
|
3471
|
+
return /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3450
3472
|
type: "button",
|
|
3451
3473
|
icon: this.props.icon,
|
|
3452
3474
|
onClick: this.onButtonClick,
|
|
@@ -3458,22 +3480,34 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3458
3480
|
|
|
3459
3481
|
return null;
|
|
3460
3482
|
}
|
|
3483
|
+
}, {
|
|
3484
|
+
key: "renderContent",
|
|
3485
|
+
value: function renderContent() {
|
|
3486
|
+
var input = this.renderInputElement();
|
|
3487
|
+
var button = this.renderButton();
|
|
3488
|
+
|
|
3489
|
+
if (this.props.iconPos === 'left') {
|
|
3490
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, button, input);
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, input, button);
|
|
3494
|
+
}
|
|
3461
3495
|
}, {
|
|
3462
3496
|
key: "renderButtonBar",
|
|
3463
3497
|
value: function renderButtonBar() {
|
|
3464
3498
|
var _this29 = this;
|
|
3465
3499
|
|
|
3466
3500
|
if (this.props.showButtonBar) {
|
|
3467
|
-
var todayClassName =
|
|
3468
|
-
var clearClassName =
|
|
3501
|
+
var todayClassName = utils.classNames('p-button-text', this.props.todayButtonClassName);
|
|
3502
|
+
var clearClassName = utils.classNames('p-button-text', this.props.clearButtonClassName);
|
|
3469
3503
|
|
|
3470
3504
|
var _localeOptions4 = PrimeReact.localeOptions(this.props.locale),
|
|
3471
3505
|
today = _localeOptions4.today,
|
|
3472
3506
|
clear = _localeOptions4.clear;
|
|
3473
3507
|
|
|
3474
|
-
return /*#__PURE__*/React__default[
|
|
3508
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3475
3509
|
className: "p-datepicker-buttonbar"
|
|
3476
|
-
}, /*#__PURE__*/React__default[
|
|
3510
|
+
}, /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3477
3511
|
type: "button",
|
|
3478
3512
|
label: today,
|
|
3479
3513
|
onClick: this.onTodayButtonClick,
|
|
@@ -3481,7 +3515,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3481
3515
|
return _this29.onContainerButtonKeydown(e);
|
|
3482
3516
|
},
|
|
3483
3517
|
className: todayClassName
|
|
3484
|
-
}), /*#__PURE__*/React__default[
|
|
3518
|
+
}), /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3485
3519
|
type: "button",
|
|
3486
3520
|
label: clear,
|
|
3487
3521
|
onClick: this.onClearButtonClick,
|
|
@@ -3499,7 +3533,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3499
3533
|
value: function renderFooter() {
|
|
3500
3534
|
if (this.props.footerTemplate) {
|
|
3501
3535
|
var content = this.props.footerTemplate();
|
|
3502
|
-
return /*#__PURE__*/React__default[
|
|
3536
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3503
3537
|
className: "p-datepicker-footer"
|
|
3504
3538
|
}, content);
|
|
3505
3539
|
}
|
|
@@ -3509,16 +3543,11 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3509
3543
|
}, {
|
|
3510
3544
|
key: "render",
|
|
3511
3545
|
value: function render() {
|
|
3512
|
-
var
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
'p-calendar-timeonly': this.props.timeOnly,
|
|
3518
|
-
'p-inputwrapper-filled': this.props.value || core.DomHandler.hasClass(this.inputRef.current, 'p-filled') && this.inputRef.current.value !== '',
|
|
3519
|
-
'p-inputwrapper-focus': this.state.focused
|
|
3520
|
-
});
|
|
3521
|
-
var panelClassName = core.classNames('p-datepicker p-component', this.props.panelClassName, {
|
|
3546
|
+
var _classNames,
|
|
3547
|
+
_this30 = this;
|
|
3548
|
+
|
|
3549
|
+
var className = utils.classNames('p-calendar p-component p-inputwrapper', this.props.className, (_classNames = {}, _defineProperty(_classNames, "p-calendar-w-btn p-calendar-w-btn-".concat(this.props.iconPos), this.props.showIcon), _defineProperty(_classNames, 'p-calendar-disabled', this.props.disabled), _defineProperty(_classNames, 'p-calendar-timeonly', this.props.timeOnly), _defineProperty(_classNames, 'p-inputwrapper-filled', this.props.value || utils.DomHandler.hasClass(this.inputRef.current, 'p-filled') && this.inputRef.current.value !== ''), _defineProperty(_classNames, 'p-inputwrapper-focus', this.state.focused), _classNames));
|
|
3550
|
+
var panelClassName = utils.classNames('p-datepicker p-component', this.props.panelClassName, {
|
|
3522
3551
|
'p-datepicker-inline': this.props.inline,
|
|
3523
3552
|
'p-disabled': this.props.disabled,
|
|
3524
3553
|
'p-datepicker-timeonly': this.props.timeOnly,
|
|
@@ -3526,27 +3555,27 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
3526
3555
|
'p-datepicker-monthpicker': this.props.view === 'month',
|
|
3527
3556
|
'p-datepicker-touch-ui': this.props.touchUI
|
|
3528
3557
|
});
|
|
3529
|
-
var
|
|
3530
|
-
var button = this.renderButton();
|
|
3558
|
+
var content = this.renderContent();
|
|
3531
3559
|
var datePicker = this.renderDatePicker();
|
|
3532
3560
|
var timePicker = this.renderTimePicker();
|
|
3533
3561
|
var buttonBar = this.renderButtonBar();
|
|
3534
3562
|
var footer = this.renderFooter();
|
|
3535
3563
|
var isVisible = this.props.inline || this.isVisible();
|
|
3536
|
-
return /*#__PURE__*/React__default[
|
|
3564
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3537
3565
|
ref: function ref(el) {
|
|
3538
3566
|
return _this30.container = el;
|
|
3539
3567
|
},
|
|
3540
3568
|
id: this.props.id,
|
|
3541
3569
|
className: className,
|
|
3542
3570
|
style: this.props.style
|
|
3543
|
-
},
|
|
3571
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(CalendarPanel, {
|
|
3544
3572
|
ref: this.overlayRef,
|
|
3545
3573
|
className: panelClassName,
|
|
3546
3574
|
style: this.props.panelStyle,
|
|
3547
3575
|
appendTo: this.props.appendTo,
|
|
3548
3576
|
inline: this.props.inline,
|
|
3549
3577
|
onClick: this.onPanelClick,
|
|
3578
|
+
onMouseUp: this.onPanelMouseUp,
|
|
3550
3579
|
in: isVisible,
|
|
3551
3580
|
onEnter: this.onOverlayEnter,
|
|
3552
3581
|
onEntered: this.onOverlayEntered,
|
|
@@ -3584,6 +3613,7 @@ _defineProperty(Calendar, "defaultProps", {
|
|
|
3584
3613
|
placeholder: null,
|
|
3585
3614
|
showIcon: false,
|
|
3586
3615
|
icon: 'pi pi-calendar',
|
|
3616
|
+
iconPos: 'right',
|
|
3587
3617
|
showOnFocus: true,
|
|
3588
3618
|
numberOfMonths: 1,
|
|
3589
3619
|
view: 'date',
|