primereact 7.0.0-rc.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -9
- package/accordion/accordion.cjs.js +30 -23
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +3 -2
- package/accordion/accordion.esm.js +15 -8
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +30 -24
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +80 -46
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +65 -31
- package/api/api.esm.js +67 -33
- package/api/api.esm.min.js +1 -1
- package/api/api.js +81 -47
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +76 -68
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +3 -1
- package/autocomplete/autocomplete.esm.js +12 -4
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +72 -69
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +10 -9
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -1
- package/avatar/avatar.esm.js +5 -4
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +11 -10
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -3
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -4
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -4
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +17 -13
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +5 -2
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +16 -14
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +16 -16
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +17 -17
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +26 -36
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +15 -25
- package/button/button.esm.min.js +1 -1
- package/button/button.js +25 -37
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +172 -152
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -1
- package/calendar/calendar.esm.js +46 -26
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +168 -153
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +1 -1
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +2 -2
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +13 -13
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +14 -14
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +37 -36
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +2 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +37 -37
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +51 -47
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +6 -2
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +48 -48
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +6 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +1 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +5 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +20 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -1
- package/checkbox/checkbox.esm.js +13 -8
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +20 -16
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +16 -14
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +3 -4
- package/chip/chip.esm.js +11 -9
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +17 -15
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +46 -20
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +10 -0
- package/chips/chips.esm.js +37 -11
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +46 -21
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +35 -31
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +6 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +32 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +23 -1
- package/column/column.esm.min.js +1 -1
- package/column/column.js +1 -1
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -1
- package/columngroup/columngroup.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +22 -20
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +4 -3
- package/confirmdialog/confirmdialog.esm.js +6 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +22 -21
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +45 -40
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +4 -3
- package/confirmpopup/confirmpopup.esm.js +10 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +42 -40
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +68 -63
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +35 -31
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +65 -64
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +11102 -836
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +1 -1
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +2 -2
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +12 -11
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +4 -3
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +12 -12
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +412 -373
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +5 -3
- package/datatable/datatable.esm.js +126 -87
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +409 -374
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +32 -29
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +6 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +31 -30
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +1 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +2 -2
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +58 -51
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -0
- package/dialog/dialog.esm.js +11 -5
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +55 -52
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +4 -4
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +5 -5
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +51 -17
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +13 -0
- package/dock/dock.esm.js +39 -5
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +51 -18
- package/dock/dock.min.css +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +85 -73
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +23 -11
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +81 -74
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +38 -40
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +2 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -37
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +17 -15
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +16 -16
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +63 -56
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +2 -1
- package/fileupload/fileupload.esm.js +24 -17
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +63 -57
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +6 -8
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +1 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +5 -5
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +70 -65
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +6 -2
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +67 -66
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +1 -1
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +2 -2
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +31 -27
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +5 -5
- package/image/image.esm.js +5 -2
- package/image/image.esm.min.js +1 -1
- package/image/image.js +29 -28
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +8 -8
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +9 -9
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +9 -8
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +2 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +9 -9
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +48 -29
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +31 -12
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +47 -30
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +15 -12
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +8 -5
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +15 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +12 -10
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +3 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +11 -11
- package/inputtext/inputtext.min.css +1 -1
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +10 -9
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +2 -1
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +10 -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 +7 -7
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +8 -8
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +38 -36
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +3 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +37 -37
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +36 -35
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +36 -36
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +53 -46
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +8 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +48 -47
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +33 -28
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -0
- package/menu/menu.esm.js +6 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +30 -29
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +38 -35
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +4 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -36
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +9 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +3 -1
- package/message/message.esm.js +3 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +10 -9
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +19 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -1
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +18 -18
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +126 -113
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +3 -1
- package/multiselect/multiselect.esm.js +41 -28
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +122 -114
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +14 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +14 -14
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +35 -34
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +2 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +35 -35
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +26 -26
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +27 -27
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +31 -24
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +8 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +27 -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 +48 -47
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +2 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +48 -48
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +19 -17
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +18 -18
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +40 -39
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +40 -40
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +33 -29
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +6 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +30 -30
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +58 -54
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +14 -10
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +58 -55
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +2 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +3 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +2990 -2554
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +1767 -1330
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2989 -2551
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +9 -9
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +10 -10
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +5 -5
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +6 -6
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +10 -9
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +2 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +10 -10
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +10 -9
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +4 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +10 -10
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +188 -136
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +32 -16
- package/resources/themes/arya-green/theme.css +32 -16
- package/resources/themes/arya-orange/theme.css +32 -16
- package/resources/themes/arya-purple/theme.css +32 -16
- package/resources/themes/bootstrap4-dark-blue/theme.css +36 -20
- package/resources/themes/bootstrap4-dark-purple/theme.css +36 -20
- package/resources/themes/bootstrap4-light-blue/theme.css +36 -20
- package/resources/themes/bootstrap4-light-purple/theme.css +36 -20
- package/resources/themes/fluent-light/theme.css +32 -16
- 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-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/luna-amber/theme.css +36 -20
- package/resources/themes/luna-blue/theme.css +36 -20
- package/resources/themes/luna-green/theme.css +36 -20
- package/resources/themes/luna-pink/theme.css +36 -20
- package/resources/themes/md-dark-deeppurple/theme.css +221 -45
- package/resources/themes/md-dark-indigo/theme.css +221 -45
- package/resources/themes/md-light-deeppurple/theme.css +211 -41
- package/resources/themes/md-light-indigo/theme.css +221 -45
- package/resources/themes/mdc-dark-deeppurple/theme.css +221 -45
- package/resources/themes/mdc-dark-indigo/theme.css +221 -45
- package/resources/themes/mdc-light-deeppurple/theme.css +221 -45
- package/resources/themes/mdc-light-indigo/theme.css +221 -45
- package/resources/themes/nova/theme.css +36 -20
- package/resources/themes/nova-accent/theme.css +36 -20
- package/resources/themes/nova-alt/theme.css +36 -20
- package/resources/themes/rhea/theme.css +36 -20
- package/resources/themes/saga-blue/theme.css +32 -16
- package/resources/themes/saga-green/theme.css +32 -16
- package/resources/themes/saga-orange/theme.css +32 -16
- package/resources/themes/saga-purple/theme.css +32 -16
- package/resources/themes/tailwind-light/theme.css +36 -20
- package/resources/themes/vela-blue/theme.css +32 -16
- package/resources/themes/vela-green/theme.css +32 -16
- package/resources/themes/vela-orange/theme.css +32 -16
- package/resources/themes/vela-purple/theme.css +32 -16
- package/ripple/ripple.cjs.js +11 -11
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +12 -12
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +1 -1
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.min.js +1 -1
- package/row/row.js +2 -2
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +19 -19
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -20
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +18 -13
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +2 -1
- package/scrolltop/scrolltop.esm.js +9 -5
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +16 -14
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +17 -15
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +3 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +16 -16
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +3 -1
- package/sidebar/sidebar.cjs.js +142 -116
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +2 -0
- package/sidebar/sidebar.esm.js +133 -108
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +139 -117
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +3 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +4 -4
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +37 -32
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +6 -2
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +34 -33
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +29 -19
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +21 -11
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +30 -20
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +20 -19
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +3 -2
- package/speeddial/speeddial.esm.js +2 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +20 -20
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -33
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +4 -5
- package/splitbutton/splitbutton.esm.js +6 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +34 -34
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +19 -19
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +2 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +20 -20
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +10 -10
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +11 -11
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +17 -17
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +1 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +18 -18
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +16 -15
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +2 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +16 -16
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +175 -54
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +4 -1
- package/tabview/tabview.esm.js +144 -23
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +175 -55
- package/tabview/tabview.min.css +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +9 -8
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -1
- package/tag/tag.esm.js +5 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +10 -9
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +12 -12
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +13 -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 +42 -36
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +38 -37
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +12 -12
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +13 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +46 -40
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +20 -15
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +44 -41
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +14 -9
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +3 -2
- package/togglebutton/togglebutton.esm.js +8 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +13 -10
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +7 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +8 -8
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +34 -31
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +4 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +33 -32
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +52 -51
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +9 -2
- package/tree/tree.esm.js +2 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +52 -52
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +3 -1
- package/treeselect/treeselect.cjs.js +50 -46
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +9 -2
- package/treeselect/treeselect.esm.js +9 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +47 -47
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1272 -268
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +9 -2
- package/treetable/treetable.esm.js +1192 -188
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1271 -269
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +11 -10
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +2 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +11 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +105 -31
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +16 -0
- package/utils/utils.esm.js +104 -31
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +106 -32
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +18 -18
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +2 -2
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +19 -19
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
- package/core/core.cjs.js +0 -2987
- package/core/core.cjs.min.js +0 -1
- package/core/core.esm.js +0 -2963
- 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 }; }
|
|
@@ -180,7 +180,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
180
180
|
_createClass(CalendarPanelComponent, [{
|
|
181
181
|
key: "renderElement",
|
|
182
182
|
value: function renderElement() {
|
|
183
|
-
return /*#__PURE__*/React__default[
|
|
183
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
184
184
|
nodeRef: this.props.forwardRef,
|
|
185
185
|
classNames: "p-connected-overlay",
|
|
186
186
|
in: this.props.in,
|
|
@@ -194,7 +194,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
194
194
|
onEntered: this.props.onEntered,
|
|
195
195
|
onExit: this.props.onExit,
|
|
196
196
|
onExited: this.props.onExited
|
|
197
|
-
}, /*#__PURE__*/React__default[
|
|
197
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
198
198
|
ref: this.props.forwardRef,
|
|
199
199
|
className: this.props.className,
|
|
200
200
|
style: this.props.style,
|
|
@@ -206,7 +206,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
206
206
|
key: "render",
|
|
207
207
|
value: function render() {
|
|
208
208
|
var element = this.renderElement();
|
|
209
|
-
return this.props.inline ? element : /*#__PURE__*/React__default[
|
|
209
|
+
return this.props.inline ? element : /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
210
210
|
element: element,
|
|
211
211
|
appendTo: this.props.appendTo
|
|
212
212
|
});
|
|
@@ -222,8 +222,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
222
222
|
className: null
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
-
var CalendarPanel = /*#__PURE__*/React__default[
|
|
226
|
-
return /*#__PURE__*/React__default[
|
|
225
|
+
var CalendarPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
226
|
+
return /*#__PURE__*/React__default["default"].createElement(CalendarPanelComponent, _extends({
|
|
227
227
|
forwardRef: ref
|
|
228
228
|
}, props));
|
|
229
229
|
});
|
|
@@ -258,13 +258,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
if (!_this.props.onViewDateChange) {
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
if (Array.isArray(propValue)) {
|
|
264
|
-
propValue = propValue[0];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
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);
|
|
268
262
|
|
|
269
263
|
_this.validateDate(viewDate);
|
|
270
264
|
|
|
@@ -334,7 +328,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
334
328
|
if (this.props.inline) {
|
|
335
329
|
this.initFocusableCell();
|
|
336
330
|
} else if (this.props.mask) {
|
|
337
|
-
|
|
331
|
+
utils.mask(this.inputRef.current, {
|
|
338
332
|
mask: this.props.mask,
|
|
339
333
|
readOnly: this.props.readOnlyInput || this.props.disabled,
|
|
340
334
|
onChange: function onChange(e) {
|
|
@@ -415,12 +409,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
415
409
|
this.scrollHandler = null;
|
|
416
410
|
}
|
|
417
411
|
|
|
418
|
-
|
|
412
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
419
413
|
}
|
|
420
414
|
}, {
|
|
421
415
|
key: "renderTooltip",
|
|
422
416
|
value: function renderTooltip() {
|
|
423
|
-
this.tooltip =
|
|
417
|
+
this.tooltip = tooltip.tip({
|
|
424
418
|
target: this.inputRef.current,
|
|
425
419
|
content: this.props.tooltip,
|
|
426
420
|
options: this.props.tooltipOptions
|
|
@@ -571,7 +565,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
571
565
|
isValid = false;
|
|
572
566
|
}
|
|
573
567
|
} else if (value.every(function (v) {
|
|
574
|
-
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);
|
|
575
569
|
})) {
|
|
576
570
|
if (this.isRangeSelection()) {
|
|
577
571
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -627,7 +621,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
627
621
|
key: "trapFocus",
|
|
628
622
|
value: function trapFocus(event) {
|
|
629
623
|
event.preventDefault();
|
|
630
|
-
var focusableElements =
|
|
624
|
+
var focusableElements = utils.DomHandler.getFocusableElements(this.overlayRef.current);
|
|
631
625
|
|
|
632
626
|
if (focusableElements && focusableElements.length > 0) {
|
|
633
627
|
if (!document.activeElement) {
|
|
@@ -651,13 +645,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
651
645
|
if (this.navigation) {
|
|
652
646
|
if (this.navigation.button) {
|
|
653
647
|
this.initFocusableCell();
|
|
654
|
-
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();
|
|
655
649
|
} else {
|
|
656
650
|
if (this.navigation.backward) {
|
|
657
|
-
var cells =
|
|
651
|
+
var cells = utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
658
652
|
cell = cells[cells.length - 1];
|
|
659
653
|
} else {
|
|
660
|
-
cell =
|
|
654
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
661
655
|
}
|
|
662
656
|
|
|
663
657
|
if (cell) {
|
|
@@ -677,18 +671,18 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
677
671
|
var cell;
|
|
678
672
|
|
|
679
673
|
if (this.view === 'month') {
|
|
680
|
-
var cells =
|
|
681
|
-
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');
|
|
682
676
|
cells.forEach(function (cell) {
|
|
683
677
|
return cell.tabIndex = -1;
|
|
684
678
|
});
|
|
685
679
|
cell = selectedCell || cells[0];
|
|
686
680
|
} else {
|
|
687
|
-
cell =
|
|
681
|
+
cell = utils.DomHandler.findSingle(this.overlayRef.current, 'span.p-highlight');
|
|
688
682
|
|
|
689
683
|
if (!cell) {
|
|
690
|
-
var todayCell =
|
|
691
|
-
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)');
|
|
692
686
|
}
|
|
693
687
|
}
|
|
694
688
|
|
|
@@ -823,7 +817,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
823
817
|
key: "onPanelClick",
|
|
824
818
|
value: function onPanelClick(event) {
|
|
825
819
|
if (!this.props.inline) {
|
|
826
|
-
|
|
820
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
827
821
|
originalEvent: event,
|
|
828
822
|
target: this.container
|
|
829
823
|
});
|
|
@@ -1108,8 +1102,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1108
1102
|
}
|
|
1109
1103
|
}, {
|
|
1110
1104
|
key: "getViewDate",
|
|
1111
|
-
value: function getViewDate() {
|
|
1112
|
-
|
|
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();
|
|
1113
1114
|
}
|
|
1114
1115
|
}, {
|
|
1115
1116
|
key: "getCurrentDateTime",
|
|
@@ -1321,13 +1322,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1321
1322
|
case 40:
|
|
1322
1323
|
{
|
|
1323
1324
|
cellContent.tabIndex = '-1';
|
|
1324
|
-
var cellIndex =
|
|
1325
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1325
1326
|
var nextRow = cell.parentElement.nextElementSibling;
|
|
1326
1327
|
|
|
1327
1328
|
if (nextRow) {
|
|
1328
1329
|
var focusCell = nextRow.children[cellIndex].children[0];
|
|
1329
1330
|
|
|
1330
|
-
if (
|
|
1331
|
+
if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
|
|
1331
1332
|
this.navigation = {
|
|
1332
1333
|
backward: false
|
|
1333
1334
|
};
|
|
@@ -1352,14 +1353,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1352
1353
|
{
|
|
1353
1354
|
cellContent.tabIndex = '-1';
|
|
1354
1355
|
|
|
1355
|
-
var _cellIndex =
|
|
1356
|
+
var _cellIndex = utils.DomHandler.index(cell);
|
|
1356
1357
|
|
|
1357
1358
|
var prevRow = cell.parentElement.previousElementSibling;
|
|
1358
1359
|
|
|
1359
1360
|
if (prevRow) {
|
|
1360
1361
|
var _focusCell = prevRow.children[_cellIndex].children[0];
|
|
1361
1362
|
|
|
1362
|
-
if (
|
|
1363
|
+
if (utils.DomHandler.hasClass(_focusCell, 'p-disabled')) {
|
|
1363
1364
|
this.navigation = {
|
|
1364
1365
|
backward: true
|
|
1365
1366
|
};
|
|
@@ -1389,7 +1390,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1389
1390
|
if (prevCell) {
|
|
1390
1391
|
var _focusCell2 = prevCell.children[0];
|
|
1391
1392
|
|
|
1392
|
-
if (
|
|
1393
|
+
if (utils.DomHandler.hasClass(_focusCell2, 'p-disabled')) {
|
|
1393
1394
|
this.navigateToMonth(true, groupIndex, event);
|
|
1394
1395
|
} else {
|
|
1395
1396
|
_focusCell2.tabIndex = '0';
|
|
@@ -1413,7 +1414,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1413
1414
|
if (nextCell) {
|
|
1414
1415
|
var _focusCell3 = nextCell.children[0];
|
|
1415
1416
|
|
|
1416
|
-
if (
|
|
1417
|
+
if (utils.DomHandler.hasClass(_focusCell3, 'p-disabled')) {
|
|
1417
1418
|
this.navigateToMonth(false, groupIndex, event);
|
|
1418
1419
|
} else {
|
|
1419
1420
|
_focusCell3.tabIndex = '0';
|
|
@@ -1463,7 +1464,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1463
1464
|
this.navBackward(event);
|
|
1464
1465
|
} else {
|
|
1465
1466
|
var prevMonthContainer = this.overlayRef.current.children[groupIndex - 1];
|
|
1466
|
-
var cells =
|
|
1467
|
+
var cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1467
1468
|
var focusCell = cells[cells.length - 1];
|
|
1468
1469
|
focusCell.tabIndex = '0';
|
|
1469
1470
|
focusCell.focus();
|
|
@@ -1477,7 +1478,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1477
1478
|
} else {
|
|
1478
1479
|
var nextMonthContainer = this.overlayRef.current.children[groupIndex + 1];
|
|
1479
1480
|
|
|
1480
|
-
var _focusCell4 =
|
|
1481
|
+
var _focusCell4 = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1481
1482
|
|
|
1482
1483
|
_focusCell4.tabIndex = '0';
|
|
1483
1484
|
|
|
@@ -1497,7 +1498,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1497
1498
|
{
|
|
1498
1499
|
cell.tabIndex = '-1';
|
|
1499
1500
|
var cells = cell.parentElement.children;
|
|
1500
|
-
var cellIndex =
|
|
1501
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1501
1502
|
var nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
|
|
1502
1503
|
|
|
1503
1504
|
if (nextCell) {
|
|
@@ -1574,7 +1575,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1574
1575
|
return;
|
|
1575
1576
|
}
|
|
1576
1577
|
|
|
1577
|
-
|
|
1578
|
+
utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(function (cell) {
|
|
1578
1579
|
return cell.tabIndex = -1;
|
|
1579
1580
|
});
|
|
1580
1581
|
event.currentTarget.focus();
|
|
@@ -1657,8 +1658,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1657
1658
|
var startDate = this.props.value[0];
|
|
1658
1659
|
var endDate = this.props.value[1];
|
|
1659
1660
|
|
|
1660
|
-
if (!endDate
|
|
1661
|
-
|
|
1661
|
+
if (!endDate) {
|
|
1662
|
+
if (date.getTime() >= startDate.getTime()) {
|
|
1663
|
+
endDate = date;
|
|
1664
|
+
} else {
|
|
1665
|
+
endDate = startDate;
|
|
1666
|
+
startDate = date;
|
|
1667
|
+
}
|
|
1662
1668
|
} else {
|
|
1663
1669
|
startDate = date;
|
|
1664
1670
|
endDate = null;
|
|
@@ -1731,7 +1737,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1731
1737
|
}
|
|
1732
1738
|
};
|
|
1733
1739
|
|
|
1734
|
-
|
|
1740
|
+
overlayservice.OverlayService.on('overlay-click', _this10.overlayEventListener);
|
|
1735
1741
|
});
|
|
1736
1742
|
}
|
|
1737
1743
|
}
|
|
@@ -1749,7 +1755,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1749
1755
|
callback();
|
|
1750
1756
|
}
|
|
1751
1757
|
|
|
1752
|
-
|
|
1758
|
+
overlayservice.OverlayService.off('overlay-click', _this11.overlayEventListener);
|
|
1753
1759
|
_this11.overlayEventListener = null;
|
|
1754
1760
|
};
|
|
1755
1761
|
|
|
@@ -1765,7 +1771,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1765
1771
|
key: "onOverlayEnter",
|
|
1766
1772
|
value: function onOverlayEnter() {
|
|
1767
1773
|
if (this.props.autoZIndex) {
|
|
1768
|
-
|
|
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]);
|
|
1769
1776
|
}
|
|
1770
1777
|
|
|
1771
1778
|
this.alignOverlay();
|
|
@@ -1788,7 +1795,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1788
1795
|
}, {
|
|
1789
1796
|
key: "onOverlayExited",
|
|
1790
1797
|
value: function onOverlayExited() {
|
|
1791
|
-
|
|
1798
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1792
1799
|
this.props.onHide && this.props.onHide();
|
|
1793
1800
|
}
|
|
1794
1801
|
}, {
|
|
@@ -1838,7 +1845,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1838
1845
|
var _this13 = this;
|
|
1839
1846
|
|
|
1840
1847
|
if (!this.scrollHandler) {
|
|
1841
|
-
this.scrollHandler = new
|
|
1848
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1842
1849
|
if (_this13.isVisible()) {
|
|
1843
1850
|
_this13.hideOverlay();
|
|
1844
1851
|
}
|
|
@@ -1862,12 +1869,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1862
1869
|
}, {
|
|
1863
1870
|
key: "isNavIconClicked",
|
|
1864
1871
|
value: function isNavIconClicked(target) {
|
|
1865
|
-
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');
|
|
1866
1873
|
}
|
|
1867
1874
|
}, {
|
|
1868
1875
|
key: "onWindowResize",
|
|
1869
1876
|
value: function onWindowResize() {
|
|
1870
|
-
if (this.isVisible() && !
|
|
1877
|
+
if (this.isVisible() && !utils.DomHandler.isAndroid()) {
|
|
1871
1878
|
this.hideOverlay();
|
|
1872
1879
|
}
|
|
1873
1880
|
}
|
|
@@ -1877,7 +1884,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1877
1884
|
if (this.props.touchUI) {
|
|
1878
1885
|
this.enableModality();
|
|
1879
1886
|
} else {
|
|
1880
|
-
|
|
1887
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1881
1888
|
}
|
|
1882
1889
|
}
|
|
1883
1890
|
}, {
|
|
@@ -1887,8 +1894,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1887
1894
|
|
|
1888
1895
|
if (!this.touchUIMask) {
|
|
1889
1896
|
this.touchUIMask = document.createElement('div');
|
|
1890
|
-
this.touchUIMask.style.zIndex = String(
|
|
1891
|
-
|
|
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');
|
|
1892
1899
|
|
|
1893
1900
|
this.touchUIMaskClickListener = function () {
|
|
1894
1901
|
_this14.disableModality();
|
|
@@ -1896,7 +1903,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1896
1903
|
|
|
1897
1904
|
this.touchUIMask.addEventListener('click', this.touchUIMaskClickListener);
|
|
1898
1905
|
document.body.appendChild(this.touchUIMask);
|
|
1899
|
-
|
|
1906
|
+
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
1900
1907
|
}
|
|
1901
1908
|
}
|
|
1902
1909
|
}, {
|
|
@@ -1905,7 +1912,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1905
1912
|
var _this15 = this;
|
|
1906
1913
|
|
|
1907
1914
|
if (this.touchUIMask) {
|
|
1908
|
-
|
|
1915
|
+
utils.DomHandler.addClass(this.touchUIMask, 'p-component-overlay-leave');
|
|
1909
1916
|
this.touchUIMask.addEventListener('animationend', function () {
|
|
1910
1917
|
_this15.destroyMask();
|
|
1911
1918
|
});
|
|
@@ -1924,14 +1931,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1924
1931
|
for (var i = 0; i < bodyChildren.length; i++) {
|
|
1925
1932
|
var bodyChild = bodyChildren[i];
|
|
1926
1933
|
|
|
1927
|
-
if (
|
|
1934
|
+
if (utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
|
|
1928
1935
|
hasBlockerMasks = true;
|
|
1929
1936
|
break;
|
|
1930
1937
|
}
|
|
1931
1938
|
}
|
|
1932
1939
|
|
|
1933
1940
|
if (!hasBlockerMasks) {
|
|
1934
|
-
|
|
1941
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
1935
1942
|
}
|
|
1936
1943
|
}
|
|
1937
1944
|
}, {
|
|
@@ -2852,12 +2859,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2852
2859
|
visibility: 'hidden'
|
|
2853
2860
|
}
|
|
2854
2861
|
};
|
|
2855
|
-
return /*#__PURE__*/React__default[
|
|
2862
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2856
2863
|
type: "button",
|
|
2857
2864
|
className: "p-datepicker-prev p-link"
|
|
2858
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2865
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2859
2866
|
className: "p-datepicker-prev-icon pi pi-chevron-left"
|
|
2860
|
-
}), /*#__PURE__*/React__default[
|
|
2867
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2861
2868
|
}
|
|
2862
2869
|
}, {
|
|
2863
2870
|
key: "renderForwardNavigator",
|
|
@@ -2874,12 +2881,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2874
2881
|
visibility: 'hidden'
|
|
2875
2882
|
}
|
|
2876
2883
|
};
|
|
2877
|
-
return /*#__PURE__*/React__default[
|
|
2884
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2878
2885
|
type: "button",
|
|
2879
2886
|
className: "p-datepicker-next p-link"
|
|
2880
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2887
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2881
2888
|
className: "p-datepicker-next-icon pi pi-chevron-right"
|
|
2882
|
-
}), /*#__PURE__*/React__default[
|
|
2889
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2883
2890
|
}
|
|
2884
2891
|
}, {
|
|
2885
2892
|
key: "isInMinYear",
|
|
@@ -2913,14 +2920,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2913
2920
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2914
2921
|
return option.label;
|
|
2915
2922
|
});
|
|
2916
|
-
var content = /*#__PURE__*/React__default[
|
|
2923
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2917
2924
|
className: "p-datepicker-month",
|
|
2918
2925
|
onChange: function onChange(e) {
|
|
2919
2926
|
return _this18.onMonthDropdownChange(e, e.target.value);
|
|
2920
2927
|
},
|
|
2921
2928
|
value: viewMonth
|
|
2922
2929
|
}, displayedMonthOptions.map(function (option) {
|
|
2923
|
-
return /*#__PURE__*/React__default[
|
|
2930
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2924
2931
|
key: option.label,
|
|
2925
2932
|
value: option.value
|
|
2926
2933
|
}, option.label);
|
|
@@ -2936,12 +2943,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2936
2943
|
element: content,
|
|
2937
2944
|
props: this.props
|
|
2938
2945
|
};
|
|
2939
|
-
return
|
|
2946
|
+
return utils.ObjectUtils.getJSXElement(this.props.monthNavigatorTemplate, defaultContentOptions);
|
|
2940
2947
|
}
|
|
2941
2948
|
|
|
2942
2949
|
return content;
|
|
2943
2950
|
} else {
|
|
2944
|
-
return /*#__PURE__*/React__default[
|
|
2951
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2945
2952
|
className: "p-datepicker-month"
|
|
2946
2953
|
}, monthNames[month]);
|
|
2947
2954
|
}
|
|
@@ -2966,14 +2973,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2966
2973
|
var displayedYearNames = yearOptions.filter(function (year) {
|
|
2967
2974
|
return !(_this19.props.minDate && _this19.props.minDate.getFullYear() > year) && !(_this19.props.maxDate && _this19.props.maxDate.getFullYear() < year);
|
|
2968
2975
|
});
|
|
2969
|
-
var content = /*#__PURE__*/React__default[
|
|
2976
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2970
2977
|
className: "p-datepicker-year",
|
|
2971
2978
|
onChange: function onChange(e) {
|
|
2972
2979
|
return _this19.onYearDropdownChange(e, e.target.value);
|
|
2973
2980
|
},
|
|
2974
2981
|
value: viewYear
|
|
2975
2982
|
}, displayedYearNames.map(function (year) {
|
|
2976
|
-
return /*#__PURE__*/React__default[
|
|
2983
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2977
2984
|
key: year,
|
|
2978
2985
|
value: year
|
|
2979
2986
|
}, year);
|
|
@@ -2996,12 +3003,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2996
3003
|
element: content,
|
|
2997
3004
|
props: this.props
|
|
2998
3005
|
};
|
|
2999
|
-
return
|
|
3006
|
+
return utils.ObjectUtils.getJSXElement(this.props.yearNavigatorTemplate, defaultContentOptions);
|
|
3000
3007
|
}
|
|
3001
3008
|
|
|
3002
3009
|
return content;
|
|
3003
3010
|
} else {
|
|
3004
|
-
return /*#__PURE__*/React__default[
|
|
3011
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3005
3012
|
className: "p-datepicker-year"
|
|
3006
3013
|
}, year);
|
|
3007
3014
|
}
|
|
@@ -3011,7 +3018,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3011
3018
|
value: function renderTitle(monthMetaData) {
|
|
3012
3019
|
var month = this.renderTitleMonthElement(monthMetaData.month);
|
|
3013
3020
|
var year = this.renderTitleYearElement(monthMetaData.year);
|
|
3014
|
-
return /*#__PURE__*/React__default[
|
|
3021
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3015
3022
|
className: "p-datepicker-title"
|
|
3016
3023
|
}, month, year);
|
|
3017
3024
|
}
|
|
@@ -3019,18 +3026,18 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3019
3026
|
key: "renderDayNames",
|
|
3020
3027
|
value: function renderDayNames(weekDays) {
|
|
3021
3028
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
3022
|
-
return /*#__PURE__*/React__default[
|
|
3029
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3023
3030
|
key: "".concat(weekDay, "-").concat(index),
|
|
3024
3031
|
scope: "col"
|
|
3025
|
-
}, /*#__PURE__*/React__default[
|
|
3032
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, weekDay));
|
|
3026
3033
|
});
|
|
3027
3034
|
|
|
3028
3035
|
if (this.props.showWeek) {
|
|
3029
|
-
var weekHeader = /*#__PURE__*/React__default[
|
|
3036
|
+
var weekHeader = /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3030
3037
|
scope: "col",
|
|
3031
3038
|
key: 'wn',
|
|
3032
3039
|
className: "p-datepicker-weekheader p-disabled"
|
|
3033
|
-
}, /*#__PURE__*/React__default[
|
|
3040
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, PrimeReact.localeOption('weekHeader', this.props.locale)));
|
|
3034
3041
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
3035
3042
|
} else {
|
|
3036
3043
|
return dayNames;
|
|
@@ -3042,7 +3049,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3042
3049
|
var _this20 = this;
|
|
3043
3050
|
|
|
3044
3051
|
var content = this.props.dateTemplate ? this.props.dateTemplate(date) : date.day;
|
|
3045
|
-
return /*#__PURE__*/React__default[
|
|
3052
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3046
3053
|
className: className,
|
|
3047
3054
|
onClick: function onClick(e) {
|
|
3048
3055
|
return _this20.onDateSelect(e, date);
|
|
@@ -3050,7 +3057,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3050
3057
|
onKeyDown: function onKeyDown(e) {
|
|
3051
3058
|
return _this20.onDateCellKeydown(e, date, groupIndex);
|
|
3052
3059
|
}
|
|
3053
|
-
}, content, /*#__PURE__*/React__default[
|
|
3060
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3054
3061
|
}
|
|
3055
3062
|
}, {
|
|
3056
3063
|
key: "renderWeek",
|
|
@@ -3060,26 +3067,26 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3060
3067
|
var week = weekDates.map(function (date) {
|
|
3061
3068
|
var selected = _this21.isSelected(date);
|
|
3062
3069
|
|
|
3063
|
-
var cellClassName =
|
|
3070
|
+
var cellClassName = utils.classNames({
|
|
3064
3071
|
'p-datepicker-other-month': date.otherMonth,
|
|
3065
3072
|
'p-datepicker-today': date.today
|
|
3066
3073
|
});
|
|
3067
|
-
var dateClassName =
|
|
3074
|
+
var dateClassName = utils.classNames({
|
|
3068
3075
|
'p-highlight': selected,
|
|
3069
3076
|
'p-disabled': !date.selectable
|
|
3070
3077
|
});
|
|
3071
3078
|
var content = date.otherMonth && !_this21.props.showOtherMonths ? null : _this21.renderDateCellContent(date, dateClassName, groupIndex);
|
|
3072
|
-
return /*#__PURE__*/React__default[
|
|
3079
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3073
3080
|
key: date.day,
|
|
3074
3081
|
className: cellClassName
|
|
3075
3082
|
}, content);
|
|
3076
3083
|
});
|
|
3077
3084
|
|
|
3078
3085
|
if (this.props.showWeek) {
|
|
3079
|
-
var weekNumberCell = /*#__PURE__*/React__default[
|
|
3086
|
+
var weekNumberCell = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3080
3087
|
key: 'wn' + weekNumber,
|
|
3081
3088
|
className: "p-datepicker-weeknumber"
|
|
3082
|
-
}, /*#__PURE__*/React__default[
|
|
3089
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3083
3090
|
className: "p-disabled"
|
|
3084
3091
|
}, weekNumber));
|
|
3085
3092
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
@@ -3093,7 +3100,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3093
3100
|
var _this22 = this;
|
|
3094
3101
|
|
|
3095
3102
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
3096
|
-
return /*#__PURE__*/React__default[
|
|
3103
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
3097
3104
|
key: index
|
|
3098
3105
|
}, _this22.renderWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
3099
3106
|
});
|
|
@@ -3103,11 +3110,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3103
3110
|
value: function renderDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
3104
3111
|
var dayNames = this.renderDayNames(weekDays);
|
|
3105
3112
|
var dates = this.renderDates(monthMetaData, groupIndex);
|
|
3106
|
-
return /*#__PURE__*/React__default[
|
|
3113
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3107
3114
|
className: "p-datepicker-calendar-container"
|
|
3108
|
-
}, /*#__PURE__*/React__default[
|
|
3115
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3109
3116
|
className: "p-datepicker-calendar"
|
|
3110
|
-
}, /*#__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)));
|
|
3111
3118
|
}
|
|
3112
3119
|
}, {
|
|
3113
3120
|
key: "renderMonth",
|
|
@@ -3118,10 +3125,10 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3118
3125
|
var title = this.renderTitle(monthMetaData);
|
|
3119
3126
|
var dateViewGrid = this.renderDateViewGrid(monthMetaData, weekDays, index);
|
|
3120
3127
|
var header = this.props.headerTemplate ? this.props.headerTemplate() : null;
|
|
3121
|
-
return /*#__PURE__*/React__default[
|
|
3128
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3122
3129
|
key: monthMetaData.month,
|
|
3123
3130
|
className: "p-datepicker-group"
|
|
3124
|
-
}, /*#__PURE__*/React__default[
|
|
3131
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3125
3132
|
className: "p-datepicker-header"
|
|
3126
3133
|
}, header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
3127
3134
|
}
|
|
@@ -3133,7 +3140,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3133
3140
|
var groups = monthsMetaData.map(function (monthMetaData, index) {
|
|
3134
3141
|
return _this23.renderMonth(monthMetaData, index);
|
|
3135
3142
|
});
|
|
3136
|
-
return /*#__PURE__*/React__default[
|
|
3143
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3137
3144
|
className: "p-datepicker-group-container"
|
|
3138
3145
|
}, groups);
|
|
3139
3146
|
}
|
|
@@ -3143,19 +3150,19 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3143
3150
|
var viewDate = this.getViewDate();
|
|
3144
3151
|
var monthsMetaData = this.createMonths(viewDate.getMonth(), viewDate.getFullYear());
|
|
3145
3152
|
var months = this.renderMonths(monthsMetaData);
|
|
3146
|
-
return /*#__PURE__*/React__default[
|
|
3153
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, months);
|
|
3147
3154
|
}
|
|
3148
3155
|
}, {
|
|
3149
3156
|
key: "renderMonthViewMonth",
|
|
3150
3157
|
value: function renderMonthViewMonth(index) {
|
|
3151
3158
|
var _this24 = this;
|
|
3152
3159
|
|
|
3153
|
-
var className =
|
|
3160
|
+
var className = utils.classNames('p-monthpicker-month', {
|
|
3154
3161
|
'p-highlight': this.isMonthSelected(index)
|
|
3155
3162
|
});
|
|
3156
3163
|
var monthNamesShort = PrimeReact.localeOption('monthNamesShort', this.props.locale);
|
|
3157
3164
|
var monthName = monthNamesShort[index];
|
|
3158
|
-
return /*#__PURE__*/React__default[
|
|
3165
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3159
3166
|
key: monthName,
|
|
3160
3167
|
className: className,
|
|
3161
3168
|
onClick: function onClick(event) {
|
|
@@ -3164,7 +3171,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3164
3171
|
onKeyDown: function onKeyDown(event) {
|
|
3165
3172
|
return _this24.onMonthCellKeydown(event, index);
|
|
3166
3173
|
}
|
|
3167
|
-
}, monthName, /*#__PURE__*/React__default[
|
|
3174
|
+
}, monthName, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3168
3175
|
}
|
|
3169
3176
|
}, {
|
|
3170
3177
|
key: "renderMonthViewMonths",
|
|
@@ -3184,15 +3191,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3184
3191
|
var forwardNavigator = this.renderForwardNavigator(true);
|
|
3185
3192
|
var yearElement = this.renderTitleYearElement(this.getViewDate().getFullYear());
|
|
3186
3193
|
var months = this.renderMonthViewMonths();
|
|
3187
|
-
return /*#__PURE__*/React__default[
|
|
3194
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3188
3195
|
className: "p-datepicker-group-container"
|
|
3189
|
-
}, /*#__PURE__*/React__default[
|
|
3196
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3190
3197
|
className: "p-datepicker-group"
|
|
3191
|
-
}, /*#__PURE__*/React__default[
|
|
3198
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3192
3199
|
className: "p-datepicker-header"
|
|
3193
|
-
}, backwardNavigator, /*#__PURE__*/React__default[
|
|
3200
|
+
}, backwardNavigator, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3194
3201
|
className: "p-datepicker-title"
|
|
3195
|
-
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default[
|
|
3202
|
+
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3196
3203
|
className: "p-monthpicker"
|
|
3197
3204
|
}, months));
|
|
3198
3205
|
}
|
|
@@ -3222,9 +3229,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3222
3229
|
}
|
|
3223
3230
|
|
|
3224
3231
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
3225
|
-
return /*#__PURE__*/React__default[
|
|
3232
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3226
3233
|
className: "p-hour-picker"
|
|
3227
|
-
}, /*#__PURE__*/React__default[
|
|
3234
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3228
3235
|
type: "button",
|
|
3229
3236
|
className: "p-link",
|
|
3230
3237
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3235,9 +3242,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3235
3242
|
onKeyDown: function onKeyDown(e) {
|
|
3236
3243
|
return _this25.onContainerButtonKeydown(e);
|
|
3237
3244
|
}
|
|
3238
|
-
}, /*#__PURE__*/React__default[
|
|
3245
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3239
3246
|
className: "pi pi-chevron-up"
|
|
3240
|
-
}), /*#__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", {
|
|
3241
3248
|
type: "button",
|
|
3242
3249
|
className: "p-link",
|
|
3243
3250
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3248,9 +3255,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3248
3255
|
onKeyDown: function onKeyDown(e) {
|
|
3249
3256
|
return _this25.onContainerButtonKeydown(e);
|
|
3250
3257
|
}
|
|
3251
|
-
}, /*#__PURE__*/React__default[
|
|
3258
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3252
3259
|
className: "pi pi-chevron-down"
|
|
3253
|
-
}), /*#__PURE__*/React__default[
|
|
3260
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3254
3261
|
}
|
|
3255
3262
|
}, {
|
|
3256
3263
|
key: "renderMinutePicker",
|
|
@@ -3260,9 +3267,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3260
3267
|
var currentTime = this.getCurrentDateTime();
|
|
3261
3268
|
var minute = currentTime.getMinutes();
|
|
3262
3269
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
3263
|
-
return /*#__PURE__*/React__default[
|
|
3270
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3264
3271
|
className: "p-minute-picker"
|
|
3265
|
-
}, /*#__PURE__*/React__default[
|
|
3272
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3266
3273
|
type: "button",
|
|
3267
3274
|
className: "p-link",
|
|
3268
3275
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3273,9 +3280,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3273
3280
|
onKeyDown: function onKeyDown(e) {
|
|
3274
3281
|
return _this26.onContainerButtonKeydown(e);
|
|
3275
3282
|
}
|
|
3276
|
-
}, /*#__PURE__*/React__default[
|
|
3283
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3277
3284
|
className: "pi pi-chevron-up"
|
|
3278
|
-
}), /*#__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", {
|
|
3279
3286
|
type: "button",
|
|
3280
3287
|
className: "p-link",
|
|
3281
3288
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3286,9 +3293,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3286
3293
|
onKeyDown: function onKeyDown(e) {
|
|
3287
3294
|
return _this26.onContainerButtonKeydown(e);
|
|
3288
3295
|
}
|
|
3289
|
-
}, /*#__PURE__*/React__default[
|
|
3296
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3290
3297
|
className: "pi pi-chevron-down"
|
|
3291
|
-
}), /*#__PURE__*/React__default[
|
|
3298
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3292
3299
|
}
|
|
3293
3300
|
}, {
|
|
3294
3301
|
key: "renderSecondPicker",
|
|
@@ -3299,9 +3306,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3299
3306
|
var currentTime = this.getCurrentDateTime();
|
|
3300
3307
|
var second = currentTime.getSeconds();
|
|
3301
3308
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
3302
|
-
return /*#__PURE__*/React__default[
|
|
3309
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3303
3310
|
className: "p-second-picker"
|
|
3304
|
-
}, /*#__PURE__*/React__default[
|
|
3311
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3305
3312
|
type: "button",
|
|
3306
3313
|
className: "p-link",
|
|
3307
3314
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3312,9 +3319,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3312
3319
|
onKeyDown: function onKeyDown(e) {
|
|
3313
3320
|
return _this27.onContainerButtonKeydown(e);
|
|
3314
3321
|
}
|
|
3315
|
-
}, /*#__PURE__*/React__default[
|
|
3322
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3316
3323
|
className: "pi pi-chevron-up"
|
|
3317
|
-
}), /*#__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", {
|
|
3318
3325
|
type: "button",
|
|
3319
3326
|
className: "p-link",
|
|
3320
3327
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3325,9 +3332,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3325
3332
|
onKeyDown: function onKeyDown(e) {
|
|
3326
3333
|
return _this27.onContainerButtonKeydown(e);
|
|
3327
3334
|
}
|
|
3328
|
-
}, /*#__PURE__*/React__default[
|
|
3335
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3329
3336
|
className: "pi pi-chevron-down"
|
|
3330
|
-
}), /*#__PURE__*/React__default[
|
|
3337
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3331
3338
|
}
|
|
3332
3339
|
|
|
3333
3340
|
return null;
|
|
@@ -3341,9 +3348,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3341
3348
|
var currentTime = this.getCurrentDateTime();
|
|
3342
3349
|
var millisecond = currentTime.getMilliseconds();
|
|
3343
3350
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
3344
|
-
return /*#__PURE__*/React__default[
|
|
3351
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3345
3352
|
className: "p-millisecond-picker"
|
|
3346
|
-
}, /*#__PURE__*/React__default[
|
|
3353
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3347
3354
|
type: "button",
|
|
3348
3355
|
className: "p-link",
|
|
3349
3356
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3354,9 +3361,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3354
3361
|
onKeyDown: function onKeyDown(e) {
|
|
3355
3362
|
return _this28.onContainerButtonKeydown(e);
|
|
3356
3363
|
}
|
|
3357
|
-
}, /*#__PURE__*/React__default[
|
|
3364
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3358
3365
|
className: "pi pi-chevron-up"
|
|
3359
|
-
}), /*#__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", {
|
|
3360
3367
|
type: "button",
|
|
3361
3368
|
className: "p-link",
|
|
3362
3369
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3367,9 +3374,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3367
3374
|
onKeyDown: function onKeyDown(e) {
|
|
3368
3375
|
return _this28.onContainerButtonKeydown(e);
|
|
3369
3376
|
}
|
|
3370
|
-
}, /*#__PURE__*/React__default[
|
|
3377
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3371
3378
|
className: "pi pi-chevron-down"
|
|
3372
|
-
}), /*#__PURE__*/React__default[
|
|
3379
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3373
3380
|
}
|
|
3374
3381
|
|
|
3375
3382
|
return null;
|
|
@@ -3381,21 +3388,21 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3381
3388
|
var currentTime = this.getCurrentDateTime();
|
|
3382
3389
|
var hour = currentTime.getHours();
|
|
3383
3390
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
3384
|
-
return /*#__PURE__*/React__default[
|
|
3391
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3385
3392
|
className: "p-ampm-picker"
|
|
3386
|
-
}, /*#__PURE__*/React__default[
|
|
3393
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3387
3394
|
type: "button",
|
|
3388
3395
|
className: "p-link",
|
|
3389
3396
|
onClick: this.toggleAmPm
|
|
3390
|
-
}, /*#__PURE__*/React__default[
|
|
3397
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3391
3398
|
className: "pi pi-chevron-up"
|
|
3392
|
-
}), /*#__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", {
|
|
3393
3400
|
type: "button",
|
|
3394
3401
|
className: "p-link",
|
|
3395
3402
|
onClick: this.toggleAmPm
|
|
3396
|
-
}, /*#__PURE__*/React__default[
|
|
3403
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3397
3404
|
className: "pi pi-chevron-down"
|
|
3398
|
-
}), /*#__PURE__*/React__default[
|
|
3405
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3399
3406
|
}
|
|
3400
3407
|
|
|
3401
3408
|
return null;
|
|
@@ -3403,15 +3410,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3403
3410
|
}, {
|
|
3404
3411
|
key: "renderSeparator",
|
|
3405
3412
|
value: function renderSeparator(separator) {
|
|
3406
|
-
return /*#__PURE__*/React__default[
|
|
3413
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3407
3414
|
className: "p-separator"
|
|
3408
|
-
}, /*#__PURE__*/React__default[
|
|
3415
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, separator));
|
|
3409
3416
|
}
|
|
3410
3417
|
}, {
|
|
3411
3418
|
key: "renderTimePicker",
|
|
3412
3419
|
value: function renderTimePicker() {
|
|
3413
3420
|
if (this.props.showTime || this.props.timeOnly) {
|
|
3414
|
-
return /*#__PURE__*/React__default[
|
|
3421
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3415
3422
|
className: "p-timepicker"
|
|
3416
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());
|
|
3417
3424
|
}
|
|
@@ -3422,7 +3429,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3422
3429
|
key: "renderInputElement",
|
|
3423
3430
|
value: function renderInputElement() {
|
|
3424
3431
|
if (!this.props.inline) {
|
|
3425
|
-
return /*#__PURE__*/React__default[
|
|
3432
|
+
return /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
3426
3433
|
ref: this.inputRef,
|
|
3427
3434
|
id: this.props.inputId,
|
|
3428
3435
|
name: this.props.name,
|
|
@@ -3434,6 +3441,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3434
3441
|
required: this.props.required,
|
|
3435
3442
|
autoComplete: "off",
|
|
3436
3443
|
placeholder: this.props.placeholder,
|
|
3444
|
+
tabIndex: this.props.tabIndex,
|
|
3437
3445
|
onInput: this.onUserInput,
|
|
3438
3446
|
onFocus: this.onInputFocus,
|
|
3439
3447
|
onBlur: this.onInputBlur,
|
|
@@ -3449,7 +3457,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3449
3457
|
key: "renderButton",
|
|
3450
3458
|
value: function renderButton() {
|
|
3451
3459
|
if (this.props.showIcon) {
|
|
3452
|
-
return /*#__PURE__*/React__default[
|
|
3460
|
+
return /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3453
3461
|
type: "button",
|
|
3454
3462
|
icon: this.props.icon,
|
|
3455
3463
|
onClick: this.onButtonClick,
|
|
@@ -3461,22 +3469,34 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3461
3469
|
|
|
3462
3470
|
return null;
|
|
3463
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
|
+
}
|
|
3464
3484
|
}, {
|
|
3465
3485
|
key: "renderButtonBar",
|
|
3466
3486
|
value: function renderButtonBar() {
|
|
3467
3487
|
var _this29 = this;
|
|
3468
3488
|
|
|
3469
3489
|
if (this.props.showButtonBar) {
|
|
3470
|
-
var todayClassName =
|
|
3471
|
-
var clearClassName =
|
|
3490
|
+
var todayClassName = utils.classNames('p-button-text', this.props.todayButtonClassName);
|
|
3491
|
+
var clearClassName = utils.classNames('p-button-text', this.props.clearButtonClassName);
|
|
3472
3492
|
|
|
3473
3493
|
var _localeOptions4 = PrimeReact.localeOptions(this.props.locale),
|
|
3474
3494
|
today = _localeOptions4.today,
|
|
3475
3495
|
clear = _localeOptions4.clear;
|
|
3476
3496
|
|
|
3477
|
-
return /*#__PURE__*/React__default[
|
|
3497
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3478
3498
|
className: "p-datepicker-buttonbar"
|
|
3479
|
-
}, /*#__PURE__*/React__default[
|
|
3499
|
+
}, /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3480
3500
|
type: "button",
|
|
3481
3501
|
label: today,
|
|
3482
3502
|
onClick: this.onTodayButtonClick,
|
|
@@ -3484,7 +3504,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3484
3504
|
return _this29.onContainerButtonKeydown(e);
|
|
3485
3505
|
},
|
|
3486
3506
|
className: todayClassName
|
|
3487
|
-
}), /*#__PURE__*/React__default[
|
|
3507
|
+
}), /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3488
3508
|
type: "button",
|
|
3489
3509
|
label: clear,
|
|
3490
3510
|
onClick: this.onClearButtonClick,
|
|
@@ -3502,7 +3522,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3502
3522
|
value: function renderFooter() {
|
|
3503
3523
|
if (this.props.footerTemplate) {
|
|
3504
3524
|
var content = this.props.footerTemplate();
|
|
3505
|
-
return /*#__PURE__*/React__default[
|
|
3525
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3506
3526
|
className: "p-datepicker-footer"
|
|
3507
3527
|
}, content);
|
|
3508
3528
|
}
|
|
@@ -3512,16 +3532,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3512
3532
|
}, {
|
|
3513
3533
|
key: "render",
|
|
3514
3534
|
value: function render() {
|
|
3515
|
-
var
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
'p-calendar-timeonly': this.props.timeOnly,
|
|
3521
|
-
'p-inputwrapper-filled': this.props.value || core.DomHandler.hasClass(this.inputRef.current, 'p-filled') && this.inputRef.current.value !== '',
|
|
3522
|
-
'p-inputwrapper-focus': this.state.focused
|
|
3523
|
-
});
|
|
3524
|
-
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, {
|
|
3525
3540
|
'p-datepicker-inline': this.props.inline,
|
|
3526
3541
|
'p-disabled': this.props.disabled,
|
|
3527
3542
|
'p-datepicker-timeonly': this.props.timeOnly,
|
|
@@ -3529,21 +3544,20 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3529
3544
|
'p-datepicker-monthpicker': this.props.view === 'month',
|
|
3530
3545
|
'p-datepicker-touch-ui': this.props.touchUI
|
|
3531
3546
|
});
|
|
3532
|
-
var
|
|
3533
|
-
var button = this.renderButton();
|
|
3547
|
+
var content = this.renderContent();
|
|
3534
3548
|
var datePicker = this.renderDatePicker();
|
|
3535
3549
|
var timePicker = this.renderTimePicker();
|
|
3536
3550
|
var buttonBar = this.renderButtonBar();
|
|
3537
3551
|
var footer = this.renderFooter();
|
|
3538
3552
|
var isVisible = this.props.inline || this.isVisible();
|
|
3539
|
-
return /*#__PURE__*/React__default[
|
|
3553
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3540
3554
|
ref: function ref(el) {
|
|
3541
3555
|
return _this30.container = el;
|
|
3542
3556
|
},
|
|
3543
3557
|
id: this.props.id,
|
|
3544
3558
|
className: className,
|
|
3545
3559
|
style: this.props.style
|
|
3546
|
-
},
|
|
3560
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(CalendarPanel, {
|
|
3547
3561
|
ref: this.overlayRef,
|
|
3548
3562
|
className: panelClassName,
|
|
3549
3563
|
style: this.props.panelStyle,
|
|
@@ -3588,6 +3602,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3588
3602
|
placeholder: null,
|
|
3589
3603
|
showIcon: false,
|
|
3590
3604
|
icon: 'pi pi-calendar',
|
|
3605
|
+
iconPos: 'right',
|
|
3591
3606
|
showOnFocus: true,
|
|
3592
3607
|
numberOfMonths: 1,
|
|
3593
3608
|
view: 'date',
|
|
@@ -3652,4 +3667,4 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3652
3667
|
|
|
3653
3668
|
return exports;
|
|
3654
3669
|
|
|
3655
|
-
}({}, 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);
|