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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.calendar = (function (exports, React, inputtext, button,
|
|
2
|
+
this.primereact.calendar = (function (exports, React, inputtext, button, csstransition, portal, utils, tooltip, ripple, PrimeReact, overlayservice) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -133,6 +133,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
133
133
|
function _possibleConstructorReturn(self, call) {
|
|
134
134
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
135
135
|
return call;
|
|
136
|
+
} else if (call !== void 0) {
|
|
137
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
return _assertThisInitialized(self);
|
|
@@ -178,7 +180,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
178
180
|
_createClass(CalendarPanelComponent, [{
|
|
179
181
|
key: "renderElement",
|
|
180
182
|
value: function renderElement() {
|
|
181
|
-
return /*#__PURE__*/React__default[
|
|
183
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
182
184
|
nodeRef: this.props.forwardRef,
|
|
183
185
|
classNames: "p-connected-overlay",
|
|
184
186
|
in: this.props.in,
|
|
@@ -192,18 +194,19 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
192
194
|
onEntered: this.props.onEntered,
|
|
193
195
|
onExit: this.props.onExit,
|
|
194
196
|
onExited: this.props.onExited
|
|
195
|
-
}, /*#__PURE__*/React__default[
|
|
197
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
196
198
|
ref: this.props.forwardRef,
|
|
197
199
|
className: this.props.className,
|
|
198
200
|
style: this.props.style,
|
|
199
|
-
onClick: this.props.onClick
|
|
201
|
+
onClick: this.props.onClick,
|
|
202
|
+
onMouseUp: this.props.onMouseUp
|
|
200
203
|
}, this.props.children));
|
|
201
204
|
}
|
|
202
205
|
}, {
|
|
203
206
|
key: "render",
|
|
204
207
|
value: function render() {
|
|
205
208
|
var element = this.renderElement();
|
|
206
|
-
return this.props.inline ? element : /*#__PURE__*/React__default[
|
|
209
|
+
return this.props.inline ? element : /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
207
210
|
element: element,
|
|
208
211
|
appendTo: this.props.appendTo
|
|
209
212
|
});
|
|
@@ -219,8 +222,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
219
222
|
className: null
|
|
220
223
|
});
|
|
221
224
|
|
|
222
|
-
var CalendarPanel = /*#__PURE__*/React__default[
|
|
223
|
-
return /*#__PURE__*/React__default[
|
|
225
|
+
var CalendarPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
226
|
+
return /*#__PURE__*/React__default["default"].createElement(CalendarPanelComponent, _extends({
|
|
224
227
|
forwardRef: ref
|
|
225
228
|
}, props));
|
|
226
229
|
});
|
|
@@ -255,13 +258,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
255
258
|
};
|
|
256
259
|
|
|
257
260
|
if (!_this.props.onViewDateChange) {
|
|
258
|
-
var
|
|
259
|
-
|
|
260
|
-
if (Array.isArray(propValue)) {
|
|
261
|
-
propValue = propValue[0];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
var viewDate = _this.props.viewDate && _this.isValidDate(_this.props.viewDate) ? _this.props.viewDate : propValue && _this.isValidDate(propValue) ? propValue : new Date();
|
|
261
|
+
var viewDate = _this.getViewDate(_this.props.viewDate);
|
|
265
262
|
|
|
266
263
|
_this.validateDate(viewDate);
|
|
267
264
|
|
|
@@ -283,6 +280,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
283
280
|
_this.onTodayButtonClick = _this.onTodayButtonClick.bind(_assertThisInitialized(_this));
|
|
284
281
|
_this.onClearButtonClick = _this.onClearButtonClick.bind(_assertThisInitialized(_this));
|
|
285
282
|
_this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));
|
|
283
|
+
_this.onPanelMouseUp = _this.onPanelMouseUp.bind(_assertThisInitialized(_this));
|
|
286
284
|
_this.incrementHour = _this.incrementHour.bind(_assertThisInitialized(_this));
|
|
287
285
|
_this.decrementHour = _this.decrementHour.bind(_assertThisInitialized(_this));
|
|
288
286
|
_this.incrementMinute = _this.incrementMinute.bind(_assertThisInitialized(_this));
|
|
@@ -330,7 +328,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
330
328
|
if (this.props.inline) {
|
|
331
329
|
this.initFocusableCell();
|
|
332
330
|
} else if (this.props.mask) {
|
|
333
|
-
|
|
331
|
+
utils.mask(this.inputRef.current, {
|
|
334
332
|
mask: this.props.mask,
|
|
335
333
|
readOnly: this.props.readOnlyInput || this.props.disabled,
|
|
336
334
|
onChange: function onChange(e) {
|
|
@@ -411,12 +409,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
411
409
|
this.scrollHandler = null;
|
|
412
410
|
}
|
|
413
411
|
|
|
414
|
-
|
|
412
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
415
413
|
}
|
|
416
414
|
}, {
|
|
417
415
|
key: "renderTooltip",
|
|
418
416
|
value: function renderTooltip() {
|
|
419
|
-
this.tooltip =
|
|
417
|
+
this.tooltip = tooltip.tip({
|
|
420
418
|
target: this.inputRef.current,
|
|
421
419
|
content: this.props.tooltip,
|
|
422
420
|
options: this.props.tooltipOptions
|
|
@@ -567,7 +565,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
567
565
|
isValid = false;
|
|
568
566
|
}
|
|
569
567
|
} else if (value.every(function (v) {
|
|
570
|
-
return _this7.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && _this7.isSelectableTime(
|
|
568
|
+
return _this7.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && _this7.isSelectableTime(v);
|
|
571
569
|
})) {
|
|
572
570
|
if (this.isRangeSelection()) {
|
|
573
571
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -623,7 +621,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
623
621
|
key: "trapFocus",
|
|
624
622
|
value: function trapFocus(event) {
|
|
625
623
|
event.preventDefault();
|
|
626
|
-
var focusableElements =
|
|
624
|
+
var focusableElements = utils.DomHandler.getFocusableElements(this.overlayRef.current);
|
|
627
625
|
|
|
628
626
|
if (focusableElements && focusableElements.length > 0) {
|
|
629
627
|
if (!document.activeElement) {
|
|
@@ -647,13 +645,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
647
645
|
if (this.navigation) {
|
|
648
646
|
if (this.navigation.button) {
|
|
649
647
|
this.initFocusableCell();
|
|
650
|
-
if (this.navigation.backward)
|
|
648
|
+
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();
|
|
651
649
|
} else {
|
|
652
650
|
if (this.navigation.backward) {
|
|
653
|
-
var cells =
|
|
651
|
+
var cells = utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
654
652
|
cell = cells[cells.length - 1];
|
|
655
653
|
} else {
|
|
656
|
-
cell =
|
|
654
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
657
655
|
}
|
|
658
656
|
|
|
659
657
|
if (cell) {
|
|
@@ -673,18 +671,18 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
673
671
|
var cell;
|
|
674
672
|
|
|
675
673
|
if (this.view === 'month') {
|
|
676
|
-
var cells =
|
|
677
|
-
var selectedCell =
|
|
674
|
+
var cells = utils.DomHandler.find(this.overlayRef.current, '.p-monthpicker .p-monthpicker-month');
|
|
675
|
+
var selectedCell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-monthpicker .p-monthpicker-month.p-highlight');
|
|
678
676
|
cells.forEach(function (cell) {
|
|
679
677
|
return cell.tabIndex = -1;
|
|
680
678
|
});
|
|
681
679
|
cell = selectedCell || cells[0];
|
|
682
680
|
} else {
|
|
683
|
-
cell =
|
|
681
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, 'span.p-highlight');
|
|
684
682
|
|
|
685
683
|
if (!cell) {
|
|
686
|
-
var todayCell =
|
|
687
|
-
if (todayCell) cell = todayCell;else cell =
|
|
684
|
+
var todayCell = utils.DomHandler.findSingle(this.overlayRef.current, 'td.p-datepicker-today span:not(.p-disabled)');
|
|
685
|
+
if (todayCell) cell = todayCell;else cell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
688
686
|
}
|
|
689
687
|
}
|
|
690
688
|
|
|
@@ -819,12 +817,17 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
819
817
|
key: "onPanelClick",
|
|
820
818
|
value: function onPanelClick(event) {
|
|
821
819
|
if (!this.props.inline) {
|
|
822
|
-
|
|
820
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
823
821
|
originalEvent: event,
|
|
824
822
|
target: this.container
|
|
825
823
|
});
|
|
826
824
|
}
|
|
827
825
|
}
|
|
826
|
+
}, {
|
|
827
|
+
key: "onPanelMouseUp",
|
|
828
|
+
value: function onPanelMouseUp(event) {
|
|
829
|
+
this.onPanelClick(event);
|
|
830
|
+
}
|
|
828
831
|
}, {
|
|
829
832
|
key: "onTimePickerElementMouseDown",
|
|
830
833
|
value: function onTimePickerElementMouseDown(event, type, direction) {
|
|
@@ -1099,8 +1102,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1099
1102
|
}
|
|
1100
1103
|
}, {
|
|
1101
1104
|
key: "getViewDate",
|
|
1102
|
-
value: function getViewDate() {
|
|
1103
|
-
|
|
1105
|
+
value: function getViewDate(date) {
|
|
1106
|
+
var propValue = this.props.value;
|
|
1107
|
+
var viewDate = date || (this.props.onViewDateChange ? this.props.viewDate : this.state.viewDate);
|
|
1108
|
+
|
|
1109
|
+
if (Array.isArray(propValue)) {
|
|
1110
|
+
propValue = propValue[0];
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return viewDate && this.isValidDate(viewDate) ? viewDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
|
|
1104
1114
|
}
|
|
1105
1115
|
}, {
|
|
1106
1116
|
key: "getCurrentDateTime",
|
|
@@ -1312,13 +1322,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1312
1322
|
case 40:
|
|
1313
1323
|
{
|
|
1314
1324
|
cellContent.tabIndex = '-1';
|
|
1315
|
-
var cellIndex =
|
|
1325
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1316
1326
|
var nextRow = cell.parentElement.nextElementSibling;
|
|
1317
1327
|
|
|
1318
1328
|
if (nextRow) {
|
|
1319
1329
|
var focusCell = nextRow.children[cellIndex].children[0];
|
|
1320
1330
|
|
|
1321
|
-
if (
|
|
1331
|
+
if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
|
|
1322
1332
|
this.navigation = {
|
|
1323
1333
|
backward: false
|
|
1324
1334
|
};
|
|
@@ -1343,14 +1353,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1343
1353
|
{
|
|
1344
1354
|
cellContent.tabIndex = '-1';
|
|
1345
1355
|
|
|
1346
|
-
var _cellIndex =
|
|
1356
|
+
var _cellIndex = utils.DomHandler.index(cell);
|
|
1347
1357
|
|
|
1348
1358
|
var prevRow = cell.parentElement.previousElementSibling;
|
|
1349
1359
|
|
|
1350
1360
|
if (prevRow) {
|
|
1351
1361
|
var _focusCell = prevRow.children[_cellIndex].children[0];
|
|
1352
1362
|
|
|
1353
|
-
if (
|
|
1363
|
+
if (utils.DomHandler.hasClass(_focusCell, 'p-disabled')) {
|
|
1354
1364
|
this.navigation = {
|
|
1355
1365
|
backward: true
|
|
1356
1366
|
};
|
|
@@ -1380,7 +1390,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1380
1390
|
if (prevCell) {
|
|
1381
1391
|
var _focusCell2 = prevCell.children[0];
|
|
1382
1392
|
|
|
1383
|
-
if (
|
|
1393
|
+
if (utils.DomHandler.hasClass(_focusCell2, 'p-disabled')) {
|
|
1384
1394
|
this.navigateToMonth(true, groupIndex, event);
|
|
1385
1395
|
} else {
|
|
1386
1396
|
_focusCell2.tabIndex = '0';
|
|
@@ -1404,7 +1414,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1404
1414
|
if (nextCell) {
|
|
1405
1415
|
var _focusCell3 = nextCell.children[0];
|
|
1406
1416
|
|
|
1407
|
-
if (
|
|
1417
|
+
if (utils.DomHandler.hasClass(_focusCell3, 'p-disabled')) {
|
|
1408
1418
|
this.navigateToMonth(false, groupIndex, event);
|
|
1409
1419
|
} else {
|
|
1410
1420
|
_focusCell3.tabIndex = '0';
|
|
@@ -1454,7 +1464,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1454
1464
|
this.navBackward(event);
|
|
1455
1465
|
} else {
|
|
1456
1466
|
var prevMonthContainer = this.overlayRef.current.children[groupIndex - 1];
|
|
1457
|
-
var cells =
|
|
1467
|
+
var cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1458
1468
|
var focusCell = cells[cells.length - 1];
|
|
1459
1469
|
focusCell.tabIndex = '0';
|
|
1460
1470
|
focusCell.focus();
|
|
@@ -1468,7 +1478,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1468
1478
|
} else {
|
|
1469
1479
|
var nextMonthContainer = this.overlayRef.current.children[groupIndex + 1];
|
|
1470
1480
|
|
|
1471
|
-
var _focusCell4 =
|
|
1481
|
+
var _focusCell4 = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1472
1482
|
|
|
1473
1483
|
_focusCell4.tabIndex = '0';
|
|
1474
1484
|
|
|
@@ -1488,7 +1498,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1488
1498
|
{
|
|
1489
1499
|
cell.tabIndex = '-1';
|
|
1490
1500
|
var cells = cell.parentElement.children;
|
|
1491
|
-
var cellIndex =
|
|
1501
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1492
1502
|
var nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
|
|
1493
1503
|
|
|
1494
1504
|
if (nextCell) {
|
|
@@ -1565,7 +1575,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1565
1575
|
return;
|
|
1566
1576
|
}
|
|
1567
1577
|
|
|
1568
|
-
|
|
1578
|
+
utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(function (cell) {
|
|
1569
1579
|
return cell.tabIndex = -1;
|
|
1570
1580
|
});
|
|
1571
1581
|
event.currentTarget.focus();
|
|
@@ -1648,8 +1658,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1648
1658
|
var startDate = this.props.value[0];
|
|
1649
1659
|
var endDate = this.props.value[1];
|
|
1650
1660
|
|
|
1651
|
-
if (!endDate
|
|
1652
|
-
|
|
1661
|
+
if (!endDate) {
|
|
1662
|
+
if (date.getTime() >= startDate.getTime()) {
|
|
1663
|
+
endDate = date;
|
|
1664
|
+
} else {
|
|
1665
|
+
endDate = startDate;
|
|
1666
|
+
startDate = date;
|
|
1667
|
+
}
|
|
1653
1668
|
} else {
|
|
1654
1669
|
startDate = date;
|
|
1655
1670
|
endDate = null;
|
|
@@ -1722,7 +1737,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1722
1737
|
}
|
|
1723
1738
|
};
|
|
1724
1739
|
|
|
1725
|
-
|
|
1740
|
+
overlayservice.OverlayService.on('overlay-click', _this10.overlayEventListener);
|
|
1726
1741
|
});
|
|
1727
1742
|
}
|
|
1728
1743
|
}
|
|
@@ -1740,7 +1755,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1740
1755
|
callback();
|
|
1741
1756
|
}
|
|
1742
1757
|
|
|
1743
|
-
|
|
1758
|
+
overlayservice.OverlayService.off('overlay-click', _this11.overlayEventListener);
|
|
1744
1759
|
_this11.overlayEventListener = null;
|
|
1745
1760
|
};
|
|
1746
1761
|
|
|
@@ -1756,7 +1771,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1756
1771
|
key: "onOverlayEnter",
|
|
1757
1772
|
value: function onOverlayEnter() {
|
|
1758
1773
|
if (this.props.autoZIndex) {
|
|
1759
|
-
|
|
1774
|
+
var key = this.props.touchUI ? 'modal' : 'overlay';
|
|
1775
|
+
utils.ZIndexUtils.set(key, this.overlayRef.current, PrimeReact__default["default"].autoZIndex, this.props.baseZIndex || PrimeReact__default["default"].zIndex[key]);
|
|
1760
1776
|
}
|
|
1761
1777
|
|
|
1762
1778
|
this.alignOverlay();
|
|
@@ -1779,7 +1795,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1779
1795
|
}, {
|
|
1780
1796
|
key: "onOverlayExited",
|
|
1781
1797
|
value: function onOverlayExited() {
|
|
1782
|
-
|
|
1798
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1783
1799
|
this.props.onHide && this.props.onHide();
|
|
1784
1800
|
}
|
|
1785
1801
|
}, {
|
|
@@ -1829,7 +1845,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1829
1845
|
var _this13 = this;
|
|
1830
1846
|
|
|
1831
1847
|
if (!this.scrollHandler) {
|
|
1832
|
-
this.scrollHandler = new
|
|
1848
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1833
1849
|
if (_this13.isVisible()) {
|
|
1834
1850
|
_this13.hideOverlay();
|
|
1835
1851
|
}
|
|
@@ -1853,12 +1869,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1853
1869
|
}, {
|
|
1854
1870
|
key: "isNavIconClicked",
|
|
1855
1871
|
value: function isNavIconClicked(target) {
|
|
1856
|
-
return
|
|
1872
|
+
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');
|
|
1857
1873
|
}
|
|
1858
1874
|
}, {
|
|
1859
1875
|
key: "onWindowResize",
|
|
1860
1876
|
value: function onWindowResize() {
|
|
1861
|
-
if (this.isVisible() && !
|
|
1877
|
+
if (this.isVisible() && !utils.DomHandler.isAndroid()) {
|
|
1862
1878
|
this.hideOverlay();
|
|
1863
1879
|
}
|
|
1864
1880
|
}
|
|
@@ -1868,7 +1884,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1868
1884
|
if (this.props.touchUI) {
|
|
1869
1885
|
this.enableModality();
|
|
1870
1886
|
} else {
|
|
1871
|
-
|
|
1887
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1872
1888
|
}
|
|
1873
1889
|
}
|
|
1874
1890
|
}, {
|
|
@@ -1878,8 +1894,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1878
1894
|
|
|
1879
1895
|
if (!this.touchUIMask) {
|
|
1880
1896
|
this.touchUIMask = document.createElement('div');
|
|
1881
|
-
this.touchUIMask.style.zIndex = String(
|
|
1882
|
-
|
|
1897
|
+
this.touchUIMask.style.zIndex = String(utils.ZIndexUtils.get(this.overlayRef.current) - 1);
|
|
1898
|
+
utils.DomHandler.addMultipleClasses(this.touchUIMask, 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay-enter');
|
|
1883
1899
|
|
|
1884
1900
|
this.touchUIMaskClickListener = function () {
|
|
1885
1901
|
_this14.disableModality();
|
|
@@ -1887,7 +1903,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1887
1903
|
|
|
1888
1904
|
this.touchUIMask.addEventListener('click', this.touchUIMaskClickListener);
|
|
1889
1905
|
document.body.appendChild(this.touchUIMask);
|
|
1890
|
-
|
|
1906
|
+
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
1891
1907
|
}
|
|
1892
1908
|
}
|
|
1893
1909
|
}, {
|
|
@@ -1896,7 +1912,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1896
1912
|
var _this15 = this;
|
|
1897
1913
|
|
|
1898
1914
|
if (this.touchUIMask) {
|
|
1899
|
-
|
|
1915
|
+
utils.DomHandler.addClass(this.touchUIMask, 'p-component-overlay-leave');
|
|
1900
1916
|
this.touchUIMask.addEventListener('animationend', function () {
|
|
1901
1917
|
_this15.destroyMask();
|
|
1902
1918
|
});
|
|
@@ -1915,14 +1931,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1915
1931
|
for (var i = 0; i < bodyChildren.length; i++) {
|
|
1916
1932
|
var bodyChild = bodyChildren[i];
|
|
1917
1933
|
|
|
1918
|
-
if (
|
|
1934
|
+
if (utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
|
|
1919
1935
|
hasBlockerMasks = true;
|
|
1920
1936
|
break;
|
|
1921
1937
|
}
|
|
1922
1938
|
}
|
|
1923
1939
|
|
|
1924
1940
|
if (!hasBlockerMasks) {
|
|
1925
|
-
|
|
1941
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
1926
1942
|
}
|
|
1927
1943
|
}
|
|
1928
1944
|
}, {
|
|
@@ -2843,12 +2859,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2843
2859
|
visibility: 'hidden'
|
|
2844
2860
|
}
|
|
2845
2861
|
};
|
|
2846
|
-
return /*#__PURE__*/React__default[
|
|
2862
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2847
2863
|
type: "button",
|
|
2848
2864
|
className: "p-datepicker-prev p-link"
|
|
2849
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2865
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2850
2866
|
className: "p-datepicker-prev-icon pi pi-chevron-left"
|
|
2851
|
-
}), /*#__PURE__*/React__default[
|
|
2867
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2852
2868
|
}
|
|
2853
2869
|
}, {
|
|
2854
2870
|
key: "renderForwardNavigator",
|
|
@@ -2865,12 +2881,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2865
2881
|
visibility: 'hidden'
|
|
2866
2882
|
}
|
|
2867
2883
|
};
|
|
2868
|
-
return /*#__PURE__*/React__default[
|
|
2884
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2869
2885
|
type: "button",
|
|
2870
2886
|
className: "p-datepicker-next p-link"
|
|
2871
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2887
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2872
2888
|
className: "p-datepicker-next-icon pi pi-chevron-right"
|
|
2873
|
-
}), /*#__PURE__*/React__default[
|
|
2889
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2874
2890
|
}
|
|
2875
2891
|
}, {
|
|
2876
2892
|
key: "isInMinYear",
|
|
@@ -2904,14 +2920,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2904
2920
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2905
2921
|
return option.label;
|
|
2906
2922
|
});
|
|
2907
|
-
var content = /*#__PURE__*/React__default[
|
|
2923
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2908
2924
|
className: "p-datepicker-month",
|
|
2909
2925
|
onChange: function onChange(e) {
|
|
2910
2926
|
return _this18.onMonthDropdownChange(e, e.target.value);
|
|
2911
2927
|
},
|
|
2912
2928
|
value: viewMonth
|
|
2913
2929
|
}, displayedMonthOptions.map(function (option) {
|
|
2914
|
-
return /*#__PURE__*/React__default[
|
|
2930
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2915
2931
|
key: option.label,
|
|
2916
2932
|
value: option.value
|
|
2917
2933
|
}, option.label);
|
|
@@ -2927,12 +2943,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2927
2943
|
element: content,
|
|
2928
2944
|
props: this.props
|
|
2929
2945
|
};
|
|
2930
|
-
return
|
|
2946
|
+
return utils.ObjectUtils.getJSXElement(this.props.monthNavigatorTemplate, defaultContentOptions);
|
|
2931
2947
|
}
|
|
2932
2948
|
|
|
2933
2949
|
return content;
|
|
2934
2950
|
} else {
|
|
2935
|
-
return /*#__PURE__*/React__default[
|
|
2951
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2936
2952
|
className: "p-datepicker-month"
|
|
2937
2953
|
}, monthNames[month]);
|
|
2938
2954
|
}
|
|
@@ -2957,14 +2973,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2957
2973
|
var displayedYearNames = yearOptions.filter(function (year) {
|
|
2958
2974
|
return !(_this19.props.minDate && _this19.props.minDate.getFullYear() > year) && !(_this19.props.maxDate && _this19.props.maxDate.getFullYear() < year);
|
|
2959
2975
|
});
|
|
2960
|
-
var content = /*#__PURE__*/React__default[
|
|
2976
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2961
2977
|
className: "p-datepicker-year",
|
|
2962
2978
|
onChange: function onChange(e) {
|
|
2963
2979
|
return _this19.onYearDropdownChange(e, e.target.value);
|
|
2964
2980
|
},
|
|
2965
2981
|
value: viewYear
|
|
2966
2982
|
}, displayedYearNames.map(function (year) {
|
|
2967
|
-
return /*#__PURE__*/React__default[
|
|
2983
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2968
2984
|
key: year,
|
|
2969
2985
|
value: year
|
|
2970
2986
|
}, year);
|
|
@@ -2987,12 +3003,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2987
3003
|
element: content,
|
|
2988
3004
|
props: this.props
|
|
2989
3005
|
};
|
|
2990
|
-
return
|
|
3006
|
+
return utils.ObjectUtils.getJSXElement(this.props.yearNavigatorTemplate, defaultContentOptions);
|
|
2991
3007
|
}
|
|
2992
3008
|
|
|
2993
3009
|
return content;
|
|
2994
3010
|
} else {
|
|
2995
|
-
return /*#__PURE__*/React__default[
|
|
3011
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2996
3012
|
className: "p-datepicker-year"
|
|
2997
3013
|
}, year);
|
|
2998
3014
|
}
|
|
@@ -3002,7 +3018,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3002
3018
|
value: function renderTitle(monthMetaData) {
|
|
3003
3019
|
var month = this.renderTitleMonthElement(monthMetaData.month);
|
|
3004
3020
|
var year = this.renderTitleYearElement(monthMetaData.year);
|
|
3005
|
-
return /*#__PURE__*/React__default[
|
|
3021
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3006
3022
|
className: "p-datepicker-title"
|
|
3007
3023
|
}, month, year);
|
|
3008
3024
|
}
|
|
@@ -3010,18 +3026,18 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3010
3026
|
key: "renderDayNames",
|
|
3011
3027
|
value: function renderDayNames(weekDays) {
|
|
3012
3028
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
3013
|
-
return /*#__PURE__*/React__default[
|
|
3029
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3014
3030
|
key: "".concat(weekDay, "-").concat(index),
|
|
3015
3031
|
scope: "col"
|
|
3016
|
-
}, /*#__PURE__*/React__default[
|
|
3032
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, weekDay));
|
|
3017
3033
|
});
|
|
3018
3034
|
|
|
3019
3035
|
if (this.props.showWeek) {
|
|
3020
|
-
var weekHeader = /*#__PURE__*/React__default[
|
|
3036
|
+
var weekHeader = /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3021
3037
|
scope: "col",
|
|
3022
3038
|
key: 'wn',
|
|
3023
3039
|
className: "p-datepicker-weekheader p-disabled"
|
|
3024
|
-
}, /*#__PURE__*/React__default[
|
|
3040
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, PrimeReact.localeOption('weekHeader', this.props.locale)));
|
|
3025
3041
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
3026
3042
|
} else {
|
|
3027
3043
|
return dayNames;
|
|
@@ -3033,7 +3049,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3033
3049
|
var _this20 = this;
|
|
3034
3050
|
|
|
3035
3051
|
var content = this.props.dateTemplate ? this.props.dateTemplate(date) : date.day;
|
|
3036
|
-
return /*#__PURE__*/React__default[
|
|
3052
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3037
3053
|
className: className,
|
|
3038
3054
|
onClick: function onClick(e) {
|
|
3039
3055
|
return _this20.onDateSelect(e, date);
|
|
@@ -3041,7 +3057,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3041
3057
|
onKeyDown: function onKeyDown(e) {
|
|
3042
3058
|
return _this20.onDateCellKeydown(e, date, groupIndex);
|
|
3043
3059
|
}
|
|
3044
|
-
}, content, /*#__PURE__*/React__default[
|
|
3060
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3045
3061
|
}
|
|
3046
3062
|
}, {
|
|
3047
3063
|
key: "renderWeek",
|
|
@@ -3051,26 +3067,26 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3051
3067
|
var week = weekDates.map(function (date) {
|
|
3052
3068
|
var selected = _this21.isSelected(date);
|
|
3053
3069
|
|
|
3054
|
-
var cellClassName =
|
|
3070
|
+
var cellClassName = utils.classNames({
|
|
3055
3071
|
'p-datepicker-other-month': date.otherMonth,
|
|
3056
3072
|
'p-datepicker-today': date.today
|
|
3057
3073
|
});
|
|
3058
|
-
var dateClassName =
|
|
3074
|
+
var dateClassName = utils.classNames({
|
|
3059
3075
|
'p-highlight': selected,
|
|
3060
3076
|
'p-disabled': !date.selectable
|
|
3061
3077
|
});
|
|
3062
3078
|
var content = date.otherMonth && !_this21.props.showOtherMonths ? null : _this21.renderDateCellContent(date, dateClassName, groupIndex);
|
|
3063
|
-
return /*#__PURE__*/React__default[
|
|
3079
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3064
3080
|
key: date.day,
|
|
3065
3081
|
className: cellClassName
|
|
3066
3082
|
}, content);
|
|
3067
3083
|
});
|
|
3068
3084
|
|
|
3069
3085
|
if (this.props.showWeek) {
|
|
3070
|
-
var weekNumberCell = /*#__PURE__*/React__default[
|
|
3086
|
+
var weekNumberCell = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3071
3087
|
key: 'wn' + weekNumber,
|
|
3072
3088
|
className: "p-datepicker-weeknumber"
|
|
3073
|
-
}, /*#__PURE__*/React__default[
|
|
3089
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3074
3090
|
className: "p-disabled"
|
|
3075
3091
|
}, weekNumber));
|
|
3076
3092
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
@@ -3084,7 +3100,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3084
3100
|
var _this22 = this;
|
|
3085
3101
|
|
|
3086
3102
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
3087
|
-
return /*#__PURE__*/React__default[
|
|
3103
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
3088
3104
|
key: index
|
|
3089
3105
|
}, _this22.renderWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
3090
3106
|
});
|
|
@@ -3094,11 +3110,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3094
3110
|
value: function renderDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
3095
3111
|
var dayNames = this.renderDayNames(weekDays);
|
|
3096
3112
|
var dates = this.renderDates(monthMetaData, groupIndex);
|
|
3097
|
-
return /*#__PURE__*/React__default[
|
|
3113
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3098
3114
|
className: "p-datepicker-calendar-container"
|
|
3099
|
-
}, /*#__PURE__*/React__default[
|
|
3115
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3100
3116
|
className: "p-datepicker-calendar"
|
|
3101
|
-
}, /*#__PURE__*/React__default[
|
|
3117
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, dayNames)), /*#__PURE__*/React__default["default"].createElement("tbody", null, dates)));
|
|
3102
3118
|
}
|
|
3103
3119
|
}, {
|
|
3104
3120
|
key: "renderMonth",
|
|
@@ -3109,10 +3125,10 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3109
3125
|
var title = this.renderTitle(monthMetaData);
|
|
3110
3126
|
var dateViewGrid = this.renderDateViewGrid(monthMetaData, weekDays, index);
|
|
3111
3127
|
var header = this.props.headerTemplate ? this.props.headerTemplate() : null;
|
|
3112
|
-
return /*#__PURE__*/React__default[
|
|
3128
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3113
3129
|
key: monthMetaData.month,
|
|
3114
3130
|
className: "p-datepicker-group"
|
|
3115
|
-
}, /*#__PURE__*/React__default[
|
|
3131
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3116
3132
|
className: "p-datepicker-header"
|
|
3117
3133
|
}, header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
3118
3134
|
}
|
|
@@ -3124,7 +3140,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3124
3140
|
var groups = monthsMetaData.map(function (monthMetaData, index) {
|
|
3125
3141
|
return _this23.renderMonth(monthMetaData, index);
|
|
3126
3142
|
});
|
|
3127
|
-
return /*#__PURE__*/React__default[
|
|
3143
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3128
3144
|
className: "p-datepicker-group-container"
|
|
3129
3145
|
}, groups);
|
|
3130
3146
|
}
|
|
@@ -3134,19 +3150,19 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3134
3150
|
var viewDate = this.getViewDate();
|
|
3135
3151
|
var monthsMetaData = this.createMonths(viewDate.getMonth(), viewDate.getFullYear());
|
|
3136
3152
|
var months = this.renderMonths(monthsMetaData);
|
|
3137
|
-
return /*#__PURE__*/React__default[
|
|
3153
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, months);
|
|
3138
3154
|
}
|
|
3139
3155
|
}, {
|
|
3140
3156
|
key: "renderMonthViewMonth",
|
|
3141
3157
|
value: function renderMonthViewMonth(index) {
|
|
3142
3158
|
var _this24 = this;
|
|
3143
3159
|
|
|
3144
|
-
var className =
|
|
3160
|
+
var className = utils.classNames('p-monthpicker-month', {
|
|
3145
3161
|
'p-highlight': this.isMonthSelected(index)
|
|
3146
3162
|
});
|
|
3147
3163
|
var monthNamesShort = PrimeReact.localeOption('monthNamesShort', this.props.locale);
|
|
3148
3164
|
var monthName = monthNamesShort[index];
|
|
3149
|
-
return /*#__PURE__*/React__default[
|
|
3165
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3150
3166
|
key: monthName,
|
|
3151
3167
|
className: className,
|
|
3152
3168
|
onClick: function onClick(event) {
|
|
@@ -3155,7 +3171,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3155
3171
|
onKeyDown: function onKeyDown(event) {
|
|
3156
3172
|
return _this24.onMonthCellKeydown(event, index);
|
|
3157
3173
|
}
|
|
3158
|
-
}, monthName, /*#__PURE__*/React__default[
|
|
3174
|
+
}, monthName, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3159
3175
|
}
|
|
3160
3176
|
}, {
|
|
3161
3177
|
key: "renderMonthViewMonths",
|
|
@@ -3175,15 +3191,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3175
3191
|
var forwardNavigator = this.renderForwardNavigator(true);
|
|
3176
3192
|
var yearElement = this.renderTitleYearElement(this.getViewDate().getFullYear());
|
|
3177
3193
|
var months = this.renderMonthViewMonths();
|
|
3178
|
-
return /*#__PURE__*/React__default[
|
|
3194
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3179
3195
|
className: "p-datepicker-group-container"
|
|
3180
|
-
}, /*#__PURE__*/React__default[
|
|
3196
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3181
3197
|
className: "p-datepicker-group"
|
|
3182
|
-
}, /*#__PURE__*/React__default[
|
|
3198
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3183
3199
|
className: "p-datepicker-header"
|
|
3184
|
-
}, backwardNavigator, /*#__PURE__*/React__default[
|
|
3200
|
+
}, backwardNavigator, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3185
3201
|
className: "p-datepicker-title"
|
|
3186
|
-
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default[
|
|
3202
|
+
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3187
3203
|
className: "p-monthpicker"
|
|
3188
3204
|
}, months));
|
|
3189
3205
|
}
|
|
@@ -3213,9 +3229,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3213
3229
|
}
|
|
3214
3230
|
|
|
3215
3231
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
3216
|
-
return /*#__PURE__*/React__default[
|
|
3232
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3217
3233
|
className: "p-hour-picker"
|
|
3218
|
-
}, /*#__PURE__*/React__default[
|
|
3234
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3219
3235
|
type: "button",
|
|
3220
3236
|
className: "p-link",
|
|
3221
3237
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3226,9 +3242,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3226
3242
|
onKeyDown: function onKeyDown(e) {
|
|
3227
3243
|
return _this25.onContainerButtonKeydown(e);
|
|
3228
3244
|
}
|
|
3229
|
-
}, /*#__PURE__*/React__default[
|
|
3245
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3230
3246
|
className: "pi pi-chevron-up"
|
|
3231
|
-
}), /*#__PURE__*/React__default[
|
|
3247
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, hourDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3232
3248
|
type: "button",
|
|
3233
3249
|
className: "p-link",
|
|
3234
3250
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3239,9 +3255,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3239
3255
|
onKeyDown: function onKeyDown(e) {
|
|
3240
3256
|
return _this25.onContainerButtonKeydown(e);
|
|
3241
3257
|
}
|
|
3242
|
-
}, /*#__PURE__*/React__default[
|
|
3258
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3243
3259
|
className: "pi pi-chevron-down"
|
|
3244
|
-
}), /*#__PURE__*/React__default[
|
|
3260
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3245
3261
|
}
|
|
3246
3262
|
}, {
|
|
3247
3263
|
key: "renderMinutePicker",
|
|
@@ -3251,9 +3267,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3251
3267
|
var currentTime = this.getCurrentDateTime();
|
|
3252
3268
|
var minute = currentTime.getMinutes();
|
|
3253
3269
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
3254
|
-
return /*#__PURE__*/React__default[
|
|
3270
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3255
3271
|
className: "p-minute-picker"
|
|
3256
|
-
}, /*#__PURE__*/React__default[
|
|
3272
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3257
3273
|
type: "button",
|
|
3258
3274
|
className: "p-link",
|
|
3259
3275
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3264,9 +3280,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3264
3280
|
onKeyDown: function onKeyDown(e) {
|
|
3265
3281
|
return _this26.onContainerButtonKeydown(e);
|
|
3266
3282
|
}
|
|
3267
|
-
}, /*#__PURE__*/React__default[
|
|
3283
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3268
3284
|
className: "pi pi-chevron-up"
|
|
3269
|
-
}), /*#__PURE__*/React__default[
|
|
3285
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, minuteDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3270
3286
|
type: "button",
|
|
3271
3287
|
className: "p-link",
|
|
3272
3288
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3277,9 +3293,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3277
3293
|
onKeyDown: function onKeyDown(e) {
|
|
3278
3294
|
return _this26.onContainerButtonKeydown(e);
|
|
3279
3295
|
}
|
|
3280
|
-
}, /*#__PURE__*/React__default[
|
|
3296
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3281
3297
|
className: "pi pi-chevron-down"
|
|
3282
|
-
}), /*#__PURE__*/React__default[
|
|
3298
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3283
3299
|
}
|
|
3284
3300
|
}, {
|
|
3285
3301
|
key: "renderSecondPicker",
|
|
@@ -3290,9 +3306,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3290
3306
|
var currentTime = this.getCurrentDateTime();
|
|
3291
3307
|
var second = currentTime.getSeconds();
|
|
3292
3308
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
3293
|
-
return /*#__PURE__*/React__default[
|
|
3309
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3294
3310
|
className: "p-second-picker"
|
|
3295
|
-
}, /*#__PURE__*/React__default[
|
|
3311
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3296
3312
|
type: "button",
|
|
3297
3313
|
className: "p-link",
|
|
3298
3314
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3303,9 +3319,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3303
3319
|
onKeyDown: function onKeyDown(e) {
|
|
3304
3320
|
return _this27.onContainerButtonKeydown(e);
|
|
3305
3321
|
}
|
|
3306
|
-
}, /*#__PURE__*/React__default[
|
|
3322
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3307
3323
|
className: "pi pi-chevron-up"
|
|
3308
|
-
}), /*#__PURE__*/React__default[
|
|
3324
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, secondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3309
3325
|
type: "button",
|
|
3310
3326
|
className: "p-link",
|
|
3311
3327
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3316,9 +3332,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3316
3332
|
onKeyDown: function onKeyDown(e) {
|
|
3317
3333
|
return _this27.onContainerButtonKeydown(e);
|
|
3318
3334
|
}
|
|
3319
|
-
}, /*#__PURE__*/React__default[
|
|
3335
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3320
3336
|
className: "pi pi-chevron-down"
|
|
3321
|
-
}), /*#__PURE__*/React__default[
|
|
3337
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3322
3338
|
}
|
|
3323
3339
|
|
|
3324
3340
|
return null;
|
|
@@ -3332,9 +3348,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3332
3348
|
var currentTime = this.getCurrentDateTime();
|
|
3333
3349
|
var millisecond = currentTime.getMilliseconds();
|
|
3334
3350
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
3335
|
-
return /*#__PURE__*/React__default[
|
|
3351
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3336
3352
|
className: "p-millisecond-picker"
|
|
3337
|
-
}, /*#__PURE__*/React__default[
|
|
3353
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3338
3354
|
type: "button",
|
|
3339
3355
|
className: "p-link",
|
|
3340
3356
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3345,9 +3361,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3345
3361
|
onKeyDown: function onKeyDown(e) {
|
|
3346
3362
|
return _this28.onContainerButtonKeydown(e);
|
|
3347
3363
|
}
|
|
3348
|
-
}, /*#__PURE__*/React__default[
|
|
3364
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3349
3365
|
className: "pi pi-chevron-up"
|
|
3350
|
-
}), /*#__PURE__*/React__default[
|
|
3366
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, millisecondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3351
3367
|
type: "button",
|
|
3352
3368
|
className: "p-link",
|
|
3353
3369
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3358,9 +3374,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3358
3374
|
onKeyDown: function onKeyDown(e) {
|
|
3359
3375
|
return _this28.onContainerButtonKeydown(e);
|
|
3360
3376
|
}
|
|
3361
|
-
}, /*#__PURE__*/React__default[
|
|
3377
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3362
3378
|
className: "pi pi-chevron-down"
|
|
3363
|
-
}), /*#__PURE__*/React__default[
|
|
3379
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3364
3380
|
}
|
|
3365
3381
|
|
|
3366
3382
|
return null;
|
|
@@ -3372,21 +3388,21 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3372
3388
|
var currentTime = this.getCurrentDateTime();
|
|
3373
3389
|
var hour = currentTime.getHours();
|
|
3374
3390
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
3375
|
-
return /*#__PURE__*/React__default[
|
|
3391
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3376
3392
|
className: "p-ampm-picker"
|
|
3377
|
-
}, /*#__PURE__*/React__default[
|
|
3393
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3378
3394
|
type: "button",
|
|
3379
3395
|
className: "p-link",
|
|
3380
3396
|
onClick: this.toggleAmPm
|
|
3381
|
-
}, /*#__PURE__*/React__default[
|
|
3397
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3382
3398
|
className: "pi pi-chevron-up"
|
|
3383
|
-
}), /*#__PURE__*/React__default[
|
|
3399
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, display), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3384
3400
|
type: "button",
|
|
3385
3401
|
className: "p-link",
|
|
3386
3402
|
onClick: this.toggleAmPm
|
|
3387
|
-
}, /*#__PURE__*/React__default[
|
|
3403
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3388
3404
|
className: "pi pi-chevron-down"
|
|
3389
|
-
}), /*#__PURE__*/React__default[
|
|
3405
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3390
3406
|
}
|
|
3391
3407
|
|
|
3392
3408
|
return null;
|
|
@@ -3394,15 +3410,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3394
3410
|
}, {
|
|
3395
3411
|
key: "renderSeparator",
|
|
3396
3412
|
value: function renderSeparator(separator) {
|
|
3397
|
-
return /*#__PURE__*/React__default[
|
|
3413
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3398
3414
|
className: "p-separator"
|
|
3399
|
-
}, /*#__PURE__*/React__default[
|
|
3415
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, separator));
|
|
3400
3416
|
}
|
|
3401
3417
|
}, {
|
|
3402
3418
|
key: "renderTimePicker",
|
|
3403
3419
|
value: function renderTimePicker() {
|
|
3404
3420
|
if (this.props.showTime || this.props.timeOnly) {
|
|
3405
|
-
return /*#__PURE__*/React__default[
|
|
3421
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3406
3422
|
className: "p-timepicker"
|
|
3407
3423
|
}, 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());
|
|
3408
3424
|
}
|
|
@@ -3413,7 +3429,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3413
3429
|
key: "renderInputElement",
|
|
3414
3430
|
value: function renderInputElement() {
|
|
3415
3431
|
if (!this.props.inline) {
|
|
3416
|
-
return /*#__PURE__*/React__default[
|
|
3432
|
+
return /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
3417
3433
|
ref: this.inputRef,
|
|
3418
3434
|
id: this.props.inputId,
|
|
3419
3435
|
name: this.props.name,
|
|
@@ -3425,6 +3441,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3425
3441
|
required: this.props.required,
|
|
3426
3442
|
autoComplete: "off",
|
|
3427
3443
|
placeholder: this.props.placeholder,
|
|
3444
|
+
tabIndex: this.props.tabIndex,
|
|
3428
3445
|
onInput: this.onUserInput,
|
|
3429
3446
|
onFocus: this.onInputFocus,
|
|
3430
3447
|
onBlur: this.onInputBlur,
|
|
@@ -3440,7 +3457,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3440
3457
|
key: "renderButton",
|
|
3441
3458
|
value: function renderButton() {
|
|
3442
3459
|
if (this.props.showIcon) {
|
|
3443
|
-
return /*#__PURE__*/React__default[
|
|
3460
|
+
return /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3444
3461
|
type: "button",
|
|
3445
3462
|
icon: this.props.icon,
|
|
3446
3463
|
onClick: this.onButtonClick,
|
|
@@ -3452,22 +3469,34 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3452
3469
|
|
|
3453
3470
|
return null;
|
|
3454
3471
|
}
|
|
3472
|
+
}, {
|
|
3473
|
+
key: "renderContent",
|
|
3474
|
+
value: function renderContent() {
|
|
3475
|
+
var input = this.renderInputElement();
|
|
3476
|
+
var button = this.renderButton();
|
|
3477
|
+
|
|
3478
|
+
if (this.props.iconPos === 'left') {
|
|
3479
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, button, input);
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, input, button);
|
|
3483
|
+
}
|
|
3455
3484
|
}, {
|
|
3456
3485
|
key: "renderButtonBar",
|
|
3457
3486
|
value: function renderButtonBar() {
|
|
3458
3487
|
var _this29 = this;
|
|
3459
3488
|
|
|
3460
3489
|
if (this.props.showButtonBar) {
|
|
3461
|
-
var todayClassName =
|
|
3462
|
-
var clearClassName =
|
|
3490
|
+
var todayClassName = utils.classNames('p-button-text', this.props.todayButtonClassName);
|
|
3491
|
+
var clearClassName = utils.classNames('p-button-text', this.props.clearButtonClassName);
|
|
3463
3492
|
|
|
3464
3493
|
var _localeOptions4 = PrimeReact.localeOptions(this.props.locale),
|
|
3465
3494
|
today = _localeOptions4.today,
|
|
3466
3495
|
clear = _localeOptions4.clear;
|
|
3467
3496
|
|
|
3468
|
-
return /*#__PURE__*/React__default[
|
|
3497
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3469
3498
|
className: "p-datepicker-buttonbar"
|
|
3470
|
-
}, /*#__PURE__*/React__default[
|
|
3499
|
+
}, /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3471
3500
|
type: "button",
|
|
3472
3501
|
label: today,
|
|
3473
3502
|
onClick: this.onTodayButtonClick,
|
|
@@ -3475,7 +3504,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3475
3504
|
return _this29.onContainerButtonKeydown(e);
|
|
3476
3505
|
},
|
|
3477
3506
|
className: todayClassName
|
|
3478
|
-
}), /*#__PURE__*/React__default[
|
|
3507
|
+
}), /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3479
3508
|
type: "button",
|
|
3480
3509
|
label: clear,
|
|
3481
3510
|
onClick: this.onClearButtonClick,
|
|
@@ -3493,7 +3522,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3493
3522
|
value: function renderFooter() {
|
|
3494
3523
|
if (this.props.footerTemplate) {
|
|
3495
3524
|
var content = this.props.footerTemplate();
|
|
3496
|
-
return /*#__PURE__*/React__default[
|
|
3525
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3497
3526
|
className: "p-datepicker-footer"
|
|
3498
3527
|
}, content);
|
|
3499
3528
|
}
|
|
@@ -3503,16 +3532,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3503
3532
|
}, {
|
|
3504
3533
|
key: "render",
|
|
3505
3534
|
value: function render() {
|
|
3506
|
-
var
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
'p-calendar-timeonly': this.props.timeOnly,
|
|
3512
|
-
'p-inputwrapper-filled': this.props.value || core.DomHandler.hasClass(this.inputRef.current, 'p-filled') && this.inputRef.current.value !== '',
|
|
3513
|
-
'p-inputwrapper-focus': this.state.focused
|
|
3514
|
-
});
|
|
3515
|
-
var panelClassName = core.classNames('p-datepicker p-component', this.props.panelClassName, {
|
|
3535
|
+
var _classNames,
|
|
3536
|
+
_this30 = this;
|
|
3537
|
+
|
|
3538
|
+
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));
|
|
3539
|
+
var panelClassName = utils.classNames('p-datepicker p-component', this.props.panelClassName, {
|
|
3516
3540
|
'p-datepicker-inline': this.props.inline,
|
|
3517
3541
|
'p-disabled': this.props.disabled,
|
|
3518
3542
|
'p-datepicker-timeonly': this.props.timeOnly,
|
|
@@ -3520,27 +3544,27 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3520
3544
|
'p-datepicker-monthpicker': this.props.view === 'month',
|
|
3521
3545
|
'p-datepicker-touch-ui': this.props.touchUI
|
|
3522
3546
|
});
|
|
3523
|
-
var
|
|
3524
|
-
var button = this.renderButton();
|
|
3547
|
+
var content = this.renderContent();
|
|
3525
3548
|
var datePicker = this.renderDatePicker();
|
|
3526
3549
|
var timePicker = this.renderTimePicker();
|
|
3527
3550
|
var buttonBar = this.renderButtonBar();
|
|
3528
3551
|
var footer = this.renderFooter();
|
|
3529
3552
|
var isVisible = this.props.inline || this.isVisible();
|
|
3530
|
-
return /*#__PURE__*/React__default[
|
|
3553
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3531
3554
|
ref: function ref(el) {
|
|
3532
3555
|
return _this30.container = el;
|
|
3533
3556
|
},
|
|
3534
3557
|
id: this.props.id,
|
|
3535
3558
|
className: className,
|
|
3536
3559
|
style: this.props.style
|
|
3537
|
-
},
|
|
3560
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(CalendarPanel, {
|
|
3538
3561
|
ref: this.overlayRef,
|
|
3539
3562
|
className: panelClassName,
|
|
3540
3563
|
style: this.props.panelStyle,
|
|
3541
3564
|
appendTo: this.props.appendTo,
|
|
3542
3565
|
inline: this.props.inline,
|
|
3543
3566
|
onClick: this.onPanelClick,
|
|
3567
|
+
onMouseUp: this.onPanelMouseUp,
|
|
3544
3568
|
in: isVisible,
|
|
3545
3569
|
onEnter: this.onOverlayEnter,
|
|
3546
3570
|
onEntered: this.onOverlayEntered,
|
|
@@ -3578,6 +3602,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3578
3602
|
placeholder: null,
|
|
3579
3603
|
showIcon: false,
|
|
3580
3604
|
icon: 'pi pi-calendar',
|
|
3605
|
+
iconPos: 'right',
|
|
3581
3606
|
showOnFocus: true,
|
|
3582
3607
|
numberOfMonths: 1,
|
|
3583
3608
|
view: 'date',
|
|
@@ -3642,4 +3667,4 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3642
3667
|
|
|
3643
3668
|
return exports;
|
|
3644
3669
|
|
|
3645
|
-
}({}, React, primereact.inputtext, primereact.button, primereact.
|
|
3670
|
+
})({}, React, primereact.inputtext, primereact.button, primereact.csstransition, primereact.portal, primereact.utils, primereact.tooltip, primereact.ripple, primereact.api, primereact.overlayservice);
|