primereact 7.0.0-rc.2 → 7.2.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/LICENSE.md +1 -1
- package/README.md +35 -10
- package/accordion/accordion.cjs.js +55 -42
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +7 -3
- package/accordion/accordion.esm.js +42 -29
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +55 -43
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +109 -52
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +96 -61
- package/api/api.esm.js +96 -39
- package/api/api.esm.min.js +1 -1
- package/api/api.js +110 -53
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +97 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +11 -4
- package/autocomplete/autocomplete.esm.js +34 -26
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +93 -90
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +21 -20
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -1
- package/avatar/avatar.esm.js +16 -15
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +22 -21
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +14 -14
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +12 -12
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +15 -15
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +14 -14
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +12 -12
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +15 -15
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +38 -27
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +28 -18
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -28
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +27 -27
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +12 -12
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +28 -28
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +44 -55
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +33 -44
- package/button/button.esm.min.js +1 -1
- package/button/button.js +43 -56
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +209 -170
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -2
- package/calendar/calendar.esm.js +84 -45
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +205 -171
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +12 -12
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.js +11 -11
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +13 -13
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +24 -24
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +12 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +25 -25
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +60 -58
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +24 -23
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +59 -59
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +65 -61
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +2 -1
- package/cascadeselect/cascadeselect.esm.js +21 -17
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +62 -62
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +19 -21
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +14 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +18 -18
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +33 -28
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -1
- package/checkbox/checkbox.esm.js +26 -21
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +33 -29
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +27 -25
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +3 -4
- package/chip/chip.esm.js +22 -20
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +28 -26
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +59 -33
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +10 -0
- package/chips/chips.esm.js +50 -24
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +59 -34
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +50 -46
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +20 -6
- package/colorpicker/colorpicker.esm.js +22 -18
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +47 -47
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +31 -12
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +28 -2
- package/column/column.esm.js +31 -12
- package/column/column.esm.min.js +1 -1
- package/column/column.js +32 -13
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.js +28 -12
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +28 -12
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +29 -13
- package/columngroup/columngroup.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -33
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +4 -3
- package/confirmdialog/confirmdialog.esm.js +19 -17
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -34
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +60 -55
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +6 -4
- package/confirmpopup/confirmpopup.esm.js +26 -22
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +57 -55
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +81 -76
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -1
- package/contextmenu/contextmenu.esm.js +48 -44
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +78 -77
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +11284 -852
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +62 -32
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +8 -0
- package/csstransition/csstransition.esm.js +61 -32
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +62 -34
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +23 -22
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +15 -14
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +23 -23
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +838 -632
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +38 -14
- package/datatable/datatable.esm.js +575 -369
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +835 -633
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +43 -40
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +17 -14
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +42 -41
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +12 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +11 -11
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +13 -13
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +78 -73
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +3 -1
- package/dialog/dialog.esm.js +31 -27
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +75 -74
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +15 -15
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +12 -12
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +16 -16
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +62 -28
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +13 -0
- package/dock/dock.esm.js +50 -16
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +62 -29
- package/dock/dock.min.css +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +120 -98
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -1
- package/dropdown/dropdown.esm.js +58 -36
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +116 -99
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +58 -56
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -0
- package/editor/editor.esm.js +22 -18
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +57 -53
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +31 -29
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +2 -1
- package/fieldset/fieldset.esm.js +17 -15
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +30 -30
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +79 -69
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -1
- package/fileupload/fileupload.esm.js +40 -30
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +79 -70
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +17 -19
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +12 -12
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +16 -16
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +85 -81
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -1
- package/galleria/galleria.esm.js +21 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +82 -82
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +13 -13
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.js +12 -12
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +14 -14
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +69 -44
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +6 -5
- package/image/image.esm.js +44 -20
- package/image/image.esm.min.js +1 -1
- package/image/image.js +67 -45
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +19 -19
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +12 -12
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +20 -20
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +24 -23
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +17 -16
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +24 -24
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +90 -63
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +73 -46
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +89 -64
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +28 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +21 -18
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +28 -26
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -23
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +16 -14
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +24 -24
- package/inputtext/inputtext.min.css +1 -1
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -22
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +15 -14
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -23
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +9 -6
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +5 -2
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +10 -7
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +18 -18
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +12 -12
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +19 -19
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +52 -50
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +17 -15
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +51 -51
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +47 -46
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +13 -12
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +47 -47
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +69 -62
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +2 -1
- package/mention/mention.esm.js +25 -19
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +64 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +45 -40
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +4 -1
- package/menu/menu.esm.js +19 -15
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +42 -41
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -46
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +15 -13
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +48 -47
- package/menubar/menubar.min.css +1 -1
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +20 -19
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +3 -1
- package/message/message.esm.js +14 -13
- package/message/message.esm.min.js +1 -1
- package/message/message.js +21 -20
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +30 -28
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -1
- package/messages/messages.esm.js +14 -12
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +29 -29
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +148 -136
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -2
- package/multiselect/multiselect.esm.js +64 -52
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +144 -137
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +27 -26
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +15 -14
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +27 -27
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +46 -45
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +13 -12
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +46 -46
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +37 -37
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +12 -12
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +38 -38
- package/organizationchart/organizationchart.min.css +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +45 -42
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +3 -2
- package/overlaypanel/overlaypanel.esm.js +23 -21
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +41 -43
- 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 +11 -4
- package/paginator/paginator.cjs.js +61 -60
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +15 -14
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +61 -61
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +35 -32
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +5 -3
- package/panel/panel.esm.js +20 -17
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +34 -33
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +53 -52
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -1
- package/panelmenu/panelmenu.esm.js +15 -14
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +53 -53
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +47 -43
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +3 -2
- package/password/password.esm.js +21 -17
- package/password/password.esm.min.js +1 -1
- package/password/password.js +44 -44
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +69 -65
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +25 -21
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +69 -66
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +17 -20
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +15 -18
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +18 -22
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +3793 -2921
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2567 -1694
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +3792 -2918
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +20 -20
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +12 -12
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +21 -21
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +16 -16
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +12 -12
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +17 -17
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -22
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +15 -14
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +23 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +17 -16
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +23 -23
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +216 -140
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +94 -42
- package/resources/themes/arya-green/theme.css +94 -42
- package/resources/themes/arya-orange/theme.css +94 -42
- package/resources/themes/arya-purple/theme.css +94 -42
- package/resources/themes/bootstrap4-dark-blue/theme.css +75 -30
- package/resources/themes/bootstrap4-dark-purple/theme.css +75 -30
- package/resources/themes/bootstrap4-light-blue/theme.css +74 -29
- package/resources/themes/bootstrap4-light-purple/theme.css +74 -29
- package/resources/themes/fluent-light/theme.css +94 -42
- 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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -0
- package/resources/themes/luna-amber/theme.css +91 -46
- package/resources/themes/luna-blue/theme.css +91 -46
- package/resources/themes/luna-green/theme.css +91 -46
- package/resources/themes/luna-pink/theme.css +91 -46
- package/resources/themes/md-dark-deeppurple/theme.css +265 -53
- package/resources/themes/md-dark-indigo/theme.css +265 -53
- package/resources/themes/md-light-deeppurple/theme.css +265 -53
- package/resources/themes/md-light-indigo/theme.css +265 -53
- package/resources/themes/mdc-dark-deeppurple/theme.css +265 -53
- package/resources/themes/mdc-dark-indigo/theme.css +265 -53
- package/resources/themes/mdc-light-deeppurple/theme.css +265 -53
- package/resources/themes/mdc-light-indigo/theme.css +265 -53
- package/resources/themes/nova/theme.css +91 -46
- package/resources/themes/nova-accent/theme.css +91 -46
- package/resources/themes/nova-alt/theme.css +91 -46
- package/resources/themes/rhea/theme.css +91 -46
- package/resources/themes/saga-blue/theme.css +77 -25
- package/resources/themes/saga-green/theme.css +77 -25
- package/resources/themes/saga-orange/theme.css +77 -25
- package/resources/themes/saga-purple/theme.css +77 -25
- package/resources/themes/tailwind-light/theme.css +101 -49
- package/resources/themes/vela-blue/theme.css +94 -42
- package/resources/themes/vela-green/theme.css +94 -42
- package/resources/themes/vela-orange/theme.css +94 -42
- package/resources/themes/vela-purple/theme.css +94 -42
- package/ripple/ripple.cjs.js +22 -22
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +14 -14
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +23 -23
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +12 -12
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +11 -11
- package/row/row.esm.min.js +1 -1
- package/row/row.js +13 -13
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +30 -30
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +12 -12
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +31 -31
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +30 -25
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +4 -2
- package/scrolltop/scrolltop.esm.js +21 -17
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +28 -26
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +31 -29
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +17 -15
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +30 -30
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +3 -1
- package/sidebar/sidebar.cjs.js +154 -127
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +4 -1
- package/sidebar/sidebar.esm.js +145 -119
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +151 -128
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +14 -14
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +12 -12
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +15 -15
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +49 -44
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -1
- package/slidemenu/slidemenu.esm.js +19 -15
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +46 -45
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +40 -30
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +32 -22
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +41 -31
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +33 -32
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +3 -2
- package/speeddial/speeddial.esm.js +15 -14
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +33 -33
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +58 -50
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +8 -6
- package/splitbutton/splitbutton.esm.js +28 -20
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +55 -51
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +31 -31
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +14 -14
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +32 -32
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +21 -21
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +12 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +22 -22
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +28 -28
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +12 -12
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +29 -29
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +27 -26
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +13 -12
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +27 -27
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +224 -79
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +12 -1
- package/tabview/tabview.esm.js +194 -49
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +224 -80
- package/tabview/tabview.min.css +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +20 -19
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -1
- package/tag/tag.esm.js +16 -15
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +21 -20
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +23 -23
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +12 -12
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +24 -24
- 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 +54 -48
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -1
- package/tieredmenu/tieredmenu.esm.js +20 -15
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +50 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -23
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +12 -12
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -24
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +72 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +5 -1
- package/toast/toast.esm.js +46 -30
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +69 -56
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +27 -22
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +3 -2
- package/togglebutton/togglebutton.esm.js +21 -16
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +26 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +18 -18
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +12 -12
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +19 -19
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +78 -49
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +0 -1
- package/tooltip/tooltip.esm.js +49 -21
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +77 -50
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +2 -0
- package/tree/tree.cjs.js +69 -68
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +14 -3
- package/tree/tree.esm.js +19 -18
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +69 -69
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +4 -1
- package/treeselect/treeselect.cjs.js +66 -62
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +11 -3
- package/treeselect/treeselect.esm.js +26 -22
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +63 -63
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1393 -330
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +11 -3
- package/treetable/treetable.esm.js +1303 -240
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1392 -331
- package/treetable/treetable.min.css +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +24 -23
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +15 -14
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +24 -24
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +174 -51
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +18 -0
- package/utils/utils.esm.js +173 -51
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +175 -52
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +79 -53
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +64 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +80 -54
- package/virtualscroller/virtualscroller.min.css +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +45 -8
- 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/util.d.ts +0 -1
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 }; }
|
|
@@ -28,17 +28,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
28
28
|
function _typeof(obj) {
|
|
29
29
|
"@babel/helpers - typeof";
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
_typeof = function _typeof(obj) {
|
|
37
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return _typeof(obj);
|
|
31
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
32
|
+
return typeof obj;
|
|
33
|
+
} : function (obj) {
|
|
34
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
35
|
+
}, _typeof(obj);
|
|
42
36
|
}
|
|
43
37
|
|
|
44
38
|
function _arrayLikeToArray$1(arr, len) {
|
|
@@ -95,6 +89,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
95
89
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
96
90
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
97
91
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
92
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
93
|
+
writable: false
|
|
94
|
+
});
|
|
98
95
|
return Constructor;
|
|
99
96
|
}
|
|
100
97
|
|
|
@@ -127,6 +124,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
127
124
|
configurable: true
|
|
128
125
|
}
|
|
129
126
|
});
|
|
127
|
+
Object.defineProperty(subClass, "prototype", {
|
|
128
|
+
writable: false
|
|
129
|
+
});
|
|
130
130
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -180,10 +180,10 @@ 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
|
-
in: this.props
|
|
186
|
+
"in": this.props["in"],
|
|
187
187
|
timeout: {
|
|
188
188
|
enter: 120,
|
|
189
189
|
exit: 100
|
|
@@ -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,21 +222,21 @@ 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
|
});
|
|
230
230
|
|
|
231
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it
|
|
231
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
232
232
|
|
|
233
233
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
234
234
|
|
|
235
235
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
236
236
|
|
|
237
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
237
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
238
238
|
|
|
239
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
239
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
240
240
|
|
|
241
241
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
242
242
|
|
|
@@ -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
|
});
|
|
@@ -973,12 +967,31 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
973
967
|
|
|
974
968
|
event.preventDefault();
|
|
975
969
|
}
|
|
970
|
+
}, {
|
|
971
|
+
key: "doStepMinute",
|
|
972
|
+
value: function doStepMinute(currentMinute, step) {
|
|
973
|
+
if (this.props.stepMinute <= 1) {
|
|
974
|
+
return step ? currentMinute + step : currentMinute;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
if (!step) {
|
|
978
|
+
step = this.props.stepMinute;
|
|
979
|
+
|
|
980
|
+
if (currentMinute % step === 0) {
|
|
981
|
+
return currentMinute;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
var newMinute = currentMinute + step;
|
|
986
|
+
newMinute = Math.floor(newMinute / step) * step;
|
|
987
|
+
return newMinute;
|
|
988
|
+
}
|
|
976
989
|
}, {
|
|
977
990
|
key: "incrementMinute",
|
|
978
991
|
value: function incrementMinute(event) {
|
|
979
992
|
var currentTime = this.getCurrentDateTime();
|
|
980
993
|
var currentMinute = currentTime.getMinutes();
|
|
981
|
-
var newMinute = currentMinute
|
|
994
|
+
var newMinute = this.doStepMinute(currentMinute, this.props.stepMinute);
|
|
982
995
|
newMinute = newMinute > 59 ? newMinute - 60 : newMinute;
|
|
983
996
|
|
|
984
997
|
if (this.validateMinute(newMinute, currentTime)) {
|
|
@@ -1004,7 +1017,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1004
1017
|
value: function decrementMinute(event) {
|
|
1005
1018
|
var currentTime = this.getCurrentDateTime();
|
|
1006
1019
|
var currentMinute = currentTime.getMinutes();
|
|
1007
|
-
var newMinute = currentMinute -
|
|
1020
|
+
var newMinute = this.doStepMinute(currentMinute, -this.props.stepMinute);
|
|
1008
1021
|
newMinute = newMinute < 0 ? newMinute + 60 : newMinute;
|
|
1009
1022
|
|
|
1010
1023
|
if (this.validateMinute(newMinute, currentTime)) {
|
|
@@ -1108,8 +1121,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1108
1121
|
}
|
|
1109
1122
|
}, {
|
|
1110
1123
|
key: "getViewDate",
|
|
1111
|
-
value: function getViewDate() {
|
|
1112
|
-
|
|
1124
|
+
value: function getViewDate(date) {
|
|
1125
|
+
var propValue = this.props.value;
|
|
1126
|
+
var viewDate = date || (this.props.onViewDateChange ? this.props.viewDate : this.state.viewDate);
|
|
1127
|
+
|
|
1128
|
+
if (Array.isArray(propValue)) {
|
|
1129
|
+
propValue = propValue[0];
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
return viewDate && this.isValidDate(viewDate) ? viewDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
|
|
1113
1133
|
}
|
|
1114
1134
|
}, {
|
|
1115
1135
|
key: "getCurrentDateTime",
|
|
@@ -1321,13 +1341,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1321
1341
|
case 40:
|
|
1322
1342
|
{
|
|
1323
1343
|
cellContent.tabIndex = '-1';
|
|
1324
|
-
var cellIndex =
|
|
1344
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1325
1345
|
var nextRow = cell.parentElement.nextElementSibling;
|
|
1326
1346
|
|
|
1327
1347
|
if (nextRow) {
|
|
1328
1348
|
var focusCell = nextRow.children[cellIndex].children[0];
|
|
1329
1349
|
|
|
1330
|
-
if (
|
|
1350
|
+
if (utils.DomHandler.hasClass(focusCell, 'p-disabled')) {
|
|
1331
1351
|
this.navigation = {
|
|
1332
1352
|
backward: false
|
|
1333
1353
|
};
|
|
@@ -1352,14 +1372,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1352
1372
|
{
|
|
1353
1373
|
cellContent.tabIndex = '-1';
|
|
1354
1374
|
|
|
1355
|
-
var _cellIndex =
|
|
1375
|
+
var _cellIndex = utils.DomHandler.index(cell);
|
|
1356
1376
|
|
|
1357
1377
|
var prevRow = cell.parentElement.previousElementSibling;
|
|
1358
1378
|
|
|
1359
1379
|
if (prevRow) {
|
|
1360
1380
|
var _focusCell = prevRow.children[_cellIndex].children[0];
|
|
1361
1381
|
|
|
1362
|
-
if (
|
|
1382
|
+
if (utils.DomHandler.hasClass(_focusCell, 'p-disabled')) {
|
|
1363
1383
|
this.navigation = {
|
|
1364
1384
|
backward: true
|
|
1365
1385
|
};
|
|
@@ -1389,7 +1409,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1389
1409
|
if (prevCell) {
|
|
1390
1410
|
var _focusCell2 = prevCell.children[0];
|
|
1391
1411
|
|
|
1392
|
-
if (
|
|
1412
|
+
if (utils.DomHandler.hasClass(_focusCell2, 'p-disabled')) {
|
|
1393
1413
|
this.navigateToMonth(true, groupIndex, event);
|
|
1394
1414
|
} else {
|
|
1395
1415
|
_focusCell2.tabIndex = '0';
|
|
@@ -1413,7 +1433,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1413
1433
|
if (nextCell) {
|
|
1414
1434
|
var _focusCell3 = nextCell.children[0];
|
|
1415
1435
|
|
|
1416
|
-
if (
|
|
1436
|
+
if (utils.DomHandler.hasClass(_focusCell3, 'p-disabled')) {
|
|
1417
1437
|
this.navigateToMonth(false, groupIndex, event);
|
|
1418
1438
|
} else {
|
|
1419
1439
|
_focusCell3.tabIndex = '0';
|
|
@@ -1463,7 +1483,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1463
1483
|
this.navBackward(event);
|
|
1464
1484
|
} else {
|
|
1465
1485
|
var prevMonthContainer = this.overlayRef.current.children[groupIndex - 1];
|
|
1466
|
-
var cells =
|
|
1486
|
+
var cells = utils.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1467
1487
|
var focusCell = cells[cells.length - 1];
|
|
1468
1488
|
focusCell.tabIndex = '0';
|
|
1469
1489
|
focusCell.focus();
|
|
@@ -1477,7 +1497,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1477
1497
|
} else {
|
|
1478
1498
|
var nextMonthContainer = this.overlayRef.current.children[groupIndex + 1];
|
|
1479
1499
|
|
|
1480
|
-
var _focusCell4 =
|
|
1500
|
+
var _focusCell4 = utils.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled)');
|
|
1481
1501
|
|
|
1482
1502
|
_focusCell4.tabIndex = '0';
|
|
1483
1503
|
|
|
@@ -1497,7 +1517,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1497
1517
|
{
|
|
1498
1518
|
cell.tabIndex = '-1';
|
|
1499
1519
|
var cells = cell.parentElement.children;
|
|
1500
|
-
var cellIndex =
|
|
1520
|
+
var cellIndex = utils.DomHandler.index(cell);
|
|
1501
1521
|
var nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
|
|
1502
1522
|
|
|
1503
1523
|
if (nextCell) {
|
|
@@ -1574,7 +1594,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1574
1594
|
return;
|
|
1575
1595
|
}
|
|
1576
1596
|
|
|
1577
|
-
|
|
1597
|
+
utils.DomHandler.find(this.overlayRef.current, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(function (cell) {
|
|
1578
1598
|
return cell.tabIndex = -1;
|
|
1579
1599
|
});
|
|
1580
1600
|
event.currentTarget.focus();
|
|
@@ -1657,8 +1677,13 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1657
1677
|
var startDate = this.props.value[0];
|
|
1658
1678
|
var endDate = this.props.value[1];
|
|
1659
1679
|
|
|
1660
|
-
if (!endDate
|
|
1661
|
-
|
|
1680
|
+
if (!endDate) {
|
|
1681
|
+
if (date.getTime() >= startDate.getTime()) {
|
|
1682
|
+
endDate = date;
|
|
1683
|
+
} else {
|
|
1684
|
+
endDate = startDate;
|
|
1685
|
+
startDate = date;
|
|
1686
|
+
}
|
|
1662
1687
|
} else {
|
|
1663
1688
|
startDate = date;
|
|
1664
1689
|
endDate = null;
|
|
@@ -1731,7 +1756,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1731
1756
|
}
|
|
1732
1757
|
};
|
|
1733
1758
|
|
|
1734
|
-
|
|
1759
|
+
overlayservice.OverlayService.on('overlay-click', _this10.overlayEventListener);
|
|
1735
1760
|
});
|
|
1736
1761
|
}
|
|
1737
1762
|
}
|
|
@@ -1749,7 +1774,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1749
1774
|
callback();
|
|
1750
1775
|
}
|
|
1751
1776
|
|
|
1752
|
-
|
|
1777
|
+
overlayservice.OverlayService.off('overlay-click', _this11.overlayEventListener);
|
|
1753
1778
|
_this11.overlayEventListener = null;
|
|
1754
1779
|
};
|
|
1755
1780
|
|
|
@@ -1765,7 +1790,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1765
1790
|
key: "onOverlayEnter",
|
|
1766
1791
|
value: function onOverlayEnter() {
|
|
1767
1792
|
if (this.props.autoZIndex) {
|
|
1768
|
-
|
|
1793
|
+
var key = this.props.touchUI ? 'modal' : 'overlay';
|
|
1794
|
+
utils.ZIndexUtils.set(key, this.overlayRef.current, PrimeReact__default["default"].autoZIndex, this.props.baseZIndex || PrimeReact__default["default"].zIndex[key]);
|
|
1769
1795
|
}
|
|
1770
1796
|
|
|
1771
1797
|
this.alignOverlay();
|
|
@@ -1788,7 +1814,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1788
1814
|
}, {
|
|
1789
1815
|
key: "onOverlayExited",
|
|
1790
1816
|
value: function onOverlayExited() {
|
|
1791
|
-
|
|
1817
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1792
1818
|
this.props.onHide && this.props.onHide();
|
|
1793
1819
|
}
|
|
1794
1820
|
}, {
|
|
@@ -1838,7 +1864,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1838
1864
|
var _this13 = this;
|
|
1839
1865
|
|
|
1840
1866
|
if (!this.scrollHandler) {
|
|
1841
|
-
this.scrollHandler = new
|
|
1867
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1842
1868
|
if (_this13.isVisible()) {
|
|
1843
1869
|
_this13.hideOverlay();
|
|
1844
1870
|
}
|
|
@@ -1862,12 +1888,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1862
1888
|
}, {
|
|
1863
1889
|
key: "isNavIconClicked",
|
|
1864
1890
|
value: function isNavIconClicked(target) {
|
|
1865
|
-
return
|
|
1891
|
+
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
1892
|
}
|
|
1867
1893
|
}, {
|
|
1868
1894
|
key: "onWindowResize",
|
|
1869
1895
|
value: function onWindowResize() {
|
|
1870
|
-
if (this.isVisible() && !
|
|
1896
|
+
if (this.isVisible() && !utils.DomHandler.isTouchDevice()) {
|
|
1871
1897
|
this.hideOverlay();
|
|
1872
1898
|
}
|
|
1873
1899
|
}
|
|
@@ -1877,7 +1903,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1877
1903
|
if (this.props.touchUI) {
|
|
1878
1904
|
this.enableModality();
|
|
1879
1905
|
} else {
|
|
1880
|
-
|
|
1906
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1881
1907
|
}
|
|
1882
1908
|
}
|
|
1883
1909
|
}, {
|
|
@@ -1887,8 +1913,8 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1887
1913
|
|
|
1888
1914
|
if (!this.touchUIMask) {
|
|
1889
1915
|
this.touchUIMask = document.createElement('div');
|
|
1890
|
-
this.touchUIMask.style.zIndex = String(
|
|
1891
|
-
|
|
1916
|
+
this.touchUIMask.style.zIndex = String(utils.ZIndexUtils.get(this.overlayRef.current) - 1);
|
|
1917
|
+
utils.DomHandler.addMultipleClasses(this.touchUIMask, 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay-enter');
|
|
1892
1918
|
|
|
1893
1919
|
this.touchUIMaskClickListener = function () {
|
|
1894
1920
|
_this14.disableModality();
|
|
@@ -1896,7 +1922,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1896
1922
|
|
|
1897
1923
|
this.touchUIMask.addEventListener('click', this.touchUIMaskClickListener);
|
|
1898
1924
|
document.body.appendChild(this.touchUIMask);
|
|
1899
|
-
|
|
1925
|
+
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
1900
1926
|
}
|
|
1901
1927
|
}
|
|
1902
1928
|
}, {
|
|
@@ -1905,7 +1931,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1905
1931
|
var _this15 = this;
|
|
1906
1932
|
|
|
1907
1933
|
if (this.touchUIMask) {
|
|
1908
|
-
|
|
1934
|
+
utils.DomHandler.addClass(this.touchUIMask, 'p-component-overlay-leave');
|
|
1909
1935
|
this.touchUIMask.addEventListener('animationend', function () {
|
|
1910
1936
|
_this15.destroyMask();
|
|
1911
1937
|
});
|
|
@@ -1924,14 +1950,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
1924
1950
|
for (var i = 0; i < bodyChildren.length; i++) {
|
|
1925
1951
|
var bodyChild = bodyChildren[i];
|
|
1926
1952
|
|
|
1927
|
-
if (
|
|
1953
|
+
if (utils.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
|
|
1928
1954
|
hasBlockerMasks = true;
|
|
1929
1955
|
break;
|
|
1930
1956
|
}
|
|
1931
1957
|
}
|
|
1932
1958
|
|
|
1933
1959
|
if (!hasBlockerMasks) {
|
|
1934
|
-
|
|
1960
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
1935
1961
|
}
|
|
1936
1962
|
}
|
|
1937
1963
|
}, {
|
|
@@ -2852,12 +2878,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2852
2878
|
visibility: 'hidden'
|
|
2853
2879
|
}
|
|
2854
2880
|
};
|
|
2855
|
-
return /*#__PURE__*/React__default[
|
|
2881
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2856
2882
|
type: "button",
|
|
2857
2883
|
className: "p-datepicker-prev p-link"
|
|
2858
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2884
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2859
2885
|
className: "p-datepicker-prev-icon pi pi-chevron-left"
|
|
2860
|
-
}), /*#__PURE__*/React__default[
|
|
2886
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2861
2887
|
}
|
|
2862
2888
|
}, {
|
|
2863
2889
|
key: "renderForwardNavigator",
|
|
@@ -2874,12 +2900,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2874
2900
|
visibility: 'hidden'
|
|
2875
2901
|
}
|
|
2876
2902
|
};
|
|
2877
|
-
return /*#__PURE__*/React__default[
|
|
2903
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2878
2904
|
type: "button",
|
|
2879
2905
|
className: "p-datepicker-next p-link"
|
|
2880
|
-
}, navigatorProps), /*#__PURE__*/React__default[
|
|
2906
|
+
}, navigatorProps), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2881
2907
|
className: "p-datepicker-next-icon pi pi-chevron-right"
|
|
2882
|
-
}), /*#__PURE__*/React__default[
|
|
2908
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
2883
2909
|
}
|
|
2884
2910
|
}, {
|
|
2885
2911
|
key: "isInMinYear",
|
|
@@ -2913,14 +2939,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2913
2939
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2914
2940
|
return option.label;
|
|
2915
2941
|
});
|
|
2916
|
-
var content = /*#__PURE__*/React__default[
|
|
2942
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2917
2943
|
className: "p-datepicker-month",
|
|
2918
2944
|
onChange: function onChange(e) {
|
|
2919
2945
|
return _this18.onMonthDropdownChange(e, e.target.value);
|
|
2920
2946
|
},
|
|
2921
2947
|
value: viewMonth
|
|
2922
2948
|
}, displayedMonthOptions.map(function (option) {
|
|
2923
|
-
return /*#__PURE__*/React__default[
|
|
2949
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2924
2950
|
key: option.label,
|
|
2925
2951
|
value: option.value
|
|
2926
2952
|
}, option.label);
|
|
@@ -2936,12 +2962,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2936
2962
|
element: content,
|
|
2937
2963
|
props: this.props
|
|
2938
2964
|
};
|
|
2939
|
-
return
|
|
2965
|
+
return utils.ObjectUtils.getJSXElement(this.props.monthNavigatorTemplate, defaultContentOptions);
|
|
2940
2966
|
}
|
|
2941
2967
|
|
|
2942
2968
|
return content;
|
|
2943
2969
|
} else {
|
|
2944
|
-
return /*#__PURE__*/React__default[
|
|
2970
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2945
2971
|
className: "p-datepicker-month"
|
|
2946
2972
|
}, monthNames[month]);
|
|
2947
2973
|
}
|
|
@@ -2966,14 +2992,14 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2966
2992
|
var displayedYearNames = yearOptions.filter(function (year) {
|
|
2967
2993
|
return !(_this19.props.minDate && _this19.props.minDate.getFullYear() > year) && !(_this19.props.maxDate && _this19.props.maxDate.getFullYear() < year);
|
|
2968
2994
|
});
|
|
2969
|
-
var content = /*#__PURE__*/React__default[
|
|
2995
|
+
var content = /*#__PURE__*/React__default["default"].createElement("select", {
|
|
2970
2996
|
className: "p-datepicker-year",
|
|
2971
2997
|
onChange: function onChange(e) {
|
|
2972
2998
|
return _this19.onYearDropdownChange(e, e.target.value);
|
|
2973
2999
|
},
|
|
2974
3000
|
value: viewYear
|
|
2975
3001
|
}, displayedYearNames.map(function (year) {
|
|
2976
|
-
return /*#__PURE__*/React__default[
|
|
3002
|
+
return /*#__PURE__*/React__default["default"].createElement("option", {
|
|
2977
3003
|
key: year,
|
|
2978
3004
|
value: year
|
|
2979
3005
|
}, year);
|
|
@@ -2996,12 +3022,12 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
2996
3022
|
element: content,
|
|
2997
3023
|
props: this.props
|
|
2998
3024
|
};
|
|
2999
|
-
return
|
|
3025
|
+
return utils.ObjectUtils.getJSXElement(this.props.yearNavigatorTemplate, defaultContentOptions);
|
|
3000
3026
|
}
|
|
3001
3027
|
|
|
3002
3028
|
return content;
|
|
3003
3029
|
} else {
|
|
3004
|
-
return /*#__PURE__*/React__default[
|
|
3030
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3005
3031
|
className: "p-datepicker-year"
|
|
3006
3032
|
}, year);
|
|
3007
3033
|
}
|
|
@@ -3011,7 +3037,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3011
3037
|
value: function renderTitle(monthMetaData) {
|
|
3012
3038
|
var month = this.renderTitleMonthElement(monthMetaData.month);
|
|
3013
3039
|
var year = this.renderTitleYearElement(monthMetaData.year);
|
|
3014
|
-
return /*#__PURE__*/React__default[
|
|
3040
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3015
3041
|
className: "p-datepicker-title"
|
|
3016
3042
|
}, month, year);
|
|
3017
3043
|
}
|
|
@@ -3019,18 +3045,18 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3019
3045
|
key: "renderDayNames",
|
|
3020
3046
|
value: function renderDayNames(weekDays) {
|
|
3021
3047
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
3022
|
-
return /*#__PURE__*/React__default[
|
|
3048
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3023
3049
|
key: "".concat(weekDay, "-").concat(index),
|
|
3024
3050
|
scope: "col"
|
|
3025
|
-
}, /*#__PURE__*/React__default[
|
|
3051
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, weekDay));
|
|
3026
3052
|
});
|
|
3027
3053
|
|
|
3028
3054
|
if (this.props.showWeek) {
|
|
3029
|
-
var weekHeader = /*#__PURE__*/React__default[
|
|
3055
|
+
var weekHeader = /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3030
3056
|
scope: "col",
|
|
3031
3057
|
key: 'wn',
|
|
3032
3058
|
className: "p-datepicker-weekheader p-disabled"
|
|
3033
|
-
}, /*#__PURE__*/React__default[
|
|
3059
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, PrimeReact.localeOption('weekHeader', this.props.locale)));
|
|
3034
3060
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
3035
3061
|
} else {
|
|
3036
3062
|
return dayNames;
|
|
@@ -3042,7 +3068,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3042
3068
|
var _this20 = this;
|
|
3043
3069
|
|
|
3044
3070
|
var content = this.props.dateTemplate ? this.props.dateTemplate(date) : date.day;
|
|
3045
|
-
return /*#__PURE__*/React__default[
|
|
3071
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3046
3072
|
className: className,
|
|
3047
3073
|
onClick: function onClick(e) {
|
|
3048
3074
|
return _this20.onDateSelect(e, date);
|
|
@@ -3050,7 +3076,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3050
3076
|
onKeyDown: function onKeyDown(e) {
|
|
3051
3077
|
return _this20.onDateCellKeydown(e, date, groupIndex);
|
|
3052
3078
|
}
|
|
3053
|
-
}, content, /*#__PURE__*/React__default[
|
|
3079
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3054
3080
|
}
|
|
3055
3081
|
}, {
|
|
3056
3082
|
key: "renderWeek",
|
|
@@ -3060,26 +3086,26 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3060
3086
|
var week = weekDates.map(function (date) {
|
|
3061
3087
|
var selected = _this21.isSelected(date);
|
|
3062
3088
|
|
|
3063
|
-
var cellClassName =
|
|
3089
|
+
var cellClassName = utils.classNames({
|
|
3064
3090
|
'p-datepicker-other-month': date.otherMonth,
|
|
3065
3091
|
'p-datepicker-today': date.today
|
|
3066
3092
|
});
|
|
3067
|
-
var dateClassName =
|
|
3093
|
+
var dateClassName = utils.classNames({
|
|
3068
3094
|
'p-highlight': selected,
|
|
3069
3095
|
'p-disabled': !date.selectable
|
|
3070
3096
|
});
|
|
3071
3097
|
var content = date.otherMonth && !_this21.props.showOtherMonths ? null : _this21.renderDateCellContent(date, dateClassName, groupIndex);
|
|
3072
|
-
return /*#__PURE__*/React__default[
|
|
3098
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3073
3099
|
key: date.day,
|
|
3074
3100
|
className: cellClassName
|
|
3075
3101
|
}, content);
|
|
3076
3102
|
});
|
|
3077
3103
|
|
|
3078
3104
|
if (this.props.showWeek) {
|
|
3079
|
-
var weekNumberCell = /*#__PURE__*/React__default[
|
|
3105
|
+
var weekNumberCell = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3080
3106
|
key: 'wn' + weekNumber,
|
|
3081
3107
|
className: "p-datepicker-weeknumber"
|
|
3082
|
-
}, /*#__PURE__*/React__default[
|
|
3108
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3083
3109
|
className: "p-disabled"
|
|
3084
3110
|
}, weekNumber));
|
|
3085
3111
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
@@ -3093,7 +3119,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3093
3119
|
var _this22 = this;
|
|
3094
3120
|
|
|
3095
3121
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
3096
|
-
return /*#__PURE__*/React__default[
|
|
3122
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
3097
3123
|
key: index
|
|
3098
3124
|
}, _this22.renderWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
3099
3125
|
});
|
|
@@ -3103,11 +3129,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3103
3129
|
value: function renderDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
3104
3130
|
var dayNames = this.renderDayNames(weekDays);
|
|
3105
3131
|
var dates = this.renderDates(monthMetaData, groupIndex);
|
|
3106
|
-
return /*#__PURE__*/React__default[
|
|
3132
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3107
3133
|
className: "p-datepicker-calendar-container"
|
|
3108
|
-
}, /*#__PURE__*/React__default[
|
|
3134
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3109
3135
|
className: "p-datepicker-calendar"
|
|
3110
|
-
}, /*#__PURE__*/React__default[
|
|
3136
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, dayNames)), /*#__PURE__*/React__default["default"].createElement("tbody", null, dates)));
|
|
3111
3137
|
}
|
|
3112
3138
|
}, {
|
|
3113
3139
|
key: "renderMonth",
|
|
@@ -3118,10 +3144,10 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3118
3144
|
var title = this.renderTitle(monthMetaData);
|
|
3119
3145
|
var dateViewGrid = this.renderDateViewGrid(monthMetaData, weekDays, index);
|
|
3120
3146
|
var header = this.props.headerTemplate ? this.props.headerTemplate() : null;
|
|
3121
|
-
return /*#__PURE__*/React__default[
|
|
3147
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3122
3148
|
key: monthMetaData.month,
|
|
3123
3149
|
className: "p-datepicker-group"
|
|
3124
|
-
}, /*#__PURE__*/React__default[
|
|
3150
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3125
3151
|
className: "p-datepicker-header"
|
|
3126
3152
|
}, header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
3127
3153
|
}
|
|
@@ -3133,7 +3159,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3133
3159
|
var groups = monthsMetaData.map(function (monthMetaData, index) {
|
|
3134
3160
|
return _this23.renderMonth(monthMetaData, index);
|
|
3135
3161
|
});
|
|
3136
|
-
return /*#__PURE__*/React__default[
|
|
3162
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3137
3163
|
className: "p-datepicker-group-container"
|
|
3138
3164
|
}, groups);
|
|
3139
3165
|
}
|
|
@@ -3143,19 +3169,19 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3143
3169
|
var viewDate = this.getViewDate();
|
|
3144
3170
|
var monthsMetaData = this.createMonths(viewDate.getMonth(), viewDate.getFullYear());
|
|
3145
3171
|
var months = this.renderMonths(monthsMetaData);
|
|
3146
|
-
return /*#__PURE__*/React__default[
|
|
3172
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, months);
|
|
3147
3173
|
}
|
|
3148
3174
|
}, {
|
|
3149
3175
|
key: "renderMonthViewMonth",
|
|
3150
3176
|
value: function renderMonthViewMonth(index) {
|
|
3151
3177
|
var _this24 = this;
|
|
3152
3178
|
|
|
3153
|
-
var className =
|
|
3179
|
+
var className = utils.classNames('p-monthpicker-month', {
|
|
3154
3180
|
'p-highlight': this.isMonthSelected(index)
|
|
3155
3181
|
});
|
|
3156
3182
|
var monthNamesShort = PrimeReact.localeOption('monthNamesShort', this.props.locale);
|
|
3157
3183
|
var monthName = monthNamesShort[index];
|
|
3158
|
-
return /*#__PURE__*/React__default[
|
|
3184
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3159
3185
|
key: monthName,
|
|
3160
3186
|
className: className,
|
|
3161
3187
|
onClick: function onClick(event) {
|
|
@@ -3164,7 +3190,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3164
3190
|
onKeyDown: function onKeyDown(event) {
|
|
3165
3191
|
return _this24.onMonthCellKeydown(event, index);
|
|
3166
3192
|
}
|
|
3167
|
-
}, monthName, /*#__PURE__*/React__default[
|
|
3193
|
+
}, monthName, /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
3168
3194
|
}
|
|
3169
3195
|
}, {
|
|
3170
3196
|
key: "renderMonthViewMonths",
|
|
@@ -3184,15 +3210,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3184
3210
|
var forwardNavigator = this.renderForwardNavigator(true);
|
|
3185
3211
|
var yearElement = this.renderTitleYearElement(this.getViewDate().getFullYear());
|
|
3186
3212
|
var months = this.renderMonthViewMonths();
|
|
3187
|
-
return /*#__PURE__*/React__default[
|
|
3213
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3188
3214
|
className: "p-datepicker-group-container"
|
|
3189
|
-
}, /*#__PURE__*/React__default[
|
|
3215
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3190
3216
|
className: "p-datepicker-group"
|
|
3191
|
-
}, /*#__PURE__*/React__default[
|
|
3217
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3192
3218
|
className: "p-datepicker-header"
|
|
3193
|
-
}, backwardNavigator, /*#__PURE__*/React__default[
|
|
3219
|
+
}, backwardNavigator, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3194
3220
|
className: "p-datepicker-title"
|
|
3195
|
-
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default[
|
|
3221
|
+
}, yearElement), forwardNavigator))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3196
3222
|
className: "p-monthpicker"
|
|
3197
3223
|
}, months));
|
|
3198
3224
|
}
|
|
@@ -3222,9 +3248,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3222
3248
|
}
|
|
3223
3249
|
|
|
3224
3250
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
3225
|
-
return /*#__PURE__*/React__default[
|
|
3251
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3226
3252
|
className: "p-hour-picker"
|
|
3227
|
-
}, /*#__PURE__*/React__default[
|
|
3253
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3228
3254
|
type: "button",
|
|
3229
3255
|
className: "p-link",
|
|
3230
3256
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3235,9 +3261,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3235
3261
|
onKeyDown: function onKeyDown(e) {
|
|
3236
3262
|
return _this25.onContainerButtonKeydown(e);
|
|
3237
3263
|
}
|
|
3238
|
-
}, /*#__PURE__*/React__default[
|
|
3264
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3239
3265
|
className: "pi pi-chevron-up"
|
|
3240
|
-
}), /*#__PURE__*/React__default[
|
|
3266
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, hourDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3241
3267
|
type: "button",
|
|
3242
3268
|
className: "p-link",
|
|
3243
3269
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3248,9 +3274,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3248
3274
|
onKeyDown: function onKeyDown(e) {
|
|
3249
3275
|
return _this25.onContainerButtonKeydown(e);
|
|
3250
3276
|
}
|
|
3251
|
-
}, /*#__PURE__*/React__default[
|
|
3277
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3252
3278
|
className: "pi pi-chevron-down"
|
|
3253
|
-
}), /*#__PURE__*/React__default[
|
|
3279
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3254
3280
|
}
|
|
3255
3281
|
}, {
|
|
3256
3282
|
key: "renderMinutePicker",
|
|
@@ -3260,9 +3286,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3260
3286
|
var currentTime = this.getCurrentDateTime();
|
|
3261
3287
|
var minute = currentTime.getMinutes();
|
|
3262
3288
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
3263
|
-
return /*#__PURE__*/React__default[
|
|
3289
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3264
3290
|
className: "p-minute-picker"
|
|
3265
|
-
}, /*#__PURE__*/React__default[
|
|
3291
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3266
3292
|
type: "button",
|
|
3267
3293
|
className: "p-link",
|
|
3268
3294
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3273,9 +3299,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3273
3299
|
onKeyDown: function onKeyDown(e) {
|
|
3274
3300
|
return _this26.onContainerButtonKeydown(e);
|
|
3275
3301
|
}
|
|
3276
|
-
}, /*#__PURE__*/React__default[
|
|
3302
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3277
3303
|
className: "pi pi-chevron-up"
|
|
3278
|
-
}), /*#__PURE__*/React__default[
|
|
3304
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, minuteDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3279
3305
|
type: "button",
|
|
3280
3306
|
className: "p-link",
|
|
3281
3307
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3286,9 +3312,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3286
3312
|
onKeyDown: function onKeyDown(e) {
|
|
3287
3313
|
return _this26.onContainerButtonKeydown(e);
|
|
3288
3314
|
}
|
|
3289
|
-
}, /*#__PURE__*/React__default[
|
|
3315
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3290
3316
|
className: "pi pi-chevron-down"
|
|
3291
|
-
}), /*#__PURE__*/React__default[
|
|
3317
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3292
3318
|
}
|
|
3293
3319
|
}, {
|
|
3294
3320
|
key: "renderSecondPicker",
|
|
@@ -3299,9 +3325,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3299
3325
|
var currentTime = this.getCurrentDateTime();
|
|
3300
3326
|
var second = currentTime.getSeconds();
|
|
3301
3327
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
3302
|
-
return /*#__PURE__*/React__default[
|
|
3328
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3303
3329
|
className: "p-second-picker"
|
|
3304
|
-
}, /*#__PURE__*/React__default[
|
|
3330
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3305
3331
|
type: "button",
|
|
3306
3332
|
className: "p-link",
|
|
3307
3333
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3312,9 +3338,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3312
3338
|
onKeyDown: function onKeyDown(e) {
|
|
3313
3339
|
return _this27.onContainerButtonKeydown(e);
|
|
3314
3340
|
}
|
|
3315
|
-
}, /*#__PURE__*/React__default[
|
|
3341
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3316
3342
|
className: "pi pi-chevron-up"
|
|
3317
|
-
}), /*#__PURE__*/React__default[
|
|
3343
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, secondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3318
3344
|
type: "button",
|
|
3319
3345
|
className: "p-link",
|
|
3320
3346
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3325,9 +3351,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3325
3351
|
onKeyDown: function onKeyDown(e) {
|
|
3326
3352
|
return _this27.onContainerButtonKeydown(e);
|
|
3327
3353
|
}
|
|
3328
|
-
}, /*#__PURE__*/React__default[
|
|
3354
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3329
3355
|
className: "pi pi-chevron-down"
|
|
3330
|
-
}), /*#__PURE__*/React__default[
|
|
3356
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3331
3357
|
}
|
|
3332
3358
|
|
|
3333
3359
|
return null;
|
|
@@ -3341,9 +3367,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3341
3367
|
var currentTime = this.getCurrentDateTime();
|
|
3342
3368
|
var millisecond = currentTime.getMilliseconds();
|
|
3343
3369
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
3344
|
-
return /*#__PURE__*/React__default[
|
|
3370
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3345
3371
|
className: "p-millisecond-picker"
|
|
3346
|
-
}, /*#__PURE__*/React__default[
|
|
3372
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3347
3373
|
type: "button",
|
|
3348
3374
|
className: "p-link",
|
|
3349
3375
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3354,9 +3380,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3354
3380
|
onKeyDown: function onKeyDown(e) {
|
|
3355
3381
|
return _this28.onContainerButtonKeydown(e);
|
|
3356
3382
|
}
|
|
3357
|
-
}, /*#__PURE__*/React__default[
|
|
3383
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3358
3384
|
className: "pi pi-chevron-up"
|
|
3359
|
-
}), /*#__PURE__*/React__default[
|
|
3385
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, millisecondDisplay), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3360
3386
|
type: "button",
|
|
3361
3387
|
className: "p-link",
|
|
3362
3388
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -3367,9 +3393,9 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3367
3393
|
onKeyDown: function onKeyDown(e) {
|
|
3368
3394
|
return _this28.onContainerButtonKeydown(e);
|
|
3369
3395
|
}
|
|
3370
|
-
}, /*#__PURE__*/React__default[
|
|
3396
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3371
3397
|
className: "pi pi-chevron-down"
|
|
3372
|
-
}), /*#__PURE__*/React__default[
|
|
3398
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3373
3399
|
}
|
|
3374
3400
|
|
|
3375
3401
|
return null;
|
|
@@ -3381,21 +3407,21 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3381
3407
|
var currentTime = this.getCurrentDateTime();
|
|
3382
3408
|
var hour = currentTime.getHours();
|
|
3383
3409
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
3384
|
-
return /*#__PURE__*/React__default[
|
|
3410
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3385
3411
|
className: "p-ampm-picker"
|
|
3386
|
-
}, /*#__PURE__*/React__default[
|
|
3412
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3387
3413
|
type: "button",
|
|
3388
3414
|
className: "p-link",
|
|
3389
3415
|
onClick: this.toggleAmPm
|
|
3390
|
-
}, /*#__PURE__*/React__default[
|
|
3416
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3391
3417
|
className: "pi pi-chevron-up"
|
|
3392
|
-
}), /*#__PURE__*/React__default[
|
|
3418
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)), /*#__PURE__*/React__default["default"].createElement("span", null, display), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3393
3419
|
type: "button",
|
|
3394
3420
|
className: "p-link",
|
|
3395
3421
|
onClick: this.toggleAmPm
|
|
3396
|
-
}, /*#__PURE__*/React__default[
|
|
3422
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3397
3423
|
className: "pi pi-chevron-down"
|
|
3398
|
-
}), /*#__PURE__*/React__default[
|
|
3424
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null)));
|
|
3399
3425
|
}
|
|
3400
3426
|
|
|
3401
3427
|
return null;
|
|
@@ -3403,15 +3429,15 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3403
3429
|
}, {
|
|
3404
3430
|
key: "renderSeparator",
|
|
3405
3431
|
value: function renderSeparator(separator) {
|
|
3406
|
-
return /*#__PURE__*/React__default[
|
|
3432
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3407
3433
|
className: "p-separator"
|
|
3408
|
-
}, /*#__PURE__*/React__default[
|
|
3434
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, separator));
|
|
3409
3435
|
}
|
|
3410
3436
|
}, {
|
|
3411
3437
|
key: "renderTimePicker",
|
|
3412
3438
|
value: function renderTimePicker() {
|
|
3413
3439
|
if (this.props.showTime || this.props.timeOnly) {
|
|
3414
|
-
return /*#__PURE__*/React__default[
|
|
3440
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3415
3441
|
className: "p-timepicker"
|
|
3416
3442
|
}, 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
3443
|
}
|
|
@@ -3422,7 +3448,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3422
3448
|
key: "renderInputElement",
|
|
3423
3449
|
value: function renderInputElement() {
|
|
3424
3450
|
if (!this.props.inline) {
|
|
3425
|
-
return /*#__PURE__*/React__default[
|
|
3451
|
+
return /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
3426
3452
|
ref: this.inputRef,
|
|
3427
3453
|
id: this.props.inputId,
|
|
3428
3454
|
name: this.props.name,
|
|
@@ -3434,6 +3460,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3434
3460
|
required: this.props.required,
|
|
3435
3461
|
autoComplete: "off",
|
|
3436
3462
|
placeholder: this.props.placeholder,
|
|
3463
|
+
tabIndex: this.props.tabIndex,
|
|
3437
3464
|
onInput: this.onUserInput,
|
|
3438
3465
|
onFocus: this.onInputFocus,
|
|
3439
3466
|
onBlur: this.onInputBlur,
|
|
@@ -3449,7 +3476,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3449
3476
|
key: "renderButton",
|
|
3450
3477
|
value: function renderButton() {
|
|
3451
3478
|
if (this.props.showIcon) {
|
|
3452
|
-
return /*#__PURE__*/React__default[
|
|
3479
|
+
return /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3453
3480
|
type: "button",
|
|
3454
3481
|
icon: this.props.icon,
|
|
3455
3482
|
onClick: this.onButtonClick,
|
|
@@ -3461,22 +3488,34 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3461
3488
|
|
|
3462
3489
|
return null;
|
|
3463
3490
|
}
|
|
3491
|
+
}, {
|
|
3492
|
+
key: "renderContent",
|
|
3493
|
+
value: function renderContent() {
|
|
3494
|
+
var input = this.renderInputElement();
|
|
3495
|
+
var button = this.renderButton();
|
|
3496
|
+
|
|
3497
|
+
if (this.props.iconPos === 'left') {
|
|
3498
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, button, input);
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, input, button);
|
|
3502
|
+
}
|
|
3464
3503
|
}, {
|
|
3465
3504
|
key: "renderButtonBar",
|
|
3466
3505
|
value: function renderButtonBar() {
|
|
3467
3506
|
var _this29 = this;
|
|
3468
3507
|
|
|
3469
3508
|
if (this.props.showButtonBar) {
|
|
3470
|
-
var todayClassName =
|
|
3471
|
-
var clearClassName =
|
|
3509
|
+
var todayClassName = utils.classNames('p-button-text', this.props.todayButtonClassName);
|
|
3510
|
+
var clearClassName = utils.classNames('p-button-text', this.props.clearButtonClassName);
|
|
3472
3511
|
|
|
3473
3512
|
var _localeOptions4 = PrimeReact.localeOptions(this.props.locale),
|
|
3474
3513
|
today = _localeOptions4.today,
|
|
3475
3514
|
clear = _localeOptions4.clear;
|
|
3476
3515
|
|
|
3477
|
-
return /*#__PURE__*/React__default[
|
|
3516
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3478
3517
|
className: "p-datepicker-buttonbar"
|
|
3479
|
-
}, /*#__PURE__*/React__default[
|
|
3518
|
+
}, /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3480
3519
|
type: "button",
|
|
3481
3520
|
label: today,
|
|
3482
3521
|
onClick: this.onTodayButtonClick,
|
|
@@ -3484,7 +3523,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3484
3523
|
return _this29.onContainerButtonKeydown(e);
|
|
3485
3524
|
},
|
|
3486
3525
|
className: todayClassName
|
|
3487
|
-
}), /*#__PURE__*/React__default[
|
|
3526
|
+
}), /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
|
3488
3527
|
type: "button",
|
|
3489
3528
|
label: clear,
|
|
3490
3529
|
onClick: this.onClearButtonClick,
|
|
@@ -3502,7 +3541,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3502
3541
|
value: function renderFooter() {
|
|
3503
3542
|
if (this.props.footerTemplate) {
|
|
3504
3543
|
var content = this.props.footerTemplate();
|
|
3505
|
-
return /*#__PURE__*/React__default[
|
|
3544
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3506
3545
|
className: "p-datepicker-footer"
|
|
3507
3546
|
}, content);
|
|
3508
3547
|
}
|
|
@@ -3512,16 +3551,11 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3512
3551
|
}, {
|
|
3513
3552
|
key: "render",
|
|
3514
3553
|
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, {
|
|
3554
|
+
var _classNames,
|
|
3555
|
+
_this30 = this;
|
|
3556
|
+
|
|
3557
|
+
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));
|
|
3558
|
+
var panelClassName = utils.classNames('p-datepicker p-component', this.props.panelClassName, {
|
|
3525
3559
|
'p-datepicker-inline': this.props.inline,
|
|
3526
3560
|
'p-disabled': this.props.disabled,
|
|
3527
3561
|
'p-datepicker-timeonly': this.props.timeOnly,
|
|
@@ -3529,21 +3563,20 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3529
3563
|
'p-datepicker-monthpicker': this.props.view === 'month',
|
|
3530
3564
|
'p-datepicker-touch-ui': this.props.touchUI
|
|
3531
3565
|
});
|
|
3532
|
-
var
|
|
3533
|
-
var button = this.renderButton();
|
|
3566
|
+
var content = this.renderContent();
|
|
3534
3567
|
var datePicker = this.renderDatePicker();
|
|
3535
3568
|
var timePicker = this.renderTimePicker();
|
|
3536
3569
|
var buttonBar = this.renderButtonBar();
|
|
3537
3570
|
var footer = this.renderFooter();
|
|
3538
3571
|
var isVisible = this.props.inline || this.isVisible();
|
|
3539
|
-
return /*#__PURE__*/React__default[
|
|
3572
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3540
3573
|
ref: function ref(el) {
|
|
3541
3574
|
return _this30.container = el;
|
|
3542
3575
|
},
|
|
3543
3576
|
id: this.props.id,
|
|
3544
3577
|
className: className,
|
|
3545
3578
|
style: this.props.style
|
|
3546
|
-
},
|
|
3579
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(CalendarPanel, {
|
|
3547
3580
|
ref: this.overlayRef,
|
|
3548
3581
|
className: panelClassName,
|
|
3549
3582
|
style: this.props.panelStyle,
|
|
@@ -3551,7 +3584,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3551
3584
|
inline: this.props.inline,
|
|
3552
3585
|
onClick: this.onPanelClick,
|
|
3553
3586
|
onMouseUp: this.onPanelMouseUp,
|
|
3554
|
-
in: isVisible,
|
|
3587
|
+
"in": isVisible,
|
|
3555
3588
|
onEnter: this.onOverlayEnter,
|
|
3556
3589
|
onEntered: this.onOverlayEntered,
|
|
3557
3590
|
onExit: this.onOverlayExit,
|
|
@@ -3588,6 +3621,7 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3588
3621
|
placeholder: null,
|
|
3589
3622
|
showIcon: false,
|
|
3590
3623
|
icon: 'pi pi-calendar',
|
|
3624
|
+
iconPos: 'right',
|
|
3591
3625
|
showOnFocus: true,
|
|
3592
3626
|
numberOfMonths: 1,
|
|
3593
3627
|
view: 'date',
|
|
@@ -3652,4 +3686,4 @@ this.primereact.calendar = (function (exports, React, inputtext, button, core, P
|
|
|
3652
3686
|
|
|
3653
3687
|
return exports;
|
|
3654
3688
|
|
|
3655
|
-
}({}, React, primereact.inputtext, primereact.button, primereact.
|
|
3689
|
+
})({}, React, primereact.inputtext, primereact.button, primereact.csstransition, primereact.portal, primereact.utils, primereact.tooltip, primereact.ripple, primereact.api, primereact.overlayservice);
|